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
2.9KB

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