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