kexi

#include <formmanager.h>

Public Types

enum  Options { HideEventsInPopupMenu = 1 , SkipFileActions = 2 , HideSignalSlotConnections = 4 }

Public Slots

void deleteWidget ()
void copyWidget ()
void cutWidget ()
void pasteWidget ()
void selectAll ()
void clearWidgetContent ()
void undo ()
void redo ()
void editTabOrder ()
void adjustWidgetSize ()
void editFormPixmapCollection ()
void editConnections ()
void layoutHBox ()
void layoutVBox ()
void layoutGrid ()
void layoutHSplitter ()
void layoutVSplitter ()
void layoutHFlow ()
void layoutVFlow ()
void breakLayout ()
void alignWidgetsToLeft ()
void alignWidgetsToRight ()
void alignWidgetsToTop ()
void alignWidgetsToBottom ()
void alignWidgetsToGrid ()
void adjustSizeToGrid ()
void adjustWidthToSmall ()
void adjustWidthToBig ()
void adjustHeightToSmall ()
void adjustHeightToBig ()
void bringWidgetToFront ()
void sendWidgetToBack ()
void insertWidget (const TQCString &classname)
void stopInsert ()
void slotPointerClicked ()
void startCreatingConnection ()
void stopCreatingConnection ()
void windowChanged (TQWidget *w)
void deleteWidgetLater (TQWidget *w)
void showFormUICode ()
void changeFont ()

Signals

void propertySetSwitched (KoProperty::Set *set, bool forceReload=false, const TQCString &propertyToSelect=TQCString())
void dirty (KFormDesigner::Form *form, bool isDirty=true)
void widgetSelected (KFormDesigner::Form *form, bool multiple)
void formWidgetSelected (KFormDesigner::Form *form)
void noFormSelected ()
void undoEnabled (bool enabled, const TQString &text=TQString())
void redoEnabled (bool enabled, const TQString &text=TQString())
void createFormSlot (KFormDesigner::Form *form, const TQString &widget, const TQString &signal)
void connectionCreated (KFormDesigner::Form *form, KFormDesigner::Connection &connection)
void connectionAborted (KFormDesigner::Form *form)
void autoTabStopsSet (KFormDesigner::Form *form, bool set)
void aboutToDeleteForm (KFormDesigner::Form *form)
void formCreated (KFormDesigner::Form *form)

Public Member Functions

 FormManager (TQObject *parent=0, int options=0, const char *name=0)
ActionList createActions (WidgetLibrary *lib, TDEActionCollection *collection, KXMLGUIClient *client)
virtual void enableAction (const char *name, bool enable)=0
virtual TDEAction * action (const char *name)=0
bool isPasteEnabled ()
WidgetPropertySet * propertySet () const
bool isInserting () const
TQCString selectedClass () const
void setInsertPoint (const TQPoint &p)
bool isCreatingConnection ()
Connection * createdConnection ()
void resetCreatedConnection ()
void createSignalMenu (TQWidget *w)
void createSlotMenu (TQWidget *w)
void emitCreateSlot (const TQString &widget, const TQString &value)
Form * activeForm () const
Form * formForWidget (TQWidget *w)
bool isTopLevel (TQWidget *w)
virtual void showPropertySet (WidgetPropertySet *set, bool forceReload=false, const TQCString &propertyToSelect=TQCString())
void blockPropertyEditorUpdating (void *blockingObject)
void unblockPropertyEditorUpdating (void *blockingObject, WidgetPropertySet *set)
void setEditor (KoProperty::Editor *editor)
void setObjectTreeView (ObjectTreeView *treeview)
void previewForm (Form *form, TQWidget *w, Form *toForm=0)
void importForm (Form *form=0, bool preview=false)
void deleteForm (Form *form)
void createContextMenu (TQWidget *w, Container *container, bool popupAtCursor=true)
bool snapWidgetsToGrid ()
int contextMenuKey () const
void emitWidgetSelected (KFormDesigner::Form *form, bool multiple)
void emitFormWidgetSelected (KFormDesigner::Form *form)
void emitNoFormSelected ()
bool isRedoing () const

