MatrixCommand.h
Go to the documentation of this file.
/***************************************************************************
File : MatrixCommand.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2008 by Ion Vasilief,
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : Matrix undo/redo commands
***************************************************************************/
/***************************************************************************
* *
* 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 MATRIX_COMMAND_H
#define MATRIX_COMMAND_H
#include "Matrix.h"
#include "MatrixModel.h"
#include <QUndoCommand>
class MatrixEditCellCommand: public QUndoCommand
{
public:
MatrixEditCellCommand(MatrixModel *model, const QModelIndex & index, double valBefore,
double valAfter, const QString & text);
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
QModelIndex d_index;
double d_val_before;
double d_val_after;
};
class MatrixSetFormulaCommand: public QUndoCommand
{
public:
MatrixSetFormulaCommand(Matrix *m, const QString& oldFormula, const QString& newFormula, const QString & text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
QString d_old_formula;
QString d_new_formula;
};
class MatrixSetViewCommand: public QUndoCommand
{
public:
MatrixSetViewCommand(Matrix *m, Matrix::ViewType oldView, Matrix::ViewType newView, const QString & text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
Matrix::ViewType d_old_view;
Matrix::ViewType d_new_view;
};
class MatrixSetHeaderViewCommand: public QUndoCommand
{
public:
MatrixSetHeaderViewCommand(Matrix *m, Matrix::HeaderViewType oldView,
Matrix::HeaderViewType newView, const QString & text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
Matrix::HeaderViewType d_old_view;
Matrix::HeaderViewType d_new_view;
};
class MatrixSetColWidthCommand: public QUndoCommand
{
public:
MatrixSetColWidthCommand(Matrix *m, int oldWidth, int newWidth, const QString & text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
int d_old_width;
int d_new_width;
};
class MatrixSetPrecisionCommand: public QUndoCommand
{
public:
MatrixSetPrecisionCommand(Matrix *m, const QChar& oldFormat, const QChar& newFormat,
int oldPrec, int newPrec, const QString & text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
QChar d_old_format;
QChar d_new_format;
int d_old_prec;
int d_new_prec;
};
class MatrixSetCoordinatesCommand: public QUndoCommand
{
public:
MatrixSetCoordinatesCommand(Matrix *, double, double, double, double,
double, double, double, double, const QString &);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
double d_old_xs, d_old_xe, d_old_ys, d_old_ye;
double d_new_xs, d_new_xe, d_new_ys, d_new_ye;
};
class MatrixSetColorMapCommand: public QUndoCommand
{
public:
MatrixSetColorMapCommand(Matrix *m, Matrix::ColorMapType d_map_type_before,
const LinearColorMap& d_map_before, Matrix::ColorMapType d_map_type_after,
const LinearColorMap& d_map_after, const QString& text);
virtual void redo();
virtual void undo();
private:
Matrix *d_matrix;
Matrix::ColorMapType d_map_type_before, d_map_type_after;
LinearColorMap d_map_before, d_map_after;
};
class MatrixDeleteRowsCommand: public QUndoCommand
{
public:
MatrixDeleteRowsCommand(MatrixModel *model, int startRow, int count, double* data, const QString& text);
~MatrixDeleteRowsCommand(){free(d_data);};
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
int d_start_row, d_count;
double* d_data;
};
class MatrixInsertRowCommand: public QUndoCommand
{
public:
MatrixInsertRowCommand(MatrixModel *model, int startRow, const QString& text);
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
int d_start_row;
};
class MatrixDeleteColsCommand: public QUndoCommand
{
public:
MatrixDeleteColsCommand(MatrixModel *model, int startCol, int count, double* data, const QString& text);
~MatrixDeleteColsCommand(){free(d_data);};
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
int d_start_col, d_count;
double* d_data;
};
class MatrixInsertColCommand: public QUndoCommand
{
public:
MatrixInsertColCommand(MatrixModel *model, int startCol, const QString& text);
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
int d_start_col;
};
class MatrixSetSizeCommand: public QUndoCommand
{
public:
MatrixSetSizeCommand(MatrixModel *model, const QSize& oldSize, const QSize& newSize, double *data, const QString& text);
~MatrixSetSizeCommand(){if (d_backup) free(d_backup);};
virtual void redo();
virtual void undo();
protected:
MatrixModel *d_model;
QSize d_old_size, d_new_size;
double *d_backup;
};
class MatrixSmoothCommand: public QUndoCommand
{
public:
MatrixSmoothCommand(MatrixModel *model, double *data, const QString& text);
~MatrixSmoothCommand(){if (d_backup) free(d_backup);};
virtual void redo();
virtual void undo();
protected:
MatrixModel *d_model;
double *d_backup;
};
class MatrixResampleCommand: public MatrixSetSizeCommand
{
public:
MatrixResampleCommand(MatrixModel *model, const QSize& oldSize, const QSize& newSize, int method, double *data, const QString& text);
virtual void redo();
private:
int d_method;
};
class MatrixUndoCommand: public QUndoCommand
{
public:
MatrixUndoCommand(MatrixModel *model, Matrix::Operation op, int startRow, int endRow, int startCol, int endCol,
double *data, const QString& text);
~MatrixUndoCommand(){free(d_data);};
virtual void redo();
virtual void undo();
protected:
MatrixModel *d_model;
Matrix::Operation d_operation;
int d_start_row, d_end_row, d_start_col, d_end_col;
double* d_data;
};
class MatrixFftCommand: public MatrixUndoCommand
{
public:
MatrixFftCommand(bool inverse, MatrixModel *model, int startRow, int endRow,
int startCol, int endCol, double *data, const QString& text);
virtual void redo();
private:
bool d_inverse;
};
class MatrixSetImageCommand: public MatrixUndoCommand
{
public:
MatrixSetImageCommand(MatrixModel *model, const QImage& image, Matrix::ViewType oldView,
int startRow, int endRow, int startCol, int endCol, double *data, const QString& text);
virtual void redo();
virtual void undo();
private:
QImage d_image;
Matrix::ViewType d_old_view;
};
class MatrixImportAsciiCommand: public MatrixUndoCommand
{
public:
MatrixImportAsciiCommand(const QString &fname, const QString &sep,
int ignoredLines, bool stripSpaces, bool simplifySpaces,
const QString& commentString, Matrix::ImportMode importAs, const QLocale& locale,
int endLineChar, int maxRows, MatrixModel *model, int startRow, int endRow,
int startCol, int endCol, double *data, const QString& text);
virtual void redo();
private:
QString d_path, d_sep, d_comment;
int d_ignore_lines, d_end_line, d_max_rows;
bool d_strip_spaces, d_simplify_spaces;
Matrix::ImportMode d_mode;
QLocale d_locale;
};
class MatrixSymmetryOperation: public QUndoCommand
{
public:
MatrixSymmetryOperation(MatrixModel *model, Matrix::Operation op, const QString& text);
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
Matrix::Operation d_operation;
};
class MatrixPasteCommand: public QUndoCommand
{
public:
MatrixPasteCommand(MatrixModel *model, int startRow, int endRow, int startCol, int endCol,
double *clipboardData, int rows, int cols, double *backupData,
int oldRows, int oldCols, const QString& text);
~MatrixPasteCommand(){free(d_clipboard_data); free(d_backup_data);};
virtual void redo();
virtual void undo();
private:
MatrixModel *d_model;
int d_start_row, d_end_row, d_start_col, d_end_col, d_rows, d_cols, d_old_rows, d_old_cols;
double *d_clipboard_data, *d_backup_data;
};
#endif
MatrixSetFormulaCommand::d_new_formula
QString d_new_formula
Definition: MatrixCommand.h:62
MatrixPasteCommand::d_old_rows
int d_old_rows
Definition: MatrixCommand.h:321
MatrixUndoCommand::~MatrixUndoCommand
~MatrixUndoCommand()
Definition: MatrixCommand.h:244
MatrixDeleteColsCommand
Definition: MatrixCommand.h:176
MatrixSetViewCommand::d_new_view
Matrix::ViewType d_new_view
Definition: MatrixCommand.h:75
MatrixFftCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:657
MatrixSetCoordinatesCommand::d_old_ys
double d_old_ys
Definition: MatrixCommand.h:131
MatrixInsertColCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:446
MatrixSetPrecisionCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:212
MatrixDeleteRowsCommand::~MatrixDeleteRowsCommand
~MatrixDeleteRowsCommand()
Definition: MatrixCommand.h:154
MatrixSmoothCommand::~MatrixSmoothCommand
~MatrixSmoothCommand()
Definition: MatrixCommand.h:220
MatrixUndoCommand::d_start_col
int d_start_col
Definition: MatrixCommand.h:251
MatrixDeleteRowsCommand::d_data
double * d_data
Definition: MatrixCommand.h:161
MatrixSetImageCommand
Definition: MatrixCommand.h:266
MatrixResampleCommand::MatrixResampleCommand
MatrixResampleCommand(MatrixModel *model, const QSize &oldSize, const QSize &newSize, int method, double *data, const QString &text)
Definition: MatrixCommand.cpp:570
MatrixModel
Definition: MatrixModel.h:43
MatrixSetCoordinatesCommand::d_new_xe
double d_new_xe
Definition: MatrixCommand.h:132
MatrixDeleteColsCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:405
MatrixUndoCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:625
MatrixPasteCommand::d_start_row
int d_start_row
Definition: MatrixCommand.h:321
MatrixInsertRowCommand::d_start_row
int d_start_row
Definition: MatrixCommand.h:173
MatrixInsertColCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:198
MatrixSymmetryOperation
Definition: MatrixCommand.h:297
MatrixDeleteRowsCommand
Definition: MatrixCommand.h:150
MatrixSetHeaderViewCommand
Definition: MatrixCommand.h:78
MatrixSymmetryOperation::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:305
MatrixSetColWidthCommand::d_old_width
int d_old_width
Definition: MatrixCommand.h:101
MatrixInsertColCommand::d_start_col
int d_start_col
Definition: MatrixCommand.h:199
MatrixDeleteRowsCommand::d_count
int d_count
Definition: MatrixCommand.h:160
MatrixSetImageCommand::d_image
QImage d_image
Definition: MatrixCommand.h:275
MatrixSetCoordinatesCommand::MatrixSetCoordinatesCommand
MatrixSetCoordinatesCommand(Matrix *, double, double, double, double, double, double, double, double, const QString &)
Definition: MatrixCommand.cpp:223
MatrixSetColorMapCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:296
MatrixSetCoordinatesCommand::d_new_ye
double d_new_ye
Definition: MatrixCommand.h:132
Matrix::HeaderViewType
HeaderViewType
Definition: Matrix.h:81
MatrixSetHeaderViewCommand::MatrixSetHeaderViewCommand
MatrixSetHeaderViewCommand(Matrix *m, Matrix::HeaderViewType oldView, Matrix::HeaderViewType newView, const QString &text)
Definition: MatrixCommand.cpp:135
MatrixEditCellCommand::d_val_after
double d_val_after
Definition: MatrixCommand.h:49
Matrix::ViewType
ViewType
Definition: Matrix.h:82
MatrixSmoothCommand::d_backup
double * d_backup
Definition: MatrixCommand.h:226
MatrixSmoothCommand::MatrixSmoothCommand
MatrixSmoothCommand(MatrixModel *model, double *data, const QString &text)
Definition: MatrixCommand.cpp:516
MatrixPasteCommand
Definition: MatrixCommand.h:309
MatrixSetSizeCommand::d_backup
double * d_backup
Definition: MatrixCommand.h:213
MatrixSetViewCommand
Definition: MatrixCommand.h:65
MatrixUndoCommand::d_operation
Matrix::Operation d_operation
Definition: MatrixCommand.h:250
MatrixSetFormulaCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:60
MatrixPasteCommand::d_start_col
int d_start_col
Definition: MatrixCommand.h:321
MatrixEditCellCommand::d_val_before
double d_val_before
Definition: MatrixCommand.h:48
MatrixSetFormulaCommand::MatrixSetFormulaCommand
MatrixSetFormulaCommand(Matrix *m, const QString &oldFormula, const QString &newFormula, const QString &text)
Definition: MatrixCommand.cpp:77
MatrixSymmetryOperation::MatrixSymmetryOperation
MatrixSymmetryOperation(MatrixModel *model, Matrix::Operation op, const QString &text)
Definition: MatrixCommand.cpp:731
MatrixDeleteColsCommand::d_data
double * d_data
Definition: MatrixCommand.h:187
MatrixDeleteColsCommand::d_start_col
int d_start_col
Definition: MatrixCommand.h:186
MatrixSetColorMapCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:145
MatrixPasteCommand::d_cols
int d_cols
Definition: MatrixCommand.h:321
MatrixSmoothCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:524
MatrixInsertRowCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:172
MatrixImportAsciiCommand::d_path
QString d_path
Definition: MatrixCommand.h:290
MatrixSetSizeCommand::~MatrixSetSizeCommand
~MatrixSetSizeCommand()
Definition: MatrixCommand.h:206
Matrix::Operation
Operation
Definition: Matrix.h:79
MatrixSetSizeCommand::MatrixSetSizeCommand
MatrixSetSizeCommand(MatrixModel *model, const QSize &oldSize, const QSize &newSize, double *data, const QString &text)
Definition: MatrixCommand.cpp:469
MatrixSetViewCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:124
MatrixUndoCommand::d_data
double * d_data
Definition: MatrixCommand.h:252
MatrixEditCellCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:61
MatrixSetPrecisionCommand::d_old_prec
int d_old_prec
Definition: MatrixCommand.h:117
MatrixSetColorMapCommand::MatrixSetColorMapCommand
MatrixSetColorMapCommand(Matrix *m, Matrix::ColorMapType d_map_type_before, const LinearColorMap &d_map_before, Matrix::ColorMapType d_map_type_after, const LinearColorMap &d_map_after, const QString &text)
Definition: MatrixCommand.cpp:258
MatrixDeleteRowsCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:333
MatrixPasteCommand::d_end_row
int d_end_row
Definition: MatrixCommand.h:321
MatrixImportAsciiCommand::d_mode
Matrix::ImportMode d_mode
Definition: MatrixCommand.h:293
MatrixSetColorMapCommand
Definition: MatrixCommand.h:135
MatrixSetSizeCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:488
MatrixSetHeaderViewCommand::d_new_view
Matrix::HeaderViewType d_new_view
Definition: MatrixCommand.h:89
MatrixPasteCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:832
MatrixPasteCommand::d_rows
int d_rows
Definition: MatrixCommand.h:321
MatrixModel.h
MatrixEditCellCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:46
MatrixDeleteRowsCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:159
LinearColorMap
A customized QwtLinearColorMap.
Definition: LinearColorMap.h:39
MatrixSetPrecisionCommand
Definition: MatrixCommand.h:105
MatrixSetHeaderViewCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:145
MatrixSetHeaderViewCommand::d_old_view
Matrix::HeaderViewType d_old_view
Definition: MatrixCommand.h:88
MatrixImportAsciiCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:719
MatrixSetFormulaCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:95
MatrixSetCoordinatesCommand::d_old_xs
double d_old_xs
Definition: MatrixCommand.h:131
MatrixUndoCommand::d_end_col
int d_end_col
Definition: MatrixCommand.h:251
MatrixSetSizeCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:479
MatrixSetViewCommand::d_old_view
Matrix::ViewType d_old_view
Definition: MatrixCommand.h:74
MatrixPasteCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:821
MatrixImportAsciiCommand::MatrixImportAsciiCommand
MatrixImportAsciiCommand(const QString &fname, const QString &sep, int ignoredLines, bool stripSpaces, bool simplifySpaces, const QString &commentString, Matrix::ImportMode importAs, const QLocale &locale, int endLineChar, int maxRows, MatrixModel *model, int startRow, int endRow, int startCol, int endCol, double *data, const QString &text)
Definition: MatrixCommand.cpp:700
MatrixDeleteColsCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:415
MatrixSetSizeCommand
Definition: MatrixCommand.h:202
MatrixInsertRowCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:382
MatrixSetCoordinatesCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:130
MatrixImportAsciiCommand::d_locale
QLocale d_locale
Definition: MatrixCommand.h:294
MatrixSetColorMapCommand::d_map_after
LinearColorMap d_map_after
Definition: MatrixCommand.h:147
MatrixEditCellCommand::d_index
QModelIndex d_index
Definition: MatrixCommand.h:47
MatrixSetColorMapCommand::d_map_before
LinearColorMap d_map_before
Definition: MatrixCommand.h:147
MatrixEditCellCommand::MatrixEditCellCommand
MatrixEditCellCommand(MatrixModel *model, const QModelIndex &index, double valBefore, double valAfter, const QString &text)
Definition: MatrixCommand.cpp:37
MatrixSmoothCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:546
MatrixImportAsciiCommand::d_strip_spaces
bool d_strip_spaces
Definition: MatrixCommand.h:292
MatrixFftCommand
Definition: MatrixCommand.h:255
MatrixSetFormulaCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:87
MatrixSymmetryOperation::d_operation
Matrix::Operation d_operation
Definition: MatrixCommand.h:306
MatrixPasteCommand::d_clipboard_data
double * d_clipboard_data
Definition: MatrixCommand.h:322
MatrixSymmetryOperation::redo
virtual void redo()
Definition: MatrixCommand.cpp:739
MatrixSetPrecisionCommand::d_old_format
QChar d_old_format
Definition: MatrixCommand.h:115
MatrixSetPrecisionCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:204
MatrixImportAsciiCommand::d_comment
QString d_comment
Definition: MatrixCommand.h:290
MatrixSetColorMapCommand::d_map_type_before
Matrix::ColorMapType d_map_type_before
Definition: MatrixCommand.h:146
MatrixSmoothCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:225
MatrixSetFormulaCommand
Definition: MatrixCommand.h:52
MatrixImportAsciiCommand::d_simplify_spaces
bool d_simplify_spaces
Definition: MatrixCommand.h:292
MatrixImportAsciiCommand
Definition: MatrixCommand.h:279
MatrixInsertRowCommand::MatrixInsertRowCommand
MatrixInsertRowCommand(MatrixModel *model, int startRow, const QString &text)
Definition: MatrixCommand.cpp:364
MatrixDeleteRowsCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:343
MatrixInsertColCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:456
Matrix.h
Matrix
Matrix worksheet class.
Definition: Matrix.h:57
MatrixSetViewCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:116
MatrixDeleteRowsCommand::MatrixDeleteRowsCommand
MatrixDeleteRowsCommand(MatrixModel *model, int startRow, int count, double *data, const QString &text)
Definition: MatrixCommand.cpp:323
MatrixSetColWidthCommand::MatrixSetColWidthCommand
MatrixSetColWidthCommand(Matrix *m, int oldWidth, int newWidth, const QString &text)
Definition: MatrixCommand.cpp:164
MatrixSetImageCommand::d_old_view
Matrix::ViewType d_old_view
Definition: MatrixCommand.h:276
MatrixSetCoordinatesCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:247
MatrixSetCoordinatesCommand::d_new_ys
double d_new_ys
Definition: MatrixCommand.h:132
MatrixSymmetryOperation::undo
virtual void undo()
Definition: MatrixCommand.cpp:769
MatrixSetSizeCommand::d_old_size
QSize d_old_size
Definition: MatrixCommand.h:212
MatrixSetImageCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:676
Matrix::ImportMode
ImportMode
Definition: Matrix.h:84
MatrixFftCommand::MatrixFftCommand
MatrixFftCommand(bool inverse, MatrixModel *model, int startRow, int endRow, int startCol, int endCol, double *data, const QString &text)
Definition: MatrixCommand.cpp:650
MatrixSetPrecisionCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:114
MatrixUndoCommand::MatrixUndoCommand
MatrixUndoCommand(MatrixModel *model, Matrix::Operation op, int startRow, int endRow, int startCol, int endCol, double *data, const QString &text)
Definition: MatrixCommand.cpp:590
MatrixUndoCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:604
MatrixSetColWidthCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:173
MatrixSetColWidthCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:100
MatrixSetHeaderViewCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:153
MatrixSetCoordinatesCommand::d_old_ye
double d_old_ye
Definition: MatrixCommand.h:131
MatrixSetColWidthCommand
Definition: MatrixCommand.h:92
MatrixSetColWidthCommand::d_new_width
int d_new_width
Definition: MatrixCommand.h:102
MatrixUndoCommand
Definition: MatrixCommand.h:239
MatrixEditCellCommand
Matrix commands used by the undo/redo framework.
Definition: MatrixCommand.h:37
MatrixUndoCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:249
MatrixPasteCommand::d_end_col
int d_end_col
Definition: MatrixCommand.h:321
MatrixPasteCommand::d_backup_data
double * d_backup_data
Definition: MatrixCommand.h:322
MatrixSetCoordinatesCommand::d_new_xs
double d_new_xs
Definition: MatrixCommand.h:132
MatrixSetColorMapCommand::d_map_type_after
Matrix::ColorMapType d_map_type_after
Definition: MatrixCommand.h:146
MatrixSetCoordinatesCommand::d_old_xe
double d_old_xe
Definition: MatrixCommand.h:131
MatrixImportAsciiCommand::d_ignore_lines
int d_ignore_lines
Definition: MatrixCommand.h:291
MatrixSetViewCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:73
MatrixImportAsciiCommand::d_max_rows
int d_max_rows
Definition: MatrixCommand.h:291
MatrixSetColorMapCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:272
MatrixDeleteColsCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:185
MatrixPasteCommand::d_old_cols
int d_old_cols
Definition: MatrixCommand.h:321
MatrixDeleteColsCommand::~MatrixDeleteColsCommand
~MatrixDeleteColsCommand()
Definition: MatrixCommand.h:180
MatrixSetCoordinatesCommand
Definition: MatrixCommand.h:121
MatrixEditCellCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:48
MatrixSetSizeCommand::d_new_size
QSize d_new_size
Definition: MatrixCommand.h:212
MatrixSetImageCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:686
MatrixDeleteColsCommand::d_count
int d_count
Definition: MatrixCommand.h:186
MatrixSetHeaderViewCommand::d_matrix
Matrix * d_matrix
Definition: MatrixCommand.h:87
MatrixSmoothCommand
Definition: MatrixCommand.h:216
MatrixResampleCommand
Definition: MatrixCommand.h:229
MatrixResampleCommand::d_method
int d_method
Definition: MatrixCommand.h:236
MatrixInsertRowCommand
Definition: MatrixCommand.h:164
MatrixPasteCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:320
MatrixInsertColCommand::MatrixInsertColCommand
MatrixInsertColCommand(MatrixModel *model, int startCol, const QString &text)
Definition: MatrixCommand.cpp:438
MatrixFftCommand::d_inverse
bool d_inverse
Definition: MatrixCommand.h:263
MatrixResampleCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:577
MatrixSetSizeCommand::d_model
MatrixModel * d_model
Definition: MatrixCommand.h:211
MatrixDeleteRowsCommand::d_start_row
int d_start_row
Definition: MatrixCommand.h:160
MatrixDeleteColsCommand::MatrixDeleteColsCommand
MatrixDeleteColsCommand(MatrixModel *model, int startCol, int count, double *data, const QString &text)
Definition: MatrixCommand.cpp:395
MatrixPasteCommand::MatrixPasteCommand
MatrixPasteCommand(MatrixModel *model, int startRow, int endRow, int startCol, int endCol, double *clipboardData, int rows, int cols, double *backupData, int oldRows, int oldCols, const QString &text)
Definition: MatrixCommand.cpp:802
MatrixImportAsciiCommand::d_end_line
int d_end_line
Definition: MatrixCommand.h:291
MatrixSetPrecisionCommand::d_new_prec
int d_new_prec
Definition: MatrixCommand.h:118
MatrixSetCoordinatesCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:239
MatrixSetFormulaCommand::d_old_formula
QString d_old_formula
Definition: MatrixCommand.h:61
MatrixPasteCommand::~MatrixPasteCommand
~MatrixPasteCommand()
Definition: MatrixCommand.h:315
MatrixInsertRowCommand::redo
virtual void redo()
Definition: MatrixCommand.cpp:372
MatrixSetColWidthCommand::undo
virtual void undo()
Definition: MatrixCommand.cpp:181
MatrixSetImageCommand::MatrixSetImageCommand
MatrixSetImageCommand(MatrixModel *model, const QImage &image, Matrix::ViewType oldView, int startRow, int endRow, int startCol, int endCol, double *data, const QString &text)
Definition: MatrixCommand.cpp:668
MatrixInsertColCommand
Definition: MatrixCommand.h:190
MatrixSetPrecisionCommand::d_new_format
QChar d_new_format
Definition: MatrixCommand.h:116
MatrixImportAsciiCommand::d_sep
QString d_sep
Definition: MatrixCommand.h:290
MatrixUndoCommand::d_end_row
int d_end_row
Definition: MatrixCommand.h:251
MatrixUndoCommand::d_start_row
int d_start_row
Definition: MatrixCommand.h:251
MatrixSetPrecisionCommand::MatrixSetPrecisionCommand
MatrixSetPrecisionCommand(Matrix *m, const QChar &oldFormat, const QChar &newFormat, int oldPrec, int newPrec, const QString &text)
Definition: MatrixCommand.cpp:192
Matrix::ColorMapType
ColorMapType
Definition: Matrix.h:83
MatrixSetViewCommand::MatrixSetViewCommand
MatrixSetViewCommand(Matrix *m, Matrix::ViewType oldView, Matrix::ViewType newView, const QString &text)
Definition: MatrixCommand.cpp:106