]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreateDialog.C
Some string(widget->text()) fixes. Weirdness
[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
30 QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
31         : QTabularCreateDialogBase(0, 0, false, 0),
32         form_(form)
33 {
34         table->setMinimumSize(100,100);
35         rowsSB->setValue(5);
36         columnsSB->setValue(5);
37
38         connect(okPB, SIGNAL(clicked()),
39                 form_, SLOT(slotOK()));
40         connect(closePB, SIGNAL(clicked()),
41                 form_, SLOT(slotClose()));
42 }
43
44
45 void QTabularCreateDialog::columnsChanged(int)
46 {
47         form_->changed();
48 }
49
50
51 void QTabularCreateDialog::rowsChanged(int)
52 {
53         form_->changed();
54 }