CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Vispa.Main.StartupScreen.StartupScreen Class Reference
Inheritance diagram for Vispa.Main.StartupScreen.StartupScreen:
Vispa.Gui.VispaWidget.VispaWidget Vispa.Gui.ZoomableWidget.ZoomableWidget Vispa.Gui.Zoomable.Zoomable

Public Member Functions

def __init__ (self, parent)
 
def analysisDesignerRecentFilesList (self)
 
def boundingRect (self)
 
def createDescriptionWidget (self, arrowDirection, description)
 
def createExecutionWidget (self)
 
def createPrototypingWidget (self)
 
def createVerifyingWidget (self)
 
def mouseMoveEvent (self, event)
 
def moveEvent (self, event)
 
def pxlEditorRecentFilesList (self)
 
def rearangeContent (self)
 
def rearangeDescriptionWidgets (self)
 
def setVisible (self, visible)
 
- Public Member Functions inherited from Vispa.Gui.VispaWidget.VispaWidget
def __init__ (self, parent=None)
 
def autosize (self, skipSizeHint=False)
 
def autosizeEnabled (self)
 
def bodyWidget (self)
 
def boundingRect (self)
 
def colorHeaderBackgroundEnabled (self)
 
def contentRect (self)
 
def defineArrowBackgroundShape (self)
 
def defineCircleBackgroundShape (self, painter)
 
def defineDistances (self, keepDefaultRatio=False)
 
def defineRectBackgroundShape (self, painter)
 
def defineRoundRectBackgroundShape (self, painter)
 
def delete (self)
 
def distances (self)
 
def dragReferencePoint (self)
 
def dragWidget (self, pPos)
 
def drawBody (self, painter)
 
def drawHeaderBackground (self, painter)
 
def drawImage (self, painter)
 
def drawTextField (self, painter)
 
def drawTitle (self, painter)
 
def enableAutopositionizeWhenZooming (self, auto)
 
def enableAutosizing (self, auto, keepAspectRatio=True)
 
def enableBackgroundGradient (self, enable=True)
 
def enableColorHeaderBackground (self, enable=True)
 
def getDistance (self, name, scale=None, keepDefaultRatio=False)
 
def height (self)
 
def imageRectF (self, width=None, height=None)
 
def imageSizeF (self)
 
def isDeletable (self)
 
def isDragable (self)
 
def isSelectable (self)
 
def isSelected (self)
 
def isTitlePoint (self, point)
 
def isUseBackgroundGradientEnabled (self)
 
def keyPressEvent (self, event)
 
def mouseDoubleClickEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def move (self, target)
 
def noRearangeContent (self, no=True)
 
def paint (self, painter, event=None)
 
def paintEvent (self, event)
 
def penColor (self)
 
def previousDragPosition (self)
 
def rearangeContent (self)
 
def resetMouseDragOffset (self)
 
def resize (self, width, height)
 
def scale (self)
 
def scheduleCalculateDistances (self)
 
def scheduleRearangeContent (self)
 
def select (self, sel=True, multiSelect=False)
 
def setArrowShape (self, direction)
 
def setBodyWidget (self, widget)
 
def setColors (self, penColor, fillColor1, fillColor2)
 
def setDeletable (self, deleteable)
 
def setDragable (self, dragable, recursive=False)
 
def setDragReferencePoint (self, pos)
 
def setImage (self, image)
 
def setMaximumSize (self, attr)
 
def setMinimumSize (self, attr)
 
def setPreviousDragPosition (self, position)
 
def setSelectable (self, selectable)
 
def setShape (self, shape)
 
def setText (self, text)
 
def setTextFieldAutosizeFont (self, auto)
 
def setTextFieldAutotruncateText (self, auto)
 
def setTitle (self, title)
 
def setZoom (self, zoom)
 
def showEvent (self, event)
 
def sizeHint (self)
 
def text (self)
 
def textField (self)
 
def textFieldIsSet (self)
 
def title (self)
 
def titleField (self)
 
def titleIsSet (self)
 
def unzoomedX (self)
 
def unzoomedY (self)
 
def width (self)
 
- Public Member Functions inherited from Vispa.Gui.ZoomableWidget.ZoomableWidget
def __init__ (self, parent=None)
 
