20#include "MatrixDialog.h"
21#include <tqpushbutton.h>
24#include <tqcheckbox.h>
28KFORMULA_NAMESPACE_BEGIN
30const int DEFAULT_SIZE = 3;
31const int MAX_SIZE = 200;
33MatrixDialog::MatrixDialog( TQWidget *parent, int _width, int _height )
34 : KDialogBase(parent, "Matrix Dialog", true,i18n( "Add Matrix"),Ok|Cancel)
39 TQLabel *rows, *columns;
40 TQWidget *page = new TQWidget( this );
42 TQGridLayout *grid = new TQGridLayout(page, 4, 2, 10);
44 rows = new TQLabel(i18n( "Rows:"), page);
45 columns = new TQLabel(i18n( "Columns:"), page);
47 grid->addWidget(rows, 0, 0);
48 grid->addWidget(columns, 0, 1);
50 TQSpinBox *width, *height;
52 height = new TQSpinBox(1, MAX_SIZE, 1, page);
53 grid->addWidget(height, 1, 0);
55 connect(height, TQ_SIGNAL(valueChanged( int)), TQ_SLOT(setHeight( int)));
57 width = new TQSpinBox(1, MAX_SIZE, 1, page);
58 grid->addWidget(width, 1, 1);
60 connect(width, TQ_SIGNAL(valueChanged( int)), TQ_SLOT(setWidth( int)));
64void MatrixDialog::setHeight( int value)
69void MatrixDialog::setWidth( int value)
76using namespace KFormula;
77#include "MatrixDialog.moc"
|