]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiErrorList.h
rename a few view functions from foo() to fooView()
[lyx.git] / src / frontends / qt4 / GuiErrorList.h
1 // -*- C++ -*-
2 /**
3  * \file GuiErrorList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alfredo Braunstein
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIERRORLIST_H
13 #define GUIERRORLIST_H
14
15 #include "GuiDialogView.h"
16 #include "ControlErrorList.h"
17 #include "ui_ErrorListUi.h"
18
19 #include <QDialog>
20
21 class QListWidgetItem;
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiErrorList;
27
28 class GuiErrorListDialog : public QDialog, public Ui::ErrorListUi {
29         Q_OBJECT
30 public:
31         GuiErrorListDialog(GuiErrorList * form);
32
33 public Q_SLOTS:
34         void select_adaptor(QListWidgetItem *);
35 protected:
36         void closeEvent(QCloseEvent *);
37         void showEvent(QShowEvent *);
38 private:
39         GuiErrorList * form_;
40 };
41
42
43 class GuiErrorList : public GuiView<GuiErrorListDialog>
44 {
45 public:
46         friend class GuiErrorListDialog;
47
48         GuiErrorList(GuiDialog &);
49         /// parent controller
50         ControlErrorList & controller()
51         { return static_cast<ControlErrorList &>(this->getController()); }
52         /// parent controller
53         ControlErrorList const & controller() const
54         { return static_cast<ControlErrorList const &>(this->getController()); }
55 private:
56         /// select an entry
57         void select(QListWidgetItem *);
58         /// required apply
59         virtual void applyView() {}
60         /// build dialog
61         virtual void build_dialog();
62         /// update contents
63         virtual void update_contents();
64 };
65
66 } // namespace frontend
67 } // namespace lyx
68
69 #endif // GUIERRORLIST_H