mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
SimConnect config: Allow to enable tracing of sendid via UI
This commit is contained in:
committed by
Roland Winklmeier
parent
7ba9a35c52
commit
456cb5d1ea
54
src/plugins/simulator/fsxcommon/fsxsettingscomponent.h
Normal file
54
src/plugins/simulator/fsxcommon/fsxsettingscomponent.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/* Copyright (C) 2018
|
||||
* 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_FSXCOMMON_FSXSETTINGSCOMPONENT_H
|
||||
#define BLACKSIMPLUGIN_FSXCOMMON_FSXSETTINGSCOMPONENT_H
|
||||
|
||||
#include "blackmisc/simulation/simulatorinfo.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CFsxSettingsComponent; }
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace FsxCommon
|
||||
{
|
||||
class CSimulatorFsxCommon;
|
||||
|
||||
//! FSX/P3D settings
|
||||
class CFsxSettingsComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CFsxSettingsComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CFsxSettingsComponent();
|
||||
|
||||
//! Simulator, P3D/FSX
|
||||
void setSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator) { m_simulator = simulator; }
|
||||
|
||||
private:
|
||||
//! Checkbox change
|
||||
void onSimConnectTraceChanged();
|
||||
|
||||
//! Access the concrete implementation
|
||||
CSimulatorFsxCommon *getFsxSimulator () const;
|
||||
|
||||
BlackMisc::Simulation::CSimulatorInfo m_simulator { "FSX" };
|
||||
QScopedPointer<Ui::CFsxSettingsComponent> ui;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user