Kexi API Documentation (2.0 alpha)

KexiTableDesignerCommands::ChangeFieldPropertyCommand Class Reference

#include <kexitabledesignercommands.h>

Inheritance diagram for KexiTableDesignerCommands::ChangeFieldPropertyCommand:

KexiTableDesignerCommands::Command KCommand List of all members.

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::ActionBasecreateAction ()
 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

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.

References debugString(), and kexipluginsdbg.

ChangeFieldPropertyCommand::~ChangeFieldPropertyCommand  )  [virtual]
 

Definition at line 66 of file kexitabledesignercommands.cpp.

References m_listData, and m_oldListData.


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.

References m_alterTableAction, and KexiDB::AlterTableHandler::ChangeFieldPropertyAction::propertyName().

QString ChangeFieldPropertyCommand::debugString  )  [virtual]
 

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().

void ChangeFieldPropertyCommand::execute  )  [virtual]
 

Definition at line 95 of file kexitabledesignercommands.cpp.

References m_alterTableAction, m_listData, KexiTableDesignerCommands::Command::m_view, KexiDB::AlterTableHandler::ChangeFieldPropertyAction::newValue(), KexiDB::AlterTableHandler::ChangeFieldPropertyAction::propertyName(), and KexiDB::AlterTableHandler::FieldActionBase::uid().

QString ChangeFieldPropertyCommand::name  )  const [virtual]
 

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().

void ChangeFieldPropertyCommand::unexecute  )  [virtual]
 

Definition at line 103 of file kexitabledesignercommands.cpp.

References m_alterTableAction, m_oldListData, m_oldValue, KexiTableDesignerCommands::Command::m_view, KexiDB::AlterTableHandler::ChangeFieldPropertyAction::propertyName(), and KexiDB::AlterTableHandler::FieldActionBase::uid().


Member Data Documentation

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

Definition at line 86 of file kexitabledesignercommands.h.

Referenced by createAction(), debugString(), execute(), name(), and unexecute().

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

Definition at line 89 of file kexitabledesignercommands.h.

Referenced by debugString(), execute(), and ~ChangeFieldPropertyCommand().

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

Definition at line 89 of file kexitabledesignercommands.h.

Referenced by debugString(), unexecute(), and ~ChangeFieldPropertyCommand().

QVariant KexiTableDesignerCommands::ChangeFieldPropertyCommand::m_oldValue [protected]
 

Definition at line 87 of file kexitabledesignercommands.h.

Referenced by name(), and unexecute().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:54 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003