CustusX  15.3.3-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxDockWidgets.h
Go to the documentation of this file.
1 #ifndef CXDOCKWIDGETS_H
2 #define CXDOCKWIDGETS_H
3 
4 #include <set>
5 #include <QString>
6 #include <QObject>
7 class QMainWindow;
8 class QDockWidget;
9 class QScrollArea;
10 class QWidget;
11 class QAction;
12 
13 namespace cx
14 {
15 
25 class DockWidgets : public QObject
26 {
27  Q_OBJECT
28 public:
29  DockWidgets(QMainWindow* parent);
30  QDockWidget* addAsDockWidget(QWidget* widget, QString groupname = "");
31  void erase(QDockWidget* dockWidget);
32  void toggleDebug(QAction* action, bool checked);
33  void hideAll();
34 private slots:
35  void onConsoleWindowTitleChanged(const QString & title);
36 private:
37  QDockWidget* createDockWidget(QWidget* widget);
38  QScrollArea *addVerticalScroller(QWidget* widget);
39  void tabifyWidget(QDockWidget* dockWidget);
40 
41  QMainWindow* mParent;
42  std::set<QDockWidget*> mDockWidgets;
43 };
44 } // namespace cx
45 #endif // CXDOCKWIDGETS_H
Handles dock widgets for main window.
Definition: cxDockWidgets.h:25
QDockWidget * addAsDockWidget(QWidget *widget, QString groupname="")
void toggleDebug(QAction *action, bool checked)
DockWidgets(QMainWindow *parent)
void erase(QDockWidget *dockWidget)