QtiPlot
0.9.8.2
|
Matrix commands used by the undo/redo framework. More...
#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 |
Matrix commands used by the undo/redo framework.
MatrixEditCellCommand::MatrixEditCellCommand | ( | MatrixModel * | model, |
const QModelIndex & | index, | ||
double | valBefore, | ||
double | valAfter, | ||
const QString & | text | ||
) |
References MatrixModel::matrix().
|
virtual |
References d_index, d_model, d_val_after, MatrixModel::matrix(), MdiSubWindow::notifyChanges(), Matrix::resetView(), and MatrixModel::setCell().
Referenced by MatrixDeleteColsCommand::~MatrixDeleteColsCommand(), MatrixDeleteRowsCommand::~MatrixDeleteRowsCommand(), MatrixPasteCommand::~MatrixPasteCommand(), MatrixSetSizeCommand::~MatrixSetSizeCommand(), MatrixSmoothCommand::~MatrixSmoothCommand(), and MatrixUndoCommand::~MatrixUndoCommand().
|
virtual |
References d_index, d_model, d_val_before, MatrixModel::matrix(), MdiSubWindow::notifyChanges(), Matrix::resetView(), and MatrixModel::setCell().
Referenced by MatrixDeleteColsCommand::~MatrixDeleteColsCommand(), MatrixDeleteRowsCommand::~MatrixDeleteRowsCommand(), MatrixPasteCommand::~MatrixPasteCommand(), MatrixSetSizeCommand::~MatrixSetSizeCommand(), MatrixSmoothCommand::~MatrixSmoothCommand(), and MatrixUndoCommand::~MatrixUndoCommand().
|
private |
|
private |
Referenced by redo().
|
private |
Referenced by undo().