Kexi API Documentation (2.0 alpha)

KFormDesigner::LayoutPropertyCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::LayoutPropertyCommand:

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

Detailed Description

This command is used when switching the layout of a Container. It remembers the old pos of every widget inside the Container.

Definition at line 155 of file commands.h.

Public Member Functions

 LayoutPropertyCommand (WidgetPropertySet *set, const QCString &wname, const QVariant &oldValue, const QVariant &value)
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
virtual void debug ()

Protected Attributes

Formm_form
QMap< QCString, QRect > m_geometries


Constructor & Destructor Documentation

LayoutPropertyCommand::LayoutPropertyCommand WidgetPropertySet set,
const QCString &  wname,
const QVariant &  oldValue,
const QVariant &  value
 

Definition at line 615 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::container(), m_form, m_geometries, KFormDesigner::ObjectTreeItem::name(), KFormDesigner::Container::objectTree(), KFormDesigner::Form::objectTree(), KFormDesigner::FormManager::self(), and KFormDesigner::ObjectTreeItem::widget().


Member Function Documentation

void LayoutPropertyCommand::debug  )  [virtual]
 

Reimplemented from KFormDesigner::PropertyCommand.

Definition at line 662 of file commands.cpp.

References KFormDesigner::PropertyCommand::m_oldvalues, KFormDesigner::PropertyCommand::m_value, and name().

void LayoutPropertyCommand::execute  )  [virtual]
 

Reimplemented from KFormDesigner::PropertyCommand.

Definition at line 630 of file commands.cpp.

References KFormDesigner::PropertyCommand::execute().

QString LayoutPropertyCommand::name  )  const [virtual]
 

Reimplemented from KFormDesigner::PropertyCommand.

Definition at line 656 of file commands.cpp.

References KFormDesigner::PropertyCommand::m_oldvalues.

Referenced by debug().

void LayoutPropertyCommand::unexecute  )  [virtual]
 

Reimplemented from KFormDesigner::PropertyCommand.

Definition at line 636 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::container(), KFormDesigner::Container::form(), m_form, m_geometries, KFormDesigner::PropertyCommand::m_oldvalues, KFormDesigner::Container::NoLayout, KFormDesigner::Form::objectTree(), KFormDesigner::Container::setLayout(), KFormDesigner::PropertyCommand::unexecute(), and KFormDesigner::ObjectTreeItem::widget().


Member Data Documentation

Form* KFormDesigner::LayoutPropertyCommand::m_form [protected]
 

Definition at line 167 of file commands.h.

Referenced by LayoutPropertyCommand(), and unexecute().

QMap<QCString,QRect> KFormDesigner::LayoutPropertyCommand::m_geometries [protected]
 

Definition at line 168 of file commands.h.

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