|
SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
| ColumnSetValueCmd (Column::Private *col, int row, double new_value, QUndoCommand *parent=0) | |
| Ctor. | |
| virtual void | redo () |
| Execute the command. | |
| virtual void | undo () |
| Undo the command. | |
| ~ColumnSetValueCmd () | |
| Dtor. | |
Private Attributes | |
| Column::Private * | d_col |
| The private column data to modify. | |
| double | d_new_value |
| The new value. | |
| double | d_old_value |
| The old value. | |
| int | d_row |
| The row to modify. | |
| int | d_row_count |
| The old number of rows. | |
| IntervalAttribute< bool > | d_validity |
| The old validity. | |
Set the value for a double cell
| ColumnSetValueCmd::ColumnSetValueCmd | ( | Column::Private * | col, |
| int | row, | ||
| double | new_value, | ||
| QUndoCommand * | parent = 0 |
||
| ) |
Ctor.
References Column::Private::name().
| ColumnSetValueCmd::~ColumnSetValueCmd | ( | ) |
Dtor.
|
virtual |
Execute the command.
References d_col, d_new_value, d_old_value, d_row, d_row_count, d_validity, Column::Private::rowCount(), Column::Private::setValueAt(), Column::Private::validityAttribute(), and Column::Private::valueAt().
|
virtual |
Undo the command.
References d_col, d_old_value, d_row, d_row_count, d_validity, Column::Private::dataPointer(), Column::Private::replaceData(), Column::Private::resizeTo(), and Column::Private::setValueAt().
|
private |
|
private |
The new value.
Referenced by redo().
|
private |
|
private |
1.8.1