refs #750, allow to reset window position of dock widget

This commit is contained in:
Klaus Basan
2016-08-29 18:33:00 +02:00
parent bfd94ea6a8
commit d2aa2e9c1c
4 changed files with 73 additions and 10 deletions

View File

@@ -84,6 +84,11 @@ namespace BlackGui
//! \param parent which will own the action (deletion)
QList<QAction *> getInfoAreaRestoreActions(QWidget *parent) const;
//! Create a list of actions to reset the position the info areas.
//! This could be used in a menu or somewhere else.
//! \param parent which will own the action (deletion)
QList<QAction *> getInfoAreaResetPositionActions(QWidget *parent) const;
//! Docked area indexes
QList<int> getAreaIndexesDockedOrFloating(bool floating) const;
@@ -119,12 +124,18 @@ namespace BlackGui
//! Select area
void selectArea(int areaIndex);
//! Reset position
void resetPosition(int areaIndex);
//! Set current tab bar index by given widget
void selectArea(const CDockWidgetInfoArea *dockWidgetInfoArea);
//! Select area (sender is QAction)
void selectAreaByAction();
//! Reset window position of area (sender is QAction)
void resetPositionByAction();
//! Toggle area floating (sender is QAction)
void toggleAreaFloatingByAction();