lib

KoSetPropCommand< Property, Object, Function > Class Template Reference

#include <KoSetPropCommand.h>

Inheritance diagram for KoSetPropCommand< Property, Object, Function >:
KNamedCommand KCommand

Public Member Functions

 KoSetPropCommand (Object *object, const TQString &name)
 
 KoSetPropCommand (Object *object, const TQString &name, const Property &oldProperty, const Property &newProperty)
 
virtual void execute ()
 
virtual void unexecute ()
 
void setOldProperty (const Property &oldProperty)
 
const Property & oldProperty () const
 
void setNewProperty (const Property &newProperty)
 
const Property & newProperty () const
 
- Public Member Functions inherited from KNamedCommand
virtual TQString name () const
 
void setName (const TQString &name)
 

Additional Inherited Members

- Protected Member Functions inherited from KNamedCommand
 KNamedCommand (const TQString &name)
 

Detailed Description

template<class Property, class Object, void(Object::*)(const Property &) Function>
class KoSetPropCommand< Property, Object, Function >

Generic command to set a property on an object.

This variant is for non-trivial types, where the setter method takes a const reference.

Definition at line 59 of file KoSetPropCommand.h.

Constructor & Destructor Documentation

◆ KoSetPropCommand() [1/2]

template<class Property , class Object , void(Object::*)(const Property &) Function>
KoSetPropCommand< Property, Object, Function >::KoSetPropCommand ( Object *  object,
const TQString &  name 
)
inline

Definition at line 62 of file KoSetPropCommand.h.

◆ KoSetPropCommand() [2/2]

template<class Property , class Object , void(Object::*)(const Property &) Function>
KoSetPropCommand< Property, Object, Function >::KoSetPropCommand ( Object *  object,
const TQString &  name,
const Property &  oldProperty,
const Property &  newProperty 
)
inline

Definition at line 63 of file KoSetPropCommand.h.

◆ ~KoSetPropCommand()

template<class Property , class Object , void(Object::*)(const Property &) Function>
virtual KoSetPropCommand< Property, Object, Function >::~KoSetPropCommand ( )
inlinevirtual

Definition at line 66 of file KoSetPropCommand.h.

Member Function Documentation

◆ execute()

template<class Property , class Object , void(Object::*)(const Property &) Function>
virtual void KoSetPropCommand< Property, Object, Function >::execute ( )
inlinevirtual

Implements KCommand.

Definition at line 68 of file KoSetPropCommand.h.

◆ newProperty()

template<class Property , class Object , void(Object::*)(const Property &) Function>
const Property & KoSetPropCommand< Property, Object, Function >::newProperty ( ) const
inline

Definition at line 74 of file KoSetPropCommand.h.

◆ oldProperty()

template<class Property , class Object , void(Object::*)(const Property &) Function>
const Property & KoSetPropCommand< Property, Object, Function >::oldProperty ( ) const
inline

Definition at line 72 of file KoSetPropCommand.h.

◆ setNewProperty()

template<class Property , class Object , void(Object::*)(const Property &) Function>
void KoSetPropCommand< Property, Object, Function >::setNewProperty ( const Property &  newProperty)
inline

Definition at line 73 of file KoSetPropCommand.h.

◆ setOldProperty()

template<class Property , class Object , void(Object::*)(const Property &) Function>
void KoSetPropCommand< Property, Object, Function >::setOldProperty ( const Property &  oldProperty)
inline

Definition at line 71 of file KoSetPropCommand.h.

◆ unexecute()

template<class Property , class Object , void(Object::*)(const Property &) Function>
virtual void KoSetPropCommand< Property, Object, Function >::unexecute ( )
inlinevirtual

Implements KCommand.

Definition at line 69 of file KoSetPropCommand.h.


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