#include <MatrixCommand.h>
Public Member Functions | |
MatrixPasteCommand (MatrixModel *model, int startRow, int endRow, int startCol, int endCol, double *clipboardData, int rows, int cols, double *backupData, int oldRows, int oldCols, const QString &text) | |
virtual void | redo () |
virtual void | undo () |
~MatrixPasteCommand () | |
Private Attributes | |
double * | d_backup_data |
double * | d_clipboard_data |
int | d_cols |
int | d_end_col |
int | d_end_row |
MatrixModel * | d_model |
int | d_old_cols |
int | d_old_rows |
int | d_rows |
int | d_start_col |
int | d_start_row |
MatrixPasteCommand::MatrixPasteCommand | ( | MatrixModel * | model, | |
int | startRow, | |||
int | endRow, | |||
int | startCol, | |||
int | endCol, | |||
double * | clipboardData, | |||
int | rows, | |||
int | cols, | |||
double * | backupData, | |||
int | oldRows, | |||
int | oldCols, | |||
const QString & | text | |||
) |
References MatrixModel::matrix().
MatrixPasteCommand::~MatrixPasteCommand | ( | ) | [inline] |
References d_backup_data, and d_clipboard_data.
void MatrixPasteCommand::redo | ( | ) | [virtual] |
References d_clipboard_data, d_cols, d_model, d_rows, d_start_col, d_start_row, MatrixModel::matrix(), MatrixModel::pasteData(), and Matrix::resetView().
void MatrixPasteCommand::undo | ( | ) | [virtual] |
double * MatrixPasteCommand::d_backup_data [private] |
Referenced by undo(), and ~MatrixPasteCommand().
double* MatrixPasteCommand::d_clipboard_data [private] |
Referenced by redo(), and ~MatrixPasteCommand().
int MatrixPasteCommand::d_cols [private] |
Referenced by redo().
int MatrixPasteCommand::d_end_col [private] |
Referenced by undo().
int MatrixPasteCommand::d_end_row [private] |
Referenced by undo().
MatrixModel* MatrixPasteCommand::d_model [private] |
int MatrixPasteCommand::d_old_cols [private] |
Referenced by undo().
int MatrixPasteCommand::d_old_rows [private] |
Referenced by undo().
int MatrixPasteCommand::d_rows [private] |
Referenced by redo().
int MatrixPasteCommand::d_start_col [private] |
int MatrixPasteCommand::d_start_row [private] |