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=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...
 

Detailed Description

Base class for property pages.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ PropertyPage()

PropertyPage::PropertyPage ( QWidget parent = nullptr)

Construction.

◆ ~PropertyPage()

PropertyPage::~PropertyPage ( )
virtual

Destruction.

Member Function Documentation

◆ apply()

void PropertyPage::apply ( )
protectedvirtual

Applies all changes.

Reimplement this in your subclasses.

Referenced by onApply().

◆ cancel()

void PropertyPage::cancel ( void  )
protectedvirtual

Discards all changes.

Reimplement this in your subclasses.

Referenced by DraftGui.DraftToolBar::finish(), DraftGui.DraftToolBar::offUi(), onCancel(), and DraftGui.DraftToolBar::pointUi().

◆ isModified()

bool PropertyPage::isModified ( )

Returns whether the page was modified or not.

Referenced by onApply(), and onCancel().

◆ loadSettings

virtual void Gui::Dialog::PropertyPage::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()

void PropertyPage::reset ( )
protectedvirtual

Resets to the default values.

Reimplement this in your subclasses.

Referenced by onReset(), and draftguitools.gui_trackers.gridTracker::set().

◆ saveSettings

virtual void Gui::Dialog::PropertyPage::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: