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.

100 lines
3.3KB

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