Commit Graph

72468 Commits

Author SHA1 Message Date
Vadim Zeitlin
5db2244bc8 Use wxString() rather than wxEmptyString in wxGrid classes
No real changes, just use default ctor for the default value of some
parameters.
2022-04-28 00:30:15 +02:00
Frode Roxrud Gill
f646e8b11c Allow cloning client data stored in wxGrid attributes etc
Add wxSharedClientDataContainer class storing ref-counted client data
and use it instead of plain wxClientDataContainer in wxGridCellAttr,
wxGridCellEditor and wxGridCellRenderer classes.

This allows to keep the same client data associated with many grid cells
without having to make many copies of it.
2022-04-28 00:28:58 +02:00
Vadim Zeitlin
88e92a5f01 Don't imply that clang is not supported under MSW
It is, so remove "macOS and Linux" from its line.

Add maximum tested versions for it and gcc too, for consistency with
MSVC and because it can be useful to know.

See #22363.
2022-04-27 19:48:30 +02:00
Vadim Zeitlin
05014523bc Merge branch 'document_missing_webview_event' of https://github.com/swt2c/wxWidgets
More documentation fixes: inconsistent or missing declarations.

See #22366.
2022-04-27 19:45:16 +02:00
Vadim Zeitlin
e6abc4ca12 Update message catalogs after adding keyboard key context
See #22354.
2022-04-27 19:32:37 +02:00
Vadim Zeitlin
6935b831bd Merge branch 'messages-with-context' of https://github.com/lanurmi/wxWidgets
Add wxTRANSLATE_IN_CONTEXT() and use it in a few places, notably for the
key names.

See #22354.
2022-04-27 19:17:12 +02:00
DietmarSchwertberger
1b158caa83 Improve usability of wxGrid actions using mouse dragging
Implement auto scrolling and handle ESCAPE to cancel the actions done by
dragging the mouse, such as resizing or selecting an area.

Closes #22292.
2022-04-27 19:09:40 +02:00
Scott Talbert
1a531def4b Fix wxTextCtrl::OSXEnableNewLineReplacement documentation 2022-04-26 22:31:54 -04:00
Scott Talbert
db8eb640eb Document missing wxWebView events 2022-04-26 20:12:24 -04:00
Vadim Zeitlin
8245ba96ee Don't crash if invalid index is used with wxDataViewListCtrl
Use wxCHECK, not wxASSERT, for checking a critical precondition to
ensure that we don't crash if it's violated.

This fixes crashes in various wxDataViewListCtrl methods if they're
passed an invalid index different from wxNOT_FOUND.

Closes #22358.
2022-04-26 02:02:29 +02:00
Maarten Bent
a98104c1f0 Fix wxRichToolTipPopup size at non-system DPI displays
Move the popup to the display where it will be shown, so the size
calculations are based on the correct DPI.

Also adjust the tip size to the current DPI.

Closes #22361.
2022-04-25 22:16:21 +02:00
Stefan Csomor
d9ec9ab1f1 Use Cocoa native layout inset method
Don't hardcode inset sizes any longer.

This improves various issues under macOS 12, see #22134 and #22135 (but
doesn't fully fix the former problem yet).

Closes #22351.
2022-04-25 21:51:00 +02:00
Lauri Nurmi
180b8e5183 Mark system cursor names translatable in a context, and do get translation
It looks like wxGetTranslation() was not actually called for these strings
earlier, so do call it.

The context fulfills also the same purpose as TRANSLATORS: comments --
removing comments as redundant.
2022-04-24 11:30:31 +03:00
Lauri Nurmi
3396a40015 Mark keyboard key names translatable in a specific context
Many key names are short and commonly used words; e.g. "Delete", "Left",
"Right", "Pause", "Menu", "End".

It is not at all unlikely that such words could be used in a completely
different meaning elsewhere in the code. That is why this list of
keys should be assigned a context.

The context fulfills also the same purpose as TRANSLATORS: comments --
removing comments as redundant.
2022-04-24 11:30:31 +03:00
Lauri Nurmi
e3bf759615 Add wxTRANSLATE_IN_CONTEXT() macro for marking strings for translation
Similarly to wxTRANSLATE(), this macro does not do much itself.
2022-04-24 11:30:31 +03:00
Vadim Zeitlin
5d5591816d Update to bakefile 0.2.13 to fix DLL directory creation
Fix the bug introduced in ec0734f96f (Install DLLs in bindir, not
libdir, when using MSW toolchains, 2021-01-09): the directory where the
DLLs were installed wasn't created any more, resulting in errors if it
didn't exist.

Update to latest bakefile version adding the missing mkdir command to
fix this and also use a released bakefile version for the wx makefiles.

