Commit graph

73957 commits

Author SHA1 Message Date
Vadim Zeitlin
e7297592cb Move manifest explanation in the main wxMSW install docs
This is important enough to be described directly there, especially now
when a manifest is required.
2023-01-09 23:22:17 +00:00
Vadim Zeitlin
fc9ade48b9 Fix hierarchy in the MSW build instructions documentation
Don't make "Make Parameters" and "Advanced Configurations" top level
sections, they're not as important as the other ones.
2023-01-07 18:23:47 +00:00
Vadim Zeitlin
2d37e9fbc8 Disable WS_EX_COMPOSITED for wxGLCanvas and its parent windows
OpenGL window can't be used inside a composited window as its contents
is never drawn at all with some video cards/drivers in this case (at
least nVidia ones).

Closes #23112.
2023-01-07 16:46:59 +01:00
Vadim Zeitlin
3c782927c4 Merge branch 'ci-clang-werror'
Enable -Werror for clang wxMSW CI build.

See #23118.
2023-01-07 16:45:27 +01:00
Artur Wieczorek
f0b76076f4 Encapsulate data in wxPGValidationInfo
Implement more getters and setters to encapsulate data
in wxPGValidationInfo.
2023-01-06 18:06:38 +01:00
Artur Wieczorek
b8c1ca7694 Don't account for commit regarding editorial changes 2023-01-06 18:05:12 +01:00
Artur Wieczorek
e43190ea79 Code cleanup: wxPGProperty helper classes
Move declarations and implementations of wxPGProperty-related helper
classes to the files containing wxPGProperty (and derived classes) code.
2023-01-06 17:56:49 +01:00
Artur Wieczorek
dec03c5d89 Use dedicated function to get common value label in wxPropertyGrid 2023-01-06 17:51:33 +01:00
Artur Wieczorek
6d9e362b1f Use standard container to store dedicated keys in wxPropertyGrid
Dedicated keys can be stored in std::unordered_set
instead of wxPGHashSetInt.
2023-01-06 17:50:23 +01:00
Artur Wieczorek
959ebb2fcb Simplify wxPropertyGridPopulator::ParseChoices()
Refactor to reduce number of nested if/else blocks.
2023-01-06 17:49:05 +01:00
Artur Wieczorek
dc77fb5bd4 Deprecate unused wxPropertyGrid items 2023-01-06 17:47:59 +01:00
Artur Wieczorek
81cd35a662 Get rid of unused member variables 2023-01-06 17:31:26 +01:00
Artur Wieczorek
3e5b6b4d66 Use standard containers to handle mappings in wxPropertyGrid
Use unordered_map explicitly (instead of using wxPGHashMapS2P alias).
2023-01-06 17:20:54 +01:00
Artur Wieczorek
f60bf021d5 Simplify retrieving values from std::pair
Use std::tie to unpack a std::pair.
2023-01-06 17:20:08 +01:00
Vadim Zeitlin
b8c6ba18f3 Fail on warnings in MSW clang CI build
We want to keep the build warning-free and we already use -Werror for
the Unix CI builds, so do it here too, for consistency.
2023-01-06 00:58:05 +01:00
Vadim Zeitlin
3d2754d04a Remove code not doing anything from propgrid sample
This code, added back in 1c4293cb91 (added wxPropertyGrid from Jaakko
Salli (#9934), 2008-09-12), resulted in warnings about an unused
variable from clang and was generally confusing, so just remove this
code entirely as it's not clear what was actually the intention here.
2023-01-06 00:58:05 +01:00
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