def exportImage (self, filename=None)
 
def setZoom (self, zoom)
 
- Public Member Functions inherited from Vispa.Gui.Zoomable.Zoomable
def __init__ (self)
 
def decrementZoom (self)
 
def incrementZoom (self)
 
def setZoom (self, zoom)
 
def zoom (self)
 
def zoomFactor (self)
 

Private Attributes

 _activeSize
 
 _analysisDesignerRecentFilesList
 
 _descriptionActiveRects
 
 _descriptionWidgets
 
 _executionDescriptionWidget
 
 _executionRect
 
 _filenewIcon
 
 _fileopenIcon
 
 _hideDescriptions
 
 _prototypingDescriptionWidget
 
 _prototypingRect
 
 _pxlEditorRecentFilesList
 
 _verifyingDescriptionWidget
 
 _verifyingRect
 

Additional Inherited Members

- Public Attributes inherited from Vispa.Gui.VispaWidget.VispaWidget
 fillColor1
 
 fillColor2
 
 framePenColor
 
 HEIGHT
 
 WIDTH
 

Detailed Description

Definition at line 13 of file StartupScreen.py.

Constructor & Destructor Documentation

def Vispa.Main.StartupScreen.StartupScreen.__init__ (   self,
  parent 
)

Definition at line 27 of file StartupScreen.py.

27  def __init__(self, parent):
29  self._descriptionActiveRects = [QRect(), QRect(), QRect()] # descriptions will be visible if mouse cursor is in the rect
30  VispaWidget.__init__(self, parent)
31  self._filenewIcon = QIcon(QPixmap(":/resources/filenew.svg"))
32  self._fileopenIcon = QIcon(QPixmap(":/resources/fileopen.svg"))
33  self.setImage(QSvgRenderer(":/resources/startup_development_cycle.svg"))
34  self.setDragable(False)
35  self.setMouseTracking(True) # receive mouse events even if no button is pressed
36  self._hideDescriptions = False
37 
41 
def setDragable(self, dragable, recursive=False)
Definition: VispaWidget.py:517

Member Function Documentation

def Vispa.Main.StartupScreen.StartupScreen.analysisDesignerRecentFilesList (   self)
def Vispa.Main.StartupScreen.StartupScreen.boundingRect (   self)

Definition at line 150 of file StartupScreen.py.

References Vispa.Main.StartupScreen.StartupScreen._descriptionWidgets.

Referenced by Vispa.Views.LineDecayView.DecayNode.containsPoint(), and Vispa.Views.LineDecayView.DecayNode.move().

150  def boundingRect(self):
151  br = VispaWidget.boundingRect(self)
152  for w in self._descriptionWidgets:
153  br = br.united(w.boundingRect())
154  return br
155 
def Vispa.Main.StartupScreen.StartupScreen.createDescriptionWidget (   self,
  arrowDirection,
  description 
)

Definition at line 42 of file StartupScreen.py.

References Vispa.Main.StartupScreen.StartupScreen._hideDescriptions, edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

42  def createDescriptionWidget(self, arrowDirection, description):
43  widget = VispaWidget(self.parent())
44  widget.enableAutosizing(True, False)
45  widget.setSelectable(False)
46  widget.setArrowShape(arrowDirection)
47  widget.setVisible(not self._hideDescriptions)
48  widget.setDragable(False)
49  self._descriptionWidgets.append(widget)
50  return widget
51 
def createDescriptionWidget(self, arrowDirection, description)
def Vispa.Main.StartupScreen.StartupScreen.createExecutionWidget (   self)

Definition at line 74 of file StartupScreen.py.

