CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
Vispa.Main.MainWindow.MainWindow Class Reference
Inheritance diagram for Vispa.Main.MainWindow.MainWindow:

Public Member Functions

def __init__ (self, application=None, title="VISPA")
 
def addTab (self, widget)
 
def addWindow (self, widget, width=None, height=None)
 
def application (self)
 
def changeEvent (self, event)
 
def closeEvent (self, event)
 
def createStartupScreen (self)
 
def editMenu (self)
 
def event (self, event)
 
def fileMenu (self)
 
def fileToolBar (self)
 
def helpMenu (self)
 
def isTabWidget (self, widget)
 
def keyPressEvent (self, event)
 
def newAnalysisDesignerSlot (self, checked=False)
 
def newPxlSlot (self, checked=False)
 
def openAnalysisFileSlot (self, checked=False)
 
def openPxlFileSlot (self, checked=False)
 
def resizeEvent (self, event)
 
def setStartupScreenVisible (self, show)
 
def startupScreen (self)
 
def tabWidget (self)
 
def tabWidgets (self)
 
def updateStartupScreenGeometry (self)
 

Private Member Functions

def _loadIni (self)
 
def _saveIni (self)
 

Private Attributes

 _application
 
 _editMenu
 
 _fileMenu
 
 _fileToolBar
 
 _helpMenu
 
 _justActivated
 
 _startupScreen
 
 _tabWidget
 

Detailed Description

Definition at line 13 of file MainWindow.py.

Constructor & Destructor Documentation

def Vispa.Main.MainWindow.MainWindow.__init__ (   self,
  application = None,
  title = "VISPA" 
)

Definition at line 19 of file MainWindow.py.

19  def __init__(self, application=None, title="VISPA"):
20  #logging.debug(__name__ + ": __init__")
21 
22  self._justActivated = False
23  self._startupScreen = None
24  self._application = application
25  QMainWindow.__init__(self)
26 
27  self._tabWidget = QTabWidget(self)
28  self._tabWidget.setSizePolicy(QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding))
29  self._tabWidget.setUsesScrollButtons(True)
30  self.setCentralWidget(self._tabWidget)
31  if hasattr(self._tabWidget,"setTabsClosable"):
32  self._tabWidget.setTabsClosable(True)
33 
34  if "vispa" in title.lower():
35  self.createStartupScreen()
36 
37  self._fileMenu = self.menuBar().addMenu("&File")
38  self._editMenu = self.menuBar().addMenu("&Edit")
39  self._helpMenu = self.menuBar().addMenu("&Help")
40 
41  self._fileToolBar = self.addToolBar("File")
42 
43  self.ensurePolished()
44  self.setWindowIcon(QIcon(":/resources/vispabutton.png"))
45  self.setWindowTitle(title)
46  self.statusBar()
47 
48  self._loadIni()
49  if self._startupScreen:
50  self._startupScreen.raise_()
52 
def __init__(self, application=None, title="VISPA")
Definition: MainWindow.py:19

Member Function Documentation

def Vispa.Main.MainWindow.MainWindow._loadIni (   self)
private
Load the window properties.

Definition at line 115 of file MainWindow.py.

References reco::TrackResiduals.resize(), LayerHitMapCache::SimpleCache.resize(), EZMgrVL< T >.resize(), StorageAccount.resize, LocalCacheFile.resize(), EZMgrFL< T >.resize(), DavixFile.resize(), StorageAccountProxy.resize(), LStoreFile.resize(), edm::stream::impl::dummy_vec.resize(), DCacheFile.resize(), HGCDataFrame< D, S >.resize(), BXVector< const l1t::l1t::L1Candidate * >.resize(), BXVector< const l1t::l1t::Muon * >.resize(), BXVector< l1t::Tau >.resize(), BXVector< T >.resize(), BXVector< const GlobalExtBlk * >.resize(), BXVector< RegionalMuonCand >.resize(), BXVector< const l1t::l1t::EtSum * >.resize(), BXVector< l1t::Muon >.resize(), Storage.resize(), GsfMaterialEffectsUpdator.resize(), FEDRawData.resize(), lhef::HEPRUP.resize(), FTLDataFrameT< D, S, DECODE >.resize(), XrdFile.resize(), File.resize(), EZArrayFL< T >.resize(), EZArrayFL< GlobalPoint >.resize(), SiPixelClusterShapeCache.resize(), Phase2ITPixelClusterShapeCache.resize(), edm::DataFrameContainer.resize(), L1GctProcessor::Pipeline< T >.resize(), edm::VecArray< T, N >.resize(), VecArray< reco::TrackBase::TrackAlgorithm, reco::TrackBase::algoSize >.resize(), edm::VecArray< std::pair< int, int >, 9 >.resize(), edm::VecArray< edm::ProductID, 2 >.resize(), L1GtfeExtWord.resize(), reco::FlavorHistoryEvent.resize(), lhef::HEPEUP.resize(), edm::soa::Table< Args >.resize(), Json::Value.resize(), edmNew::DetSetVector< T >::FastFiller.resize(), edmNew::DetSetVector< T >::TSFastFiller.resize(), DetSetVector< SiStripCluster >.resize(), edmNew::DetSetVector< T >.resize(), DetSetVector< ClusterType >.resize(), const_iterator.resize(), DetSetVector< T >.resize(), DetSetVector< SiPixelCluster >.resize(), TrackingNtuple::DetIdCommon.resize(), TrackingNtuple::DetIdOTCommon.resize(), Vispa.Gui.VispaWidget.VispaWidget.resize(), and TrackingNtuple::DetIdStripOnly.resize().

