Commit graph

74132 commits

Author SHA1 Message Date
Vadim Zeitlin
b6a42b4ef4 Remove Mac workaround from wxFont unit test not needed any more
After #23144 was fixed, calling DumpFont() doesn't modify the font under
Mac any longer, so we don't need to avoid calling it there.
2023-02-07 10:59:54 +01:00
Vadim Zeitlin
f1b38c2500 Merge branch 'mac-menu-i18n'
Fix "Window" menu item translation under macOS.

Closes #23204.
2023-02-06 21:04:14 +01:00
Vadim Zeitlin
8dd9cfdbd0 Merge branch 'update-message-catalogs' of https://github.com/utelle/wxWidgets
Update all message catalogs to use appropriate context for the existing
macOS menu labels translations.

See #23229.
2023-02-06 21:03:24 +01:00
Vadim Zeitlin
cb62721e24 Rename variables containing translations of menu item text
Use "Translated" prefix for them instead of much less clear "Alternate"
one.

No real changes.
2023-02-06 21:00:21 +01:00
Stefan Csomor
94f51a5c8a use properly translated string when creating default window menu 2023-02-06 20:59:44 +01:00
Vadim Zeitlin
3e571ef253 Merge branch 'gtk-treectrl-text-size'
Improve size and handling of in-place editor in wxGenericTreeCtrl.

See #23001.
2023-02-06 19:47:42 +01:00
Vadim Zeitlin
4f6ddcf511 Hard code text control margins for GTK 2
Using GTKGetPreferredSize() doesn't always seem to return the correct
values, resulting in making the control too big, so just hard code the
smaller margins there.
2023-02-06 19:47:09 +01:00
utelle
d89a03a6dc
Update German message catalog 2023-02-06 17:49:38 +01:00
utelle
f2bf82782e
Update message catalogs
At least commit [f7d0742](f7d0742715) added several message ids with context (Mac OS port). That requires an update of the message catalogs.
2023-02-06 17:22:28 +01:00
Tobias Taschner
b9e776ae43 Allow calling wxWebViewEdge::SetUserAgent() after Create()
Additionally implement wxWebViewEdge::GetUserAgent() via SDK.

This functionality is available with the slightly newer
WebView2 SDK required by previous changes.

See #23225.
2023-02-06 13:55:30 +01:00
Vadim Zeitlin
85f76a8b98 Merge branch 'str_test_fix' of https://github.com/pavel-t/wxWidgets
Improve wxString unit tests, check for self-move-assignment.

See #23223.
2023-02-06 13:48:33 +01:00
Ulrich Telle
e983bd1288 Return English names for wxLOCALE_FORM_ENGLISH under Mac
Fix wxUILocale::GetLocalizedName(wxLOCALE_FORM_ENGLISH) to actually
returns the names in English by using the en-US locale for obtaining
them.

Closes #23190.

Co-Authored-by: Lauri Nurmi <lanurmi@iki.fi>
2023-02-06 00:21:19 +01:00
Artur Wieczorek
dce28fe788 Mark deprecated variables as used internally
When v3.2 compatibility is enabled all deprecated variables are still
present and initialized.
2023-02-05 20:08:00 +01:00
Artur Wieczorek
3b9672ce19 Ignore commit regarding comments only 2023-02-05 19:14:32 +01:00
Artur Wieczorek
159c3b1c6d Don't cache strings and variant values in wxPGGlobalVarsClass
Optimization gain is doubtful but complexity is high.
2023-02-05 19:07:25 +01:00
Artur Wieczorek
2df05fb915 Get rid of obsoleted comments 2023-02-05 19:06:54 +01:00
Artur Wieczorek
ff7476fcd0 Pass size to wxToolbar::SetToolBitmapSize() given in logical pixels
Previously the size was given DIPs but now logical pixels are used.
2023-02-05 19:06:26 +01:00
Artur Wieczorek
ad6bb3a10a Adjust propgrid sample to look better on HiDPI display 2023-02-05 19:05:44 +01:00
Pavel Tyunin
de59024f53
Better move constructor test
Previous version didn't actually call the move constructor.
2023-02-05 13:09:08 +02:00
Pavel Tyunin
1a46836e88
Remove unused test variables 2023-02-05 13:09:07 +02:00
Pavel Tyunin
e04a8de87a
Remove duplicated assign() tests and move remaining ones from AssignOp 2023-02-05 13:09:06 +02:00
Vadim Zeitlin
109e8e0f83 Merge branch 'rvalue_string' of https://github.com/pavel-t/wxWidgets
Add move operations and rvalue support to wxString.

See #23215.
2023-02-04 13:19:35 +01:00
Pavel Tyunin
099c5f1cac
Quick fix to avoid regression in assign() with length 2023-02-03 22:09:52 +02:00
Pavel Tyunin
62f83858a0
Add tests for wxString assignment operator 2023-02-03 22:09:52 +02:00
Pavel Tyunin
974feb4c39
Add tests for wxString move constructors 2023-02-03 22:09:52 +02:00
Pavel Tyunin
31ca15fa47
Add noexcept to wxString::swap() 2023-02-03 22:09:52 +02:00
Pavel Tyunin
e438079485
Add non-member swap to wxString 2023-02-03 22:09:52 +02:00
Pavel Tyunin
bcda42a082
Add rvalue versions of wxString assignment and construction functions 2023-02-03 22:09:52 +02:00
Pavel Tyunin
d00a072dc5
Add move operations to wxString 2023-02-03 22:09:51 +02:00
Pavel Tyunin
5b951caa79
Add string arrays benchmarks 2023-02-03 22:09:51 +02:00
Vadim Zeitlin
489e4c869e Don't make in-place editor too large initially
As we don't call IncreaseSizeForText() in the ctor any longer, redo the
same check there too.

