]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiFloat.h
rename a few view functions from foo() to fooView()
[lyx.git] / src / frontends / qt4 / GuiFloat.h
1 // -*- C++ -*-
2 /**
3  * \file GuiFloat.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIFLOAT_H
13 #define GUIFLOAT_H
14
15 #include "GuiDialogView.h"
16 #include "ui_FloatUi.h"
17 #include "ControlFloat.h"
18
19 #include <QDialog>
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiFloat;
25
26 class GuiFloatDialog : public QDialog, public Ui::FloatUi {
27         Q_OBJECT
28 public:
29         GuiFloatDialog(GuiFloat * form);
30
31 protected Q_SLOTS:
32         virtual void change_adaptor();
33
34 protected:
35         virtual void closeEvent(QCloseEvent * e);
36
37 private:
38         GuiFloat * form_;
39 };
40
41
42 ///
43 class GuiFloat : public GuiView<GuiFloatDialog> {
44 public:
45         ///
46         friend class GuiFloatDialog;
47         ///
48         GuiFloat(GuiDialog &);
49         /// parent controller
50         ControlFloat & controller()
51         { return static_cast<ControlFloat &>(this->getController()); }
52         /// parent controller
53         ControlFloat const & controller() const
54         { return static_cast<ControlFloat const &>(this->getController()); }
55 private:
56         /// Apply changes
57         virtual void applyView();
58         /// update
59         virtual void update_contents();
60         /// build the dialog
61         virtual void build_dialog();
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // GUIFLOAT_H