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

Signals | |
| void | featureColorChanged (QTreeWidgetItem *) |
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. | |
Protected Slots | |
| virtual void | colorCheck (QTreeWidgetItem *item, QMouseEvent *, int col) |
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 Attributes | |
| bool | myUseDrawOrdering |
| Set in constructor to true/false to enable/disable draw ordering. | |
| QHash< int, DtFeatureEntry * > | myDrawOrder |
| virtual DtTerrainFeaturesListEx::~DtTerrainFeaturesListEx | ( | ) | [virtual] |
| virtual void DtTerrainFeaturesListEx::setTerrainDatabase | ( | const DtTerrainDatabase * | db | ) | [virtual] |
Sets up the list view to create the list of features and specifications.
Reimplemented from DtTerrainFeaturesList.
| virtual bool DtTerrainFeaturesListEx::init | ( | bool | useDrawOrdering | ) | [virtual] |
Initializes columns.
Reimplemented from DtTerrainFeaturesList.
| virtual bool DtTerrainFeaturesListEx::commitChanges | ( | DtList & | orderedList | ) | [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 void DtTerrainFeaturesListEx::changeOrderOfSelectedItem | ( | int | iBy | ) | [virtual] |
Changes the order of the selected item up or down by the amount specified in the draw order.
| virtual bool DtTerrainFeaturesListEx::setFeatureColor | ( | int | fid, |
| const QColor & | color | ||
| ) | [virtual] |
Sets the color of the feature item that matches the specified fid group.
Reimplemented from DtTerrainFeaturesList.
| virtual void DtTerrainFeaturesListEx::colorCheck | ( | QTreeWidgetItem * | item, |
| QMouseEvent * | , | ||
| int | col | ||
| ) | [protected, virtual, slot] |
| void DtTerrainFeaturesListEx::featureColorChanged | ( | QTreeWidgetItem * | ) | [signal] |
| virtual QTreeWidgetItem* DtTerrainFeaturesListEx::addFeatureEntry | ( | const DtSpecificationStringAttribute * | group, |
| const DtSpecificationStringAttribute * | groupName, | ||
| int | uniqueIdentifier, | ||
| int | iSpecification, | ||
| DtSpecification & | spec | ||
| ) | [protected, virtual] |
Add the new feature entry to the list box.
Reimplemented from DtTerrainFeaturesList.
| virtual bool DtTerrainFeaturesListEx::updateSpecification | ( | DtFeatureEntry * | entry | ) | [protected, virtual] |
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
| virtual void DtTerrainFeaturesListEx::restore | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Restores the feature list item to its original state.
Reimplemented from DtTerrainFeaturesList.
| virtual void DtTerrainFeaturesListEx::setColor | ( | QTreeWidgetItem * | item, |
| const DtColor & | color | ||
| ) | [protected, virtual] |
| virtual bool DtTerrainFeaturesListEx::pixmapSelected | ( | QTreeWidgetItem * | , |
| const QPoint & | pos | ||
| ) | const [protected, virtual] |
bool DtTerrainFeaturesListEx::myUseDrawOrdering [protected] |
Set in constructor to true/false to enable/disable draw ordering.
QHash<int, DtFeatureEntry*> DtTerrainFeaturesListEx::myDrawOrder [protected] |