mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-08 23:24:19 +00:00
161 lines
6.6 KiB
C
161 lines
6.6 KiB
C
/*
|
|
==============================================================================
|
|
|
|
This file is part of the JUCE framework.
|
|
Copyright (c) Raw Material Software Limited
|
|
|
|
JUCE is an open source framework subject to commercial or open source
|
|
licensing.
|
|
|
|
By downloading, installing, or using the JUCE framework, or combining the
|
|
JUCE framework with any other source code, object code, content or any other
|
|
copyrightable work, you agree to the terms of the JUCE End User Licence
|
|
Agreement, and all incorporated terms including the JUCE Privacy Policy and
|
|
the JUCE Website Terms of Service, as applicable, which will bind you. If you
|
|
do not agree to the terms of these agreements, we will not license the JUCE
|
|
framework to you, and you must discontinue the installation or download
|
|
process and cease use of the JUCE framework.
|
|
|
|
JUCE End User Licence Agreement: https://juce.com/legal/juce-8-licence/
|
|
JUCE Privacy Policy: https://juce.com/juce-privacy-policy
|
|
JUCE Website Terms of Service: https://juce.com/juce-website-terms-of-service/
|
|
|
|
Or:
|
|
|
|
You may also use this code under the terms of the AGPLv3:
|
|
https://www.gnu.org/licenses/agpl-3.0.en.html
|
|
|
|
THE JUCE FRAMEWORK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL
|
|
WARRANTIES, WHETHER EXPRESSED OR IMPLIED, INCLUDING WARRANTY OF
|
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
|
|
/*******************************************************************************
|
|
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.md file.
|
|
|
|
|
|
BEGIN_JUCE_MODULE_DECLARATION
|
|
|
|
ID: juce_gui_extra
|
|
vendor: juce
|
|
version: 8.0.12
|
|
name: JUCE extended GUI classes
|
|
description: Miscellaneous GUI classes for specialised tasks.
|
|
website: http://www.juce.com/juce
|
|
license: AGPLv3/Commercial
|
|
minimumCppStandard: 17
|
|
|
|
dependencies: juce_gui_basics
|
|
OSXFrameworks: WebKit
|
|
iOSFrameworks: WebKit
|
|
WeakiOSFrameworks: UserNotifications
|
|
WeakMacOSFrameworks: UserNotifications
|
|
|
|
END_JUCE_MODULE_DECLARATION
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
#pragma once
|
|
#define JUCE_GUI_EXTRA_H_INCLUDED
|
|
|
|
#include <juce_gui_basics/juce_gui_basics.h>
|
|
|
|
//==============================================================================
|
|
/** Config: JUCE_WEB_BROWSER
|
|
This lets you disable the WebBrowserComponent class.
|
|
If you're not using any embedded web-pages, turning this off may reduce your code size.
|
|
*/
|
|
#ifndef JUCE_WEB_BROWSER
|
|
#define JUCE_WEB_BROWSER 1
|
|
#endif
|
|
|
|
/** Config: JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING
|
|
Enables the use of the Microsoft Edge (Chromium) WebView2 browser on Windows.
|
|
|
|
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 NuGet package manager.
|
|
|
|
Using this flag requires statically linking against WebView2LoaderStatic.lib,
|
|
which at this time is only available through the NuGet package, but is missing
|
|
in VCPKG.
|
|
|
|
In addition to enabling this macro, you will need to use the
|
|
WebBrowserComponent::Options::Backend::webview2 option when instantiating the
|
|
WebBrowserComponent.
|
|
*/
|
|
#ifndef JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING
|
|
#define JUCE_USE_WIN_WEBVIEW2_WITH_STATIC_LINKING 0
|
|
#else
|
|
#define JUCE_USE_WIN_WEBVIEW2 1
|
|
#endif
|
|
|
|
/** Config: JUCE_USE_WIN_WEBVIEW2
|
|
Enables the use of the Microsoft Edge (Chromium) WebView2 browser on Windows.
|
|
|
|
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.
|
|
|
|
If the WITH_STATIC_LINKING variant of this flag is also set, you must statically
|
|
link against WebView2LoaderStatic.lib, otherwise dynamic loading will be used.
|
|
|
|
See more about dynamic linking in the documentation of
|
|
WebBrowserComponent::Options::WinWebView2::withDLLLocation().
|
|
|
|
In addition to enabling this macro, you will need to use the
|
|
WebBrowserComponent::Options::Backend::webview2 option when instantiating the
|
|
WebBrowserComponent.
|
|
*/
|
|
#ifndef JUCE_USE_WIN_WEBVIEW2
|
|
#define JUCE_USE_WIN_WEBVIEW2 0
|
|
#endif
|
|
|
|
/** Config: JUCE_ENABLE_LIVE_CONSTANT_EDITOR
|
|
This lets you turn on the JUCE_ENABLE_LIVE_CONSTANT_EDITOR support (desktop only). By default
|
|
this will be enabled for debug builds and disabled for release builds. See the documentation
|
|
for that macro for more details.
|
|
*/
|
|
#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR
|
|
#if JUCE_DEBUG && ! (JUCE_IOS || JUCE_ANDROID)
|
|
#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 1
|
|
#endif
|
|
#endif
|
|
|
|
//==============================================================================
|
|
#include "documents/juce_FileBasedDocument.h"
|
|
#include "code_editor/juce_CodeDocument.h"
|
|
#include "code_editor/juce_CodeEditorComponent.h"
|
|
#include "code_editor/juce_CodeTokeniser.h"
|
|
#include "code_editor/juce_CPlusPlusCodeTokeniser.h"
|
|
#include "code_editor/juce_CPlusPlusCodeTokeniserFunctions.h"
|
|
#include "code_editor/juce_XMLCodeTokeniser.h"
|
|
#include "code_editor/juce_LuaCodeTokeniser.h"
|
|
#include "embedding/juce_ActiveXControlComponent.h"
|
|
#include "embedding/juce_AndroidViewComponent.h"
|
|
#include "embedding/juce_NSViewComponent.h"
|
|
#include "embedding/juce_UIViewComponent.h"
|
|
#include "embedding/juce_XEmbedComponent.h"
|
|
#include "embedding/juce_HWNDComponent.h"
|
|
#include "misc/juce_AppleRemote.h"
|
|
#include "misc/juce_BubbleMessageComponent.h"
|
|
#include "misc/juce_ColourSelector.h"
|
|
#include "misc/juce_KeyMappingEditorComponent.h"
|
|
#include "misc/juce_PreferencesPanel.h"
|
|
#include "misc/juce_PushNotifications.h"
|
|
#include "misc/juce_RecentlyOpenedFilesList.h"
|
|
#include "misc/juce_SplashScreen.h"
|
|
#include "misc/juce_SystemTrayIconComponent.h"
|
|
#include "misc/juce_WebBrowserComponent.h"
|
|
#include "misc/juce_LiveConstantEditor.h"
|
|
#include "misc/juce_AnimatedAppComponent.h"
|
|
#include "detail/juce_WebControlRelayEvents.h"
|
|
#include "misc/juce_WebControlRelays.h"
|
|
#include "misc/juce_WebControlParameterIndexReceiver.h"
|