QtiPlot  0.9.8.2
Public Member Functions | Private Attributes | List of all members
MatrixEditCellCommand Class Reference

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
MatrixModeld_model
double d_val_after
double d_val_before

Detailed Description

Matrix commands used by the undo/redo framework.

Constructor & Destructor Documentation

MatrixEditCellCommand::MatrixEditCellCommand ( MatrixModel model,
const QModelIndex &  index,
double  valBefore,
double  valAfter,
const QString &  text 
)

References MatrixModel::matrix().

Member Function Documentation

void MatrixEditCellCommand::redo ( )
virtual
void MatrixEditCellCommand::undo ( )
virtual

Member Data Documentation

QModelIndex MatrixEditCellCommand::d_index
private

Referenced by redo(), and undo().

MatrixModel* MatrixEditCellCommand::d_model
private

Referenced by redo(), and undo().

double MatrixEditCellCommand::d_val_after
private

Referenced by redo().

double MatrixEditCellCommand::d_val_before
private

Referenced by undo().


The documentation for this class was generated from the following files: