KexiTableDesignerCommands::ChangeFieldPropertyCommand Class Reference
#include <kexitabledesignercommands.h>
Inheritance diagram for KexiTableDesignerCommands::ChangeFieldPropertyCommand:

Detailed Description
Undo/redo command used for when changing a property for a table field.
Definition at line 62 of file kexitabledesignercommands.h.
Public Member Functions | |
| ChangeFieldPropertyCommand (KexiTableDesignerView *view, const KoProperty::Set &set, const QCString &propertyName, const QVariant &oldValue, const QVariant &newValue, KoProperty::Property::ListData *const oldListData=0, KoProperty::Property::ListData *const newListData=0) | |
| virtual | ~ChangeFieldPropertyCommand () |
| virtual QString | name () const |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual KexiDB::AlterTableHandler::ActionBase * | createAction () |
| Used to collect actions data for AlterTableHandler Can return 0 if the action should not be passed to AlterTableHandler. | |
| virtual QString | debugString () |
Protected Attributes | |
| KexiDB::AlterTableHandler::ChangeFieldPropertyAction | m_alterTableAction |
| QVariant | m_oldValue |
| KoProperty::Property::ListData * | m_oldListData |
| KoProperty::Property::ListData * | m_listData |
Constructor & Destructor Documentation
|
||||||||||||||||||||||||||||||||
|
Creates the ChangeFieldPropertyCommand object. Note: we use internal "uid" property of a field (set["uid"]) to avoid problems with looking for field by name when more than one field exists with the same name (it's invalid but allowed in design time). oldlistData and and newListData can be specified so Property::setListData() will be called on execute() and unexecute(). Definition at line 51 of file kexitabledesignercommands.cpp. References debugString(), and kexipluginsdbg. |
|
|
Definition at line 66 of file kexitabledesignercommands.cpp. References m_listData, and m_oldListData. |
Member Function Documentation
|
|
Used to collect actions data for AlterTableHandler Can return 0 if the action should not be passed to AlterTableHandler.
Reimplemented from KexiTableDesignerCommands::Command. Definition at line 111 of file kexitabledesignercommands.cpp. References m_alterTableAction, and KexiDB::AlterTableHandler::ChangeFieldPropertyAction::propertyName(). |
|
|
Reimplemented from KexiTableDesignerCommands::Command. Definition at line 79 of file kexitabledesignercommands.cpp. References m_alterTableAction, m_listData, m_oldListData, name(), and KexiDB::AlterTableHandler::FieldActionBase::uid(). Referenced by ChangeFieldPropertyCommand(). |
|
|
|
Definition at line 72 of file kexitabledesignercommands.cpp. References m_alterTableAction, m_oldValue, KexiDB::AlterTableHandler::ChangeFieldPropertyAction::newValue(), and KexiDB::AlterTableHandler::ChangeFieldPropertyAction::propertyName(). Referenced by debugString(). |
|
Member Data Documentation
|
|
Definition at line 86 of file kexitabledesignercommands.h. Referenced by createAction(), debugString(), execute(), name(), and unexecute(). |
|
|
Definition at line 89 of file kexitabledesignercommands.h. Referenced by debugString(), execute(), and ~ChangeFieldPropertyCommand(). |
|
|
Definition at line 89 of file kexitabledesignercommands.h. Referenced by debugString(), unexecute(), and ~ChangeFieldPropertyCommand(). |
|
|
Definition at line 87 of file kexitabledesignercommands.h. Referenced by name(), and unexecute(). |
The documentation for this class was generated from the following files:
