Kexi API Documentation (2.0 alpha)

KFormDesigner::AlignWidgetsCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::AlignWidgetsCommand:

KFormDesigner::Command KCommand List of all members.

Detailed Description

This command is used when an item in 'Align Widgets position' is selected. You just need to give the list of widget names (the selected ones), and the type of alignment (see the enum for possible values).

Definition at line 109 of file commands.h.

Public Types

enum  {
  AlignToGrid = 100, AlignToLeft, AlignToRight, AlignToTop,
  AlignToBottom
}

Public Member Functions

 AlignWidgetsCommand (int type, WidgetList &list, Form *form)
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
virtual void debug ()

Protected Attributes

Formm_form
int m_type
QMap< QCString, QPoint > m_pos


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
AlignToGrid 
AlignToLeft 
AlignToRight 
AlignToTop 
AlignToBottom 

Definition at line 112 of file commands.h.


Constructor & Destructor Documentation

AlignWidgetsCommand::AlignWidgetsCommand int  type,
WidgetList list,
Form form
 

Definition at line 224 of file commands.cpp.

References m_pos.


Member Function Documentation

void AlignWidgetsCommand::debug  )  [virtual]
 

Implements KFormDesigner::Command.

Definition at line 368 of file commands.cpp.

References m_form, m_pos, name(), and KFormDesigner::Form::widget().

void AlignWidgetsCommand::execute  )  [virtual]
 

Definition at line 232 of file commands.cpp.

References AlignToBottom, AlignToGrid, AlignToLeft, AlignToRight, AlignToTop, KFormDesigner::Form::gridSize(), m_form, m_pos, m_type, KFormDesigner::Form::objectTree(), KFormDesigner::Form::selectedWidgets(), KFormDesigner::Form::selectFormWidget(), KFormDesigner::Form::setSelectedWidget(), and KFormDesigner::ObjectTreeItem::widget().

QString AlignWidgetsCommand::name  )  const [virtual]
 

Definition at line 348 of file commands.cpp.

References AlignToBottom, AlignToGrid, AlignToLeft, AlignToRight, AlignToTop, and m_type.

Referenced by debug().

void AlignWidgetsCommand::unexecute  )  [virtual]
 

Definition at line 332 of file commands.cpp.

References m_form, m_pos, KFormDesigner::Form::objectTree(), KFormDesigner::Form::selectFormWidget(), KFormDesigner::Form::setSelectedWidget(), and KFormDesigner::ObjectTreeItem::widget().


Member Data Documentation

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

Definition at line 122 of file commands.h.

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

QMap<QCString, QPoint> KFormDesigner::AlignWidgetsCommand::m_pos [protected]
 

Definition at line 124 of file commands.h.

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

int KFormDesigner::AlignWidgetsCommand::m_type [protected]
 

Definition at line 123 of file commands.h.

Referenced by execute(), and name().


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