Gui::Dialog::PropertyPage Class Referenceabstract
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=0) | |
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... | |
Detailed Description
Base class for property pages.
Constructor & Destructor Documentation
◆ PropertyPage()
PropertyPage::PropertyPage | ( | QWidget * | parent = 0 | ) |
Construction.
◆ ~PropertyPage()
|
virtual |
Destruction.
Member Function Documentation
◆ apply()
|
protectedvirtual |
◆ cancel()
|
protectedvirtual |
◆ isModified()
bool PropertyPage::isModified | ( | ) |
Returns whether the page was modified or not.
Referenced by onApply(), and onCancel().
◆ loadSettings
|
protectedpure virtualslot |
◆ onApply()
void PropertyPage::onApply | ( | ) |
Applies all changes calling apply() and resets the modified state.
References apply(), isModified(), and setModified().
◆ onCancel()
void PropertyPage::onCancel | ( | ) |
Discards all changes calling cancel() and resets the modified state.
References cancel(), isModified(), and setModified().
◆ onReset()
void PropertyPage::onReset | ( | ) |
Resets to the default values.
References reset().
◆ reset()
|
protectedvirtual |
Resets to the default values.
Reimplement this in your subclasses.
Referenced by onReset(), and draftguitools.gui_trackers.gridTracker::set().
◆ saveSettings
|
protectedpure virtualslot |
◆ setModified()
void PropertyPage::setModified | ( | bool | b | ) |
Sets the page to be modified.
Referenced by onApply(), and onCancel().
The documentation for this class was generated from the following files:
- src/Gui/PropertyPage.h
- src/Gui/PropertyPage.cpp