00001
00041 #ifndef INC_GRE_TOOLSML_H
00042 #define INC_GRE_TOOLSML_H
00043
00044 #ifndef INC_GRE_VIEWLEGACY_H
00045 #include <gre/viewlegacy.h>
00046 #endif
00047
00048 #ifndef INC_GRE_VIEWSCRIPT_H
00049 #include <gre/viewscript.h>
00050 #endif
00051
00052 namespace GRE {
00053
00054
00055 #if defined(X_NATIVE)
00057 class TOOL_SML : public GRE::TOOL {
00058 public:
00059
00060 TOOL_SML (
00061 GRE::VIEW_LEGACY *view,
00062 const GRE::TOOLSCRIPT& script
00063 );
00064
00065 virtual ~TOOL_SML ();
00066
00067 virtual bool IsScript (
00068 ) const;
00069
00070 private:
00071
00072 #ifndef GENERATING_DOXYGEN_OUTPUT
00073
00074 GRE::TOOLSCRIPT m_script;
00075 GRE::TOOLSCRIPT::CONTEXT *m_context;
00076
00077 static void EH_DrawingArea (
00078 Widget,
00079 TOOL_SML *tool,
00080 XEvent *event,
00081 Boolean *
00082 );
00083
00084 virtual bool DoActivate ();
00085 virtual void DoDeactivate ();
00086 virtual bool DoInitialize ();
00087 virtual void DoSuspend ();
00088 virtual void DoResume ();
00089
00090 TOOL_SML (const TOOL_SML&);
00091 TOOL_SML& operator= (const TOOL_SML&);
00092
00093 #endif // GENERATING_DOXYGEN_OUTPUT
00094 };
00095
00096 #endif
00097
00098
00099 }
00100
00101 #endif // INC_GRE_TOOLSML_H