4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alfredo Braunstein
9 * Full author contact details are available in file CREDITS.
12 #ifndef GUIERRORLIST_H
13 #define GUIERRORLIST_H
15 #include "GuiDialogView.h"
16 #include "ControlErrorList.h"
17 #include "ui_ErrorListUi.h"
21 class QListWidgetItem;
28 class GuiErrorListDialog : public QDialog, public Ui::ErrorListUi {
31 GuiErrorListDialog(GuiErrorList * form);
34 void select_adaptor(QListWidgetItem *);
36 void closeEvent(QCloseEvent *);
37 void showEvent(QShowEvent *);
43 class GuiErrorList : public GuiView<GuiErrorListDialog>
46 friend class GuiErrorListDialog;
48 GuiErrorList(GuiDialog &);
50 ControlErrorList & controller()
51 { return static_cast<ControlErrorList &>(this->getController()); }
53 ControlErrorList const & controller() const
54 { return static_cast<ControlErrorList const &>(this->getController()); }
57 void select(QListWidgetItem *);
59 virtual void apply() {}
61 virtual void build_dialog();
63 virtual void update_contents();
66 } // namespace frontend
69 #endif // GUIERRORLIST_H