Static Public Attributes | |
tuple | staticSupportedFileTypes = staticmethod(staticSupportedFileTypes) |
int | TAB_LABEL_MAX_LENGTH = 20 |
Base class for all tab controllers. Tab controllers control the functionality of plugin tabs.
Definition at line 11 of file TabController.py.
def Vispa.Main.TabController.TabController.__init__ | ( | self, | |
plugin | |||
) |
Definition at line 19 of file TabController.py.
def Vispa.Main.TabController.TabController.activated | ( | self | ) |
Called by application when tab is activated in tabWidget. This function should be overwritten if special treatment on tab selection is required.
Definition at line 365 of file TabController.py.
def Vispa.Main.TabController.TabController.addUndoEvent | ( | self, | |
undoEvent | |||
) |
Adds event of type UndoEvent to this tab controller's list of undoable events. Undo can be invoked by calling undo().
Definition at line 542 of file TabController.py.
References Vispa.Main.TabController.TabController._redoEvents, Vispa.Main.TabController.TabController._supportsUndo, Vispa.Main.TabController.TabController._undoEvents, Vispa.Main.TabController.TabController.isModified(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), and Vispa.Main.TabController.TabController.setLastSavedStateEvent().
def Vispa.Main.TabController.TabController.allowClose | ( | self | ) |
Definition at line 271 of file TabController.py.
References Vispa.Main.TabController.TabController.isEditable(), Vispa.Main.TabController.TabController.isModified(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), TrackerMap.save(), PileUpProducer.save(), l1t::WriterProxy.save(), TkHistoMap.save(), l1t::WriterProxyT< Record, Type >.save(), NuclearInteractionSimulator.save(), MaterialEffects.save(), CommissioningHistograms.save(), Vispa.Main.TabController.TabController.save(), DQMStore.save(), and svgfig.SVG.save().
Referenced by Vispa.Main.TabController.TabController.close().
def Vispa.Main.TabController.TabController.allowSelectAll | ( | self | ) |
Evaluates the sllowSelectAll flag.
Definition at line 188 of file TabController.py.
References Vispa.Main.TabController.TabController._allowSelectAllFlag.
def Vispa.Main.TabController.TabController.cancel | ( | self | ) |
Cancel all operations in tab. This function is called when all current operations in tab shall be canceled.
Definition at line 512 of file TabController.py.
Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.close(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.first(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.goto(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.last(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.next(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.previous(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.readFile(), Vispa.Views.TreeView.TreeView.updateContent(), Vispa.Views.LineDecayView.LineDecayView.updateContent(), Vispa.Views.TableView.TableView.updateContent(), Vispa.Views.BoxDecayView.BoxDecayView.updateContent(), and Vispa.Views.PropertyView.PropertyView.updateContent().
def Vispa.Main.TabController.TabController.checkModificationTimestamp | ( | self | ) |
Compares the actual modification timestamp of self.filename() to the modification at opening or last save operation. This function is called by Application when the tab associated with this controller was activated. If modification timestamps differ the refresh() method is called.
Definition at line 312 of file TabController.py.
References Vispa.Main.TabController.TabController._fileModifcationTimestamp, Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Main.TabController.TabController._showingModifiedMessageFlag, Vispa.Main.TabController.TabController.isEditable(), cond::IOVProxyData.refresh(), cond::BasePayloadProxy.refresh(), cond::IOVProxy.refresh(), MELaserPrim.refresh(), Vispa.Main.TabController.TabController.refresh(), TrackerMap.save(), PileUpProducer.save(), l1t::WriterProxy.save(), TkHistoMap.save(), l1t::WriterProxyT< Record, Type >.save(), NuclearInteractionSimulator.save(), MaterialEffects.save(), CommissioningHistograms.save(), Vispa.Main.TabController.TabController.save(), DQMStore.save(), svgfig.SVG.save(), and Vispa.Main.TabController.TabController.setModified().
def Vispa.Main.TabController.TabController.close | ( | self | ) |
Asks user if he wants to save potentially unsaved data and closes the tab. This function usually does not need to be overwritten by a PluginTab.
Definition at line 285 of file TabController.py.
References Vispa.Main.TabController.TabController.allowClose(), Vispa.Main.TabController.TabController.tab(), and RawParticle.tab.
Referenced by lumiQTWidget.ApplicationWindow.fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog.keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog.keyPressEvent().
def Vispa.Main.TabController.TabController.copy | ( | self | ) |
Handle copy event. This function is called if the user selects 'Copy' from menu. PluginTabs should override it if needed. See also setCopyPasteEnabled(), isCopyPasteEnabled().
Definition at line 380 of file TabController.py.
def Vispa.Main.TabController.TabController.cut | ( | self | ) |
Handle cut event. This function is called if the user selects 'Cut' from menu. PluginTabs should override it if needed. See also setCopyPasteEnabled(), isCopyPasteEnabled().
Definition at line 372 of file TabController.py.
def Vispa.Main.TabController.TabController.dumpUndoEvents | ( | self | ) |
Definition at line 631 of file TabController.py.
References Vispa.Main.TabController.TabController._redoEvents, and Vispa.Main.TabController.TabController._undoEvents.
If enable is True this controller enables its undo function. For any tab controller that wants to use this feature, it needs to be made sure the corresponding UndoEvents for actions that should be undoable exists and are added by addUndoEvent().
Definition at line 524 of file TabController.py.
References Vispa.Main.TabController.TabController._supportsUndo.
def Vispa.Main.TabController.TabController.filename | ( | self | ) |
Returns filename of this tab.
Definition at line 79 of file TabController.py.
References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, and TrackerGeometryCompare._filename.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties().
def Vispa.Main.TabController.TabController.find | ( | self | ) |
Handle find event. This function is called if the user selects 'Find' from menu. PluginTabs should override it if needed." See also setFindEnabled(), isFindEnabled().
Definition at line 396 of file TabController.py.
def Vispa.Main.TabController.TabController.getFileBasename | ( | self | ) |
Returns the basename of this tab's filename. Part of filename after last /.
Definition at line 84 of file TabController.py.
References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, and TrackerGeometryCompare._filename.
def Vispa.Main.TabController.TabController.isCopyPasteEnabled | ( | self | ) |
Return True if the copyPasteFlag is set. See setCopyPasteEnabled(), cut(), copy(), paste().
Definition at line 98 of file TabController.py.
References Vispa.Main.TabController.TabController._copyPasteEnabledFlag.
def Vispa.Main.TabController.TabController.isEditable | ( | self | ) |
Evaluates the file Editable flag.
Definition at line 177 of file TabController.py.
References Vispa.Main.TabController.TabController._isEditableFlag.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.activated(), Vispa.Main.TabController.TabController.allowClose(), Vispa.Main.TabController.TabController.checkModificationTimestamp(), Vispa.Main.TabController.TabController.setModified(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView().
def Vispa.Main.TabController.TabController.isFindEnabled | ( | self | ) |
Returns True if findEnabledFlag is set. See setFindEnabled(), find().
Definition at line 112 of file TabController.py.
References Vispa.Main.TabController.TabController._findEnabledFlag.
def Vispa.Main.TabController.TabController.isModified | ( | self | ) |
Evaluates the file Modified flag. Always returns True if no filename is set.
Definition at line 165 of file TabController.py.
References Vispa.Main.TabController.TabController._fileModifiedFlag.
Referenced by Vispa.Main.TabController.TabController.addUndoEvent(), Vispa.Main.TabController.TabController.allowClose(), and Vispa.Main.TabController.TabController.updateLabel().
Open given file.
Definition at line 193 of file TabController.py.
References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), SurveyDataReader.readFile(), SurveyInputTextReader.readFile(), DeviationsFromFileSensor2D.readFile(), edm::IEventProcessor.readFile(), edm::InputSource.readFile(), Vispa.Main.TabController.TabController.readFile(), edm::EventProcessor.readFile(), DQMStore.readFile(), Vispa.Main.TabController.TabController.setFilename(), Vispa.Main.TabController.TabController.updateContent(), and Vispa.Main.TabController.TabController.updateLabel().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig().
def Vispa.Main.TabController.TabController.paste | ( | self | ) |
Handle paste event. This function is called if the user selects 'Paste' from menu. PluginTabs should override it if needed." See also setCopyPasteEnabled(), isCopyPasteEnabled().
Definition at line 388 of file TabController.py.
def Vispa.Main.TabController.TabController.plugin | ( | self | ) |
Returns the plugin reference, set by setPlugin().
Definition at line 57 of file TabController.py.
References Vispa.Main.TabController.TabController._plugin.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.activated(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.activated(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.activated(), Vispa.Main.TabController.TabController.addUndoEvent(), Vispa.Main.TabController.TabController.allowClose(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.centerViewMenuButtonClicked(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerViewMenuButtonClicked(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.codeSelected(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.currentCenterViewClassId(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.dumpPython(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.enableCenterViewSelectionMenu(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.eventContent(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.exportDot(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.goto(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.history(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.loadIni(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.loadIni(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.loadIni(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.navigate(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.onSelected(), Vispa.Main.TabController.TabController.open(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.readFile(), Vispa.Main.TabController.TabController.redo(), Vispa.Main.TabController.TabController.refresh(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.removeButtonClicked(), Vispa.Main.TabController.TabController.save(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.save(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.saveIni(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.saveIni(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.saveIni(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.select(), Vispa.Main.TabController.TabController.setAllowSelectAll(), Vispa.Main.TabController.TabController.setEditable(), Vispa.Main.TabController.TabController.setModified(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.treeViewMenuButtonClicked(), Vispa.Main.TabController.TabController.undo(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateCenterView(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateCenterView(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateContent(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.updateEventNumberDisplay(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu(), and Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateViewMenu().
def Vispa.Main.TabController.TabController.readFile | ( | self, | |
filename | |||
) |
This function performs the actual reading of a file. It should be overwritten by any PluginTab which inherits Tab. If the reading was successful True should be returned. The file should be read from the file given in the argument filename not to the one in self._filename.
Definition at line 218 of file TabController.py.
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.navigate(), Vispa.Main.TabController.TabController.open(), and Vispa.Main.TabController.TabController.refresh().
def Vispa.Main.TabController.TabController.redo | ( | self, | |
numberOfEvents = 1 |
|||
) |
Definition at line 588 of file TabController.py.
References Vispa.Main.TabController.TabController._redoEvents, Vispa.Main.TabController.TabController._supportsUndo, Vispa.Main.TabController.TabController._undoEvents, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), and Vispa.Main.TabController.TabController.setModified().
def Vispa.Main.TabController.TabController.redoEvents | ( | self | ) |
Returns list of all UndoEvents that have already been undone before.
Definition at line 537 of file TabController.py.
References Vispa.Main.TabController.TabController._redoEvents.
def Vispa.Main.TabController.TabController.refresh | ( | self | ) |
Reloads file content and refreshes tab. May be implemented by inheriting controllers.
Definition at line 490 of file TabController.py.
References Vispa.Main.TabController.TabController._fileModifcationTimestamp, Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), SurveyDataReader.readFile(), SurveyInputTextReader.readFile(), DeviationsFromFileSensor2D.readFile(), edm::IEventProcessor.readFile(), edm::InputSource.readFile(), Vispa.Main.TabController.TabController.readFile(), edm::EventProcessor.readFile(), DQMStore.readFile(), and Vispa.Main.TabController.TabController.updateContent().
Referenced by Vispa.Main.TabController.TabController.checkModificationTimestamp().
def Vispa.Main.TabController.TabController.resetZoomButtonPressedBefore | ( | self | ) |
Sets the zoom button pressed before flag to False. If the flag is set functions handling the zoom toolbar buttons (zoomHundred(), zoomAll()) wont store the last zoom factor. The flag is set to true by these functions. By this mechanism the user can click the zoom buttons several times and will still be able to return to his orignal zoom level by zoomUser(). The reset function needs to be called if the user manually sets the zoom level. For instance by connecting this function to the wheelEvent of the workspace scroll area.
Definition at line 433 of file TabController.py.
References Vispa.Main.TabController.TabController._zoomButtonPressedBeforeFlag.
def Vispa.Main.TabController.TabController.save | ( | self, | |
filename = "" |
|||
) |
Takes care the tab's data will be written to the file given as argument or if this is an empty string to self._filename. Whenever the content of the tab should be saved, this method should be called. If no filename is specified nor already set set it asks the user to set one. Afterwards the writing is initiated by calling writeFile().
Definition at line 226 of file TabController.py.
References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Main.TabController.TabController._redoEvents, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), Vispa.Main.TabController.TabController.setFilename(), Vispa.Main.TabController.TabController.setLastSavedStateEvent(), Vispa.Main.TabController.TabController.setModified(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, Vispa.Main.TabController.TabController.updateLabel(), popcon::EcalTPGLutIdMapHandler.writeFile(), popcon::EcalTPGPhysicsConstHandler.writeFile(), popcon::EcalTPGLinConstHandler.writeFile(), popcon::EcalTPGWeightIdMapHandler.writeFile(), popcon::EcalTPGFineGrainEBIdMapHandler.writeFile(), popcon::EcalTPGBadXTHandler.writeFile(), popcon::EcalTPGBadStripHandler.writeFile(), popcon::EcalTPGBadTTHandler.writeFile(), popcon::EcalTPGFineGrainEBGroupHandler.writeFile(), popcon::EcalTPGFineGrainTowerEEHandler.writeFile(), popcon::EcalTPGWeightGroupHandler.writeFile(), popcon::EcalTPGFineGrainStripEEHandler.writeFile(), popcon::EcalTPGPedestalsHandler.writeFile(), popcon::EcalTPGSlidingWindowHandler.writeFile(), popcon::EcalTPGSpikeThresholdHandler.writeFile(), popcon::EcalTPGLutGroupHandler.writeFile(), and Vispa.Main.TabController.TabController.writeFile().
Referenced by Vispa.Main.TabController.TabController.allowClose(), and Vispa.Main.TabController.TabController.checkModificationTimestamp().
def Vispa.Main.TabController.TabController.selectAll | ( | self | ) |
Handle to perform select all action. This function is called if the user selects 'Select all' from menu. PluginTabs should override it if needed." See also setAllowSelectAll(), allowSelectAll().
Definition at line 404 of file TabController.py.
def Vispa.Main.TabController.TabController.setAllowSelectAll | ( | self, | |
allowSelectAll | |||
) |
Sets the allowSelectAll flag.
Definition at line 182 of file TabController.py.
References Vispa.Main.TabController.TabController._allowSelectAllFlag, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), and Vispa.Main.Application.Application.plugin().
Sets a flag indicating whether this tab can handle copy and paste events. See also isCopyPasteEnabled(), cut(), copy(), paste().
Definition at line 91 of file TabController.py.
References Vispa.Main.TabController.TabController._copyPasteEnabledFlag.
def Vispa.Main.TabController.TabController.setEditable | ( | self, | |
editable | |||
) |
Sets the file Editable flag.
Definition at line 170 of file TabController.py.
References Vispa.Main.TabController.TabController._isEditableFlag, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), and Vispa.Main.Application.Application.plugin().
Referenced by Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.__init__(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode().
def Vispa.Main.TabController.TabController.setFilename | ( | self, | |
filename | |||
) |
Sets a filename.
Definition at line 72 of file TabController.py.
References Vispa.Main.TabController.TabController._fileModifcationTimestamp, Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, and TrackerGeometryCompare._filename.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig(), Vispa.Main.TabController.TabController.open(), Vispa.Main.TabController.TabController.save(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode().
Sets a flag indicating whether this tab can handle find requests. See isFindEnabled(), find().
Definition at line 105 of file TabController.py.
References Vispa.Main.TabController.TabController._findEnabledFlag.
def Vispa.Main.TabController.TabController.setLastSavedStateEvent | ( | self, | |
undoEvent | |||
) |
Sets last saved state flag of given UndoEvent to True and to False for all other events.
Definition at line 622 of file TabController.py.
References Vispa.Main.TabController.TabController._redoEvents, and Vispa.Main.TabController.TabController._undoEvents.
Referenced by Vispa.Main.TabController.TabController.addUndoEvent(), and Vispa.Main.TabController.TabController.save().
Sets the file Modified flag to True or False. This affects the closing of this tab. It is only possible to set the modification flag to True if the controller is editable (see isEditable()).
Definition at line 146 of file TabController.py.
References Vispa.Main.TabController.TabController._fileModifiedFlag, Vispa.Main.TabController.TabController.isEditable(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, and Vispa.Main.TabController.TabController.updateLabel().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.applyButtonClicked(), Vispa.Main.TabController.TabController.checkModificationTimestamp(), Vispa.Main.TabController.TabController.redo(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.removeButtonClicked(), Vispa.Main.TabController.TabController.save(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView(), Vispa.Main.TabController.TabController.undo(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged().
def Vispa.Main.TabController.TabController.setTab | ( | self, | |
tab | |||
) |
Sets tab.
Definition at line 62 of file TabController.py.
References Vispa.Main.TabController.TabController._tab.
def Vispa.Main.TabController.TabController.setZoom | ( | self, | |
zoom | |||
) |
This function has to be implemented by tab controllers who want to use the zoom toolbar. The implementation has to forward the zoom value to the Zoomable object for which the toolbar is set up. See also zoom()
Definition at line 412 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().
def Vispa.Main.TabController.TabController.staticSupportedFileTypes | ( | ) |
Static function returning all filetypes the tab controller can handle. Sub classes should reimplement this function. It returns a list with 2-tuples of the following form: ('extension', 'description of file type').
Definition at line 39 of file TabController.py.
def Vispa.Main.TabController.TabController.supportedFileFilters | ( | self | ) |
Definition at line 53 of file TabController.py.
References join().
def Vispa.Main.TabController.TabController.supportedFileTypes | ( | self | ) |
Returns staticSupportedFileTypes() of the class to which this object belongs.
Definition at line 48 of file TabController.py.
def Vispa.Main.TabController.TabController.supportsUndo | ( | self | ) |
Returns True if the this tab controller supports undo history.
Definition at line 519 of file TabController.py.
def Vispa.Main.TabController.TabController.tab | ( | self | ) |
Returns tab.
Definition at line 67 of file TabController.py.
References Vispa.Main.TabController.TabController._tab.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController._updateCode(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.activated(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.activated(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.applyButtonClicked(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.cancel(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.centerViewMenuButtonClicked(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerViewMenuButtonClicked(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.chooseEditor(), Vispa.Main.TabController.TabController.close(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.codeSelected(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.currentCenterViewClassId(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.dumpPython(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.eventContent(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.eventContent(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.expandToDepthDialog(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.exportDot(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.find(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.history(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importButtonClicked(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.isBusy(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.maximizeEditor(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.minimizeEditor(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.onCenterViewDoubleClicked(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.onSelected(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.onTreeViewSelected(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.openEditor(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.originalEditor(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.readFile(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.refresh(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.removeButtonClicked(), Vispa.Main.TabController.TabController.save(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.save(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.saveImage(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.scriptChanged(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.select(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.selectDataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setDataAccessor(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setEditable(), Vispa.Main.TabController.TabController.setModified(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setTab(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setZoom(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleCollapsed(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleUnderscoreProperties(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.treeViewMenuButtonClicked(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateCenterView(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateCenterView(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateCenterView(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateConfigHighlight(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateContent(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateContent(), Vispa.Main.TabController.TabController.updateLabel(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateTreeView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateViewMenu(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.updateViewMenu(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.valueChanged(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.zoom(), Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomChanged(), and Vispa.Main.TabController.TabController.zoomDialog().
def Vispa.Main.TabController.TabController.undo | ( | self, | |
numberOfEvents = 1 |
|||
) |
Invokes undo of last stored UndoEvent (see addUndoEvent()), if undo functionality is enabled.
Definition at line 563 of file TabController.py.
References Vispa.Main.TabController.TabController._supportsUndo, Vispa.Main.TabController.TabController._undoEvents, PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.plugin, lhef::FastJetAlgorithmWrapper.plugin, Vispa.Main.TabController.TabController.plugin(), Vispa.Main.Application.Application.plugin(), and Vispa.Main.TabController.TabController.setModified().
def Vispa.Main.TabController.TabController.undoEvents | ( | self | ) |
Returns list of all registered UndoEvents.
Definition at line 532 of file TabController.py.
References Vispa.Main.TabController.TabController._undoEvents.
def Vispa.Main.TabController.TabController.updateContent | ( | self | ) |
Called after file is loaded. Meant to update to Tab content.
Definition at line 483 of file TabController.py.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController._updateCode(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.filtered(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.navigate(), Vispa.Main.TabController.TabController.open(), Vispa.Main.TabController.TabController.refresh(), Vispa.Plugins.EdmBrowser.EventContentDialog.EventContentDialog.selectInputFile(), Vispa.Plugins.EdmBrowser.EventContentDialog.EventContentDialog.setConfigDataAccessor(), Vispa.Plugins.EdmBrowser.EventContentDialog.EventContentDialog.setEventContent(), and Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.toggleFilterBranches().
def Vispa.Main.TabController.TabController.updateLabel | ( | self, | |
prefix = "" , |
|||
titletext = "" |
|||
) |
Sets the text of the tab to filename if it is set. If titletext is not an emty string, it is used instead of the filename. Otherwise it is set to 'UNTITLED'. It also evaluates the fileModifiedFlag and indicates changes with an *.
Definition at line 119 of file TabController.py.
References Vispa.Main.TabController.TabController._filename, MuonGeometryArrange._filename, TrackerGeometryCompare._filename, Vispa.Main.TabController.TabController.isModified(), strip(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, and Vispa.Main.TabController.TabController.TAB_LABEL_MAX_LENGTH.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig(), Vispa.Main.TabController.TabController.open(), Vispa.Main.TabController.TabController.save(), Vispa.Main.TabController.TabController.setModified(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode().
def Vispa.Main.TabController.TabController.writeFile | ( | self, | |
filename | |||
) |
This function performs the actual writing / saving of a file. It should be overwritten by any PluginTab which inherits Tab. If the writing was successful True should be returned. The file should be written to the file given in the argument filename not to the one in self._filename. These variables may differ in case the user selects "save as..." and picks a new filename on a file which already has a name set. If writing was successful the self._filename variable will then be set to the value of filename.
Definition at line 302 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.save().
def Vispa.Main.TabController.TabController.zoom | ( | self | ) |
This function has to be implemented by tab controllers who want to use the zoom toolbar. The implementation should return the zoom value of the Zoomable object for which the toolbar is set up. See also setZoom()
Definition at line 420 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), and Vispa.Main.TabController.TabController.zoomHundred().
def Vispa.Main.TabController.TabController.zoomAll | ( | self | ) |
Zooms workspace content to fit optimal. Currently only works if scroll area is used and accessible through self.tab().scrollArea().
Definition at line 457 of file TabController.py.
References Vispa.Main.TabController.TabController._userZoomLevel, Vispa.Main.TabController.TabController._zoomButtonPressedBeforeFlag, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner.setZoom(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), Vispa.Main.TabController.TabController.setZoom(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, tablePrinter.width, Vispa.Gui.Zoomable.Zoomable.zoom(), and Vispa.Main.TabController.TabController.zoom().
def Vispa.Main.TabController.TabController.zoomChanged | ( | self, | |
zoom | |||
) |
Shows zoom value on main window's status bar.
Definition at line 428 of file TabController.py.
References Vispa.Main.TabController.TabController.tab(), and RawParticle.tab.
def Vispa.Main.TabController.TabController.zoomDialog | ( | self | ) |
Definition at line 501 of file TabController.py.
References Vispa.Main.TabController.TabController._userZoomLevel, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner.setZoom(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), Vispa.Main.TabController.TabController.setZoom(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Main.TabController.TabController.tab(), RawParticle.tab, Vispa.Gui.Zoomable.Zoomable.zoom(), and Vispa.Main.TabController.TabController.zoom().
def Vispa.Main.TabController.TabController.zoomHundred | ( | self | ) |
Sets zoom factor to 100 %.
Definition at line 448 of file TabController.py.
References Vispa.Main.TabController.TabController._userZoomLevel, Vispa.Main.TabController.TabController._zoomButtonPressedBeforeFlag, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner.setZoom(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), Vispa.Main.TabController.TabController.setZoom(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Gui.Zoomable.Zoomable.zoom(), and Vispa.Main.TabController.TabController.zoom().
def Vispa.Main.TabController.TabController.zoomUser | ( | self | ) |
Returns to the manually set zoom factor before zoomHundred() or zoomAll() were called.
Definition at line 442 of file TabController.py.
References Vispa.Main.TabController.TabController._userZoomLevel, Vispa.Gui.Zoomable.Zoomable.setZoom(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner.setZoom(), Vispa.Gui.ZoomableWidget.ZoomableWidget.setZoom(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.setZoom(), Vispa.Gui.PortConnection.PointToPointConnection.setZoom(), Vispa.Gui.ConnectableWidget.ConnectableWidget.setZoom(), Vispa.Main.TabController.TabController.setZoom(), and Vispa.Gui.VispaWidget.VispaWidget.setZoom().
|
private |
Definition at line 28 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.allowSelectAll(), and Vispa.Main.TabController.TabController.setAllowSelectAll().
|
private |
Definition at line 27 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.isCopyPasteEnabled(), and Vispa.Main.TabController.TabController.setCopyPasteEnabled().
|
private |
Definition at line 32 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.checkModificationTimestamp(), Vispa.Main.TabController.TabController.refresh(), and Vispa.Main.TabController.TabController.setFilename().
|
private |
Definition at line 23 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.isModified(), and Vispa.Main.TabController.TabController.setModified().
|
private |
Definition at line 26 of file TabController.py.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._readHeaderInfo(), Vispa.Main.TabController.TabController.checkModificationTimestamp(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.configFile(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.dumpPython(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.eventContent(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.exportDot(), Vispa.Main.TabController.TabController.filename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), Vispa.Main.TabController.TabController.getFileBasename(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.importConfig(), Vispa.Plugins.EventBrowser.EventBrowserTabController.EventBrowserTabController.navigate(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), Vispa.Main.TabController.TabController.open(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.open(), Vispa.Main.TabController.TabController.refresh(), Vispa.Main.TabController.TabController.save(), Vispa.Main.TabController.TabController.setFilename(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.startEditMode(), and Vispa.Main.TabController.TabController.updateLabel().
|
private |
Definition at line 29 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.isFindEnabled(), and Vispa.Main.TabController.TabController.setFindEnabled().
|
private |
Definition at line 24 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.isEditable(), and Vispa.Main.TabController.TabController.setEditable().
|
private |
Definition at line 22 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.plugin().
|
private |
Definition at line 36 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.addUndoEvent(), Vispa.Main.TabController.TabController.dumpUndoEvents(), Vispa.Main.TabController.TabController.redo(), Vispa.Main.TabController.TabController.redoEvents(), Vispa.Main.TabController.TabController.save(), and Vispa.Main.TabController.TabController.setLastSavedStateEvent().
|
private |
Definition at line 33 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.checkModificationTimestamp().
|
private |
Definition at line 34 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.addUndoEvent(), Vispa.Main.TabController.TabController.enableUndo(), Vispa.Main.TabController.TabController.redo(), Vispa.Main.TabController.TabController.supportsUndo(), and Vispa.Main.TabController.TabController.undo().
|
private |
Definition at line 25 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.setTab(), and Vispa.Main.TabController.TabController.tab().
|
private |
Definition at line 35 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.addUndoEvent(), Vispa.Share.UndoEvent.MultiUndoEvent.dump(), Vispa.Main.TabController.TabController.dumpUndoEvents(), Vispa.Share.UndoEvent.MultiUndoEvent.redo(), Vispa.Main.TabController.TabController.redo(), Vispa.Main.TabController.TabController.setLastSavedStateEvent(), Vispa.Share.UndoEvent.MultiUndoEvent.undo(), Vispa.Main.TabController.TabController.undo(), and Vispa.Main.TabController.TabController.undoEvents().
|
private |
Definition at line 30 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().
|
private |
Definition at line 31 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.resetZoomButtonPressedBefore(), Vispa.Main.TabController.TabController.zoomAll(), and Vispa.Main.TabController.TabController.zoomHundred().
|
static |
Definition at line 46 of file TabController.py.
|
static |
Definition at line 17 of file TabController.py.
Referenced by Vispa.Main.TabController.TabController.updateLabel().