Inheritance diagram for gcp::ReactionStep:
Public Member Functions | |
void | Add (GtkWidget *w) |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
virtual bool | Load (xmlNodePtr) |
virtual double | GetYAlign () |
virtual bool | OnSignal (SignalId Signal, Object *Child) |
void | AddArrow (ReactionArrow *arrow) |
Definition at line 40 of file reaction-step.h.
void gcp::ReactionStep::Add | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
virtual xmlNodePtr gcp::ReactionStep::Save | ( | xmlDocPtr | xml | ) | [virtual] |
xml,: | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
virtual bool gcp::ReactionStep::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized object. |
Example:
std::string str = (const char*)node->name; Object* pObject = Object::CreateObject(str, this); if (pObject) { if (!pObject->Load(node)) delete Object; } else cerr << "Warning: unknown object: " << str << endl;
Reimplemented from gcu::Object.
virtual double gcp::ReactionStep::GetYAlign | ( | ) | [virtual] |
Used to retreive the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method.
Reimplemented from gcu::Object.
virtual bool gcp::ReactionStep::OnSignal | ( | SignalId | Signal, | |
Object * | Child | |||
) | [virtual] |
Signal,: | the appropriate SignalId | |
Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.