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.

120 lines
4.5KB

  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_USE_CAMERA && ! JUCE_LINUX
  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. #include "../../../GUI/FlexBoxDemo.h"
  37. #include "../../../GUI/FontsDemo.h"
  38. #include "../../../GUI/GraphicsDemo.h"
  39. #if JUCE_HAS_CONSTEXPR
  40. #include "../../../GUI/GridDemo.h"
  41. #endif
  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_MAC || JUCE_WINDOWS
  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. REGISTER_DEMO (AnimationAppDemo, GUI, false)
  63. REGISTER_DEMO (AnimationDemo, GUI, false)
  64. REGISTER_DEMO (BouncingBallWavetableDemo, GUI, false)
  65. #if JUCE_USE_CAMERA && ! JUCE_LINUX
  66. REGISTER_DEMO (CameraDemo, GUI, true)
  67. #endif
  68. #if ! JUCE_ANDROID
  69. REGISTER_DEMO (CodeEditorDemo, GUI, false)
  70. #endif
  71. REGISTER_DEMO (ComponentDemo, GUI, false)
  72. REGISTER_DEMO (ComponentTransformsDemo, GUI, false)
  73. REGISTER_DEMO (DialogsDemo, GUI, false)
  74. REGISTER_DEMO (FlexBoxDemo, GUI, false)
  75. REGISTER_DEMO (FontsDemo, GUI, false)
  76. REGISTER_DEMO (GraphicsDemo, GUI, false)
  77. #if JUCE_HAS_CONSTEXPR
  78. REGISTER_DEMO (GridDemo, GUI, false)
  79. #endif
  80. REGISTER_DEMO (ImagesDemo, GUI, false)
  81. REGISTER_DEMO (KeyMappingsDemo, GUI, false)
  82. REGISTER_DEMO (LookAndFeelDemo, GUI, false)
  83. REGISTER_DEMO (MDIDemo, GUI, false)
  84. REGISTER_DEMO (MenusDemo, GUI, false)
  85. REGISTER_DEMO (MultiTouchDemo, GUI, false)
  86. #if JUCE_OPENGL
  87. REGISTER_DEMO (OpenGLAppDemo, GUI, true)
  88. REGISTER_DEMO (OpenGLDemo2D, GUI, true)
  89. REGISTER_DEMO_WITH_FILENAME (OpenGLDemoClasses::OpenGLDemo, GUI, OpenGLDemo, true)
  90. #endif
  91. REGISTER_DEMO (PropertiesDemo, GUI, false)
  92. #if JUCE_MAC || JUCE_WINDOWS
  93. REGISTER_DEMO (VideoDemo, GUI, true)
  94. #endif
  95. REGISTER_DEMO (WebBrowserDemo, GUI, true)
  96. REGISTER_DEMO (WidgetsDemo, GUI, false)
  97. REGISTER_DEMO (WindowsDemo, GUI, false)
  98. }
  99. CodeEditorComponent::ColourScheme getDarkColourScheme()
  100. {
  101. return getDarkCodeEditorColourScheme();
  102. }
  103. CodeEditorComponent::ColourScheme getLightColourScheme()
  104. {
  105. return getLightCodeEditorColourScheme();
  106. }