Commit graph

76263 commits

Author SHA1 Message Date
Vadim Zeitlin
9bae1046c7 Update tab control height in wxAuiNotebook on DPI change
Otherwise layout is computed incorrectly, resulting in visual artefacts.

Closes #24348.

Closes #24355.
2024-02-29 03:24:08 +01:00
Martin Corino
8a027b98d1 Fix handling of binary secrets in wxSecretStore with wxGTK
Use correct content type when creating binary secrets to prevent
libsecret from munging them.

Also update the sample to show more functionality.

Closes #24351.

Closes #24352.
2024-02-29 03:21:14 +01:00
Stefan Csomor
6e7bbfd17c Fix clipping which resulted in not showing wxGrid editor in wxOSX
Fix clipping for the windows not showing scrollbars.

This commit is best viewed ignoring whitespace-only changes.

Closes #24201.

Closes #24342.
2024-02-29 03:15:18 +01:00
Vadim Zeitlin
5ca49dc56c Allow specifying a custom CefClient to use with wxWebViewChromium
This opens many customization possibilities beyond those provided by
wxWebView API and also allows to process CEF IPC messages much more
efficiently than what is possible using wxEvents.

Closes #24336.
2024-02-29 03:05:44 +01:00
Vadim Zeitlin
a766ed9f21 Fix CMake sandbox option in libcef build instructions
This option is called USE_SANDBOX and not CEF_USE_SANDBOX.
2024-02-29 03:05:10 +01:00
Vadim Zeitlin
b03ce7711b Merge branch 'gtk-enter-leave-window'
Fixes for wxGTK enter/leave window events.

Closes #11848.

See #24339.
2024-02-29 03:01:38 +01:00
Vadim Zeitlin
ccd6971552 Merge commit 'refs/pull/24327/head' of github.com:wxWidgets/wxWidgets
Limit radius of rounded rectangles in graphics rendering.

See #24327.
2024-02-29 02:59:33 +01:00
Vadim Zeitlin
4b4f0d3d86 Merge commit 'refs/pull/24298/head' of github.com:wxWidgets/wxWidgets
Build fixes for wxQt/Android.

Also allows wxLogDebug to work on Android.

See #24298.
2024-02-29 02:57:23 +01:00
Vadim Zeitlin
9f43a717d8 Merge branch 'cmake-thread' of https://github.com/MaartenBent/wxWidgets
CMake: Link thread library only when necessary.

This also fixes finding threads under Android.

See #24356.
2024-02-29 02:56:30 +01:00
Vadim Zeitlin
be3ea1768a Fix documentation of wxSplitterWindow::GetLastSplitPosition()
Correct the documented return type of this function to match its actual
type to fix a problem introduced in the recent f24b3d5483 (Save last
wxSplitterWindow position before it was unsplit, 2024-02-12).

See #24329.

Closes #24347.
2024-02-26 02:57:49 +01:00
Alex Shvartzkop
60c3ec9298 CMake: remove Android ABI shared library suffix for Qt. 2024-02-25 17:35:21 +03:00
Alex Shvartzkop
b4f435cbe8 Fix linking errors related to android_wcsto* functions. 2024-02-25 17:35:21 +03:00
Alex Shvartzkop
85cc2acd6f Support Android logging. 2024-02-25 17:35:21 +03:00
Maarten Bent
04cbeb0f8a
CMake: Fix finding threads on Android
See #24298
2024-02-25 14:58:54 +01:00
Maarten Bent
d8d393e4b8
CMake: Link thread library only when necessary
Use CMAKE_THREAD_LIBS_INIT instead of always linking -pthread.
2024-02-25 14:57:37 +01:00
Vadim Zeitlin
bf971fb0a8 Merge branch 'wxqt-gfx-1' of https://github.com/dsa-t/wxWidgets
Improve wxQtDCImpl to better match Cairo rendering and enable
anti-aliasing.

See #24328.
2024-02-25 00:39:57 +01:00
Vadim Zeitlin
58b6239647 Merge branch 'chromium-improvements' of https://github.com/MaartenBent/wxWidgets
Improvement to building Chromium using CMake: detect unknown build
configurations and make known "RelWithDebInfo" and "MinSizeRel" work
correctly.

