198 bool asynchronously);
205 bool invokeDirectly (
CommandID commandID,
206 bool asynchronously);
222 bool isCommandActive (
CommandID commandID);
A command target publishes a list of command IDs that it can perform.
virtual ApplicationCommandTarget * getNextCommandTarget()=0
This must return the next target to try after this one.
virtual void getCommandInfo(CommandID commandID, ApplicationCommandInfo &result)=0
This must provide details about one of the commands that this target can perform.
virtual void getAllCommands(Array< CommandID > &commands)=0
This must return a complete list of commands that this target can handle.
virtual bool perform(const InvocationInfo &info)=0
This must actually perform the specified command.
Holds a resizable array of primitive or copy-by-value objects.
The base class for all JUCE user-interface objects.
Represents a key press, including any modifier keys that are needed.
#define JUCE_DECLARE_WEAK_REFERENCEABLE(Class)
Macro to easily allow a class to be made weak-referenceable.
int CommandID
A type used to hold the unique ID for an application command.
Holds information describing an application command.
Contains contextual details about the invocation of a command.
KeyPress keyPress
The keypress that was used to invoke it.
InvocationMethod invocationMethod
The type of event that triggered this command.
Component * originatingComponent
If triggered by a keypress or menu, this will be the component that had the keyboard focus at the tim...
bool isKeyDown
True if the callback is being invoked when the key is pressed, false if the key is being released.
InvocationMethod
The types of context in which the command might be called.
@ fromKeyPress
The command is being invoked by a key-press.
@ fromMenu
The command is being invoked by a menu selection.
int commandFlags
The command's flags.
CommandID commandID
The UID of the command that should be performed.
int millisecsSinceKeyPressed
If the key is being released, this indicates how long it had been held down for.