From: John L. <jr...@us...> - 2006-05-24 04:53:55
|
Update of /cvsroot/wxlua/wxLua/bindings/wxluasocket In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6138/wxLua/bindings/wxluasocket Added Files: wxluasocket.i wxluasocket_rules.lua Log Message: added wxluasocket bindings to go into modules/wxluasocket instead of wxwidgets bindings --- NEW FILE: wxluasocket_rules.lua --- ------------------------------------------------------------------------------- -- Rules to build wxWidgets' wxStyledTextCtrl binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Set the root directory of the wxLua distribution, used only in this file wxlua_dir = "../" --============================================================================= -- Set the lua namespace (lua table) that the bindings will be placed into. -- eg. wx.wxWindow(...) hook_lua_namespace = "wx" -- Set the C++ "namespace" that the bindings will be placed. -- eg. cpp function names contain this to prevent duplicate function names hook_cpp_namespace = "wxluasocket" --============================================================================= -- Set the directory to output the bindings to, both C++ header and source files output_cpp_header_filepath = wxlua_dir.."modules/wxluasocket/include" output_cpp_filepath = wxlua_dir.."modules/wxluasocket/src" output_cpp_impexpsymbol = "WXDLLIMPEXP_WXLUASOCKET" output_cpp_impexpdatasymbol = "WXDLLIMPEXP_DATA_WXLUASOCKET" ------------------------------------------------------------------------------- -- Set the name of the header file that will have the #includes from the -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. hook_cpp_header_filename = "wxluasocket/include/wxluasocket_bind.h" ------------------------------------------------------------------------------- -- Set the name of the main binding file that will have the glue code for the -- bindings in it. This file along with the output from the *.i files will be -- placed in the "output_cpp_filepath". hook_cpp_binding_filename = hook_cpp_namespace.."_bind.cpp" ------------------------------------------------------------------------------- -- Set the name of the subclassed wxLuaBinding class hook_cpp_binding_classname = "wxLuaBinding_"..hook_cpp_namespace ------------------------------------------------------------------------------- -- Set the function names that wrap the output structs of defined values, -- objects, events, functions, and classes. hook_cpp_define_funcname = "wxLuaGetDefineList_"..hook_cpp_namespace hook_cpp_string_funcname = "wxLuaGetStringList_"..hook_cpp_namespace hook_cpp_object_funcname = "wxLuaGetObjectList_"..hook_cpp_namespace hook_cpp_event_funcname = "wxLuaGetEventList_"..hook_cpp_namespace hook_cpp_function_funcname = "wxLuaGetFunctionList_"..hook_cpp_namespace hook_cpp_class_funcname = "wxLuaGetClassList_"..hook_cpp_namespace ------------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- every generated cpp file or "" for none hook_cpp_binding_includes = "#include \"wx/wxprec.h\"\n" ------------------------------------------------------------------------------- -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = "#include \"wx/defs.h\"\n".. "#include \"wxluasocket/include/wxluasocketdefs.h\"\n".. "#include \"wxbind/include/wxbind.h\"\n".. "#include \"wxluasocket/include/wxluasocket_bind.h\"\n".. "#ifndef wxUSE_WAVE\n#define wxUSE_WAVE 0\n#endif\n".. "#ifndef wxUSE_SOUND\n#define wxUSE_SOUND 0\n#endif\n" ------------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of -- the single hook_cpp_binding_filename generated cpp file or "" for none hook_cpp_binding_source_includes = "" --============================================================================= -- Set the bindings directory that contains the *.i interface files interface_filepath = wxlua_dir.."bindings/wxluasocket" ------------------------------------------------------------------------------- -- A list of interface files to use to make the bindings. These files will be -- converted into *.cpp and placed in the output_cpp_filepath directory. -- The files are loaded from the interface_filepath. interface_fileTable = { "wxluasocket.i" } ------------------------------------------------------------------------------- -- A list of files that contain bindings that need to be overridden. -- The files are loaded from the interface_filepath. override_fileTable = { "override.hpp" } --============================================================================= -- A table containing filenames of XXX_datatype.lua from other wrappers to -- to define classes and data types used in this wrapper -- NOTE: for the base wxWidgets wrappers we don't load the cache since they -- don't depend on other wrappers and can cause problems when interface -- files are updated. Make sure you delete or have updated any cache file -- that changes any data types used by this binding. datatype_cache_input_fileTable = { wxlua_dir.."bindings/wxwidgets/wx_datatypes.lua" } ------------------------------------------------------------------------------- -- The file to output the data type cache for later use with a binding that -- makes use of data types (classes, enums, etc) that are declared in this -- binding. The file will be generated in the interface_filepath. datatypes_cache_output_filename = hook_cpp_namespace.."_datatypes.lua" --============================================================================= -- virtual void wxLuaBinding::PreRegister function body for the -- hook_cpp_binding_classname. You can initialize data here. -- Typically this is not necessary and you can rem this out. -- wxLuaBinding_PreRegister = nothing to do here --============================================================================= -- virtual void wxLuaBinding::PostRegister function body for the -- hook_cpp_binding_classname. You can load any other custom bindings here. -- Typically this is not necessary and you can rem this out. -- wxLuaBinding_PostRegister = nothing to do here --============================================================================= -- Add additional conditions here -- example: conditions["DOXYGEN_INCLUDE"] = "defined(DOXYGEN_INCLUDE)" ------------------------------------------------------------------------------- -- Add additional data types here -- example: dataTypes["wxArrayInt"] = AllocDataType("wxArrayInt", "class",false) --============================================================================= -- Generate comments into binding C++ code comment_cpp_binding_code = true --- NEW FILE: wxluasocket.i --- // ============================================================================ // Purpose: wxLuaSocket specific wrappers // Author: J Winwood, John Labenski // Created: 14/11/2001 // Copyright: (c) 2001-2002 Lomtick Software. All rights reserved. // Licence: wxWidgets licence // wxWidgets: Updated to 2.6.3 // ============================================================================ //----------------------------------------------------------------------------- // wxLuaDebugServer %include "wx/defs.h" %include "wx/object.h" %include "wxlua/include/wxlstate.h" %include "wxlua/include/wxlbind.h" %include "wxluasocket/include/wxldserv.h" %class %delete %noclassinfo wxLuaDebugServer wxLuaDebugServer(int portNumber) %constructor wxLuaDebugServerCompile(const wxString &buffer, const wxString &fileName) bool StartClient() bool StartServerThread() bool AddBreakPoint(const wxString &fileName, int lineNumber) bool RemoveBreakPoint(const wxString &fileName, int lineNumber) bool ClearAllBreakPoints() bool Run(const wxString &file, const wxString &fileName) bool Step() bool StepOver() bool StepOut() bool Continue() bool Break() bool Reset() void DisplayStackDialog(wxWindow *pParent) bool EvaluateExpr(int exprRef, const wxString &expr) %endclass //----------------------------------------------------------------------------- // wxLuaDebugData %class %noclassinfo wxLuaDebugData %endclass //----------------------------------------------------------------------------- // wxLuaDebugEvent %class %delete wxLuaDebugEvent, wxEvent %define %event wxEVT_WXLUA_DEBUG_CLIENT_CONNECTED %define %event wxEVT_WXLUA_DEBUG_BREAK %define %event wxEVT_WXLUA_DEBUG_PRINT %define %event wxEVT_WXLUA_DEBUG_ERROR %define %event wxEVT_WXLUA_DEBUG_EXIT %define %event wxEVT_WXLUA_DEBUG_STACK_ENUM %define %event wxEVT_WXLUA_DEBUG_STACK_ENTRY_ENUM %define %event wxEVT_WXLUA_DEBUG_TABLE_ENUM %define %event wxEVT_WXLUA_DEBUG_EVALUATE_EXPR int GetLineNumber() const int GetReference() const wxString GetFileName() const wxString GetMessage() const const wxLuaDebugData *GetDebugData() const %endclass |