]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiNomencl.h
Whitespace.
[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         ///
46         void paramsToDialog(InsetCommandParams const & icp);
47         /// clean-up on hide.
48         void clearParams() { params_.clear(); }
49         /// clean-up on hide.
50         void dispatchParams();
51         ///
52         bool isBufferDependent() const { return true; }
53
54 private:
55         ///
56         InsetCommandParams params_;
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUINOMENCLATURE_H