]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QVSpace.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[lyx.git] / src / frontends / qt4 / QVSpace.h
1 // -*- C++ -*-
2 /**
3  * \file QVSpace.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 "QDialogView.h"
18
19 #include "ui/VSpaceUi.h"
20
21 #include <QDialog>
22
23 class QCloseEvent;
24
25 namespace lyx {
26 namespace frontend {
27
28 class ControlVSpace;
29
30 class QVSpace;
31
32
33 class QVSpaceDialog : public QDialog, public Ui::QVSpaceUi {
34         Q_OBJECT
35
36 public:
37         QVSpaceDialog(QVSpace * form);
38
39 public Q_SLOTS:
40         void change_adaptor();
41
42 protected Q_SLOTS:
43         void closeEvent(QCloseEvent *);
44         void enableCustom(int);
45
46 private:
47         QVSpace * form_;
48 };
49
50
51
52 class QVSpace
53         : public QController<ControlVSpace, QView<QVSpaceDialog> >
54 {
55 public:
56         ///
57         friend class QVSpaceDialog;
58         ///
59         QVSpace(Dialog &);
60 private:
61         /// Build the dialog
62         virtual void build_dialog();
63         /// Apply from dialog
64         virtual void apply();
65         /// Update the dialog
66         virtual void update_contents();
67 };
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif //QVSPACE_H