6 """ |
6 """ |
7 Module implementing a dialog showing a pixmap. |
7 Module implementing a dialog showing a pixmap. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import Qt, QSize, QEvent |
10 from PyQt4.QtCore import Qt, QSize, QEvent |
11 from PyQt4.QtGui import QMainWindow, QLabel, QPalette, QSizePolicy, QScrollArea, \ |
11 from PyQt4.QtGui import QLabel, QPalette, QSizePolicy, QScrollArea, QAction, QMenu, \ |
12 QAction, QMenu, QToolBar, QImage, QPixmap, QDialog, QPrinter, QPrintDialog, \ |
12 QToolBar, QImage, QPixmap, QDialog, QPrinter, QPrintDialog, QPainter, QFont, QColor |
13 QPainter, QFont, QColor |
|
14 |
13 |
15 from E5Gui import E5MessageBox |
14 from E5Gui import E5MessageBox |
|
15 from E5Gui.E5MainWindow import E5MainWindow |
16 |
16 |
17 from .ZoomDialog import ZoomDialog |
17 from .ZoomDialog import ZoomDialog |
18 |
18 |
19 import UI.Config |
19 import UI.Config |
20 |
20 |
21 import Preferences |
21 import Preferences |
22 |
22 |
23 |
23 |
24 class PixmapDiagram(QMainWindow): |
24 class PixmapDiagram(E5MainWindow): |
25 """ |
25 """ |
26 Class implementing a dialog showing a pixmap. |
26 Class implementing a dialog showing a pixmap. |
27 """ |
27 """ |
28 def __init__(self, pixmap, parent=None, name=None): |
28 def __init__(self, pixmap, parent=None, name=None): |
29 """ |
29 """ |