Browse Source

Minor fix for the linux build, and small fix for TreeView dragging logic

tags/2021-05-28
Julian Storer 16 years ago
parent
commit
5b7f6f0f23
38 changed files with 93 additions and 89 deletions
  1. +2
    -0
      .gitignore
  2. +47
    -46
      juce_amalgamated.cpp
  3. +7
    -3
      src/gui/components/controls/juce_TreeView.cpp
  4. +1
    -1
      src/gui/components/lookandfeel/juce_LookAndFeel.cpp
  5. +1
    -1
      src/native/linux/juce_linux_Audio.cpp
  6. +1
    -1
      src/native/linux/juce_linux_AudioCDReader.cpp
  7. +1
    -1
      src/native/linux/juce_linux_FileChooser.cpp
  8. +1
    -1
      src/native/linux/juce_linux_Files.cpp
  9. +1
    -1
      src/native/linux/juce_linux_Fonts.cpp
  10. +1
    -1
      src/native/linux/juce_linux_Messaging.cpp
  11. +1
    -3
      src/native/linux/juce_linux_Midi.cpp
  12. +1
    -1
      src/native/linux/juce_linux_Network.cpp
  13. +1
    -1
      src/native/linux/juce_linux_SystemStats.cpp
  14. +1
    -1
      src/native/linux/juce_linux_Threads.cpp
  15. +1
    -4
      src/native/linux/juce_linux_WebBrowserComponent.cpp
  16. +1
    -1
      src/native/linux/juce_linux_Windowing.cpp
  17. +1
    -1
      src/native/mac/juce_iphone_Audio.cpp
  18. +1
    -1
      src/native/mac/juce_iphone_Fonts.mm
  19. +1
    -1
      src/native/mac/juce_iphone_MessageManager.mm
  20. +1
    -1
      src/native/mac/juce_iphone_MiscUtilities.mm
  21. +1
    -1
      src/native/mac/juce_iphone_UIViewComponentPeer.mm
  22. +1
    -1
      src/native/mac/juce_mac_AppleRemote.mm
  23. +1
    -1
      src/native/mac/juce_mac_CoreAudio.cpp
  24. +1
    -1
      src/native/mac/juce_mac_CoreMidi.cpp
  25. +1
    -1
      src/native/mac/juce_mac_Debugging.mm
  26. +1
    -1
      src/native/mac/juce_mac_FileChooser.mm
  27. +3
    -2
      src/native/mac/juce_mac_Files.mm
  28. +1
    -1
      src/native/mac/juce_mac_Fonts.mm
  29. +1
    -1
      src/native/mac/juce_mac_MainMenu.mm
  30. +1
    -1
      src/native/mac/juce_mac_MessageManager.mm
  31. +1
    -1
      src/native/mac/juce_mac_MiscUtilities.mm
  32. +1
    -1
      src/native/mac/juce_mac_MouseCursor.mm
  33. +1
    -1
      src/native/mac/juce_mac_NSViewComponent.mm
  34. +1
    -1
      src/native/mac/juce_mac_NSViewComponentPeer.mm
  35. +1
    -0
      src/native/mac/juce_mac_NativeIncludes.h
  36. +1
    -1
      src/native/mac/juce_mac_Strings.mm
  37. +1
    -1
      src/native/mac/juce_mac_SystemStats.mm
  38. +1
    -1
      src/native/mac/juce_mac_Threads.mm

+ 2
- 0
.gitignore View File

@@ -11,6 +11,8 @@
*.pdb *.pdb
*.dep *.dep
*.idb *.idb
*.manifest
*.manifest.res
extras/juce demo/build/macosx/build extras/juce demo/build/macosx/build
extras/juce demo/build/win32_vc8/Debug extras/juce demo/build/win32_vc8/Debug
extras/juce demo/build/win32_vc8/Release extras/juce demo/build/win32_vc8/Release


+ 47
- 46
juce_amalgamated.cpp View File

@@ -717,6 +717,7 @@ public:
#import <IOKit/hid/IOHIDLib.h> #import <IOKit/hid/IOHIDLib.h>
#import <IOKit/hid/IOHIDKeys.h> #import <IOKit/hid/IOHIDKeys.h>
#import <IOKit/pwr_mgt/IOPMLib.h> #import <IOKit/pwr_mgt/IOPMLib.h>
#include <Carbon/Carbon.h>
#include <sys/dir.h> #include <sys/dir.h>
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
@@ -52044,8 +52045,7 @@ public:


bool keep = false; bool keep = false;


if ((itemsToKeep[i] || (comp == Component::getComponentUnderMouse() && comp->isMouseButtonDown()))
&& isParentOf (comp))
if (isParentOf (comp))
{ {
if (itemsToKeep[i]) if (itemsToKeep[i])
{ {
@@ -52060,8 +52060,13 @@ public:
comp->setBounds (pos); comp->setBounds (pos);
} }
} }
else

if ((! keep)
&& Component::isMouseButtonDownAnywhere()
&& (comp == Component::getComponentUnderMouse()
|| comp->isParentOf (Component::getComponentUnderMouse())))
{ {
keep = true;
comp->setSize (0, 0); comp->setSize (0, 0);
} }
} }
@@ -61078,7 +61083,7 @@ void LookAndFeel::drawScrollbar (Graphics& g,
gy2 = y + height * 0.7f; gy2 = y + height * 0.7f;
} }


const Colour thumbColour (scrollbar.findColour (ScrollBar::trackColourId));
const Colour thumbColour (scrollbar.findColour (ScrollBar::thumbColourId));


