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 #pragma implementation
17 #include "ControlTabularCreate.h"
18 #include "QTabularCreateDialog.h"
19 #include "QTabularCreate.h"
21 #include "qt_helpers.h"
25 #include <qpushbutton.h>
27 typedef Qt2CB<ControlTabularCreate, Qt2DB<QTabularCreateDialog> > base_class;
30 QTabularCreate::QTabularCreate()
31 : base_class(qt_("Insert table"))
36 void QTabularCreate::build_dialog()
38 dialog_.reset(new QTabularCreateDialog(this));
40 bc().setOK(dialog_->okPB);
41 bc().setCancel(dialog_->closePB);
45 void QTabularCreate::apply()
47 controller().params().first = dialog_->rowsSB->value();
48 controller().params().second = dialog_->columnsSB->value();