kexi

KexiTableDesignerCommands::ChangeFieldPropertyCommand Class Reference

#include <kexitabledesignercommands.h>

Inheritance diagram for KexiTableDesignerCommands::ChangeFieldPropertyCommand:
KexiTableDesignerCommands::Command

Public Member Functions

 ChangeFieldPropertyCommand (KexiTableDesignerView *view, const KoProperty::Set &set, const TQCString &propertyName, const TQVariant &oldValue, const TQVariant &newValue, KoProperty::Property::ListData *const oldListData=0, KoProperty::Property::ListData *const newListData=0)
virtual TQString name () const
virtual void execute ()
virtual void unexecute ()
virtual KexiDB::AlterTableHandler::ActionBase * createAction ()
virtual TQString debugString ()
Public Member Functions inherited from KexiTableDesignerCommands::Command
 Command (KexiTableDesignerView *view)

Protected Attributes

KexiDB::AlterTableHandler::ChangeFieldPropertyAction m_alterTableAction
TQVariant m_oldValue
KoProperty::Property::ListData * m_oldListData
KoProperty::Property::ListData * m_listData
Protected Attributes inherited from KexiTableDesignerCommands::Command
TQGuardedPtr< KexiTableDesignerView > m_view

Detailed Description

Undo/redo command used for when changing a property for a table field.

Definition at line 62 of file kexitabledesignercommands.h.

Constructor & Destructor Documentation

◆ ChangeFieldPropertyCommand()

ChangeFieldPropertyCommand::ChangeFieldPropertyCommand ( KexiTableDesignerView * view,
const KoProperty::Set & set,
const TQCString & propertyName,
const TQVariant & oldValue,
const TQVariant & 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.

◆ ~ChangeFieldPropertyCommand()

ChangeFieldPropertyCommand::~ChangeFieldPropertyCommand ( )
virtual

Definition at line 66 of file kexitabledesignercommands.cpp.

Member Function Documentation

◆ createAction()

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.

◆ debugString()

TQString ChangeFieldPropertyCommand::debugString ( )
virtual

Reimplemented from KexiTableDesignerCommands::Command.

Definition at line 79 of file kexitabledesignercommands.cpp.

◆ execute()

void ChangeFieldPropertyCommand::execute ( )
virtual

Definition at line 95 of file kexitabledesignercommands.cpp.

◆ name()

TQString ChangeFieldPropertyCommand::name ( ) const
virtual

Definition at line 72 of file kexitabledesignercommands.cpp.

◆ unexecute()

void ChangeFieldPropertyCommand::unexecute ( )
virtual

Definition at line 103 of file kexitabledesignercommands.cpp.

Member Data Documentation

◆ m_alterTableAction

KexiDB::AlterTableHandler::ChangeFieldPropertyAction KexiTableDesignerCommands::ChangeFieldPropertyCommand::m_alterTableAction
protected

Definition at line 86 of file kexitabledesignercommands.h.

◆ m_listData

KoProperty::Property::ListData * KexiTableDesignerCommands::ChangeFieldPropertyCommand::m_listData
protected

Definition at line 89 of file kexitabledesignercommands.h.

◆ m_oldListData

KoProperty::Property::ListData* KexiTableDesignerCommands::ChangeFieldPropertyCommand::m_oldListData
protected

Definition at line 89 of file kexitabledesignercommands.h.

◆ m_oldValue

TQVariant KexiTableDesignerCommands::ChangeFieldPropertyCommand::m_oldValue
protected

Definition at line 87 of file kexitabledesignercommands.h.


The documentation for this class was generated from the following files: