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