summaryrefslogtreecommitdiffstats
path: root/lib/kformula/MatrixDialog.cc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-05-23 20:48:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-05-29 15:16:28 +0900
commit8b78a8791bc539bcffe7159f9d9714d577cb3d7d (patch)
tree1328291f966f19a22d7b13657d3f01a588eb1083 /lib/kformula/MatrixDialog.cc
parent95834e2bdc5e01ae1bd21ac0dfa4fa1d2417fae9 (diff)
downloadkoffice-8b78a8791bc539bcffe7159f9d9714d577cb3d7d.tar.gz
koffice-8b78a8791bc539bcffe7159f9d9714d577cb3d7d.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kformula/MatrixDialog.cc')
-rw-r--r--lib/kformula/MatrixDialog.cc77
1 files changed, 0 insertions, 77 deletions
diff --git a/lib/kformula/MatrixDialog.cc b/lib/kformula/MatrixDialog.cc
deleted file mode 100644
index feac37cea..000000000
--- a/lib/kformula/MatrixDialog.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-/* This file is part of the KDE libraries
- Copyright (C) 1999 Ilya Baran (ibaran@mit.edu)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
-*/
-
-#include "MatrixDialog.h"
-#include <tqpushbutton.h>
-#include <tqspinbox.h>
-#include <tqlabel.h>
-#include <tqcheckbox.h>
-#include <tqlayout.h>
-#include <tdelocale.h>
-
-KFORMULA_NAMESPACE_BEGIN
-
-const int DEFAULT_SIZE = 3;
-const int MAX_SIZE = 200;
-
-MatrixDialog::MatrixDialog( TQWidget *parent, int _width, int _height )
- : KDialogBase(parent, "Matrix Dialog", true,i18n("Add Matrix"),Ok|Cancel)
-{
- w = _width;
- h = _height;
-
- TQLabel *rows, *columns;
- TQWidget *page = new TQWidget( this );
- setMainWidget(page);
- TQGridLayout *grid = new TQGridLayout(page, 4, 2, 10);
-
- rows = new TQLabel(i18n("Rows:"), page);
- columns = new TQLabel(i18n("Columns:"), page);
-
- grid->addWidget(rows, 0, 0);
- grid->addWidget(columns, 0, 1);
-
- TQSpinBox *width, *height;
-
- height = new TQSpinBox(1, MAX_SIZE, 1, page);
- grid->addWidget(height, 1, 0);
- height->setValue(h);
- connect(height, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setHeight(int)));
-
- width = new TQSpinBox(1, MAX_SIZE, 1, page);
- grid->addWidget(width, 1, 1);
- width->setValue(w);
- connect(width, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setWidth(int)));
- height->setFocus();
-}
-
-void MatrixDialog::setHeight(int value)
-{
- h = value;
-}
-
-void MatrixDialog::setWidth(int value)
-{
- w = value;
-}
-
-KFORMULA_NAMESPACE_END
-
-using namespace KFormula;
-#include "MatrixDialog.moc"