![]() |
VR-Forces 4.10 Class Documentation
|
The logic for the makVrv::DtKeyMappingEditor. More...
Public Member Functions | |
| DtKeyMappingEditorLogic (DtDe &de, DtPersistenceControlsInterface &toolbar, DtKeyMappingEditorWidgetInterface &iFace, DtSelectInstanceWidget &selectedInstance) | |
| CTOR. More... | |
| virtual | ~DtKeyMappingEditorLogic () |
| virtual DTOR More... | |
| void | editKeyMapping () |
| Function called when the user clicks the "Edit". More... | |
| void | addKeyMapping () |
| Function called when the user clicks the "Add". More... | |
| void | removeKeyMapping () |
| Function called when the user clicks the "Remove". More... | |
| void | filterChanged (int functionCategory) |
| Called when the user changes the filter. More... | |
| void | selectFunction (const std::string &functionName) |
| Called when the user changes function selection. More... | |
| void | selectKeyMapping (const DtKeyMapping &keyMapping) |
| Called when the user changes key mapping selection. More... | |
| void | selectKeyMap (const std::string &keyMapping) |
| Sets the current key map. More... | |
| void | deselectFunctions () |
| Called to clear function and mapping selections. More... | |
| void | requestInputCanceled () |
| Sent by the interface to indicate that Cancel was selected on a request for input. More... | |
| void | requestInputAccepted (const DtKeyMapping &keyMapping, bool isEdit) |
| Sent by the interface when a request for input is completed. More... | |
| void | requestKeyValidationAccepted (const DtKeyMapping &keyMapping, const DtKeyFunctionNameList &fnList, bool isEdit, bool replace) |
| Sent by the interface to return the result of a requestKeyValidation This is initiated when a function is mapped to a key that already has one or more functions mapped to it. More... | |
Protected Member Functions | |
| virtual void | setupGui () |
| void | setupFilters () |
| void | setupAllKeyFunctions () |
| void | setupKeyFunctions () |
| void | setupBinaryKeyFunctions () |
| void | updateAfterMappingChange () |
| std::string | keyMappingsToString (const DtKeyMap::MappedKeyList &keyList, bool suppressDirection=false) |
| std::string | mapNameFromFileName (const std::string &filename) |
| virtual void | slot_currentInstanceChanged (int index, const std::string &keyMap) |
| Send when the current key map has changed due to the selected instance. Reset current key map. More... | |
| virtual void | slot_keyMapRestored (DtKeyMapManager *, const std::string &map) |
| Sent when a key map is restored, if currently selected keymap, restore settings. More... | |
| virtual void | onExport () |
| Called when user wants to export contents of selected key mapping to a file. More... | |
| virtual void | onExportFilenameChosen (const std::string &) |
| Called when the export filename has been chosen. More... | |
| virtual void | onImport () |
| Called when a user wants to import (replace) selected key mapping with contents of selected file. More... | |
| virtual void | onImportFilenameChosen (const std::string &) |
| Called when the import filename has been chose. More... | |
| virtual void | slot_renameInstanceRequested () |
| Called to rename the currently selected key map. More... | |
| virtual void | slot_newInstanceRequested () |
| Called to create a new instance. More... | |
| virtual void | slot_deleteInstanceRequested () |
| Called to delete the currently selected instance. More... | |
| virtual QString | askForKeyMapName (QString initial, const QString &title) const |
| Asks for a name for the given key map. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtPersistenceControlsInterface & | myToolbar |
| DtKeyMappingEditorWidgetInterface & | myInterface |
| DtSelectInstanceWidget & | mySelectedInstance |
| int | myFilter |
| current function filter in use More... | |
| std::string | myCurrentFunctionSelection |
| The currently selected function in the function list. More... | |
| bool | myCurrentFunctionIsBinary |
| Indicates if the current function selection is a binary function. More... | |
| DtKeyMapping | myCurrentKeyMapping |
| The currently selected key mapping in the key mapping list. More... | |
| DtKeyMap * | myKeyMap |
| pointer to the temporary, workspace key map More... | |
| std::string | myKeyMapName |
| This is the name of the map we're editing. If "", this is a new map. More... | |
The logic for the makVrv::DtKeyMappingEditor.
| makVrv::DtKeyMappingEditorLogic::DtKeyMappingEditorLogic | ( | DtDe & | de, |
| DtPersistenceControlsInterface & | toolbar, | ||
| DtKeyMappingEditorWidgetInterface & | iFace, | ||
| DtSelectInstanceWidget & | selectedInstance | ||
| ) |
CTOR.
|
virtual |
virtual DTOR
| void makVrv::DtKeyMappingEditorLogic::editKeyMapping | ( | ) |
Function called when the user clicks the "Edit".
| void makVrv::DtKeyMappingEditorLogic::addKeyMapping | ( | ) |
Function called when the user clicks the "Add".
| void makVrv::DtKeyMappingEditorLogic::removeKeyMapping | ( | ) |
Function called when the user clicks the "Remove".
| void makVrv::DtKeyMappingEditorLogic::filterChanged | ( | int | functionCategory | ) |
Called when the user changes the filter.
| void makVrv::DtKeyMappingEditorLogic::selectFunction | ( | const std::string & | functionName | ) |
Called when the user changes function selection.
| void makVrv::DtKeyMappingEditorLogic::selectKeyMapping | ( | const DtKeyMapping & | keyMapping | ) |
Called when the user changes key mapping selection.
| void makVrv::DtKeyMappingEditorLogic::selectKeyMap | ( | const std::string & | keyMapping | ) |
Sets the current key map.
| void makVrv::DtKeyMappingEditorLogic::deselectFunctions | ( | ) |
Called to clear function and mapping selections.
| void makVrv::DtKeyMappingEditorLogic::requestInputCanceled | ( | ) |
Sent by the interface to indicate that Cancel was selected on a request for input.
| void makVrv::DtKeyMappingEditorLogic::requestInputAccepted | ( | const DtKeyMapping & | keyMapping, |
| bool | isEdit | ||
| ) |
Sent by the interface when a request for input is completed.
isEdit indicates if the request was for a new mapping or to change an existing one
| void makVrv::DtKeyMappingEditorLogic::requestKeyValidationAccepted | ( | const DtKeyMapping & | keyMapping, |
| const DtKeyFunctionNameList & | fnList, | ||
| bool | isEdit, | ||
| bool | replace | ||
| ) |
Sent by the interface to return the result of a requestKeyValidation This is initiated when a function is mapped to a key that already has one or more functions mapped to it.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
Send when the current key map has changed due to the selected instance. Reset current key map.
|
protectedvirtual |
Sent when a key map is restored, if currently selected keymap, restore settings.
|
protectedvirtual |
Called when user wants to export contents of selected key mapping to a file.
|
protectedvirtual |
Called when the export filename has been chosen.
Will export contents of key mapping to given file
|
protectedvirtual |
Called when a user wants to import (replace) selected key mapping with contents of selected file.
|
protectedvirtual |
Called when the import filename has been chose.
Will import contents of file to selected key mapping
|
protectedvirtual |
Called to rename the currently selected key map.
|
protectedvirtual |
Called to create a new instance.
|
protectedvirtual |
Called to delete the currently selected instance.
|
protectedvirtual |
Asks for a name for the given key map.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
current function filter in use
|
protected |
The currently selected function in the function list.
|
protected |
Indicates if the current function selection is a binary function.
|
protected |
The currently selected key mapping in the key mapping list.
|
protected |
pointer to the temporary, workspace key map
|
protected |
This is the name of the map we're editing. If "", this is a new map.