]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiErrorList.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[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 "GuiDialog.h"
16 #include "ErrorList.h"
17 #include "ui_ErrorListUi.h"
18
19 class QListWidgetItem;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiErrorList : public GuiDialog, public Ui::ErrorListUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiErrorList(GuiView & lv);
30
31 public Q_SLOTS:
32         /// select an entry
33         void select(QListWidgetItem *);
34
35 private:
36         ///
37         void showEvent(QShowEvent *);
38         /// update contents
39         void updateContents();
40         ///
41         bool isBufferDependent() const { return true; }
42         ///
43         bool initialiseParams(std::string const & data);
44         ///
45         void clearParams() {}
46         ///
47         void dispatchParams() {}
48
49         /// goto this error in the parent bv
50         void goTo(int item);
51         ///
52         ErrorList const & errorList() const;
53 private:
54         ///
55         std::string error_type_;
56         /// the parent document name
57         docstring name_;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUIERRORLIST_H