SciDAVis
1.D4
|
#include <columncommands.h>
Public Member Functions | |
ColumnSetDateTimeCmd (Column::Private *col, int row, const QDateTime &new_value, QUndoCommand *parent=0) | |
Ctor. | |
virtual void | redo () |
Execute the command. | |
virtual void | undo () |
Undo the command. | |
~ColumnSetDateTimeCmd () | |
Dtor. |
Private Attributes | |
Column::Private * | d_col |
The private column data to modify. | |
QDateTime | d_new_value |
The new value. | |
QDateTime | 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 of a date-time cell
ColumnSetDateTimeCmd::ColumnSetDateTimeCmd | ( | Column::Private * | col, |
int | row, | ||
const QDateTime & | new_value, | ||
QUndoCommand * | parent = 0 |
||
) |
Ctor.
References Column::Private::name().
ColumnSetDateTimeCmd::~ColumnSetDateTimeCmd | ( | ) |
Dtor.
|
virtual |
Execute the command.
References d_col, d_new_value, d_old_value, d_row, d_row_count, d_validity, Column::Private::dateTimeAt(), Column::Private::rowCount(), Column::Private::setDateTimeAt(), and Column::Private::validityAttribute().
|
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::setDateTimeAt().
|
private |
|
private |
The new value.
Referenced by redo().
|
private |
|
private |
|
private |