kexi

KFormDesigner::InsertWidgetCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::InsertWidgetCommand:

KFormDesigner::Command List of all members.

Detailed Description

This command is used when inserting a widger using toolbar or menu. You only need to give the parent Container and the widget pos. The other informations are taken from FormManager.

Definition at line 174 of file commands.h.


Public Member Functions

 InsertWidgetCommand (Container *container)
 InsertWidgetCommand (Container *container, const QCString &className, const QPoint &pos, const QCString &namePrefix=QCString())
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
virtual void debug ()
QCString widgetName () const

Protected Attributes

Formm_form
QString m_containername
QPoint m_point
QCString m_name
QCString m_class
QRect m_insertRect

Constructor & Destructor Documentation

InsertWidgetCommand::InsertWidgetCommand Container container,
const QCString &  className,
const QPoint &  pos,
const QCString &  namePrefix = QCString()
 

This ctor allows to set explicit class name and position. Used for dropping widgets on the form surface. If namePrefix is empty, widget's unique name is constructed using hint for className (WIdgetLibrary::namePrefix()), otherwise, namePrefix is used to generate widget's name. This allows e.g. inserting a widgets having name constructed using

Definition at line 678 of file commands.cpp.


Member Function Documentation

void InsertWidgetCommand::execute  )  [virtual]
 

Todo:
allow setting this for data view mode as well
Todo:
update widget's width for entered text's metrics

Definition at line 698 of file commands.cpp.

QCString KFormDesigner::InsertWidgetCommand::widgetName  )  const [inline]
 

Returns:
inserted widget's name

Definition at line 195 of file commands.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys