kexi

KexiTableDesignerCommands::ChangePropertyVisibilityCommand Class Reference

#include <kexitabledesignercommands.h>

Inheritance diagram for KexiTableDesignerCommands::ChangePropertyVisibilityCommand:
KexiTableDesignerCommands::Command

Public Member Functions

 ChangePropertyVisibilityCommand (KexiTableDesignerView *view, const KoProperty::Set &set, const TQCString &propertyName, bool visible)
virtual TQString name () const
virtual void execute ()
virtual void unexecute ()
Public Member Functions inherited from KexiTableDesignerCommands::Command
 Command (KexiTableDesignerView *view)
virtual KexiDB::AlterTableHandler::ActionBase * createAction ()
virtual TQString debugString ()

Protected Attributes

KexiDB::AlterTableHandler::ChangeFieldPropertyAction m_alterTableAction
bool m_oldVisibility
Protected Attributes inherited from KexiTableDesignerCommands::Command
TQGuardedPtr< KexiTableDesignerView > m_view

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.

Constructor & Destructor Documentation

◆ ChangePropertyVisibilityCommand()

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

◆ ~ChangePropertyVisibilityCommand()

ChangePropertyVisibilityCommand::~ChangePropertyVisibilityCommand ( )
virtual

Definition at line 225 of file kexitabledesignercommands.cpp.

Member Function Documentation

◆ execute()

void ChangePropertyVisibilityCommand::execute ( )
virtual

Definition at line 237 of file kexitabledesignercommands.cpp.

◆ name()

TQString ChangePropertyVisibilityCommand::name ( ) const
virtual

Definition at line 229 of file kexitabledesignercommands.cpp.

◆ unexecute()

void ChangePropertyVisibilityCommand::unexecute ( )
virtual

Definition at line 245 of file kexitabledesignercommands.cpp.

Member Data Documentation

◆ m_alterTableAction

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

Definition at line 163 of file kexitabledesignercommands.h.

◆ m_oldVisibility

bool KexiTableDesignerCommands::ChangePropertyVisibilityCommand::m_oldVisibility
protected

Definition at line 165 of file kexitabledesignercommands.h.


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