]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiVSpace.h
163ee1eb7808afc8039e3b221f7c69ce84034d59
[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  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef QVSPACE_H
15 #define QVSPACE_H
16
17 #include "GuiDialogView.h"
18 #include "ControlVSpace.h"
19 #include "ui_VSpaceUi.h"
20
21 #include <QDialog>
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiVSpace;
27
28 class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi
29 {
30         Q_OBJECT
31
32 public:
33         GuiVSpaceDialog(GuiVSpace * form);
34
35 public Q_SLOTS:
36         void change_adaptor();
37
38 protected Q_SLOTS:
39         void closeEvent(QCloseEvent *);
40         void enableCustom(int);
41
42 private:
43         GuiVSpace * form_;
44 };
45
46
47 class GuiVSpace : public GuiView<GuiVSpaceDialog>
48 {
49 public:
50         ///
51         friend class GuiVSpaceDialog;
52         ///
53         GuiVSpace(GuiDialog &);
54         /// parent controller
55         ControlVSpace & controller()
56         { return static_cast<ControlVSpace &>(this->getController()); }
57         /// parent controller
58         ControlVSpace const & controller() const
59         { return static_cast<ControlVSpace const &>(this->getController()); }
60 private:
61         /// Build the dialog
62         virtual void build_dialog();
63         /// Apply from dialog
64         virtual void applyView();
65         /// Update the dialog
66         virtual void update_contents();
67 };
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif //QVSPACE_H