]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiNomenclature.h
Add accelerators
[lyx.git] / src / frontends / qt / GuiNomenclature.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 "ui_NomenclUi.h"
18
19 #include "InsetParamsWidget.h"
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiNomenclature : public InsetParamsWidget, public Ui::NomenclUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiNomenclature(QWidget * parent = 0);
30
31 private:
32         /// \name InsetParamsWidget inherited methods
33         //@{
34         InsetCode insetCode() const override { return NOMENCL_CODE; }
35         FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
36         QString dialogTitle() const override { return qt_("Nomenclature Settings"); }
37         void paramsToDialog(Inset const *) override;
38         docstring dialogToParams() const override;
39         bool checkWidgets(bool readonly) const override;
40         bool initialiseParams(std::string const &) override;
41         //@}
42 };
43
44 } // namespace frontend
45 } // namespace lyx
46
47 #endif // GUINOMENCLATURE_H