|
hipp
1.0
|
00001 /* 00002 Copyright 2011 Certec, Lund University, Sweden 00003 00004 This file is part of HIPP. 00005 00006 HIPP is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 HIPP is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with HIPP. If not, see <http://www.gnu.org/licenses/>. 00018 00019 */ 00020 00027 #ifndef __CONSOLEDIALOG__ 00028 #define __CONSOLEDIALOG__ 00029 00030 // --------------------------------------------------------------------------- 00031 // Console Dialog Class 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
1.7.5.1