]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiLabel.h
Import Additional from 2.4.x
[lyx.git] / src / frontends / qt / GuiLabel.h
1 // -*- C++ -*-
2 /**
3  * \file GuiLabel.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  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUILABEL_H
14 #define GUILABEL_H
15
16 #include "ui_LabelUi.h"
17
18 #include "InsetParamsWidget.h"
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiLabel : public InsetParamsWidget, public Ui::LabelUi
24 {
25         Q_OBJECT
26
27 public:
28         GuiLabel(QWidget * parent = 0);
29
30 private:
31         /// \name InsetParamsWidget inherited methods
32         //@{
33         InsetCode insetCode() const override { return LABEL_CODE; }
34         FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
35         QString dialogTitle() const override { return qt_("Label Settings"); }
36         void paramsToDialog(Inset const *) override;
37         docstring dialogToParams() const override;
38         bool checkWidgets(bool readonly) const override;
39         bool initialiseParams(std::string const &) override;
40         ///
41         void setKeyword(QString const & keyword);
42         //@}
43 };
44
45 } // namespace frontend
46 } // namespace lyx
47
48 #endif // GUILABEL_H