Ref T349, P3D version settings UI

This commit is contained in:
Klaus Basan
2018-11-05 16:23:02 +01:00
parent e9101ab4c6
commit 2d4cdc8010
4 changed files with 132 additions and 41 deletions

View File

@@ -12,8 +12,11 @@
#ifndef BLACKSIMPLUGIN_FSXCOMMON_SIMCONNECTSETTINGSCOMPONENT_H
#define BLACKSIMPLUGIN_FSXCOMMON_SIMCONNECTSETTINGSCOMPONENT_H
#include "blackgui/overlaymessagesframe.h"
#include "blackmisc/settingscache.h"
#include "blackmisc/simulation/settings/simulatorsettings.h"
#include "blackmisc/simulation/simulatorinfo.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class CSimConnectSettingsComponent; }
@@ -24,7 +27,7 @@ namespace BlackSimPlugin
/*!
* A component that gathers all SimConnect related settings.
*/
class CSimConnectSettingsComponent : public QFrame
class CSimConnectSettingsComponent : public BlackGui::COverlayMessagesFrame
{
Q_OBJECT
@@ -60,8 +63,16 @@ namespace BlackSimPlugin
//! Set the simconnect info
void setSimConnectInfo();
//! The the value in the combobox
void setComboBox(const QString &value);
//! The P3D version has been changed
void onP3DVersionChanged(const QString &version);
BlackMisc::Simulation::CSimulatorInfo m_simulator { BlackMisc::Simulation::CSimulatorInfo::FSX };
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TP3DVersion> m_p3dVersion { this };
QScopedPointer<Ui::CSimConnectSettingsComponent> ui;
bool m_p3d64bit = false;
};
} // ns
} // ns