- wxProcess(wxEvtHandler *parent = (wxEvtHandler *) NULL, int id = -1)
- { Init(parent, id, wxPROCESS_DEFAULT); }
+ wxProcess(wxEvtHandler *parent = (wxEvtHandler *) NULL, int nId = wxID_ANY)
+ { Init(parent, nId, wxPROCESS_DEFAULT); }
// call this before passing the object to wxExecute() to redirect the
// launched process stdin/stdout, then use GetInputStream() and
// GetOutputStream() to get access to them
// call this before passing the object to wxExecute() to redirect the
// launched process stdin/stdout, then use GetInputStream() and
// GetOutputStream() to get access to them
bool IsRedirected() const { return m_redirect; }
// detach from the parent - should be called by the parent if it's deleted
bool IsRedirected() const { return m_redirect; }
// detach from the parent - should be called by the parent if it's deleted
// close the output stream indicating that nothing more will be written
void CloseOutput() { delete m_outputStream; m_outputStream = NULL; }
// close the output stream indicating that nothing more will be written
void CloseOutput() { delete m_outputStream; m_outputStream = NULL; }
// for backwards compatibility only, don't use
#if WXWIN_COMPATIBILITY_2_2
// for backwards compatibility only, don't use
#if WXWIN_COMPATIBILITY_2_2
- wxProcess(wxEvtHandler *parent, bool redirect)
- { Init(parent, -1, redirect ? wxPROCESS_REDIRECT : wxPROCESS_DEFAULT); }
+ wxDEPRECATED( wxProcess(wxEvtHandler *parent, bool redirect) );
#define EVT_END_PROCESS(id, func) \
DECLARE_EVENT_TABLE_ENTRY( \
#define EVT_END_PROCESS(id, func) \
DECLARE_EVENT_TABLE_ENTRY( \
- wxEVT_END_PROCESS, id, -1, \
+ wxEVT_END_PROCESS, id, wxID_ANY, \
(wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxProcessEventFunction, & func ), NULL),
#endif
(wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxProcessEventFunction, & func ), NULL),
#endif