SciDAVis  1.D4
Public Member Functions | Private Attributes
ColumnReplaceDateTimesCmd Class Reference

#include <columncommands.h>

List of all members.

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::Privated_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.

Detailed Description

Replace a range of date-times in a date-time column


Constructor & Destructor Documentation

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.


Member Function Documentation

void ColumnReplaceDateTimesCmd::redo ( )
virtual
void ColumnReplaceDateTimesCmd::undo ( )
virtual

Member Data Documentation

Column::Private* ColumnReplaceDateTimesCmd::d_col
private

The private column data to modify.

Referenced by redo(), and undo().

bool ColumnReplaceDateTimesCmd::d_copied
private

Status flag.

Referenced by ColumnReplaceDateTimesCmd(), and redo().

int ColumnReplaceDateTimesCmd::d_first
private

The first row to replace.

Referenced by redo(), and undo().

QList<QDateTime> ColumnReplaceDateTimesCmd::d_new_values
private

The new values.

Referenced by redo().

QList<QDateTime> ColumnReplaceDateTimesCmd::d_old_values
private

The old values.

Referenced by redo(), and undo().

int ColumnReplaceDateTimesCmd::d_row_count
private

The old number of rows.

Referenced by redo(), and undo().

IntervalAttribute<bool> ColumnReplaceDateTimesCmd::d_validity
private

The old validity.

Referenced by redo(), and undo().


The documentation for this class was generated from the following files: