#include <MatrixCommand.h>
Public Member Functions | |
MatrixUndoCommand (MatrixModel *model, Matrix::Operation op, int startRow, int endRow, int startCol, int endCol, double *data, const QString &text) | |
virtual void | redo () |
virtual void | undo () |
~MatrixUndoCommand () | |
Protected Attributes | |
double * | d_data |
int | d_end_col |
int | d_end_row |
MatrixModel * | d_model |
Matrix::Operation | d_operation |
int | d_start_col |
int | d_start_row |
MatrixUndoCommand::MatrixUndoCommand | ( | MatrixModel * | model, | |
Matrix::Operation | op, | |||
int | startRow, | |||
int | endRow, | |||
int | startCol, | |||
int | endCol, | |||
double * | data, | |||
const QString & | text | |||
) |
References MatrixModel::matrix().
MatrixUndoCommand::~MatrixUndoCommand | ( | ) | [inline] |
References d_data.
void MatrixUndoCommand::redo | ( | ) | [virtual] |
Reimplemented in MatrixFftCommand, MatrixSetImageCommand, and MatrixImportAsciiCommand.
References MatrixModel::calculate(), Matrix::Calculate, MatrixModel::clear(), Matrix::Clear, d_end_col, d_end_row, d_model, d_operation, d_start_col, d_start_row, MatrixModel::matrix(), MatrixModel::muParserCalculate(), Matrix::MuParserCalculate, and Matrix::resetView().
void MatrixUndoCommand::undo | ( | ) | [virtual] |
Reimplemented in MatrixSetImageCommand.
References MatrixModel::columnCount(), d_data, d_end_col, d_end_row, d_model, d_start_col, d_start_row, MatrixModel::dataVector(), MatrixModel::matrix(), and Matrix::resetView().
double* MatrixUndoCommand::d_data [protected] |
Referenced by undo(), and ~MatrixUndoCommand().
int MatrixUndoCommand::d_end_col [protected] |
Referenced by redo(), MatrixSetImageCommand::undo(), and undo().
int MatrixUndoCommand::d_end_row [protected] |
Referenced by redo(), MatrixSetImageCommand::undo(), and undo().
MatrixModel* MatrixUndoCommand::d_model [protected] |
Matrix::Operation MatrixUndoCommand::d_operation [protected] |
Referenced by redo().
int MatrixUndoCommand::d_start_col [protected] |
Referenced by redo(), MatrixSetImageCommand::undo(), and undo().
int MatrixUndoCommand::d_start_row [protected] |
Referenced by redo(), MatrixSetImageCommand::undo(), and undo().