|
|
|
@@ -70898,6 +70898,11 @@ void MagnifierComponent::setScaleFactor (double newScaleFactor) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void MagnifierComponent::setResamplingQuality (Graphics::ResamplingQuality newQuality) |
|
|
|
{ |
|
|
|
quality = newQuality; |
|
|
|
} |
|
|
|
|
|
|
|
void MagnifierComponent::paint (Graphics& g) |
|
|
|
{ |
|
|
|
const int w = holderComp->getWidth(); |
|
|
|
@@ -74812,6 +74817,11 @@ TooltipWindow::~TooltipWindow() |
|
|
|
hide(); |
|
|
|
} |
|
|
|
|
|
|
|
void TooltipWindow::setMillisecondsBeforeTipAppears (const int newTimeMs) throw() |
|
|
|
{ |
|
|
|
millisecondsBeforeTipAppears = newTimeMs; |
|
|
|
} |
|
|
|
|
|
|
|
void TooltipWindow::paint (Graphics& g) |
|
|
|
{ |
|
|
|
getLookAndFeel().drawTooltip (g, tipShowing, getWidth(), getHeight()); |
|
|
|
@@ -244507,6 +244517,11 @@ public: |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
bool isInside (HWND h) const |
|
|
|
{ |
|
|
|
return GetAncestor (hwnd, GA_ROOT) == h; |
|
|
|
} |
|
|
|
|
|
|
|
juce_UseDebuggingNewOperator |
|
|
|
|
|
|
|
bool dontRepaint; |
|
|
|
@@ -245908,10 +245923,20 @@ bool Process::isForegroundProcess() throw() |
|
|
|
if (fg == 0) |
|
|
|
return true; |
|
|
|
|
|
|
|
DWORD processId = 0; |
|
|
|
GetWindowThreadProcessId (fg, &processId); |
|
|
|
// when running as a plugin in IE8, the browser UI runs in a different process to the plugin, so |
|
|
|
// process ID isn't a reliable way to check if the foreground window belongs to us - instead, we |
|
|
|
// have to see if any of our windows are children of the foreground window |
|
|
|
fg = GetAncestor (fg, GA_ROOT); |
|
|
|
|
|
|
|
for (int i = ComponentPeer::getNumPeers(); --i >= 0;) |
|
|
|
{ |
|
|
|
Win32ComponentPeer* const wp = dynamic_cast <Win32ComponentPeer*> (ComponentPeer::getPeer (i)); |
|
|
|
|
|
|
|
if (wp != 0 && wp->isInside (fg)) |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
return processId == GetCurrentProcessId(); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
bool AlertWindow::showNativeDialogBox (const String& title, |
|
|
|
|