mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
57 lines
1019 B
C
57 lines
1019 B
C
|
/**
|
||
|
* \file floatplacement.h
|
||
|
* This file is part of LyX, the document processor.
|
||
|
* Licence details can be found in the file COPYING.
|
||
|
*
|
||
|
* \author Edwin Leuven
|
||
|
* \author John Levon
|
||
|
*
|
||
|
* Full author contact details are available in file CREDITS
|
||
|
*/
|
||
|
|
||
|
#include <config.h>
|
||
|
|
||
|
#include "LString.h"
|
||
|
|
||
|
#include <qwidget.h>
|
||
|
|
||
|
class QCheckBox;
|
||
|
class QVBoxLayout;
|
||
|
class InsetFloatParams;
|
||
|
|
||
|
class FloatPlacement : public QWidget {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
FloatPlacement(QWidget * parent, char * name);
|
||
|
|
||
|
void useWide();
|
||
|
|
||
|
void set(InsetFloatParams const & params);
|
||
|
void set(string const & placement);
|
||
|
|
||
|
string const get(bool & wide) const;
|
||
|
string const get() const;
|
||
|
|
||
|
public slots:
|
||
|
void tbhpClicked();
|
||
|
void heredefinitelyClicked();
|
||
|
void spanClicked();
|
||
|
void changedSlot();
|
||
|
|
||
|
signals:
|
||
|
void changed();
|
||
|
|
||
|
private:
|
||
|
QVBoxLayout * layout;
|
||
|
|
||
|
QCheckBox * defaultsCB;
|
||
|
QCheckBox * spanCB;
|
||
|
QCheckBox * ignoreCB;
|
||
|
QCheckBox * pageCB;
|
||
|
QCheckBox * heredefinitelyCB;
|
||
|
QCheckBox * herepossiblyCB;
|
||
|
QCheckBox * bottomCB;
|
||
|
QCheckBox * topCB;
|
||
|
};
|