openshot-audio  0.1.4
juce_ApplicationCommandInfo.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #ifndef JUCE_APPLICATIONCOMMANDINFO_H_INCLUDED
26 #define JUCE_APPLICATIONCOMMANDINFO_H_INCLUDED
27 
28 
29 //==============================================================================
43 {
44  //==============================================================================
45  explicit ApplicationCommandInfo (CommandID commandID) noexcept;
46 
47  //==============================================================================
53  void setInfo (const String& shortName,
54  const String& description,
55  const String& categoryName,
56  int flags) noexcept;
57 
63  void setActive (bool isActive) noexcept;
64 
67  void setTicked (bool isTicked) noexcept;
68 
80  void addDefaultKeypress (int keyCode, ModifierKeys modifiers) noexcept;
81 
82  //==============================================================================
86 
95 
105 
116 
126 
127  //==============================================================================
134  {
144  isDisabled = 1 << 0,
145 
154  isTicked = 1 << 1,
155 
161  wantsKeyUpDownCallbacks = 1 << 2,
162 
166  hiddenFromKeyEditor = 1 << 3,
167 
171  readOnlyInKeyEditor = 1 << 4,
172 
177  dontTriggerVisualFeedback = 1 << 5
178  };
179 
185  int flags;
186 };
187 
188 
189 #endif // JUCE_APPLICATIONCOMMANDINFO_H_INCLUDED
String shortName
Definition: juce_ApplicationCommandInfo.h:94
int flags
Definition: juce_ApplicationCommandInfo.h:185
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_ModifierKeys.h:38
String categoryName
Definition: juce_ApplicationCommandInfo.h:115
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Array< KeyPress > defaultKeypresses
Definition: juce_ApplicationCommandInfo.h:125
CommandID commandID
Definition: juce_ApplicationCommandInfo.h:85
String description
Definition: juce_ApplicationCommandInfo.h:104
int CommandID
Definition: juce_ApplicationCommandID.h:37
Definition: juce_ApplicationCommandInfo.h:42
CommandFlags
Definition: juce_ApplicationCommandInfo.h:133