refs #335, changed info areas

* remove unused methods
* changed ui, preferred size and such
* changed ctor for CEnableForDockWidgetInfoArea and made setParentDockWidgetInfoArea virtual
* adjusted derived classes ctor
* added enum and area methods for cockpitinfoarea
This commit is contained in:
Klaus Basan
2014-10-16 03:06:08 +02:00
committed by Roland Winklmeier
parent 594df164a2
commit e6a5e2960f
13 changed files with 117 additions and 112 deletions

View File

@@ -23,7 +23,7 @@ namespace BlackGui
{
//! The cockpit itself is part of the main info area, but itself also an info area.
//! hence windows can be docked in the cockpit too.
class CCockpitInfoAreaComponent : public CInfoArea
class CCockpitInfoAreaComponent : public BlackGui::CInfoArea
{
Q_OBJECT
@@ -34,9 +34,21 @@ namespace BlackGui
//! Destructor
~CCockpitInfoAreaComponent();
//! Info areas
enum InfoArea
{
// index must match tab index!
InfoAreaVoiceRooms = 0,
InfoAreaAudio = 1,
InfoAreaNone = -1
};
public slots:
//! CInfoArea::toggleFloating
virtual void toggleFloating() override;
//! Toggle floating of given area
void toggleFloating(InfoArea infoArea) { CInfoArea::toggleFloating(static_cast<int>(infoArea)); }
//! Select area
void selectArea(InfoArea infoArea) { CInfoArea::selectArea(static_cast<int>(infoArea)); }
protected:
//! \copydoc CInfoArea::getPreferredSizeWhenFloating