Update of /cvsroot/wxlua/wxLua/modules/wxbind/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1034/wxLua/modules/wxbind/include
Modified Files:
wxbind.h
Log Message:
Finished cleaning up the code, removed all code from internal.h and internal.cpp
and moved it to other files. Do not #include internal.h anymore!
Have the functions in wxLuaState that only call C lua funcs call C helper funcs in wxlstate.cpp
so that you don't have to create a wxLuaState if you don't really need it.
Index: wxbind.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxbind.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** wxbind.h 9 Jun 2006 22:51:30 -0000 1.35
--- wxbind.h 28 Aug 2006 05:26:20 -0000 1.36
***************
*** 13,26 ****
#include "wxbind/include/wxbinddefs.h"
#ifndef wxUSE_WAVE
! #define wxUSE_WAVE 0
! #endif
#ifndef wxUSE_SOUND
! #define wxUSE_SOUND 0
! #endif
#include "wxlua/include/wxlstate.h"
#include "wxlua/include/wxlbind.h"
- #include "wxlua/include/internal.h"
-
// binding class
class wxLuaBinding_wx : public wxLuaBinding
--- 13,41 ----
#include "wxbind/include/wxbinddefs.h"
#ifndef wxUSE_WAVE
! #define wxUSE_WAVE 0
! #endif // wxUSE_WAVE
#ifndef wxUSE_SOUND
! #define wxUSE_SOUND 0
! #endif // wxUSE_SOUND
!
! #include "wx/treectrl.h"
!
! // ----------------------------------------------------------------------------
! // wxLuaTreeItemData - our treeitem data that allows us to get/set an index
! // ----------------------------------------------------------------------------
! class WXDLLIMPEXP_WXLUA wxLuaTreeItemData : public wxTreeItemData
! {
! public:
! wxLuaTreeItemData(double value = 0) : m_value(value) {}
! double GetValue() const { return m_value; }
! void SetValue(double value) { m_value = value; }
!
! private:
! double m_value;
! };
!
#include "wxlua/include/wxlstate.h"
#include "wxlua/include/wxlbind.h"
// binding class
class wxLuaBinding_wx : public wxLuaBinding
|