1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
Commit graph

65 commits

Author SHA1 Message Date
Oli
27946ba063 Effects: Use compatible image type for DragAndDropContainer
Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
2025-04-24 13:58:23 +01:00
reuk
5e44dc0b95
DragAndDropContainer: Fix issue where drag images in plugins could appear on the incorrect display
This issue could be seen when dragging widgets (e.g. rows in the
ValueTreesDemo) from a plugin on a multi-monitor Windows system.
2025-03-19 11:06:17 +00:00
reuk
fc76e936d3
DragImageComponent: Avoid case where image may detach from mouse when dragging between screens
When two monitors are available, both with different scale factors, then
the drag-image may 'detach' from the mouse while the image's top-left
coordinate was on one display, and the mouse cursor was on the other
display.

This happened because, on Windows, the mouse cursor moves continuously
in physical (not logical!) space. In other words, the mouse may not move
continuously in logical space, and the discontinuity becomes visible
when components are positioned relative to the mouse in logical space.

In order to display consistently, the top-left position of the image
must be set relative to the physical position of the mouse.
2024-12-02 17:20:42 +00:00
reuk
90f37e27ea Windows: Fix DLL build
There were a few "ambiguous operator new/delete" errors that were due to
inheriting from a private base class that used the leak detector. These
errors are resolved by adding the leak detector to the derived classes.

JUCE_API was missing from a few useful types, notably the ARA hosting
types.
2024-10-22 13:24:46 +01:00
reuk
19061e6d17
Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
Tom Poole
94d98a2b10 Update licensing information 2024-04-16 11:39:35 +01:00
Tom Poole
6bf9bb9a2e Add final specifiers in implementation files 2023-10-10 16:12:38 +01:00
reuk
b7beb42153
DragAndDropContainer: Avoid out-parameters 2023-02-22 21:00:18 +00:00
attila
acc6addb86 DragAndDropContainer: Manage keyboard focus for the drag image when the target needs it hidden
The previous implementation would trigger assertions in
grabKeyboardFocus() when the DragImageComponent was hidden due to the
target returning false from shouldDrawDragImageWhenOver().

