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.

124 lines
4.7KB

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