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.

147 lines
5.0KB

  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_EXTRA_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_extra.h"
  31. //==============================================================================
  32. #if JUCE_MAC
  33. #define Point CarbonDummyPointName
  34. #define Component CarbonDummyCompName
  35. #import <WebKit/WebKit.h>
  36. #import <IOKit/IOKitLib.h>
  37. #import <IOKit/IOCFPlugIn.h>
  38. #import <IOKit/hid/IOHIDLib.h>
  39. #import <IOKit/hid/IOHIDKeys.h>
  40. #import <IOKit/pwr_mgt/IOPMLib.h>
  41. #import <Carbon/Carbon.h> // still needed for SetSystemUIMode()
  42. #undef Point
  43. #undef Component
  44. #elif JUCE_IOS
  45. //==============================================================================
  46. #elif JUCE_WINDOWS
  47. #include <windowsx.h>
  48. #include <vfw.h>
  49. #include <commdlg.h>
  50. #if JUCE_WEB_BROWSER
  51. #include <Exdisp.h>
  52. #include <exdispid.h>
  53. #endif
  54. //==============================================================================
  55. #elif JUCE_LINUX
  56. #include <X11/Xlib.h>
  57. #include <X11/Xatom.h>
  58. #include <X11/Xutil.h>
  59. #undef SIZEOF
  60. #undef KeyPress
  61. #endif
  62. //==============================================================================
  63. namespace juce
  64. {
  65. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  66. #include "documents/juce_FileBasedDocument.cpp"
  67. #include "code_editor/juce_CodeDocument.cpp"
  68. #include "code_editor/juce_CodeEditorComponent.cpp"
  69. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  70. #include "lookandfeel/juce_OldSchoolLookAndFeel.cpp"
  71. #include "misc/juce_BubbleMessageComponent.cpp"
  72. #include "misc/juce_ColourSelector.cpp"
  73. #include "misc/juce_KeyMappingEditorComponent.cpp"
  74. #include "misc/juce_PreferencesPanel.cpp"
  75. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  76. #include "misc/juce_SplashScreen.cpp"
  77. #include "misc/juce_SystemTrayIconComponent.cpp"
  78. }
  79. using namespace juce;
  80. namespace juce
  81. {
  82. //==============================================================================
  83. #if JUCE_MAC || JUCE_IOS
  84. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  85. #include "../juce_core/native/juce_mac_ObjCSuffix.h"
  86. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  87. #if JUCE_MAC
  88. #include "native/juce_mac_NSViewComponent.mm"
  89. #include "native/juce_mac_AppleRemote.mm"
  90. #endif
  91. #if JUCE_IOS
  92. #include "native/juce_ios_UIViewComponent.mm"
  93. #endif
  94. #if JUCE_WEB_BROWSER
  95. #include "native/juce_mac_WebBrowserComponent.mm"
  96. #endif
  97. //==============================================================================
  98. #elif JUCE_WINDOWS
  99. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  100. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  101. #include "native/juce_win32_ActiveXComponent.cpp"
  102. #if JUCE_WEB_BROWSER
  103. #include "native/juce_win32_WebBrowserComponent.cpp"
  104. #endif
  105. #include "native/juce_win32_SystemTrayIcon.cpp"
  106. //==============================================================================
  107. #elif JUCE_LINUX
  108. #if JUCE_WEB_BROWSER
  109. #include "native/juce_linux_WebBrowserComponent.cpp"
  110. #endif
  111. #include "native/juce_linux_SystemTrayIcon.cpp"
  112. //==============================================================================
  113. #elif JUCE_ANDROID
  114. #if JUCE_WEB_BROWSER
  115. #include "native/juce_android_WebBrowserComponent.cpp"
  116. #endif
  117. #endif
  118. }