115  def _loadIni(self):
116  """ Load the window properties.
117  """
118  ini = self._application.ini()
119 
120  if ini.has_option("window", "width"):
121  width = ini.getint("window", "width")
122  else:
123  width = self.WINDOW_WIDTH
124  if ini.has_option("window", "height"):
125  height = ini.getint("window", "height")
126  else:
127  height = self.WINDOW_HEIGHT
128  self.resize(QSize(width, height))
129  if ini.has_option("window", "maximized"):
130  if ini.getboolean("window", "maximized"):
131  self.setWindowState(Qt.WindowMaximized)
132  if ini.has_option("window", "fullScreen"):
133  if ini.getboolean("window", "fullScreen"):
134  self.setWindowState(Qt.WindowFullScreen)
135 
def Vispa.Main.MainWindow.MainWindow._saveIni (   self)
private
Save the window properties.

Definition at line 136 of file MainWindow.py.

References cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, btag::SimpleMatrix< Delta >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, str, TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), FourPointPlaneBounds.width(), RectangularPlaneBounds.width(), DiskSectorBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SiStripClusterInfo.width(), Range< OAxisX_t >.width(), SimpleCylinderBounds.width(), Range< OAxisY_t >.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), PhysicsTools::Calibration::Range< float >.width(), PhysicsTools::Calibration::Range< AxisY_t >.width(), PhysicsTools::Calibration::Range< AxisX_t >.width(), Range< OAxis_t >.width(), funct::BreitWigner.width, reco::helper::CastorJetIDHelper.width(), DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), function::ZMuStandaloneFunction.width, function::ZMuMuFunction.width, function::ZMuTrackFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< Delta >.width, function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), edm::OStreamColumn.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), plotting.PlotTextBox.width(), and svgfig.Dots.width.

Referenced by Vispa.Main.MainWindow.MainWindow.closeEvent().

136  def _saveIni(self):
137  """ Save the window properties.
138  """
139  ini = self._application.ini()
140  if not ini.has_section("window"):
141  ini.add_section("window")
142  if not self.isMaximized() and not self.isFullScreen():
143  ini.set("window", "width", str(self.width()))
144  ini.set("window", "height", str(self.height()))
145  ini.set("window", "maximized", str(self.isMaximized()))
146  ini.set("window", "fullScreen", str(self.isFullScreen()))
147  self._application.writeIni()
148 
#define str(s)
def Vispa.Main.MainWindow.MainWindow.addTab (   self,
  widget 
)
Add a new tab to the TabWidget and call the TabController to update the label of the Tab.

Definition at line 96 of file MainWindow.py.

References Vispa.Main.AbstractTab.AbstractTab._tabWidget, and Vispa.Main.MainWindow.MainWindow._tabWidget.

96  def addTab(self, widget):
97  """ Add a new tab to the TabWidget and call the TabController to update the label of the Tab.
98  """
99  #logging.debug('MainWindow: addTab()')
100  widget.setTabWidget(self._tabWidget)
101  widget.setMainWindow(self)
102  self._tabWidget.addTab(widget, '')
103  self._tabWidget.setCurrentWidget(widget)
104  widget.controller().updateLabel()
105 
def Vispa.Main.MainWindow.MainWindow.addWindow (   self,
  widget,
  width = None,
  height = None 
)
Add a new window and call the TabController to update the label of the window.

