Commit Graph

65249 Commits

Author SHA1 Message Date
Daniel Kulp
727a100a6a Handle wxEVT_SYS_COLOUR_CHANGED in wxAUI classes
Update the colours used when the system theme changes.

This is especially important to use the colour scheme compatible with
macOS 10.14+ dark mode.

Note that this commit is best viewed with "git diff --color-moved".

Closes https://github.com/wxWidgets/wxWidgets/pull/916
2018-12-03 19:48:32 +01:00
Stefan Ziegler
974b7c0990 Add wxToolbook::EnablePage()
Add functions to enable or disable pages inside wxToolbook.

Using the new functions you can present disabled icons so that the user
can expect more functionality and you do not need to add/remove pages in
different states.

Closes https://github.com/wxWidgets/wxWidgets/pull/1038
2018-12-03 19:42:45 +01:00
Stefan Csomor
58f3dcf780 fixing macOS sound crash
make sure no completion call gets triggered after this point
2018-12-03 14:42:27 +01:00
Vadim Zeitlin
e9fb190ed7 Merge branch 'warnings-deprecated' of https://github.com/MaartenBent/wxWidgets
Fix some warnings; replace deprecated constants and trim white spaces.

See https://github.com/wxWidgets/wxWidgets/pull/1031
2018-11-30 16:09:24 +01:00
Maarten Bent
2f78849d24 Fix build without precompiled headers 2018-11-26 23:51:40 +01:00
Maarten Bent
3bab07edcf Fix some build warnings
private field 'm_dwCookie' is not used
'return' will never be executed
result of comparison of unsigned enum expression < 0 is always false
'FlushDC' overrides a member function but is not marked 'override'
potentially uninitialized local variable 'bound' used
2018-11-25 21:29:38 +01:00
Maarten Bent
bcf53d6b96 Fix extra semicolon warnings 2018-11-25 21:29:37 +01:00
Maarten Bent
eb23d4735c Fix unannotated fall-through warnings 2018-11-25 21:29:37 +01:00
Maarten Bent
39ff5b90e5 Replace wxDeprecatedGUIConstants enum values 2018-11-25 21:29:32 +01:00
Maarten Bent
86c49283f5 Remove trailing spaces 2018-11-25 20:22:25 +01:00
Teodor Petrov
5b0dcfec83 Add wxArrayString pretty printer for gdb
Closes #18276.
2018-11-24 16:34:25 +01:00
Glen Fletcher
ae1fa08188 Add C++17 to the list of supported C++ Standards in CMake build
Allow building with set(CMAKE_CXX_STANDARD 17).

Closes https://github.com/wxWidgets/wxWidgets/pull/1029
2018-11-20 22:22:01 +01:00
Maarten Bent
c9318f2f64 Update vcxproj files with new tiff files
Closes https://github.com/wxWidgets/wxWidgets/pull/1028
2018-11-20 21:34:59 +01:00
Artur Wieczorek
f71e8d077f Show read-only and not read-only wxODComboBox and wxComboBox in the sample
Extend the sample to compare disabled read-only and disabled not read-only combo boxes.

See #3383.
2018-11-20 21:11:57 +01:00
Vadim Zeitlin
1567632974 Merge branch 'msw-art-big-icons'
Add support for big icons to the MSW art provider.

See https://github.com/wxWidgets/wxWidgets/pull/1025

Closes #18248.
2018-11-20 17:58:19 +01:00
oneeyeman1
1c06a62830 Implement dropdown and popup events for wxComboBox on Qt
Closes https://github.com/wxWidgets/wxWidgets/pull/1005
2018-11-20 17:38:36 +01:00
Vadim Zeitlin
ea28f00cb8 Do load SHDefExtractIcon() during run-time for old MinGW
The problem with MinGW 5.3 is not just due to the missing function
declaration in the header, but also due to the function missing from
libshell32.a import library, so we do need to load it during run-time,
contrary to what the comment in the previous commit said.