Hiding the image would also mean that its keyboard focus was lost. Now
focus is restored when the image becomes visible again.
2022-08-15 12:07:40 +02:00
attila
032cc528c8 DragAndDropContainer: Fix the escape key dismissing the drag operation 2022-06-10 20:38:37 +02:00
Tom Poole
2ec861d99e Update licensing banners to JUCE 7 2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4 Update copyright banners 2022-04-04 12:36:32 +01:00
reuk
34fdea0708
DragAndDropContainer: Allow custom scaling 2021-12-01 15:35:54 +00:00
Attila Szarvas
823bfb0c32 DragAndDropContainer: fix positioning when source Component is transformed 2021-09-27 10:05:19 +00:00
reuk
394c4fd475 Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
ed
009d685179 Updated all license headers 2020-06-29 08:30:22 +01:00
Tom Poole
894e7d2bd2 Updated all license headers 2020-04-23 17:30:39 +01:00
reuk
327f817b9b Copyrights: Update commercial/gpl headers to be gpl-only 2020-04-09 15:22:56 +01:00
ed
a313357d39 Update DragAndDropTarget::SourceDetails::localPosition before calling DragAndDropContainer::dragOperationStarted() 2020-01-21 15:54:32 +00:00
jules
cadac817c6 Enabled some more warning flags in Xcode, and fixed the problems they caused 2019-01-11 09:52:10 +00:00
Tom Poole
a3219c7fc6 Linux: Fixed a DragAndDrop issue between different containers 2018-08-21 19:20:03 +01:00
Tom Poole
e763ac3de2 Fixed a bug when performing a DragAndDrop across windows 2018-08-21 11:29:06 +01:00
Tom Poole
9dde83e662 Fixed a z-order bug when DragAndDrop-ing between plug-in windows 2018-07-18 16:34:19 +01:00
ed
481221a256 Cleaned up the ModifierKeys class and removed the peer-specific implementations of ModifierKeys::getCurrentModifiersRealtime() and ModifierKeys::updateCurrentModifiers() 2018-05-09 10:04:27 +01:00
jules
4fcedf7be5 Standardised some lambda syntax 2018-01-08 10:28:41 +00:00
ed
1356ab1819 Fixed an issue in the last commit where an assertion would be triggered when not explicitly passing the inputSourceCausingDrag parameter to DragAndDropContainer::startDragging() 2017-11-05 10:42:51 +00:00
ed
112f1af3e8 Fixed a bug where multiple itemDropped() callbacks were being triggered when using drag and drop 2017-11-04 12:37:22 +00:00
ed
3ed0e05c9e Fixed a bug when using drag and drop on devices with both mouse and touch inputs 2017-11-03 10:13:43 +00:00
ed
5d8d37eb87 Added support for multi-touch drag and drop 2017-10-04 15:52:31 +01:00
jules
eda613c6db Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools 2017-09-08 08:59:55 +01:00
hogliux
b5afccc37c Updated file headers and the README with the JUCE 5 license 2017-04-27 14:43:04 +01:00
jules
60e9231fb1 Removed need for std::function in order to use MessageManager::callAsync(). Used it to modernise a few bits of old code. 2017-03-29 15:31:41 +01:00
jules
dd13702684 Added support for drag and drop of text on OSX, via DragAndDropContainer::shouldDropTextWhenDraggedExternally 2016-12-20 09:12:22 +00:00
hogliux
0df1e0b5a9 Added sourceDetails parameter to dragOperationStarted and dragOperationEnded 2016-11-29 09:51:58 +00:00
hogliux
c7b8e77031 Update copyright notice 2015-07-22 15:59:34 +01:00
jules
062f136dd4 Added a method DragAndDropContainer::setCurrentDragImage 2015-06-08 13:18:33 -07:00
jules
c6ca8b05b1 Added callbacks to DragAndDropContainer to be told when drag operations begin/end. 2014-10-07 12:08:05 +01:00
jules
31b912bc87 Tweak to DragAndDropContainer to avoid problems detecting the window that's being dragged over. 2014-09-16 15:38:18 +01:00
jules
6c61dbb68e Refactored the internal mouse-handling code to use floating point coords. This shouldn't affect much user code, but a few methods in MouseInputSource have now changed to use Point<float> rather than Point<int>. 2014-06-14 13:06:53 +01:00
jules
8be86285b0 Fixed erroneous showing of drag-and-drop image if the drag starts on a non-droppable comp. 2014-06-11 10:24:59 +01:00
jules
4620d71816 Made DragAndDropContainer force mouse-cursor updates to help when using modifier keys to change the drag mode. 2013-11-27 19:38:40 +00:00
jules
e432b03c61 Avoiding alert beeps when windows are created during a drag operation. 2013-11-20 11:09:59 +00:00
jules
8efe5abb1a Avoided DragAndDropContainer holding onto its description object after a drag finishes. 2013-11-19 21:22:21 +00:00
jules
177b6426b8 When dragging-and-dropping, made the escape key cancel the drag. 2013-11-18 12:10:38 +00:00
jules
7590e3f1fe Fixed some toolbar customiser drag+drop problems. 2013-07-25 18:14:23 +01:00
jules
4d7aaace23 Changed DragAndDropContainer::getCurrentDragDescription() to return a var. 2013-07-23 14:38:48 +01:00
jules
5918d039ce Added some "override" annotations. 2013-07-08 19:05:14 +01:00
jules
c75a7300f5 Added some 'override' modifiers to overridden methods. 2013-06-23 23:09:52 +01:00
jules
03c2801f3f Copyright header update in all module files. juce_core modules are now ISC licensed. All other modules are GPLv2/3/AGPLv3 2013-06-13 13:17:12 +01:00
jules
c7506df13f Changed some pass-by-references to pass-by-value to improve compiler optimisation. 2013-05-22 23:05:53 -06:00