MatrixValuesDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : MatrixValuesDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2006 by Ion Vasilief, 
00006                            Tilman Hoener zu Siederdissen,
00007                            Knut Franke
00008     Email (use @ for *)  : ion_vasilief*yahoo.fr, thzs*gmx.net
00009                            knut.franke*gmx.de
00010     Description          : Set matrix values dialog
00011                            
00012  ***************************************************************************/
00013 
00014 /***************************************************************************
00015  *                                                                         *
00016  *  This program is free software; you can redistribute it and/or modify   *
00017  *  it under the terms of the GNU General Public License as published by   *
00018  *  the Free Software Foundation; either version 2 of the License, or      *
00019  *  (at your option) any later version.                                    *
00020  *                                                                         *
00021  *  This program is distributed in the hope that it will be useful,        *
00022  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00023  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00024  *  GNU General Public License for more details.                           *
00025  *                                                                         *
00026  *   You should have received a copy of the GNU General Public License     *
00027  *   along with this program; if not, write to the Free Software           *
00028  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00029  *   Boston, MA  02110-1301  USA                                           *
00030  *                                                                         *
00031  ***************************************************************************/
00032 #ifndef MVALUESDIALOG_H
00033 #define MVALUESDIALOG_H
00034 
00035 #include <QDialog>
00036 #include "ScriptingEnv.h" 
00037 #include "Script.h"
00038 #include "ScriptEdit.h"
00039 #include "Matrix.h"
00040 
00041 class QComboBox;
00042 class QTextEdit;
00043 class QSpinBox;
00044 class QPushButton;
00045 class ScriptEdit;
00046 class Matrix;
00047     
00049 class MatrixValuesDialog : public QDialog, public scripted
00050 { 
00051     Q_OBJECT
00052 
00053 public:
00054     MatrixValuesDialog( ScriptingEnv *env, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
00055     ~MatrixValuesDialog();
00056     
00057     QSize sizeHint() const ;
00058 
00059     void customEvent( QEvent *e);
00060 
00061     ScriptEdit* commands;
00062     QComboBox* functions;
00063     QPushButton* btnAddFunction; 
00064     QPushButton* btnAddCell;
00065     QPushButton* btnOk;
00066     QPushButton* btnCancel;
00067     QTextEdit* explain;
00068     QSpinBox *startRow, *endRow, *startCol, *endCol;
00069     QPushButton *btnApply;
00070 
00071 public slots:
00072     void accept();
00073     bool apply();
00074     void setFunctions();
00075     void addCell();
00076     void insertFunction();
00077     void insertExplain(int index);
00078     void setMatrix(Matrix *m);
00079 
00080 private:
00081     Matrix *matrix;
00082 };
00083 
00084 #endif //

Generated on Mon Oct 15 06:11:42 2007 for QtiPlot by  doxygen 1.5.3