1 #ifndef CXDYNAMICMAINWINDOWWIDGETS_H_
2 #define CXDYNAMICMAINWINDOWWIDGETS_H_
36 QDockWidget*
addAsDockWidget(QWidget* widget, QString groupname, QObject* owningPlugin=NULL);
37 void registerToolBar(QToolBar* toolbar, QString groupname =
"Toolbars");
45 void onConsoleWindowTitleChanged(
const QString & title);
46 void onWidgetActionTriggered(
bool checked);
59 QObject* mOwningService;
63 QDockWidget* createDockWidget(QWidget* widget);
64 QScrollArea *addVerticalScroller(QWidget* widget);
65 void tabifyWidget(QDockWidget* dockWidget);
66 typedef std::map<QString, QActionGroup*> ActionGroupMap;
67 void addToWidgetGroupMap(ActionGroupMap& groups, QAction* action, QString groupname);
68 QDockWidget* getFirstDockWidget(Qt::DockWidgetArea area);
70 QMainWindow* mMainWindow;
71 std::vector<DynamicWidget> mItems;
72 QToolBar* mFirstDummyToolbar;
77 #endif // CXDYNAMICMAINWINDOWWIDGETS_H_
void registerToolBar(QToolBar *toolbar, QString groupname="Toolbars")
DynamicMainWindowWidgets(QMainWindow *mainWindow)
void restoreFrom(const Desktop &desktop)
QMenu * createPopupMenu()
void showWidget(QString name)
Data class for CustusX desktop.
void owningServiceRemoved(QObject *service)
QDockWidget * addAsDockWidget(QWidget *widget, QString groupname, QObject *owningPlugin=NULL)