Static Public Member Functions

static WidgetLibrary * createWidgetLibrary (FormManager *m, const TQStringList &supportedFactoryGroups)
static FormManager * self ()

Protected Slots

void deleteWidgetLaterTimeout ()
void buddyChosen (int id)
void menuSignalChosen (int id)
void slotStyle ()
void slotConnectionCreated (KFormDesigner::Form *, KFormDesigner::Connection &)
void slotSettingsChanged (int category)

Protected Member Functions

void initForm (Form *form)
void createLayout (int layoutType)
void alignWidgets (int type)
void enableFormActions ()
void disableWidgetActions ()
void emitUndoEnabled (bool enabled, const TQString &text)
void emitRedoEnabled (bool enabled, const TQString &text)

Protected Attributes

bool m_emitSelectionSignalsUpdatesPropertySet: 1

Friends

class PropertyCommand
class GeometryPropertyCommand
class CutWidgetCommand
class Form

Detailed Description

A class to manage (create/load/save) Forms.

This is Form Designer's main class, which is used by external APIs to access FormDesigner. This is the class you have to use to integrate FormDesigner into another program. It deals with creating, saving and loading Form, as well as widget insertion and copying. It also ensures all the components (ObjectTreeView, Form and PropertyEditor) are synced, and link them. It holds the WidgetLibrary, the WidgetPropertySet, links to ObjectTreeView and PropertyEditor, as well as the copied widget and the insert state.

Definition at line 72 of file formmanager.h.

Member Enumeration Documentation

◆ Options

Options for creating FormManager objects. These are really bit-flags and may be or-ed together.

Definition at line 95 of file formmanager.h.

Constructor & Destructor Documentation

◆ FormManager()

FormManager::FormManager ( TQObject * parent = 0,
int options = 0,
const char * name = 0 )

Constructs FormManager object. Using options you can control manager's behaviour, see Options.

Definition at line 107 of file formmanager.cpp.

◆ ~FormManager()

FormManager::~FormManager ( )
virtual

Definition at line 150 of file formmanager.cpp.

Member Function Documentation

◆ aboutToDeleteForm

void KFormDesigner::FormManager::aboutToDeleteForm ( KFormDesigner::Form * form)
signal

Signal emitted before the form gets finally deleted. form is still a valid pointer, but the widgets inside the form are in unknown state.

◆ action()

virtual TDEAction * KFormDesigner::FormManager::action ( const char * name)
pure virtual
Returns
action for name.
See also
enableAction()

◆ activeForm()

Form * FormManager::activeForm ( ) const
Returns
The Form actually active and focused.

Definition at line 576 of file formmanager.cpp.

◆ adjustHeightToBig

void FormManager::adjustHeightToBig ( )
slot

Resize all selected widgets to the height of the tallest widget.

Definition at line 1346 of file formmanager.cpp.

◆ adjustHeightToSmall

void FormManager::adjustHeightToSmall ( )
slot

Resize all selected widgets to the height of the shortest widget.

Definition at line 1336 of file formmanager.cpp.

◆ adjustSizeToGrid

void FormManager::adjustSizeToGrid ( )
slot

Definition at line 1306 of file formmanager.cpp.

◆ adjustWidgetSize

void FormManager::adjustWidgetSize ( )
slot

Adjusts the size of the selected widget, ie resize it to its size hint.

Definition at line 1286 of file formmanager.cpp.

◆ adjustWidthToBig

void FormManager::adjustWidthToBig ( )
slot

Resize all selected widgets to the width of the widest widget.

Definition at line 1326 of file formmanager.cpp.

◆ adjustWidthToSmall

void FormManager::adjustWidthToSmall ( )
slot

Resize all selected widgets to the width of the narrowest widget.

Definition at line 1316 of file formmanager.cpp.

◆ alignWidgets()

