1
/***************************************************************************
2
* Copyright (c) 2004 J�rgen Riegel <juergen.riegel@web.de> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
24
#ifndef GUI_GUICONSOLE_H
25
#define GUI_GUICONSOLE_H
28
#include <Base/Console.h>
32
/** The console window class
33
* This class opens a console window when instanciated
34
* and redirect the stdio streams to it as long it exists.
35
* This is for Windows only!
36
* After instanciation it automaticly register itself at
37
* the FCConsole class and gets all the FCConsoleObserver
38
* massages. The class must not used directly! Only the
39
* over the FCConsole class is allowed!
41
* \author J�rgen Riegel
43
class GuiExport GUIConsole :public Base::ConsoleObserver
49
virtual ~GUIConsole(void);
51
/** Observer implementation */
52
virtual void Warning(const char *sWarn);
53
virtual void Message(const char *sMsg);
54
virtual void Error (const char *sErr);
55
virtual void Log (const char *sErr);
56
const char* Name(void){return "GUIConsole";}
60
static const unsigned int s_nMaxLines;
61
static unsigned int s_nRefCount;
66
#endif // GUI_GUICONSOLE_H