Commit graph

73941 commits

Author SHA1 Message Date
Vadim Zeitlin
164debb548 Don't compile cursor_png.c as part of the image sample
This file is included from image.cpp and is not supposed to be compiled
itself, this is just a waste of time and results in a (clang) warning
about unused variable defined in this file.
2023-01-06 00:58:05 +01:00
Vadim Zeitlin
e064f6b912 Suppress GetCompositeWindowParts() override warning for clang too
This uses the macro suppressing the warning for both gcc and clang
instead of doing it just for gcc as 58840fe7fd (Suppress unavoidable
-Wsuggest-override in wxCompositeWindow, 2022-12-25) did.

This is more correct and also simpler and shorter.
2023-01-06 00:58:05 +01:00
Vadim Zeitlin
0c97244747 Merge branch 'drop-mem-debug'
Drop memory debugging/tracing support.

See #23115.
2023-01-06 00:56:01 +01:00
Vadim Zeitlin
2435ffa52f Reduce the max number of jobs in Cirrus CI to 12
With 16 the build is still terminated by the OOM killer sometimes.
2023-01-06 00:55:15 +01:00
PB
42c2cb9936 Improve comments in samples/sample.rc
Provide more information about application manifest, High DPI support,
and contents of wx/msw/wx.rc file.

Use the correct file extension for docs/msw/winxp.md.

Closes #23116.
2023-01-06 00:54:00 +01:00
Vadim Zeitlin
e89f05faba Remove memory debugging/tracing support and all related options
Drop disabled by default and pretty useless memory tracing code and all
the overlapping and poorly documented build options related to it.

Remove memory.cpp entirely and update all the make/project files, but
preserve the now completely trivial wx/memory.h for compatibility and
also keep including wx/string.h from wx/object.h as it seems like a lot
of existing code actually depends on this, even if it should not.

Replace the options in the propgrid sample with a couple of other
debug-related options that were not used before to avoid leaving the
"Debugging Section" completely empty.
2023-01-05 21:41:38 +01:00
Vadim Zeitlin
bdc260bf53 Include wx/string.h from the files that use wxString
Don't rely on this header being implicitly included by wx/object.h even
though it does include it right now.

No real changes.
2023-01-05 18:58:24 +01:00
Vadim Zeitlin
d5b66e4e57 Regenerate autoconf_inc.m4 to avoid references to removed files
Removed the existing file and reran "bakefile_gen -B" to recreate it
with all the still valid references but without references to the
bakefiles not existing any more, including the just removed memcheck.bkl
but also a couple of other previously removed samples and utils.

No real changes.
2023-01-05 18:27:41 +01:00
Vadim Zeitlin
d74c9e51da Remove memcheck sample
This sample wasn't really useful and demonstrated functionality which
was disabled by default since many years and will be completely removed
soon.
2023-01-05 18:24:57 +01:00
Vadim Zeitlin
0016bdc308 Merge branch 'dark-mode-collapse-button'
Improve collapse button appearance in dark mode.

See #23098.
2023-01-05 01:56:28 +00:00
Eran Ifrah
23359ce4fb Improve wxStaticLine appearance in dark mode under MSW
Don't use SS_SUNKEN for it to avoid a too bright 3D border.

Closes #23108.

Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>
2023-01-05 01:55:21 +00:00
Vadim Zeitlin
46f3873a3c Merge branch 'nanosvgDocs' of https://github.com/Blake-Madden/wxWidgets
Document that embedded images in SVG are not currently supported.

