]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiTexinfo.h
renaming of some methods that hurt the eyes + removal of:
[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 QTEXINFO_H
13 #define QTEXINFO_H
14
15 #include "GuiDialogView.h"
16 #include "ControlTexinfo.h"
17 #include "ui_TexinfoUi.h"
18
19 #include <QDialog>
20
21 #include <map>
22 #include <vector>
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiTexinfo;
28
29 class GuiTexinfoDialog : public QDialog, public Ui::TexinfoUi
30 {
31         Q_OBJECT
32 public:
33         GuiTexinfoDialog(GuiTexinfo * form);
34 public Q_SLOTS:
35         virtual void updateView();
36 protected Q_SLOTS:
37         virtual void change_adaptor();
38         virtual void rescanClicked();
39         virtual void viewClicked();
40         virtual void enableViewPB();
41 protected:
42         virtual void closeEvent(QCloseEvent * e);
43 private:
44         GuiTexinfo * form_;
45 };
46
47
48 ///
49 class GuiTexinfo : public GuiView<GuiTexinfoDialog>
50 {
51 public:
52         ///
53         friend class GuiTexinfoDialog;
54         ///
55         GuiTexinfo(GuiDialog &);
56         /// parent controller
57         ControlTexinfo & controller()
58         { return static_cast<ControlTexinfo &>(this->getController()); }
59         /// parent controller
60         ControlTexinfo const & controller() const
61         { return static_cast<ControlTexinfo const &>(this->getController()); }
62 private:
63         /// Apply changes
64         virtual void applyView() {}
65         /// update (do we need this?)
66         virtual void update_contents() {}
67         /// build the dialog
68         virtual void build_dialog();
69         ///
70         void updateStyles(ControlTexinfo::texFileSuffix);
71         ///
72         void updateStyles();
73         ///
74         bool warningPosted;
75         ///
76         ControlTexinfo::texFileSuffix activeStyle;
77         ///
78         typedef std::vector<std::string> ContentsType;
79         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
80 };
81
82 } // namespace frontend
83 } // namespace lyx
84
85 #endif // QTEXINFO_H