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.

92 lines
3.0KB

  1. /*
  2. Copyright (C) 2013 Rory Walsh
  3. Cabbage is free software; you can redistribute it
  4. and/or modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. Cabbage is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with Csound; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  14. 02111-1307 USA
  15. */
  16. #ifndef CABBAGE_COMMAND_H
  17. #define CABBAGE_COMMAND_H
  18. #include "../JuceHeader.h"
  19. //==============================================================================
  20. namespace CommandIDs
  21. {
  22. static const int fileNew = 1000;
  23. static const int fileOpen = 1001;
  24. static const int fileSave = 1002;
  25. static const int fileSaveAs = 1003;
  26. static const int fileSaveAll = 1004;
  27. static const int fileExportSynth = 1005;
  28. static const int fileExportEffect = 1006;
  29. static const int fileUpdateGUI = 1007;
  30. static const int fileQuit = 1008;
  31. static const int fileKeyboardShorts = 1009;
  32. static const int editUndo = 2011;
  33. static const int editRedo = 2012;
  34. static const int editCut = 2013;
  35. static const int editCopy = 2014;
  36. static const int editPaste = 2015;
  37. static const int editZoomIn = 2016;
  38. static const int editZoomOut = 2017;
  39. static const int whiteBackground = 2018;
  40. static const int blackBackground = 2019;
  41. static const int editToggleComments = 2020;
  42. static const int insertFromRepo = 2021;
  43. static const int addFromRepo = 2022;
  44. static const int insertRecentEvent = 2023;
  45. static const int openPythonEditor = 2024;
  46. static const int viewCsoundHelp = 4025;
  47. static const int viewCabbageHelp = 4026;
  48. static const int viewSource = 4027;
  49. static const int AudioSettings = 4028;
  50. static const int startSession = 3023;
  51. static const int commOrchUpdateInstrument = 3024;
  52. static const int commOrchUpdateSingleLine = 3025;
  53. static const int commOrchUpdateMultiLine = 3026;
  54. static const int commScoUpdateMultiLine = 3027;
  55. static const int commScoUpdateSingleLine = 3028;
  56. static const int commOrcUpdateChannel = 3029;
  57. };
  58. //==============================================================================
  59. namespace CommandCategories
  60. {
  61. static const char* const file = "File";
  62. static const char* const edit = "Edit";
  63. static const char* const command = "Command";
  64. static const char* const help = "View";
  65. }
  66. //==============================================================================
  67. class CommandManager : public ApplicationCommandManager
  68. {
  69. public:
  70. CommandManager ();
  71. ~CommandManager ();
  72. juce_DeclareSingleton (CommandManager, true)
  73. };
  74. #endif