#include <kptcommand.h>
Inherits KPlato::NamedCommand.
Inherited by KPlato::AddResourceGroupCmd.
Inheritance diagram for KPlato::RemoveResourceGroupCmd:
Public Member Functions | |
RemoveResourceGroupCmd (Part *part, ResourceGroup *group, QString name=0) | |
~RemoveResourceGroupCmd () | |
void | execute () |
void | unexecute () |
Protected Attributes | |
ResourceGroup * | m_group |
bool | m_mine |
Definition at line 730 of file kptcommand.h.
KPlato::RemoveResourceGroupCmd::RemoveResourceGroupCmd | ( | Part * | part, | |
ResourceGroup * | group, | |||
QString | name = 0 | |||
) |
KPlato::RemoveResourceGroupCmd::~RemoveResourceGroupCmd | ( | ) |
void KPlato::RemoveResourceGroupCmd::execute | ( | ) |
Reimplemented in KPlato::AddResourceGroupCmd.
Definition at line 1511 of file kptcommand.cc.
References m_group, m_mine, KPlato::ResourceGroupRequest::parent(), KPlato::ResourceGroup::project(), KPlato::ResourceGroup::requests(), KPlato::NamedCommand::setCommandType(), KPlato::ResourceRequestCollection::takeRequest(), and KPlato::Project::takeResourceGroup().
Referenced by KPlato::AddResourceGroupCmd::unexecute().
void KPlato::RemoveResourceGroupCmd::unexecute | ( | ) |
Reimplemented in KPlato::AddResourceGroupCmd.
Definition at line 1527 of file kptcommand.cc.
References KPlato::ResourceRequestCollection::addRequest(), KPlato::Project::addResourceGroup(), m_group, m_mine, KPlato::ResourceGroupRequest::parent(), KPlato::ResourceGroup::project(), KPlato::ResourceGroup::requests(), and KPlato::NamedCommand::setCommandType().
Referenced by KPlato::AddResourceGroupCmd::execute().
ResourceGroup* KPlato::RemoveResourceGroupCmd::m_group [protected] |
Definition at line 740 of file kptcommand.h.
Referenced by execute(), unexecute(), and ~RemoveResourceGroupCmd().
bool KPlato::RemoveResourceGroupCmd::m_mine [protected] |
Definition at line 741 of file kptcommand.h.
Referenced by KPlato::AddResourceGroupCmd::AddResourceGroupCmd(), execute(), RemoveResourceGroupCmd(), unexecute(), and ~RemoveResourceGroupCmd().