]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QNomencl.h
delete unneeded Menubar virtual interface.
[lyx.git] / src / frontends / qt4 / QNomencl.h
1 // -*- C++ -*-
2 /**
3  * \file QNomencl.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  * \author O. U. Baran
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef QNOMENCL_H
15 #define QNOMENCL_H
16
17 #include "QDialogView.h"
18 #include "ui_NomenclUi.h"
19
20 #include <QDialog>
21
22 class QCloseEvent;
23
24
25 namespace lyx {
26 namespace frontend {
27
28 class QNomencl;
29
30 class QNomenclDialog : public QDialog, public Ui::QNomenclUi {
31         Q_OBJECT
32 public:
33         QNomenclDialog(QNomencl * form);
34         virtual void show();
35 protected Q_SLOTS:
36         virtual void change_adaptor();
37         virtual void reject();
38 protected:
39         virtual void closeEvent(QCloseEvent * e);
40 private:
41         QNomencl * form_;
42 };
43
44
45 class ControlCommand;
46
47 class QNomencl :
48         public QController<ControlCommand, QView<QNomenclDialog> >
49 {
50 public:
51         friend class QNomenclDialog;
52
53         QNomencl(Dialog &, docstring const & title);
54 protected:
55         virtual bool isValid();
56 private:
57         /// Apply changes
58         virtual void apply();
59         /// update
60         virtual void update_contents();
61         /// build the dialog
62         virtual void build_dialog();
63 };
64
65 } // namespace frontend
66 } // namespace lyx
67
68 #endif // QNOMENCL_H