VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | 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 Types

typedef boost::function
< makVrv::DtQtCursor()> 
CursorOverride
 

Public Member Functions

 DtMapFocusHandler (makVrv::DtDe &)
 
virtual ~DtMapFocusHandler ()
 
virtual void addMapFocusHandler (DtMapFocusHandlerInterface *, int index=-1)
 
virtual void removeMapFocusHandler (DtMapFocusHandlerInterface *)
 
virtual void focusToNext (bool becauseOfRightClick=false)
 
virtual void removeAndDisconnectAll ()
 
virtual makVrv::DtQtCursor getOverrideCusror () const
 
virtual void setCursorOverride (CursorOverride)
 
virtual CursorOverride cursorOverride () const
 
virtual void setAutoChangeToNext (bool)
 
bool autoChangeToNext () const
 
virtual void setTaskSetStatusTextPart (const QString &)
 
const QString & taskSetStatusPart () const
 
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 void setOneClickMode (bool b)
 
bool oneClickMode () const
 
virtual
DtMapFocusHandlerInterface::SelectionStatus 
selectionStatusFor (makVrv::DtUniqueID id, DtMapFocusHandlerInterface::CursorOver) const
 
virtual makVrv::DtQtCursor cursorForSelectionStatus (DtMapFocusHandlerInterface::SelectionStatus, DtMapFocusHandlerInterface::CursorOver) const
 

Public Attributes

boost::signals2::signal< void()> signal_lostMapFocus
 

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
 
bool myAutoChangeToNext
 
CursorOverride myCursorOverride
 
QString myTaskSetStatusPart
 
bool myOneClickMode = false
 

Member Typedef Documentation

If set, uset this method as a potential cursor override for the current widget. If the return is a null icon then continue on with the default behvior.

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 ( bool  becauseOfRightClick = false)
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 makVrv::DtQtCursor makVrf::DtMapFocusHandler::getOverrideCusror ( ) const
virtual
virtual void makVrf::DtMapFocusHandler::setCursorOverride ( CursorOverride  )
virtual
virtual CursorOverride makVrf::DtMapFocusHandler::cursorOverride ( ) const
virtual
virtual void makVrf::DtMapFocusHandler::setAutoChangeToNext ( bool  )
virtual

Set to not auto change to next based on map selection. Default is true.

bool makVrf::DtMapFocusHandler::autoChangeToNext ( ) const
inline
virtual void makVrf::DtMapFocusHandler::setTaskSetStatusTextPart ( const QString &  )
virtual

The task/set status part will be part of a status text that will show on the map status text line. The text must contain a %1 to fill in the argument from the map focus handler. If there is no part then no task/set status will be created.

const QString& makVrf::DtMapFocusHandler::taskSetStatusPart ( ) const
inline
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 void makVrf::DtMapFocusHandler::setOneClickMode ( bool  b)
virtual
bool makVrf::DtMapFocusHandler::oneClickMode ( ) const
inline
virtual DtMapFocusHandlerInterface::SelectionStatus makVrf::DtMapFocusHandler::selectionStatusFor ( makVrv::DtUniqueID  id,
DtMapFocusHandlerInterface::CursorOver   
) const
virtual

Given the active map focus handler,.

virtual makVrv::DtQtCursor makVrf::DtMapFocusHandler::cursorForSelectionStatus ( DtMapFocusHandlerInterface::SelectionStatus  ,
DtMapFocusHandlerInterface::CursorOver   
) 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

boost::signals2::signal<void ()> makVrf::DtMapFocusHandler::signal_lostMapFocus
std::vector<DtMapFocusHandlerInterface*> makVrf::DtMapFocusHandler::myManagedViews
protected
makVrv::DtDe& makVrf::DtMapFocusHandler::myDe
protected
bool makVrf::DtMapFocusHandler::myAllowCursorChange
protected
bool makVrf::DtMapFocusHandler::myAutoChangeToNext
protected
CursorOverride makVrf::DtMapFocusHandler::myCursorOverride
protected
QString makVrf::DtMapFocusHandler::myTaskSetStatusPart
protected
bool makVrf::DtMapFocusHandler::myOneClickMode = false
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)