23 from PyQt5
import QtCore, QtWidgets
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 = QtWidgets.QLabel(
"Trace Settings")
50 font = sline_label.font()
53 radius_label = QtWidgets.QLabel(
"Line Width")
54 aa_label = QtWidgets.QLabel(
"AA-Lines")
55 grid = QtWidgets.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 self.aa_rendering_cb_.stateChanged.connect(self.
UpdateAA)
67 self.setMinimumSize(250,90)
70 self.GetOptions().SetAALines(value)
74 self.GetOptions().SetLineWidth(value)
78 self.aa_rendering_cb_.setChecked(options.GetAALines())
79 self.radius_spinbox_.setValue(options.GetLineWidth())