]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QTabularCreateDialog.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / 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         : form_(form)
26 {
27         setupUi(this);
28
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     connect(rowsSB, SIGNAL(valueChanged(int)),
37                 this, SLOT( rowsChanged(int)));
38     connect(columnsSB, SIGNAL(valueChanged(int)),
39                 this, SLOT(columnsChanged(int)));
40 }
41
42
43 void QTabularCreateDialog::columnsChanged(int)
44 {
45         form_->changed();
46 }
47
48
49 void QTabularCreateDialog::rowsChanged(int)
50 {
51         form_->changed();
52 }
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #include "QTabularCreateDialog_moc.cpp"