Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

juce_ApplicationCommandID.h 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifndef JUCE_APPLICATIONCOMMANDID_H_INCLUDED
  18. #define JUCE_APPLICATIONCOMMANDID_H_INCLUDED
  19. //==============================================================================
  20. /** A type used to hold the unique ID for an application command.
  21. This is a numeric type, so it can be stored as an integer.
  22. @see ApplicationCommandInfo, ApplicationCommandManager,
  23. ApplicationCommandTarget, KeyPressMappingSet
  24. */
  25. typedef int CommandID;
  26. //==============================================================================
  27. /** A set of general-purpose application command IDs.
  28. Because these commands are likely to be used in most apps, they're defined
  29. here to help different apps to use the same numeric values for them.
  30. Of course you don't have to use these, but some of them are used internally by
  31. Juce - e.g. the quit ID is recognised as a command by the JUCEApplication class.
  32. @see ApplicationCommandInfo, ApplicationCommandManager,
  33. ApplicationCommandTarget, KeyPressMappingSet
  34. */
  35. namespace StandardApplicationCommandIDs
  36. {
  37. enum
  38. {
  39. /** This command ID should be used to send a "Quit the App" command.
  40. This command is recognised by the JUCEApplication class, so if it is invoked
  41. and no other ApplicationCommandTarget handles the event first, the JUCEApplication
  42. object will catch it and call JUCEApplicationBase::systemRequestedQuit().
  43. */
  44. quit = 0x1001,
  45. /** The command ID that should be used to send a "Delete" command. */
  46. del = 0x1002,
  47. /** The command ID that should be used to send a "Cut" command. */
  48. cut = 0x1003,
  49. /** The command ID that should be used to send a "Copy to clipboard" command. */
  50. copy = 0x1004,
  51. /** The command ID that should be used to send a "Paste from clipboard" command. */
  52. paste = 0x1005,
  53. /** The command ID that should be used to send a "Select all" command. */
  54. selectAll = 0x1006,
  55. /** The command ID that should be used to send a "Deselect all" command. */
  56. deselectAll = 0x1007,
  57. /** The command ID that should be used to send a "undo" command. */
  58. undo = 0x1008,
  59. /** The command ID that should be used to send a "redo" command. */
  60. redo = 0x1009
  61. };
  62. }
  63. #endif // JUCE_APPLICATIONCOMMANDID_H_INCLUDED