14 #include <QtCore/QString>
19 class DtKeyMappingEditorWidgetInterface;
20 class DtPersistenceControlsInterface;
21 class DtSelectInstanceWidget;
22 class DtKeyMapManager;
38 void editKeyMapping();
44 void removeKeyMapping();
47 void filterChanged(
int functionCategory );
50 void selectFunction(
const std::string& functionName );
56 void selectKeyMap(
const std::string& keyMapping );
59 void deselectFunctions();
63 void requestInputCanceled();
67 void requestInputAccepted(
const DtKeyMapping& keyMapping,
bool isEdit );
72 void requestKeyValidationAccepted(
const DtKeyMapping& keyMapping,
76 virtual void setupGui();
79 void setupAllKeyFunctions();
80 void setupKeyFunctions();
81 void setupBinaryKeyFunctions();
82 void updateAfterMappingChange();
84 std::string keyMappingsToString(
86 bool suppressDirection=
false );
88 std::string mapNameFromFileName(
const std::string&
filename );
92 virtual void slot_currentInstanceChanged(
int index,
const std::string& keyMap);
95 virtual void slot_keyMapRestored(
DtKeyMapManager*,
const std::string& map);
98 virtual void onExport();
102 virtual void onExportFilenameChosen(
const std::string&);
105 virtual void onImport();
109 virtual void onImportFilenameChosen(
const std::string&);
112 virtual void slot_renameInstanceRequested();
115 virtual void slot_newInstanceRequested();
118 virtual void slot_deleteInstanceRequested();
121 virtual QString askForKeyMapName(QString initial,
const QString& title)
const;
std::string myCurrentFunctionSelection
The currently selected function in the function list.
Definition: DtKeyMappingEditorLogic.h:133
DtSelectInstanceWidget & mySelectedInstance
Definition: DtKeyMappingEditorLogic.h:128
DtKeyMapping myCurrentKeyMapping
The currently selected key mapping in the key mapping list.
Definition: DtKeyMappingEditorLogic.h:139
std::string myKeyMapName
This is the name of the map we're editing. If "", this is a new map.
Definition: DtKeyMappingEditorLogic.h:145
int myFilter
current function filter in use
Definition: DtKeyMappingEditorLogic.h:130
DtDe & myDe
Definition: DtKeyMappingEditorLogic.h:125
std::list< DtKeyMapping * > MappedKeyList
Definition: DtKeyMap.h:316
The reverse key map is a list of these for each function name.
Definition: DtKeyMap.h:246
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
A serializable list of function names. There is such a list associated with each key/modifier combo f...
Definition: DtKeyMap.h:37
Abstract interface for controlling persistence of state in a dialog.
Definition: DtPersistenceControlsInterface.h:20
DtKeyMappingEditorWidgetInterface & myInterface
Definition: DtKeyMappingEditorLogic.h:127
a Key Map contains a map of keys to FunctionMapEntrys, as well as a list of functions to execute when...
Definition: DtKeyMap.h:312
The manager for owning key maps.
Definition: DtKeyMapManager.h:31
The logic for the makVrv::DtKeyMappingEditor.
Definition: DtKeyMappingEditorLogic.h:26
bool myCurrentFunctionIsBinary
Indicates if the current function selection is a binary function.
Definition: DtKeyMappingEditorLogic.h:136
DtKeyMap * myKeyMap
pointer to the temporary, workspace key map
Definition: DtKeyMappingEditorLogic.h:142
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains makVrv::DtKeyMap and related classes.
DtPersistenceControlsInterface & myToolbar
Definition: DtKeyMappingEditorLogic.h:126