]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreateDialog.C
Martin's changes to the Note 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 #include "qt_helpers.h"
16
17 #include "support/lstrings.h"
18
19 #include "QTabularCreate.h"
20 #include "QTabularCreateDialog.h"
21
22 #include <qpushbutton.h>
23 #include <qspinbox.h>
24 #include "emptytable.h"
25
26
27 QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
28         : QTabularCreateDialogBase(0, 0, false, 0),
29         form_(form)
30 {
31         table->setMinimumSize(100,100);
32         rowsSB->setValue(5);
33         columnsSB->setValue(5);
34
35         connect(okPB, SIGNAL(clicked()),
36                 form_, SLOT(slotOK()));
37         connect(closePB, SIGNAL(clicked()),
38                 form_, SLOT(slotClose()));
39 }
40
41
42 void QTabularCreateDialog::columnsChanged(int)
43 {
44         form_->changed();
45 }
46
47
48 void QTabularCreateDialog::rowsChanged(int)
49 {
50         form_->changed();
51 }