VR-Forces 4.0.4 Class Documentation
Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
DtTerrainFeaturesListEx Class Reference
Inheritance diagram for DtTerrainFeaturesListEx:
Inheritance graph
[legend]

List of all members.

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 QTreeWidgetItemaddFeatureEntry (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

Constructor & Destructor Documentation


Member Function Documentation

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]
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]

Member Data Documentation

Set in constructor to true/false to enable/disable draw ordering.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)