mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #300, moved components in own namespace and directory
This commit is contained in:
50
src/blackgui/components/settingssimulatorcomponent.h
Normal file
50
src/blackgui/components/settingssimulatorcomponent.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#ifndef BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
#define BLACKGUI_SETTINGSSIMULATORCOMPONENT_H
|
||||
|
||||
#include "runtimebasedcomponent.h"
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CSettingsSimulatorComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* 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 ps_pluginHasChanged(int index);
|
||||
|
||||
//! Settings have been changed
|
||||
void ps_settingsHaveChanged(uint settingsType);
|
||||
|
||||
//! A GUI value has been changed
|
||||
void ps_guiValueHasChanged();
|
||||
|
||||
private:
|
||||
Ui::CSettingsSimulatorComponent *ui; //!< UI
|
||||
|
||||
//! Smarter way to set current driver, avoids unnecessary signals and less formatting dependend
|
||||
void setCurrentPlugin(const BlackSim::CSimulatorInfo &plugin);
|
||||
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user