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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2017 - ROLI Ltd.
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 5 End-User License
  8. Agreement and JUCE 5 Privacy Policy (both updated and effective as of the
  9. 27th April 2017).
  10. End User License Agreement: www.juce.com/juce-5-licence
  11. Privacy Policy: www.juce.com/juce-5-privacy-policy
  12. Or: You may also use this code under the terms of the GPL v3 (see
  13. www.gnu.org/licenses).
  14. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  15. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  16. DISCLAIMED.
  17. ==============================================================================
  18. */
  19. #ifdef JUCE_GUI_EXTRA_H_INCLUDED
  20. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  21. already included any other headers - just put it inside a file on its own, possibly with your config
  22. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  23. header files that the compiler may be using.
  24. */
  25. #error "Incorrect use of JUCE cpp file"
  26. #endif
  27. #include "AppConfig.h"
  28. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  29. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  30. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  31. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  32. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  33. #include "juce_gui_extra.h"
  34. //==============================================================================
  35. #if JUCE_MAC
  36. #import <WebKit/WebKit.h>
  37. #import <IOKit/IOKitLib.h>
  38. #import <IOKit/IOCFPlugIn.h>
  39. #import <IOKit/hid/IOHIDLib.h>
  40. #import <IOKit/hid/IOHIDKeys.h>
  41. #import <IOKit/pwr_mgt/IOPMLib.h>
  42. #elif JUCE_IOS
  43. //==============================================================================
  44. #elif JUCE_WINDOWS
  45. #include <windowsx.h>
  46. #include <vfw.h>
  47. #include <commdlg.h>
  48. #if JUCE_WEB_BROWSER
  49. #include <exdisp.h>
  50. #include <exdispid.h>
  51. #endif
  52. //==============================================================================
  53. #elif JUCE_LINUX
  54. #include <X11/Xlib.h>
  55. #include <X11/Xatom.h>
  56. #include <X11/Xutil.h>
  57. #undef SIZEOF
  58. #undef KeyPress
  59. #if JUCE_WEB_BROWSER
  60. #include <unistd.h>
  61. #include <fcntl.h>
  62. #include <sys/wait.h>
  63. #include <gtk/gtk.h>
  64. #include <gtk/gtkx.h>
  65. #include <glib-unix.h>
  66. #include <webkit2/webkit2.h>
  67. #endif
  68. #endif
  69. //==============================================================================
  70. #include "documents/juce_FileBasedDocument.cpp"
  71. #include "code_editor/juce_CodeDocument.cpp"
  72. #include "code_editor/juce_CodeEditorComponent.cpp"
  73. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  74. #include "code_editor/juce_XMLCodeTokeniser.cpp"
  75. #include "code_editor/juce_LuaCodeTokeniser.cpp"
  76. #include "misc/juce_BubbleMessageComponent.cpp"
  77. #include "misc/juce_ColourSelector.cpp"
  78. #include "misc/juce_KeyMappingEditorComponent.cpp"
  79. #include "misc/juce_PreferencesPanel.cpp"
  80. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  81. #include "misc/juce_SplashScreen.cpp"
  82. #include "misc/juce_SystemTrayIconComponent.cpp"
  83. #include "misc/juce_LiveConstantEditor.cpp"
  84. #include "misc/juce_AnimatedAppComponent.cpp"
  85. //==============================================================================
  86. #if JUCE_MAC || JUCE_IOS
  87. #if JUCE_CLANG
  88. #pragma clang diagnostic push
  89. #pragma clang diagnostic ignored "-Wundeclared-selector"
  90. #endif
  91. #if JUCE_MAC
  92. #include "native/juce_mac_NSViewComponent.mm"
  93. #include "native/juce_mac_AppleRemote.mm"
  94. #include "native/juce_mac_SystemTrayIcon.cpp"
  95. #endif
  96. #if JUCE_IOS
  97. #include "native/juce_ios_UIViewComponent.mm"
  98. #endif
  99. #if JUCE_WEB_BROWSER
  100. #include "native/juce_mac_WebBrowserComponent.mm"
  101. #endif
  102. #if JUCE_CLANG
  103. #pragma clang diagnostic pop
  104. #endif
  105. //==============================================================================
  106. #elif JUCE_WINDOWS
  107. #include "native/juce_win32_ActiveXComponent.cpp"
  108. #if JUCE_WEB_BROWSER
  109. #include "native/juce_win32_WebBrowserComponent.cpp"
  110. #endif
  111. #include "native/juce_win32_SystemTrayIcon.cpp"
  112. //==============================================================================
  113. #elif JUCE_LINUX
  114. #include "native/juce_linux_XEmbedComponent.cpp"
  115. #if JUCE_WEB_BROWSER
  116. #include "native/juce_linux_X11_WebBrowserComponent.cpp"
  117. #endif
  118. #include "native/juce_linux_X11_SystemTrayIcon.cpp"
  119. //==============================================================================
  120. #elif JUCE_ANDROID
  121. #if JUCE_WEB_BROWSER
  122. #include "native/juce_android_WebBrowserComponent.cpp"
  123. #endif
  124. #endif
  125. #if JUCE_WEB_BROWSER
  126. namespace juce
  127. {
  128. bool WebBrowserComponent::pageAboutToLoad (const String&) { return true; }
  129. void WebBrowserComponent::pageFinishedLoading (const String&) {}
  130. bool WebBrowserComponent::pageLoadHadNetworkError (const String&) { return true; }
  131. void WebBrowserComponent::windowCloseRequest() {}
  132. void WebBrowserComponent::newWindowAttemptingToLoad (const String&) {}
  133. }
  134. #endif