VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtKeyMappingEditorLogic Class Reference

The logic for the makVrv::DtKeyMappingEditor. More...

List of all members.

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

DtDemyDe
DtPersistenceControlsInterfacemyToolbar
DtKeyMappingEditorWidgetInterfacemyInterface
DtSelectInstanceWidgetmySelectedInstance
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.
DtKeyMapmyKeyMap
 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.

Detailed Description

The logic for the makVrv::DtKeyMappingEditor.


Constructor & Destructor Documentation

CTOR.

virtual DTOR


Member Function Documentation

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.

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]
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

Called to rename the currently selected key map.

virtual void makVrv::DtKeyMappingEditorLogic::slot_newInstanceRequested ( ) [protected, virtual]

Called to create a new instance.

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.


Member Data Documentation

current function filter in use

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.

pointer to the temporary, workspace key map

This is the name of the map we're editing. If "", this is a new map.


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)