The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

89 lines
3.5KB

  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_JUCEHEADER__
  18. #define __JUCE_APPLICATIONCOMMANDID_JUCEHEADER__
  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. /** This command ID should be used to send a "Quit the App" command.
  38. This command is recognised by the JUCEApplication class, so if it is invoked
  39. and no other ApplicationCommandTarget handles the event first, the JUCEApplication
  40. object will catch it and call JUCEApplication::systemRequestedQuit().
  41. */
  42. static const CommandID quit = 0x1001;
  43. /** The command ID that should be used to send a "Delete" command. */
  44. static const CommandID del = 0x1002;
  45. /** The command ID that should be used to send a "Cut" command. */
  46. static const CommandID cut = 0x1003;
  47. /** The command ID that should be used to send a "Copy to clipboard" command. */
  48. static const CommandID copy = 0x1004;
  49. /** The command ID that should be used to send a "Paste from clipboard" command. */
  50. static const CommandID paste = 0x1005;
  51. /** The command ID that should be used to send a "Select all" command. */
  52. static const CommandID selectAll = 0x1006;
  53. /** The command ID that should be used to send a "Deselect all" command. */
  54. static const CommandID deselectAll = 0x1007;
  55. /** The command ID that should be used to send a "undo" command. */
  56. static const CommandID undo = 0x1008;
  57. /** The command ID that should be used to send a "redo" command. */
  58. static const CommandID redo = 0x1009;
  59. }
  60. #endif // __JUCE_APPLICATIONCOMMANDID_JUCEHEADER__