File indexing completed on 2024-04-14 03:43:56
0001 /* 0002 SPDX-FileCopyrightText: 2003-2008 Cies Breijs <cies AT kde DOT nl> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _ERRORDIALOG_H_ 0008 #define _ERRORDIALOG_H_ 0009 0010 #include <QDialog> 0011 0012 #include "interpreter/errormsg.h" 0013 0014 class QDialogButtonBox; 0015 class QLabel; 0016 class QSpacerItem; 0017 class QTableWidget; 0018 class QVBoxLayout; 0019 0020 0021 class ErrorDialog : public QDialog 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit ErrorDialog(QWidget* parent = nullptr); 0027 0028 void setErrorList(ErrorList*); 0029 void clear(); 0030 0031 Q_SIGNALS: 0032 void currentlySelectedError(int, int, int, int); 0033 0034 public Q_SLOTS: 0035 void enable(); 0036 void disable(); 0037 0038 private Q_SLOTS: 0039 void selectedErrorChangedProxy(); 0040 void helpRequested(); 0041 0042 private: 0043 ErrorList *errorList; 0044 QTableWidget *errorTable; 0045 QVBoxLayout *baseLayout; 0046 QLabel *label; 0047 QSpacerItem *spacer; 0048 QDialogButtonBox *m_buttonBox; 0049 }; 0050 0051 #endif // _ERRORDIALOG_H_ 0052