Kexi API Documentation (2.0 alpha)

KFormDesigner::PropertyCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::PropertyCommand:

KFormDesigner::Command KCommand KFormDesigner::LayoutPropertyCommand List of all members.

Detailed Description

This command is used when changing a property for one or more widgets. oldvalues is a QMap 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.

Public Member Functions

 PropertyCommand (WidgetPropertySet *set, const QCString &wname, const QVariant &oldValue, const QVariant &value, const QCString &property)
 PropertyCommand (WidgetPropertySet *set, const QMap< QCString, QVariant > &oldvalues, const QVariant &value, const QCString &property)
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
QCString property () const
void setValue (const QVariant &value)
const QMap< QCString, QVariant > & oldValues () const
virtual void debug ()

Protected Attributes

WidgetPropertySetm_propSet
QVariant m_value
QMap< QCString, QVariant > m_oldvalues
QCString m_property


Constructor & Destructor Documentation

PropertyCommand::PropertyCommand WidgetPropertySet set,
const QCString &  wname,
const QVariant &  oldValue,
const QVariant &  value,
const QCString &  property
 

Definition at line 62 of file commands.cpp.

References m_oldvalues.

PropertyCommand::PropertyCommand WidgetPropertySet set,
const QMap< QCString, QVariant > &  oldvalues,
const QVariant &  value,
const QCString &  property
 

Definition at line 69 of file commands.cpp.


Member Function Documentation

void PropertyCommand::debug  )  [virtual]
 

Implements KFormDesigner::Command.

Reimplemented in KFormDesigner::LayoutPropertyCommand.

Definition at line 148 of file commands.cpp.

References m_oldvalues, m_value, and name().

void PropertyCommand::execute  )  [virtual]
 

Reimplemented in KFormDesigner::LayoutPropertyCommand.

Definition at line 94 of file commands.cpp.

References m_oldvalues, m_property, m_propSet, m_value, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), and KFormDesigner::ObjectTreeItem::widget().

Referenced by KFormDesigner::LayoutPropertyCommand::execute().

QString PropertyCommand::name  )  const [virtual]
 

Reimplemented in KFormDesigner::LayoutPropertyCommand.

Definition at line 139 of file commands.cpp.

References m_oldvalues, and m_property.

Referenced by debug().

const QMap<QCString, QVariant>& KFormDesigner::PropertyCommand::oldValues  )  const [inline]
 

Definition at line 75 of file commands.h.

Referenced by KexiFormManager::slotHistoryCommandExecuted().

QCString KFormDesigner::PropertyCommand::property  )  const [inline]
 

Definition at line 72 of file commands.h.

Referenced by KexiFormManager::slotHistoryCommandExecuted().

void PropertyCommand::setValue const QVariant &  value  ) 
 

Definition at line 87 of file commands.cpp.

References m_value, and KFormDesigner::FormManager::self().

void PropertyCommand::unexecute  )  [virtual]
 

Reimplemented in KFormDesigner::LayoutPropertyCommand.

Definition at line 113 of file commands.cpp.

References m_oldvalues, m_property, m_propSet, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), KFormDesigner::WidgetWithSubpropertiesInterface::subwidget(), and KFormDesigner::ObjectTreeItem::widget().

Referenced by KFormDesigner::LayoutPropertyCommand::unexecute().


Member Data Documentation

QMap<QCString, QVariant> KFormDesigner::PropertyCommand::m_oldvalues [protected]
 

Definition at line 81 of file commands.h.

Referenced by KFormDesigner::LayoutPropertyCommand::debug(), debug(), execute(), KFormDesigner::LayoutPropertyCommand::name(), name(), PropertyCommand(), KFormDesigner::LayoutPropertyCommand::unexecute(), and unexecute().

QCString KFormDesigner::PropertyCommand::m_property [protected]
 

Definition at line 82 of file commands.h.

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

WidgetPropertySet* KFormDesigner::PropertyCommand::m_propSet [protected]
 

Definition at line 79 of file commands.h.

Referenced by execute(), and unexecute().

QVariant KFormDesigner::PropertyCommand::m_value [protected]
 

Definition at line 80 of file commands.h.

Referenced by KFormDesigner::LayoutPropertyCommand::debug(), debug(), execute(), and setValue().


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:56 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003