Graphics/PixmapDiagram.py

changeset 453
a81097a85889
parent 13
1af94a91f439
child 454
d28d558f7484
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
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.connect(self.closeAct, SIGNAL("triggered()"), 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.connect(self.printAct, SIGNAL("triggered()"), 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.connect(self.printPreviewAct, SIGNAL("triggered()"), 79 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram)
80 self.__printPreviewDiagram)
81 80
82 self.zoomInAct = \ 81 self.zoomInAct = \
83 QAction(UI.PixmapCache.getIcon("zoomIn.png"), 82 QAction(UI.PixmapCache.getIcon("zoomIn.png"),
84 self.trUtf8("Zoom in"), self) 83 self.trUtf8("Zoom in"), self)
85 self.connect(self.zoomInAct, SIGNAL("triggered()"), self.__zoomIn) 84 self.zoomInAct.triggered.connect(self.__zoomIn)
86 85
87 self.zoomOutAct = \ 86 self.zoomOutAct = \
88 QAction(UI.PixmapCache.getIcon("zoomOut.png"), 87 QAction(UI.PixmapCache.getIcon("zoomOut.png"),
89 self.trUtf8("Zoom out"), self) 88 self.trUtf8("Zoom out"), self)
90 self.connect(self.zoomOutAct, SIGNAL("triggered()"), self.__zoomOut) 89 self.zoomOutAct.triggered.connect(self.__zoomOut)
91 90
92 self.zoomAct = \ 91 self.zoomAct = \
93 QAction(UI.PixmapCache.getIcon("zoomTo.png"), 92 QAction(UI.PixmapCache.getIcon("zoomTo.png"),
94 self.trUtf8("Zoom..."), self) 93 self.trUtf8("Zoom..."), self)
95 self.connect(self.zoomAct, SIGNAL("triggered()"), self.__zoom) 94 self.zoomAct.triggered.connect(self.__zoom)
96 95
97 self.zoomResetAct = \ 96 self.zoomResetAct = \
98 QAction(UI.PixmapCache.getIcon("zoomReset.png"), 97 QAction(UI.PixmapCache.getIcon("zoomReset.png"),
99 self.trUtf8("Zoom reset"), self) 98 self.trUtf8("Zoom reset"), self)
100 self.connect(self.zoomResetAct, SIGNAL("triggered()"), self.__zoomReset) 99 self.zoomResetAct.triggered.connect(self.__zoomReset)
101 100
102 def __initContextMenu(self): 101 def __initContextMenu(self):
103 """ 102 """
104 Private method to initialize the context menu. 103 Private method to initialize the context menu.
105 """ 104 """

eric ide

mercurial