KPlato::ProjectModifyEndTimeCmd Class Reference

#include <kptcommand.h>

Inherits KPlato::NamedCommand.

Inheritance diagram for KPlato::ProjectModifyEndTimeCmd:

[legend]
List of all members.

Public Member Functions

 ProjectModifyEndTimeCmd (Part *part, Project &project, QDateTime dt, QString name=0)
void execute ()
void unexecute ()

Private Attributes

Projectm_node
QDateTime newTime
QDateTime oldTime

Detailed Description

Definition at line 945 of file kptcommand.h.


Constructor & Destructor Documentation

KPlato::ProjectModifyEndTimeCmd::ProjectModifyEndTimeCmd ( Part part,
Project project,
QDateTime  dt,
QString  name = 0 
)

Definition at line 1934 of file kptcommand.cc.

References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().


Member Function Documentation

void KPlato::ProjectModifyEndTimeCmd::execute (  ) 

Definition at line 1945 of file kptcommand.cc.

References m_node, newTime, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraintEndTime(), KPlato::Node::setEndTime(), and KPlato::NamedCommand::setSchScheduled().

void KPlato::ProjectModifyEndTimeCmd::unexecute (  ) 

Definition at line 1952 of file kptcommand.cc.

References m_node, oldTime, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraintEndTime(), and KPlato::NamedCommand::setSchScheduled().


Member Data Documentation

Project& KPlato::ProjectModifyEndTimeCmd::m_node [private]

Definition at line 953 of file kptcommand.h.

Referenced by execute(), and unexecute().

QDateTime KPlato::ProjectModifyEndTimeCmd::newTime [private]

Definition at line 954 of file kptcommand.h.

Referenced by execute().

QDateTime KPlato::ProjectModifyEndTimeCmd::oldTime [private]

Definition at line 955 of file kptcommand.h.

Referenced by unexecute().


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