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

2884 commits

Author SHA1 Message Date
reuk
697643c0b6
Component: Add an assertion to check that the component remains alive when entering modal state 2022-11-02 11:35:51 +00:00
chroma
167911b9d2 UIViewComponentPeer: Disable autocomplete suggestions on text input views 2022-10-31 12:27:12 +00:00
reuk
978a00bed2
iOS: Updated Desktop::allowedOrientationsChanged to support new API in iOS 16 2022-10-19 14:28:44 +01:00
attila
e76603ae18 iOS: Add missing call to VBLank listeners 2022-10-19 11:23:08 +02:00
chroma
d3cff375be Thread: Introduce a new Thread backend
This is a breaking change - see BREAKING-CHANGES.txt
2022-10-18 11:49:47 +01:00
attila
1da9ccd36c Make it possible to attach Component updates to vblank events 2022-10-17 12:32:55 +02:00
reuk
59a47a4638
HWNDComponentPeer: Fix icon leaks
Co-authored-by: ValentynPavliuchenkoA <valentyn.pavliuchenko@avid.com>
2022-10-06 18:53:09 +01:00
reuk
d621d46ca8
FileListComponent: Update content before selecting row to ensure totalItems is up-to-date 2022-10-06 17:33:59 +01:00
attila
2e0646abba TreeView: Fix restoring scroll position in restoreOpennessState
This commit fixes a regression introduced in 70968d46.
2022-10-05 15:46:09 +02:00
reuk
dc8bc918d2
TextEditor: Fix bug where text could be pasted twice from the popup menu
This bug was introduced in 140f8fedb1
2022-09-29 12:05:43 +01:00
reuk
00b1bf3f5b
DirectoryContentsList: Ensure change notification is sent after search completes
This fixes an issue where the FileListComponent might fail to select a
file, because the file list reported that it was still loading during
the final ChangeListener callback.
2022-09-29 12:05:43 +01:00
reuk
b53ee602d4
X11: Use 32-bit colourmap in the case that a 24-bit colourmap is unavailable
When using RDP to access a Fedora machine running Gnome, the only
available colourmap is 32-bit. The old implementation caused GUI apps to
crash when they attempted to use a null colourmap pointer.
2022-09-29 12:05:42 +01:00
attila
2e1809ec33 Fix key up behaviour in a multiline TextEditor
A regression was introduced in d564e4931. Before that commit you
could use key up to jump into position zero of a multiline TextEditor
if the cursor was somewhere in the first line. Since that commit the
keypress had no effect. This change restores the earlier behaviour.
2022-09-28 15:07:30 +02:00
reuk
14628ec824
iOS: Correctly compute mouse position for scroll events
When using Universal Control, the system seems to translate mouse scroll
events into swipe gestures, meaning that the gesture position is not
constant during the gesture.
2022-09-27 16:45:21 +01:00
reuk
5d1c580b15
FileListComponent: Fix incorrect selection when calling setSelectedFile while the directory contents are still loading 2022-09-27 15:18:22 +01:00
reuk
4fc958bcda
NSViewComponentPeer: Avoid allocating a std::function on every frame 2022-09-27 15:18:21 +01:00
reuk
19175ff698
OpenGL: Ensure that macOS uses the same (sRGB) colour space everywhere 2022-09-27 15:18:21 +01:00
reuk
7c14c1fcd7
Use more concise stdlib type aliases 2022-09-26 18:03:47 +01:00
attila
d15e152da5 Fix TopLevelWindow::centreAroundComponent 2022-09-22 18:18:59 +02:00
attila
44dd0649fd Grid: Fix layout for very small items
Until this commit Items with a size of 1 could be rounded to
bounds with a size of 0 or 2 due to floating point errors, leading
to slightly too large or disappearing items. The new approach
preserves the size of items.
2022-09-22 18:18:59 +02:00
attila
d564e49312 TextEditor: Change caret positioning when clicking before text and between lines
This commit fixes an issue when using large lineSpacing, where the caret
would jump to the end of the previous line when clicking between lines.
With the new behaviour the line spacing is considered to belong to the
previous line.

