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_