lyx_mirror/src/frontends/qt4/FloatPlacement.h
Abdelrazak Younes 52bd0268a3 * Migrate InsetFloat to InsetDialog
* Bug fix and clean up InsetFloat parameter handling: this is still not very clean as the float type is not really a parameter still... The solution is to defer the float type reading to the actual inset reading, not its creation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33370 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-08 22:09:40 +00:00

66 lines
1.1 KiB
C++

// -*- 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 FLOATPLACEMENT_H
#define FLOATPLACEMENT_H
#include "ui_FloatPlacementUi.h"
#include <QWidget>
#include "support/docstring.h"
namespace lyx {
class Inset;
class InsetFloatParams;
class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
Q_OBJECT
public:
FloatPlacement(QWidget * parent = 0);
///
void paramsToDialog(Inset const *);
///
docstring dialogToParams() const;
///
void useWide();
///
void useSideways();
void set(std::string const & placement);
void checkAllowed();
std::string const get(bool & wide, bool & sideways) const;
std::string const get() const;
public Q_SLOTS:
void tbhpClicked();
void changedSlot();
void on_spanCB_clicked();
void on_heredefinitelyCB_clicked();
void on_sidewaysCB_clicked();
Q_SIGNALS:
void changed();
private:
/// one of figure or table?
bool standardfloat_;
};
} // namespace lyx
#endif // FLOATPLACEMENT_H