88 Private method to initialize the view actions. |
88 Private method to initialize the view actions. |
89 """ |
89 """ |
90 self.closeAct = \ |
90 self.closeAct = \ |
91 QAction(UI.PixmapCache.getIcon("close.png"), |
91 QAction(UI.PixmapCache.getIcon("close.png"), |
92 self.tr("Close"), self) |
92 self.tr("Close"), self) |
93 self.closeAct.triggered[()].connect(self.close) |
93 self.closeAct.triggered.connect(self.close) |
94 |
94 |
95 self.printAct = \ |
95 self.printAct = \ |
96 QAction(UI.PixmapCache.getIcon("print.png"), |
96 QAction(UI.PixmapCache.getIcon("print.png"), |
97 self.tr("Print"), self) |
97 self.tr("Print"), self) |
98 self.printAct.triggered[()].connect(self.__printDiagram) |
98 self.printAct.triggered.connect(self.__printDiagram) |
99 |
99 |
100 self.printPreviewAct = \ |
100 self.printPreviewAct = \ |
101 QAction(UI.PixmapCache.getIcon("printPreview.png"), |
101 QAction(UI.PixmapCache.getIcon("printPreview.png"), |
102 self.tr("Print Preview"), self) |
102 self.tr("Print Preview"), self) |
103 self.printPreviewAct.triggered[()].connect(self.__printPreviewDiagram) |
103 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram) |
104 |
104 |
105 def __initContextMenu(self): |
105 def __initContextMenu(self): |
106 """ |
106 """ |
107 Private method to initialize the context menu. |
107 Private method to initialize the context menu. |
108 """ |
108 """ |