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.

94 lines
3.1KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #pragma once
  20. //==============================================================================
  21. struct TargetOS
  22. {
  23. enum OS
  24. {
  25. windows = 0,
  26. osx,
  27. linux,
  28. unknown
  29. };
  30. static OS getThisOS() noexcept
  31. {
  32. #if JUCE_WINDOWS
  33. return windows;
  34. #elif JUCE_MAC
  35. return osx;
  36. #elif JUCE_LINUX
  37. return linux;
  38. #else
  39. return unknown;
  40. #endif
  41. }
  42. };
  43. typedef TargetOS::OS DependencyPathOS;
  44. //==============================================================================
  45. #include "../Settings/jucer_StoredSettings.h"
  46. #include "../Utility/UI/jucer_Icons.h"
  47. #include "../Utility/Helpers/jucer_MiscUtilities.h"
  48. #include "../Utility/Helpers/jucer_CodeHelpers.h"
  49. #include "../Utility/Helpers/jucer_FileHelpers.h"
  50. #include "../Utility/Helpers/jucer_RelativePath.h"
  51. #include "../Utility/Helpers/jucer_ValueSourceHelpers.h"
  52. #include "../Utility/Helpers/jucer_PresetIDs.h"
  53. #include "jucer_CommandIDs.h"
  54. //==============================================================================
  55. const char* const projectItemDragType = "Project Items";
  56. const char* const drawableItemDragType = "Drawable Items";
  57. const char* const componentItemDragType = "Components";
  58. enum ColourIds
  59. {
  60. backgroundColourId = 0x2340000,
  61. secondaryBackgroundColourId = 0x2340001,
  62. defaultTextColourId = 0x2340002,
  63. widgetTextColourId = 0x2340003,
  64. defaultButtonBackgroundColourId = 0x2340004,
  65. secondaryButtonBackgroundColourId = 0x2340005,
  66. userButtonBackgroundColourId = 0x2340006,
  67. defaultIconColourId = 0x2340007,
  68. treeIconColourId = 0x2340008,
  69. defaultHighlightColourId = 0x2340009,
  70. defaultHighlightedTextColourId = 0x234000a,
  71. codeEditorLineNumberColourId = 0x234000b,
  72. activeTabIconColourId = 0x234000c,
  73. inactiveTabBackgroundColourId = 0x234000d,
  74. inactiveTabIconColourId = 0x234000e,
  75. contentHeaderBackgroundColourId = 0x234000f,
  76. widgetBackgroundColourId = 0x2340010,
  77. secondaryWidgetBackgroundColourId = 0x2340011,
  78. };