Audacity  3.0.3
Keyboard.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Keyboard.h
6 
7  Dominic Mazzoni
8  Brian Gunlogson
9 
10 **********************************************************************/
11 
12 #ifndef __AUDACITY_KEYBOARD__
13 #define __AUDACITY_KEYBOARD__
14 
15 #include "Identifier.h"
16 
17 class wxKeyEvent;
18 
19 struct NormalizedKeyStringTag;
20 // Case insensitive comparisons
22 
24 {
25  NormalizedKeyString() = default;
26  explicit NormalizedKeyString( const wxString &key );
27 
28  wxString Display(bool usesSpecialChars = false) const;
29 };
30 
31 namespace std
32 {
33  template<> struct hash< NormalizedKeyString >
34  : hash< NormalizedKeyStringBase > {};
35 }
36 
37 AUDACITY_DLL_API
38 NormalizedKeyString KeyEventToKeyString(const wxKeyEvent & keyEvent);
39 
40 #endif
WaveTrackViewConstants::Display
Display
Definition: WaveTrackViewConstants.h:18
KeyEventToKeyString
AUDACITY_DLL_API NormalizedKeyString KeyEventToKeyString(const wxKeyEvent &keyEvent)
Definition: Keyboard.cpp:83
Identifier.h
NormalizedKeyString
Definition: Keyboard.h:24
NormalizedKeyString::NormalizedKeyString
NormalizedKeyString()=default
key
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition: CommandManager.cpp:201
TaggedIdentifier
Template generates different TaggedIdentifier classes that don't interconvert implicitly.
Definition: Identifier.h:113