From: John L. <jr...@us...> - 2007-02-09 05:17:13
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14412/wxLua/bindings/wxwidgets Modified Files: data.i windows.i wx_datatypes.lua Log Message: derive wxWindowList from wxList and add comment to show how to use it Index: windows.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/windows.i,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** windows.i 7 Dec 2006 06:32:42 -0000 1.24 --- windows.i 9 Feb 2007 05:17:08 -0000 1.25 *************** *** 299,310 **** %if wxLUA_USE_wxWindowList ! %class %noclassinfo wxWindowList ! void Clear() ! void DeleteContents(bool destroy) ! bool DeleteObject(wxWindow *pMenuItem) ! int GetCount() const ! %property=Count, read %endclass --- 299,313 ---- %if wxLUA_USE_wxWindowList ! %class %noclassinfo wxWindowList, wxList ! wxWindowList() ! // This is returned from wxWindow::GetChildren(), use wxList methods and ! // wxNode::GetData():DynamicCast("wxWindow") to retrieve the wxWindow ! // frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "Test"); ! // win = wx.wxWindow(frame, wx.wxID_ANY) ! // frame:Show(true) ! // wlist = frame:GetChildren() ! // wlist:Item(0):GetData():DynamicCast("wxWindow"):SetBackgroundColour(wx.wxRED) %endclass *************** *** 473,476 **** --- 476,480 ---- wxNotebookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1) + // functions in wxBookCtrlBaseEvent //int GetOldSelection() const //int GetSelection() const *************** *** 516,519 **** --- 520,524 ---- wxListbookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1) + // functions in wxBookCtrlBaseEvent //int GetOldSelection() const //int GetSelection() const *************** *** 559,562 **** --- 564,568 ---- wxChoicebookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1) + // functions in wxBookCtrlBaseEvent //int GetOldSelection() const //int GetSelection() const Index: wx_datatypes.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wx_datatypes.lua,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** wx_datatypes.lua 6 Feb 2007 04:17:41 -0000 1.46 --- wx_datatypes.lua 9 Feb 2007 05:17:08 -0000 1.47 *************** *** 3155,3158 **** --- 3155,3159 ---- }, wxWindowList = { + BaseClass = "wxList", Condition = "wxLUA_USE_wxWindowList", DefType = "class", Index: data.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/data.i,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** data.i 7 Dec 2006 06:32:42 -0000 1.19 --- data.i 9 Feb 2007 05:17:08 -0000 1.20 *************** *** 233,238 **** wxNode *GetNext() wxNode *GetPrevious() ! void SetData(wxObject *Data) ! //int IndexOf() %property=Data, read, write --- 233,238 ---- wxNode *GetNext() wxNode *GetPrevious() ! void SetData(wxObject *data) ! int IndexOf() %property=Data, read, write |