#include <MatrixCommand.h>
Public Member Functions | |
MatrixEditCellCommand (MatrixModel *model, const QModelIndex &index, double valBefore, double valAfter, const QString &text) | |
virtual void | redo () |
virtual void | undo () |
Private Attributes | |
QModelIndex | d_index |
MatrixModel * | d_model |
double | d_val_after |
double | d_val_before |
MatrixEditCellCommand::MatrixEditCellCommand | ( | MatrixModel * | model, | |
const QModelIndex & | index, | |||
double | valBefore, | |||
double | valAfter, | |||
const QString & | text | |||
) |
References MatrixModel::matrix().
void MatrixEditCellCommand::redo | ( | ) | [virtual] |
void MatrixEditCellCommand::undo | ( | ) | [virtual] |
QModelIndex MatrixEditCellCommand::d_index [private] |
MatrixModel* MatrixEditCellCommand::d_model [private] |
double MatrixEditCellCommand::d_val_after [private] |
Referenced by redo().
double MatrixEditCellCommand::d_val_before [private] |
Referenced by undo().