2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QTabularCreateDialog.C
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <gettext.h>
|
|
|
|
|
|
|
|
#include "QTabularCreateDialog.h"
|
|
|
|
#include "QTabularCreate.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include "support/lstrings.h"
|
|
|
|
|
|
|
|
#include <qpushbutton.h>
|
|
|
|
#include <qspinbox.h>
|
|
|
|
#include "emptytable.h"
|
|
|
|
|
2001-08-28 04:17:49 +00:00
|
|
|
QTabularCreateDialog::QTabularCreateDialog(QTabularCreate * form)
|
|
|
|
: QTabularCreateDialogBase(0, 0, false, 0),
|
2001-08-19 13:25:15 +00:00
|
|
|
form_(form)
|
|
|
|
{
|
|
|
|
table->setMinimumSize(100,100);
|
2001-08-28 04:17:49 +00:00
|
|
|
rowsSB->setValue(5);
|
|
|
|
columnsSB->setValue(5);
|
2001-08-19 13:25:15 +00:00
|
|
|
|
2001-08-28 04:17:49 +00:00
|
|
|
connect(okPB, SIGNAL(clicked()),
|
|
|
|
form_, SLOT(slotOK()));
|
|
|
|
connect(closePB, SIGNAL(clicked()),
|
|
|
|
form_, SLOT(slotClose()));
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-31 03:01:11 +00:00
|
|
|
void QTabularCreateDialog::columnsChanged(int)
|
2001-08-19 13:25:15 +00:00
|
|
|
{
|
2001-08-28 04:17:49 +00:00
|
|
|
form_->changed();
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-31 03:01:11 +00:00
|
|
|
void QTabularCreateDialog::rowsChanged(int)
|
2001-08-19 13:25:15 +00:00
|
|
|
{
|
2001-08-28 04:17:49 +00:00
|
|
|
form_->changed();
|
2001-08-19 13:25:15 +00:00
|
|
|
}
|