10 from PyQt4.QtCore import Qt, QFileInfo |
10 from PyQt4.QtCore import Qt, QFileInfo |
11 from PyQt4.QtGui import QAction, QToolBar, QGraphicsScene |
11 from PyQt4.QtGui import QAction, QToolBar, QGraphicsScene |
12 |
12 |
13 from E5Gui import E5MessageBox, E5FileDialog |
13 from E5Gui import E5MessageBox, E5FileDialog |
14 from E5Gui.E5MainWindow import E5MainWindow |
14 from E5Gui.E5MainWindow import E5MainWindow |
15 |
|
16 from .UMLGraphicsView import UMLGraphicsView |
|
17 |
15 |
18 import UI.Config |
16 import UI.Config |
19 import UI.PixmapCache |
17 import UI.PixmapCache |
20 |
18 |
21 |
19 |
48 self.setObjectName("UMLDialog") |
46 self.setObjectName("UMLDialog") |
49 |
47 |
50 self.__diagramType = diagramType |
48 self.__diagramType = diagramType |
51 self.__project = project |
49 self.__project = project |
52 |
50 |
|
51 from .UMLGraphicsView import UMLGraphicsView |
53 self.scene = QGraphicsScene(0.0, 0.0, 800.0, 600.0) |
52 self.scene = QGraphicsScene(0.0, 0.0, 800.0, 600.0) |
54 self.umlView = UMLGraphicsView(self.scene, parent=self) |
53 self.umlView = UMLGraphicsView(self.scene, parent=self) |
55 self.builder = self.__diagramBuilder(self.__diagramType, path, **kwargs) |
54 self.builder = self.__diagramBuilder(self.__diagramType, path, **kwargs) |
56 if self.builder and initBuilder: |
55 if self.builder and initBuilder: |
57 self.builder.initialize() |
56 self.builder.initialize() |