15 |
15 |
16 from eric7 import Preferences |
16 from eric7 import Preferences |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
18 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
19 from eric7.EricWidgets.EricZoomWidget import EricZoomWidget |
19 from eric7.EricWidgets.EricZoomWidget import EricZoomWidget |
20 from eric7.UI import Config |
|
21 |
20 |
22 |
21 |
23 class SvgDiagram(EricMainWindow): |
22 class SvgDiagram(EricMainWindow): |
24 """ |
23 """ |
25 Class implementing a dialog showing a SVG graphic. |
24 Class implementing a dialog showing a SVG graphic. |
157 def __initToolBars(self): |
156 def __initToolBars(self): |
158 """ |
157 """ |
159 Private method to populate the toolbars with our actions. |
158 Private method to populate the toolbars with our actions. |
160 """ |
159 """ |
161 self.windowToolBar = QToolBar(self.tr("Window"), self) |
160 self.windowToolBar = QToolBar(self.tr("Window"), self) |
162 self.windowToolBar.setIconSize(Config.ToolBarIconSize) |
|
163 self.windowToolBar.addAction(self.closeAct) |
161 self.windowToolBar.addAction(self.closeAct) |
164 |
162 |
165 self.graphicsToolBar = QToolBar(self.tr("Graphics"), self) |
163 self.graphicsToolBar = QToolBar(self.tr("Graphics"), self) |
166 self.graphicsToolBar.setIconSize(Config.ToolBarIconSize) |
|
167 self.graphicsToolBar.addAction(self.printPreviewAct) |
164 self.graphicsToolBar.addAction(self.printPreviewAct) |
168 self.graphicsToolBar.addAction(self.printAct) |
165 self.graphicsToolBar.addAction(self.printAct) |
169 |
166 |
170 self.addToolBar(Qt.ToolBarArea.TopToolBarArea, self.windowToolBar) |
167 self.addToolBar(Qt.ToolBarArea.TopToolBarArea, self.windowToolBar) |
171 self.addToolBar(Qt.ToolBarArea.TopToolBarArea, self.graphicsToolBar) |
168 self.addToolBar(Qt.ToolBarArea.TopToolBarArea, self.graphicsToolBar) |