]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiHSpace.h
*** File Format Change: UI and enhancement for InsetSpace ***
[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 "GuiDialog.h"
16 #include "ui_HSpaceUi.h"
17 #include "insets/InsetSpace.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiHSpace : public GuiDialog, public Ui::HSpaceUi
23 {
24         Q_OBJECT
25
26 public:
27         GuiHSpace(GuiView & lv);
28
29 private Q_SLOTS:
30         ///
31         void change_adaptor();
32         ///
33         void enableWidgets(int);
34
35 private:
36         /// Apply from dialog
37         void applyView();
38         /// Update the dialog
39         void updateContents();
40         ///
41         bool isValid();
42         ///
43         bool initialiseParams(std::string const & data);
44         /// clean-up on hide.
45         void clearParams();
46         /// clean-up on hide.
47         void dispatchParams();
48         ///
49         bool isBufferDependent() const { return true; }
50         ///
51         bool inInset() const;
52
53         ///
54         InsetSpaceParams params_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GUIHSPACE_H