Update of /cvsroot/wxlua/wxLua/modules/wxlua/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14159/wxLua/modules/wxlua/include
Modified Files:
wxldefs.h
Added Files:
wxlua_bind.h
Log Message:
Changed the Delete() function from the %delete tag for classes to just
delete() to avoid any future name clashes since delete() is never allowed
to be a function name in C++.
Moved the wxStyledTextCtrl class and it's 1268 defines into the wxstc table.
Moved wxLuaObject, wxLuaDebugger (and friends) into the wxlua table and
added more functions for inspecting userdata and the bindings.
Fix mismatches between the bindings base classes and what they really are.
Index: wxldefs.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/include/wxldefs.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** wxldefs.h 13 Jun 2007 00:09:04 -0000 1.24
--- wxldefs.h 14 Jun 2007 01:23:19 -0000 1.25
***************
*** 67,71 ****
//-----------------------------------------------------------------------------
! #define WXLUA_BINDING_VERSION 12
// ----------------------------------------------------------------------------
--- 67,71 ----
//-----------------------------------------------------------------------------
! #define WXLUA_BINDING_VERSION 13
// ----------------------------------------------------------------------------
--- NEW FILE: wxlua_bind.h ---
// ---------------------------------------------------------------------------
// wxlua.h - headers and tags for wxLua binding
//
// This file was generated by genwxbind.lua
// Any changes made to this file may be lost when file is regenerated
// ---------------------------------------------------------------------------
#ifndef __HOOK_WXLUA_wxlua_H__
#define __HOOK_WXLUA_wxlua_H__
#include "wxlua/include/wxlstate.h"
#include "wxlua/include/wxlbind.h"
// ---------------------------------------------------------------------------
// Check if the version of binding generator used to create this is older than
// the current version of the bindings.
// See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h'
#if WXLUA_BINDING_VERSION > 13
# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings."
#endif //WXLUA_BINDING_VERSION > 13
// ---------------------------------------------------------------------------
// binding class
class wxLuaBinding_wxlua : public wxLuaBinding
{
public:
wxLuaBinding_wxlua();
virtual wxLuaBinding* Clone() const { return new wxLuaBinding_wxlua; }
protected:
virtual void PreRegister(const wxLuaState& wxlState, bool registerTypes, int luaTable);
virtual void PostRegister(const wxLuaState& wxlState, bool registerTypes, int luaTable);
DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxlua)
};
// bind wxLuaBinding_wxlua to a single wxLuaState
extern WXDLLIMPEXP_WXLUA bool wxLuaBinding_wxlua_bind(const wxLuaState& wxlState);
// initialize wxLuaBinding_wxlua for all wxLuaStates
extern WXDLLIMPEXP_WXLUA bool wxLuaBinding_wxlua_init();
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include "wxlua/include/wxlstate.h"
// ---------------------------------------------------------------------------
// Lua Tag Method Values and Tables for each Class
// ---------------------------------------------------------------------------
extern WXDLLIMPEXP_DATA_WXLUA(int) s_wxluatag_wxLuaObject;
extern WXDLLIMPEXP_WXLUA wxLuaBindMethod wxLuaObject_methods[];
extern WXDLLIMPEXP_DATA_WXLUA(int) wxLuaObject_methodCount;
extern WXDLLIMPEXP_DATA_WXLUA(int) s_wxluatag_wxLuaState;
extern WXDLLIMPEXP_WXLUA wxLuaBindMethod wxLuaState_methods[];
extern WXDLLIMPEXP_DATA_WXLUA(int) wxLuaState_methodCount;
// ---------------------------------------------------------------------------
// Encapsulation Declarations - need to be public for other bindings.
// ---------------------------------------------------------------------------
#endif // __HOOK_WXLUA_wxlua_H__
|