This should finally fix MinGW build.
2018-11-20 15:29:43 +01:00
Vadim Zeitlin
a1adc2efa4 Merge branch 'textctrl_qt' of https://github.com/oneeyeman1/wxWidgets
Implement support for wxTE_PASSWORD and MarkDirty()/DiscardEdits() in
wxQt.

See https://github.com/wxWidgets/wxWidgets/pull/1026
2018-11-20 14:13:45 +01:00
Vadim Zeitlin
f7514dc79d Suppress harmless gcc -Wfloat-equal in wxNumValidator code
Exact comparison with 0 here is fine, so just disable the warning for
this code.

Closes #18271.
2018-11-20 14:11:53 +01:00
oneeyeman1
add8e8804b Follow up with the PR comments 2018-11-20 05:51:29 -05:00
Vadim Zeitlin
0308596e92 Use real email address for Markus Juergens
See #18248.
2018-11-19 16:17:05 +01:00
Vadim Zeitlin
99247910b9 Declare SHDefExtractIcon() if it's missing from (MinGW) headers
At least the MinGW 5.3 used for AppVeyor builds doesn't declare this
function, so provide its declaration ourselves to fix MinGW build after
the recent changes.
2018-11-19 16:14:58 +01:00
oneeyeman1
a245c0af1e Implement modification flag on text control for wxQt 2018-11-18 23:40:05 -05:00
oneeyeman1
f790ccee6f Implement Password style for text control under wxQt 2018-11-18 23:19:45 -05:00
Vadim Zeitlin
3169524864 Don't destroy the HICON returned by SHDefExtractIcon() twice
Surprisingly, this doesn't seem to result in any ill effects, but
passing HICON to wxIcon already ensures that this HICON will be
destroyed in wxIcon dtor, so we shouldn't call ::DestroyIcon() on it
manually.
2018-11-18 23:10:07 +01:00
Vadim Zeitlin
8e740c69cd Initialize icon using InitFromHICON() instead of CreateFromHICON()
The former avoids an unnecessary call to ::GetIconInfo() done by the
latter to retrieve the icon size, as we already have the size here.
2018-11-18 23:09:01 +01:00
Vadim Zeitlin
262124ca1b Remove unnecessary bitmap size check in wxWindowsArtProvider
This "sizeNeeded" is always fully specified as we explicitly use a
fallback size if the input size wasn't, so there is no need for checking
this.
2018-11-18 22:47:29 +01:00
Vadim Zeitlin
49d8491518 Refactor the code to use a wrapper for SHDefExtractIcon()
Avoid duplicating the same code in MSWGetBitmapForPath() and
CreateBitmap().

This also incidentally fixes SHDefExtractIcon() return value check,
which was inverted, in MSWGetBitmapForPath().
2018-11-18 22:43:17 +01:00
Markus Juergens
8698d69c77 Return the best-sized icons from wxWindowsArtProvider
Use SHDefExtractIcon() to retrieve the most appropriately-sized icon
instead of always getting either the small or the large icon and then
scaling it ourselves to make it of the right size.

This results in incomparably better results for large icon sizes, e.g.
256*256, as can be seen in the artprov sample.
2018-11-18 22:34:40 +01:00
Markus Juergens
880b2b0a46 Use icons of correct sizes for wxART_FOLDER in wxMSW
Don't restrict the sizes to just small or large icons but extract the
icon closest to the requested size using SHDefExtractIcon().
2018-11-18 21:16:00 +01:00
Markus Juergens
d5cd939db7 Use native art for PRINT and XXX_FILE art IDs under MSW
These art IDs have natural native equivalents, so do use them.
2018-11-18 20:58:57 +01:00
Vadim Zeitlin
303fa4b3ef Minor cleanup in the "artprov" sample after the previous commit
Use the standard wxWidgets camelCase naming convention instead of
snake_case and fix some style inconsistencies.