void FormManager::alignWidgets ( int type)
protected

Function called by all other AlignWidgets*() function. Calls AlignWidgetsCommand.

Definition at line 1241 of file formmanager.cpp.

◆ alignWidgetsToBottom

void FormManager::alignWidgetsToBottom ( )
slot

Definition at line 1280 of file formmanager.cpp.

◆ alignWidgetsToGrid

void FormManager::alignWidgetsToGrid ( )
slot

Definition at line 1296 of file formmanager.cpp.

◆ alignWidgetsToLeft

void FormManager::alignWidgetsToLeft ( )
slot

Definition at line 1262 of file formmanager.cpp.

◆ alignWidgetsToRight

void FormManager::alignWidgetsToRight ( )
slot

Definition at line 1268 of file formmanager.cpp.

◆ alignWidgetsToTop

void FormManager::alignWidgetsToTop ( )
slot

Definition at line 1274 of file formmanager.cpp.

◆ autoTabStopsSet

void KFormDesigner::FormManager::autoTabStopsSet ( KFormDesigner::Form * form,
bool set )
signal

Signal emitted when "autoTabStops" is changed.

◆ blockPropertyEditorUpdating()

void FormManager::blockPropertyEditorUpdating ( void * blockingObject)

Definition at line 1168 of file formmanager.cpp.

◆ breakLayout

void FormManager::breakLayout ( )
slot

Breaks selected layout(calls BreakLayoutCommand).

Definition at line 1129 of file formmanager.cpp.

◆ bringWidgetToFront

void FormManager::bringWidgetToFront ( )
slot

Definition at line 1356 of file formmanager.cpp.

◆ buddyChosen

void FormManager::buddyChosen ( int id)
protectedslot

Slot called when a buddy is chosen in the buddy list. Sets the label buddy.

Definition at line 996 of file formmanager.cpp.

◆ changeFont

void FormManager::changeFont ( )
slot

Executes font dialog and changes it for currently selected widget(s).

Todo
this modification is not added to UNDO BUFFER: do it when KoProperty::Set supports multiple selections

Definition at line 1657 of file formmanager.cpp.

◆ clearWidgetContent

void FormManager::clearWidgetContent ( )
slot

Clears the contents of the selected widget(s) (eg for a line edit or a listview).

Definition at line 1391 of file formmanager.cpp.

◆ connectionAborted

void KFormDesigner::FormManager::connectionAborted ( KFormDesigner::Form * form)
signal

Signal emitted when the Connection creation by drag-and-drop is aborted by user.

◆ connectionCreated

void KFormDesigner::FormManager::connectionCreated ( KFormDesigner::Form * form,
KFormDesigner::Connection & connection )
signal

Signal emitted when the Connection creation by drag-and-drop ends. connection is the created Connection. You should copy it, because it is deleted just after the signal is emitted.

◆ contextMenuKey()

int KFormDesigner::FormManager::contextMenuKey ( ) const
inline

Definition at line 209 of file formmanager.h.

◆ copyWidget

void FormManager::copyWidget ( )
slot

Copies the slected widget and all its children of the active Form using an XML representation.

Definition at line 723 of file formmanager.cpp.

◆ createActions()

ActionList FormManager::createActions ( WidgetLibrary * lib,
TDEActionCollection * collection,
KXMLGUIClient * client )

Creates all the TDEActions related to widget insertion, and plug them into the collection. client XML GUI client is used to call lib->addCustomWidgetActions(client). These actions are automatically connected to insertWidget() slot.

Returns
a TQPtrList of the created actions.

Definition at line 194 of file formmanager.cpp.

◆ createContextMenu()

void FormManager::createContextMenu ( TQWidget * w,
Container * container,
bool popupAtCursor = true )

This function creates and displays the context menu corresponding to the widget w. The menu item are disabled if necessary, and the widget specific part is added (menu from the factory and buddy selection).

Definition at line 839 of file formmanager.cpp.

◆ createdConnection()

