LMMS
Loading...
Searching...
No Matches
juce_KeyMappingEditorComponent.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
39{
40public:
41 //==============================================================================
50 bool showResetToDefaultButton);
51
54
55 //==============================================================================
61 void setColours (Colour mainBackground,
62 Colour textColour);
63
66
69
70
71 //==============================================================================
77 virtual bool shouldCommandBeIncluded (CommandID commandID);
78
84 virtual bool isCommandReadOnly (CommandID commandID);
85
94 virtual String getDescriptionForKeyPress (const KeyPress& key);
95
96 //==============================================================================
105 {
106 backgroundColourId = 0x100ad00,
107 textColourId = 0x100ad01,
108 };
109
110 //==============================================================================
112 void parentHierarchyChanged() override;
114 void resized() override;
115
116private:
117 //==============================================================================
121
122 class TopLevelItem;
123 class ChangeKeyButton;
124 class MappingItem;
125 class CategoryItem;
126 class ItemComponent;
127 std::unique_ptr<TopLevelItem> treeItem;
128
130};
131
132} // namespace juce
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_ApplicationCommandManager.h:88
Definition juce_Colour.h:38
Component() noexcept
Definition juce_Component.cpp:517
Definition juce_KeyMappingEditorComponent.cpp:304
Definition juce_KeyMappingEditorComponent.cpp:30
Definition juce_KeyMappingEditorComponent.cpp:214
Definition juce_KeyMappingEditorComponent.cpp:282
Definition juce_KeyMappingEditorComponent.cpp:348
ColourIds
Definition juce_KeyMappingEditorComponent.h:105
@ backgroundColourId
Definition juce_KeyMappingEditorComponent.h:106
@ textColourId
Definition juce_KeyMappingEditorComponent.h:107
void setColours(Colour mainBackground, Colour textColour)
Definition juce_KeyMappingEditorComponent.cpp:430
ApplicationCommandManager & getCommandManager() const noexcept
Definition juce_KeyMappingEditorComponent.h:68
std::unique_ptr< TopLevelItem > treeItem
Definition juce_KeyMappingEditorComponent.h:127
TreeView tree
Definition juce_KeyMappingEditorComponent.h:119
KeyPressMappingSet & mappings
Definition juce_KeyMappingEditorComponent.h:118
KeyPressMappingSet & getMappings() const noexcept
Definition juce_KeyMappingEditorComponent.h:65
TextButton resetButton
Definition juce_KeyMappingEditorComponent.h:120
KeyMappingEditorComponent(KeyPressMappingSet &mappingSet, bool showResetToDefaultButton)
Definition juce_KeyMappingEditorComponent.cpp:393
Definition juce_KeyPress.h:40
Definition juce_KeyPressMappingSet.h:89
Definition juce_String.h:53
Definition juce_TextButton.h:39
Definition juce_TreeView.h:657
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
int CommandID
Definition juce_ApplicationCommandID.h:37
ZCONST char * key
Definition crypt.c:587
#define const
Definition zconf.h:137