mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
refs #335, adjusted main info area
* improved include file * removed unused method * getter for cockpit
This commit is contained in:
committed by
Roland Winklmeier
parent
858e8895d8
commit
3c223b2416
23
src/blackgui/components/allmaininfoareacomponents.h
Normal file
23
src/blackgui/components/allmaininfoareacomponents.h
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/* Copyright (C) 2014
|
||||||
|
* swift project Community / Contributors
|
||||||
|
*
|
||||||
|
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||||
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||||
|
* contained in the LICENSE file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef BLACKGUI_ALLMAININFOAREACOMPONENTS_H
|
||||||
|
#define BLACKGUI_ALLMAININFOAREACOMPONENTS_H
|
||||||
|
|
||||||
|
#include "atcstationcomponent.h"
|
||||||
|
#include "aircraftcomponent.h"
|
||||||
|
#include "cockpitcomponent.h"
|
||||||
|
#include "usercomponent.h"
|
||||||
|
#include "textmessagecomponent.h"
|
||||||
|
#include "simulatorcomponent.h"
|
||||||
|
#include "flightplancomponent.h"
|
||||||
|
#include "settingscomponent.h"
|
||||||
|
#include "logcomponent.h"
|
||||||
|
|
||||||
|
#endif // guard
|
||||||
@@ -50,6 +50,11 @@ namespace BlackGui
|
|||||||
return this->ui->comp_Users;
|
return this->ui->comp_Users;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCockpitComponent *CMainInfoAreaComponent::getCockpitComponent()
|
||||||
|
{
|
||||||
|
return this->ui->comp_Cockpit;
|
||||||
|
}
|
||||||
|
|
||||||
CFlightPlanComponent *CMainInfoAreaComponent::getFlightPlanComponent()
|
CFlightPlanComponent *CMainInfoAreaComponent::getFlightPlanComponent()
|
||||||
{
|
{
|
||||||
return this->ui->comp_FlightPlan;
|
return this->ui->comp_FlightPlan;
|
||||||
|
|||||||
@@ -13,14 +13,7 @@
|
|||||||
#define BLACKGUI_MAININFOAREACOMPONENT_H
|
#define BLACKGUI_MAININFOAREACOMPONENT_H
|
||||||
|
|
||||||
#include "../infoarea.h"
|
#include "../infoarea.h"
|
||||||
#include "atcstationcomponent.h"
|
#include "allmaininfoareacomponents.h"
|
||||||
#include "aircraftcomponent.h"
|
|
||||||
#include "usercomponent.h"
|
|
||||||
#include "textmessagecomponent.h"
|
|
||||||
#include "simulatorcomponent.h"
|
|
||||||
#include "flightplancomponent.h"
|
|
||||||
#include "settingscomponent.h"
|
|
||||||
#include "logcomponent.h"
|
|
||||||
#include <QTabBar>
|
#include <QTabBar>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QScopedPointer>
|
#include <QScopedPointer>
|
||||||
@@ -30,7 +23,6 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
|
||||||
//! Main info area
|
//! Main info area
|
||||||
class CMainInfoAreaComponent : public BlackGui::CInfoArea
|
class CMainInfoAreaComponent : public BlackGui::CInfoArea
|
||||||
{
|
{
|
||||||
@@ -61,6 +53,9 @@ namespace BlackGui
|
|||||||
InfoAreaNone = -1
|
InfoAreaNone = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! Cockpit
|
||||||
|
CCockpitComponent *getCockpitComponent();
|
||||||
|
|
||||||
//! ATC stations
|
//! ATC stations
|
||||||
CAtcStationComponent *getAtcStationComponent();
|
CAtcStationComponent *getAtcStationComponent();
|
||||||
|
|
||||||
@@ -85,9 +80,6 @@ namespace BlackGui
|
|||||||
//! Text messages
|
//! Text messages
|
||||||
CTextMessageComponent *getTextMessageComponent();
|
CTextMessageComponent *getTextMessageComponent();
|
||||||
|
|
||||||
//! Selected area of non floating areas
|
|
||||||
// InfoArea getSelectedInfoArea() const { return static_cast<InfoArea>(getSelectedTabBarIndex()); }
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
//! Toggle floating of given area
|
//! Toggle floating of given area
|
||||||
void toggleFloating(InfoArea infoArea) { CInfoArea::toggleFloating(static_cast<int>(infoArea)); }
|
void toggleFloating(InfoArea infoArea) { CInfoArea::toggleFloating(static_cast<int>(infoArea)); }
|
||||||
|
|||||||
Reference in New Issue
Block a user