KFormDesigner::PropertyCommand Class Reference
#include <commands.h>
Inheritance diagram for KFormDesigner::PropertyCommand:

Detailed Description
This command is used when changing a property for one or more widgets. oldvalues is a QMap 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.
Public Member Functions | |
| PropertyCommand (WidgetPropertySet *set, const QCString &wname, const QVariant &oldValue, const QVariant &value, const QCString &property) | |
| PropertyCommand (WidgetPropertySet *set, const QMap< QCString, QVariant > &oldvalues, const QVariant &value, const QCString &property) | |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual QString | name () const |
| QCString | property () const |
| void | setValue (const QVariant &value) |
| const QMap< QCString, QVariant > & | oldValues () const |
| virtual void | debug () |
Protected Attributes | |
| WidgetPropertySet * | m_propSet |
| QVariant | m_value |
| QMap< QCString, QVariant > | m_oldvalues |
| QCString | m_property |
Constructor & Destructor Documentation
|
||||||||||||||||||||||||
|
Definition at line 62 of file commands.cpp. References m_oldvalues. |
|
||||||||||||||||||||
|
Definition at line 69 of file commands.cpp. |
Member Function Documentation
|
|
Implements KFormDesigner::Command. Reimplemented in KFormDesigner::LayoutPropertyCommand. Definition at line 148 of file commands.cpp. References m_oldvalues, m_value, and name(). |
|
|
Reimplemented in KFormDesigner::LayoutPropertyCommand. Definition at line 94 of file commands.cpp. References m_oldvalues, m_property, m_propSet, m_value, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), and KFormDesigner::ObjectTreeItem::widget(). Referenced by KFormDesigner::LayoutPropertyCommand::execute(). |
|
|
Reimplemented in KFormDesigner::LayoutPropertyCommand. Definition at line 139 of file commands.cpp. References m_oldvalues, and m_property. Referenced by debug(). |
|
|
Definition at line 75 of file commands.h. Referenced by KexiFormManager::slotHistoryCommandExecuted(). |
|
|
Definition at line 72 of file commands.h. Referenced by KexiFormManager::slotHistoryCommandExecuted(). |
|
|
Definition at line 87 of file commands.cpp. References m_value, and KFormDesigner::FormManager::self(). |
|
|
Reimplemented in KFormDesigner::LayoutPropertyCommand. Definition at line 113 of file commands.cpp. References m_oldvalues, m_property, m_propSet, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), KFormDesigner::WidgetWithSubpropertiesInterface::subwidget(), and KFormDesigner::ObjectTreeItem::widget(). Referenced by KFormDesigner::LayoutPropertyCommand::unexecute(). |
Member Data Documentation
|
|
Definition at line 81 of file commands.h. Referenced by KFormDesigner::LayoutPropertyCommand::debug(), debug(), execute(), KFormDesigner::LayoutPropertyCommand::name(), name(), PropertyCommand(), KFormDesigner::LayoutPropertyCommand::unexecute(), and unexecute(). |
|
|
Definition at line 82 of file commands.h. Referenced by execute(), name(), and unexecute(). |
|
|
Definition at line 79 of file commands.h. Referenced by execute(), and unexecute(). |
|
|
Definition at line 80 of file commands.h. Referenced by KFormDesigner::LayoutPropertyCommand::debug(), debug(), execute(), and setValue(). |
The documentation for this class was generated from the following files:
