~ubuntu-branches/ubuntu/natty/kdeadmin/natty-proposed

« back to all changes in this revision

Viewing changes to kdat/LoggerWidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-02-27 21:36:45 UTC
  • mfrom: (1.2.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20100227213645-ronst6mahkgf6j9w
Tags: 4:4.4.1-0ubuntu1
* New upstream release
  - Bump build-depends
  - Update kcron.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
4
 
//
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.
9
 
//
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.
14
 
//
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
18
 
 
19
 
#ifndef _LoggerWidget_h_
20
 
#define _LoggerWidget_h_
21
 
 
22
 
#include <QWidget>
23
 
 
24
 
class Q3MultiLineEdit;
25
 
 
26
 
/**
27
 
 * @short A titled logging widget with a save option.
28
 
 */
29
 
class LoggerWidget : public QWidget {
30
 
    Q_OBJECT
31
 
    Q3MultiLineEdit* _mle;
32
 
public:
33
 
    /**
34
 
     * Create a titled logging widget
35
 
     *
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.
39
 
     */
40
 
    LoggerWidget( const QString & title, QWidget* parent = 0, const char* name = 0 );
41
 
 
42
 
    /**
43
 
     * Destroy the logging widget.
44
 
     */
45
 
    ~LoggerWidget();
46
 
 
47
 
    /**
48
 
     * Append the given text to the end of the logging widget, and position the
49
 
     * viewable area at the end of the text.
50
 
     *
51
 
     * @param text The text to append.
52
 
     */
53
 
    void append( const QString & text );
54
 
public slots:
55
 
    /**
56
 
     * Prompt the user for a file name, and save the contents of the log to
57
 
     * that file.
58
 
     */
59
 
    void save();
60
 
};
61
 
 
62
 
#endif