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

Signals | |
| void | featureColorChanged (QTreeWidgetItem *) |
Signals inherited from DtTerrainFeaturesList | |
| 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 | |
| DtTerrainFeaturesListEx (QWidget *parent) | |
| virtual | ~DtTerrainFeaturesListEx () |
| virtual void | setTerrainDatabase (const DtTerrainDatabase *db) |
| Sets up the list view to create the list of features and specifications. | |
| virtual bool | init (bool useDrawOrdering) |
| Initializes columns. | |
| virtual bool | commitChanges (DtList &orderedList) |
| Commits any changes made to the dialog to the specification and returns true if anything has changed. | |
| virtual void | changeOrderOfSelectedItem (int iBy) |
| Changes the order of the selected item up or down by the amount specified in the draw order. | |
| virtual bool | setFeatureColor (int fid, const QColor &color) |
| Sets the color of the feature item that matches the specified fid group. | |
Public Member Functions inherited from DtTerrainFeaturesList | |
| DtTerrainFeaturesList (QWidget *parent) | |
| virtual | ~DtTerrainFeaturesList () |
| virtual void | featureChange (QTreeWidgetItem *item, bool enableItem) |
| 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 | 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 | colorCheck (QTreeWidgetItem *item, QMouseEvent *, int col) |
Protected Slots inherited from DtTerrainFeaturesList | |
| virtual void | featureChanged (QTreeWidgetItem *item, int iCol) |
Protected Member Functions | |
| 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 bool | updateSpecification (DtFeatureEntry *entry) |
| Sees if the specification entry has changed, and, if it has, changes all the underlying specifications to match. | |
| virtual void | restore (QTreeWidgetItem *item) |
| Restores the feature list item to its original state. | |
| virtual void | setColor (QTreeWidgetItem *item, const DtColor &color) |
| virtual bool | pixmapSelected (QTreeWidgetItem *, const QPoint &pos) const |
Protected Member Functions inherited from DtTerrainFeaturesList | |
| virtual DtFeatureEntry * | createFeatureEntry () |
| Return a new instance of the feature entry class. | |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidget *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
| virtual QTreeWidgetItem * | createFeatureListEntry (QTreeWidgetItem *parent, const QString &title, DtFeatureEntry *entry, QTreeWidgetItem *after) |
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 | |
| bool | myUseDrawOrdering |
| Set in constructor to true/false to enable/disable draw ordering. | |
| QHash< int, DtFeatureEntry * > | myDrawOrder |
Protected Attributes inherited from DtTerrainFeaturesList | |
| QHash< int, DtFeatureEntry * > | myFidList |
| QHash< QString, QTreeWidgetItem * > | myGroups |
| bool | myOnByDefault |
Protected Attributes inherited from DtTreeWidget | |
| bool | myMouseRightClick |
| bool | myAllowEmptySelection |
| DtTerrainFeaturesListEx::DtTerrainFeaturesListEx | ( | QWidget * | parent | ) |
|
virtual |
|
virtual |
Sets up the list view to create the list of features and specifications.
Reimplemented from DtTerrainFeaturesList.
Initializes columns.
Reimplemented from DtTerrainFeaturesList.
|
virtual |
Commits any changes made to the dialog to the specification and returns true if anything has changed.
It returns the ordered specifications in the supplied DtList. Note that items that are put into the list are allocated, so it is up to the user to free the items in the list
|
virtual |
Changes the order of the selected item up or down by the amount specified in the draw order.
|
virtual |
Sets the color of the feature item that matches the specified fid group.
Reimplemented from DtTerrainFeaturesList.
|
protectedvirtualslot |
|
signal |
|
protectedvirtual |
Add the new feature entry to the list box.
Reimplemented from DtTerrainFeaturesList.
|
protectedvirtual |
Sees if the specification entry has changed, and, if it has, changes all the underlying specifications to match.
Returns true if the specification has changed
|
protectedvirtual |
Restores the feature list item to its original state.
Reimplemented from DtTerrainFeaturesList.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Set in constructor to true/false to enable/disable draw ordering.
|
protected |