32 QWidget.__init__(self)
33 self.setWindowFlags(Qt.Tool)
35 l.addWidget(QLabel(
"Near"), 0, 0)
36 l.addWidget(QLabel(
"Far"), 1, 0)
37 bounds_near = QLineEdit(str(0))
38 bounds_near.setValidator(QIntValidator(0, 9999, bounds_near))
39 bounds_near.setMaxLength(4)
40 bounds_near.setMaximumWidth(50)
41 bounds_far = QLineEdit(str(200))
42 bounds_far.setValidator(QIntValidator(0, 9999, bounds_far))
43 bounds_far.setMaxLength(4)
44 bounds_far.setMaximumWidth(50)
45 l.addWidget(bounds_near, 0, 1, 2, 1)
46 l.addWidget(bounds_far, 0, 3, 2, 1)
47 self.
near_ = QSlider(Qt.Horizontal)
48 self.
near_.setMinimum(int(bounds_near.text()))
49 self.
near_.setMaximum(int(bounds_far.text()))
51 self.
far_ = QSlider(Qt.Horizontal)
52 self.
far_.setMinimum(int(bounds_near.text()))
53 self.
far_.setMaximum(int(bounds_far.text()))
57 self.
far_.setValue(far)
58 self.
auto_ = QCheckBox(
"Continuous Automatic Clipping")
61 l.addWidget(self.
near_, 0, 2)
62 l.addWidget(self.
far_, 1, 2)
63 l.addWidget(self.
auto_, 2, 0, 1, 4)