]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiLabel.h
Fix completion in math when inline completion was not yet shown
[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 };
42
43 } // namespace frontend
44 } // namespace lyx
45
46 #endif // GUILABEL_H