KFormDesigner::AdjustSizeCommand Class Reference
#include <commands.h>
Inheritance diagram for KFormDesigner::AdjustSizeCommand:

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 | |
| Form * | m_form |
| int | m_type |
| QMap< QCString, QPoint > | m_pos |
| QMap< QCString, QSize > | m_sizes |
Member Enumeration Documentation
|
|
Definition at line 133 of file commands.h. |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 376 of file commands.cpp. References m_pos, m_sizes, m_type, and SizeToGrid. |
Member Function Documentation
|
|
Implements KFormDesigner::Command. Definition at line 607 of file commands.cpp. References m_form, m_sizes, name(), and KFormDesigner::Form::widget(). |
|
|
|
Definition at line 542 of file commands.cpp. References KFormDesigner::ObjectTreeItem::children(), and KFormDesigner::ObjectTreeItem::widget(). Referenced by execute(). |
|
|
Definition at line 585 of file commands.cpp. References m_type, SizeToBigHeight, SizeToBigWidth, SizeToFit, SizeToGrid, SizeToSmallHeight, and SizeToSmallWidth. Referenced by debug(). |
|
|
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
|
|
Definition at line 147 of file commands.h. Referenced by debug(), execute(), and unexecute(). |
|
|
Definition at line 149 of file commands.h. Referenced by AdjustSizeCommand(), and unexecute(). |
|
|
Definition at line 150 of file commands.h. Referenced by AdjustSizeCommand(), debug(), execute(), and unexecute(). |
|
|
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:
