PropertyContainer::SetPropertyCommand Class Reference

#include <PropertyContainer.h>

Inheritance diagram for PropertyContainer::SetPropertyCommand:
Inheritance graph
Collaboration diagram for PropertyContainer::SetPropertyCommand:
Collaboration graph

Public Member Functions

 SetPropertyCommand (PropertyContainer *pc, const PropertyName &pn, int)
 
virtual ~SetPropertyCommand ()
 
void execute () override
 
void unexecute () override
 
QString getName () const override
 

Protected Attributes

PropertyContainerm_pc
 
PropertyName m_pn
 
int m_value
 
int m_oldValue
 

Detailed Description

Definition at line 166 of file PropertyContainer.h.

Constructor & Destructor Documentation

PropertyContainer::SetPropertyCommand::SetPropertyCommand ( PropertyContainer pc,
const PropertyName pn,
int  value 
)

Definition at line 225 of file PropertyContainer.cpp.

virtual PropertyContainer::SetPropertyCommand::~SetPropertyCommand ( )
inlinevirtual

Definition at line 170 of file PropertyContainer.h.

References execute(), getName(), and unexecute().

Member Function Documentation

void PropertyContainer::SetPropertyCommand::execute ( )
overridevirtual
void PropertyContainer::SetPropertyCommand::unexecute ( )
overridevirtual

Implements Command.

Definition at line 243 of file PropertyContainer.cpp.

References m_oldValue, m_pc, m_pn, and PropertyContainer::setProperty().

Referenced by ~SetPropertyCommand().

QString PropertyContainer::SetPropertyCommand::getName ( ) const
overridevirtual

Implements Command.

Definition at line 249 of file PropertyContainer.cpp.

References m_pn.

Referenced by ~SetPropertyCommand().

Member Data Documentation

PropertyContainer* PropertyContainer::SetPropertyCommand::m_pc
protected

Definition at line 177 of file PropertyContainer.h.

Referenced by execute(), and unexecute().

PropertyName PropertyContainer::SetPropertyCommand::m_pn
protected

Definition at line 178 of file PropertyContainer.h.

Referenced by execute(), getName(), and unexecute().

int PropertyContainer::SetPropertyCommand::m_value
protected

Definition at line 179 of file PropertyContainer.h.

Referenced by execute().

int PropertyContainer::SetPropertyCommand::m_oldValue
protected

Definition at line 180 of file PropertyContainer.h.

Referenced by execute(), and unexecute().


The documentation for this class was generated from the following files: