#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] |
Reimplemented from MatrixUndoCommand.
References MatrixUndoCommand::d_end_col, MatrixUndoCommand::d_end_row, MatrixUndoCommand::d_model, d_old_view, MatrixUndoCommand::d_start_col, MatrixUndoCommand::d_start_row, MatrixModel::matrix(), MatrixModel::setDimensions(), Matrix::setViewType(), and MatrixUndoCommand::undo().
QImage MatrixSetImageCommand::d_image [private] |
Referenced by redo().
Referenced by undo().
1.5.6