CMS 3D CMS Logo

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

Public Member Functions

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
 

Public Attributes

 autohideButtonFlag
 

Static Public Attributes

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

Private Attributes

 _button
 
 _lineEdit
 
 _multiline
 
 _originalValue
 
 _readOnly
 
 _textEdit
 

Detailed Description

This class provides a PropertyView property holding an editable text and a button.

It is possible to hide the button unless the mouse cursor is over the property. This feature is turned on by default. See setAutohideButton().
If the button is pressed nothing happens. This functionality should be implemented in sub-classes. See buttonClicked().
The text field can hold single or multiple lines. See setMultiline()

Definition at line 573 of file PropertyView.py.

Constructor & Destructor Documentation

def Vispa.Views.PropertyView.TextEditWithButtonProperty.__init__ (   self,
  name,
  value,
  categoryName = None,
  multiline = False 
)
The constructor creates a QHBoxLayout and calls createLineEdit(), createTextEdit() and createButton(). 

Definition at line 584 of file PropertyView.py.

585  def __init__(self, name, value, categoryName=None, multiline=False):
586  """ The constructor creates a QHBoxLayout and calls createLineEdit(), createTextEdit() and createButton().
587  """
588  Property.__init__(self, name, categoryName)
589  QWidget.__init__(self)
590  self._lineEdit = None
591  self._textEdit = None
592  self._button = None
594 
595  self.setLayout(QHBoxLayout())
596  self.layout().setSpacing(0)
597  self.layout().setContentsMargins(0, 0, 0, 0)
598 
599  self._readOnly = False
600  self._multiline = False
601 
602  self.createLineEdit()
603  self.createTextEdit()
604  self.createButton()
605  self.setMultiline(multiline)
606  self.setValue(value)

Member Function Documentation

def Vispa.Views.PropertyView.TextEditWithButtonProperty.button (   self)
Return button.

Definition at line 703 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._button.

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

704  def button(self):
705  """ Return button.
706  """
707  return self._button
def Vispa.Views.PropertyView.TextEditWithButtonProperty.buttonClicked (   self,
  checked = False 
)
This function is called if the button was clicked. For information on the checked argument see documentation of QPushButton::clicked().
This function should be overwritten by sub-classes.

Definition at line 752 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton().

753  def buttonClicked(self, checked=False):
754  """
755  This function is called if the button was clicked. For information on the checked argument see documentation of QPushButton::clicked().
756  This function should be overwritten by sub-classes.
757  """
758  pass
def Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton (   self)
Creates a button and adds it to the property's layout.

