TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Public Attributes
Tinkercell::ChangeDataCommand< T > Class Template Reference

This template class allows undo and redo of a change made to a data table. More...

#include <DataTable.h>

Inheritance diagram for Tinkercell::ChangeDataCommand< T >:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::ChangeDataCommand< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChangeDataCommand (const QString &name, DataTable< T > *oldDataTable, const DataTable< T > *newDataTable)
 constructor
 ChangeDataCommand (const QString &name, const QList< DataTable< T > * > &oldDataTable, const QList< DataTable< T > * > &newDataTable)
 constructor
void redo ()
 redo the changes
void undo ()
 undo the changes

Public Attributes

QList< DataTable< T > * > targetDataTable
 pointers to target tables
QList< DataTable< T > > newDataTable
 new tables
QList< DataTable< T > > oldDataTable
 old tables

Detailed Description

template<typename T>
class Tinkercell::ChangeDataCommand< T >

This template class allows undo and redo of a change made to a data table.

Definition at line 351 of file DataTable.h.


Constructor & Destructor Documentation

template<typename T>
Tinkercell::ChangeDataCommand< T >::ChangeDataCommand ( const QString &  name,
DataTable< T > *  oldDataTable,
const DataTable< T > *  newDataTable 
)

constructor

Parameters:
nameof the change
oldtables
newtables
template<typename T>
Tinkercell::ChangeDataCommand< T >::ChangeDataCommand ( const QString &  name,
const QList< DataTable< T > * > &  oldDataTable,
const QList< DataTable< T > * > &  newDataTable 
)

constructor

Parameters:
nameof the change
oldtable
newtable

Member Function Documentation

template<typename T>
void Tinkercell::ChangeDataCommand< T >::redo ( )

redo the changes

template<typename T>
void Tinkercell::ChangeDataCommand< T >::undo ( )

undo the changes


Member Data Documentation

template<typename T>
QList< DataTable<T> > Tinkercell::ChangeDataCommand< T >::newDataTable

new tables

Definition at line 373 of file DataTable.h.

template<typename T>
QList< DataTable<T> > Tinkercell::ChangeDataCommand< T >::oldDataTable

old tables

Definition at line 375 of file DataTable.h.

template<typename T>
QList< DataTable<T>* > Tinkercell::ChangeDataCommand< T >::targetDataTable

pointers to target tables

Definition at line 371 of file DataTable.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines