6#include <QGuiApplication>
9#include "ui_maininfoareacomponent.h"
58 ui->comp_Log->displayLog();
74 if (infoArea == InfoAreaSettings)
76 ui->comp_Settings->setSettingsOverviewTab();
78 else if (infoArea == InfoAreaAircraft)
80 ui->comp_Aircraft->setTab(CAircraftComponent::TabAircraftInRange);
82 else if (infoArea == InfoAreaAtc)
84 ui->comp_AtcStations->setTab(CAtcStationComponent::TabAtcOnline);
88 ui->comp_Mappings->setTab(CMappingComponent::TabRenderedAircraft);
96 const auto area =
static_cast<InfoArea>(areaIndex);
100 case InfoAreaAircraft:
104 case InfoAreaSimulator:
106 case InfoAreaInterpolation:
107 case InfoAreaSettings:
108 case InfoAreaTextMessages:
109 case InfoAreaRadar:
return { 600, 400 };
110 case InfoAreaFlightPlan:
return { 800, 600 };
111 default:
return { 600, 400 };
124 this->
selectArea(CMainInfoAreaComponent::InfoAreaCockpit);
129 const auto area =
static_cast<InfoArea>(areaIndex);
CInfoArea(QWidget *parent=nullptr)
Constructor.
void selectArea(int areaIndex)
Select area.
void initInfoArea()
Init area after(!) GUI is initialized.
Cockpit component: COM unit, show / hide bar, voice rooms.
void showAudio()
Show the audio UI.
GUI displaying log and status messages.
void requestAttention()
Make me visible.
void showFilterDialog()
Show filter dialog and disable bar.
CCockpitComponent * getCockpitComponent()
Cockpit.
CAtcStationComponent * getAtcStationComponent()
ATC stations.
void selectSettingsTab(int index)
Select settings with given area.
void selectArea(InfoArea infoArea)
Select area.
QSize getPreferredSizeWhenFloating(int areaIndex) const
Preferred size when floating (size hint).
~CMainInfoAreaComponent()
Destructor.
void selectAudioTab()
Select the audio tab.
CUserComponent * getUserComponent()
User component.
@ InfoAreaMapping
aka rendering, models
CFlightPlanComponent * getFlightPlanComponent()
Flight plan.
void selectLog()
Select log.
CAircraftComponent * getAircraftComponent()
Aircrafts.
CMainInfoAreaComponent(QWidget *parent=nullptr)
Constructor.
CMappingComponent * getMappingComponent()
Mappings.
CRadarComponent * getRadarComponent()
Radar.
void displayLog()
Display the log.
CSettingsComponent * getSettingsComponent()
Settings.
CInterpolationComponent * getInterpolationComponent()
Interpolation.
CLogComponent * getLogComponent()
Log messages.
CTextMessageComponent * getTextMessageComponent()
Text messages.
const QPixmap & indexToPixmap(int areaIndex) const
Info area (index) to icon.
CSimulatorComponent * getSimulatorComponent()
Simulator.
GUI displaying a radar like view with aircrafts nearby.
User componenet (users, clients).
static const QPixmap & swift64()
swift icon
static const QPixmap & appCockpit16()
Application cockpit.
static const QPixmap & appAircraft16()
Application aircrafts.
static const QPixmap & appSettings16()
Application settings.
static const QPixmap & appMappings16()
Application mappings.
static const QPixmap & empty()
Empty icon.
static const QPixmap & appSimulator16()
Application simulator.
static const QPixmap & appFlightPlan16()
Application flight plan.
static const QPixmap & appLog16()
Application log/status messages.
static const QPixmap & appRadar16()
Radar.
static const QPixmap & appTextMessages16()
Application text messages.
static const QPixmap & appAtc16()
Application ATC.
static const QPixmap & appInterpolation16()
Application interpolation.
static const QPixmap & appUsers16()
Application users.
High level reusable GUI components.
Free functions in swift::misc.
Qt::KeyboardModifiers queryKeyboardModifiers()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
typedef KeyboardModifiers