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.

99 lines
3.2KB

  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. #ifdef linux
  21. #undef linux
  22. #endif
  23. struct TargetOS
  24. {
  25. enum OS
  26. {
  27. windows = 0,
  28. osx,
  29. linux,
  30. unknown
  31. };
  32. static OS getThisOS() noexcept
  33. {
  34. #if JUCE_WINDOWS
  35. return windows;
  36. #elif JUCE_MAC
  37. return osx;
  38. #elif JUCE_LINUX || JUCE_BSD
  39. return linux;
  40. #else
  41. return unknown;
  42. #endif
  43. }
  44. };
  45. typedef TargetOS::OS DependencyPathOS;
  46. //==============================================================================
  47. #include "../Settings/jucer_StoredSettings.h"
  48. #include "../Utility/UI/jucer_Icons.h"
  49. #include "../Utility/Helpers/jucer_MiscUtilities.h"
  50. #include "../Utility/Helpers/jucer_CodeHelpers.h"
  51. #include "../Utility/Helpers/jucer_FileHelpers.h"
  52. #include "../Utility/Helpers/jucer_ValueSourceHelpers.h"
  53. #include "../Utility/Helpers/jucer_PresetIDs.h"
  54. #include "jucer_CommandIDs.h"
  55. //==============================================================================
  56. const char* const projectItemDragType = "Project Items";
  57. const char* const drawableItemDragType = "Drawable Items";
  58. const char* const componentItemDragType = "Components";
  59. enum ColourIds
  60. {
  61. backgroundColourId = 0x2340000,
  62. secondaryBackgroundColourId = 0x2340001,
  63. defaultTextColourId = 0x2340002,
  64. widgetTextColourId = 0x2340003,
  65. defaultButtonBackgroundColourId = 0x2340004,
  66. secondaryButtonBackgroundColourId = 0x2340005,
  67. userButtonBackgroundColourId = 0x2340006,
  68. defaultIconColourId = 0x2340007,
  69. treeIconColourId = 0x2340008,
  70. defaultHighlightColourId = 0x2340009,
  71. defaultHighlightedTextColourId = 0x234000a,
  72. codeEditorLineNumberColourId = 0x234000b,
  73. activeTabIconColourId = 0x234000c,
  74. inactiveTabBackgroundColourId = 0x234000d,
  75. inactiveTabIconColourId = 0x234000e,
  76. contentHeaderBackgroundColourId = 0x234000f,
  77. widgetBackgroundColourId = 0x2340010,
  78. secondaryWidgetBackgroundColourId = 0x2340011,
  79. };
  80. //==============================================================================
  81. static constexpr int projucerMajorVersion = ProjectInfo::versionNumber >> 16;