eric6/Graphics/PixmapDiagram.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
65 self.pixmapView.setWidget(self.pixmapLabel) 65 self.pixmapView.setWidget(self.pixmapLabel)
66 66
67 self.setCentralWidget(self.pixmapView) 67 self.setCentralWidget(self.pixmapView)
68 68
69 self.__zoomWidget = E5ZoomWidget( 69 self.__zoomWidget = E5ZoomWidget(
70 UI.PixmapCache.getPixmap("zoomOut.png"), 70 UI.PixmapCache.getPixmap("zoomOut"),
71 UI.PixmapCache.getPixmap("zoomIn.png"), 71 UI.PixmapCache.getPixmap("zoomIn"),
72 UI.PixmapCache.getPixmap("zoomReset.png"), self) 72 UI.PixmapCache.getPixmap("zoomReset"), self)
73 self.statusBar().addPermanentWidget(self.__zoomWidget) 73 self.statusBar().addPermanentWidget(self.__zoomWidget)
74 self.__zoomWidget.setMapping( 74 self.__zoomWidget.setMapping(
75 PixmapDiagram.ZoomLevels, PixmapDiagram.ZoomLevelDefault) 75 PixmapDiagram.ZoomLevels, PixmapDiagram.ZoomLevelDefault)
76 self.__zoomWidget.valueChanged.connect(self.__doZoom) 76 self.__zoomWidget.valueChanged.connect(self.__doZoom)
77 77
90 def __initActions(self): 90 def __initActions(self):
91 """ 91 """
92 Private method to initialize the view actions. 92 Private method to initialize the view actions.
93 """ 93 """
94 self.closeAct = QAction( 94 self.closeAct = QAction(
95 UI.PixmapCache.getIcon("close.png"), 95 UI.PixmapCache.getIcon("close"),
96 self.tr("Close"), self) 96 self.tr("Close"), self)
97 self.closeAct.triggered.connect(self.close) 97 self.closeAct.triggered.connect(self.close)
98 98
99 self.printAct = QAction( 99 self.printAct = QAction(
100 UI.PixmapCache.getIcon("print.png"), 100 UI.PixmapCache.getIcon("print"),
101 self.tr("Print"), self) 101 self.tr("Print"), self)
102 self.printAct.triggered.connect(self.__printDiagram) 102 self.printAct.triggered.connect(self.__printDiagram)
103 103
104 self.printPreviewAct = QAction( 104 self.printPreviewAct = QAction(
105 UI.PixmapCache.getIcon("printPreview.png"), 105 UI.PixmapCache.getIcon("printPreview"),
106 self.tr("Print Preview"), self) 106 self.tr("Print Preview"), self)
107 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram) 107 self.printPreviewAct.triggered.connect(self.__printPreviewDiagram)
108 108
109 def __initContextMenu(self): 109 def __initContextMenu(self):
110 """ 110 """

eric ide

mercurial