VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtMapFocusHandlerManager Class Reference

This class will manage filtered list views for the basic purpose of allowing a single list view in the manager to only respond to map changes. More...

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

Public Member Functions

 DtMapFocusHandlerManager (makVrv::DtDe &)
virtual ~DtMapFocusHandlerManager ()
virtual void addMapFocusHandler (DtMapFocusHandler *, int index=-1)
 Adds a new map focus handler into the collection.
virtual void removeMapFocusHandler (DtMapFocusHandler *)
 Removes the map focus handler.
virtual void focusToNext ()
 Called to change focus fromm the map handler that has the current map focus to the next one in the list.
virtual void removeAndDisconnectAll ()
 Removes all map handlers and sets them to not listen to map changes.
virtual void resetFocus ()
 Resets focus to the first focus handler.
virtual void takeMapFocus (DtMapFocusHandler *)
 Gives the map focus to the given handler.
std::vector< DtMapFocusHandler * > & managedViews ()
const std::vector
< DtMapFocusHandler * > & 
managedViews () const

Protected Member Functions

virtual void onCanTakeMapFocusChanged (DtMapFocusHandler *, bool)
virtual void onSelectionChangedByMapSelection (DtMapFocusHandler *)
virtual bool eventFilter (QObject *obj, QEvent *ev)

Protected Attributes

std::vector< DtMapFocusHandler * > myManagedViews
makVrv::DtDemyDe

Detailed Description

This class will manage filtered list views for the basic purpose of allowing a single list view in the manager to only respond to map changes.

This can occur if there is only a single filtered list view, or multiple views where the map change focus button is pressed. When the map changed focus button is pressed on one view it will be turned off on other views in this collection. When a filtered list view has an item selected within it by mouse selection that list view will take map focus

Constructor & Destructor Documentation

makVrf::DtMapFocusHandlerManager::DtMapFocusHandlerManager ( makVrv::DtDe )
virtual makVrf::DtMapFocusHandlerManager::~DtMapFocusHandlerManager ( )
virtual

Member Function Documentation

virtual void makVrf::DtMapFocusHandlerManager::addMapFocusHandler ( DtMapFocusHandler ,
int  index = -1 
)
virtual

Adds a new map focus handler into the collection.

If this is the only handler it will always have map focus. Subsequent views added means that buttons will be shown to change map focus. If index is -1 will append to end of chain

virtual void makVrf::DtMapFocusHandlerManager::removeMapFocusHandler ( DtMapFocusHandler )
virtual

Removes the map focus handler.

If this leaves only one view the map focus change button will be hidden. The removed handler will have the ability to change or be effected by map operations (selection, click, etc.)

virtual void makVrf::DtMapFocusHandlerManager::focusToNext ( )
virtual

Called to change focus fromm the map handler that has the current map focus to the next one in the list.

virtual void makVrf::DtMapFocusHandlerManager::removeAndDisconnectAll ( )
virtual

Removes all map handlers and sets them to not listen to map changes.

virtual void makVrf::DtMapFocusHandlerManager::resetFocus ( )
virtual

Resets focus to the first focus handler.

virtual void makVrf::DtMapFocusHandlerManager::takeMapFocus ( DtMapFocusHandler )
virtual

Gives the map focus to the given handler.

std::vector<DtMapFocusHandler*>& makVrf::DtMapFocusHandlerManager::managedViews ( )
inline
const std::vector<DtMapFocusHandler*>& makVrf::DtMapFocusHandlerManager::managedViews ( ) const
inline
virtual void makVrf::DtMapFocusHandlerManager::onCanTakeMapFocusChanged ( DtMapFocusHandler ,
bool   
)
protectedvirtual
virtual void makVrf::DtMapFocusHandlerManager::onSelectionChangedByMapSelection ( DtMapFocusHandler )
protectedvirtual
virtual bool makVrf::DtMapFocusHandlerManager::eventFilter ( QObject obj,
QEvent *  ev 
)
protectedvirtual

Member Data Documentation

std::vector<DtMapFocusHandler*> makVrf::DtMapFocusHandlerManager::myManagedViews
protected
makVrv::DtDe& makVrf::DtMapFocusHandlerManager::myDe
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)