]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/FloatPlacement.h
'using namespace std' instead of 'using std::xxx'
[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
22 namespace lyx { class InsetFloatParams; }
23
24 class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
25         Q_OBJECT
26 public:
27         FloatPlacement(QWidget * parent = 0);
28
29         void useWide();
30         void useSideways();
31
32         void set(lyx::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
52 //} // namespace lyx
53
54 #endif