reaction.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCHEMPAINT_REACTION_H
00026 #define GCHEMPAINT_REACTION_H
00027
00028 #include <gcu/object.h>
00029 #include <stdexcept>
00030
00032 namespace gcp {
00033
00042 class Reaction: public gcu::Object
00043 {
00044 public:
00048 Reaction ();
00052 virtual ~Reaction ();
00053
00063 bool Build (std::list<gcu::Object*>& Children) throw (std::invalid_argument);
00066 void Transform2D (gcu::Matrix2D& m, double x, double y);
00076 bool BuildContextualMenu (GtkUIManager *UIManager, gcu::Object *object, double x, double y);
00087 bool OnSignal (gcu::SignalId Signal, gcu::Object *Child);
00094 bool Load (xmlNodePtr node);
00099 double GetYAlign ();
00100
00104 std::string Name ();
00105 };
00106
00107 }
00108
00109 #endif //GCHEMPAINT_REACTION_H