]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTexinfo.h
On Linux show in crash message box the backtrace
[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 { ClsType = 0, StyType, BstType, BibType, DummyLastType };
32
33 public Q_SLOTS:
34         ///
35         void updateView();
36
37 private Q_SLOTS:
38         ///
39         void change_adaptor();
40         ///
41         void rescanClicked();
42         ///
43         void viewClicked();
44         ///
45         void enableViewPB();
46
47 private:
48         /// Nothing to initialise in this case.
49         bool initialiseParams(std::string const &) { return true; }
50         ///
51         void clearParams() {}
52         ///
53         void dispatchParams() {}
54         ///
55         bool isBufferDependent() const { return false; }
56         ///
57         void apply() {}
58
59         ///
60         void updateStyles(TexFileType);
61         ///
62         void updateStyles();
63         ///
64         bool warningPosted_;
65         ///
66         TexFileType activeStyle_;
67
68         /// show contents af a file
69         void viewFile(QString const & filename) const;
70         /// show all classoptions
71         //std::string classOptions(std::string const & filename) const;
72
73         QStringList texdata_[DummyLastType];
74 };
75
76
77 } // namespace frontend
78 } // namespace lyx
79
80 #endif // GUITEXINFO_H