]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QTexinfo.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file QTexinfo.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QTEXINFO_H
13 #define QTEXINFO_H
14
15 #include "QDialogView.h"
16 #include "ControlTexinfo.h"
17
18 #include <map>
19 #include <vector>
20
21 namespace lyx {
22 namespace frontend {
23
24 class QTexinfoDialog;
25
26 ///
27 class QTexinfo
28          : public QController<ControlTexinfo, QView<QTexinfoDialog> > {
29 public:
30         ///
31         friend class QTexinfoDialog;
32         ///
33         QTexinfo(Dialog &);
34 private:
35         /// Apply changes
36         virtual void apply() {}
37         /// update (do we need this?)
38         virtual void update_contents() {}
39         /// build the dialog
40         virtual void build_dialog();
41         ///
42         void updateStyles(ControlTexinfo::texFileSuffix);
43         ///
44         void updateStyles();
45         ///
46         bool warningPosted;
47         ///
48         ControlTexinfo::texFileSuffix activeStyle;
49         ///
50         typedef std::vector<std::string> ContentsType;
51         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
52 };
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #endif // QTEXINFO_H