mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 20:25:34 +08:00
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKGUI_COMPONENTS_SETTINGSSIMULATORMESSAGESCOMPONENT_H
|
|
#define BLACKGUI_COMPONENTS_SETTINGSSIMULATORMESSAGESCOMPONENT_H
|
|
|
|
#include "blackmisc/simulation/settings/simulatorsettings.h"
|
|
#include <QFrame>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui
|
|
{
|
|
class CSettingsSimulatorMessagesComponent;
|
|
}
|
|
namespace BlackGui::Components
|
|
{
|
|
/*!
|
|
* Configure what messages are sent to simulator
|
|
*/
|
|
class CSettingsSimulatorMessagesComponent : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CSettingsSimulatorMessagesComponent(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CSettingsSimulatorMessagesComponent() override;
|
|
|
|
private:
|
|
//! Save the data
|
|
void save();
|
|
|
|
//! Load data
|
|
void load();
|
|
|
|
private:
|
|
QScopedPointer<Ui::CSettingsSimulatorMessagesComponent> ui;
|
|
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TSimulatorMessages> m_settings { this }; //!< settings for messages
|
|
};
|
|
} // ns
|
|
#endif // guard
|