From 0bd8c8175d8f6b9e026b25805da3f5b9d94a5538 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 2 Jul 2020 21:01:10 +0100 Subject: [PATCH] Update juce sources to stable juce6 release (DISTRHO version) Signed-off-by: falkTX --- .../juce_audio_basics/juce_audio_basics.h | 2 +- .../juce_audio_basics/midi/juce_MidiBuffer.h | 6 +- .../midi/juce_MidiKeyboardState.cpp | 16 +- .../midi/juce_MidiKeyboardState.h | 90 ++- .../utilities/juce_GenericInterpolator.h | 15 +- .../utilities/juce_Interpolators.cpp | 21 +- .../utilities/juce_Interpolators.h | 23 +- .../utilities/juce_SmoothedValue.h | 4 +- .../juce_WindowedSincInterpolator.cpp | 15 +- .../audio_io/juce_AudioDeviceManager.cpp | 2 +- .../juce_audio_devices/juce_audio_devices.h | 2 +- .../midi_io/juce_MidiDevices.h | 5 + .../midi_io/juce_MidiMessageCollector.cpp | 5 + .../midi_io/juce_MidiMessageCollector.h | 12 +- .../native/juce_android_Oboe.cpp | 121 ++-- .../native/juce_android_OpenSL.cpp | 2 +- .../native/juce_win32_Midi.cpp | 12 +- .../native/juce_win32_WASAPI.cpp | 2 +- .../format/juce_AudioPluginFormat.cpp | 15 +- .../format/juce_AudioPluginFormat.h | 17 +- .../format/juce_AudioPluginFormatManager.cpp | 15 +- .../format/juce_AudioPluginFormatManager.h | 15 +- .../format_types/juce_AU_Shared.h | 15 +- .../format_types/juce_AudioUnitPluginFormat.h | 15 +- .../juce_AudioUnitPluginFormat.mm | 17 +- .../format_types/juce_LADSPAPluginFormat.cpp | 15 +- .../format_types/juce_LADSPAPluginFormat.h | 15 +- .../juce_LegacyAudioParameter.cpp | 15 +- .../format_types/juce_VST3Common.h | 15 +- .../format_types/juce_VST3Headers.h | 15 +- .../format_types/juce_VST3PluginFormat.cpp | 17 +- .../format_types/juce_VST3PluginFormat.h | 15 +- .../format_types/juce_VSTCommon.h | 15 +- .../format_types/juce_VSTMidiEventList.h | 15 +- .../format_types/juce_VSTPluginFormat.cpp | 15 +- .../format_types/juce_VSTPluginFormat.h | 15 +- .../juce_audio_processors.cpp | 15 +- .../juce_audio_processors.h | 17 +- .../processors/juce_AudioPluginInstance.cpp | 15 +- .../processors/juce_AudioPluginInstance.h | 15 +- .../processors/juce_AudioProcessor.cpp | 17 +- .../processors/juce_AudioProcessor.h | 17 +- .../processors/juce_AudioProcessorEditor.cpp | 15 +- .../processors/juce_AudioProcessorEditor.h | 15 +- .../processors/juce_AudioProcessorGraph.cpp | 28 +- .../processors/juce_AudioProcessorGraph.h | 19 +- .../processors/juce_AudioProcessorListener.h | 15 +- .../processors/juce_AudioProcessorParameter.h | 15 +- .../juce_AudioProcessorParameterGroup.cpp | 15 +- .../juce_AudioProcessorParameterGroup.h | 15 +- .../juce_GenericAudioProcessorEditor.cpp | 15 +- .../juce_GenericAudioProcessorEditor.h | 15 +- .../processors/juce_PluginDescription.cpp | 15 +- .../processors/juce_PluginDescription.h | 15 +- .../scanning/juce_KnownPluginList.cpp | 15 +- .../scanning/juce_KnownPluginList.h | 15 +- .../scanning/juce_PluginDirectoryScanner.cpp | 15 +- .../scanning/juce_PluginDirectoryScanner.h | 15 +- .../scanning/juce_PluginListComponent.cpp | 15 +- .../scanning/juce_PluginListComponent.h | 15 +- .../utilities/juce_AudioParameterBool.cpp | 19 +- .../utilities/juce_AudioParameterBool.h | 23 +- .../utilities/juce_AudioParameterChoice.cpp | 25 +- .../utilities/juce_AudioParameterChoice.h | 23 +- .../utilities/juce_AudioParameterFloat.cpp | 19 +- .../utilities/juce_AudioParameterFloat.h | 23 +- .../utilities/juce_AudioParameterInt.cpp | 25 +- .../utilities/juce_AudioParameterInt.h | 23 +- .../juce_AudioProcessorParameterWithID.cpp | 15 +- .../juce_AudioProcessorParameterWithID.h | 15 +- .../juce_AudioProcessorValueTreeState.cpp | 64 +- .../juce_AudioProcessorValueTreeState.h | 25 +- .../utilities/juce_ParameterAttachments.cpp | 15 +- .../utilities/juce_ParameterAttachments.h | 27 +- .../utilities/juce_RangedAudioParameter.cpp | 15 +- .../utilities/juce_RangedAudioParameter.h | 15 +- .../juce_core/containers/juce_Variant.h | 2 +- .../files/juce_RangedDirectoryIterator.h | 8 +- source/modules/juce_core/juce_core.h | 2 +- .../juce_core/memory/juce_AllocationHooks.cpp | 12 +- .../juce_core/memory/juce_AllocationHooks.h | 12 +- .../juce_core/misc/juce_ConsoleApplication.h | 2 +- .../juce_core/misc/juce_RuntimePermissions.h | 2 +- .../native/juce_android_JNIHelpers.cpp | 6 +- .../native/juce_android_JNIHelpers.h | 2 +- .../modules/juce_core/network/juce_Socket.cpp | 2 +- .../juce_core/text/juce_CharacterFunctions.h | 2 +- source/modules/juce_core/text/juce_String.cpp | 7 +- .../juce_core/unit_tests/juce_UnitTest.cpp | 12 +- .../juce_core/unit_tests/juce_UnitTest.h | 17 +- .../juce_ApplicationProperties.cpp | 15 +- .../juce_ApplicationProperties.h | 15 +- .../app_properties/juce_PropertiesFile.cpp | 15 +- .../app_properties/juce_PropertiesFile.h | 15 +- .../juce_data_structures.cpp | 15 +- .../juce_data_structures.h | 17 +- .../undomanager/juce_UndoManager.cpp | 15 +- .../undomanager/juce_UndoManager.h | 15 +- .../undomanager/juce_UndoableAction.h | 15 +- .../values/juce_CachedValue.cpp | 15 +- .../values/juce_CachedValue.h | 15 +- .../values/juce_Value.cpp | 15 +- .../juce_data_structures/values/juce_Value.h | 15 +- .../values/juce_ValueTree.cpp | 15 +- .../values/juce_ValueTree.h | 15 +- .../values/juce_ValueTreeSynchroniser.cpp | 15 +- .../values/juce_ValueTreeSynchroniser.h | 15 +- .../values/juce_ValueWithDefault.cpp | 15 +- .../values/juce_ValueWithDefault.h | 15 +- source/modules/juce_events/juce_events.cpp | 2 +- source/modules/juce_events/juce_events.h | 2 +- .../juce_events/native/juce_linux_EventLoop.h | 2 +- .../native/juce_linux_Messaging.cpp | 12 +- .../modules/juce_events/timers/juce_Timer.cpp | 2 +- .../juce_graphics/colour/juce_Colour.cpp | 15 +- .../juce_graphics/colour/juce_Colour.h | 15 +- .../colour/juce_ColourGradient.cpp | 15 +- .../colour/juce_ColourGradient.h | 15 +- .../juce_graphics/colour/juce_Colours.cpp | 15 +- .../juce_graphics/colour/juce_Colours.h | 15 +- .../juce_graphics/colour/juce_FillType.cpp | 15 +- .../juce_graphics/colour/juce_FillType.h | 15 +- .../juce_graphics/colour/juce_PixelFormats.h | 15 +- .../contexts/juce_GraphicsContext.cpp | 15 +- .../contexts/juce_GraphicsContext.h | 15 +- .../contexts/juce_LowLevelGraphicsContext.h | 15 +- ...uce_LowLevelGraphicsPostScriptRenderer.cpp | 15 +- .../juce_LowLevelGraphicsPostScriptRenderer.h | 15 +- .../juce_LowLevelGraphicsSoftwareRenderer.cpp | 15 +- .../juce_LowLevelGraphicsSoftwareRenderer.h | 15 +- .../effects/juce_DropShadowEffect.cpp | 15 +- .../effects/juce_DropShadowEffect.h | 15 +- .../juce_graphics/effects/juce_GlowEffect.cpp | 15 +- .../juce_graphics/effects/juce_GlowEffect.h | 15 +- .../effects/juce_ImageEffectFilter.h | 15 +- .../fonts/juce_AttributedString.cpp | 15 +- .../fonts/juce_AttributedString.h | 15 +- .../fonts/juce_CustomTypeface.cpp | 15 +- .../juce_graphics/fonts/juce_CustomTypeface.h | 15 +- .../modules/juce_graphics/fonts/juce_Font.cpp | 41 +- .../modules/juce_graphics/fonts/juce_Font.h | 15 +- .../fonts/juce_GlyphArrangement.cpp | 15 +- .../fonts/juce_GlyphArrangement.h | 15 +- .../juce_graphics/fonts/juce_TextLayout.cpp | 15 +- .../juce_graphics/fonts/juce_TextLayout.h | 15 +- .../juce_graphics/fonts/juce_Typeface.cpp | 15 +- .../juce_graphics/fonts/juce_Typeface.h | 15 +- .../geometry/juce_AffineTransform.cpp | 19 +- .../geometry/juce_AffineTransform.h | 15 +- .../juce_graphics/geometry/juce_BorderSize.h | 15 +- .../juce_graphics/geometry/juce_EdgeTable.cpp | 15 +- .../juce_graphics/geometry/juce_EdgeTable.h | 15 +- .../juce_graphics/geometry/juce_Line.h | 15 +- .../geometry/juce_Parallelogram.h | 15 +- .../juce_graphics/geometry/juce_Path.cpp | 15 +- .../juce_graphics/geometry/juce_Path.h | 15 +- .../geometry/juce_PathIterator.cpp | 19 +- .../geometry/juce_PathIterator.h | 15 +- .../geometry/juce_PathStrokeType.cpp | 15 +- .../geometry/juce_PathStrokeType.h | 15 +- .../juce_graphics/geometry/juce_Point.h | 15 +- .../juce_graphics/geometry/juce_Rectangle.h | 15 +- .../geometry/juce_RectangleList.h | 15 +- .../image_formats/juce_GIFLoader.cpp | 15 +- .../image_formats/juce_JPEGLoader.cpp | 15 +- .../image_formats/juce_PNGLoader.cpp | 15 +- .../juce_graphics/images/juce_Image.cpp | 15 +- .../modules/juce_graphics/images/juce_Image.h | 15 +- .../juce_graphics/images/juce_ImageCache.cpp | 15 +- .../juce_graphics/images/juce_ImageCache.h | 15 +- .../images/juce_ImageConvolutionKernel.cpp | 15 +- .../images/juce_ImageConvolutionKernel.h | 15 +- .../images/juce_ImageFileFormat.cpp | 15 +- .../images/juce_ImageFileFormat.h | 15 +- .../modules/juce_graphics/juce_graphics.cpp | 15 +- source/modules/juce_graphics/juce_graphics.h | 17 +- .../native/juce_RenderingHelpers.h | 15 +- .../native/juce_android_Fonts.cpp | 17 +- .../native/juce_android_GraphicsContext.cpp | 15 +- .../native/juce_android_IconHelpers.cpp | 15 +- .../native/juce_freetype_Fonts.cpp | 15 +- .../juce_graphics/native/juce_linux_Fonts.cpp | 15 +- .../native/juce_linux_IconHelpers.cpp | 15 +- .../native/juce_mac_CoreGraphicsContext.h | 60 +- .../native/juce_mac_CoreGraphicsContext.mm | 305 +++++----- .../native/juce_mac_CoreGraphicsHelpers.h | 15 +- .../juce_graphics/native/juce_mac_Fonts.mm | 17 +- .../native/juce_mac_IconHelpers.cpp | 15 +- .../juce_win32_Direct2DGraphicsContext.cpp | 15 +- .../juce_win32_Direct2DGraphicsContext.h | 15 +- .../juce_win32_DirectWriteTypeLayout.cpp | 15 +- .../native/juce_win32_DirectWriteTypeface.cpp | 15 +- .../juce_graphics/native/juce_win32_Fonts.cpp | 15 +- .../native/juce_win32_IconHelpers.cpp | 15 +- .../placement/juce_Justification.h | 15 +- .../placement/juce_RectanglePlacement.cpp | 15 +- .../placement/juce_RectanglePlacement.h | 15 +- .../application/juce_Application.cpp | 15 +- .../application/juce_Application.h | 15 +- .../buttons/juce_ArrowButton.cpp | 15 +- .../buttons/juce_ArrowButton.h | 15 +- .../juce_gui_basics/buttons/juce_Button.cpp | 15 +- .../juce_gui_basics/buttons/juce_Button.h | 15 +- .../buttons/juce_DrawableButton.cpp | 15 +- .../buttons/juce_DrawableButton.h | 15 +- .../buttons/juce_HyperlinkButton.cpp | 15 +- .../buttons/juce_HyperlinkButton.h | 15 +- .../buttons/juce_ImageButton.cpp | 15 +- .../buttons/juce_ImageButton.h | 15 +- .../buttons/juce_ShapeButton.cpp | 15 +- .../buttons/juce_ShapeButton.h | 15 +- .../buttons/juce_TextButton.cpp | 15 +- .../juce_gui_basics/buttons/juce_TextButton.h | 15 +- .../buttons/juce_ToggleButton.cpp | 15 +- .../buttons/juce_ToggleButton.h | 15 +- .../buttons/juce_ToolbarButton.cpp | 15 +- .../buttons/juce_ToolbarButton.h | 15 +- .../commands/juce_ApplicationCommandID.h | 15 +- .../commands/juce_ApplicationCommandInfo.cpp | 15 +- .../commands/juce_ApplicationCommandInfo.h | 15 +- .../juce_ApplicationCommandManager.cpp | 15 +- .../commands/juce_ApplicationCommandManager.h | 15 +- .../juce_ApplicationCommandTarget.cpp | 15 +- .../commands/juce_ApplicationCommandTarget.h | 15 +- .../commands/juce_KeyPressMappingSet.cpp | 15 +- .../commands/juce_KeyPressMappingSet.h | 15 +- .../components/juce_CachedComponentImage.h | 15 +- .../components/juce_Component.cpp | 15 +- .../components/juce_Component.h | 15 +- .../components/juce_ComponentListener.cpp | 15 +- .../components/juce_ComponentListener.h | 15 +- .../components/juce_ModalComponentManager.cpp | 21 +- .../components/juce_ModalComponentManager.h | 17 +- .../juce_gui_basics/desktop/juce_Desktop.cpp | 15 +- .../juce_gui_basics/desktop/juce_Desktop.h | 15 +- .../juce_gui_basics/desktop/juce_Displays.cpp | 15 +- .../juce_gui_basics/desktop/juce_Displays.h | 15 +- .../drawables/juce_Drawable.cpp | 15 +- .../juce_gui_basics/drawables/juce_Drawable.h | 15 +- .../drawables/juce_DrawableComposite.cpp | 15 +- .../drawables/juce_DrawableComposite.h | 15 +- .../drawables/juce_DrawableImage.cpp | 15 +- .../drawables/juce_DrawableImage.h | 15 +- .../drawables/juce_DrawablePath.cpp | 15 +- .../drawables/juce_DrawablePath.h | 15 +- .../drawables/juce_DrawableRectangle.cpp | 15 +- .../drawables/juce_DrawableRectangle.h | 15 +- .../drawables/juce_DrawableShape.cpp | 15 +- .../drawables/juce_DrawableShape.h | 15 +- .../drawables/juce_DrawableText.cpp | 15 +- .../drawables/juce_DrawableText.h | 15 +- .../drawables/juce_SVGParser.cpp | 15 +- .../filebrowser/juce_ContentSharer.cpp | 31 +- .../filebrowser/juce_ContentSharer.h | 27 +- ...juce_DirectoryContentsDisplayComponent.cpp | 15 +- .../juce_DirectoryContentsDisplayComponent.h | 15 +- .../juce_DirectoryContentsList.cpp | 15 +- .../filebrowser/juce_DirectoryContentsList.h | 15 +- .../filebrowser/juce_FileBrowserComponent.cpp | 29 +- .../filebrowser/juce_FileBrowserComponent.h | 15 +- .../filebrowser/juce_FileBrowserListener.h | 15 +- .../filebrowser/juce_FileChooser.cpp | 19 +- .../filebrowser/juce_FileChooser.h | 19 +- .../filebrowser/juce_FileChooserDialogBox.cpp | 15 +- .../filebrowser/juce_FileChooserDialogBox.h | 15 +- .../filebrowser/juce_FileListComponent.cpp | 15 +- .../filebrowser/juce_FileListComponent.h | 15 +- .../filebrowser/juce_FilePreviewComponent.h | 15 +- .../juce_FileSearchPathListComponent.cpp | 15 +- .../juce_FileSearchPathListComponent.h | 15 +- .../filebrowser/juce_FileTreeComponent.cpp | 15 +- .../filebrowser/juce_FileTreeComponent.h | 15 +- .../filebrowser/juce_FilenameComponent.cpp | 15 +- .../filebrowser/juce_FilenameComponent.h | 15 +- .../juce_ImagePreviewComponent.cpp | 15 +- .../filebrowser/juce_ImagePreviewComponent.h | 15 +- .../juce_gui_basics/juce_gui_basics.cpp | 15 +- .../modules/juce_gui_basics/juce_gui_basics.h | 17 +- .../keyboard/juce_CaretComponent.cpp | 15 +- .../keyboard/juce_CaretComponent.h | 15 +- .../keyboard/juce_KeyListener.cpp | 15 +- .../keyboard/juce_KeyListener.h | 15 +- .../keyboard/juce_KeyPress.cpp | 15 +- .../juce_gui_basics/keyboard/juce_KeyPress.h | 15 +- .../keyboard/juce_KeyboardFocusTraverser.cpp | 15 +- .../keyboard/juce_KeyboardFocusTraverser.h | 15 +- .../keyboard/juce_ModifierKeys.cpp | 15 +- .../keyboard/juce_ModifierKeys.h | 15 +- .../keyboard/juce_SystemClipboard.h | 15 +- .../keyboard/juce_TextEditorKeyMapper.h | 15 +- .../keyboard/juce_TextInputTarget.h | 15 +- .../layout/juce_AnimatedPosition.h | 15 +- .../layout/juce_AnimatedPositionBehaviours.h | 15 +- .../layout/juce_ComponentAnimator.cpp | 15 +- .../layout/juce_ComponentAnimator.h | 15 +- .../juce_ComponentBoundsConstrainer.cpp | 15 +- .../layout/juce_ComponentBoundsConstrainer.h | 15 +- .../layout/juce_ComponentBuilder.cpp | 15 +- .../layout/juce_ComponentBuilder.h | 15 +- .../layout/juce_ComponentMovementWatcher.cpp | 15 +- .../layout/juce_ComponentMovementWatcher.h | 15 +- .../layout/juce_ConcertinaPanel.cpp | 15 +- .../layout/juce_ConcertinaPanel.h | 15 +- .../juce_gui_basics/layout/juce_FlexBox.cpp | 15 +- .../juce_gui_basics/layout/juce_FlexBox.h | 15 +- .../juce_gui_basics/layout/juce_FlexItem.h | 15 +- .../juce_gui_basics/layout/juce_Grid.cpp | 21 +- .../juce_gui_basics/layout/juce_Grid.h | 15 +- .../juce_gui_basics/layout/juce_GridItem.cpp | 15 +- .../juce_gui_basics/layout/juce_GridItem.h | 15 +- .../layout/juce_GroupComponent.cpp | 15 +- .../layout/juce_GroupComponent.h | 15 +- .../layout/juce_MultiDocumentPanel.cpp | 15 +- .../layout/juce_MultiDocumentPanel.h | 15 +- .../layout/juce_ResizableBorderComponent.cpp | 15 +- .../layout/juce_ResizableBorderComponent.h | 15 +- .../layout/juce_ResizableCornerComponent.cpp | 15 +- .../layout/juce_ResizableCornerComponent.h | 15 +- .../layout/juce_ResizableEdgeComponent.cpp | 15 +- .../layout/juce_ResizableEdgeComponent.h | 15 +- .../juce_gui_basics/layout/juce_ScrollBar.cpp | 15 +- .../juce_gui_basics/layout/juce_ScrollBar.h | 15 +- .../juce_gui_basics/layout/juce_SidePanel.cpp | 15 +- .../juce_gui_basics/layout/juce_SidePanel.h | 17 +- .../layout/juce_StretchableLayoutManager.cpp | 15 +- .../layout/juce_StretchableLayoutManager.h | 15 +- .../juce_StretchableLayoutResizerBar.cpp | 15 +- .../layout/juce_StretchableLayoutResizerBar.h | 15 +- .../layout/juce_StretchableObjectResizer.cpp | 15 +- .../layout/juce_StretchableObjectResizer.h | 15 +- .../layout/juce_TabbedButtonBar.cpp | 15 +- .../layout/juce_TabbedButtonBar.h | 15 +- .../layout/juce_TabbedComponent.cpp | 15 +- .../layout/juce_TabbedComponent.h | 15 +- .../juce_gui_basics/layout/juce_Viewport.cpp | 15 +- .../juce_gui_basics/layout/juce_Viewport.h | 15 +- .../lookandfeel/juce_LookAndFeel.cpp | 15 +- .../lookandfeel/juce_LookAndFeel.h | 15 +- .../lookandfeel/juce_LookAndFeel_V1.cpp | 15 +- .../lookandfeel/juce_LookAndFeel_V1.h | 15 +- .../lookandfeel/juce_LookAndFeel_V2.cpp | 15 +- .../lookandfeel/juce_LookAndFeel_V2.h | 15 +- .../lookandfeel/juce_LookAndFeel_V3.cpp | 15 +- .../lookandfeel/juce_LookAndFeel_V3.h | 15 +- .../lookandfeel/juce_LookAndFeel_V4.cpp | 15 +- .../lookandfeel/juce_LookAndFeel_V4.h | 15 +- .../menus/juce_BurgerMenuComponent.cpp | 24 +- .../menus/juce_BurgerMenuComponent.h | 18 +- .../menus/juce_MenuBarComponent.cpp | 15 +- .../menus/juce_MenuBarComponent.h | 15 +- .../menus/juce_MenuBarModel.cpp | 15 +- .../juce_gui_basics/menus/juce_MenuBarModel.h | 15 +- .../juce_gui_basics/menus/juce_PopupMenu.cpp | 17 +- .../juce_gui_basics/menus/juce_PopupMenu.h | 17 +- .../misc/juce_BubbleComponent.cpp | 15 +- .../misc/juce_BubbleComponent.h | 15 +- .../misc/juce_DropShadower.cpp | 15 +- .../juce_gui_basics/misc/juce_DropShadower.h | 15 +- .../misc/juce_JUCESplashScreen.cpp | 19 +- .../misc/juce_JUCESplashScreen.h | 15 +- .../mouse/juce_ComponentDragger.cpp | 15 +- .../mouse/juce_ComponentDragger.h | 15 +- .../mouse/juce_DragAndDropContainer.cpp | 15 +- .../mouse/juce_DragAndDropContainer.h | 15 +- .../mouse/juce_DragAndDropTarget.h | 15 +- .../mouse/juce_FileDragAndDropTarget.h | 15 +- .../mouse/juce_LassoComponent.h | 15 +- .../mouse/juce_MouseCursor.cpp | 15 +- .../juce_gui_basics/mouse/juce_MouseCursor.h | 15 +- .../juce_gui_basics/mouse/juce_MouseEvent.cpp | 15 +- .../juce_gui_basics/mouse/juce_MouseEvent.h | 15 +- .../mouse/juce_MouseInactivityDetector.cpp | 15 +- .../mouse/juce_MouseInactivityDetector.h | 15 +- .../mouse/juce_MouseInputSource.cpp | 15 +- .../mouse/juce_MouseInputSource.h | 15 +- .../mouse/juce_MouseListener.cpp | 15 +- .../mouse/juce_MouseListener.h | 15 +- .../mouse/juce_SelectedItemSet.h | 15 +- .../mouse/juce_TextDragAndDropTarget.h | 15 +- .../mouse/juce_TooltipClient.h | 15 +- .../native/juce_MultiTouchMapper.h | 15 +- .../native/juce_android_ContentSharer.cpp | 15 +- .../native/juce_android_FileChooser.cpp | 15 +- .../native/juce_android_Windowing.cpp | 19 +- .../native/juce_common_MimeTypes.cpp | 15 +- .../native/juce_ios_ContentSharer.cpp | 15 +- .../native/juce_ios_FileChooser.mm | 15 +- .../native/juce_ios_UIViewComponentPeer.mm | 17 +- .../native/juce_ios_Windowing.mm | 15 +- .../native/juce_linux_FileChooser.cpp | 15 +- .../native/juce_linux_Windowing.cpp | 15 +- .../native/juce_mac_FileChooser.mm | 15 +- .../native/juce_mac_MainMenu.mm | 15 +- .../native/juce_mac_MouseCursor.mm | 15 +- .../native/juce_mac_NSViewComponentPeer.mm | 19 +- .../native/juce_mac_Windowing.mm | 15 +- .../native/juce_win32_DragAndDrop.cpp | 15 +- .../native/juce_win32_FileChooser.cpp | 15 +- .../native/juce_win32_Windowing.cpp | 15 +- .../native/x11/juce_linux_X11_DragAndDrop.cpp | 15 +- .../native/x11/juce_linux_X11_Symbols.cpp | 15 +- .../native/x11/juce_linux_X11_Symbols.h | 22 +- .../native/x11/juce_linux_XWindowSystem.cpp | 124 ++-- .../native/x11/juce_linux_XWindowSystem.h | 24 +- .../positioning/juce_MarkerList.cpp | 15 +- .../positioning/juce_MarkerList.h | 15 +- .../positioning/juce_RelativeCoordinate.cpp | 15 +- .../positioning/juce_RelativeCoordinate.h | 15 +- .../juce_RelativeCoordinatePositioner.cpp | 15 +- .../juce_RelativeCoordinatePositioner.h | 15 +- .../juce_RelativeParallelogram.cpp | 15 +- .../positioning/juce_RelativeParallelogram.h | 15 +- .../positioning/juce_RelativePoint.cpp | 15 +- .../positioning/juce_RelativePoint.h | 15 +- .../positioning/juce_RelativePointPath.cpp | 15 +- .../positioning/juce_RelativePointPath.h | 15 +- .../positioning/juce_RelativeRectangle.cpp | 15 +- .../positioning/juce_RelativeRectangle.h | 15 +- .../juce_BooleanPropertyComponent.cpp | 15 +- .../juce_BooleanPropertyComponent.h | 15 +- .../juce_ButtonPropertyComponent.cpp | 15 +- .../properties/juce_ButtonPropertyComponent.h | 15 +- .../juce_ChoicePropertyComponent.cpp | 15 +- .../properties/juce_ChoicePropertyComponent.h | 15 +- .../juce_MultiChoicePropertyComponent.cpp | 73 ++- .../juce_MultiChoicePropertyComponent.h | 30 +- .../properties/juce_PropertyComponent.cpp | 15 +- .../properties/juce_PropertyComponent.h | 15 +- .../properties/juce_PropertyPanel.cpp | 25 +- .../properties/juce_PropertyPanel.h | 15 +- .../juce_SliderPropertyComponent.cpp | 15 +- .../properties/juce_SliderPropertyComponent.h | 15 +- .../properties/juce_TextPropertyComponent.cpp | 15 +- .../properties/juce_TextPropertyComponent.h | 15 +- .../juce_gui_basics/widgets/juce_ComboBox.cpp | 15 +- .../juce_gui_basics/widgets/juce_ComboBox.h | 15 +- .../widgets/juce_ImageComponent.cpp | 15 +- .../widgets/juce_ImageComponent.h | 15 +- .../juce_gui_basics/widgets/juce_Label.cpp | 15 +- .../juce_gui_basics/widgets/juce_Label.h | 15 +- .../juce_gui_basics/widgets/juce_ListBox.cpp | 15 +- .../juce_gui_basics/widgets/juce_ListBox.h | 15 +- .../widgets/juce_ProgressBar.cpp | 15 +- .../widgets/juce_ProgressBar.h | 15 +- .../juce_gui_basics/widgets/juce_Slider.cpp | 15 +- .../juce_gui_basics/widgets/juce_Slider.h | 19 +- .../widgets/juce_TableHeaderComponent.cpp | 15 +- .../widgets/juce_TableHeaderComponent.h | 15 +- .../widgets/juce_TableListBox.cpp | 15 +- .../widgets/juce_TableListBox.h | 15 +- .../widgets/juce_TextEditor.cpp | 15 +- .../juce_gui_basics/widgets/juce_TextEditor.h | 15 +- .../juce_gui_basics/widgets/juce_Toolbar.cpp | 22 +- .../juce_gui_basics/widgets/juce_Toolbar.h | 17 +- .../widgets/juce_ToolbarItemComponent.cpp | 15 +- .../widgets/juce_ToolbarItemComponent.h | 15 +- .../widgets/juce_ToolbarItemFactory.h | 15 +- .../widgets/juce_ToolbarItemPalette.cpp | 15 +- .../widgets/juce_ToolbarItemPalette.h | 15 +- .../juce_gui_basics/widgets/juce_TreeView.cpp | 15 +- .../juce_gui_basics/widgets/juce_TreeView.h | 15 +- .../windows/juce_AlertWindow.cpp | 15 +- .../windows/juce_AlertWindow.h | 15 +- .../windows/juce_CallOutBox.cpp | 21 +- .../juce_gui_basics/windows/juce_CallOutBox.h | 17 +- .../windows/juce_ComponentPeer.cpp | 15 +- .../windows/juce_ComponentPeer.h | 15 +- .../windows/juce_DialogWindow.cpp | 15 +- .../windows/juce_DialogWindow.h | 15 +- .../windows/juce_DocumentWindow.cpp | 15 +- .../windows/juce_DocumentWindow.h | 15 +- .../windows/juce_NativeMessageBox.h | 15 +- .../windows/juce_ResizableWindow.cpp | 15 +- .../windows/juce_ResizableWindow.h | 15 +- .../windows/juce_ThreadWithProgressWindow.cpp | 15 +- .../windows/juce_ThreadWithProgressWindow.h | 15 +- .../windows/juce_TooltipWindow.cpp | 15 +- .../windows/juce_TooltipWindow.h | 15 +- .../windows/juce_TopLevelWindow.cpp | 15 +- .../windows/juce_TopLevelWindow.h | 15 +- .../juce_CPlusPlusCodeTokeniser.cpp | 15 +- .../code_editor/juce_CPlusPlusCodeTokeniser.h | 15 +- .../juce_CPlusPlusCodeTokeniserFunctions.h | 15 +- .../code_editor/juce_CodeDocument.cpp | 15 +- .../code_editor/juce_CodeDocument.h | 15 +- .../code_editor/juce_CodeEditorComponent.cpp | 22 +- .../code_editor/juce_CodeEditorComponent.h | 17 +- .../code_editor/juce_CodeTokeniser.h | 15 +- .../code_editor/juce_LuaCodeTokeniser.cpp | 15 +- .../code_editor/juce_LuaCodeTokeniser.h | 15 +- .../code_editor/juce_XMLCodeTokeniser.cpp | 15 +- .../code_editor/juce_XMLCodeTokeniser.h | 15 +- .../documents/juce_FileBasedDocument.cpp | 15 +- .../documents/juce_FileBasedDocument.h | 15 +- .../embedding/juce_ActiveXControlComponent.h | 15 +- .../embedding/juce_AndroidViewComponent.h | 15 +- .../embedding/juce_HWNDComponent.h | 15 +- .../embedding/juce_NSViewComponent.h | 15 +- .../juce_ScopedDPIAwarenessDisabler.h | 15 +- .../embedding/juce_UIViewComponent.h | 15 +- .../embedding/juce_XEmbedComponent.h | 15 +- .../modules/juce_gui_extra/juce_gui_extra.cpp | 30 +- .../modules/juce_gui_extra/juce_gui_extra.h | 40 +- .../misc/juce_AnimatedAppComponent.cpp | 15 +- .../misc/juce_AnimatedAppComponent.h | 15 +- .../juce_gui_extra/misc/juce_AppleRemote.h | 15 +- .../misc/juce_BubbleMessageComponent.cpp | 15 +- .../misc/juce_BubbleMessageComponent.h | 15 +- .../misc/juce_ColourSelector.cpp | 15 +- .../juce_gui_extra/misc/juce_ColourSelector.h | 15 +- .../misc/juce_KeyMappingEditorComponent.cpp | 15 +- .../misc/juce_KeyMappingEditorComponent.h | 15 +- .../misc/juce_LiveConstantEditor.cpp | 15 +- .../misc/juce_LiveConstantEditor.h | 15 +- .../misc/juce_PreferencesPanel.cpp | 15 +- .../misc/juce_PreferencesPanel.h | 15 +- .../misc/juce_PushNotifications.cpp | 15 +- .../misc/juce_PushNotifications.h | 15 +- .../misc/juce_RecentlyOpenedFilesList.cpp | 15 +- .../misc/juce_RecentlyOpenedFilesList.h | 15 +- .../juce_gui_extra/misc/juce_SplashScreen.cpp | 15 +- .../juce_gui_extra/misc/juce_SplashScreen.h | 15 +- .../misc/juce_SystemTrayIconComponent.cpp | 15 +- .../misc/juce_SystemTrayIconComponent.h | 15 +- .../misc/juce_WebBrowserComponent.h | 77 ++- .../native/juce_AndroidViewComponent.cpp | 15 +- .../native/juce_android_PushNotifications.cpp | 15 +- .../juce_android_WebBrowserComponent.cpp | 22 +- .../native/juce_ios_PushNotifications.cpp | 15 +- .../native/juce_ios_UIViewComponent.mm | 15 +- .../native/juce_linux_X11_SystemTrayIcon.cpp | 29 +- .../juce_linux_X11_WebBrowserComponent.cpp | 28 +- .../native/juce_linux_XEmbedComponent.cpp | 15 +- .../native/juce_mac_AppleRemote.mm | 15 +- .../juce_mac_CarbonViewWrapperComponent.h | 15 +- .../native/juce_mac_NSViewComponent.mm | 15 +- .../native/juce_mac_PushNotifications.cpp | 15 +- .../native/juce_mac_SystemTrayIcon.cpp | 15 +- .../native/juce_mac_WebBrowserComponent.mm | 22 +- .../native/juce_win32_ActiveXComponent.cpp | 15 +- .../native/juce_win32_HWNDComponent.cpp | 15 +- .../native/juce_win32_SystemTrayIcon.cpp | 15 +- .../native/juce_win32_WebBrowserComponent.cpp | 561 ++++++++---------- 543 files changed, 6665 insertions(+), 2950 deletions(-) diff --git a/source/modules/juce_audio_basics/juce_audio_basics.h b/source/modules/juce_audio_basics/juce_audio_basics.h index ce3a1c1d5..0786f03a3 100644 --- a/source/modules/juce_audio_basics/juce_audio_basics.h +++ b/source/modules/juce_audio_basics/juce_audio_basics.h @@ -25,7 +25,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_audio_basics/midi/juce_MidiBuffer.h b/source/modules/juce_audio_basics/midi/juce_MidiBuffer.h index 2eef32e69..2c764af02 100644 --- a/source/modules/juce_audio_basics/midi/juce_MidiBuffer.h +++ b/source/modules/juce_audio_basics/midi/juce_MidiBuffer.h @@ -30,6 +30,8 @@ namespace juce Instances of this class do *not* own the midi data bytes that they point to. Instead, they expect the midi data to live in a separate buffer that outlives the MidiMessageMetadata instance. + + @tags{Audio} */ struct MidiMessageMetadata final { @@ -70,6 +72,8 @@ struct MidiMessageMetadata final Logger::writeToLog (metadata.getMessage().getDescription()); } @endcode + + @tags{Audio} */ class JUCE_API MidiBufferIterator { @@ -92,7 +96,7 @@ public: using value_type = MidiMessageMetadata; using reference = MidiMessageMetadata; using pointer = void; - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = std::input_iterator_tag; /** Make this iterator point to the next message in the buffer. */ MidiBufferIterator& operator++() noexcept; diff --git a/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.cpp b/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.cpp index 4d93e41ae..8d9ad2cd3 100644 --- a/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.cpp +++ b/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.cpp @@ -76,9 +76,7 @@ void MidiKeyboardState::noteOnInternal (const int midiChannel, const int midiNo if (isPositiveAndBelow (midiNoteNumber, 128)) { noteStates[midiNoteNumber] = static_cast (noteStates[midiNoteNumber] | (1 << (midiChannel - 1))); - - for (int i = listeners.size(); --i >= 0;) - listeners.getUnchecked(i)->handleNoteOn (this, midiChannel, midiNoteNumber, velocity); + listeners.call ([&] (Listener& l) { l.handleNoteOn (this, midiChannel, midiNoteNumber, velocity); }); } } @@ -101,9 +99,7 @@ void MidiKeyboardState::noteOffInternal (const int midiChannel, const int midiN if (isNoteOn (midiChannel, midiNoteNumber)) { noteStates[midiNoteNumber] = static_cast (noteStates[midiNoteNumber] & ~(1 << (midiChannel - 1))); - - for (int i = listeners.size(); --i >= 0;) - listeners.getUnchecked(i)->handleNoteOff (this, midiChannel, midiNoteNumber, velocity); + listeners.call ([&] (Listener& l) { l.handleNoteOff (this, midiChannel, midiNoteNumber, velocity); }); } } @@ -166,16 +162,16 @@ void MidiKeyboardState::processNextMidiBuffer (MidiBuffer& buffer, } //============================================================================== -void MidiKeyboardState::addListener (MidiKeyboardStateListener* const listener) +void MidiKeyboardState::addListener (Listener* listener) { const ScopedLock sl (lock); - listeners.addIfNotAlreadyThere (listener); + listeners.add (listener); } -void MidiKeyboardState::removeListener (MidiKeyboardStateListener* const listener) +void MidiKeyboardState::removeListener (Listener* listener) { const ScopedLock sl (lock); - listeners.removeFirstMatchingValue (listener); + listeners.remove (listener); } } // namespace juce diff --git a/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h b/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h index 601308f09..b8dc9f4fa 100644 --- a/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h +++ b/source/modules/juce_audio_basics/midi/juce_MidiKeyboardState.h @@ -23,51 +23,6 @@ namespace juce { -class MidiKeyboardState; - - -//============================================================================== -/** - Receives events from a MidiKeyboardState object. - - @see MidiKeyboardState - - @tags{Audio} -*/ -class JUCE_API MidiKeyboardStateListener -{ -public: - //============================================================================== - MidiKeyboardStateListener() = default; - virtual ~MidiKeyboardStateListener() = default; - - //============================================================================== - /** Called when one of the MidiKeyboardState's keys is pressed. - - This will be called synchronously when the state is either processing a - buffer in its MidiKeyboardState::processNextMidiBuffer() method, or - when a note is being played with its MidiKeyboardState::noteOn() method. - - Note that this callback could happen from an audio callback thread, so be - careful not to block, and avoid any UI activity in the callback. - */ - virtual void handleNoteOn (MidiKeyboardState* source, - int midiChannel, int midiNoteNumber, float velocity) = 0; - - /** Called when one of the MidiKeyboardState's keys is released. - - This will be called synchronously when the state is either processing a - buffer in its MidiKeyboardState::processNextMidiBuffer() method, or - when a note is being played with its MidiKeyboardState::noteOff() method. - - Note that this callback could happen from an audio callback thread, so be - careful not to block, and avoid any UI activity in the callback. - */ - virtual void handleNoteOff (MidiKeyboardState* source, - int midiChannel, int midiNoteNumber, float velocity) = 0; -}; - - //============================================================================== /** Represents a piano keyboard, keeping track of which keys are currently pressed. @@ -180,27 +135,62 @@ public: bool injectIndirectEvents); //============================================================================== + /** Receives events from a MidiKeyboardState object. */ + class Listener + { + public: + //============================================================================== + virtual ~Listener() = default; + + //============================================================================== + /** Called when one of the MidiKeyboardState's keys is pressed. + + This will be called synchronously when the state is either processing a + buffer in its MidiKeyboardState::processNextMidiBuffer() method, or + when a note is being played with its MidiKeyboardState::noteOn() method. + + Note that this callback could happen from an audio callback thread, so be + careful not to block, and avoid any UI activity in the callback. + */ + virtual void handleNoteOn (MidiKeyboardState* source, + int midiChannel, int midiNoteNumber, float velocity) = 0; + + /** Called when one of the MidiKeyboardState's keys is released. + + This will be called synchronously when the state is either processing a + buffer in its MidiKeyboardState::processNextMidiBuffer() method, or + when a note is being played with its MidiKeyboardState::noteOff() method. + + Note that this callback could happen from an audio callback thread, so be + careful not to block, and avoid any UI activity in the callback. + */ + virtual void handleNoteOff (MidiKeyboardState* source, + int midiChannel, int midiNoteNumber, float velocity) = 0; + }; + /** Registers a listener for callbacks when keys go up or down. @see removeListener */ - void addListener (MidiKeyboardStateListener* listener); + void addListener (Listener* listener); /** Deregisters a listener. @see addListener */ - void removeListener (MidiKeyboardStateListener* listener); + void removeListener (Listener* listener); private: //============================================================================== CriticalSection lock; - uint16 noteStates[128]; + std::atomic noteStates[128]; MidiBuffer eventsToAdd; - Array listeners; + ListenerList listeners; - void noteOnInternal (int midiChannel, int midiNoteNumber, float velocity); + void noteOnInternal (int midiChannel, int midiNoteNumber, float velocity); void noteOffInternal (int midiChannel, int midiNoteNumber, float velocity); JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiKeyboardState) }; +using MidiKeyboardStateListener = MidiKeyboardState::Listener; + } // namespace juce diff --git a/source/modules/juce_audio_basics/utilities/juce_GenericInterpolator.h b/source/modules/juce_audio_basics/utilities/juce_GenericInterpolator.h index 74475c6d9..d2e43aca7 100644 --- a/source/modules/juce_audio_basics/utilities/juce_GenericInterpolator.h +++ b/source/modules/juce_audio_basics/utilities/juce_GenericInterpolator.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_basics/utilities/juce_Interpolators.cpp b/source/modules/juce_audio_basics/utilities/juce_Interpolators.cpp index 37a39261f..397b954fc 100644 --- a/source/modules/juce_audio_basics/utilities/juce_Interpolators.cpp +++ b/source/modules/juce_audio_basics/utilities/juce_Interpolators.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -33,7 +40,7 @@ private: template void runInterplatorTests (const String& interpolatorName) { - auto createGaussian = [](std::vector& destination, float scale, float centreInSamples, float width) + auto createGaussian = [] (std::vector& destination, float scale, float centreInSamples, float width) { for (size_t i = 0; i < destination.size(); ++i) { @@ -44,7 +51,7 @@ private: FloatVectorOperations::multiply (destination.data(), scale, (int) destination.size()); }; - auto findGaussianPeak = [](const std::vector& input) -> float + auto findGaussianPeak = [] (const std::vector& input) -> float { auto max = std::max_element (std::begin (input), std::end (input)); auto maxPrev = max - 1; @@ -55,7 +62,7 @@ private: return quadraticMaxLoc + (float) std::distance (std::begin (input), max); }; - auto expectAllElementsWithin = [this](const std::vector& v1, const std::vector& v2, float tolerance) + auto expectAllElementsWithin = [this] (const std::vector& v1, const std::vector& v2, float tolerance) { expectEquals ((int) v1.size(), (int) v2.size()); diff --git a/source/modules/juce_audio_basics/utilities/juce_Interpolators.h b/source/modules/juce_audio_basics/utilities/juce_Interpolators.h index c30d92b7c..0160a86bc 100644 --- a/source/modules/juce_audio_basics/utilities/juce_Interpolators.h +++ b/source/modules/juce_audio_basics/utilities/juce_Interpolators.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -19,6 +26,14 @@ namespace juce { +/** + A collection of different interpolators for resampling streams of floats. + + @see GenericInterpolator, WindowedSincInterpolator, LagrangeInterpolator, + CatmullRomInterpolator, LinearInterpolator, ZeroOrderHoldInterpolator + + @tags{Audio} +*/ class Interpolators { private: diff --git a/source/modules/juce_audio_basics/utilities/juce_SmoothedValue.h b/source/modules/juce_audio_basics/utilities/juce_SmoothedValue.h index 73a83dc2b..d7d4a5db0 100644 --- a/source/modules/juce_audio_basics/utilities/juce_SmoothedValue.h +++ b/source/modules/juce_audio_basics/utilities/juce_SmoothedValue.h @@ -522,8 +522,8 @@ public: return result; }; - auto compareData = [this](const AudioBuffer& test, - const AudioBuffer& reference) + auto compareData = [this] (const AudioBuffer& test, + const AudioBuffer& reference) { for (int i = 0; i < test.getNumSamples(); ++i) expectWithinAbsoluteError (test.getSample (0, i), diff --git a/source/modules/juce_audio_basics/utilities/juce_WindowedSincInterpolator.cpp b/source/modules/juce_audio_basics/utilities/juce_WindowedSincInterpolator.cpp index 94950233b..c278e0873 100644 --- a/source/modules/juce_audio_basics/utilities/juce_WindowedSincInterpolator.cpp +++ b/source/modules/juce_audio_basics/utilities/juce_WindowedSincInterpolator.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp b/source/modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp index 1a58fd20a..1f03bc047 100644 --- a/source/modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp +++ b/source/modules/juce_audio_devices/audio_io/juce_AudioDeviceManager.cpp @@ -517,7 +517,7 @@ AudioIODeviceType* AudioDeviceManager::getCurrentDeviceTypeObject() const static void updateSetupChannels (AudioDeviceManager::AudioDeviceSetup& setup, int defaultNumIns, int defaultNumOuts) { - auto updateChannels = [](const String& deviceName, BigInteger& channels, int defaultNumChannels) + auto updateChannels = [] (const String& deviceName, BigInteger& channels, int defaultNumChannels) { if (deviceName.isEmpty()) { diff --git a/source/modules/juce_audio_devices/juce_audio_devices.h b/source/modules/juce_audio_devices/juce_audio_devices.h index ee61b1c7c..4f6fd361e 100644 --- a/source/modules/juce_audio_devices/juce_audio_devices.h +++ b/source/modules/juce_audio_devices/juce_audio_devices.h @@ -25,7 +25,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_audio_devices/midi_io/juce_MidiDevices.h b/source/modules/juce_audio_devices/midi_io/juce_MidiDevices.h index 954d615d4..34727b3b2 100644 --- a/source/modules/juce_audio_devices/midi_io/juce_MidiDevices.h +++ b/source/modules/juce_audio_devices/midi_io/juce_MidiDevices.h @@ -337,6 +337,11 @@ public: */ void stopBackgroundThread(); + /** Returns true if the background thread used to send blocks of data is running. + @see startBackgroundThread, stopBackgroundThread + */ + bool isBackgroundThreadRunning() const noexcept { return isThreadRunning(); } + //============================================================================== /** Deprecated. */ static StringArray getDevices(); diff --git a/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.cpp b/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.cpp index e86be890d..5e837f5ba 100644 --- a/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.cpp +++ b/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.cpp @@ -128,6 +128,11 @@ void MidiMessageCollector::removeNextBlockOfMessages (MidiBuffer& destBuffer, } } +void MidiMessageCollector::ensureStorageAllocated (size_t bytes) +{ + incomingMessages.ensureSize (bytes); +} + //============================================================================== void MidiMessageCollector::handleNoteOn (MidiKeyboardState*, int midiChannel, int midiNoteNumber, float velocity) { diff --git a/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.h b/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.h index d7e4df5a2..b9344e9f2 100644 --- a/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.h +++ b/source/modules/juce_audio_devices/midi_io/juce_MidiMessageCollector.h @@ -28,14 +28,14 @@ namespace juce Collects incoming realtime MIDI messages and turns them into blocks suitable for processing by a block-based audio callback. - The class can also be used as either a MidiKeyboardStateListener or a MidiInputCallback + The class can also be used as either a MidiKeyboardState::Listener or a MidiInputCallback so it can easily use a midi input or keyboard component as its source. @see MidiMessage, MidiInput @tags{Audio} */ -class JUCE_API MidiMessageCollector : public MidiKeyboardStateListener, +class JUCE_API MidiMessageCollector : public MidiKeyboardState::Listener, public MidiInputCallback { public: @@ -80,6 +80,14 @@ public: */ void removeNextBlockOfMessages (MidiBuffer& destBuffer, int numSamples); + /** Preallocates storage for collected messages. + + This can be called before audio processing begins to ensure that there + is sufficient space for the expected MIDI messages, in order to avoid + allocations within the audio callback. + */ + void ensureStorageAllocated (size_t bytes); + //============================================================================== /** @internal */ diff --git a/source/modules/juce_audio_devices/native/juce_android_Oboe.cpp b/source/modules/juce_audio_devices/native/juce_android_Oboe.cpp index ad894b01e..a4bc1d4f4 100644 --- a/source/modules/juce_audio_devices/native/juce_android_Oboe.cpp +++ b/source/modules/juce_audio_devices/native/juce_android_Oboe.cpp @@ -91,33 +91,43 @@ struct OboeAudioIODeviceBufferHelpers static void convertFromOboe (const float* srcInterleaved, AudioBuffer& audioBuffer, int numSamples) { - // No need to convert, we instructed the buffer to point to the src data directly already - jassert (audioBuffer.getWritePointer (0) != srcInterleaved); + auto numChannels = audioBuffer.getNumChannels(); - for (int i = 0; i < audioBuffer.getNumChannels(); ++i) + if (numChannels > 0) { - using DstSampleType = AudioData::Pointer; - using SrcSampleType = AudioData::Pointer; + // No need to convert, we instructed the buffer to point to the src data directly already + jassert (audioBuffer.getWritePointer (0) != srcInterleaved); - DstSampleType dstData (audioBuffer.getWritePointer (i)); - SrcSampleType srcData (srcInterleaved + i, audioBuffer.getNumChannels()); - dstData.convertSamples (srcData, numSamples); + for (int i = 0; i < numChannels; ++i) + { + using DstSampleType = AudioData::Pointer; + using SrcSampleType = AudioData::Pointer; + + DstSampleType dstData (audioBuffer.getWritePointer (i)); + SrcSampleType srcData (srcInterleaved + i, audioBuffer.getNumChannels()); + dstData.convertSamples (srcData, numSamples); + } } } static void convertToOboe (const AudioBuffer& audioBuffer, float* dstInterleaved, int numSamples) { - // No need to convert, we instructed the buffer to point to the src data directly already - jassert (audioBuffer.getReadPointer (0) != dstInterleaved); + auto numChannels = audioBuffer.getNumChannels(); - for (int i = 0; i < audioBuffer.getNumChannels(); ++i) + if (numChannels > 0) { - using DstSampleType = AudioData::Pointer; - using SrcSampleType = AudioData::Pointer; + // No need to convert, we instructed the buffer to point to the src data directly already + jassert (audioBuffer.getReadPointer (0) != dstInterleaved); - DstSampleType dstData (dstInterleaved + i, audioBuffer.getNumChannels()); - SrcSampleType srcData (audioBuffer.getReadPointer (i)); - dstData.convertSamples (srcData, numSamples); + for (int i = 0; i < numChannels; ++i) + { + using DstSampleType = AudioData::Pointer; + using SrcSampleType = AudioData::Pointer; + + DstSampleType dstData (dstInterleaved + i, audioBuffer.getNumChannels()); + SrcSampleType srcData (audioBuffer.getReadPointer (i)); + dstData.convertSamples (srcData, numSamples); + } } } }; @@ -148,8 +158,6 @@ public: supportedOutputSampleRates (supportedOutputSampleRatesToUse), maxNumOutputChannels (maxNumOutputChannelsToUse) { - // At least an input or an output has to be supported by the device! - jassert (inputDeviceId != -1 || outputDeviceId != -1); } ~OboeAudioIODevice() override @@ -380,7 +388,7 @@ private: // We initially try to open a stream with a buffer size returned from // android.media.property.OUTPUT_FRAMES_PER_BUFFER property, but then we verify the actual // size after the stream is open. - OboeAudioIODevice::OboeStream tempStream (-1, + OboeAudioIODevice::OboeStream tempStream (oboe::kUnspecified, oboe::Direction::Output, oboe::SharingMode::Exclusive, 2, @@ -695,7 +703,7 @@ private: ignoreUnused (deviceId, numChannels, sampleRate, expectedBufferSize); ignoreUnused (streamFormat, bitDepth); - jassert (numChannels == nativeStream->getChannelCount()); + jassert (numChannels == 0 || numChannels == nativeStream->getChannelCount()); jassert (expectedSampleRate == 0 || expectedSampleRate == nativeStream->getSampleRate()); jassert (format == nativeStream->getFormat()); } @@ -951,7 +959,7 @@ private: Thread::sleep (1); outputStream = nullptr; - outputStream.reset (new OboeStream (-1, + outputStream.reset (new OboeStream (oboe::kUnspecified, oboe::Direction::Output, oboe::SharingMode::Exclusive, numOutputChannels, @@ -1058,9 +1066,6 @@ public: StringArray getDeviceNames (bool wantInputNames) const override { - if (inputDevices.isEmpty() && outputDevices.isEmpty()) - return StringArray (OboeAudioIODevice::oboeTypeName); - StringArray names; for (auto& device : wantInputNames ? inputDevices : outputDevices) @@ -1069,36 +1074,8 @@ public: return names; } - int getDefaultDeviceIndex (bool forInput) const override + int getDefaultDeviceIndex (bool) const override { - // No need to create a stream when only one default device is created. - if (! supportsDevicesInfo()) - return 0; - - if (forInput && (! RuntimePermissions::isGranted (RuntimePermissions::recordAudio))) - return 0; - - // Create stream with a default device ID and query the stream for its device ID - using OboeStream = OboeAudioIODevice::OboeStream; - - OboeStream tempStream (-1, - forInput ? oboe::Direction::Input : oboe::Direction::Output, - oboe::SharingMode::Shared, - forInput ? 1 : 2, - getAndroidSDKVersion() >= 21 ? oboe::AudioFormat::Float : oboe::AudioFormat::I16, - (int) AndroidHighPerformanceAudioHelpers::getNativeSampleRate(), - AndroidHighPerformanceAudioHelpers::getNativeBufferSizeHint(), - nullptr); - - if (auto* nativeStream = tempStream.getNativeStream()) - { - auto& devices = forInput ? inputDevices : outputDevices; - - for (int i = 0; i < devices.size(); ++i) - if (devices.getReference (i).id == nativeStream->getDeviceId()) - return i; - } - return 0; } @@ -1127,12 +1104,8 @@ public: auto outputDeviceInfo = getDeviceInfoForName (outputDeviceName, false); auto inputDeviceInfo = getDeviceInfoForName (inputDeviceName, true); - if (outputDeviceInfo.name.isEmpty() && inputDeviceInfo.name.isEmpty()) - { - // Invalid device name passed. It must be one of the names returned by getDeviceNames(). - jassertfalse; + if (outputDeviceInfo.id < 0 && inputDeviceInfo.id < 0) return nullptr; - } auto& name = outputDeviceInfo.name.isNotEmpty() ? outputDeviceInfo.name : inputDeviceInfo.name; @@ -1156,15 +1129,13 @@ public: private: void checkAvailableDevices() { - if (! supportsDevicesInfo()) - { - auto sampleRates = OboeAudioIODevice::getDefaultSampleRates(); + auto sampleRates = OboeAudioIODevice::getDefaultSampleRates(); - inputDevices .add ({ OboeAudioIODevice::oboeTypeName, -1, sampleRates, 1 }); - outputDevices.add ({ OboeAudioIODevice::oboeTypeName, -1, sampleRates, 2 }); + inputDevices .add ({ "System Default (Input)", oboe::kUnspecified, sampleRates, 1 }); + outputDevices.add ({ "System Default (Output)", oboe::kUnspecified, sampleRates, 2 }); + if (! supportsDevicesInfo()) return; - } auto* env = getEnv(); @@ -1309,19 +1280,21 @@ public: struct DeviceInfo { String name; - int id; + int id = -1; Array sampleRates; int numChannels; }; DeviceInfo getDeviceInfoForName (const String& name, bool isInput) { - if (name.isEmpty()) - return {}; - - for (auto& device : isInput ? inputDevices : outputDevices) - if (device.name == name) - return device; + if (name.isNotEmpty()) + { + for (auto& device : isInput ? inputDevices : outputDevices) + { + if (device.name == name) + return device; + } + } return {}; } @@ -1349,7 +1322,7 @@ class OboeRealtimeThread : private oboe::AudioStreamCallback public: OboeRealtimeThread() - : testStream (new OboeStream (-1, + : testStream (new OboeStream (oboe::kUnspecified, oboe::Direction::Output, oboe::SharingMode::Exclusive, 1, @@ -1362,7 +1335,7 @@ public: // Fallback to I16 stream format if Float has not worked if (! testStream->openedOk()) { - testStream.reset (new OboeStream (-1, + testStream.reset (new OboeStream (oboe::kUnspecified, oboe::Direction::Output, oboe::SharingMode::Exclusive, 1, @@ -1415,7 +1388,7 @@ public: threadEntryProc (threadUserPtr); threadEntryProc = nullptr; - MessageManager::callAsync ([this] () { delete this; }); + MessageManager::callAsync ([this]() { delete this; }); return oboe::DataCallbackResult::Stop; } diff --git a/source/modules/juce_audio_devices/native/juce_android_OpenSL.cpp b/source/modules/juce_audio_devices/native/juce_android_OpenSL.cpp index 15333047d..8db98afd6 100644 --- a/source/modules/juce_audio_devices/native/juce_android_OpenSL.cpp +++ b/source/modules/juce_audio_devices/native/juce_android_OpenSL.cpp @@ -1260,7 +1260,7 @@ public: threadEntryProc = nullptr; (*player)->SetPlayState (player, SL_PLAYSTATE_STOPPED); - MessageManager::callAsync ([this] () { delete this; }); + MessageManager::callAsync ([this]() { delete this; }); } } diff --git a/source/modules/juce_audio_devices/native/juce_win32_Midi.cpp b/source/modules/juce_audio_devices/native/juce_win32_Midi.cpp index 982e160f5..86b4e8082 100644 --- a/source/modules/juce_audio_devices/native/juce_win32_Midi.cpp +++ b/source/modules/juce_audio_devices/native/juce_win32_Midi.cpp @@ -990,19 +990,19 @@ private: watcher->add_Added ( Callback> ( - [handlerPtr](IDeviceWatcher*, IDeviceInformation* info) { return handlerPtr->addDevice (info); } + [handlerPtr] (IDeviceWatcher*, IDeviceInformation* info) { return handlerPtr->addDevice (info); } ).Get(), &deviceAddedToken); watcher->add_Removed ( Callback> ( - [handlerPtr](IDeviceWatcher*, IDeviceInformationUpdate* infoUpdate) { return handlerPtr->removeDevice (infoUpdate); } + [handlerPtr] (IDeviceWatcher*, IDeviceInformationUpdate* infoUpdate) { return handlerPtr->removeDevice (infoUpdate); } ).Get(), &deviceRemovedToken); watcher->add_Updated ( Callback> ( - [handlerPtr](IDeviceWatcher*, IDeviceInformationUpdate* infoUpdate) { return handlerPtr->updateDevice (infoUpdate); } + [handlerPtr] (IDeviceWatcher*, IDeviceInformationUpdate* infoUpdate) { return handlerPtr->updateDevice (infoUpdate); } ).Get(), &deviceUpdatedToken); @@ -1118,7 +1118,7 @@ private: if (devices.contains (removedDeviceId)) { auto& info = devices.getReference (removedDeviceId); - listeners.call ([&info](Listener& l) { l.bleDeviceDisconnected (info.containerID); }); + listeners.call ([&info] (Listener& l) { l.bleDeviceDisconnected (info.containerID); }); devices.remove (removedDeviceId); JUCE_WINRT_MIDI_LOG ("Removed BLE device: " << removedDeviceId); } @@ -1165,7 +1165,7 @@ private: if (info.isConnected && ! isConnected) { JUCE_WINRT_MIDI_LOG ("BLE device connection status change: " << updatedDeviceId << " " << info.containerID << " " << (isConnected ? "connected" : "disconnected")); - listeners.call ([&info](Listener& l) { l.bleDeviceDisconnected (info.containerID); }); + listeners.call ([&info] (Listener& l) { l.bleDeviceDisconnected (info.containerID); }); } info.isConnected = isConnected; @@ -1580,7 +1580,7 @@ private: auto hr = midiPort->add_MessageReceived ( Callback> ( - [this](IMidiInPort*, IMidiMessageReceivedEventArgs* args) { return midiInMessageReceived (args); } + [this] (IMidiInPort*, IMidiMessageReceivedEventArgs* args) { return midiInMessageReceived (args); } ).Get(), &midiInMessageToken); diff --git a/source/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp b/source/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp index 31d65d5dd..a706358dd 100644 --- a/source/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp +++ b/source/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp @@ -1430,7 +1430,7 @@ private: closeDevices(); initialise(); - auto changedSampleRate = [this, sampleRateChangedByInput] () + auto changedSampleRate = [this, sampleRateChangedByInput]() { if (inputDevice != nullptr && sampleRateChangedByInput) return inputDevice->defaultSampleRate; diff --git a/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.cpp b/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.cpp index 2617fccd9..6d728a341 100644 --- a/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.cpp +++ b/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.h b/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.h index 059523b71..f3bc82682 100644 --- a/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.h +++ b/source/modules/juce_audio_processors/format/juce_AudioPluginFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -67,7 +74,7 @@ public: String& errorMessage); /** A callback lambda that is passed to createPluginInstanceAsync() */ - using PluginCreationCallback = std::function, const String&)>; + using PluginCreationCallback = std::function, const String&)>; /** Tries to recreate a type from a previously generated PluginDescription. When the plugin has been created, it will be passed to the caller via an diff --git a/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.cpp b/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.cpp index 712e55112..20e7a5080 100644 --- a/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.cpp +++ b/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h b/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h index 3854803b7..65c123207 100644 --- a/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h +++ b/source/modules/juce_audio_processors/format/juce_AudioPluginFormatManager.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_AU_Shared.h b/source/modules/juce_audio_processors/format_types/juce_AU_Shared.h index ce97374fe..2dcbf39f4 100644 --- a/source/modules/juce_audio_processors/format_types/juce_AU_Shared.h +++ b/source/modules/juce_audio_processors/format_types/juce_AU_Shared.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h b/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h index d86dc6c70..c8d46706c 100644 --- a/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h +++ b/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index 4bd16ea9e..892312098 100644 --- a/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/source/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1439,7 +1446,7 @@ public: || info.unit == kAudioUnitParameterUnit_Boolean); bool isBoolean = info.unit == kAudioUnitParameterUnit_Boolean; - auto label = [info] () -> String + auto label = [info]() -> String { if (info.unit == kAudioUnitParameterUnit_Percent) return "%"; if (info.unit == kAudioUnitParameterUnit_Seconds) return "s"; diff --git a/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp b/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp index 509193da8..8ffe16b06 100644 --- a/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h b/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h index aecaf905d..d7f39967c 100644 --- a/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h +++ b/source/modules/juce_audio_processors/format_types/juce_LADSPAPluginFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp b/source/modules/juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp index cff2b1857..c3bf144b1 100644 --- a/source/modules/juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_LegacyAudioParameter.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VST3Common.h b/source/modules/juce_audio_processors/format_types/juce_VST3Common.h index 1f3d515a1..6372bdbce 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VST3Common.h +++ b/source/modules/juce_audio_processors/format_types/juce_VST3Common.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VST3Headers.h b/source/modules/juce_audio_processors/format_types/juce_VST3Headers.h index 080f1bd46..18f13f5eb 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VST3Headers.h +++ b/source/modules/juce_audio_processors/format_types/juce_VST3Headers.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index c157f2bc4..bb5d2c4dc 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -2788,7 +2795,7 @@ private: bypassParam = param; std::function findOrCreateGroup; - findOrCreateGroup = [&groupMap, &infoMap, &findOrCreateGroup](Vst::UnitID groupID) + findOrCreateGroup = [&groupMap, &infoMap, &findOrCreateGroup] (Vst::UnitID groupID) { auto existingGroup = groupMap.find (groupID); diff --git a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h index 4d813e3ba..789fac9b5 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h +++ b/source/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VSTCommon.h b/source/modules/juce_audio_processors/format_types/juce_VSTCommon.h index 651beb6a5..6d9454c62 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VSTCommon.h +++ b/source/modules/juce_audio_processors/format_types/juce_VSTCommon.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h b/source/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h index 9a5b5f986..6e99d63d0 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h +++ b/source/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 5f214d1bc..68e6186d8 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h index c6a0f8530..6e32d9af0 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h +++ b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/juce_audio_processors.cpp b/source/modules/juce_audio_processors/juce_audio_processors.cpp index 8547140ae..f494ec3a2 100644 --- a/source/modules/juce_audio_processors/juce_audio_processors.cpp +++ b/source/modules/juce_audio_processors/juce_audio_processors.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/juce_audio_processors.h b/source/modules/juce_audio_processors/juce_audio_processors.h index f4dc0e4e1..48cc2cca3 100644 --- a/source/modules/juce_audio_processors/juce_audio_processors.h +++ b/source/modules/juce_audio_processors/juce_audio_processors.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,7 +28,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp b/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp index 785978934..3164ec9c5 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.h b/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.h index f5f4bcc0a..79d76bd86 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioPluginInstance.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/source/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index c74d2472d..ebe7341e1 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -775,7 +782,7 @@ void AudioProcessor::audioIOChanged (bool busNumberChanged, bool channelNumChang bus->updateChannelCount(); } - auto countTotalChannels = [](const OwnedArray& buses) noexcept + auto countTotalChannels = [] (const OwnedArray& buses) noexcept { int n = 0; diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessor.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessor.h index 1f200979b..e183a8802 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessor.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1174,7 +1181,7 @@ public: Unknown = -1 }; - std::function curve; // a function which represents your curve (such as an eq) + std::function curve; // a function which represents your curve (such as an eq) Range xRange, yRange; // the data range of your curve // For some curve types, your plug-in may already measure the current input and output values. diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp index 1eba9ff09..670cb3969 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h index dc499719e..07d3765f4 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorEditor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp b/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp index 00ebd97a2..070f82554 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -961,7 +968,7 @@ AudioProcessorGraph::Node::Ptr AudioProcessorGraph::addNode (std::unique_ptr AudioProcessorGraph::removeNode (NodeID nodeId) +AudioProcessorGraph::Node::Ptr AudioProcessorGraph::removeNode (NodeID nodeId) { const ScopedLock sl (getCallbackLock()); @@ -970,23 +977,22 @@ std::unique_ptr AudioProcessorGraph::removeNode (NodeID nodeId) if (nodes.getUnchecked (i)->nodeID == nodeId) { disconnectNode (nodeId); - auto internalProcessor = nodes[i] != nullptr ? std::move (nodes[i]->processor) : nullptr; - nodes.remove (i); + auto node = nodes.removeAndReturn (i); topologyChanged(); - return internalProcessor; + return node; } } - return nullptr; + return {}; } -std::unique_ptr AudioProcessorGraph::removeNode (Node* node) +AudioProcessorGraph::Node::Ptr AudioProcessorGraph::removeNode (Node* node) { if (node != nullptr) return removeNode (node->nodeID); jassertfalse; - return nullptr; + return {}; } //============================================================================== diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h index 47184cc24..8d2221f1e 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorGraph.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -231,12 +238,12 @@ public: /** Deletes a node within the graph which has the specified ID. This will also delete any connections that are attached to this node. */ - std::unique_ptr removeNode (NodeID); + Node::Ptr removeNode (NodeID); /** Deletes a node within the graph. This will also delete any connections that are attached to this node. */ - std::unique_ptr removeNode (Node*); + Node::Ptr removeNode (Node*); /** Returns the list of connections in the graph. */ std::vector getConnections() const; diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h index 711c0ef29..7e075b394 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorListener.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h index 471074c59..f661dcb19 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameter.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp index a6fdadf2c..3bb2e7589 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h index c7ef25e3e..7f26bb4f7 100644 --- a/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h +++ b/source/modules/juce_audio_processors/processors/juce_AudioProcessorParameterGroup.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.cpp b/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.cpp index 3ae34ff80..605ef3526 100644 --- a/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.cpp +++ b/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.h b/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.h index 9012761df..b56216e0b 100644 --- a/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.h +++ b/source/modules/juce_audio_processors/processors/juce_GenericAudioProcessorEditor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_PluginDescription.cpp b/source/modules/juce_audio_processors/processors/juce_PluginDescription.cpp index 77ebb86d5..956f2de2c 100644 --- a/source/modules/juce_audio_processors/processors/juce_PluginDescription.cpp +++ b/source/modules/juce_audio_processors/processors/juce_PluginDescription.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/processors/juce_PluginDescription.h b/source/modules/juce_audio_processors/processors/juce_PluginDescription.h index 7ad58a8c8..bce3a41e6 100644 --- a/source/modules/juce_audio_processors/processors/juce_PluginDescription.h +++ b/source/modules/juce_audio_processors/processors/juce_PluginDescription.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp b/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp index bf9f70582..1bfc78197 100644 --- a/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp +++ b/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.h b/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.h index fdf6c64e1..9d9106a58 100644 --- a/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.h +++ b/source/modules/juce_audio_processors/scanning/juce_KnownPluginList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.cpp b/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.cpp index 9dcf83567..6b6dc374f 100644 --- a/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.cpp +++ b/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.h b/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.h index 7d8d4476d..7da639b1e 100644 --- a/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.h +++ b/source/modules/juce_audio_processors/scanning/juce_PluginDirectoryScanner.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp b/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp index 7caf52261..4ec95a167 100644 --- a/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp +++ b/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.h b/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.h index 706910d11..307f6fd89 100644 --- a/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.h +++ b/source/modules/juce_audio_processors/scanning/juce_PluginListComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.cpp index 2f5867ae4..4ba512ddd 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,8 +28,8 @@ namespace juce AudioParameterBool::AudioParameterBool (const String& idToUse, const String& nameToUse, bool def, const String& labelToUse, - std::function stringFromBool, - std::function boolFromString) + std::function stringFromBool, + std::function boolFromString) : RangedAudioParameter (idToUse, nameToUse, labelToUse), value (def ? 1.0f : 0.0f), defaultValue (value), diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.h b/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.h index 285327b43..f4a7f2c4b 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterBool.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -44,8 +51,8 @@ public: */ AudioParameterBool (const String& parameterID, const String& parameterName, bool defaultValue, const String& parameterLabel = String(), - std::function stringFromBool = nullptr, - std::function boolFromString = nullptr); + std::function stringFromBool = nullptr, + std::function boolFromString = nullptr); /** Destructor. */ ~AudioParameterBool() override; @@ -82,8 +89,8 @@ private: const NormalisableRange range { 0.0f, 1.0f, 1.0f }; std::atomic value; const float defaultValue; - std::function stringFromBoolFunction; - std::function boolFromStringFunction; + std::function stringFromBoolFunction; + std::function boolFromStringFunction; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioParameterBool) }; diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.cpp index ece7a159f..89eeff0a5 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,15 +28,15 @@ namespace juce AudioParameterChoice::AudioParameterChoice (const String& idToUse, const String& nameToUse, const StringArray& c, int def, const String& labelToUse, - std::function stringFromIndex, - std::function indexFromString) + std::function stringFromIndex, + std::function indexFromString) : RangedAudioParameter (idToUse, nameToUse, labelToUse), choices (c), range ([this] { NormalisableRange rangeWithInterval { 0.0f, choices.size() - 1.0f, - [](float, float end, float v) { return jlimit (0.0f, end, v * end); }, - [](float, float end, float v) { return jlimit (0.0f, 1.0f, v / end); }, - [](float start, float end, float v) { return (float) roundToInt (juce::jlimit (start, end, v)); } }; + [] (float, float end, float v) { return jlimit (0.0f, end, v * end); }, + [] (float, float end, float v) { return jlimit (0.0f, 1.0f, v / end); }, + [] (float start, float end, float v) { return (float) roundToInt (juce::jlimit (start, end, v)); } }; rangeWithInterval.interval = 1.0f; return rangeWithInterval; }()), diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.h b/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.h index bb59436a8..818f3aca3 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterChoice.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -48,8 +55,8 @@ public: const StringArray& choices, int defaultItemIndex, const String& parameterLabel = String(), - std::function stringFromIndex = nullptr, - std::function indexFromString = nullptr); + std::function stringFromIndex = nullptr, + std::function indexFromString = nullptr); /** Destructor. */ ~AudioParameterChoice() override; @@ -94,8 +101,8 @@ private: const NormalisableRange range; std::atomic value; const float defaultValue; - std::function stringFromIndexFunction; - std::function indexFromStringFunction; + std::function stringFromIndexFunction; + std::function indexFromStringFunction; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioParameterChoice) }; diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.cpp index 3a6b5f50d..ce8dfbaab 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -22,8 +29,8 @@ namespace juce AudioParameterFloat::AudioParameterFloat (const String& idToUse, const String& nameToUse, NormalisableRange r, float def, const String& labelToUse, Category categoryToUse, - std::function stringFromValue, - std::function valueFromString) + std::function stringFromValue, + std::function valueFromString) : RangedAudioParameter (idToUse, nameToUse, labelToUse, categoryToUse), range (r), value (def), defaultValue (def), stringFromValueFunction (stringFromValue), diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h b/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h index 290d4a873..59b058f98 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterFloat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -51,8 +58,8 @@ public: float defaultValue, const String& parameterLabel = String(), Category parameterCategory = AudioProcessorParameter::genericParameter, - std::function stringFromValue = nullptr, - std::function valueFromString = nullptr); + std::function stringFromValue = nullptr, + std::function valueFromString = nullptr); /** Creates a AudioParameterFloat with an ID, name, and range. On creation, its value is set to the default value. @@ -100,8 +107,8 @@ private: std::atomic value; const float defaultValue; - std::function stringFromValueFunction; - std::function valueFromStringFunction; + std::function stringFromValueFunction; + std::function valueFromStringFunction; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioParameterFloat) }; diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.cpp index bd2c69dee..e0b1f4244 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -22,15 +29,15 @@ namespace juce AudioParameterInt::AudioParameterInt (const String& idToUse, const String& nameToUse, int minValue, int maxValue, int def, const String& labelToUse, - std::function stringFromInt, - std::function intFromString) + std::function stringFromInt, + std::function intFromString) : RangedAudioParameter (idToUse, nameToUse, labelToUse), range ([minValue, maxValue] { NormalisableRange rangeWithInterval { (float) minValue, (float) maxValue, - [](float start, float end, float v) { return jlimit (start, end, v * (end - start) + start); }, - [](float start, float end, float v) { return jlimit (0.0f, 1.0f, (v - start) / (end - start)); }, - [](float start, float end, float v) { return (float) roundToInt (juce::jlimit (start, end, v)); } }; + [] (float start, float end, float v) { return jlimit (start, end, v * (end - start) + start); }, + [] (float start, float end, float v) { return jlimit (0.0f, 1.0f, (v - start) / (end - start)); }, + [] (float start, float end, float v) { return (float) roundToInt (juce::jlimit (start, end, v)); } }; rangeWithInterval.interval = 1.0f; return rangeWithInterval; }()), diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h b/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h index c68b4af11..6e969e794 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioParameterInt.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -49,8 +56,8 @@ public: int minValue, int maxValue, int defaultValue, const String& parameterLabel = String(), - std::function stringFromInt = nullptr, - std::function intFromString = nullptr); + std::function stringFromInt = nullptr, + std::function intFromString = nullptr); /** Destructor. */ ~AudioParameterInt() override; @@ -90,8 +97,8 @@ private: const NormalisableRange range; std::atomic value; const float defaultValue; - std::function stringFromIntFunction; - std::function intFromStringFunction; + std::function stringFromIntFunction; + std::function intFromStringFunction; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioParameterInt) }; diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.cpp index 9afb43483..c8cb10819 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h index 8a574ce82..9b43de7f4 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorParameterWithID.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp index 8a4bff5cb..b05ad8a02 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -25,8 +32,8 @@ AudioProcessorValueTreeState::Parameter::Parameter (const String& parameterID, const String& labelText, NormalisableRange valueRange, float defaultParameterValue, - std::function valueToTextFunction, - std::function textToValueFunction, + std::function valueToTextFunction, + std::function textToValueFunction, bool isMetaParameter, bool isAutomatableParameter, bool isDiscrete, @@ -38,8 +45,8 @@ AudioProcessorValueTreeState::Parameter::Parameter (const String& parameterID, defaultParameterValue, labelText, parameterCategory, - valueToTextFunction == nullptr ? std::function() - : [valueToTextFunction](float v, int) { return valueToTextFunction (v); }, + valueToTextFunction == nullptr ? std::function() + : [valueToTextFunction] (float v, int) { return valueToTextFunction (v); }, std::move (textToValueFunction)), unsnappedDefault (valueRange.convertTo0to1 (defaultParameterValue)), metaParameter (isMetaParameter), @@ -155,7 +162,7 @@ private: return; unnormalisedValue = newValue; - listeners.call ([=](Listener& l) { l.parameterChanged (parameter.paramID, unnormalisedValue); }); + listeners.call ([=] (Listener& l) { l.parameterChanged (parameter.paramID, unnormalisedValue); }); listenersNeedCalling = false; needsUpdate = true; } @@ -178,8 +185,35 @@ private: parameter.setValueNotifyingHost (value); } + class LockedListeners + { + public: + template + void call (Fn&& fn) + { + const CriticalSection::ScopedLockType lock (mutex); + listeners.call (std::forward (fn)); + } + + void add (Listener* l) + { + const CriticalSection::ScopedLockType lock (mutex); + listeners.add (l); + } + + void remove (Listener* l) + { + const CriticalSection::ScopedLockType lock (mutex); + listeners.remove (l); + } + + private: + CriticalSection mutex; + ListenerList listeners; + }; + RangedAudioParameter& parameter; - ListenerList listeners; + LockedListeners listeners; std::atomic unnormalisedValue { 0.0f }; std::atomic needsUpdate { true }, listenersNeedCalling { true }; bool ignoreParameterChangedCallbacks { false }; @@ -261,8 +295,8 @@ RangedAudioParameter* AudioProcessorValueTreeState::createAndAddParameter (const const String& labelText, NormalisableRange range, float defaultVal, - std::function valueToTextFunction, - std::function textToValueFunction, + std::function valueToTextFunction, + std::function textToValueFunction, bool isMetaParameter, bool isAutomatableParameter, bool isDiscreteParameter, @@ -512,7 +546,7 @@ struct ParameterAdapterTests : public UnitTest beginTest ("Denormalised parameter values can be retrieved"); { - const auto test = [&](NormalisableRange range, float value) + const auto test = [&] (NormalisableRange range, float value) { AudioParameterFloat param ({}, {}, range, {}, {}); AudioProcessorValueTreeState::ParameterAdapter adapter (param); @@ -529,7 +563,7 @@ struct ParameterAdapterTests : public UnitTest beginTest ("Floats can be converted to text"); { - const auto test = [&](NormalisableRange range, float value, String expected) + const auto test = [&] (NormalisableRange range, float value, String expected) { AudioParameterFloat param ({}, {}, range, {}, {}); AudioProcessorValueTreeState::ParameterAdapter adapter (param); @@ -545,7 +579,7 @@ struct ParameterAdapterTests : public UnitTest beginTest ("Text can be converted to floats"); { - const auto test = [&](NormalisableRange range, String text, float expected) + const auto test = [&] (NormalisableRange range, String text, float expected) { AudioParameterFloat param ({}, {}, range, {}, {}); AudioProcessorValueTreeState::ParameterAdapter adapter (param); diff --git a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h index eac704ceb..156e3ea00 100644 --- a/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h +++ b/source/modules/juce_audio_processors/utilities/juce_AudioProcessorValueTreeState.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -254,8 +261,8 @@ public: const String& labelText, NormalisableRange valueRange, float defaultValue, - std::function valueToTextFunction, - std::function textToValueFunction, + std::function valueToTextFunction, + std::function textToValueFunction, bool isMetaParameter = false, bool isAutomatableParameter = true, bool isDiscrete = false, @@ -394,8 +401,8 @@ public: const String& labelText, NormalisableRange valueRange, float defaultValue, - std::function valueToTextFunction, - std::function textToValueFunction, + std::function valueToTextFunction, + std::function textToValueFunction, bool isMetaParameter = false, bool isAutomatableParameter = true, bool isDiscrete = false, @@ -514,7 +521,7 @@ private: @endcode */ JUCE_DEPRECATED (std::unique_ptr createParameter (const String&, const String&, const String&, NormalisableRange, - float, std::function, std::function, + float, std::function, std::function, bool, bool, bool, AudioProcessorParameter::Category, bool)); //============================================================================== diff --git a/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.cpp b/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.cpp index 998b55a21..cb990afec 100644 --- a/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h b/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h index 1960aa28b..8dd83cc36 100644 --- a/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h +++ b/source/modules/juce_audio_processors/utilities/juce_ParameterAttachments.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -33,6 +40,8 @@ namespace juce Make sure to call `sendInitialUpdate` at the end of your new attachment's constructor, so that the UI immediately reflects the state of the parameter. + + @tags{Audio} */ class ParameterAttachment : private AudioProcessorParameter::Listener, private AsyncUpdater @@ -49,7 +58,7 @@ public: requests a parameter change. */ ParameterAttachment (RangedAudioParameter& parameter, - std::function parameterChangedCallback, + std::function parameterChangedCallback, UndoManager* undoManager = nullptr); /** Destructor. */ @@ -105,7 +114,7 @@ private: RangedAudioParameter& parameter; std::atomic lastValue { 0.0f }; UndoManager* undoManager = nullptr; - std::function setValue; + std::function setValue; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ParameterAttachment) }; @@ -118,6 +127,8 @@ private: it easy to connect a slider to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and Slider are not deleted before this object! + + @tags{Audio} */ class SliderParameterAttachment : private Slider::Listener { @@ -164,6 +175,8 @@ private: easy to connect a combo box to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and ComboBox are not deleted before this object! + + @tags{Audio} */ class ComboBoxParameterAttachment : private ComboBox::Listener { @@ -202,6 +215,8 @@ private: easy to connect a button to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and Button are not deleted before this object! + + @tags{Audio} */ class ButtonParameterAttachment : private Button::Listener { diff --git a/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.cpp b/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.cpp index 91b43016a..99226e490 100644 --- a/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.cpp +++ b/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.h b/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.h index abb5e1317..30695fea3 100644 --- a/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.h +++ b/source/modules/juce_audio_processors/utilities/juce_RangedAudioParameter.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_core/containers/juce_Variant.h b/source/modules/juce_core/containers/juce_Variant.h index b91e8618f..e58f3386b 100644 --- a/source/modules/juce_core/containers/juce_Variant.h +++ b/source/modules/juce_core/containers/juce_Variant.h @@ -54,7 +54,7 @@ public: int numArguments; }; - using NativeFunction = std::function; + using NativeFunction = std::function; //============================================================================== /** Creates a void variant. */ diff --git a/source/modules/juce_core/files/juce_RangedDirectoryIterator.h b/source/modules/juce_core/files/juce_RangedDirectoryIterator.h index 1443ce8f7..199518134 100644 --- a/source/modules/juce_core/files/juce_RangedDirectoryIterator.h +++ b/source/modules/juce_core/files/juce_RangedDirectoryIterator.h @@ -24,7 +24,11 @@ namespace juce { //============================================================================== -/** Describes the attributes of a file or folder. */ +/** + Describes the attributes of a file or folder. + + @tags{Core} +*/ class DirectoryEntry final { public: @@ -80,6 +84,8 @@ inline const DirectoryEntry& operator* (const DirectoryEntry& e) noexcept { retu if (entry.isHidden()) hiddenFiles.push_back (entry.getFile()); @endcode + + @tags{Core} */ class RangedDirectoryIterator final { diff --git a/source/modules/juce_core/juce_core.h b/source/modules/juce_core/juce_core.h index ebcd7271f..12ad7e942 100644 --- a/source/modules/juce_core/juce_core.h +++ b/source/modules/juce_core/juce_core.h @@ -25,7 +25,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_core/memory/juce_AllocationHooks.cpp b/source/modules/juce_core/memory/juce_AllocationHooks.cpp index 7d85c7e3c..3c6cb6b36 100644 --- a/source/modules/juce_core/memory/juce_AllocationHooks.cpp +++ b/source/modules/juce_core/memory/juce_AllocationHooks.cpp @@ -1,13 +1,17 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + The code included in this file is provided under the terms of the ISC license + http://www.isc.org/downloads/software-support-policy/isc-license. Permission + To use, copy, modify, and/or distribute this software for any purpose with or + without fee is hereby granted provided that the above copyright notice and + this permission notice appear in all copies. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_core/memory/juce_AllocationHooks.h b/source/modules/juce_core/memory/juce_AllocationHooks.h index d61e06cf4..9dec58f03 100644 --- a/source/modules/juce_core/memory/juce_AllocationHooks.h +++ b/source/modules/juce_core/memory/juce_AllocationHooks.h @@ -1,13 +1,17 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + The code included in this file is provided under the terms of the ISC license + http://www.isc.org/downloads/software-support-policy/isc-license. Permission + To use, copy, modify, and/or distribute this software for any purpose with or + without fee is hereby granted provided that the above copyright notice and + this permission notice appear in all copies. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_core/misc/juce_ConsoleApplication.h b/source/modules/juce_core/misc/juce_ConsoleApplication.h index 30b2e3b42..ae7b1b266 100644 --- a/source/modules/juce_core/misc/juce_ConsoleApplication.h +++ b/source/modules/juce_core/misc/juce_ConsoleApplication.h @@ -264,7 +264,7 @@ struct ConsoleApplication String longDescription; /** The actual command that should be invoked to perform this action. */ - std::function command; + std::function command; }; //============================================================================== diff --git a/source/modules/juce_core/misc/juce_RuntimePermissions.h b/source/modules/juce_core/misc/juce_RuntimePermissions.h index d7a9a4408..caf080327 100644 --- a/source/modules/juce_core/misc/juce_RuntimePermissions.h +++ b/source/modules/juce_core/misc/juce_RuntimePermissions.h @@ -91,7 +91,7 @@ public: //============================================================================== /** Function type of runtime permission request callbacks. */ - using Callback = std::function; + using Callback = std::function; //============================================================================== /** Call this method to request a runtime permission. diff --git a/source/modules/juce_core/native/juce_android_JNIHelpers.cpp b/source/modules/juce_core/native/juce_android_JNIHelpers.cpp index 06b6d946c..537346914 100644 --- a/source/modules/juce_core/native/juce_android_JNIHelpers.cpp +++ b/source/modules/juce_core/native/juce_android_JNIHelpers.cpp @@ -620,7 +620,7 @@ class ActivityLauncher : public FragmentOverlay public: ActivityLauncher (const LocalRef& intentToUse, int requestCodeToUse, - std::function)> && callbackToUse) + std::function)> && callbackToUse) : intent (intentToUse), requestCode (requestCodeToUse), callback (std::move (callbackToUse)) {} @@ -642,11 +642,11 @@ public: private: GlobalRef intent; int requestCode; - std::function)> callback; + std::function)> callback; }; void startAndroidActivityForResult (const LocalRef& intent, int requestCode, - std::function)> && callback) + std::function)> && callback) { auto* activityLauncher = new ActivityLauncher (intent, requestCode, std::move (callback)); activityLauncher->open(); diff --git a/source/modules/juce_core/native/juce_android_JNIHelpers.h b/source/modules/juce_core/native/juce_android_JNIHelpers.h index 29b0fbdee..9e606ba58 100644 --- a/source/modules/juce_core/native/juce_android_JNIHelpers.h +++ b/source/modules/juce_core/native/juce_android_JNIHelpers.h @@ -983,7 +983,7 @@ public: //============================================================================== // Allows you to start an activity without requiring to have an activity void startAndroidActivityForResult (const LocalRef& intent, int requestCode, - std::function)> && callback); + std::function)> && callback); //============================================================================== bool androidHasSystemFeature (const String& property); diff --git a/source/modules/juce_core/network/juce_Socket.cpp b/source/modules/juce_core/network/juce_Socket.cpp index 5c5530ce7..64168aa72 100644 --- a/source/modules/juce_core/network/juce_Socket.cpp +++ b/source/modules/juce_core/network/juce_Socket.cpp @@ -280,7 +280,7 @@ namespace SocketHelpers if (! lock.isLocked()) return -1; - auto hasErrorOccurred = [&handle] () -> bool + auto hasErrorOccurred = [&handle]() -> bool { auto h = (SocketHandle) handle.load(); diff --git a/source/modules/juce_core/text/juce_CharacterFunctions.h b/source/modules/juce_core/text/juce_CharacterFunctions.h index 12bd7a05c..76c9c5c7b 100644 --- a/source/modules/juce_core/text/juce_CharacterFunctions.h +++ b/source/modules/juce_core/text/juce_CharacterFunctions.h @@ -343,7 +343,7 @@ public: c = *text; - auto writeExponentDigits = [](int exponent, char* destination) + auto writeExponentDigits = [] (int exponent, char* destination) { auto exponentDivisor = 100; diff --git a/source/modules/juce_core/text/juce_String.cpp b/source/modules/juce_core/text/juce_String.cpp index 43047eba2..bb1795be2 100644 --- a/source/modules/juce_core/text/juce_String.cpp +++ b/source/modules/juce_core/text/juce_String.cpp @@ -812,9 +812,10 @@ namespace StringHelpers } } -String& String::operator+= (const int number) { return StringHelpers::operationAddAssign (*this, number); } -String& String::operator+= (const int64 number) { return StringHelpers::operationAddAssign (*this, number); } -String& String::operator+= (const uint64 number) { return StringHelpers::operationAddAssign (*this, number); } +String& String::operator+= (const int number) { return StringHelpers::operationAddAssign (*this, number); } +String& String::operator+= (const long number) { return StringHelpers::operationAddAssign (*this, number); } +String& String::operator+= (const int64 number) { return StringHelpers::operationAddAssign (*this, number); } +String& String::operator+= (const uint64 number) { return StringHelpers::operationAddAssign (*this, number); } //============================================================================== JUCE_API String JUCE_CALLTYPE operator+ (const char* s1, const String& s2) { String s (s1); return s += s2; } diff --git a/source/modules/juce_core/unit_tests/juce_UnitTest.cpp b/source/modules/juce_core/unit_tests/juce_UnitTest.cpp index bc1a2a65b..c80ecd82e 100644 --- a/source/modules/juce_core/unit_tests/juce_UnitTest.cpp +++ b/source/modules/juce_core/unit_tests/juce_UnitTest.cpp @@ -199,15 +199,11 @@ void UnitTestRunner::beginNewTest (UnitTest* const test, const String& subCatego endTest(); currentTest = test; - auto* r = new TestResult(); - results.add (r); - r->unitTestName = test->getName(); - r->subcategoryName = subCategory; - r->passes = 0; - r->failures = 0; + auto testName = test->getName(); + results.add (new TestResult (testName, subCategory)); logMessage ("-----------------------------------------------------------------"); - logMessage ("Starting test: " + r->unitTestName + " / " + subCategory + "..."); + logMessage ("Starting test: " + testName + " / " + subCategory + "..."); resultsUpdated(); } @@ -216,6 +212,8 @@ void UnitTestRunner::endTest() { if (auto* r = results.getLast()) { + r->endTime = Time::getCurrentTime(); + if (r->failures > 0) { String m ("FAILED!! "); diff --git a/source/modules/juce_core/unit_tests/juce_UnitTest.h b/source/modules/juce_core/unit_tests/juce_UnitTest.h index ca42ad109..e843fe539 100644 --- a/source/modules/juce_core/unit_tests/juce_UnitTest.h +++ b/source/modules/juce_core/unit_tests/juce_UnitTest.h @@ -376,18 +376,31 @@ public: */ struct TestResult { + TestResult() = default; + + explicit TestResult (const String& name, const String& subCategory) + : unitTestName (name), + subcategoryName (subCategory) + { + } + /** The main name of this test (i.e. the name of the UnitTest object being run). */ String unitTestName; /** The name of the current subcategory (i.e. the name that was set when UnitTest::beginTest() was called). */ String subcategoryName; /** The number of UnitTest::expect() calls that succeeded. */ - int passes; + int passes = 0; /** The number of UnitTest::expect() calls that failed. */ - int failures; + int failures = 0; /** A list of messages describing the failed tests. */ StringArray messages; + + /** The time at which this test was started. */ + Time startTime = Time::getCurrentTime(); + /** The time at which this test ended. */ + Time endTime; }; /** Returns the number of TestResult objects that have been performed. diff --git a/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.cpp b/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.cpp index a49b69d36..c770d1902 100644 --- a/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.cpp +++ b/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.h b/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.h index 44cdc4c8a..d1e487e5c 100644 --- a/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.h +++ b/source/modules/juce_data_structures/app_properties/juce_ApplicationProperties.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.cpp b/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.cpp index 45aeefe54..7b437cb71 100644 --- a/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.cpp +++ b/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.h b/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.h index 130a2a972..448cc7f8a 100644 --- a/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.h +++ b/source/modules/juce_data_structures/app_properties/juce_PropertiesFile.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/juce_data_structures.cpp b/source/modules/juce_data_structures/juce_data_structures.cpp index 8e081b5d9..9ad4bbc61 100644 --- a/source/modules/juce_data_structures/juce_data_structures.cpp +++ b/source/modules/juce_data_structures/juce_data_structures.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/juce_data_structures.h b/source/modules/juce_data_structures/juce_data_structures.h index 68215aa91..22cf0631c 100644 --- a/source/modules/juce_data_structures/juce_data_structures.h +++ b/source/modules/juce_data_structures/juce_data_structures.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,7 +28,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_data_structures/undomanager/juce_UndoManager.cpp b/source/modules/juce_data_structures/undomanager/juce_UndoManager.cpp index b9acf8f63..69097965b 100644 --- a/source/modules/juce_data_structures/undomanager/juce_UndoManager.cpp +++ b/source/modules/juce_data_structures/undomanager/juce_UndoManager.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/undomanager/juce_UndoManager.h b/source/modules/juce_data_structures/undomanager/juce_UndoManager.h index 813dfb98e..6ebfc56cf 100644 --- a/source/modules/juce_data_structures/undomanager/juce_UndoManager.h +++ b/source/modules/juce_data_structures/undomanager/juce_UndoManager.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/undomanager/juce_UndoableAction.h b/source/modules/juce_data_structures/undomanager/juce_UndoableAction.h index 58ccae79d..1aee24c19 100644 --- a/source/modules/juce_data_structures/undomanager/juce_UndoableAction.h +++ b/source/modules/juce_data_structures/undomanager/juce_UndoableAction.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_CachedValue.cpp b/source/modules/juce_data_structures/values/juce_CachedValue.cpp index 41fbb40ad..8d22ccac8 100644 --- a/source/modules/juce_data_structures/values/juce_CachedValue.cpp +++ b/source/modules/juce_data_structures/values/juce_CachedValue.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_CachedValue.h b/source/modules/juce_data_structures/values/juce_CachedValue.h index 47f37d10e..f0bcd45a4 100644 --- a/source/modules/juce_data_structures/values/juce_CachedValue.h +++ b/source/modules/juce_data_structures/values/juce_CachedValue.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_Value.cpp b/source/modules/juce_data_structures/values/juce_Value.cpp index c4ee8fa2b..496527e52 100644 --- a/source/modules/juce_data_structures/values/juce_Value.cpp +++ b/source/modules/juce_data_structures/values/juce_Value.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_Value.h b/source/modules/juce_data_structures/values/juce_Value.h index 041285eee..90babe87b 100644 --- a/source/modules/juce_data_structures/values/juce_Value.h +++ b/source/modules/juce_data_structures/values/juce_Value.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueTree.cpp b/source/modules/juce_data_structures/values/juce_ValueTree.cpp index e7a3fed35..088f74d0e 100644 --- a/source/modules/juce_data_structures/values/juce_ValueTree.cpp +++ b/source/modules/juce_data_structures/values/juce_ValueTree.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueTree.h b/source/modules/juce_data_structures/values/juce_ValueTree.h index 133906b78..27e1826a9 100644 --- a/source/modules/juce_data_structures/values/juce_ValueTree.h +++ b/source/modules/juce_data_structures/values/juce_ValueTree.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.cpp b/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.cpp index 184a173c4..1fb36fe83 100644 --- a/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.cpp +++ b/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.h b/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.h index 6d6b55385..095dadd07 100644 --- a/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.h +++ b/source/modules/juce_data_structures/values/juce_ValueTreeSynchroniser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueWithDefault.cpp b/source/modules/juce_data_structures/values/juce_ValueWithDefault.cpp index e8a406e43..38a7539ca 100644 --- a/source/modules/juce_data_structures/values/juce_ValueWithDefault.cpp +++ b/source/modules/juce_data_structures/values/juce_ValueWithDefault.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_data_structures/values/juce_ValueWithDefault.h b/source/modules/juce_data_structures/values/juce_ValueWithDefault.h index af3ea128d..8160cdda6 100644 --- a/source/modules/juce_data_structures/values/juce_ValueWithDefault.h +++ b/source/modules/juce_data_structures/values/juce_ValueWithDefault.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_events/juce_events.cpp b/source/modules/juce_events/juce_events.cpp index 943e7073c..884db8d74 100644 --- a/source/modules/juce_events/juce_events.cpp +++ b/source/modules/juce_events/juce_events.cpp @@ -35,7 +35,7 @@ #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1 #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1 -#if JUCE_USE_WINRT_MIDI || JUCE_USE_WINRT_WEBVIEW +#if JUCE_USE_WINRT_MIDI || JUCE_USE_WIN_WEBVIEW2 #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1 #endif diff --git a/source/modules/juce_events/juce_events.h b/source/modules/juce_events/juce_events.h index 6dc53bdca..1ff79b3f3 100644 --- a/source/modules/juce_events/juce_events.h +++ b/source/modules/juce_events/juce_events.h @@ -25,7 +25,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_events/native/juce_linux_EventLoop.h b/source/modules/juce_events/native/juce_linux_EventLoop.h index c91294c91..e2be5da55 100644 --- a/source/modules/juce_events/native/juce_linux_EventLoop.h +++ b/source/modules/juce_events/native/juce_linux_EventLoop.h @@ -38,7 +38,7 @@ namespace LinuxEventLoop file descriptor. The possible values for this are defined in */ - void registerFdCallback (int fd, std::function readCallback, short eventMask = 1 /*POLLIN*/); + void registerFdCallback (int fd, std::function readCallback, short eventMask = 1 /*POLLIN*/); /** Unregisters a previously registered file descriptor. diff --git a/source/modules/juce_events/native/juce_linux_Messaging.cpp b/source/modules/juce_events/native/juce_linux_Messaging.cpp index a45862e2e..4aa449170 100644 --- a/source/modules/juce_events/native/juce_linux_Messaging.cpp +++ b/source/modules/juce_events/native/juce_linux_Messaging.cpp @@ -117,7 +117,7 @@ public: fdReadCallbacks.reserve (16); } - void registerFdCallback (int fd, std::function&& cb, short eventMask) + void registerFdCallback (int fd, std::function&& cb, short eventMask) { const ScopedLock sl (lock); @@ -145,7 +145,7 @@ public: } { - auto removePredicate = [=] (const std::pair>& cb) { return cb.first == fd; }; + auto removePredicate = [=] (const std::pair>& cb) { return cb.first == fd; }; fdReadCallbacks.erase (std::remove_if (std::begin (fdReadCallbacks), std::end (fdReadCallbacks), removePredicate), std::end (fdReadCallbacks)); @@ -211,7 +211,7 @@ public: poll (&pfds.front(), static_cast (pfds.size()), timeoutMs); } - std::vector>> getFdReadCallbacks() + std::vector>> getFdReadCallbacks() { const ScopedLock sl (lock); return fdReadCallbacks; @@ -223,7 +223,7 @@ public: private: CriticalSection lock; - std::vector>> fdReadCallbacks; + std::vector>> fdReadCallbacks; std::vector pfds; bool shouldDeferModifyingReadCallbacks = false; @@ -311,7 +311,7 @@ bool MessageManager::dispatchNextMessageOnSystemQueue (bool returnIfNoPendingMes } //============================================================================== -void LinuxEventLoop::registerFdCallback (int fd, std::function readCallback, short eventMask) +void LinuxEventLoop::registerFdCallback (int fd, std::function readCallback, short eventMask) { if (auto* runLoop = InternalRunLoop::getInstanceWithoutCreating()) runLoop->registerFdCallback (fd, std::move (readCallback), eventMask); @@ -325,7 +325,7 @@ void LinuxEventLoop::unregisterFdCallback (int fd) } // namespace juce -JUCE_API std::vector>> getFdReadCallbacks() +JUCE_API std::vector>> getFdReadCallbacks() { using namespace juce; diff --git a/source/modules/juce_events/timers/juce_Timer.cpp b/source/modules/juce_events/timers/juce_Timer.cpp index 593dc3e03..85e139864 100644 --- a/source/modules/juce_events/timers/juce_Timer.cpp +++ b/source/modules/juce_events/timers/juce_Timer.cpp @@ -187,7 +187,7 @@ private: // Trying to add a timer that's already here - shouldn't get to this point, // so if you get this assertion, let me know! jassert (std::find_if (timers.begin(), timers.end(), - [t](TimerCountdown i) { return i.timer == t; }) == timers.end()); + [t] (TimerCountdown i) { return i.timer == t; }) == timers.end()); auto pos = timers.size(); diff --git a/source/modules/juce_graphics/colour/juce_Colour.cpp b/source/modules/juce_graphics/colour/juce_Colour.cpp index 1fc985684..1826cab21 100644 --- a/source/modules/juce_graphics/colour/juce_Colour.cpp +++ b/source/modules/juce_graphics/colour/juce_Colour.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_Colour.h b/source/modules/juce_graphics/colour/juce_Colour.h index f90c0c4bb..82e232923 100644 --- a/source/modules/juce_graphics/colour/juce_Colour.h +++ b/source/modules/juce_graphics/colour/juce_Colour.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_ColourGradient.cpp b/source/modules/juce_graphics/colour/juce_ColourGradient.cpp index 6ce95332d..95c4020e5 100644 --- a/source/modules/juce_graphics/colour/juce_ColourGradient.cpp +++ b/source/modules/juce_graphics/colour/juce_ColourGradient.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_ColourGradient.h b/source/modules/juce_graphics/colour/juce_ColourGradient.h index e229dafc4..f49f27b74 100644 --- a/source/modules/juce_graphics/colour/juce_ColourGradient.h +++ b/source/modules/juce_graphics/colour/juce_ColourGradient.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_Colours.cpp b/source/modules/juce_graphics/colour/juce_Colours.cpp index de157136e..03242a657 100644 --- a/source/modules/juce_graphics/colour/juce_Colours.cpp +++ b/source/modules/juce_graphics/colour/juce_Colours.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_Colours.h b/source/modules/juce_graphics/colour/juce_Colours.h index 4a1bdcd31..78d51d209 100644 --- a/source/modules/juce_graphics/colour/juce_Colours.h +++ b/source/modules/juce_graphics/colour/juce_Colours.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_FillType.cpp b/source/modules/juce_graphics/colour/juce_FillType.cpp index 922f4da58..4e13e404d 100644 --- a/source/modules/juce_graphics/colour/juce_FillType.cpp +++ b/source/modules/juce_graphics/colour/juce_FillType.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_FillType.h b/source/modules/juce_graphics/colour/juce_FillType.h index 9d018b86f..6c8ceb51d 100644 --- a/source/modules/juce_graphics/colour/juce_FillType.h +++ b/source/modules/juce_graphics/colour/juce_FillType.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/colour/juce_PixelFormats.h b/source/modules/juce_graphics/colour/juce_PixelFormats.h index 515e04e00..2f7f7bf4e 100644 --- a/source/modules/juce_graphics/colour/juce_PixelFormats.h +++ b/source/modules/juce_graphics/colour/juce_PixelFormats.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_GraphicsContext.cpp b/source/modules/juce_graphics/contexts/juce_GraphicsContext.cpp index b53f876b2..12a644309 100644 --- a/source/modules/juce_graphics/contexts/juce_GraphicsContext.cpp +++ b/source/modules/juce_graphics/contexts/juce_GraphicsContext.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_GraphicsContext.h b/source/modules/juce_graphics/contexts/juce_GraphicsContext.h index 2a3413d45..3de34ad63 100644 --- a/source/modules/juce_graphics/contexts/juce_GraphicsContext.h +++ b/source/modules/juce_graphics/contexts/juce_GraphicsContext.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsContext.h b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsContext.h index 3e11a91d9..a647b886d 100644 --- a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsContext.h +++ b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsContext.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp index 6273a4d92..3b0fe2890 100644 --- a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp +++ b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h index fd88a22d2..d8e3509e9 100644 --- a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h +++ b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsPostScriptRenderer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp index c54125124..84ff197ee 100644 --- a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp +++ b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h index 85c7cf61e..eec16e909 100644 --- a/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h +++ b/source/modules/juce_graphics/contexts/juce_LowLevelGraphicsSoftwareRenderer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/effects/juce_DropShadowEffect.cpp b/source/modules/juce_graphics/effects/juce_DropShadowEffect.cpp index ed6797b17..28959dcf1 100644 --- a/source/modules/juce_graphics/effects/juce_DropShadowEffect.cpp +++ b/source/modules/juce_graphics/effects/juce_DropShadowEffect.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/effects/juce_DropShadowEffect.h b/source/modules/juce_graphics/effects/juce_DropShadowEffect.h index b546e7c21..db8e0b9b0 100644 --- a/source/modules/juce_graphics/effects/juce_DropShadowEffect.h +++ b/source/modules/juce_graphics/effects/juce_DropShadowEffect.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/effects/juce_GlowEffect.cpp b/source/modules/juce_graphics/effects/juce_GlowEffect.cpp index 4919212ec..c8c0ee209 100644 --- a/source/modules/juce_graphics/effects/juce_GlowEffect.cpp +++ b/source/modules/juce_graphics/effects/juce_GlowEffect.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/effects/juce_GlowEffect.h b/source/modules/juce_graphics/effects/juce_GlowEffect.h index 266e32074..340c4f143 100644 --- a/source/modules/juce_graphics/effects/juce_GlowEffect.h +++ b/source/modules/juce_graphics/effects/juce_GlowEffect.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/effects/juce_ImageEffectFilter.h b/source/modules/juce_graphics/effects/juce_ImageEffectFilter.h index 034705574..05494e8f3 100644 --- a/source/modules/juce_graphics/effects/juce_ImageEffectFilter.h +++ b/source/modules/juce_graphics/effects/juce_ImageEffectFilter.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_AttributedString.cpp b/source/modules/juce_graphics/fonts/juce_AttributedString.cpp index bcc47eb3b..2a2ef4b7c 100644 --- a/source/modules/juce_graphics/fonts/juce_AttributedString.cpp +++ b/source/modules/juce_graphics/fonts/juce_AttributedString.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_AttributedString.h b/source/modules/juce_graphics/fonts/juce_AttributedString.h index c39427cee..9721939a0 100644 --- a/source/modules/juce_graphics/fonts/juce_AttributedString.h +++ b/source/modules/juce_graphics/fonts/juce_AttributedString.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_CustomTypeface.cpp b/source/modules/juce_graphics/fonts/juce_CustomTypeface.cpp index fcf6c2542..4a42cf84c 100644 --- a/source/modules/juce_graphics/fonts/juce_CustomTypeface.cpp +++ b/source/modules/juce_graphics/fonts/juce_CustomTypeface.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_CustomTypeface.h b/source/modules/juce_graphics/fonts/juce_CustomTypeface.h index 7d0bd6699..8fdacda95 100644 --- a/source/modules/juce_graphics/fonts/juce_CustomTypeface.h +++ b/source/modules/juce_graphics/fonts/juce_CustomTypeface.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_Font.cpp b/source/modules/juce_graphics/fonts/juce_Font.cpp index d95708e49..2612cd4a3 100644 --- a/source/modules/juce_graphics/fonts/juce_Font.cpp +++ b/source/modules/juce_graphics/fonts/juce_Font.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -72,24 +79,26 @@ public: Typeface::Ptr findTypefaceFor (const Font& font) { - const ScopedReadLock slr (lock); - - auto faceName = font.getTypefaceName(); - auto faceStyle = font.getTypefaceStyle(); + const auto faceName = font.getTypefaceName(); + const auto faceStyle = font.getTypefaceStyle(); jassert (faceName.isNotEmpty()); - for (int i = faces.size(); --i >= 0;) { - CachedFace& face = faces.getReference(i); + const ScopedReadLock slr (lock); - if (face.typefaceName == faceName - && face.typefaceStyle == faceStyle - && face.typeface != nullptr - && face.typeface->isSuitableForFont (font)) + for (int i = faces.size(); --i >= 0;) { - face.lastUsageCount = ++counter; - return face.typeface; + CachedFace& face = faces.getReference(i); + + if (face.typefaceName == faceName + && face.typefaceStyle == faceStyle + && face.typeface != nullptr + && face.typeface->isSuitableForFont (font)) + { + face.lastUsageCount = ++counter; + return face.typeface; + } } } diff --git a/source/modules/juce_graphics/fonts/juce_Font.h b/source/modules/juce_graphics/fonts/juce_Font.h index 688caecea..c0d4da6b9 100644 --- a/source/modules/juce_graphics/fonts/juce_Font.h +++ b/source/modules/juce_graphics/fonts/juce_Font.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp b/source/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp index 3c1f0c68c..6830b37e2 100644 --- a/source/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp +++ b/source/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_GlyphArrangement.h b/source/modules/juce_graphics/fonts/juce_GlyphArrangement.h index 79aa43aa8..18500f536 100644 --- a/source/modules/juce_graphics/fonts/juce_GlyphArrangement.h +++ b/source/modules/juce_graphics/fonts/juce_GlyphArrangement.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_TextLayout.cpp b/source/modules/juce_graphics/fonts/juce_TextLayout.cpp index 09c4ca904..288676d00 100644 --- a/source/modules/juce_graphics/fonts/juce_TextLayout.cpp +++ b/source/modules/juce_graphics/fonts/juce_TextLayout.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_TextLayout.h b/source/modules/juce_graphics/fonts/juce_TextLayout.h index 864b23c5c..e466bf4d3 100644 --- a/source/modules/juce_graphics/fonts/juce_TextLayout.h +++ b/source/modules/juce_graphics/fonts/juce_TextLayout.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_Typeface.cpp b/source/modules/juce_graphics/fonts/juce_Typeface.cpp index b13015d58..8a5eae091 100644 --- a/source/modules/juce_graphics/fonts/juce_Typeface.cpp +++ b/source/modules/juce_graphics/fonts/juce_Typeface.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/fonts/juce_Typeface.h b/source/modules/juce_graphics/fonts/juce_Typeface.h index 9a42f6ced..cd6f9c6c1 100644 --- a/source/modules/juce_graphics/fonts/juce_Typeface.h +++ b/source/modules/juce_graphics/fonts/juce_Typeface.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_AffineTransform.cpp b/source/modules/juce_graphics/geometry/juce_AffineTransform.cpp index a5d113d64..b70945ef0 100644 --- a/source/modules/juce_graphics/geometry/juce_AffineTransform.cpp +++ b/source/modules/juce_graphics/geometry/juce_AffineTransform.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -179,9 +186,9 @@ AffineTransform AffineTransform::verticalFlip (float height) noexcept AffineTransform AffineTransform::inverted() const noexcept { - double determinant = (mat00 * mat11 - mat10 * mat01); + double determinant = getDeterminant(); - if (determinant != 0) + if (! approximatelyEqual (determinant, 0.0)) { determinant = 1.0 / determinant; diff --git a/source/modules/juce_graphics/geometry/juce_AffineTransform.h b/source/modules/juce_graphics/geometry/juce_AffineTransform.h index b605afdb9..f37ff5065 100644 --- a/source/modules/juce_graphics/geometry/juce_AffineTransform.h +++ b/source/modules/juce_graphics/geometry/juce_AffineTransform.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_BorderSize.h b/source/modules/juce_graphics/geometry/juce_BorderSize.h index d36219b6a..0fea60d31 100644 --- a/source/modules/juce_graphics/geometry/juce_BorderSize.h +++ b/source/modules/juce_graphics/geometry/juce_BorderSize.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_EdgeTable.cpp b/source/modules/juce_graphics/geometry/juce_EdgeTable.cpp index 9ea657358..123bfefc4 100644 --- a/source/modules/juce_graphics/geometry/juce_EdgeTable.cpp +++ b/source/modules/juce_graphics/geometry/juce_EdgeTable.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_EdgeTable.h b/source/modules/juce_graphics/geometry/juce_EdgeTable.h index 7e17a2876..8f474a53e 100644 --- a/source/modules/juce_graphics/geometry/juce_EdgeTable.h +++ b/source/modules/juce_graphics/geometry/juce_EdgeTable.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Line.h b/source/modules/juce_graphics/geometry/juce_Line.h index 0467c0d99..ad258e5fa 100644 --- a/source/modules/juce_graphics/geometry/juce_Line.h +++ b/source/modules/juce_graphics/geometry/juce_Line.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Parallelogram.h b/source/modules/juce_graphics/geometry/juce_Parallelogram.h index 47fa7c6a5..a8bde9d12 100644 --- a/source/modules/juce_graphics/geometry/juce_Parallelogram.h +++ b/source/modules/juce_graphics/geometry/juce_Parallelogram.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Path.cpp b/source/modules/juce_graphics/geometry/juce_Path.cpp index 10bc10735..a56f4b0f7 100644 --- a/source/modules/juce_graphics/geometry/juce_Path.cpp +++ b/source/modules/juce_graphics/geometry/juce_Path.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Path.h b/source/modules/juce_graphics/geometry/juce_Path.h index 7cc30469a..b9a5ee5f7 100644 --- a/source/modules/juce_graphics/geometry/juce_Path.h +++ b/source/modules/juce_graphics/geometry/juce_Path.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_PathIterator.cpp b/source/modules/juce_graphics/geometry/juce_PathIterator.cpp index ec3cd6eac..0141b0a15 100644 --- a/source/modules/juce_graphics/geometry/juce_PathIterator.cpp +++ b/source/modules/juce_graphics/geometry/juce_PathIterator.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -64,7 +71,7 @@ bool PathFlatteningIterator::next() { float type; - if (stackPos == stackBase) + if (stackPos == stackBase.get()) { if (source == path.data.end()) return false; @@ -129,7 +136,7 @@ bool PathFlatteningIterator::next() { ++subPathIndex; - closesSubPath = stackPos == stackBase + closesSubPath = stackPos == stackBase.get() && source != path.data.end() && *source == Path::closeSubPathMarker && x2 == subPathCloseX diff --git a/source/modules/juce_graphics/geometry/juce_PathIterator.h b/source/modules/juce_graphics/geometry/juce_PathIterator.h index c8b017b6c..7eb82088e 100644 --- a/source/modules/juce_graphics/geometry/juce_PathIterator.h +++ b/source/modules/juce_graphics/geometry/juce_PathIterator.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_PathStrokeType.cpp b/source/modules/juce_graphics/geometry/juce_PathStrokeType.cpp index 83cc3c78e..16852647c 100644 --- a/source/modules/juce_graphics/geometry/juce_PathStrokeType.cpp +++ b/source/modules/juce_graphics/geometry/juce_PathStrokeType.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_PathStrokeType.h b/source/modules/juce_graphics/geometry/juce_PathStrokeType.h index d882b25c7..268086f5e 100644 --- a/source/modules/juce_graphics/geometry/juce_PathStrokeType.h +++ b/source/modules/juce_graphics/geometry/juce_PathStrokeType.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Point.h b/source/modules/juce_graphics/geometry/juce_Point.h index 0e3624530..8b9086df7 100644 --- a/source/modules/juce_graphics/geometry/juce_Point.h +++ b/source/modules/juce_graphics/geometry/juce_Point.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_Rectangle.h b/source/modules/juce_graphics/geometry/juce_Rectangle.h index fbb297164..640d5f496 100644 --- a/source/modules/juce_graphics/geometry/juce_Rectangle.h +++ b/source/modules/juce_graphics/geometry/juce_Rectangle.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/geometry/juce_RectangleList.h b/source/modules/juce_graphics/geometry/juce_RectangleList.h index 5124dc06c..783caf2ff 100644 --- a/source/modules/juce_graphics/geometry/juce_RectangleList.h +++ b/source/modules/juce_graphics/geometry/juce_RectangleList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/image_formats/juce_GIFLoader.cpp b/source/modules/juce_graphics/image_formats/juce_GIFLoader.cpp index d8bd362f3..5875e4915 100644 --- a/source/modules/juce_graphics/image_formats/juce_GIFLoader.cpp +++ b/source/modules/juce_graphics/image_formats/juce_GIFLoader.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/image_formats/juce_JPEGLoader.cpp b/source/modules/juce_graphics/image_formats/juce_JPEGLoader.cpp index de2ee8d10..58a61bdce 100644 --- a/source/modules/juce_graphics/image_formats/juce_JPEGLoader.cpp +++ b/source/modules/juce_graphics/image_formats/juce_JPEGLoader.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/image_formats/juce_PNGLoader.cpp b/source/modules/juce_graphics/image_formats/juce_PNGLoader.cpp index 9eb3d390b..79418fb84 100644 --- a/source/modules/juce_graphics/image_formats/juce_PNGLoader.cpp +++ b/source/modules/juce_graphics/image_formats/juce_PNGLoader.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_Image.cpp b/source/modules/juce_graphics/images/juce_Image.cpp index 6820da317..43a0d3670 100644 --- a/source/modules/juce_graphics/images/juce_Image.cpp +++ b/source/modules/juce_graphics/images/juce_Image.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_Image.h b/source/modules/juce_graphics/images/juce_Image.h index ebf8314de..4170d3e33 100644 --- a/source/modules/juce_graphics/images/juce_Image.h +++ b/source/modules/juce_graphics/images/juce_Image.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageCache.cpp b/source/modules/juce_graphics/images/juce_ImageCache.cpp index 9606b7235..cfe2dfa42 100644 --- a/source/modules/juce_graphics/images/juce_ImageCache.cpp +++ b/source/modules/juce_graphics/images/juce_ImageCache.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageCache.h b/source/modules/juce_graphics/images/juce_ImageCache.h index d1f0a4580..09554cf40 100644 --- a/source/modules/juce_graphics/images/juce_ImageCache.h +++ b/source/modules/juce_graphics/images/juce_ImageCache.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.cpp b/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.cpp index b8ef819a4..396a1684d 100644 --- a/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.cpp +++ b/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.h b/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.h index 968cdaef5..2a79316ba 100644 --- a/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.h +++ b/source/modules/juce_graphics/images/juce_ImageConvolutionKernel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageFileFormat.cpp b/source/modules/juce_graphics/images/juce_ImageFileFormat.cpp index c12d681de..5d8eaca1a 100644 --- a/source/modules/juce_graphics/images/juce_ImageFileFormat.cpp +++ b/source/modules/juce_graphics/images/juce_ImageFileFormat.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/images/juce_ImageFileFormat.h b/source/modules/juce_graphics/images/juce_ImageFileFormat.h index a2b5bd37f..0749084d4 100644 --- a/source/modules/juce_graphics/images/juce_ImageFileFormat.h +++ b/source/modules/juce_graphics/images/juce_ImageFileFormat.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/juce_graphics.cpp b/source/modules/juce_graphics/juce_graphics.cpp index 7847eff2a..43ad4cc6a 100644 --- a/source/modules/juce_graphics/juce_graphics.cpp +++ b/source/modules/juce_graphics/juce_graphics.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/juce_graphics.h b/source/modules/juce_graphics/juce_graphics.h index 3b667b395..319a4541b 100644 --- a/source/modules/juce_graphics/juce_graphics.h +++ b/source/modules/juce_graphics/juce_graphics.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,7 +28,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_graphics/native/juce_RenderingHelpers.h b/source/modules/juce_graphics/native/juce_RenderingHelpers.h index 622c5decd..f2b550226 100644 --- a/source/modules/juce_graphics/native/juce_RenderingHelpers.h +++ b/source/modules/juce_graphics/native/juce_RenderingHelpers.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_android_Fonts.cpp b/source/modules/juce_graphics/native/juce_android_Fonts.cpp index 5686aa3c6..f6a2e0c02 100644 --- a/source/modules/juce_graphics/native/juce_android_Fonts.cpp +++ b/source/modules/juce_graphics/native/juce_android_Fonts.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -451,7 +458,7 @@ private: static File getCacheDirectory() { - static File result = [] () + static File result = []() { auto appContext = getAppContext(); diff --git a/source/modules/juce_graphics/native/juce_android_GraphicsContext.cpp b/source/modules/juce_graphics/native/juce_android_GraphicsContext.cpp index 16494f3e1..a49000f46 100644 --- a/source/modules/juce_graphics/native/juce_android_GraphicsContext.cpp +++ b/source/modules/juce_graphics/native/juce_android_GraphicsContext.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_android_IconHelpers.cpp b/source/modules/juce_graphics/native/juce_android_IconHelpers.cpp index 7f77c0d8e..b89815dd6 100644 --- a/source/modules/juce_graphics/native/juce_android_IconHelpers.cpp +++ b/source/modules/juce_graphics/native/juce_android_IconHelpers.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_freetype_Fonts.cpp b/source/modules/juce_graphics/native/juce_freetype_Fonts.cpp index e6c56f372..793fa44bc 100644 --- a/source/modules/juce_graphics/native/juce_freetype_Fonts.cpp +++ b/source/modules/juce_graphics/native/juce_freetype_Fonts.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_linux_Fonts.cpp b/source/modules/juce_graphics/native/juce_linux_Fonts.cpp index 0650e3c84..a5cfd5842 100644 --- a/source/modules/juce_graphics/native/juce_linux_Fonts.cpp +++ b/source/modules/juce_graphics/native/juce_linux_Fonts.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_linux_IconHelpers.cpp b/source/modules/juce_graphics/native/juce_linux_IconHelpers.cpp index 7f77c0d8e..b89815dd6 100644 --- a/source/modules/juce_graphics/native/juce_linux_IconHelpers.cpp +++ b/source/modules/juce_graphics/native/juce_linux_IconHelpers.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h index bcf1be28f..07f7b57cd 100644 --- a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h +++ b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -19,11 +26,46 @@ namespace juce { +namespace detail +{ + struct ColorSpaceDelete + { + void operator() (CGColorSpaceRef ptr) const noexcept { CGColorSpaceRelease (ptr); } + }; + + struct ContextDelete + { + void operator() (CGContextRef ptr) const noexcept { CGContextRelease (ptr); } + }; + + struct DataProviderDelete + { + void operator() (CGDataProviderRef ptr) const noexcept { CGDataProviderRelease (ptr); } + }; + + struct ImageDelete + { + void operator() (CGImageRef ptr) const noexcept { CGImageRelease (ptr); } + }; + + struct GradientDelete + { + void operator() (CGGradientRef ptr) const noexcept { CGGradientRelease (ptr); } + }; + + //============================================================================== + using ColorSpacePtr = std::unique_ptr; + using ContextPtr = std::unique_ptr; + using DataProviderPtr = std::unique_ptr; + using ImagePtr = std::unique_ptr; + using GradientPtr = std::unique_ptr; +} + //============================================================================== class CoreGraphicsContext : public LowLevelGraphicsContext { public: - CoreGraphicsContext (CGContextRef context, float flipHeight, float targetScale); + CoreGraphicsContext (CGContextRef context, float flipHeight); ~CoreGraphicsContext() override; //============================================================================== @@ -67,10 +109,10 @@ public: bool drawTextLayout (const AttributedString&, const Rectangle&) override; private: - CGContextRef context; + //============================================================================== + detail::ContextPtr context; const CGFloat flipHeight; - float targetScale; - CGColorSpaceRef rgbColourSpace, greyColourSpace; + detail::ColorSpacePtr rgbColourSpace, greyColourSpace; mutable Rectangle lastClipRect; mutable bool lastClipRectIsValid = false; @@ -87,7 +129,7 @@ private: CGFontRef fontRef = {}; CGAffineTransform textMatrix = CGAffineTransformIdentity, inverseTextMatrix = CGAffineTransformIdentity; - CGGradientRef gradient = {}; + detail::GradientPtr gradient = {}; }; std::unique_ptr state; diff --git a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm index 2349ed09a..37bf13094 100644 --- a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm +++ b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsContext.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -43,26 +50,23 @@ public: imageDataHolder->data.allocate (numComponents, clearImage); - CGColorSpaceRef colourSpace = (format == Image::SingleChannel) ? CGColorSpaceCreateDeviceGray() - : CGColorSpaceCreateDeviceRGB(); + auto colourSpace = detail::ColorSpacePtr { CGColorSpaceCreateWithName ((format == Image::SingleChannel) ? kCGColorSpaceGenericGrayGamma2_2 + : kCGColorSpaceSRGB) }; - context = CGBitmapContextCreate (imageDataHolder->data, (size_t) width, (size_t) height, 8, (size_t) lineStride, - colourSpace, getCGImageFlags (format)); - - CGColorSpaceRelease (colourSpace); + context = detail::ContextPtr { CGBitmapContextCreate (imageDataHolder->data, (size_t) width, (size_t) height, 8, (size_t) lineStride, + colourSpace.get(), getCGImageFlags (format)) }; } ~CoreGraphicsPixelData() override { freeCachedImageRef(); - CGContextRelease (context); } std::unique_ptr createLowLevelContext() override { freeCachedImageRef(); sendDataChangeMessage(); - return std::make_unique (context, height, 1.0f); + return std::make_unique (context.get(), height); } void initialiseBitmapData (Image::BitmapData& bitmap, int x, int y, Image::BitmapData::ReadWriteMode mode) override @@ -95,14 +99,14 @@ public: if (cgim != nullptr && cgim->cachedImageRef != nullptr) { - CGImageRetain (cgim->cachedImageRef); - return cgim->cachedImageRef; + CGImageRetain (cgim->cachedImageRef.get()); + return cgim->cachedImageRef.get(); } CGImageRef ref = createImage (juceImage, colourSpace, false); if (cgim != nullptr) - cgim->cachedImageRef = CGImageRetain (ref); + cgim->cachedImageRef.reset (CGImageRetain (ref)); return ref; } @@ -110,17 +114,17 @@ public: static CGImageRef createImage (const Image& juceImage, CGColorSpaceRef colourSpace, bool mustOutliveSource) { const Image::BitmapData srcData (juceImage, Image::BitmapData::readOnly); - CGDataProviderRef provider; + detail::DataProviderPtr provider; if (mustOutliveSource) { CFDataRef data = CFDataCreate (nullptr, (const UInt8*) srcData.data, (CFIndex) ((size_t) srcData.lineStride * (size_t) srcData.height)); - provider = CGDataProviderCreateWithCFData (data); + provider = detail::DataProviderPtr { CGDataProviderCreateWithCFData (data) }; CFRelease (data); } else { - auto* imageDataContainer = [](const Image& img) -> HeapBlockContainer::Ptr* + auto* imageDataContainer = [] (const Image& img) -> HeapBlockContainer::Ptr* { if (auto* cgim = dynamic_cast (img.getPixelData())) return new HeapBlockContainer::Ptr (cgim->imageDataHolder); @@ -128,10 +132,10 @@ public: return nullptr; } (juceImage); - provider = CGDataProviderCreateWithData (imageDataContainer, - srcData.data, - (size_t) srcData.lineStride * (size_t) srcData.height, - [] (void * __nullable info, const void*, size_t) { delete (HeapBlockContainer::Ptr*) info; }); + provider = detail::DataProviderPtr { CGDataProviderCreateWithData (imageDataContainer, + srcData.data, + (size_t) srcData.lineStride * (size_t) srcData.height, + [] (void * __nullable info, const void*, size_t) { delete (HeapBlockContainer::Ptr*) info; }) }; } CGImageRef imageRef = CGImageCreate ((size_t) srcData.width, @@ -139,16 +143,15 @@ public: 8, (size_t) srcData.pixelStride * 8, (size_t) srcData.lineStride, - colourSpace, getCGImageFlags (juceImage.getFormat()), provider, + colourSpace, getCGImageFlags (juceImage.getFormat()), provider.get(), nullptr, true, kCGRenderingIntentDefault); - CGDataProviderRelease (provider); return imageRef; } //============================================================================== - CGContextRef context; - CGImageRef cachedImageRef = {}; + detail::ContextPtr context; + detail::ImagePtr cachedImageRef; struct HeapBlockContainer : public ReferenceCountedObject { @@ -162,11 +165,7 @@ public: private: void freeCachedImageRef() { - if (cachedImageRef != CGImageRef()) - { - CGImageRelease (cachedImageRef); - cachedImageRef = {}; - } + cachedImageRef.reset(); } static CGBitmapInfo getCGImageFlags (const Image::PixelFormat& format) @@ -187,14 +186,13 @@ ImagePixelData::Ptr NativeImageType::create (Image::PixelFormat format, int widt } //============================================================================== -CoreGraphicsContext::CoreGraphicsContext (CGContextRef c, float h, float scale) +CoreGraphicsContext::CoreGraphicsContext (CGContextRef c, float h) : context (c), flipHeight (h), - targetScale (scale), state (new SavedState()) { - CGContextRetain (context); - CGContextSaveGState (context); + CGContextRetain (context.get()); + CGContextSaveGState (context.get()); bool enableFontSmoothing #if JUCE_DISABLE_COREGRAPHICS_FONT_SMOOTHING @@ -203,27 +201,24 @@ CoreGraphicsContext::CoreGraphicsContext (CGContextRef c, float h, float scale) = true; #endif - CGContextSetShouldSmoothFonts (context, enableFontSmoothing); - CGContextSetAllowsFontSmoothing (context, enableFontSmoothing); - CGContextSetShouldAntialias (context, true); - CGContextSetBlendMode (context, kCGBlendModeNormal); - rgbColourSpace = CGColorSpaceCreateDeviceRGB(); - greyColourSpace = CGColorSpaceCreateDeviceGray(); + CGContextSetShouldSmoothFonts (context.get(), enableFontSmoothing); + CGContextSetAllowsFontSmoothing (context.get(), enableFontSmoothing); + CGContextSetShouldAntialias (context.get(), true); + CGContextSetBlendMode (context.get(), kCGBlendModeNormal); + rgbColourSpace.reset (CGColorSpaceCreateWithName (kCGColorSpaceSRGB)); + greyColourSpace.reset (CGColorSpaceCreateWithName (kCGColorSpaceGenericGrayGamma2_2)); setFont (Font()); } CoreGraphicsContext::~CoreGraphicsContext() { - CGContextRestoreGState (context); - CGContextRelease (context); - CGColorSpaceRelease (rgbColourSpace); - CGColorSpaceRelease (greyColourSpace); + CGContextRestoreGState (context.get()); } //============================================================================== void CoreGraphicsContext::setOrigin (Point o) { - CGContextTranslateCTM (context, o.x, -o.y); + CGContextTranslateCTM (context.get(), o.x, -o.y); if (lastClipRectIsValid) lastClipRect.translate (-o.x, -o.y); @@ -238,20 +233,20 @@ void CoreGraphicsContext::addTransform (const AffineTransform& transform) lastClipRectIsValid = false; jassert (getPhysicalPixelScaleFactor() > 0.0f); - jassert (getPhysicalPixelScaleFactor() > 0.0f); } float CoreGraphicsContext::getPhysicalPixelScaleFactor() { - auto t = CGContextGetCTM (context); + auto t = CGContextGetUserSpaceToDeviceSpaceTransform (context.get()); + auto determinant = (t.a * t.d) - (t.c * t.b); - return targetScale * (float) (juce_hypot (t.a, t.c) + juce_hypot (t.b, t.d)) / 2.0f; + return (float) std::sqrt (std::abs (determinant)); } bool CoreGraphicsContext::clipToRectangle (const Rectangle& r) { - CGContextClipToRect (context, CGRectMake (r.getX(), flipHeight - r.getBottom(), - r.getWidth(), r.getHeight())); + CGContextClipToRect (context.get(), CGRectMake (r.getX(), flipHeight - r.getBottom(), + r.getWidth(), r.getHeight())); if (lastClipRectIsValid) { @@ -270,7 +265,7 @@ bool CoreGraphicsContext::clipToRectangleListWithoutTest (const RectangleList(); return false; @@ -283,7 +278,7 @@ bool CoreGraphicsContext::clipToRectangleListWithoutTest (const RectangleList CoreGraphicsContext::getClipBounds() const { if (! lastClipRectIsValid) { - auto bounds = CGRectIntegral (CGContextGetClipBoundingBox (context)); + auto bounds = CGRectIntegral (CGContextGetClipBoundingBox (context.get())); lastClipRectIsValid = true; lastClipRect.setBounds (roundToInt (bounds.origin.x), @@ -367,18 +361,18 @@ bool CoreGraphicsContext::isClipEmpty() const //============================================================================== void CoreGraphicsContext::saveState() { - CGContextSaveGState (context); + CGContextSaveGState (context.get()); stateStack.add (new SavedState (*state)); } void CoreGraphicsContext::restoreState() { - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); if (auto* top = stateStack.getLast()) { state.reset (top); - CGContextSetTextMatrix (context, state->textMatrix); + CGContextSetTextMatrix (context.get(), state->textMatrix); stateStack.removeLast (1, false); lastClipRectIsValid = false; @@ -392,13 +386,13 @@ void CoreGraphicsContext::restoreState() void CoreGraphicsContext::beginTransparencyLayer (float opacity) { saveState(); - CGContextSetAlpha (context, opacity); - CGContextBeginTransparencyLayer (context, nullptr); + CGContextSetAlpha (context.get(), opacity); + CGContextBeginTransparencyLayer (context.get(), nullptr); } void CoreGraphicsContext::endTransparencyLayer() { - CGContextEndTransparencyLayer (context); + CGContextEndTransparencyLayer (context.get()); restoreState(); } @@ -409,9 +403,9 @@ void CoreGraphicsContext::setFill (const FillType& fillType) if (fillType.isColour()) { - CGContextSetRGBFillColor (context, fillType.colour.getFloatRed(), fillType.colour.getFloatGreen(), + CGContextSetRGBFillColor (context.get(), fillType.colour.getFloatRed(), fillType.colour.getFloatGreen(), fillType.colour.getFloatBlue(), fillType.colour.getFloatAlpha()); - CGContextSetAlpha (context, 1.0f); + CGContextSetAlpha (context.get(), 1.0f); } } @@ -425,9 +419,9 @@ void CoreGraphicsContext::setInterpolationQuality (Graphics::ResamplingQuality q { switch (quality) { - case Graphics::lowResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationNone); return; - case Graphics::mediumResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationMedium); return; - case Graphics::highResamplingQuality: CGContextSetInterpolationQuality (context, kCGInterpolationHigh); return; + case Graphics::lowResamplingQuality: CGContextSetInterpolationQuality (context.get(), kCGInterpolationNone); return; + case Graphics::mediumResamplingQuality: CGContextSetInterpolationQuality (context.get(), kCGInterpolationMedium); return; + case Graphics::highResamplingQuality: CGContextSetInterpolationQuality (context.get(), kCGInterpolationHigh); return; default: return; } } @@ -447,36 +441,36 @@ void CoreGraphicsContext::fillCGRect (const CGRect& cgRect, bool replaceExisting { if (replaceExistingContents) { - CGContextSetBlendMode (context, kCGBlendModeCopy); + CGContextSetBlendMode (context.get(), kCGBlendModeCopy); fillCGRect (cgRect, false); - CGContextSetBlendMode (context, kCGBlendModeNormal); + CGContextSetBlendMode (context.get(), kCGBlendModeNormal); } else { if (state->fillType.isColour()) { - CGContextFillRect (context, cgRect); + CGContextFillRect (context.get(), cgRect); } else if (state->fillType.isGradient()) { - CGContextSaveGState (context); - CGContextClipToRect (context, cgRect); + CGContextSaveGState (context.get()); + CGContextClipToRect (context.get(), cgRect); drawGradient(); - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } else { - CGContextSaveGState (context); - CGContextClipToRect (context, cgRect); + CGContextSaveGState (context.get()); + CGContextClipToRect (context.get(), cgRect); drawImage (state->fillType.image, state->fillType.transform, true); - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } } } void CoreGraphicsContext::fillPath (const Path& path, const AffineTransform& transform) { - CGContextSaveGState (context); + CGContextSaveGState (context.get()); if (state->fillType.isColour()) { @@ -485,18 +479,18 @@ void CoreGraphicsContext::fillPath (const Path& path, const AffineTransform& tra createPath (path); if (path.isUsingNonZeroWinding()) - CGContextFillPath (context); + CGContextFillPath (context.get()); else - CGContextEOFillPath (context); + CGContextEOFillPath (context.get()); } else { createPath (path, transform); if (path.isUsingNonZeroWinding()) - CGContextClip (context); + CGContextClip (context.get()); else - CGContextEOClip (context); + CGContextEOClip (context.get()); if (state->fillType.isGradient()) drawGradient(); @@ -504,7 +498,7 @@ void CoreGraphicsContext::fillPath (const Path& path, const AffineTransform& tra drawImage (state->fillType.image, state->fillType.transform, true); } - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } void CoreGraphicsContext::drawImage (const Image& sourceImage, const AffineTransform& transform) @@ -517,12 +511,12 @@ void CoreGraphicsContext::drawImage (const Image& sourceImage, const AffineTrans auto iw = sourceImage.getWidth(); auto ih = sourceImage.getHeight(); - auto colourSpace = sourceImage.getFormat() == Image::PixelFormat::SingleChannel ? greyColourSpace - : rgbColourSpace; - CGImageRef image = CoreGraphicsPixelData::getCachedImageRef (sourceImage, colourSpace); + auto colourSpace = sourceImage.getFormat() == Image::PixelFormat::SingleChannel ? greyColourSpace.get() + : rgbColourSpace.get(); + auto image = detail::ImagePtr { CoreGraphicsPixelData::getCachedImageRef (sourceImage, colourSpace) }; - CGContextSaveGState (context); - CGContextSetAlpha (context, state->fillType.getOpacity()); + CGContextSaveGState (context.get()); + CGContextSetAlpha (context.get(), state->fillType.getOpacity()); flip(); applyTransform (AffineTransform::verticalFlip (ih).followedBy (transform)); @@ -531,18 +525,18 @@ void CoreGraphicsContext::drawImage (const Image& sourceImage, const AffineTrans if (fillEntireClipAsTiles) { #if JUCE_IOS - CGContextDrawTiledImage (context, imageRect, image); + CGContextDrawTiledImage (context.get(), imageRect, image.get()); #else // There's a bug in CGContextDrawTiledImage that makes it incredibly slow // if it's doing a transformation - it's quicker to just draw lots of images manually if (&CGContextDrawTiledImage != nullptr && transform.isOnlyTranslation()) { - CGContextDrawTiledImage (context, imageRect, image); + CGContextDrawTiledImage (context.get(), imageRect, image.get()); } else { // Fallback to manually doing a tiled fill - auto clip = CGRectIntegral (CGContextGetClipBoundingBox (context)); + auto clip = CGRectIntegral (CGContextGetClipBoundingBox (context.get())); int x = 0, y = 0; while (x > clip.origin.x) x -= iw; @@ -554,7 +548,7 @@ void CoreGraphicsContext::drawImage (const Image& sourceImage, const AffineTrans while (y < bottom) { for (int x2 = x; x2 < right; x2 += iw) - CGContextDrawImage (context, CGRectMake (x2, y, iw, ih), image); + CGContextDrawImage (context.get(), CGRectMake (x2, y, iw, ih), image.get()); y += ih; } @@ -563,11 +557,10 @@ void CoreGraphicsContext::drawImage (const Image& sourceImage, const AffineTrans } else { - CGContextDrawImage (context, imageRect, image); + CGContextDrawImage (context.get(), imageRect, image.get()); } - CGImageRelease (image); // (This causes a memory bug in iOS sim 3.0 - try upgrading to a later version if you hit this) - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } //============================================================================== @@ -589,21 +582,21 @@ void CoreGraphicsContext::fillRectList (const RectangleList& list) if (state->fillType.isColour()) { - CGContextFillRects (context, rects, num); + CGContextFillRects (context.get(), rects, num); } else if (state->fillType.isGradient()) { - CGContextSaveGState (context); - CGContextClipToRects (context, rects, num); + CGContextSaveGState (context.get()); + CGContextClipToRects (context.get(), rects, num); drawGradient(); - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } else { - CGContextSaveGState (context); - CGContextClipToRects (context, rects, num); + CGContextSaveGState (context.get()); + CGContextClipToRects (context.get(), rects, num); drawImage (state->fillType.image, state->fillType.transform, true); - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } } @@ -617,12 +610,12 @@ void CoreGraphicsContext::setFont (const Font& newFont) if (auto osxTypeface = dynamic_cast (state->font.getTypeface())) { state->fontRef = osxTypeface->fontRef; - CGContextSetFont (context, state->fontRef); - CGContextSetFontSize (context, state->font.getHeight() * osxTypeface->fontHeightToPointsFactor); + CGContextSetFont (context.get(), state->fontRef); + CGContextSetFontSize (context.get(), state->font.getHeight() * osxTypeface->fontHeightToPointsFactor); state->textMatrix = osxTypeface->renderingTransform; state->textMatrix.a *= state->font.getHorizontalScale(); - CGContextSetTextMatrix (context, state->textMatrix); + CGContextSetTextMatrix (context.get(), state->textMatrix); state->inverseTextMatrix = CGAffineTransformInvert (state->textMatrix); } } @@ -637,7 +630,7 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra { if (state->fontRef != nullptr && state->fillType.isColour()) { - auto cgTransformIsOnlyTranslation = [](CGAffineTransform t) + auto cgTransformIsOnlyTranslation = [] (CGAffineTransform t) { return t.a == 1.0f && t.d == 1.0f && t.b == 0.0f && t.c == 0.0f; }; @@ -649,24 +642,24 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra CGGlyph glyphs[1] = { (CGGlyph) glyphNumber }; CGPoint positions[1] = { { x, flipHeight - roundToInt (y) } }; - CGContextShowGlyphsAtPositions (context, glyphs, positions, 1); + CGContextShowGlyphsAtPositions (context.get(), glyphs, positions, 1); } else { - CGContextSaveGState (context); + CGContextSaveGState (context.get()); flip(); applyTransform (transform); - CGContextConcatCTM (context, state->inverseTextMatrix); + CGContextConcatCTM (context.get(), state->inverseTextMatrix); auto cgTransform = state->textMatrix; cgTransform.d = -cgTransform.d; - CGContextConcatCTM (context, cgTransform); + CGContextConcatCTM (context.get(), cgTransform); CGGlyph glyphs[1] = { (CGGlyph) glyphNumber }; CGPoint positions[1] = { { 0.0f, 0.0f } }; - CGContextShowGlyphsAtPositions (context, glyphs, positions, 1); + CGContextShowGlyphsAtPositions (context.get(), glyphs, positions, 1); - CGContextRestoreGState (context); + CGContextRestoreGState (context.get()); } } else @@ -682,7 +675,7 @@ void CoreGraphicsContext::drawGlyph (int glyphNumber, const AffineTransform& tra bool CoreGraphicsContext::drawTextLayout (const AttributedString& text, const Rectangle& area) { - CoreTextTypeLayout::drawToCGContext (text, area, context, (float) flipHeight); + CoreTextTypeLayout::drawToCGContext (text, area, context.get(), (float) flipHeight); return true; } @@ -694,27 +687,18 @@ CoreGraphicsContext::SavedState::SavedState() CoreGraphicsContext::SavedState::SavedState (const SavedState& other) : fillType (other.fillType), font (other.font), fontRef (other.fontRef), textMatrix (other.textMatrix), inverseTextMatrix (other.inverseTextMatrix), - gradient (other.gradient) + gradient (other.gradient.get()) { if (gradient != nullptr) - CGGradientRetain (gradient); + CGGradientRetain (gradient.get()); } -CoreGraphicsContext::SavedState::~SavedState() -{ - if (gradient != nullptr) - CGGradientRelease (gradient); -} +CoreGraphicsContext::SavedState::~SavedState() = default; void CoreGraphicsContext::SavedState::setFill (const FillType& newFill) { fillType = newFill; - - if (gradient != nullptr) - { - CGGradientRelease (gradient); - gradient = nullptr; - } + gradient = nullptr; } static CGGradientRef createGradient (const ColourGradient& g, CGColorSpaceRef colourSpace) @@ -746,37 +730,37 @@ void CoreGraphicsContext::drawGradient() { flip(); applyTransform (state->fillType.transform); - CGContextSetAlpha (context, state->fillType.getOpacity()); + CGContextSetAlpha (context.get(), state->fillType.getOpacity()); auto& g = *state->fillType.gradient; if (state->gradient == nullptr) - state->gradient = createGradient (g, rgbColourSpace); + state->gradient.reset (createGradient (g, rgbColourSpace.get())); auto p1 = convertToCGPoint (g.point1); auto p2 = convertToCGPoint (g.point2); if (g.isRadial) - CGContextDrawRadialGradient (context, state->gradient, p1, 0, p1, g.point1.getDistanceFrom (g.point2), + CGContextDrawRadialGradient (context.get(), state->gradient.get(), p1, 0, p1, g.point1.getDistanceFrom (g.point2), kCGGradientDrawsBeforeStartLocation | kCGGradientDrawsAfterEndLocation); else - CGContextDrawLinearGradient (context, state->gradient, p1, p2, + CGContextDrawLinearGradient (context.get(), state->gradient.get(), p1, p2, kCGGradientDrawsBeforeStartLocation | kCGGradientDrawsAfterEndLocation); } void CoreGraphicsContext::createPath (const Path& path) const { - CGContextBeginPath (context); + CGContextBeginPath (context.get()); for (Path::Iterator i (path); i.next();) { switch (i.elementType) { - case Path::Iterator::startNewSubPath: CGContextMoveToPoint (context, i.x1, i.y1); break; - case Path::Iterator::lineTo: CGContextAddLineToPoint (context, i.x1, i.y1); break; - case Path::Iterator::quadraticTo: CGContextAddQuadCurveToPoint (context, i.x1, i.y1, i.x2, i.y2); break; - case Path::Iterator::cubicTo: CGContextAddCurveToPoint (context, i.x1, i.y1, i.x2, i.y2, i.x3, i.y3); break; - case Path::Iterator::closePath: CGContextClosePath (context); break; + case Path::Iterator::startNewSubPath: CGContextMoveToPoint (context.get(), i.x1, i.y1); break; + case Path::Iterator::lineTo: CGContextAddLineToPoint (context.get(), i.x1, i.y1); break; + case Path::Iterator::quadraticTo: CGContextAddQuadCurveToPoint (context.get(), i.x1, i.y1, i.x2, i.y2); break; + case Path::Iterator::cubicTo: CGContextAddCurveToPoint (context.get(), i.x1, i.y1, i.x2, i.y2, i.x3, i.y3); break; + case Path::Iterator::closePath: CGContextClosePath (context.get()); break; default: jassertfalse; break; } } @@ -784,7 +768,7 @@ void CoreGraphicsContext::createPath (const Path& path) const void CoreGraphicsContext::createPath (const Path& path, const AffineTransform& transform) const { - CGContextBeginPath (context); + CGContextBeginPath (context.get()); for (Path::Iterator i (path); i.next();) { @@ -792,22 +776,22 @@ void CoreGraphicsContext::createPath (const Path& path, const AffineTransform& t { case Path::Iterator::startNewSubPath: transform.transformPoint (i.x1, i.y1); - CGContextMoveToPoint (context, i.x1, flipHeight - i.y1); + CGContextMoveToPoint (context.get(), i.x1, flipHeight - i.y1); break; case Path::Iterator::lineTo: transform.transformPoint (i.x1, i.y1); - CGContextAddLineToPoint (context, i.x1, flipHeight - i.y1); + CGContextAddLineToPoint (context.get(), i.x1, flipHeight - i.y1); break; case Path::Iterator::quadraticTo: transform.transformPoints (i.x1, i.y1, i.x2, i.y2); - CGContextAddQuadCurveToPoint (context, i.x1, flipHeight - i.y1, i.x2, flipHeight - i.y2); + CGContextAddQuadCurveToPoint (context.get(), i.x1, flipHeight - i.y1, i.x2, flipHeight - i.y2); break; case Path::Iterator::cubicTo: transform.transformPoints (i.x1, i.y1, i.x2, i.y2, i.x3, i.y3); - CGContextAddCurveToPoint (context, i.x1, flipHeight - i.y1, i.x2, flipHeight - i.y2, i.x3, flipHeight - i.y3); + CGContextAddCurveToPoint (context.get(), i.x1, flipHeight - i.y1, i.x2, flipHeight - i.y2, i.x3, flipHeight - i.y3); break; case Path::Iterator::closePath: - CGContextClosePath (context); break; + CGContextClosePath (context.get()); break; default: jassertfalse; break; @@ -817,7 +801,7 @@ void CoreGraphicsContext::createPath (const Path& path, const AffineTransform& t void CoreGraphicsContext::flip() const { - CGContextConcatCTM (context, CGAffineTransformMake (1, 0, 0, -1, 0, flipHeight)); + CGContextConcatCTM (context.get(), CGAffineTransformMake (1, 0, 0, -1, 0, flipHeight)); } void CoreGraphicsContext::applyTransform (const AffineTransform& transform) const @@ -829,7 +813,7 @@ void CoreGraphicsContext::applyTransform (const AffineTransform& transform) cons t.d = transform.mat11; t.tx = transform.mat02; t.ty = transform.mat12; - CGContextConcatCTM (context, t); + CGContextConcatCTM (context.get(), t); } //============================================================================== @@ -857,12 +841,11 @@ Image juce_loadWithCoreImage (InputStream& input) CGImageRef loadedImage = uiImage.CGImage; #else - auto provider = CGDataProviderCreateWithData (new MemoryBlockHolder::Ptr (memBlockHolder), - memBlockHolder->block.getData(), - memBlockHolder->block.getSize(), - [] (void * __nullable info, const void*, size_t) { delete (MemoryBlockHolder::Ptr*) info; }); - auto imageSource = CGImageSourceCreateWithDataProvider (provider, nullptr); - CGDataProviderRelease (provider); + auto provider = detail::DataProviderPtr { CGDataProviderCreateWithData (new MemoryBlockHolder::Ptr (memBlockHolder), + memBlockHolder->block.getData(), + memBlockHolder->block.getSize(), + [] (void * __nullable info, const void*, size_t) { delete (MemoryBlockHolder::Ptr*) info; }) }; + auto imageSource = CGImageSourceCreateWithDataProvider (provider.get(), nullptr); if (imageSource != nullptr) { @@ -885,8 +868,8 @@ Image juce_loadWithCoreImage (InputStream& input) auto cgImage = dynamic_cast (image.getPixelData()); jassert (cgImage != nullptr); // if USE_COREGRAPHICS_RENDERING is set, the CoreGraphicsPixelData class should have been used. - CGContextDrawImage (cgImage->context, convertToCGRect (image.getBounds()), loadedImage); - CGContextFlush (cgImage->context); + CGContextDrawImage (cgImage->context.get(), convertToCGRect (image.getBounds()), loadedImage); + CGContextFlush (cgImage->context.get()); #if ! JUCE_IOS CFRelease (loadedImage); @@ -909,9 +892,9 @@ Image juce_createImageFromCIImage (CIImage* im, int w, int h) { auto cgImage = new CoreGraphicsPixelData (Image::ARGB, w, h, false); - CIContext* cic = [CIContext contextWithCGContext: cgImage->context options: nil]; + CIContext* cic = [CIContext contextWithCGContext: cgImage->context.get() options: nil]; [cic drawImage: im inRect: CGRectMake (0, 0, w, h) fromRect: CGRectMake (0, 0, w, h)]; - CGContextFlush (cgImage->context); + CGContextFlush (cgImage->context.get()); return Image (*cgImage); } @@ -925,7 +908,7 @@ CGImageRef juce_createCoreGraphicsImage (const Image& juceImage, CGColorSpaceRef CGContextRef juce_getImageContext (const Image& image) { if (auto cgi = dynamic_cast (image.getPixelData())) - return cgi->context; + return cgi->context.get(); jassertfalse; return {}; @@ -954,15 +937,13 @@ CGContextRef juce_getImageContext (const Image& image) auto requiredSize = NSMakeSize (image.getWidth() / scaleFactor, image.getHeight() / scaleFactor); [im setSize: requiredSize]; - auto colourSpace = CGColorSpaceCreateDeviceRGB(); - auto imageRef = juce_createCoreGraphicsImage (image, colourSpace, true); - CGColorSpaceRelease (colourSpace); + auto colourSpace = detail::ColorSpacePtr { CGColorSpaceCreateWithName (kCGColorSpaceSRGB) }; + auto imageRef = detail::ImagePtr { juce_createCoreGraphicsImage (image, colourSpace.get(), true) }; - NSBitmapImageRep* imageRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef]; + NSBitmapImageRep* imageRep = [[NSBitmapImageRep alloc] initWithCGImage: imageRef.get()]; [imageRep setSize: requiredSize]; [im addRepresentation: imageRep]; [imageRep release]; - CGImageRelease (imageRef); return im; } } diff --git a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsHelpers.h b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsHelpers.h index 8e9c704a1..d4fa0c3cb 100644 --- a/source/modules/juce_graphics/native/juce_mac_CoreGraphicsHelpers.h +++ b/source/modules/juce_graphics/native/juce_mac_CoreGraphicsHelpers.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_mac_Fonts.mm b/source/modules/juce_graphics/native/juce_mac_Fonts.mm index a4019b238..b6a918ce1 100644 --- a/source/modules/juce_graphics/native/juce_mac_Fonts.mm +++ b/source/modules/juce_graphics/native/juce_mac_Fonts.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -201,7 +208,7 @@ namespace CoreTextTypeLayout static CFAttributedStringRef createCFAttributedString (const AttributedString& text) { #if JUCE_IOS - auto rgbColourSpace = CGColorSpaceCreateDeviceRGB(); + auto rgbColourSpace = CGColorSpaceCreateWithName (kCGColorSpaceSRGB); #endif auto attribString = CFAttributedStringCreateMutable (kCFAllocatorDefault, 0); diff --git a/source/modules/juce_graphics/native/juce_mac_IconHelpers.cpp b/source/modules/juce_graphics/native/juce_mac_IconHelpers.cpp index 3e900011c..b90ebb464 100644 --- a/source/modules/juce_graphics/native/juce_mac_IconHelpers.cpp +++ b/source/modules/juce_graphics/native/juce_mac_IconHelpers.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.cpp b/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.cpp index 6997c49ea..8ca777b53 100644 --- a/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.cpp +++ b/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h b/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h index 32015d7e8..6830621c6 100644 --- a/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h +++ b/source/modules/juce_graphics/native/juce_win32_Direct2DGraphicsContext.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp b/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp index c734d9acb..d9120430d 100644 --- a/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp +++ b/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeLayout.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeface.cpp b/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeface.cpp index 14a49ce1e..4f1abee9f 100644 --- a/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeface.cpp +++ b/source/modules/juce_graphics/native/juce_win32_DirectWriteTypeface.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_Fonts.cpp b/source/modules/juce_graphics/native/juce_win32_Fonts.cpp index 73e8db6f6..3f95a4562 100644 --- a/source/modules/juce_graphics/native/juce_win32_Fonts.cpp +++ b/source/modules/juce_graphics/native/juce_win32_Fonts.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/native/juce_win32_IconHelpers.cpp b/source/modules/juce_graphics/native/juce_win32_IconHelpers.cpp index 7f77c0d8e..b89815dd6 100644 --- a/source/modules/juce_graphics/native/juce_win32_IconHelpers.cpp +++ b/source/modules/juce_graphics/native/juce_win32_IconHelpers.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/placement/juce_Justification.h b/source/modules/juce_graphics/placement/juce_Justification.h index 10ab6e7cd..3e223633a 100644 --- a/source/modules/juce_graphics/placement/juce_Justification.h +++ b/source/modules/juce_graphics/placement/juce_Justification.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/placement/juce_RectanglePlacement.cpp b/source/modules/juce_graphics/placement/juce_RectanglePlacement.cpp index 9c31bb17e..8652727a8 100644 --- a/source/modules/juce_graphics/placement/juce_RectanglePlacement.cpp +++ b/source/modules/juce_graphics/placement/juce_RectanglePlacement.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_graphics/placement/juce_RectanglePlacement.h b/source/modules/juce_graphics/placement/juce_RectanglePlacement.h index 86e5705a3..bdb1b088e 100644 --- a/source/modules/juce_graphics/placement/juce_RectanglePlacement.h +++ b/source/modules/juce_graphics/placement/juce_RectanglePlacement.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/application/juce_Application.cpp b/source/modules/juce_gui_basics/application/juce_Application.cpp index 6dd3a0973..88eb39cdc 100644 --- a/source/modules/juce_gui_basics/application/juce_Application.cpp +++ b/source/modules/juce_gui_basics/application/juce_Application.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/application/juce_Application.h b/source/modules/juce_gui_basics/application/juce_Application.h index 9c7502e50..b2fb7ccf6 100644 --- a/source/modules/juce_gui_basics/application/juce_Application.h +++ b/source/modules/juce_gui_basics/application/juce_Application.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ArrowButton.cpp b/source/modules/juce_gui_basics/buttons/juce_ArrowButton.cpp index 8ed72841a..2ea421ad1 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ArrowButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_ArrowButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ArrowButton.h b/source/modules/juce_gui_basics/buttons/juce_ArrowButton.h index be2d4fe95..3c40d1c69 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ArrowButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_ArrowButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_Button.cpp b/source/modules/juce_gui_basics/buttons/juce_Button.cpp index 9132e824b..1df2d6e20 100644 --- a/source/modules/juce_gui_basics/buttons/juce_Button.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_Button.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_Button.h b/source/modules/juce_gui_basics/buttons/juce_Button.h index 2050226ad..341076004 100644 --- a/source/modules/juce_gui_basics/buttons/juce_Button.h +++ b/source/modules/juce_gui_basics/buttons/juce_Button.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_DrawableButton.cpp b/source/modules/juce_gui_basics/buttons/juce_DrawableButton.cpp index 27fecc9da..5fb3925af 100644 --- a/source/modules/juce_gui_basics/buttons/juce_DrawableButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_DrawableButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_DrawableButton.h b/source/modules/juce_gui_basics/buttons/juce_DrawableButton.h index bc5c5b74e..db9f09013 100644 --- a/source/modules/juce_gui_basics/buttons/juce_DrawableButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_DrawableButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.cpp b/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.cpp index 3354e1d4b..49975ac73 100644 --- a/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.h b/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.h index cd4bad7e5..ab10af19c 100644 --- a/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_HyperlinkButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ImageButton.cpp b/source/modules/juce_gui_basics/buttons/juce_ImageButton.cpp index 0371439bb..5e7f09efa 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ImageButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_ImageButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ImageButton.h b/source/modules/juce_gui_basics/buttons/juce_ImageButton.h index 802260501..ab20fd9fd 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ImageButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_ImageButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp b/source/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp index fcab0be62..314544638 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_ShapeButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ShapeButton.h b/source/modules/juce_gui_basics/buttons/juce_ShapeButton.h index b85579f4e..6863b1cab 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ShapeButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_ShapeButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_TextButton.cpp b/source/modules/juce_gui_basics/buttons/juce_TextButton.cpp index 58b701ac7..70427b523 100644 --- a/source/modules/juce_gui_basics/buttons/juce_TextButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_TextButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_TextButton.h b/source/modules/juce_gui_basics/buttons/juce_TextButton.h index 18724b41d..5ae1cffe0 100644 --- a/source/modules/juce_gui_basics/buttons/juce_TextButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_TextButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ToggleButton.cpp b/source/modules/juce_gui_basics/buttons/juce_ToggleButton.cpp index e7801aa4f..0c556c4e9 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ToggleButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_ToggleButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ToggleButton.h b/source/modules/juce_gui_basics/buttons/juce_ToggleButton.h index 4793e401d..3f27376b8 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ToggleButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_ToggleButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp b/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp index 92ee10ff2..3f44add39 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp +++ b/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.h b/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.h index ef563a54c..cc300637a 100644 --- a/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.h +++ b/source/modules/juce_gui_basics/buttons/juce_ToolbarButton.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandID.h b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandID.h index b7e8b095f..639b87a16 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandID.h +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandID.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.cpp b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.cpp index c9f50f5b6..13202350f 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.cpp +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h index a8a1ed10f..a1ef69297 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandInfo.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp index f5417003b..4940e52a8 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h index b8c345e9a..0965e3d5d 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandManager.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.cpp b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.cpp index 9d776a42c..c89056bad 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.cpp +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h index cedee28ef..5544b6275 100644 --- a/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h +++ b/source/modules/juce_gui_basics/commands/juce_ApplicationCommandTarget.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp b/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp index a476b9c53..cebdfe801 100644 --- a/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp +++ b/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h b/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h index 69d261de5..bb46a66cb 100644 --- a/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h +++ b/source/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_CachedComponentImage.h b/source/modules/juce_gui_basics/components/juce_CachedComponentImage.h index 86facc78c..09910be05 100644 --- a/source/modules/juce_gui_basics/components/juce_CachedComponentImage.h +++ b/source/modules/juce_gui_basics/components/juce_CachedComponentImage.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_Component.cpp b/source/modules/juce_gui_basics/components/juce_Component.cpp index 04c46ed07..80f48abe9 100644 --- a/source/modules/juce_gui_basics/components/juce_Component.cpp +++ b/source/modules/juce_gui_basics/components/juce_Component.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_Component.h b/source/modules/juce_gui_basics/components/juce_Component.h index 9af0b8059..37e91347c 100644 --- a/source/modules/juce_gui_basics/components/juce_Component.h +++ b/source/modules/juce_gui_basics/components/juce_Component.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_ComponentListener.cpp b/source/modules/juce_gui_basics/components/juce_ComponentListener.cpp index af188d7b8..479937d3a 100644 --- a/source/modules/juce_gui_basics/components/juce_ComponentListener.cpp +++ b/source/modules/juce_gui_basics/components/juce_ComponentListener.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_ComponentListener.h b/source/modules/juce_gui_basics/components/juce_ComponentListener.h index b49730d81..da8e56543 100644 --- a/source/modules/juce_gui_basics/components/juce_ComponentListener.h +++ b/source/modules/juce_gui_basics/components/juce_ComponentListener.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/components/juce_ModalComponentManager.cpp b/source/modules/juce_gui_basics/components/juce_ModalComponentManager.cpp index d583ffff0..ce106bbae 100644 --- a/source/modules/juce_gui_basics/components/juce_ModalComponentManager.cpp +++ b/source/modules/juce_gui_basics/components/juce_ModalComponentManager.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -279,7 +286,7 @@ int ModalComponentManager::runEventLoopForCurrentComponent() //============================================================================== struct LambdaCallback : public ModalComponentManager::Callback { - LambdaCallback (std::function fn) noexcept : function (fn) {} + LambdaCallback (std::function fn) noexcept : function (fn) {} void modalStateFinished (int result) override { @@ -287,12 +294,12 @@ struct LambdaCallback : public ModalComponentManager::Callback function (result); } - std::function function; + std::function function; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LambdaCallback) }; -ModalComponentManager::Callback* ModalCallbackFunction::create (std::function f) +ModalComponentManager::Callback* ModalCallbackFunction::create (std::function f) { return new LambdaCallback (f); } diff --git a/source/modules/juce_gui_basics/components/juce_ModalComponentManager.h b/source/modules/juce_gui_basics/components/juce_ModalComponentManager.h index d1d1e35f8..996c5754d 100644 --- a/source/modules/juce_gui_basics/components/juce_ModalComponentManager.h +++ b/source/modules/juce_gui_basics/components/juce_ModalComponentManager.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -162,7 +169,7 @@ public: @see ModalComponentManager::Callback */ - static ModalComponentManager::Callback* create (std::function); + static ModalComponentManager::Callback* create (std::function); //============================================================================== /** This is a utility function to create a ModalComponentManager::Callback that will diff --git a/source/modules/juce_gui_basics/desktop/juce_Desktop.cpp b/source/modules/juce_gui_basics/desktop/juce_Desktop.cpp index 17d54b438..dbadb8a62 100644 --- a/source/modules/juce_gui_basics/desktop/juce_Desktop.cpp +++ b/source/modules/juce_gui_basics/desktop/juce_Desktop.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/desktop/juce_Desktop.h b/source/modules/juce_gui_basics/desktop/juce_Desktop.h index f43e7d92f..a63bc72b8 100644 --- a/source/modules/juce_gui_basics/desktop/juce_Desktop.h +++ b/source/modules/juce_gui_basics/desktop/juce_Desktop.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/desktop/juce_Displays.cpp b/source/modules/juce_gui_basics/desktop/juce_Displays.cpp index 54be03081..30416b50f 100644 --- a/source/modules/juce_gui_basics/desktop/juce_Displays.cpp +++ b/source/modules/juce_gui_basics/desktop/juce_Displays.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/desktop/juce_Displays.h b/source/modules/juce_gui_basics/desktop/juce_Displays.h index 6d6d74754..8e140cf38 100644 --- a/source/modules/juce_gui_basics/desktop/juce_Displays.h +++ b/source/modules/juce_gui_basics/desktop/juce_Displays.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_Drawable.cpp b/source/modules/juce_gui_basics/drawables/juce_Drawable.cpp index 5e2929ac3..a9bcbb18d 100644 --- a/source/modules/juce_gui_basics/drawables/juce_Drawable.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_Drawable.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_Drawable.h b/source/modules/juce_gui_basics/drawables/juce_Drawable.h index 997f47fad..2cddd85d4 100644 --- a/source/modules/juce_gui_basics/drawables/juce_Drawable.h +++ b/source/modules/juce_gui_basics/drawables/juce_Drawable.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp index 941fa0b0d..ae4257df8 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.h b/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.h index 44e3f47b1..c76d0d21b 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableComposite.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp index 3d1363bc3..958444d4e 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableImage.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableImage.h b/source/modules/juce_gui_basics/drawables/juce_DrawableImage.h index d94415dfb..f2c7f4cca 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableImage.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableImage.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawablePath.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawablePath.cpp index 52e14bf75..fd9919de7 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawablePath.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawablePath.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawablePath.h b/source/modules/juce_gui_basics/drawables/juce_DrawablePath.h index 3163e3370..244850d50 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawablePath.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawablePath.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.cpp index 8256ee4a2..299df35ec 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h b/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h index 76b94ddca..3176e16c5 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableRectangle.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableShape.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawableShape.cpp index a5f6e1351..ca399dbda 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableShape.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableShape.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableShape.h b/source/modules/juce_gui_basics/drawables/juce_DrawableShape.h index 164dd82c8..f729c30e9 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableShape.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableShape.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableText.cpp b/source/modules/juce_gui_basics/drawables/juce_DrawableText.cpp index efcd5391f..e444ea334 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableText.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableText.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_DrawableText.h b/source/modules/juce_gui_basics/drawables/juce_DrawableText.h index 536607067..6eb84f935 100644 --- a/source/modules/juce_gui_basics/drawables/juce_DrawableText.h +++ b/source/modules/juce_gui_basics/drawables/juce_DrawableText.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/drawables/juce_SVGParser.cpp b/source/modules/juce_gui_basics/drawables/juce_SVGParser.cpp index 677a3f6aa..3918cfc92 100644 --- a/source/modules/juce_gui_basics/drawables/juce_SVGParser.cpp +++ b/source/modules/juce_gui_basics/drawables/juce_SVGParser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.cpp b/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.cpp index 69ae48f7f..eef5d0cca 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -69,7 +76,7 @@ private: void finish() { - MessageManager::callAsync ([this] () { owner.filesToSharePrepared(); }); + MessageManager::callAsync ([this]() { owner.filesToSharePrepared(); }); } ContentSharer& owner; @@ -129,7 +136,7 @@ private: void finish() { - MessageManager::callAsync ([this] () { owner.filesToSharePrepared(); }); + MessageManager::callAsync ([this]() { owner.filesToSharePrepared(); }); } ContentSharer& owner; @@ -144,7 +151,7 @@ ContentSharer::ContentSharer() {} ContentSharer::~ContentSharer() { clearSingletonInstance(); } void ContentSharer::shareFiles (const Array& files, - std::function callbackToUse) + std::function callbackToUse) { #if JUCE_CONTENT_SHARING startNewShare (callbackToUse); @@ -161,7 +168,7 @@ void ContentSharer::shareFiles (const Array& files, } #if JUCE_CONTENT_SHARING -void ContentSharer::startNewShare (std::function callbackToUse) +void ContentSharer::startNewShare (std::function callbackToUse) { // You should not start another sharing operation before the previous one is finished. // Forcibly stopping a previous sharing operation is rarely a good idea! @@ -182,7 +189,7 @@ void ContentSharer::startNewShare (std::function call #endif void ContentSharer::shareText (const String& text, - std::function callbackToUse) + std::function callbackToUse) { #if JUCE_CONTENT_SHARING startNewShare (callbackToUse); @@ -199,7 +206,7 @@ void ContentSharer::shareText (const String& text, } void ContentSharer::shareImages (const Array& images, - std::function callbackToUse, + std::function callbackToUse, ImageFileFormat* imageFileFormatToUse) { #if JUCE_CONTENT_SHARING @@ -232,7 +239,7 @@ void ContentSharer::filesToSharePrepared() #endif void ContentSharer::shareData (const MemoryBlock& mb, - std::function callbackToUse) + std::function callbackToUse) { #if JUCE_CONTENT_SHARING startNewShare (callbackToUse); @@ -249,7 +256,7 @@ void ContentSharer::sharingFinished (bool succeeded, const String& errorDescript { deleteTemporaryFiles(); - std::function cb; + std::function cb; std::swap (cb, callback); String error (errorDescription); diff --git a/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.h b/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.h index f7f6ce28d..e72e1499d 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_ContentSharer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -45,7 +52,7 @@ public: succeeded. Also, the optional error message is always empty on Android. */ void shareFiles (const Array& files, - std::function callback); + std::function callback); /** Shares the given text. @@ -55,7 +62,7 @@ public: succeeded. Also, the optional error message is always empty on Android. */ void shareText (const String& text, - std::function callback); + std::function callback); /** A convenience function to share an image. This is useful when you have images loaded in memory. The images will be written to temporary files first, so if @@ -79,7 +86,7 @@ public: succeeded. Also, the optional error message is always empty on Android. */ void shareImages (const Array& images, - std::function callback, + std::function callback, ImageFileFormat* imageFileFormatToUse = nullptr); /** A convenience function to share arbitrary data. The data will be written @@ -92,7 +99,7 @@ public: succeeded. Also, the optional error message is always empty on Android. */ void shareData (const MemoryBlock& mb, - std::function callback); + std::function callback); private: ContentSharer(); @@ -100,7 +107,7 @@ private: Array temporaryFiles; - std::function callback; + std::function callback; #if JUCE_CONTENT_SHARING struct Pimpl @@ -113,7 +120,7 @@ private: std::unique_ptr pimpl; Pimpl* createPimpl(); - void startNewShare (std::function); + void startNewShare (std::function); class ContentSharerNativeImpl; friend class ContentSharerNativeImpl; diff --git a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.cpp index cd6d6ad83..81907c9a1 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.h index 4d9267c2a..d09dac5be 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsDisplayComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.cpp b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.cpp index 71c5f7b10..6976073e8 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.h b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.h index 11fcca806..691155aea 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_DirectoryContentsList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.cpp index 8f39fa3b8..21c1c154a 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -105,16 +112,15 @@ FileBrowserComponent::FileBrowserComponent (int flags_, addAndMakeVisible (fileLabel); fileLabel.attachToComponent (&filenameBox, true); - goUpButton.reset (getLookAndFeel().createFileBrowserGoUpButton()); - addAndMakeVisible (goUpButton.get()); - goUpButton->onClick = [this] { goUp(); }; - goUpButton->setTooltip (TRANS ("Go up to parent directory")); - if (previewComp != nullptr) addAndMakeVisible (previewComp); lookAndFeelChanged(); + addAndMakeVisible (goUpButton.get()); + goUpButton->onClick = [this] { goUp(); }; + goUpButton->setTooltip (TRANS ("Go up to parent directory")); + setRoot (currentRoot); if (filename.isNotEmpty()) @@ -351,12 +357,17 @@ void FileBrowserComponent::resized() //============================================================================== void FileBrowserComponent::lookAndFeelChanged() { + goUpButton.reset (getLookAndFeel().createFileBrowserGoUpButton()); + currentPathBox.setColour (ComboBox::backgroundColourId, findColour (currentPathBoxBackgroundColourId)); currentPathBox.setColour (ComboBox::textColourId, findColour (currentPathBoxTextColourId)); currentPathBox.setColour (ComboBox::arrowColourId, findColour (currentPathBoxArrowColourId)); filenameBox.setColour (TextEditor::backgroundColourId, findColour (filenameBoxBackgroundColourId)); filenameBox.setColour (TextEditor::textColourId, findColour (filenameBoxTextColourId)); + + resized(); + repaint(); } //============================================================================== diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h index 5567108df..4d25ec327 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserListener.h b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserListener.h index 649337b57..e46890750 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserListener.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileBrowserListener.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.cpp index d9bd949dc..661c02a35 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -161,7 +168,7 @@ bool FileChooser::showDialog (const int flags, FilePreviewComponent* const previ } #endif -void FileChooser::launchAsync (int flags, std::function callback, +void FileChooser::launchAsync (int flags, std::function callback, FilePreviewComponent* previewComp) { // You must specify a callback when using launchAsync @@ -246,7 +253,7 @@ URL FileChooser::getURLResult() const void FileChooser::finished (const Array& asyncResults) { - std::function callback; + std::function callback; std::swap (callback, asyncCallback); results = asyncResults; diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.h b/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.h index d84e68266..48e8deb8b 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileChooser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -201,7 +208,7 @@ public: the lifetime of the file-chooser. */ void launchAsync (int flags, - std::function, + std::function, FilePreviewComponent* previewComponent = nullptr); //============================================================================== @@ -302,7 +309,7 @@ private: Array results; const bool useNativeDialogBox; const bool treatFilePackagesAsDirs; - std::function asyncCallback; + std::function asyncCallback; //============================================================================== void finished (const Array&); diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.cpp index 8e7420d10..40976976c 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h b/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h index e7c6cd5ed..5fbf6c88f 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileChooserDialogBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.cpp index 1897a6c7c..b3a85d429 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.h index f06061e5e..450e6c8e8 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileListComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h index ac2099748..135df17e5 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FilePreviewComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.cpp index cb7099794..9974a737d 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.h index 92eb77be0..26f21c07b 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileSearchPathListComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.cpp index 4bdae6116..b7c813692 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.h index f3ab92418..956bde235 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FileTreeComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.cpp index b6333fbcb..48512ba8c 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h index 885c49459..68042f17b 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_FilenameComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.cpp b/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.cpp index 72a9b4326..1b37973aa 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.cpp +++ b/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h b/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h index 784884e78..d2e625b8a 100644 --- a/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h +++ b/source/modules/juce_gui_basics/filebrowser/juce_ImagePreviewComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/juce_gui_basics.cpp b/source/modules/juce_gui_basics/juce_gui_basics.cpp index 5dcd3da74..a4d798606 100644 --- a/source/modules/juce_gui_basics/juce_gui_basics.cpp +++ b/source/modules/juce_gui_basics/juce_gui_basics.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/juce_gui_basics.h b/source/modules/juce_gui_basics/juce_gui_basics.h index 417137600..d20a707a3 100644 --- a/source/modules/juce_gui_basics/juce_gui_basics.h +++ b/source/modules/juce_gui_basics/juce_gui_basics.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,7 +28,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION diff --git a/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp b/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp index e5ce1f682..7c6b83fbf 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp +++ b/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.h b/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.h index dcfd06ebc..a10b26c69 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.h +++ b/source/modules/juce_gui_basics/keyboard/juce_CaretComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyListener.cpp b/source/modules/juce_gui_basics/keyboard/juce_KeyListener.cpp index 64483e1cd..6ec38c212 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyListener.cpp +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyListener.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyListener.h b/source/modules/juce_gui_basics/keyboard/juce_KeyListener.h index 2787fa061..d0f18fe91 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyListener.h +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyListener.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyPress.cpp b/source/modules/juce_gui_basics/keyboard/juce_KeyPress.cpp index b950e9a5b..732303cb9 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyPress.cpp +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyPress.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyPress.h b/source/modules/juce_gui_basics/keyboard/juce_KeyPress.h index 591f8a427..e9c1d0149 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyPress.h +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyPress.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.cpp b/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.cpp index 297ba800c..73b558df8 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.cpp +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.h b/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.h index 81ea33954..eccfc259a 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.h +++ b/source/modules/juce_gui_basics/keyboard/juce_KeyboardFocusTraverser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.cpp b/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.cpp index 01281f5f5..d636499e8 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.cpp +++ b/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.h b/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.h index 3141532c3..b4eb4488c 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.h +++ b/source/modules/juce_gui_basics/keyboard/juce_ModifierKeys.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_SystemClipboard.h b/source/modules/juce_gui_basics/keyboard/juce_SystemClipboard.h index 2c943e651..77f2b16bf 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_SystemClipboard.h +++ b/source/modules/juce_gui_basics/keyboard/juce_SystemClipboard.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_TextEditorKeyMapper.h b/source/modules/juce_gui_basics/keyboard/juce_TextEditorKeyMapper.h index 236921256..1ba59e438 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_TextEditorKeyMapper.h +++ b/source/modules/juce_gui_basics/keyboard/juce_TextEditorKeyMapper.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/keyboard/juce_TextInputTarget.h b/source/modules/juce_gui_basics/keyboard/juce_TextInputTarget.h index 6b09b169f..249b20ea1 100644 --- a/source/modules/juce_gui_basics/keyboard/juce_TextInputTarget.h +++ b/source/modules/juce_gui_basics/keyboard/juce_TextInputTarget.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_AnimatedPosition.h b/source/modules/juce_gui_basics/layout/juce_AnimatedPosition.h index e84faedc4..cc75fc551 100644 --- a/source/modules/juce_gui_basics/layout/juce_AnimatedPosition.h +++ b/source/modules/juce_gui_basics/layout/juce_AnimatedPosition.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h b/source/modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h index 1fa6dcbdb..a4ec21a88 100644 --- a/source/modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h +++ b/source/modules/juce_gui_basics/layout/juce_AnimatedPositionBehaviours.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp b/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp index 4f94a40b5..1bdfbb93d 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.h b/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.h index 5647c1866..b5fe424dc 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.h +++ b/source/modules/juce_gui_basics/layout/juce_ComponentAnimator.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp b/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp index cd29fb1db..b2eb775e8 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.h b/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.h index 18a9b81dc..ce9eb3ff4 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.h +++ b/source/modules/juce_gui_basics/layout/juce_ComponentBoundsConstrainer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp b/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp index 8fe152afe..a8caf626b 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.h b/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.h index 7291d53fb..2b4b19691 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.h +++ b/source/modules/juce_gui_basics/layout/juce_ComponentBuilder.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.cpp b/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.cpp index 57ef30873..45d897e00 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.h b/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.h index d6afdc4c7..02bfbcf4a 100644 --- a/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.h +++ b/source/modules/juce_gui_basics/layout/juce_ComponentMovementWatcher.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp b/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp index 31395b612..ed56282f4 100644 --- a/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.h b/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.h index 45fb7bdf0..5bd717e03 100644 --- a/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.h +++ b/source/modules/juce_gui_basics/layout/juce_ConcertinaPanel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_FlexBox.cpp b/source/modules/juce_gui_basics/layout/juce_FlexBox.cpp index 5b86ffdf9..6cd91c876 100644 --- a/source/modules/juce_gui_basics/layout/juce_FlexBox.cpp +++ b/source/modules/juce_gui_basics/layout/juce_FlexBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_FlexBox.h b/source/modules/juce_gui_basics/layout/juce_FlexBox.h index babde8e71..1d685a3cd 100644 --- a/source/modules/juce_gui_basics/layout/juce_FlexBox.h +++ b/source/modules/juce_gui_basics/layout/juce_FlexBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_FlexItem.h b/source/modules/juce_gui_basics/layout/juce_FlexItem.h index f2d5ba9b2..6d96c5c76 100644 --- a/source/modules/juce_gui_basics/layout/juce_FlexItem.h +++ b/source/modules/juce_gui_basics/layout/juce_FlexItem.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_Grid.cpp b/source/modules/juce_gui_basics/layout/juce_Grid.cpp index 041ad0f3b..46bd415c0 100644 --- a/source/modules/juce_gui_basics/layout/juce_Grid.cpp +++ b/source/modules/juce_gui_basics/layout/juce_Grid.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -847,9 +854,9 @@ struct Grid::AutoPlacement Array& rows, const ItemPlacementArray& itemPlacementArray) { - auto isSpan = [](Grid::PlacementHelpers::LineRange r) -> bool { return std::abs (r.end - r.start) > 1; }; + auto isSpan = [] (Grid::PlacementHelpers::LineRange r) -> bool { return std::abs (r.end - r.start) > 1; }; - auto getHighestItemOnRow = [isSpan](int rowNumber, const ItemPlacementArray& itemPlacementArrayToUse) -> float + auto getHighestItemOnRow = [isSpan] (int rowNumber, const ItemPlacementArray& itemPlacementArrayToUse) -> float { float highestRowSize = 0.0f; @@ -860,7 +867,7 @@ struct Grid::AutoPlacement return highestRowSize; }; - auto getHighestItemOnColumn = [isSpan](int rowNumber, const ItemPlacementArray& itemPlacementArrayToUse) -> float + auto getHighestItemOnColumn = [isSpan] (int rowNumber, const ItemPlacementArray& itemPlacementArrayToUse) -> float { float highestColumnSize = 0.0f; for (const auto& i : itemPlacementArrayToUse) diff --git a/source/modules/juce_gui_basics/layout/juce_Grid.h b/source/modules/juce_gui_basics/layout/juce_Grid.h index 733509ae6..f7bac7ad6 100644 --- a/source/modules/juce_gui_basics/layout/juce_Grid.h +++ b/source/modules/juce_gui_basics/layout/juce_Grid.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_GridItem.cpp b/source/modules/juce_gui_basics/layout/juce_GridItem.cpp index 0241f3671..9cb29bc9b 100644 --- a/source/modules/juce_gui_basics/layout/juce_GridItem.cpp +++ b/source/modules/juce_gui_basics/layout/juce_GridItem.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_GridItem.h b/source/modules/juce_gui_basics/layout/juce_GridItem.h index 75d05ff96..8dffbf361 100644 --- a/source/modules/juce_gui_basics/layout/juce_GridItem.h +++ b/source/modules/juce_gui_basics/layout/juce_GridItem.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_GroupComponent.cpp b/source/modules/juce_gui_basics/layout/juce_GroupComponent.cpp index f4ca883f6..7ce52c77a 100644 --- a/source/modules/juce_gui_basics/layout/juce_GroupComponent.cpp +++ b/source/modules/juce_gui_basics/layout/juce_GroupComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_GroupComponent.h b/source/modules/juce_gui_basics/layout/juce_GroupComponent.h index 71ddd4926..c966a3118 100644 --- a/source/modules/juce_gui_basics/layout/juce_GroupComponent.h +++ b/source/modules/juce_gui_basics/layout/juce_GroupComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.cpp b/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.cpp index a4598367f..218b6b6fd 100644 --- a/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.cpp +++ b/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h b/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h index 022782aa1..4ff2f3306 100644 --- a/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h +++ b/source/modules/juce_gui_basics/layout/juce_MultiDocumentPanel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp b/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp index d02b24d1d..9f77521a3 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.h b/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.h index dfc756359..d4274ef73 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.h +++ b/source/modules/juce_gui_basics/layout/juce_ResizableBorderComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.cpp b/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.cpp index 8b917aa73..59b23abdb 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h b/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h index 118367ff7..2d5ce443d 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h +++ b/source/modules/juce_gui_basics/layout/juce_ResizableCornerComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.cpp b/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.cpp index aa7c51ece..1a32a6579 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.h b/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.h index 8ff38892f..69126ba2c 100644 --- a/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.h +++ b/source/modules/juce_gui_basics/layout/juce_ResizableEdgeComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ScrollBar.cpp b/source/modules/juce_gui_basics/layout/juce_ScrollBar.cpp index 6648208e7..ddf1374d6 100644 --- a/source/modules/juce_gui_basics/layout/juce_ScrollBar.cpp +++ b/source/modules/juce_gui_basics/layout/juce_ScrollBar.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_ScrollBar.h b/source/modules/juce_gui_basics/layout/juce_ScrollBar.h index a60d1255f..1b5e9edbd 100644 --- a/source/modules/juce_gui_basics/layout/juce_ScrollBar.h +++ b/source/modules/juce_gui_basics/layout/juce_ScrollBar.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_SidePanel.cpp b/source/modules/juce_gui_basics/layout/juce_SidePanel.cpp index 4b5f1ff9a..c42fff173 100644 --- a/source/modules/juce_gui_basics/layout/juce_SidePanel.cpp +++ b/source/modules/juce_gui_basics/layout/juce_SidePanel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_SidePanel.h b/source/modules/juce_gui_basics/layout/juce_SidePanel.h index 6781a3613..b531be08b 100644 --- a/source/modules/juce_gui_basics/layout/juce_SidePanel.h +++ b/source/modules/juce_gui_basics/layout/juce_SidePanel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -182,7 +189,7 @@ public: std::function onPanelMove; /** You can assign a lambda to this callback object and it will be called when the panel is shown or hidden. */ - std::function onPanelShowHide; + std::function onPanelShowHide; private: //============================================================================== diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.cpp b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.cpp index 2fff9019f..2d0d25e52 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.cpp +++ b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.h b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.h index 55a8bd52a..bc7512db6 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.h +++ b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutManager.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.cpp b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.cpp index acef29df0..297fe7e5a 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.cpp +++ b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h index 16e5b0c85..2e0a5889e 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h +++ b/source/modules/juce_gui_basics/layout/juce_StretchableLayoutResizerBar.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.cpp b/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.cpp index 1905f6ea7..3b85e53f1 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.cpp +++ b/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.h b/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.h index ab13981b6..577b8f960 100644 --- a/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.h +++ b/source/modules/juce_gui_basics/layout/juce_StretchableObjectResizer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.cpp b/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.cpp index a366b4922..5c7cb9a76 100644 --- a/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.cpp +++ b/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.h b/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.h index 79c36789c..48b962f98 100644 --- a/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.h +++ b/source/modules/juce_gui_basics/layout/juce_TabbedButtonBar.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp b/source/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp index fdfb5d306..4c602433c 100644 --- a/source/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp +++ b/source/modules/juce_gui_basics/layout/juce_TabbedComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_TabbedComponent.h b/source/modules/juce_gui_basics/layout/juce_TabbedComponent.h index 774ac8f2d..e79c0b90d 100644 --- a/source/modules/juce_gui_basics/layout/juce_TabbedComponent.h +++ b/source/modules/juce_gui_basics/layout/juce_TabbedComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_Viewport.cpp b/source/modules/juce_gui_basics/layout/juce_Viewport.cpp index 220190fb7..e0557af4b 100644 --- a/source/modules/juce_gui_basics/layout/juce_Viewport.cpp +++ b/source/modules/juce_gui_basics/layout/juce_Viewport.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/layout/juce_Viewport.h b/source/modules/juce_gui_basics/layout/juce_Viewport.h index 1a4526238..c91f337cb 100644 --- a/source/modules/juce_gui_basics/layout/juce_Viewport.h +++ b/source/modules/juce_gui_basics/layout/juce_Viewport.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp index 2dcc0204d..f0bd1e124 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h index 283bc0ecd..a62101604 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.cpp b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.cpp index 7eb063d1a..542e123fd 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.cpp +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h index d7a83a536..b6c05aed7 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V1.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp index fd3e01e16..2cbe2a863 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h index 754e6ec29..a6697d62f 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp index 163fc94c5..7d514243d 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h index ec94cf53e..530ee3af0 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V3.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp index 8368f279b..ecc26e234 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h index f39ebe81b..6b5bcaf55 100644 --- a/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h +++ b/source/modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.cpp b/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.cpp index 686c77bab..0ab18d7dc 100644 --- a/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.cpp +++ b/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -56,9 +63,7 @@ struct CustomMenuBarItemHolder : public Component //============================================================================== BurgerMenuComponent::BurgerMenuComponent (MenuBarModel* modelToUse) { - auto& lf = getLookAndFeel(); - - listBox.setRowHeight (roundToInt (lf.getPopupMenuFont().getHeight() * 2.0f)); + lookAndFeelChanged(); listBox.addMouseListener (this, true); setModel (modelToUse); @@ -283,4 +288,9 @@ void BurgerMenuComponent::handleCommandMessage (int commandID) } } +void BurgerMenuComponent::lookAndFeelChanged() +{ + listBox.setRowHeight (roundToInt (getLookAndFeel().getPopupMenuFont().getHeight() * 2.0f)); +} + } // namespace juce diff --git a/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.h b/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.h index 872f8bff8..7812f46f1 100644 --- a/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.h +++ b/source/modules/juce_gui_basics/menus/juce_BurgerMenuComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -62,6 +69,9 @@ public: /** Returns the current burger menu model being used. */ MenuBarModel* getModel() const noexcept; + /** @internal */ + void lookAndFeelChanged() override; + private: //============================================================================== struct Row diff --git a/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp b/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp index b25ffc063..0bdbea830 100644 --- a/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp +++ b/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.h b/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.h index ba9265cb5..ac3aef8a0 100644 --- a/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.h +++ b/source/modules/juce_gui_basics/menus/juce_MenuBarComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/menus/juce_MenuBarModel.cpp b/source/modules/juce_gui_basics/menus/juce_MenuBarModel.cpp index 6fb513610..cc921dc48 100644 --- a/source/modules/juce_gui_basics/menus/juce_MenuBarModel.cpp +++ b/source/modules/juce_gui_basics/menus/juce_MenuBarModel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/menus/juce_MenuBarModel.h b/source/modules/juce_gui_basics/menus/juce_MenuBarModel.h index e9bcb9097..07d6cdb66 100644 --- a/source/modules/juce_gui_basics/menus/juce_MenuBarModel.h +++ b/source/modules/juce_gui_basics/menus/juce_MenuBarModel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/menus/juce_PopupMenu.cpp b/source/modules/juce_gui_basics/menus/juce_PopupMenu.cpp index c0c7e439e..b5be96f29 100644 --- a/source/modules/juce_gui_basics/menus/juce_PopupMenu.cpp +++ b/source/modules/juce_gui_basics/menus/juce_PopupMenu.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1789,7 +1796,7 @@ void PopupMenu::showMenuAsync (const Options& options, ModalComponentManager::Ca showWithOptionalCallback (options, userCallback, false); } -void PopupMenu::showMenuAsync (const Options& options, std::function userCallback) +void PopupMenu::showMenuAsync (const Options& options, std::function userCallback) { showWithOptionalCallback (options, ModalCallbackFunction::create (userCallback), false); } diff --git a/source/modules/juce_gui_basics/menus/juce_PopupMenu.h b/source/modules/juce_gui_basics/menus/juce_PopupMenu.h index b917dbeaf..ed12b5ee7 100644 --- a/source/modules/juce_gui_basics/menus/juce_PopupMenu.h +++ b/source/modules/juce_gui_basics/menus/juce_PopupMenu.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -564,7 +571,7 @@ public: /** Runs the menu asynchronously, with a user-provided callback that will receive the result. */ void showMenuAsync (const Options& options, - std::function callback); + std::function callback); //============================================================================== /** Closes any menus that are currently open. diff --git a/source/modules/juce_gui_basics/misc/juce_BubbleComponent.cpp b/source/modules/juce_gui_basics/misc/juce_BubbleComponent.cpp index 5dbe20b13..7c0848644 100644 --- a/source/modules/juce_gui_basics/misc/juce_BubbleComponent.cpp +++ b/source/modules/juce_gui_basics/misc/juce_BubbleComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/misc/juce_BubbleComponent.h b/source/modules/juce_gui_basics/misc/juce_BubbleComponent.h index 4dbce923b..f086c8ff3 100644 --- a/source/modules/juce_gui_basics/misc/juce_BubbleComponent.h +++ b/source/modules/juce_gui_basics/misc/juce_BubbleComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/misc/juce_DropShadower.cpp b/source/modules/juce_gui_basics/misc/juce_DropShadower.cpp index 731a85c8f..c8bfe6295 100644 --- a/source/modules/juce_gui_basics/misc/juce_DropShadower.cpp +++ b/source/modules/juce_gui_basics/misc/juce_DropShadower.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/misc/juce_DropShadower.h b/source/modules/juce_gui_basics/misc/juce_DropShadower.h index 4956aec42..f28b5f2d4 100644 --- a/source/modules/juce_gui_basics/misc/juce_DropShadower.h +++ b/source/modules/juce_gui_basics/misc/juce_DropShadower.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp b/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp index 39501a9b3..ca442b2e0 100644 --- a/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp +++ b/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -34,10 +41,6 @@ namespace juce // BEGIN SECTION A -#if ! defined (JUCE_REPORT_APP_USAGE) - #define JUCE_REPORT_APP_USAGE 1 -#endif - #if ! defined (JUCE_DISPLAY_SPLASH_SCREEN) #define JUCE_DISPLAY_SPLASH_SCREEN 1 #endif diff --git a/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.h b/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.h index 2cb853bf9..adfa8cc31 100644 --- a/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.h +++ b/source/modules/juce_gui_basics/misc/juce_JUCESplashScreen.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.cpp b/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.cpp index b524f6c41..75dbdf962 100644 --- a/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.h b/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.h index d6f0111e3..b4374038a 100644 --- a/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.h +++ b/source/modules/juce_gui_basics/mouse/juce_ComponentDragger.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp b/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp index b8d80aaa2..e20156864 100644 --- a/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h b/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h index 2725fc663..f1c6d5ad7 100644 --- a/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h +++ b/source/modules/juce_gui_basics/mouse/juce_DragAndDropContainer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h b/source/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h index 51b424df6..a160b2caf 100644 --- a/source/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h +++ b/source/modules/juce_gui_basics/mouse/juce_DragAndDropTarget.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h b/source/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h index e177ef0ae..6431651df 100644 --- a/source/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h +++ b/source/modules/juce_gui_basics/mouse/juce_FileDragAndDropTarget.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_LassoComponent.h b/source/modules/juce_gui_basics/mouse/juce_LassoComponent.h index eb49b92e6..a28b87248 100644 --- a/source/modules/juce_gui_basics/mouse/juce_LassoComponent.h +++ b/source/modules/juce_gui_basics/mouse/juce_LassoComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseCursor.cpp b/source/modules/juce_gui_basics/mouse/juce_MouseCursor.cpp index acd3e3040..88ed9ae44 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseCursor.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_MouseCursor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseCursor.h b/source/modules/juce_gui_basics/mouse/juce_MouseCursor.h index 1e199e528..9f48cef6c 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseCursor.h +++ b/source/modules/juce_gui_basics/mouse/juce_MouseCursor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseEvent.cpp b/source/modules/juce_gui_basics/mouse/juce_MouseEvent.cpp index 3010e737e..d0923b0ae 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseEvent.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_MouseEvent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseEvent.h b/source/modules/juce_gui_basics/mouse/juce_MouseEvent.h index a6b44c90e..d63c2a49c 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseEvent.h +++ b/source/modules/juce_gui_basics/mouse/juce_MouseEvent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.cpp b/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.cpp index 9d0406249..a69dc64e4 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h b/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h index a045ded00..404cbc348 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h +++ b/source/modules/juce_gui_basics/mouse/juce_MouseInactivityDetector.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp b/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp index d96eb9d3b..928b86d22 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.h b/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.h index de48ac314..0763b0943 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.h +++ b/source/modules/juce_gui_basics/mouse/juce_MouseInputSource.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseListener.cpp b/source/modules/juce_gui_basics/mouse/juce_MouseListener.cpp index 33525671f..e9cf1126a 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseListener.cpp +++ b/source/modules/juce_gui_basics/mouse/juce_MouseListener.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_MouseListener.h b/source/modules/juce_gui_basics/mouse/juce_MouseListener.h index 446e02894..ca95126be 100644 --- a/source/modules/juce_gui_basics/mouse/juce_MouseListener.h +++ b/source/modules/juce_gui_basics/mouse/juce_MouseListener.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_SelectedItemSet.h b/source/modules/juce_gui_basics/mouse/juce_SelectedItemSet.h index 8a7bb8266..05ae0039d 100644 --- a/source/modules/juce_gui_basics/mouse/juce_SelectedItemSet.h +++ b/source/modules/juce_gui_basics/mouse/juce_SelectedItemSet.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h b/source/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h index 926d82661..d3f4e2431 100644 --- a/source/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h +++ b/source/modules/juce_gui_basics/mouse/juce_TextDragAndDropTarget.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/mouse/juce_TooltipClient.h b/source/modules/juce_gui_basics/mouse/juce_TooltipClient.h index dbf107712..601e0ea90 100644 --- a/source/modules/juce_gui_basics/mouse/juce_TooltipClient.h +++ b/source/modules/juce_gui_basics/mouse/juce_TooltipClient.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_MultiTouchMapper.h b/source/modules/juce_gui_basics/native/juce_MultiTouchMapper.h index a285ff6c5..d6e1493c3 100644 --- a/source/modules/juce_gui_basics/native/juce_MultiTouchMapper.h +++ b/source/modules/juce_gui_basics/native/juce_MultiTouchMapper.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_android_ContentSharer.cpp b/source/modules/juce_gui_basics/native/juce_android_ContentSharer.cpp index 472572070..813a2bd0e 100644 --- a/source/modules/juce_gui_basics/native/juce_android_ContentSharer.cpp +++ b/source/modules/juce_gui_basics/native/juce_android_ContentSharer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_android_FileChooser.cpp b/source/modules/juce_gui_basics/native/juce_android_FileChooser.cpp index 2f7043dee..35d7f60e0 100644 --- a/source/modules/juce_gui_basics/native/juce_android_FileChooser.cpp +++ b/source/modules/juce_gui_basics/native/juce_android_FileChooser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_android_Windowing.cpp b/source/modules/juce_gui_basics/native/juce_android_Windowing.cpp index 0672e3769..923de3b63 100644 --- a/source/modules/juce_gui_basics/native/juce_android_Windowing.cpp +++ b/source/modules/juce_gui_basics/native/juce_android_Windowing.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1281,7 +1288,7 @@ int JUCE_CALLTYPE NativeMessageBox::showYesNoBox (AlertWindow::AlertIconType /*i } //============================================================================== -static bool androidScreenSaverEnabled = false; +static bool androidScreenSaverEnabled = true; void Desktop::setScreenSaverEnabled (bool shouldEnable) { @@ -1296,7 +1303,7 @@ void Desktop::setScreenSaverEnabled (bool shouldEnable) auto* env = getEnv(); LocalRef mainWindow (env->CallObjectMethod (activity.get(), AndroidActivity.getWindow)); - env->CallVoidMethod(mainWindow.get(), AndroidWindow.setFlags, shouldEnable ? FLAG_KEEP_SCREEN_ON : 0, FLAG_KEEP_SCREEN_ON); + env->CallVoidMethod (mainWindow.get(), AndroidWindow.setFlags, shouldEnable ? 0 : FLAG_KEEP_SCREEN_ON, FLAG_KEEP_SCREEN_ON); } androidScreenSaverEnabled = shouldEnable; diff --git a/source/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp b/source/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp index 751e37398..3a3f017d0 100644 --- a/source/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp +++ b/source/modules/juce_gui_basics/native/juce_common_MimeTypes.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp b/source/modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp index 973237f09..95c546272 100644 --- a/source/modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp +++ b/source/modules/juce_gui_basics/native/juce_ios_ContentSharer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_ios_FileChooser.mm b/source/modules/juce_gui_basics/native/juce_ios_FileChooser.mm index 61ef3f60f..95baab1a4 100644 --- a/source/modules/juce_gui_basics/native/juce_ios_FileChooser.mm +++ b/source/modules/juce_gui_basics/native/juce_ios_FileChooser.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm b/source/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm index 96a407861..f6632ea32 100644 --- a/source/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm +++ b/source/modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1087,7 +1094,7 @@ void UIViewComponentPeer::drawRect (CGRect r) // NB the CTM on iOS already includes a factor for the display scale, so // we'll tell the context that the scale is 1.0 to avoid it using it twice - CoreGraphicsContext g (cg, getComponent().getHeight(), 1.0f); + CoreGraphicsContext g (cg, getComponent().getHeight()); insideDrawRect = true; handlePaint (g); diff --git a/source/modules/juce_gui_basics/native/juce_ios_Windowing.mm b/source/modules/juce_gui_basics/native/juce_ios_Windowing.mm index f45bd4e9b..2889f8867 100644 --- a/source/modules/juce_gui_basics/native/juce_ios_Windowing.mm +++ b/source/modules/juce_gui_basics/native/juce_ios_Windowing.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp b/source/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp index 3d503a8e3..2e2d51b76 100644 --- a/source/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp +++ b/source/modules/juce_gui_basics/native/juce_linux_FileChooser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_linux_Windowing.cpp b/source/modules/juce_gui_basics/native/juce_linux_Windowing.cpp index 38068eb5c..df0748407 100644 --- a/source/modules/juce_gui_basics/native/juce_linux_Windowing.cpp +++ b/source/modules/juce_gui_basics/native/juce_linux_Windowing.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_mac_FileChooser.mm b/source/modules/juce_gui_basics/native/juce_mac_FileChooser.mm index 50685da79..ea281a70e 100644 --- a/source/modules/juce_gui_basics/native/juce_mac_FileChooser.mm +++ b/source/modules/juce_gui_basics/native/juce_mac_FileChooser.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_mac_MainMenu.mm b/source/modules/juce_gui_basics/native/juce_mac_MainMenu.mm index a16e1267c..3ecdb978b 100644 --- a/source/modules/juce_gui_basics/native/juce_mac_MainMenu.mm +++ b/source/modules/juce_gui_basics/native/juce_mac_MainMenu.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_mac_MouseCursor.mm b/source/modules/juce_gui_basics/native/juce_mac_MouseCursor.mm index ac55f19fc..60d6049fe 100644 --- a/source/modules/juce_gui_basics/native/juce_mac_MouseCursor.mm +++ b/source/modules/juce_gui_basics/native/juce_mac_MouseCursor.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/source/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index 246b050ad..7adb2a869 100644 --- a/source/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/source/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -873,7 +880,7 @@ public: #if USE_COREGRAPHICS_RENDERING if (usingCoreGraphics) { - CoreGraphicsContext context (cg, (float) [view frame].size.height, displayScale); + CoreGraphicsContext context (cg, (float) [view frame].size.height); invokePaint (context); } else @@ -909,7 +916,7 @@ public: invokePaint (*context); } - CGColorSpaceRef colourSpace = CGColorSpaceCreateDeviceRGB(); + CGColorSpaceRef colourSpace = CGColorSpaceCreateWithName (kCGColorSpaceSRGB); CGImageRef image = juce_createCoreGraphicsImage (temp, colourSpace, false); CGColorSpaceRelease (colourSpace); CGContextDrawImage (cg, CGRectMake (r.origin.x, r.origin.y, clipW, clipH), image); diff --git a/source/modules/juce_gui_basics/native/juce_mac_Windowing.mm b/source/modules/juce_gui_basics/native/juce_mac_Windowing.mm index 6d662a3ac..5ffbe393c 100644 --- a/source/modules/juce_gui_basics/native/juce_mac_Windowing.mm +++ b/source/modules/juce_gui_basics/native/juce_mac_Windowing.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp b/source/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp index 4e8a0d4b7..10f1b644e 100644 --- a/source/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp +++ b/source/modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp b/source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp index 39e9734ca..ed0285a1b 100644 --- a/source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp +++ b/source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/source/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index c67ed5981..2b60c8471 100644 --- a/source/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/source/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_DragAndDrop.cpp b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_DragAndDrop.cpp index fecbb3b48..5b0f1ea19 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_DragAndDrop.cpp +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_DragAndDrop.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.cpp b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.cpp index 7718411b6..e3f1cc880 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.cpp +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.h b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.h index 25c8d2df4..7f180a8a2 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.h +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_X11_Symbols.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -39,7 +46,7 @@ class JUCE_API X11Symbols { public: //============================================================================== - bool areXFunctionsAvailable() { return functionsAreAvailable; } + bool loadAllSymbols(); //============================================================================== JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XAllocSizeHints, xAllocSizeHints, @@ -570,9 +577,6 @@ private: clearSingletonInstance(); } - //============================================================================== - bool loadAllSymbols(); - //============================================================================== DynamicLibrary xLib { "libX11.so" }, xextLib { "libXext.so" }; @@ -589,8 +593,6 @@ private: DynamicLibrary xrandrLib { "libXrandr.so" }; #endif - const bool functionsAreAvailable = loadAllSymbols(); - //============================================================================== JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (X11Symbols) }; diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp index 8a2a6a644..5a6a2e36c 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -1225,13 +1232,10 @@ static std::unordered_map*, X11DragState> dragAndDr XWindowSystem::XWindowSystem() { - xIsAvailable = X11Symbols::getInstance()->areXFunctionsAvailable(); + xIsAvailable = X11Symbols::getInstance()->loadAllSymbols(); if (! xIsAvailable) - { - X11Symbols::deleteInstance(); return; - } if (JUCEApplicationBase::isStandaloneApp()) { @@ -1255,7 +1259,14 @@ XWindowSystem::XWindowSystem() X11ErrorHandling::installXErrorHandlers(); } - initialiseXDisplay(); + if (! initialiseXDisplay()) + { + if (JUCEApplicationBase::isStandaloneApp()) + X11ErrorHandling::removeXErrorHandlers(); + + X11Symbols::deleteInstance(); + xIsAvailable = false; + } } XWindowSystem::~XWindowSystem() @@ -1266,10 +1277,9 @@ XWindowSystem::~XWindowSystem() if (JUCEApplicationBase::isStandaloneApp()) X11ErrorHandling::removeXErrorHandlers(); - - X11Symbols::deleteInstance(); } + X11Symbols::deleteInstance(); clearSingletonInstance(); } @@ -1284,10 +1294,14 @@ static int getAllEventsMask (bool ignoresMouseClicks) ::Window XWindowSystem::createWindow (::Window parentToAddTo, LinuxComponentPeer<::Window>* peer) const { - auto styleFlags = peer->getStyleFlags(); + if (! xIsAvailable) + { + // can't open a window on a system that doesn't have X11 installed! + jassertfalse; + return 0; + } - // can't open a window on a system that doesn't have X11 installed! - jassert (X11Symbols::getInstance()->areXFunctionsAvailable()); + auto styleFlags = peer->getStyleFlags(); XWindowSystemUtilities::ScopedXLock xLock; @@ -1338,21 +1352,21 @@ static int getAllEventsMask (bool ignoresMouseClicks) // Associate the PID, allowing to be shut down when something goes wrong auto pid = (unsigned long) getpid(); - xchangeProperty (windowH, atoms->pid, XA_CARDINAL, 32, &pid, 1); + xchangeProperty (windowH, atoms.pid, XA_CARDINAL, 32, &pid, 1); // Set window manager protocols - xchangeProperty (windowH, atoms->protocols, XA_ATOM, 32, atoms->protocolList, 2); + xchangeProperty (windowH, atoms.protocols, XA_ATOM, 32, atoms.protocolList, 2); // Set drag and drop flags - xchangeProperty (windowH, atoms->XdndTypeList, XA_ATOM, 32, atoms->allowedMimeTypes, numElementsInArray (atoms->allowedMimeTypes)); - xchangeProperty (windowH, atoms->XdndActionList, XA_ATOM, 32, atoms->allowedActions, numElementsInArray (atoms->allowedActions)); - xchangeProperty (windowH, atoms->XdndActionDescription, XA_STRING, 8, "", 0); + xchangeProperty (windowH, atoms.XdndTypeList, XA_ATOM, 32, atoms.allowedMimeTypes, numElementsInArray (atoms.allowedMimeTypes)); + xchangeProperty (windowH, atoms.XdndActionList, XA_ATOM, 32, atoms.allowedActions, numElementsInArray (atoms.allowedActions)); + xchangeProperty (windowH, atoms.XdndActionDescription, XA_STRING, 8, "", 0); auto dndVersion = XWindowSystemUtilities::Atoms::DndVersion; - xchangeProperty (windowH, atoms->XdndAware, XA_ATOM, 32, &dndVersion, 1); + xchangeProperty (windowH, atoms.XdndAware, XA_ATOM, 32, &dndVersion, 1); unsigned long info[2] = { 0, 1 }; - xchangeProperty (windowH, atoms->XembedInfo, atoms->XembedInfo, 32, (unsigned char*) info, 2); + xchangeProperty (windowH, atoms.XembedInfo, atoms.XembedInfo, 32, (unsigned char*) info, 2); return windowH; } @@ -1360,7 +1374,12 @@ static int getAllEventsMask (bool ignoresMouseClicks) void XWindowSystem::destroyWindow (::Window windowH) { auto* peer = dynamic_cast*> (getPeerFor (windowH)); - jassert (peer != nullptr); + + if (peer == nullptr) + { + jassertfalse; + return; + } #if JUCE_X11_SUPPORTS_XEMBED juce_handleXEmbedEvent (peer, nullptr); @@ -1480,7 +1499,7 @@ void XWindowSystem::setBounds (::Window windowH, Rectangle newBounds, bool clientMsg.window = windowH; clientMsg.type = ClientMessage; clientMsg.format = 32; - clientMsg.message_type = atoms->windowState; + clientMsg.message_type = atoms.windowState; clientMsg.data.l[0] = 0; // Remove clientMsg.data.l[1] = (long) fs; clientMsg.data.l[2] = 0; @@ -1613,7 +1632,7 @@ void XWindowSystem::setMinimised (::Window windowH, bool shouldBeMinimised) cons clientMsg.window = windowH; clientMsg.type = ClientMessage; clientMsg.format = 32; - clientMsg.message_type = atoms->changeState; + clientMsg.message_type = atoms.changeState; clientMsg.data.l[0] = IconicState; XWindowSystemUtilities::ScopedXLock xLock; @@ -1626,9 +1645,9 @@ bool XWindowSystem::isMinimised (::Window windowH) const jassert (windowH != 0); XWindowSystemUtilities::ScopedXLock xLock; - XWindowSystemUtilities::GetXProperty prop (windowH, atoms->state, 0, 64, false, atoms->state); + XWindowSystemUtilities::GetXProperty prop (windowH, atoms.state, 0, 64, false, atoms.state); - if (prop.success && prop.actualType == atoms->state + if (prop.success && prop.actualType == atoms.state && prop.actualFormat == 32 && prop.numItems > 0) { unsigned long state; @@ -1649,7 +1668,7 @@ void XWindowSystem::toFront (::Window windowH, bool) const ev.xclient.type = ClientMessage; ev.xclient.serial = 0; ev.xclient.send_event = True; - ev.xclient.message_type = atoms->activeWin; + ev.xclient.message_type = atoms.activeWin; ev.xclient.window = windowH; ev.xclient.format = 32; ev.xclient.data.l[0] = 2; @@ -2324,7 +2343,7 @@ void XWindowSystem::copyTextToClipboard (const String& clipText) localClipboardContent = clipText; X11Symbols::getInstance()->xSetSelectionOwner (display, XA_PRIMARY, juce_messageWindowHandle, CurrentTime); - X11Symbols::getInstance()->xSetSelectionOwner (display, atoms->clipboard, juce_messageWindowHandle, CurrentTime); + X11Symbols::getInstance()->xSetSelectionOwner (display, atoms.clipboard, juce_messageWindowHandle, CurrentTime); } String XWindowSystem::getTextFromClipboard() const @@ -2345,7 +2364,7 @@ String XWindowSystem::getTextFromClipboard() const if ((selectionOwner = X11Symbols::getInstance()->xGetSelectionOwner (display, selection)) == None) { - selection = atoms->clipboard; + selection = atoms.clipboard; selectionOwner = X11Symbols::getInstance()->xGetSelectionOwner (display, selection); } @@ -2353,7 +2372,7 @@ String XWindowSystem::getTextFromClipboard() const { if (selectionOwner == juce_messageWindowHandle) content = localClipboardContent; - else if (! ClipboardHelpers::requestSelectionContent (display, content, selection, atoms->utf8String)) + else if (! ClipboardHelpers::requestSelectionContent (display, content, selection, atoms.utf8String)) ClipboardHelpers::requestSelectionContent (display, content, selection, XA_STRING); } @@ -2468,7 +2487,7 @@ void XWindowSystem::removeWindowDecorations (::Window windowH) const if (hints != None) { XWindowSystemUtilities::ScopedXLock xLock; - xchangeProperty (windowH, atoms->windowType, XA_ATOM, 32, &hints, 1); + xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &hints, 1); } } @@ -2549,7 +2568,7 @@ void XWindowSystem::setWindowType (::Window windowH, int styleFlags) const else netHints [0] = XWindowSystemUtilities::Atoms::getIfExists (display, "_NET_WM_WINDOW_TYPE_NORMAL"); - xchangeProperty (windowH, atoms->windowType, XA_ATOM, 32, &netHints, 1); + xchangeProperty (windowH, atoms.windowType, XA_ATOM, 32, &netHints, 1); int numHints = 0; @@ -2560,7 +2579,7 @@ void XWindowSystem::setWindowType (::Window windowH, int styleFlags) const netHints [numHints++] = XWindowSystemUtilities::Atoms::getIfExists (display, "_NET_WM_STATE_ABOVE"); if (numHints > 0) - xchangeProperty (windowH, atoms->windowState, XA_ATOM, 32, &netHints, numHints); + xchangeProperty (windowH, atoms.windowState, XA_ATOM, 32, &netHints, numHints); } void XWindowSystem::initialisePointerMap() @@ -2645,7 +2664,7 @@ long XWindowSystem::getUserTime (::Window windowH) const { jassert (windowH != 0); - XWindowSystemUtilities::GetXProperty prop (windowH, atoms->userTime, 0, 65536, false, XA_CARDINAL); + XWindowSystemUtilities::GetXProperty prop (windowH, atoms.userTime, 0, 65536, false, XA_CARDINAL); if (! prop.success) return 0; @@ -2657,7 +2676,7 @@ long XWindowSystem::getUserTime (::Window windowH) const } //============================================================================== -void XWindowSystem::initialiseXDisplay() +bool XWindowSystem::initialiseXDisplay() { jassert (display == nullptr); @@ -2676,12 +2695,9 @@ void XWindowSystem::initialiseXDisplay() break; } - // This is fatal! Print error and closedown + // No X Server running if (display == nullptr) - { - Logger::outputDebugString ("Failed to connect to the X Server."); - Process::terminate(); - } + return false; // Create a context to store user data associated with Windows we create windowHandleXContext = (XContext) X11Symbols::getInstance()->xrmUniqueQuark(); @@ -2699,7 +2715,7 @@ void XWindowSystem::initialiseXDisplay() X11Symbols::getInstance()->xSync (display, False); - atoms = std::make_unique (display); + atoms = XWindowSystemUtilities::Atoms (display); // Get defaults for various properties auto root = X11Symbols::getInstance()->xRootWindow (display, screen); @@ -2727,7 +2743,7 @@ void XWindowSystem::initialiseXDisplay() // Setup input event handler LinuxEventLoop::registerFdCallback (X11Symbols::getInstance()->xConnectionNumber (display), - [this](int) + [this] (int) { do { @@ -2755,6 +2771,8 @@ void XWindowSystem::initialiseXDisplay() } while (display != nullptr); }); + + return true; } void XWindowSystem::destroyXDisplay() @@ -3236,11 +3254,11 @@ void XWindowSystem::handleMappingNotify (XMappingEvent& mappingEvent) const void XWindowSystem::handleClientMessageEvent (LinuxComponentPeer<::Window>* peer, XClientMessageEvent& clientMsg, XEvent& event) const { - if (clientMsg.message_type == atoms->protocols && clientMsg.format == 32) + if (clientMsg.message_type == atoms.protocols && clientMsg.format == 32) { auto atom = (Atom) clientMsg.data.l[0]; - if (atom == atoms->protocolList [XWindowSystemUtilities::Atoms::PING]) + if (atom == atoms.protocolList [XWindowSystemUtilities::Atoms::PING]) { auto root = X11Symbols::getInstance()->xRootWindow (display, X11Symbols::getInstance()->xDefaultScreen (display)); @@ -3249,7 +3267,7 @@ void XWindowSystem::handleClientMessageEvent (LinuxComponentPeer<::Window>* peer X11Symbols::getInstance()->xSendEvent (display, root, False, NoEventMask, &event); X11Symbols::getInstance()->xFlush (display); } - else if (atom == atoms->protocolList [XWindowSystemUtilities::Atoms::TAKE_FOCUS]) + else if (atom == atoms.protocolList [XWindowSystemUtilities::Atoms::TAKE_FOCUS]) { if ((peer->getStyleFlags() & ComponentPeer::windowIgnoresKeyPresses) == 0) { @@ -3270,37 +3288,37 @@ void XWindowSystem::handleClientMessageEvent (LinuxComponentPeer<::Window>* peer } } } - else if (atom == atoms->protocolList [XWindowSystemUtilities::Atoms::DELETE_WINDOW]) + else if (atom == atoms.protocolList [XWindowSystemUtilities::Atoms::DELETE_WINDOW]) { peer->handleUserClosingWindow(); } } - else if (clientMsg.message_type == atoms->XdndEnter) + else if (clientMsg.message_type == atoms.XdndEnter) { dragAndDropStateMap[peer].handleDragAndDropEnter (clientMsg, peer); } - else if (clientMsg.message_type == atoms->XdndLeave) + else if (clientMsg.message_type == atoms.XdndLeave) { dragAndDropStateMap[peer].handleDragAndDropExit(); dragAndDropStateMap.erase (peer); } - else if (clientMsg.message_type == atoms->XdndPosition) + else if (clientMsg.message_type == atoms.XdndPosition) { dragAndDropStateMap[peer].handleDragAndDropPosition (clientMsg, peer); } - else if (clientMsg.message_type == atoms->XdndDrop) + else if (clientMsg.message_type == atoms.XdndDrop) { dragAndDropStateMap[peer].handleDragAndDropDrop (clientMsg, peer); } - else if (clientMsg.message_type == atoms->XdndStatus) + else if (clientMsg.message_type == atoms.XdndStatus) { dragAndDropStateMap[peer].handleExternalDragAndDropStatus (clientMsg); } - else if (clientMsg.message_type == atoms->XdndFinished) + else if (clientMsg.message_type == atoms.XdndFinished) { dragAndDropStateMap[peer].externalResetDragAndDrop(); } - else if (clientMsg.message_type == atoms->XembedMsgType && clientMsg.format == 32) + else if (clientMsg.message_type == atoms.XembedMsgType && clientMsg.format == 32) { handleXEmbedMessage (peer, clientMsg); } diff --git a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.h b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.h index 9459c88e1..6644a65fa 100644 --- a/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.h +++ b/source/modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -67,7 +74,8 @@ namespace XWindowSystemUtilities PING = 2 }; - Atoms (::Display*); + Atoms() = default; + explicit Atoms (::Display*); static Atom getIfExists (::Display*, const char* name); static Atom getCreating (::Display*, const char* name); @@ -150,7 +158,7 @@ public: String getLocalClipboardContent() const { return localClipboardContent; } ::Display* getDisplay() { return display; } - XWindowSystemUtilities::Atoms& getAtoms() { jassert (atoms.get() != nullptr); return *atoms; } + XWindowSystemUtilities::Atoms& getAtoms() { return atoms; } //============================================================================== void handleWindowMessage (LinuxComponentPeer<::Window>* peer, XEvent& event) const; @@ -163,7 +171,7 @@ private: ~XWindowSystem(); //============================================================================== - void initialiseXDisplay(); + bool initialiseXDisplay(); void destroyXDisplay(); //============================================================================== @@ -207,7 +215,7 @@ private: //============================================================================== bool xIsAvailable = false; - std::unique_ptr atoms; + XWindowSystemUtilities::Atoms atoms; ::Display* display = nullptr; Colormap colormap = {}; Visual* visual = nullptr; diff --git a/source/modules/juce_gui_basics/positioning/juce_MarkerList.cpp b/source/modules/juce_gui_basics/positioning/juce_MarkerList.cpp index d8985e84a..1436bd74d 100644 --- a/source/modules/juce_gui_basics/positioning/juce_MarkerList.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_MarkerList.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_MarkerList.h b/source/modules/juce_gui_basics/positioning/juce_MarkerList.h index 2320bc2ba..4f6f029b1 100644 --- a/source/modules/juce_gui_basics/positioning/juce_MarkerList.h +++ b/source/modules/juce_gui_basics/positioning/juce_MarkerList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.cpp index aad5d624d..50637355f 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h index f0424653a..173ac41cc 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinate.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.cpp index cbbf8fc03..1293d6433 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.h b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.h index 64d737430..65a86e3b3 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeCoordinatePositioner.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.cpp index c41eef3e8..ded1936f0 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h b/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h index ff6670dd3..74a237aa2 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeParallelogram.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativePoint.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativePoint.cpp index a758f3ae7..1fa8f4f7d 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativePoint.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativePoint.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativePoint.h b/source/modules/juce_gui_basics/positioning/juce_RelativePoint.h index 67cac23ee..7fb0b24c5 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativePoint.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativePoint.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp index 6330f9817..93fadc5f1 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.h b/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.h index ce440fa29..72f1333b4 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativePointPath.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp b/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp index 1485af504..ac482ed66 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h b/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h index 5defeff60..b659d146a 100644 --- a/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h +++ b/source/modules/juce_gui_basics/positioning/juce_RelativeRectangle.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.cpp index 0d281a6a1..026e9aa4f 100644 --- a/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.h index cc9472f5c..1b5721c08 100644 --- a/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_BooleanPropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.cpp index 806db9aec..55473ea00 100644 --- a/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h index 4b70fefcc..c650f0159 100644 --- a/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_ButtonPropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp index f0f955bca..6187f2eb2 100644 --- a/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h index 0538392c8..93cb8bbf0 100644 --- a/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_ChoicePropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp index 716f60141..6bcee0ea5 100644 --- a/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -200,32 +207,43 @@ private: }; //============================================================================== +int MultiChoicePropertyComponent::getTotalButtonsHeight (int numButtons) +{ + return numButtons * buttonHeight + 1; +} + MultiChoicePropertyComponent::MultiChoicePropertyComponent (const String& propertyName, const StringArray& choices, const Array& correspondingValues) - : PropertyComponent (propertyName, 70) +: PropertyComponent (propertyName, jmin (getTotalButtonsHeight (choices.size()), collapsedHeight)) { // The array of corresponding values must contain one value for each of the items in // the choices array! jassert (choices.size() == correspondingValues.size()); - ignoreUnused (correspondingValues); for (auto choice : choices) addAndMakeVisible (choiceButtons.add (new ToggleButton (choice))); - maxHeight = (choiceButtons.size() * 25) + 20; - + if (preferredHeight >= collapsedHeight) { - Path expandShape; - expandShape.addTriangle ({ 0, 0 }, { 5, 10 }, { 10, 0}); - expandButton.setShape (expandShape, true, true, false); + expandable = true; + maxHeight = getTotalButtonsHeight (choiceButtons.size()) + expandAreaHeight; } - expandButton.onClick = [this] { setExpanded (! expanded); }; - addAndMakeVisible (expandButton); + if (isExpandable()) + { + { + Path expandShape; + expandShape.addTriangle ({ 0, 0 }, { 5, 10 }, { 10, 0}); + expandButton.setShape (expandShape, true, true, false); + } + + expandButton.onClick = [this] { setExpanded (! expanded); }; + addAndMakeVisible (expandButton); - lookAndFeelChanged(); + lookAndFeelChanged(); + } } MultiChoicePropertyComponent::MultiChoicePropertyComponent (const Value& valueToControl, @@ -276,11 +294,11 @@ void MultiChoicePropertyComponent::paint (Graphics& g) g.setColour (findColour (TextEditor::backgroundColourId)); g.fillRect (getLookAndFeel().getPropertyComponentContentPosition (*this)); - if (! expanded) + if (isExpandable() && ! isExpanded()) { g.setColour (findColour (TextEditor::backgroundColourId).contrasting().withAlpha (0.4f)); g.drawFittedText ("+ " + String (numHidden) + " more", getLookAndFeel().getPropertyComponentContentPosition (*this) - .removeFromBottom (20).withTrimmedLeft (10), + .removeFromBottom (expandAreaHeight).withTrimmedLeft (10), Justification::centredLeft, 1); } @@ -291,20 +309,23 @@ void MultiChoicePropertyComponent::resized() { auto bounds = getLookAndFeel().getPropertyComponentContentPosition (*this); - bounds.removeFromBottom (5); + if (isExpandable()) + { + bounds.removeFromBottom (5); - auto buttonSlice = bounds.removeFromBottom (10); - expandButton.setSize (10, 10); - expandButton.setCentrePosition (buttonSlice.getCentre()); + auto buttonSlice = bounds.removeFromBottom (10); + expandButton.setSize (10, 10); + expandButton.setCentrePosition (buttonSlice.getCentre()); + } numHidden = 0; for (auto* b : choiceButtons) { - if (bounds.getHeight() >= 25) + if (bounds.getHeight() >= buttonHeight) { b->setVisible (true); - b->setBounds (bounds.removeFromTop (25).reduced (5, 2)); + b->setBounds (bounds.removeFromTop (buttonHeight).reduced (5, 2)); } else { @@ -314,13 +335,13 @@ void MultiChoicePropertyComponent::resized() } } -void MultiChoicePropertyComponent::setExpanded (bool isExpanded) noexcept +void MultiChoicePropertyComponent::setExpanded (bool shouldBeExpanded) noexcept { - if (expanded == isExpanded) + if (! isExpandable() || (isExpanded() == shouldBeExpanded)) return; - expanded = isExpanded; - preferredHeight = expanded ? maxHeight : 70; + expanded = shouldBeExpanded; + preferredHeight = expanded ? maxHeight : collapsedHeight; if (auto* propertyPanel = findParentComponentOfClass()) propertyPanel->resized(); diff --git a/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h index 03e7efb88..168ad9b6b 100644 --- a/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_MultiChoicePropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -80,7 +87,10 @@ public: /** Returns true if the list of options is expanded. */ bool isExpanded() const noexcept { return expanded; } - /** Expands or shrinks the list of options. + /** Returns true if the list of options has been truncated and can be expanded. */ + bool isExpandable() const noexcept { return expandable; } + + /** Expands or shrinks the list of options if they are not all visible. N.B. This will just set the preferredHeight value of the PropertyComponent and attempt to call PropertyPanel::resized(), so if you are not displaying this object in a PropertyPanel @@ -107,14 +117,18 @@ private: class MultiChoiceRemapperSourceWithDefault; //============================================================================== + static int getTotalButtonsHeight (int); void lookAndFeelChanged() override; //============================================================================== WeakReference valueWithDefault; - int maxHeight = 0; - int numHidden = 0; - bool expanded = false; + static constexpr int collapsedHeight = 125; + static constexpr int buttonHeight = 25; + static constexpr int expandAreaHeight = 20; + + int maxHeight = 0, numHidden = 0; + bool expandable = false, expanded = false; OwnedArray choiceButtons; ShapeButton expandButton { "Expand", Colours::transparentBlack, Colours::transparentBlack, Colours::transparentBlack }; diff --git a/source/modules/juce_gui_basics/properties/juce_PropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_PropertyComponent.cpp index 24aa50f63..fd82089a4 100644 --- a/source/modules/juce_gui_basics/properties/juce_PropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_PropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_PropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_PropertyComponent.h index 1bf454a15..c9e035ce5 100644 --- a/source/modules/juce_gui_basics/properties/juce_PropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_PropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_PropertyPanel.cpp b/source/modules/juce_gui_basics/properties/juce_PropertyPanel.cpp index ad3070e2c..aee1c82e6 100644 --- a/source/modules/juce_gui_basics/properties/juce_PropertyPanel.cpp +++ b/source/modules/juce_gui_basics/properties/juce_PropertyPanel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -25,9 +32,10 @@ struct PropertyPanel::SectionComponent : public Component const Array& newProperties, bool sectionIsOpen) : Component (sectionTitle), - titleHeight (getLookAndFeel().getPropertyPanelSectionHeaderHeight (sectionTitle)), isOpen (sectionIsOpen) { + lookAndFeelChanged(); + propertyComps.addArray (newProperties); for (auto* propertyComponent : propertyComps) @@ -59,6 +67,13 @@ struct PropertyPanel::SectionComponent : public Component } } + void lookAndFeelChanged() override + { + titleHeight = getLookAndFeel().getPropertyPanelSectionHeaderHeight (getName()); + resized(); + repaint(); + } + int getPreferredHeight() const { auto y = titleHeight; diff --git a/source/modules/juce_gui_basics/properties/juce_PropertyPanel.h b/source/modules/juce_gui_basics/properties/juce_PropertyPanel.h index 4bb309510..94bafef89 100644 --- a/source/modules/juce_gui_basics/properties/juce_PropertyPanel.h +++ b/source/modules/juce_gui_basics/properties/juce_PropertyPanel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.cpp index 2753fd17b..9371e9e29 100644 --- a/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.h index 3ebed4859..be13018e1 100644 --- a/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_SliderPropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp b/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp index 8e2141986..7bbf0520a 100644 --- a/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp +++ b/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.h b/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.h index b508443e3..e0b0292f9 100644 --- a/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.h +++ b/source/modules/juce_gui_basics/properties/juce_TextPropertyComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ComboBox.cpp b/source/modules/juce_gui_basics/widgets/juce_ComboBox.cpp index 637a3aa40..923917bf6 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ComboBox.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ComboBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ComboBox.h b/source/modules/juce_gui_basics/widgets/juce_ComboBox.h index 1ad599972..905da938e 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ComboBox.h +++ b/source/modules/juce_gui_basics/widgets/juce_ComboBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ImageComponent.cpp b/source/modules/juce_gui_basics/widgets/juce_ImageComponent.cpp index 68538168f..1f7dc08f4 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ImageComponent.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ImageComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ImageComponent.h b/source/modules/juce_gui_basics/widgets/juce_ImageComponent.h index dbc4ca5de..c4bf106f9 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ImageComponent.h +++ b/source/modules/juce_gui_basics/widgets/juce_ImageComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_Label.cpp b/source/modules/juce_gui_basics/widgets/juce_Label.cpp index 374ef29dd..8459d9e92 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Label.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_Label.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_Label.h b/source/modules/juce_gui_basics/widgets/juce_Label.h index 5ba838c0c..4fb3753ee 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Label.h +++ b/source/modules/juce_gui_basics/widgets/juce_Label.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ListBox.cpp b/source/modules/juce_gui_basics/widgets/juce_ListBox.cpp index d2925f5e4..4bfc4f5de 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ListBox.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ListBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ListBox.h b/source/modules/juce_gui_basics/widgets/juce_ListBox.h index a59200128..1b1f70a44 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ListBox.h +++ b/source/modules/juce_gui_basics/widgets/juce_ListBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ProgressBar.cpp b/source/modules/juce_gui_basics/widgets/juce_ProgressBar.cpp index 8ea1d849a..1723297e7 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ProgressBar.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ProgressBar.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ProgressBar.h b/source/modules/juce_gui_basics/widgets/juce_ProgressBar.h index dac383e11..e6d9712df 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ProgressBar.h +++ b/source/modules/juce_gui_basics/widgets/juce_ProgressBar.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_Slider.cpp b/source/modules/juce_gui_basics/widgets/juce_Slider.cpp index 75c353fb1..b4d9d3813 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Slider.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_Slider.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_Slider.h b/source/modules/juce_gui_basics/widgets/juce_Slider.h index 0bc588b9c..5b5679351 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Slider.h +++ b/source/modules/juce_gui_basics/widgets/juce_Slider.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -598,10 +605,10 @@ public: std::function onDragEnd; /** You can assign a lambda that will be used to convert textual values to the slider's normalised position. */ - std::function valueFromTextFunction; + std::function valueFromTextFunction; /** You can assign a lambda that will be used to convert the slider's normalised position to a textual value. */ - std::function textFromValueFunction; + std::function textFromValueFunction; //============================================================================== /** This lets you choose whether double-clicking or single-clicking with a specified diff --git a/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.cpp b/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.cpp index e0b595322..0309219f4 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h b/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h index cf4af691f..5cbf7d1c8 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h +++ b/source/modules/juce_gui_basics/widgets/juce_TableHeaderComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TableListBox.cpp b/source/modules/juce_gui_basics/widgets/juce_TableListBox.cpp index 02b11a6cc..6df551589 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TableListBox.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_TableListBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TableListBox.h b/source/modules/juce_gui_basics/widgets/juce_TableListBox.h index 13f5f8438..fe60687c6 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TableListBox.h +++ b/source/modules/juce_gui_basics/widgets/juce_TableListBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp b/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp index 7d52bbfe8..98f402f16 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_TextEditor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TextEditor.h b/source/modules/juce_gui_basics/widgets/juce_TextEditor.h index 12246acf1..6107158d0 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TextEditor.h +++ b/source/modules/juce_gui_basics/widgets/juce_TextEditor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_Toolbar.cpp b/source/modules/juce_gui_basics/widgets/juce_Toolbar.cpp index 861557956..308a3642a 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Toolbar.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_Toolbar.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -235,7 +242,7 @@ private: //============================================================================== Toolbar::Toolbar() { - missingItemsButton.reset (getLookAndFeel().createToolbarMissingItemsButton (*this)); + lookAndFeelChanged(); addChildComponent (missingItemsButton.get()); missingItemsButton->setAlwaysOnTop (true); @@ -633,6 +640,11 @@ void Toolbar::itemDropped (const SourceDetails& dragSourceDetails) tc->setState (Button::buttonNormal); } +void Toolbar::lookAndFeelChanged() +{ + missingItemsButton.reset (getLookAndFeel().createToolbarMissingItemsButton (*this)); +} + void Toolbar::mouseDown (const MouseEvent&) {} //============================================================================== diff --git a/source/modules/juce_gui_basics/widgets/juce_Toolbar.h b/source/modules/juce_gui_basics/widgets/juce_Toolbar.h index 568c7e372..dd096ac53 100644 --- a/source/modules/juce_gui_basics/widgets/juce_Toolbar.h +++ b/source/modules/juce_gui_basics/widgets/juce_Toolbar.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -296,6 +303,8 @@ public: /** @internal */ void itemDropped (const SourceDetails&) override; /** @internal */ + void lookAndFeelChanged() override; + /** @internal */ void updateAllItemPositions (bool animate); /** @internal */ static ToolbarItemComponent* createItem (ToolbarItemFactory&, int itemId); diff --git a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.cpp b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.cpp index 030426626..2026a115f 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h index a1464a93e..5be4e85c4 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h +++ b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h index 5b7a0f2ab..92ff4eff8 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h +++ b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemFactory.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.cpp b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.cpp index 99d810db7..d4c36fc6b 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.h b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.h index 33e4589e6..c029ed2e0 100644 --- a/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.h +++ b/source/modules/juce_gui_basics/widgets/juce_ToolbarItemPalette.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TreeView.cpp b/source/modules/juce_gui_basics/widgets/juce_TreeView.cpp index a3d533991..015aa212b 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TreeView.cpp +++ b/source/modules/juce_gui_basics/widgets/juce_TreeView.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/widgets/juce_TreeView.h b/source/modules/juce_gui_basics/widgets/juce_TreeView.h index e48b66095..0d8055ced 100644 --- a/source/modules/juce_gui_basics/widgets/juce_TreeView.h +++ b/source/modules/juce_gui_basics/widgets/juce_TreeView.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_AlertWindow.cpp b/source/modules/juce_gui_basics/windows/juce_AlertWindow.cpp index 0c6287af2..190a49944 100644 --- a/source/modules/juce_gui_basics/windows/juce_AlertWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_AlertWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_AlertWindow.h b/source/modules/juce_gui_basics/windows/juce_AlertWindow.h index d6535a2c5..1b234c439 100644 --- a/source/modules/juce_gui_basics/windows/juce_AlertWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_AlertWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_CallOutBox.cpp b/source/modules/juce_gui_basics/windows/juce_CallOutBox.cpp index c43f89284..90bc1aeb7 100644 --- a/source/modules/juce_gui_basics/windows/juce_CallOutBox.cpp +++ b/source/modules/juce_gui_basics/windows/juce_CallOutBox.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -44,9 +51,7 @@ CallOutBox::CallOutBox (Component& c, Rectangle area, Component* const pare creationTime = Time::getCurrentTime(); } -CallOutBox::~CallOutBox() -{ -} +CallOutBox::~CallOutBox() = default; //============================================================================== class CallOutBoxCallback : public ModalComponentManager::Callback, @@ -94,6 +99,8 @@ int CallOutBox::getBorderSize() const noexcept return jmax (getLookAndFeel().getCallOutBoxBorderSize (*this), (int) arrowSize); } +void CallOutBox::lookAndFeelChanged() { resized(); repaint(); } + void CallOutBox::paint (Graphics& g) { getLookAndFeel().drawCallOutBoxBackground (*this, g, outline, background); diff --git a/source/modules/juce_gui_basics/windows/juce_CallOutBox.h b/source/modules/juce_gui_basics/windows/juce_CallOutBox.h index d5e6eea37..4857772dd 100644 --- a/source/modules/juce_gui_basics/windows/juce_CallOutBox.h +++ b/source/modules/juce_gui_basics/windows/juce_CallOutBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -159,6 +166,8 @@ public: void handleCommandMessage (int) override; /** @internal */ int getBorderSize() const noexcept; + /** @internal */ + void lookAndFeelChanged() override; private: //============================================================================== diff --git a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp index 10c4e07c5..7c9f504c1 100644 --- a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp +++ b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h index 2d5debc71..3dacc095a 100644 --- a/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h +++ b/source/modules/juce_gui_basics/windows/juce_ComponentPeer.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_DialogWindow.cpp b/source/modules/juce_gui_basics/windows/juce_DialogWindow.cpp index 09c06b812..92bf09e16 100644 --- a/source/modules/juce_gui_basics/windows/juce_DialogWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_DialogWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_DialogWindow.h b/source/modules/juce_gui_basics/windows/juce_DialogWindow.h index 7e5cf4848..de9ef2f4b 100644 --- a/source/modules/juce_gui_basics/windows/juce_DialogWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_DialogWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_DocumentWindow.cpp b/source/modules/juce_gui_basics/windows/juce_DocumentWindow.cpp index cd02332e4..d5d434e0d 100644 --- a/source/modules/juce_gui_basics/windows/juce_DocumentWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_DocumentWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_DocumentWindow.h b/source/modules/juce_gui_basics/windows/juce_DocumentWindow.h index 76fa3be4b..4fc4d076d 100644 --- a/source/modules/juce_gui_basics/windows/juce_DocumentWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_DocumentWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_NativeMessageBox.h b/source/modules/juce_gui_basics/windows/juce_NativeMessageBox.h index fb0a1aff7..70b097a59 100644 --- a/source/modules/juce_gui_basics/windows/juce_NativeMessageBox.h +++ b/source/modules/juce_gui_basics/windows/juce_NativeMessageBox.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp b/source/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp index e07d8f3cb..d1d20d6c7 100644 --- a/source/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_ResizableWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_ResizableWindow.h b/source/modules/juce_gui_basics/windows/juce_ResizableWindow.h index ff52cb055..e59f620c1 100644 --- a/source/modules/juce_gui_basics/windows/juce_ResizableWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_ResizableWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp b/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp index 693db7fff..b2d0d497e 100644 --- a/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.h b/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.h index b04ff8f20..91664e0c2 100644 --- a/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_ThreadWithProgressWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp b/source/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp index 771d3bbdd..f06237849 100644 --- a/source/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_TooltipWindow.h b/source/modules/juce_gui_basics/windows/juce_TooltipWindow.h index 6592aea75..f82cbf6a7 100644 --- a/source/modules/juce_gui_basics/windows/juce_TooltipWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_TooltipWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp b/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp index 5c836779e..75fe2f91f 100644 --- a/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp +++ b/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.h b/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.h index 2a4c54df1..b11d90b22 100644 --- a/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.h +++ b/source/modules/juce_gui_basics/windows/juce_TopLevelWindow.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.cpp b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.cpp index 1e4bd97d9..e6a7dcf0a 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.cpp +++ b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.h b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.h index 3928c7d09..784bc2d50 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.h +++ b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniserFunctions.h b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniserFunctions.h index 970c5fb81..896dc9e23 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniserFunctions.h +++ b/source/modules/juce_gui_extra/code_editor/juce_CPlusPlusCodeTokeniserFunctions.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp b/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp index 0f44bae2d..c4e32fbe5 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp +++ b/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.h b/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.h index efaf80fdc..21eda6415 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.h +++ b/source/modules/juce_gui_extra/code_editor/juce_CodeDocument.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.cpp b/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.cpp index c2ec4edb4..11b28861b 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.cpp +++ b/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -341,7 +348,7 @@ CodeEditorComponent::CodeEditorComponent (CodeDocument& doc, CodeTokeniser* cons setMouseCursor (MouseCursor::IBeamCursor); setWantsKeyboardFocus (true); - caret.reset (getLookAndFeel().createCaretComponent (this)); + lookAndFeelChanged(); addAndMakeVisible (caret.get()); addAndMakeVisible (verticalScrollBar); @@ -1308,6 +1315,11 @@ bool CodeEditorComponent::perform (const InvocationInfo& info) return performCommand (info.commandID); } +void CodeEditorComponent::lookAndFeelChanged() +{ + caret.reset (getLookAndFeel().createCaretComponent (this)); +} + bool CodeEditorComponent::performCommand (const CommandID commandID) { switch (commandID) diff --git a/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h b/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h index 115048f36..29617a153 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h +++ b/source/modules/juce_gui_extra/code_editor/juce_CodeEditorComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -371,6 +378,8 @@ public: void getCommandInfo (CommandID, ApplicationCommandInfo&) override; /** @internal */ bool perform (const InvocationInfo&) override; + /** @internal */ + void lookAndFeelChanged() override; private: //============================================================================== diff --git a/source/modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h b/source/modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h index 552fd6544..c398ae672 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h +++ b/source/modules/juce_gui_extra/code_editor/juce_CodeTokeniser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.cpp b/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.cpp index 2815d47d2..99a3dadaf 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.cpp +++ b/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.h b/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.h index 980af0114..8e1f39a64 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.h +++ b/source/modules/juce_gui_extra/code_editor/juce_LuaCodeTokeniser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.cpp b/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.cpp index 7fbdb065d..be04178fb 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.cpp +++ b/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.h b/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.h index 46bdac126..0025c2b47 100644 --- a/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.h +++ b/source/modules/juce_gui_extra/code_editor/juce_XMLCodeTokeniser.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.cpp b/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.cpp index 3ab3f80be..aa4f64a63 100644 --- a/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.cpp +++ b/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.h b/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.h index 3288ceab6..8e929c760 100644 --- a/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.h +++ b/source/modules/juce_gui_extra/documents/juce_FileBasedDocument.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h b/source/modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h index f3b080cf0..9e240e13c 100644 --- a/source/modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_ActiveXControlComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_AndroidViewComponent.h b/source/modules/juce_gui_extra/embedding/juce_AndroidViewComponent.h index 5452f3ab9..3de06939f 100644 --- a/source/modules/juce_gui_extra/embedding/juce_AndroidViewComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_AndroidViewComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_HWNDComponent.h b/source/modules/juce_gui_extra/embedding/juce_HWNDComponent.h index b1a8b0152..34761652c 100644 --- a/source/modules/juce_gui_extra/embedding/juce_HWNDComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_HWNDComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_NSViewComponent.h b/source/modules/juce_gui_extra/embedding/juce_NSViewComponent.h index d0b6ab218..897cc5e6a 100644 --- a/source/modules/juce_gui_extra/embedding/juce_NSViewComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_NSViewComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h b/source/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h index d79d3951d..cb9644b78 100644 --- a/source/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h +++ b/source/modules/juce_gui_extra/embedding/juce_ScopedDPIAwarenessDisabler.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_UIViewComponent.h b/source/modules/juce_gui_extra/embedding/juce_UIViewComponent.h index c7366ec9f..357551b39 100644 --- a/source/modules/juce_gui_extra/embedding/juce_UIViewComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_UIViewComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/embedding/juce_XEmbedComponent.h b/source/modules/juce_gui_extra/embedding/juce_XEmbedComponent.h index c55540f34..9eb8e97b6 100644 --- a/source/modules/juce_gui_extra/embedding/juce_XEmbedComponent.h +++ b/source/modules/juce_gui_extra/embedding/juce_XEmbedComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/juce_gui_extra.cpp b/source/modules/juce_gui_extra/juce_gui_extra.cpp index ea7066cc7..d4ebed7fd 100644 --- a/source/modules/juce_gui_extra/juce_gui_extra.cpp +++ b/source/modules/juce_gui_extra/juce_gui_extra.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -33,7 +40,7 @@ #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1 #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1 -#if JUCE_USE_WINRT_WEBVIEW +#if JUCE_USE_WIN_WEBVIEW2 #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1 #endif @@ -85,9 +92,8 @@ #if JUCE_WEB_BROWSER #include #include - #if JUCE_USE_WINRT_WEBVIEW - #include - #include + + #if JUCE_USE_WIN_WEBVIEW2 #include #include @@ -96,7 +102,15 @@ #include #include #pragma warning (pop) + + #include "WebView2.h" + + #pragma warning (push) + #pragma warning (disable: 4458) + #include "WebView2EnvironmentOptions.h" + #pragma warning (pop) #endif + #endif //============================================================================== diff --git a/source/modules/juce_gui_extra/juce_gui_extra.h b/source/modules/juce_gui_extra/juce_gui_extra.h index 6d37f5a33..822c1885e 100644 --- a/source/modules/juce_gui_extra/juce_gui_extra.h +++ b/source/modules/juce_gui_extra/juce_gui_extra.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -21,7 +28,7 @@ The block below describes the properties of this module, and is read by the Projucer to automatically generate project code that uses it. For details about the syntax and how to create or use a module, see the - JUCE Module Format.txt file. + JUCE Module Format.md file. BEGIN_JUCE_MODULE_DECLARATION @@ -57,19 +64,20 @@ #define JUCE_WEB_BROWSER 1 #endif -/** Config: JUCE_USE_WINRT_WEBVIEW - Enables the use of the EdgeHTML browser engine on Windows. This will use - the Windows Runtime API on Windows 10 version 1809 (October 2018 Update) - and later. If you enable this flag then older versions of Windows will - automatically fall back to using the regualar Win32 web view. +/** Config: JUCE_USE_WIN_WEBVIEW2 + Enables the use of the Microsoft Edge (Chromium) WebView2 browser on Windows, + currently in developer preview. + + If using the Projucer, the Microsoft.Web.WebView2 package will be added to the + project solution if this flag is enabled. If you are building using CMake you + will need to manually add the package via the Visual Studio package manager. - You will need version 10.0.14393.0 of the Windows Standalone SDK to compile - and you may need to add the path to the WinRT headers. The path to the - headers will be something similar to - "C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\winrt". + In addition to enabling this macro, you will need to use the + WindowsWebView2WebBrowserComponent wrapper - see the documentation of that + class for more details. */ -#ifndef JUCE_USE_WINRT_WEBVIEW - #define JUCE_USE_WINRT_WEBVIEW 0 +#ifndef JUCE_USE_WIN_WEBVIEW2 + #define JUCE_USE_WIN_WEBVIEW2 0 #endif /** Config: JUCE_ENABLE_LIVE_CONSTANT_EDITOR diff --git a/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.cpp b/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.cpp index 818a67388..70ea85573 100644 --- a/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.cpp +++ b/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.h b/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.h index 00a540640..34f63e1c4 100644 --- a/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.h +++ b/source/modules/juce_gui_extra/misc/juce_AnimatedAppComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_AppleRemote.h b/source/modules/juce_gui_extra/misc/juce_AppleRemote.h index ffefc5d4c..41f22cc75 100644 --- a/source/modules/juce_gui_extra/misc/juce_AppleRemote.h +++ b/source/modules/juce_gui_extra/misc/juce_AppleRemote.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp b/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp index 829dbe456..341768976 100644 --- a/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp +++ b/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h b/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h index 740524db0..437db81b4 100644 --- a/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h +++ b/source/modules/juce_gui_extra/misc/juce_BubbleMessageComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_ColourSelector.cpp b/source/modules/juce_gui_extra/misc/juce_ColourSelector.cpp index 3573bb53b..ca7878945 100644 --- a/source/modules/juce_gui_extra/misc/juce_ColourSelector.cpp +++ b/source/modules/juce_gui_extra/misc/juce_ColourSelector.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_ColourSelector.h b/source/modules/juce_gui_extra/misc/juce_ColourSelector.h index 1b93efab9..5804c94a8 100644 --- a/source/modules/juce_gui_extra/misc/juce_ColourSelector.h +++ b/source/modules/juce_gui_extra/misc/juce_ColourSelector.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.cpp b/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.cpp index 5b4f00248..7fff036e9 100644 --- a/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.cpp +++ b/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h b/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h index bb1bf6eac..a9d80081e 100644 --- a/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h +++ b/source/modules/juce_gui_extra/misc/juce_KeyMappingEditorComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp b/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp index c49771d2b..2631869a3 100644 --- a/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp +++ b/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.h b/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.h index 1afb563aa..a49bc01c6 100644 --- a/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.h +++ b/source/modules/juce_gui_extra/misc/juce_LiveConstantEditor.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.cpp b/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.cpp index e552530b4..f3efdc347 100644 --- a/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.cpp +++ b/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.h b/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.h index 3218f86ef..4ce8ab1e0 100644 --- a/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.h +++ b/source/modules/juce_gui_extra/misc/juce_PreferencesPanel.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_PushNotifications.cpp b/source/modules/juce_gui_extra/misc/juce_PushNotifications.cpp index 172293ca2..04b682e2b 100644 --- a/source/modules/juce_gui_extra/misc/juce_PushNotifications.cpp +++ b/source/modules/juce_gui_extra/misc/juce_PushNotifications.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_PushNotifications.h b/source/modules/juce_gui_extra/misc/juce_PushNotifications.h index e57d9aa00..f7f276f6e 100644 --- a/source/modules/juce_gui_extra/misc/juce_PushNotifications.h +++ b/source/modules/juce_gui_extra/misc/juce_PushNotifications.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.cpp b/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.cpp index fc17aa7c5..9786c0875 100644 --- a/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.cpp +++ b/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h b/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h index 629d94110..7d2208583 100644 --- a/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h +++ b/source/modules/juce_gui_extra/misc/juce_RecentlyOpenedFilesList.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_SplashScreen.cpp b/source/modules/juce_gui_extra/misc/juce_SplashScreen.cpp index 49ae4c792..04d3fbe16 100644 --- a/source/modules/juce_gui_extra/misc/juce_SplashScreen.cpp +++ b/source/modules/juce_gui_extra/misc/juce_SplashScreen.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_SplashScreen.h b/source/modules/juce_gui_extra/misc/juce_SplashScreen.h index 971817e5c..ccff70b79 100644 --- a/source/modules/juce_gui_extra/misc/juce_SplashScreen.h +++ b/source/modules/juce_gui_extra/misc/juce_SplashScreen.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.cpp b/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.cpp index 79e37c277..52cbf28b6 100644 --- a/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.cpp +++ b/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h b/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h index 15184b866..b5241d5bd 100644 --- a/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h +++ b/source/modules/juce_gui_extra/misc/juce_SystemTrayIconComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h b/source/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h index 47a56a574..4d355251f 100644 --- a/source/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h +++ b/source/modules/juce_gui_extra/misc/juce_WebBrowserComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -26,9 +33,12 @@ namespace juce A component that displays an embedded web browser. The browser itself will be platform-dependent. On Mac and iOS it will be - WebKit, if you have enabled JUCE_USE_WINRT_WEBVIEW on Windows 10 it will be - EdgeHTML otherwise IE, on Android it will be Chrome, and on Linux it will be - WebKit. + WebKit, on Android it will be Chrome, and on Linux it will be WebKit. + + On Windows it will be IE, but if JUCE_USE_WIN_WEBVIEW2 is enabled then using + the WindowsWebView2WebBrowserComponent wrapper instead of this class directly + will attempt to use the Microsoft Edge (Chromium) WebView2. See the documentation + of that class for more information about its requirements. @tags{GUI} */ @@ -132,6 +142,13 @@ public: class Pimpl; private: + //============================================================================== + friend class WindowsWebView2WebBrowserComponent; + + explicit WebBrowserComponent (bool unloadPageWhenBrowserIsHidden, + const File& dllLocation, + const File& userDataFolder); + //============================================================================== std::unique_ptr browser; bool blankPageShown = false, unloadPageWhenBrowserIsHidden; @@ -145,6 +162,52 @@ private: JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebBrowserComponent) }; +//============================================================================== +/** + If you have enabled the JUCE_USE_WIN_WEBVIEW2 flag then this wrapper will attempt to + use the Microsoft Edge (Chromium) WebView2 control instead of IE on Windows. It will + behave the same as WebBrowserComponent on all other platforms and will fall back to + IE on Windows if the WebView2 requirements are not met. + + This requires Microsoft Edge (minimum version 82.0.488.0) to be installed at runtime. + + Currently this also requires that WebView2Loader.dll, which can be found in the + Microsoft.Web.WebView package, is installed at runtime. As this is not a standard + system DLL, we can't rely on it being found via the normal system DLL search paths. + Therefore in order to use WebView2 you need to ensure that WebView2Loader.dll is + installed either to a location covered by the Windows DLL system search paths or + to the folder specified in the constructor of this class. + + @tags{GUI} +*/ +class WindowsWebView2WebBrowserComponent : public WebBrowserComponent +{ +public: + /** Creates a WebBrowserComponent that is compatible with the WebView2 control + on Windows. + + This allows you to specify a custom location for the WebView2Loader.dll as + well as a non-default location for storing user data for the browser instance. + + @param unloadPageWhenBrowserIsHidden if this is true, then when the browser + component is taken offscreen, it'll clear the current page + and replace it with a blank page - this can be handy to stop + the browser using resources in the background when it's not + actually being used. + @param dllLocation the path to WebView2Loader.dll, if this is empty then the default + system DLL search paths will be used + @param userDataFolder a directory in which the WebView2 user data will be stored, if + this is empty then a directory will be created next to the + executable + */ + explicit WindowsWebView2WebBrowserComponent (bool unloadPageWhenBrowserIsHidden = true, + const File& dllLocation = {}, + const File& userDataFolder = {}) + : WebBrowserComponent (unloadPageWhenBrowserIsHidden, dllLocation, userDataFolder) + { + } +}; + #endif } // namespace juce diff --git a/source/modules/juce_gui_extra/native/juce_AndroidViewComponent.cpp b/source/modules/juce_gui_extra/native/juce_AndroidViewComponent.cpp index 8867c55ef..931a80dad 100644 --- a/source/modules/juce_gui_extra/native/juce_AndroidViewComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_AndroidViewComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp b/source/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp index 646bb9f18..e108081ee 100644 --- a/source/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp +++ b/source/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp b/source/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp index 6a638db76..3f6236c4e 100644 --- a/source/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_android_WebBrowserComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -585,6 +592,13 @@ WebBrowserComponent::WebBrowserComponent (const bool unloadWhenHidden) addAndMakeVisible (browser.get()); } +WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden, + const File&, + const File&) + : WebBrowserComponent (unloadWhenHidden) +{ +} + WebBrowserComponent::~WebBrowserComponent() { } diff --git a/source/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp b/source/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp index 464007a11..5255d835a 100644 --- a/source/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp +++ b/source/modules/juce_gui_extra/native/juce_ios_PushNotifications.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_ios_UIViewComponent.mm b/source/modules/juce_gui_extra/native/juce_ios_UIViewComponent.mm index 228fcf0c4..c606cd3cd 100644 --- a/source/modules/juce_gui_extra/native/juce_ios_UIViewComponent.mm +++ b/source/modules/juce_gui_extra/native/juce_ios_UIViewComponent.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_linux_X11_SystemTrayIcon.cpp b/source/modules/juce_gui_extra/native/juce_linux_X11_SystemTrayIcon.cpp index c03763a34..d18a0c495 100644 --- a/source/modules/juce_gui_extra/native/juce_linux_X11_SystemTrayIcon.cpp +++ b/source/modules/juce_gui_extra/native/juce_linux_X11_SystemTrayIcon.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -73,12 +80,14 @@ public: 32, PropModeReplace, (unsigned char*) &windowH, 1); // A minimum size must be specified for GNOME and Xfce, otherwise the icon is displayed with a width of 1 - auto* hints = X11Symbols::getInstance()->xAllocSizeHints(); - hints->flags = PMinSize; - hints->min_width = 22; - hints->min_height = 22; - X11Symbols::getInstance()->xSetWMNormalHints (display, windowH, hints); - X11Symbols::getInstance()->xFree (hints); + if (auto* hints = X11Symbols::getInstance()->xAllocSizeHints()) + { + hints->flags = PMinSize; + hints->min_width = 22; + hints->min_height = 22; + X11Symbols::getInstance()->xSetWMNormalHints (display, windowH, hints); + X11Symbols::getInstance()->xFree (hints); + } } Image image; diff --git a/source/modules/juce_gui_extra/native/juce_linux_X11_WebBrowserComponent.cpp b/source/modules/juce_gui_extra/native/juce_linux_X11_WebBrowserComponent.cpp index 9c8e29f60..eee4c2103 100644 --- a/source/modules/juce_gui_extra/native/juce_linux_X11_WebBrowserComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_linux_X11_WebBrowserComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -24,7 +31,7 @@ class WebKitSymbols : public DeletedAtShutdown { public: //============================================================================== - bool isWebKitAvailable() { return webKitIsAvailable; } + bool isWebKitAvailable() const noexcept { return webKitIsAvailable; } //============================================================================== JUCE_GENERATE_FUNCTION_WITH_DEFAULT (webkit_settings_new, juce_webkit_settings_new, @@ -898,9 +905,9 @@ private: }; //============================================================================== -WebBrowserComponent::WebBrowserComponent (const bool unloadPageWhenBrowserIsHidden_) +WebBrowserComponent::WebBrowserComponent (const bool unloadWhenHidden) : browser (new Pimpl (*this)), - unloadPageWhenBrowserIsHidden (unloadPageWhenBrowserIsHidden_) + unloadPageWhenBrowserIsHidden (unloadWhenHidden) { ignoreUnused (blankPageShown); ignoreUnused (unloadPageWhenBrowserIsHidden); @@ -910,6 +917,13 @@ WebBrowserComponent::WebBrowserComponent (const bool unloadPageWhenBrowserIsHidd browser->init(); } +WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden, + const File&, + const File&) + : WebBrowserComponent (unloadWhenHidden) +{ +} + WebBrowserComponent::~WebBrowserComponent() { } diff --git a/source/modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp b/source/modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp index 7705de893..2d9731676 100644 --- a/source/modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_linux_XEmbedComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_AppleRemote.mm b/source/modules/juce_gui_extra/native/juce_mac_AppleRemote.mm index 74a3c9d65..6aef84355 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_AppleRemote.mm +++ b/source/modules/juce_gui_extra/native/juce_mac_AppleRemote.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h b/source/modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h index 05a4ebb6c..0e48ae840 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h +++ b/source/modules/juce_gui_extra/native/juce_mac_CarbonViewWrapperComponent.h @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm b/source/modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm index 8cbb97abb..a4d997a83 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm +++ b/source/modules/juce_gui_extra/native/juce_mac_NSViewComponent.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_PushNotifications.cpp b/source/modules/juce_gui_extra/native/juce_mac_PushNotifications.cpp index 30ed0edd5..49e0e3cf6 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_PushNotifications.cpp +++ b/source/modules/juce_gui_extra/native/juce_mac_PushNotifications.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_SystemTrayIcon.cpp b/source/modules/juce_gui_extra/native/juce_mac_SystemTrayIcon.cpp index e4d052bd1..b92b3b37a 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_SystemTrayIcon.cpp +++ b/source/modules/juce_gui_extra/native/juce_mac_SystemTrayIcon.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_mac_WebBrowserComponent.mm b/source/modules/juce_gui_extra/native/juce_mac_WebBrowserComponent.mm index 117f56814..219370dba 100644 --- a/source/modules/juce_gui_extra/native/juce_mac_WebBrowserComponent.mm +++ b/source/modules/juce_gui_extra/native/juce_mac_WebBrowserComponent.mm @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -543,6 +550,13 @@ WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden) addAndMakeVisible (browser.get()); } +WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden, + const File&, + const File&) + : WebBrowserComponent (unloadWhenHidden) +{ +} + WebBrowserComponent::~WebBrowserComponent() { } diff --git a/source/modules/juce_gui_extra/native/juce_win32_ActiveXComponent.cpp b/source/modules/juce_gui_extra/native/juce_win32_ActiveXComponent.cpp index d9fe7da12..c5aacd484 100644 --- a/source/modules/juce_gui_extra/native/juce_win32_ActiveXComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_win32_ActiveXComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_win32_HWNDComponent.cpp b/source/modules/juce_gui_extra/native/juce_win32_HWNDComponent.cpp index 7b9662943..c4d6ef77e 100644 --- a/source/modules/juce_gui_extra/native/juce_win32_HWNDComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_win32_HWNDComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_win32_SystemTrayIcon.cpp b/source/modules/juce_gui_extra/native/juce_win32_SystemTrayIcon.cpp index 61102476a..629d958a9 100644 --- a/source/modules/juce_gui_extra/native/juce_win32_SystemTrayIcon.cpp +++ b/source/modules/juce_gui_extra/native/juce_win32_SystemTrayIcon.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE diff --git a/source/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp b/source/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp index e5b926cd7..630cac0b3 100644 --- a/source/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp +++ b/source/modules/juce_gui_extra/native/juce_win32_WebBrowserComponent.cpp @@ -1,13 +1,20 @@ /* ============================================================================== - This file is part of the JUCE 6 technical preview. + This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited - You may use this code under the terms of the GPL v3 - (see www.gnu.org/licenses). + JUCE is an open source library subject to commercial or open-source + licensing. - For this technical preview, this file is not subject to commercial licensing. + By using JUCE, you agree to the terms of both the JUCE 6 End-User License + Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020). + + End User License Agreement: www.juce.com/juce-6-licence + Privacy Policy: www.juce.com/juce-privacy-policy + + Or: You may also use this code under the terms of the GPL v3 (see + www.gnu.org/licenses). JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE @@ -310,114 +317,100 @@ private: JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EventHandler) }; -}; -#if JUCE_USE_WINRT_WEBVIEW + //============================================================================== + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Win32WebView) +}; -extern RTL_OSVERSIONINFOW getWindowsVersionInfo(); +#if JUCE_USE_WIN_WEBVIEW2 using namespace Microsoft::WRL; -using namespace ABI::Windows::Foundation; -using namespace ABI::Windows::Storage::Streams; -using namespace ABI::Windows::Web; -using namespace ABI::Windows::Web::UI; -using namespace ABI::Windows::Web::UI::Interop; -using namespace ABI::Windows::Web::Http; -using namespace ABI::Windows::Web::Http::Headers; - -//============================================================================== -class WinRTWebView : public InternalWebViewType, - public Component, - public ComponentMovementWatcher +class WebView2 : public InternalWebViewType, + public Component, + public ComponentMovementWatcher { public: - WinRTWebView (WebBrowserComponent& o) - : ComponentMovementWatcher (&o), - owner (o) + WebView2 (WebBrowserComponent& o, const File& dllLocation, const File& userDataFolder) + : ComponentMovementWatcher (&o), + owner (o) { if (! WinRTWrapper::getInstance()->isInitialised()) throw std::runtime_error ("Failed to initialise the WinRT wrapper"); - if (! createWebViewProcess()) - throw std::runtime_error ("Failed to create the WebViewControlProcess"); + if (! createWebViewEnvironment (dllLocation, userDataFolder)) + throw std::runtime_error ("Failed to create the CoreWebView2Environemnt"); owner.addAndMakeVisible (this); } - ~WinRTWebView() override + ~WebView2() override { - if (webViewControl != nullptr) - webViewControl->Stop(); - removeEventHandlers(); + closeWebView(); - webViewProcess->Terminate(); + if (webView2LoaderHandle != nullptr) + ::FreeLibrary (webView2LoaderHandle); } void createBrowser() override { - if (webViewControl == nullptr) - createWebViewControl(); + if (webView == nullptr) + { + jassert (webViewEnvironment != nullptr); + createWebView(); + } } bool hasBrowserBeenCreated() override { - return webViewControl != nullptr || isCreating; + return webView != nullptr || isCreating; } void goToURL (const String& url, const StringArray* headers, const MemoryBlock* postData) override { - if (webViewControl != nullptr) - { - if ((headers != nullptr && ! headers->isEmpty()) - || (postData != nullptr && postData->getSize() > 0)) - { - auto requestMessage = createHttpRequestMessage (url, headers, postData); - webViewControl->NavigateWithHttpRequestMessage (requestMessage.get()); - } - else - { - auto uri = createURI (url); - webViewControl->Navigate (uri.get()); - } - } + urlRequest = { url, + headers != nullptr ? *headers : StringArray(), + postData != nullptr && postData->getSize() > 0 ? *postData : MemoryBlock() }; + + if (webView != nullptr) + webView->Navigate (urlRequest.url.toWideCharPointer()); } void stop() override { - if (webViewControl != nullptr) - webViewControl->Stop(); + if (webView != nullptr) + webView->Stop(); } void goBack() override { - if (webViewControl != nullptr) + if (webView != nullptr) { - boolean canGoBack = false; - webViewControl->get_CanGoBack (&canGoBack); + BOOL canGoBack = false; + webView->get_CanGoBack (&canGoBack); if (canGoBack) - webViewControl->GoBack(); + webView->GoBack(); } } void goForward() override { - if (webViewControl != nullptr) + if (webView != nullptr) { - boolean canGoForward = false; - webViewControl->get_CanGoForward (&canGoForward); + BOOL canGoForward = false; + webView->get_CanGoForward (&canGoForward); if (canGoForward) - webViewControl->GoForward(); + webView->GoForward(); } } void refresh() override { - if (webViewControl != nullptr) - webViewControl->Refresh(); + if (webView != nullptr) + webView->Reload(); } void setWebViewSize (int width, int height) override @@ -446,117 +439,40 @@ public: private: //============================================================================== - template - static HRESULT waitForCompletion (IAsyncOperation* op, ResultsType* results) - { - using OperationType = IAsyncOperation; - using DelegateType = IAsyncOperationCompletedHandler; - - struct EventDelegate : public RuntimeClass, - DelegateType, - FtmBase> - { - EventDelegate() = default; - - ~EventDelegate() - { - CloseHandle (eventCompleted); - } - - HRESULT RuntimeClassInitialize() - { - eventCompleted = CreateEventEx (nullptr, nullptr, 0, EVENT_ALL_ACCESS); - return eventCompleted == nullptr ? HRESULT_FROM_WIN32 (GetLastError()) : S_OK; - } - - HRESULT Invoke (OperationType*, AsyncStatus newStatus) - { - status = newStatus; - SetEvent (eventCompleted); - - return S_OK; - } - - AsyncStatus status = AsyncStatus::Started; - HANDLE eventCompleted = nullptr; - }; - - WinRTWrapper::ComPtr operation = op; - WinRTWrapper::ComPtr eventCallback; - - auto hr = MakeAndInitialize (eventCallback.resetAndGetPointerAddress()); - - if (SUCCEEDED (hr)) - { - hr = operation->put_Completed (eventCallback.get()); - - if (SUCCEEDED (hr)) - { - HANDLE waitForEvents[1] { eventCallback->eventCompleted }; - auto handleCount = (ULONG) ARRAYSIZE (waitForEvents); - DWORD handleIndex = 0; - - hr = CoWaitForMultipleHandles (COWAIT_DISPATCH_WINDOW_MESSAGES | COWAIT_DISPATCH_CALLS | COWAIT_INPUTAVAILABLE, - INFINITE, handleCount, waitForEvents, &handleIndex); - - if (SUCCEEDED (hr)) - { - if (eventCallback->status == AsyncStatus::Completed) - { - hr = operation->GetResults (results); - } - else - { - WinRTWrapper::ComPtr asyncInfo; - - if (SUCCEEDED (operation->QueryInterface (asyncInfo.resetAndGetPointerAddress()))) - asyncInfo->get_ErrorCode (&hr); - } - } - } - } - - return hr; - } - - //============================================================================== - template - String getURIStringFromArgs (ArgsType& args) + template + static String getUriStringFromArgs (ArgType* args) { - WinRTWrapper::ComPtr uri; - args.get_Uri (uri.resetAndGetPointerAddress()); - - if (uri != nullptr) + if (args != nullptr) { - HSTRING uriString; - uri->get_AbsoluteUri (&uriString); + LPWSTR uri; + args->get_Uri (&uri); - return WinRTWrapper::getInstance()->hStringToString (uriString); + return uri; } return {}; } + //============================================================================== void addEventHandlers() { - if (webViewControl != nullptr) + if (webView != nullptr) { - webViewControl->add_NavigationStarting (Callback> ( - [this] (IWebViewControl*, IWebViewControlNavigationStartingEventArgs* args) + webView->add_NavigationStarting (Callback ( + [this] (ICoreWebView2*, ICoreWebView2NavigationStartingEventArgs* args) -> HRESULT { - auto uriString = getURIStringFromArgs (*args); + auto uriString = getUriStringFromArgs (args); - if (uriString.isNotEmpty()) - args->put_Cancel (! owner.pageAboutToLoad (uriString)); + if (uriString.isNotEmpty() && ! owner.pageAboutToLoad (uriString)) + args->put_Cancel (true); return S_OK; - } - ).Get(), &navigationStartingToken); + }).Get(), &navigationStartingToken); - webViewControl->add_NewWindowRequested (Callback> ( - [this] (IWebViewControl*, IWebViewControlNewWindowRequestedEventArgs* args) + webView->add_NewWindowRequested (Callback ( + [this] (ICoreWebView2*, ICoreWebView2NewWindowRequestedEventArgs* args) -> HRESULT { - auto uriString = getURIStringFromArgs (*args); + auto uriString = getUriStringFromArgs (args); if (uriString.isNotEmpty()) { @@ -565,237 +481,259 @@ private: } return S_OK; - } - ).Get(), &newWindowRequestedToken); + }).Get(), &newWindowRequestedToken); + + webView->add_WindowCloseRequested (Callback ( + [this] (ICoreWebView2*, IUnknown*) -> HRESULT + { + owner.windowCloseRequest(); + return S_OK; + }).Get(), &windowCloseRequestedToken); - webViewControl->add_NavigationCompleted (Callback> ( - [this] (IWebViewControl*, IWebViewControlNavigationCompletedEventArgs* args) + webView->add_NavigationCompleted (Callback ( + [this] (ICoreWebView2* sender, ICoreWebView2NavigationCompletedEventArgs* args) -> HRESULT { - auto uriString = getURIStringFromArgs (*args); + LPWSTR uri; + sender->get_Source (&uri); + + String uriString (uri); if (uriString.isNotEmpty()) { - boolean success; + BOOL success = false; args->get_IsSuccess (&success); - if (success) + COREWEBVIEW2_WEB_ERROR_STATUS errorStatus; + args->get_WebErrorStatus (&errorStatus); + + if (success + || errorStatus == COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED) // this error seems to happen erroneously so ignore { owner.pageFinishedLoading (uriString); } else { - WebErrorStatus status; - args->get_WebErrorStatus (&status); + auto errorString = "Error code: " + String (errorStatus); - owner.pageLoadHadNetworkError ("Error code: " + String (status)); + if (owner.pageLoadHadNetworkError (errorString)) + owner.goToURL ("data:text/plain;charset=UTF-8," + errorString); } } return S_OK; - } - ).Get(), &navigationCompletedToken); - } - } + }).Get(), &navigationCompletedToken); - void removeEventHandlers() - { - if (webViewControl != nullptr) - { - if (navigationStartingToken.value != 0) - webViewControl->remove_NavigationStarting (navigationStartingToken); + webView->AddWebResourceRequestedFilter (L"*", COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT); - if (newWindowRequestedToken.value != 0) - webViewControl->remove_NewWindowRequested (newWindowRequestedToken); + webView->add_WebResourceRequested (Callback ( + [this] (ICoreWebView2*, ICoreWebView2WebResourceRequestedEventArgs* args) -> HRESULT + { + if (urlRequest.url.isEmpty()) + return S_OK; - if (navigationCompletedToken.value != 0) - webViewControl->remove_NavigationCompleted (navigationCompletedToken); - } - } + WinRTWrapper::ComPtr request; + args->get_Request (request.resetAndGetPointerAddress()); - bool createWebViewProcess() - { - auto webViewControlProcessFactory - = WinRTWrapper::getInstance()->getWRLFactory (RuntimeClass_Windows_Web_UI_Interop_WebViewControlProcess); + auto uriString = getUriStringFromArgs (request.get()); - if (webViewControlProcessFactory == nullptr) - { - jassertfalse; - return false; - } + if (uriString == urlRequest.url + || (uriString.endsWith ("/") && uriString.upToLastOccurrenceOf ("/", false, false) == urlRequest.url)) + { + String method ("GET"); - auto webViewProcessOptions - = WinRTWrapper::getInstance()->activateInstance (RuntimeClass_Windows_Web_UI_Interop_WebViewControlProcessOptions, - __uuidof (IWebViewControlProcessOptions)); + if (urlRequest.postData.getSize() > 0) + { + method = "POST"; - webViewProcessOptions->put_PrivateNetworkClientServerCapability (WebViewControlProcessCapabilityState_Enabled); - webViewControlProcessFactory->CreateWithOptions (webViewProcessOptions.get(), webViewProcess.resetAndGetPointerAddress()); + WinRTWrapper::ComPtr content (SHCreateMemStream ((BYTE*) urlRequest.postData.getData(), + (UINT) urlRequest.postData.getSize())); + request->put_Content (content.get()); + } - return webViewProcess != nullptr; + if (! urlRequest.headers.isEmpty()) + { + WinRTWrapper::ComPtr headers; + request->get_Headers (headers.resetAndGetPointerAddress()); + + for (auto& header : urlRequest.headers) + { + headers->SetHeader (header.upToFirstOccurrenceOf (":", false, false).trim().toWideCharPointer(), + header.fromFirstOccurrenceOf (":", false, false).trim().toWideCharPointer()); + } + } + + request->put_Method (method.toWideCharPointer()); + + urlRequest = {}; + } + + return S_OK; + }).Get(), &webResourceRequestedToken); + } } - void createWebViewControl() + void removeEventHandlers() { - if (auto* peer = getPeer()) + if (webView != nullptr) { - ScopedValueSetter svs (isCreating, true); + if (navigationStartingToken.value != 0) + webView->remove_NavigationStarting (navigationStartingToken); - WinRTWrapper::ComPtr> createWebViewAsyncOperation; + if (newWindowRequestedToken.value != 0) + webView->remove_NewWindowRequested (newWindowRequestedToken); - webViewProcess->CreateWebViewControlAsync ((INT64) peer->getNativeHandle(), {}, - createWebViewAsyncOperation.resetAndGetPointerAddress()); + if (windowCloseRequestedToken.value != 0) + webView->remove_WindowCloseRequested (windowCloseRequestedToken); - waitForCompletion (createWebViewAsyncOperation.get(), webViewControl.resetAndGetPointerAddress()); + if (navigationCompletedToken.value != 0) + webView->remove_NavigationCompleted (navigationCompletedToken); - addEventHandlers(); - componentMovedOrResized (true, true); + if (webResourceRequestedToken.value != 0) + { + webView->RemoveWebResourceRequestedFilter (L"*", COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT); + webView->remove_WebResourceRequested (webResourceRequestedToken); + } } } - //============================================================================== - WinRTWrapper::ComPtr createURI (const String& url) + bool createWebViewEnvironment (const File& dllLocation, const File& userDataFolder) { - auto uriRuntimeFactory - = WinRTWrapper::getInstance()->getWRLFactory (RuntimeClass_Windows_Foundation_Uri); + using CreateWebViewEnvironmentWithOptionsFunc = HRESULT (*) (PCWSTR, PCWSTR, + ICoreWebView2EnvironmentOptions*, + ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler*); - if (uriRuntimeFactory == nullptr) - { - jassertfalse; - return {}; - } + auto dllPath = dllLocation.getFullPathName(); - WinRTWrapper::ScopedHString hstr (url); - WinRTWrapper::ComPtr uriRuntimeClass; - uriRuntimeFactory->CreateUri (hstr.get(), uriRuntimeClass.resetAndGetPointerAddress()); + if (dllPath.isEmpty()) + dllPath = "WebView2Loader.dll"; - return uriRuntimeClass; - } + webView2LoaderHandle = LoadLibraryA (dllPath.toUTF8()); - WinRTWrapper::ComPtr getPOSTContent (const MemoryBlock& postData) - { - auto factory = WinRTWrapper::getInstance()->getWRLFactory (RuntimeClass_Windows_Web_Http_HttpStringContent); + if (webView2LoaderHandle == nullptr) + return false; - if (factory == nullptr) + auto* createWebViewEnvironmentWithOptions = (CreateWebViewEnvironmentWithOptionsFunc) GetProcAddress (webView2LoaderHandle, + "CreateCoreWebView2EnvironmentWithOptions"); + if (createWebViewEnvironmentWithOptions == nullptr) { + // failed to load WebView2Loader.dll jassertfalse; - return {}; + return false; } - WinRTWrapper::ScopedHString hStr (postData.toString()); + auto options = Microsoft::WRL::Make(); - WinRTWrapper::ComPtr content; - factory->CreateFromString (hStr.get(), content.resetAndGetPointerAddress()); + WeakReference weakThis (this); + auto hr = createWebViewEnvironmentWithOptions (nullptr, + userDataFolder != File() ? userDataFolder.getFullPathName().toWideCharPointer() : nullptr, + options.Get(), + Callback( + [this, weakThis] (HRESULT, ICoreWebView2Environment* env) -> HRESULT + { + if (weakThis != nullptr) + webViewEnvironment = env; + + return S_OK; + }).Get()); - return content; + return SUCCEEDED (hr); } - WinRTWrapper::ComPtr getMethod (bool isPOST) + void createWebView() { - auto methodFactory = WinRTWrapper::getInstance()->getWRLFactory (RuntimeClass_Windows_Web_Http_HttpMethod); - - if (methodFactory == nullptr) + if (auto* peer = getPeer()) { - jassertfalse; - return {}; - } + isCreating = true; - WinRTWrapper::ComPtr method; + WeakReference weakThis (this); - if (isPOST) - methodFactory->get_Post (method.resetAndGetPointerAddress()); - else - methodFactory->get_Get (method.resetAndGetPointerAddress()); + webViewEnvironment->CreateCoreWebView2Controller ((HWND) peer->getNativeHandle(), + Callback ( + [this, weakThis] (HRESULT, ICoreWebView2Controller* controller) -> HRESULT + { + if (weakThis != nullptr) + { + isCreating = false; - return method; - } + if (controller != nullptr) + { + webViewController = controller; + controller->get_CoreWebView2 (webView.resetAndGetPointerAddress()); - void addHttpHeaders (WinRTWrapper::ComPtr& requestMessage, const StringArray& headers) - { - WinRTWrapper::ComPtr headerCollection; - requestMessage->get_Headers (headerCollection.resetAndGetPointerAddress()); + addEventHandlers(); + componentMovedOrResized (true, true); - for (int i = 0; i < headers.size(); ++i) - { - WinRTWrapper::ScopedHString headerName (headers[i].upToFirstOccurrenceOf (":", false, false).trim()); - WinRTWrapper::ScopedHString headerValue (headers[i].fromFirstOccurrenceOf (":", false, false).trim()); + if (webView != nullptr && urlRequest.url.isNotEmpty()) + webView->Navigate (urlRequest.url.toWideCharPointer()); + } + } - headerCollection->Append (headerName.get(), headerValue.get()); + return S_OK; + }).Get()); } } - WinRTWrapper::ComPtr createHttpRequestMessage (const String& url, - const StringArray* headers, - const MemoryBlock* postData) + void closeWebView() { - auto requestFactory - = WinRTWrapper::getInstance()->getWRLFactory (RuntimeClass_Windows_Web_Http_HttpRequestMessage); - - if (requestFactory == nullptr) + if (webViewController.get() != nullptr) { - jassertfalse; - return {}; + webViewController->Close(); + webViewController = nullptr; + webView = nullptr; } - bool isPOSTRequest = (postData != nullptr && postData->getSize() > 0); - auto method = getMethod (isPOSTRequest); - - auto uri = createURI (url); - - WinRTWrapper::ComPtr requestMessage; - requestFactory->Create (method.get(), uri.get(), requestMessage.resetAndGetPointerAddress()); - - if (isPOSTRequest) - { - auto content = getPOSTContent (*postData); - requestMessage->put_Content (content.get()); - } - - if (headers != nullptr && ! headers->isEmpty()) - addHttpHeaders (requestMessage, *headers); - - return requestMessage; + webViewEnvironment = nullptr; } //============================================================================== void setControlBounds (Rectangle newBounds) const { - if (webViewControl != nullptr) + if (webViewController != nullptr) { #if JUCE_WIN_PER_MONITOR_DPI_AWARE if (auto* peer = owner.getTopLevelComponent()->getPeer()) newBounds = (newBounds.toDouble() * peer->getPlatformScaleFactor()).toNearestInt(); #endif - WinRTWrapper::ComPtr site; - - if (SUCCEEDED (webViewControl->QueryInterface (site.resetAndGetPointerAddress()))) - site->put_Bounds ({ static_cast (newBounds.getX()), static_cast (newBounds.getY()), - static_cast (newBounds.getWidth()), static_cast (newBounds.getHeight()) }); + webViewController->put_Bounds({ newBounds.getX(), newBounds.getY(), + newBounds.getRight(), newBounds.getBottom() }); } - } void setControlVisible (bool shouldBeVisible) const { - if (webViewControl != 0) - { - WinRTWrapper::ComPtr site; - - if (SUCCEEDED (webViewControl->QueryInterface (site.resetAndGetPointerAddress()))) - site->put_IsVisible (shouldBeVisible); - } + if (webViewController != nullptr) + webViewController->put_IsVisible (shouldBeVisible); } //============================================================================== WebBrowserComponent& owner; - WinRTWrapper::ComPtr webViewProcess; - WinRTWrapper::ComPtr webViewControl; + HMODULE webView2LoaderHandle = nullptr; + + WinRTWrapper::ComPtr webViewEnvironment; + WinRTWrapper::ComPtr webViewController; + WinRTWrapper::ComPtr webView; - EventRegistrationToken navigationStartingToken { 0 }, - newWindowRequestedToken { 0 }, - navigationCompletedToken { 0 }; + EventRegistrationToken navigationStartingToken { 0 }, + newWindowRequestedToken { 0 }, + windowCloseRequestedToken { 0 }, + navigationCompletedToken { 0 }, + webResourceRequestedToken { 0 }; + + struct URLRequest + { + String url; + StringArray headers; + MemoryBlock postData; + }; + URLRequest urlRequest; bool isCreating = false; + + //============================================================================== + JUCE_DECLARE_WEAK_REFERENCEABLE (WebView2) + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebView2) }; #endif @@ -804,20 +742,20 @@ private: class WebBrowserComponent::Pimpl { public: - Pimpl (WebBrowserComponent& owner) + Pimpl (WebBrowserComponent& owner, const File& dllLocation, const File& userDataFolder, bool useWebView2) { - #if JUCE_USE_WINRT_WEBVIEW - auto windowsVersionInfo = getWindowsVersionInfo(); + if (useWebView2) + { + #if JUCE_USE_WIN_WEBVIEW2 + try + { + internal.reset (new WebView2 (owner, dllLocation, userDataFolder)); + } + catch (std::runtime_error&) {} + #endif + } - if (windowsVersionInfo.dwMajorVersion >= 10 && windowsVersionInfo.dwBuildNumber >= 17763) - { - try - { - internal.reset (new WinRTWebView (owner)); - } - catch (std::runtime_error&) {} - } - #endif + ignoreUnused (dllLocation, userDataFolder); if (internal == nullptr) internal.reset (new Win32WebView (owner)); @@ -834,7 +772,16 @@ private: //============================================================================== WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden) - : browser (new Pimpl (*this)), + : browser (new Pimpl (*this, {}, {}, false)), + unloadPageWhenBrowserIsHidden (unloadWhenHidden) +{ + setOpaque (true); +} + +WebBrowserComponent::WebBrowserComponent (bool unloadWhenHidden, + const File& dllLocation, + const File& userDataFolder) + : browser (new Pimpl (*this, dllLocation, userDataFolder, true)), unloadPageWhenBrowserIsHidden (unloadWhenHidden) { setOpaque (true);