QtiPlot  0.9.8.2
MatrixSizeDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : MatrixSizeDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2004-2008 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Matrix dimensions dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef MATRIXSIZEDIALOG_H
30 #define MATRIXSIZEDIALOG_H
31 
32 #include "Matrix.h"
33 #include <QDialog>
34 
35 class QGroupBox;
36 class QPushButton;
37 class QSpinBox;
38 class DoubleSpinBox;
39 
41 class MatrixSizeDialog : public QDialog
42 {
43  Q_OBJECT
44 
45 public:
47 
51  MatrixSizeDialog(Matrix *m, QWidget* parent = 0, Qt::WFlags fl = 0);
52 
53 private slots:
55  void accept();
57  void apply();
58 
59 private:
60  QPushButton* buttonOk, *buttonApply;
61  QPushButton* buttonCancel;
62  QGroupBox* groupBox1, *groupBox2;
63  QSpinBox *boxCols, *boxRows;
66 };
67 
68 #endif // MATRIXSIZEDIALOG_H
QPushButton * buttonApply
Definition: MatrixSizeDialog.h:60
void apply()
Apply changes.
Definition: MatrixSizeDialog.cpp:115
DoubleSpinBox * boxYEnd
Definition: MatrixSizeDialog.h:64
QSpinBox * boxRows
Definition: MatrixSizeDialog.h:63
QPushButton * buttonCancel
Definition: MatrixSizeDialog.h:61
Matrix dimensions dialog.
Definition: MatrixSizeDialog.h:41
MatrixSizeDialog(Matrix *m, QWidget *parent=0, Qt::WFlags fl=0)
Constructor.
Definition: MatrixSizeDialog.cpp:41
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
QPushButton * buttonOk
Definition: MatrixSizeDialog.h:60
QSpinBox * boxCols
Definition: MatrixSizeDialog.h:63
DoubleSpinBox * boxXStart
Definition: MatrixSizeDialog.h:64
QGroupBox * groupBox1
Definition: MatrixSizeDialog.h:62
Matrix worksheet class.
Definition: Matrix.h:57
void accept()
Accept changes and quit.
Definition: MatrixSizeDialog.cpp:134
DoubleSpinBox * boxXEnd
Definition: MatrixSizeDialog.h:64
QGroupBox * groupBox2
Definition: MatrixSizeDialog.h:62
DoubleSpinBox * boxYStart
Definition: MatrixSizeDialog.h:64
Matrix * d_matrix
Definition: MatrixSizeDialog.h:65