]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QErrorList.h
more dialog merging
[lyx.git] / src / frontends / qt4 / QErrorList.h
1 // -*- C++ -*-
2 /**
3  * \file QErrorList.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 QERRORLIST_H
13 #define QERRORLIST_H
14
15 #include "QDialogView.h"
16 #include "ui/ErrorListUi.h"
17
18 #include <QDialog>
19
20 class QListWidgetItem;
21 class QCloseEvent;
22 class QShowEvent;
23
24 namespace lyx {
25 namespace frontend {
26
27 class QErrorList;
28
29 class QErrorListDialog : public QDialog, public Ui::QErrorListUi {
30         Q_OBJECT
31 public:
32         QErrorListDialog(QErrorList * form);
33
34 public Q_SLOTS:
35         void select_adaptor(QListWidgetItem *);
36 protected:
37         void closeEvent(QCloseEvent *);
38         void showEvent(QShowEvent *);
39 private:
40         QErrorList * form_;
41 };
42
43
44 class ControlErrorList;
45
46 class QErrorList :
47         public QController<ControlErrorList, QView<QErrorListDialog> >
48 {
49 public:
50         friend class QErrorListDialog;
51
52         QErrorList(Dialog &);
53 private:
54         /// select an entry
55         void select(QListWidgetItem *);
56         /// required apply
57         virtual void apply() {}
58         /// build dialog
59         virtual void build_dialog();
60         /// update contents
61         virtual void update_contents();
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // QERRORLIST_H