Connection * KFormDesigner::FormManager::createdConnection ( )
inline
Returns
the Connection being created.

Definition at line 137 of file formmanager.h.

◆ createFormSlot

void KFormDesigner::FormManager::createFormSlot ( KFormDesigner::Form * form,
const TQString & widget,
const TQString & signal )
signal

Signal emitted when the user choose a signal in 'Events' menu in context menu, or in 'Events' in property editor. The code editor should then create the slot connected to this signal.

◆ createLayout()

void FormManager::createLayout ( int layoutType)
protected

Function called by the "Lay out in..." menu items. It creates a layout from the currently selected widgets (that must have the same parent). Calls CreateLayoutCommand.

Definition at line 1094 of file formmanager.cpp.

◆ createSignalMenu()

void FormManager::createSignalMenu ( TQWidget * w)

Creates and display a menu with all the signals of widget w.

Definition at line 787 of file formmanager.cpp.

◆ createSlotMenu()

void FormManager::createSlotMenu ( TQWidget * w)

Creates and display a menu with all the slots of widget w.

Definition at line 808 of file formmanager.cpp.

◆ createWidgetLibrary()

WidgetLibrary * FormManager::createWidgetLibrary ( FormManager * m,
const TQStringList & supportedFactoryGroups )
static

Creates widget library for supportedFactoryGroups and initializes FormManager singleton. m should be always the same for every call.

Definition at line 168 of file formmanager.cpp.

◆ cutWidget

void FormManager::cutWidget ( )
slot

Cuts (ie Copies and deletes) the selected widget and all its children of the active Form using an XML representation.

Definition at line 755 of file formmanager.cpp.

◆ deleteForm()

void FormManager::deleteForm ( Form * form)

Deletes the Form form and removes it from our list.

Definition at line 593 of file formmanager.cpp.

◆ deleteWidget

void FormManager::deleteWidget ( )
slot

Deletes the selected widget in active Form and all of its children.

Definition at line 704 of file formmanager.cpp.

◆ deleteWidgetLater

void FormManager::deleteWidgetLater ( TQWidget * w)
slot

Used to delayed widgets' deletion (in Container::deleteItem()).

Definition at line 1401 of file formmanager.cpp.

◆ deleteWidgetLaterTimeout

void FormManager::deleteWidgetLaterTimeout ( )
protectedslot

Definition at line 1410 of file formmanager.cpp.

◆ dirty

void KFormDesigner::FormManager::dirty ( KFormDesigner::Form * form,
bool isDirty = true )
signal

This signal is emitted when any change is made to the Form form, so it will need to be saved.

◆ disableWidgetActions()

void FormManager::disableWidgetActions ( )
protected

Definition at line 1615 of file formmanager.cpp.

◆ editConnections

void FormManager::editConnections ( )
slot

Creates a dialog to edit the Connection of activeForm().

Definition at line 1229 of file formmanager.cpp.

◆ editFormPixmapCollection

void FormManager::editFormPixmapCollection ( )
slot

Creates a dialog to edit the activeForm() PixmapCollection.

Definition at line 1219 of file formmanager.cpp.

◆ editTabOrder

void FormManager::editTabOrder ( )
slot

Displays a dialog where the user can modify the tab order of the active Form, by drag-n-drop or using up/down buttons.

Definition at line 1186 of file formmanager.cpp.

◆ emitCreateSlot()

void KFormDesigner::FormManager::emitCreateSlot ( const TQString & widget,
const TQString & value )
inline

Emits the signal createFormSlot(). Used by WidgetPropertySet.

Definition at line 151 of file formmanager.h.

◆ emitFormWidgetSelected()

void FormManager::emitFormWidgetSelected ( KFormDesigner::Form * form)

Definition at line 1529 of file formmanager.cpp.

◆ emitNoFormSelected()

void FormManager::emitNoFormSelected ( )

Definition at line 1567 of file formmanager.cpp.

◆ emitRedoEnabled()

void FormManager::emitRedoEnabled ( bool enabled,
const TQString & text )
protected

