Commit Graph
73028 Commits
Author SHA1 Message Date
Vadim Zeitlin 9cdbc72f3f Don't check spelling in all change log files
Including the recently added docs/changes_32.txt one.

This should have been in 304f173924 (Rename the existing changelog to
changes_32.txt and add a new one, 2022-07-11) but was forgotten there.
2022-07-13 00:21:31 +02:00
Vadim Zeitlin a8076290e0 Fix using windows with sizers as wxStaticBoxSizer labels in XRC
The contents of <windowlabel> can be any window, including a panel with
its own sizer, but such panels were not created correctly due to using
the wrong value of wxSizerXmlHandler::m_parentSizer, which prevented the
sizer from being associated with the panel.

Fix this by using the same hack as elsewhere and temporarily resetting
the value of this variable before calling CreateResFromNode(). Also do
the same for m_isInside, even though it doesn't seem necessary here,
because it should always be false anyhow when <windowlabel> is parsed,
just for consistency. But don't bother doing it for m_isGBS, as it's
definitely false when handling wxStaticBoxSizer node.
2022-07-12 15:40:07 +02:00
MikeWang000000 d8eddbd115 Fix using non-alphanumeric language ids in MSW resources
The character "@", which can be part of the full language name, e.g. in
the case of "sr@latin", can't be reliably used as part of resource name,
so replace it with "_" in wxResourceTranslationsLoader.

Closes #22589.

Closes #22601.
2022-07-12 15:35:52 +02:00
James Pan 25eb030e23 Update Chinese translations to fix full/half-width issues
Also make the terminology used more consistent.

Closes #22621.
2022-07-12 15:34:28 +02:00
Vadim Zeitlin 304f173924 Rename the existing changelog to changes_32.txt and add a new one
To prevent the changelog file from growing too big, start a new one for
the next release.

Also restore the instructions about updating it from Git notes just
before the release.
2022-07-11 00:21:21 +02:00
Mark Harfouche a157327207 Fix wxrc installation under macOS
Run install_name_tool on wxrc binary again: this used to be done and is
still needed, but was broken in 30915c6163 (Make wxrc independent from
GUI support, 2021-07-07) which moved the code appending the line calling
install_name_tool for wxrc to change-install-name script before this
script creation, meaning that it was simply overwritten later.

See #22620.
2022-07-10 23:28:19 +02:00
Vadim Zeitlin c88d18278b Fix grid window scrollbars when freezing part of the grid
The space taken by the frozen part needs to be subtracted from the
available size, not added to it, as was mistakenly done before.

This fixes the problem with scrollbars not appearing correctly in the
grid even when they were clearly needed because its contents didn't fit
into the window.

See #22602.
2022-07-05 23:47:12 +01:00
Tim Stahlhut 4010140491 Don't use non-ASCII characters in interface headers
Replace "’s" with "'s" in interface headers as the former broke wxPython
build with SIP under MSW.

Closes #22605.
2022-07-06 00:26:54 +02:00
Vadim Zeitlin b5de46c044 Merge branch 'update-contributors'
Update contributors list for 3.2 release.

See #22593.
2022-07-05 01:40:21 +02:00
PBandVadim Zeitlin 8d3812adce Fix wxDynamicLibrary unit test compilation in C++20 mode
Don't use operator<<() with a wide char string, as this overload has
been removed in C++20. This can be done simply by not using wide char
string at all in this test, as it's not really needed.

Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>

Closes #22599.
2022-07-05 01:36:42 +02:00
Vadim ZeitlinandMaarten Bent 6c65510a2c Warn about using find_package(wxWidgets) with older CMake
Provide a link to the latest and working version of this file.

See #22590.

Closes #22594.

Co-Authored-By: Maarten Bent <MaartenBent@users.noreply.github.com>
2022-07-04 01:20:26 +02:00
Vadim Zeitlin 8a17c52c3b Fix wrong conversion of negative 64-bit wxAny to wxVariant
Extracting the lower part of a 64-bit value only works when long is
32-bit, but not if it's 64-bit as well as is the case under LP64 Unix
systems.

Just use a normal cast to long instead, as this is simpler and works in
all cases.

Also add a simple unit test for this case, which would have previously
failed, but passes now.

Closes #22592.

Closes #22595.
2022-07-04 01:19:50 +02:00
Vadim Zeitlin ba05185070 Merge branch 'master' of github.com:andriybyelikov/wxWidgets
Update Spanish and Catalan translations.

See #22598.
2022-07-04 01:12:54 +02:00
Andriy Byelikov a2ae278893 Update Catalan translations (ca) (1965 of 1965)
Translate macOS menu item strings
Translate system cursor names
Translate font weights
Change translations of msgids "KP_F" and "KP_" to be the same as those in locale/es.po
Translate other new untranslated messages
2022-07-03 21:15:50 +02:00
Andriy Byelikov e6d9cca68a Update Spanish translations (es) (1965 of 1965)
Translate macOS menu item strings
Add myself to translator-credits
2022-07-03 21:12:54 +02:00
taler21 dc3462c2e8 Fix cosmetic problems with border around paper in Print preview
Don't leave a gap between the left border and the paper itself and make
the right and bottom border of the same size.

