SqpSettingsDialog.h
40 lines
| 1011 B
| text/x-c
|
CLexer
Alexandre Leroux
|
r427 | #ifndef SCIQLOP_SQPSETTINGSDIALOG_H | ||
#define SCIQLOP_SQPSETTINGSDIALOG_H | ||||
#include "Settings/ISqpSettingsBindable.h" | ||||
#include <QDialog> | ||||
namespace Ui { | ||||
class SqpSettingsDialog; | ||||
} // Ui | ||||
/** | ||||
* @brief The SqpSettingsDialog class represents the dialog in which the parameters of SciQlop are | ||||
* set | ||||
*/ | ||||
Alexandre Leroux
|
r432 | class SqpSettingsDialog : public QDialog, public ISqpSettingsBindable { | ||
Alexandre Leroux
|
r427 | Q_OBJECT | ||
public: | ||||
explicit SqpSettingsDialog(QWidget *parent = 0); | ||||
virtual ~SqpSettingsDialog() noexcept; | ||||
Alexandre Leroux
|
r432 | /// @sa ISqpSettingsBindable::loadSettings() | ||
void loadSettings() override final; | ||||
/// @sa ISqpSettingsBindable::saveSettings() | ||||
void saveSettings() const override final; | ||||
Alexandre Leroux
|
r428 | /** | ||
* Registers a widget into the dialog | ||||
* @param name the name under which the widget will appear in the dialog | ||||
* @param widget the widget to register | ||||
*/ | ||||
void registerWidget(const QString &name, QWidget *widget) noexcept; | ||||
Alexandre Leroux
|
r427 | private: | ||
Ui::SqpSettingsDialog *ui; | ||||
}; | ||||
#endif // SCIQLOP_SQPSETTINGSDIALOG_H | ||||