64 Private method to initialize the view actions. |
64 Private method to initialize the view actions. |
65 """ |
65 """ |
66 self.closeAct = \ |
66 self.closeAct = \ |
67 QAction(UI.PixmapCache.getIcon("close.png"), |
67 QAction(UI.PixmapCache.getIcon("close.png"), |
68 self.trUtf8("Close"), self) |
68 self.trUtf8("Close"), self) |
69 self.closeAct.triggered.connect(self.close) |
69 self.closeAct.triggered[()].connect(self.close) |
70 |
70 |
71 self.printAct = \ |
71 self.printAct = \ |
72 QAction(UI.PixmapCache.getIcon("print.png"), |
72 QAction(UI.PixmapCache.getIcon("print.png"), |
73 self.trUtf8("Print"), self) |
73 self.trUtf8("Print"), self) |
74 self.printAct.triggered.connect(self.__printDiagram) |
74 self.printAct.triggered[()].connect(self.__printDiagram) |
75 |
75 |
76 self.printPreviewAct = \ |
76 self.printPreviewAct = \ |
77 QAction(UI.PixmapCache.getIcon("printPreview.png"), |
77 QAction(UI.PixmapCache.getIcon("printPreview.png"), |
78 self.trUtf8("Print Preview"), self) |
78 self.trUtf8("Print Preview"), self) |
79 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram) |
79 self.printPreviewAct.triggered[()].connect(self.__printPreviewDiagram) |
80 |
80 |
81 self.zoomInAct = \ |
81 self.zoomInAct = \ |
82 QAction(UI.PixmapCache.getIcon("zoomIn.png"), |
82 QAction(UI.PixmapCache.getIcon("zoomIn.png"), |
83 self.trUtf8("Zoom in"), self) |
83 self.trUtf8("Zoom in"), self) |
84 self.zoomInAct.triggered.connect(self.__zoomIn) |
84 self.zoomInAct.triggered[()].connect(self.__zoomIn) |
85 |
85 |
86 self.zoomOutAct = \ |
86 self.zoomOutAct = \ |
87 QAction(UI.PixmapCache.getIcon("zoomOut.png"), |
87 QAction(UI.PixmapCache.getIcon("zoomOut.png"), |
88 self.trUtf8("Zoom out"), self) |
88 self.trUtf8("Zoom out"), self) |
89 self.zoomOutAct.triggered.connect(self.__zoomOut) |
89 self.zoomOutAct.triggered[()].connect(self.__zoomOut) |
90 |
90 |
91 self.zoomAct = \ |
91 self.zoomAct = \ |
92 QAction(UI.PixmapCache.getIcon("zoomTo.png"), |
92 QAction(UI.PixmapCache.getIcon("zoomTo.png"), |
93 self.trUtf8("Zoom..."), self) |
93 self.trUtf8("Zoom..."), self) |
94 self.zoomAct.triggered.connect(self.__zoom) |
94 self.zoomAct.triggered[()].connect(self.__zoom) |
95 |
95 |
96 self.zoomResetAct = \ |
96 self.zoomResetAct = \ |
97 QAction(UI.PixmapCache.getIcon("zoomReset.png"), |
97 QAction(UI.PixmapCache.getIcon("zoomReset.png"), |
98 self.trUtf8("Zoom reset"), self) |
98 self.trUtf8("Zoom reset"), self) |
99 self.zoomResetAct.triggered.connect(self.__zoomReset) |
99 self.zoomResetAct.triggered[()].connect(self.__zoomReset) |
100 |
100 |
101 def __initContextMenu(self): |
101 def __initContextMenu(self): |
102 """ |
102 """ |
103 Private method to initialize the context menu. |
103 Private method to initialize the context menu. |
104 """ |
104 """ |