]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreateDialog.C
Switch from SigC signals to boost::signals
[lyx.git] / src / frontends / qt2 / QTabularCreateDialog.C
1 /**
2  * \file QTabularCreateDialog.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon, moz@compsoc.man.ac.uk
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #include <config.h>
11 #include <gettext.h>
12
13 #include "QTabularCreateDialog.h"
14 #include "QTabularCreate.h"
15
16 #include "support/lstrings.h"
17
18 #include <qpushbutton.h>
19 #include <qspinbox.h>
20 #include "emptytable.h"
21
22 QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
23         : QTabularCreateDialogBase(0, 0, false, 0),
24         form_(form)
25 {
26         table->setMinimumSize(100,100);
27         rowsSB->setValue(5);
28         columnsSB->setValue(5);
29
30         connect(okPB, SIGNAL(clicked()),
31                 form_, SLOT(slotOK()));
32         connect(closePB, SIGNAL(clicked()),
33                 form_, SLOT(slotClose()));
34 }
35
36
37 void QTabularCreateDialog::columnsChanged(int)
38 {
39         form_->changed();
40 }
41
42
43 void QTabularCreateDialog::rowsChanged(int)
44 {
45         form_->changed();
46 }