]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/FloatPlacement.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / FloatPlacement.h
1 // -*- C++ -*-
2 /**
3  * \file FloatPlacement.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  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef FLOATPLACEMENT_H
14 #define FLOATPLACEMENT_H
15
16 #include "ui_FloatPlacementUi.h"
17 #include <QWidget>
18
19 #include <string>
20
21
22 namespace lyx {
23
24 class InsetFloatParams;
25
26 class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
27         Q_OBJECT
28 public:
29         FloatPlacement(QWidget * parent = 0);
30
31         void useWide();
32         void useSideways();
33
34         void set(lyx::InsetFloatParams const & params);
35         void set(std::string const & placement);
36         void checkAllowed();
37
38         std::string const get(bool & wide, bool & sideways) const;
39         std::string const get() const;
40
41 public Q_SLOTS:
42         void tbhpClicked();
43         void changedSlot();
44         void on_spanCB_clicked();
45         void on_heredefinitelyCB_clicked();
46         void on_sidewaysCB_clicked();
47
48 Q_SIGNALS:
49         void changed();
50
51 private:
52         /// one of figure or table?
53         bool standardfloat_;
54
55 };
56
57 } // namespace lyx
58
59 #endif // FLOATPLACEMENT_H