Maarten Bent
5282f92f8f
CMake: Silence OpenGL policy warning
2018-12-02 17:45:34 +01:00
Maarten Bent
271ed4d990
CMake: Support SDL audio back-end
...
Rename UNIX_SOUND_SRC_SDL to UNIX_SOUND_SDL_SRC to match the
signature of other variables (ending with _HDR or _SRC).
2018-12-02 17:45:32 +01:00
Maarten Bent
97f64e9941
CMake: Build the webextensions plugin
2018-12-02 03:23:02 +01:00
Maarten Bent
1c5cbe0a61
CMake: Add support for webkit2
2018-12-02 03:21:33 +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
Richard Smith
69c19f29ca
Restore menu tests, excluding QT where appropriate.
2018-11-22 22:32:08 +00:00
Cătălin Răceanu
74f60d90a6
Update src/qt/menuitem.cpp
...
Co-Authored-By: evileye-uk <evileye@telperion.co.uk>
2018-11-22 12:38:29 +00:00
Richard Smith
902ce48189
Remove duplicated code.
2018-11-22 10:35:40 +00:00
Richard Smith
82f8fad240
Split out test which will not work on QT, and fix insertion behaviour of radio menu items.
2018-11-22 10:22:39 +00:00
Richard Smith
bfad2a5425
Fix menu first radio button state and synchronise state changes.
2018-11-21 16:02:33 +00:00
Richard Smith
6b7b43d1fe
Get WxQt menu titles passing GUI tests
2018-11-21 12:58:23 +00: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