#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 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 gccv::ItemClient::~ItemClient | ( | ) | [virtual] |
The destructor. Deletes the associated item if any.
virtual void gccv::ItemClient::AddItem | ( | ) | [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::Electron, gcp::FragmentAtom, gcp::Fragment, gcp::MechanismArrow, gcp::MesomeryArrow, gcp::ReactionArrow, gcp::ReactionOperator, and gcp::Text.
gccv::ItemClient::GetItem | ( | void | ) | [inline] |
virtual void gccv::ItemClient::SetSelected | ( | int | state | ) | [virtual] |
state | the selection state of the Object. |
Reimplemented in gcp::Arrow, gcp::Atom, gcp::Bond, gcp::Electron, gcp::FragmentAtom, gcp::Fragment, gcp::MechanismArrow, gcp::ReactionArrow, gcp::ReactionOperator, and gcp::Text.
virtual void gccv::ItemClient::UpdateItem | ( | ) | [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::FragmentAtom, gcp::Fragment, gcp::MesomeryArrow, gcp::ReactionArrow, and gcp::Text.
gccv::ItemClient::m_Item [protected] |
The associated item. Being protected, it can be set only from derived classes.
Definition at line 81 of file item-client.h.