]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiERT.h
Fix completion in math when inline completion was not yet shown
[lyx.git] / src / frontends / qt / GuiERT.h
1 // -*- C++ -*-
2 /**
3  * \file GuiERT.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  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIERT_H
13 #define GUIERT_H
14
15 #include "InsetParamsWidget.h"
16 #include "ui_ERTUi.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 class GuiERT : public InsetParamsWidget, public Ui::ERTUi
22 {
23         Q_OBJECT
24
25 public:
26         GuiERT(QWidget * parent = 0);
27
28 private:
29         /// \name InsetParamsWidget inherited methods
30         //@{
31         InsetCode insetCode() const override { return ERT_CODE; }
32         FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
33         QString dialogTitle() const override { return qt_("TeX Mode Inset Settings"); }
34         void paramsToDialog(Inset const *) override;
35         docstring dialogToParams() const override;
36         bool checkWidgets(bool readonly) const override;
37         //@}
38 };
39
40 } // namespace frontend
41 } // namespace lyx
42
43 #endif // GUIERT_H