2003-08-23 00:17:00 +00:00
|
|
|
// -*- C++ -*-
|
2003-03-28 17:19:49 +00:00
|
|
|
/**
|
|
|
|
* \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
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-03-28 17:19:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <qwidget.h>
|
2003-10-06 19:57:16 +00:00
|
|
|
#include <string>
|
2003-03-28 17:19:49 +00:00
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QVBoxLayout;
|
|
|
|
class InsetFloatParams;
|
|
|
|
|
|
|
|
class FloatPlacement : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
FloatPlacement(QWidget * parent, char * name);
|
|
|
|
|
|
|
|
void useWide();
|
2004-03-29 11:38:39 +00:00
|
|
|
void useSideways();
|
2003-03-28 17:19:49 +00:00
|
|
|
|
|
|
|
void set(InsetFloatParams const & params);
|
2003-10-06 15:43:21 +00:00
|
|
|
void set(std::string const & placement);
|
2003-03-28 17:19:49 +00:00
|
|
|
|
2004-03-29 11:38:39 +00:00
|
|
|
std::string const get(bool & wide, bool & sideways) const;
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const get() const;
|
2003-03-28 17:19:49 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void tbhpClicked();
|
|
|
|
void heredefinitelyClicked();
|
|
|
|
void spanClicked();
|
2004-03-29 11:38:39 +00:00
|
|
|
void sidewaysClicked();
|
2003-03-28 17:19:49 +00:00
|
|
|
void changedSlot();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void changed();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QVBoxLayout * layout;
|
|
|
|
|
|
|
|
QCheckBox * defaultsCB;
|
|
|
|
QCheckBox * spanCB;
|
2004-03-29 11:38:39 +00:00
|
|
|
QCheckBox * sidewaysCB;
|
2003-03-28 17:19:49 +00:00
|
|
|
QCheckBox * ignoreCB;
|
|
|
|
QCheckBox * pageCB;
|
|
|
|
QCheckBox * heredefinitelyCB;
|
|
|
|
QCheckBox * herepossiblyCB;
|
|
|
|
QCheckBox * bottomCB;
|
|
|
|
QCheckBox * topCB;
|
|
|
|
};
|