mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
#refs 432 using forward declaration to reduce includes in header
Remark: some related includes had to be updated
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "maininfoareacomponent.h"
|
||||
#include "ui_maininfoareacomponent.h"
|
||||
#include "allmaininfoareacomponents.h"
|
||||
#include "../stylesheetutility.h"
|
||||
#include "../guiutility.h"
|
||||
#include "blackmisc/icons.h"
|
||||
@@ -97,7 +98,6 @@ namespace BlackGui
|
||||
case InfoAreaLog:
|
||||
case InfoAreaSimulator:
|
||||
return QSize(400, 300);
|
||||
break;
|
||||
case InfoAreaMappings:
|
||||
case InfoAreaSettings:
|
||||
case InfoAreaTextMessages:
|
||||
@@ -105,10 +105,8 @@ namespace BlackGui
|
||||
break;
|
||||
case InfoAreaFlightPlan:
|
||||
return QSize(625, 500);
|
||||
break;
|
||||
default:
|
||||
return QSize(400, 300);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "../infoarea.h"
|
||||
#include "allmaininfoareacomponents.h"
|
||||
#include <QTabBar>
|
||||
#include <QPixmap>
|
||||
#include <QScopedPointer>
|
||||
@@ -24,6 +23,19 @@ namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
// forward declaration to break compile dependency from all components
|
||||
class CCockpitComponent;
|
||||
class CAtcStationComponent;
|
||||
class CAircraftComponent;
|
||||
class CMappingComponent;
|
||||
class CUserComponent;
|
||||
class CFlightPlanComponent;
|
||||
class CSettingsComponent;
|
||||
class CLogComponent;
|
||||
class CSimulatorComponent;
|
||||
class CTextMessageComponent;
|
||||
|
||||
|
||||
//! Main info area
|
||||
class BLACKGUI_EXPORT CMainInfoAreaComponent : public BlackGui::CInfoArea
|
||||
{
|
||||
@@ -104,7 +116,7 @@ namespace BlackGui
|
||||
private:
|
||||
QScopedPointer<Ui::CMainInfoAreaComponent> ui;
|
||||
};
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "mainkeypadareacomponent.h"
|
||||
#include "ui_mainkeypadareacomponent.h"
|
||||
#include "blackcore/context_audio.h"
|
||||
#include "blackcore/context_network.h"
|
||||
#include "blackcore/context_ownaircraft.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
|
||||
Reference in New Issue
Block a user