From: John L. <jr...@us...> - 2008-01-25 23:51:32
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1159/wxLua/modules/wxbind/include Modified Files: wxadv_bind.h wxaui_bind.h wxbase_bind.h wxcore_bind.h wxgl_bind.h wxhtml_bind.h wxmedia_bind.h wxnet_bind.h wxrichtext_bind.h wxstc_bind.h wxxml_bind.h wxxrc_bind.h Log Message: - Removed the wxLuaBinding::PreRegister() and PostRegister() functions and made RegisterBinding() virtual Note: wxLuaBinding::RegisterBinding() now leaves the Lua table that the binding objects were installed into on the stack. You must pop it. * The rules.lua for genwxbind.lua now uses wxLuaBinding_class_declaration and wxLuaBinding_class_implementation to replace wxLuaBinding_preregister and wxLuaBinding_postregister. You may now add whatever you like to the class declaration and implementation source code. Updated to Lua 5.1.3 official Index: wxadv_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxadv_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxadv_bind.h 24 Jan 2008 00:18:15 -0000 1.11 --- wxadv_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxadv(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxadv; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxadv) }; --- 31,37 ---- public: wxLuaBinding_wxadv(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxadv) }; Index: wxcore_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxcore_bind.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxcore_bind.h 24 Jan 2008 00:18:15 -0000 1.12 --- wxcore_bind.h 25 Jan 2008 23:50:51 -0000 1.13 *************** *** 48,57 **** public: wxLuaBinding_wxcore(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxcore; } ! protected: ! virtual void PreRegister(const wxLuaState& wxlState, int luaTable); ! virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxcore) }; --- 48,55 ---- public: wxLuaBinding_wxcore(); ! virtual bool RegisterBinding(const wxLuaState& wxlState); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxcore) }; Index: wxrichtext_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxrichtext_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxrichtext_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxrichtext_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxrichtext(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxrichtext; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxrichtext) }; --- 31,37 ---- public: wxLuaBinding_wxrichtext(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxrichtext) }; Index: wxxrc_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxxrc_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxxrc_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxxrc_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxxrc(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxxrc; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxrc) }; --- 31,37 ---- public: wxLuaBinding_wxxrc(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxrc) }; Index: wxnet_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxnet_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxnet_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxnet_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxnet(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxnet; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxnet) }; --- 31,37 ---- public: wxLuaBinding_wxnet(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxnet) }; Index: wxbase_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxbase_bind.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxbase_bind.h 24 Jan 2008 00:18:15 -0000 1.12 --- wxbase_bind.h 25 Jan 2008 23:50:51 -0000 1.13 *************** *** 30,39 **** public: wxLuaBinding_wxbase(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxbase; } ! protected: ! virtual void PreRegister(const wxLuaState& wxlState, int luaTable); ! virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxbase) }; --- 30,37 ---- public: wxLuaBinding_wxbase(); ! virtual bool RegisterBinding(const wxLuaState& wxlState); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxbase) }; Index: wxmedia_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxmedia_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxmedia_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxmedia_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 32,41 **** public: wxLuaBinding_wxmedia(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxmedia; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxmedia) }; --- 32,38 ---- public: wxLuaBinding_wxmedia(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxmedia) }; Index: wxgl_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxgl_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxgl_bind.h 24 Jan 2008 00:18:15 -0000 1.11 --- wxgl_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxgl(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxgl; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxgl) }; --- 31,37 ---- public: wxLuaBinding_wxgl(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxgl) }; Index: wxstc_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxstc_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxstc_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxstc_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxstc(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxstc; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxstc) }; --- 31,37 ---- public: wxLuaBinding_wxstc(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxstc) }; Index: wxaui_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxaui_bind.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxaui_bind.h 24 Jan 2008 00:18:15 -0000 1.12 --- wxaui_bind.h 25 Jan 2008 23:50:51 -0000 1.13 *************** *** 31,40 **** public: wxLuaBinding_wxaui(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxaui; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxaui) }; --- 31,37 ---- public: wxLuaBinding_wxaui(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxaui) }; Index: wxhtml_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxhtml_bind.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxhtml_bind.h 24 Jan 2008 00:18:16 -0000 1.12 --- wxhtml_bind.h 25 Jan 2008 23:50:51 -0000 1.13 *************** *** 31,40 **** public: wxLuaBinding_wxhtml(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxhtml; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxhtml) }; --- 31,37 ---- public: wxLuaBinding_wxhtml(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxhtml) }; Index: wxxml_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxxml_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxxml_bind.h 24 Jan 2008 00:18:16 -0000 1.11 --- wxxml_bind.h 25 Jan 2008 23:50:51 -0000 1.12 *************** *** 31,40 **** public: wxLuaBinding_wxxml(); - virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxxml; } - protected: - virtual void PreRegister(const wxLuaState& wxlState, int luaTable); - virtual void PostRegister(const wxLuaState& wxlState, int luaTable); DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxml) }; --- 31,37 ---- public: wxLuaBinding_wxxml(); + private: DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxml) }; |