refs #300, moved components in own namespace and directory

This commit is contained in:
Klaus Basan
2014-07-27 14:56:51 +02:00
parent c500a561be
commit 3d41414d9e
64 changed files with 4104 additions and 3476 deletions

View 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