Kexi API Documentation (2.0 alpha)

KFormDesigner::GeometryPropertyCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::GeometryPropertyCommand:

KFormDesigner::Command KCommand List of all members.

Detailed Description

This command is used when moving multiples widgets at the same time, while holding Ctrl or Shift. You need to supply a list of widget names, and the position of the cursor before moving. Use setPos() to tell the new cursor pos every time it changes.

Definition at line 88 of file commands.h.

Public Member Functions

 GeometryPropertyCommand (WidgetPropertySet *set, const QStringList &names, const QPoint &oldPos)
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
void setPos (const QPoint &pos)
virtual void debug ()

Protected Attributes

WidgetPropertySetm_propSet
QStringList m_names
QPoint m_oldPos
QPoint m_pos


Constructor & Destructor Documentation

GeometryPropertyCommand::GeometryPropertyCommand WidgetPropertySet set,
const QStringList &  names,
const QPoint &  oldPos
 

Definition at line 156 of file commands.cpp.


Member Function Documentation

void GeometryPropertyCommand::debug  )  [virtual]
 

Implements KFormDesigner::Command.

Definition at line 216 of file commands.cpp.

References m_names, m_oldPos, and m_pos.

void GeometryPropertyCommand::execute  )  [virtual]
 

Definition at line 163 of file commands.cpp.

References m_names, m_oldPos, m_pos, m_propSet, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), and KFormDesigner::ObjectTreeItem::widget().

QString GeometryPropertyCommand::name  )  const [virtual]
 

Definition at line 210 of file commands.cpp.

void GeometryPropertyCommand::setPos const QPoint &  pos  ) 
 

Definition at line 203 of file commands.cpp.

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

void GeometryPropertyCommand::unexecute  )  [virtual]
 

Definition at line 183 of file commands.cpp.

References m_names, m_oldPos, m_pos, m_propSet, KFormDesigner::FormManager::self(), KFormDesigner::WidgetPropertySet::setUndoing(), and KFormDesigner::ObjectTreeItem::widget().


Member Data Documentation

QStringList KFormDesigner::GeometryPropertyCommand::m_names [protected]
 

Definition at line 101 of file commands.h.

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

QPoint KFormDesigner::GeometryPropertyCommand::m_oldPos [protected]
 

Definition at line 102 of file commands.h.

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

QPoint KFormDesigner::GeometryPropertyCommand::m_pos [protected]
 

Definition at line 103 of file commands.h.

Referenced by debug(), execute(), setPos(), and unexecute().

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

Definition at line 100 of file commands.h.

Referenced by execute(), 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