1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-26 02:14:22 +00:00
Commit graph

2300 commits

Author SHA1 Message Date
reuk
04f2ca61e2
UIViewComponentPeer: Simplify view transition reporting 2021-01-15 10:55:48 +00:00
Tom Poole
8fc1195c35 macOS: Set CALayer format to fix Big Sur invalidation region 2021-01-14 23:11:14 +00:00
Tom Poole
2553336f45 Bump version number to 6.0.7 2021-01-14 17:26:20 +00:00
Tom Poole
9e4fceb031 Revert "macOS: Set CALayer format to fix Big Sur invalidation region"
This reverts commit a6217ae9fb.
2021-01-14 17:16:56 +00:00
ed
d3f91fd76c macOS: Fixed repaint issue with JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS enabled that was introduced in 8d3fd927 2021-01-14 16:48:09 +00:00
Tom Poole
a6217ae9fb macOS: Set CALayer format to fix Big Sur invalidation region 2021-01-14 12:38:45 +00:00
Tom Poole
25dccd53c0 Bump version number to 6.0.6 2021-01-13 16:06:01 +00:00
reuk
cd25daf892
FileChooser: Respect comma delimiters for file filters 2021-01-11 18:37:15 +00:00
ed
8d3fd92784 macOS: Redraw drop-shadow on repaint for transparent NSWindows to fix some drawing artifacts 2021-01-07 13:27:35 +00:00
ed
84d9117054 Linux: Check for valid display in updateScaleFactorFromNewBounds() 2021-01-06 17:16:46 +00:00
ed
6325230f61 Windows: Use rectangleFromRECT() to clean up some code 2021-01-06 17:16:36 +00:00
ed
09c25fedfd Windows: Retrieve work area rectangle for all connected monitors 2021-01-06 17:16:36 +00:00
ed
b614f9e01e Windows: Only call Displays::updateToLogical() on per-monitor DPI-aware threads 2021-01-06 17:16:35 +00:00
reuk
88285acae1
DragAndDrop: Fix drag and drop in windows optimised builds
In very optimised builds, SHCore.dll may not be automatically loaded
into the address space of the calling executable. In these cases, the
call to `GetModuleHandle` will fail. Adding the call to LoadLibrary
ensures that the dll is loaded into the program's address space, which
will allow the call to GetModuleHandle to succeed.
2021-01-06 12:31:38 +00:00
reuk
e988c4c671
DragAndDrop: Tidy up windows implementation 2021-01-06 12:31:38 +00:00
reuk
5354d01a89 X11: Properly escape "+" symbols in dragged/dropped filenames 2020-12-17 17:49:48 +00:00
reuk
41ec486dd0
FileChooser: Show desktop folder if requested folder does not exist
This change affects the PostVista version of the Windows FileChooser.
2020-12-15 11:25:56 +00:00
ed
088e100c1f Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
ed
30f8594ecf macOS: Fixed an incorrect selector in JuceNSViewClass 2020-12-10 12:47:40 +00:00
ed
a7667077f8 Android: Fixed a crash when juce_gui_extra is not present
The default main JuceActivity for JUCE apps calls appNewIntent() in its onNewIntent() implementation which is defined in juce_gui_extra. This commit moves the implementation into juce_gui_basics.
2020-12-08 14:49:15 +00:00
ed
0f975ee482 Added a way to specify some space between PropertyComponents in a PropertyPanel 2020-12-03 17:27:10 +00:00
ed
9d0a97c33c Ensure that modal components set auto-delete when dismissed are properly cleaned up 2020-12-01 19:13:11 +00:00
Tom Poole
5929103a29 Bump version number to 6.0.5 2020-12-01 10:08:50 +00:00
reuk
6ac0e90e58
FileChooser: Allow new filechooser to load paths containing unicode characters 2020-11-30 19:50:46 +00:00
ed
7053df4b5b iOS: Fixed incorrect desktop window position 2020-11-30 18:27:55 +00:00
ed
8ee13b78ba Avoid drawing TextEditor "empty" text when it isn't visible 2020-11-16 16:10:13 +00:00
ed
36f1197536 macOS: Forward key events from WKWebView correctly
Also added support for selectAll: selector forwarding in NSViewComponentPeer
2020-11-13 18:16:04 +00:00
ed
09ecc0ebef Linux: Fixed a use-after-free in XWindowSystem::findDisplays() 2020-11-03 17:07:38 +00:00
ed
3f78998b96 Linux: Fixed semi-transparent windows not rendering correctly
Previously we were choosing a Visual and Colormap on initialisation of the X11 Display which could lead to bugs when opening a window with different visual and colour requirements. This commit makes 16, 24 and 32-bit visuals available and chooses the correct one when opening a window.
2020-11-02 15:46:45 +00:00
ed
7901eb6ca1 Linux: Use synchronous X11 error handling in debug builds 2020-11-02 15:46:18 +00:00
reuk
4fd3dfb51b FileChooser: Temporarily silence deprecation warnings on iOS 2020-10-29 15:53:33 +00:00
ed
bef6a91294 Linux: Made the Desktop singleton usable when running headless 2020-10-27 12:39:16 +00:00
ed
f05ae1c709 Added Desktop::isHeadless() method 2020-10-27 12:39:11 +00:00
ed
1f2a7b759d Added documentation to Desktop::getDisplays() 2020-10-27 12:39:06 +00:00
ed
b7e28541ca Replaced deprecated Displays methods 2020-10-27 12:38:59 +00:00
ed
c21241549b Deprecated some methods in the Display class
Deprecated methods returning a Display& in favour of new methods returning a Display* which return nullptr when running on a system with no connected displays.
2020-10-27 12:38:48 +00:00
reuk
f61447fd01 PopupMenu: Allow manual column breaking 2020-10-26 17:04:49 +00:00
reuk
d4450ad8ae PopupMenu: Add LookAndFeelMethods for drawing column separators 2020-10-26 17:04:49 +00:00
reuk
f04e11c4bb PopupMenu: Allow theming of popup menu background based on Options
Adds a new `drawPopupMenuBackgroundForOption` member function to
`PopupMenu::LookAndFeelMethods`. By default this will pass through
to `drawPopupMenuBackground`, but it can be overridden in cases
where the background appearance depends on the current `Options`.
2020-10-26 17:04:49 +00:00
reuk
37c2dbe547 ComboBox: Add const getter for root menu 2020-10-26 15:15:29 +00:00
reuk
b78114cfb3 FileChooser: Add assertion for improved safety when using modal FileChoosers 2020-10-21 16:18:31 +01:00
reuk
2a638b86e7 FileChooser: Use custom save/open panel implementations to ensure that apps cannot terminate while the panel is open 2020-10-21 16:18:31 +01:00
reuk
1d29665e56 FileChooser: Fix issue where preview component may not receive full filename
Some hosts (such as Reaper) weren't creating an instance of exactly
NSOpenPanel or NSSavePanel, which meant that the call to
`getSelectedPaths` was always returning an empty array.