Definition at line 1650 of file formmanager.cpp.

◆ emitUndoEnabled()

void FormManager::emitUndoEnabled ( bool enabled,
const TQString & text )
protected

Definition at line 1643 of file formmanager.cpp.

◆ emitWidgetSelected()

void FormManager::emitWidgetSelected ( KFormDesigner::Form * form,
bool multiple )

Definition at line 1467 of file formmanager.cpp.

◆ enableAction()

virtual void KFormDesigner::FormManager::enableAction ( const char * name,
bool enable )
pure virtual

Enables or disables actions name. KFD uses KPart's, action collection here. Kexi implements this to get (shared) actions defined elsewhere.

◆ enableFormActions()

void FormManager::enableFormActions ( )
protected

Definition at line 1594 of file formmanager.cpp.

◆ formCreated

void KFormDesigner::FormManager::formCreated ( KFormDesigner::Form * form)
signal

Signal emitted when new form gets created.

◆ formForWidget()

Form * FormManager::formForWidget ( TQWidget * w)
Returns
the Form whose toplevel widget is w, or 0 if there is not or the Form is in preview mode.

Definition at line 582 of file formmanager.cpp.

◆ formWidgetSelected

void KFormDesigner::FormManager::formWidgetSelected ( KFormDesigner::Form * form)
signal

Signal emitted when the form widget is selected inside form. Use this to update actions state.

◆ importForm()

void FormManager::importForm ( Form * form = 0,
bool preview = false )

Adds a existing form w and changes it to a container

Definition at line 609 of file formmanager.cpp.

◆ initForm()

void FormManager::initForm ( Form * form)
protected

Inits the Form, adds it to m_forms, and conects slots.

Definition at line 621 of file formmanager.cpp.

◆ insertWidget

void FormManager::insertWidget ( const TQCString & classname)
slot

This slot is called when the user presses a "Widget" toolbar button or a "Widget" menu item. Prepares all Forms for creation of a new widget (ie changes cursor ...).

Definition at line 280 of file formmanager.cpp.

◆ isCreatingConnection()

bool KFormDesigner::FormManager::isCreatingConnection ( )
inline
Returns
If we are creating a Connection by drag-and-drop or not.

Definition at line 134 of file formmanager.h.

◆ isInserting()

bool KFormDesigner::FormManager::isInserting ( ) const
inline
Returns
true if one of the insert buttons was pressed and the forms are ready to create a widget.

Definition at line 124 of file formmanager.h.

◆ isPasteEnabled()

bool FormManager::isPasteEnabled ( )

Definition at line 254 of file formmanager.cpp.

◆ isRedoing()

bool KFormDesigner::FormManager::isRedoing ( ) const
inline

Definition at line 221 of file formmanager.h.

◆ isTopLevel()

bool FormManager::isTopLevel ( TQWidget * w)
Returns
true if w is a toplevel widget, ie. it is the main widget of a Form (so it should have a caption , an icon ...)

Definition at line 688 of file formmanager.cpp.

◆ layoutGrid

void FormManager::layoutGrid ( )
slot

Lay out selected widgets using Grid layout.

Definition at line 1064 of file formmanager.cpp.

◆ layoutHBox

void FormManager::layoutHBox ( )
slot

Lay out selected widgets using HBox layout (calls CreateLayoutCommand).

Definition at line 1052 of file formmanager.cpp.

◆ layoutHFlow

void FormManager::layoutHFlow ( )
slot

Lay out selected widgets using HFlow layout.

Definition at line 1082 of file formmanager.cpp.

◆ layoutHSplitter

void FormManager::layoutHSplitter ( )
slot

Lay out selected widgets in an horizontal splitter.

Definition at line 1070 of file formmanager.cpp.

◆ layoutVBox

void FormManager::layoutVBox ( )
slot

Lay out selected widgets using VBox layout.

Definition at line 1058 of file formmanager.cpp.

◆ layoutVFlow

