67 TRANS (
"Quits the application"),
86bool JUCEApplication::initialiseApp()
88 if (JUCEApplicationBase::initialiseApp())
A command target publishes a list of command IDs that it can perform.
Holds a resizable array of primitive or copy-by-value objects.
void add(const ElementType &newElement)
Appends a new element at the end of the array.
static void quit()
Signals that the main message loop should stop and the application should terminate.
static JUCEApplicationBase * getInstance() noexcept
Returns the global instance of the application object that's running.
An instance of this class is used to specify initialisation and shutdown code for the application.
void anotherInstanceStarted(const String &commandLine) override
Indicates that the user has tried to start up another instance of the app.
static JUCEApplication *JUCE_CALLTYPE getInstance() noexcept
Returns the global instance of the application object being run.
ApplicationCommandTarget * getNextCommandTarget() override
This must return the next target to try after this one.
void suspended() override
This method is called when the application is being put into background mode by the operating system.
void getAllCommands(Array< CommandID > &) override
This must return a complete list of commands that this target can handle.
void getCommandInfo(CommandID, ApplicationCommandInfo &) override
This must provide details about one of the commands that this target can perform.
void systemRequestedQuit() override
Called when the operating system is trying to close the application.
bool moreThanOneInstanceAllowed() override
Checks whether multiple instances of the app are allowed.
void unhandledException(const std::exception *e, const String &sourceFilename, int lineNumber) override
If any unhandled exceptions make it through to the message dispatch loop, this callback will be trigg...
~JUCEApplication() override
Destructor.
bool perform(const InvocationInfo &) override
This must actually perform the specified command.
JUCEApplication()
Constructs a JUCE app object.
void resumed() override
This method is called when the application is being woken from background mode by the operating syste...
Represents a key press, including any modifier keys that are needed.
@ commandModifier
Command key flag - on windows this is the same as the CTRL key flag.
#define TRANS(stringLiteral)
Uses the LocalisedStrings class to translate the given string literal.
@ quit
This command ID should be used to send a "Quit the App" command.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
int CommandID
A type used to hold the unique ID for an application command.
Holds information describing an application command.
Array< KeyPress > defaultKeypresses
A list of zero or more keypresses that should be used as the default keys for this command.
void setInfo(const String &shortName, const String &description, const String &categoryName, int flags) noexcept
Sets a number of the structures values at once.
Contains contextual details about the invocation of a command.
CommandID commandID
The UID of the command that should be performed.