#include "Buffer.h"
#include "BufferParams.h"
#include "FloatList.h"
+#include "TextClass.h"
#include "insets/InsetFloat.h"
#include "support/lstrings.h"
+#include <map>
+
using namespace std;
using namespace lyx::support;
namespace lyx {
+namespace frontend {
+
FloatPlacement::FloatPlacement(bool show_options, QWidget * parent)
- : QWidget(parent), float_list_(0)
+ : InsetParamsWidget(parent), float_list_(0)
{
setupUi(this);
connect(spanCB, SIGNAL(clicked()), this, SLOT(changedSlot()));
connect(sidewaysCB, SIGNAL(clicked()), this, SLOT(changedSlot()));
+ floatTypeTitle->setVisible(show_options);
+ floatTypeCO->setVisible(show_options);
spanCB->setVisible(show_options);
sidewaysCB->setVisible(show_options);
}
FloatList::const_iterator const end = floats.end();
for (; it != end; ++it) {
floatTypeCO->addItem(qt_(it->second.name()),
- toqstr(it->second.type()));
+ toqstr(it->second.floattype()));
}
}
}
}
+} // namespace frontend
} // namespace lyx
#include "moc_FloatPlacement.cpp"