00001 #ifndef WX_DEBUGGING_CONSOLE_WINDOW_CLASS 00002 #define WX_DEBUGGING_CONSOLE_WINDOW_CLASS 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : wx_debugging_console_panel * 00007 * Author : Aaron Buchanan * 00008 * Author : Chris Koeritz * 00009 * * 00010 * Purpose: * 00011 * * 00012 * Provides a scratch pad window that accepts debugging messages generated * 00013 * by a debugger object and prints them out. * 00014 * * 00015 ******************************************************************************* 00016 * Copyright (c) 1995-$now By Author. This program is free software; you can * 00017 * redistribute it and/or modify it under the terms of the GNU General Public * 00018 * License as published by the Free Software Foundation; either version 2 of * 00019 * the License or (at your option) any later version. This is online at: * 00020 * http://www.fsf.org/copyleft/gpl.html * 00021 * Please send any updates to: fred@gruntose.com * 00022 \*****************************************************************************/ 00023 00024 #include "wx_debugging_base.h" 00025 00026 #include <basis/portable.h> 00027 00028 #undef GetClassInfo 00029 #include <wx/panel.h> 00030 #include <wx/textctrl.h> 00031 00032 class wxCommandEvent; 00033 00034 class WX_EXTENSIONS_CLASS_STYLE wx_debugging_console_panel 00035 : public wxPanel, 00036 public wx_debugging_base 00037 { 00038 public: 00039 wx_debugging_console_panel(wxWindow *parent, int file_size = int(1.2 * MEGABYTE)); 00040 virtual ~wx_debugging_console_panel(); 00041 00042 void display_debug_message(wxCommandEvent &event); 00043 // prints the debugging information that is sent to a window. this can 00044 // be invoked by windows that are receiving debugging messages. 00045 00046 private: 00047 wxTextCtrl _text; // the edit window object. 00048 }; 00049 00050 #endif 00051
1.5.1