openshot-audio  0.1.2
juce_ApplicationCommandTarget.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_APPLICATIONCOMMANDTARGET_H_INCLUDED
26 #define JUCE_APPLICATIONCOMMANDTARGET_H_INCLUDED
27 
28 
29 //==============================================================================
45 {
46 public:
47  //==============================================================================
50 
52  virtual ~ApplicationCommandTarget();
53 
54  //==============================================================================
59  {
60  //==============================================================================
61  InvocationInfo (const CommandID commandID);
62 
63  //==============================================================================
66 
71 
72  //==============================================================================
75  {
76  direct = 0,
79  fromButton
80  };
81 
84 
85  //==============================================================================
92 
93  //==============================================================================
100 
106  bool isKeyDown;
107 
114  };
115 
116  //==============================================================================
130  virtual ApplicationCommandTarget* getNextCommandTarget() = 0;
131 
137  virtual void getAllCommands (Array<CommandID>& commands) = 0;
138 
163  virtual void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result) = 0;
164 
175  virtual bool perform (const InvocationInfo& info) = 0;
176 
177  //==============================================================================
195  bool invoke (const InvocationInfo& invocationInfo,
196  const bool asynchronously);
197 
203  bool invokeDirectly (const CommandID commandID,
204  const bool asynchronously);
205 
206  //==============================================================================
213  ApplicationCommandTarget* getTargetForCommand (const CommandID commandID);
214 
220  bool isCommandActive (const CommandID commandID);
221 
229  ApplicationCommandTarget* findFirstTargetParentComponent();
230 
231 private:
232  //==============================================================================
235 
237  friend class CommandMessage;
238 
239  bool tryToInvoke (const InvocationInfo&, bool async);
240 
242 };
243 
244 
245 #endif // JUCE_APPLICATIONCOMMANDTARGET_H_INCLUDED
InvocationMethod invocationMethod
Definition: juce_ApplicationCommandTarget.h:83
Definition: juce_KeyPress.h:37
InvocationMethod
Definition: juce_ApplicationCommandTarget.h:74
bool isKeyDown
Definition: juce_ApplicationCommandTarget.h:106
Component * originatingComponent
Definition: juce_ApplicationCommandTarget.h:91
int millisecsSinceKeyPressed
Definition: juce_ApplicationCommandTarget.h:113
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_ApplicationCommandTarget.h:58
Definition: juce_ApplicationCommandTarget.cpp:25
Definition: juce_ApplicationCommandTarget.h:44
Definition: juce_ApplicationCommandTarget.h:77
Definition: juce_Component.h:33
Definition: juce_win32_Windowing.cpp:76
Definition: juce_WeakReference.h:82
Definition: juce_Array.h:60
Definition: juce_ApplicationCommandTarget.h:78
int commandFlags
Definition: juce_ApplicationCommandTarget.h:70
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
Definition: juce_PlatformDefs.h:198
CommandID commandID
Definition: juce_ApplicationCommandTarget.h:65
KeyPress keyPress
Definition: juce_ApplicationCommandTarget.h:99
Definition: juce_ApplicationCommandInfo.h:42
added some headers to allow you to turn off FLAC and commented out a couple of unused bits of and which applies just to the files I ve included in this directory For more info
Definition: Flac Licence.txt:12