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.

84 lines
3.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. namespace juce
  14. {
  15. //==============================================================================
  16. /** A type used to hold the unique ID for an application command.
  17. This is a numeric type, so it can be stored as an integer.
  18. @see ApplicationCommandInfo, ApplicationCommandManager,
  19. ApplicationCommandTarget, KeyPressMappingSet
  20. */
  21. using CommandID = int;
  22. //==============================================================================
  23. /** A set of general-purpose application command IDs.
  24. Because these commands are likely to be used in most apps, they're defined
  25. here to help different apps to use the same numeric values for them.
  26. Of course you don't have to use these, but some of them are used internally by
  27. JUCE - e.g. the quit ID is recognised as a command by the JUCEApplication class.
  28. @see ApplicationCommandInfo, ApplicationCommandManager,
  29. ApplicationCommandTarget, KeyPressMappingSet
  30. */
  31. namespace StandardApplicationCommandIDs
  32. {
  33. enum
  34. {
  35. /** This command ID should be used to send a "Quit the App" command.
  36. This command is recognised by the JUCEApplication class, so if it is invoked
  37. and no other ApplicationCommandTarget handles the event first, the JUCEApplication
  38. object will catch it and call JUCEApplicationBase::systemRequestedQuit().
  39. */
  40. quit = 0x1001,
  41. /** The command ID that should be used to send a "Delete" command. */
  42. del = 0x1002,
  43. /** The command ID that should be used to send a "Cut" command. */
  44. cut = 0x1003,
  45. /** The command ID that should be used to send a "Copy to clipboard" command. */
  46. copy = 0x1004,
  47. /** The command ID that should be used to send a "Paste from clipboard" command. */
  48. paste = 0x1005,
  49. /** The command ID that should be used to send a "Select all" command. */
  50. selectAll = 0x1006,
  51. /** The command ID that should be used to send a "Deselect all" command. */
  52. deselectAll = 0x1007,
  53. /** The command ID that should be used to send a "undo" command. */
  54. undo = 0x1008,
  55. /** The command ID that should be used to send a "redo" command. */
  56. redo = 0x1009
  57. };
  58. }
  59. } // namespace juce