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.

153 lines
5.1KB

  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. #if defined (JUCE_GUI_EXTRA_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  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. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  26. // and your header search path must make it accessible to the module's files.
  27. #include "AppConfig.h"
  28. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  29. #include "juce_gui_extra.h"
  30. //==============================================================================
  31. #if JUCE_MAC
  32. #import <WebKit/WebKit.h>
  33. #import <IOKit/IOKitLib.h>
  34. #import <IOKit/IOCFPlugIn.h>
  35. #import <IOKit/hid/IOHIDLib.h>
  36. #import <IOKit/hid/IOHIDKeys.h>
  37. #import <IOKit/pwr_mgt/IOPMLib.h>
  38. #elif JUCE_IOS
  39. //==============================================================================
  40. #elif JUCE_WINDOWS
  41. #include <windowsx.h>
  42. #include <vfw.h>
  43. #include <commdlg.h>
  44. #if JUCE_WEB_BROWSER
  45. #include <exdisp.h>
  46. #include <exdispid.h>
  47. #endif
  48. //==============================================================================
  49. #elif JUCE_LINUX
  50. #include <X11/Xlib.h>
  51. #include <X11/Xatom.h>
  52. #include <X11/Xutil.h>
  53. #undef SIZEOF
  54. #undef KeyPress
  55. #endif
  56. //==============================================================================
  57. namespace juce
  58. {
  59. #if JUCE_MAC || JUCE_IOS
  60. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  61. #endif
  62. #include "documents/juce_FileBasedDocument.cpp"
  63. #include "code_editor/juce_CodeDocument.cpp"
  64. #include "code_editor/juce_CodeEditorComponent.cpp"
  65. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  66. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  67. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  68. #include "misc/juce_BubbleMessageComponent.cpp"
  69. #include "misc/juce_ColourSelector.cpp"
  70. #include "misc/juce_KeyMappingEditorComponent.cpp"
  71. #include "misc/juce_PreferencesPanel.cpp"
  72. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  73. #include "misc/juce_SplashScreen.cpp"
  74. #include "misc/juce_SystemTrayIconComponent.cpp"
  75. #include "misc/juce_LiveConstantEditor.cpp"
  76. #include "misc/juce_AnimatedAppComponent.cpp"
  77. }
  78. using namespace juce;
  79. namespace juce
  80. {
  81. //==============================================================================
  82. #if JUCE_MAC || JUCE_IOS
  83. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  84. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  85. #if JUCE_MAC
  86. #include "native/juce_mac_NSViewComponent.mm"
  87. #include "native/juce_mac_AppleRemote.mm"
  88. #include "native/juce_mac_SystemTrayIcon.cpp"
  89. #endif
  90. #if JUCE_IOS
  91. #include "native/juce_ios_UIViewComponent.mm"
  92. #endif
  93. #if JUCE_WEB_BROWSER
  94. #include "native/juce_mac_WebBrowserComponent.mm"
  95. #endif
  96. //==============================================================================
  97. #elif JUCE_WINDOWS
  98. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  99. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  100. #include "native/juce_win32_ActiveXComponent.cpp"
  101. #if JUCE_WEB_BROWSER
  102. #include "native/juce_win32_WebBrowserComponent.cpp"
  103. #endif
  104. #include "native/juce_win32_SystemTrayIcon.cpp"
  105. //==============================================================================
  106. #elif JUCE_LINUX
  107. #if JUCE_WEB_BROWSER
  108. #include "native/juce_linux_WebBrowserComponent.cpp"
  109. #endif
  110. #include "native/juce_linux_SystemTrayIcon.cpp"
  111. //==============================================================================
  112. #elif JUCE_ANDROID
  113. #if JUCE_WEB_BROWSER
  114. #include "native/juce_android_WebBrowserComponent.cpp"
  115. #endif
  116. #endif
  117. #if JUCE_WEB_BROWSER
  118. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  119. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  120. void WebBrowserComponent::windowCloseRequest() {}
  121. void WebBrowserComponent::newWindowAttemptingToLoad (const String&) {}
  122. #endif
  123. }