kexi

KFormDesigner::CreateLayoutCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::CreateLayoutCommand:
KFormDesigner::Command KFormDesigner::BreakLayoutCommand

Public Member Functions

 CreateLayoutCommand (int layoutType, WidgetList &list, Form *form)
virtual void execute ()
virtual void unexecute ()
virtual TQString name () const
virtual void debug ()

Protected Attributes

Form * m_form
TQString m_containername
TQString m_name
TQMap< TQCString, TQRect > m_pos
int m_type

Detailed Description

This command is used when creating a layout from some widgets using "Lay out in..." menu item. It remembers the old pos of every widget, and takes care of updating ObjectTree too. You need to supply a WidgetList of the selected widgets.

Definition at line 209 of file commands.h.

Constructor & Destructor Documentation

◆ CreateLayoutCommand() [1/2]

CreateLayoutCommand::CreateLayoutCommand ( int layoutType,
WidgetList & list,
Form * form )

CreateLayoutCommand ///////////////.

Definition at line 847 of file commands.cpp.

◆ CreateLayoutCommand() [2/2]

KFormDesigner::CreateLayoutCommand::CreateLayoutCommand ( )
inline

Definition at line 213 of file commands.h.

Member Function Documentation

◆ debug()

void CreateLayoutCommand::debug ( )
virtual

Implements KFormDesigner::Command.

Definition at line 1001 of file commands.cpp.

◆ execute()

void CreateLayoutCommand::execute ( )
virtual
Todo
allow setting this for data view mode as well

Definition at line 876 of file commands.cpp.

◆ name()

TQString CreateLayoutCommand::name ( ) const
virtual

Definition at line 977 of file commands.cpp.

◆ unexecute()

void CreateLayoutCommand::unexecute ( )
virtual

Definition at line 945 of file commands.cpp.

Member Data Documentation

◆ m_containername

TQString KFormDesigner::CreateLayoutCommand::m_containername
protected

Definition at line 222 of file commands.h.

◆ m_form

Form* KFormDesigner::CreateLayoutCommand::m_form
protected

Definition at line 221 of file commands.h.

◆ m_name

TQString KFormDesigner::CreateLayoutCommand::m_name
protected

Definition at line 223 of file commands.h.

◆ m_pos

TQMap<TQCString,TQRect> KFormDesigner::CreateLayoutCommand::m_pos
protected

Definition at line 224 of file commands.h.

◆ m_type

int KFormDesigner::CreateLayoutCommand::m_type
protected

Definition at line 225 of file commands.h.


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