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.

150 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. #if JUCE_MAC || JUCE_IOS
  66. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  67. #endif
  68. #include "documents/juce_FileBasedDocument.cpp"
  69. #include "code_editor/juce_CodeDocument.cpp"
  70. #include "code_editor/juce_CodeEditorComponent.cpp"
  71. #include "code_editor/juce_CPlusPlusCodeTokeniser.cpp"
  72. #include "lookandfeel/juce_OldSchoolLookAndFeel.cpp"
  73. #include "misc/juce_BubbleMessageComponent.cpp"
  74. #include "misc/juce_ColourSelector.cpp"
  75. #include "misc/juce_KeyMappingEditorComponent.cpp"
  76. #include "misc/juce_PreferencesPanel.cpp"
  77. #include "misc/juce_RecentlyOpenedFilesList.cpp"
  78. #include "misc/juce_SplashScreen.cpp"
  79. #include "misc/juce_SystemTrayIconComponent.cpp"
  80. }
  81. using namespace juce;
  82. namespace juce
  83. {
  84. //==============================================================================
  85. #if JUCE_MAC || JUCE_IOS
  86. #include "../juce_core/native/juce_osx_ObjCHelpers.h"
  87. #include "../juce_graphics/native/juce_mac_CoreGraphicsHelpers.h"
  88. #if JUCE_MAC
  89. #include "native/juce_mac_NSViewComponent.mm"
  90. #include "native/juce_mac_AppleRemote.mm"
  91. #include "native/juce_mac_SystemTrayIcon.cpp"
  92. #endif
  93. #if JUCE_IOS
  94. #include "native/juce_ios_UIViewComponent.mm"
  95. #endif
  96. #if JUCE_WEB_BROWSER
  97. #include "native/juce_mac_WebBrowserComponent.mm"
  98. #endif
  99. //==============================================================================
  100. #elif JUCE_WINDOWS
  101. #include "../juce_core/native/juce_win32_ComSmartPtr.h"
  102. #include "../juce_events/native/juce_win32_HiddenMessageWindow.h"
  103. #include "native/juce_win32_ActiveXComponent.cpp"
  104. #if JUCE_WEB_BROWSER
  105. #include "native/juce_win32_WebBrowserComponent.cpp"
  106. #endif
  107. #include "native/juce_win32_SystemTrayIcon.cpp"
  108. //==============================================================================
  109. #elif JUCE_LINUX
  110. #if JUCE_WEB_BROWSER
  111. #include "native/juce_linux_WebBrowserComponent.cpp"
  112. #endif
  113. #include "native/juce_linux_SystemTrayIcon.cpp"
  114. //==============================================================================
  115. #elif JUCE_ANDROID
  116. #if JUCE_WEB_BROWSER
  117. #include "native/juce_android_WebBrowserComponent.cpp"
  118. #endif
  119. #endif
  120. }