kexi

KFormDesigner::PropertyCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::PropertyCommand:
KFormDesigner::Command KFormDesigner::LayoutPropertyCommand

Public Member Functions

 PropertyCommand (WidgetPropertySet *set, const TQCString &wname, const TQVariant &oldValue, const TQVariant &value, const TQCString &property)
 PropertyCommand (WidgetPropertySet *set, const TQMap< TQCString, TQVariant > &oldvalues, const TQVariant &value, const TQCString &property)
virtual void execute ()
virtual void unexecute ()
virtual TQString name () const
TQCString property () const
void setValue (const TQVariant &value)
const TQMap< TQCString, TQVariant > & oldValues () const
virtual void debug ()

Protected Attributes

WidgetPropertySet * m_propSet
TQVariant m_value
TQMap< TQCString, TQVariant > m_oldvalues
TQCString m_property

Detailed Description

This command is used when changing a property for one or more widgets. oldvalues is a TQMap of the old values of the property for every widget, to allow reverting the change. value is the new value of the property. You can use the simpler constructor for a single widget.

Definition at line 61 of file commands.h.

Constructor & Destructor Documentation

◆ PropertyCommand() [1/2]

PropertyCommand::PropertyCommand ( WidgetPropertySet * set,
const TQCString & wname,
const TQVariant & oldValue,
const TQVariant & value,
const TQCString & property )

Definition at line 62 of file commands.cpp.

◆ PropertyCommand() [2/2]

PropertyCommand::PropertyCommand ( WidgetPropertySet * set,
const TQMap< TQCString, TQVariant > & oldvalues,
const TQVariant & value,
const TQCString & property )

Definition at line 69 of file commands.cpp.

Member Function Documentation

◆ debug()

void PropertyCommand::debug ( )
virtual

Implements KFormDesigner::Command.

Definition at line 148 of file commands.cpp.

◆ execute()

void PropertyCommand::execute ( )
virtual

Definition at line 94 of file commands.cpp.

◆ name()

TQString PropertyCommand::name ( ) const
virtual

Definition at line 139 of file commands.cpp.

◆ oldValues()

const TQMap< TQCString, TQVariant > & KFormDesigner::PropertyCommand::oldValues ( ) const
inline

Definition at line 75 of file commands.h.

◆ property()

TQCString KFormDesigner::PropertyCommand::property ( ) const
inline

Definition at line 72 of file commands.h.

◆ setValue()

void PropertyCommand::setValue ( const TQVariant & value)

Definition at line 87 of file commands.cpp.

◆ unexecute()

void PropertyCommand::unexecute ( )
virtual

Definition at line 113 of file commands.cpp.

Member Data Documentation

◆ m_oldvalues

TQMap<TQCString, TQVariant> KFormDesigner::PropertyCommand::m_oldvalues
protected

Definition at line 81 of file commands.h.

◆ m_property

TQCString KFormDesigner::PropertyCommand::m_property
protected

Definition at line 82 of file commands.h.

◆ m_propSet

WidgetPropertySet* KFormDesigner::PropertyCommand::m_propSet
protected

Definition at line 79 of file commands.h.

◆ m_value

TQVariant KFormDesigner::PropertyCommand::m_value
protected

Definition at line 80 of file commands.h.


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