#include <MatrixCommand.h>
Public Member Functions | |
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 Attributes | |
QImage | d_image |
Matrix::ViewType | d_old_view |
MatrixSetImageCommand::MatrixSetImageCommand | ( | MatrixModel * | model, | |
const QImage & | image, | |||
Matrix::ViewType | oldView, | |||
int | startRow, | |||
int | endRow, | |||
int | startCol, | |||
int | endCol, | |||
double * | data, | |||
const QString & | text | |||
) |
void MatrixSetImageCommand::redo | ( | ) | [virtual] |
Reimplemented from MatrixUndoCommand.
References d_image, MatrixUndoCommand::d_model, Matrix::displayImage(), Matrix::ImageView, MatrixModel::matrix(), MatrixModel::setImage(), and Matrix::setViewType().
void MatrixSetImageCommand::undo | ( | ) | [virtual] |
QImage MatrixSetImageCommand::d_image [private] |
Referenced by redo().
Referenced by undo().