![]() |
VR-Forces 4.0.4 Class Documentation
|
The tactical graphics overlay tree widget displays the tree representing the Tactical Graphic Overlays currently in existence. More...

Public Member Functions | |
| DtTacticalGraphicOverlayTreeWidget (DtDe &de, QWidget *parent) | |
| CTOR. | |
| virtual | ~DtTacticalGraphicOverlayTreeWidget () |
| DTOR. | |
| virtual void | activate () |
| Activate the widget. | |
| virtual void | deactivate () |
| Deactivate the widget. | |
| virtual void | clearOverlays () |
| Removes all the overlays from the GUI along with all the elements inside each overlay. | |
| virtual void | addOverlay (const std::string &name) |
| Adds an overlay with the given name to the tree. | |
| virtual void | collapseOverlay (const std::string &name) |
| Collapses the overlay with the given name, hiding all of its children. | |
| virtual void | expandOverlay (const std::string &name) |
| Expands the overlay with the given name, showing all of its children. | |
| virtual void | removeOverlay (const std::string &name) |
| Removes the overlay (and all its children) from the tree. | |
| virtual void | setOverlaySelected (const std::string &name, bool flag) |
| Tell the gui to select the overlay with the given name. | |
| virtual void | addTacticalGraphic (const DtUniqueID &id, const std::string &name, const std::string &ovrName) |
| Adds a new item to the tree. | |
| virtual void | moveTacticalGraphic (const DtUniqueID &id, const std::string &toOvrName) |
| Moves the item with the given name from its current location to the overlay matching the given toOvrName. | |
| virtual void | renameTacticalGraphic (const DtUniqueID &id, const std::string &newName) |
| Renames the item with the given name to newName. | |
| virtual void | removeTacticalGraphic (const DtUniqueID &id) |
| Removes an item from the tree. | |
| virtual void | setTacticalGraphicSelected (const DtUniqueID &id, bool flag) |
| Tell the gui to select the tactical graphic with the specified id. | |
Public Attributes | |
| Ui::DtOverlayListUi | myUiImpl |
Protected Slots | |
| void | slot_itemClicked (QTreeWidgetItem *item, int column) |
| Called in response to the itemClicked signal emitted when clicking over a QTreeWidgetItem. | |
| void | slot_itemSelectionChanged () |
| Called in response to the itemSelectionChanged signal emitted by the QTreeWidget. | |
| void | slot_hideOverlaysStateChanged (int) |
| Called in response to the stateChanged signal emitted by the hide overlays check box. | |
Protected Member Functions | |
| virtual QTreeWidgetItem * | findItem (const std::string &name) |
| Finds the item associated with the given name. | |
| virtual QTreeWidgetItem * | findItem (const DtUniqueID &id) |
| Finds the item associated with the given id. | |
| virtual void | setShowEmptyOverlays (bool flag) |
| Tells whether to show/hide empty overlays that might arise as the result of moving graphics around to different layers. | |
| virtual void | setToolbarAreaVisible (bool flag) |
| Shows/hides the toolbar area of this widget. | |
| virtual DtUniqueID | uniqueIDForListItem (QTreeWidgetItem *item) |
| Returns the DtUniqueID associated with the item. | |
| virtual bool | isOverlay (QTreeWidgetItem *item) |
| Checks whether the given item is a top level item, which means it represents an overlay item. | |
| virtual void | processItemClicked (QTreeWidgetItem *, int column) |
| Call that process slot_itemClicked. | |
| virtual void | processItemSelectionChanged () |
| Call tha process slot_itemSelectionChanged. | |
| virtual void | setOverlayLayerVisible (const std::string &overlay, bool b) |
| Sets whether or not layer is visible by changing the check state of the overlay item. | |
Protected Attributes | |
| DtDe & | myDe |
| DtVirtualBaseClass * | myLogic |
The tactical graphics overlay tree widget displays the tree representing the Tactical Graphic Overlays currently in existence.
This widget assumes all the names are unique
| makVrv::DtTacticalGraphicOverlayTreeWidget::DtTacticalGraphicOverlayTreeWidget | ( | DtDe & | de, |
| QWidget * | parent | ||
| ) |
CTOR.
| virtual makVrv::DtTacticalGraphicOverlayTreeWidget::~DtTacticalGraphicOverlayTreeWidget | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::activate | ( | ) | [virtual] |
Activate the widget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::deactivate | ( | ) | [virtual] |
Deactivate the widget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::clearOverlays | ( | ) | [virtual] |
Removes all the overlays from the GUI along with all the elements inside each overlay.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::addOverlay | ( | const std::string & | name | ) | [virtual] |
Adds an overlay with the given name to the tree.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::collapseOverlay | ( | const std::string & | name | ) | [virtual] |
Collapses the overlay with the given name, hiding all of its children.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::expandOverlay | ( | const std::string & | name | ) | [virtual] |
Expands the overlay with the given name, showing all of its children.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::removeOverlay | ( | const std::string & | name | ) | [virtual] |
Removes the overlay (and all its children) from the tree.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setOverlaySelected | ( | const std::string & | name, |
| bool | flag | ||
| ) | [virtual] |
Tell the gui to select the overlay with the given name.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::addTacticalGraphic | ( | const DtUniqueID & | id, |
| const std::string & | name, | ||
| const std::string & | ovrName | ||
| ) | [virtual] |
Adds a new item to the tree.
If the ovrName comes with a non-empty string, it will put the item under the overlay matching such name.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::moveTacticalGraphic | ( | const DtUniqueID & | id, |
| const std::string & | toOvrName | ||
| ) | [virtual] |
Moves the item with the given name from its current location to the overlay matching the given toOvrName.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::renameTacticalGraphic | ( | const DtUniqueID & | id, |
| const std::string & | newName | ||
| ) | [virtual] |
Renames the item with the given name to newName.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::removeTacticalGraphic | ( | const DtUniqueID & | id | ) | [virtual] |
Removes an item from the tree.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setTacticalGraphicSelected | ( | const DtUniqueID & | id, |
| bool | flag | ||
| ) | [virtual] |
Tell the gui to select the tactical graphic with the specified id.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| virtual QTreeWidgetItem* makVrv::DtTacticalGraphicOverlayTreeWidget::findItem | ( | const std::string & | name | ) | [protected, virtual] |
Finds the item associated with the given name.
Returns 0 if no match is found
| virtual QTreeWidgetItem* makVrv::DtTacticalGraphicOverlayTreeWidget::findItem | ( | const DtUniqueID & | id | ) | [protected, virtual] |
Finds the item associated with the given id.
Returns 0 if no match is found
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setShowEmptyOverlays | ( | bool | flag | ) | [protected, virtual] |
Tells whether to show/hide empty overlays that might arise as the result of moving graphics around to different layers.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setToolbarAreaVisible | ( | bool | flag | ) | [protected, virtual] |
Shows/hides the toolbar area of this widget.
| virtual DtUniqueID makVrv::DtTacticalGraphicOverlayTreeWidget::uniqueIDForListItem | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Returns the DtUniqueID associated with the item.
Returns -1 if no id is found.
| virtual bool makVrv::DtTacticalGraphicOverlayTreeWidget::isOverlay | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Checks whether the given item is a top level item, which means it represents an overlay item.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::processItemClicked | ( | QTreeWidgetItem * | , |
| int | column | ||
| ) | [protected, virtual] |
Call that process slot_itemClicked.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::processItemSelectionChanged | ( | ) | [protected, virtual] |
Call tha process slot_itemSelectionChanged.
| virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setOverlayLayerVisible | ( | const std::string & | overlay, |
| bool | b | ||
| ) | [protected, virtual] |
Sets whether or not layer is visible by changing the check state of the overlay item.
Implements makVrv::DtTacticalGraphicOverlayTreeInterface.
| void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_itemClicked | ( | QTreeWidgetItem * | item, |
| int | column | ||
| ) | [protected, slot] |
Called in response to the itemClicked signal emitted when clicking over a QTreeWidgetItem.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_itemSelectionChanged | ( | ) | [protected, slot] |
Called in response to the itemSelectionChanged signal emitted by the QTreeWidget.
| void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_hideOverlaysStateChanged | ( | int | ) | [protected, slot] |
Called in response to the stateChanged signal emitted by the hide overlays check box.
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.
| Ui::DtOverlayListUi makVrv::DtTacticalGraphicOverlayTreeWidget::myUiImpl |
DtDe& makVrv::DtTacticalGraphicOverlayTreeWidget::myDe [protected] |
Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.