mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
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:
committed by
Roland Winklmeier
parent
594df164a2
commit
e6a5e2960f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user