#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::ProjectModifyStartTimeCmd:
Public Member Functions | |
ProjectModifyStartTimeCmd (Part *part, Project &node, QDateTime dt, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Project & | m_node |
QDateTime | newTime |
QDateTime | oldTime |
Definition at line 931 of file kptcommand.h.
KPlato::ProjectModifyStartTimeCmd::ProjectModifyStartTimeCmd | ( | Part * | part, | |
Project & | node, | |||
QDateTime | dt, | |||
QString | name = 0 | |||
) |
Definition at line 1909 of file kptcommand.cc.
References KPlato::NamedCommand::addSchScheduled(), and KPlato::Node::schedules().
void KPlato::ProjectModifyStartTimeCmd::execute | ( | ) |
Definition at line 1921 of file kptcommand.cc.
References m_node, newTime, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraintStartTime(), and KPlato::NamedCommand::setSchScheduled().
void KPlato::ProjectModifyStartTimeCmd::unexecute | ( | ) |
Definition at line 1927 of file kptcommand.cc.
References m_node, oldTime, KPlato::NamedCommand::setCommandType(), KPlato::Node::setConstraintStartTime(), and KPlato::NamedCommand::setSchScheduled().
Project& KPlato::ProjectModifyStartTimeCmd::m_node [private] |
QDateTime KPlato::ProjectModifyStartTimeCmd::newTime [private] |
QDateTime KPlato::ProjectModifyStartTimeCmd::oldTime [private] |