![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
This template class allows undo and redo of a change made to a data table. More...
#include <DataTable.h>
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 |
This template class allows undo and redo of a change made to a data table.
Definition at line 351 of file DataTable.h.
Tinkercell::ChangeDataCommand< T >::ChangeDataCommand | ( | const QString & | name, |
DataTable< T > * | oldDataTable, | ||
const DataTable< T > * | newDataTable | ||
) |
constructor
name | of the change |
old | tables |
new | tables |
Tinkercell::ChangeDataCommand< T >::ChangeDataCommand | ( | const QString & | name, |
const QList< DataTable< T > * > & | oldDataTable, | ||
const QList< DataTable< T > * > & | newDataTable | ||
) |
constructor
name | of the change |
old | table |
new | table |
void Tinkercell::ChangeDataCommand< T >::redo | ( | ) |
redo the changes
void Tinkercell::ChangeDataCommand< T >::undo | ( | ) |
undo the changes
QList< DataTable<T> > Tinkercell::ChangeDataCommand< T >::newDataTable |
new tables
Definition at line 373 of file DataTable.h.
QList< DataTable<T> > Tinkercell::ChangeDataCommand< T >::oldDataTable |
old tables
Definition at line 375 of file DataTable.h.
QList< DataTable<T>* > Tinkercell::ChangeDataCommand< T >::targetDataTable |
pointers to target tables
Definition at line 371 of file DataTable.h.