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.

274 lines
9.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  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_BASICS_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 NS_FORMAT_FUNCTION(F,A) // To avoid spurious warnings from GCC
  22. #define JUCE_CORE_INCLUDE_OBJC_HELPERS 1
  23. #define JUCE_CORE_INCLUDE_COM_SMART_PTR 1
  24. #define JUCE_CORE_INCLUDE_JNI_HELPERS 1
  25. #define JUCE_CORE_INCLUDE_NATIVE_HEADERS 1
  26. #define JUCE_EVENTS_INCLUDE_WIN32_MESSAGE_WINDOW 1
  27. #define JUCE_GRAPHICS_INCLUDE_COREGRAPHICS_HELPERS 1
  28. #define JUCE_GUI_BASICS_INCLUDE_XHEADERS 1
  29. #include "juce_gui_basics.h"
  30. //==============================================================================
  31. #if JUCE_MAC
  32. #import <WebKit/WebKit.h>
  33. #import <IOKit/pwr_mgt/IOPMLib.h>
  34. #if JUCE_SUPPORT_CARBON
  35. #import <Carbon/Carbon.h> // still needed for SetSystemUIMode()
  36. #endif
  37. #elif JUCE_IOS
  38. #if JUCE_PUSH_NOTIFICATIONS && defined (__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  39. #import <UserNotifications/UserNotifications.h>
  40. #endif
  41. #import <UIKit/UIActivityViewController.h>
  42. //==============================================================================
  43. #elif JUCE_WINDOWS
  44. #include <windowsx.h>
  45. #include <vfw.h>
  46. #include <commdlg.h>
  47. #if JUCE_WEB_BROWSER
  48. #include <exdisp.h>
  49. #include <exdispid.h>
  50. #endif
  51. #if JUCE_MINGW
  52. #include <imm.h>
  53. #elif ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  54. #pragma comment(lib, "vfw32.lib")
  55. #pragma comment(lib, "imm32.lib")
  56. #if JUCE_OPENGL
  57. #pragma comment(lib, "OpenGL32.Lib")
  58. #pragma comment(lib, "GlU32.Lib")
  59. #endif
  60. #if JUCE_DIRECT2D
  61. #pragma comment (lib, "Dwrite.lib")
  62. #pragma comment (lib, "D2d1.lib")
  63. #endif
  64. #endif
  65. #endif
  66. #include <set>
  67. //==============================================================================
  68. #define JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED_OR_OFFSCREEN \
  69. jassert ((MessageManager::getInstanceWithoutCreating() != nullptr \
  70. && MessageManager::getInstanceWithoutCreating()->currentThreadHasLockedMessageManager()) \
  71. || getPeer() == nullptr);
  72. namespace juce
  73. {
  74. extern bool juce_areThereAnyAlwaysOnTopWindows();
  75. }
  76. #include "components/juce_Component.cpp"
  77. #include "components/juce_ComponentListener.cpp"
  78. #include "mouse/juce_MouseInputSource.cpp"
  79. #include "desktop/juce_Displays.cpp"
  80. #include "desktop/juce_Desktop.cpp"
  81. #include "components/juce_ModalComponentManager.cpp"
  82. #include "mouse/juce_ComponentDragger.cpp"
  83. #include "mouse/juce_DragAndDropContainer.cpp"
  84. #include "mouse/juce_MouseCursor.cpp"
  85. #include "mouse/juce_MouseEvent.cpp"
  86. #include "mouse/juce_MouseInactivityDetector.cpp"
  87. #include "mouse/juce_MouseListener.cpp"
  88. #include "keyboard/juce_CaretComponent.cpp"
  89. #include "keyboard/juce_KeyboardFocusTraverser.cpp"
  90. #include "keyboard/juce_KeyListener.cpp"
  91. #include "keyboard/juce_KeyPress.cpp"
  92. #include "keyboard/juce_ModifierKeys.cpp"
  93. #include "buttons/juce_ArrowButton.cpp"
  94. #include "buttons/juce_Button.cpp"
  95. #include "buttons/juce_DrawableButton.cpp"
  96. #include "buttons/juce_HyperlinkButton.cpp"
  97. #include "buttons/juce_ImageButton.cpp"
  98. #include "buttons/juce_ShapeButton.cpp"
  99. #include "buttons/juce_TextButton.cpp"
  100. #include "buttons/juce_ToggleButton.cpp"
  101. #include "buttons/juce_ToolbarButton.cpp"
  102. #include "drawables/juce_Drawable.cpp"
  103. #include "drawables/juce_DrawableComposite.cpp"
  104. #include "drawables/juce_DrawableImage.cpp"
  105. #include "drawables/juce_DrawablePath.cpp"
  106. #include "drawables/juce_DrawableRectangle.cpp"
  107. #include "drawables/juce_DrawableShape.cpp"
  108. #include "drawables/juce_DrawableText.cpp"
  109. #include "drawables/juce_SVGParser.cpp"
  110. #include "filebrowser/juce_DirectoryContentsDisplayComponent.cpp"
  111. #include "filebrowser/juce_DirectoryContentsList.cpp"
  112. #include "filebrowser/juce_FileBrowserComponent.cpp"
  113. #include "filebrowser/juce_FileChooser.cpp"
  114. #include "filebrowser/juce_FileChooserDialogBox.cpp"
  115. #include "filebrowser/juce_FileListComponent.cpp"
  116. #include "filebrowser/juce_FilenameComponent.cpp"
  117. #include "filebrowser/juce_FileSearchPathListComponent.cpp"
  118. #include "filebrowser/juce_FileTreeComponent.cpp"
  119. #include "filebrowser/juce_ImagePreviewComponent.cpp"
  120. #include "filebrowser/juce_ContentSharer.cpp"
  121. #include "layout/juce_ComponentAnimator.cpp"
  122. #include "layout/juce_ComponentBoundsConstrainer.cpp"
  123. #include "layout/juce_ComponentBuilder.cpp"
  124. #include "layout/juce_ComponentMovementWatcher.cpp"
  125. #include "layout/juce_ConcertinaPanel.cpp"
  126. #include "layout/juce_GroupComponent.cpp"
  127. #include "layout/juce_MultiDocumentPanel.cpp"
  128. #include "layout/juce_ResizableBorderComponent.cpp"
  129. #include "layout/juce_ResizableCornerComponent.cpp"
  130. #include "layout/juce_ResizableEdgeComponent.cpp"
  131. #include "layout/juce_ScrollBar.cpp"
  132. #include "layout/juce_SidePanel.cpp"
  133. #include "layout/juce_StretchableLayoutManager.cpp"
  134. #include "layout/juce_StretchableLayoutResizerBar.cpp"
  135. #include "layout/juce_StretchableObjectResizer.cpp"
  136. #include "layout/juce_TabbedButtonBar.cpp"
  137. #include "layout/juce_TabbedComponent.cpp"
  138. #include "layout/juce_Viewport.cpp"
  139. #include "lookandfeel/juce_LookAndFeel.cpp"
  140. #include "lookandfeel/juce_LookAndFeel_V2.cpp"
  141. #include "lookandfeel/juce_LookAndFeel_V1.cpp"
  142. #include "lookandfeel/juce_LookAndFeel_V3.cpp"
  143. #include "lookandfeel/juce_LookAndFeel_V4.cpp"
  144. #include "menus/juce_MenuBarComponent.cpp"
  145. #include "menus/juce_BurgerMenuComponent.cpp"
  146. #include "menus/juce_MenuBarModel.cpp"
  147. #include "menus/juce_PopupMenu.cpp"
  148. #include "positioning/juce_MarkerList.cpp"
  149. #include "positioning/juce_RelativeCoordinate.cpp"
  150. #include "positioning/juce_RelativeCoordinatePositioner.cpp"
  151. #include "positioning/juce_RelativeParallelogram.cpp"
  152. #include "positioning/juce_RelativePoint.cpp"
  153. #include "positioning/juce_RelativePointPath.cpp"
  154. #include "positioning/juce_RelativeRectangle.cpp"
  155. #include "properties/juce_BooleanPropertyComponent.cpp"
  156. #include "properties/juce_ButtonPropertyComponent.cpp"
  157. #include "properties/juce_ChoicePropertyComponent.cpp"
  158. #include "properties/juce_PropertyComponent.cpp"
  159. #include "properties/juce_PropertyPanel.cpp"
  160. #include "properties/juce_SliderPropertyComponent.cpp"
  161. #include "properties/juce_TextPropertyComponent.cpp"
  162. #include "properties/juce_MultiChoicePropertyComponent.cpp"
  163. #include "widgets/juce_ComboBox.cpp"
  164. #include "widgets/juce_ImageComponent.cpp"
  165. #include "widgets/juce_Label.cpp"
  166. #include "widgets/juce_ListBox.cpp"
  167. #include "widgets/juce_ProgressBar.cpp"
  168. #include "widgets/juce_Slider.cpp"
  169. #include "widgets/juce_TableHeaderComponent.cpp"
  170. #include "widgets/juce_TableListBox.cpp"
  171. #include "widgets/juce_TextEditor.cpp"
  172. #include "widgets/juce_ToolbarItemComponent.cpp"
  173. #include "widgets/juce_Toolbar.cpp"
  174. #include "widgets/juce_ToolbarItemPalette.cpp"
  175. #include "widgets/juce_TreeView.cpp"
  176. #include "windows/juce_AlertWindow.cpp"
  177. #include "windows/juce_CallOutBox.cpp"
  178. #include "windows/juce_ComponentPeer.cpp"
  179. #include "windows/juce_DialogWindow.cpp"
  180. #include "windows/juce_DocumentWindow.cpp"
  181. #include "windows/juce_ResizableWindow.cpp"
  182. #include "windows/juce_ThreadWithProgressWindow.cpp"
  183. #include "windows/juce_TooltipWindow.cpp"
  184. #include "windows/juce_TopLevelWindow.cpp"
  185. #include "commands/juce_ApplicationCommandInfo.cpp"
  186. #include "commands/juce_ApplicationCommandManager.cpp"
  187. #include "commands/juce_ApplicationCommandTarget.cpp"
  188. #include "commands/juce_KeyPressMappingSet.cpp"
  189. #include "application/juce_Application.cpp"
  190. #include "misc/juce_BubbleComponent.cpp"
  191. #include "misc/juce_DropShadower.cpp"
  192. #include "layout/juce_FlexBox.cpp"
  193. #include "layout/juce_GridItem.cpp"
  194. #include "layout/juce_Grid.cpp"
  195. #if JUCE_IOS || JUCE_WINDOWS
  196. #include "native/juce_MultiTouchMapper.h"
  197. #endif
  198. #if JUCE_MAC || JUCE_IOS
  199. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
  200. #if JUCE_IOS
  201. #include "native/juce_ios_UIViewComponentPeer.mm"
  202. #include "native/juce_ios_Windowing.mm"
  203. #include "native/juce_ios_FileChooser.mm"
  204. #if JUCE_CONTENT_SHARING
  205. #include "native/juce_ios_ContentSharer.cpp"
  206. #endif
  207. #else
  208. #include "native/juce_mac_NSViewComponentPeer.mm"
  209. #include "native/juce_mac_Windowing.mm"
  210. #include "native/juce_mac_MainMenu.mm"
  211. #include "native/juce_mac_FileChooser.mm"
  212. #endif
  213. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  214. #include "native/juce_mac_MouseCursor.mm"
  215. #elif JUCE_WINDOWS
  216. #include "native/juce_win32_Windowing.cpp"
  217. #include "native/juce_win32_DragAndDrop.cpp"
  218. #include "native/juce_win32_FileChooser.cpp"
  219. #elif JUCE_LINUX
  220. #include "native/x11/juce_linux_X11_Symbols.cpp"
  221. #include "native/x11/juce_linux_X11_DragAndDrop.cpp"
  222. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant")
  223. #include "native/juce_linux_Windowing.cpp"
  224. #include "native/x11/juce_linux_XWindowSystem.cpp"
  225. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  226. #include "native/juce_linux_FileChooser.cpp"
  227. #elif JUCE_ANDROID
  228. #include "native/juce_android_Windowing.cpp"
  229. #include "native/juce_common_MimeTypes.cpp"
  230. #include "native/juce_android_FileChooser.cpp"
  231. #if JUCE_CONTENT_SHARING
  232. #include "native/juce_android_ContentSharer.cpp"
  233. #endif
  234. #endif