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