VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtTacticalGraphicOverlayTreeWidget Class Reference

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.

Inheritance diagram for makVrv::DtTacticalGraphicOverlayTreeWidget:
Inheritance graph
[legend]

Public Member Functions

 DtTacticalGraphicOverlayTreeWidget (DtDe &de, QWidget *parent)
 
virtual ~DtTacticalGraphicOverlayTreeWidget ()
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual void clearOverlays ()
 
virtual void addOverlay (const std::string &name)
 
virtual void collapseOverlay (const std::string &name)
 
virtual void expandOverlay (const std::string &name)
 
virtual void removeOverlay (const std::string &name)
 
virtual void setOverlaySelected (const std::string &name, bool flag)
 
virtual void addTacticalGraphic (const DtUniqueID &id, const std::string &name, const std::string &ovrName)
 
virtual void moveTacticalGraphic (const DtUniqueID &id, const std::string &toOvrName)
 
virtual void renameTacticalGraphic (const DtUniqueID &id, const std::string &newName)
 
virtual void removeTacticalGraphic (const DtUniqueID &id)
 
virtual void setTacticalGraphicSelected (const DtUniqueID &id, bool flag)
 
- Public Member Functions inherited from makVrv::DtTacticalGraphicOverlayTreeInterface
 DtTacticalGraphicOverlayTreeInterface ()
 
virtual ~DtTacticalGraphicOverlayTreeInterface ()
 

Public Attributes

Ui::DtOverlayListUi myUiImpl
 
- Public Attributes inherited from makVrv::DtTacticalGraphicOverlayTreeInterface
boost::signalslib::signal
< void(const std::string
&, bool)> 
signal_filterStatusChanged
 
boost::signalslib::signal
< void(const std::string
&, bool)> 
signal_overlayVisibilityChanged
 
boost::signalslib::signal
< void(const DtUniqueID
&, bool)> 
signal_tacticalGraphicVisibilityChanged
 
boost::signalslib::signal
< void(bool)> 
signal_showEmptyOverlays
 
boost::signalslib::signal
< void(const std::string &)> 
signal_overlaySelected
 
boost::signalslib::signal
< void(const DtUniqueID &)> 
signal_tacticalGraphicSelected
 

Protected Slots

void slot_itemClicked (QTreeWidgetItem *item, int column)
 
void slot_itemSelectionChanged ()
 
void slot_hideOverlaysStateChanged (int)
 

Protected Member Functions

virtual QTreeWidgetItemfindItem (const std::string &name)
 
virtual QTreeWidgetItemfindItem (const DtUniqueID &id)
 
virtual void setShowEmptyOverlays (bool flag)
 
virtual void setToolbarAreaVisible (bool flag)
 
virtual DtUniqueID uniqueIDForListItem (QTreeWidgetItem *item)
 
virtual bool isOverlay (QTreeWidgetItem *item)
 
virtual void processItemClicked (QTreeWidgetItem *, int column)
 
virtual void processItemSelectionChanged ()
 
virtual void setOverlayLayerVisible (const std::string &overlay, bool b)
 

Protected Attributes

DtDemyDe
 
DtVirtualBaseClassmyLogic
 

Constructor & Destructor Documentation

makVrv::DtTacticalGraphicOverlayTreeWidget::DtTacticalGraphicOverlayTreeWidget ( DtDe de,
QWidget *  parent 
)

CTOR.

virtual makVrv::DtTacticalGraphicOverlayTreeWidget::~DtTacticalGraphicOverlayTreeWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::activate ( )
virtual

Activate the widget.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

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.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

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.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

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.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::removeTacticalGraphic ( const DtUniqueID id)
virtual

Removes an item from the tree.

Implements makVrv::DtTacticalGraphicOverlayTreeInterface.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

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)
protectedvirtual

Finds the item associated with the given name. Returns 0 if no match is found.

virtual QTreeWidgetItem* makVrv::DtTacticalGraphicOverlayTreeWidget::findItem ( const DtUniqueID id)
protectedvirtual

Finds the item associated with the given id. Returns 0 if no match is found.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setShowEmptyOverlays ( bool  flag)
protectedvirtual

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)
protectedvirtual

Shows/hides the toolbar area of this widget.

virtual DtUniqueID makVrv::DtTacticalGraphicOverlayTreeWidget::uniqueIDForListItem ( QTreeWidgetItem item)
protectedvirtual

Returns the DtUniqueID associated with the item. Returns -1 if no id is found.

virtual bool makVrv::DtTacticalGraphicOverlayTreeWidget::isOverlay ( QTreeWidgetItem item)
protectedvirtual

Checks whether the given item is a top level item, which means it represents an overlay item.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::processItemClicked ( QTreeWidgetItem ,
int  column 
)
protectedvirtual

Call that process slot_itemClicked.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::processItemSelectionChanged ( )
protectedvirtual

Call tha process slot_itemSelectionChanged.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

virtual void makVrv::DtTacticalGraphicOverlayTreeWidget::setOverlayLayerVisible ( const std::string &  overlay,
bool  b 
)
protectedvirtual

Sets whether or not layer is visible by changing the check state of the overlay item.

Implements makVrv::DtTacticalGraphicOverlayTreeInterface.

Reimplemented in makVrf::DtVrfTacticalGraphicOverlayTreeWidget.

void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_itemClicked ( QTreeWidgetItem item,
int  column 
)
protectedslot

Called in response to the itemClicked signal emitted when clicking over a QTreeWidgetItem.

void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_itemSelectionChanged ( )
protectedslot

Called in response to the itemSelectionChanged signal emitted by the QTreeWidget.

void makVrv::DtTacticalGraphicOverlayTreeWidget::slot_hideOverlaysStateChanged ( int  )
protectedslot

Called in response to the stateChanged signal emitted by the hide overlays check box.

Member Data Documentation

Ui::DtOverlayListUi makVrv::DtTacticalGraphicOverlayTreeWidget::myUiImpl
DtDe& makVrv::DtTacticalGraphicOverlayTreeWidget::myDe
protected
DtVirtualBaseClass* makVrv::DtTacticalGraphicOverlayTreeWidget::myLogic
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)