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 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software 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. #define Point CarbonDummyPointName
  33. #define Component CarbonDummyCompName
  34. #import <WebKit/WebKit.h>
  35. #import <IOKit/IOKitLib.h>
  36. #import <IOKit/IOCFPlugIn.h>
  37. #import <IOKit/hid/IOHIDLib.h>
  38. #import <IOKit/hid/IOHIDKeys.h>
  39. #import <IOKit/pwr_mgt/IOPMLib.h>
  40. #import <Carbon/Carbon.h> // still needed for SetSystemUIMode()
  41. #undef Point
  42. #undef Component
  43. #elif JUCE_IOS
  44. //==============================================================================
  45. #elif JUCE_WINDOWS
  46. #include <windowsx.h>
  47. #include <vfw.h>
  48. #include <commdlg.h>
  49. #if JUCE_WEB_BROWSER
  50. #include <exdisp.h>
  51. #include <exdispid.h>
  52. #endif
  53. //==============================================================================
  54. #elif JUCE_LINUX
  55. #include <X11/Xlib.h>
  56. #include <X11/Xatom.h>
  57. #include <X11/Xutil.h>
  58. #undef SIZEOF
  59. #undef KeyPress
  60. #endif
  61. //==============================================================================
  62. namespace juce
  63. {
  64. #if JUCE_MAC || JUCE_IOS
  65. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  66. #endif
  67. #include "documents/juce_FileBasedDocument.cpp"
  68. #include "code_editor/juce_CodeDocument.cpp"
  69. #include "code_editor/juce_CodeEditorComponent.cpp"
  70. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  71. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  72. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  73. #include "misc/juce_BubbleMessageComponent.cpp"
  74. #include "misc/juce_ColourSelector.cpp"
  75. #include "misc/juce_KeyMappingEditorComponent.cpp"
  76. #include "misc/juce_PreferencesPanel.cpp"
  77. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  78. #include "misc/juce_SplashScreen.cpp"
  79. #include "misc/juce_SystemTrayIconComponent.cpp"
  80. #include "misc/juce_LiveConstantEditor.cpp"
  81. }
  82. using namespace juce;
  83. namespace juce
  84. {
  85. //==============================================================================
  86. #if JUCE_MAC || JUCE_IOS
  87. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  88. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  89. #if JUCE_MAC
  90. #include "native/juce_mac_NSViewComponent.mm"
  91. #include "native/juce_mac_AppleRemote.mm"
  92. #include "native/juce_mac_SystemTrayIcon.cpp"
  93. #endif
  94. #if JUCE_IOS
  95. #include "native/juce_ios_UIViewComponent.mm"
  96. #endif
  97. #if JUCE_WEB_BROWSER
  98. #include "native/juce_mac_WebBrowserComponent.mm"
  99. #endif
  100. //==============================================================================
  101. #elif JUCE_WINDOWS
  102. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  103. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  104. #include "native/juce_win32_ActiveXComponent.cpp"
  105. #if JUCE_WEB_BROWSER
  106. #include "native/juce_win32_WebBrowserComponent.cpp"
  107. #endif
  108. #include "native/juce_win32_SystemTrayIcon.cpp"
  109. //==============================================================================
  110. #elif JUCE_LINUX
  111. #if JUCE_WEB_BROWSER
  112. #include "native/juce_linux_WebBrowserComponent.cpp"
  113. #endif
  114. #include "native/juce_linux_SystemTrayIcon.cpp"
  115. //==============================================================================
  116. #elif JUCE_ANDROID
  117. #if JUCE_WEB_BROWSER
  118. #include "native/juce_android_WebBrowserComponent.cpp"
  119. #endif
  120. #endif
  121. #if JUCE_WEB_BROWSER
  122. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  123. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  124. void WebBrowserComponent::windowCloseRequest() {}
  125. #endif
  126. }