2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QTabularCreateDialog.C
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-08-19 13:25:15 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2002-09-24 13:57:09 +00:00
|
|
|
|
|
|
|
|
2002-12-17 20:37:13 +00:00
|
|
|
#include "qt_helpers.h"
|
2001-08-19 13:25:15 +00:00
|
|
|
|
|
|
|
#include "support/lstrings.h"
|
|
|
|
|
2002-06-19 03:38:44 +00:00
|
|
|
#include "QTabularCreate.h"
|
|
|
|
#include "QTabularCreateDialog.h"
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#include <qpushbutton.h>
|
|
|
|
#include <qspinbox.h>
|
|
|
|
#include "emptytable.h"
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
|
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
|
|
|
}
|