Gui::Dialog::PropertyPage Class Reference

Base class for property pages. More...

#include <PropertyPage.h>

List of all members.

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.

Detailed Description

Base class for property pages.

Author:
Werner Mayer

Definition at line 35 of file PropertyPage.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 (  ) 

Resets to the default values.

Definition at line 91 of file PropertyPage.cpp.

References reset().

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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:07 2011 for FreeCAD by  doxygen 1.6.1