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.

149 lines
4.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2015 - ROLI Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifdef JUCE_GUI_EXTRA_H_INCLUDED
  18. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  19. already included any other headers - just put it inside a file on its own, possibly with your config
  20. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  21. header files that the compiler may be using.
  22. */
  23. #error "Incorrect use of JUCE cpp file"
  24. #endif
  25. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  26. #include "juce_gui_extra.h"
  27. //==============================================================================
  28. #if JUCE_MAC
  29. #import <WebKit/WebKit.h>
  30. #import <IOKit/IOKitLib.h>
  31. #import <IOKit/IOCFPlugIn.h>
  32. #import <IOKit/hid/IOHIDLib.h>
  33. #import <IOKit/hid/IOHIDKeys.h>
  34. #import <IOKit/pwr_mgt/IOPMLib.h>
  35. #elif JUCE_IOS
  36. //==============================================================================
  37. #elif JUCE_WINDOWS
  38. #include <windowsx.h>
  39. #include <vfw.h>
  40. #include <commdlg.h>
  41. #if JUCE_WEB_BROWSER
  42. #include <exdisp.h>
  43. #include <exdispid.h>
  44. #endif
  45. //==============================================================================
  46. #elif JUCE_LINUX
  47. #include <X11/Xlib.h>
  48. #include <X11/Xatom.h>
  49. #include <X11/Xutil.h>
  50. #undef SIZEOF
  51. #undef KeyPress
  52. #endif
  53. //==============================================================================
  54. namespace juce
  55. {
  56. #if JUCE_MAC || JUCE_IOS
  57. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  58. #endif
  59. #include "documents/juce_FileBasedDocument.cpp"
  60. #include "code_editor/juce_CodeDocument.cpp"
  61. #include "code_editor/juce_CodeEditorComponent.cpp"
  62. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  63. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  64. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  65. #include "misc/juce_BubbleMessageComponent.cpp"
  66. #include "misc/juce_ColourSelector.cpp"
  67. #include "misc/juce_KeyMappingEditorComponent.cpp"
  68. #include "misc/juce_PreferencesPanel.cpp"
  69. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  70. #include "misc/juce_SplashScreen.cpp"
  71. #include "misc/juce_SystemTrayIconComponent.cpp"
  72. #include "misc/juce_LiveConstantEditor.cpp"
  73. #include "misc/juce_AnimatedAppComponent.cpp"
  74. }
  75. using namespace juce;
  76. namespace juce
  77. {
  78. //==============================================================================
  79. #if JUCE_MAC || JUCE_IOS
  80. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  81. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  82. #if JUCE_MAC
  83. #include "native/juce_mac_NSViewComponent.mm"
  84. #include "native/juce_mac_AppleRemote.mm"
  85. #include "native/juce_mac_SystemTrayIcon.cpp"
  86. #endif
  87. #if JUCE_IOS
  88. #include "native/juce_ios_UIViewComponent.mm"
  89. #endif
  90. #if JUCE_WEB_BROWSER
  91. #include "native/juce_mac_WebBrowserComponent.mm"
  92. #endif
  93. //==============================================================================
  94. #elif JUCE_WINDOWS
  95. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  96. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  97. #include "native/juce_win32_ActiveXComponent.cpp"
  98. #if JUCE_WEB_BROWSER
  99. #include "native/juce_win32_WebBrowserComponent.cpp"
  100. #endif
  101. #include "native/juce_win32_SystemTrayIcon.cpp"
  102. //==============================================================================
  103. #elif JUCE_LINUX
  104. #if JUCE_WEB_BROWSER
  105. #include "native/juce_linux_WebBrowserComponent.cpp"
  106. #endif
  107. #include "native/juce_linux_SystemTrayIcon.cpp"
  108. //==============================================================================
  109. #elif JUCE_ANDROID
  110. #if JUCE_WEB_BROWSER
  111. #include "native/juce_android_WebBrowserComponent.cpp"
  112. #endif
  113. #endif
  114. #if JUCE_WEB_BROWSER
  115. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  116. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  117. void WebBrowserComponent::windowCloseRequest() {}
  118. void WebBrowserComponent::newWindowAttemptingToLoad (const String&) {}
  119. #endif
  120. }