Commit graph

76273 commits

Author SHA1 Message Date
db84eac713 Fix build failure on Windows XP.
Some checks are pending
MSW builds / wxMSW vs2022 DLL Debug x64 (push) Waiting to run
MSW builds / wxMSW vs2019 DLL Release x64 (push) Waiting to run
MSW builds / wxMSW vs2019 Debug Win32 (push) Waiting to run
MSW builds / msw-msys2-clang (push) Waiting to run
MSW cross-builds / wxMSW 64 bits (push) Waiting to run
MSW cross-builds / wxMSW/Univ (push) Waiting to run
MSW cross-builds / wxMSW 32 bits (push) Waiting to run
Code Checks / Check Spelling (push) Waiting to run
Code Checks / Check Whitespace (push) Waiting to run
Code Checks / Check Mixed EOL (push) Waiting to run
Code Checks / Check C++ Style (push) Waiting to run
2024-03-06 21:52:10 +00:00
Vadim Zeitlin
a6f399a67a Merge branch 'msw-stattext-width'
Fix not showing contents of wxStaticText under MSW for some texts.

See #24365.
2024-03-03 23:58:15 +01:00
Vadim Zeitlin
57868b98c6 Switch to using FreeBSD 14 on Cirrus CI
FreeBSD 13.2 doesn't seem to be available any longer.

Closes #24373.
2024-03-03 23:56:59 +01:00
Eran Ifrah
e08cf4332a Reduce flicker when closing active tab in wxAuiNotebook
Add `wxWindowUpdateLocker` to reduce flicker when closing the active
tab. This is highly noticeable on Windows.

Closes #24372.
2024-03-03 15:08:21 +01:00
Vadim Zeitlin
df6adcbedd Avoid showing bogus tooltips in macOS wxDataViewCtrl
Cells using custom renderers showed useless tooltips with the debug
representation of wxCustomRendererObject, which were worse than useless,
so avoid showing them.

Contrary to what might be expected, this can't be done by overriding the
specific tooltip-related delegate method, because these tooltips come
from NSTextFieldCell itself, so we need to prevent it from showing them.

Closes #24370.
2024-03-03 01:24:22 +01:00
Vadim Zeitlin
2464c900f5 Fix wxPropertyGrid test case failing once every 4 years
Don't assume that the same date is valid in the previous year, as this
is not the case for Feb 29.
2024-02-29 16:15:04 +01:00
DietmarSchwertberger
a62d2dc9d9 Add hint about wxBusyInfo to wxBusyCursor documentation
This is often a (more) useful alternative.

Closes #24364.
2024-02-29 03:28:40 +01:00
DoctorNoobingstoneIPresume
ccc64326fc Compilation fix for ifacecheck
Include wx/hashmap.h in utils/ifacecheck/xmlparser.h itself instead of
relying in the including file to do it because ifacecheck.cpp did not.

Closes #24359.
2024-02-29 03:26:19 +01:00
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
496e27c724 Add a hack to avoid a problem with missing wxStaticText text
Somehow, for some combination of characters, the native control didn't
show anything at all in the control unless its size was one bigger than
the size we computed. E.g. adding the following code to minimal sample:

    auto p = new wxPanel(this);
    new wxStaticText(p, wxID_ANY, " AI", wxPoint(10, 10));
    new wxStaticText(p, wxID_ANY, " AJ", wxPoint(10, 40));
    new wxStaticText(p, wxID_ANY, " AK", wxPoint(10, 70));

    new wxStaticText(p, wxID_ANY, " BI", wxPoint(100, 10));
    new wxStaticText(p, wxID_ANY, " BJ", wxPoint(100, 40));
    new wxStaticText(p, wxID_ANY, " BK", wxPoint(100, 70));

showed just a "hole" instead of the " AJ" string, even though all the
others appeared correctly (observed under both Windows 10 and 11, at
standard and 200% DPI).

This looks like a bug both in our code (because we seem to not be
computing the text extent correctly) and in the native control (because
it should still show at least something even if the last pixel doesn't
fit instead of showing nothing at all), but it's not clear how to fix
the former and there is nothing we can do about the latter, so add an
extra pixel to fix a pretty bad user-visible problem.
2024-02-28 01:59:45 +01:00
Vadim Zeitlin
9f8d56b283 Remove unnecessary call to wxClientDC::SetFont() in wxStaticText
wxClientDC already uses the font of the associated window by default, so
there is no need to set it explicitly.

No real changes, this is just a micro optimization.
2024-02-28 01:51:36 +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