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.Property Class Reference
Inheritance diagram for Vispa.Views.PropertyView.Property:
Vispa.Views.PropertyView.BooleanProperty Vispa.Views.PropertyView.DropDownProperty Vispa.Views.PropertyView.IntegerProperty Vispa.Views.PropertyView.TextEditWithButtonProperty Vispa.Views.PropertyView.DoubleProperty Vispa.Views.PropertyView.FileProperty Vispa.Views.PropertyView.FileVectorProperty Vispa.Views.PropertyView.StringProperty

Public Member Functions

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

int DEFAULT_HEIGHT = 20
 
string USER_INFO = "General property"
 

Private Attributes

 _categoryName
 
 _deletable
 
 _name
 
 _propertyView
 
 _userInfo
 

Detailed Description

Mother of all properties which can be added to the PropertyView using its append() function.

Definition at line 403 of file PropertyView.py.

Constructor & Destructor Documentation

def Vispa.Views.PropertyView.Property.__init__ (   self,
  name,
  categoryName = None 
)

Member Function Documentation

def Vispa.Views.PropertyView.Property.categoryName (   self)

Definition at line 427 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._categoryName.

428  def categoryName(self):
429  return self._categoryName
def Vispa.Views.PropertyView.Property.deletable (   self)

Definition at line 433 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._deletable.

434  def deletable(self):
435  return self._deletable
def Vispa.Views.PropertyView.Property.labelDoubleClicked (   self)
Called by PropertyView itemDoubleClicked().

Definition at line 490 of file PropertyView.py.

491  def labelDoubleClicked(self):
492  """ Called by PropertyView itemDoubleClicked().
493  """
494  pass
def Vispa.Views.PropertyView.Property.name (   self)
Return the name of this property.

Definition at line 422 of file PropertyView.py.

References PGeometricDet::Item._name, HistoParams< T >._name, HistoParams< TH2F >._name, HistoParams< TProfile2D >._name, and Vispa.Views.PropertyView.Property._name.

Referenced by Vispa.Views.PropertyView.Property.valueChanged().

423  def name(self):
424  """ Return the name of this property.
425  """
426  return self._name
def Vispa.Views.PropertyView.Property.propertyView (   self)
Returns property view.

Definition at line 441 of file PropertyView.py.

References Vispa.Main.SplitterTab.SplitterTab._propertyView, and Vispa.Views.PropertyView.Property._propertyView.

Referenced by Vispa.Views.PropertyView.FileProperty.labelDoubleClicked(), and Vispa.Views.PropertyView.Property.valueChanged().

442  def propertyView(self):
443  """ Returns property view.
444  """
445  return self._propertyView
def Vispa.Views.PropertyView.Property.properyHeight (   self)
Return the height of the property widget.

Definition at line 461 of file PropertyView.py.

462  def properyHeight(self):
463  """ Return the height of the property widget.
464  """
465  return self.DEFAULT_HEIGHT
def Vispa.Views.PropertyView.Property.setDeletable (   self,
  deletable 
)

Definition at line 430 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._deletable.

431  def setDeletable(self,deletable):
432  self._deletable=deletable
def Vispa.Views.PropertyView.Property.setHighlighted (   self,
  highlight 
)
Highlight the property, e.g. change color.

Definition at line 495 of file PropertyView.py.

496  def setHighlighted(self,highlight):
497  """ Highlight the property, e.g. change color.
498  """
499  pass
def Vispa.Views.PropertyView.Property.setName (   self,
  name 
)
Sets the name of this property.

Definition at line 417 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.__init__().

418  def setName(self, name):
419  """ Sets the name of this property.
420  """
421  self._name = name
def Vispa.Views.PropertyView.Property.setPropertyView (   self,
  propertyView 
)
Sets PropertyView object.

Definition at line 436 of file PropertyView.py.

References Vispa.Main.SplitterTab.SplitterTab._propertyView, and Vispa.Views.PropertyView.Property._propertyView.

