File indexing completed on 2024-05-12 15:37:54

0001 /*
0002  *  This file is part of the KDE libraries
0003  *  Copyright (C) 2000-2001 Harri Porten (porten@kde.org)
0004  *  Copyright (C) 2001,2003 Peter Kelly (pmk@post.com)
0005  *
0006  *  This library is free software; you can redistribute it and/or
0007  *  modify it under the terms of the GNU Library General Public
0008  *  License as published by the Free Software Foundation; either
0009  *  version 2 of the License, or (at your option) any later version.
0010  *
0011  *  This library is distributed in the hope that it will be useful,
0012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  *  Library General Public License for more details.
0015  *
0016  *  You should have received a copy of the GNU Library General Public
0017  *  License along with this library; if not, write to the Free Software
0018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0019  */
0020 
0021 #ifndef ERROR_DLG_H
0022 #define ERROR_DLG_H
0023 
0024 #include <QString>
0025 #include <QCheckBox>
0026 #include <QWidget>
0027 #include <kdialog.h>
0028 
0029 namespace KJSDebugger
0030 {
0031 class KJSErrorDialog : public KDialog
0032 {
0033     Q_OBJECT
0034 public:
0035     KJSErrorDialog(QWidget *parent, const QString &errorMessage, bool showDebug);
0036     virtual ~KJSErrorDialog();
0037 
0038     bool debugSelected() const
0039     {
0040         return m_debugSelected;
0041     }
0042     bool dontShowAgain() const
0043     {
0044         return m_dontShowAgainCb->isChecked();
0045     }
0046 
0047 protected Q_SLOTS:
0048     virtual void slotUser1();
0049 
0050 private:
0051     QCheckBox *m_dontShowAgainCb;
0052     bool m_debugSelected;
0053 };
0054 }
0055 
0056 #endif
0057