1 /*
2     SPDX-FileCopyrightText: 2003-2008 Cies Breijs <cies AT kde DOT nl>
3 
4     SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef _ERRORDIALOG_H_
8 #define _ERRORDIALOG_H_
9 
10 #include <QDialog>
11 
12 #include "interpreter/errormsg.h"
13 
14 class QDialogButtonBox;
15 class QLabel;
16 class QSpacerItem;
17 class QTableWidget;
18 class QVBoxLayout;
19 
20 
21 class ErrorDialog : public QDialog
22 {
23 	Q_OBJECT
24 
25 	public:
26         explicit ErrorDialog(QWidget* parent = nullptr);
27 
28 		void setErrorList(ErrorList*);
29 		void clear();
30 
31 	Q_SIGNALS:
32 		void currentlySelectedError(int, int, int, int);
33 
34 	public Q_SLOTS:
35 		void enable();
36 		void disable();
37 
38 	private Q_SLOTS:
39 		void selectedErrorChangedProxy();
40 		void helpRequested();
41 
42 	private:
43 		ErrorList      *errorList;
44 		QTableWidget   *errorTable;
45 		QVBoxLayout    *baseLayout;
46 		QLabel         *label;
47 		QSpacerItem    *spacer;
48 		QDialogButtonBox *m_buttonBox;
49 };
50 
51 #endif  // _ERRORDIALOG_H_
52 
53