]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GTexinfo.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file GTexinfo.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 GTEXINFO_H
13 #define GTEXINFO_H
14
15 #include "ControlTexinfo.h"
16
17 #include "GViewBase.h"
18
19 #include <map>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GTexinfo
25         : public GViewCB<ControlTexinfo, GViewGladeB> {
26 public:
27
28         GTexinfo(Dialog &);
29 private:
30         // not needed
31         virtual void apply() {}
32         // Build the dialog.
33         virtual void doBuild();
34         // not needed
35         virtual void update() {}
36
37         void updateStyles();
38
39         ControlTexinfo::texFileSuffix activeStyle;
40
41         Gtk::TreeView * itemsview_;
42         Gtk::ComboBox * typecombo_;
43         Gtk::TreeModelColumn<Glib::ustring> listCol_;
44         Gtk::TreeModelColumn<unsigned int> listColIndex_;
45         Gtk::TreeModel::ColumnRecord listCols_;
46         Glib::RefPtr<Gtk::ListStore> itemsstore_;
47         Glib::RefPtr<Gtk::ListStore> typestore_;
48         Glib::RefPtr<Gtk::TreeSelection> listSel_;
49
50         Gtk::CheckButton * fullpathcheck_;
51
52         void onTypeComboChanged();
53         void onItemActivate(Gtk::TreeModel::Path const & path, Gtk::TreeViewColumn * col);
54         void onRefresh();
55
56         typedef std::vector<std::string> ContentsType;
57         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GTEXINFO_H