kexi
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 () |
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
ChangeFieldPropertyCommand::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 | |||
) |
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.
Member Function Documentation
KexiDB::AlterTableHandler::ActionBase * ChangeFieldPropertyCommand::createAction | ( | ) | [virtual] |
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.
The documentation for this class was generated from the following files: