CMS 3D CMS Logo

List of all members | Public Member Functions | 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__ (self, name, categoryName=None)
 
def categoryName (self)
 
def deletable (self)
 
def labelDoubleClicked (self)
 
def name (self)
 
def propertyView (self)
 
def properyHeight (self)
 
def setDeletable (self, deletable)
 
def setHighlighted (self, highlight)
 
def setName (self, name)
 
def setPropertyView (self, propertyView)
 
def setReadOnly (self, readOnly)
 
def setUserInfo (self, info)
 
def setValue (self, value)
 
def userInfo (self)
 
def value (self)
 
def valueChanged (self)
 

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 405 of file PropertyView.py.

Constructor & Destructor Documentation

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

Definition at line 412 of file PropertyView.py.

References DCCTBDataField.setName(), jsoncollector::JsonMonitorable.setName(), reco::CompositeCandidate.setName(), L1TUtmCut.setName(), reco::NamedCompositeCandidate.setName(), L1TUtmObject.setName(), L1TUtmCondition.setName(), CSGAction.setName(), Vispa.Gui.PortWidget.PortWidget.setName(), FWPhysicsObjectDesc.setName(), pat::TriggerCondition.setName(), MillePedeVariables.setName(), Entry.setName(), pat::TriggerAlgorithm.setName(), pat::TriggerPath.setName(), L1TUtmTriggerMenu.setName(), L1MuBMTrack.setName(), FWEventItem.setName(), Measurement.setName(), Vispa.Views.PropertyView.Property.setName(), and Vispa.Views.PropertyView.Property.setUserInfo().

412  def __init__(self, name, categoryName=None):
413  self.setName(name)
414  self.setUserInfo(self.USER_INFO)
415  self._propertyView = None
416  self._deletable=False
417  self._categoryName = categoryName
418 
def __init__(self, name, categoryName=None)

Member Function Documentation

def Vispa.Views.PropertyView.Property.categoryName (   self)
def Vispa.Views.PropertyView.Property.deletable (   self)
def Vispa.Views.PropertyView.Property.labelDoubleClicked (   self)
Called by PropertyView itemDoubleClicked().

Definition at line 492 of file PropertyView.py.

493  """ Called by PropertyView itemDoubleClicked().
494  """
495  pass
496 
def Vispa.Views.PropertyView.Property.name (   self)
def Vispa.Views.PropertyView.Property.propertyView (   self)
def Vispa.Views.PropertyView.Property.properyHeight (   self)
Return the height of the property widget.

Definition at line 463 of file PropertyView.py.

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

Definition at line 432 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._deletable.

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

Definition at line 497 of file PropertyView.py.

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

Definition at line 419 of file PropertyView.py.

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

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

Definition at line 438 of file PropertyView.py.

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

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

Definition at line 458 of file PropertyView.py.

458  def setReadOnly(self, readOnly):
459  """ Disables editing functionality.
460  """
461  pass
462 
def setReadOnly(self, readOnly)
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 448 of file PropertyView.py.

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

448  def setUserInfo(self, info):
449  """ Returns user info string containing information on type of property and what data may be insert.
450  """
451  self._userInfo=info
452 
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 468 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().

468  def setValue(self, value):
469  """ Abstract function returning current value of this property.
470 
471  Has to be implemented by properties which allow the user to change their value.
472  """
473  raise NotImplementedError
474 
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 453 of file PropertyView.py.

References Vispa.Views.PropertyView.Property._userInfo.

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

453  def userInfo(self):
454  """ Returns user info string containing information on type of property and what data may be insert.
455  """
456  return self._userInfo
457 
def Vispa.Views.PropertyView.Property.value (   self)
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 482 of file PropertyView.py.

References ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), average.Average.name, counter.Counter.name, histograms.Histograms.name, AlignableObjectId::entry.name, FWLite.ElectronMVAID.name, SymmetryFit.name(), TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, listHistos.plotInfo.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, AxesNames.name(), MEPSet.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, edm::ModuleTime.name(), cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, DDSolidShapesName.name(), nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, PixelModuleName.name(), OutputMEPSet.name, EventStringOutputBranches::NamedBranchPtr.name, SummaryTableOutputBranches::NamedBranchPtr.name, HistoDef.name(), dataset.BaseDataset.name, fit::RootMinuitCommand.name, PrintSensitive.name, personalPlayback.Applet.name, Types._Untracked.name, EventSelector.name(), ParameterSet.name, PixelDCSObject< T >::Item.name, FileData.name(), PacketData.name(), DDAxesNames.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, pos::PixelConfigAlias.name(), DQMRivetClient::LumiOption.name, MagCylinder.name, rpcrawtodigi::ReadoutError.name(), analyzer.Analyzer.name, PixelBarrelNameUpgrade.name(), production_tasks.Task.name, CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, RPCLinkSynchroStat::LinkBoard.name(), JetResolution.name(), PixelEndcapNameUpgrade.name(), TriggerOutputBranches::NamedBranchPtr.name, ALIFileOut.name(), hcaldqm::quantity::Quantity.name(), DCCTBDataField.name(), ParSet.name, DDName.name(), TableOutputBranches::NamedBranchPtr.name, rpcrawtodigi::DataRecord.name(), edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, RHStopTracer::StopPoint.name, CSCChannelMapperPostls1.name(), BeamSpotOnline.name(), PixelBarrelName.name(), PhysicsTools::Source.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, runEdmFileComparison.EdmObject.name, pos::PixelDACScanRange.name(), SummaryGenerator.name(), MyWatcher.name, CSCChannelMapperStartup.name(), core.autovars.NTupleObjectType.name, L1GctInternEmCand.name(), PixelEndcapName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathSummary.name, OpticalAlignParam.name(), nanoaod::FlatTable.name(), DDI::rep_type< N, I >.name(), reco::CompositeCandidate.name(), CSCIndexerStartup.name(), lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, LumiScalers.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), L1TriggerScalers.name(), PixelEndcapLinkMaker::Item.name, dirstructure.Weighted.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, CSCIndexerPostls1.name(), PixelBarrelLinkMaker::Item.name, pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), reco::NamedCompositeCandidate.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWPhysicsObjectDesc.name(), Level1TriggerScalers.name(), EcalLogicID.name, edm::EventTime.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, L1GctJetCounts.name(), pos::PixelROCTrimBits.name(), L1GctEtMiss.name(), MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cms::DDAlgoArguments.name, CaloTrkProcessing::Detector.name, ExpressionHisto< T >.name, PrintMaterialBudgetInfo.name, BPhysicsSpectrum.name, cond::persistency::GTEditor.name(), XMLProcessor::_loaderBaseConfig.name, L1GctHtMiss.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, Entry.name(), L1GctEmCand.name(), edm::eventsetup::DataKey.name(), python.rootplot.utilities.Hist2D.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), L1TriggerRates.name(), DDValue.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::DATA.name, edm::eventsetup::SourceMakerTraits.name(), FWViewEnergyScale.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, cond::persistency::PAYLOAD::VERSION.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), Level1TriggerRates.name(), MVAVar.name, DisplayManager.DisplayManager.name, DQMGenericClient::ProfileOption.name, OpticalObject.name(), egHLT::MonElemContainer< T >.name(), dqmoffline::l1t::HistDefinition.name, L1AcceptBunchCrossing.name(), nanoaod::MergeableCounterTable::VectorColumn< T >.name, cms::DDNamespace.name(), FWLite.WorkingPoints.name, DQMGenericClient::NormOption.name, BTagProbabilityToDiscriminator::Discriminator.name, emtf::Node.name, FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, PhysicsTools::Variable::Value.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, ModifyObjectValueBase.name(), FWGeometryTableManagerBase::NodeInfo.name(), L1MuGMTCand.name(), DQMGenericClient::CDOption.name, L1MuBMTrack.name(), DcsStatus.name(), TriggerObjectTableProducer::SelectedObject.name, CounterChecker.name, MillePedeVariables.name(), FWViewType.name(), DDBase< N, C >.name(), cond::TagInfo_t.name, TrackerSectorStruct.name, HLTPerformanceInfo::Path.name(), reco::ElectronSeed.name(), ProcTMVA::Method.name, TreeSaver::Var.name, DQMGenericClient::NoFlowOption.name, BPhysicsValidation::ParticleMonitor.name, looper.Looper.name, Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, edm::Path.name(), cond::persistency::IOV::TAG_NAME.name, CSCIndexerBase.name(), EDMtoMEConverter.name, cond::persistency::IOV::SINCE.name, edm::eventsetup::LooperMakerTraits.name(), Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, PhysicsTools::TreeReader::Value.name, classes.MonitorData.name, HistogramManager.name, BPhysicsValidation.name, cond::persistency::GTProxy.name(), PhysicsTools::TrainProcessor.name, MuonGeometrySanityCheckPoint.name, edm::TriggerResults.name(), pat::TriggerCondition.name(), Measurement.name(), classes.OutputData.name, PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, pat::TriggerAlgorithm.name(), HistoData.name, FWEventItem.name(), options.HLTProcessOptions.name, PhysicsTools::MVATrainer.name, utils.StatisticalTest.name, pat::TriggerPath.name(), h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, python.rootplot.utilities.Hist.name, nanoaod::FlatTable::Column.name, config.Analyzer.name, geometry.Structure.name, IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, cuy.divideElement.name, AlpgenParameterName.name, cscdqm::Address.name(), Folder.name(), NanoAODDQM::SelGroupConfig.name, SiStripMonitorDigi.name, cuy.plotElement.name, core.autovars.NTupleObject.name, cuy.additionElement.name, public_plots_tools.ColorScheme.name, PhysicsTools::Variable.name, config.Service.name, cuy.superimposeElement.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, PhysicsTools::TrainerMonitoring::Object.name, core.autovars.NTupleCollection.name, cuy.graphElement.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, utils.KS.name, utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, hcaldqm::quantity::FlagQuantity.name(), utils.BinToBin1percent.name, python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, hcaldqm::quantity::LumiSection.name(), hcaldqm::quantity::LumiSectionCoarse.name(), Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, hcaldqm::quantity::RunNumber.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, Id.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), Vispa.Main.SplitterTab.SplitterTab.propertyView(), Vispa.Views.PropertyView.Property.propertyView(), and str.

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().

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