Regenerate configure to match the new version.

See #14601.
2022-04-23 23:11:31 +02:00
Vadim Zeitlin
5f469f481a Merge branch 'wxwidgets.org-tests'
Don't fail CI if wxwidgets.org is not available or behind Cloudflare
proxy.

See #22350.
2022-04-23 20:37:00 +02:00
Vadim Zeitlin
da05a3770f Use address of www.wxwidgets.org instead of its name in HTTP URLs
The name resolves to Cloudflare proxy which redirects all HTTP URLs to
HTTPS, which breaks the existing tests using HTTP, so prevent this from
happening by using the actual IP address instead.
2022-04-23 18:03:25 +01:00
Vadim Zeitlin
9c4fe82242 Cache the results of network availability check
It's unlikely to change while the tests are running, so don't redo it
needlessly.
2022-04-23 17:55:24 +01:00
Vadim Zeitlin
239bbd6b82 Check that we can actually read from network and not just connect
When using Cloudflare, as we do for www.wxwidgets.org, the connection
succeeds as long as Cloudflare itself works, but reading later fails if
the real server behind Cloudflare proxy does not, so check if we can
read something from it.
2022-04-23 17:55:24 +01:00
Uwe Runtemund
28f62b2e59 Add support for creating wxBitmapBundle from wxIconBundle
This is useful for converting existing code using wxIconBundle for
similar purposes to switch to using wxBitmapBundle instead.

Closes #22347.
2022-04-23 17:31:46 +02:00
Vadim Zeitlin
860dd39fab Check connection to www.wxwidgets.org and not www.google.com
Our tests use the former and not the latter, so check connection to the
site we're actually interested in.
2022-04-23 16:16:01 +01:00
Vadim Zeitlin
668563f2b0 Rewrite ImageTestCase using CATCH macros
Get rid of the ugly WX_ASSERT_MESSAGE() and also use REQUIRE/CATCH
directly instead of CppUnit compatibility macros.

Also use sections to execute the next loop iteration(s) even if the
current one fails.

This commit is best viewed ignoring whitespace-only changes.
2022-04-23 16:08:14 +01:00
Vadim Zeitlin
89a7a070ea Use WARN() instead of wxLogWarning() in the unit tests
The latter isn't shown at all by default while the former one is.
2022-04-23 15:36:40 +01:00
Vadim Zeitlin
684dd4a5a6 Use wxScopedPtr in wxImage unit test
Don't manage memory manually, this resulted in error leaks if any checks
failed.
2022-04-23 15:35:22 +01:00
Vadim Zeitlin
c4dc0353cc Fix wxGTK1 build after adding wxBitmap(wxImage, wxDC) ctor
This fixes a compilation problem introduced in 24970061fa (Add
wxBitmap(wxImage, wxDC) ctor to all ports, 2022-04-12).
2022-04-23 15:04:25 +02:00
Paul Cornett
a261c80298 Avoid Gdk-CRITICAL warnings when using PopupMenu() with Wayland 2022-04-22 09:58:02 -07:00
Stefan Csomor
184a1fa244 reuse already existing method for turning off tabbing by default 2022-04-22 18:04:28 +02:00
Stefan Csomor
86e485c8d8 suppress adding automatic menu items on macOS
see #22210
2022-04-22 17:46:14 +02:00
Vadim Zeitlin
e38c8946d1 Merge branch 'dist-no-symlinks'
Get rid of symlinks in the distribution archives.

See #22342.
2022-04-21 21:25:22 +02:00
Vadim Zeitlin
ac60d78d8d Merge branch 'toolbar-bitmap-size'
Make wxToolBar::SetToolBitmapSize() take size in logical pixels.

See #22338.
2022-04-21 21:24:46 +02:00
PB
8c9c6f5088 Fix examples in wxBitmapBundle documentation
Add the missing label parameter to AddTool() calls.

Closes #22345.
2022-04-21 21:21:51 +02:00
Scott Talbert
be106d3fed Document missing wxEVT_FULLSCREEN 2022-04-20 22:54:06 -04:00
Vadim Zeitlin
f2425c5cbd Check that no symlinks are included in the distribution archives
They're not handled by the current 7z version under MSW if the user
doesn't have administrative rights and, instead of dealing with this,
it's simpler to just never include any symlinks in the archives as we
don't really need them anyhow.

So add a check ensuring that no symlinks are included in the
distribution archives to avoid more problems such as the one fixed in
the parent commit in the future.
2022-04-21 01:08:43 +02:00
Vadim Zeitlin
d10c4997ea Remove a useless symlink from expat submodule
This created problems when unpacking distribution archives without
administrative rights under MSW, so simply remove a symlink that we
don't really need anyhow to avoid them.

