VR-Forces 5.0.2 Developer's Guide
 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::DtMapFocusHandler 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. 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.

Public Member Functions

 DtMapFocusHandler (makVrv::DtDe &)
 
virtual ~DtMapFocusHandler ()
 
virtual void addMapFocusHandler (DtMapFocusHandlerInterface *, int index=-1)
 
virtual void removeMapFocusHandler (DtMapFocusHandlerInterface *)
 
virtual void focusToNext ()
 
virtual void removeAndDisconnectAll ()
 
virtual void resetFocus ()
 
virtual void takeMapFocus (DtMapFocusHandlerInterface *)
 
std::vector
< DtMapFocusHandlerInterface * > & 
managedViews ()
 
const std::vector
< DtMapFocusHandlerInterface * > & 
managedViews () const
 
virtual
DtMapFocusHandlerInterface
hasMapFocus () const
 
virtual void setAllowCursorChange (bool)
 
bool allowCursorChange () const
 
virtual
DtMapFocusHandlerInterface::SelectionStatus 
selectionStatusFor (makVrv::DtUniqueID id) const
 
virtual makVrv::DtQtCursor cursorForSelectionStatus (DtMapFocusHandlerInterface::SelectionStatus) const
 

Protected Member Functions

virtual void onCanTakeMapFocusChanged (DtMapFocusHandlerInterface *, bool)
 
virtual void onSelectionChangedByMapSelection (DtMapFocusHandlerInterface *)
 
virtual void updateMainMapFocusHandler ()
 

Protected Attributes

std::vector
< DtMapFocusHandlerInterface * > 
myManagedViews
 
makVrv::DtDemyDe
 
bool myAllowCursorChange
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void makVrf::DtMapFocusHandler::addMapFocusHandler ( DtMapFocusHandlerInterface ,
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::DtMapFocusHandler::removeMapFocusHandler ( DtMapFocusHandlerInterface )
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::DtMapFocusHandler::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::DtMapFocusHandler::removeAndDisconnectAll ( )
virtual

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

virtual void makVrf::DtMapFocusHandler::resetFocus ( )
virtual

Resets focus to the first focus handler.

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

Gives the map focus to the given handler.

std::vector<DtMapFocusHandlerInterface*>& makVrf::DtMapFocusHandler::managedViews ( )
inline
const std::vector<DtMapFocusHandlerInterface*>& makVrf::DtMapFocusHandler::managedViews ( ) const
inline
virtual DtMapFocusHandlerInterface* makVrf::DtMapFocusHandler::hasMapFocus ( ) const
virtual
virtual void makVrf::DtMapFocusHandler::setAllowCursorChange ( bool  )
virtual
bool makVrf::DtMapFocusHandler::allowCursorChange ( ) const
inline
virtual DtMapFocusHandlerInterface::SelectionStatus makVrf::DtMapFocusHandler::selectionStatusFor ( makVrv::DtUniqueID  id) const
virtual

Given the active map focus handler,.

virtual makVrv::DtQtCursor makVrf::DtMapFocusHandler::cursorForSelectionStatus ( DtMapFocusHandlerInterface::SelectionStatus  ) const
virtual

Returns a selection cursor based on the selection type.

virtual void makVrf::DtMapFocusHandler::onCanTakeMapFocusChanged ( DtMapFocusHandlerInterface ,
bool   
)
protectedvirtual
virtual void makVrf::DtMapFocusHandler::onSelectionChangedByMapSelection ( DtMapFocusHandlerInterface )
protectedvirtual
virtual void makVrf::DtMapFocusHandler::updateMainMapFocusHandler ( )
protectedvirtual

Member Data Documentation

std::vector<DtMapFocusHandlerInterface*> makVrf::DtMapFocusHandler::myManagedViews
protected
makVrv::DtDe& makVrf::DtMapFocusHandler::myDe
protected
bool makVrf::DtMapFocusHandler::myAllowCursorChange
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)