GradientBrush gb (thumbColour.overlaidWith (Colour (0x44000000)), GradientBrush gb (thumbColour.overlaidWith (Colour (0x44000000)),
gx1, gy1, gx1, gy1,
@@ -248871,7 +248876,7 @@ void InterProcessLock::exit() throw()
/********* Start of inlined file: juce_linux_Files.cpp *********/ /********* Start of inlined file: juce_linux_Files.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#define U_ISOFS_SUPER_MAGIC (short) 0x9660 // linux/iso_fs.h #define U_ISOFS_SUPER_MAGIC (short) 0x9660 // linux/iso_fs.h
#define U_MSDOS_SUPER_MAGIC (short) 0x4d44 // linux/msdos_fs.h #define U_MSDOS_SUPER_MAGIC (short) 0x4d44 // linux/msdos_fs.h
@@ -249474,7 +249479,7 @@ int NamedPipe::write (const void* sourceBuffer, int numBytesToWrite, int timeOut
/********* Start of inlined file: juce_linux_Network.cpp *********/ /********* Start of inlined file: juce_linux_Network.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


int SystemStats::getMACAddresses (int64* addresses, int maxNum, const bool littleEndian) throw() int SystemStats::getMACAddresses (int64* addresses, int maxNum, const bool littleEndian) throw()
{ {
@@ -249921,7 +249926,7 @@ int juce_seekInInternetFile (void* handle, int newPosition)
/********* Start of inlined file: juce_linux_SystemStats.cpp *********/ /********* Start of inlined file: juce_linux_SystemStats.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


/*static juce_noinline unsigned int getCPUIDWord (int* familyModel, int* extFeatures) throw() /*static juce_noinline unsigned int getCPUIDWord (int* familyModel, int* extFeatures) throw()
{ {
@@ -250151,7 +250156,7 @@ void PlatformUtilities::fpuReset()
/********* Start of inlined file: juce_linux_Threads.cpp *********/ /********* Start of inlined file: juce_linux_Threads.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


/* /*
Note that a lot of methods that you'd expect to find in this file actually Note that a lot of methods that you'd expect to find in this file actually
@@ -250383,7 +250388,7 @@ void* PlatformUtilities::getProcedureEntryPoint (void* libraryHandle, const Stri
/********* Start of inlined file: juce_linux_Messaging.cpp *********/ /********* Start of inlined file: juce_linux_Messaging.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#ifdef JUCE_DEBUG #ifdef JUCE_DEBUG
#define JUCE_DEBUG_XERRORS 1 #define JUCE_DEBUG_XERRORS 1
@@ -250760,7 +250765,7 @@ bool juce_dispatchNextMessageOnSystemQueue (bool returnIfNoPendingMessages)
/********* Start of inlined file: juce_linux_Fonts.cpp *********/ /********* Start of inlined file: juce_linux_Fonts.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class FreeTypeFontFace class FreeTypeFontFace
{ {
@@ -251347,7 +251352,7 @@ void Typeface::getDefaultFontNames (String& defaultSans, String& defaultSerif, S
/********* Start of inlined file: juce_linux_Windowing.cpp *********/ /********* Start of inlined file: juce_linux_Windowing.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#define TAKE_FOCUS 0 #define TAKE_FOCUS 0
#define DELETE_WINDOW 1 #define DELETE_WINDOW 1
@@ -254587,7 +254592,7 @@ const int KeyPress::rewindKey = (0xffeeff03) | extendedKeyModifier;
/********* Start of inlined file: juce_linux_Audio.cpp *********/ /********* Start of inlined file: juce_linux_Audio.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE && JUCE_ALSA
#if JUCE_INCLUDED_FILE && JUCE_ALSA


static const int maxNumChans = 64; static const int maxNumChans = 64;


@@ -255546,9 +255551,7 @@ AudioIODeviceType* juce_createAudioIODeviceType_ALSA()
/********* Start of inlined file: juce_linux_Midi.cpp *********/ /********* Start of inlined file: juce_linux_Midi.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE

#if JUCE_ALSA
#if JUCE_INCLUDED_FILE && JUCE_ALSA


static snd_seq_t* iterateDevices (const bool forInput, static snd_seq_t* iterateDevices (const bool forInput,
StringArray& deviceNamesFound, StringArray& deviceNamesFound,
@@ -255970,7 +255973,7 @@ MidiInput* MidiInput::createNewDevice (const String&, MidiInputCallback*) { re
/********* Start of inlined file: juce_linux_AudioCDReader.cpp *********/ /********* Start of inlined file: juce_linux_AudioCDReader.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


AudioCDReader::AudioCDReader() AudioCDReader::AudioCDReader()
: AudioFormatReader (0, T("CD Audio")) : AudioFormatReader (0, T("CD Audio"))
@@ -256047,7 +256050,7 @@ int AudioCDReader::getCDDBId()
/********* Start of inlined file: juce_linux_FileChooser.cpp *********/ /********* Start of inlined file: juce_linux_FileChooser.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


void FileChooser::showPlatformDialog (OwnedArray<File>& results, void FileChooser::showPlatformDialog (OwnedArray<File>& results,
const String& title, const String& title,
@@ -256069,9 +256072,7 @@ void FileChooser::showPlatformDialog (OwnedArray<File>& results,
/********* Start of inlined file: juce_linux_WebBrowserComponent.cpp *********/ /********* Start of inlined file: juce_linux_WebBrowserComponent.cpp *********/
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE

#if JUCE_WEB_BROWSER
#if JUCE_INCLUDED_FILE && JUCE_WEB_BROWSER


/* /*
Sorry.. This class isn't implemented on Linux! Sorry.. This class isn't implemented on Linux!
@@ -256165,7 +256166,6 @@ bool WebBrowserComponent::pageAboutToLoad (const String& url)
return true; return true;
} }


#endif
#endif #endif
/********* End of inlined file: juce_linux_WebBrowserComponent.cpp *********/ /********* End of inlined file: juce_linux_WebBrowserComponent.cpp *********/


@@ -256220,7 +256220,7 @@ BEGIN_JUCE_NAMESPACE
/********* Start of inlined file: juce_mac_Strings.mm *********/ /********* Start of inlined file: juce_mac_Strings.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


static const String nsStringToJuce (NSString* s) static const String nsStringToJuce (NSString* s)
{ {
@@ -256391,7 +256391,7 @@ const String SystemClipboard::getTextFromClipboard() throw()
/********* Start of inlined file: juce_mac_SystemStats.mm *********/ /********* Start of inlined file: juce_mac_SystemStats.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


static int64 highResTimerFrequency = 0; static int64 highResTimerFrequency = 0;
static double highResTimerToMillisecRatio = 0; static double highResTimerToMillisecRatio = 0;
@@ -257213,7 +257213,7 @@ int NamedPipe::write (const void* sourceBuffer, int numBytesToWrite, int timeOut
/********* Start of inlined file: juce_mac_Threads.mm *********/ /********* Start of inlined file: juce_mac_Threads.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


/* /*
Note that a lot of methods that you'd expect to find in this file actually Note that a lot of methods that you'd expect to find in this file actually
@@ -257789,7 +257789,7 @@ void InterProcessLock::exit() throw()
/********* Start of inlined file: juce_mac_Files.mm *********/ /********* Start of inlined file: juce_mac_Files.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


/* /*
Note that a lot of methods that you'd expect to find in this file actually Note that a lot of methods that you'd expect to find in this file actually
@@ -258274,7 +258274,8 @@ OSType PlatformUtilities::getTypeOfFile (const String& filename)
#else #else
NSDictionary* fileDict = [[NSFileManager defaultManager] fileAttributesAtPath: juceStringToNS (filename) traverseLink: NO]; NSDictionary* fileDict = [[NSFileManager defaultManager] fileAttributesAtPath: juceStringToNS (filename) traverseLink: NO];
#endif #endif
return (OSType) [fileDict objectForKey: NSFileHFSTypeCode];
//return (OSType) [fileDict objectForKey: NSFileHFSTypeCode];
return [fileDict fileHFSTypeCode];
} }


bool PlatformUtilities::isBundle (const String& filename) bool PlatformUtilities::isBundle (const String& filename)
@@ -258295,7 +258296,7 @@ bool PlatformUtilities::isBundle (const String& filename)
/********* Start of inlined file: juce_iphone_MiscUtilities.mm *********/ /********* Start of inlined file: juce_iphone_MiscUtilities.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


static JUCEApplication* juce_intialisingApp; static JUCEApplication* juce_intialisingApp;


@@ -258437,7 +258438,7 @@ void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool c
/********* Start of inlined file: juce_mac_MiscUtilities.mm *********/ /********* Start of inlined file: juce_mac_MiscUtilities.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


ScopedAutoReleasePool::ScopedAutoReleasePool() ScopedAutoReleasePool::ScopedAutoReleasePool()
{ {
@@ -258671,7 +258672,7 @@ void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool c
/********* Start of inlined file: juce_mac_Debugging.mm *********/ /********* Start of inlined file: juce_mac_Debugging.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


void Logger::outputDebugString (const String& text) throw() void Logger::outputDebugString (const String& text) throw()
{ {
@@ -258718,7 +258719,7 @@ bool JUCE_CALLTYPE Process::isRunningUnderDebugger() throw()
/********* Start of inlined file: juce_iphone_UIViewComponentPeer.mm *********/ /********* Start of inlined file: juce_iphone_UIViewComponentPeer.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class UIViewComponentPeer; class UIViewComponentPeer;


@@ -259596,7 +259597,7 @@ const int KeyPress::rewindKey = 0x30003;
/********* Start of inlined file: juce_iphone_Fonts.mm *********/ /********* Start of inlined file: juce_iphone_Fonts.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class FontHelper class FontHelper
{ {
@@ -259921,7 +259922,7 @@ void Typeface::getDefaultFontNames (String& defaultSans, String& defaultSerif, S
/********* Start of inlined file: juce_iphone_MessageManager.mm *********/ /********* Start of inlined file: juce_iphone_MessageManager.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


struct CallbackMessagePayload struct CallbackMessagePayload
{ {
@@ -260223,7 +260224,7 @@ void* MessageManager::callFunctionOnMessageThread (MessageCallbackFunction* call
/********* Start of inlined file: juce_mac_FileChooser.mm *********/ /********* Start of inlined file: juce_mac_FileChooser.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC


@@ -260679,7 +260680,7 @@ void juce_glViewport (const int w, const int h)
/********* Start of inlined file: juce_mac_MouseCursor.mm *********/ /********* Start of inlined file: juce_mac_MouseCursor.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC


@@ -261162,7 +261163,7 @@ bool WebBrowserComponent::pageAboutToLoad (const String& url)
/********* Start of inlined file: juce_iphone_Audio.cpp *********/ /********* Start of inlined file: juce_iphone_Audio.cpp *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class IPhoneAudioIODevice : public AudioIODeviceType class IPhoneAudioIODevice : public AudioIODeviceType
{ {
@@ -261450,7 +261451,7 @@ AudioIODeviceType* juce_createAudioIODeviceType_iPhoneAudio()
/********* Start of inlined file: juce_mac_CoreMidi.cpp *********/ /********* Start of inlined file: juce_mac_CoreMidi.cpp *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC


@@ -262060,7 +262061,7 @@ MidiInput* MidiInput::openDevice (int index, MidiInputCallback* callback)
/********* Start of inlined file: juce_mac_NSViewComponentPeer.mm *********/ /********* Start of inlined file: juce_mac_NSViewComponentPeer.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class NSViewComponentPeer; class NSViewComponentPeer;


@@ -263598,7 +263599,7 @@ const int KeyPress::rewindKey = 0x30003;
/********* Start of inlined file: juce_mac_MouseCursor.mm *********/ /********* Start of inlined file: juce_mac_MouseCursor.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC


@@ -263776,7 +263777,7 @@ void MouseCursor::showInWindow (ComponentPeer*) const throw()
/********* Start of inlined file: juce_mac_NSViewComponent.mm *********/ /********* Start of inlined file: juce_mac_NSViewComponent.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class NSViewComponentInternal : public ComponentMovementWatcher class NSViewComponentInternal : public ComponentMovementWatcher
{ {
@@ -263905,7 +263906,7 @@ void NSViewComponent::paint (Graphics& g)
/********* Start of inlined file: juce_mac_AppleRemote.mm *********/ /********* Start of inlined file: juce_mac_AppleRemote.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


AppleRemoteDevice::AppleRemoteDevice() AppleRemoteDevice::AppleRemoteDevice()
: device (0), : device (0),
@@ -264459,7 +264460,7 @@ void juce_glViewport (const int w, const int h)
/********* Start of inlined file: juce_mac_MainMenu.mm *********/ /********* Start of inlined file: juce_mac_MainMenu.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class JuceMainMenuHandler; class JuceMainMenuHandler;


@@ -264942,7 +264943,7 @@ void initialiseMainMenu()
/********* Start of inlined file: juce_mac_FileChooser.mm *********/ /********* Start of inlined file: juce_mac_FileChooser.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC


@@ -265762,7 +265763,7 @@ void AudioCDReader::ejectDisk()
/********* Start of inlined file: juce_mac_Fonts.mm *********/ /********* Start of inlined file: juce_mac_Fonts.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


class FontHelper class FontHelper
{ {
@@ -266088,7 +266089,7 @@ void Typeface::getDefaultFontNames (String& defaultSans, String& defaultSerif, S
/********* Start of inlined file: juce_mac_MessageManager.mm *********/ /********* Start of inlined file: juce_mac_MessageManager.mm *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


struct CallbackMessagePayload struct CallbackMessagePayload
{ {
@@ -266836,7 +266837,7 @@ bool WebBrowserComponent::pageAboutToLoad (const String& url)
/********* Start of inlined file: juce_mac_CoreAudio.cpp *********/ /********* Start of inlined file: juce_mac_CoreAudio.cpp *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#ifndef JUCE_COREAUDIO_ERROR_LOGGING_ENABLED #ifndef JUCE_COREAUDIO_ERROR_LOGGING_ENABLED
#define JUCE_COREAUDIO_ERROR_LOGGING_ENABLED 1 #define JUCE_COREAUDIO_ERROR_LOGGING_ENABLED 1
@@ -268172,7 +268173,7 @@ AudioIODeviceType* juce_createAudioIODeviceType_CoreAudio()
/********* Start of inlined file: juce_mac_CoreMidi.cpp *********/ /********* Start of inlined file: juce_mac_CoreMidi.cpp *********/
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


#if JUCE_MAC #if JUCE_MAC




+ 7
- 3
src/gui/components/controls/juce_TreeView.cpp View File

@@ -218,8 +218,7 @@ public:
bool keep = false; bool keep = false;
if ((itemsToKeep[i] || (comp == Component::getComponentUnderMouse() && comp->isMouseButtonDown()))
&& isParentOf (comp))
if (isParentOf (comp))
{ {
if (itemsToKeep[i]) if (itemsToKeep[i])
{ {
@@ -234,8 +233,13 @@ public:
comp->setBounds (pos); comp->setBounds (pos);
} }
} }
else
if ((! keep)
&& Component::isMouseButtonDownAnywhere()
&& (comp == Component::getComponentUnderMouse()
|| comp->isParentOf (Component::getComponentUnderMouse())))
{ {
keep = true;
comp->setSize (0, 0); comp->setSize (0, 0);
} }
} }


