#include <MatrixCommand.h>
Public Member Functions | |
| MatrixSetSizeCommand (MatrixModel *model, const QSize &oldSize, const QSize &newSize, double *data, const QString &text) | |
| virtual void | redo () |
| virtual void | undo () |
| ~MatrixSetSizeCommand () | |
Private Attributes | |
| double * | d_backup |
| MatrixModel * | d_model |
| QSize | d_new_size |
| QSize | d_old_size |
| MatrixSetSizeCommand::MatrixSetSizeCommand | ( | MatrixModel * | model, | |
| const QSize & | oldSize, | |||
| const QSize & | newSize, | |||
| double * | data, | |||
| const QString & | text | |||
| ) |
References MatrixModel::matrix().
| MatrixSetSizeCommand::~MatrixSetSizeCommand | ( | ) | [inline] |
References d_backup.
| void MatrixSetSizeCommand::redo | ( | ) | [virtual] |
References d_model, d_new_size, MatrixModel::matrix(), Matrix::resetView(), and MatrixModel::setDimensions().
| void MatrixSetSizeCommand::undo | ( | ) | [virtual] |
double* MatrixSetSizeCommand::d_backup [private] |
Referenced by undo(), and ~MatrixSetSizeCommand().
MatrixModel* MatrixSetSizeCommand::d_model [private] |
QSize MatrixSetSizeCommand::d_new_size [private] |
Referenced by redo().
QSize MatrixSetSizeCommand::d_old_size [private] |
Referenced by undo().
1.5.6