VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtKeyMappingEditorLogic Class Reference

The logic for the makVrv::DtKeyMappingEditor.

Public Member Functions

 DtKeyMappingEditorLogic (DtDe &de, DtPersistenceControlsInterface &toolbar, DtKeyMappingEditorWidgetInterface &iFace, DtSelectInstanceWidget &selectedInstance)
 
virtual ~DtKeyMappingEditorLogic ()
 
void editKeyMapping ()
 
void addKeyMapping ()
 
void removeKeyMapping ()
 
void filterChanged (int functionCategory)
 
void selectFunction (const std::string &functionName)
 
void selectKeyMapping (const DtKeyMapping &keyMapping)
 
void selectKeyMap (const std::string &keyMapping)
 
void deselectFunctions ()
 
void requestInputCanceled ()
 
void requestInputAccepted (const DtKeyMapping &keyMapping, bool isEdit)
 
void requestKeyValidationAccepted (const DtKeyMapping &keyMapping, const DtKeyFunctionNameList &fnList, bool isEdit, bool replace)
 

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)
 
virtual void slot_keyMapRestored (DtKeyMapManager *, const std::string &map)
 
virtual void onExport ()
 
virtual void onExportFilenameChosen (const std::string &)
 
virtual void onImport ()
 
virtual void onImportFilenameChosen (const std::string &)
 
virtual void slot_renameInstanceRequested ()
 
virtual void slot_newInstanceRequested ()
 
virtual void slot_deleteInstanceRequested ()
 
virtual QString askForKeyMapName (QString initial, const QString &title) const
 

Protected Attributes

DtDemyDe
 
DtPersistenceControlsInterfacemyToolbar
 
DtKeyMappingEditorWidgetInterfacemyInterface
 
DtSelectInstanceWidgetmySelectedInstance
 
int myFilter
 
std::string myCurrentFunctionSelection
 
bool myCurrentFunctionIsBinary
 
DtKeyMapping myCurrentKeyMapping
 
DtKeyMapmyKeyMap
 
std::string myKeyMapName
 

Constructor & Destructor Documentation

makVrv::DtKeyMappingEditorLogic::DtKeyMappingEditorLogic ( DtDe de,
DtPersistenceControlsInterface toolbar,
DtKeyMappingEditorWidgetInterface iFace,
DtSelectInstanceWidget selectedInstance 
)

CTOR.

virtual makVrv::DtKeyMappingEditorLogic::~DtKeyMappingEditorLogic ( )
virtual

virtual DTOR

Member Function Documentation

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.

virtual void makVrv::DtKeyMappingEditorLogic::setupGui ( )
protectedvirtual
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 
)
protectedvirtual

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 
)
protectedvirtual

Sent when a key map is restored, if currently selected keymap, restore settings.

virtual void makVrv::DtKeyMappingEditorLogic::onExport ( )
protectedvirtual

Called when user wants to export contents of selected key mapping to a file.

virtual void makVrv::DtKeyMappingEditorLogic::onExportFilenameChosen ( const std::string &  )
protectedvirtual

Called when the export filename has been chosen. Will export contents of key mapping to given file.

virtual void makVrv::DtKeyMappingEditorLogic::onImport ( )
protectedvirtual

Called when a user wants to import (replace) selected key mapping with contents of selected file.

virtual void makVrv::DtKeyMappingEditorLogic::onImportFilenameChosen ( const std::string &  )
protectedvirtual

Called when the import filename has been chose. Will import contents of file to selected key mapping.

virtual void makVrv::DtKeyMappingEditorLogic::slot_renameInstanceRequested ( )
protectedvirtual

Called to rename the currently selected key map.

virtual void makVrv::DtKeyMappingEditorLogic::slot_newInstanceRequested ( )
protectedvirtual

Called to create a new instance.

virtual void makVrv::DtKeyMappingEditorLogic::slot_deleteInstanceRequested ( )
protectedvirtual

Called to delete the currently selected instance.

virtual QString makVrv::DtKeyMappingEditorLogic::askForKeyMapName ( QString  initial,
const QString &  title 
) const
protectedvirtual

Asks for a name for the given key map.

Member Data Documentation

DtDe& makVrv::DtKeyMappingEditorLogic::myDe
protected
DtPersistenceControlsInterface& makVrv::DtKeyMappingEditorLogic::myToolbar
protected
DtKeyMappingEditorWidgetInterface& makVrv::DtKeyMappingEditorLogic::myInterface
protected
DtSelectInstanceWidget& makVrv::DtKeyMappingEditorLogic::mySelectedInstance
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.

bool makVrv::DtKeyMappingEditorLogic::myCurrentFunctionIsBinary
protected

Indicates if the current function selection is a binary function.

DtKeyMapping makVrv::DtKeyMappingEditorLogic::myCurrentKeyMapping
protected

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.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)