Kexi API Documentation (2.0 alpha)

KFormDesigner::AdjustSizeCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::AdjustSizeCommand:

KFormDesigner::Command KCommand List of all members.

Detailed Description

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

Definition at line 130 of file commands.h.

Public Types

enum  {
  SizeToGrid = 200, SizeToFit, SizeToSmallWidth, SizeToBigWidth,
  SizeToSmallHeight, SizeToBigHeight
}

Public Member Functions

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

Protected Member Functions

QSize getSizeFromChildren (ObjectTreeItem *item)

Protected Attributes

Formm_form
int m_type
QMap< QCString, QPoint > m_pos
QMap< QCString, QSize > m_sizes


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
SizeToGrid 
SizeToFit 
SizeToSmallWidth 
SizeToBigWidth 
SizeToSmallHeight 
SizeToBigHeight 

Definition at line 133 of file commands.h.


Constructor & Destructor Documentation

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

Definition at line 376 of file commands.cpp.

References m_pos, m_sizes, m_type, and SizeToGrid.


Member Function Documentation

void AdjustSizeCommand::debug  )  [virtual]
 

Implements KFormDesigner::Command.

Definition at line 607 of file commands.cpp.

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

void AdjustSizeCommand::execute  )  [virtual]
 

Definition at line 395 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::children(), KFormDesigner::ObjectTreeItem::container(), getSizeFromChildren(), KFormDesigner::Form::gridSize(), KFormDesigner::Container::HFlow, m_form, m_sizes, m_type, KFormDesigner::Container::NoLayout, KFormDesigner::Form::objectTree(), KFormDesigner::Form::selectFormWidget(), KFormDesigner::Form::setSelectedWidget(), SizeToBigHeight, SizeToBigWidth, SizeToFit, SizeToGrid, SizeToSmallHeight, SizeToSmallWidth, KFormDesigner::Container::VFlow, and KFormDesigner::ObjectTreeItem::widget().

Referenced by KexiFormView::insertAutoFields().

QSize AdjustSizeCommand::getSizeFromChildren ObjectTreeItem item  )  [protected]
 

Definition at line 542 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::children(), and KFormDesigner::ObjectTreeItem::widget().

Referenced by execute().

QString AdjustSizeCommand::name  )  const [virtual]
 

Definition at line 585 of file commands.cpp.

References m_type, SizeToBigHeight, SizeToBigWidth, SizeToFit, SizeToGrid, SizeToSmallHeight, and SizeToSmallWidth.

Referenced by debug().

void AdjustSizeCommand::unexecute  )  [virtual]
 

Definition at line 565 of file commands.cpp.

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


Member Data Documentation

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

Definition at line 147 of file commands.h.

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

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

Definition at line 149 of file commands.h.

Referenced by AdjustSizeCommand(), and unexecute().

QMap<QCString, QSize> KFormDesigner::AdjustSizeCommand::m_sizes [protected]
 

Definition at line 150 of file commands.h.

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

int KFormDesigner::AdjustSizeCommand::m_type [protected]
 

Definition at line 148 of file commands.h.

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