#include <kptcommand.h>
Inherited by KPlato::AddAccountCmd, KPlato::AddRelationCmd, KPlato::AddResourceCmd, KPlato::AddResourceGroupRequestCmd, KPlato::AddResourceRequestCmd, KPlato::CalculateProjectCmd, KPlato::CalendarAddCmd, KPlato::CalendarAddDayCmd, KPlato::CalendarDeleteCmd, KPlato::CalendarModifyDayCmd, KPlato::CalendarModifyNameCmd, KPlato::CalendarModifyParentCmd, KPlato::CalendarModifyWeekdayCmd, KPlato::CalendarRemoveDayCmd, KPlato::DeleteRelationCmd, KPlato::EffortModifyOptimisticRatioCmd, KPlato::EffortModifyPessimisticRatioCmd, KPlato::EffortModifyRiskCmd, KPlato::ModifyAccountDescriptionCmd, KPlato::ModifyDefaultAccountCmd, KPlato::ModifyEffortCmd, KPlato::ModifyEffortTypeCmd, KPlato::ModifyRelationLagCmd, KPlato::ModifyRelationTypeCmd, KPlato::ModifyResourceAvailableFromCmd, KPlato::ModifyResourceAvailableUntilCmd, KPlato::ModifyResourceCalendarCmd, KPlato::ModifyResourceEmailCmd, KPlato::ModifyResourceGroupNameCmd, KPlato::ModifyResourceInitialsCmd, KPlato::ModifyResourceNameCmd, KPlato::ModifyResourceNormalRateCmd, KPlato::ModifyResourceOvertimeRateCmd, KPlato::ModifyResourceTypeCmd, KPlato::ModifyResourceUnitsCmd, KPlato::ModifyStandardWorktimeDayCmd, KPlato::ModifyStandardWorktimeMonthCmd, KPlato::ModifyStandardWorktimeWeekCmd, KPlato::ModifyStandardWorktimeYearCmd, KPlato::NodeDeleteCmd, KPlato::NodeIndentCmd, KPlato::NodeModifyConstraintCmd, KPlato::NodeModifyConstraintEndTimeCmd, KPlato::NodeModifyConstraintStartTimeCmd, KPlato::NodeModifyDescriptionCmd, KPlato::NodeModifyEndTimeCmd, KPlato::NodeModifyIdCmd, KPlato::NodeModifyLeaderCmd, KPlato::NodeModifyNameCmd, KPlato::NodeModifyRunningAccountCmd, KPlato::NodeModifyShutdownAccountCmd, KPlato::NodeModifyShutdownCostCmd, KPlato::NodeModifyStartTimeCmd, KPlato::NodeModifyStartupAccountCmd, KPlato::NodeModifyStartupCostCmd, KPlato::NodeMoveDownCmd, KPlato::NodeMoveUpCmd, KPlato::NodeUnindentCmd, KPlato::ProjectModifyConstraintCmd, KPlato::ProjectModifyEndTimeCmd, KPlato::ProjectModifyStartTimeCmd, KPlato::RecalculateProjectCmd, KPlato::RemoveAccountCmd, KPlato::RemoveResourceGroupCmd, KPlato::RemoveResourceGroupRequestCmd, KPlato::RemoveResourceRequestCmd, KPlato::RenameAccountCmd, KPlato::SubtaskAddCmd, KPlato::TaskAddCmd, and KPlato::TaskModifyProgressCmd.
Inheritance diagram for KPlato::NamedCommand:
Public Member Functions | |
NamedCommand (Part *part, QString name) | |
void | setCommandType (int type) |
Protected Member Functions | |
void | setSchDeleted () |
void | setSchDeleted (bool state) |
void | setSchScheduled () |
void | setSchScheduled (bool state) |
void | addSchScheduled (Schedule *sch) |
void | addSchDeleted (Schedule *sch) |
Protected Attributes | |
QMap< Schedule *, bool > | m_schedules |
Private Attributes | |
Part * | m_part |
Definition at line 52 of file kptcommand.h.
KPlato::NamedCommand::NamedCommand | ( | Part * | part, | |
QString | name | |||
) | [inline] |
Definition at line 55 of file kptcommand.h.
void KPlato::NamedCommand::setCommandType | ( | int | type | ) |
Definition at line 40 of file kptcommand.cc.
References m_part, and KPlato::Part::setCommandType().
Referenced by KPlato::ModifyStandardWorktimeDayCmd::execute(), KPlato::ModifyStandardWorktimeWeekCmd::execute(), KPlato::ModifyStandardWorktimeMonthCmd::execute(), KPlato::ModifyStandardWorktimeYearCmd::execute(), KPlato::RecalculateProjectCmd::execute(), KPlato::CalculateProjectCmd::execute(), KPlato::ProjectModifyEndTimeCmd::execute(), KPlato::ProjectModifyStartTimeCmd::execute(), KPlato::ProjectModifyConstraintCmd::execute(), KPlato::ModifyDefaultAccountCmd::execute(), KPlato::NodeModifyShutdownAccountCmd::execute(), KPlato::NodeModifyStartupAccountCmd::execute(), KPlato::NodeModifyRunningAccountCmd::execute(), KPlato::NodeModifyShutdownCostCmd::execute(), KPlato::NodeModifyStartupCostCmd::execute(), KPlato::ModifyAccountDescriptionCmd::execute(), KPlato::RenameAccountCmd::execute(), KPlato::RemoveAccountCmd::execute(), KPlato::AddAccountCmd::execute(), KPlato::TaskModifyProgressCmd::execute(), KPlato::ModifyResourceGroupNameCmd::execute(), KPlato::RemoveResourceGroupCmd::execute(), KPlato::ModifyResourceCalendarCmd::execute(), KPlato::ModifyResourceOvertimeRateCmd::execute(), KPlato::ModifyResourceNormalRateCmd::execute(), KPlato::ModifyResourceAvailableUntilCmd::execute(), KPlato::ModifyResourceAvailableFromCmd::execute(), KPlato::ModifyResourceUnitsCmd::execute(), KPlato::ModifyResourceTypeCmd::execute(), KPlato::ModifyResourceEmailCmd::execute(), KPlato::ModifyResourceInitialsCmd::execute(), KPlato::ModifyResourceNameCmd::execute(), KPlato::AddResourceCmd::execute(), KPlato::RemoveResourceGroupRequestCmd::execute(), KPlato::AddResourceGroupRequestCmd::execute(), KPlato::EffortModifyRiskCmd::execute(), KPlato::ModifyEffortTypeCmd::execute(), KPlato::EffortModifyPessimisticRatioCmd::execute(), KPlato::EffortModifyOptimisticRatioCmd::execute(), KPlato::ModifyEffortCmd::execute(), KPlato::RemoveResourceRequestCmd::execute(), KPlato::AddResourceRequestCmd::execute(), KPlato::ModifyRelationLagCmd::execute(), KPlato::ModifyRelationTypeCmd::execute(), KPlato::DeleteRelationCmd::execute(), KPlato::AddRelationCmd::execute(), KPlato::NodeMoveDownCmd::execute(), KPlato::NodeMoveUpCmd::execute(), KPlato::NodeUnindentCmd::execute(), KPlato::NodeIndentCmd::execute(), KPlato::NodeModifyIdCmd::execute(), KPlato::NodeModifyEndTimeCmd::execute(), KPlato::NodeModifyStartTimeCmd::execute(), KPlato::NodeModifyConstraintEndTimeCmd::execute(), KPlato::NodeModifyConstraintStartTimeCmd::execute(), KPlato::NodeModifyConstraintCmd::execute(), KPlato::NodeModifyDescriptionCmd::execute(), KPlato::NodeModifyLeaderCmd::execute(), KPlato::NodeModifyNameCmd::execute(), KPlato::SubtaskAddCmd::execute(), KPlato::TaskAddCmd::execute(), KPlato::NodeDeleteCmd::execute(), KPlato::CalendarModifyWeekdayCmd::execute(), KPlato::CalendarModifyDayCmd::execute(), KPlato::CalendarRemoveDayCmd::execute(), KPlato::CalendarAddDayCmd::execute(), KPlato::CalendarModifyParentCmd::execute(), KPlato::CalendarModifyNameCmd::execute(), KPlato::CalendarDeleteCmd::execute(), KPlato::CalendarAddCmd::execute(), KPlato::ModifyStandardWorktimeDayCmd::unexecute(), KPlato::ModifyStandardWorktimeWeekCmd::unexecute(), KPlato::ModifyStandardWorktimeMonthCmd::unexecute(), KPlato::ModifyStandardWorktimeYearCmd::unexecute(), KPlato::RecalculateProjectCmd::unexecute(), KPlato::CalculateProjectCmd::unexecute(), KPlato::ProjectModifyEndTimeCmd::unexecute(), KPlato::ProjectModifyStartTimeCmd::unexecute(), KPlato::ProjectModifyConstraintCmd::unexecute(), KPlato::ModifyDefaultAccountCmd::unexecute(), KPlato::NodeModifyShutdownAccountCmd::unexecute(), KPlato::NodeModifyStartupAccountCmd::unexecute(), KPlato::NodeModifyRunningAccountCmd::unexecute(), KPlato::NodeModifyShutdownCostCmd::unexecute(), KPlato::NodeModifyStartupCostCmd::unexecute(), KPlato::ModifyAccountDescriptionCmd::unexecute(), KPlato::RenameAccountCmd::unexecute(), KPlato::RemoveAccountCmd::unexecute(), KPlato::AddAccountCmd::unexecute(), KPlato::TaskModifyProgressCmd::unexecute(), KPlato::ModifyResourceGroupNameCmd::unexecute(), KPlato::RemoveResourceGroupCmd::unexecute(), KPlato::ModifyResourceCalendarCmd::unexecute(), KPlato::ModifyResourceOvertimeRateCmd::unexecute(), KPlato::ModifyResourceNormalRateCmd::unexecute(), KPlato::ModifyResourceAvailableUntilCmd::unexecute(), KPlato::ModifyResourceAvailableFromCmd::unexecute(), KPlato::ModifyResourceUnitsCmd::unexecute(), KPlato::ModifyResourceTypeCmd::unexecute(), KPlato::ModifyResourceEmailCmd::unexecute(), KPlato::ModifyResourceInitialsCmd::unexecute(), KPlato::ModifyResourceNameCmd::unexecute(), KPlato::AddResourceCmd::unexecute(), KPlato::RemoveResourceGroupRequestCmd::unexecute(), KPlato::AddResourceGroupRequestCmd::unexecute(), KPlato::EffortModifyRiskCmd::unexecute(), KPlato::ModifyEffortTypeCmd::unexecute(), KPlato::EffortModifyPessimisticRatioCmd::unexecute(), KPlato::EffortModifyOptimisticRatioCmd::unexecute(), KPlato::ModifyEffortCmd::unexecute(), KPlato::RemoveResourceRequestCmd::unexecute(), KPlato::AddResourceRequestCmd::unexecute(), KPlato::ModifyRelationLagCmd::unexecute(), KPlato::ModifyRelationTypeCmd::unexecute(), KPlato::DeleteRelationCmd::unexecute(), KPlato::AddRelationCmd::unexecute(), KPlato::NodeMoveDownCmd::unexecute(), KPlato::NodeMoveUpCmd::unexecute(), KPlato::NodeUnindentCmd::unexecute(), KPlato::NodeIndentCmd::unexecute(), KPlato::NodeModifyIdCmd::unexecute(), KPlato::NodeModifyEndTimeCmd::unexecute(), KPlato::NodeModifyStartTimeCmd::unexecute(), KPlato::NodeModifyConstraintEndTimeCmd::unexecute(), KPlato::NodeModifyConstraintStartTimeCmd::unexecute(), KPlato::NodeModifyConstraintCmd::unexecute(), KPlato::NodeModifyDescriptionCmd::unexecute(), KPlato::NodeModifyLeaderCmd::unexecute(), KPlato::NodeModifyNameCmd::unexecute(), KPlato::SubtaskAddCmd::unexecute(), KPlato::TaskAddCmd::unexecute(), KPlato::NodeDeleteCmd::unexecute(), KPlato::CalendarModifyWeekdayCmd::unexecute(), KPlato::CalendarModifyDayCmd::unexecute(), KPlato::CalendarRemoveDayCmd::unexecute(), KPlato::CalendarAddDayCmd::unexecute(), KPlato::CalendarModifyParentCmd::unexecute(), KPlato::CalendarModifyNameCmd::unexecute(), KPlato::CalendarDeleteCmd::unexecute(), and KPlato::CalendarAddCmd::unexecute().
void KPlato::NamedCommand::setSchDeleted | ( | ) | [protected] |
void KPlato::NamedCommand::setSchDeleted | ( | bool | state | ) | [protected] |
void KPlato::NamedCommand::setSchScheduled | ( | ) | [protected] |
Definition at line 62 of file kptcommand.cc.
References m_schedules.
Referenced by KPlato::ProjectModifyEndTimeCmd::execute(), KPlato::ProjectModifyStartTimeCmd::execute(), KPlato::ProjectModifyConstraintCmd::execute(), KPlato::ModifyResourceCalendarCmd::execute(), KPlato::ModifyResourceAvailableUntilCmd::execute(), KPlato::ModifyResourceAvailableFromCmd::execute(), KPlato::ModifyResourceUnitsCmd::execute(), KPlato::ModifyResourceTypeCmd::execute(), KPlato::RemoveResourceCmd::execute(), KPlato::EffortModifyRiskCmd::execute(), KPlato::ModifyEffortTypeCmd::execute(), KPlato::EffortModifyPessimisticRatioCmd::execute(), KPlato::EffortModifyOptimisticRatioCmd::execute(), KPlato::ModifyEffortCmd::execute(), KPlato::RemoveResourceRequestCmd::execute(), KPlato::AddResourceRequestCmd::execute(), KPlato::ModifyRelationLagCmd::execute(), KPlato::ModifyRelationTypeCmd::execute(), KPlato::DeleteRelationCmd::execute(), KPlato::AddRelationCmd::execute(), KPlato::NodeModifyConstraintEndTimeCmd::execute(), KPlato::NodeModifyConstraintStartTimeCmd::execute(), KPlato::NodeModifyConstraintCmd::execute(), KPlato::NodeDeleteCmd::execute(), KPlato::CalendarModifyWeekdayCmd::execute(), KPlato::CalendarModifyDayCmd::execute(), KPlato::CalendarRemoveDayCmd::execute(), KPlato::CalendarAddDayCmd::execute(), KPlato::CalendarModifyParentCmd::execute(), KPlato::CalendarDeleteCmd::execute(), KPlato::ProjectModifyEndTimeCmd::unexecute(), KPlato::ProjectModifyStartTimeCmd::unexecute(), KPlato::ProjectModifyConstraintCmd::unexecute(), KPlato::ModifyResourceCalendarCmd::unexecute(), KPlato::ModifyResourceAvailableUntilCmd::unexecute(), KPlato::ModifyResourceAvailableFromCmd::unexecute(), KPlato::ModifyResourceUnitsCmd::unexecute(), KPlato::ModifyResourceTypeCmd::unexecute(), KPlato::RemoveResourceCmd::unexecute(), KPlato::EffortModifyRiskCmd::unexecute(), KPlato::ModifyEffortTypeCmd::unexecute(), KPlato::EffortModifyPessimisticRatioCmd::unexecute(), KPlato::EffortModifyOptimisticRatioCmd::unexecute(), KPlato::ModifyEffortCmd::unexecute(), KPlato::RemoveResourceRequestCmd::unexecute(), KPlato::AddResourceRequestCmd::unexecute(), KPlato::ModifyRelationLagCmd::unexecute(), KPlato::ModifyRelationTypeCmd::unexecute(), KPlato::DeleteRelationCmd::unexecute(), KPlato::AddRelationCmd::unexecute(), KPlato::NodeModifyConstraintEndTimeCmd::unexecute(), KPlato::NodeModifyConstraintStartTimeCmd::unexecute(), KPlato::NodeModifyConstraintCmd::unexecute(), KPlato::NodeDeleteCmd::unexecute(), KPlato::CalendarModifyWeekdayCmd::unexecute(), KPlato::CalendarModifyDayCmd::unexecute(), KPlato::CalendarRemoveDayCmd::unexecute(), KPlato::CalendarAddDayCmd::unexecute(), KPlato::CalendarModifyParentCmd::unexecute(), and KPlato::CalendarDeleteCmd::unexecute().
void KPlato::NamedCommand::setSchScheduled | ( | bool | state | ) | [protected] |
void KPlato::NamedCommand::addSchScheduled | ( | Schedule * | sch | ) | [protected] |
Definition at line 78 of file kptcommand.cc.
References KPlato::Schedule::appointments(), KPlato::Schedule::id(), KPlato::Schedule::isScheduled(), m_schedules, KPlato::Appointment::node(), and KPlato::Appointment::resource().
Referenced by KPlato::AddRelationCmd::AddRelationCmd(), KPlato::CalendarAddDayCmd::CalendarAddDayCmd(), KPlato::CalendarDeleteCmd::CalendarDeleteCmd(), KPlato::CalendarModifyDayCmd::CalendarModifyDayCmd(), KPlato::CalendarModifyParentCmd::CalendarModifyParentCmd(), KPlato::CalendarModifyWeekdayCmd::CalendarModifyWeekdayCmd(), KPlato::CalendarRemoveDayCmd::CalendarRemoveDayCmd(), KPlato::DeleteRelationCmd::DeleteRelationCmd(), KPlato::EffortModifyOptimisticRatioCmd::EffortModifyOptimisticRatioCmd(), KPlato::EffortModifyPessimisticRatioCmd::EffortModifyPessimisticRatioCmd(), KPlato::EffortModifyRiskCmd::EffortModifyRiskCmd(), KPlato::ModifyEffortCmd::ModifyEffortCmd(), KPlato::ModifyEffortTypeCmd::ModifyEffortTypeCmd(), KPlato::ModifyRelationLagCmd::ModifyRelationLagCmd(), KPlato::ModifyRelationTypeCmd::ModifyRelationTypeCmd(), KPlato::ModifyResourceAvailableFromCmd::ModifyResourceAvailableFromCmd(), KPlato::ModifyResourceAvailableUntilCmd::ModifyResourceAvailableUntilCmd(), KPlato::ModifyResourceCalendarCmd::ModifyResourceCalendarCmd(), KPlato::ModifyResourceTypeCmd::ModifyResourceTypeCmd(), KPlato::ModifyResourceUnitsCmd::ModifyResourceUnitsCmd(), KPlato::NodeDeleteCmd::NodeDeleteCmd(), KPlato::NodeModifyConstraintCmd::NodeModifyConstraintCmd(), KPlato::NodeModifyConstraintEndTimeCmd::NodeModifyConstraintEndTimeCmd(), KPlato::NodeModifyConstraintStartTimeCmd::NodeModifyConstraintStartTimeCmd(), KPlato::ProjectModifyConstraintCmd::ProjectModifyConstraintCmd(), KPlato::ProjectModifyEndTimeCmd::ProjectModifyEndTimeCmd(), KPlato::ProjectModifyStartTimeCmd::ProjectModifyStartTimeCmd(), KPlato::RemoveResourceCmd::RemoveResourceCmd(), and KPlato::RemoveResourceRequestCmd::RemoveResourceRequestCmd().
void KPlato::NamedCommand::addSchDeleted | ( | Schedule * | sch | ) | [protected] |
Definition at line 90 of file kptcommand.cc.
References KPlato::Schedule::appointments(), KPlato::Schedule::id(), KPlato::Schedule::isDeleted(), m_schedules, KPlato::Appointment::node(), and KPlato::Appointment::resource().
QMap<Schedule*, bool> KPlato::NamedCommand::m_schedules [protected] |
Definition at line 69 of file kptcommand.h.
Referenced by addSchDeleted(), addSchScheduled(), setSchDeleted(), and setSchScheduled().
Part* KPlato::NamedCommand::m_part [private] |