]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GErrorList.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GErrorList.h
1 // -*- C++ -*-
2 /**
3  * \file GErrorList.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GERRORLIST_H
13 #define GERRORLIST_H
14
15 #include "GViewBase.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlErrorList;
21
22 /** This class provides a GTK+ implementation of the ErrorList Dialog.
23  */
24 class GErrorList : public GViewCB<ControlErrorList, GViewGladeB> {
25 public:
26         ///
27         GErrorList(Dialog &);
28 private:
29         /// not needed
30         virtual void apply() {}
31         /// Build the dialog
32         virtual void doBuild();
33         /// Update dialog before showing it
34         virtual void update();
35
36         void updateContents();
37         void onErrListSelection();
38
39         Gtk::TreeModelColumn<Glib::ustring> listCol_;
40         Gtk::TreeModelColumn<int> listColIndex_;
41         Gtk::TreeModel::ColumnRecord listCols_;
42
43         Glib::RefPtr<Gtk::ListStore> errliststore_;
44         Glib::RefPtr<Gtk::TreeSelection> errlistsel_;
45         Gtk::TreeView * errlistview_;
46
47         Gtk::TextView * errdescview_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // GERRORLIST_H