]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiNomencl.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiNomencl.h
1 // -*- C++ -*-
2 /**
3  * \file GuiNomencl.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 GUINOMENCL_H
15 #define GUINOMENCL_H
16
17 #include "GuiDialogView.h"
18 #include "ControlCommand.h"
19 #include "ui_NomenclUi.h"
20
21 #include <QDialog>
22
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiNomencl;
28
29 class GuiNomenclDialog : public QDialog, public Ui::NomenclUi
30 {
31         Q_OBJECT
32 public:
33         GuiNomenclDialog(GuiNomencl * form);
34         virtual void showView();
35 protected Q_SLOTS:
36         virtual void change_adaptor();
37         virtual void reject();
38 protected:
39         virtual void closeEvent(QCloseEvent * e);
40 private:
41         GuiNomencl * form_;
42 };
43
44
45 class GuiNomencl : public GuiView<GuiNomenclDialog>
46 {
47 public:
48         friend class GuiNomenclDialog;
49
50         GuiNomencl(GuiDialog &, docstring const & title);
51         /// parent controller
52         ControlCommand & controller()
53         { return static_cast<ControlCommand &>(this->getController()); }
54         /// parent controller
55         ControlCommand const & controller() const
56         { return static_cast<ControlCommand const &>(this->getController()); }
57 protected:
58         virtual bool isValid();
59 private:
60         /// Apply changes
61         virtual void applyView();
62         /// update
63         virtual void update_contents();
64         /// build the dialog
65         virtual void build_dialog();
66 };
67
68 } // namespace frontend
69 } // namespace lyx
70
71 #endif // GUINOMENCL_H