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