]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiErrorList.h
* Pop up error dialog if issuing master-buffer-[view|update] and errors occured.
[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
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         bool canApply() const { return true; }
50
51         /// goto this error in the parent bv. Returns success.
52         bool goTo(int item);
53         ///
54         ErrorList const & errorList() const;
55 private:
56         ///
57         std::string error_type_;
58         /// the parent document name
59         docstring name_;
60         ///
61         bool from_master_;
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // GUIERRORLIST_H