437  def setPropertyView(self, propertyView):
438  """ Sets PropertyView object.
439  """
440  self._propertyView = propertyView
def Vispa.Views.PropertyView.Property.setReadOnly (   self,
  readOnly 
)
Disables editing functionality.

Definition at line 456 of file PropertyView.py.

457  def setReadOnly(self, readOnly):
458  """ Disables editing functionality.
459  """
460  pass
def Vispa.Views.PropertyView.Property.setUserInfo (   self,
  info 
)
Returns user info string containing information on type of property and what data may be insert.

Definition at line 446 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.__init__().

447  def setUserInfo(self, info):
448  """ Returns user info string containing information on type of property and what data may be insert.
449  """
450  self._userInfo=info
def Vispa.Views.PropertyView.Property.setValue (   self,
  value 
)
Abstract function returning current value of this property.

Has to be implemented by properties which allow the user to change their value.

Definition at line 466 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.StringProperty.buttonClicked(), Vispa.Views.PropertyView.FileProperty.buttonClicked(), Vispa.Views.PropertyView.FileVectorProperty.buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty.keyPressEvent(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline().

467  def setValue(self, value):
468  """ Abstract function returning current value of this property.
469 
470  Has to be implemented by properties which allow the user to change their value.
471  """
472  raise NotImplementedError
def Vispa.Views.PropertyView.Property.userInfo (   self)
Returns user info string containing information on type of property and what data may be insert.

Definition at line 451 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._userInfo.

Referenced by Vispa.Views.PropertyView.FileProperty.__init__(), and Vispa.Views.PropertyView.FileVectorProperty.__init__().

452  def userInfo(self):
453  """ Returns user info string containing information on type of property and what data may be insert.
454  """
455  return self._userInfo
def Vispa.Views.PropertyView.Property.value (   self)
Abstract function returning current value of this property.

Has to be implemented by properties which allow the user to change their value.

Definition at line 473 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.FileProperty.buttonClicked(), 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(), Types.vstring.insertInto(), and Vispa.Views.PropertyView.FileProperty.labelDoubleClicked().

474  def value(self):
475  """ Abstract function returning current value of this property.
476 
477  Has to be implemented by properties which allow the user to change their value.
478  """
479  raise NotImplementedError
def Vispa.Views.PropertyView.Property.valueChanged (   self)
Slot for change events. 

The actual object which have changed should connect their value changed signal 
(or similar) to this function to forward change to data accessor of PropertyView.

Definition at line 480 of file PropertyView.py.

References OAQualityTranslator.name(), cond::TagInfo.name, profilereader.FunctionInfo.name, HLTTauDQMSummaryPlotter.name(), genericValidation.GenericValidation.name, SymmetryFit.name(), HLTTauDQMFilter.name(), TmModule.name, HLTTauDQMCaloPlotter.name(), HLTTauDQMTrkPlotter.name(), ora::RecordSpecImpl::Item.name, AxesNames.name(), Select.name, ora::NamedReference.name(), edm::ModuleTime.name(), HLTTauDQMLitePathPlotter.name(), alignment.Alignment.name, FWTGeoRecoGeometry::Info.name, DDSolidShapesName.name(), GifDisplay.name, Button.name, ora::OraMainTable.name(), Types._Untracked.name, HLTTauDQML1Plotter.name(), EventSelector.name(), MyWatcher.name, evf::ServiceWeb.name(), ora::IDatabaseTable.name(), PixelDCSObject< class >::Item.name, PixelModuleName.name(), HistoDef.name(), fit::RootMinuitCommand.name, ParameterSet.name, HcalForwardLibWriter::FileHandle.name, HLTTauDQMPathPlotter.name(), pos::PixelConfigAlias.name(), JetResolution.name(), SeedingLayerSetsBuilder::LayerSpec.name, DQMRivetClient::LumiOption.name, HLTTauDQMPlotter.name(), MagCylinder.name, rpcrawtodigi::ReadoutError.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, PrintSensitive.name, DDAxesNames.name(), RPCLinkSynchroStat::LinkBoard.name(), ALIFileOut.name(), RHStopTracer::StopPoint.name, PixelBarrelName.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), reco::ElectronSeed.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), CombinedMVAJetTagComputer::Computer.name, L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), PixelEndcapName.name(), DQMRivetClient::ScaleFactorOption.name, runEdmFileComparison.EdmObject.name, BeamSpotOnline.name(), HistoData.name, EgHLTOfflineSummaryClient::SumHistBinData.name, PhysicsTools::Source.name, OpticalAlignParam.name(), pos::PixelDACScanRange.name(), CSCDCCExaminer::OStream.name, lumi::TriggerInfo.name, L1GctInternEmCand.name(), XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, SummaryGenerator.name(), XMLRBXPedestalsLoader::_loaderBaseConfig.name, SingleObjectCondition.name, edm::eventsetup::ModuleMakerTraits.name(), FWParameterBase.name(), cond::TimeTypeSpecs.name, LumiScalers.name(), pos::PixelROCMaskBits.name(), ora::OraSequenceTable.name(), L1GctJetCand.name(), L1TriggerScalers.name(), PrintMaterialBudgetInfo.name, MagVolume6Faces.name, ALIFileIn.name(), pos::PixelROCTrimBits.name(), DQMGenericClient::EfficOption.name, edm::PathSummary.name, PixelEndcapLinkMaker::Item.name, dirstructure.Weighted.name, perftools::EdmEventSize::BranchRecord.name, PixelBarrelLinkMaker::Item.name, reco::CompositeCandidate.name(), FWTableViewManager::TableEntry.name, Level1TriggerScalers.name(), edm::EventTime.name(), Mapper::definition< ScannerT >.name, DDName.name(), options.ConnectionHLTMenu.name, reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), L1GctJetCounts.name(), McSelector.name, FWPhysicsObjectDesc.name(), EcalLogicID.name, MEtoEDM< T >::MEtoEDMObject.name, LinuxElapsedTime.name, RecoSelector.name, ExpressionHisto< T >.name, python.rootplot.utilities.Hist2D.name, L1GctHtMiss.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), L1GctEmCand.name(), TreeCrawler.Package.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), Entry.name(), XMLProcessor::_loaderBaseConfig.name, CaloTrkProcessing::Detector.name, L1TriggerRates.name(), SensitiveDetector.name, PrintGeomInfoAction.name, FWViewEnergyScale.name(), HcalBaseDQClient.name(), edm::eventsetup::SourceMakerTraits.name(), SimpleL1MuGMTCand.name(), edm::Path.name(), MagGeoBuilderFromDDD::volumeHandle.name, DQMGenericClient::NormOption.name, ora::PoolMainTable.name(), PhysicsTools::Calibration::Variable.name, fwlite::Record.name(), ora::Container.name(), ora::OraMappingVersionTable.name(), egHLT::MonElemContainer< T >.name(), OpticalObject.name(), ora::Record.name(), L1AcceptBunchCrossing.name(), ora::DatabaseContainer.name(), DQMGenericClient::CDOption.name, DDValue.name(), Level1TriggerRates.name(), edm::eventsetup::DataKey.name(), h4DSegm.name, PhysicsTools::Variable::Value.name, DcsStatus.name(), FWGeometryTableManagerBase::NodeInfo.name(), options.HLTProcessOptions.name, L1MuGMTCand.name(), EDMtoMEConverter.name, ProcTMVA::Method.name, HLTPerformanceInfo::Path.name(), FWViewType.name(), TreeSaver::Var.name, python.rootplot.tree2hists.Plot.name, Vispa.Gui.PortWidget.PortWidget.name(), ora::PoolSequenceTable.name(), ora::OraMappingElementTable.name(), DDBase< N, C >.name(), DDNameInterface.name(), edm::ProcessNameSelector.name(), edm::eventsetup::LooperMakerTraits.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, edm::TriggerResults.name(), Measurement.name(), pat::TriggerCondition.name(), PhysicsTools::TreeReader::Value.name, ora::PoolMappingVersionTable.name(), TotemSD.name, PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, FWEventItem.name(), TopElectronHLTOfflineSource::EleMEs.name(), utils.StatisticalTest.name, pat::TriggerAlgorithm.name(), ora::OraContainerHeaderTable.name(), PhysicsTools::MVATrainer.name, ecaldqm::MESet.name(), EfficiencyHandler.name, h2DSegm.name, pat::TriggerPath.name(), python.rootplot.utilities.Hist.name, ora::PoolMappingElementTable.name(), BscSD.name, DQMNet::WaitObject.name, stor::DataSenderMonitorCollection::OutputModuleRecord.name, ora::OraClassVersionTable.name(), SiStripMonitorDigi.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), FP420SD.name, Vardesc.name, public_plots_tools.ColorScheme.name, ora::PoolContainerHeaderTable.name(), PhysicsTools::Variable.name, Namelist.name, HRes1DHit.name, PhysicsTools::TrainerMonitoring::Object.name, ora::PoolClassVersionTable.name(), ora::OraNamingServiceTable.name(), utils.KS.name, ora::CondMetadataTable.name(), stor::DataSenderMonitorCollection::OutputModuleResult.name, utils.Chi2.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, dirstructure.Comparison.name, utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, utils_v2.Chi2Test.name, @15930::Id.name, dqm_interfaces.DirID.name, utils.BinToBin1percent.name, dataset.Dataset.name(), python.rootplot.utilities.RootFile.name, Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, HRes2DHit.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, @15926::Id.name, HEff2DHit.name, TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, HRes4DHit.name, HEff4DHit.name, Vispa.Main.SplitterTab.SplitterTab.propertyView(), and Vispa.Views.PropertyView.Property.propertyView().

