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"
14 #include "EmptyTable.h"
16 #include <QCloseEvent>
18 #include <QPushButton>
23 /////////////////////////////////////////////////////////////////////
25 // GuiTabularCreateDialog
27 /////////////////////////////////////////////////////////////////////
29 GuiTabularCreateDialog::GuiTabularCreateDialog(GuiTabularCreate * form)
35 columnsSB->setValue(5);
37 connect(okPB, SIGNAL(clicked()), form_, SLOT(slotOK()));
38 connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose()));
40 connect(rowsSB, SIGNAL(valueChanged(int)),
41 this, SLOT(rowsChanged(int)));
42 connect(columnsSB, SIGNAL(valueChanged(int)),
43 this, SLOT(columnsChanged(int)));
47 void GuiTabularCreateDialog::columnsChanged(int)
53 void GuiTabularCreateDialog::rowsChanged(int)
59 /////////////////////////////////////////////////////////////////////
63 /////////////////////////////////////////////////////////////////////
66 GuiTabularCreate::GuiTabularCreate(GuiDialog & parent)
67 : GuiView<GuiTabularCreateDialog>(parent, _("Insert Table"))
72 void GuiTabularCreate::build_dialog()
74 dialog_.reset(new GuiTabularCreateDialog(this));
76 bc().setOK(dialog_->okPB);
77 bc().setCancel(dialog_->closePB);
81 void GuiTabularCreate::applyView()
83 controller().params().first = dialog_->rowsSB->value();
84 controller().params().second = dialog_->columnsSB->value();
87 } // namespace frontend
90 #include "GuiTabularCreate_moc.cpp"