TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Static Public Member Functions
Tinkercell::RenameCommand Class Reference

this command changes the name of the handle of an item. important: use full name of the items! More...

#include <UndoCommands.h>

Inheritance diagram for Tinkercell::RenameCommand:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::RenameCommand:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

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

Parameters:
QStringname of command
NetworkHandle* network
QListaffected items
QStringold name
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QString &  oldname,
const QString &  newname,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
QStringold name
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QList< ItemHandle * > &  allItems,
const QList< QString > &  oldname,
const QList< QString > &  newname,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
QListaffected items
QStringold name
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QList< QString > &  oldname,
const QList< QString > &  newname,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
QStringold name
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
ItemHandle itemHandle,
const QString &  newname,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
ItemHandle*target item handle
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QList< ItemHandle * > &  allItems,
ItemHandle item,
const QString &  newname,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
QList<ItemHandle*>&all the items to modify if they contain the new name
ItemHandle*target item
QStringnew name
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QList< ItemHandle * > &  itemhandles,
const QList< QString > &  newnames,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname of command
NetworkHandle* network
QList<ItemHandle*>&target items
QList<QString>new names (one for each item)
boolmake 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.

Here is the call graph for this function:

Tinkercell::RenameCommand::RenameCommand ( const QString &  name,
NetworkHandle net,
const QList< ItemHandle * > &  allItems,
const QList< ItemHandle * > &  itemhandles,
const QList< QString > &  newnames,
bool  forceUnique = true 
)

constructor

Parameters:
QStringname 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)
boolmake 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.

Here is the call graph for this function:


Member Function Documentation

void Tinkercell::RenameCommand::findReplaceAllHandleData ( QList< ItemHandle * > &  allItems,
const QString &  oldName,
const QString &  newName 
) [static]

Definition at line 2277 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::RenameCommand::redo ( )

Definition at line 2435 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Tinkercell::RenameCommand::substituteString ( QString &  targetValue,
const QString &  oldName,
const QString &  newName 
) [static]

Definition at line 2240 of file UndoCommands.cpp.

Here is the caller graph for this function:

void Tinkercell::RenameCommand::undo ( )

Definition at line 2641 of file UndoCommands.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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