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

2520 commits

Author SHA1 Message Date
ed
c3cb59d6ae TextEditor: Avoid some potential nullptr dereferences in the Iterator class 2021-08-16 16:07:40 +01:00
ed
6d40b627ba AlertWindow: Fix incorrect return value when using modal native ok/cancel and yes/no/cancel dialogs 2021-08-16 16:06:56 +01:00
ed
d1f16f0643 Accessibility: Add missing static keyword to areAnyAccessibilityClientsActive() implementations 2021-08-13 09:36:02 +01:00
ed
dd18711493 iOS: Use UIAccessibilityContainer methods for correct accessibility hierarchy and navigation 2021-08-13 09:35:52 +01:00
ed
17fe5a54d8 iOS: Removed private API method 2021-08-13 09:35:42 +01:00
ed
2db1bbdc0f Add missing AlertWindow::showNativeDialogBox() implementation that was removed in 551d7b9c 2021-08-11 11:50:15 +01:00
reuk
3c1393ecb6 ChoicePropertyComponent: Allow slightly more relaxed matching in getValue 2021-08-10 16:48:35 +01:00
reuk
087cda7e1f
HWNDComponentPeer: Fix reentrancy bug in DPICHANGED handler
Sometimes, changing the bounds of the window inside the DPICHANGED
handler can cause further DPI change events to be processed. Previously,
the scaleFactor set by the "inner" events was also being used when
notifying listeners about the "outer" events, leading to graphical
glitches.

An effect of the bug was that VST2 views in the AudioPluginHost would
occasionally render with an incorrect size and position after dragging
them between displays with different scale factors.

With this change in place, we only notify listeners and update window
bounds once there are no DPI changes in progress.
2021-07-30 09:20:11 +01:00
reuk
20c23700e5 MinGW: Fix some build issues for 32-bit platforms 2021-07-28 19:28:34 +01:00
ed
5d7f59a19d Accessibility: Fix focus transfer issue when hiding modal components 2021-07-28 16:03:29 +01:00
ed
c66e8baf7e Whitespace 2021-07-28 16:03:22 +01:00
ed
8f03215a9e Accessibility: Add Android support 2021-07-28 11:44:29 +01:00
ed
30654fb8ec Accessibility: Add iOS support 2021-07-28 11:44:29 +01:00
ed
da57f65f3f Accessibility: Add juce_AccessibilityTextHelpers.h 2021-07-28 11:44:29 +01:00
ed
588e776bb6 Accessibility: Remove redundant method declaration and general fixups 2021-07-28 11:44:29 +01:00
ed
17ca903aaa Accessibility: Don't give focus to currently keyboard focused component in AccessibilityHandler::giveAwayFocusInternal() 2021-07-28 11:44:29 +01:00
ed
1028b6e5d1 Accessibility: Fix inaccessible MenuBarComponent items 2021-07-28 11:44:28 +01:00
ed
a2f7aaab2f Accessibility: Don't create AccessibilityHandler for Components without a native window handle 2021-07-28 11:44:28 +01:00
ed
d6a5156dd5 Objective-C++: Make getIvar() a free function so it can be used without a class instance 2021-07-28 11:44:28 +01:00
ed
ddb59d1361 Docs: Fix typo in Component child adding methods 2021-07-28 10:13:10 +01:00
ed
c5bcfd5c3f macOS: Use the NSOpenPanel message property to display the FileChooser title correctly 2021-07-27 14:34:30 +01:00
reuk
3c68581567
Use jassertquiet where possible 2021-07-23 10:58:44 +01:00
reuk
19e1488e18
Slider: Add getScrollWheelEnabled function 2021-07-23 10:50:00 +01:00
ed
88d2edf189 ModalCallbackFunction: Use NullCheckedInvocation helper to fix potential crash due to calling null std::function 2021-07-22 16:33:42 +01:00
ed
3d4d0caca8 ModalCallbackFunction: Fix crash due to dangling reference 2021-07-22 16:33:42 +01:00
ed
551d7b9c5b Add MessageBoxOptions class for specifying a set of AlertWindow and NativeMessageBox options
- Add AlertWindow::show() and showAsync() methods that take a MessageBoxOptions argument
  - Add NativeMessageBox::show() and showAsync() methods that take a MessageBoxOptions argument
  - Update the DialogsDemo to demonstrate the new methods
  - Deprecate AlertWindow::showNativeDialogBox() in favour of the NativeMessageBox methods
  - Pass button strings specified in MesssageBoxOptions to native dialog boxes correctly
  - Use modern TaskDialog on Windows for the native dialog box where available
