mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
52bd0268a3
* 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
63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
/**
|
|
* \file GuiFloat.cpp
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "GuiFloat.h"
|
|
|
|
#include "FloatPlacement.h"
|
|
|
|
#include "FuncRequest.h"
|
|
|
|
#include <QPushButton>
|
|
|
|
using namespace std;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
GuiFloat::GuiFloat(GuiView & lv)
|
|
: InsetDialog(lv, FLOAT_CODE, LFUN_FLOAT_INSERT, "float", "Float Settings")
|
|
{
|
|
setupUi(this);
|
|
|
|
// enable span columns checkbox
|
|
floatFP->useWide();
|
|
// enable sideways checkbox
|
|
floatFP->useSideways();
|
|
|
|
connect(floatFP, SIGNAL(changed()), this, SLOT(applyView()));
|
|
}
|
|
|
|
|
|
void GuiFloat::enableView(bool enable)
|
|
{
|
|
floatFP->setEnabled(enable);
|
|
}
|
|
|
|
|
|
void GuiFloat::paramsToDialog(Inset const * inset)
|
|
{
|
|
floatFP->paramsToDialog(inset);
|
|
}
|
|
|
|
|
|
docstring GuiFloat::dialogToParams() const
|
|
{
|
|
return floatFP->dialogToParams();
|
|
}
|
|
|
|
Dialog * createGuiFloat(GuiView & lv) { return new GuiFloat(lv); }
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#include "moc_GuiFloat.cpp"
|