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.
13 #include "QTabularCreateDialog.h"
14 #include "QTabularCreate.h"
17 #include "controllers/ControlTabularCreate.h"
20 #include <qpushbutton.h>
25 typedef QController<ControlTabularCreate, QView<QTabularCreateDialog> > base_class;
28 QTabularCreate::QTabularCreate(Dialog & parent)
29 : base_class(parent, _("Insert Table"))
34 void QTabularCreate::build_dialog()
36 dialog_.reset(new QTabularCreateDialog(this));
38 bcview().setOK(dialog_->okPB);
39 bcview().setCancel(dialog_->closePB);
43 void QTabularCreate::apply()
45 controller().params().first = dialog_->rowsSB->value();
46 controller().params().second = dialog_->columnsSB->value();
49 } // namespace frontend