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"
20 class InsetCommandParams;
24 class GuiCounter : public InsetParamsWidget, public Ui::CounterUi
30 GuiCounter(GuiView & lv, QWidget * parent = nullptr);
33 /// \name InsetParamsWidget inherited methods
35 InsetCode insetCode() const { return COUNTER_CODE; }
36 FuncCode creationCode() const { return LFUN_INSET_INSERT; }
37 QString dialogTitle() const { return qt_("Counters"); }
38 void paramsToDialog(Inset const *);
39 docstring dialogToParams() const;
40 bool checkWidgets(bool readonly) const;
41 bool initialiseParams(std::string const & data);
43 void processParams(InsetCommandParams const & icp);
50 } // namespace frontend
53 #endif // GUICOUNTER_H