This basically reverts the changes of ed880dd (New PostScript code,
1998-12-05) -- better 25 files later than never.

Closes #22582.
2022-07-02 22:23:05 +02:00
Vadim Zeitlin ff485fca52 Don't account for another commit with whitespace-only changes 2022-07-02 22:17:42 +02:00
Vadim Zeitlin 7ece6a2cb5 Don't rerun Cirrus CI builds if no relevant files changed
Save CI reruns if only documentation was changed, for example.
2022-07-02 22:10:54 +02:00
Vadim Zeitlin 7d25054ebf Exclude copyright page of the manual from the spelling checks
There are too many names there for this to be practical.
2022-07-02 21:22:57 +02:00
Vadim Zeitlin 9ad06f4b81 Update contributors list for 3.2.0
Also move some historical contributors to a separate section.
2022-07-02 19:21:56 +02:00
Vadim Zeitlin 976edaf026 Merge branch 'doxygen-css'
Switch to using Doxygen 1.9.1 with custom theme for the documentation.

Closes #18849.
2022-07-02 17:39:06 +02:00
Vadim Zeitlin ba7894fca4 Disable custom Doxygen theme support for CHM generation
Unsurprisingly, this doesn't work at all with CHM, so allow disabling
using the custom theme when doing it by adding more custom variables.

Using (multiple) variables for this is rather ugly, but we already use
them for other options, so it seems better to keep adding them rather
than using some other mechanism.

Adding a different custom header file is even uglier, but it seems to be
the only way to avoid including the theme JS files into CHM.
2022-07-02 17:37:53 +02:00
Vadim Zeitlin 4e94b32bf0 Partially revert "Final zh translations updates for 3.2.0"
This reverts changes to zh_CN.po done in d4f5b00a8c (Final zh
translations updates for 3.2.0, 2022-07-01), as they accidentally
reverted some of the correct changes done previously.
2022-07-02 17:00:59 +02:00
Vadim Zeitlin 1a53e80bf7 Use Doxygen Awesome CSS theme
Import the theme files into a subdirectory without any changes, even not
removing the trailing whitespace, to facilitate updating them in the
future. Do not add the theme as a submodule as it's surprisingly big
(~12MB) and we don't want to spend extra time on cloning it in each of
our CI builds.

Using this theme gives a nicer appearance and supports the often
requested dark mode.

Remove all colour-related options from the existing custom CSS file as
they don't work well in dark mode.

Also switch to using SVGs with transparent background, rather than PNGs,
for the class diagrams, to avoid background colour mismatch in dark
mode.
2022-07-02 16:57:57 +02:00
Vadim Zeitlin 3c7596f0ff Switch to using Doxygen 1.9.1 for the documentation generation
This fixes the problem with empty descriptions in the annotated class
list and is a prerequisite for using custom CSS theme in the upcoming
commits.

Closes #22288.
2022-07-02 16:10:21 +02:00
Vadim Zeitlin f2e7f6a917 Fix wrong XML fragment syntax highlighting in liblzma docs
Turn off syntax highlighting entirely because using ".xml" here results
in total garbage in output for some reason (while not using any specific
language uses C++ highlighting which is confusing).
2022-07-02 16:06:29 +02:00
Vadim Zeitlin 332e1576a5 Revert "Remove the mention of non-existent translators mailing list"
This reverts commit 155d8546cb as we now
use the translators mailing list again.
2022-07-02 15:18:45 +02:00
James Pan d4f5b00a8c Final zh translations updates for 3.2.0 2022-07-01 02:31:09 +02:00
Vadim Zeitlin 777b4cffe6 Merge branch 'unix-tests'
Minor improvements to non-GUI tests under Unix.

See #22588.
2022-06-30 19:24:41 +02:00
Vadim Zeitlin ab204afcab Use correct libc.so location under FreeBSD
This allows wxDynamicLibrary to pass there instead of just warning and
skipping the test.
2022-06-30 16:28:29 +02:00
Vadim Zeitlin 6da0cfa2c9 Stop using xclock in wxExecute() unit test
It isn't available under all systems and can't be run without an active
X11 session even when it is, so replace it with a simple call to sleep.
2022-06-30 14:07:08 +02:00
Vadim Zeitlin 20c8844925 Don't try using /usr/lib/libc.so on unknown Unix systems
This doesn't work under FreeBSD, even if the file exists there.

