255 QtWidgets.QDialog.__init__(self, parent)
259 detail_label = QtWidgets.QLabel(
"Parts")
265 property_label = QtWidgets.QLabel(
"Property")
270 self.
prop_combo_box_.addItem(
"average residue B-factor",QtCore.QVariant(
"rbfac"))
279 level_label = QtWidgets.QLabel(
"Level")
281 self.
combo_box_.addItem(
"Atom",QtCore.QVariant(Prop.Level.ATOM))
282 self.
combo_box_.addItem(
"Residue",QtCore.QVariant(Prop.Level.RESIDUE))
283 self.
combo_box_.addItem(
"Chain",QtCore.QVariant(Prop.Level.CHAIN))
284 self.
combo_box_.addItem(
"Unspecified",QtCore.QVariant(Prop.Level.UNSPECIFIED))
286 gradient_label = QtWidgets.QLabel(
"Gradient")
297 self.
minv_ = QtWidgets.QDoubleSpinBox(self)
298 self.
minv_.setDecimals(2)
299 self.
minv_.setMinimum(-9999.99)
300 self.
minv_.setValue(0)
301 self.
maxv_ = QtWidgets.QDoubleSpinBox(self)
302 self.
maxv_.setDecimals(2)
303 self.
maxv_.setValue(1)
304 self.
maxv_.setMinimum(-9999.99)
306 self.
hbox_ = QtWidgets.QHBoxLayout()
310 self.
hbox_.addStretch()
314 grid = QtWidgets.QGridLayout()
315 grid.setContentsMargins(0,5,0,0)
317 grid.addWidget(detail_label, 1, 0, 1, 1)
319 grid.addWidget(property_label, 2, 0, 1, 1)
322 grid.addWidget(level_label, 4, 0, 1, 1)
324 grid.addWidget(gradient_label, 5, 0, 1, 1)
331 grid.addWidget(self.
minv_,8,1,1,1)
333 grid.addWidget(self.
maxv_,9,1,1,1)
334 grid.addLayout(self.
hbox_,10,0,1,2)
335 grid.setRowStretch(1, 1)
361 minv = self.
minv_.value()
362 maxv = self.
maxv_.value()
372 if mask == glco.GetMask():
382 if prop == glco.GetProperty():
389 self.
combo_box_.setCurrentIndex(glco.GetLevel())
390 self.
gradient_edit_.LoadGradient(ImmutableGradientInfoHandler.ConvertToQGradient(glco.GetGradient()))
391 self.
auto_calc_.setChecked(glco.GetCalculateMinMax());
392 if(
not glco.GetCalculateMinMax()):
393 self.
minv_.setValue(glco.GetMinV())
394 self.
maxv_.setValue(glco.GetMaxV())