2006-03-05 17:24:44 +00:00
|
|
|
// -*- 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QT_FLOATPLACEMENT_H
|
|
|
|
#define QT_FLOATPLACEMENT_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
//#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QVBoxLayout;
|
|
|
|
class InsetFloatParams;
|
|
|
|
|
|
|
|
class FloatPlacement : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2006-05-04 07:31:46 +00:00
|
|
|
FloatPlacement(QWidget * parent=0, char * name="");
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
void useWide();
|
|
|
|
void useSideways();
|
|
|
|
|
|
|
|
void set(InsetFloatParams const & params);
|
|
|
|
void set(std::string const & placement);
|
|
|
|
void checkAllowed();
|
|
|
|
|
|
|
|
std::string const get(bool & wide, bool & sideways) const;
|
|
|
|
std::string const get() const;
|
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
public Q_SLOTS:
|
2006-03-05 17:24:44 +00:00
|
|
|
void tbhpClicked();
|
|
|
|
void heredefinitelyClicked();
|
|
|
|
void spanClicked();
|
|
|
|
void sidewaysClicked();
|
|
|
|
void changedSlot();
|
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
Q_SIGNALS:
|
2006-03-05 17:24:44 +00:00
|
|
|
void changed();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QVBoxLayout * layout;
|
|
|
|
|
|
|
|
QCheckBox * defaultsCB;
|
|
|
|
QCheckBox * spanCB;
|
|
|
|
QCheckBox * sidewaysCB;
|
|
|
|
QCheckBox * ignoreCB;
|
|
|
|
QCheckBox * pageCB;
|
|
|
|
QCheckBox * heredefinitelyCB;
|
|
|
|
QCheckBox * herepossiblyCB;
|
|
|
|
QCheckBox * bottomCB;
|
|
|
|
QCheckBox * topCB;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|