Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8389/wxLua/modules/wxbind/src Modified Files: wxadv_adv.cpp wxadv_bind.cpp wxadv_grid.cpp wxaui_aui.cpp wxaui_bind.cpp wxbase_base.cpp wxbase_bind.cpp wxbase_config.cpp wxbase_data.cpp wxbase_datetime.cpp wxbase_file.cpp wxcore_appframe.cpp wxcore_bind.cpp wxcore_clipdrag.cpp wxcore_controls.cpp wxcore_core.cpp wxcore_defsutils.cpp wxcore_dialogs.cpp wxcore_event.cpp wxcore_gdi.cpp wxcore_geometry.cpp wxcore_help.cpp wxcore_image.cpp wxcore_mdi.cpp wxcore_menutool.cpp wxcore_picker.cpp wxcore_print.cpp wxcore_sizer.cpp wxcore_windows.cpp wxgl_bind.cpp wxgl_gl.cpp wxhtml_bind.cpp wxhtml_html.cpp wxmedia_bind.cpp wxmedia_media.cpp wxnet_bind.cpp wxnet_net.cpp wxrichtext_bind.cpp wxrichtext_richtext.cpp wxstc_bind.cpp wxstc_stc.cpp wxxml_bind.cpp wxxml_xml.cpp wxxrc_bind.cpp wxxrc_xrc.cpp Log Message: FIX mistake in making wxLuaState::LuaPCall() clear the stack. Cleanup to the *.i files, add output_single_cpp_binding_file to have only one cpp file generated. Add wxFileSystem and it's handlers. Index: wxxrc_xrc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxxrc_xrc.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxxrc_xrc.cpp 23 Jan 2008 06:43:38 -0000 1.11 --- wxxrc_xrc.cpp 29 Jan 2008 00:49:15 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxxrc_xrc.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxstc_stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxstc_stc.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxstc_stc.cpp 23 Jan 2008 06:43:38 -0000 1.12 --- wxstc_stc.cpp 29 Jan 2008 00:49:15 -0000 1.13 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxstc_stc.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxnet_net.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxnet_net.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxnet_net.cpp 23 Jan 2008 06:43:38 -0000 1.10 --- wxnet_net.cpp 29 Jan 2008 00:49:15 -0000 1.11 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxnet_net.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxhtml_html.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxhtml_html.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxhtml_html.cpp 23 Jan 2008 06:43:38 -0000 1.11 --- wxhtml_html.cpp 29 Jan 2008 00:49:15 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxhtml_html.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_clipdrag.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_clipdrag.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxcore_clipdrag.cpp 23 Jan 2008 06:43:36 -0000 1.11 --- wxcore_clipdrag.cpp 29 Jan 2008 00:49:12 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_clipdrag.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_help.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_help.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxcore_help.cpp 23 Jan 2008 06:43:38 -0000 1.11 --- wxcore_help.cpp 29 Jan 2008 00:49:13 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_help.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxadv_adv.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxadv_adv.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** wxadv_adv.cpp 23 Jan 2008 06:43:35 -0000 1.13 --- wxadv_adv.cpp 29 Jan 2008 00:49:11 -0000 1.14 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxadv_adv.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxaui_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxaui_bind.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** wxaui_bind.cpp 25 Jan 2008 23:50:52 -0000 1.9 --- wxaui_bind.cpp 29 Jan 2008 00:49:12 -0000 1.10 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxaui_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_gdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_gdi.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** wxcore_gdi.cpp 23 Jan 2008 06:43:36 -0000 1.15 --- wxcore_gdi.cpp 29 Jan 2008 00:49:13 -0000 1.16 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_gdi.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxbase_data.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_data.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** wxbase_data.cpp 23 Jan 2008 06:43:36 -0000 1.14 --- wxbase_data.cpp 29 Jan 2008 00:49:12 -0000 1.15 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxbase_data.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxgl_gl.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxgl_gl.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** wxgl_gl.cpp 23 Jan 2008 06:43:38 -0000 1.9 --- wxgl_gl.cpp 29 Jan 2008 00:49:15 -0000 1.10 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxgl_gl.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxaui_aui.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxaui_aui.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wxaui_aui.cpp 23 Jan 2008 06:43:35 -0000 1.16 --- wxaui_aui.cpp 29 Jan 2008 00:49:12 -0000 1.17 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxaui_aui.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxbase_config.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_config.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxbase_config.cpp 23 Jan 2008 06:43:35 -0000 1.11 --- wxbase_config.cpp 29 Jan 2008 00:49:12 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxbase_config.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxxrc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxxrc_bind.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wxxrc_bind.cpp 25 Jan 2008 23:50:52 -0000 1.7 --- wxxrc_bind.cpp 29 Jan 2008 00:49:15 -0000 1.8 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxxrc_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_mdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_mdi.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxcore_mdi.cpp 23 Jan 2008 06:43:38 -0000 1.11 --- wxcore_mdi.cpp 29 Jan 2008 00:49:14 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_mdi.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxmedia_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxmedia_bind.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wxmedia_bind.cpp 25 Jan 2008 23:50:52 -0000 1.7 --- wxmedia_bind.cpp 29 Jan 2008 00:49:15 -0000 1.8 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxmedia_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_bind.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** wxcore_bind.cpp 25 Jan 2008 23:50:52 -0000 1.15 --- wxcore_bind.cpp 29 Jan 2008 00:49:12 -0000 1.16 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- *************** *** 4617,4620 **** --- 4617,4624 ---- #endif // wxLUA_USE_wxDC + #if wxUSE_STREAMS && wxUSE_FILESYSTEM + { "wxMemoryFSHandler", wxMemoryFSHandler_methods, wxMemoryFSHandler_methodCount, NULL, &wxluatype_wxMemoryFSHandler, "wxFileSystemHandler", NULL ,g_wxluanumberArray_None, 0, }, + #endif // wxUSE_STREAMS && wxUSE_FILESYSTEM + #if wxLUA_USE_wxMenu && wxUSE_MENUS { "wxMenu", wxMenu_methods, wxMenu_methodCount, CLASSINFO(wxMenu), &wxluatype_wxMenu, "wxEvtHandler", NULL ,g_wxluanumberArray_None, 0, }, Index: wxrichtext_richtext.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxrichtext_richtext.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxrichtext_richtext.cpp 16 Jul 2007 19:35:23 -0000 1.1 --- wxrichtext_richtext.cpp 29 Jan 2008 00:49:15 -0000 1.2 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxrichtext_richtext.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_controls.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_controls.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxcore_controls.cpp 23 Jan 2008 06:43:36 -0000 1.12 --- wxcore_controls.cpp 29 Jan 2008 00:49:12 -0000 1.13 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_controls.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxxml_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxxml_bind.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wxxml_bind.cpp 25 Jan 2008 23:50:52 -0000 1.7 --- wxxml_bind.cpp 29 Jan 2008 00:49:15 -0000 1.8 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxxml_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_menutool.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_menutool.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxcore_menutool.cpp 23 Jan 2008 06:43:38 -0000 1.11 --- wxcore_menutool.cpp 29 Jan 2008 00:49:14 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_menutool.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_picker.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_picker.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxcore_picker.cpp 23 Jan 2008 06:43:38 -0000 1.10 --- wxcore_picker.cpp 29 Jan 2008 00:49:14 -0000 1.11 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_picker.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxmedia_media.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxmedia_media.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxmedia_media.cpp 23 Jan 2008 06:43:38 -0000 1.10 --- wxmedia_media.cpp 29 Jan 2008 00:49:15 -0000 1.11 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxmedia_media.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_dialogs.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_dialogs.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxcore_dialogs.cpp 23 Jan 2008 06:43:36 -0000 1.10 --- wxcore_dialogs.cpp 29 Jan 2008 00:49:13 -0000 1.11 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_dialogs.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxbase_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_bind.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** wxbase_bind.cpp 25 Jan 2008 23:50:52 -0000 1.13 --- wxbase_bind.cpp 29 Jan 2008 00:49:12 -0000 1.14 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxbase_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- *************** *** 339,342 **** --- 339,347 ---- #endif // wxUSE_INTL + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxFS_READ", wxFS_READ }, + { "wxFS_SEEKABLE", wxFS_SEEKABLE }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + #if wxLUA_USE_wxFile && wxUSE_FILE { "wxFromCurrent", wxFromCurrent }, *************** *** 971,975 **** wxDos2UnixFilename((wxChar*)str.GetData()); // push the result string ! lua_pushstring(L, wx2lua(str)); return 1; --- 976,980 ---- wxDos2UnixFilename((wxChar*)str.GetData()); // push the result string ! wxlua_pushwxString(L, str); return 1; *************** *** 1960,1964 **** wxUnix2DosFilename((wxChar*)str.GetData()); // push the result string ! lua_pushstring(L, wx2lua(str)); return 1; --- 1965,1969 ---- wxUnix2DosFilename((wxChar*)str.GetData()); // push the result string ! wxlua_pushwxString(L, str); return 1; *************** *** 2168,2171 **** --- 2173,2180 ---- static wxLuaBindClass classList[] = { + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxArchiveFSHandler", wxArchiveFSHandler_methods, wxArchiveFSHandler_methodCount, CLASSINFO(wxArchiveFSHandler), &wxluatype_wxArchiveFSHandler, "wxFileSystemHandler", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + #if wxLUA_USE_wxArrayInt { "wxArrayInt", wxArrayInt_methods, wxArrayInt_methodCount, NULL, &wxluatype_wxArrayInt, NULL, NULL ,g_wxluanumberArray_None, 0, }, *************** *** 2224,2227 **** --- 2233,2240 ---- { "wxDynamicLibraryDetailsArray", wxDynamicLibraryDetailsArray_methods, wxDynamicLibraryDetailsArray_methodCount, NULL, &wxluatype_wxDynamicLibraryDetailsArray, NULL, NULL ,g_wxluanumberArray_None, 0, }, + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxFSFile", wxFSFile_methods, wxFSFile_methodCount, CLASSINFO(wxFSFile), &wxluatype_wxFSFile, "wxObject", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + #if wxLUA_USE_wxFile && wxUSE_FILE { "wxFile", wxFile_methods, wxFile_methodCount, NULL, &wxluatype_wxFile, NULL, NULL ,wxFile_enums, wxFile_enumCount, }, *************** *** 2244,2250 **** --- 2257,2273 ---- #endif // wxUSE_STREAMS + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxFileSystem", wxFileSystem_methods, wxFileSystem_methodCount, NULL, &wxluatype_wxFileSystem, "wxObject", NULL ,g_wxluanumberArray_None, 0, }, + { "wxFileSystemHandler", wxFileSystemHandler_methods, wxFileSystemHandler_methodCount, CLASSINFO(wxFileSystemHandler), &wxluatype_wxFileSystemHandler, "wxObject", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxFileType", wxFileType_methods, wxFileType_methodCount, NULL, &wxluatype_wxFileType, NULL, NULL ,g_wxluanumberArray_None, 0, }, { "wxFileTypeInfo", wxFileTypeInfo_methods, wxFileTypeInfo_methodCount, NULL, &wxluatype_wxFileTypeInfo, NULL, NULL ,g_wxluanumberArray_None, 0, }, { "wxFileType_MessageParameters", wxFileType_MessageParameters_methods, wxFileType_MessageParameters_methodCount, NULL, &wxluatype_wxFileType_MessageParameters, NULL, NULL ,g_wxluanumberArray_None, 0, }, + + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxFilterFSHandler", wxFilterFSHandler_methods, wxFilterFSHandler_methodCount, CLASSINFO(wxFilterFSHandler), &wxluatype_wxFilterFSHandler, "wxFileSystemHandler", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxIconLocation", wxIconLocation_methods, wxIconLocation_methodCount, NULL, &wxluatype_wxIconLocation, NULL, NULL ,g_wxluanumberArray_None, 0, }, *************** *** 2253,2256 **** --- 2276,2283 ---- #endif // wxUSE_STREAMS + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) + { "wxInternetFSHandler", wxInternetFSHandler_methods, wxInternetFSHandler_methodCount, CLASSINFO(wxInternetFSHandler), &wxluatype_wxInternetFSHandler, "wxFileSystemHandler", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) + #if wxUSE_INTL { "wxLanguageInfo", wxLanguageInfo_methods, wxLanguageInfo_methodCount, NULL, &wxluatype_wxLanguageInfo, NULL, NULL ,g_wxluanumberArray_None, 0, }, *************** *** 2261,2264 **** --- 2288,2295 ---- #endif // wxLUA_USE_wxList && !wxUSE_STL + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + { "wxLocalFSHandler", wxLocalFSHandler_methods, wxLocalFSHandler_methodCount, CLASSINFO(wxLocalFSHandler), &wxluatype_wxLocalFSHandler, "wxFileSystemHandler", NULL ,g_wxluanumberArray_None, 0, }, + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + #if wxUSE_INTL { "wxLocale", wxLocale_methods, wxLocale_methodCount, NULL, &wxluatype_wxLocale, NULL, NULL ,g_wxluanumberArray_None, 0, }, *************** *** 2524,2528 **** --- 2555,2561 ---- wxLUA_IMPLEMENT_ENCAPSULATION(wxFileInputStream, wxFileInputStream) wxLUA_IMPLEMENT_ENCAPSULATION(wxFileOutputStream, wxFileOutputStream) + wxLUA_IMPLEMENT_ENCAPSULATION(wxInputStream, wxInputStream) wxLUA_IMPLEMENT_ENCAPSULATION(wxMemoryInputStream, wxMemoryInputStream) + wxLUA_IMPLEMENT_ENCAPSULATION(wxOutputStream, wxOutputStream) #endif // wxUSE_STREAMS Index: wxstc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxstc_bind.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** wxstc_bind.cpp 25 Jan 2008 23:50:52 -0000 1.7 --- wxstc_bind.cpp 29 Jan 2008 00:49:15 -0000 1.8 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxstc_bind.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxxml_xml.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxxml_xml.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxxml_xml.cpp 23 Jan 2008 06:43:38 -0000 1.12 --- wxxml_xml.cpp 29 Jan 2008 00:49:15 -0000 1.13 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxxml_xml.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxcore_defsutils.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_defsutils.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxcore_defsutils.cpp 23 Jan 2008 06:43:36 -0000 1.10 --- wxcore_defsutils.cpp 29 Jan 2008 00:49:13 -0000 1.11 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxcore_defsutils.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxbase_datetime.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_datetime.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxbase_datetime.cpp 23 Jan 2008 06:43:36 -0000 1.11 --- wxbase_datetime.cpp 29 Jan 2008 00:49:12 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxbase_datetime.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- Index: wxbase_file.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxbase_file.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxbase_file.cpp 23 Jan 2008 06:43:36 -0000 1.11 --- wxbase_file.cpp 29 Jan 2008 00:49:12 -0000 1.12 *************** *** 1,6 **** // --------------------------------------------------------------------------- ! // This file was generated by genwxbind.lua // ! // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- --- 1,6 ---- // --------------------------------------------------------------------------- ! // ../modules/wxbind/src/wxbase_file.cpp was generated by genwxbind.lua // ! // Any changes made to this file will be lost when the file is regenerated. // --------------------------------------------------------------------------- *************** *** 4225,4229 **** // push the result flag lua_pushboolean(L, returns); ! lua_pushstring(L, wx2lua(desc)); return 2; --- 4225,4229 ---- // push the result flag lua_pushboolean(L, returns); ! wxlua_pushwxString(L, desc); return 2; *************** *** 4328,4332 **** // push the result flag lua_pushboolean(L, returns); ! lua_pushstring(L, wx2lua(printCmd)); return 2; --- 4328,4332 ---- // push the result flag lua_pushboolean(L, returns); ! wxlua_pushwxString(L, printCmd); return 2; *************** *** 4945,4949 **** lua_pushlstring(L, (const char *)buffer, size); free(buffer); ! return 2; } return 0; --- 4945,4949 ---- lua_pushlstring(L, (const char *)buffer, size); free(buffer); ! return 1; } return 0; *************** *** 5840,5841 **** --- 5840,6617 ---- #endif // wxUSE_STREAMS + + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + // --------------------------------------------------------------------------- + // Bind class wxFSFile + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxFSFile' + int wxluatype_wxFSFile = WXLUA_TUNKNOWN; + + #if (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_DetachStream[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_DetachStream(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_DetachStream[1] = {{ wxLua_wxFSFile_DetachStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_DetachStream }}; + // %gc wxInputStream *DetachStream() + static int LUACALL wxLua_wxFSFile_DetachStream(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call DetachStream + wxInputStream* returns = (wxInputStream*)self->DetachStream(); + if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxInputStream(returns)); + // push the result datatype + wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); + + return 1; + } + + #endif // (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetAnchor[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_GetAnchor(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetAnchor[1] = {{ wxLua_wxFSFile_GetAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetAnchor }}; + // wxString GetAnchor() const + static int LUACALL wxLua_wxFSFile_GetAnchor(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call GetAnchor + wxString returns = (self->GetAnchor()); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetLocation[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_GetLocation(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetLocation[1] = {{ wxLua_wxFSFile_GetLocation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetLocation }}; + // wxString GetLocation() const + static int LUACALL wxLua_wxFSFile_GetLocation(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call GetLocation + wxString returns = (self->GetLocation()); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetMimeType[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_GetMimeType(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetMimeType[1] = {{ wxLua_wxFSFile_GetMimeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetMimeType }}; + // wxString GetMimeType() const + static int LUACALL wxLua_wxFSFile_GetMimeType(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call GetMimeType + wxString returns = (self->GetMimeType()); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + + #if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetModificationTime[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_GetModificationTime(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetModificationTime[1] = {{ wxLua_wxFSFile_GetModificationTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetModificationTime }}; + // wxDateTime GetModificationTime() const + static int LUACALL wxLua_wxFSFile_GetModificationTime(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call GetModificationTime + // allocate a new object using the copy constructor + wxDateTime* returns = new wxDateTime(self->GetModificationTime()); + // add the new object to the tracked memory list + wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxDateTime((wxDateTime*)returns)); + // push the result datatype + wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); + + return 1; + } + + #endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + #if (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetStream[] = { &wxluatype_wxFSFile, NULL }; + static int LUACALL wxLua_wxFSFile_GetStream(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetStream[1] = {{ wxLua_wxFSFile_GetStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetStream }}; + // wxInputStream *GetStream() const + static int LUACALL wxLua_wxFSFile_GetStream(lua_State *L) + { + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call GetStream + wxInputStream* returns = (wxInputStream*)self->GetStream(); + // push the result datatype + wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_SetStream[] = { &wxluatype_wxFSFile, &wxluatype_wxInputStream, NULL }; + static int LUACALL wxLua_wxFSFile_SetStream(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_SetStream[1] = {{ wxLua_wxFSFile_SetStream, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFSFile_SetStream }}; + // void SetStream(%ungc wxInputStream *stream) + static int LUACALL wxLua_wxFSFile_SetStream(lua_State *L) + { + // wxInputStream stream + wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); + if (wxluaO_isgcobject(L, stream)) wxluaO_undeletegcobject(L, stream); + // get this + wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); + // call SetStream + self->SetStream(stream); + + return 0; + } + + #endif // (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_delete[] = { &wxluatype_wxFSFile, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_delete }}; + + + #if (((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) + static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_constructor[] = { &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; + static int LUACALL wxLua_wxFSFile_constructor(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_constructor[1] = {{ wxLua_wxFSFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxFSFile_constructor }}; + // wxFSFile(%ungc wxInputStream *stream, const wxString& loc, const wxString& mimetype, const wxString& anchor, wxDateTime modif) + static int LUACALL wxLua_wxFSFile_constructor(lua_State *L) + { + // wxDateTime modif + wxDateTime modif = *(wxDateTime*)wxluaT_getuserdatatype(L, 5, wxluatype_wxDateTime); + // const wxString anchor + const wxString anchor = wxlua_getwxStringtype(L, 4); + // const wxString mimetype + const wxString mimetype = wxlua_getwxStringtype(L, 3); + // const wxString loc + const wxString loc = wxlua_getwxStringtype(L, 2); + // wxInputStream stream + wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); + if (wxluaO_isgcobject(L, stream)) wxluaO_undeletegcobject(L, stream); + // call constructor + wxFSFile* returns = new wxFSFile(stream, loc, mimetype, anchor, modif); + // add to tracked memory list + wxluaO_addgcobject(L, returns); + // push the constructed class pointer + wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); + + return 1; + } + + #endif // (((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxFSFile_methods[] = { + #if (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + { "DetachStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_DetachStream, 1, NULL }, + #endif // (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + { "GetAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetAnchor, 1, NULL }, + { "GetLocation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetLocation, 1, NULL }, + { "GetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetMimeType, 1, NULL }, + + #if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + { "GetModificationTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetModificationTime, 1, NULL }, + #endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + #if (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + { "GetStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetStream, 1, NULL }, + { "SetStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_SetStream, 1, NULL }, + #endif // (wxUSE_STREAMS) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFSFile_delete, 1, NULL }, + + #if (((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) + { "wxFSFile", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFSFile_constructor, 1, NULL }, + #endif // (((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) + + { 0, 0, 0, 0 }, + }; + + int wxFSFile_methodCount = sizeof(wxFSFile_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + + + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + // --------------------------------------------------------------------------- + // Bind class wxFileSystemHandler + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxFileSystemHandler' + int wxluatype_wxFileSystemHandler = WXLUA_TUNKNOWN; + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_CanOpen[] = { &wxluatype_wxFileSystemHandler, &wxluatype_TSTRING, NULL }; + static int LUACALL wxLua_wxFileSystemHandler_CanOpen(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_CanOpen[1] = {{ wxLua_wxFileSystemHandler_CanOpen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemHandler_CanOpen }}; + // virtual bool CanOpen(const wxString& location) //= 0; + static int LUACALL wxLua_wxFileSystemHandler_CanOpen(lua_State *L) + { + // const wxString location + const wxString location = wxlua_getwxStringtype(L, 2); + // get this + wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); + // call CanOpen + bool returns = (self->CanOpen(location)); + // push the result flag + lua_pushboolean(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_FindFirst[] = { &wxluatype_wxFileSystemHandler, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; + static int LUACALL wxLua_wxFileSystemHandler_FindFirst(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_FindFirst[1] = {{ wxLua_wxFileSystemHandler_FindFirst, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystemHandler_FindFirst }}; + // virtual wxString FindFirst(const wxString& spec, int flags = 0); + static int LUACALL wxLua_wxFileSystemHandler_FindFirst(lua_State *L) + { + // get number of arguments + int argCount = lua_gettop(L); + // int flags = 0 + int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); + // const wxString spec + const wxString spec = wxlua_getwxStringtype(L, 2); + // get this + wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); + // call FindFirst + wxString returns = (self->FindFirst(spec, flags)); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_FindNext[] = { &wxluatype_wxFileSystemHandler, NULL }; + static int LUACALL wxLua_wxFileSystemHandler_FindNext(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_FindNext[1] = {{ wxLua_wxFileSystemHandler_FindNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemHandler_FindNext }}; + // virtual wxString FindNext(); + static int LUACALL wxLua_wxFileSystemHandler_FindNext(lua_State *L) + { + // get this + wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); + // call FindNext + wxString returns = (self->FindNext()); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_OpenFile[] = { &wxluatype_wxFileSystemHandler, &wxluatype_wxFileSystem, &wxluatype_TSTRING, NULL }; + static int LUACALL wxLua_wxFileSystemHandler_OpenFile(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_OpenFile[1] = {{ wxLua_wxFileSystemHandler_OpenFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileSystemHandler_OpenFile }}; + // virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) //= 0; + static int LUACALL wxLua_wxFileSystemHandler_OpenFile(lua_State *L) + { + // const wxString location + const wxString location = wxlua_getwxStringtype(L, 3); + // wxFileSystem fs + wxFileSystem * fs = (wxFileSystem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileSystem); + // get this + wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); + // call OpenFile + wxFSFile* returns = (wxFSFile*)self->OpenFile(*fs, location); + // push the result datatype + wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_delete[] = { &wxluatype_wxFileSystemHandler, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemHandler_delete }}; + + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxFileSystemHandler_methods[] = { + { "CanOpen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_CanOpen, 1, NULL }, + { "FindFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_FindFirst, 1, NULL }, + { "FindNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_FindNext, 1, NULL }, + { "OpenFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_OpenFile, 1, NULL }, + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileSystemHandler_delete, 1, NULL }, + + { 0, 0, 0, 0 }, + }; + + int wxFileSystemHandler_methodCount = sizeof(wxFileSystemHandler_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + + + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + // --------------------------------------------------------------------------- + // Bind class wxLocalFSHandler + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxLocalFSHandler' + int wxluatype_wxLocalFSHandler = WXLUA_TUNKNOWN; + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLocalFSHandler_Chroot[] = { &wxluatype_TSTRING, NULL }; + static int LUACALL wxLua_wxLocalFSHandler_Chroot(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_Chroot[1] = {{ wxLua_wxLocalFSHandler_Chroot, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocalFSHandler_Chroot }}; + // static void Chroot(const wxString& root) + static int LUACALL wxLua_wxLocalFSHandler_Chroot(lua_State *L) + { + // const wxString root + const wxString root = wxlua_getwxStringtype(L, 1); + // call Chroot + wxLocalFSHandler::Chroot(root); + + return 0; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLocalFSHandler_delete[] = { &wxluatype_wxLocalFSHandler, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLocalFSHandler_delete }}; + + static int LUACALL wxLua_wxLocalFSHandler_constructor(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_constructor[1] = {{ wxLua_wxLocalFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; + // wxLocalFSHandler() + static int LUACALL wxLua_wxLocalFSHandler_constructor(lua_State *L) + { + // call constructor + wxLocalFSHandler* returns = new wxLocalFSHandler(); + // add to tracked memory list + wxluaO_addgcobject(L, returns); + // push the constructed class pointer + wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocalFSHandler); + + return 1; + } + + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxLocalFSHandler_methods[] = { + { "Chroot", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocalFSHandler_Chroot, 1, NULL }, + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLocalFSHandler_delete, 1, NULL }, + { "wxLocalFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLocalFSHandler_constructor, 1, NULL }, + + { 0, 0, 0, 0 }, + }; + + int wxLocalFSHandler_methodCount = sizeof(wxLocalFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + + + #if (wxUSE_STREAMS) && (wxUSE_FILESYSTEM) + // --------------------------------------------------------------------------- + // Bind class wxFileSystem + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxFileSystem' + int wxluatype_wxFileSystem = WXLUA_TUNKNOWN; + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_AddHandler[] = { &wxluatype_wxFileSystemHandler, NULL }; + static int LUACALL wxLua_wxFileSystem_AddHandler(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_AddHandler[1] = {{ wxLua_wxFileSystem_AddHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_AddHandler }}; + // static void AddHandler(wxFileSystemHandler *handler); + static int LUACALL wxLua_wxFileSystem_AddHandler(lua_State *L) + { + // wxFileSystemHandler handler + wxFileSystemHandler * handler = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); + // call AddHandler + wxFileSystem::AddHandler(handler); + + return 0; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_ChangePathTo[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; + static int LUACALL wxLua_wxFileSystem_ChangePathTo(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_ChangePathTo[1] = {{ wxLua_wxFileSystem_ChangePathTo, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystem_ChangePathTo }}; + // void ChangePathTo(const wxString& location, bool is_dir = false); + static int LUACALL wxLua_wxFileSystem_ChangePathTo(lua_State *L) + { + // get number of arguments + int argCount = lua_gettop(L); + // bool is_dir = false + bool is_dir = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); + // const wxString location + const wxString location = wxlua_getwxStringtype(L, 2); + // get this + wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); + // call ChangePathTo + self->ChangePathTo(location, is_dir); + + return 0; + } + + static int LUACALL wxLua_wxFileSystem_CleanUpHandlers(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_CleanUpHandlers[1] = {{ wxLua_wxFileSystem_CleanUpHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; + // static void CleanUpHandlers(); + static int LUACALL wxLua_wxFileSystem_CleanUpHandlers(lua_State *L) + { + // call CleanUpHandlers + wxFileSystem::CleanUpHandlers(); + + return 0; + } + + + #if (wxLUA_USE_wxFileName) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FileNameToURL[] = { &wxluatype_wxFileName, NULL }; + static int LUACALL wxLua_wxFileSystem_FileNameToURL(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FileNameToURL[1] = {{ wxLua_wxFileSystem_FileNameToURL, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_FileNameToURL }}; + // static wxString FileNameToURL(const wxFileName& filename); + static int LUACALL wxLua_wxFileSystem_FileNameToURL(lua_State *L) + { + // const wxFileName filename + const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); + // call FileNameToURL + wxString returns = (wxFileSystem::FileNameToURL(*filename)); + // push the result string + wxlua_pushwxString(L, returns); + + return 1; + } + + #endif // (wxLUA_USE_wxFileName) && ((wxUSE_STREAMS) && (wxUSE_FILESYSTEM)) + + static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FindFileInPath[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; + static int LUACALL wxLua_wxFileSystem_FindFileInPath(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FindFileInPath[1] = {{ wxLua_wxFileSystem_FindFileInPath, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileSystem_FindFileInPath }}; + // %override wxLua_wxFileSystem_FindFileInPath + // bool FindFileInPath(wxString *pSt... [truncated message content] |