4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
9 * Full author contact details are available in file CREDITS.
15 #include "InsetParamsWidget.h"
16 #include "ui_HSpaceUi.h"
21 class GuiHSpace : public InsetParamsWidget, public Ui::HSpaceUi
26 GuiHSpace(bool math_mode, QWidget * parent = 0);
32 void enableWidgets() const;
35 /// \name InsetParamsWidget inherited methods
37 InsetCode insetCode() const { return math_mode_ ? MATH_SPACE_CODE : SPACE_CODE; }
38 FuncCode creationCode() const { return LFUN_INSET_INSERT; }
39 QString dialogTitle() const { return qt_("Horizontal Space Settings"); }
40 void paramsToDialog(Inset const *);
41 docstring dialogToParams() const;
42 bool checkWidgets(bool readonly) const;
45 bool const math_mode_;
48 } // namespace frontend