refs #335, adjusted main info area

* improved include file
* removed unused method
* getter for cockpit
This commit is contained in:
Klaus Basan
2014-10-25 00:25:30 +02:00
committed by Roland Winklmeier
parent 858e8895d8
commit 3c223b2416
3 changed files with 32 additions and 12 deletions

View File

@@ -13,14 +13,7 @@
#define BLACKGUI_MAININFOAREACOMPONENT_H
#include "../infoarea.h"
#include "atcstationcomponent.h"
#include "aircraftcomponent.h"
#include "usercomponent.h"
#include "textmessagecomponent.h"
#include "simulatorcomponent.h"
#include "flightplancomponent.h"
#include "settingscomponent.h"
#include "logcomponent.h"
#include "allmaininfoareacomponents.h"
#include <QTabBar>
#include <QPixmap>
#include <QScopedPointer>
@@ -30,7 +23,6 @@ namespace BlackGui
{
namespace Components
{
//! Main info area
class CMainInfoAreaComponent : public BlackGui::CInfoArea
{
@@ -61,6 +53,9 @@ namespace BlackGui
InfoAreaNone = -1
};
//! Cockpit
CCockpitComponent *getCockpitComponent();
//! ATC stations
CAtcStationComponent *getAtcStationComponent();
@@ -85,9 +80,6 @@ namespace BlackGui
//! Text messages
CTextMessageComponent *getTextMessageComponent();
//! Selected area of non floating areas
// InfoArea getSelectedInfoArea() const { return static_cast<InfoArea>(getSelectedTabBarIndex()); }
public slots:
//! Toggle floating of given area
void toggleFloating(InfoArea infoArea) { CInfoArea::toggleFloating(static_cast<int>(infoArea)); }