minor changes to the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,8 +94,7 @@ public:
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
|
||||
// for MyPipedProcess
|
||||
void OnProcessTerminated(MyPipedProcess *process)
|
||||
{ m_running.Remove(process); }
|
||||
void OnProcessTerminated(MyPipedProcess *process);
|
||||
wxListBox *GetLogListBox() const { return m_lbox; }
|
||||
|
||||
private:
|
||||
@@ -232,11 +231,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
|
||||
wxApp::s_macAboutMenuItemId = Exec_About;
|
||||
#endif
|
||||
|
||||
// set the frame icon
|
||||
#ifndef __WXGTK__
|
||||
SetIcon(wxICON(mondrian));
|
||||
#endif
|
||||
|
||||
// create a menu bar
|
||||
wxMenu *menuFile = new wxMenu(_T(""), wxMENU_TEAROFF);
|
||||
menuFile->Append(Exec_ClearLog, _T("&Clear log\tCtrl-C"),
|
||||
@@ -402,6 +396,8 @@ void MyFrame::OnExecWithRedirect(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
m_lbox->Append(output[n]);
|
||||
}
|
||||
|
||||
m_lbox->Append(_T("--- End of output ---"));
|
||||
}
|
||||
}
|
||||
else // async exec
|
||||
@@ -477,6 +473,11 @@ void MyFrame::OnIdle(wxIdleEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
void MyFrame::OnProcessTerminated(MyPipedProcess *process)
|
||||
{
|
||||
m_running.Remove(process);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// MyProcess
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user