Base class for property pages. More...
#include <PropertyPage.h>
Public Member Functions | |
bool | isModified () |
Returns whether the page was modified or not. | |
void | onApply () |
Applies all changes calling apply() and resets the modified state. | |
void | onCancel () |
Discards all changes calling cancel() and resets the modified state. | |
void | onReset () |
Resets to the default values. | |
PropertyPage (QWidget *parent=0) | |
Construction. | |
void | setModified (bool b) |
Sets the page to be modified. | |
virtual | ~PropertyPage () |
Destruction. | |
Protected Slots | |
virtual void | loadSettings ()=0 |
virtual void | saveSettings ()=0 |
Protected Member Functions | |
virtual void | apply () |
Applies all changes. | |
virtual void | cancel () |
Discards all changes. | |
virtual void | reset () |
Resets to the default values. |
Base class for property pages.
Definition at line 35 of file PropertyPage.h.
PropertyPage::PropertyPage | ( | QWidget * | parent = 0 |
) |
Construction.
Definition at line 34 of file PropertyPage.cpp.
PropertyPage::~PropertyPage | ( | ) | [virtual] |
Destruction.
Definition at line 40 of file PropertyPage.cpp.
void PropertyPage::apply | ( | ) | [protected, virtual] |
Applies all changes.
Reimplement this in your subclasses.
Definition at line 45 of file PropertyPage.cpp.
Referenced by onApply().
void PropertyPage::cancel | ( | void | ) | [protected, virtual] |
Discards all changes.
Reimplement this in your subclasses.
Definition at line 50 of file PropertyPage.cpp.
Referenced by onCancel().
bool PropertyPage::isModified | ( | ) |
Returns whether the page was modified or not.
Definition at line 60 of file PropertyPage.cpp.
Referenced by onApply(), and onCancel().
virtual void Gui::Dialog::PropertyPage::loadSettings | ( | ) | [protected, pure virtual, slot] |
void PropertyPage::onApply | ( | ) |
Applies all changes calling apply() and resets the modified state.
Definition at line 72 of file PropertyPage.cpp.
References apply(), isModified(), and setModified().
void PropertyPage::onCancel | ( | ) |
Discards all changes calling cancel() and resets the modified state.
Definition at line 81 of file PropertyPage.cpp.
References cancel(), isModified(), and setModified().
void PropertyPage::onReset | ( | ) |
void PropertyPage::reset | ( | ) | [protected, virtual] |
Resets to the default values.
Reimplement this in your subclasses.
Definition at line 55 of file PropertyPage.cpp.
Referenced by onReset().
virtual void Gui::Dialog::PropertyPage::saveSettings | ( | ) | [protected, pure virtual, slot] |
void PropertyPage::setModified | ( | bool | b | ) |
Sets the page to be modified.
Definition at line 66 of file PropertyPage.cpp.
Referenced by onApply(), and onCancel().