#include <commands.h>

Inheritance diagram for KFormDesigner::AdjustSizeCommand:
KFormDesigner::Command

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 TQString name () const
 
virtual void debug ()
 

Protected Member Functions

TQSize getSizeFromChildren (ObjectTreeItem *item)
 

Protected Attributes

Form * m_form
 
int m_type
 
TQMap< TQCString, TQPoint > m_pos
 
TQMap< TQCString, TQSize > m_sizes
 

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.

Member Enumeration Documentation

◆ anonymous enum

Definition at line 133 of file commands.h.

Constructor & Destructor Documentation

◆ AdjustSizeCommand()

AdjustSizeCommand::AdjustSizeCommand ( int  type,
WidgetList &  list,
Form *  form 
)

Definition at line 376 of file commands.cpp.

Member Function Documentation

◆ debug()

void AdjustSizeCommand::debug ( )
virtual

Implements KFormDesigner::Command.

Definition at line 607 of file commands.cpp.

◆ execute()

void AdjustSizeCommand::execute ( )
virtual

Definition at line 395 of file commands.cpp.

◆ getSizeFromChildren()

TQSize AdjustSizeCommand::getSizeFromChildren ( ObjectTreeItem *  item)
protected

Definition at line 542 of file commands.cpp.

◆ name()

TQString AdjustSizeCommand::name ( ) const
virtual

Definition at line 585 of file commands.cpp.

◆ unexecute()

void AdjustSizeCommand::unexecute ( )
virtual

Definition at line 565 of file commands.cpp.

Member Data Documentation

◆ m_form

Form* KFormDesigner::AdjustSizeCommand::m_form
protected

Definition at line 147 of file commands.h.

◆ m_pos

TQMap<TQCString, TQPoint> KFormDesigner::AdjustSizeCommand::m_pos
protected

Definition at line 149 of file commands.h.

◆ m_sizes

TQMap<TQCString, TQSize> KFormDesigner::AdjustSizeCommand::m_sizes
protected

Definition at line 150 of file commands.h.

◆ m_type

int KFormDesigner::AdjustSizeCommand::m_type
protected

Definition at line 148 of file commands.h.


The documentation for this class was generated from the following files: