Audacity
3.2.0
libraries
lib-menus
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
21
using
NormalizedKeyStringBase
=
TaggedIdentifier<NormalizedKeyStringTag, false>
;
22
23
struct
MENUS_API
NormalizedKeyString
:
NormalizedKeyStringBase
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
#endif
Identifier.h
key
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition:
NavigationMenus.cpp:547
TaggedIdentifier
Template generates different TaggedIdentifier classes that don't interconvert implicitly.
Definition:
Identifier.h:113
WaveChannelViewConstants::Display
Display
Definition:
WaveChannelViewConstants.h:18
std
STL namespace.
NormalizedKeyString
Definition:
Keyboard.h:24
NormalizedKeyString::NormalizedKeyString
NormalizedKeyString()=default
Generated by
1.9.3