|
SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
| ColumnClearCmd (Column::Private *col, QUndoCommand *parent=0) | |
| Ctor. | |
| virtual void | redo () |
| Execute the command. | |
| virtual void | undo () |
| Undo the command. | |
| ~ColumnClearCmd () | |
| Dtor. | |
Private Attributes | |
| Column::Private * | d_col |
| The private column data to modify. | |
| void * | d_data |
| Pointer to the old data pointer. | |
| void * | d_empty_data |
| Pointer to an empty data vector. | |
| SciDAVis::ColumnDataType | d_type |
| The column's data type. | |
| bool | d_undone |
| Status flag. | |
| IntervalAttribute< bool > | d_validity |
| The old validity. | |
Clear the column
| ColumnClearCmd::ColumnClearCmd | ( | Column::Private * | col, |
| QUndoCommand * | parent = 0 |
||
| ) |
Ctor.
References d_empty_data, d_undone, and Column::Private::name().
| ColumnClearCmd::~ColumnClearCmd | ( | ) |
Dtor.
References d_data, d_empty_data, d_type, d_undone, SciDAVis::TypeDouble, SciDAVis::TypeQDateTime, and SciDAVis::TypeQString.
|
virtual |
Execute the command.
References d_col, d_data, d_empty_data, d_type, d_undone, d_validity, Column::Private::dataPointer(), Column::Private::dataType(), Column::Private::replaceData(), SciDAVis::TypeDouble, SciDAVis::TypeQDateTime, SciDAVis::TypeQString, and Column::Private::validityAttribute().
|
virtual |
Undo the command.
References d_col, d_data, d_undone, d_validity, and Column::Private::replaceData().
|
private |
|
private |
Pointer to the old data pointer.
Referenced by redo(), undo(), and ~ColumnClearCmd().
|
private |
Pointer to an empty data vector.
Referenced by ColumnClearCmd(), redo(), and ~ColumnClearCmd().
|
private |
The column's data type.
Referenced by redo(), and ~ColumnClearCmd().
|
private |
Status flag.
Referenced by ColumnClearCmd(), redo(), undo(), and ~ColumnClearCmd().
|
private |
1.8.1