17 #include <QtCore/QString>
22 class DtKeyMappingEditorWidgetInterface;
23 class DtPersistenceControlsInterface;
24 class DtSelectInstanceWidget;
25 class DtKeyMapManager;
41 void editKeyMapping();
47 void removeKeyMapping();
50 void filterChanged(
int functionCategory );
53 void selectFunction(
const std::string& functionName );
59 void selectKeyMap(
const std::string& keyMapping );
62 void deselectFunctions();
66 void requestInputCanceled();
70 void requestInputAccepted(
const DtKeyMapping& keyMapping,
bool isEdit );
75 void requestKeyValidationAccepted(
const DtKeyMapping& keyMapping,
79 virtual void setupGui();
82 void setupAllKeyFunctions();
83 void setupKeyFunctions();
84 void setupBinaryKeyFunctions();
85 void updateAfterMappingChange();
87 std::string keyMappingsToString(
89 bool suppressDirection=
false );
91 std::string mapNameFromFileName(
const std::string&
filename );
95 virtual void slot_currentInstanceChanged(
int index,
const std::string& keyMap);
98 virtual void slot_keyMapRestored(
DtKeyMapManager*,
const std::string& map);
101 virtual void onExport();
105 virtual void onExportFilenameChosen(
const std::string&);
108 virtual void onImport();
112 virtual void onImportFilenameChosen(
const std::string&);
115 virtual void slot_renameInstanceRequested();
118 virtual void slot_newInstanceRequested();
121 virtual void slot_deleteInstanceRequested();
124 virtual QString askForKeyMapName(QString initial,
const QString& title)
const;
std::string myCurrentFunctionSelection
The currently selected function in the function list.
Definition: DtKeyMappingEditorLogic.h:136
DtSelectInstanceWidget & mySelectedInstance
Definition: DtKeyMappingEditorLogic.h:131
DtKeyMapping myCurrentKeyMapping
The currently selected key mapping in the key mapping list.
Definition: DtKeyMappingEditorLogic.h:142
std::string myKeyMapName
This is the name of the map we're editing. If "", this is a new map.
Definition: DtKeyMappingEditorLogic.h:148
int myFilter
current function filter in use
Definition: DtKeyMappingEditorLogic.h:133
DtDe & myDe
Definition: DtKeyMappingEditorLogic.h:128
std::list< DtKeyMapping * > MappedKeyList
Definition: DtKeyMap.h:319
The reverse key map is a list of these for each function name.
Definition: DtKeyMap.h:249
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
A serializable list of function names.
Definition: DtKeyMap.h:40
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
DtKeyMappingEditorWidgetInterface & myInterface
Definition: DtKeyMappingEditorLogic.h:130
a Key Map contains a map of keys to FunctionMapEntrys, as well as a list of functions to execute when...
Definition: DtKeyMap.h:315
The manager for owning key maps.
Definition: DtKeyMapManager.h:32
The logic for the makVrv::DtKeyMappingEditor.
Definition: DtKeyMappingEditorLogic.h:29
bool myCurrentFunctionIsBinary
Indicates if the current function selection is a binary function.
Definition: DtKeyMappingEditorLogic.h:139
DtKeyMap * myKeyMap
pointer to the temporary, workspace key map
Definition: DtKeyMappingEditorLogic.h:145
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtKeyMap and related classes.
DtPersistenceControlsInterface & myToolbar
Definition: DtKeyMappingEditorLogic.h:129