The Gnome Chemistry Utils
0.13.6
|
#include <gcr/view.h>
Public Member Functions | |
View (Document *pDoc) | |
Constructor. | |
virtual | ~View () |
Destructor. | |
virtual bool | Load (xmlNodePtr node) |
virtual xmlNodePtr | Save (xmlDocPtr xml) const |
Protected Attributes | |
gdouble | m_height |
gdouble | m_width |
The class representing a view of the model. Each document might have several views. Most methods are automatically called by the framework and should not be explicitely used in programs.
Definition at line 46 of file gcr/view.h.
gcr::View::View | ( | Document * | pDoc | ) |
Constructor.
pDoc,: | a pointer to the Document instance. |
Creates a new view for the document.
virtual gcr::View::~View | ( | ) | [virtual] |
Destructor.
The destructor of View.
virtual bool gcr::View::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized view. |
Loads the parameters of the view from an xmlNode.
virtual xmlNodePtr gcr::View::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml,: | the xmlDoc used to save the document. |
gdouble gcr::View::m_height [protected] |
The height of the widget.
Definition at line 84 of file gcr/view.h.
gdouble gcr::View::m_width [protected] |
The width of the widget.
Definition at line 88 of file gcr/view.h.