Kexi API Documentation (2.0 alpha)

KexiTableDesignerCommands::ChangePropertyVisibilityCommand Class Reference

#include <kexitabledesignercommands.h>

Inheritance diagram for KexiTableDesignerCommands::ChangePropertyVisibilityCommand:

KexiTableDesignerCommands::Command KCommand List of all members.

Detailed Description

Undo/redo command used when property visibility is changed.

Internal, only used in addition to property change.

Definition at line 144 of file kexitabledesignercommands.h.

Public Member Functions

 ChangePropertyVisibilityCommand (KexiTableDesignerView *view, const KoProperty::Set &set, const QCString &propertyName, bool visible)
virtual ~ChangePropertyVisibilityCommand ()
virtual QString name () const
virtual void execute ()
virtual void unexecute ()

Protected Attributes

KexiDB::AlterTableHandler::ChangeFieldPropertyAction m_alterTableAction
bool m_oldVisibility


Constructor & Destructor Documentation

ChangePropertyVisibilityCommand::ChangePropertyVisibilityCommand KexiTableDesignerView view,
const KoProperty::Set &  set,
const QCString &  propertyName,
bool  visible
 

Creates the ChangePropertyVisibilityCommand 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).

Definition at line 215 of file kexitabledesignercommands.cpp.

References KexiTableDesignerCommands::Command::debugString(), and kexipluginsdbg.

ChangePropertyVisibilityCommand::~ChangePropertyVisibilityCommand  )  [virtual]
 

Definition at line 225 of file kexitabledesignercommands.cpp.


Member Function Documentation

void ChangePropertyVisibilityCommand::execute  )  [virtual]
 

Definition at line 237 of file kexitabledesignercommands.cpp.

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

QString ChangePropertyVisibilityCommand::name  )  const [virtual]
 

Definition at line 229 of file kexitabledesignercommands.cpp.

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

void ChangePropertyVisibilityCommand::unexecute  )  [virtual]
 

Definition at line 245 of file kexitabledesignercommands.cpp.

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


Member Data Documentation

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

Definition at line 163 of file kexitabledesignercommands.h.

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

bool KexiTableDesignerCommands::ChangePropertyVisibilityCommand::m_oldVisibility [protected]
 

Definition at line 165 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