]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiFloat.h
move Controller inheritance further up the tree
[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 "GuiDialog.h"
16 #include "ui_FloatUi.h"
17 #include "insets/InsetFloat.h"
18
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiFloat : public GuiDialog, public Ui::FloatUi
24 {
25         Q_OBJECT
26
27 public:
28         GuiFloat(LyXView & lv);
29
30 private Q_SLOTS:
31         void change_adaptor();
32
33 private:
34         void closeEvent(QCloseEvent * e);
35         /// Apply changes
36         void applyView();
37         /// update
38         void updateContents();
39         ///
40         bool initialiseParams(std::string const & data);
41         /// clean-up on hide.
42         void clearParams();
43         /// clean-up on hide.
44         void dispatchParams();
45         ///
46         bool isBufferDependent() const { return true; }
47
48 private:
49         ///
50         InsetFloatParams params_;
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // GUIFLOAT_H