void FormManager::layoutVFlow ( )
slot

Lay out selected widgets using VFlow layout.

Definition at line 1088 of file formmanager.cpp.

◆ layoutVSplitter

void FormManager::layoutVSplitter ( )
slot

Lay out selected widgets in a verticak splitter.

Definition at line 1076 of file formmanager.cpp.

◆ menuSignalChosen

void FormManager::menuSignalChosen ( int id)
protectedslot

Slot called when the user chooses an item in signal (or slot) menu. The createdConnection() is updated, and the connection created (for the signal menu).

Definition at line 1015 of file formmanager.cpp.

◆ noFormSelected

void KFormDesigner::FormManager::noFormSelected ( )
signal

Signal emitted when no form (or a preview form) is selected. Use this to update actions state.

◆ pasteWidget

void FormManager::pasteWidget ( )
slot

Pastes the XML representation of the copied or cut widget. The widget is pasted when the user clicks the Form to indicate the new position of the widget, or at the position of the contextual menu if there is one.

Definition at line 769 of file formmanager.cpp.

◆ previewForm()

void FormManager::previewForm ( Form * form,
TQWidget * w,
Form * toForm = 0 )

Previews the Form form using the widget w as toplevel container for this Form.

designMode, we need to set it early enough

Definition at line 647 of file formmanager.cpp.

◆ propertySet()

WidgetPropertySet * KFormDesigner::FormManager::propertySet ( ) const
inline
Returns
A pointer to the WidgetPropertySet owned by this Manager.

Definition at line 120 of file formmanager.h.

◆ propertySetSwitched

void KFormDesigner::FormManager::propertySetSwitched ( KoProperty::Set * set,
bool forceReload = false,
const TQCString & propertyToSelect = TQCString() )
signal

This signal is emitted as the property set switched. If forceReload is true, the set needs to be reloaded even if it's the same as previous one.

◆ redo

void FormManager::redo ( )
slot

Definition at line 269 of file formmanager.cpp.

◆ redoEnabled

void KFormDesigner::FormManager::redoEnabled ( bool enabled,
const TQString & text = TQString() )
signal

Signal emitted when redo action activation changes. text is the full text of the action (including command name).

◆ resetCreatedConnection()

void FormManager::resetCreatedConnection ( )

Resets the Connection being created. We stay in Connection creation mode, but we start a new connection (when the user clicks outside of signals/slots menu).

Definition at line 399 of file formmanager.cpp.

◆ selectAll

void FormManager::selectAll ( )
slot

Selects all toplevel widgets in trhe current form.

Definition at line 1376 of file formmanager.cpp.

◆ selectedClass()

TQCString KFormDesigner::FormManager::selectedClass ( ) const
inline
Returns
The name of the class being inserted, corresponding to the menu item or the toolbar button clicked.

Definition at line 128 of file formmanager.h.

◆ self()

FormManager * FormManager::self ( )
static

Access to FormManager singleton.

Definition at line 162 of file formmanager.cpp.

◆ sendWidgetToBack

void FormManager::sendWidgetToBack ( )
slot

Definition at line 1366 of file formmanager.cpp.

◆ setEditor()

void FormManager::setEditor ( KoProperty::Editor * editor)

Sets the external property editor pane used by FormDesigner (it may be docked).

Definition at line 176 of file formmanager.cpp.

◆ setInsertPoint()

void FormManager::setInsertPoint ( const TQPoint & p)

Sets the point where the pasted widget should be moved to.

Definition at line 781 of file formmanager.cpp.

◆ setObjectTreeView()

void FormManager::setObjectTreeView ( ObjectTreeView * treeview)

Sets the external object tree view used by FormDesigner (it may be docked). This function also connects appropriate signals and slots to ensure sync with the current Form.

Definition at line 185 of file formmanager.cpp.

◆ showFormUICode

void FormManager::showFormUICode ( )
slot

For debugging purposes only: shows a text window containing contents of .ui XML definition of the current form.