Show the existing libc candidates on such systems to see if any of them
look plausible.
2022-06-30 14:03:44 +02:00
Vadim Zeitlin 587c1fafe0 Remove unused wx/log.h include from wxDynamicLibrary unit test
No real changes.
2022-06-30 14:03:28 +02:00
Vadim Zeitlin 90ef7d0a5a Add changes since 3.2.0 RC1 to the change log 2022-06-30 00:25:13 +02:00
Vadim Zeitlin 844e51e672 Revert "Temporarily change the release to 3.2.0-rc1"
This reverts commit 4a286c1868 to set the
version to 3.2.0 again.
2022-06-30 00:21:33 +02:00
Vadim Zeitlin 964a7d2e4f Merge branch 'version-info-revision'
Add build number to wxVersionInfo and use it for IE/Edge web view
backends versions.

Closes #22455.
2022-06-29 22:51:44 +02:00
Ronny Krüger 18b519043e Return complete versions of Edge and IE backends
Since wxVersionInfo supports four parts now, we can return the complete
version from the Edge and IE backends to clients.
2022-06-29 22:51:16 +02:00
Ronny Krüger 8ef6f9fa27 Add a 'revision' component to wxVersionInfo
Some versions consist of four parts with the last part being called the
revision or build number. wxVersionInfo is now able to save such a
fourth number.
2022-06-29 22:50:12 +02:00
Vadim Zeitlin 3fcf4a5f74 Fix Windows wxDynamicLibrary tests build after recent change
Fix a mistake in e32f49bca0 (Do run DynamicLibrary::Load unit test under
Linux, 2022-06-29).
2022-06-29 22:42:10 +02:00
Vadim Zeitlin b44b4ee78b Fix size of the requested bitmap bundle in wxToolBar XRC handler
We need to pass the physical size, not scaled by DPI, as the "size"
parameter of GetBitmapBundle(), so that a user-defined art provider
could use it to select one of the available bitmap sizes (which will
then be scaled, if necessary, by wxBitmapBundle itself).

This change is not 100% backwards-compatible because, in theory, bitmap
sizes could be specified using dialog units previously, but this is not
supported any more. However in practice this never happened because it
simply doesn't make sense to use dialog units for the bitmap sizes and
it doesn't seem worth complicating the code by adding another XRC type
of "DPI-independent pixels that can be expressed in dialog units",
especially considering that DUs are DPI-dependent by definition.

See #22584.
2022-06-29 22:32:25 +02:00
Vadim Zeitlin ad0b90e56a Merge branch 'ci-ubuntu-22.04'
Fix CI scripts to support Ubuntu 22.04 and run the ASAN build there.

See #22585.
2022-06-29 22:29:17 +02:00
Vadim Zeitlin 7def27f1c2 Run ASAN CI builds under Ubuntu 22.04
Leak sanitizer regularly crashes under Ubuntu 20.04, so try using the
newer version in the hope that it will work better there.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin a9884284f5 Fix pip installation problem under Ubuntu 22.04
pip 19.1 seems to be incompatible with Python 3.10 used there.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin e3adac72ac Work around error with libgstreamer1.0-dev under Ubuntu 22.04
Installing this package directly fails because of a conflict between one
of its dependencies and the already installed libc++-dev which depends
on another, incompatible, version of the same library.

Work around this by installing libunwind-dev directly, which is enough
to make apt uninstall libc++-dev and libunwind-14-dev that it depends on
instead of just stopping with an error.

It's not really clear how are we supposed to use clang with libc++ in
this environment, but this at least allows to build with gcc.
2022-06-29 22:27:48 +02:00
Vadim Zeitlin e32f49bca0 Do run DynamicLibrary::Load unit test under Linux
Use existing path for libc.so on Linux/x86_64 platforms to prevent the
test from just exiting without doing anything.

Also don't give a compilation error for unknown platforms, just a
run-time warning is sufficient.
2022-06-29 22:25:08 +02:00
Vadim Zeitlin c1a573d216 Initialize unused variable in FileKindTestCase to avoid a warning
Avoid -Wmaybe-uninitialized from gcc 11.
2022-06-29 22:10:55 +02:00
Paul Cornett 8064abb0d6 Fix wxListBox selection colors with non-default background on GTK3
Although GtkEntry uses a "selection" CSS node since 3.20, other widgets
still use ":selected", so apply both.
See #22583
2022-06-29 08:53:45 -07:00
Vadim Zeitlin 2e555335e4 Merge branch 'memorydc-scale-factor-docs'
Improve wxMemoryDC docs.

See #22567.

See #22581.
2022-06-29 17:21:58 +02:00
Vadim Zeitlin b95f2b699d Clarify that wxDC::CopyAttributes() doesn't copy scaling factor
Also show an example of setting the scaling factor in wxMemoryDC
documentation.
2022-06-28 22:50:24 +02:00
Vadim Zeitlin b9a84dcae5 Improve wxMemoryDC documentation
Try to explain the difference between SelectObject() and
SelectObjectAsSource() more clearly.
2022-06-28 22:45:30 +02:00