#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inheritance diagram for KPlato::CalculateProjectCmd:
Public Member Functions | |
CalculateProjectCmd (Part *part, Project &project, QString tname, int type, QString name=0) | |
void | execute () |
void | unexecute () |
Private Attributes | |
Project & | m_node |
QString | m_typename |
int | m_type |
Schedule * | newSchedule |
Schedule * | oldCurrent |
Definition at line 960 of file kptcommand.h.
KPlato::CalculateProjectCmd::CalculateProjectCmd | ( | Part * | part, | |
Project & | project, | |||
QString | tname, | |||
int | type, | |||
QString | name = 0 | |||
) |
Definition at line 1959 of file kptcommand.cc.
References KPlato::Node::currentSchedule(), and oldCurrent.
void KPlato::CalculateProjectCmd::execute | ( | ) |
Definition at line 1970 of file kptcommand.cc.
References KPlato::Project::calculate(), KPlato::Project::createSchedule(), m_node, m_type, m_typename, newSchedule, KPlato::NamedCommand::setCommandType(), KPlato::Node::setCurrentSchedulePtr(), and KPlato::Schedule::setDeleted().
void KPlato::CalculateProjectCmd::unexecute | ( | ) |
Definition at line 1983 of file kptcommand.cc.
References m_node, newSchedule, oldCurrent, KPlato::NamedCommand::setCommandType(), KPlato::Node::setCurrentSchedulePtr(), and KPlato::Schedule::setDeleted().
Project& KPlato::CalculateProjectCmd::m_node [private] |
QString KPlato::CalculateProjectCmd::m_typename [private] |
int KPlato::CalculateProjectCmd::m_type [private] |
Schedule* KPlato::CalculateProjectCmd::newSchedule [private] |
Schedule* KPlato::CalculateProjectCmd::oldCurrent [private] |