Commit graph

74227 commits

Author SHA1 Message Date
Vadim Zeitlin
95f16e63d2 Consistently use @see in Doxygen documentation
Although @see was used predominantly, a few places used @sa which is
equivalent to it but less readable, so switch to using @see everywhere.

No real changes.
2023-02-20 23:02:18 +01:00
Miguel Gimenez
9f55d568c2 Add support for client data to wxAuiToolBar
Store data passed to AddTool() in wxAuiToolBarItem and provide
wxToolBar-like functions for setting and getting this pointer.

See #23276.

Closes #23271.
2023-02-20 22:59:03 +01:00
Vadim Zeitlin
996f1f5415 Update Circle CI workflow to get Scintilla submodules
This is necessary since 3ed5e42441 (Merge branch 'scintilla-5.0' of
https://github.com/MaartenBent/wxWidgets, 2023-02-20).

See #23117.
2023-02-20 18:43:35 +01:00
Ulrich Telle
a0be352a3f Fix setting locale to wxLANGUAGE_UKRAINIAN
Use GetCanonicalWithRegion() (instead of LocaleTag)  in the Windows
implementation of method wxLanguageInfo::TrySetLocale() -- as is done in
the non-Windows implementation of this method -- and to ensure that we
use the correct "uk-UA" for Ukrainian instead of the wrong (because
conflicting with the UK English) "uk".

See #23269.

Closes #23210.
2023-02-20 18:32:03 +01:00
Lauri Nurmi
cf66709e5f Use © instead of (c) in wxGetLibraryVersionInfo()
See #23265.
2023-02-20 18:31:15 +01:00
Vadim Zeitlin
49e6f50208 Remove wxGTKPrivate::GetTextEntryWidget(), use GetEntryWidget()
These functions are identical, so leave only one of them and simply
remove the other one.

See #23262.
2023-02-20 18:30:29 +01:00
Vadim Zeitlin
f932046a5c Merge branch 'msw-overlay'
Add native wxOverlay implementation using layered windows to wxMSW.

See #23261.
2023-02-20 18:28:21 +01:00
Vadim Zeitlin
41be6dbdbe Merge branch 'opengl-default-attrs'
Stop requesting multi-sampling in wxGLCanvas by default.

See #23260.
2023-02-20 18:26:52 +01:00
Vadim Zeitlin
3ed5e42441 Merge branch 'scintilla-5.0' of https://github.com/MaartenBent/wxWidgets
Update Scintilla to 5.0.

See #23117.
2023-02-20 18:25:35 +01:00
Vadim Zeitlin
d4e9b9b95d Ensure wxRadioBox is big enough to fit its contents in wxMSW
Since the changes of ce1ee46b0c (Use wxRadioButton in MSW wxRadioBox
implementation, 2022-12-24) the control could be too small because we
only accounted for the extra static box margins in two directions (top
and left) but not the two other ones.

Fix this by adding the border around the buttons in all directions and
also increasing its size to preserve more or less the same appearance as
before.

Closes #23267.
2023-02-20 18:24:48 +01:00
Vadim Zeitlin
238050bd51 Mention that wxAuiToolBar::AddTool() ignores client data
This parameter is not supported, so at least mention this in the
documentation.

See #23271.
2023-02-20 18:24:48 +01:00
Vadim Zeitlin
ec4ff44479 Don't show wrongly rounded value of π in the internat sample
We formatted the value with lesser precision than was used for
displaying it, resulting in unexpected display. Fix this by reducing the
number of digits used in the source (because they're lost anyhow when
formatting using the default precision) and the precision used when
displaying the number.

Closes #23192.
2023-02-20 18:24:48 +01:00
Vadim Zeitlin
f12d35afe2 Make generic "About" dialog slightly more symmetrical
Add an extra margin on the right to at least partially compensate for
the icon on the left.
2023-02-20 18:24:48 +01:00
Vadim Zeitlin
3ee3d9eab6 Check return code of IFileDialog::SetDefaultExtension()
Log a debugging message if it fails (which is not supposed to happen).

No real changes.
2023-02-20 18:24:48 +01:00
Vadim Zeitlin
8e3dcf8cf8 Fix wxUILocale::GetSystemLocaleId() documentation
Somehow the function prototype was omitted, restore it.

Also update the @since version after backporting this function to 3.2.
2023-02-20 18:24:48 +01:00
Artur Wieczorek
1e6b5c5927 Get rid of unnecessary headers
Since we can't use std::underlying_type_t<> its header is not needed.
2023-02-20 00:49:59 +01:00
Vadim Zeitlin
f3d8e6395c Remove another constexpr not supported by g++ 4.8
This should have been done in the parent commit.
2023-02-20 00:42:48 +01:00
Vadim Zeitlin
d40f0470da Don't use constexpr for operator|=(wxPGSetValueFlags)
g++ 4.8 doesn't support this and while we could make this constexpr
conditional on the compiler/language version, for now just don't make it
constexpr to fix the build quickly.
2023-02-20 00:35:18 +01:00
Vadim Zeitlin
ed362b62f6 Commit another file with std::underlying_type_t<> changes
This should have been part of the parent commit.
2023-02-20 00:28:42 +01:00
Vadim Zeitlin
08be6a74b3 Get rid of more std::underlying_type_t<> occurrences
See the previous commit.
2023-02-20 00:23:17 +01:00
Vadim Zeitlin
b77233bf43 Yet another build fix after recent wxPropertyGrid changes
Stop using std::underlying_type_t<>, it's C++14 and not provided by g++
4.8 that is still supposed to be supported.

Just use int instead, it's not like we need all this heavy and verbose
stuff anyhow for an enum declared using int as the underlying type just
a few lines above.
2023-02-20 00:03:33 +01:00
Vadim Zeitlin
c6a18264e1 Fix signed/unsigned comparison warnings in wxPropertyGrid tests
Use size_t for a variable being compared with a size_t expression.
2023-02-19 23:47:08 +01:00
Vadim Zeitlin
b4ab8de248 Avoid deprecation warnings due to recent wxPropertyGrid changes
Rename the new overload of DoSetSplitterPosition() to use a different
name: not only this avoids deprecation warnings that broke all the CI
builds, but it also makes things more clear and simpler to use as all
the derived classes don't need to override both the deprecated overload
and the new one to avoid warnings about hiding a base class virtual
function and can just override the new one.

Also remove the default value "Refresh" for the flags which seems to be
inconsistent with the default value "Null" used elsewhere and prefer to
specify it explicitly.
2023-02-19 23:38:04 +01:00
Artur Wieczorek
74e599df7b Disable deprecation message 2023-02-19 23:36:59 +01:00
Artur Wieczorek
a22f5e97f9 Add missing header 2023-02-19 23:29:25 +01:00
Vadim Zeitlin
84ffb13c89 Fix compilation after last wxPropertyGrid change
Add missing "return" to deprecated HideProperty() overload to fix the
build with WXWIN_COMPATIBILITY_3_2 on after the changes of f1273ce152
(Use class enums to implement bitmask types, 2023-02-19).
2023-02-19 23:06:43 +01:00
Artur Wieczorek
5b1911523c Add more unit tests of wxPGVIterator 2023-02-19 22:36:40 +01:00
Artur Wieczorek
c9934cbd83 Fix wxPGVIterator used in wxPropertyGridManager
Empty wxPropertyGridPages should be skipped when iterator is incremented
from the last wxPGProperty on one page to the first property on the next
page.
Empty pages should be skipped also when ierator is initially set
to point the first property.

Closes #23273.
2023-02-19 22:36:30 +01:00
Artur Wieczorek
f1273ce152 Use class enums to implement bitmask types
To improve type safety of flags.
2023-02-19 22:36:21 +01:00
Artur Wieczorek
0c321cd039 Use literals instead of raw values 2023-02-18 18:59:05 +01:00
Artur Wieczorek
274a20bf65 Get rid of unnessary local variable 2023-02-18 18:50:09 +01:00
Artur Wieczorek
5704b87152 Fix updating value of item in wxPGArrayEditorDialog
Index of edited item can be retrieved from wxListEvent (is set by
associated wxListCtrl in wxEVT_LIST_END_LABEL_EDIT) and there is no reason
to determine it in a alternative way (what can be problematic).

Closes #23272.
2023-02-18 18:42:23 +01:00
Vadim Zeitlin
c871d749bd Disable erasing the overlay window background
This resulted in flicker when not using compositing (and should be an
optimization even when using it).
2023-02-17 15:13:58 +00:00
Maarten Bent
1e3c148b5f
Fix missing submodule in CI after Scintilla update
Remove scintilla from 'git diff' checks, since it doesn't recurse into submodules by default.
2023-02-15 00:20:20 +01:00
Maarten Bent
a72108c657
Enable loading legacy and external lexers
Remove unused DynamicLibraryImpl that was previously used for loading external lexers. This is now all done by LexillaAccess.
2023-02-14 22:52:29 +01:00
Maarten Bent
a968b375e1
Fix indentation in ScintillaWX::WndProc 2023-02-14 22:52:28 +01:00
Maarten Bent
2bf9083605
Use wxChar for wxSTC key events 2023-02-14 22:52:28 +01:00
Maarten Bent
73211659fc
Generate Xcode projects after Scintilla and Lexilla changes 2023-02-14 22:52:27 +01:00
Maarten Bent
9d3a24b8db
Add Lexilla to pbx template and makeprojects.py
Update paths and defines in wx.xcconfig.
Open in Xcode, copy scintilla and rename to lexilla. Then manually check the file for more scintilla usages and duplicate them for lexilla with the correct identifiers.
2023-02-14 22:52:27 +01:00
Maarten Bent
dd5ff3c59c
Update MSVS projects with Scintilla and Lexilla changes 2023-02-14 22:52:26 +01:00
Maarten Bent
b0385e498c
Rebake after bakefile changes 2023-02-14 22:52:26 +01:00
Maarten Bent
c8c254db1a
Update bakefile with Scintilla and Lexilla changes 2023-02-14 22:43:18 +01:00
Maarten Bent
e3622c0f2d
Update wxSTC code for latest Scintilla 2023-02-14 22:43:18 +01:00
Maarten Bent
2a18a04dee
Regenerate wxSTC files after Scintilla update
Add both the Scintilla and Lexilla iface to the script.
Remove unused LinkLexers code.

Allow to get the Lexilla version, and show it in the stc sample.
2023-02-14 22:43:18 +01:00
Maarten Bent
5d5facb3e7
Update CMake with Scintilla and Lexilla changes
Move Scintilla and Lexilla to separate files.
Extract their include paths and compile definitions instead of redefining them for wxSTC.
2023-02-14 22:43:17 +01:00
Maarten Bent
69287454d6
Add scintilla and Lexilla submodules
The submodules contain Scintilla 5.0.0 and Lexilla 5.0.1.
2023-02-14 22:43:17 +01:00
Maarten Bent
cc6ea97ece
Remove Scintilla and Lexilla sources 2023-02-14 22:43:17 +01:00
Vadim Zeitlin
d573815c1c Use transparent colour for clearing the layered window
This seems more clear than using a transparent brush.
2023-02-14 18:50:23 +00:00
Vadim Zeitlin
2a56ed336f Simplify the code even further and remove wxOverlayWindow
This class doesn't seem to be necessary at all, finally, we can just use
wxWindow directly, so do it to simplify the code and avoid using Win32
API directly.
2023-02-14 18:50:23 +00:00
Vadim Zeitlin
969d9b1108 Remove special logic for destroying wxOverlayWindow
It can be destroyed as any other window.
2023-02-14 18:50:23 +00:00