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.

114 lines
4.1KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 7 technical preview.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For the technical preview this file cannot be licensed commercially.
  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. #include <JuceHeader.h>
  14. #include "../../../Assets/DemoUtilities.h"
  15. #include "JUCEDemos.h"
  16. #include "../../../Assets/AudioLiveScrollingDisplay.h"
  17. //==============================================================================
  18. #if JUCE_MAC || JUCE_WINDOWS
  19. #include "../../../GUI/AccessibilityDemo.h"
  20. #endif
  21. #include "../../../GUI/AnimationAppDemo.h"
  22. #include "../../../GUI/AnimationDemo.h"
  23. #include "../../../GUI/BouncingBallWavetableDemo.h"
  24. #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
  25. #include "../../../GUI/CameraDemo.h"
  26. #endif
  27. #if ! JUCE_ANDROID
  28. #include "../../../GUI/CodeEditorDemo.h"
  29. #endif
  30. #include "../../../GUI/ComponentDemo.h"
  31. #include "../../../GUI/ComponentTransformsDemo.h"
  32. #include "../../../GUI/DialogsDemo.h"
  33. #include "../../../GUI/FlexBoxDemo.h"
  34. #include "../../../GUI/FontsDemo.h"
  35. #include "../../../GUI/GraphicsDemo.h"
  36. #include "../../../GUI/GridDemo.h"
  37. #include "../../../GUI/ImagesDemo.h"
  38. #include "../../../GUI/KeyMappingsDemo.h"
  39. #include "../../../GUI/LookAndFeelDemo.h"
  40. #include "../../../GUI/MDIDemo.h"
  41. #include "../../../GUI/MenusDemo.h"
  42. #include "../../../GUI/MultiTouchDemo.h"
  43. #if JUCE_OPENGL
  44. #include "../../../GUI/OpenGLAppDemo.h"
  45. #include "../../../GUI/OpenGLDemo.h"
  46. #include "../../../GUI/OpenGLDemo2D.h"
  47. #endif
  48. #include "../../../GUI/PropertiesDemo.h"
  49. #if ! (JUCE_LINUX || JUCE_BSD)
  50. #include "../../../GUI/VideoDemo.h"
  51. #endif
  52. #include "../../../GUI/WebBrowserDemo.h"
  53. #include "../../../GUI/WidgetsDemo.h"
  54. #include "../../../GUI/WindowsDemo.h"
  55. void registerDemos_Two() noexcept
  56. {
  57. #if JUCE_MAC || JUCE_WINDOWS
  58. REGISTER_DEMO (AccessibilityDemo, GUI, false)
  59. #endif
  60. REGISTER_DEMO (AnimationAppDemo, GUI, false)
  61. REGISTER_DEMO (AnimationDemo, GUI, false)
  62. REGISTER_DEMO (BouncingBallWavetableDemo, GUI, false)
  63. #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
  64. REGISTER_DEMO (CameraDemo, GUI, true)
  65. #endif
  66. #if ! JUCE_ANDROID
  67. REGISTER_DEMO (CodeEditorDemo, GUI, false)
  68. #endif
  69. REGISTER_DEMO (ComponentDemo, GUI, false)
  70. REGISTER_DEMO (ComponentTransformsDemo, GUI, false)
  71. REGISTER_DEMO (DialogsDemo, GUI, false)
  72. REGISTER_DEMO (FlexBoxDemo, GUI, false)
  73. REGISTER_DEMO (FontsDemo, GUI, false)
  74. REGISTER_DEMO (GraphicsDemo, GUI, false)
  75. REGISTER_DEMO (GridDemo, GUI, false)
  76. REGISTER_DEMO (ImagesDemo, GUI, false)
  77. REGISTER_DEMO (KeyMappingsDemo, GUI, false)
  78. REGISTER_DEMO (LookAndFeelDemo, GUI, false)
  79. REGISTER_DEMO (MDIDemo, GUI, false)
  80. REGISTER_DEMO (MenusDemo, GUI, false)
  81. REGISTER_DEMO (MultiTouchDemo, GUI, false)
  82. #if JUCE_OPENGL
  83. REGISTER_DEMO (OpenGLAppDemo, GUI, true)
  84. REGISTER_DEMO (OpenGLDemo2D, GUI, true)
  85. REGISTER_DEMO (OpenGLDemo, GUI, true)
  86. #endif
  87. REGISTER_DEMO (PropertiesDemo, GUI, false)
  88. #if ! (JUCE_LINUX || JUCE_BSD)
  89. REGISTER_DEMO (VideoDemo, GUI, true)
  90. #endif
  91. REGISTER_DEMO (WebBrowserDemo, GUI, true)
  92. REGISTER_DEMO (WidgetsDemo, GUI, false)
  93. REGISTER_DEMO (WindowsDemo, GUI, false)
  94. }
  95. CodeEditorComponent::ColourScheme getDarkColourScheme()
  96. {
  97. return getDarkCodeEditorColourScheme();
  98. }
  99. CodeEditorComponent::ColourScheme getLightColourScheme()
  100. {
  101. return getLightCodeEditorColourScheme();
  102. }