]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/floatplacement.h
Qt compilation fixes.
[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 #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
28         void set(InsetFloatParams const & params);
29         void set(std::string const & placement);
30
31         std::string const get(bool & wide) const;
32         std::string const get() const;
33
34 public slots:
35         void tbhpClicked();
36         void heredefinitelyClicked();
37         void spanClicked();
38         void changedSlot();
39
40 signals:
41         void changed();
42
43 private:
44         QVBoxLayout * layout;
45
46         QCheckBox * defaultsCB;
47         QCheckBox * spanCB;
48         QCheckBox * ignoreCB;
49         QCheckBox * pageCB;
50         QCheckBox * heredefinitelyCB;
51         QCheckBox * herepossiblyCB;
52         QCheckBox * bottomCB;
53         QCheckBox * topCB;
54 };