Closes #22271.
2022-04-21 01:08:43 +02:00
Vadim Zeitlin
1b3243c012 Merge branch 'zlib-1.2.12-prefix'
Fix bug with unprefixed functions in zlib 1.2.12.

See #22341.
2022-04-21 00:39:55 +02:00
Vadim Zeitlin
dbb9b9a651 Remove assert checking bitmap sizes in MSW wxHeaderCtrl
This assert could trigger when the window DPI was changed (e.g. due to
moving it to another display using different DPI scaling factor) and
doesn't seem very useful.

Just ensure that we always use the same size for all bitmaps in the
image list.

Closes #22267.

Closes #22334.
2022-04-20 23:38:42 +01:00
Vadim Zeitlin
079e608cb5 Remind to update zconf.h when upgrading zlib
And upgrade the submodule after performing the change documented here in
it to avoid link conflicts between the bundled zlib version and another
copy of zlib potentially used in the application due to the name clashes
between crc32_combine_xxx functions new in 1.2.12 that upstream forgot
to add to zconf.h.

Closes #22280.
2022-04-20 19:48:10 +02:00
Vadim Zeitlin
d8f346cecc Reorganize the 3rd party libraries update HOWTO more logically
Put steps in the chronological order.

Also put library-specific instructions in the same section, but in
different subsections instead of combining 2 of them in one section and
having a separate section for another one as before.
2022-04-20 19:43:49 +02:00
Vadim Zeitlin
1415830741 Fix section headings in 3rd party libraries upgrading HOWTO
Using numbers prevented the headings from being interpreted as such and
we instead got numbered item followed by a horizontal separator when
rendering Markdown as HTML.

Just remove the numbers to fix this.
2022-04-20 19:34:03 +02:00
catalinr
7e9a847c22 Update Romanian translations
Closes #22339.
2022-04-20 01:49:22 +02:00
Vadim Zeitlin
eb6506e677 Make wxToolBar::SetToolBitmapSize() take size in logical pixels
Previously it interpreted its argument as being in DIPs, which was
perhaps more convenient, but inconsistent with most of the other
functions and broke the general rule that FromDIP() should be used with
all hard-coded sizes.

Update the sample to use FromDIP() when calling it now, improve the
documentation and fix a bug in AdjustToolBitmapSize() which resulted in
not increasing the bitmap size when moving toolbar sample using "large"
toolbar size from a standard DPI display to a high DPI one: the old code
considered that the new size was the same as the old one and returned
before comparing it with m_requestedBitmapSize, which resulted in the
bitmaps not changing size at all instead of doubling their size as they
were expected to.
2022-04-19 23:36:02 +01:00
Vadim Zeitlin
a0abd711f7 Remove outdated comment from wxToolBarBase code
This comment was for the line of code removed back in 222ed1d678
(STL-ification patch for wxMSW and wxGTK., 2003-07-10) and should have
itself been removed back then, as it didn't make any sense after it.

No real changes.
2022-04-19 18:51:29 +01:00
Scott Talbert
6fa4e1b912 Fix wxWebViewFactory::GetVersionInfo documentation 2022-04-18 23:25:13 -04:00
Scott Talbert
cfbf667513 Fix wxMenuItem::AddExtraAccel documentation 2022-04-18 22:36:55 -04:00
Vadim Zeitlin
1d699256b5 Merge branch 'readme-win11'
Add Windows 11 to supported platforms listed in various documentation
files.

See #22331.
2022-04-19 00:53:34 +02:00
Vadim Zeitlin
a473a5746a Add Windows 11 to support MSW versions in the documentation
Update (hopefully all) the other enumerations of MSW versions to include
Windows 11 too.
2022-04-19 00:52:40 +02:00
Uwe Runtemund
13339425be Fix setting wxRIBBON_ART_GALLERY_BUTTON_ACTIVE_BACKGROUND_TOP_COLOUR
wxRibbonMSWArtProvider::SetColour() used a wrong variable for this
colour index, assign to the correct one.

Closes #22321.
2022-04-19 00:48:11 +02:00
Uwe Runtemund
94f698cc15 Add functions for getting current ribbon tool rectangle
wxRibbonButtonBar::GetItemRect() and wxRibbonToolBar::GetActiveTool()
are helpful for positioning other windows (e.g. popup ones) that should
be aligned to tools and buttons in the ribbon bar.

Closes #22329.
2022-04-19 00:46:58 +02:00
Vadim Zeitlin
692073ea7d Merge branch 'fix_lc_removesortindicator_doc' of https://github.com/swt2c/wxWidgets
Fix a couple of wrong signatures in the documentation.

See #22326.
2022-04-19 00:40:40 +02:00