Referenced by Vispa.Views.PropertyView.BooleanProperty.__init__(), Vispa.Views.PropertyView.StringProperty.buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createLineEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createTextEdit(), Vispa.Views.PropertyView.BooleanProperty.setChecked(), Vispa.Views.PropertyView.BooleanProperty.setReadOnly(), Vispa.Views.PropertyView.DropDownProperty.setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly(), and Vispa.Views.PropertyView.IntegerProperty.setValue().

481  def valueChanged(self):
482  """ Slot for change events.
483 
484  The actual object which have changed should connect their value changed signal
485  (or similar) to this function to forward change to data accessor of PropertyView.
486  """
487  logging.debug('Property: valueChanged() ' + str(self.name()))
488  if self.propertyView():
489  self.propertyView().valueChanged(self)

Member Data Documentation

Vispa.Views.PropertyView.Property._categoryName
private

Definition at line 415 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.categoryName().

Vispa.Views.PropertyView.Property._deletable
private

Definition at line 414 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.deletable(), and Vispa.Views.PropertyView.Property.setDeletable().

Vispa.Views.PropertyView.Property._name
private

Definition at line 420 of file PropertyView.py.

Referenced by SequenceTypes.SequencePlaceholder.__str__(), SequenceTypes.SequencePlaceholder._clonesequence(), SequenceTypes.SequencePlaceholder.copy(), SequenceTypes.SequencePlaceholder.dumpPython(), SequenceTypes.SequencePlaceholder.dumpSequenceConfig(), SequenceTypes.SequencePlaceholder.dumpSequencePython(), SequenceTypes.SequencePlaceholder.insertInto(), Vispa.Views.PropertyView.Property.name(), and SequenceTypes.SequencePlaceholder.resolve().

Vispa.Views.PropertyView.Property._propertyView
private

Definition at line 413 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.propertyView(), and Vispa.Views.PropertyView.Property.setPropertyView().

Vispa.Views.PropertyView.Property._userInfo
private

Definition at line 449 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.userInfo().

int Vispa.Views.PropertyView.Property.DEFAULT_HEIGHT = 20
static

Definition at line 408 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.properyHeight(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.properyHeight().

string Vispa.Views.PropertyView.Property.USER_INFO = "General property"
static

Definition at line 407 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.Property.__init__().