Also prefer using GetClientSize() to GetSize() for determining the
available size, the difference is not big, but the former is more
correct.
2023-02-03 18:18:22 +01:00
Vadim Zeitlin
9a3e732c51 Fix height returned from MSW DoGetSizeFromTextSize() too
This is identical to 44e9218e03 (Don't always increase height in
DoGetSizeFromTextSize(), 2023-02-02) for wxGTK and ensures that we don't
make the returned height too big when a valid height is specified on
input.
2023-02-03 16:26:30 +00:00
Vadim Zeitlin
e3e7130d4a Merge branch 'new-redef-fix'
Fix errors due to "new" redefintion.

See #23201.
2023-02-03 15:13:04 +01:00
Vadim Zeitlin
0a1b0fbe01 Merge branch 'msw-about'
Improve generic and MSW "About" dialog appearance.

See #23196.
2023-02-03 15:11:48 +01:00
Vadim Zeitlin
255876075a Merge branch 'xrc-feature'
Add XRC "feature" attribute.

See #23184.
2023-02-03 15:09:55 +01:00
Scott Talbert
3cc00091e2 Document wxBookCtrlBase::GetControlSizer
The documentation for wxChoiceBook discusses using this method, but it
was not previously documented.

See #23211.

Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>
2023-02-03 15:08:55 +01:00
Lauri Nurmi
f7d0742715 Use translation context for more standard OSX menu items
Similar items were added context in d85f0e311d (Use translation context
for standard OSX menu items, 2022-05-02) but some were missed back then.

The context primarily serves as a translator comment, informing that these
are indeed OSX menu item names, and not something else.

Also to match the established translations of OSX itself, for some
languages these may need to be translated using particular terminology
different than on other platforms.

See #23213.
2023-02-03 15:03:04 +01:00
Vadim Zeitlin
102f5fdea0 Merge branch 'fi-keyname-fix' of https://github.com/lanurmi/wxWidgets
Fix non-fuzzy keyboard key names that are clearly wrong for Finnish.

See #23212.
2023-02-03 15:00:33 +01:00
Vadim Zeitlin
9d18ae98b3 Make the error message about missing nanosvg more clear
When wxWidgets itself is embedded into another repository as a
submodule, it may not be obvious that the given command must be run from
wxWidgets subdirectory and not the top-level repository itself, so make
it more explicit.
2023-02-03 14:32:29 +01:00
Lauri Nurmi
cbee89b3d2 Fix and/or complete OSX menu item translations for Finnish 2023-02-02 22:27:59 +02:00
Lauri Nurmi
d8114d2176 Fix double-UTF8 comment line in fi.po 2023-02-02 21:54:59 +02:00
Lauri Nurmi
0316ead300 Fix non-fuzzy keyboard key names that are clearly wrong for Finnish
The translations make sense in another context, but not as key names. Also
one typo.
2023-02-02 21:54:58 +02:00
Vadim Zeitlin
a8d8022529 Allow using F2 for renaming items in the treectrl sample
This makes it simpler to test this functionality and it's also the
standard key for doing this, at least under MSW.
2023-02-02 17:13:09 +01:00
Vadim Zeitlin
0e16d866ed Fix vertical size and position of wxTreeTextCtrl
Use vertical component of the size returned from GetSizeFromTextSize()
too, not only the horizontal one, to ensure we make the control tall
enough to fit its contents.
2023-02-02 17:11:33 +01:00
Vadim Zeitlin
3e01634976 Use vertical GTK entry margins too in DoGetSizeFromTextSize()
This actually makes the height returned from it smaller, as these
margins are negative (at least with GTK 3), but this works well with the
size returned by GTKGetPreferredSize() which would be too big otherwise,
as it seems to include the margins around the control too.
2023-02-02 17:10:04 +01:00
Vadim Zeitlin
44e9218e03 Don't always increase height in DoGetSizeFromTextSize()
The intention here almost certainly was to use at least the specified
height, not to always add something to it at the end for no apparent
reason, so do this instead.
2023-02-02 17:09:06 +01:00
Vadim Zeitlin
3433eaafc2 Initialize height once in wxTextCtrl::DoGetSizeFromTextSize()
No real changes, just replace the redundant assignments with an
initialization.
2023-02-02 17:03:42 +01:00
taler21
80249177d0 Improve automatic enlargement of in-place editor in wxTreeCtrl
Use GetSizeFromText() when computing the increased size after the text
changes and do it from wxEVT_CHAR handler rather than in wxEVT_KEY_UP
one in order to be able to account for the newly entered character
correctly.
2023-02-01 00:41:27 +01:00
Paul Cornett
c01b9495b3 Account for the border in wxGTK2 wxTextCtrl
This fixes the value returned from wxTextCtrl::GetSizeFromTextSize()
which could have been too small previously.
2023-02-01 00:27:43 +01:00
Artur Wieczorek
6674ce7fe6 Apply workaround to fix drawing glitches caused by
wxGraphicsContext::ResetClip (wxOSX)

Using native CGContextResetClip() to reset the clip causes some
drawing glitches - especially with drawing text with CT - see
https://github.com/wxWidgets/wxWidgets/issues/22629#issuecomment-1399554002
For the time being we have to revert to the previous code
with emulated resetting based on restoring the graphics context state.
We also have to disable a unit tests that fails with emulated
resetting the clip.

See #22629.
2023-01-31 22:32:41 +01:00