Member Data Documentation

Vispa.Views.PropertyView.Property._categoryName
private

Definition at line 417 of file PropertyView.py.

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

Vispa.Views.PropertyView.Property._deletable
private
Vispa.Views.PropertyView.Property._name
private

Definition at line 422 of file PropertyView.py.

Referenced by SequenceTypes.SequencePlaceholder.__str__(), plotting.Subtract.__str__(), plotting.Transform.__str__(), plotting.FakeDuplicate.__str__(), plotting.CutEfficiency.__str__(), plotting.AggregateBins.__str__(), plotting.AggregateHistos.__str__(), plotting.ROC.__str__(), SequenceTypes.TaskPlaceholder.__str__(), trackingPlots.TimePerEventPlot.__str__(), trackingPlots.TimePerTrackPlot.__str__(), SequenceTypes.SequencePlaceholder._clonesequence(), trackingPlots.TimePerEventPlot._create(), plotting.PlotGroup._drawSeparate(), plotting.PlotGroup._save(), SequenceTypes.SequencePlaceholder.copy(), SequenceTypes.TaskPlaceholder.copy(), plotting.Subtract.create(), plotting.Transform.create(), plotting.FakeDuplicate.create(), plotting.CutEfficiency.create(), plotting.AggregateBins.create(), plotting.AggregateHistos.create(), trackingPlots.TimePerTrackPlot.create(), plotting.Plot.create(), plotting.PlotGroup.draw(), SequenceTypes.SequencePlaceholder.dumpPython(), SequenceTypes.TaskPlaceholder.dumpPython(), SequenceTypes.SequencePlaceholder.dumpSequenceConfig(), SequenceTypes.SequencePlaceholder.dumpSequencePython(), SequenceTypes.TaskPlaceholder.dumpSequencePython(), plotting.Plot.getName(), plotting.PlotGroup.getName(), plotting.PlotterFolder.getName(), plotting.PlotterItem.getName(), plotting.PlotterFolder.getSelectionNameIterator(), SequenceTypes.SequencePlaceholder.insertInto(), SequenceTypes.TaskPlaceholder.insertInto(), Vispa.Views.PropertyView.Property.name(), validation.SimpleSample.name(), trackingPlots.Iteration.name(), plotting.PlotterItem.readDirs(), plotting.PlotGroup.remove(), SequenceTypes.SequencePlaceholder.resolve(), and SequenceTypes.TaskPlaceholder.resolve().

Vispa.Views.PropertyView.Property._propertyView
private
Vispa.Views.PropertyView.Property._userInfo
private

Definition at line 451 of file PropertyView.py.

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