The Gnome Chemistry Utils 0.13.3
Public Member Functions | Protected Attributes
gcr::View Class Reference

#include <gcr/view.h>

List of all members.

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

Detailed Description

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 45 of file gcr/view.h.


Constructor & Destructor Documentation

gcr::View::View ( Document pDoc)

Constructor.

Parameters:
pDoc,:a pointer to the Document instance.

Creates a new view for the document.

virtual gcr::View::~View ( ) [virtual]

Destructor.

The destructor of View.


Member Function Documentation

virtual bool gcr::View::Load ( xmlNodePtr  node) [virtual]
Parameters:
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]
Parameters:
xml,:the xmlDoc used to save the document.
Returns:
a pointer to the xmlNode containig the view parameters or NULL if an error occured.

Member Data Documentation

gdouble gcr::View::m_height [protected]

The height of the widget.

Definition at line 77 of file gcr/view.h.

gdouble gcr::View::m_width [protected]

The width of the widget.

Definition at line 81 of file gcr/view.h.


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