1 /*=========================================================================
4 Module: $RCSfile: bbtkWxGUIOutputMessages.h,v $
6 Date: $Date: 2008/07/23 11:46:11 $
7 Version: $Revision: 1.2 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*//**
18 * \brief Short description in one line
20 * Long description which
21 * can span multiple lines
33 #ifdef _USE_WXWIDGETS_
36 #ifndef __bbtkWxGUIOutputMessages_h__
37 #define __bbtkWxGUIOutputMessages_h__
45 /// Abstract class which defines the callbacks invoked by WxGUIOutputMessages
46 class BBTK_EXPORT WxGUIOutputMessagesUser
49 WxGUIOutputMessagesUser() {}
50 virtual ~WxGUIOutputMessagesUser() {}
51 /// Callback invoked when a command is entered in the WxGUIOutputMessages
52 virtual void WxGUIOutputMessagesEnter(const std::string& command) {}
57 class WxStreamRedirector;
59 /// GUI Component which provides a command input zone
60 class BBTK_EXPORT WxGUIOutputMessages : public wxPanel
63 WxGUIOutputMessages(wxWindow *parent, WxGUIOutputMessagesUser* user = 0);
64 ~WxGUIOutputMessages();
66 void Print(const std::string& message, const wxColor* col = 0);
69 WxGUIOutputMessagesUser* mUser;
70 wxTextCtrl* mwxOutputText;
71 wxTextAttr* mwxOutputTextAttr;
72 WxStreamRedirector* mRedirect_cout;
73 WxStreamRedirector* mRedirect_cerr;
96 #endif // __bbtkWxGUIOutputMessages_h__
98 #endif //_USE_WXWIDGETS_