]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreateDialog.C
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / qt2 / QTabularCreateDialog.C
1 /**
2  * \file QTabularCreateDialog.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  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14
15
16
17 #include "QTabularCreate.h"
18 #include "QTabularCreateDialog.h"
19
20 #include <qpushbutton.h>
21 #include <qspinbox.h>
22 #include "emptytable.h"
23
24
25 QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
26         : QTabularCreateDialogBase(0, 0, false, 0),
27         form_(form)
28 {
29         table->setMinimumSize(100,100);
30         rowsSB->setValue(5);
31         columnsSB->setValue(5);
32
33         connect(okPB, SIGNAL(clicked()),
34                 form_, SLOT(slotOK()));
35         connect(closePB, SIGNAL(clicked()),
36                 form_, SLOT(slotClose()));
37 }
38
39
40 void QTabularCreateDialog::columnsChanged(int)
41 {
42         form_->changed();
43 }
44
45
46 void QTabularCreateDialog::rowsChanged(int)
47 {
48         form_->changed();
49 }