]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiFloat.h
28049e5f40e7340d3e37487fa18d6995331df872
[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, public Controller
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         /// parent controller
36         Controller & controller() { return *this; }
37         /// Apply changes
38         void applyView();
39         /// update
40         void updateContents();
41         ///
42         bool initialiseParams(std::string const & data);
43         /// clean-up on hide.
44         void clearParams();
45         /// clean-up on hide.
46         void dispatchParams();
47         ///
48         bool isBufferDependent() const { return true; }
49
50 private:
51         ///
52         InsetFloatParams params_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUIFLOAT_H