Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18351/wxLua/bindings/wxwidgets
Modified Files:
defsutil.i event.i
Log Message:
the wxLua app now runs
add back wxExecute and add wxProcess
add bin2c.lua to generate editor.h for wxlua app
Index: defsutil.i
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/defsutil.i,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** defsutil.i 17 Nov 2005 05:51:20 -0000 1.4
--- defsutil.i 19 Nov 2005 07:08:39 -0000 1.5
***************
*** 24,28 ****
// Process control functions
! // FIXME add wxProcess %builtin long wxExecute(const wxString& command, bool sync = FALSE, wxProcess *callback = NULL)
%builtin void wxExit()
--- 24,68 ----
// Process control functions
! %enum
! wxEXEC_ASYNC
! wxEXEC_SYNC
! wxEXEC_NOHIDE
! wxEXEC_MAKE_GROUP_LEADER
! wxEXEC_NODISABLE
! %endenum
!
! %enum
! wxPROCESS_DEFAULT
! wxPROCESS_REDIRECT
! %endenum
!
! // FIXME add wxProcess
! %class %delete %encapsulate wxProcess, wxEvtHandler
! wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY)
! //wxProcess(int flags)
!
! //static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN)
! static bool Exists(int pid)
! static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC)
! virtual void OnTerminate(int pid, int status)
! void Redirect()
! bool IsRedirected()
! void Detach()
!
! %if wxUSE_STREAMS
! wxInputStream *GetInputStream() const
! wxInputStream *GetErrorStream() const
! wxOutputStream *GetOutputStream() const
! void CloseOutput()
! bool IsInputOpened() const
! bool IsInputAvailable() const
! bool IsErrorAvailable() const
! void SetPipeStreams(wxInputStream *outStream, wxOutputStream *inStream, wxInputStream *errStream)
! %endif // wxUSE_STREAMS
!
! %endclass
!
! !%wxchkver26 %builtin long wxExecute(const wxString& command, bool sync = FALSE, wxProcess *callback = NULL)
! %wxchkver26 %builtin long wxExecute(const wxString& command, int flags = wxEXEC_ASYNC, wxProcess *process = NULL)
%builtin void wxExit()
Index: event.i
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/event.i,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** event.i 18 Jun 2005 20:45:58 -0000 1.2
--- event.i 19 Nov 2005 07:08:39 -0000 1.3
***************
*** 22,26 ****
%include "wx/event.h"
! %class wxEvent, wxObject
//wxEvent(int id = 0)
wxObject* GetEventObject()
--- 22,26 ----
%include "wx/event.h"
! %class %delete wxEvent, wxObject
//wxEvent(int id = 0)
wxObject* GetEventObject()
***************
*** 461,467 ****
%define %event wxEVT_END_PROCESS
! wxProcessEvent(int id = 0, int pid = 0)
int GetPid() const
%property=Pid, read
%endclass
--- 461,470 ----
%define %event wxEVT_END_PROCESS
! !%wxchkver26 wxProcessEvent(int id = 0, int pid = 0)
! %wxchkver26 wxProcessEvent(int nId = 0, int pid = 0, int exitcode = 0)
int GetPid() const
+ %wxchkver26 int GetExitCode()
%property=Pid, read
+ %property=ExitCode, read
%endclass
|