forked from ffAudio/foleys_gui_magic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foleys_gui_magic.h
144 lines (117 loc) · 5.55 KB
/
foleys_gui_magic.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
==============================================================================
Copyright (c) 2019 Foleys Finest Audio Ltd. - Daniel Walz
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
==============================================================================
BEGIN_JUCE_MODULE_DECLARATION
ID: foleys_gui_magic
vendor: Foleys Finest Audio Ltd.
version: 1.1.0
name: Foleys GUI magic
description: This module allows to create GUI with a drag and drop editor
dependencies: juce_core, juce_audio_basics, juce_audio_devices, juce_audio_formats,
juce_audio_utils, juce_audio_processors, juce_gui_basics, juce_dsp
website: https://foleysfinest.com/
license: Dual license: non commercial under BSD V2 3-clause
END_JUCE_MODULE_DECLARATION
==============================================================================
*/
#pragma once
/** Config: FOLEYS_SHOW_GUI_EDITOR_PALLETTE
Enables the GUI editor palette allowing to edit the GUI. Ideally set this to 0 in a release build.
*/
#ifndef FOLEYS_SHOW_GUI_EDITOR_PALLETTE
#define FOLEYS_SHOW_GUI_EDITOR_PALLETTE 1
#endif
/** Config: FOLEYS_ENABLE_BINARY_DATA
Makes the binary resources available to the GUI. Make sure you actually have
at least one file added, or this will fail to compile.
*/
#ifndef FOLEYS_ENABLE_BINARY_DATA
#define FOLEYS_ENABLE_BINARY_DATA 0
#endif
/** Config: FOLEYS_ENABLE_OPEN_GL_CONTEXT
If selected an juce OpenGLCOntext is attached. Not a big difference on OSX, but vital on Windows.
*/
#ifndef FOLEYS_ENABLE_OPEN_GL_CONTEXT
#define FOLEYS_ENABLE_OPEN_GL_CONTEXT 1
#endif
#include <juce_core/juce_core.h>
#include <juce_audio_basics/juce_audio_basics.h>
#include <juce_audio_processors/juce_audio_processors.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_audio_devices/juce_audio_devices.h>
#include <juce_audio_formats/juce_audio_formats.h>
#include <juce_audio_utils/juce_audio_utils.h>
#include <juce_dsp/juce_dsp.h>
#if JUCE_MODULE_AVAILABLE_juce_opengl && FOLEYS_ENABLE_OPEN_GL_CONTEXT
#include <juce_opengl/juce_opengl.h>
#endif
#if JUCE_MODULE_AVAILABLE_juce_gui_extra
#include <juce_gui_extra/juce_gui_extra.h>
#endif
#include "General/foleys_StringDefinitions.h"
#include "General/foleys_SettableProperties.h"
#include "General/foleys_Resources.h"
#include "Helpers/foleys_MouseLambdas.h"
#include "Helpers/foleys_ParameterAttachment.h"
#include "Helpers/foleys_Conversions.h"
#include "Layout/foleys_Stylesheet.h"
#include "Layout/foleys_Decorator.h"
#include "Layout/foleys_Container.h"
#include "LookAndFeels/foleys_LookAndFeel.h"
#include "LookAndFeels/foleys_Skeuomorphic.h"
#include "Visualisers/foleys_MagicLevelSource.h"
#include "Visualisers/foleys_MagicPlotSource.h"
#include "Visualisers/foleys_MagicFilterPlot.h"
#include "Visualisers/foleys_MagicAnalyser.h"
#include "Visualisers/foleys_MagicOscilloscope.h"
#include "Widgets/foleys_AttachableComponent.h"
#include "Widgets/foleys_MagicLevelMeter.h"
#include "Widgets/foleys_MagicPlotComponent.h"
#include "Widgets/foleys_XYDragComponent.h"
#include "Widgets/foleys_FileBrowserDialog.h"
#if FOLEYS_SHOW_GUI_EDITOR_PALLETTE
namespace EditorColours
{
static juce::Colour background;
static juce::Colour outline;
static juce::Colour text;
static juce::Colour disabledText;
static juce::Colour removeButton;
static juce::Colour selectedBackground;
}
#include "Editor/foleys_MultiListPropertyComponent.h"
#include "Editor/foleys_StylePropertyComponent.h"
#include "Editor/foleys_StyleTextPropertyComponent.h"
#include "Editor/foleys_StyleBoolPropertyComponent.h"
#include "Editor/foleys_StyleColourPropertyComponent.h"
#include "Editor/foleys_StyleChoicePropertyComponent.h"
#include "Editor/foleys_GUITreeEditor.h"
#include "Editor/foleys_PropertiesEditor.h"
#include "Editor/foleys_Palette.h"
#include "Editor/foleys_ToolBox.h"
#endif // FOLEYS_SHOW_GUI_EDITOR_PALLETTE
#include "General/foleys_MagicProcessorState.h"
#include "General/foleys_MagicGUIBuilder.h"
#include "General/foleys_MagicPluginEditor.h"