]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreate.C
namespace grfx -> lyx::graphics
[lyx.git] / src / frontends / qt2 / QTabularCreate.C
1 /**
2  * \file QTabularCreate.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "ControlTabularCreate.h"
15 #include "QTabularCreateDialog.h"
16 #include "QTabularCreate.h"
17 #include "Qt2BC.h"
18 #include "qt_helpers.h"
19 #include "debug.h"
20
21 #include <qspinbox.h>
22 #include <qpushbutton.h>
23
24 typedef QController<ControlTabularCreate, QView<QTabularCreateDialog> > base_class;
25
26
27 QTabularCreate::QTabularCreate(Dialog & parent)
28         : base_class(parent, _("LyX: Insert Table"))
29 {
30 }
31
32
33 void QTabularCreate::build_dialog()
34 {
35         dialog_.reset(new QTabularCreateDialog(this));
36
37         bcview().setOK(dialog_->okPB);
38         bcview().setCancel(dialog_->closePB);
39 }
40
41
42 void QTabularCreate::apply()
43 {
44         controller().params().first = dialog_->rowsSB->value();
45         controller().params().second = dialog_->columnsSB->value();
46 }