![]() |
VR-Forces Developer's Guide
|
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 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::DtDe & | myDe |
| bool | myAllowCursorChange |
| bool | myAutoChangeToNext |
| CursorOverride | myCursorOverride |
| QString | myTaskSetStatusPart |
| bool | myOneClickMode = false |
| typedef boost::function<makVrv::DtQtCursor ()> makVrf::DtMapFocusHandler::CursorOverride |
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.
| makVrf::DtMapFocusHandler::DtMapFocusHandler | ( | makVrv::DtDe & | ) |
|
virtual |
|
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 |
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 |
Called to change focus fromm the map handler that has the current map focus to the next one in the list.
|
virtual |
Removes all map handlers and sets them to not listen to map changes.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set to not auto change to next based on map selection. Default is true.
|
inline |
|
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.
|
inline |
|
virtual |
Resets focus to the first focus handler.
|
virtual |
Gives the map focus to the given handler.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
inline |
|
virtual |
|
inline |
|
virtual |
Given the active map focus handler,.
|
virtual |
Returns a selection cursor based on the selection type.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void ()> makVrf::DtMapFocusHandler::signal_lostMapFocus |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |