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