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.

121 lines
4.4KB

  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. #include <JuceHeader.h>
  19. #include "../../../Assets/DemoUtilities.h"
  20. #include "JUCEDemos.h"
  21. #include "../../../Assets/AudioLiveScrollingDisplay.h"
  22. //==============================================================================
  23. #if JUCE_MAC || JUCE_WINDOWS
  24. #include "../../../GUI/AccessibilityDemo.h"
  25. #endif
  26. #include "../../../GUI/AnimationAppDemo.h"
  27. #include "../../../GUI/AnimationDemo.h"
  28. #include "../../../GUI/BouncingBallWavetableDemo.h"
  29. #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
  30. #include "../../../GUI/CameraDemo.h"
  31. #endif
  32. #if ! JUCE_ANDROID
  33. #include "../../../GUI/CodeEditorDemo.h"
  34. #endif
  35. #include "../../../GUI/ComponentDemo.h"
  36. #include "../../../GUI/ComponentTransformsDemo.h"
  37. #include "../../../GUI/DialogsDemo.h"
  38. #include "../../../GUI/FlexBoxDemo.h"
  39. #include "../../../GUI/FontsDemo.h"
  40. #include "../../../GUI/GraphicsDemo.h"
  41. #include "../../../GUI/GridDemo.h"
  42. #include "../../../GUI/ImagesDemo.h"
  43. #include "../../../GUI/KeyMappingsDemo.h"
  44. #include "../../../GUI/LookAndFeelDemo.h"
  45. #include "../../../GUI/MDIDemo.h"
  46. #include "../../../GUI/MenusDemo.h"
  47. #include "../../../GUI/MultiTouchDemo.h"
  48. #if JUCE_OPENGL
  49. #include "../../../GUI/OpenGLAppDemo.h"
  50. #include "../../../GUI/OpenGLDemo.h"
  51. #include "../../../GUI/OpenGLDemo2D.h"
  52. #endif
  53. #include "../../../GUI/PropertiesDemo.h"
  54. #if ! (JUCE_LINUX || JUCE_BSD)
  55. #include "../../../GUI/VideoDemo.h"
  56. #endif
  57. #include "../../../GUI/WebBrowserDemo.h"
  58. #include "../../../GUI/WidgetsDemo.h"
  59. #include "../../../GUI/WindowsDemo.h"
  60. void registerDemos_Two() noexcept
  61. {
  62. #if JUCE_MAC || JUCE_WINDOWS
  63. REGISTER_DEMO (AccessibilityDemo, GUI, false)
  64. #endif
  65. REGISTER_DEMO (AnimationAppDemo, GUI, false)
  66. REGISTER_DEMO (AnimationDemo, GUI, false)
  67. REGISTER_DEMO (BouncingBallWavetableDemo, GUI, false)
  68. #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
  69. REGISTER_DEMO (CameraDemo, GUI, true)
  70. #endif
  71. #if ! JUCE_ANDROID
  72. REGISTER_DEMO (CodeEditorDemo, GUI, false)
  73. #endif
  74. REGISTER_DEMO (ComponentDemo, GUI, false)
  75. REGISTER_DEMO (ComponentTransformsDemo, GUI, false)
  76. REGISTER_DEMO (DialogsDemo, GUI, false)
  77. REGISTER_DEMO (FlexBoxDemo, GUI, false)
  78. REGISTER_DEMO (FontsDemo, GUI, false)
  79. REGISTER_DEMO (GraphicsDemo, GUI, false)
  80. REGISTER_DEMO (GridDemo, GUI, false)
  81. REGISTER_DEMO (ImagesDemo, GUI, false)
  82. REGISTER_DEMO (KeyMappingsDemo, GUI, false)
  83. REGISTER_DEMO (LookAndFeelDemo, GUI, false)
  84. REGISTER_DEMO (MDIDemo, GUI, false)
  85. REGISTER_DEMO (MenusDemo, GUI, false)
  86. REGISTER_DEMO (MultiTouchDemo, GUI, false)
  87. #if JUCE_OPENGL
  88. REGISTER_DEMO (OpenGLAppDemo, GUI, true)
  89. REGISTER_DEMO (OpenGLDemo2D, GUI, true)
  90. REGISTER_DEMO (OpenGLDemo, GUI, true)
  91. #endif
  92. REGISTER_DEMO (PropertiesDemo, GUI, false)
  93. #if ! (JUCE_LINUX || JUCE_BSD)
  94. REGISTER_DEMO (VideoDemo, GUI, true)
  95. #endif
  96. REGISTER_DEMO (WebBrowserDemo, GUI, true)
  97. REGISTER_DEMO (WidgetsDemo, GUI, false)
  98. REGISTER_DEMO (WindowsDemo, GUI, false)
  99. }
  100. CodeEditorComponent::ColourScheme getDarkColourScheme()
  101. {
  102. return getDarkCodeEditorColourScheme();
  103. }
  104. CodeEditorComponent::ColourScheme getLightColourScheme()
  105. {
  106. return getLightCodeEditorColourScheme();
  107. }