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

2674 commits

Author SHA1 Message Date
reuk
03428561ed
ScaledImage: Use in a few more places 2021-12-01 15:44:07 +00:00
reuk
34fdea0708
DragAndDropContainer: Allow custom scaling 2021-12-01 15:35:54 +00:00
reuk
1509d6796b
FileChooser: Allow multiple selection on iOS 2021-12-01 15:35:54 +00:00
ed
bd01175d55 Docs: Update Component docs referencing deprecated setFocusContainer() method 2021-12-01 10:22:19 +00:00
ed
81df4560dd Tooltip: Fix bug where tip would not be updated for new components 2021-11-30 17:07:31 +00:00
ed
27e75a7059 DropShadower: Fix crash due to IsWindowOnCurrentVirtualDesktop() causing synchronous repaint messages during component destruction on Windows 2021-11-30 17:07:31 +00:00
reuk
d0590b5fc5
ComponentPeer: Add facility for displaying document save state in the titlebar 2021-11-25 11:42:39 +00:00
reuk
cc8a9ca896
FileChooser: Avoid deprecated delegate method signature 2021-11-24 16:20:38 +00:00
reuk
da46ee6c7a
FileChooser: Launch chooser asynchronously
When FileChooser instances were created, launched, and hidden all inside
the same event callback on macOS 12.0.1, the chooser dialog sometimes
remained open. This could cause problems including crashes, as closing
the dialog would attempt to call a completion handler block referencing
an already-deleted FileChooser::Native instance.

Opening the chooser panel later on the message thread seems to resolve
the issue.
2021-11-24 16:20:38 +00:00
reuk
ca4bdb6b3a
Component: Avoid calling member functions on objects destroyed when exiting modal state 2021-11-24 16:20:37 +00:00
reuk
062e966138
NSViewComponentPeer: Fix zoom and fullscreen behaviour 2021-11-24 16:20:37 +00:00
reuk
ff62b1b39f
LinuxComponentPeer: Handle window constraints correctly on high resolution displays 2021-11-24 16:20:37 +00:00
reuk
c17aec47ac
Windows: Allow maximized windows to resize to fill the screen, even when a constrainer is applied
This mirrors the behaviour on Linux, where maximizing a window always
fills the screen, even if a constrainer is active.

If you don't want to allow your component to fill the screen, disable
the maximize button in the window's titlebar when creating the window
(i.e. ensure DocumentWindow::maximiseButton is not set in the required
buttons).
2021-11-24 16:20:36 +00:00
reuk
cb7d9ec1db
Windows: Take custom scale into account when scaling cursors 2021-11-24 16:20:36 +00:00
reuk
81fa777ff7
ObjC Helpers: Automatically derive appropriate signature for function 2021-11-24 11:51:11 +00:00
ed
b4bc2c8710 Tooltip: Show manually shown tips until a dismissal mouse event occurs 2021-11-23 12:22:25 +00:00
ed
ab1d18ed92 Whitespace 2021-11-23 12:22:13 +00:00
ed
9c5b76a5ac Windows Accessibility: Ensure that UiaDisconnectProvider() is called with a valid provider pointer 2021-11-23 12:22:13 +00:00
ed
82bcad9d30 Windows Accessibility: Only send window open/close events for main application windows to fix COM ref-counting leak 2021-11-23 12:22:13 +00:00
reuk
ffee9b19de
MenuBarComponent: Avoid dereferencing dangling pointer when dismissing menus 2021-11-19 16:35:22 +00:00
reuk
e247e06fb7
FlexBox: Refactor and tidy implementation 2021-11-19 16:35:21 +00:00
reuk
0dad809264
FlexBox: Add tests, and fix layout bugs 2021-11-19 16:35:20 +00:00
ed
4d350ffcc3 Fix documentation typo 2021-11-19 11:20:16 +00:00
ed
d49d203974 Tooltip: Ignore dismissal mouse events when tooltip window is not showing 2021-11-10 09:30:13 +00:00
ed
1fe8fa467b TextEditor: Fix floating-point -> integer bounds conversion of text selection bounds 2021-11-09 15:35:52 +00:00
ed
057b555f08 Tooltip: Track mouse clicks using global Desktop mouse listener callbacks to fix bug with Timer callbacks missing events 2021-11-09 09:36:58 +00:00
ed
903657b0b8 Tooltip: Prevent tip from being immediately dismissed when shown from TooltipWindow::displayTip() 2021-11-09 09:36:58 +00:00
ed
fdd9eb8eeb X11: Correctly reset drag and drop state when drag has ended 2021-11-03 15:44:57 +00:00
ed
274ce967e4 AlertWindow: Prevent accessible label component from intercepting mouse clicks 2021-11-02 12:35:36 +00:00
ed
49db3ce12e AlertWindow: Make accessible label component colours fully transparent to prevent it from drawing over custom L&Fs 2021-11-02 12:19:56 +00:00
reuk
49bbadbca9
NSViewComponentPeer: Fix naming of drawRectWithContext 2021-11-01 11:10:12 +00:00
reuk
4196b5e45b
macOS: Silence deprecation warnings on Monterey 2021-11-01 10:04:35 +00:00
ed
7098b13b44 X11: Make synchronous error handling opt-in due to graphics performance issues when XSynchronize is enabled for a display 2021-11-01 09:12:59 +00:00
ed
66f8af98e7 Windows Accessibility: Don't set UIA_NamePropertyId of ignored elements to prevent it from being read out by Narrator 2021-10-29 14:04:40 +01:00
ed
4727084838 PopupMenu: Store Options::targetComponent and ::parentComponent in WeakReferences to allow for deletion checks 2021-10-29 14:04:40 +01:00
reuk
eca02270ee
Component: Add Point<float> overloads for some common functions 2021-10-27 16:33:37 +01:00
reuk
cdbefa3b51
Windows: Ensure that new windows are brought to the front after creation 2021-10-27 16:33:37 +01:00
reuk
496e454e9c
XWindowSystem: Update frame extents as soon as they change 2021-10-27 16:33:37 +01:00
reuk
4ca923a34b
NSViewComponentPeer: Allow mouse events to reach unfocused windows
This change allows mouse events (including enter and exit events) to
reach unfocused views on macOS. This matches the behaviour of unfocused
windows on Linux and Windows, where components paint in their "hovered"
states even when the application window is in the background.

