KPlato::ModifyResourceNameCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ModifyResourceNameCmd:

[legend]
List of all members.

Public Member Functions

 ModifyResourceNameCmd (Part *part, Resource *resource, QString value, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Resourcem_resource
QString m_newvalue
QString m_oldvalue

Detailed Description

Definition at line 605 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::ModifyResourceNameCmd::ModifyResourceNameCmd ( Part part,
Resource resource,
QString  value,
QString  name = 0 
)

Definition at line 1260 of file kptcommand.cc.

References m_oldvalue, and KPlato::Resource::name().


Member Function Documentation

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().


Member Data Documentation

Resource* KPlato::ModifyResourceNameCmd::m_resource [private]

Definition at line 614 of file kptcommand.h.

Referenced by execute(), and unexecute().

QString KPlato::ModifyResourceNameCmd::m_newvalue [private]

Definition at line 615 of file kptcommand.h.

Referenced by execute().

QString KPlato::ModifyResourceNameCmd::m_oldvalue [private]

Definition at line 616 of file kptcommand.h.

Referenced by ModifyResourceNameCmd(), and unexecute().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:46 2006 for KPlato by  doxygen 1.5.1-p1