Files
pilotclient/src/blackgui/components/settingssimulatormessagescomponent.h
2019-05-13 11:20:38 +02:00

51 lines
1.5 KiB
C++

/* Copyright (C) 2016
* 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. 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 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
{
namespace 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
} // ns
#endif // guard