MatrixSizeDialog.h
Go to the documentation of this file.
/***************************************************************************
File : MatrixSizeDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004-2008 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Matrix dimensions dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef MATRIXSIZEDIALOG_H
#define MATRIXSIZEDIALOG_H
#include "Matrix.h"
#include <QDialog>
class QGroupBox;
class QPushButton;
class QSpinBox;
class DoubleSpinBox;
class MatrixSizeDialog : public QDialog
{
Q_OBJECT
public:
MatrixSizeDialog(Matrix *m, QWidget* parent = 0, Qt::WFlags fl = 0);
private slots:
void accept();
void apply();
private:
QPushButton* buttonOk, *buttonApply;
QPushButton* buttonCancel;
QGroupBox* groupBox1, *groupBox2;
QSpinBox *boxCols, *boxRows;
DoubleSpinBox *boxXStart, *boxYStart, *boxXEnd, *boxYEnd;
Matrix *d_matrix;
};
#endif // MATRIXSIZEDIALOG_H
MatrixSizeDialog::buttonApply
QPushButton * buttonApply
Definition: MatrixSizeDialog.h:60
MatrixSizeDialog::apply
void apply()
Apply changes.
Definition: MatrixSizeDialog.cpp:115
MatrixSizeDialog::boxYEnd
DoubleSpinBox * boxYEnd
Definition: MatrixSizeDialog.h:64
MatrixSizeDialog::boxRows
QSpinBox * boxRows
Definition: MatrixSizeDialog.h:63
MatrixSizeDialog::buttonCancel
QPushButton * buttonCancel
Definition: MatrixSizeDialog.h:61
MatrixSizeDialog
Matrix dimensions dialog.
Definition: MatrixSizeDialog.h:41
MatrixSizeDialog::MatrixSizeDialog
MatrixSizeDialog(Matrix *m, QWidget *parent=0, Qt::WFlags fl=0)
Constructor.
Definition: MatrixSizeDialog.cpp:41
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
MatrixSizeDialog::buttonOk
QPushButton * buttonOk
Definition: MatrixSizeDialog.h:60
MatrixSizeDialog::boxCols
QSpinBox * boxCols
Definition: MatrixSizeDialog.h:63
MatrixSizeDialog::boxXStart
DoubleSpinBox * boxXStart
Definition: MatrixSizeDialog.h:64
MatrixSizeDialog::groupBox1
QGroupBox * groupBox1
Definition: MatrixSizeDialog.h:62
Matrix.h
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
MatrixSizeDialog::accept
void accept()
Accept changes and quit.
Definition: MatrixSizeDialog.cpp:134
MatrixSizeDialog::boxXEnd
DoubleSpinBox * boxXEnd
Definition: MatrixSizeDialog.h:64
MatrixSizeDialog::groupBox2
QGroupBox * groupBox2
Definition: MatrixSizeDialog.h:62
MatrixSizeDialog::boxYStart
DoubleSpinBox * boxYStart
Definition: MatrixSizeDialog.h:64
MatrixSizeDialog::d_matrix
Matrix * d_matrix
Definition: MatrixSizeDialog.h:65