#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::CalendarModifyNameCmd:
Public Member Functions | |
CalendarModifyNameCmd (Part *part, Calendar *cal, QString newvalue, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Calendar * | m_cal |
QString | m_newvalue |
QString | m_oldvalue |
Definition at line 98 of file kptcommand.h.
KPlato::CalendarModifyNameCmd::CalendarModifyNameCmd | ( | Part * | part, | |
Calendar * | cal, | |||
QString | newvalue, | |||
QString | name = 0 | |||
) |
Definition at line 161 of file kptcommand.cc.
References m_newvalue, m_oldvalue, and KPlato::Calendar::name().
void KPlato::CalendarModifyNameCmd::execute | ( | ) |
Definition at line 170 of file kptcommand.cc.
References m_cal, m_newvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Calendar::setName().
void KPlato::CalendarModifyNameCmd::unexecute | ( | ) |
Definition at line 176 of file kptcommand.cc.
References m_cal, m_oldvalue, KPlato::NamedCommand::setCommandType(), and KPlato::Calendar::setName().
Calendar* KPlato::CalendarModifyNameCmd::m_cal [private] |
QString KPlato::CalendarModifyNameCmd::m_newvalue [private] |
QString KPlato::CalendarModifyNameCmd::m_oldvalue [private] |
Definition at line 108 of file kptcommand.h.
Referenced by CalendarModifyNameCmd(), and unexecute().