#refs 432 using forward declaration to reduce includes in header

Remark: some related includes had to be updated
This commit is contained in:
Klaus Basan
2015-05-27 04:02:58 +02:00
parent 6e2830c130
commit a89c4a9775
3 changed files with 18 additions and 6 deletions

View File

@@ -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;
}
}

View File

@@ -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

View File

@@ -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;