75  self._executionDescriptionWidget = self.createDescriptionWidget(VispaWidget.ARROW_SHAPE_RIGHT, self.EXECUTING_DESCRIPTION)
76 
77  bodyWidget = QWidget(self._executionDescriptionWidget)
78  bodyWidget.setLayout(QGridLayout())
79  bodyWidget.layout().setContentsMargins(0, 0, 0, 0)
80 
81  label=QLabel("Open and run existing analysis:")
82  bodyWidget.layout().addWidget(label, 0, 0)
83  analysisDesignerButton = QToolButton()
84  analysisDesignerButton.setText("Open analysis file")
85  analysisDesignerButton.setIcon(self._fileopenIcon)
86  self.connect(analysisDesignerButton, SIGNAL("clicked(bool)"), self.parent().openAnalysisFileSlot)
87  bodyWidget.layout().addWidget(analysisDesignerButton, 0, 1)
89  self._analysisDesignerRecentFilesList.setFixedSize(label.sizeHint().width()+analysisDesignerButton.sizeHint().width(),150)
90  self.connect(self._analysisDesignerRecentFilesList, SIGNAL("doubleClicked(QModelIndex)"), self.parent().openAnalysisFileSlot)
91  bodyWidget.layout().addWidget(self._analysisDesignerRecentFilesList, 1, 0, 1, 2)
92 
93  self._executionDescriptionWidget.setBodyWidget(bodyWidget)
94 
def createDescriptionWidget(self, arrowDirection, description)
def Vispa.Main.StartupScreen.StartupScreen.createPrototypingWidget (   self)

Definition at line 52 of file StartupScreen.py.

53  self._prototypingDescriptionWidget = self.createDescriptionWidget(VispaWidget.ARROW_SHAPE_BOTTOM, self.PROTOTYPING_DESCRIPTION)
54 
55  bodyWidget = QWidget(self._prototypingDescriptionWidget)
56  bodyWidget.setLayout(QGridLayout())
57  bodyWidget.layout().setContentsMargins(0, 0, 0, 0)
58 
59  bodyWidget.layout().addWidget(QLabel("Design physics analysis:"), 0, 0)
60  analysisDesignerButton = QToolButton()
61  analysisDesignerButton.setText("Analysis Designer")
62  analysisDesignerButton.setIcon(self._filenewIcon)
63  self.connect(analysisDesignerButton, SIGNAL("clicked(bool)"), self.parent().newAnalysisDesignerSlot)
64  bodyWidget.layout().addWidget(analysisDesignerButton, 0, 1)
65  bodyWidget.layout().addWidget(QLabel("Create physics event:"), 1, 0)
66  pxlButton = QToolButton()
67  pxlButton.setText("PXL Editor")
68  pxlButton.setIcon(self._filenewIcon)
69  self.connect(pxlButton, SIGNAL("clicked(bool)"), self.parent().newPxlSlot)
70  bodyWidget.layout().addWidget(pxlButton, 1, 1)
71 
72  self._prototypingDescriptionWidget.setBodyWidget(bodyWidget)
73 
def createDescriptionWidget(self, arrowDirection, description)
def Vispa.Main.StartupScreen.StartupScreen.createVerifyingWidget (   self)

Definition at line 98 of file StartupScreen.py.

99  self._verifyingDescriptionWidget = self.createDescriptionWidget(VispaWidget.ARROW_SHAPE_LEFT, self.VERIFYING_DESCRIPTION)
100 
101  bodyWidget = QWidget(self._verifyingDescriptionWidget)
102  bodyWidget.setLayout(QGridLayout())
103  bodyWidget.layout().setContentsMargins(0, 0, 0, 0)
104 
105  label=QLabel("Browse an existing PXL data file:")
106  bodyWidget.layout().addWidget(label, 0, 0)
107  analysisDesignerButton = QToolButton()
108  analysisDesignerButton.setText("Open PXL file")
109  analysisDesignerButton.setIcon(self._fileopenIcon)
110  self.connect(analysisDesignerButton, SIGNAL("clicked(bool)"), self.parent().openPxlFileSlot)
111  bodyWidget.layout().addWidget(analysisDesignerButton, 0, 1)
112  self._pxlEditorRecentFilesList=QListWidget()
113  self._pxlEditorRecentFilesList.setFixedSize(label.sizeHint().width()+analysisDesignerButton.sizeHint().width(),150)
114  self.connect(self._pxlEditorRecentFilesList, SIGNAL("doubleClicked(QModelIndex)"), self.parent().openPxlFileSlot)
115  bodyWidget.layout().addWidget(self._pxlEditorRecentFilesList, 1, 0, 1, 2)
116 
117  self._verifyingDescriptionWidget.setBodyWidget(bodyWidget)
118 
def createDescriptionWidget(self, arrowDirection, description)
def Vispa.Main.StartupScreen.StartupScreen.mouseMoveEvent (   self,
  event 
)
def Vispa.Main.StartupScreen.StartupScreen.moveEvent (   self,
  event 
)

