KoSetPropCommand< Property, Object, Function > Class Template Reference
#include <KoSetPropCommand.h>
Inheritance diagram for KoSetPropCommand< Property, Object, Function >:
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 >
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>
|
inline |
Definition at line 62 of file KoSetPropCommand.h.
◆ KoSetPropCommand() [2/2]
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inline |
Definition at line 63 of file KoSetPropCommand.h.
◆ ~KoSetPropCommand()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inlinevirtual |
Definition at line 66 of file KoSetPropCommand.h.
Member Function Documentation
◆ execute()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inlinevirtual |
Implements KCommand.
Definition at line 68 of file KoSetPropCommand.h.
◆ newProperty()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inline |
Definition at line 74 of file KoSetPropCommand.h.
◆ oldProperty()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inline |
Definition at line 72 of file KoSetPropCommand.h.
◆ setNewProperty()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inline |
Definition at line 73 of file KoSetPropCommand.h.
◆ setOldProperty()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inline |
Definition at line 71 of file KoSetPropCommand.h.
◆ unexecute()
template<class Property, class Object, void(Object::*)(const Property &) Function>
|
inlinevirtual |
Implements KCommand.
Definition at line 69 of file KoSetPropCommand.h.
The documentation for this class was generated from the following file:
