SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
ColumnFullCopyCmd (Column::Private *col, const AbstractColumn *src, QUndoCommand *parent=0) | |
Ctor. | |
virtual void | redo () |
Execute the command. | |
virtual void | undo () |
Undo the command. | |
~ColumnFullCopyCmd () | |
Dtor. |
Private Attributes | |
Column::Private * | d_backup |
A backup column. | |
Column * | d_backup_owner |
A dummy owner for the backup column. | |
Column::Private * | d_col |
The private column data to modify. | |
const AbstractColumn * | d_src |
The column to copy. |
Copy a complete column
ColumnFullCopyCmd::ColumnFullCopyCmd | ( | Column::Private * | col, |
const AbstractColumn * | src, | ||
QUndoCommand * | parent = 0 |
||
) |
Ctor.
References Column::Private::name().
ColumnFullCopyCmd::~ColumnFullCopyCmd | ( | ) |
Dtor.
References d_backup, and d_backup_owner.
|
virtual |
Execute the command.
References AbstractColumn::columnMode(), Column::Private::copy(), Column::copy(), d_backup, d_backup_owner, d_col, d_src, Column::Private::dataPointer(), Column::Private::invalidIntervals(), Column::Private::replaceData(), and Column::Private::validityAttribute().
|
virtual |
Undo the command.
References d_backup, d_col, Column::Private::dataPointer(), Column::Private::replaceData(), and Column::Private::validityAttribute().
|
private |
A backup column.
Referenced by redo(), undo(), and ~ColumnFullCopyCmd().
|
private |
A dummy owner for the backup column.
This is needed because a Column::Private must have an owner. We want access to the Column::Private object to access its data pointer for fast data replacement without too much copying.
Referenced by redo(), and ~ColumnFullCopyCmd().
|
private |
|
private |
The column to copy.
Referenced by redo().