SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
ColumnReplaceTextsCmd (Column::Private *col, int first, const QStringList &new_values, QUndoCommand *parent=0) | |
Ctor. | |
virtual void | redo () |
Execute the command. | |
virtual void | undo () |
Undo the command. | |
~ColumnReplaceTextsCmd () | |
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. | |
QStringList | d_new_values |
The new values. | |
QStringList | 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 strings in a string column
ColumnReplaceTextsCmd::ColumnReplaceTextsCmd | ( | Column::Private * | col, |
int | first, | ||
const QStringList & | new_values, | ||
QUndoCommand * | parent = 0 |
||
) |
Ctor.
References d_copied, and Column::Private::name().
ColumnReplaceTextsCmd::~ColumnReplaceTextsCmd | ( | ) |
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::replaceTexts(), 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::replaceTexts(), and Column::Private::resizeTo().
|
private |
|
private |
Status flag.
Referenced by ColumnReplaceTextsCmd(), and redo().
|
private |
|
private |
The new values.
Referenced by redo().
|
private |
|
private |
|
private |