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