Blindly add a few stuff from VST
[juce-lv2.git] / juce / source / src / application / juce_ApplicationCommandID.h
blob8572305d46a3222e80f4fe3b3b7c17f620ea9513
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCE_APPLICATIONCOMMANDID_JUCEHEADER__
27 #define __JUCE_APPLICATIONCOMMANDID_JUCEHEADER__
30 //==============================================================================
31 /** A type used to hold the unique ID for an application command.
33 This is a numeric type, so it can be stored as an integer.
35 @see ApplicationCommandInfo, ApplicationCommandManager,
36 ApplicationCommandTarget, KeyPressMappingSet
38 typedef int CommandID;
41 //==============================================================================
42 /** A set of general-purpose application command IDs.
44 Because these commands are likely to be used in most apps, they're defined
45 here to help different apps to use the same numeric values for them.
47 Of course you don't have to use these, but some of them are used internally by
48 Juce - e.g. the quit ID is recognised as a command by the JUCEApplication class.
50 @see ApplicationCommandInfo, ApplicationCommandManager,
51 ApplicationCommandTarget, KeyPressMappingSet
53 namespace StandardApplicationCommandIDs
55 /** This command ID should be used to send a "Quit the App" command.
57 This command is recognised by the JUCEApplication class, so if it is invoked
58 and no other ApplicationCommandTarget handles the event first, the JUCEApplication
59 object will catch it and call JUCEApplication::systemRequestedQuit().
61 static const CommandID quit = 0x1001;
63 /** The command ID that should be used to send a "Delete" command. */
64 static const CommandID del = 0x1002;
66 /** The command ID that should be used to send a "Cut" command. */
67 static const CommandID cut = 0x1003;
69 /** The command ID that should be used to send a "Copy to clipboard" command. */
70 static const CommandID copy = 0x1004;
72 /** The command ID that should be used to send a "Paste from clipboard" command. */
73 static const CommandID paste = 0x1005;
75 /** The command ID that should be used to send a "Select all" command. */
76 static const CommandID selectAll = 0x1006;
78 /** The command ID that should be used to send a "Deselect all" command. */
79 static const CommandID deselectAll = 0x1007;
83 #endif // __JUCE_APPLICATIONCOMMANDID_JUCEHEADER__