]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiVSpace.h
Transfer some more dialog related code from core to frontend:
[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
26 {
27         Q_OBJECT
28
29 public:
30         GuiVSpace(GuiView & 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         /// Apply from dialog
42         void applyView();
43         /// Update the dialog
44         void updateContents();
45         ///
46         bool initialiseParams(std::string const & data);
47         /// clean-up on hide.
48         void clearParams();
49         /// clean-up on hide.
50         void dispatchParams();
51         ///
52         bool isBufferDependent() const { return true; }
53         ///
54         bool inInset() const;
55
56         ///
57         VSpace params_;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUIVSPACE_H