26 #include <QDockWidget>
27 #include <QActionGroup>
31 QMainWindow(parent), groupEditorDialog(groupEditorDialog)
35 objectInspectorDock->setFeatures(QDockWidget::NoDockWidgetFeatures);
36 objectInspectorDock->setAllowedAreas(Qt::LeftDockWidgetArea);
38 objectInspectorDock->setCollapsibleWidget(objectInspector);
39 addDockWidget(Qt::LeftDockWidgetArea, objectInspectorDock);
43 objectExplorerDock->setFeatures(QDockWidget::NoDockWidgetFeatures);
44 objectExplorerDock->setAllowedAreas(Qt::RightDockWidgetArea);
46 objectExplorerDock->setCollapsibleWidget(objectExplorer);
47 addDockWidget(Qt::RightDockWidgetArea, objectExplorerDock);
51 minimapDock->setFeatures(QDockWidget::NoDockWidgetFeatures);
52 minimapDock->setAllowedAreas(Qt::LeftDockWidgetArea);
54 minimapDock->setCollapsibleWidget(minimap);
55 addDockWidget(Qt::LeftDockWidgetArea, minimapDock);
59 groupExplorerDock->setFeatures(QDockWidget::NoDockWidgetFeatures);
60 groupExplorerDock->setAllowedAreas(Qt::RightDockWidgetArea);
62 groupExplorerDock->setCollapsibleWidget(groupExplorer);
63 addDockWidget(Qt::RightDockWidgetArea, groupExplorerDock);
77 setCentralWidget(scene);
78 this->setEnabled(
false);
85 objectExplorer->onConnect();
94 if (event->type() == QEvent::LanguageChange)
96 groupExplorer->retranslate();
97 objectInspector->retranslate();
98 objectExplorer->retranslate();
100 groupEditorDialog->retranslate();
101 objectExplorerDock->setWindowTitle(tr(
"Object Explorer"));
102 objectExplorerDock->windowTitleChanged();
103 objectInspectorDock->setWindowTitle(tr(
"Object Inspector"));
104 objectInspectorDock->windowTitleChanged();
105 groupExplorerDock->setWindowTitle(tr(
"Group Explorer"));
106 groupExplorerDock->windowTitleChanged();
107 minimapDock->setWindowTitle(tr(
"Minimap"));
108 minimapDock->windowTitleChanged();
110 emit languageChangedByUser();
114 QMainWindow::changeEvent(event);