]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiNomencl.h
merge GuiCommand into its users.
[lyx.git] / src / frontends / qt4 / GuiNomencl.h
1 // -*- C++ -*-
2 /**
3  * \file GuiNomenclature.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 GUINOMENCLATURE_H
15 #define GUINOMENCLATURE_H
16
17 #include "GuiDialog.h"
18 #include "ui_NomenclUi.h"
19
20 #include "insets/InsetCommandParams.h"
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiNomenclature : public GuiDialog, public Ui::NomenclUi
26 {
27         Q_OBJECT
28
29 public:
30         GuiNomenclature(GuiView & lv);
31
32 private Q_SLOTS:
33         void change_adaptor();
34         void reject();
35
36 private:
37         ///
38         bool isValid();
39         /// Apply changes
40         void applyView();
41         /// update
42         void updateContents();
43         ///
44         bool initialiseParams(std::string const & data);
45         /// clean-up on hide.
46         void clearParams() { params_.clear(); }
47         /// clean-up on hide.
48         void dispatchParams();
49         ///
50         bool isBufferDependent() const { return true; }
51
52 private:
53         ///
54         InsetCommandParams params_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GUINOMENCLATURE_H