See #23110.
2023-01-05 02:43:34 +01:00
Artur Wieczorek
0e2fee1755 Enable wxPaintDC-related tests under wxOSX
With delay after refreshing testing window added in 808bbe8341 ("Fix
executing wxPaintDC-related tests under wxGTK", 2023-01-04) wxPaintDC
tests work also under wxOSX.
2023-01-04 21:59:10 +01:00
Artur Wieczorek
808bbe8341 Fix executing wxPaintDC-related tests under wxGTK
First child window has fixed size so we need to create a second window
and use it for wxPaintDC tests.
2023-01-04 19:59:32 +01:00
Blake-Madden
92b170b154
Offer workaround for embedded images in SVG 2023-01-03 17:54:11 -05:00
Blake-Madden
7f118d96d7
Mention embedded images in SVG not being supported
Also, fix minor doxygen formatting in note
2023-01-03 17:30:24 -05:00
Vadim Zeitlin
ccaf5728f6 Restore the use of WS_EX_COMPOSITED by default
This was accidentally broken by b4dd25ee3f (Disable use of composition
for top most windows, 2022-12-25).

See #23079.

Co-Authored-By: Maarten Bent <MaartenBent@users.noreply.github.com>
2023-01-03 18:44:27 +01:00
Vadim Zeitlin
b7f24a65d8 Rebake after the copyright year update
This should have been part of f5daf28932 (Update copyright years to
2023, 2023-01-03).
2023-01-03 18:39:06 +01:00
Vadim Zeitlin
b7ed2c8376 Merge branch 'cirrus-ci-arm'
Add ARM task to Cirrus CI.

See #23104.
2023-01-03 04:20:19 +01:00
Vadim Zeitlin
ab08e17bf2 Use libtiff-dev instead of deprecated libtiff5-dev package
No real changes, just use the real, instead of the transitional, package
name.

Co-Authored-By: Scott Talbert <swt@techie.net>
2023-01-03 04:18:26 +01:00
Vadim Zeitlin
f5daf28932 Update copyright years to 2023
Just run misc/scripts/inc_year and commit the results.

See #18690.
2023-01-03 04:15:08 +01:00
Vadim Zeitlin
64d26dfff8 Show more information about the system in Cirrus CI builds
Notably show the available locales.
2022-12-31 20:32:47 +01:00
Vadim Zeitlin
7bbee79ca9 Give more information if wxLocale::Default unit test fails
Show the system language in this case.
2022-12-31 20:32:47 +01:00
Vadim Zeitlin
5ab36f825a Install locales used by our tests in before_install.sh
Previously this was done in the GitHub CI script, but this isn't
specific to GitHub, so do it in the common script to make these locales
also available under Cirrus CI.

Also switch to just installing locales-all instead of installing locales
and then running locale-gen because this is simpler and actually works
(locale-gen would have only worked if we modified /etc/locale.gen before
running it, but we didn't).
2022-12-31 20:31:47 +01:00
Vadim Zeitlin
ec03139362 Limit the number of concurrent jobs to 16 in Cirrus CI builds
Using 64 of them just crashes, probably due to running out of RAM.
2022-12-31 19:26:16 +01:00
Vadim Zeitlin
120e8f5395 Install 3rd party libraries dev packages in Cirrus CI build
As we don't check out all submodules, we need them there.
2022-12-31 19:23:58 +01:00
Vadim Zeitlin
e9cfd92869 Add a build using ARM to Cirrus CI
Use matrix to perform the same build steps for different platforms and
account for FreeBSD specific things by explicitly checking the OS name
in the scripts.
2022-12-31 19:23:58 +01:00
Vadim Zeitlin
1928ed62f5 Install g++ and make manually under Linux 2022-12-31 19:23:58 +01:00
Vadim Zeitlin
4564beb9f1 Define wxGTK_VERSION=3 in Cirrus CI build task
This wasn't needed for FreeBSD build, where we just hard coded 3, but is
needed for the new Linux one.
2022-12-31 19:23:58 +01:00
Vadim Zeitlin
b2f186cda1 Deal with the absence of lsb_release in the pre-build script
For now just don't do anything distribution-specific if it's absent, if
we really need it, we can install it later.
2022-12-31 19:23:58 +01:00
Vadim Zeitlin
543f5ce6d2 Don't use sudo in pre-build script when running as root
Just run apt-get directly in this case.
2022-12-31 19:23:58 +01:00
Vadim Zeitlin
2b5bb6217d Disable test for loading images using wxURL
This requires an image accessible via HTTP (and not HTTPS) but we don't
have any such working URLs any longer since the recent change on
www.wxwidgets.org.

Still make it possible to test this manually by predefining an
environment variable containing the URL.
2022-12-31 19:21:33 +01:00
Vadim Zeitlin
001fbe120f Fix peeking into an already closed socket
Crazily enough, this seems to have been broken ever since a324a7bccf
(Added GSocket for Unix [...], 1999-07-22) which removed the call to
GetPushback(true) from Peek(), making its "peek" parameter unused until
now.

Restore this call in order to return the correct data from the internal
buffer even if the socket has been closed since the last read.

This fixes wxURI tests as the new test HTTP server returns smaller
response which can be typically read entirely at once.
2022-12-31 18:52:04 +01:00
Vadim Zeitlin
b5d7112583 Switch to using detectportal.firefox.com for wxURL HTTP test
http://www.wxwidgets.org/ now redirects even image assets to HTTPS all
of a sudden.
2022-12-31 17:47:47 +01:00
Vadim Zeitlin
06f5267582 Use named links in Markdown instead of numbered ones
This is more clear and avoids problems with mis-numbering.

Closes #23090.
2022-12-31 17:14:26 +01:00
Vadim Zeitlin
79e97bd4ca Merge branch 'msw-dlls-arch-suffix'
Include arch-specific suffix in the DLLs names in makefile.vc too.

See #23053, #23093.
2022-12-31 17:02:07 +01:00
Vadim Zeitlin
d868c3b3e2 Merge branch 'mac-handle-menu-item'
Fix a possible crash in Mac menu item event handling.

See #23040, #23100.
2022-12-31 17:00:50 +01:00
Vadim Zeitlin
5d7a679e4c Use wxKeyEvent::GetUnicodeKey() in grid editors code
This avoids warnings about signed/unsigned comparison when comparing the
key code with wxNumberFormatter::GetDecimalSeparator() and generally
makes more sense when checking for the given character, rather than some
special WXK_XXX value.

Closes #23101.
2022-12-30 16:17:05 +01:00
Artur Wieczorek
37817d7c38 Include unordered_map header 2022-12-30 15:20:45 +01:00
Artur Wieczorek
c24b9476fa Use unordered_map to store action triggers in wxPropertyGrid
Use standard container explicitly (instead of alias wxPGHashMAPI2I).
2022-12-30 15:13:21 +01:00
Eran Ifrah
7cd5826167 Fix encoding of string literal in wxPropertyGrid
Use wide-character string literal to ensure proper encoding
in all cases.

Closes #23095.
2022-12-30 14:20:22 +01:00
Artur Wieczorek
cb0e17176b Optimize erasing items from action triggers collection in wxPropertyGrid
Instead of starting iteration from the first element in the collection
every time the item was found and erased we can continue searching from
the next item after just erased one.
2022-12-30 14:13:14 +01:00
Artur Wieczorek
d3c194590d Prevent from instantiation of wxPropertyGridIteratorBase
The purpose of this class is to be a base class
for wxPropertyGridIterator classes.
2022-12-30 14:10:29 +01:00
Artur Wieczorek
6863b0a92d Use default ctor's and dtor's instead of functions with empty bodies 2022-12-30 14:09:04 +01:00
Artur Wieczorek
357f611a48 Simplify returnig two values from wxPropertyGrid::KeyEventToActions()
Use std::pair to return pair of values from function.
2022-12-30 14:08:15 +01:00
William
83e47a6be3 Fix drawing wxTaskBarIcon under macOS in high DPI
Use a workaround to ensure the image is not distorted due to using a
wrong scale.

Closes #23042.
2022-12-29 19:02:02 +01:00
Vadim Zeitlin
70bc5eb89d Call OSXAfterMenuEvent() before the user-defined event handler
This ensures we don't crash if the user-defined handler deleted the
invoking window.
2022-12-29 18:57:29 +01:00
Vadim Zeitlin
72e68a3331 Never call wxMenu::HandleCommandProcess() with null item
This probably didn't happen even before, but it wasn't really clear as
some code checked for it and some didn't. Now check for it everywhere
(except in the places where this pointer is already dereferenced
unconditionally before calling HandleCommandProcess()) and also clearly
specify that it's a precondition for calling it inside the function
itself.

No real changes.
2022-12-29 18:49:57 +01:00
Vadim Zeitlin
2bca8c405d Fix documentation of the arch suffix in the DLL names
Mention that it's only used when building with MSVC.
2022-12-29 18:39:46 +01:00
Vadim Zeitlin
ebf790f76e Restrict arch suffix for DLLs to MSVC in CMake builds
Amend the changes of edcfeab29d (Include arch-specific suffix in the DLL
names in CMake builds too, 2022-12-23) to only do it when using MSVC but
not the other compilers as this would make CMake incompatible with what
makefile.gcc does.
2022-12-29 18:38:05 +01:00