#include <QWidget>
+class QCheckBox;
+class QComboBox;
+class QSpinBox;
+
//! A SettingsPage is a page in the settings dialog.
/** The SettingsDlg provides suitable standard buttons, such as Ok, Apply, Cancel, Restore Defaults and Reset.
* Some pages might also be used in standalone dialogs or other containers. A SettingsPage provides suitable
* \return false, if the SettingsPage cannot be saved in its current state.
*/
inline virtual bool aboutToSave() { return true; }
-
+
+ //! sets checked state depending on \checked and stores the value for later comparision
+ static void load(QCheckBox *box, bool checked);
+ static bool hasChanged(QCheckBox *box);
+ static void load(QComboBox *box, int index);
+ static bool hasChanged(QComboBox *box);
+ static void load(QSpinBox *box, int value);
+ static bool hasChanged(QSpinBox *box);
+
public slots:
//! Save settings to permanent storage.
virtual void save() = 0;
bool _changed;
};
+
+
#endif