CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
Vispa.Views.PropertyView.DropDownProperty Class Reference
Inheritance diagram for Vispa.Views.PropertyView.DropDownProperty:
Vispa.Views.PropertyView.Property

Public Member Functions

def __init__
 
def setReadOnly
 
def value
 
- Public Member Functions inherited from Vispa.Views.PropertyView.Property
def __init__
 
def categoryName
 
def deletable
 
def labelDoubleClicked
 
def name
 
def propertyView
 
def properyHeight
 
def setDeletable
 
def setHighlighted
 
def setName
 
def setPropertyView
 
def setReadOnly
 
def setUserInfo
 
def setValue
 
def userInfo
 
def value
 
def valueChanged
 

Static Public Attributes

string USER_INFO = "Drop down field"
 
- Static Public Attributes inherited from Vispa.Views.PropertyView.Property
int DEFAULT_HEIGHT = 20
 
string USER_INFO = "General property"
 

Private Attributes

 _values
 

Detailed Description

Property holding a check box for boolean values.

Definition at line 535 of file PropertyView.py.

Constructor & Destructor Documentation

def Vispa.Views.PropertyView.DropDownProperty.__init__ (   self,
  name,
  value,
  values,
  categoryName = None 
)
Constructor.

Definition at line 541 of file PropertyView.py.

542  def __init__(self, name, value, values, categoryName=None):
543  """ Constructor.
544  """
545  Property.__init__(self, name, categoryName)
546  QComboBox.__init__(self)
547  self._values=values
548  for v in values:
549  self.addItem(str(v))
550  if value in values:
551  self.setCurrentIndex(values.index(value))
552  self.connect(self, SIGNAL('currentIndexChanged(int)'), self.valueChanged)

Member Function Documentation

def Vispa.Views.PropertyView.DropDownProperty.setReadOnly (   self,
  readOnly 
)
Disables editing functionality.

Definition at line 553 of file PropertyView.py.

References options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), TestBase.connect(), HCALConfigDB.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTTTrigProd.DTTTrigProd.connect, DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigValid.DTTTrigValid.connect, DTResidualCalibration.DTResidualCalibration.connect, DTTTrigResidualCorr.DTTTrigResidualCorr.connect, DTDQMHarvesting.DTDQMHarvesting.connect, ora::ConnectionPool.connect(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.connect, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect, ShallowTree::BranchConnector.connect(), DTDQMValidation.DTDQMValidation.connect, ora::DatabaseSession.connect(), edm::ServiceToken.connect(), ShallowTree::TypedBranchConnector< T >.connect(), ora::Database.connect(), SimActivityRegistry.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< BeginOfTrack >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< EndOfTrack >.connect(), L1TOMDSHelper.connect(), PFCandConnector.connect(), DDTOBRodAlgo.connect, KalmanAlignmentMetricsCalculator.connect(), smproxy::EventRetriever< RegInfo, QueueCollectionPtr >.connect(), edm::serviceregistry::ServicesManager.connect(), l1t::OMDSReader.connect(), PFRootEventManager.connect(), cond::service::PoolDBOutputService.connect(), edm::ActivityRegistry.connect(), ConnectionManager.disconnect(), lumi::service::DBService.disconnect(), HCALConfigDB.disconnect(), evf::MasterQueue.disconnect(), ora::DatabaseSession.disconnect(), ora::Database.disconnect(), evf::SubProcess.disconnect(), cond::service::PoolDBOutputService.disconnect(), FWBoolParameterSetter.setEnabled(), FWEnumParameterSetter.setEnabled(), FWDoubleParameterSetter.setEnabled(), FWParameterSetterBase.setEnabled(), FWViewEnergyScaleEditor.setEnabled(), Vispa.Views.PropertyView.PropertyView.valueChanged(), Vispa.Views.PropertyView.Property.valueChanged(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().

554  def setReadOnly(self, readOnly):
555  """ Disables editing functionality.
556  """
557  if readOnly:
558  self.setEnabled(False)
559  self.disconnect(self, SIGNAL('currentIndexChanged(int)'), self.valueChanged)
560  else:
561  self.setEnabled(True)
562  self.connect(self, SIGNAL('currentIndexChanged(int)'), self.valueChanged)
def Vispa.Views.PropertyView.DropDownProperty.value (   self)
Returns True if check box is checked.

Definition at line 563 of file PropertyView.py.

References Vispa.Views.PropertyView.DropDownProperty._values, and edm::IndexIntoFile.currentIndex().

Referenced by Types.string.configValue(), Types.FileInPath.configValue(), Mixins.UsingBlock.dumpPython(), Types.int32.insertInto(), Types.uint32.insertInto(), Types.int64.insertInto(), Types.uint64.insertInto(), Mixins.UsingBlock.insertInto(), Types.double.insertInto(), Types.bool.insertInto(), Types.string.insertInto(), Types.FileInPath.insertInto(), Types.vint32.insertInto(), Types.vuint32.insertInto(), Types.vint64.insertInto(), Types.vuint64.insertInto(), Types.vdouble.insertInto(), Types.vbool.insertInto(), and Types.vstring.insertInto().

564  def value(self):
565  """ Returns True if check box is checked.
566  """
567  return self._values[self.currentIndex()]

Member Data Documentation

Vispa.Views.PropertyView.DropDownProperty._values
private

Definition at line 546 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.DropDownProperty.value().

string Vispa.Views.PropertyView.DropDownProperty.USER_INFO = "Drop down field"
static

Definition at line 539 of file PropertyView.py.