KHtml

errordlg.h
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2000-2001 Harri Porten ([email protected])
4  * Copyright (C) 2001,2003 Peter Kelly ([email protected])
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef ERROR_DLG_H
22 #define ERROR_DLG_H
23 
24 #include <QString>
25 #include <QCheckBox>
26 #include <QWidget>
27 #include <kdialog.h>
28 
29 namespace KJSDebugger
30 {
31 class KJSErrorDialog : public KDialog
32 {
33  Q_OBJECT
34 public:
35  KJSErrorDialog(QWidget *parent, const QString &errorMessage, bool showDebug);
36  virtual ~KJSErrorDialog();
37 
38  bool debugSelected() const
39  {
40  return m_debugSelected;
41  }
42  bool dontShowAgain() const
43  {
44  return m_dontShowAgainCb->isChecked();
45  }
46 
47 protected Q_SLOTS:
48  virtual void slotUser1();
49 
50 private:
51  QCheckBox *m_dontShowAgainCb;
52  bool m_debugSelected;
53 };
54 }
55 
56 #endif
57 
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.