Base class for property pages. More...
#include <PropertyPage.h>
Public Member Functions | |
bool | isModified () |
Returns whether the page was modified or not. More... | |
void | onApply () |
Applies all changes calling apply() and resets the modified state. More... | |
void | onCancel () |
Discards all changes calling cancel() and resets the modified state. More... | |
void | onReset () |
Resets to the default values. More... | |
PropertyPage (QWidget *parent=nullptr) | |
Construction. More... | |
void | setModified (bool b) |
Sets the page to be modified. More... | |
virtual | ~PropertyPage () |
Destruction. More... | |
Protected Slots | |
virtual void | loadSettings ()=0 |
virtual void | saveSettings ()=0 |
Protected Member Functions | |
virtual void | apply () |
Applies all changes. More... | |
virtual void | cancel () |
Discards all changes. More... | |
virtual void | reset () |
Resets to the default values. More... | |
Base class for property pages.
PropertyPage::PropertyPage | ( | QWidget * | parent = nullptr | ) |
Construction.
|
virtual |
Destruction.
|
protectedvirtual |
|
protectedvirtual |
Discards all changes.
Reimplement this in your subclasses.
Referenced by DraftGui.DraftToolBar::finish(), DraftGui.DraftToolBar::offUi(), onCancel(), and DraftGui.DraftToolBar::pointUi().
bool PropertyPage::isModified | ( | ) |
Returns whether the page was modified or not.
Referenced by onApply(), and onCancel().
|
protectedpure virtualslot |
void PropertyPage::onApply | ( | ) |
Applies all changes calling apply() and resets the modified state.
References apply(), isModified(), and setModified().
void PropertyPage::onCancel | ( | ) |
Discards all changes calling cancel() and resets the modified state.
References cancel(), isModified(), and setModified().
void PropertyPage::onReset | ( | ) |
Resets to the default values.
References reset().
|
protectedvirtual |
Resets to the default values.
Reimplement this in your subclasses.
Referenced by onReset(), and draftguitools.gui_trackers.gridTracker::set().
|
protectedpure virtualslot |
void PropertyPage::setModified | ( | bool | b | ) |
Sets the page to be modified.
Referenced by onApply(), and onCancel().