reaction.h
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
00031 namespace gcp {
00032
00033 class Reaction: public gcu::Object
00034 {
00035 public:
00036 Reaction ();
00037 virtual ~Reaction ();
00038
00039 virtual bool Build (std::list<gcu::Object*>& Children) throw (std::invalid_argument);
00040 virtual void Transform2D (gcu::Matrix2D& m, double x, double y);
00041 virtual bool BuildContextualMenu (GtkUIManager *UIManager, gcu::Object *object, double x, double y);
00042 virtual bool OnSignal (gcu::SignalId Signal, gcu::Object *Child);
00043 virtual bool Load (xmlNodePtr);
00044 virtual double GetYAlign ();
00045 };
00046
00047 }
00048
00049 #endif //GCHEMPAINT_REACTION_H