137 int insertIndex = -1);
142 void resetToDefaultMappings();
147 void resetToDefaultMapping (
CommandID commandID);
150 void clearAllKeyPresses();
153 void clearAllKeyPresses (
CommandID commandID);
159 void removeKeyPress (
CommandID commandID,
int keyPressIndex);
162 void removeKeyPress (
const KeyPress& keypress);
165 bool containsMapping (
CommandID commandID,
const KeyPress& keyPress)
const noexcept;
189 bool restoreFromXml (
const XmlElement& xmlVersion);
212 bool keyStateChanged (
bool isKeyDown,
Component*)
override;
214 void globalFocusChanged (
Component*)
override;
220 struct CommandMapping
224 bool wantsKeyUpDownCallbacks;
238 int millisecsSinceKeyPressed,
Component* originator)
const;
One of these objects holds a list of all the commands your app can perform, and despatches these comm...
Holds a resizable array of primitive or copy-by-value objects.
Holds a list of ChangeListeners, and sends messages to them when instructed.
The base class for all JUCE user-interface objects.
Classes can implement this interface and register themselves with the Desktop class to receive callba...
Receives callbacks when keys are pressed.
Manages and edits a list of keypresses, which it uses to invoke the appropriate command in an Applica...
Represents a key press, including any modifier keys that are needed.
An array designed for holding objects.
Used to build a tree of elements representing an XML document.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
unsigned int uint32
A platform-independent 32-bit unsigned integer type.
int CommandID
A type used to hold the unique ID for an application command.