File indexing completed on 2024-03-24 15:27:05

0001 /* This file is part of the KDE libraries
0002     Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
0003 
0004     This library is free software; you can redistribute it and/or
0005     modify it under the terms of the GNU Library General Public
0006     License as published by the Free Software Foundation; either
0007     version 2 of the License, or (at your option) any later version.
0008 
0009     This library is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012     Library General Public License for more details.
0013 
0014     You should have received a copy of the GNU Library General Public License
0015     along with this library; see the file COPYING.LIB.  If not, write to
0016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017     Boston, MA 02110-1301, USA.
0018 */
0019 #ifndef _KDEBUGDIALOG
0020 #define _KDEBUGDIALOG
0021 
0022 #include "kabstractdebugdialog.h"
0023 
0024 #include "ui_kdebugdialog.h"
0025 
0026 class QLineEdit;
0027 class QComboBox;
0028 class QLabel;
0029 class QGroupBox;
0030 class QCheckBox;
0031 
0032 /**
0033  * Control debug/warning/error/fatal output of KDE applications
0034  *
0035  * This dialog allows control of debugging output for all KDE apps.
0036  *
0037  * @author Kalle Dalheimer (kalle@kde.org)
0038  */
0039 class KDebugDialog : public KAbstractDebugDialog, public Ui_KDebugDialog
0040 {
0041     Q_OBJECT
0042 
0043 public:
0044     KDELIBS4SUPPORT_DEPRECATED explicit KDebugDialog(const AreaMap& areaMap, QWidget *parent = nullptr);
0045     ~KDebugDialog() override;
0046 
0047     void doLoad() override {}
0048     void doSave() override;
0049 
0050 protected Q_SLOTS:
0051     void slotDebugAreaChanged(QTreeWidgetItem*);
0052     void slotDestinationChanged();
0053     void disableAllClicked();
0054 
0055 private:
0056     void showArea(const QString& areaName);
0057 
0058     QString mCurrentDebugArea;
0059 
0060 private:
0061     // Disallow assignment and copy-construction
0062     KDebugDialog( const KDebugDialog& );
0063     KDebugDialog& operator= ( const KDebugDialog& );
0064 };
0065 
0066 #endif