#include "insets/InsetTabular.h"
-#include <QCloseEvent>
#include <QCheckBox>
#include <QPushButton>
#include <QRadioButton>
#include <QLineEdit>
-using std::string;
-
+using namespace std;
namespace lyx {
namespace frontend {
-GuiTabular::GuiTabular(LyXView & lv)
- : GuiDialog(lv, "tabular")
+GuiTabular::GuiTabular(GuiView & lv)
+ : GuiDialog(lv, "tabular", qt_("Table Settings"))
{
active_cell_ = Tabular::npos;
setupUi(this);
- setViewTitle(_("Table Settings"));
widthED->setValidator(unsignedLengthValidator(widthED));
topspaceED->setValidator(new LengthValidator(topspaceED));
}
-void GuiTabular::closeEvent(QCloseEvent * e)
-{
- slotClose();
- GuiDialog::closeEvent(e);
-}
-
-
void GuiTabular::booktabsChanged(bool)
{
changed();
*/
}
+
bool GuiTabular::initialiseParams(string const & data)
{
// try to get the current cell
// get the innermost tabular inset;
// assume that it is "ours"
for (int i = cur.depth() - 1; i >= 0; --i)
- if (cur[i].inset().lyxCode() == Inset::TABULAR_CODE) {
+ if (cur[i].inset().lyxCode() == TABULAR_CODE) {
current_inset = static_cast<InsetTabular const *>(&cur[i].inset());
active_cell_ = cur[i].idx();
break;
else
set(Tabular::SET_PWIDTH, width);
- dialog().updateView();
+ updateView();
}
void GuiTabular::toggleMultiColumn()
{
set(Tabular::MULTICOLUMN);
- dialog().updateView();
+ updateView();
}
}
-Dialog * createGuiTabular(LyXView & lv) { return new GuiTabular(lv); }
+Dialog * createGuiTabular(GuiView & lv) { return new GuiTabular(lv); }
} // namespace frontend