#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ModifyResourceNameCmd:
Public Member Functions | |
ModifyResourceNameCmd (Part *part, Resource *resource, QString value, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Resource * | m_resource |
QString | m_newvalue |
QString | m_oldvalue |
Definition at line 605 of file kptcommand.h.
void KPlato::ModifyResourceNameCmd::execute | ( | ) |
Definition at line 1267 of file kptcommand.cc.
References m_newvalue, m_resource, KPlato::NamedCommand::setCommandType(), and KPlato::Resource::setName().
void KPlato::ModifyResourceNameCmd::unexecute | ( | ) |
Definition at line 1273 of file kptcommand.cc.
References m_oldvalue, m_resource, KPlato::NamedCommand::setCommandType(), and KPlato::Resource::setName().
QString KPlato::ModifyResourceNameCmd::m_newvalue [private] |
QString KPlato::ModifyResourceNameCmd::m_oldvalue [private] |
Definition at line 616 of file kptcommand.h.
Referenced by ModifyResourceNameCmd(), and unexecute().