The commit also changes the behaviour observed when clicking in the
empty space before the first line. Until now the caret would jump into
the first character position. Now it behaves as if the space before the
first line would belong to the first line.
2022-09-15 12:30:40 +02:00
attila
6da1357fde Slider: Update PopupDisplay in updateText() 2022-09-13 15:20:57 +02:00
reuk
65f1a76614
Tidy up parameter pack expansions 2022-09-12 16:14:57 +01:00
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]] 2022-09-12 16:14:57 +01:00
reuk
045214c986
Build: Allow building with llvm-mingw headers 2022-09-12 16:14:57 +01:00
reuk
b3a4d54a72
Build: Update the minimum C++ standard to C++17 2022-09-12 16:14:57 +01:00
Leigh Marble
0816dbbae7 Docs: Correct a reference to a non-existent method 2022-09-08 12:52:16 +01:00
Tom Poole
c4dd405b16 macOS: Fix repaint lagging in Studio One 5 2022-09-05 16:34:01 +01:00
reuk
86ad2a77a0
FileTreeComponent: Avoid blocking the main thread when selecting items while scanning is in progress 2022-09-01 15:44:27 +01:00
reuk
21c214aec8
DirectoryContentsList: Start thread before attempting to scan files
This fixes an issue where opening a FileTreeComponent could cause the UI
to hang. The call to subcontentsList->isStillLoading() in
FileListTreeItem::selectFile() would always return true because the
file-scanner TimeSliceThread wasn't started until the selectFile() call
finished.
2022-09-01 15:44:27 +01:00
reuk
a1bb7aeead
ListBox: Avoid calling updateContent in contructor 2022-09-01 15:44:27 +01:00
reuk
b324a50e82
BailOutChecker: Add checks after callbacks in Slider and ComboBox
Co-authored-by: Roland Rabien <figbug@gmail.com>
2022-09-01 15:44:27 +01:00
reuk
322aa64459 OpenGLContext: Share CVDisplayLinks with NSViewComponentPeer 2022-08-31 17:42:47 +01:00
reuk
20584cf201 NSViewComponentPeer: Fix bug where OpenGLViews would fail to display after window deminiaturization
This bug was introduced in 869760cb2a
2022-08-31 17:42:47 +01:00
reuk
bc177c2252 NSViewComponentPeer: Share display links between all windows 2022-08-31 17:42:47 +01:00
reuk
4b94c9b54a NSViewComponentPeer: Use RAII to manage display link 2022-08-31 17:42:47 +01:00
Tom Poole
4418376335 macOS/iOS: Fixed an issue creating native FileChoosers 2022-08-30 11:30:53 +01:00
reuk
ef4b5957ec FileChooserDialogBox: Fix documentation bug 2022-08-23 19:20:06 +01:00
Tom Poole
7296b8e3f7 Bump version number to 7.0.2 2022-08-15 17:26:35 +01: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
Tom Poole
61fd8827e1 macOS/iOS: Fix a scaled multiple-rects drawing issue 2022-08-05 13:27:32 +01:00
reuk
0d8a94ae04
PushNotifications: Silence deprecation warnings
The warnings are only silenced in code that is conditionally used on
older platforms. When the newer (non-deprecated) API is available, it
will be used.
2022-08-04 22:51:18 +01:00
reuk
41ef5b7fd5
macOS: Remove macOS 10.14 preprocessor checks
The current minimum-supported Xcode (10.1) includes the macOS 10.14.1
SDK, so APIs from macOS 10.14 will always be available.
2022-08-04 22:51:17 +01:00
reuk
7545fbcf3e
macOS: Remove macOS 10.13 preprocessor checks
The current minimum-supported Xcode (10.1) includes the macOS 10.14.1
SDK, so APIs from macOS 10.13 will always be available.
2022-08-04 22:51:17 +01:00
reuk
9712775e5b
macOS: Remove macOS 10.12 preprocessor checks
The current minimum-supported Xcode (10.1) includes the macOS 10.14.1
SDK, so APIs from macOS 10.12 will always be available.
2022-08-04 22:51:17 +01:00
reuk
76e95d01ed
iOS: Remove iOS 12 preprocessor checks
The current minimum-supported Xcode (10.1) includes the iOS 12.1 SDK, so
APIs from iOS 12 will always be available.
2022-08-04 22:51:17 +01:00
reuk
a22b23e335
iOS: Remove iOS 11 preprocessor checks
The current minimum-supported Xcode (10.1) includes the iOS 12.1 SDK, so
APIs from iOS 10 will always be available.
2022-08-04 22:51:17 +01:00
reuk
f821015080
iOS: Remove iOS 10 preprocessor checks
The current minimum-supported Xcode (10.1) includes the iOS 12.1 SDK, so
APIs from iOS 10 will always be available.
2022-08-04 22:51:17 +01:00
reuk
46c259b90e
Android: Fix crashes on startup for devices with older API levels 2022-08-04 22:51:16 +01:00
attila
c05ec5f9d0 MenuBarComponent: Fix incorrect deactivation of the menu bar
Prior to this commit it was possible to get the menu bar deactivated
by moving the mouse to an adjacent menu item and then back again. If
the movement was quick enough the corresponding PopupMenu would be
dismissed and created again before the dismissal's async command
handler would run. The command handler would see that the dismissed
menu's index and the currently activated index are equal and
deactivate the menu bar.
2022-08-02 14:58:31 +00:00