![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command changes the name of the handle of an item. important: use full name of the items! More...
#include <UndoCommands.h>
Public Member Functions | |
virtual | ~RenameCommand () |
RenameCommand (const QString &name, NetworkHandle *, const QList< ItemHandle * > &allItems, const QString &oldname, const QString &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QString &oldname, const QString &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QList< ItemHandle * > &allItems, const QList< QString > &oldname, const QList< QString > &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QList< QString > &oldname, const QList< QString > &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, ItemHandle *itemHandle, const QString &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QList< ItemHandle * > &allItems, ItemHandle *item, const QString &newname, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QList< ItemHandle * > &itemhandles, const QList< QString > &newnames, bool forceUnique=true) | |
constructor | |
RenameCommand (const QString &name, NetworkHandle *, const QList< ItemHandle * > &allItems, const QList< ItemHandle * > &itemhandles, const QList< QString > &newnames, bool forceUnique=true) | |
constructor | |
void | redo () |
void | undo () |
Static Public Member Functions | |
static void | findReplaceAllHandleData (QList< ItemHandle * > &allItems, const QString &oldName, const QString &newName) |
static void | substituteString (QString &targetValue, const QString &oldName, const QString &newName) |
this command changes the name of the handle of an item. important: use full name of the items!
Definition at line 428 of file UndoCommands.h.
Tinkercell::RenameCommand::~RenameCommand | ( | ) | [virtual] |
Definition at line 2428 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< ItemHandle * > & | allItems, | ||
const QString & | oldname, | ||
const QString & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QList | affected items |
QString | old name |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2019 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QString & | oldname, | ||
const QString & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QString | old name |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2044 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< ItemHandle * > & | allItems, | ||
const QList< QString > & | oldname, | ||
const QList< QString > & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QList | affected items |
QString | old name |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2061 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< QString > & | oldname, | ||
const QList< QString > & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QString | old name |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2085 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
ItemHandle * | itemHandle, | ||
const QString & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
ItemHandle* | target item handle |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 1989 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< ItemHandle * > & | allItems, | ||
ItemHandle * | item, | ||
const QString & | newname, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QList<ItemHandle*>& | all the items to modify if they contain the new name |
ItemHandle* | target item |
QString | new name |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2101 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< ItemHandle * > & | itemhandles, | ||
const QList< QString > & | newnames, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QList<ItemHandle*>& | target items |
QList<QString> | new names (one for each item) |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2146 of file UndoCommands.cpp.
Tinkercell::RenameCommand::RenameCommand | ( | const QString & | name, |
NetworkHandle * | net, | ||
const QList< ItemHandle * > & | allItems, | ||
const QList< ItemHandle * > & | itemhandles, | ||
const QList< QString > & | newnames, | ||
bool | forceUnique = true |
||
) |
constructor
QString | name of command |
NetworkHandle | * network |
QList<ItemHandle*>& | all the items to modify if they contain the new name |
QList<ItemHandle*>& | target items |
QList<QString> | new names (one for each item) |
bool | make sure that the new names are unique (default = true). Use false if you already made this check or want to rename to something that already exists |
Definition at line 2189 of file UndoCommands.cpp.
void Tinkercell::RenameCommand::findReplaceAllHandleData | ( | QList< ItemHandle * > & | allItems, |
const QString & | oldName, | ||
const QString & | newName | ||
) | [static] |
Definition at line 2277 of file UndoCommands.cpp.
void Tinkercell::RenameCommand::redo | ( | ) |
Definition at line 2435 of file UndoCommands.cpp.
void Tinkercell::RenameCommand::substituteString | ( | QString & | targetValue, |
const QString & | oldName, | ||
const QString & | newName | ||
) | [static] |
void Tinkercell::RenameCommand::undo | ( | ) |
Definition at line 2641 of file UndoCommands.cpp.