KPlato::CalendarModifyParentCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::CalendarModifyParentCmd:

[legend]
List of all members.

Public Member Functions

 CalendarModifyParentCmd (Part *part, Calendar *cal, Calendar *newvalue, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Calendarm_cal
Calendarm_newvalue
Calendarm_oldvalue

Detailed Description

Definition at line 111 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::CalendarModifyParentCmd::CalendarModifyParentCmd ( Part part,
Calendar cal,
Calendar newvalue,
QString  name = 0 
)

Definition at line 183 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), KPlato::Part::getProject(), m_newvalue, m_oldvalue, KPlato::Calendar::parent(), and KPlato::Node::schedules().


Member Function Documentation

void KPlato::CalendarModifyParentCmd::execute (  ) 

Definition at line 198 of file kptcommand.cc.

References m_cal, m_newvalue, KPlato::NamedCommand::setCommandType(), KPlato::Calendar::setParent(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::CalendarModifyParentCmd::unexecute (  ) 

Definition at line 204 of file kptcommand.cc.

References m_cal, m_oldvalue, KPlato::NamedCommand::setCommandType(), KPlato::Calendar::setParent(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

Calendar* KPlato::CalendarModifyParentCmd::m_cal [private]

Definition at line 119 of file kptcommand.h.

Referenced by execute(), and unexecute().

Calendar* KPlato::CalendarModifyParentCmd::m_newvalue [private]

Definition at line 120 of file kptcommand.h.

Referenced by CalendarModifyParentCmd(), and execute().

Calendar* KPlato::CalendarModifyParentCmd::m_oldvalue [private]

Definition at line 121 of file kptcommand.h.

Referenced by CalendarModifyParentCmd(), and unexecute().


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