]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/FloatPlacement.h
Patch 1 Log:
[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 "ui/FloatPlacementUi.h"
17 #include <QWidget>
18
19 #include <string>
20
21 class InsetFloatParams;
22
23 class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
24         Q_OBJECT
25 public:
26         FloatPlacement(QWidget * parent = 0);
27         ~FloatPlacement();
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 Q_SLOTS:
40         void tbhpClicked();
41         void changedSlot();
42         void on_spanCB_clicked();
43         void on_heredefinitelyCB_clicked();
44         void on_sidewaysCB_clicked();
45
46 Q_SIGNALS:
47         void changed();
48
49 };
50
51 #endif