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.

275 lines
9.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2017 - ROLI Ltd.
  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 "misc/juce_JUCESplashScreen.cpp"
  193. #include "layout/juce_FlexBox.cpp"
  194. #include "layout/juce_GridItem.cpp"
  195. #include "layout/juce_Grid.cpp"
  196. #if JUCE_IOS || JUCE_WINDOWS
  197. #include "native/juce_MultiTouchMapper.h"
  198. #endif
  199. #if JUCE_MAC || JUCE_IOS
  200. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
  201. #if JUCE_IOS
  202. #include "native/juce_ios_UIViewComponentPeer.mm"
  203. #include "native/juce_ios_Windowing.mm"
  204. #include "native/juce_ios_FileChooser.mm"
  205. #if JUCE_CONTENT_SHARING
  206. #include "native/juce_ios_ContentSharer.cpp"
  207. #endif
  208. #else
  209. #include "native/juce_mac_NSViewComponentPeer.mm"
  210. #include "native/juce_mac_Windowing.mm"
  211. #include "native/juce_mac_MainMenu.mm"
  212. #include "native/juce_mac_FileChooser.mm"
  213. #endif
  214. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  215. #include "native/juce_mac_MouseCursor.mm"
  216. #elif JUCE_WINDOWS
  217. #include "native/juce_win32_Windowing.cpp"
  218. #include "native/juce_win32_DragAndDrop.cpp"
  219. #include "native/juce_win32_FileChooser.cpp"
  220. #elif JUCE_LINUX
  221. #include "native/x11/juce_linux_X11_Symbols.cpp"
  222. #include "native/x11/juce_linux_X11_DragAndDrop.cpp"
  223. JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wzero-as-null-pointer-constant")
  224. #include "native/juce_linux_Windowing.cpp"
  225. #include "native/x11/juce_linux_XWindowSystem.cpp"
  226. JUCE_END_IGNORE_WARNINGS_GCC_LIKE
  227. #include "native/juce_linux_FileChooser.cpp"
  228. #elif JUCE_ANDROID
  229. #include "native/juce_android_Windowing.cpp"
  230. #include "native/juce_common_MimeTypes.cpp"
  231. #include "native/juce_android_FileChooser.cpp"
  232. #if JUCE_CONTENT_SHARING
  233. #include "native/juce_android_ContentSharer.cpp"
  234. #endif
  235. #endif