Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00027 #ifndef __CONSOLEDIALOG__
00028 #define __CONSOLEDIALOG__
00029
00030
00031
00032
00033 #include <wx/wx.h>
00034 #include <sstream>
00035 #include <memory>
00036 class consoleDialog: public wxDialog
00037 {
00038 public:
00039 consoleDialog ( wxWindow *parent,
00040 wxWindowID id,
00041 const wxString &title,
00042 const wxPoint& pos = wxDefaultPosition,
00043 const wxSize& size = wxDefaultSize,
00044 long style = wxDEFAULT_DIALOG_STYLE
00045 );
00046 wxTextCtrl *logText;
00047 wxString GetText();
00048
00049 friend void wxLockGUI( void * );
00050 friend void wxUnlockGUI( void * );
00051
00052 protected:
00053 std::stringstream other_thread_output;
00054 std::auto_ptr< std::ostream >console_stream;
00055 void OnConsoleClose (wxCommandEvent & event);
00056 void OnIdle( wxIdleEvent &event );
00057 DECLARE_EVENT_TABLE();
00058
00059 };
00060
00061 #endif