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 | 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__
 
def buttonClicked
 
def isBusy
 
def useRelativePaths
 
- 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

string BUTTON_LABEL = '...'
 
string USER_INFO = "Edit list of files."
 
- 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"
 

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

Constructor & Destructor Documentation

def Vispa.Views.PropertyView.FileVectorProperty.__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 988 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(), HcalCholeskyMatrix.setValue(), HcalCovarianceMatrix.setValue(), EcalTPGSlidingWindow.setValue(), EcalTPGFineGrainTowerEE.setValue(), EcalTPGStripStatus.setValue(), EcalTPGTowerStatus.setValue(), EcalTPGFineGrainEBIdMap.setValue(), EcalTPGSpike.setValue(), EcalTPGLutIdMap.setValue(), EcalTPGWeightIdMap.setValue(), ESTBWeights.setValue(), EcalPseudoStripInputSample.setValue(), EcalDCUTemperatures.setValue(), EcalTriggerPrimitiveSample.setValue(), EcalPTMTemperatures.setValue(), EcalTPGFineGrainStripEE.setValue(), EcalWeight.setValue(), ESWeight.setValue(), CalibCoeff.setValue(), EcalTBWeights.setValue(), L1MonitorDigi.setValue(), EcalTPGGroups.setValue(), EcalTPGPhysicsConst.setValue(), EcalLaserAPDPNRatios.setValue(), EcalTimeDependentCorrections.setValue(), HcalChannelStatus.setValue(), PixelPopConDCSSourceHandler< Type >.setValue(), EcalTrigPrimCompactColl.setValue(), EcalSrFlag.setValue(), CastorChannelStatus.setValue(), ESCondObjectContainer< T >.setValue(), DTHVAbstractCheck.setValue(), Entry.setValue(), EcalCondTowerObjectContainer< T >.setValue(), EcalCondObjectContainer< T >.setValue(), edm::TrieNode< T >.setValue(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.setValue(), SiPixelPerformanceSummary.setValue(), L1GctInternHFData.setValue(), L1GctInternEtSum.setValue(), Measurement.setValue(), Vispa.Views.PropertyView.Property.setValue(), and Vispa.Views.PropertyView.TextEditWithButtonProperty.textEdit().

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

Definition at line 1016 of file PropertyView.py.

References Vispa.Views.WidgetView.WidgetView._updatingFlag, Vispa.Views.TreeView.TreeView._updatingFlag, Vispa.Views.TableView.TableView._updatingFlag, Vispa.Views.RootCanvasView.RootCanvasView._updatingFlag, and Vispa.Views.PropertyView.PropertyView._updatingFlag.

1017  def isBusy(self):
1018  return self._updatingFlag>0
def Vispa.Views.PropertyView.FileVectorProperty.useRelativePaths (   self,
  path 
)

Definition at line 1019 of file PropertyView.py.

Member Data Documentation

Vispa.Views.PropertyView.FileVectorProperty._relativePath
private

Definition at line 1020 of file PropertyView.py.

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

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

Definition at line 982 of file PropertyView.py.

string Vispa.Views.PropertyView.FileVectorProperty.USER_INFO = "Edit list of files."
static

Definition at line 981 of file PropertyView.py.