]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTexinfo.h
This is the last of a series of patches that merges the layout modules development...
[lyx.git] / src / frontends / qt4 / GuiTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file GuiTexinfo.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 GUITEXINFO_H
13 #define GUITEXINFO_H
14
15 #include "GuiDialog.h"
16 #include "ControlTexinfo.h"
17 #include "ui_TexinfoUi.h"
18
19 #include <map>
20 #include <vector>
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiTexinfoDialog : public GuiDialog, public Ui::TexinfoUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiTexinfoDialog(LyXView & lv);
31
32 public Q_SLOTS:
33         void updateView();
34
35 private Q_SLOTS:
36         void change_adaptor();
37         void rescanClicked();
38         void viewClicked();
39         void enableViewPB();
40
41 private:
42         ///
43         void closeEvent(QCloseEvent * e);
44         ///
45         ControlTexinfo & controller();
46         ///
47         void updateStyles(ControlTexinfo::texFileSuffix);
48         ///
49         void updateStyles();
50         ///
51         bool warningPosted;
52         ///
53         ControlTexinfo::texFileSuffix activeStyle;
54         ///
55         typedef std::vector<std::string> ContentsType;
56         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUITEXINFO_H