mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
refs #273, own settings component (GUI)
This commit is contained in:
38
src/blackgui/settingssimulatorcomponent.h
Normal file
38
src/blackgui/settingssimulatorcomponent.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
#define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
|
||||
#include "runtimebasedcomponent.h"
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CSettingsSimulatorComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
/*!
|
||||
* All simulator settings component (GUI)
|
||||
*/
|
||||
class CSettingsSimulatorComponent : public QFrame, public CRuntimeBasedComponent
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsSimulatorComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CSettingsSimulatorComponent();
|
||||
|
||||
protected:
|
||||
//! \copydoc CRuntimeBasedComponent::runtimeHasBeenSet()
|
||||
virtual void runtimeHasBeenSet() override;
|
||||
|
||||
private slots:
|
||||
//! Driver changed
|
||||
void driverHasChanged(int index);
|
||||
|
||||
private:
|
||||
Ui::CSettingsSimulatorComponent *ui; //!< UI
|
||||
};
|
||||
|
||||
} // namespace
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user