kexi

KexiTableDesignerCommands::RemoveFieldCommand Class Reference

#include <kexitabledesignercommands.h>

Inheritance diagram for KexiTableDesignerCommands::RemoveFieldCommand:
KexiTableDesignerCommands::Command

Public Member Functions

 RemoveFieldCommand (KexiTableDesignerView *view, int fieldIndex, const KoProperty::Set *set)
 
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::RemoveFieldAction m_alterTableAction
 
KoProperty::Set * m_set
 
int m_fieldIndex
 
- Protected Attributes inherited from KexiTableDesignerCommands::Command
TQGuardedPtr< KexiTableDesignerView > m_view
 

Detailed Description

Undo/redo command used when a field is removed from a table.

Definition at line 93 of file kexitabledesignercommands.h.

Constructor & Destructor Documentation

◆ RemoveFieldCommand()

RemoveFieldCommand::RemoveFieldCommand ( KexiTableDesignerView *  view,
int  fieldIndex,
const KoProperty::Set *  set 
)

Constructs RemoveFieldCommand object. If set is 0, the action only means removing empty row (internal).

Definition at line 121 of file kexitabledesignercommands.cpp.

◆ ~RemoveFieldCommand()

RemoveFieldCommand::~RemoveFieldCommand ( )
virtual

Definition at line 131 of file kexitabledesignercommands.cpp.

Member Function Documentation

◆ createAction()

KexiDB::AlterTableHandler::ActionBase * RemoveFieldCommand::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 167 of file kexitabledesignercommands.cpp.

◆ debugString()

TQString RemoveFieldCommand::debugString ( )
virtual

Reimplemented from KexiTableDesignerCommands::Command.

Definition at line 157 of file kexitabledesignercommands.cpp.

◆ execute()

void RemoveFieldCommand::execute ( )
virtual

Definition at line 144 of file kexitabledesignercommands.cpp.

◆ name()

TQString RemoveFieldCommand::name ( ) const
virtual

Definition at line 136 of file kexitabledesignercommands.cpp.

◆ unexecute()

void RemoveFieldCommand::unexecute ( )
virtual

Definition at line 150 of file kexitabledesignercommands.cpp.

Member Data Documentation

◆ m_alterTableAction

KexiDB::AlterTableHandler::RemoveFieldAction KexiTableDesignerCommands::RemoveFieldCommand::m_alterTableAction
protected

Definition at line 111 of file kexitabledesignercommands.h.

◆ m_fieldIndex

int KexiTableDesignerCommands::RemoveFieldCommand::m_fieldIndex
protected

Definition at line 113 of file kexitabledesignercommands.h.

◆ m_set

KoProperty::Set* KexiTableDesignerCommands::RemoveFieldCommand::m_set
protected

Definition at line 112 of file kexitabledesignercommands.h.


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