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