]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiHSpace.h
* fix spelling in comments to please John.
[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, bool math);
28
29 private Q_SLOTS:
30         ///
31         void change_adaptor();
32         ///
33         void enableWidgets(int);
34         ///
35         void patternChanged();
36
37 private:
38         ///
39         void setMath(bool custom);
40         /// Apply from dialog
41         void applyView();
42         /// Update the dialog
43         void updateContents();
44         ///
45         bool isValid();
46         ///
47         bool initialiseParams(std::string const & data);
48         /// clean-up on hide.
49         void clearParams();
50         /// clean-up on hide.
51         void dispatchParams();
52         ///
53         bool isBufferDependent() const { return true; }
54
55         ///
56         InsetSpaceParams params_;
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // GUIHSPACE_H