CMS 3D CMS Logo

List of all members | Public Member Functions
Vispa.Views.PropertyView.StringProperty Class Reference
Inheritance diagram for Vispa.Views.PropertyView.StringProperty:
Vispa.Views.PropertyView.TextEditWithButtonProperty Vispa.Views.PropertyView.Property

Public Member Functions

def __init__ (self, name, value, categoryName=None, multiline=None)
 
def buttonClicked (self)
 
def setMultiline (self, multiline)
 
- Public Member Functions inherited from Vispa.Views.PropertyView.TextEditWithButtonProperty
def __init__ (self, name, value, categoryName=None, multiline=False)
 
def button (self)
 
def buttonClicked (self, checked=False)
 
def createButton (self)
 
def createLineEdit (self, value=None)
 
def createTextEdit (self, value=None)
 
def enterEvent (self, event)
 
def hasButton (self)
 
def keyPressEvent (self, event)
 
def leaveEvent (self, event)
 
def lineEdit (self)
 
def properyHeight (self)
 
def readOnly (self)
 
def setAutohideButton (self, hide)
 
def setHighlighted (self, highlight)
 
def setMultiline (self, multi)
 
def setReadOnly (self, readOnly)
 
def setToolTip (self, text)
 
def setValue (self, value)
 
def strValue (self)
 
def textEdit (self)
 
def value (self)
 
def valueChanged (self)
 
- Public Member Functions inherited from Vispa.Views.PropertyView.Property
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)
 

Additional Inherited Members

- Public Attributes inherited from Vispa.Views.PropertyView.TextEditWithButtonProperty
 autohideButtonFlag
 

Detailed Description

Property which holds an editable text.

A button is provided to switch between single and multi line mode. 

Definition at line 802 of file PropertyView.py.

Constructor & Destructor Documentation

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

Definition at line 813 of file PropertyView.py.

References KineDebug3.count(), and str.

813  def __init__(self, name, value, categoryName=None, multiline=None):
814  """ Constructor """
815  TextEditWithButtonProperty.__init__(self, name, value, categoryName, (multiline or str(value).count("\n")>0))
816 
def __init__(self, name, value, categoryName=None, multiline=None)
#define str(s)

Member Function Documentation

def Vispa.Views.PropertyView.StringProperty.buttonClicked (   self)
Switch to multiline mode if button is clicked.

Definition at line 824 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline, Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline(), FWIntValueListenerBase.setValue(), EcalTPGSlidingWindow.setValue(), EcalTPGFineGrainTowerEE.setValue(), EcalTPGStripStatus.setValue(), EcalTPGTowerStatus.setValue(), EcalTPGFineGrainEBIdMap.setValue(), EcalTPGLutIdMap.setValue(), EcalTPGSpike.setValue(), EcalTPGWeightIdMap.setValue(), ESTBWeights.setValue(), EcalPseudoStripInputSample.setValue(), EcalTriggerPrimitiveSample.setValue(), EcalDCUTemperatures.setValue(), EcalPTMTemperatures.setValue(), EcalEBTriggerPrimitiveSample.setValue(), EcalTPGFineGrainStripEE.setValue(), EcalWeight.setValue(), ESWeight.setValue(), CalibCoeff.setValue(), EcalTBWeights.setValue(), L1MonitorDigi.setValue(), EcalTPGGroups.setValue(), CSCDBL1TPParametersExtended.setValue(), EcalTPGPhysicsConst.setValue(), EcalTimeDependentCorrections.setValue(), EcalLaserAPDPNRatios.setValue(), HcalChannelStatus.setValue(), EcalTrigPrimCompactColl.setValue(), EcalSrFlag.setValue(), CastorChannelStatus.setValue(), ESCondObjectContainer< T >.setValue(), DTHVAbstractCheck.setValue(), Entry.setValue(), EcalCondTowerObjectContainer< T >.setValue(), EcalCondObjectContainer< T >.setValue(), SiPixelPerformanceSummary.setValue(), edm::TrieNode< T >.setValue(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.setValue(), L1GctInternHFData.setValue(), L1GctInternEtSum.setValue(), Measurement.setValue(), Vispa.Views.PropertyView.Property.setValue(), cms::DDSpecPar.strValue(), Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue(), Vispa.Views.PropertyView.PropertyView.valueChanged(), Vispa.Views.PropertyView.Property.valueChanged(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().

824  def buttonClicked(self):
825  """ Switch to multiline mode if button is clicked.
826  """
827  dialog=TextDialog(self,"Edit property...",self.strValue())
828  if dialog.exec_():
829  if not self._multiline:
830  self.setMultiline(True)
831  textEdit=dialog.getText()
832  self.setValue(textEdit)
833  self.valueChanged()
834 
835 
def Vispa.Views.PropertyView.StringProperty.setMultiline (   self,
  multiline 
)

Definition at line 817 of file PropertyView.py.

817  def setMultiline(self,multiline):
818  TextEditWithButtonProperty.setMultiline(self,multiline)
819  icon = QIcon(":/resources/editor.svg")
820  dummyicon = QIcon()
821  self._button.setIcon(icon)
822  self._button.setIconSize(QSize(15,15))
823