1 /*
2   ==============================================================================
3 
4    This file is part of the JUCE library.
5    Copyright (c) 2020 - Raw Material Software Limited
6 
7    JUCE is an open source library subject to commercial or open-source
8    licensing.
9 
10    By using JUCE, you agree to the terms of both the JUCE 6 End-User License
11    Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
12 
13    End User License Agreement: www.juce.com/juce-6-licence
14    Privacy Policy: www.juce.com/juce-privacy-policy
15 
16    Or: You may also use this code under the terms of the GPL v3 (see
17    www.gnu.org/licenses).
18 
19    JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20    EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21    DISCLAIMED.
22 
23   ==============================================================================
24 */
25 
26 #include <JuceHeader.h>
27 #include "../../../Assets/DemoUtilities.h"
28 #include "JUCEDemos.h"
29 
30 #include "../../../Assets/AudioLiveScrollingDisplay.h"
31 
32 //==============================================================================
33 #include "../../../GUI/AnimationAppDemo.h"
34 #include "../../../GUI/AnimationDemo.h"
35 #include "../../../GUI/BouncingBallWavetableDemo.h"
36 #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
37  #include "../../../GUI/CameraDemo.h"
38 #endif
39 #if ! JUCE_ANDROID
40  #include "../../../GUI/CodeEditorDemo.h"
41 #endif
42 #include "../../../GUI/ComponentDemo.h"
43 #include "../../../GUI/ComponentTransformsDemo.h"
44 #include "../../../GUI/DialogsDemo.h"
45 #include "../../../GUI/FlexBoxDemo.h"
46 #include "../../../GUI/FontsDemo.h"
47 #include "../../../GUI/GraphicsDemo.h"
48 #include "../../../GUI/GridDemo.h"
49 #include "../../../GUI/ImagesDemo.h"
50 #include "../../../GUI/KeyMappingsDemo.h"
51 #include "../../../GUI/LookAndFeelDemo.h"
52 #include "../../../GUI/MDIDemo.h"
53 #include "../../../GUI/MenusDemo.h"
54 #include "../../../GUI/MultiTouchDemo.h"
55 #if JUCE_OPENGL
56  #include "../../../GUI/OpenGLAppDemo.h"
57  #include "../../../GUI/OpenGLDemo.h"
58  #include "../../../GUI/OpenGLDemo2D.h"
59 #endif
60 #include "../../../GUI/PropertiesDemo.h"
61 #if ! (JUCE_LINUX || JUCE_BSD)
62  #include "../../../GUI/VideoDemo.h"
63 #endif
64 #include "../../../GUI/WebBrowserDemo.h"
65 #include "../../../GUI/WidgetsDemo.h"
66 #include "../../../GUI/WindowsDemo.h"
67 
registerDemos_Two()68 void registerDemos_Two() noexcept
69 {
70     REGISTER_DEMO (AnimationAppDemo,          GUI, false)
71     REGISTER_DEMO (AnimationDemo,             GUI, false)
72     REGISTER_DEMO (BouncingBallWavetableDemo, GUI, false)
73    #if JUCE_USE_CAMERA && ! (JUCE_LINUX || JUCE_BSD)
74     REGISTER_DEMO (CameraDemo,                GUI, true)
75    #endif
76    #if ! JUCE_ANDROID
77     REGISTER_DEMO (CodeEditorDemo,            GUI, false)
78    #endif
79     REGISTER_DEMO (ComponentDemo,             GUI, false)
80     REGISTER_DEMO (ComponentTransformsDemo,   GUI, false)
81     REGISTER_DEMO (DialogsDemo,               GUI, false)
82     REGISTER_DEMO (FlexBoxDemo,               GUI, false)
83     REGISTER_DEMO (FontsDemo,                 GUI, false)
84     REGISTER_DEMO (GraphicsDemo,              GUI, false)
85     REGISTER_DEMO (GridDemo,                  GUI, false)
86     REGISTER_DEMO (ImagesDemo,                GUI, false)
87     REGISTER_DEMO (KeyMappingsDemo,           GUI, false)
88     REGISTER_DEMO (LookAndFeelDemo,           GUI, false)
89     REGISTER_DEMO (MDIDemo,                   GUI, false)
90     REGISTER_DEMO (MenusDemo,                 GUI, false)
91     REGISTER_DEMO (MultiTouchDemo,            GUI, false)
92    #if JUCE_OPENGL
93     REGISTER_DEMO (OpenGLAppDemo,             GUI, true)
94     REGISTER_DEMO (OpenGLDemo2D,              GUI, true)
95     REGISTER_DEMO (OpenGLDemo,                GUI, true)
96    #endif
97     REGISTER_DEMO (PropertiesDemo,            GUI, false)
98    #if ! (JUCE_LINUX || JUCE_BSD)
99     REGISTER_DEMO (VideoDemo,                 GUI, true)
100    #endif
101     REGISTER_DEMO (WebBrowserDemo,            GUI, true)
102     REGISTER_DEMO (WidgetsDemo,               GUI, false)
103     REGISTER_DEMO (WindowsDemo,               GUI, false)
104 }
105 
getDarkColourScheme()106 CodeEditorComponent::ColourScheme getDarkColourScheme()
107 {
108     return getDarkCodeEditorColourScheme();
109 }
110 
getLightColourScheme()111 CodeEditorComponent::ColourScheme getLightColourScheme()
112 {
113     return getLightCodeEditorColourScheme();
114 }
115