00001 /* 00002 * $Id: $ 00003 * 00004 * Description : Scripting module. 00005 * Author : Jakub Zelenka <mail: jakub.zelenka@gmail.com> 00006 * 00007 * Purpose : 00008 * Scripting module. It executes JavaScript scripts 00009 */ 00010 00011 00012 #ifndef __JSSCRIPTING_H_ 00013 #define __JSSCRIPTING_H_ 00014 00015 #include "../../core/src/kernelmodule.h" 00016 00017 namespace VRUT 00018 { 00020 const int MODULE_VERSION = 1; 00021 00022 class JSHandler; 00023 00025 class JSScriptingModule: public KernelModule 00026 { 00027 protected: 00029 unsigned scriptActivation; 00030 00032 JSHandler *handler; 00033 00035 SCENE_ID sceneID; 00037 wxString scriptPath; 00038 00040 Parameter::ParameterIdentificator sceneParamID; 00042 Parameter::ParameterIdentificator pathParamID; 00044 Parameter::ParameterIdentificator runParamID; 00045 00046 00048 virtual void processEvent(wxCommandEvent & evt); 00049 00051 virtual void kernelRun(); 00052 00053 public: 00054 00056 JSScriptingModule(const MODULE_ID & _id, const wxString & _name, EventHandler * msgSink); 00057 00059 virtual ~JSScriptingModule(); 00060 00062 virtual wxString GetDesc() const 00063 { 00064 return wxT("This is scripting module"); 00065 } 00066 00067 00068 friend class JSHandler; 00069 }; 00070 }; 00071 00072 #endif /* __JSSCRIPTING_H_ */ 00073
1.5.5