]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiHSpace.h
Make the InsetInfo dialog a bit less esoteric.
[lyx.git] / src / frontends / qt4 / GuiHSpace.h
1 // -*- C++ -*-
2 /**
3  * \file GuiHSpace.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIHSPACE_H
13 #define GUIHSPACE_H
14
15 #include "InsetParamsWidget.h"
16 #include "ui_HSpaceUi.h"
17
18 namespace lyx {
19 namespace frontend {
20
21 class GuiHSpace : public InsetParamsWidget, public Ui::HSpaceUi
22 {
23         Q_OBJECT
24
25 public:
26         GuiHSpace(bool math_mode, QWidget * parent = 0);
27
28 private Q_SLOTS:
29         ///
30         void changedSlot();
31         ///
32         void enableWidgets() const;
33
34 private:
35         /// \name InsetParamsWidget inherited methods
36         //@{
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;
43         //@}
44         ///
45         bool const math_mode_;
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // GUIHSPACE_H