]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/floatplacement.h
6782db52ee831ca025ff8950f6079fa3b44cdc1c
[lyx.git] / src / frontends / qt2 / 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 #include <qwidget.h>
14
15 class QCheckBox;
16 class QVBoxLayout;
17 class InsetFloatParams;
18
19 class FloatPlacement : public QWidget {
20         Q_OBJECT
21
22 public:
23         FloatPlacement(QWidget * parent, char * name);
24
25         void useWide();
26
27         void set(InsetFloatParams const & params);
28         void set(std::string const & placement);
29
30         std::string const get(bool & wide) const;
31         std::string const get() const;
32
33 public slots:
34         void tbhpClicked();
35         void heredefinitelyClicked();
36         void spanClicked();
37         void changedSlot();
38
39 signals:
40         void changed();
41
42 private:
43         QVBoxLayout * layout;
44
45         QCheckBox * defaultsCB;
46         QCheckBox * spanCB;
47         QCheckBox * ignoreCB;
48         QCheckBox * pageCB;
49         QCheckBox * heredefinitelyCB;
50         QCheckBox * herepossiblyCB;
51         QCheckBox * bottomCB;
52         QCheckBox * topCB;
53 };