71 |
71 |
72 def __initActions(self): |
72 def __initActions(self): |
73 """ |
73 """ |
74 Private slot to initialize the actions. |
74 Private slot to initialize the actions. |
75 """ |
75 """ |
76 self.closeAct = \ |
76 self.closeAct = QAction( |
77 QAction(UI.PixmapCache.getIcon("close.png"), |
77 UI.PixmapCache.getIcon("close.png"), |
78 self.tr("Close"), self) |
78 self.tr("Close"), self) |
79 self.closeAct.triggered.connect(self.close) |
79 self.closeAct.triggered.connect(self.close) |
80 |
80 |
81 self.openAct = \ |
81 self.openAct = QAction( |
82 QAction(UI.PixmapCache.getIcon("open.png"), |
82 UI.PixmapCache.getIcon("open.png"), |
83 self.tr("Load"), self) |
83 self.tr("Load"), self) |
84 self.openAct.triggered.connect(self.load) |
84 self.openAct.triggered.connect(self.load) |
85 |
85 |
86 self.saveAct = \ |
86 self.saveAct = QAction( |
87 QAction(UI.PixmapCache.getIcon("fileSave.png"), |
87 UI.PixmapCache.getIcon("fileSave.png"), |
88 self.tr("Save"), self) |
88 self.tr("Save"), self) |
89 self.saveAct.triggered.connect(self.__save) |
89 self.saveAct.triggered.connect(self.__save) |
90 |
90 |
91 self.saveAsAct = \ |
91 self.saveAsAct = QAction( |
92 QAction(UI.PixmapCache.getIcon("fileSaveAs.png"), |
92 UI.PixmapCache.getIcon("fileSaveAs.png"), |
93 self.tr("Save As..."), self) |
93 self.tr("Save As..."), self) |
94 self.saveAsAct.triggered.connect(self.__saveAs) |
94 self.saveAsAct.triggered.connect(self.__saveAs) |
95 |
95 |
96 self.saveImageAct = \ |
96 self.saveImageAct = QAction( |
97 QAction(UI.PixmapCache.getIcon("fileSavePixmap.png"), |
97 UI.PixmapCache.getIcon("fileSavePixmap.png"), |
98 self.tr("Save as Image"), self) |
98 self.tr("Save as Image"), self) |
99 self.saveImageAct.triggered.connect(self.umlView.saveImage) |
99 self.saveImageAct.triggered.connect(self.umlView.saveImage) |
100 |
100 |
101 self.printAct = \ |
101 self.printAct = QAction( |
102 QAction(UI.PixmapCache.getIcon("print.png"), |
102 UI.PixmapCache.getIcon("print.png"), |
103 self.tr("Print"), self) |
103 self.tr("Print"), self) |
104 self.printAct.triggered.connect(self.umlView.printDiagram) |
104 self.printAct.triggered.connect(self.umlView.printDiagram) |
105 |
105 |
106 self.printPreviewAct = \ |
106 self.printPreviewAct = QAction( |
107 QAction(UI.PixmapCache.getIcon("printPreview.png"), |
107 UI.PixmapCache.getIcon("printPreview.png"), |
108 self.tr("Print Preview"), self) |
108 self.tr("Print Preview"), self) |
109 self.printPreviewAct.triggered.connect( |
109 self.printPreviewAct.triggered.connect( |
110 self.umlView.printPreviewDiagram) |
110 self.umlView.printPreviewDiagram) |
111 |
111 |
112 def __initToolBars(self): |
112 def __initToolBars(self): |
113 """ |
113 """ |