Graphics/SvgDiagram.py

changeset 453
a81097a85889
parent 13
1af94a91f439
child 454
d28d558f7484
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
65 Private method to initialize the view actions. 65 Private method to initialize the view actions.
66 """ 66 """
67 self.closeAct = \ 67 self.closeAct = \
68 QAction(UI.PixmapCache.getIcon("close.png"), 68 QAction(UI.PixmapCache.getIcon("close.png"),
69 self.trUtf8("Close"), self) 69 self.trUtf8("Close"), self)
70 self.connect(self.closeAct, SIGNAL("triggered()"), self.close) 70 self.closeAct.triggered.connect(self.close)
71 71
72 self.printAct = \ 72 self.printAct = \
73 QAction(UI.PixmapCache.getIcon("print.png"), 73 QAction(UI.PixmapCache.getIcon("print.png"),
74 self.trUtf8("Print"), self) 74 self.trUtf8("Print"), self)
75 self.connect(self.printAct, SIGNAL("triggered()"), self.__printDiagram) 75 self.printAct.triggered.connect(self.__printDiagram)
76 76
77 self.printPreviewAct = \ 77 self.printPreviewAct = \
78 QAction(UI.PixmapCache.getIcon("printPreview.png"), 78 QAction(UI.PixmapCache.getIcon("printPreview.png"),
79 self.trUtf8("Print Preview"), self) 79 self.trUtf8("Print Preview"), self)
80 self.connect(self.printPreviewAct, SIGNAL("triggered()"), 80 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram)
81 self.__printPreviewDiagram)
82 81
83 self.zoomInAct = \ 82 self.zoomInAct = \
84 QAction(UI.PixmapCache.getIcon("zoomIn.png"), 83 QAction(UI.PixmapCache.getIcon("zoomIn.png"),
85 self.trUtf8("Zoom in"), self) 84 self.trUtf8("Zoom in"), self)
86 self.connect(self.zoomInAct, SIGNAL("triggered()"), self.__zoomIn) 85 self.zoomInAct.triggered.connect(self.__zoomIn)
87 86
88 self.zoomOutAct = \ 87 self.zoomOutAct = \
89 QAction(UI.PixmapCache.getIcon("zoomOut.png"), 88 QAction(UI.PixmapCache.getIcon("zoomOut.png"),
90 self.trUtf8("Zoom out"), self) 89 self.trUtf8("Zoom out"), self)
91 self.connect(self.zoomOutAct, SIGNAL("triggered()"), self.__zoomOut) 90 self.zoomOutAct.triggered.connect(self.__zoomOut)
92 91
93 self.zoomAct = \ 92 self.zoomAct = \
94 QAction(UI.PixmapCache.getIcon("zoomTo.png"), 93 QAction(UI.PixmapCache.getIcon("zoomTo.png"),
95 self.trUtf8("Zoom..."), self) 94 self.trUtf8("Zoom..."), self)
96 self.connect(self.zoomAct, SIGNAL("triggered()"), self.__zoom) 95 self.zoomAct.triggered.connect(self.__zoom)
97 96
98 self.zoomResetAct = \ 97 self.zoomResetAct = \
99 QAction(UI.PixmapCache.getIcon("zoomReset.png"), 98 QAction(UI.PixmapCache.getIcon("zoomReset.png"),
100 self.trUtf8("Zoom reset"), self) 99 self.trUtf8("Zoom reset"), self)
101 self.connect(self.zoomResetAct, SIGNAL("triggered()"), self.__zoomReset) 100 self.zoomResetAct.triggered.connect(self.__zoomReset)
102 101
103 def __initContextMenu(self): 102 def __initContextMenu(self):
104 """ 103 """
105 Private method to initialize the context menu. 104 Private method to initialize the context menu.
106 """ 105 """

eric ide

mercurial