]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTexinfo.h
Also display the info about BibTeX databases in the TeX info panel.
[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  * \author Herbert Voß
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUITEXINFO_H
14 #define GUITEXINFO_H
15
16 #include "GuiDialog.h"
17 #include "ui_TexinfoUi.h"
18 #include "qt_helpers.h"
19
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi
25 {
26         Q_OBJECT
27
28 public:
29         ///
30         GuiTexInfo(GuiView & lv);
31         /// the file extensions. order matters in GuiTexInfo::fileType()
32         enum TexFileType { ClsType = 0, StyType, BstType, BibType, DummyLastType };
33
34 public Q_SLOTS:
35         ///
36         void updateView();
37
38 private Q_SLOTS:
39         ///
40         void change_adaptor();
41         ///
42         void rescanClicked();
43         ///
44         void viewClicked();
45         ///
46         void enableViewPB();
47
48 private:
49         /// Nothing to initialise in this case.
50         bool initialiseParams(std::string const &) { return true; }
51         ///
52         void clearParams() {}
53         ///
54         void dispatchParams() {}
55         ///
56         bool isBufferDependent() const { return false; }
57         ///
58         void apply() {}
59
60         ///
61         void updateStyles(TexFileType);
62         ///
63         void updateStyles();
64         ///
65         bool warningPosted_;
66         ///
67         TexFileType activeStyle_;
68
69         /// show contents af a file
70         void viewFile(QString const & filename) const;
71         /// show all classoptions
72         //std::string classOptions(std::string const & filename) const;
73
74         QStringList texdata_[DummyLastType];
75 };
76
77
78 } // namespace frontend
79 } // namespace lyx
80
81 #endif // GUITEXINFO_H