See #24354.
2024-02-25 00:33:37 +01:00
Vadim Zeitlin
fc357a49ef Merge branch 'generic-listctrl-fix-missing-deselection' of https://github.com/taler21/wxWidgets
Fix missing deselection of single selected but not focused item in
wxGenericListCtrl.

See #24343.
2024-02-25 00:26:59 +01:00
taler21
37a352977d Correct Hungarian translation of "Shift" key
Use "Shift" for it instead of "eltol" as this is what is used by Windows
itself.

Closes #24325.
2024-02-24 23:12:21 +01:00
Alex Shvartzkop
e10bf0c344 Implement wxWindow::GetWindowBorderSize() in wxQt
This notably fixes the appearance of wxSearchCtrl in this port.

Closes #24318.
2024-02-24 23:10:55 +01:00
Maarten Bent
5ae4380e4c
CMake: Warn about unknown build configurations when building libcef_dll_wrapper 2024-02-24 21:11:53 +01:00
Maarten Bent
75226d4cdc
CMake: Apply libcef_dll_wrapper Release flags to other release configs 2024-02-24 21:11:53 +01:00
Maarten Bent
dd72f7f88d
CMake: Block libcef_dll_wrapper from changing CMAKE_CONFIGURATION_TYPES
So a MSVC solution will have the required projects for each configuration.
2024-02-24 21:11:52 +01:00
Maarten Bent
c656433bc9
CMake: Fix replacing all compile options of libcef_dll_wrapper
Append an option, don't replace them.
2024-02-24 21:11:52 +01:00
Maarten Bent
d48560af0a
CMake: Update cef, download minimal distribution
The full distribution has the debug library, that is not used.
2024-02-24 21:11:51 +01:00
Maarten Bent
4e5ecf866f
CMake: Always use CEF release library 2024-02-24 21:11:48 +01:00
Vadim Zeitlin
9a27e206ce Rebake after adding 32-bit ARM support for MSVC
This should have been done in 99bc43cefe (Introduce minimal MSW ARM
support, 2024-01-15).

See #24222.
2024-02-24 20:50:38 +01:00
Vadim Zeitlin
c14c652238 Rebake after wxWebViewChromium merge
No real changes, just rebake all the makefiles after the addition of
wxwin.extraLdflags, which results in an extra space even when these
flags are empty in webview-chromium branch.

This should have been done in f37401dde3 (Merge branch
'webview-chromium', 2024-01-19)
2024-02-24 20:46:51 +01:00
Maarten Bent
49a3e48230
Add missing override in wxWebViewConfiguration 2024-02-24 20:42:30 +01:00
taler21
0b8a85ad64 Enable MultiSelect() unit test for generic wxListCtrl
This test just doesn't want to work when run on GitHub CI under wxGTK2
even though it works perfectly locally. So enable the test at least for
all other ports.
2024-02-21 08:51:09 +01:00
taler21
d091a44adb Fix missing deselection of single selected but not focused item
A generic multi-select wxListCtrl did not deselect a single selected
item that did not have focus when the user single-selected another
item.

This fixes a regression introduced in fedc80eee3 (Improve selection and
focus events generation in wxGenericLisCtrl, 2020-10-10).

Closes #24312.
2024-02-19 13:58:51 +01:00
Vadim Zeitlin
5e42e841e1 Fix window enter/leave events generation for wxChoice in wxGTK3
We need to connect these events to the internal GtkToggleButton taking
up the widget area and not the parent widget itself, which never gets
these events.

Closes #24295.
2024-02-19 12:59:00 +01:00
Vadim Zeitlin
2aea33c4ef Merge commit 'refs/pull/24337/head' of github.com:wxWidgets/wxWidgets
Add translucent stipple brush support under wxQt.

See #24337.
2024-02-19 03:39:43 +01:00
ali kettab
2135973f7d wxAUI: fix venetian blinds hint in dark mode
Also a small aesthetic change is made to make it easier to discern.

Closes #24338.
2024-02-19 03:36:39 +01:00
Vadim Zeitlin
e88e16a964 Allow reusing wxGTK window enter/leave callback
Refactor the existing callbacks to make it possible to call them from
other places than src/gtk/window.cpp.

