kexi

KFormDesigner::AlignWidgetsCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::AlignWidgetsCommand:
KFormDesigner::Command

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

Protected Attributes

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

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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 112 of file commands.h.

Constructor & Destructor Documentation

◆ AlignWidgetsCommand()

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

Definition at line 224 of file commands.cpp.

Member Function Documentation

◆ debug()

void AlignWidgetsCommand::debug ( )
virtual

Implements KFormDesigner::Command.

Definition at line 368 of file commands.cpp.

◆ execute()

void AlignWidgetsCommand::execute ( )
virtual

Definition at line 232 of file commands.cpp.

◆ name()

TQString AlignWidgetsCommand::name ( ) const
virtual

Definition at line 348 of file commands.cpp.

◆ unexecute()

void AlignWidgetsCommand::unexecute ( )
virtual

Definition at line 332 of file commands.cpp.

Member Data Documentation

◆ m_form

Form* KFormDesigner::AlignWidgetsCommand::m_form
protected

Definition at line 122 of file commands.h.

◆ m_pos

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

Definition at line 124 of file commands.h.

◆ m_type

int KFormDesigner::AlignWidgetsCommand::m_type
protected

Definition at line 123 of file commands.h.


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