PropertiesListView Class Reference

#include <propertieslistview.h>

Collaboration diagram for PropertiesListView:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotCreate (ItemGroup *itemGroup)
void slotUpdate (ItemGroup *itemGroup)
void slotClear ()
void slotSelectionChanged (QListViewItem *item)
void slotMergeProperties ()
void slotSetDefaults ()

Public Member Functions

 PropertiesListView (QWidget *parent=0, const char *name=0)
 ~PropertiesListView ()

Protected Slots

void headerSizeChanged (int section, int oldSize, int newSize)
void slotDataChanged (const QString &id, QVariant data)
void destroyEditor ()

Protected Member Functions

virtual void wheelEvent (QWheelEvent *e)

Protected Attributes

PIEditorm_editor
QPushButton * m_diffBt
PLVItemp_lastItem
PLVItemMap m_plvItemMap

Detailed Description

Author:
Daniel Clarke

David Saxton

Definition at line 29 of file propertieslistview.h.


Member Function Documentation

void PropertiesListView::slotCreate ( ItemGroup itemGroup  )  [slot]

Creates a new set of property items and inserts them into the widget.

Definition at line 57 of file propertieslistview.cpp.

References ItemGroup::activeItem(), m_plvItemMap, slotClear(), slotUpdate(), and Item::variantMap().

Referenced by ItemEditor::slotUpdate().

void PropertiesListView::slotUpdate ( ItemGroup itemGroup  )  [slot]

Updates the set of property items (enables/disables according to whether the items have differing values, etc). This will be called by slotCreate, and any time new items are selected / unselected.

Definition at line 112 of file propertieslistview.cpp.

References ItemGroup::itemsHaveSameDataValue(), m_plvItemMap, and slotClear().

Referenced by slotCreate(), and ItemEditor::updateMergeDefaults().

void PropertiesListView::slotClear (  )  [slot]

Removes all property items from the widget.

Definition at line 48 of file propertieslistview.cpp.

References destroyEditor(), m_diffBt, and m_plvItemMap.

Referenced by ItemEditor::slotClear(), slotCreate(), and slotUpdate().

void PropertiesListView::slotMergeProperties (  )  [slot]

Whenthe selected items have different values, then the property editor for the disagreeing property will have a value taken from one of the items, but will also be disabled. This will enable all disabled property editors and set the items to the value contained.

Definition at line 286 of file propertieslistview.cpp.

References ItemInterface::self(), and ItemInterface::slotSetData().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:56 2007 for KTechLab by  doxygen 1.5.1