]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiVSpace.h
Few string fixes from Dan.
[lyx.git] / src / frontends / qt / GuiVSpace.h
1 // -*- C++ -*-
2 /**
3  * \file GuiVSpace.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  * \author Angus Leeming
9  * \author Jürgen Spitzmüller
10  * \author Edwin Leuven
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef GUIVSPACE_H
16 #define GUIVSPACE_H
17
18 #include "InsetParamsWidget.h"
19 #include "ui_VSpaceUi.h"
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiVSpace : public InsetParamsWidget, public Ui::VSpaceUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiVSpace(QWidget * parent = 0);
30
31 private Q_SLOTS:
32         ///
33         void enableCustom(int);
34
35 private:
36         /// \name InsetParamsWidget inherited methods
37         //@{
38         InsetCode insetCode() const override { return VSPACE_CODE; }
39         FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
40         QString dialogTitle() const override { return qt_("Vertical Space Settings"); }
41         void paramsToDialog(Inset const *) override;
42         docstring dialogToParams() const override;
43         bool checkWidgets(bool readonly) const override;
44         //@}
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GUIVSPACE_H