]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiInfo.h
Fix completion in math when inline completion was not yet shown
[lyx.git] / src / frontends / qt / GuiInfo.h
1 // -*- C++ -*-
2 /**
3  * \file GuiInfo.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Abdelrazak Younes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUI_INFO_H
13 #define GUI_INFO_H
14
15 #include "InsetParamsWidget.h"
16 #include "insets/InsetInfo.h"
17 #include "ui_InfoUi.h"
18
19 namespace lyx {
20
21 class Inset;
22
23 namespace frontend {
24
25 class GuiInfo : public InsetParamsWidget, public Ui::InfoUi
26 {
27         Q_OBJECT
28
29 protected Q_SLOTS:
30         void updateArguments(int i);
31
32 public:
33         GuiInfo(QWidget * parent = 0);
34
35 private:
36         /// \name InsetParamsWidget inherited methods
37         //@{
38         InsetCode insetCode() const override { return INFO_CODE; }
39         FuncCode creationCode() const override { return LFUN_INFO_INSERT; }
40         QString dialogTitle() const override { return qt_("Field Settings"); }
41         void paramsToDialog(Inset const *) override;
42         docstring dialogToParams() const override;
43         bool initialiseParams(std::string const &) override;
44         bool checkWidgets(bool readonly) const override;
45         //@}
46         InsetInfoParams params_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // GUI_INFO_H