No real changes.
2018-11-18 20:55:09 +01:00
Markus Juergens
cb8b6009d5 Add a size selection choice to the "artprov" sample
This will allow to test support for larger icons when it is added in the
upcoming commits.
2018-11-18 20:49:34 +01:00
imReker
bdca91c629 Fix i18n URL parsing problem in wxWebViewArchiveHandler
URL is encoded as UTF-8, so using c_str() may generate invalid encoded
representation in non-UTF-8 locales.

Closes https://github.com/wxWidgets/wxWidgets/pull/1022
2018-11-18 20:42:16 +01:00
Artur Wieczorek
c913f4a3df Update mailmap 2018-11-18 15:54:18 +01:00
Vadim Zeitlin
69b837cabf Merge branch 'multi-fallback-langs'
Closes https://github.com/wxWidgets/wxWidgets/pull/1006
2018-11-18 01:47:12 +01:00
Vadim Zeitlin
20b02d6169 Rename new wxTranslations method to GetAcceptableTranslations()
This name seems to be more precise than a very generic "all good" one
used previously.
2018-11-18 01:47:12 +01:00
Lauri Nurmi
2d784da2ee Load catalogs for all preferred languages, if they exist
This way the first and only fallback language isn't necessarily the
msgid language (which is English most often). This is how GNU gettext
works -- it uses multiple fallback languages when multiple preferred
languages are set.

As a side effect, fixes #18227 in one possible way.
2018-11-18 01:47:12 +01:00
Lauri Nurmi
5d08e404c7 Allow getting all usable translations languages
Add a method to return the full list of translations that can be used,
generalizing the existing GetBestTranslation().
2018-11-18 01:47:12 +01:00
Vadim Zeitlin
4099e75edb Add property sheet to allow easily configure projects using wx
This seems to be the simplest possible way to let a MSVS project use the
library.
2018-11-18 01:05:10 +01:00
Vadim Zeitlin
a28b48ffe1 Fix formatting in MSW install instructions
Use backticks around _UNICODE to avoid the special meaning of "_" in
Markdown.

Also use backticks around a couple of other identifiers/paths for
consistency.
2018-11-18 01:05:10 +01:00
Maarten Bent
660fbca82d CMake: Add include directories and libraries for all packages
lzma.h could not be found when building with wxUSE_LIBLZMA on macOS. Add
the found include directories and libraries from find_package(LibLZMA)
to the base library.

For consistency, add the include directories and libraries of all
find_package usage.

Closes https://github.com/wxWidgets/wxWidgets/pull/1024
2018-11-18 01:01:28 +01:00
Vadim Zeitlin
8dbebf9164 Merge branch 'update_submodules' of https://github.com/MaartenBent/wxWidgets
Update all 3rd party libraries to the latest versions.

See https://github.com/wxWidgets/wxWidgets/pull/1023
2018-11-18 01:00:13 +01:00
Maarten Bent
27d7dd3f00 Update catch submodule 2018-11-17 19:10:45 +01:00
Maarten Bent
4ddd4cc68d Improve updating third party library documentation
Add a section about updating the build files.
2018-11-17 19:08:43 +01:00
Maarten Bent
aa8ce7acb1 Include minor version in jpeg library version info 2018-11-17 19:08:42 +01:00
Maarten Bent
ec4b71afa0 Update tiff submodule
Add the new files to the build system. Disable support for webp and zstd
because we do not want to depend on external libraries.
2018-11-17 19:08:40 +01:00
Maarten Bent
9b8ed6a021 Update png submodule 2018-11-17 19:06:32 +01:00
Maarten Bent
c0febe1fce Update expat submodule 2018-11-17 19:05:12 +01:00
Paul Cornett
29bd2c9274 Don't avoid stock items with GTK+3
They still work fine with GTK+3, we just have to avoid them with GTK+4
2018-11-16 23:31:30 -08:00