Definition at line 691 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._button, Vispa.Views.PropertyView.TextEditWithButtonProperty.autohideButtonFlag, Vispa.Views.PropertyView.TextEditWithButtonProperty.BUTTON_LABEL, Vispa.Views.PropertyView.TextEditWithButtonProperty.buttonClicked(), options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), HCALConfigDB.connect(), TestBase.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigProd.DTTTrigProd.connect, DTTTrigValid.DTTTrigValid.connect, DTResidualCalibration.DTResidualCalibration.connect, DTTTrigResidualCorr.DTTTrigResidualCorr.connect, DTDQMHarvesting.DTDQMHarvesting.connect, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.connect, ora::ConnectionPool.connect(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect, ShallowTree::BranchConnector.connect(), DTDQMValidation.DTDQMValidation.connect, ora::DatabaseSession.connect(), ShallowTree::TypedBranchConnector< T >.connect(), edm::ServiceToken.connect(), SimActivityRegistry.connect(), ora::Database.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< EndOfTrack >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< BeginOfTrack >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< BeginOfEvent >.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(), PhysicsTools::MLP.layout, and ProcMLP.layout.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

692  def createButton(self):
693  """ Creates a button and adds it to the property's layout.
694  """
695  self._button = QToolButton(self)
696  self._button.setText(self.BUTTON_LABEL)
697  self._button.setContentsMargins(0, 0, 0, 0)
698  self.connect(self._button, SIGNAL('clicked(bool)'), self.buttonClicked)
699  self.layout().addWidget(self._button)
700 
701  if self.autohideButtonFlag:
702  self._button.hide()
def Vispa.Views.PropertyView.TextEditWithButtonProperty.createLineEdit (   self,
  value = None 
)
This function creates the signle line text field and adds it to the property's layout. 

Definition at line 646 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._lineEdit, options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), HCALConfigDB.connect(), TestBase.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigProd.DTTTrigProd.connect, DTTTrigValid.DTTTrigValid.connect, DTResidualCalibration.DTResidualCalibration.connect, DTTTrigResidualCorr.DTTTrigResidualCorr.connect, DTDQMHarvesting.DTDQMHarvesting.connect, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.connect, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect, ora::ConnectionPool.connect(), ShallowTree::BranchConnector.connect(), DTDQMValidation.DTDQMValidation.connect, ora::DatabaseSession.connect(), edm::ServiceToken.connect(), ShallowTree::TypedBranchConnector< T >.connect(), SimActivityRegistry.connect(), ora::Database.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< EndOfTrack >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< BeginOfTrack >.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(), PhysicsTools::MLP.layout, ProcMLP.layout, Vispa.Views.PropertyView.PropertyView.valueChanged(), Vispa.Views.PropertyView.Property.valueChanged(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().

647  def createLineEdit(self, value=None):
648  """ This function creates the signle line text field and adds it to the property's layout.
649  """
650  self._lineEdit = QLineEdit(self)
651  self._lineEdit.setFrame(False)
652  self.connect(self._lineEdit, SIGNAL('editingFinished()'), self.valueChanged)
653  self._lineEdit.setContentsMargins(0, 0, 0, 0)
654  self._lineEdit.setSizePolicy(QSizePolicy(QSizePolicy.Expanding, QSizePolicy.MinimumExpanding))
655  self.layout().addWidget(self._lineEdit)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.createTextEdit (   self,
  value = None 
)
This function creates the multi line text field and adds it to the property's layout. 

Definition at line 656 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._textEdit, options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), HCALConfigDB.connect(), TestBase.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigProd.DTTTrigProd.connect, DTTTrigValid.DTTTrigValid.connect, DTResidualCalibration.DTResidualCalibration.connect, DTTTrigResidualCorr.DTTTrigResidualCorr.connect, DTDQMHarvesting.DTDQMHarvesting.connect, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.connect, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect, ora::ConnectionPool.connect(), ShallowTree::BranchConnector.connect(), DTDQMValidation.DTDQMValidation.connect, ora::DatabaseSession.connect(), edm::ServiceToken.connect(), ShallowTree::TypedBranchConnector< T >.connect(), SimActivityRegistry.connect(), ora::Database.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< EndOfTrack >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< BeginOfJob >.connect(), sim_act::Signaler< BeginOfTrack >.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(), PhysicsTools::MLP.layout, ProcMLP.layout, Vispa.Views.PropertyView.PropertyView.valueChanged(), Vispa.Views.PropertyView.Property.valueChanged(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().

657  def createTextEdit(self, value=None):
658  """ This function creates the multi line text field and adds it to the property's layout.
659  """
660  self._textEdit = TextEdit(self)
661  self._textEdit.setWordWrapMode(QTextOption.NoWrap)
662  self._textEdit.setFrameStyle(QFrame.NoFrame)
663  self.connect(self._textEdit, SIGNAL('editingFinished()'), self.valueChanged)
664  self._textEdit.setContentsMargins(0, 0, 0, 0)
665  self._textEdit.setSizePolicy(QSizePolicy(QSizePolicy.Expanding, QSizePolicy.MinimumExpanding))
666  self.layout().addWidget(self._textEdit)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.enterEvent (   self,
  event 
)
If autohideButtonFlag is set this function makes the button visible. See setAutohideButton(). 

Definition at line 759 of file PropertyView.py.

References Vispa.Views.PropertyView.PropertyView._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty.autohideButtonFlag, and Vispa.Views.PropertyView.TextEditWithButtonProperty.hasButton().

760  def enterEvent(self, event):
761  """ If autohideButtonFlag is set this function makes the button visible. See setAutohideButton().
762  """
763  if self.autohideButtonFlag and self.hasButton() and not self._readOnly:
764  self._button.show()
def Vispa.Views.PropertyView.TextEditWithButtonProperty.hasButton (   self)
Returns True if the button has been created, otherwise False is returned. 

Definition at line 708 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._button.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.enterEvent(), Vispa.Views.PropertyView.TextEditWithButtonProperty.leaveEvent(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

709  def hasButton(self):
710  """ Returns True if the button has been created, otherwise False is returned.
711  """
712  return self._button != None
def Vispa.Views.PropertyView.TextEditWithButtonProperty.keyPressEvent (   self,
  event 
)
Switch back to the original value on ESC.

Definition at line 792 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._originalValue, HcalCholeskyMatrix.setValue(), HcalCovarianceMatrix.setValue(), FWIntValueListenerBase.setValue(), EcalTPGSlidingWindow.setValue(), EcalTPGStripStatus.setValue(), EcalTPGFineGrainTowerEE.setValue(), EcalTPGTowerStatus.setValue(), EcalTPGSpike.setValue(), EcalTPGWeightIdMap.setValue(), EcalTPGFineGrainEBIdMap.setValue(), ESTBWeights.setValue(), EcalTPGLutIdMap.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(), and Vispa.Views.PropertyView.Property.setValue().

793  def keyPressEvent(self,event):
794  """ Switch back to the original value on ESC.
795  """
796  QWidget.keyPressEvent(self,event)
797  if event.key()==Qt.Key_Escape:
798  self.setValue(self._originalValue)
799 
def Vispa.Views.PropertyView.TextEditWithButtonProperty.leaveEvent (   self,
  event 
)
If autohideButtonFlag is set this function makes the button invisible. See setAutohideButton(). 

Definition at line 765 of file PropertyView.py.

References Vispa.Views.PropertyView.PropertyView._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty.autohideButtonFlag, and Vispa.Views.PropertyView.TextEditWithButtonProperty.hasButton().

766  def leaveEvent(self, event):
767  """ If autohideButtonFlag is set this function makes the button invisible. See setAutohideButton().
768  """
769  if self.autohideButtonFlag and self.hasButton() and not self._readOnly:
770  self._button.hide()
def Vispa.Views.PropertyView.TextEditWithButtonProperty.lineEdit (   self)
Returns line edit.

Definition at line 681 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._lineEdit.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

682  def lineEdit(self):
683  """ Returns line edit.
684  """
685  return self._lineEdit
def Vispa.Views.PropertyView.TextEditWithButtonProperty.properyHeight (   self)
Return the estimated height of the property.

The returned height covers the whole text, even if multiline.

Definition at line 667 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline, Vispa.Views.PropertyView.Property.DEFAULT_HEIGHT, and findQualityFiles.size.

668  def properyHeight(self):
669  """ Return the estimated height of the property.
670 
671  The returned height covers the whole text, even if multiline.
672  """
673  if self._multiline:
674  self._textEdit.document().adjustSize()
675  height=self._textEdit.document().size().height()+3
676  if self._textEdit.horizontalScrollBar().isVisible():
677  height+=self._textEdit.horizontalScrollBar().height()+3
678  return height
679  else:
680  return self.DEFAULT_HEIGHT
tuple size
Write out results.
def Vispa.Views.PropertyView.TextEditWithButtonProperty.readOnly (   self)

Definition at line 730 of file PropertyView.py.

References Vispa.Views.PropertyView.PropertyView._readOnly, and Vispa.Views.PropertyView.TextEditWithButtonProperty._readOnly.

731  def readOnly(self):
732  return self._readOnly
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setAutohideButton (   self,
  hide 
)
If hide is True the button will only be visible while the cursor is over the property. 

Definition at line 747 of file PropertyView.py.

748  def setAutohideButton(self, hide):
749  """ If hide is True the button will only be visible while the cursor is over the property.
750  """
751  self.autohideButtonFlag = hide
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setHighlighted (   self,
  highlight 
)
Highlight the property by changing the background color of the textfield.

Definition at line 781 of file PropertyView.py.

782  def setHighlighted(self,highlight):
783  """ Highlight the property by changing the background color of the textfield.
784  """
785  p=QPalette()
786  if highlight:
787  p.setColor(QPalette.Active, QPalette.ColorRole(9),Qt.red)
788  else:
789  p.setColor(QPalette.Active, QPalette.ColorRole(9),Qt.white)
790  self._lineEdit.setPalette(p)
791  self._textEdit.viewport().setPalette(p)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline (   self,
  multi 
)
Switch between single and multi line mode.

Definition at line 632 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._lineEdit, Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline, Vispa.Views.PropertyView.TextEditWithButtonProperty._textEdit, HcalCholeskyMatrix.setValue(), HcalCovarianceMatrix.setValue(), FWIntValueListenerBase.setValue(), EcalTPGSlidingWindow.setValue(), EcalTPGStripStatus.setValue(), EcalTPGTowerStatus.setValue(), EcalTPGFineGrainTowerEE.setValue(), EcalTPGSpike.setValue(), EcalTPGWeightIdMap.setValue(), EcalTPGFineGrainEBIdMap.setValue(), ESTBWeights.setValue(), EcalTPGLutIdMap.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(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue().

Referenced by Vispa.Views.PropertyView.StringProperty.buttonClicked().

633  def setMultiline(self,multi):
634  """ Switch between single and multi line mode.
635  """
636  self.setValue(self.strValue())
637  self._multiline=multi
638  if self._multiline:
639  self._textEdit.show()
640  self._lineEdit.hide()
641  self.setFocusProxy(self._textEdit)
642  else:
643  self._lineEdit.show()
644  self._textEdit.hide()
645  self.setFocusProxy(self._lineEdit)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly (   self,
  readOnly 
)
Switch between readonly and editable.

Definition at line 713 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._button, Vispa.Views.PropertyView.TextEditWithButtonProperty._lineEdit, Vispa.Views.PropertyView.PropertyView._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty._readOnly, Vispa.Views.PropertyView.TextEditWithButtonProperty._textEdit, options.ConnectionL1TMenu.connect, ConnectionManager.connect(), RPCDBCom.connect(), HCALConfigDB.connect(), TestBase.connect(), ReadBase.connect(), l1t::DataManager.connect(), cond::Logger.connect(), DTNoiseCalibration.DTNoiseCalibration.connect, DTTTrigProd.DTTTrigProd.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(), ShallowTree::TypedBranchConnector< T >.connect(), edm::ServiceToken.connect(), ora::Database.connect(), SimActivityRegistry.connect(), sim_act::Signaler< G4Step >.connect(), sim_act::Signaler< EndOfEvent >.connect(), sim_act::Signaler< DDDWorld >.connect(), sim_act::Signaler< T >.connect(), sim_act::Signaler< BeginOfRun >.connect(), sim_act::Signaler< EndOfTrack >.connect(), sim_act::Signaler< EndOfRun >.connect(), sim_act::Signaler< BeginOfEvent >.connect(), sim_act::Signaler< BeginOfTrack >.connect(), sim_act::Signaler< BeginOfJob >.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(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton(), ConnectionManager.disconnect(), lumi::service::DBService.disconnect(), HCALConfigDB.disconnect(), evf::MasterQueue.disconnect(), ora::DatabaseSession.disconnect(), ora::Database.disconnect(), evf::SubProcess.disconnect(), cond::service::PoolDBOutputService.disconnect(), Vispa.Views.PropertyView.TextEditWithButtonProperty.hasButton(), Vispa.Views.PropertyView.TextEditWithButtonProperty.lineEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty.textEdit(), Vispa.Views.PropertyView.PropertyView.valueChanged(), Vispa.Views.PropertyView.Property.valueChanged(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().

714  def setReadOnly(self, readOnly):
715  """ Switch between readonly and editable.
716  """
717  self._readOnly = readOnly
718  if not self.lineEdit().isReadOnly() and readOnly:
719  self.disconnect(self._lineEdit, SIGNAL('editingFinished()'), self.valueChanged)
720  self.disconnect(self._textEdit, SIGNAL('editingFinished()'), self.valueChanged)
721  if self.hasButton():
722  self._button=None
723  if self.lineEdit().isReadOnly() and not readOnly:
724  self.connect(self._lineEdit, SIGNAL('editingFinished()'), self.valueChanged)
725  self.connect(self._textEdit, SIGNAL('editingFinished()'), self.valueChanged)
726  if not self.hasButton():
727  self.createButton()
728  self.lineEdit().setReadOnly(readOnly)
729  self.textEdit().setReadOnly(readOnly)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setToolTip (   self,
  text 
)

Definition at line 628 of file PropertyView.py.

Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem.__init__(), Vispa.Views.PropertyView.FileProperty.__init__(), Vispa.Views.PropertyView.FileVectorProperty.__init__(), Vispa.Gui.PortWidget.PortWidget.setName(), Vispa.Gui.VispaWidget.VispaWidget.setText(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.valueChanged().

629  def setToolTip(self,text):
630  self._lineEdit.setToolTip(text)
631  self._textEdit.setToolTip(text)
def Vispa.Views.PropertyView.TextEditWithButtonProperty.setValue (   self,
  value 
)
Sets value of text edit.

Definition at line 607 of file PropertyView.py.

608  def setValue(self, value):
609  """ Sets value of text edit.
610  """
611  self._originalValue=value
612  if value != None:
613  strValue = str(value)
614  else:
615  strValue = ""
616  if not self._readOnly:
617  self.disconnect(self._lineEdit, SIGNAL('editingFinished()'), self.valueChanged)
618  self.disconnect(self._textEdit, SIGNAL('editingFinished()'), self.valueChanged)
619  self._lineEdit.setText(strValue)
620  self._textEdit.setText(strValue)
621  self.setToolTip(strValue)
622  if not self._readOnly:
623  self.connect(self._lineEdit, SIGNAL('editingFinished()'), self.valueChanged)
624  self.connect(self._textEdit, SIGNAL('editingFinished()'), self.valueChanged)
625  # TODO: sometimes when changing value the text edit appears to be empty when new text is shorter than old text
626  #if not self._multiline:
627  # self._textEdit.setCursorPosition(self._textEdit.displayText().length())
def Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue (   self)
Returns value of text edit.

Definition at line 733 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline.

Referenced by Vispa.Views.PropertyView.StringProperty.buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline(), Vispa.Views.PropertyView.TextEditWithButtonProperty.value(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.valueChanged().

734  def strValue(self):
735  """ Returns value of text edit.
736  """
737  if not self._multiline:
738  return str(self._lineEdit.text().toAscii())
739  else:
740  return str(self._textEdit.toPlainText().toAscii())
741  return ""
def Vispa.Views.PropertyView.TextEditWithButtonProperty.textEdit (   self)
Returns text edit.

Definition at line 686 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._textEdit.

Referenced by Vispa.Views.PropertyView.FileProperty.buttonClicked(), Vispa.Views.PropertyView.FileVectorProperty.buttonClicked(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

687  def textEdit(self):
688  """ Returns text edit.
689  """
690  return self._textEdit
def Vispa.Views.PropertyView.TextEditWithButtonProperty.value (   self)
Returns the value of correct type (in case its not a string).

Definition at line 742 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue().

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

743  def value(self):
744  """ Returns the value of correct type (in case its not a string).
745  """
746  return self.strValue()
def Vispa.Views.PropertyView.TextEditWithButtonProperty.valueChanged (   self)
Update tooltip and height when text is changed.

Definition at line 771 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline, Vispa.Views.PropertyView.TextEditWithButtonProperty.button(), edm::ELlog4cplus.emit(), CSGAction.setToolTip(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setToolTip(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue().

772  def valueChanged(self):
773  """ Update tooltip and height when text is changed.
774  """
775  if self._multiline:
776  self.emit(SIGNAL('updatePropertyHeight'),self)
777  self.setToolTip(self.strValue())
778  # set property only if button is not being pressed
779  if not self.button() or not self.button().isDown():
780  Property.valueChanged(self)

Member Data Documentation

Vispa.Views.PropertyView.TextEditWithButtonProperty._button
private

Definition at line 591 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.button(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton(), Vispa.Views.PropertyView.TextEditWithButtonProperty.hasButton(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

Vispa.Views.PropertyView.TextEditWithButtonProperty._lineEdit
private

Definition at line 589 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.createLineEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty.lineEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

Vispa.Views.PropertyView.TextEditWithButtonProperty._multiline
private

Definition at line 599 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.StringProperty.buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty.properyHeight(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline(), Vispa.Views.PropertyView.TextEditWithButtonProperty.strValue(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.valueChanged().

Vispa.Views.PropertyView.TextEditWithButtonProperty._originalValue
private

Definition at line 610 of file PropertyView.py.

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

Vispa.Views.PropertyView.TextEditWithButtonProperty._readOnly
private

Definition at line 598 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.enterEvent(), Vispa.Views.PropertyView.TextEditWithButtonProperty.leaveEvent(), Vispa.Views.PropertyView.TextEditWithButtonProperty.readOnly(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly().

Vispa.Views.PropertyView.TextEditWithButtonProperty._textEdit
private

Definition at line 590 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.createTextEdit(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setMultiline(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.textEdit().

Vispa.Views.PropertyView.TextEditWithButtonProperty.AUTOHIDE_BUTTON = True
static

Definition at line 582 of file PropertyView.py.

Vispa.Views.PropertyView.TextEditWithButtonProperty.autohideButtonFlag

Definition at line 750 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton(), Vispa.Views.PropertyView.TextEditWithButtonProperty.enterEvent(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.leaveEvent().

string Vispa.Views.PropertyView.TextEditWithButtonProperty.BUTTON_LABEL = ''
static

Definition at line 581 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton().