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.

90 lines
3.7KB

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