9 #include "helper/singleton.h" 45 Q_CLASSINFO(
"guiModule",
"true")
46 Q_CLASSINFO(
"dependsOn",
"PluginManager")
69 QWidget* removeWidget(QString
const& name);
103 bool moveWidget(QString
const& name,
WidgetArea area);
110 void setVisible(QString
const& name,
bool visible);
116 QWidget* widgetReference();
126 bool addAction(QAction* action, QString
const& name, QString
const& parent);
135 bool addActionToParent(QString
const& name, QString
const& parent);
145 QString addAction(QAction* action, QString
const& parent);
152 QAction* action(QString
const& name)
const;
160 QAction* removeAction(QString
const& name, QString
const& parent = QString());
168 void registerCloseHandler(std::function<
bool()> callback);
175 QStringList parents(QString
const& name);
182 QStringList children(QString
const& name)
const;
188 QStringList registeredActions()
const;
194 QStringList registeredWidgets()
const;
201 QStringList registeredWidgets(
WidgetType type)
const;
207 bool mainWindowIsActive()
const;
213 void mainWindowActivationChange();
216 QScopedPointer<class GuiManagerPrivate>
const d_ptr;
217 Q_DECLARE_PRIVATE(GuiManager)
220 #endif // GUI_MANAGER_H No area, use for widget that don't need an area.
Widget that can be casted into a QMenuBar, only one can exist within a QMainWindow.
GuiMode
Definition: gui_manager.h:32
Widget that can be casted into a QStatusBar, only one can exist within a QMainWindow.
The AbstractSingleton class defines functions that every singleton must implement Every Singleton mus...
Definition: singleton.h:12
WidgetArea
Information about the area where a widget should be placed, Compatible with Qt::DockWidgetArea and Qt...
Definition: gui_manager.h:22
WidgetType
Information about the type of a widget.
Definition: gui_manager.h:14
Do not show GUI. Useful for non-interactive usage, e.g. in tests.
Widget that can be casted into a Toolbar.
Widget that is placed in the center, only one can exist within a QMainWindow.
The Singleton Template figures as baseclass for all Singletons. It provides a instance() functions wh...
Definition: singleton.h:54
Widget that can be casted to a QDockwidget.
The GuiManager class handels widgets and actions on the main window.
Definition: gui_manager.h:40