refs #325, improved info area

* signal when tab bar is changed (goal: reload in components when info area changes)
* tab bar locking (avoid unintended floating)
This commit is contained in:
Klaus Basan
2014-09-16 22:07:59 +02:00
parent 9e6a9a28cb
commit f7719fb08b
2 changed files with 29 additions and 5 deletions

View File

@@ -29,7 +29,6 @@ namespace BlackGui
Q_OBJECT
public:
//! Destructor
virtual ~CInfoArea() {}
@@ -46,6 +45,10 @@ namespace BlackGui
//! Is given widget selected. Means it is not floating, and the one selected
bool isSelectedInfoArea(const CDockWidgetInfoArea *infoArea) const;
signals:
//! Tab bar changed
void tabBarCurrentChanged(int index);
public slots:
//! Dock all widgets
void dockAllWidgets();
@@ -88,6 +91,7 @@ namespace BlackGui
bool m_showTabTexts = true;
bool m_infoAreaFloating = false; //!< whole info area floating
bool m_showTabBar = true; //!< auto ajdust the floating widgets
bool m_lockTabBar = false; //!< locked means no double clicks possible
//! Tabify the widgets
void tabifyAllWidgets();
@@ -144,6 +148,9 @@ namespace BlackGui
//! Show tab bar
void ps_showTabBar(bool show);
//! Toogle lock tabbar
void ps_toggleTabBarLocked(bool locked);
//! Tab position for docked widgets tab
//! \remarks North or South working, East / West not
void ps_setTabBarPosition(QTabWidget::TabPosition position);