![]() |
VR-Forces 4.1 Class Documentation
|

Signals | |
| void | featureChanged (QTreeWidgetItem *item) |
Signals inherited from DtTreeWidget | |
| void | mouseLeftPressed (QTreeWidgetItem *, QMouseEvent *, int col) |
| Emitted when the mouse button is pressed. | |
| void | rightClickOnItem (QTreeWidgetItem *, QMouseEvent *, int col) |
| Emitted when right button is released. | |
| void | contentsMoving (int, int) |
Public Member Functions | |
| DtTerrainFeaturesList (QWidget *parent) | |
| virtual | ~DtTerrainFeaturesList () |
| virtual void | setTerrainDatabase (const DtTerrainDatabase *db) |
| Sets up the list view to create the list of features and specifications. | |
| virtual void | featureChange (QTreeWidgetItem *item, bool enableItem) |
| virtual bool | init (bool onByDefault=true) |
| Initializes columns. | |
| virtual int | numSpecifications () const |
| Returns the number of items in the myFidList. | |
| virtual void | restoreFeatures () |
| Restores feature list to original values. | |
| virtual void | selectGroup (QString select) |
| Selects the group with the specified feature name. | |
| virtual void | getSelectedSpecifications (QHash< QString, QString > &specifications, bool inverse=false) |
| Fills in the dictionary with the key (specification value) and value (specification label). | |
| virtual void | setSelectedSpecifications (const QHash< QString, QString > &dict, bool inverse=false) |
| Select all items within a group or selected items. | |
| virtual bool | allChildrenSelected (QTreeWidgetItem *item) const |
| Returns true if all children of this partiular item are selected. | |
| virtual bool | showGroup (const QString &group, bool show) |
| Sets to show/hide the feature group. | |
| virtual bool | setFeatureColor (int fid, const QColor &color) |
| Sets the color of the feature item that matches the specified fid group. | |
| virtual bool | showFeature (int fid, bool b) |
| Turns on/off the display of this feature. | |
Public Member Functions inherited from DtTreeWidget | |
| DtTreeWidget (QWidget *parent) | |
| Constructor. | |
| virtual QTreeWidgetItem * | lastItem () const |
| Returns the last item in the list. | |
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &idx) |
| QModelIndex | indexFromItem (QTreeWidgetItem *item, int column=0) const |
| virtual int | indexOfChild (QTreeWidgetItem *) const |
| unsigned int | depth (QTreeWidgetItem *) const |
| Returns the number of levels down this item is. | |
| QTreeWidgetItem * | nextSibling (QTreeWidgetItem *) const |
| Returns the next item after the supplied item. | |
| void | setAllowEmptySelection (bool) |
| Only valid in single selection mode. | |
| bool | allowEmptySelection () const |
Protected Slots | |
| virtual void | featureChanged (QTreeWidgetItem *item, int iCol) |
Protected Member Functions | |
| virtual DtFeatureEntry * | createFeatureEntry () |
| Return a new instance of the feature entry class. | |
| virtual QTreeWidgetItem * | addFeatureEntry (const DtSpecificationStringAttribute *group, const DtSpecificationStringAttribute *groupName, int uniqueIdentifier, int iSpecification, DtSpecification &spec) |
| Add the new feature entry to the list box. | |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidget *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidgetItem *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
| virtual void | restore (QTreeWidgetItem *item) |
| Restores the feature list item to its original state. | |
Protected Member Functions inherited from DtTreeWidget | |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual void | scrollContentsBy (int, int) |
| virtual QSize | sizeHint () const |
| Need to do this as default sizeHint() for an abstract scroll area (in Qt 4.2.2) is too large. | |
| virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event=0) const |
| Override to allow empty selection in single selection mode. | |
| virtual QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
Protected Attributes | |
| QHash< int, DtFeatureEntry * > | myFidList |
| QHash< QString, QTreeWidgetItem * > | myGroups |
| bool | myOnByDefault |
Protected Attributes inherited from DtTreeWidget | |
| bool | myMouseRightClick |
| bool | myAllowEmptySelection |
| DtTerrainFeaturesList::DtTerrainFeaturesList | ( | QWidget * | parent | ) |
|
virtual |
|
virtual |
Sets up the list view to create the list of features and specifications.
Reimplemented in DtTerrainFeaturesListEx.
|
virtual |
Initializes columns.
Reimplemented in DtTerrainFeaturesListEx.
|
virtual |
Returns the number of items in the myFidList.
|
virtual |
Restores feature list to original values.
|
virtual |
Selects the group with the specified feature name.
|
virtual |
Fills in the dictionary with the key (specification value) and value (specification label).
Note that if all the specifications in a group are selected, only the group name is returned in the dictionary. If inverse is true, return the items that are not selected
|
virtual |
Select all items within a group or selected items.
If inverse is true, all items that appear in the list will not be selected
|
virtual |
Returns true if all children of this partiular item are selected.
Sets to show/hide the feature group.
Does not commit the changes, but rather just changes internal structures. Returns false if feature group does not exist
|
virtual |
Sets the color of the feature item that matches the specified fid group.
Reimplemented in DtTerrainFeaturesListEx.
Turns on/off the display of this feature.
|
signal |
|
protectedvirtualslot |
|
protectedvirtual |
Return a new instance of the feature entry class.
|
protectedvirtual |
Add the new feature entry to the list box.
Reimplemented in DtTerrainFeaturesListEx.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Restores the feature list item to its original state.
Reimplemented in DtTerrainFeaturesListEx.
|
protected |
|
protected |
|
protected |