Definition at line 129 of file StartupScreen.py.

References Vispa.Main.StartupScreen.StartupScreen.rearangeDescriptionWidgets().

129  def moveEvent(self, event):
130  VispaWidget.moveEvent(self, event)
132 
def Vispa.Main.StartupScreen.StartupScreen.pxlEditorRecentFilesList (   self)
def Vispa.Main.StartupScreen.StartupScreen.rearangeContent (   self)

Definition at line 133 of file StartupScreen.py.

References Vispa.Main.StartupScreen.StartupScreen.rearangeDescriptionWidgets().

133  def rearangeContent(self):
134  VispaWidget.rearangeContent(self)
136 
def Vispa.Main.StartupScreen.StartupScreen.rearangeDescriptionWidgets (   self)

Definition at line 137 of file StartupScreen.py.

Referenced by Vispa.Main.StartupScreen.StartupScreen.moveEvent(), and Vispa.Main.StartupScreen.StartupScreen.rearangeContent().

138  self._activeSize = QSize(0.3 * self.width(), 0.1 * self.height())
139  self._prototypingRect = QRect(QPoint(0.5 * (self.width() - self._activeSize.width()), 0), self._activeSize)
140  self._executionRect = QRect(QPoint(0, 0.635 * self.height()), self._activeSize)
141  self._verifyingRect = QRect(QPoint(self.width() -self._activeSize.width(), 0.635 * self.height()), self._activeSize)
145 
146  self._prototypingDescriptionWidget.move(self.mapToParent(self._prototypingRect.topLeft()) + QPoint((self._prototypingRect.width() - self._prototypingDescriptionWidget.width()) * 0.5, - self._prototypingDescriptionWidget.height()))
147  self._executionDescriptionWidget.move(self.mapToParent(self._executionRect.topLeft()) - QPoint(self._executionDescriptionWidget.width(), - 0.5 * (self._executionRect.height() - self._executionDescriptionWidget.height())))
148  self._verifyingDescriptionWidget.move(self.mapToParent(self._verifyingRect.topRight()) - QPoint(0, - 0.5 * (self._verifyingRect.height() - self._verifyingDescriptionWidget.height())))
149 
def Vispa.Main.StartupScreen.StartupScreen.setVisible (   self,
  visible 
)

Definition at line 156 of file StartupScreen.py.

References Vispa.Main.StartupScreen.StartupScreen._hideDescriptions.

Referenced by Vispa.Main.StartupScreen.StartupScreen.mouseMoveEvent().

156  def setVisible(self, visible):
157  VispaWidget.setVisible(self, visible)
158  self._executionDescriptionWidget.setVisible(visible and not self._hideDescriptions)
159  self._prototypingDescriptionWidget.setVisible(visible and not self._hideDescriptions)
160  self._verifyingDescriptionWidget.setVisible(visible and not self._hideDescriptions)

Member Data Documentation

Vispa.Main.StartupScreen.StartupScreen._activeSize
private

Definition at line 138 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._analysisDesignerRecentFilesList
private
Vispa.Main.StartupScreen.StartupScreen._descriptionActiveRects
private
Vispa.Main.StartupScreen.StartupScreen._descriptionWidgets
private
Vispa.Main.StartupScreen.StartupScreen._executionDescriptionWidget
private

Definition at line 75 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._executionRect
private

Definition at line 140 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._filenewIcon
private

Definition at line 31 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._fileopenIcon
private

Definition at line 32 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._prototypingDescriptionWidget
private

Definition at line 53 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._prototypingRect
private

Definition at line 139 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._pxlEditorRecentFilesList
private
Vispa.Main.StartupScreen.StartupScreen._verifyingDescriptionWidget
private

Definition at line 99 of file StartupScreen.py.

Vispa.Main.StartupScreen.StartupScreen._verifyingRect
private

Definition at line 141 of file StartupScreen.py.