39 #include <QTranslator>
53 #include "../controller/Controller.h"
57 class SceneEditorMainWindow;
232 void loadSettings(QSettings* settings)
override;
241 void saveSettings(QSettings* settings)
override;
254 return "MemoryX.SceneEditor";
263 void onInitComponent()
override;
271 void onConnectComponent()
override;
276 void onDisconnectComponent()
override;
278 QPointer<QWidget> getWidget()
override;
287 QPointer<QWidget> getCustomTitlebarWidget(QWidget* parent)
override;
296 QPointer<QDialog> getConfigDialog(QWidget* parent)
override;
304 void configured()
override;
309 void slotLanguageChanged(
const int languageIndex);
312 void slotLanguageChangedByUser();
315 QPointer<SceneEditorMainWindow> mainWindow;
316 QPointer<dialog::SceneEditorConfigDialog> configDialog;
317 QPointer<QToolBar> customToolbar;
318 QPointer<dialog::GroupExplorerDialog> groupEditorDialog;
319 QPointer<dialog::LoadSnapshotDialog> loadSnapshotDialog;
320 QPointer<dialog::SaveSnapshotDialog> saveSnapshotDialog;
321 QPointer<dialog::ShortcutDialog> shortcutDialog;
322 QPointer<QComboBox> languageSelection;
324 QPointer<QAction> loadSnapshotAction;
325 QPointer<QAction> saveSnapshotAction;
326 QPointer<QAction> openShortcutDialogAction;
327 QPointer<QAction> openGroupEditorAction;
328 QPointer<QAction> clearWorkingMemoryAction;
332 std::string workingMemoryName;
333 std::string workingMemoryUpdatesTopic;
334 std::string objectInstancesSegmentName;
335 std::string priorMemoryName;
337 QString settingsPath;
342 void loadLanguage(
const QString& language);
346 void createLanguageMenu();
356 void switchTranslator(QTranslator& translator,
const QString&
filename,
const QString& directory);
358 QTranslator m_translator;
359 QTranslator m_translatorQt;
365 void openLoadSnapshotDialog();
366 void openSaveSnapshotDialog();
367 void openShortcutDialog();
368 void openGroupEditorDialog();
369 void onConnectComponentQt();
370 void onDisconnectComponentQt();
373 void connectComponent();
374 void disconnectComponent();
379 void postDocking()
override;