Now, rather than trying to cast the sender to an appropriate type, we
assume that the sender is always the same panel that we opened earlier,
so that we can just query the panel directly for its selection.
2020-10-21 16:18:31 +01:00
reuk
fdf09a6dde FileChooser: Ensure that macOS preview component always receives user events
Previously, when a file dialog was launched synchronously, the 'dummy' modal
component was preventing user input events from reaching the preview component.

Now, we explicitly allow input events to reach the file preview component, if
it exists.
2020-10-20 10:16:13 +01:00
reuk
dd62aec528 FileChooser: Ensure preview mouse interactions work when showing dialog on macOS 2020-10-20 10:16:13 +01:00
reuk
6fd0baa759 FileChooser: Ensure macOS FileChooserComponent shows when FileChooser is reopened
If the preview is not removed from the desktop, the FileChooser will try to reuse
the same ComponentPeer the next time the preview component is used.
2020-10-20 10:16:13 +01:00
reuk
36664cc487 FileChooser: Fix behaviour of macOS FilePreviewComponent
Previously, when the FileChooser::Native instance entered the
modal state, it was preventing the inner FilePreviewComponent from
receiving events.
2020-10-20 10:16:13 +01:00
reuk
f09b2aa4f5 FileChooser: Ensure macOS accessory panel is initially opened if custom preview component is passed 2020-10-20 10:16:13 +01:00
reuk
2b03936461 FileChooser: Use old-style win32 file chooser if user passes a custom preview component 2020-10-20 10:16:13 +01:00
reuk
8ad5ea0cb1 FileChooser: Fix win32 threading bug
The Win32NativeFileChooser was taking ownership of itself
in its `Thread::run` implementation. This meant that sometimes
the destructor of the file chooser thread would execute directly
in `Thread::run`.

Now, we explicitly transfer ownership into a function object which
will run asynchronously on the main thread. This way, the file chooser
thread will be stopped on the main thread.
2020-10-20 10:16:13 +01:00