The Gnome Chemistry Utils 0.12.10
|
#include <gcu/crystalview.h>
Public Member Functions | |
CrystalView (CrystalDoc *pDoc) | |
Constructor. | |
virtual | ~CrystalView () |
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 45 of file crystalview.h.
gcu::CrystalView::CrystalView | ( | CrystalDoc * | pDoc | ) |
Constructor.
pDoc,: | a pointer to the CrystalDoc instance. |
Creates a new view for the document.
virtual gcu::CrystalView::~CrystalView | ( | ) | [virtual] |
Destructor.
The destructor of CrystalView.
virtual bool gcu::CrystalView::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 gcu::CrystalView::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml,: | the xmlDoc used to save the document. |
gdouble gcu::CrystalView::m_height [protected] |
The height of the widget.
Definition at line 77 of file crystalview.h.
gdouble gcu::CrystalView::m_width [protected] |
The width of the widget.
Definition at line 81 of file crystalview.h.