#include <commands.h>
Public Member Functions | |
| PropertyCommand (WidgetPropertySet *set, const TQCString &wname, const TQVariant &oldValue, const TQVariant &value, const TQCString &property) | |
| PropertyCommand (WidgetPropertySet *set, const TQMap< TQCString, TQVariant > &oldvalues, const TQVariant &value, const TQCString &property) | |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual TQString | name () const |
| TQCString | property () const |
| void | setValue (const TQVariant &value) |
| const TQMap< TQCString, TQVariant > & | oldValues () const |
| virtual void | debug () |
Protected Attributes | |
| WidgetPropertySet * | m_propSet |
| TQVariant | m_value |
| TQMap< TQCString, TQVariant > | m_oldvalues |
| TQCString | m_property |
Detailed Description
This command is used when changing a property for one or more widgets. oldvalues is a TQMap of the old values of the property for every widget, to allow reverting the change. value is the new value of the property. You can use the simpler constructor for a single widget.
Definition at line 61 of file commands.h.
Constructor & Destructor Documentation
◆ PropertyCommand() [1/2]
| PropertyCommand::PropertyCommand | ( | WidgetPropertySet * | set, |
| const TQCString & | wname, | ||
| const TQVariant & | oldValue, | ||
| const TQVariant & | value, | ||
| const TQCString & | property | ||
| ) |
Definition at line 62 of file commands.cpp.
◆ PropertyCommand() [2/2]
| PropertyCommand::PropertyCommand | ( | WidgetPropertySet * | set, |
| const TQMap< TQCString, TQVariant > & | oldvalues, | ||
| const TQVariant & | value, | ||
| const TQCString & | property | ||
| ) |
Definition at line 69 of file commands.cpp.
Member Function Documentation
◆ debug()
|
virtual |
Implements KFormDesigner::Command.
Definition at line 148 of file commands.cpp.
◆ execute()
|
virtual |
Definition at line 94 of file commands.cpp.
◆ name()
|
virtual |
Definition at line 139 of file commands.cpp.
◆ oldValues()
Definition at line 75 of file commands.h.
◆ property()
|
inline |
Definition at line 72 of file commands.h.
◆ setValue()
Definition at line 87 of file commands.cpp.
◆ unexecute()
|
virtual |
Definition at line 113 of file commands.cpp.
Member Data Documentation
◆ m_oldvalues
|
protected |
Definition at line 81 of file commands.h.
◆ m_property
|
protected |
Definition at line 82 of file commands.h.
◆ m_propSet
|
protected |
Definition at line 79 of file commands.h.
◆ m_value
|
protected |
Definition at line 80 of file commands.h.
The documentation for this class was generated from the following files:
