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