]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiErrorList.h
rename buffer parameter math_number_before to math_numbering_side
[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();
34         /// open the LaTeX log
35         void viewLog();
36         /// show the output file despite compilation errors
37         void showAnyway();
38
39 private:
40         ///
41         void showEvent(QShowEvent *);
42         ///
43         void paramsToDialog();
44         ///
45         bool isBufferDependent() const { return true; }
46         ///
47         bool initialiseParams(std::string const & data);
48         ///
49         void clearParams() {}
50         ///
51         void dispatchParams() {}
52         ///
53         bool canApply() const { return true; }
54
55         /// goto this error in the parent bv. Returns success.
56         bool goTo(int item);
57         ///
58         ErrorList const & errorList() const;
59 private:
60         ///
61         std::string error_type_;
62         ///
63         mutable ErrorList error_list_;
64         ///
65         Buffer const * buf_;
66         /// the parent document name
67         docstring name_;
68         ///
69         bool from_master_;
70 };
71
72 } // namespace frontend
73 } // namespace lyx
74
75 #endif // GUIERRORLIST_H