15 #include <QtCore/QString>
20 class DtKeyMappingEditorWidgetInterface;
21 class DtPersistenceControlsInterface;
22 class DtSelectInstanceWidget;
23 class DtKeyMapManager;
39 void editKeyMapping();
45 void removeKeyMapping();
48 void filterChanged(
int functionCategory );
51 void selectFunction(
const std::string& functionName );
57 void selectKeyMap(
const std::string& keyMapping );
60 void deselectFunctions();
64 void requestInputCanceled();
68 void requestInputAccepted(
const DtKeyMapping& keyMapping,
bool isEdit );
73 void requestKeyValidationAccepted(
const DtKeyMapping& keyMapping,
77 virtual void setupGui();
80 void setupAllKeyFunctions();
81 void setupKeyFunctions();
82 void setupBinaryKeyFunctions();
83 void updateAfterMappingChange();
85 std::string keyMappingsToString(
87 bool suppressDirection=
false );
89 std::string mapNameFromFileName(
const std::string&
filename );
93 virtual void slot_currentInstanceChanged(
int index,
const std::string& keyMap);
96 virtual void slot_keyMapRestored(
DtKeyMapManager*,
const std::string& map);
99 virtual void onExport();
103 virtual void onExportFilenameChosen(
const std::string&);
106 virtual void onImport();
110 virtual void onImportFilenameChosen(
const std::string&);
113 virtual void slot_renameInstanceRequested();
116 virtual void slot_newInstanceRequested();
119 virtual void slot_deleteInstanceRequested();
122 virtual QString askForKeyMapName(QString initial,
const QString& title)
const;
std::string myCurrentFunctionSelection
The currently selected function in the function list.
Definition: DtKeyMappingEditorLogic.h:134
DtSelectInstanceWidget & mySelectedInstance
Definition: DtKeyMappingEditorLogic.h:129
DtKeyMapping myCurrentKeyMapping
The currently selected key mapping in the key mapping list.
Definition: DtKeyMappingEditorLogic.h:140
std::string myKeyMapName
This is the name of the map we're editing. If "", this is a new map.
Definition: DtKeyMappingEditorLogic.h:146
int myFilter
current function filter in use
Definition: DtKeyMappingEditorLogic.h:131
DtDe & myDe
Definition: DtKeyMappingEditorLogic.h:126
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:128
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:27
bool myCurrentFunctionIsBinary
Indicates if the current function selection is a binary function.
Definition: DtKeyMappingEditorLogic.h:137
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtKeyMap * myKeyMap
pointer to the temporary, workspace key map
Definition: DtKeyMappingEditorLogic.h:143
Base class to provide boost signal/slot management.
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.
DtSignalConnectionManager myConnections
Auto-disconnects on destruction; avoids singleton lookups in the DTOR.
Definition: DtKeyMappingEditorLogic.h:149
DtPersistenceControlsInterface & myToolbar
Definition: DtKeyMappingEditorLogic.h:127