2021-07-21 16:34:12 +01:00
ed
d3556dfd7f macOS Accessibility: Fixed a memory leak when checking for active accessibility clients 2021-07-16 14:21:30 +01:00
ed
db2036e81a ChoicePropertyComponent: Return default index if value is not found in value source mapper 2021-07-16 12:05:35 +01:00
reuk
1d29091133
FileChooser: Always set initial directory if the initialFileOrDirectory argument is not empty 2021-07-14 15:40:58 +01:00
reuk
85226c33d4
Mac MainMenu: Allow commands without modifiers to be passed to peer
Ideally, we want to pass shortcut keys to the component to handle, and
only fall back to invoking a menu item if the component was unable to
handle the keyboard event, or if the action was triggered by
clicking/selecting an item in the menu itself. The old implementation
tried to work out whether the action was triggered by a shortcut by
checking the event's characters and modifiers. This method was
inaccurate, because some shortcuts (such as arrow keys) may add
unexpected numpad/function modifier flags.

We now try handling shortcut keys directly in the peer, and pass events
up to the superclass (which will forward them to the main menu) if the
event could not be handled.

This commit also adjusts some Objective-C method signatures to use the
correct string encoding for the BOOL type.
2021-07-14 14:49:05 +01:00
ed
a5c3b81f82 Use C++14 lambda capture initialisers for initialising deletion checkers 2021-07-12 11:58:29 +01:00
ed
5a78b06f5c Update Button state after sending click callback in Button::mouseUp()
In cases where internalClickCallback() modified the state of the button this was not being updated until the next call to updateState(). Calling it a second time after the click callback will make sure the state is up to date.
2021-07-12 09:36:46 +01:00
Tom Poole
d53388097b AudioProcessorGraph: Improve performance when building large graphs 2021-07-08 10:47:36 +01:00
ed
09c06fb946 macOS Accessibility: Fixed an incorrect deployment target check 2021-07-06 16:02:19 +01:00
attila
e867d1dbb4 Linux: Fix maximise when not using native titlebar
X11 cannot maximise windows that have their maximum size set. When not
using the native titlebar we now revert to setting the window bounds
without involving the X11 maximise function.
2021-07-06 10:26:14 +02:00
ed
90ea4cc2ab Accessibility: Return button tooltip from ButtonAccessibilityHandler::getHelp() 2021-07-06 09:24:44 +01:00
Tom Poole
61c638106f Clarify some FileChooser example code 2021-07-06 08:06:17 +01:00
reuk
630afbda54 NSViewComponentPeer: Avoid processing mouse events from tracking areas
Some plugins (Izotope Relay, some older DPF plugins) use NSTrackingAreas
to handle mouse events, but unprocessed events seemingly get passed up
to outer views. Processing these events was causing unexpected
behaviour. For example, if the cursor entered a plugin view while
dragging a JUCE window border, a mouseEnter event was be generated,
interrupting the drag.

We now check whether mouse events were generated by an NSTrackingArea
which does not belong to the JUCE view, and ignore the event in this
case.
2021-07-05 12:21:36 +01:00
ed
a9d17d860c macOS Accessibility: Fixed crash due to availability of NSAccessibilityLayoutChangedNotification on < 10.9 2021-07-05 12:07:30 +01:00
ed
3321ff231d Accessibility: Fall back to RowComponent AccessibilityHandler if no custom cell component handler has been set in TableListBox 2021-07-05 12:07:30 +01:00
ed
c559d31e90 Accessibility: Override Accessibility::getHelp() for JUCE widgets that support tooltips 2021-07-05 12:07:30 +01:00
ed
422c8f8114 Accessibility: Disable accessibility for TooltipWindows to prevent them from interfering with focus 2021-07-05 12:07:30 +01:00
ed
f6ceba3e5b Accessibility: Disable accessibility for Drawable base class 2021-07-01 16:23:48 +01:00
ed
e119178b5b Check BailOutChecker before sending accessibility moved/resized event in Component::sendMovedResizedMessages() 2021-07-01 16:23:48 +01:00
Tom Poole
845631c762 Linux: Fix bug restoring window positions from saved state 2021-07-01 11:48:20 +01:00
Tom Poole
fe4ba9071b Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0
See BREAKING-CHANGES.txt for more details.
2021-06-30 13:01:14 +01:00
Tom Poole
78be43888e Update the minimum C++ standard to C++14 2021-06-24 16:09:48 +01:00
ed
e2d41dfa0a Accessibility: Fixed slider step size for sliders with no interval explicitly set 2021-06-21 18:52:07 +01:00
Tom Poole
8ce68447bb DrawableImage: Remove a message thread dependency 2021-06-21 15:57:25 +01:00
ed
d1b669e6ae Accessibility: Added InternalAccessibilityEvent::elementMovedOrResized 2021-06-16 17:22:35 +01:00