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
|
|
|
|
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_FloatPlacementUi.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
namespace lyx { class InsetFloatParams; }
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-08-25 13:40:01 +00:00
|
|
|
class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
|
2006-03-05 17:24:44 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-08-25 13:40:01 +00:00
|
|
|
FloatPlacement(QWidget * parent = 0);
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
void useWide();
|
|
|
|
void useSideways();
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
void set(lyx::InsetFloatParams const & params);
|
2006-03-05 17:24:44 +00:00
|
|
|
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 changedSlot();
|
2006-08-25 13:40:01 +00:00
|
|
|
void on_spanCB_clicked();
|
|
|
|
void on_heredefinitelyCB_clicked();
|
|
|
|
void on_sidewaysCB_clicked();
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
Q_SIGNALS:
|
2006-03-05 17:24:44 +00:00
|
|
|
void changed();
|
|
|
|
|
2008-01-11 18:56:53 +00:00
|
|
|
private:
|
|
|
|
/// one of figure or table?
|
|
|
|
bool standardfloat_;
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
//} // namespace lyx
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
#endif
|