mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refs #891, P3D driver / config
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5d8ed66931
commit
d280141563
27
src/plugins/simulator/p3dconfig/p3dconfig.pro
Normal file
27
src/plugins/simulator/p3dconfig/p3dconfig.pro
Normal file
@@ -0,0 +1,27 @@
|
||||
load(common_pre)
|
||||
|
||||
QT += core widgets dbus network
|
||||
|
||||
TARGET = simulatorp3dconfig
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin shared
|
||||
CONFIG += blackmisc blackcore blackgui
|
||||
|
||||
DEPENDPATH += . $$SourceRoot/src
|
||||
INCLUDEPATH += . $$SourceRoot/src
|
||||
|
||||
SOURCES += *.cpp
|
||||
HEADERS += *.h
|
||||
DISTFILES += simulatorp3dconfig.json
|
||||
LIBS += -lsimulatorfsxcommon
|
||||
DESTDIR = $$DestRoot/bin/plugins/simulator
|
||||
|
||||
win32 {
|
||||
dlltarget.path = $$PREFIX/bin/plugins/simulator
|
||||
INSTALLS += dlltarget
|
||||
} else {
|
||||
target.path = $$PREFIX/bin/plugins/simulator
|
||||
INSTALLS += target
|
||||
}
|
||||
|
||||
load(common_post)
|
||||
27
src/plugins/simulator/p3dconfig/simulatorp3dconfig.cpp
Normal file
27
src/plugins/simulator/p3dconfig/simulatorp3dconfig.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Copyright (C) 2017
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include "simulatorp3dconfig.h"
|
||||
#include "../fsxcommon/simulatorfsxconfigwindow.h"
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace P3D
|
||||
{
|
||||
CSimulatorP3DConfig::CSimulatorP3DConfig(QObject *parent) : QObject(parent)
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
BlackGui::CPluginConfigWindow *CSimulatorP3DConfig::createConfigWindow(QWidget *parent)
|
||||
{
|
||||
return new BlackSimPlugin::FsxCommon::CSimulatorFsxConfigWindow("P3D", parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
43
src/plugins/simulator/p3dconfig/simulatorp3dconfig.h
Normal file
43
src/plugins/simulator/p3dconfig/simulatorp3dconfig.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Copyright (C) 2017
|
||||
* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKSIMPLUGIN_P3D_SIMULATORP3DCONFIG_H
|
||||
#define BLACKSIMPLUGIN_P3D_SIMULATORP3DCONFIG_H
|
||||
|
||||
#include "blackgui/pluginconfig.h"
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace P3D
|
||||
{
|
||||
/*!
|
||||
* Window for setting up the P3D plugin.
|
||||
*/
|
||||
class CSimulatorP3DConfig : public QObject, public BlackGui::IPluginConfig
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.swift-project.blackgui.pluginconfiginterface" FILE "simulatorp3dconfig.json")
|
||||
Q_INTERFACES(BlackGui::IPluginConfig)
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
CSimulatorP3DConfig(QObject *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CSimulatorP3DConfig() {}
|
||||
|
||||
//! \copydoc BlackGui::IPluginConfig::createConfigWindow()
|
||||
BlackGui::CPluginConfigWindow *createConfigWindow(QWidget *parent) override;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // guard
|
||||
3
src/plugins/simulator/p3dconfig/simulatorp3dconfig.json
Normal file
3
src/plugins/simulator/p3dconfig/simulatorp3dconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"identifier" : "org.swift-project.plugins.simulator.p3d.config"
|
||||
}
|
||||
Reference in New Issue
Block a user