CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, name, value, categoryName=None)
 
def buttonClicked (self, checked=False)
 
def isBusy (self)
 
def useRelativePaths (self, path)
 
- 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)
 

Private Attributes

 _relativePath
 

Additional Inherited Members

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

Detailed Description

TextEditWithButtonProperty which holds file names.

A button for opening a dialog allowing to choose a list of files is provided.

Definition at line 977 of file PropertyView.py.

Constructor & Destructor Documentation

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

Definition at line 986 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty.button(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setToolTip(), and Vispa.Views.PropertyView.Property.userInfo().

986  def __init__(self, name, value, categoryName=None):
987  TextEditWithButtonProperty.__init__(self, name, value, categoryName)
988  self.button().setToolTip(self.userInfo())
989 
def __init__(self, name, value, categoryName=None)

Member Function Documentation

def Vispa.Views.PropertyView.FileVectorProperty.buttonClicked (   self,
  checked = False 
)
Shows the file selection dialog. 

Definition at line 990 of file PropertyView.py.

References Vispa.Views.PropertyView.TextEditWithButtonProperty._originalValue, Vispa.Views.PropertyView.PropertyView._relativePath, Vispa.Views.PropertyView.FileProperty._relativePath, Vispa.Views.PropertyView.FileVectorProperty._relativePath, 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(), ESWeight.setValue(), EcalTPGFineGrainStripEE.setValue(), EcalWeight.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::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.setValue(), edm::TrieNode< T >.setValue(), L1GctInternHFData.setValue(), L1GctInternEtSum.setValue(), Measurement.setValue(), Vispa.Views.PropertyView.Property.setValue(), str, and Vispa.Views.PropertyView.TextEditWithButtonProperty.textEdit().

990  def buttonClicked(self, checked=False):
991  """ Shows the file selection dialog. """
992  if isinstance(self._originalValue, type(())) and len(self._originalValue)>0:
993  dir=os.path.dirname(self._originalValue[0])
994  elif self._relativePath:
995  dir=self._relativePath
996  else:
997  dir=QCoreApplication.instance().getLastOpenLocation()
998  fileList = QFileDialog.getOpenFileNames(
999  self,
1000  'Select a list of files',
1001  dir,
1002  '',
1003  None,
1004  QFileDialog.DontConfirmOverwrite)
1005  fileNames=[str(f) for f in fileList]
1006  if self._relativePath:
1007  nfileNames=[]
1008  for v in fileNames:
1009  if v.startswith(self._relativePath):
1010  nfileNames+=[v[len(self._relativePath):].lstrip("/")]
1011  else:
1012  nfileNames+=[v]
1013  fileNames=nfileNames
1014  if len(fileNames)>0:
1015  self.setValue(fileNames)
1016  self.textEdit().emit(SIGNAL('editingFinished()'))
1017 
#define str(s)
def Vispa.Views.PropertyView.FileVectorProperty.isBusy (   self)
def Vispa.Views.PropertyView.FileVectorProperty.useRelativePaths (   self,
  path 
)

Member Data Documentation

Vispa.Views.PropertyView.FileVectorProperty._relativePath
private