]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiErrorList.h
* fix spelling in comments to please John.
[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
37 private:
38         ///
39         void showEvent(QShowEvent *);
40         ///
41         void paramsToDialog();
42         ///
43         bool isBufferDependent() const { return true; }
44         ///
45         bool initialiseParams(std::string const & data);
46         ///
47         void clearParams() {}
48         ///
49         void dispatchParams() {}
50         ///
51         bool canApply() const { 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         /// the parent document name
61         docstring name_;
62         ///
63         bool from_master_;
64 };
65
66 } // namespace frontend
67 } // namespace lyx
68
69 #endif // GUIERRORLIST_H