Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

juce_gui_extra.cpp 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. #ifdef JUCE_GUI_EXTRA_H_INCLUDED
  14. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  15. already included any other headers - just put it inside a file on its own, possibly with your config
  16. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  17. header files that the compiler may be using.
  18. */
  19. #error "Incorrect use of JUCE cpp file"
  20. #endif
  21. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  22. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  23. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  24. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  25. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  26. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  27. #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
  28. #if JUCE_USE_WINRT_WEBVIEW
  29. #define JUCE_EVENTS_INCLUDE_WINRT_WRAPPER 1
  30. #endif
  31. #ifndef JUCE_PUSH_NOTIFICATIONS
  32. #define JUCE_PUSH_NOTIFICATIONS 0
  33. #endif
  34. #include "juce_gui_extra.h"
  35. //==============================================================================
  36. #if JUCE_MAC
  37. #import <WebKit/WebKit.h>
  38. #import <IOKit/IOKitLib.h>
  39. #import <IOKit/IOCFPlugIn.h>
  40. #import <IOKit/hid/IOHIDLib.h>
  41. #import <IOKit/hid/IOHIDKeys.h>
  42. #import <IOKit/pwr_mgt/IOPMLib.h>
  43. #if JUCE_PUSH_NOTIFICATIONS
  44. #import <Foundation/NSUserNotification.h>
  45. #include "native/juce_mac_PushNotifications.cpp"
  46. #endif
  47. //==============================================================================
  48. #elif JUCE_IOS
  49. #import <WebKit/WebKit.h>
  50. #if JUCE_PUSH_NOTIFICATIONS
  51. #if defined (__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  52. #import <UserNotifications/UserNotifications.h>
  53. #endif
  54. #include "native/juce_ios_PushNotifications.cpp"
  55. #endif
  56. //==============================================================================
  57. #elif JUCE_ANDROID
  58. #if JUCE_PUSH_NOTIFICATIONS
  59. #include "native/juce_android_PushNotifications.cpp"
  60. #endif
  61. //==============================================================================
  62. #elif JUCE_WINDOWS
  63. #include <windowsx.h>
  64. #include <vfw.h>
  65. #include <commdlg.h>
  66. #if JUCE_WEB_BROWSER
  67. #include <exdisp.h>
  68. #include <exdispid.h>
  69. #if JUCE_USE_WINRT_WEBVIEW
  70. #include <windows.web.ui.h>
  71. #include <windows.web.ui.interop.h>
  72. #include <windows.foundation.h>
  73. #include <windows.foundation.collections.h>
  74. #pragma warning (push)
  75. #pragma warning (disable: 4265)
  76. #include <wrl.h>
  77. #include <wrl/wrappers/corewrappers.h>
  78. #pragma warning (pop)
  79. #endif
  80. #endif
  81. //==============================================================================
  82. #elif JUCE_LINUX && JUCE_WEB_BROWSER
  83. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant", "-Wparentheses")
  84. // If you're missing this header, you need to install the webkit2gtk-4.0 package
  85. #include <gtk/gtk.h>
  86. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  87. // If you're missing these headers, you need to install the webkit2gtk-4.0 package
  88. #include <gtk/gtkx.h>
  89. #include <glib-unix.h>
  90. #include <webkit2/webkit2.h>
  91. #endif
  92. //==============================================================================
  93. #include "documents/juce_FileBasedDocument.cpp"
  94. #include "code_editor/juce_CodeDocument.cpp"
  95. #include "code_editor/juce_CodeEditorComponent.cpp"
  96. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  97. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  98. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  99. #include "misc/juce_BubbleMessageComponent.cpp"
  100. #include "misc/juce_ColourSelector.cpp"
  101. #include "misc/juce_KeyMappingEditorComponent.cpp"
  102. #include "misc/juce_PreferencesPanel.cpp"
  103. #include "misc/juce_PushNotifications.cpp"
  104. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  105. #include "misc/juce_SplashScreen.cpp"
  106. #include "misc/juce_SystemTrayIconComponent.cpp"
  107. #include "misc/juce_LiveConstantEditor.cpp"
  108. #include "misc/juce_AnimatedAppComponent.cpp"
  109. //==============================================================================
  110. #if JUCE_MAC || JUCE_IOS
  111. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
  112. #if JUCE_MAC
  113. #include "native/juce_mac_NSViewComponent.mm"
  114. #include "native/juce_mac_AppleRemote.mm"
  115. #include "native/juce_mac_SystemTrayIcon.cpp"
  116. #endif
  117. #if JUCE_IOS
  118. #include "native/juce_ios_UIViewComponent.mm"
  119. #endif
  120. #if JUCE_WEB_BROWSER
  121. #include "native/juce_mac_WebBrowserComponent.mm"
  122. #endif
  123. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  124. //==============================================================================
  125. #elif JUCE_WINDOWS
  126. #include "native/juce_win32_ActiveXComponent.cpp"
  127. #include "native/juce_win32_HWNDComponent.cpp"
  128. #if JUCE_WEB_BROWSER
  129. #include "native/juce_win32_WebBrowserComponent.cpp"
  130. #endif
  131. #include "native/juce_win32_SystemTrayIcon.cpp"
  132. //==============================================================================
  133. #elif JUCE_LINUX
  134. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant")
  135. #include "native/juce_linux_XEmbedComponent.cpp"
  136. #if JUCE_WEB_BROWSER
  137. #include "native/juce_linux_X11_WebBrowserComponent.cpp"
  138. #endif
  139. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  140. #include "native/juce_linux_X11_SystemTrayIcon.cpp"
  141. //==============================================================================
  142. #elif JUCE_ANDROID
  143. #include "native/juce_AndroidViewComponent.cpp"
  144. #if JUCE_WEB_BROWSER
  145. #include "native/juce_android_WebBrowserComponent.cpp"
  146. #endif
  147. #endif