23 from PyQt4
import QtCore, QtGui
24 from render_mode_widget
import RenderModeWidget
29 RenderModeWidget.__init__(self, parent)
35 self.
mode_ = gfx.RenderMode.LINE_TRACE
43 self.radius_spinbox_.setRange(min_line_width, max_line_width)
44 self.radius_spinbox_.setDecimals(2)
45 self.radius_spinbox_.setSingleStep(0.1)
49 sline_label = QtGui.QLabel(
"Trace Settings")
50 font = sline_label.font()
53 radius_label = QtGui.QLabel(
"Line Width")
54 aa_label = QtGui.QLabel(
"AA-Lines")
55 grid = QtGui.QGridLayout()
56 grid.addWidget(sline_label, 0, 0, 1, 1)
57 grid.addWidget(radius_label, 1, 0, 1, 3)
59 grid.addWidget(aa_label, 2, 0, 1, 3)
61 grid.setRowStretch(3,1)
65 QtCore.SIGNAL(
"valueChanged(double)"),
68 QtCore.SIGNAL(
"stateChanged(int)"),
71 self.setMinimumSize(250,90)
74 self.GetOptions().SetAALines(value)
78 self.GetOptions().SetLineWidth(value)
82 self.aa_rendering_cb_.setChecked(options.GetAALines())
83 self.radius_spinbox_.setValue(options.GetLineWidth())