The Gnome Chemistry Utils
0.12.11
|
#include <gcp/reaction-arrow.h>
Public Member Functions | |
virtual | ~ReactionArrow () |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
void | AddItem () |
void | UpdateItem () |
void | SetStartStep (ReactionStep *Step) |
ReactionStep * | GetStartStep () |
void | SetEndStep (ReactionStep *Step) |
ReactionStep * | GetEndStep () |
void | RemoveStep (ReactionStep *Step) |
bool | BuildContextualMenu (GtkUIManager *UIManager, gcu::Object *object, double x, double y) |
void | Move (double x, double y, double z=0) |
void | SetSelected (int state) |
void | AddProp (gcu::Object *object) |
void | PositionChild (ReactionProp *prop) |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
bool | SetProperty (unsigned property, char const *value) |
std::string | Name () |
![]() | |
Arrow (gcu::TypeId Type) | |
virtual | ~Arrow () |
void | SetCoords (double xstart, double ystart, double xend, double yend) |
bool | GetCoords (double *xstart, double *ystart, double *xend, double *yend) |
void | Transform2D (gcu::Matrix2D &m, double x, double y) |
double | GetYAlign () |
![]() | |
Object (TypeId Id=OtherType) | |
virtual | ~Object () |
TypeId | GetType () const |
void | SetId (gchar const *Id) |
gchar const * | GetId () const |
virtual void | AddChild (Object *object) |
Object * | GetMolecule () const |
Object * | GetReaction () const |
Object * | GetGroup () const |
Document * | GetDocument () const |
Object * | GetParentOfType (TypeId Id) const |
Object * | GetChild (const gchar *Id) const |
Object * | GetFirstChild (std::map< std::string, Object * >::iterator &i) |
Object * | GetNextChild (std::map< std::string, Object * >::iterator &i) |
Object * | GetDescendant (const gchar *Id) const |
Object * | GetParent () const |
void | SetParent (Object *Parent) |
bool | SaveChildren (xmlDocPtr xml, xmlNodePtr node) const |
void | SaveId (xmlNodePtr node) const |
xmlNodePtr | GetNodeByProp (xmlNodePtr node, char const *Property, char const *Id) |
xmlNodePtr | GetNextNodeByProp (xmlNodePtr node, char const *Property, char const *Id) |
xmlNodePtr | GetNodeByName (xmlNodePtr node, char const *Name) |
xmlNodePtr | GetNextNodeByName (xmlNodePtr node, char const *Name) |
bool | HasChildren () const |
unsigned | GetChildrenNumber () const |
virtual Object * | GetAtomAt (double x, double y, double z=0.) |
virtual bool | Build (std::list< Object * > &Children) throw (std::invalid_argument) |
void | EmitSignal (SignalId Signal) |
void | Lock (bool state=true) |
bool | IsLocked () |
Object * | GetFirstLink (std::set< Object * >::iterator &i) |
Object * | GetNextLink (std::set< Object * >::iterator &i) |
void | Link (Object *object) |
void | Unlink (Object *object) |
virtual void | OnUnlink (Object *object) |
void | GetPossibleAncestorTypes (std::set< TypeId > &types) const |
virtual std::string | GetProperty (unsigned property) const |
virtual void | OnLoaded () |
void | SetDirty (bool dirty=true) |
virtual void | Clear () |
std::string | Identity () |
virtual char const * | HasPropertiesDialog () const |
void | ShowPropertiesDialog () |
bool | GetDirty (void) const |
![]() | |
ItemClient () | |
virtual | ~ItemClient () |
Item * | GetItem (void) |
Additional Inherited Members | |
![]() | |
bool | Save (xmlDocPtr xml, xmlNodePtr node) const |
![]() | |
virtual Dialog * | BuildPropertiesDialog () |
![]() | |
double | m_x |
double | m_y |
double | m_width |
double | m_height |
![]() | |
Item * | m_Item |
Arrow class for arrows used in chemical reactions.
Definition at line 40 of file reaction-arrow.h.
|
virtual |
The destructor.
|
virtual |
Used to add a representation of the arrow in the view.
Reimplemented from gccv::ItemClient.
void gcp::ReactionArrow::AddProp | ( | gcu::Object * | object | ) |
object | the object to attach to the arrow. |
Attach an object to the arrow and pops up the reaction property dialog box.
|
virtual |
UIManager | the GtkUIManager to populate. |
object | the Object on which occured the mouse click. |
x | x coordinate of the mouse click. |
y | y coordinate of the mouse click. |
This method is called to build a contextual menu for the arrow.
Reimplemented from gcu::Object.
|
inline |
Definition at line 92 of file reaction-arrow.h.
|
inline |
Definition at line 82 of file reaction-arrow.h.
|
virtual |
node,: | a pointer to the xmlNode containing the serialized arrow. |
Used to load an arrow in memory.
Reimplemented from gcp::Arrow.
|
virtual |
x | the x component of the transation vector. |
y | the y component of the transation vector. |
z | the z component of the transation vector. |
Used to move a reaction arrow. It will also move the objects attached to the arrow if any.
Reimplemented from gcp::Arrow.
|
virtual |
Reimplemented from gcp::Arrow.
|
virtual |
Signal | the appropriate SignalId |
Child | the child which emitted the signal or NULL |
This function is called by the framework when a signal has been emitted for the arrow, such as when an attached object size changed. It should not be called by a program; call Object::EmitSignal instead.
Reimplemented from gcu::Object.
void gcp::ReactionArrow::PositionChild | ( | ReactionProp * | prop | ) |
prop | the attached property to position. |
Position an object at the right place near the arrow.
void gcp::ReactionArrow::RemoveStep | ( | ReactionStep * | Step | ) |
Step | the reaction step to remove from the reaction |
Removes the reaction step, which might be either the initial or final step. If it not one of these, nothing is done.
|
virtual |
xml | the xmlDoc used to save the document. |
Used to save the arrow to the xmlDoc.
Reimplemented from gcu::Object.
|
inline |
Step | the reaction step after the reaction |
Sets the final reaction step.
Definition at line 88 of file reaction-arrow.h.
|
virtual |
property | the property id as defined in objprops.h |
value | the property value as a string |
Used when loading to set common properties to arrows. Only one property is currently supported: gcu::GCU_PROP_REACTION_ARROW_TYPE.
Reimplemented from gcp::Arrow.
|
virtual |
state,: | the selection state of the arrow. |
Used to set the selection state of the arrow inside the widget. The values of state might be gcp::SelStateUnselected, gcp::SelStateSelected, gcp::SelStateUpdating, or gcp::SelStateErasing. Children will be selected too.
Reimplemented from gcp::Arrow.
|
inline |
Step | the reaction step before the reaction |
Sets the initial reaction step.
Definition at line 78 of file reaction-arrow.h.
|
virtual |
Used to update the representation of the arrow in the view.
Reimplemented from gccv::ItemClient.