]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QTexinfo.h
delete unneeded Menubar virtual interface.
[lyx.git] / src / frontends / qt4 / QTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file QTexinfo.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 "QDialogView.h"
16
17 #include "ControlTexinfo.h"
18 #include "ui_TexinfoUi.h"
19
20 #include <QDialog>
21 #include <QCloseEvent>
22
23 #include <map>
24 #include <vector>
25
26 namespace lyx {
27 namespace frontend {
28
29 class QTexinfo;
30
31 class QTexinfoDialog : public QDialog, public Ui::QTexinfoUi {
32         Q_OBJECT
33 public:
34         QTexinfoDialog(QTexinfo * form);
35 public Q_SLOTS:
36         virtual void update();
37 protected Q_SLOTS:
38         virtual void change_adaptor();
39         virtual void rescanClicked();
40         virtual void viewClicked();
41         virtual void enableViewPB();
42 protected:
43         virtual void closeEvent(QCloseEvent * e);
44 private:
45         QTexinfo * form_;
46 };
47
48
49 ///
50 class QTexinfo
51          : public QController<ControlTexinfo, QView<QTexinfoDialog> > {
52 public:
53         ///
54         friend class QTexinfoDialog;
55         ///
56         QTexinfo(Dialog &);
57 private:
58         /// Apply changes
59         virtual void apply() {}
60         /// update (do we need this?)
61         virtual void update_contents() {}
62         /// build the dialog
63         virtual void build_dialog();
64         ///
65         void updateStyles(ControlTexinfo::texFileSuffix);
66         ///
67         void updateStyles();
68         ///
69         bool warningPosted;
70         ///
71         ControlTexinfo::texFileSuffix activeStyle;
72         ///
73         typedef std::vector<std::string> ContentsType;
74         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
75 };
76
77 } // namespace frontend
78 } // namespace lyx
79
80 #endif // QTEXINFO_H