Definition at line 83 of file MainWindow.py.

83  def addWindow(self, widget, width=None, height=None):
84  """ Add a new window and call the TabController to update the label of the window.
85  """
86  logging.debug('MainWindow: addWindow()')
87  widget.setMainWindow(self)
88  widget.setWindowFlags(Qt.Dialog)
89  widget.show()
90  if width and height:
91  widget.resize(width,height)
92  else:
93  widget.resize(self._tabWidget.size())
94  widget.controller().updateLabel()
95 
def addWindow(self, widget, width=None, height=None)
Definition: MainWindow.py:83
def Vispa.Main.MainWindow.MainWindow.application (   self)

Definition at line 56 of file MainWindow.py.

References Vispa.Main.AboutDialog.AboutDialog._application, and Vispa.Main.MainWindow.MainWindow._application.

Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.__init__(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._collapseAll(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._eventContent(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._expandAll(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._expandToDepth(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._expandToDepth(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._filterBranches(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin._hideUnderscoreProperties(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin._showBoxContentDialog(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.addCenterView(), Vispa.Main.MainWindow.MainWindow.closeEvent(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.filterDialog(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.first(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.goto(), Vispa.Main.MainWindow.MainWindow.keyPressEvent(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.last(), Vispa.Main.MainWindow.MainWindow.newAnalysisDesignerSlot(), Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.newFile(), Vispa.Main.MainWindow.MainWindow.newPxlSlot(), Vispa.Plugins.EdmBrowser.EdmBrowserPlugin.EdmBrowserPlugin.newTab(), Vispa.Plugins.ConfigEditor.ConfigEditorPlugin.ConfigEditorPlugin.newTab(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.next(), Vispa.Main.MainWindow.MainWindow.openAnalysisFileSlot(), Vispa.Main.VispaPlugin.VispaPlugin.openFile(), Vispa.Main.MainWindow.MainWindow.openPxlFileSlot(), Vispa.Plugins.EventBrowser.EventBrowserPlugin.EventBrowserPlugin.previous(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.saveImage(), Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.switchCenterViewSlot(), and Vispa.Plugins.Browser.BrowserPlugin.BrowserPlugin.zoomDialog().

def Vispa.Main.MainWindow.MainWindow.changeEvent (   self,
  event 
)
Together with event() this function makes sure tabChanged() is called when the window is activated.

Definition at line 163 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._justActivated.

163  def changeEvent(self, event):
164  """ Together with event() this function makes sure tabChanged() is called when the window is activated.
165  """
166  if event.type() == QEvent.ActivationChange and self.isActiveWindow():
167  self._justActivated = True
168 
def Vispa.Main.MainWindow.MainWindow.closeEvent (   self,
  event 
)
Closes all tabs and exits program if succeeded.

Definition at line 71 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Main.Application.Application._saveIni(), and Vispa.Main.MainWindow.MainWindow.application().

71  def closeEvent(self, event):
72  """ Closes all tabs and exits program if succeeded.
73  """
74  logging.debug('MainWindow: closeEvent()')
75  self._application.closeAllFiles()
76  self._application.shutdownPlugins()
77  if len(self.application().tabControllers()) == 0:
78  event.accept()
79  self._saveIni()
80  else:
81  event.ignore()
82 
def Vispa.Main.MainWindow.MainWindow.createStartupScreen (   self)
def Vispa.Main.MainWindow.MainWindow.editMenu (   self)

Definition at line 62 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._editMenu.

62  def editMenu(self):
63  return self._editMenu
64 
def Vispa.Main.MainWindow.MainWindow.event (   self,
  event 
)
Emits activated() signal if correct event occures and if correct changeEvent occured before.

Also see changeEvent().
The Application shall connect to windowActivated().

Definition at line 149 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._justActivated, Signal< void(BranchDescription const &)>.emit(), edm::signalslot::Signal< void(StreamID)>.emit(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.emit(), edm::signalslot::Signal< void(service::SystemBounds const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &)>.emit(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.emit(), edm::signalslot::Signal< void(TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.emit(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void()>.emit(), edm::signalslot::Signal< void(std::string const &, bool)>.emit(), edm::signalslot::Signal< void(RunIndex)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.emit(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.emit(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.emit(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.emit(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.emit(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(ModuleDescription const &)>.emit(), and edm::signalslot::Signal< T >.emit().

Referenced by Types.EventID.cppID().

149  def event(self, event):
150  """ Emits activated() signal if correct event occures and if correct changeEvent occured before.
151 
152  Also see changeEvent().
153  The Application shall connect to windowActivated().
154  """
155  QMainWindow.event(self, event)
156  if self._justActivated and event.type() == QEvent.LayoutRequest:
157  self._justActivated = False
158  self.emit(SIGNAL("windowActivated()"))
159  elif event.type()==QEvent.WindowActivate:
160  self.emit(SIGNAL("windowActivated()"))
161  return False
162 
def Vispa.Main.MainWindow.MainWindow.fileMenu (   self)

Definition at line 59 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._fileMenu.

59  def fileMenu(self):
60  return self._fileMenu
61 
def Vispa.Main.MainWindow.MainWindow.fileToolBar (   self)

Definition at line 68 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._fileToolBar.

def Vispa.Main.MainWindow.MainWindow.helpMenu (   self)

Definition at line 65 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._helpMenu.

65  def helpMenu(self):
66  return self._helpMenu
67 
def Vispa.Main.MainWindow.MainWindow.isTabWidget (   self,
  widget 
)

Definition at line 112 of file MainWindow.py.

112  def isTabWidget(self, widget):
113  return (self._tabWidget.indexOf(widget) >= 0)
114 
def isTabWidget(self, widget)
Definition: MainWindow.py:112
def Vispa.Main.MainWindow.MainWindow.keyPressEvent (   self,
  event 
)
On Escape cancel all running operations.

Definition at line 169 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.application().

169  def keyPressEvent(self, event):
170  """ On Escape cancel all running operations.
171  """
172  #logging.debug(__name__ + ": keyPressEvent")
173  if event.key() == Qt.Key_Escape:
174  self.application().cancel()
175  QMainWindow.keyPressEvent(self, event)
176 
def keyPressEvent(self, event)
Definition: MainWindow.py:169
def Vispa.Main.MainWindow.MainWindow.newAnalysisDesignerSlot (   self,
  checked = False 
)
Creates new analysis designer tab if that plugin was loaded.

Definition at line 203 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.application(), and fwrapper.plugin.

203  def newAnalysisDesignerSlot(self, checked=False):
204  """ Creates new analysis designer tab if that plugin was loaded.
205  """
206  plugin = self.application().plugin("AnalysisDesigner")
207  if plugin:
208  plugin.newAnalysisDesignerTab()
209 
unique_ptr< JetDefinition::Plugin > plugin
def newAnalysisDesignerSlot(self, checked=False)
Definition: MainWindow.py:203
def Vispa.Main.MainWindow.MainWindow.newPxlSlot (   self,
  checked = False 
)
Creates new pxl tab if that plugin was loaded.

Definition at line 210 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.application(), and fwrapper.plugin.

210  def newPxlSlot(self, checked=False):
211  """ Creates new pxl tab if that plugin was loaded.
212  """
213  plugin = self.application().plugin("Pxl")
214  if plugin:
215  plugin.newFile()
216 
def newPxlSlot(self, checked=False)
Definition: MainWindow.py:210
unique_ptr< JetDefinition::Plugin > plugin
def Vispa.Main.MainWindow.MainWindow.openAnalysisFileSlot (   self,
  checked = False 
)

Definition at line 217 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.application(), and fwrapper.plugin.

217  def openAnalysisFileSlot(self, checked=False):
218  plugin = self.application().plugin("AnalysisDesigner")
219  if plugin:
220  currentRow=self._startupScreen._analysisDesignerRecentFilesList.currentRow()
221  if currentRow!=0:
222  files=self.application().recentFilesFromPlugin(plugin)
223  if currentRow<=len(files):
224  self.application().openFile(files[currentRow-1])
225  else:
226  filetypes = plugin.filetypes()
227  if len(filetypes) > 0:
228  self.application().openFileDialog(filetypes[0].fileDialogFilter())
229 
def openAnalysisFileSlot(self, checked=False)
Definition: MainWindow.py:217
unique_ptr< JetDefinition::Plugin > plugin
def Vispa.Main.MainWindow.MainWindow.openPxlFileSlot (   self,
  checked = False 
)

Definition at line 230 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.application(), and fwrapper.plugin.

230  def openPxlFileSlot(self, checked=False):
231  plugin = self.application().plugin("Pxl")
232  if plugin:
233  currentRow=self._startupScreen._pxlEditorRecentFilesList.currentRow()
234  if currentRow!=0:
235  files=self.application().recentFilesFromPlugin(plugin)
236  if currentRow<=len(files):
237  self.application().openFile(files[currentRow-1])
238  else:
239  filetypes = plugin.filetypes()
240  if len(filetypes) > 0:
241  self.application().openFileDialog(filetypes[0].fileDialogFilter())
242 
unique_ptr< JetDefinition::Plugin > plugin
def openPxlFileSlot(self, checked=False)
Definition: MainWindow.py:230
def Vispa.Main.MainWindow.MainWindow.resizeEvent (   self,
  event 
)

Definition at line 177 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

177  def resizeEvent(self, event):
178  QMainWindow.resizeEvent(self, event)
180 
def Vispa.Main.MainWindow.MainWindow.setStartupScreenVisible (   self,
  show 
)

Definition at line 181 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._startupScreen, and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

181  def setStartupScreenVisible(self, show):
182  if self._startupScreen:
183  self._startupScreen.setVisible(show)
184  #logging.debug(self.__class__.__name__ +": setStartupScreenVisible() %d" % self._startupScreen.isVisible())
185  if show:
187 
def setStartupScreenVisible(self, show)
Definition: MainWindow.py:181
def Vispa.Main.MainWindow.MainWindow.startupScreen (   self)
def Vispa.Main.MainWindow.MainWindow.tabWidget (   self)
def Vispa.Main.MainWindow.MainWindow.tabWidgets (   self)

Definition at line 109 of file MainWindow.py.

109  def tabWidgets(self):
110  return [self._tabWidget.widget(i) for i in range(0, self._tabWidget.count())]
111 
def Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry (   self)

Definition at line 188 of file MainWindow.py.

References Vispa.Main.MainWindow.MainWindow._startupScreen, cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, btag::SimpleMatrix< Delta >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, SiStripPI.max, TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), FourPointPlaneBounds.width(), RectangularPlaneBounds.width(), DiskSectorBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SiStripClusterInfo.width(), Range< OAxisX_t >.width(), SimpleCylinderBounds.width(), Range< OAxisY_t >.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), PhysicsTools::Calibration::Range< float >.width(), PhysicsTools::Calibration::Range< AxisY_t >.width(), PhysicsTools::Calibration::Range< AxisX_t >.width(), Range< OAxis_t >.width(), funct::BreitWigner.width, reco::helper::CastorJetIDHelper.width(), DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), function::ZMuStandaloneFunction.width, function::ZMuMuFunction.width, function::ZMuTrackFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< Delta >.width, function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), edm::OStreamColumn.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), plotting.PlotTextBox.width(), and svgfig.Dots.width.

Referenced by Vispa.Main.MainWindow.MainWindow.resizeEvent(), and Vispa.Main.MainWindow.MainWindow.setStartupScreenVisible().

189  if not self._startupScreen:
190  return
191  boundingRect = self._startupScreen.boundingRect()
192  deltaWidth = self.width() - boundingRect.width() - 20
193  deltaHeight = self.height() - boundingRect.height() - 80
194 
195  if deltaWidth != 0 or deltaHeight != 0:
196  self._startupScreen.setMaximumSize(max(1, self._startupScreen.width() + deltaWidth), max(1, self._startupScreen.height() + deltaHeight))
197  boundingRect = self._startupScreen.boundingRect()
198  self._startupScreen.move(QPoint(0.5 * (self.width() - boundingRect.width()), 0.5 * (self.height() - boundingRect.height()) + 10) + self._startupScreen.pos() - boundingRect.topLeft())
199 

Member Data Documentation

Vispa.Main.MainWindow.MainWindow._application
private
Vispa.Main.MainWindow.MainWindow._editMenu
private

Definition at line 38 of file MainWindow.py.

Referenced by Vispa.Main.MainWindow.MainWindow.editMenu().

Vispa.Main.MainWindow.MainWindow._fileMenu
private

Definition at line 37 of file MainWindow.py.

Referenced by Vispa.Main.MainWindow.MainWindow.fileMenu().

Vispa.Main.MainWindow.MainWindow._fileToolBar
private

Definition at line 41 of file MainWindow.py.

Referenced by Vispa.Main.MainWindow.MainWindow.fileToolBar().

Vispa.Main.MainWindow.MainWindow._helpMenu
private

Definition at line 39 of file MainWindow.py.

Referenced by Vispa.Main.MainWindow.MainWindow.helpMenu().

Vispa.Main.MainWindow.MainWindow._justActivated
private
Vispa.Main.MainWindow.MainWindow._tabWidget
private