@@ -0,0 +1,5 @@ | |||||
// This is an auto-generated file to redirect any included | |||||
// module headers to the correct external folder. | |||||
#include "../../../../../modules/juce_audio_utils/juce_audio_utils.h" | |||||
@@ -66,6 +66,7 @@ public: | |||||
#ifndef __MINGW32__ | #ifndef __MINGW32__ | ||||
return ::CoCreateInstance (classUUID, 0, dwClsContext, __uuidof (ComClass), (void**) resetAndGetPointerAddress()); | return ::CoCreateInstance (classUUID, 0, dwClsContext, __uuidof (ComClass), (void**) resetAndGetPointerAddress()); | ||||
#else | #else | ||||
jassertfalse; // need to find a mingw equivalent of __uuidof to make this possible | |||||
return E_NOTIMPL; | return E_NOTIMPL; | ||||
#endif | #endif | ||||
} | } | ||||
@@ -82,7 +83,12 @@ public: | |||||
template <class OtherComClass> | template <class OtherComClass> | ||||
HRESULT QueryInterface (ComSmartPtr<OtherComClass>& destObject) const | HRESULT QueryInterface (ComSmartPtr<OtherComClass>& destObject) const | ||||
{ | { | ||||
#ifndef __MINGW32__ | |||||
return this->QueryInterface (__uuidof (OtherComClass), destObject); | return this->QueryInterface (__uuidof (OtherComClass), destObject); | ||||
#else | |||||
jassertfalse; // need to find a mingw equivalent of __uuidof to make this possible | |||||
return E_NOTIMPL; | |||||
#endif | |||||
} | } | ||||
private: | private: | ||||
@@ -696,7 +696,7 @@ void Path::addBubble (float x, float y, | |||||
if (whichSide == 0) | if (whichSide == 0) | ||||
{ | { | ||||
const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f; | const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f; | ||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2) * arrowPos - halfArrowW); | |||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2 - arrowWidth)) * arrowPos - halfArrowW); | |||||
lineTo (arrowX1, y); | lineTo (arrowX1, y); | ||||
lineTo (tipX, tipY); | lineTo (tipX, tipY); | ||||
lineTo (arrowX1 + halfArrowW * 2.0f, y); | lineTo (arrowX1 + halfArrowW * 2.0f, y); | ||||
@@ -710,7 +710,7 @@ void Path::addBubble (float x, float y, | |||||
if (whichSide == 3) | if (whichSide == 3) | ||||
{ | { | ||||
const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f; | const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f; | ||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2) * arrowPos - halfArrowH); | |||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2 - arrowWidth) * arrowPos - halfArrowH); | |||||
lineTo (x + w, arrowY1); | lineTo (x + w, arrowY1); | ||||
lineTo (tipX, tipY); | lineTo (tipX, tipY); | ||||
lineTo (x + w, arrowY1 + halfArrowH * 2.0f); | lineTo (x + w, arrowY1 + halfArrowH * 2.0f); | ||||
@@ -724,7 +724,7 @@ void Path::addBubble (float x, float y, | |||||
if (whichSide == 2) | if (whichSide == 2) | ||||
{ | { | ||||
const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f; | const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f; | ||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2) * arrowPos - halfArrowW); | |||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2 - arrowWidth) * arrowPos - halfArrowW); | |||||
lineTo (arrowX1 + halfArrowW * 2.0f, y + h); | lineTo (arrowX1 + halfArrowW * 2.0f, y + h); | ||||
lineTo (tipX, tipY); | lineTo (tipX, tipY); | ||||
lineTo (arrowX1, y + h); | lineTo (arrowX1, y + h); | ||||
@@ -738,7 +738,7 @@ void Path::addBubble (float x, float y, | |||||
if (whichSide == 1) | if (whichSide == 1) | ||||
{ | { | ||||
const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f; | const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f; | ||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2) * arrowPos - halfArrowH); | |||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2 - arrowWidth) * arrowPos - halfArrowH); | |||||
lineTo (x, arrowY1 + halfArrowH * 2.0f); | lineTo (x, arrowY1 + halfArrowH * 2.0f); | ||||
lineTo (tipX, tipY); | lineTo (tipX, tipY); | ||||
lineTo (x, arrowY1); | lineTo (x, arrowY1); | ||||
@@ -304,6 +304,11 @@ FilePreviewComponent* FileBrowserComponent::getPreviewComponent() const noexcept | |||||
return previewComp; | return previewComp; | ||||
} | } | ||||
DirectoryContentsDisplayComponent* FileBrowserComponent::getDisplayComponent() const noexcept | |||||
{ | |||||
return fileListComponent; | |||||
} | |||||
//============================================================================== | //============================================================================== | ||||
void FileBrowserComponent::resized() | void FileBrowserComponent::resized() | ||||
{ | { | ||||
@@ -206,6 +206,9 @@ public: | |||||
/** @internal */ | /** @internal */ | ||||
FilePreviewComponent* getPreviewComponent() const noexcept; | FilePreviewComponent* getPreviewComponent() const noexcept; | ||||
/** @internal */ | |||||
DirectoryContentsDisplayComponent* getDisplayComponent() const noexcept; | |||||
protected: | protected: | ||||
/** Returns a list of names and paths for the default places the user might want to look. | /** Returns a list of names and paths for the default places the user might want to look. | ||||
Use an empty string to indicate a section break. | Use an empty string to indicate a section break. | ||||