kde-workspace/kcontrol/kdebug/kdebugconfig.h

76 lines
1.9 KiB
C
Raw Normal View History

2014-11-15 04:16:00 +02:00
/* This file is part of the KDE libraries
Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef _KDEBUGDIALOG
#define _KDEBUGDIALOG
2014-12-19 23:41:56 +00:00
#include <kcmodule.h>
2014-11-15 04:16:00 +02:00
2014-12-19 23:41:56 +00:00
#include "ui_kdebug.h"
2014-11-15 04:16:00 +02:00
class QLineEdit;
class QComboBox;
class QLabel;
class QGroupBox;
class QCheckBox;
2014-12-19 23:41:56 +00:00
class QVBoxLayout;
class KConfig;
class KPushButton;
2014-11-15 04:16:00 +02:00
/**
* Control debug/warning/error/fatal output of KDE applications
*
* This dialog allows control of debugging output for all KDE apps.
*
* @author Kalle Dalheimer (kalle@kde.org)
*/
2014-12-19 23:41:56 +00:00
class KCMDebug : public KCModule, public Ui_KDebugDialog
2014-11-15 04:16:00 +02:00
{
Q_OBJECT
public:
2014-12-19 23:41:56 +00:00
KCMDebug( QWidget* parent, const QVariantList& );
~KCMDebug();
2014-11-15 04:16:00 +02:00
2014-12-19 23:41:56 +00:00
virtual void load();
virtual void save();
virtual void defaults();
2014-11-15 04:16:00 +02:00
protected Q_SLOTS:
2014-12-19 23:41:56 +00:00
void slotDisableAllChanged();
2014-11-15 04:16:00 +02:00
void slotDebugAreaChanged(QTreeWidgetItem*);
void slotDestinationChanged();
2014-12-19 23:41:56 +00:00
void slotAbortFatalChanged();
void slotApply();
2014-11-15 04:16:00 +02:00
private:
void showArea(const QString& areaName);
2014-12-19 23:41:56 +00:00
void readAreas();
2014-11-15 04:16:00 +02:00
QString mCurrentDebugArea;
2014-12-19 23:41:56 +00:00
QMap<QString /*area name*/, QString /*description*/> mAreaMap;
protected:
KConfig* pConfig;
QCheckBox* m_disableAll;
2014-11-15 04:16:00 +02:00
};
#endif