VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtVrfTacticalGraphicOverlayTreeWidget Class Reference

The tactical graphics overlay tree widget displays the tree representing the Tactical Graphic Overlays currently in existence. More...

Inheritance diagram for makVrf::DtVrfTacticalGraphicOverlayTreeWidget:
Inheritance graph
[legend]

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 QTreeWidgetItemfindItem (const std::string &name)
 Finds the item associated with the given name.
virtual QTreeWidgetItemfindItem (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::DtVirtualBaseClassmyLogic
QToolButtonmyDeleteOverlayButton
QToolButtonmyAddOverlayButton
QToolButtonmyEditOverlayButton
QToolButtonmyLockOverlayButton
QTreeWidgetItemmyLastSelectedItem
QTreeWidgetItemmyCurrentOverlay
std::string myLastSelectedText
- Protected Attributes inherited from makVrv::DtTacticalGraphicOverlayTreeWidget
DtDemyDe
DtVirtualBaseClassmyLogic

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

Detailed Description

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

Constructor & Destructor Documentation

makVrf::DtVrfTacticalGraphicOverlayTreeWidget::DtVrfTacticalGraphicOverlayTreeWidget ( makVrv::DtDe de,
QWidget parent 
)

CTOR.

virtual makVrf::DtVrfTacticalGraphicOverlayTreeWidget::~DtVrfTacticalGraphicOverlayTreeWidget ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::addOverlay ( const std::string &  name)
virtual

Adds an overlay with the given name to the tree.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::lockOverlay ( const std::string &  name,
bool  lock 
)
virtual

Locks an overlay with the given name to the tree.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::addTacticalGraphic ( const makVrv::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.

Reimplemented from makVrv::DtTacticalGraphicOverlayTreeWidget.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::removeOverlay ( const std::string &  name)
virtual

Removes the overlay (and all its children) from the tree.

Reimplemented from makVrv::DtTacticalGraphicOverlayTreeWidget.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::setOverlaySelected ( const std::string &  name,
bool  flag 
)
virtual

Marks the overlay with the given name as selected.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::enableAddOverlays ( bool  flag)
virtual

Enables/disables the add overlay operation.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::enableDeleteOverlays ( bool  flag)
virtual

Enables/disables the delete overlay operation.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::enableEditOverlays ( bool  flag)
virtual

Enables/disables the edit overlay operation.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::enableLockOverlays ( bool  flag)
virtual

Enables/disables the lock/unlock overlay operation.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::clear ( )
virtual

Clears the list of overlays.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::updateUI ( )
virtual

Updates the state of the UI widget.

Implements makVrf::DtVrfTacticalGraphicOverlayTreeInterface.

void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_addOverlayButtonClicked ( )
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_removeOverlayButtonClicked ( )
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_editOverlayButtonClicked ( )
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_lockOverlayButtonClicked ( )
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_itemClicked ( QTreeWidgetItem item,
int  column 
)
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_itemDoubleClicked ( QTreeWidgetItem item,
int  column 
)
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_currentItemChanged ( QTreeWidgetItem current,
QTreeWidgetItem previous 
)
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_itemChanged ( QTreeWidgetItem item,
int  column 
)
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_itemMoved ( const QStringList &  children,
std::string  overlay 
)
protectedslot
void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::slot_hideOverlaysStateChanged ( int  state)
protectedslot
virtual void makVrf::DtVrfTacticalGraphicOverlayTreeWidget::updateUI ( QTreeWidgetItem current)
protectedvirtual

Member Data Documentation

makVrv::DtVirtualBaseClass* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myLogic
protected
QToolButton* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myDeleteOverlayButton
protected
QToolButton* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myAddOverlayButton
protected
QToolButton* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myEditOverlayButton
protected
QToolButton* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myLockOverlayButton
protected
QTreeWidgetItem* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myLastSelectedItem
protected
QTreeWidgetItem* makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myCurrentOverlay
protected
std::string makVrf::DtVrfTacticalGraphicOverlayTreeWidget::myLastSelectedText
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)