SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
ColumnSetModeCmd (Column::Private *col, SciDAVis::ColumnMode mode, AbstractFilter *conversion_filter, QUndoCommand *parent=0) | |
Ctor. | |
virtual void | redo () |
Execute the command. | |
virtual void | undo () |
Undo the command. | |
~ColumnSetModeCmd () | |
Dtor. |
Private Attributes | |
Column::Private * | d_col |
The private column data to modify. | |
AbstractFilter * | d_conversion_filter |
Filter to use for converting existing data. | |
bool | d_executed |
A status flag. | |
SciDAVis::ColumnMode | d_mode |
The new mode. | |
void * | d_new_data |
Pointer to new data. | |
AbstractSimpleFilter * | d_new_in_filter |
The new input filter. | |
AbstractSimpleFilter * | d_new_out_filter |
The new output filter. | |
SciDAVis::ColumnDataType | d_new_type |
The new data type. | |
IntervalAttribute< bool > | d_new_validity |
The new validity information. | |
void * | d_old_data |
Pointer to old data. | |
AbstractSimpleFilter * | d_old_in_filter |
The old input filter. | |
SciDAVis::ColumnMode | d_old_mode |
The previous mode. | |
AbstractSimpleFilter * | d_old_out_filter |
The old output filter. | |
SciDAVis::ColumnDataType | d_old_type |
The old data type. | |
IntervalAttribute< bool > | d_old_validity |
The old validity information. | |
bool | d_undone |
A status flag. |
Set the column mode
ColumnSetModeCmd::ColumnSetModeCmd | ( | Column::Private * | col, |
SciDAVis::ColumnMode | mode, | ||
AbstractFilter * | conversion_filter, | ||
QUndoCommand * | parent = 0 |
||
) |
Ctor.
References d_executed, d_undone, and Column::Private::name().
ColumnSetModeCmd::~ColumnSetModeCmd | ( | ) |
Dtor.
References d_conversion_filter, d_new_data, d_new_type, d_old_data, d_old_type, d_undone, SciDAVis::TypeDouble, SciDAVis::TypeQDateTime, and SciDAVis::TypeQString.
|
virtual |
Execute the command.
References Column::Private::columnMode(), d_col, d_conversion_filter, d_executed, d_mode, d_new_data, d_new_in_filter, d_new_out_filter, d_new_type, d_new_validity, d_old_data, d_old_in_filter, d_old_mode, d_old_out_filter, d_old_type, d_old_validity, d_undone, Column::Private::dataPointer(), Column::Private::dataType(), Column::Private::inputFilter(), Column::Private::outputFilter(), Column::Private::replaceModeData(), Column::Private::setColumnMode(), and Column::Private::validityAttribute().
|
virtual |
Undo the command.
References d_col, d_old_data, d_old_in_filter, d_old_mode, d_old_out_filter, d_old_type, d_old_validity, d_undone, and Column::Private::replaceModeData().
|
private |
|
private |
Filter to use for converting existing data.
Referenced by redo(), and ~ColumnSetModeCmd().
|
private |
A status flag.
Referenced by ColumnSetModeCmd(), and redo().
|
private |
The new mode.
Referenced by redo().
|
private |
Pointer to new data.
Referenced by redo(), and ~ColumnSetModeCmd().
|
private |
The new input filter.
Referenced by redo().
|
private |
The new output filter.
Referenced by redo().
|
private |
The new data type.
Referenced by redo(), and ~ColumnSetModeCmd().
|
private |
The new validity information.
Referenced by redo().
|
private |
Pointer to old data.
Referenced by redo(), undo(), and ~ColumnSetModeCmd().
|
private |
|
private |
|
private |
|
private |
The old data type.
Referenced by redo(), undo(), and ~ColumnSetModeCmd().
|
private |
|
private |
A status flag.
Referenced by ColumnSetModeCmd(), redo(), undo(), and ~ColumnSetModeCmd().