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

Public Member Functions | |
| DtVrfTacticalGraphicOverlayTreeWidget (makVrv::DtDe &de, QWidget *parent) | |
| CTOR. | |
| virtual | ~DtVrfTacticalGraphicOverlayTreeWidget () |
| DTOR. | |
| virtual void | addOverlay (const std::string &name) |
| Adds an overlay with the given name to the tree. | |
| virtual void | lockOverlay (const std::string &name, bool lock) |
| Locks an overlay with the given name to the tree. | |
| virtual void | addTacticalGraphic (const makVrv::DtUniqueID &id, const std::string &name, const std::string &ovrName) |
| Adds a new item to the tree. | |
| virtual void | removeOverlay (const std::string &ovrName) |
| Removes the overlay (and all its children) from the tree. | |
| virtual void | setOverlaySelected (const std::string &name, bool flag) |
| Marks the overlay with the given name as selected. | |
| virtual void | enableAddOverlays (bool flag) |
| Enables/disables the add overlay operation. | |
| virtual void | enableDeleteOverlays (bool flag) |
| Enables/disables the delete overlay operation. | |
| virtual void | enableEditOverlays (bool flag) |
| Enables/disables the edit overlay operation. | |
| virtual void | enableLockOverlays (bool flag) |
| Enables/disables the lock/unlock overlay operation. | |
| virtual void | clear () |
| Clears the list of overlays. | |
| virtual void | updateUI () |
| Updates the state of the UI widget. | |
Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayTreeWidget | |
| 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 | 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 | 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 Member Functions inherited from makVrv::DtTacticalGraphicOverlayTreeInterface | |
| DtTacticalGraphicOverlayTreeInterface () | |
| virtual | ~DtTacticalGraphicOverlayTreeInterface () |
Public Member Functions inherited from makVrf::DtVrfTacticalGraphicOverlayTreeInterface | |
| DtVrfTacticalGraphicOverlayTreeInterface () | |
| virtual | ~DtVrfTacticalGraphicOverlayTreeInterface () |
Protected Slots | |
| void | slot_addOverlayButtonClicked () |
| void | slot_removeOverlayButtonClicked () |
| void | slot_editOverlayButtonClicked () |
| void | slot_lockOverlayButtonClicked () |
| void | slot_itemClicked (QTreeWidgetItem *item, int column) |
| void | slot_itemDoubleClicked (QTreeWidgetItem *item, int column) |
| void | slot_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
| void | slot_itemChanged (QTreeWidgetItem *item, int column) |
| void | slot_itemMoved (const QStringList &children, std::string overlay) |
| void | slot_hideOverlaysStateChanged (int state) |
Protected Slots inherited from makVrv::DtTacticalGraphicOverlayTreeWidget | |
| 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 void | updateUI (QTreeWidgetItem *current) |
Protected Member Functions inherited from makVrv::DtTacticalGraphicOverlayTreeWidget | |
| 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 | |
| makVrv::DtVirtualBaseClass * | myLogic |
| QToolButton * | myDeleteOverlayButton |
| QToolButton * | myAddOverlayButton |
| QToolButton * | myEditOverlayButton |
| QToolButton * | myLockOverlayButton |
| QTreeWidgetItem * | myLastSelectedItem |
| QTreeWidgetItem * | myCurrentOverlay |
| std::string | myLastSelectedText |
Protected Attributes inherited from makVrv::DtTacticalGraphicOverlayTreeWidget | |
| DtDe & | myDe |
| DtVirtualBaseClass * | myLogic |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtTacticalGraphicOverlayTreeWidget | |
| Ui::DtOverlayListUi | myUiImpl |
Public Attributes inherited from makVrf::DtVrfTacticalGraphicOverlayTreeInterface | |
| boost::signal< void()> | signal_addOverlay |
| boost::signal< void(const makVrv::DtUniqueID &id, const std::string &)> | signal_itemMovedToOverlay |
| boost::signal< void(const std::string &, const std::string &)> | signal_renameOverlay |
| boost::signal< void(const std::string &)> | signal_removeOverlay |
| boost::signal< void(const std::string &, bool flag)> | signal_lockOverlay |
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
| makVrf::DtVrfTacticalGraphicOverlayTreeWidget::DtVrfTacticalGraphicOverlayTreeWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Adds an overlay with the given name to the tree.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Locks an overlay with the given name to the tree.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
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.
Reimplemented from makVrv::DtTacticalGraphicOverlayTreeWidget.
|
virtual |
Removes the overlay (and all its children) from the tree.
Reimplemented from makVrv::DtTacticalGraphicOverlayTreeWidget.
|
virtual |
Marks the overlay with the given name as selected.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Enables/disables the add overlay operation.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Enables/disables the delete overlay operation.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Enables/disables the edit overlay operation.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Enables/disables the lock/unlock overlay operation.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Clears the list of overlays.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
virtual |
Updates the state of the UI widget.
Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |