kexi
KFormDesigner::WidgetPropertySet Class Reference
List of all members.Detailed Description
Definition at line 41 of file widgetpropertyset.h.
Public Slots | |
void | setSelectedWidget (QWidget *w, bool add=false) |
void | slotPropertyChanged (KoProperty::Set &set, KoProperty::Property &property) |
void | slotPropertyReset (KoProperty::Set &set, KoProperty::Property &property) |
void | slotWidgetDestroyed () |
void | createPropertyCommandsInDesignMode (QWidget *widget, const QMap< QCString, QVariant > &propValues, CommandGroup *group, bool addToActiveForm=true, bool execFlagForSubCommands=false) |
Signals | |
void | widgetPropertyChanged (QWidget *w, const QCString &property, const QVariant &v) |
void | widgetNameChanged (const QCString &oldname, const QCString &newname) |
Public Member Functions | |
WidgetPropertySet (QObject *parent) | |
~WidgetPropertySet () | |
KoProperty::Property & | operator[] (const QCString &name) |
KoProperty::Property & | property (const QCString &name) |
bool | contains (const QCString &property) |
void | addPropertyCaption (const QCString &property, const QString &caption) |
void | addValueCaption (const QCString &value, const QString &caption) |
Protected Member Functions | |
void | addWidget (QWidget *w) |
void | createPropertiesForWidget (QWidget *w) |
KoProperty::Property::ListData * | createValueList (WidgetInfo *winfo, const QStringList &list) |
void | updatePropertyValue (ObjectTreeItem *tree, const char *property) |
KoProperty::Set * | set () |
void | clearSet (bool dontSignalShowPropertySet=false) |
void | saveModifiedProperties () |
bool | isNameValid (const QString &name) |
void | saveEnabledProperty (bool value) |
bool | eventFilter (QObject *o, QEvent *ev) |
void | setUndoing (bool isUndoing) |
bool | isUndoing () |
bool | isPropertyVisible (const QCString &property, bool isTopLevel, const QCString &classname=QCString()) |
void | createAlignProperty (const QMetaProperty *meta, QWidget *obj) |
void | saveAlignProperty (const QString &property) |
void | createLayoutProperty (ObjectTreeItem *item) |
void | saveLayoutProperty (const QString &property, const QVariant &value) |
void | initPropertiesDescription () |
QString | propertyCaption (const QCString &name) |
QString | valueCaption (const QCString &name) |
Friends | |
class | FormManager |
class | PropertyCommand |
class | LayoutPropertyCommand |
class | GeometryPropertyCommand |
Member Function Documentation
|
i18n function used by factories to add new property caption. Should be called on Factory creation. Definition at line 1036 of file widgetpropertyset.cpp. |
|
Adds the widget in d->widgets, and updates property visibilty. Definition at line 218 of file widgetpropertyset.cpp. |
|
Clears the set, and reset all members. Definition at line 138 of file widgetpropertyset.cpp. |
|
Creates the properties related to alignment (ie hAlign, vAlign and WordBreak) for the QWidget obj. meta is the QMetaProperty for "alignment" property". Definition at line 706 of file widgetpropertyset.cpp. |
|
Creates the "layout" property, for the Container representing item. Definition at line 821 of file widgetpropertyset.cpp. |
|
Fills the list with properties related to the widget w. Also updates properties old value and changed state. Definition at line 249 of file widgetpropertyset.cpp. |
|
Creates a map property description->prop. value from the list of keys list. Definition at line 1011 of file widgetpropertyset.cpp. |
|
This function filters the event of the selected widget to automatically updates the "geometry" property when the widget is moved or resized in the Form. Definition at line 669 of file widgetpropertyset.cpp. |
|
Adds translations for general properties, by adding items in d->propDesc.
Definition at line 921 of file widgetpropertyset.cpp. |
|
Checks if the name entered by user is valid, ie that it is a valid identifier, and that there is no name conflict. Definition at line 608 of file widgetpropertyset.cpp. |
|
This function is used to filter the properties to be shown (ie not show "caption" if the widget isn't toplevel).
Definition at line 395 of file widgetpropertyset.cpp. |
|
Definition at line 999 of file widgetpropertyset.cpp. |
|
Saves the properties related to alignment (ie hAlign, vAlign and WordBreak) and modifies the "alignment" property of the widget. Definition at line 784 of file widgetpropertyset.cpp. |
|
Saves 'enabled' property, and takes care of updating widget's palette. Definition at line 578 of file widgetpropertyset.cpp. |
|
Saves the "layout" property and changes the Container 's layout ( using Container::setLayout() ). Definition at line 860 of file widgetpropertyset.cpp. |
|
Saves old values of modified properties in ObjectTreeItem, so that we can restore them later. Definition at line 157 of file widgetpropertyset.cpp. |
|
Definition at line 132 of file widgetpropertyset.cpp. |
|
Sets the widget which property are shown in the list. If add is true, the list switch to multiple widget mode (only common properties are shown). Should be directly connected to Form::widgetSelected() signal. Definition at line 187 of file widgetpropertyset.cpp. |
|
Changes undoing state of the list. Used by Undo command to prevent recursion. Definition at line 173 of file widgetpropertyset.cpp. |
|
This function is called every time a property is modifed. It also takes care of saving set and enum properties. Definition at line 432 of file widgetpropertyset.cpp. |
|
This slot is called when a property is reset using the "reload" button in PropertyEditor. Definition at line 639 of file widgetpropertyset.cpp. |
|
This slot is called when the watched widget is destroyed. Resets the buffer. Definition at line 656 of file widgetpropertyset.cpp. |
|
Changes property old value and changed state, using the value stored in tree. Definition at line 378 of file widgetpropertyset.cpp. |
|
Definition at line 1005 of file widgetpropertyset.cpp. |
|
This signal is emitted when the name of the widget is modified. oldname is the name of the widget before the change, newname is the name after renaming. |
|
This signal is emitted when a property was changed. widg is the widget concerned, property is the name of the modified property, and v is the new value of this property. |
The documentation for this class was generated from the following files: