SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
ColumnReplaceValuesCmd (Column::Private *col, int first, const QVector< qreal > &new_values, QUndoCommand *parent=0) | |
Ctor. | |
virtual void | redo () |
Execute the command. | |
virtual void | undo () |
Undo the command. | |
~ColumnReplaceValuesCmd () | |
Dtor. |
Private Attributes | |
Column::Private * | d_col |
The private column data to modify. | |
bool | d_copied |
Status flag. | |
int | d_first |
The first row to replace. | |
QVector< qreal > | d_new_values |
The new values. | |
QVector< qreal > | d_old_values |
The old values. | |
int | d_row_count |
The old number of rows. | |
IntervalAttribute< bool > | d_validity |
The old validity. |
Replace a range of doubles in a double column
ColumnReplaceValuesCmd::ColumnReplaceValuesCmd | ( | Column::Private * | col, |
int | first, | ||
const QVector< qreal > & | new_values, | ||
QUndoCommand * | parent = 0 |
||
) |
Ctor.
References d_copied, and Column::Private::name().
ColumnReplaceValuesCmd::~ColumnReplaceValuesCmd | ( | ) |
Dtor.
|
virtual |
Execute the command.
References d_col, d_copied, d_first, d_new_values, d_old_values, d_row_count, d_validity, Column::Private::dataPointer(), Column::Private::replaceValues(), Column::Private::rowCount(), and Column::Private::validityAttribute().
|
virtual |
Undo the command.
References d_col, d_first, d_old_values, d_row_count, d_validity, Column::Private::dataPointer(), Column::Private::replaceData(), Column::Private::replaceValues(), and Column::Private::resizeTo().
|
private |
|
private |
Status flag.
Referenced by ColumnReplaceValuesCmd(), and redo().
|
private |
|
private |
The new values.
Referenced by redo().
|
private |
|
private |
|
private |