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

#include <columncommands.h>

List of all members.

Public Member Functions

 ColumnRemoveRowsCmd (Column::Private *col, int first, int count, QUndoCommand *parent=0)
 Ctor.
virtual void redo ()
 Execute the command.
virtual void undo ()
 Undo the command.
 ~ColumnRemoveRowsCmd ()
 Dtor.

Private Attributes

Column::Privated_backup
 Column saving the removed rows.
Columnd_backup_owner
 A dummy owner for the backup column.
Column::Privated_col
 The private column data to modify.
int d_count
 The number of rows to be removed.
int d_data_row_count
 Number of removed rows actually containing data.
int d_first
 The first row.
IntervalAttribute< QString > d_formulas
 Backup of the formula attribute.
IntervalAttribute< bool > d_masking
 Backup of the masking attribute.
int d_old_size
 The number of rows before the removal.

Constructor & Destructor Documentation

ColumnRemoveRowsCmd::ColumnRemoveRowsCmd ( Column::Private col,
int  first,
int  count,
QUndoCommand *  parent = 0 
)

Ctor.

References Column::Private::name().

ColumnRemoveRowsCmd::~ColumnRemoveRowsCmd ( )

Dtor.

References d_backup, and d_backup_owner.


Member Function Documentation

void ColumnRemoveRowsCmd::redo ( )
virtual
void ColumnRemoveRowsCmd::undo ( )
virtual

Member Data Documentation

Column::Private* ColumnRemoveRowsCmd::d_backup
private

Column saving the removed rows.

Referenced by redo(), undo(), and ~ColumnRemoveRowsCmd().

Column* ColumnRemoveRowsCmd::d_backup_owner
private

A dummy owner for the backup column.

This is needed because a Column::Private must have an owner. We want access to the Column::Private object to access its data pointer for fast data replacement without too much copying.

Referenced by redo(), and ~ColumnRemoveRowsCmd().

Column::Private* ColumnRemoveRowsCmd::d_col
private

The private column data to modify.

Referenced by redo(), and undo().

int ColumnRemoveRowsCmd::d_count
private

The number of rows to be removed.

Referenced by redo(), and undo().

int ColumnRemoveRowsCmd::d_data_row_count
private

Number of removed rows actually containing data.

Referenced by redo(), and undo().

int ColumnRemoveRowsCmd::d_first
private

The first row.

Referenced by redo(), and undo().

IntervalAttribute<QString> ColumnRemoveRowsCmd::d_formulas
private

Backup of the formula attribute.

Referenced by redo(), and undo().

IntervalAttribute<bool> ColumnRemoveRowsCmd::d_masking
private

Backup of the masking attribute.

Referenced by redo(), and undo().

int ColumnRemoveRowsCmd::d_old_size
private

The number of rows before the removal.

Referenced by redo(), and undo().


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