]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/floatplacement.h
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / floatplacement.h
1 /**
2  * \file floatplacement.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Edwin Leuven
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #include <config.h>
13
14 #include "LString.h"
15
16 #include <qwidget.h>
17
18 class QCheckBox;
19 class QVBoxLayout;
20 class InsetFloatParams;
21
22 class FloatPlacement : public QWidget {
23         Q_OBJECT
24
25 public:
26         FloatPlacement(QWidget * parent, char * name);
27
28         void useWide();
29
30         void set(InsetFloatParams const & params);
31         void set(string const & placement);
32
33         string const get(bool & wide) const;
34         string const get() const;
35
36 public slots:
37         void tbhpClicked();
38         void heredefinitelyClicked();
39         void spanClicked();
40         void changedSlot();
41
42 signals:
43         void changed();
44
45 private:
46         QVBoxLayout * layout;
47
48         QCheckBox * defaultsCB;
49         QCheckBox * spanCB;
50         QCheckBox * ignoreCB;
51         QCheckBox * pageCB;
52         QCheckBox * heredefinitelyCB;
53         QCheckBox * herepossiblyCB;
54         QCheckBox * bottomCB;
55         QCheckBox * topCB;
56 };