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

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 | |
Form * | m_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
numberSuffixRequired
Definition at line 678 of file commands.cpp.
Member Function Documentation
void InsertWidgetCommand::execute | ( | ) | [virtual] |
Definition at line 698 of file commands.cpp.
QCString KFormDesigner::InsertWidgetCommand::widgetName | ( | ) | const [inline] |
The documentation for this class was generated from the following files: