PropertyLib::PropertyEditor Class Reference
Property editor. More...
#include <propertyeditor.h>
Inheritance diagram for PropertyLib::PropertyEditor:


Public Slots | |
void | populateProperties (PropertyList *list) |
Shows properties from a list. | |
void | clearProperties () |
Clears property list, disconnects accessor from the editor and deletes it. | |
void | clearMachineCache () |
Deletes cached machines. | |
Public Member Functions | |
PropertyEditor (QWidget *parent=0, const char *name=0) | |
Constructs the property editor. | |
~PropertyEditor () | |
Machine * | machine (MultiProperty *property) |
Protected Slots | |
void | propertyValueChanged (Property *property) |
Updates property widget in the editor. | |
void | propertyChanged (MultiProperty *property, const QVariant &value) |
Updates property in the list when new value is selected in the editor. | |
void | slotClicked (QListViewItem *item) |
Shows property editor. | |
void | updateEditorSize () |
void | undo () |
Undoes the last change in property editor. | |
Protected Member Functions | |
void | editItem (QListViewItem *, int) |
void | hideEditor () |
void | showEditor (PropertyItem *item) |
void | placeEditor (PropertyItem *item) |
PropertyWidget * | prepareEditor (PropertyItem *item) |
void | addGroup (const QString &name) |
void | addProperty (PropertyGroupItem *group, const QString &name) |
void | addProperty (const QString &name) |
void | addChildProperties (PropertyItem *parent) |
Private Attributes | |
PropertyList * | m_list |
PropertyList | m_detailedList |
QMap< int, Machine * > | m_registeredForType |
PropertyItem * | m_currentEditItem |
PropertyWidget * | m_currentEditWidget |
QWidget * | m_currentEditArea |
QGridLayout * | m_currentEditLayout |
bool | m_doubleClickForEdit |
QListViewItem * | m_lastClickedItem |
QPushButton * | m_undoButton |
Friends | |
class | PropertyItem |
Detailed Description
Property editor.Displays a list of properties in a table form. Also performs grouping and creation of property widgets from the machine factory.
- See also:
- PropertyWidget
Definition at line 52 of file propertyeditor.h.
Constructor & Destructor Documentation
|
Constructs the property editor.
Definition at line 164 of file propertyeditor.cpp. References KListView::addColumn(), m_currentEditArea, m_currentEditItem, m_currentEditLayout, m_currentEditWidget, m_doubleClickForEdit, m_lastClickedItem, m_list, m_undoButton, KListView::setSorting(), slotClicked(), undo(), and updateEditorSize(). |
|
Definition at line 200 of file propertyeditor.cpp. References clearMachineCache(). |
Member Function Documentation
|
Definition at line 255 of file propertyeditor.cpp. References PropertyLib::MultiProperty::details, m_detailedList, m_registeredForType, machine(), PropertyLib::PropertyItem::property(), PropertyItem, and PropertyLib::MultiProperty::type(). Referenced by addProperty(). |
|
|
|
Definition at line 246 of file propertyeditor.cpp. References addChildProperties(), m_list, and PropertyItem. |
|
Definition at line 237 of file propertyeditor.cpp. References addChildProperties(), m_list, and PropertyItem. Referenced by populateProperties(). |
|
Deletes cached machines.
Definition at line 446 of file propertyeditor.cpp. References m_registeredForType. Referenced by ~PropertyEditor(). |
|
Clears property list, disconnects accessor from the editor and deletes it.
Definition at line 276 of file propertyeditor.cpp. References PropertyLib::PropertyList::clear(), hideEditor(), m_detailedList, m_list, and propertyValueChanged(). |
|
|
|
Definition at line 327 of file propertyeditor.cpp. References m_currentEditArea, m_currentEditItem, m_currentEditLayout, m_currentEditWidget, m_lastClickedItem, and m_undoButton. Referenced by clearProperties(), and slotClicked(). |
|
Definition at line 430 of file propertyeditor.cpp. References m_currentEditArea, m_registeredForType, PropertyLib::MultiProperty::name(), propertyChanged(), PropertyLib::MultiProperty::type(), and PropertyLib::MultiProperty::valueList(). Referenced by addChildProperties(), and prepareEditor(). |
|
Definition at line 351 of file propertyeditor.cpp. References m_currentEditArea, m_currentEditLayout, m_currentEditWidget, m_undoButton, and prepareEditor(). Referenced by showEditor(), and updateEditorSize(). |
|
Shows properties from a list.
Definition at line 205 of file propertyeditor.cpp. References addProperty(), m_list, PropertyLib::PropertyList::propertiesOfGroup(), propertyValueChanged(), and slotClicked(). Referenced by BuildItemConfigWidget::BuildItemConfigWidget(). |
|
|
Updates property in the list when new value is selected in the editor.
Definition at line 306 of file propertyeditor.cpp. References kdDebug(), m_currentEditItem, PropertyLib::MultiProperty::name(), PropertyLib::PropertyItem::property(), PropertyLib::PropertyItem::setChanged(), and PropertyLib::MultiProperty::setValue(). Referenced by machine(). |
|
Updates property widget in the editor.
Definition at line 290 of file propertyeditor.cpp. References m_currentEditWidget, PropertyLib::Property::name(), PropertyLib::PropertyWidget::propertyName(), PropertyLib::PropertyWidget::setValue(), and PropertyLib::Property::value(). Referenced by clearProperties(), and populateProperties(). |
|
Definition at line 342 of file propertyeditor.cpp. References m_currentEditArea, m_currentEditItem, m_currentEditWidget, m_undoButton, and placeEditor(). Referenced by slotClicked(). |
|
Shows property editor.
Definition at line 410 of file propertyeditor.cpp. References hideEditor(), m_lastClickedItem, and showEditor(). Referenced by populateProperties(), and PropertyEditor(). |
|
Undoes the last change in property editor.
Definition at line 455 of file propertyeditor.cpp. References m_currentEditItem, m_currentEditWidget, PropertyLib::PropertyItem::setChanged(), and PropertyLib::PropertyWidget::undo(). Referenced by PropertyEditor(). |
|
Definition at line 404 of file propertyeditor.cpp. References m_currentEditItem, and placeEditor(). Referenced by PropertyEditor(). |
Friends And Related Function Documentation
|
Definition at line 114 of file propertyeditor.h. Referenced by addChildProperties(), and addProperty(). |
Member Data Documentation
|
Definition at line 106 of file propertyeditor.h. Referenced by hideEditor(), machine(), placeEditor(), PropertyEditor(), and showEditor(). |
|
Definition at line 104 of file propertyeditor.h. Referenced by hideEditor(), propertyChanged(), PropertyEditor(), showEditor(), undo(), and updateEditorSize(). |
|
Definition at line 107 of file propertyeditor.h. Referenced by hideEditor(), placeEditor(), and PropertyEditor(). |
|
Definition at line 105 of file propertyeditor.h. Referenced by hideEditor(), placeEditor(), PropertyEditor(), propertyValueChanged(), showEditor(), and undo(). |
|
Definition at line 99 of file propertyeditor.h. Referenced by addChildProperties(), and clearProperties(). |
|
Definition at line 109 of file propertyeditor.h. Referenced by PropertyEditor(). |
|
Definition at line 110 of file propertyeditor.h. Referenced by hideEditor(), PropertyEditor(), and slotClicked(). |
|
Definition at line 98 of file propertyeditor.h. Referenced by addProperty(), clearProperties(), populateProperties(), and PropertyEditor(). |
|
Definition at line 102 of file propertyeditor.h. Referenced by addChildProperties(), clearMachineCache(), and machine(). |
|
Definition at line 112 of file propertyeditor.h. Referenced by hideEditor(), placeEditor(), PropertyEditor(), and showEditor(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/propertyeditor.h
- lib/widgets/propeditor/propertyeditor.cpp