1
// KDat - a tar-based DAT archiver
2
// Copyright (C) 1998-2000 Sean Vyain, svyain@mail.tds.net
3
// Copyright (C) 2001-2002 Lawrence Widman, kdat@cardiothink.com
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
#ifndef _LoggerWidget_h_
20
#define _LoggerWidget_h_
24
class Q3MultiLineEdit;
27
* @short A titled logging widget with a save option.
29
class LoggerWidget : public QWidget {
31
Q3MultiLineEdit* _mle;
34
* Create a titled logging widget
36
* @param title The title text displayed above the logging window.
37
* @param parent The parent widget.
38
* @param name The name of this widget.
40
LoggerWidget( const QString & title, QWidget* parent = 0, const char* name = 0 );
43
* Destroy the logging widget.
48
* Append the given text to the end of the logging widget, and position the
49
* viewable area at the end of the text.
51
* @param text The text to append.
53
void append( const QString & text );
56
* Prompt the user for a file name, and save the contents of the log to