2 * \file GuiTabularCreate.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "GuiTabularCreate.h"
15 #include "EmptyTable.h"
17 #include <QCloseEvent>
19 #include <QPushButton>
24 /////////////////////////////////////////////////////////////////////
26 // GuiTabularCreateDialog
28 /////////////////////////////////////////////////////////////////////
30 GuiTabularCreateDialog::GuiTabularCreateDialog(GuiTabularCreate * form)
36 columnsSB->setValue(5);
38 connect(okPB, SIGNAL(clicked()), form_, SLOT(slotOK()));
39 connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose()));
41 connect(rowsSB, SIGNAL(valueChanged(int)),
42 this, SLOT(rowsChanged(int)));
43 connect(columnsSB, SIGNAL(valueChanged(int)),
44 this, SLOT(columnsChanged(int)));
48 void GuiTabularCreateDialog::columnsChanged(int)
54 void GuiTabularCreateDialog::rowsChanged(int)
60 /////////////////////////////////////////////////////////////////////
64 /////////////////////////////////////////////////////////////////////
67 GuiTabularCreate::GuiTabularCreate(Dialog & parent)
68 : GuiView<GuiTabularCreateDialog>(parent, _("Insert Table"))
73 void GuiTabularCreate::build_dialog()
75 dialog_.reset(new GuiTabularCreateDialog(this));
77 bcview().setOK(dialog_->okPB);
78 bcview().setCancel(dialog_->closePB);
82 void GuiTabularCreate::apply()
84 controller().params().first = dialog_->rowsSB->value();
85 controller().params().second = dialog_->columnsSB->value();
88 } // namespace frontend
91 #include "GuiTabularCreate_moc.cpp"