Definition at line 1416 of file formmanager.cpp.

◆ showPropertySet()

void FormManager::showPropertySet ( WidgetPropertySet * set,
bool forceReload = false,
const TQCString & propertyToSelect = TQCString() )
virtual
Returns
A pointer to the KoProperty::Editor we use.

Shows a property set set in a Property Editor. If buff is 0, Property Editor will be cleared. If forceReload is true, the set will be reloaded even if it's the same as previous one. If propertyToSelect is not empty, an item for this name will be selected (usable when previously there was no set visible).

Definition at line 1152 of file formmanager.cpp.

◆ slotConnectionCreated

void FormManager::slotConnectionCreated ( KFormDesigner::Form * form,
KFormDesigner::Connection & connection )
protectedslot

Definition at line 1040 of file formmanager.cpp.

◆ slotPointerClicked

void FormManager::slotPointerClicked ( )
slot

Slot called when the user presses 'Pointer' icon. Switch to Default mode.

Definition at line 347 of file formmanager.cpp.

◆ slotSettingsChanged

void FormManager::slotSettingsChanged ( int category)
protectedslot

Definition at line 1459 of file formmanager.cpp.

◆ slotStyle

void FormManager::slotStyle ( )
protectedslot

Slot called when the user changes current style using combbox in toolbar or menu.

Definition at line 1203 of file formmanager.cpp.

◆ snapWidgetsToGrid()

bool FormManager::snapWidgetsToGrid ( )
Returns
If we align widgets to grid or not.

Definition at line 462 of file formmanager.cpp.

◆ startCreatingConnection

void FormManager::startCreatingConnection ( )
slot

Enter the Connection creation mode.

Definition at line 356 of file formmanager.cpp.

◆ stopCreatingConnection

void FormManager::stopCreatingConnection ( )
slot

Leave the Connection creation mode.

Definition at line 419 of file formmanager.cpp.

◆ stopInsert

void FormManager::stopInsert ( )
slot

Stops the current widget insertion (ie unset the cursor ...).

Definition at line 312 of file formmanager.cpp.

◆ unblockPropertyEditorUpdating()

void FormManager::unblockPropertyEditorUpdating ( void * blockingObject,
WidgetPropertySet * set )

Definition at line 1176 of file formmanager.cpp.

◆ undo

void FormManager::undo ( )
slot

Definition at line 260 of file formmanager.cpp.

◆ undoEnabled

void KFormDesigner::FormManager::undoEnabled ( bool enabled,
const TQString & text = TQString() )
signal

Signal emitted when undo action activation changes. text is the full text of the action (including command name).

◆ widgetSelected

void KFormDesigner::FormManager::widgetSelected ( KFormDesigner::Form * form,
bool multiple )
signal

Signal emitted when a normal widget is selected inside form (ie not form widget). If multiple is true, then more than one widget is selected. Use this to update actions state.

◆ windowChanged

void FormManager::windowChanged ( TQWidget * w)
slot

Calls this slot when the window activated changes (eg connect to TQWorkspace::windowActivated(TQWidget*)). You need to connect to this slot, it will crash otherwise.

Definition at line 468 of file formmanager.cpp.

◆ CutWidgetCommand

friend class CutWidgetCommand
friend

Definition at line 491 of file formmanager.h.

◆ Form

friend class Form
friend

Definition at line 492 of file formmanager.h.

◆ GeometryPropertyCommand

friend class GeometryPropertyCommand
friend

Definition at line 490 of file formmanager.h.

◆ PropertyCommand

friend class PropertyCommand
friend

Definition at line 489 of file formmanager.h.

Member Data Documentation

◆ m_emitSelectionSignalsUpdatesPropertySet

bool KFormDesigner::FormManager::m_emitSelectionSignalsUpdatesPropertySet
protected

True if emitSelectionSignals() updates property set so showPropertySet() will not be needed in windowChanged(). False by default. Set to true in KexiFormManager.

Definition at line 436 of file formmanager.h.


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