The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

293 lines
11KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #if defined (__JUCE_GUI_BASICS_JUCEHEADER__) && ! JUCE_AMALGAMATED_INCLUDE
  19. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  20. already included any other headers - just put it inside a file on its own, possibly with your config
  21. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  22. header files that the compiler may be using.
  23. */
  24. #error "Incorrect use of JUCE cpp file"
  25. #endif
  26. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  27. // and your header search path must make it accessible to the module's files.
  28. #include "AppConfig.h"
  29. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  30. #include "juce_gui_basics.h"
  31. #if JUCE_MODULE_AVAILABLE_juce_opengl
  32. #include "../juce_opengl/juce_opengl.h"
  33. #endif
  34. //==============================================================================
  35. #if JUCE_MAC
  36. #import <WebKit/WebKit.h>
  37. #define Point CarbonDummyPointName
  38. #define Component CarbonDummyCompName
  39. #import <Carbon/Carbon.h> // still needed for SetSystemUIMode()
  40. #undef Point
  41. #undef Component
  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_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  52. #pragma comment(lib, "vfw32.lib")
  53. #pragma comment(lib, "imm32.lib")
  54. #endif
  55. #if JUCE_OPENGL
  56. #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  57. #pragma comment(lib, "OpenGL32.Lib")
  58. #pragma comment(lib, "GlU32.Lib")
  59. #endif
  60. #endif
  61. #if JUCE_QUICKTIME && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  62. #pragma comment (lib, "QTMLClient.lib")
  63. #endif
  64. #if JUCE_DIRECT2D && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  65. #pragma comment (lib, "Dwrite.lib")
  66. #pragma comment (lib, "D2d1.lib")
  67. #endif
  68. #if JUCE_MINGW
  69. #include <Imm.h>
  70. #endif
  71. //==============================================================================
  72. #elif JUCE_LINUX
  73. #include <X11/Xlib.h>
  74. #include <X11/Xatom.h>
  75. #include <X11/Xresource.h>
  76. #include <X11/Xutil.h>
  77. #include <X11/Xmd.h>
  78. #include <X11/keysym.h>
  79. #include <X11/cursorfont.h>
  80. #if JUCE_USE_XINERAMA
  81. /* If you're trying to use Xinerama, you'll need to install the "libxinerama-dev" package.. */
  82. #include <X11/extensions/Xinerama.h>
  83. #endif
  84. #if JUCE_USE_XSHM
  85. #include <X11/extensions/XShm.h>
  86. #include <sys/shm.h>
  87. #include <sys/ipc.h>
  88. #endif
  89. #if JUCE_USE_XRENDER
  90. // If you're missing these headers, try installing the libxrender-dev and libxcomposite-dev
  91. #include <X11/extensions/Xrender.h>
  92. #include <X11/extensions/Xcomposite.h>
  93. #endif
  94. #if JUCE_USE_XCURSOR
  95. // If you're missing this header, try installing the libxcursor-dev package
  96. #include <X11/Xcursor/Xcursor.h>
  97. #endif
  98. #undef SIZEOF
  99. #undef KeyPress
  100. #endif
  101. //==============================================================================
  102. namespace juce
  103. {
  104. // START_AUTOINCLUDE components/*.cpp, mouse/*.cpp, keyboard/*.cpp, buttons/*.cpp,
  105. // drawables/*.cpp, filebrowser/*.cpp, layout/*.cpp, lookandfeel/*.cpp,
  106. // menus/*.cpp, positioning/*.cpp, properties/*.cpp, widgets/*.cpp,
  107. // windows/*.cpp, commands/*.cpp, application/*.cpp, misc/*.cpp
  108. #include "components/juce_Component.cpp"
  109. #include "components/juce_ComponentListener.cpp"
  110. #include "components/juce_Desktop.cpp"
  111. #include "components/juce_ModalComponentManager.cpp"
  112. #include "mouse/juce_ComponentDragger.cpp"
  113. #include "mouse/juce_DragAndDropContainer.cpp"
  114. #include "mouse/juce_MouseCursor.cpp"
  115. #include "mouse/juce_MouseEvent.cpp"
  116. #include "mouse/juce_MouseInputSource.cpp"
  117. #include "mouse/juce_MouseListener.cpp"
  118. #include "keyboard/juce_CaretComponent.cpp"
  119. #include "keyboard/juce_KeyboardFocusTraverser.cpp"
  120. #include "keyboard/juce_KeyListener.cpp"
  121. #include "keyboard/juce_KeyPress.cpp"
  122. #include "keyboard/juce_ModifierKeys.cpp"
  123. #include "buttons/juce_ArrowButton.cpp"
  124. #include "buttons/juce_Button.cpp"
  125. #include "buttons/juce_DrawableButton.cpp"
  126. #include "buttons/juce_HyperlinkButton.cpp"
  127. #include "buttons/juce_ImageButton.cpp"
  128. #include "buttons/juce_ShapeButton.cpp"
  129. #include "buttons/juce_TextButton.cpp"
  130. #include "buttons/juce_ToggleButton.cpp"
  131. #include "buttons/juce_ToolbarButton.cpp"
  132. #include "drawables/juce_Drawable.cpp"
  133. #include "drawables/juce_DrawableComposite.cpp"
  134. #include "drawables/juce_DrawableImage.cpp"
  135. #include "drawables/juce_DrawablePath.cpp"
  136. #include "drawables/juce_DrawableRectangle.cpp"
  137. #include "drawables/juce_DrawableShape.cpp"
  138. #include "drawables/juce_DrawableText.cpp"
  139. #include "drawables/juce_SVGParser.cpp"
  140. #include "filebrowser/juce_DirectoryContentsDisplayComponent.cpp"
  141. #include "filebrowser/juce_DirectoryContentsList.cpp"
  142. #include "filebrowser/juce_FileBrowserComponent.cpp"
  143. #include "filebrowser/juce_FileChooser.cpp"
  144. #include "filebrowser/juce_FileChooserDialogBox.cpp"
  145. #include "filebrowser/juce_FileFilter.cpp"
  146. #include "filebrowser/juce_FileListComponent.cpp"
  147. #include "filebrowser/juce_FilenameComponent.cpp"
  148. #include "filebrowser/juce_FileSearchPathListComponent.cpp"
  149. #include "filebrowser/juce_FileTreeComponent.cpp"
  150. #include "filebrowser/juce_ImagePreviewComponent.cpp"
  151. #include "filebrowser/juce_WildcardFileFilter.cpp"
  152. #include "layout/juce_ComponentAnimator.cpp"
  153. #include "layout/juce_ComponentBoundsConstrainer.cpp"
  154. #include "layout/juce_ComponentBuilder.cpp"
  155. #include "layout/juce_ComponentMovementWatcher.cpp"
  156. #include "layout/juce_GroupComponent.cpp"
  157. #include "layout/juce_MultiDocumentPanel.cpp"
  158. #include "layout/juce_ResizableBorderComponent.cpp"
  159. #include "layout/juce_ResizableCornerComponent.cpp"
  160. #include "layout/juce_ResizableEdgeComponent.cpp"
  161. #include "layout/juce_ScrollBar.cpp"
  162. #include "layout/juce_StretchableLayoutManager.cpp"
  163. #include "layout/juce_StretchableLayoutResizerBar.cpp"
  164. #include "layout/juce_StretchableObjectResizer.cpp"
  165. #include "layout/juce_TabbedButtonBar.cpp"
  166. #include "layout/juce_TabbedComponent.cpp"
  167. #include "layout/juce_Viewport.cpp"
  168. #include "lookandfeel/juce_LookAndFeel.cpp"
  169. #include "menus/juce_MenuBarComponent.cpp"
  170. #include "menus/juce_MenuBarModel.cpp"
  171. #include "menus/juce_PopupMenu.cpp"
  172. #include "positioning/juce_MarkerList.cpp"
  173. #include "positioning/juce_RelativeCoordinate.cpp"
  174. #include "positioning/juce_RelativeCoordinatePositioner.cpp"
  175. #include "positioning/juce_RelativeParallelogram.cpp"
  176. #include "positioning/juce_RelativePoint.cpp"
  177. #include "positioning/juce_RelativePointPath.cpp"
  178. #include "positioning/juce_RelativeRectangle.cpp"
  179. #include "properties/juce_BooleanPropertyComponent.cpp"
  180. #include "properties/juce_ButtonPropertyComponent.cpp"
  181. #include "properties/juce_ChoicePropertyComponent.cpp"
  182. #include "properties/juce_PropertyComponent.cpp"
  183. #include "properties/juce_PropertyPanel.cpp"
  184. #include "properties/juce_SliderPropertyComponent.cpp"
  185. #include "properties/juce_TextPropertyComponent.cpp"
  186. #include "widgets/juce_ComboBox.cpp"
  187. #include "widgets/juce_ImageComponent.cpp"
  188. #include "widgets/juce_Label.cpp"
  189. #include "widgets/juce_ListBox.cpp"
  190. #include "widgets/juce_ProgressBar.cpp"
  191. #include "widgets/juce_Slider.cpp"
  192. #include "widgets/juce_TableHeaderComponent.cpp"
  193. #include "widgets/juce_TableListBox.cpp"
  194. #include "widgets/juce_TextEditor.cpp"
  195. #include "widgets/juce_Toolbar.cpp"
  196. #include "widgets/juce_ToolbarItemComponent.cpp"
  197. #include "widgets/juce_ToolbarItemPalette.cpp"
  198. #include "widgets/juce_TreeView.cpp"
  199. #include "windows/juce_AlertWindow.cpp"
  200. #include "windows/juce_CallOutBox.cpp"
  201. #include "windows/juce_ComponentPeer.cpp"
  202. #include "windows/juce_DialogWindow.cpp"
  203. #include "windows/juce_DocumentWindow.cpp"
  204. #include "windows/juce_ResizableWindow.cpp"
  205. #include "windows/juce_ThreadWithProgressWindow.cpp"
  206. #include "windows/juce_TooltipWindow.cpp"
  207. #include "windows/juce_TopLevelWindow.cpp"
  208. #include "commands/juce_ApplicationCommandInfo.cpp"
  209. #include "commands/juce_ApplicationCommandManager.cpp"
  210. #include "commands/juce_ApplicationCommandTarget.cpp"
  211. #include "commands/juce_KeyPressMappingSet.cpp"
  212. #include "application/juce_Application.cpp"
  213. #include "misc/juce_BubbleComponent.cpp"
  214. #include "misc/juce_DropShadower.cpp"
  215. // END_AUTOINCLUDE
  216. }
  217. using namespace juce;
  218. //==============================================================================
  219. namespace juce
  220. {
  221. #if JUCE_IOS || JUCE_WINDOWS
  222. #include "native/juce_MultiTouchMapper.h"
  223. #endif
  224. #if JUCE_MAC || JUCE_IOS
  225. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  226. #include "../juce_core/native/juce_mac_ObjCSuffix.h"
  227. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  228. #include "../juce_graphics/native/juce_mac_CoreGraphicsContext.h"
  229. #if JUCE_IOS
  230. #include "native/juce_ios_UIViewComponentPeer.mm"
  231. #include "native/juce_ios_Windowing.mm"
  232. #else
  233. #include "native/juce_mac_NSViewComponentPeer.mm"
  234. #include "native/juce_mac_Windowing.mm"
  235. #include "native/juce_mac_MainMenu.mm"
  236. #endif
  237. #include "native/juce_mac_MouseCursor.mm"
  238. #include "native/juce_mac_FileChooser.mm"
  239. #elif JUCE_WINDOWS
  240. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  241. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  242. #include "native/juce_win32_Windowing.cpp"
  243. #include "native/juce_win32_DragAndDrop.cpp"
  244. #include "native/juce_win32_FileChooser.cpp"
  245. #elif JUCE_LINUX
  246. #include "native/juce_linux_Clipboard.cpp"
  247. #include "native/juce_linux_Windowing.cpp"
  248. #include "native/juce_linux_FileChooser.cpp"
  249. #elif JUCE_ANDROID
  250. #include "../juce_core/native/juce_android_JNIHelpers.h"
  251. #include "native/juce_android_Windowing.cpp"
  252. #include "native/juce_android_FileChooser.cpp"
  253. #endif
  254. }