]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/floatplacement.h
remove qPixmapFromMimeSource. This caused the inclusion of Qt3 support headers which...
[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
18 #include <string>
19
20 class QCheckBox;
21 class QVBoxLayout;
22 class InsetFloatParams;
23
24 class FloatPlacement : public QWidget {
25         Q_OBJECT
26
27 public:
28         FloatPlacement(QWidget * parent=0);
29
30         void useWide();
31         void useSideways();
32
33         void set(InsetFloatParams const & params);
34         void set(std::string const & placement);
35         void checkAllowed();
36
37         std::string const get(bool & wide, bool & sideways) const;
38         std::string const get() const;
39
40 public Q_SLOTS:
41         void tbhpClicked();
42         void heredefinitelyClicked();
43         void spanClicked();
44         void sidewaysClicked();
45         void changedSlot();
46
47 Q_SIGNALS:
48         void changed();
49
50 private:
51         QVBoxLayout * layout;
52
53         QCheckBox * defaultsCB;
54         QCheckBox * spanCB;
55         QCheckBox * sidewaysCB;
56         QCheckBox * ignoreCB;
57         QCheckBox * pageCB;
58         QCheckBox * heredefinitelyCB;
59         QCheckBox * herepossiblyCB;
60         QCheckBox * bottomCB;
61         QCheckBox * topCB;
62 };
63
64 #endif