#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ProjectModifyEndTimeCmd:
Public Member Functions | |
| ProjectModifyEndTimeCmd (Part *part, Project &project, QDateTime dt, QString name=0) | |
| void | execute () |
| void | unexecute () |
Private Attributes | |
| Project & | m_node |
| QDateTime | newTime |
| QDateTime | oldTime |
Definition at line 945 of file kptcommand.h.
| 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().
| 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().
Project& KPlato::ProjectModifyEndTimeCmd::m_node [private] |
QDateTime KPlato::ProjectModifyEndTimeCmd::newTime [private] |
QDateTime KPlato::ProjectModifyEndTimeCmd::oldTime [private] |
1.5.1-p1