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.

143 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. #define JUCE_DONT_DEFINE_MACROS 1
  27. #include "../juce_core/native/juce_BasicNativeHeaders.h"
  28. #include "juce_gui_extra.h"
  29. //==============================================================================
  30. #if JUCE_MAC
  31. #define Point CarbonDummyPointName
  32. #define Component CarbonDummyCompName
  33. #import <WebKit/WebKit.h>
  34. #import <IOKit/IOKitLib.h>
  35. #import <IOKit/IOCFPlugIn.h>
  36. #import <IOKit/hid/IOHIDLib.h>
  37. #import <IOKit/hid/IOHIDKeys.h>
  38. #import <IOKit/pwr_mgt/IOPMLib.h>
  39. #import <Carbon/Carbon.h> // still needed for SetSystemUIMode()
  40. #undef Point
  41. #undef Component
  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. #endif
  60. //==============================================================================
  61. // START_AUTOINCLUDE documents/*.cpp, code_editor/*.cpp, embedding/*.cpp, lookandfeel/*.cpp, misc/*.cpp
  62. #include "documents/juce_FileBasedDocument.cpp"
  63. #include "code_editor/juce_CodeDocument.cpp"
  64. #include "code_editor/juce_CodeEditorComponent.cpp"
  65. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  66. #include "lookandfeel/juce_OldSchoolLookAndFeel.cpp"
  67. #include "misc/juce_BubbleMessageComponent.cpp"
  68. #include "misc/juce_ColourSelector.cpp"
  69. #include "misc/juce_KeyMappingEditorComponent.cpp"
  70. #include "misc/juce_PreferencesPanel.cpp"
  71. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  72. #include "misc/juce_SplashScreen.cpp"
  73. #include "misc/juce_SystemTrayIconComponent.cpp"
  74. // END_AUTOINCLUDE
  75. using namespace juce;
  76. BEGIN_JUCE_NAMESPACE
  77. //==============================================================================
  78. #if JUCE_MAC || JUCE_IOS
  79. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  80. #include "../juce_core/native/juce_mac_ObjCSuffix.h"
  81. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  82. #if JUCE_MAC
  83. #include "native/juce_mac_NSViewComponent.mm"
  84. #include "native/juce_mac_AppleRemote.mm"
  85. #endif
  86. #if JUCE_IOS
  87. #include "native/juce_ios_UIViewComponent.mm"
  88. #endif
  89. #if JUCE_WEB_BROWSER
  90. #if JUCE_MAC
  91. #include "native/juce_mac_WebBrowserComponent.mm"
  92. #else
  93. #include "native/juce_ios_WebBrowserComponent.mm"
  94. #endif
  95. #endif
  96. //==============================================================================
  97. #elif JUCE_WINDOWS
  98. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  99. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  100. #include "native/juce_win32_ActiveXComponent.cpp"
  101. #if JUCE_WEB_BROWSER
  102. #include "native/juce_win32_WebBrowserComponent.cpp"
  103. #endif
  104. #include "native/juce_win32_SystemTrayIcon.cpp"
  105. //==============================================================================
  106. #elif JUCE_LINUX
  107. #if JUCE_WEB_BROWSER
  108. #include "native/juce_linux_WebBrowserComponent.cpp"
  109. #endif
  110. #include "native/juce_linux_SystemTrayIcon.cpp"
  111. //==============================================================================
  112. #elif JUCE_ANDROID
  113. #if JUCE_WEB_BROWSER
  114. #include "native/juce_android_WebBrowserComponent.cpp"
  115. #endif
  116. #endif
  117. END_JUCE_NAMESPACE