Commit graph

76237 commits

Author SHA1 Message Date
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
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
ali kettab
eebb5a587f Added translucent stipple brush support under wxQt 2024-02-18 18:32:33 +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
Alex Shvartzkop
95f9257d62 Improve wxQtDCImpl to better match Cairo rendering. 2024-02-16 02:47:17 +03:00
Alex Shvartzkop
7037d2ae64 wxQt: Enable QPainter antialiasing by default. 2024-02-16 02:47:17 +03:00
Lauri Nurmi
1bef48229e Fix duplicate accelerator for the font dialog in dialogs sample
Shift-Ctrl-N was already taken when it was added for the font dialog in
9b25ed0 (Add an accelerator for the font dialog in the dialogs sample,
2022-04-16). Use Shift-Ctrl-J instead.

Closes #24324.
2024-02-16 00:29:47 +01:00
Blake Madden
3f7e1e8414 Add GetPanel(), GetPanelById() and GetPanelCount() to ribbon page
This provides parity with the ribbon bar's GetPage() set of functions,
and adds an easy way to find a panel and show/hide it.

Also, add example and discussion about showing/hiding panels on a
ribbon.

Closes #24319.
2024-02-16 00:26:33 +01:00
Lauri Nurmi
1864a49dd2 Fix dialogs sample never exiting with a persistent taskbar icon
If the latest user notification shown was shown with
"Use persistent taskbar icon" toggled on, the application process
would never really exit after closing. So delete m_taskbarIcon
in destructor.

Closes #24316.
2024-02-16 00:23:24 +01:00
DietmarSchwertberger
f27c199fa8 Fix drawing of drag-move insertion marker
At least under Windows this marker needs to be drawn from wxEVT_PAINT
handler too in order to be visible when double-buffering is used.

Closes #24310.

Closes #24314.
2024-02-16 00:21:00 +01:00
Vadim Zeitlin
57c5aff337 Update autoconf container instructions to use Docker registry
Recommend pulling the container from there instead of building it.

Also provide the (very slightly differing) instructions for using it
with podman.
2024-02-16 00:17:25 +01:00
Vadim Zeitlin
47b011c665 Merge branch 'qt-bgcol-fixes'
Make setting background colour in wxQt more consistent with the other
ports and fix it for wxSearchCtrl.

Closes #23170, #24315.
2024-02-13 22:03:35 +01:00
Alex Shvartzkop
9b97d3a308 Fix generic wxSearchCtrl background colour in wxQt
Set the background colour of the whole control to the text control
background colour.
2024-02-13 21:55:35 +01:00
Alex Shvartzkop
253cfa3a31 Use white background brush by default in wxQt too
Just as this is done in the other ports.

This commit is best viewed with Git --color-moved option.
2024-02-13 21:54:07 +01:00
Alex Shvartzkop
4be5fde721 Don't handle unset background colour as black in wxQt
Unset background colour actually means to use the default one, which is
still not the case for wxQt if the background had been previously
changed, but at the very least it doesn't change it to black any longer.

This commit is best viewed ignoring whitespace-only changes.
2024-02-13 21:49:53 +01:00
Vadim Zeitlin
4a5de60fa9 Merge branch 'wxqt-2' of https://github.com/dsa-t/wxWidgets
More miscellaneous wxQt fixes.

See #24309.
2024-02-13 21:43:48 +01:00
Vadim Zeitlin
19038ea58f Merge branch 'minor-pg-fixes'
Minor wxPropertyGrid fixes, notably fixing the expander buttons
appearance in high DPI under MSW.

See #24304.
2024-02-13 21:40:27 +01:00
Vadim Zeitlin
e00e6dcd81 Merge branch 'qt-msgdlg-ext'
Add support for extended messages and custom button labels to
wxMessageDialog in wxQt.

See #24243, #24299.
2024-02-13 21:38:43 +01:00
Vadim Zeitlin
01ffca369c Merge branch 'translation-lookup-fixes' of https://github.com/vslavik/wxWidgets
Restore correct translation language lookup taking into account message
IDs language correctly when it is present in the preferred UI languages
but is not the first language in them and other similar corner cases.

Also add unit tests verifying that this code logic, already changed many
times in the past, does behave correctly now.

See #24297.
2024-02-13 21:34:00 +01:00
Vadim Zeitlin
79ac049d74 Merge branch 'wxqt-1' of https://github.com/dsa-t/wxWidgets
Make wxGLCanvas work in wxQt and fix possible crashes in wxComboBox and
wxStatusBar in this port.

See #24200.
2024-02-13 21:29:24 +01:00
Vadim Zeitlin
d3731c86ed Merge branch 'aui_splitter_overlay'
Use wxOverlay to show sash feedback in wxAUI and in wxSplitterWindow to
implement non-live resizing in ports where it didn't work before (wxGTK3
with Wayland, wxOSX).

See #24193.
2024-02-13 21:23:47 +01:00
taler21
716bf59449 Ensure full label is shown after editing it in generic wxListCtrl
The list control needs to be updated after the user has edited an item
label because, for example, in icon view the column width and positions
of subsequent columns may change if the edited label is or was wider
than the icons and other labels in the column.

Closes #24311.
2024-02-13 21:17:07 +01:00
Blake-Madden
b12977cb75 Fix minor problems in wxWebRequest documentation
Add missing "true" and consistently use "@true" alias for it.

Reword explanation about what "peer verification" means.

Closes #24300.
2024-02-13 21:10:18 +01:00
Blake-Madden
4e03291de2 Only add padding for shown panels on ribbon
When laying out panels on a ribbon, don't add padding for panels that
won't be drawn and used in the layout calculations.

Closes #24296.
2024-02-13 21:09:25 +01:00
Václav Slavík
6d48acb5f3 Add unit tests for wxTranslations language lookup 2024-02-13 18:24:43 +01:00
Václav Slavík
1f658ff729 Override GetPreferredUILanguages with WXLANGUAGE
Add support for overriding GetPreferredUILanguages() return value by
setting the WXLANGUAGE environment variable to a colon-separated list
of desired languages (same as GNU's LANGUAGE variable).

Primarily used for unit tests, but may be more generally useful.
2024-02-13 18:23:06 +01:00
Václav Slavík
f248f0593c Clarify GetAvailableTranslations() return value
Add a note explaining that the msgid language is not included.
2024-02-13 16:12:57 +01:00
Václav Slavík
f0ed987010 Warn about a GetBestAvailableTranslation() quirk 2024-02-13 16:12:57 +01:00