]> git.lyx.org Git - features.git/blob - src/frontends/qt/GuiErrorList.h
Fix broken Apple speller interface
[features.git] / src / frontends / qt / 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 namespace lyx {
20 namespace frontend {
21
22 class GuiErrorList : public GuiDialog, public Ui::ErrorListUi
23 {
24         Q_OBJECT
25
26 public:
27         GuiErrorList(GuiView & lv);
28
29 public Q_SLOTS:
30         /// select an entry
31         void select();
32         /// open the LaTeX log
33         void viewLog();
34         /// show the output file despite compilation errors
35         void showAnyway();
36
37 private:
38         ///
39         void showEvent(QShowEvent *) override;
40         ///
41         void paramsToDialog();
42         ///
43         bool isBufferDependent() const override { return true; }
44         ///
45         bool initialiseParams(std::string const & data) override;
46         ///
47         void clearParams() override {}
48         ///
49         void dispatchParams() override {}
50         ///
51         bool canApply() const override { return true; }
52
53         /// goto this error in the parent bv. Returns success.
54         bool goTo(int item);
55         ///
56         ErrorList const & errorList() const;
57 private:
58         ///
59         std::string error_type_;
60         ///
61         mutable ErrorList error_list_;
62         ///
63         Buffer const * buf_;
64         /// the parent document name
65         docstring name_;
66         ///
67         bool from_master_;
68 };
69
70 } // namespace frontend
71 } // namespace lyx
72
73 #endif // GUIERRORLIST_H