+ 1
- 1
src/gui/components/lookandfeel/juce_LookAndFeel.cpp View File

@@ -774,7 +774,7 @@ void LookAndFeel::drawScrollbar (Graphics& g,
gy2 = y + height * 0.7f; gy2 = y + height * 0.7f;
} }
const Colour thumbColour (scrollbar.findColour (ScrollBar::trackColourId));
const Colour thumbColour (scrollbar.findColour (ScrollBar::thumbColourId));
GradientBrush gb (thumbColour.overlaidWith (Colour (0x44000000)), GradientBrush gb (thumbColour.overlaidWith (Colour (0x44000000)),
gx1, gy1, gx1, gy1,


+ 1
- 1
src/native/linux/juce_linux_Audio.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE && JUCE_ALSA
#if JUCE_INCLUDED_FILE && JUCE_ALSA
//============================================================================== //==============================================================================
static const int maxNumChans = 64; static const int maxNumChans = 64;


+ 1
- 1
src/native/linux/juce_linux_AudioCDReader.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/linux/juce_linux_FileChooser.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
void FileChooser::showPlatformDialog (OwnedArray<File>& results, void FileChooser::showPlatformDialog (OwnedArray<File>& results,


+ 1
- 1
src/native/linux/juce_linux_Files.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
#define U_ISOFS_SUPER_MAGIC (short) 0x9660 // linux/iso_fs.h #define U_ISOFS_SUPER_MAGIC (short) 0x9660 // linux/iso_fs.h
#define U_MSDOS_SUPER_MAGIC (short) 0x4d44 // linux/msdos_fs.h #define U_MSDOS_SUPER_MAGIC (short) 0x4d44 // linux/msdos_fs.h


+ 1
- 1
src/native/linux/juce_linux_Fonts.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/linux/juce_linux_Messaging.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
#ifdef JUCE_DEBUG #ifdef JUCE_DEBUG


+ 1
- 3
src/native/linux/juce_linux_Midi.cpp View File

@@ -25,9 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_ALSA
#if JUCE_INCLUDED_FILE && JUCE_ALSA
//============================================================================== //==============================================================================
static snd_seq_t* iterateDevices (const bool forInput, static snd_seq_t* iterateDevices (const bool forInput,


+ 1
- 1
src/native/linux/juce_linux_Network.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/linux/juce_linux_SystemStats.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/linux/juce_linux_Threads.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
/* /*
Note that a lot of methods that you'd expect to find in this file actually Note that a lot of methods that you'd expect to find in this file actually


+ 1
- 4
src/native/linux/juce_linux_WebBrowserComponent.cpp View File

@@ -25,9 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_WEB_BROWSER
#if JUCE_INCLUDED_FILE && JUCE_WEB_BROWSER
/* /*
Sorry.. This class isn't implemented on Linux! Sorry.. This class isn't implemented on Linux!
@@ -126,4 +124,3 @@ bool WebBrowserComponent::pageAboutToLoad (const String& url)
} }
#endif #endif
#endif

+ 1
- 1
src/native/linux/juce_linux_Windowing.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_linux_NativeCode.cpp, rather than being // (This file gets included by juce_linux_NativeCode.cpp, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
#define TAKE_FOCUS 0 #define TAKE_FOCUS 0


+ 1
- 1
src/native/mac/juce_iphone_Audio.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE


+ 1
- 1
src/native/mac/juce_iphone_Fonts.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/mac/juce_iphone_MessageManager.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
struct CallbackMessagePayload struct CallbackMessagePayload
{ {


+ 1
- 1
src/native/mac/juce_iphone_MiscUtilities.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/mac/juce_iphone_UIViewComponentPeer.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
class UIViewComponentPeer; class UIViewComponentPeer;


+ 1
- 1
src/native/mac/juce_mac_AppleRemote.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
AppleRemoteDevice::AppleRemoteDevice() AppleRemoteDevice::AppleRemoteDevice()


+ 1
- 1
src/native/mac/juce_mac_CoreAudio.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/mac/juce_mac_CoreMidi.cpp View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
#if JUCE_MAC #if JUCE_MAC


+ 1
- 1
src/native/mac/juce_mac_Debugging.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
void Logger::outputDebugString (const String& text) throw() void Logger::outputDebugString (const String& text) throw()


+ 1
- 1
src/native/mac/juce_mac_FileChooser.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
#if JUCE_MAC #if JUCE_MAC


+ 3
- 2
src/native/mac/juce_mac_Files.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
/* /*
Note that a lot of methods that you'd expect to find in this file actually Note that a lot of methods that you'd expect to find in this file actually
@@ -521,7 +521,8 @@ OSType PlatformUtilities::getTypeOfFile (const String& filename)
#else #else
NSDictionary* fileDict = [[NSFileManager defaultManager] fileAttributesAtPath: juceStringToNS (filename) traverseLink: NO]; NSDictionary* fileDict = [[NSFileManager defaultManager] fileAttributesAtPath: juceStringToNS (filename) traverseLink: NO];
#endif #endif
return (OSType) [fileDict objectForKey: NSFileHFSTypeCode];
//return (OSType) [fileDict objectForKey: NSFileHFSTypeCode];
return [fileDict fileHFSTypeCode];
} }
bool PlatformUtilities::isBundle (const String& filename) bool PlatformUtilities::isBundle (const String& filename)


+ 1
- 1
src/native/mac/juce_mac_Fonts.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/mac/juce_mac_MainMenu.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
class JuceMainMenuHandler; class JuceMainMenuHandler;


+ 1
- 1
src/native/mac/juce_mac_MessageManager.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
struct CallbackMessagePayload struct CallbackMessagePayload
{ {


+ 1
- 1
src/native/mac/juce_mac_MiscUtilities.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================


+ 1
- 1
src/native/mac/juce_mac_MouseCursor.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
#if JUCE_MAC #if JUCE_MAC


+ 1
- 1
src/native/mac/juce_mac_NSViewComponent.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
class NSViewComponentInternal : public ComponentMovementWatcher class NSViewComponentInternal : public ComponentMovementWatcher


+ 1
- 1
src/native/mac/juce_mac_NSViewComponentPeer.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
class NSViewComponentPeer; class NSViewComponentPeer;


+ 1
- 0
src/native/mac/juce_mac_NativeIncludes.h View File

@@ -56,6 +56,7 @@
#import <IOKit/hid/IOHIDLib.h> #import <IOKit/hid/IOHIDLib.h>
#import <IOKit/hid/IOHIDKeys.h> #import <IOKit/hid/IOHIDKeys.h>
#import <IOKit/pwr_mgt/IOPMLib.h> #import <IOKit/pwr_mgt/IOPMLib.h>
#include <Carbon/Carbon.h>
#include <sys/dir.h> #include <sys/dir.h>
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif


+ 1
- 1
src/native/mac/juce_mac_Strings.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
static const String nsStringToJuce (NSString* s) static const String nsStringToJuce (NSString* s)


+ 1
- 1
src/native/mac/juce_mac_SystemStats.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
static int64 highResTimerFrequency = 0; static int64 highResTimerFrequency = 0;
static double highResTimerToMillisecRatio = 0; static double highResTimerToMillisecRatio = 0;


+ 1
- 1
src/native/mac/juce_mac_Threads.mm View File

@@ -25,7 +25,7 @@
// (This file gets included by juce_mac_NativeCode.mm, rather than being // (This file gets included by juce_mac_NativeCode.mm, rather than being
// compiled on its own). // compiled on its own).
#ifdef JUCE_INCLUDED_FILE
#if JUCE_INCLUDED_FILE
//============================================================================== //==============================================================================
/* /*


Loading…
Cancel
Save