KFormDesigner::Form Class Reference
#include <form.h>
Detailed Description
A simple class representing a form.This class represents one form and holds the corresponding ObjectTree and Containers. It takes care of widget selection and pasting widgets.
Definition at line 135 of file form.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Creates a simple Form, child of the FormManager manager. Definition at line 90 of file form.cpp. References KFormDesigner::FormPrivate::collection, KFormDesigner::FormPrivate::design, KFormDesigner::FormPrivate::history, slotCommandExecuted(), and slotFormRestored(). |
|
|
Definition at line 105 of file form.cpp. References destroying(). |
Member Function Documentation
|
|
Definition at line 150 of file form.cpp. References commonParentContainer(), KFormDesigner::ObjectTreeItem::container(), KFormDesigner::ObjectTree::lookup(), KFormDesigner::ObjectTreeItem::parent(), KFormDesigner::FormPrivate::selected, KFormDesigner::FormPrivate::toplevel, and KFormDesigner::FormPrivate::topTree. Referenced by KFormDesigner::ObjectTreeView::displayContextMenu(). |
|
||||||||||||
|
Adds a widget in the form's command history. Please use it instead of calling directly actionCollection()->addCommand(). Definition at line 400 of file form.cpp. References KFormDesigner::FormPrivate::dirty, KFormDesigner::FormPrivate::history, KFormDesigner::FormManager::self(), and slotCommandExecuted(). |
|
|
Adds the widget at the end of tabstops list. Called on widget creation. Definition at line 454 of file form.cpp. References KFormDesigner::FormPrivate::tabstops. Referenced by emitChildAdded(). |
|
|
Tells the Form to reassign the tab stops because the widget layout has changed (called for example before saving or displaying the tab order dialog) Definition at line 496 of file form.cpp. References foreach_list, KFormDesigner::ObjectTree::lookup(), KFormDesigner::ObjectTreeItem::name(), KFormDesigner::FormPrivate::tabstops, and KFormDesigner::FormPrivate::topTree. Referenced by KFormDesigner::TabStopDialog::exec(). |
|
|
Definition at line 278 of file form.h. Referenced by KFormDesigner::TabStopDialog::exec(). |
|
||||||||||||
|
This slot is called when the name of a widget was changed in Property Editor. It renames the ObjectTreeItem associated to this widget. Definition at line 360 of file form.cpp. References KFormDesigner::FormPrivate::connBuffer, KFormDesigner::ConnectionBuffer::fixName(), KFormDesigner::ObjectTree::rename(), KFormDesigner::FormPrivate::resizeHandles, KFormDesigner::FormManager::self(), KFormDesigner::FormPrivate::topTree, and widget(). |
|
|
This signal is emitted when a new widget is created, to update ObjectTreeView. it is the ObjectTreeItem representing this new widget. Referenced by emitChildAdded(). |
|
|
This signal is emitted when a widget is deleted, to update ObjectTreeView. it is the ObjectTreeItem representing this deleted widget. Referenced by emitChildRemoved(). |
|
|
Clears form's command history. Definition at line 410 of file form.cpp. References KFormDesigner::FormPrivate::history, and KFormDesigner::FormManager::self(). |
|
|
Definition at line 301 of file form.cpp. References emitActionSignals(), KFormDesigner::FormPrivate::resizeHandles, KFormDesigner::FormPrivate::selected, and selectionChanged(). |
|
|
|
|
|
Definition at line 170 of file form.cpp. References KFormDesigner::ObjectTree::lookup(), KFormDesigner::removeChildrenFromList(), and KFormDesigner::FormPrivate::topTree. Referenced by activeContainer(). |
|
|
||||||||||||||||
|
Creates a toplevel widget out of another widget. container will become the Form toplevel widget, will be associated to an ObjectTree and so on. Definition at line 126 of file form.cpp. References formDeleted(), KFormDesigner::FormPrivate::pixcollection, setFormWidget(), KFormDesigner::ObjectTreeItem::setWidget(), KFormDesigner::FormPrivate::toplevel, and KFormDesigner::FormPrivate::topTree. Referenced by KFormDesigner::FormManager::previewForm(), KexiDBSubForm::setFormName(), and SubForm::setFormName(). |
|
|
|
|
|
|
|
|
Definition at line 225 of file form.h. Referenced by KFormDesigner::CreateLayoutCommand::execute(), KFormDesigner::InsertWidgetCommand::execute(), and KFormDesigner::FormIO::loadWidget(). |
|
|
This signal emitted when Form is about to be destroyed.
Referenced by ~Form(). |
|
|
Emits the action signals, and optionaly the undo/redo related signals if withUndoAction == true. See FormManager for signals description. Definition at line 310 of file form.cpp. References KFormDesigner::FormPrivate::collection, KFormDesigner::FormPrivate::selected, KFormDesigner::FormManager::self(), and widget(). Referenced by clearSelection(), and setSelectedWidget(). |
|
|
This function is used by ObjectTree to emit childAdded() signal (as it is not a QObject). Definition at line 384 of file form.cpp. References addWidgetToTabStops(), and childAdded(). |
|
|
This function is used by ObjectTree to emit childRemoved() signal (as it is not a QObject). Definition at line 391 of file form.cpp. References childRemoved(), KFormDesigner::FormPrivate::connBuffer, KFormDesigner::ObjectTreeItem::name(), KFormDesigner::ConnectionBuffer::removeAllConnectionsForWidget(), and KFormDesigner::FormPrivate::tabstops. |
|
|
Definition at line 436 of file form.cpp. References KFormDesigner::FormPrivate::collection, and KFormDesigner::FormManager::self(). Referenced by slotCommandExecuted(). |
|
|
Emits again all signal related to selection (ie Form::selectionChanged()). Called eg when the user has the focus again. Definition at line 333 of file form.cpp. References selectedWidgets(), and selectionChanged(). Referenced by KFormDesigner::FormManager::windowChanged(). |
|
|
Definition at line 428 of file form.cpp. References KFormDesigner::FormPrivate::collection, and KFormDesigner::FormManager::self(). Referenced by slotCommandExecuted(). |
|
|
Definition at line 247 of file form.h. Referenced by KFormDesigner::FormIO::saveFormToFile(). |
|
|
Definition at line 537 of file form.cpp. References KFormDesigner::FormPrivate::formatVersion. |
|
|
This slot is called when the toplevel widget of this Form is deleted (ie the window closed) so that the Form gets deleted at the same time. Definition at line 344 of file form.cpp. References KFormDesigner::FormPrivate::resizeHandles, KFormDesigner::FormPrivate::selected, and KFormDesigner::FormManager::self(). Referenced by createToplevel(). |
|
|
Definition at line 163 of file form.h. Referenced by KFormDesigner::FormManager::resetCreatedConnection(). |
|
|
Definition at line 231 of file form.h. Referenced by KFormDesigner::AdjustSizeCommand::execute(), KFormDesigner::AlignWidgetsCommand::execute(), KexiReportScrollView::slotResizingStarted(), and KexiFormScrollView::slotResizingStarted(). |
|
|
A set of value/key pairs provided to be stored as attributes in <kfd:customHeader/> XML element (saved as a first child of <UI> element). Definition at line 305 of file form.h. Referenced by KFormDesigner::FormIO::loadFormFromDom(). |
|
|
|
|
|
Definition at line 227 of file form.h. Referenced by KFormDesigner::FormManager::windowChanged(). |
|
|
Definition at line 146 of file form.h. Referenced by KFormDesigner::WidgetPropertySet::createPropertiesForWidget(), KFormDesigner::WidgetPropertySet::emitWidgetPropertyChanged(), KFormDesigner::CreateLayoutCommand::execute(), KFormDesigner::ObjectTreeView::iconNameForClass(), and KFormDesigner::FormIO::saveWidget(). |
|
|
|
Definition at line 546 of file form.cpp. References KFormDesigner::FormPrivate::originalFormatVersion. |
|
|
Definition at line 195 of file form.cpp. References KFormDesigner::ObjectTree::lookup(), KFormDesigner::ObjectTreeItem::parent(), and KFormDesigner::FormPrivate::topTree. Referenced by KFormDesigner::DeleteWidgetCommand::DeleteWidgetCommand(), and KFormDesigner::DeleteWidgetCommand::execute(). |
|
|
Definition at line 254 of file form.h. Referenced by KFormDesigner::FormIO::loadFormFromDom(), and KFormDesigner::FormIO::readPropertyValue(). |
|
|
Internal: called by ResizeHandle when mouse move event causes first resize handle's dragging. As a result, current widget's editing (if any) is finished - see WidgetFactory::resetEditor(). Definition at line 282 of file form.cpp. References KFormDesigner::FormPrivate::resizeHandles. |
|
|
Definition at line 196 of file form.h. Referenced by KexiDBFactory::changeText(). |
|
|
Definition at line 191 of file form.h. Referenced by KFormDesigner::WidgetFactory::changeProperty(), KFormDesigner::FormManager::emitFormWidgetSelected(), emitSelectionSignals(), KFormDesigner::FormManager::emitWidgetSelected(), KFormDesigner::AlignWidgetsCommand::execute(), and KFormDesigner::ObjectTreeView::slotSelectionChanged(). |
|
|
Sets the form widget (it will be uniquely selected widget). Definition at line 295 of file form.cpp. References setSelectedWidget(), and widget(). Referenced by KFormDesigner::AdjustSizeCommand::execute(), KFormDesigner::AlignWidgetsCommand::execute(), KFormDesigner::ObjectTreeView::slotSelectionChanged(), KFormDesigner::AdjustSizeCommand::unexecute(), and KFormDesigner::AlignWidgetsCommand::unexecute(). |
|
||||||||||||||||
|
This signal is emitted by setSelectedWidget() when user selects a new widget, to update both Property Editor and ObjectTreeView. w is the newly selected widget. Referenced by clearSelection(), emitSelectionSignals(), and setSelectedWidget(). |
|
|
If autoTab is true, then the Form will automatically handle tab stops, and the "Edit Tab Order" dialog will be disabled. The tab widget will be set from the top-left to the bottom-right corner. Definition at line 285 of file form.h. Referenced by KFormDesigner::TabStopDialog::exec(). |
|
|
Definition at line 380 of file form.h. Referenced by KFormDesigner::ConnectionDialog::slotOk(). |
|
|
If design is true, the Form is in Design Mode (by default). If design is false, then the Form is in Preview Mode, so the ObjectTree and the Containers are removed. Definition at line 213 of file form.cpp. References KFormDesigner::FormPrivate::design, KFormDesigner::ObjectTree::dict(), KFormDesigner::WidgetLibrary::previewWidget(), KFormDesigner::FormPrivate::toplevel, KFormDesigner::FormPrivate::topTree, KFormDesigner::ObjectTreeItem::widget(), and KFormDesigner::FormPrivate::widget. Referenced by KFormDesigner::FormManager::importForm(). |
|
|
Sets the filename of this Form to filename.
Definition at line 250 of file form.h. Referenced by KFormDesigner::FormIO::saveFormToFile(). |
|
|
Definition at line 542 of file form.cpp. References KFormDesigner::FormPrivate::formatVersion. Referenced by KFormDesigner::FormIO::loadFormFromDom(). |
|
|
Definition at line 556 of file form.cpp. References KFormDesigner::FormPrivate::formWidget, and KFormDesigner::FormWidget::m_form. Referenced by createToplevel(), and KFormDesigner::FormWidget::~FormWidget(). |
|
|
Sets the Form interactivity mode. Form is not interactive when pasting widgets, or loading a Form. Definition at line 209 of file form.h. Referenced by KFormDesigner::PasteWidgetCommand::execute(), and KFormDesigner::DeleteWidgetCommand::unexecute(). |
|
|
Definition at line 551 of file form.cpp. References KFormDesigner::FormPrivate::originalFormatVersion. Referenced by KFormDesigner::FormIO::loadFormFromDom(). |
|
||||||||||||||||||||
|
Sets selected to be the selected widget of this Form. If add is true, the formerly selected widget is still selected, and the new one is just added. If false, selected replace the actually selected widget. The form widget is always selected alone. moreWillBeSelected indicates whether more widgets will be selected soon (so for multiselection we should not update the property pane before the last widget is selected) Definition at line 236 of file form.cpp. References emitActionSignals(), KFormDesigner::FormPrivate::resizeHandles, KFormDesigner::FormPrivate::selected, selectionChanged(), KFormDesigner::FormManager::self(), and widget(). Referenced by KFormDesigner::DeleteWidgetCommand::execute(), KFormDesigner::AdjustSizeCommand::execute(), KFormDesigner::AlignWidgetsCommand::execute(), selectFormWidget(), KFormDesigner::ObjectTreeView::slotSelectionChanged(), KFormDesigner::AdjustSizeCommand::unexecute(), and KFormDesigner::AlignWidgetsCommand::unexecute(). |
|
|
This slot is called when a command is executed. The undo/redo signals are emitted to update actions. Definition at line 418 of file form.cpp. References KFormDesigner::FormPrivate::dirty, emitRedoEnabled(), emitUndoEnabled(), and KFormDesigner::FormManager::self(). Referenced by addCommand(), and Form(). |
|
|
This slot is called when form is restored, ie when the user has undone all actions. The form modified flag is updated, and FormManager::dirty() is called. Definition at line 444 of file form.cpp. References KFormDesigner::FormPrivate::dirty, and KFormDesigner::FormManager::self(). Referenced by Form(). |
|
|
Definition at line 266 of file form.h. Referenced by KFormDesigner::TabStopDialog::exec(), and KFormDesigner::FormIO::loadFormFromDom(). |
|
|
Definition at line 268 of file form.h. Referenced by KFormDesigner::TabStopDialog::exec(), and KexiDBForm::updateTabStopsOrder(). |
|
|
Definition at line 160 of file form.h. Referenced by KFormDesigner::FormManager::emitFormWidgetSelected(), KFormDesigner::CreateLayoutCommand::execute(), KFormDesigner::FormManager::formForWidget(), KFormDesigner::FormManager::insertWidget(), KFormDesigner::FormManager::startCreatingConnection(), and KFormDesigner::FormManager::windowChanged(). |
|
|
Unselects the widget w. Te widget is removed from the Cntainer 's list and its resizeHandle is removed. Definition at line 288 of file form.cpp. References KFormDesigner::FormPrivate::resizeHandles, and KFormDesigner::FormPrivate::selected. |
|
|
Called (e.g. by KexiDBForm) when certain widgets can have updated focusPolicy properties these having no TabFocus flags set are removed from tabStops() list. Definition at line 483 of file form.cpp. References kexidbg, and KFormDesigner::FormPrivate::tabstops. Referenced by KFormDesigner::TabStopDialog::exec(). |
|
Friends And Related Function Documentation
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following files:
