2 * \file QTabularCreate.C
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
14 #include "ControlTabularCreate.h"
15 #include "QTabularCreateDialog.h"
16 #include "QTabularCreate.h"
18 #include "qt_helpers.h"
22 #include <qpushbutton.h>
24 typedef QController<ControlTabularCreate, QView<QTabularCreateDialog> > base_class;
27 QTabularCreate::QTabularCreate(Dialog & parent)
28 : base_class(parent, _("LyX: Insert Table"))
33 void QTabularCreate::build_dialog()
35 dialog_.reset(new QTabularCreateDialog(this));
37 bcview().setOK(dialog_->okPB);
38 bcview().setCancel(dialog_->closePB);
42 void QTabularCreate::apply()
44 controller().params().first = dialog_->rowsSB->value();
45 controller().params().second = dialog_->columnsSB->value();