1 | /* This file is part of the KDE libraries |
2 | Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) |
3 | |
4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public |
6 | License as published by the Free Software Foundation; either |
7 | version 2 of the License, or (at your option) any later version. |
8 | |
9 | This library is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | Library General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to |
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | Boston, MA 02110-1301, USA. |
18 | */ |
19 | #ifndef _KDEBUGDIALOG |
20 | #define _KDEBUGDIALOG |
21 | |
22 | #include "kabstractdebugdialog.h" |
23 | |
24 | #include "ui_kdebugdialog.h" |
25 | |
26 | class QLineEdit; |
27 | class QComboBox; |
28 | class QLabel; |
29 | class QGroupBox; |
30 | class QCheckBox; |
31 | |
32 | /** |
33 | * Control debug/warning/error/fatal output of KDE applications |
34 | * |
35 | * This dialog allows control of debugging output for all KDE apps. |
36 | * |
37 | * @author Kalle Dalheimer (kalle@kde.org) |
38 | */ |
39 | class KDebugDialog : public KAbstractDebugDialog, public Ui_KDebugDialog |
40 | { |
41 | Q_OBJECT |
42 | |
43 | public: |
44 | explicit KDebugDialog(const AreaMap& areaMap, QWidget *parent = 0); |
45 | virtual ~KDebugDialog(); |
46 | |
47 | void doLoad() {} |
48 | void doSave(); |
49 | |
50 | protected Q_SLOTS: |
51 | void slotDebugAreaChanged(QTreeWidgetItem*); |
52 | void slotDestinationChanged(); |
53 | void disableAllClicked(); |
54 | |
55 | private: |
56 | void showArea(const QString& areaName); |
57 | |
58 | QString mCurrentDebugArea; |
59 | |
60 | private: |
61 | // Disallow assignment and copy-construction |
62 | KDebugDialog( const KDebugDialog& ); |
63 | KDebugDialog& operator= ( const KDebugDialog& ); |
64 | }; |
65 | |
66 | #endif |
67 | |