As a byproduct of using tracking areas on macOS, we can remove the fake
mouse move generator.
2021-10-27 16:33:37 +01:00
reuk
fe4515adb6
MouseCursor: Refactor platform-specific MouseCursor internals
This new factoring is a bit more typesafe, as it avoids casting
internals to void*.

It also allows cursors to scale appropriately on high resolution
displays on Windows.
2021-10-27 16:33:37 +01:00
reuk
5c50ee4f94 MouseCursor: Simplify implementation using shared_ptr instead of manual refcounting 2021-10-26 23:20:09 +01:00
reuk
4d572411e0
FlexBox: Update the default value of FlexItem::alignSelf to match CSS implementations 2021-10-26 16:52:16 +01:00
reuk
25c9841131
Windows: Tidy up cursor creation function 2021-10-26 16:52:15 +01:00
reuk
f85ede6b47
Component: Ensure that mouseEnter and mouseExit calls are balanced when entering/leaving modal state 2021-10-26 16:52:15 +01:00
reuk
b465f60851
HWNDComponentPeer: Dismiss temporary modal windows when a window loses focus 2021-10-26 16:52:15 +01:00
reuk
44ca96271d
NSViewComponentPeer: Give up keyboard focus and dismiss temporary modals when window loses key status 2021-10-26 16:52:15 +01:00
reuk
c2f661171a
PopupMenu: Avoid giving focus back to previous component on dismiss
This change is designed to fix issues with views stealing focus and
being brought to the front when popup menus are dismissed.

To test this behaviour:
- Open two instances "a" and "b" of a plugin editor containing a
  ComboBox
- Click the ComboBox in editor "a", opening its PopupMenu
- Drag the titlebar of editor "b" to move it
- The PopupMenu should be dismissed, but editor "a" should *not* steal
  keyboard focus or be brought to the front
2021-10-26 16:52:14 +01:00
ed
b70fbb9bca TreeView: Fix drag-to-scroll viewport jump on mouse exit 2021-10-25 16:40:18 +01:00
reuk
acddcd550d
DropShadower: Detect when window is no longer being displayed on the current desktop and hide shadows 2021-10-25 09:51:21 +01:00
reuk
6ae1137d91
MinGW: Fix Windows build 2021-10-25 09:51:21 +01:00