15 #ifndef BORNAGAIN_GUI_VIEW_COMMON_DOCKSCONTROLLER_H
16 #define BORNAGAIN_GUI_VIEW_COMMON_DOCKSCONTROLLER_H
36 void addWidget(
int id, QWidget* widget, Qt::DockWidgetArea area);
44 QDockWidget*
findDock(QWidget* widget);
Handles creation and appearance of docked widgets in the context of QMainWindow. It is used for Sampl...
void setDockVisible(int id, bool visible=true)
bool m_handleDockVisibilityChanges
void restoreSettings(const QHash< QString, QVariant > &settings)
QDockWidget * addDockForWidget(QWidget *widget)
QHash< QString, QVariant > saveSettings() const
void setDockHeightForWidget(int height)
A hack to request update of QDockWidget size if its child (e.g. InfoWidget) wants it....
void addDockActionsToMenu(QMenu *menu)
void addWidget(int id, QWidget *widget, Qt::DockWidgetArea area)
QDockWidget * findDock(int id)
bool eventFilter(QObject *, QEvent *event) override
void handleWindowVisibilityChanged(bool visible)
void setVisibleDocks(const std::vector< int > &visibleDocks)
Show docks with id's from the list. Other docks will be hidden.
DocksController(QMainWindow *mainWindow)
QMainWindow * m_mainWindow
void setTrackingEnabled(bool enabled)
QList< QDockWidget * > dockWidgets() const
std::map< int, DockWidgetInfo > m_docks
static QMainWindow * mainWindow