4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Richard Kimberly Heck
9 * Full author contact details are available in file CREDITS.
15 #include "InsetParamsWidget.h"
16 #include "ui_CounterUi.h"
19 class InsetCommandParams;
25 class GuiCounter : public InsetParamsWidget, public Ui::CounterUi
31 GuiCounter(GuiView & lv, QWidget * parent = nullptr);
34 /// \name InsetParamsWidget inherited methods
36 InsetCode insetCode() const override { return COUNTER_CODE; }
37 FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
38 QString dialogTitle() const override { return qt_("Counters"); }
39 void paramsToDialog(Inset const *) override;
40 docstring dialogToParams() const override;
41 bool checkWidgets(bool readonly) const override;
42 bool initialiseParams(std::string const & data) override;
44 void processParams(InsetCommandParams const & params);
51 } // namespace frontend
54 #endif // GUICOUNTER_H