No real changes yet.
2024-02-19 00:40:30 +01:00
Vadim Zeitlin
9205da74db Generate wxEVT_ENTER_WINDOW in icon part of wxSearchCtrl in wxGTK
Mouse motion events happening over GtkEntry icons are consumed by this
class "event" callback, which simply returns GDK_EVENT_STOP for them if
the icon is insensitive (which is the case for GtkSearchEntry) and so
our "enter-notify-event" callback is never called.

Fix this by handling "event" signal ourselves and generating
wxEVT_ENTER_WINDOW from it if necessary.

Doing this required adding a global pointer to the window currently
under mouse, which is also used for generating wxEVT_LEAVE_WINDOW if
necessary.

See #24245.
2024-02-19 00:40:30 +01:00
Vadim Zeitlin
a8b4753d1d Reconnect events to the widget after recreating it in the sample
This ensures that the expected events are given even after the widget is
recreated due to a change of some controls on its page (and not because
it's recreated by one of the menu commands in the parent frame).

We also don't need to connect to these events from WidgetsFrame any
longer (and, in fact, doing it would be wrong as we'd connect twice),
which simplifies its code.
2024-02-19 00:40:30 +01:00
Vadim Zeitlin
828b7ee844 Move widget event handlers to WidgetsApp in the widgets sample
No real changes, just move the function connecting to the widget events
from WidgetsFrame to WidgetsApp to allow reusing it from outside
WidgetsFrame in the next commit.
2024-02-18 19:01:44 +01:00
ali kettab
eebb5a587f Added translucent stipple brush support under wxQt 2024-02-18 18:32:33 +01:00
Vadim Zeitlin
ccce75f3cc Stop using wxCOMMON_CALLBACK_PROLOGUE macro in wxGTK callbacks
No real changes, just simplify the code and stop using a macro
unnecessarily when we can use a simple inline function instead.
2024-02-18 17:54:15 +01:00
Vadim Zeitlin
28ba50fa45 Stop checking if GDK window is our own in GTK callbacks
GTKIsOwnWindow() doesn't always return the correct result, i.e. it
doesn't recognize all windows that a GTK widget is made of as being
"ours", so checking for this resulted in wrongly ignoring some events.

And this check doesn't seem to be actually necessary, as we shouldn't be
ever called by GTK for the windows that are not ours, so just remove it.

See #24245.
2024-02-18 17:47:57 +01:00
Vadim Zeitlin
bbeaacd857 Add tracing for window enter/leave mouse events in wxGTK
This makes easier to check if they're generated as expected.
2024-02-18 17:37:20 +01:00
Vadim Zeitlin
b93422535d Show window enter/leave events in the widgets sample
This allows to easily check if these events are generated correctly for
all the controls shown in this sample.
2024-02-18 17:35:36 +01:00
ali kettab
f9c2d24bb6 wxQt! Refactoring only 2024-02-18 17:32:15 +01:00
Alex Shvartzkop
d80299af71 wxQtDCImpl: apply offset to polygons and lines. 2024-02-18 10:15:44 +03:00
Doukas Dergiades
f24b3d5483 Save last wxSplitterWindow position before it was unsplit
Use this position when the window is split again and also save and
restore it from persistent storage in wxPersistentSplitter.

Closes #24329.
2024-02-18 01:23:24 +01:00
Vadim Zeitlin
7bf295802e Fix assert when creating multiple wxLogGui objects
Recent changes of cc9f9af400 (Flush wxLogGui before showing a modal
dialog, 2024-01-20) resulted in a (harmless) assertion failure in
wxModalDialogHook::Register() if the application created more than one
wxLogGui object.

Fix this by only registering our hook when the first wxLogGui object is
created and not for each of them.

See #24231, #24228.
2024-02-18 01:23:22 +01:00
Blake Madden
7150e6ecb3 Make recently added wxRibbonPage::GetPanelCount() const
Closes #24333.

Closes #24334.
2024-02-16 19:37:24 +01:00
Vadim Zeitlin
63a40637eb Make wxXmlNode::GetDepth() parameter const
There is no need to require a non-const pointer here.

Closes #24317.
2024-02-16 14:24:40 +01:00
taler21
85b04c1c24 Don't reset selection while Ctrl or Shift key is pressed
Don't reset the selection in a generic multi-selection wxListCtrl while
Ctrl or Shift key is pressed to be consistent with wxMSW behaviour.

This commit is best viewed ignoring whitespace-only changes.

Closes #24332.
2024-02-16 14:01:31 +01:00