Fix xplane plugin header includes

* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
This commit is contained in:
Roland Winklmeier
2016-05-18 14:44:54 +02:00
parent 0326d1fc81
commit cbc3946306
13 changed files with 150 additions and 28 deletions

View File

@@ -10,6 +10,8 @@
#include "simulatorxplaneconfig.h"
#include "simulatorxplaneconfigwindow.h"
class QWidget;
namespace BlackSimPlugin
{
namespace XPlane

View File

@@ -15,6 +15,13 @@
#include "blackgui/pluginconfig.h"
#include "blackmisc/settingscache.h"
#include <QObject>
#include <QString>
class QWidget;
namespace BlackGui { class CPluginConfigWindow; }
namespace BlackSimPlugin
{
namespace XPlane

View File

@@ -8,16 +8,24 @@
*/
#include "simulatorxplaneconfigwindow.h"
#include "ui_simulatorxplaneconfigwindow.h"
#include "blackmisc/dbusserver.h"
#include "blackmisc/simulation/xplane/xplaneutil.h"
#include "blackmisc/fileutils.h"
#include <QStringBuilder>
#include "blackmisc/simulation/xplane/xplaneutil.h"
#include "ui_simulatorxplaneconfigwindow.h"
#include <QComboBox>
#include <QCoreApplication>
#include <QDialogButtonBox>
#include <QDir>
#include <QFileDialog>
#include <QFlags>
#include <QMessageBox>
#include <QStandardPaths>
#include <QPushButton>
#include <QString>
#include <QStringBuilder>
class QWidget;
using namespace BlackGui;
namespace

View File

@@ -12,13 +12,16 @@
#ifndef BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
#define BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
#include "simulatorxplaneconfig.h"
#include "blackgui/pluginconfigwindow.h"
#include "blackmisc/settingscache.h"
#include "simulatorxplaneconfig.h"
#include <QObject>
#include <QScopedPointer>
namespace Ui {
class CSimulatorXPlaneConfigWindow;
}
class QWidget;
namespace Ui { class CSimulatorXPlaneConfigWindow; }
namespace BlackSimPlugin
{

View File

@@ -1,6 +1,6 @@
load(common_pre)
QT += core widgets dbus
QT += core dbus widgets
TARGET = simulatorxplaneconfig
TEMPLATE = lib