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