From: John L. <jr...@us...> - 2007-06-11 03:58:35
|
Update of /cvsroot/wxlua/wxLua/docs In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv19140/wxLua/docs Modified Files: binding.html changelog.txt wxlua.html wxluaref.html Log Message: Remove wxArrayString_FromLuaTable and wxArrayInt_FromLuaTable binding tag since we convert from wxArrayInt/String automatically Fix listctrl sorting Fix validator code using wxLuaObject Rename wxLuaState::LuaCall to LuaPCall since that what it calls Lots more cleanup and shuffling of code to more appropriate places Index: wxluaref.html =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/wxluaref.html,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** wxluaref.html 1 Jun 2007 18:19:46 -0000 1.20 --- wxluaref.html 11 Jun 2007 03:57:59 -0000 1.21 *************** *** 615,618 **** --- 615,619 ---- <a href="#wxLocaleInfo">wxLocaleInfo</a><br> <a href="#wxLocaleInitFlags">wxLocaleInitFlags</a><br> + <a href="#wxLuaMethod_Type">wxLuaMethod_Type</a><br> <a href="#wxLuaObject_Type">wxLuaObject_Type</a><br> <a href="#wxMediaCtrlPlayerControls">wxMediaCtrlPlayerControls</a><br> *************** *** 640,643 **** --- 641,645 ---- <a href="#wxSocketNotify">wxSocketNotify</a><br> [...1904 lines suppressed...] ! <font color=#007755> <i>%define_event</i> wxEVT_STC_MODIFIED // EVT_STC_MODIFIED(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_MACRORECORD // EVT_STC_MACRORECORD(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_MARGINCLICK // EVT_STC_MARGINCLICK(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_NEEDSHOWN // EVT_STC_NEEDSHOWN(id, fn)</font><br> ! <font color=#007755> !<i>%wxchkver_2_5</i> <i>%define_event</i> wxEVT_STC_POSCHANGED // ??</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_PAINTED // EVT_STC_PAINTED(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_USERLISTSELECTION // EVT_STC_USERLISTSELECTION(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_URIDROPPED // EVT_STC_URIDROPPED(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_DWELLSTART // EVT_STC_DWELLSTART(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_DWELLEND // EVT_STC_DWELLEND(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_START_DRAG // EVT_STC_START_DRAG(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_DRAG_OVER // EVT_STC_DRAG_OVER(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_DO_DROP // EVT_STC_DO_DROP(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_ZOOM // EVT_STC_ZOOM(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_HOTSPOT_CLICK // EVT_STC_HOTSPOT_CLICK(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_HOTSPOT_DCLICK // EVT_STC_HOTSPOT_DCLICK(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_CALLTIP_CLICK // EVT_STC_CALLTIP_CLICK(id, fn)</font><br> ! <font color=#007755> <i>%define_event</i> wxEVT_STC_AUTOCOMP_SELECTION // EVT_STC_AUTOCOMP_SELECTION(id, fn)</font><br> <br> wxStyledTextEvent(wxEventType commandType = 0, int id = 0)<br> Index: wxlua.html =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/wxlua.html,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** wxlua.html 7 Jun 2007 03:31:50 -0000 1.21 --- wxlua.html 11 Jun 2007 03:57:59 -0000 1.22 *************** *** 3,25 **** <head> - - <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> ! ! - [...4496 lines suppressed...] ! LuaPCall(int narg, int nresults)</li> <ul> <li>Uses lua_call to run a chunk on the stack, but sets things up for wxLua first.</li> <li>Returns lua's error ! code LUA_ERRXXX or 0 on success</li> </ul> <li>The other functions are documented in <span style="font-style: italic;">wxLua/modules/wxlua/include/wxlstate.h</span>.</li> </ul> </body> </html> Index: binding.html =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/binding.html,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** binding.html 6 Jun 2007 23:42:56 -0000 1.18 --- binding.html 11 Jun 2007 03:57:59 -0000 1.19 *************** *** 1,10 **** <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> ! ! <title>wxLua Binding HowTo</title><meta content="John Labenski" name="author"></head> <body> --- 1,14 ---- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ! <html> ! <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> ! <title>wxLua Binding HowTo</title> ! <meta content="John Labenski" name="author"> ! ! </head> ! <body> *************** *** 330,334 **** <li>int s_wxluatag_CLASS_NAME for each class that is mapped ! through the wxLuaBindClass struct and when the binding is initialized will contain the tag index that lua assigns to the class for the userdata.</li> --- 334,339 ---- <li>int s_wxluatag_CLASS_NAME for each class that is mapped ! through the wxLuaBindClass struct and when the binding is ! initialized will contain the tag index that lua assigns to the class for the userdata.</li> *************** *** 368,373 **** functions to push into the lua binding table.</li> ! <li>A wxLuaBindClass struct that contains the class names, all ! the wxLuaBindMethod structs from each *.i generated cpp files, and their tags.</li> --- 373,380 ---- functions to push into the lua binding table.</li> ! <li>A wxLuaBindClass struct that contains the class names, ! all ! the wxLuaBindMethod structs from each *.i generated cpp files, ! and their tags.</li> *************** *** 541,552 **** <li><i><b>const ! wxArrayString_FromLuaTable& ! choices </b>or just<b> </b></i><i><b>wxArrayString_FromLuaTable ! choices</b></i></li> <ul> <li>The ! binding generator will read from lua a numerically indexed table of strings for that parameter and convert them into a --- 548,558 ---- <li><i><b>const ! wxArrayString& ! choices or wxArrayString choices</b></i></li> <ul> <li>The ! binding generator will read from lua either a wxArrayString or a a numerically indexed table of strings for that parameter and convert them into a *************** *** 554,563 **** function.</li> </ul> <li><i><b>const ! wxArrayInt_FromLuaTable& ! choices </b>or just </i><i><b>wxArrayInt_FromLuaTable ! choices</b></i></li> <ul> --- 560,574 ---- function.</li> + <li>If either <i><b>wxArrayString& + choices</b></i> or <i><b>wxArrayString* choices</b></i> + is used, the generator will not do the table conversion, but look for a + wxArrayString userdata since it's assumed that the C++ function will + modify the wxArrayString that's passed to it.</li> + </ul> <li><i><b>const ! wxArrayInt& ! choices or wxArrayInt choices</b></i></li> <ul> *************** *** 565,577 **** <li>The binding generator will read from lua a ! numerically indexed table of integers for that parameter and convert them into a wxArrayInt for the C++ function.</li> ! </ul><li style="font-weight: bold; font-style: italic;">IntArray_FromLuaTable</li><ul><li>The binding generator will read from lua a numerically indexed table of ! integers and create two parameters (int count, int* array) to pass ! to a function.</li><li>The int* array will be automatically deleted and the function should not take ownership of it and delete it itself.</li></ul> <li><i><b>LuaTable --- 576,607 ---- <li>The binding generator will read from lua a ! wxArrayInt or a numerically indexed table of integers for that ! parameter and convert them into a wxArrayInt for the C++ function.</li> ! <li>If either <i><b>wxArrayInt& choices</b></i> ! or <i><b>wxArrayInt* choices</b></i> is used, ! the generator will not do the table conversion, but look for a ! wxArrayInt userdata since it's assumed that the C++ function will ! modify the wxArrayInt that's passed to it.</li> ! ! </ul> ! ! <li style="font-weight: bold; font-style: italic;">IntArray_FromLuaTable</li> ! ! <ul> ! ! <li>The binding generator will read from lua a numerically indexed table of ! integers and create two parameters (int count, int* array) to ! pass ! to a function.</li> ! ! <li>The int* array will be automatically deleted and the ! function should not take ownership of it and delete it itself.</li> ! ! </ul> <li><i><b>LuaTable *************** *** 724,728 **** do not have ! DECLARE_XXX_CLASS in their declaration, eg. wxPoint and any non wxObject derived classes.</li> --- 754,758 ---- do not have ! DECLARE_XXX_CLASS in their declaration, e.g. wxPoint and any non wxObject derived classes.</li> *************** *** 750,755 **** accessed in wxLua using <i>wx.NUMBER</i>. </li> ! <li>The ! <i>NUMBER</i> can be a #define or an int. </li> --- 780,784 ---- accessed in wxLua using <i>wx.NUMBER</i>. </li> ! <li>The <i>NUMBER</i> can be a #define or an int. </li> *************** *** 847,852 **** accessed in wxLua using <i>wx.STRING</i>. </li> ! <li>The ! <i>STRING</i> must be defined as <i>"const wxChar* STRING = _("str") or --- 876,880 ---- accessed in wxLua using <i>wx.STRING</i>. </li> ! <li>The <i>STRING</i> must be defined as <i>"const wxChar* STRING = _("str") or *************** *** 1414,1416 **** <br> ! </body></html> \ No newline at end of file --- 1442,1445 ---- <br> ! </body> ! </html> Index: changelog.txt =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/changelog.txt,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** changelog.txt 6 Jun 2007 23:42:56 -0000 1.33 --- changelog.txt 11 Jun 2007 03:57:59 -0000 1.34 *************** *** 1,3 **** -  wxLua ChangeLog =============== --- 1,2 ---- *************** *** 30,36 **** - *** Removed MOST %renamed functions so that they are not overloaded. For example wxSizer::AddWindow/AddSizer is now just wxSizer::Add! ! Removed most renamed constructors so like wxEmptyBitmap, wxBitmapFromFile ! and you now need only call wxBitmap(...) and wxLua will determine which ! appropriate function to call. - Changed class member enums to be accessed by wx.ClassName.enumName instead of previously wx.ClassName_enumName. --- 29,35 ---- - *** Removed MOST %renamed functions so that they are not overloaded. For example wxSizer::AddWindow/AddSizer is now just wxSizer::Add! ! Removed most renamed constructors like wxEmptyBitmap, wxBitmapFromFile ! and you now need only call wxBitmap(...). wxLua will determine which ! appropriate function to call at runtime. - Changed class member enums to be accessed by wx.ClassName.enumName instead of previously wx.ClassName_enumName. *************** *** 72,75 **** --- 71,83 ---- - Renamed the GetLua[Class]List functions in wxLuaBindings to Get[Class]Array, since they're C arrays not wxLists. + - Renamed wxLuaState::LuaCall to LuaPCall since that's what it calls + and changed the parameters to match lua_pcall. + + - Removed binding helpers wxArrayString_FromLuaTable and + wxArrayInt_FromLuaTable since the conversion is now automatic and the + function can take either a table or a wxArrayXXX. See notes in binding.html. + - Fixed sorting function for the listctrl. + - Added validator.wx.lua to test wxGenericValidators and wxTextValidators, + both of which work again. version 2.8.0.0 (released 24/12/2006) |