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

0001 /* This file is part of the KDE libraries
0002     Copyright (C) 2000 David Faure <faure@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 
0020 #ifndef KABSTRACTDEBUGDIALOG__H
0021 #define KABSTRACTDEBUGDIALOG__H
0022 
0023 #include <kdialog.h>
0024 
0025 class QCheckBox;
0026 class KConfig;
0027 class QVBoxLayout;
0028 class KPushButton;
0029 
0030 class KAbstractDebugDialog : public KDialog
0031 {
0032     Q_OBJECT
0033 public:
0034     KDELIBS4SUPPORT_DEPRECATED explicit KAbstractDebugDialog(QWidget *parent);
0035 
0036     ~KAbstractDebugDialog() override;
0037 
0038     void buildButtons();
0039 
0040     void load();
0041     void save();
0042     virtual void doLoad() = 0;
0043     virtual void doSave() = 0;
0044     KConfig * config() { return pConfig; }
0045 
0046     typedef QMap<QString /*area name*/, QString /*description*/> AreaMap;
0047 
0048 protected Q_SLOTS:
0049     void slotShowHelp();
0050     void slotApply();
0051 
0052 protected:
0053     KConfig* pConfig;
0054     QCheckBox* m_disableAll;
0055 };
0056 
0057 #endif