The Gnome Chemistry Utils
0.14.0
|
the base class for objects associated with a canvas item. More...
#include <item-client.h>
Public Member Functions | |
ItemClient () | |
virtual | ~ItemClient () |
virtual void | AddItem () |
virtual void | UpdateItem () |
virtual void | SetSelected (int state) |
Item * | GetItem (void) |
Protected Attributes | |
Item * | m_Item |
the base class for objects associated with a canvas item.
The ItemClient class is a base class used to associate document objects to items in the canvas. The associated item might be a Group, and the client might be registered for all group children. If several items are associated to the same object, the m_Item member should be the toplevel group. Destroying an ItemClient instance will destroy the item.
Definition at line 44 of file item-client.h.
gccv::ItemClient::ItemClient | ( | ) |
The constructor.
|
virtual |
The destructor. Deletes the associated item if any.
|
virtual |
Used to add a representation of the Object in the view. This method might be overloaded for displayable Object classes unless the application uses another mechanism.
Reimplemented in gcp::Atom, gcp::Bond, gcp::MechanismArrow, gcp::Fragment, gcp::Text, gcp::Brackets, gcp::Electron, gcp::FragmentAtom, gcp::ReactionArrow, gcp::MesomeryArrow, and gcp::ReactionOperator.
|
inline |
Definition at line 81 of file item-client.h.
|
virtual |
state | the selection state of the Object. |
Used to set the selection state of the Object inside the widget. The values of state are application dependant and have no default value.
Reimplemented in gcp::Atom, gcp::Bond, gcp::MechanismArrow, gcp::Fragment, gcp::Text, gcp::Brackets, gcp::ReactionArrow, gcp::FragmentAtom, gcp::Electron, gcp::Arrow, and gcp::ReactionOperator.
|
virtual |
Used to update the representation of the Object in the view. This method might be overloaded for displayable Object classes unless the application uses another mechanism.
Reimplemented in gcp::Bond, gcp::Fragment, gcp::Text, gcp::FragmentAtom, gcp::ReactionArrow, and gcp::MesomeryArrow.
|
protected |
The associated item. Being protected, it can be set only from derived classes.
Definition at line 81 of file item-client.h.