]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiVSpace.h
math stuff
[lyx.git] / src / frontends / qt4 / 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 "GuiDialog.h"
19 #include "ui_VSpaceUi.h"
20 #include "VSpace.h"
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiVSpace : public GuiDialog, public Ui::VSpaceUi, public Controller
26 {
27         Q_OBJECT
28
29 public:
30         GuiVSpace(LyXView & lv);
31
32 private Q_SLOTS:
33         ///
34         void change_adaptor();
35         ///
36         void closeEvent(QCloseEvent *);
37         ///
38         void enableCustom(int);
39
40 private:
41         /// parent controller
42         Controller & controller() { return *this; }
43         /// Apply from dialog
44         void applyView();
45         /// Update the dialog
46         void updateContents();
47         ///
48         bool initialiseParams(std::string const & data);
49         /// clean-up on hide.
50         void clearParams();
51         /// clean-up on hide.
52         void dispatchParams();
53         ///
54         bool isBufferDependent() const { return true; }
55         ///
56         bool inInset() const;
57
58         ///
59         VSpace params_;
60 };
61
62 } // namespace frontend
63 } // namespace lyx
64
65 #endif // GUIVSPACE_H