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