]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTexinfo.h
Disable CheckTeX while buffer is processed
[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
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiTexInfo : public GuiDialog, public Ui::TexinfoUi
24 {
25         Q_OBJECT
26
27 public:
28         ///
29         GuiTexInfo(GuiView & lv);
30         /// the file extensions. order matters in GuiTexInfo::fileType()
31         enum TexFileType {
32                 ClsType = 0,
33                 StyType,
34                 BstType,
35                 BibType,
36                 BbxType,
37                 CbxType,
38                 DummyLastType
39         };
40
41 public Q_SLOTS:
42         ///
43         void updateView();
44
45 private Q_SLOTS:
46         ///
47         void change_adaptor();
48         ///
49         void rescanClicked();
50         ///
51         void viewClicked();
52         ///
53         void enableViewPB();
54
55 private:
56         /// Nothing to initialise in this case.
57         bool initialiseParams(std::string const &) { return true; }
58         ///
59         void clearParams() {}
60         ///
61         void dispatchParams() {}
62         ///
63         bool isBufferDependent() const { return false; }
64         ///
65         void apply() {}
66
67         ///
68         void updateStyles(TexFileType);
69         ///
70         void updateStyles();
71         ///
72         bool warningPosted_;
73         ///
74         TexFileType activeStyle_;
75
76         /// show contents af a file
77         void viewFile(QString const & filename) const;
78         /// show all classoptions
79         //std::string classOptions(std::string const & filename) const;
80
81         QStringList texdata_[DummyLastType];
82 };
83
84
85 } // namespace frontend
86 } // namespace lyx
87
88 #endif // GUITEXINFO_H