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
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__
 
def buttonClicked
 
def setMultiline
 
- Public Member Functions inherited from Vispa.Views.PropertyView.TextEditWithButtonProperty
def __init__
 
def button
 
def buttonClicked
 
def createButton
 
def createLineEdit
 
def createTextEdit
 
def enterEvent
 
def hasButton
 
def keyPressEvent
 
def leaveEvent
 
def lineEdit
 
def properyHeight
 
def readOnly
 
def setAutohideButton
 
def setHighlighted
 
def setMultiline
 
def setReadOnly
 
def setToolTip
 
def setValue
 
def strValue
 
def textEdit
 
def value
 
def valueChanged
 
- 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

 AUTHIDE_BUTTON = False
 
string BUTTON_LABEL = 'v'
 
string USER_INFO = "Text field"
 
- Static Public Attributes inherited from Vispa.Views.PropertyView.TextEditWithButtonProperty
 AUTOHIDE_BUTTON = True
 
string BUTTON_LABEL = ''
 
- Static Public Attributes inherited from Vispa.Views.PropertyView.Property
int DEFAULT_HEIGHT = 20
 
string USER_INFO = "General property"
 

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

Constructor & Destructor Documentation

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

Definition at line 811 of file PropertyView.py.

References prof2calltree.count.

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

Member Function Documentation

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

Definition at line 822 of file PropertyView.py.

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

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

Definition at line 815 of file PropertyView.py.

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

Member Data Documentation

Vispa.Views.PropertyView.StringProperty.AUTHIDE_BUTTON = False
static

Definition at line 809 of file PropertyView.py.

string Vispa.Views.PropertyView.StringProperty.BUTTON_LABEL = 'v'
static

Definition at line 806 of file PropertyView.py.

string Vispa.Views.PropertyView.StringProperty.USER_INFO = "Text field"
static

Definition at line 807 of file PropertyView.py.