Vadim Zeitlin
ce45edcc51
Merge branch 'cmake-linux' of https://github.com/MaartenBent/wxWidgets
...
Various CMake checks improvements.
See https://github.com/wxWidgets/wxWidgets/pull/1037
2018-12-05 03:09:36 +01:00
Liam Treacy
928b00ad55
Fix setting initial value of wxSpinCtrl in wxQt
...
When creating a QSpinBox, the range must be set before setting the
initial value as otherwise setting it would fail if it were outside of
the default [0, 99] range.
This fixes a test failure in the corresponding unit test.
Closes https://github.com/wxWidgets/wxWidgets/pull/1041
2018-12-05 03:05:27 +01:00
Liam Treacy
94a58121f7
Fix crash on setting the accelerator table in wxQt
...
Check whether m_qtShortcuts is non-null before dereferencing it.
Closes https://github.com/wxWidgets/wxWidgets/pull/1040
2018-12-05 03:04:17 +01:00
Liam Treacy
5e089badc0
Fix bitmap accessor for the buttons in wxQt
...
Return the bitmap previously set with SetBitmap().
This fixes unit tests using GetBitmap().
Closes https://github.com/wxWidgets/wxWidgets/pull/1035
2018-12-05 03:00:49 +01:00
Liam Treacy
29f771ab82
Add support of wxFONTSTYLE_SLANT to wxFont in wxQt
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1034
2018-12-05 02:57:40 +01:00
Liam Treacy
16c121d4d3
Implement [GS]etLabel() for wxStaticText and wxCheckBox in wxQt
...
This allows the corresponding unit tests to pass.
Closes https://github.com/wxWidgets/wxWidgets/pull/1033
2018-12-05 02:55:54 +01:00
Vadim Zeitlin
7e22ddd27c
Merge branch 'qt_menubar' of https://github.com/GeoTeric/wxWidgets
...
Improve radio menu items support in wxQt and make the menu unit tests
pass for it, although some of them had to be disabled.
See https://github.com/wxWidgets/wxWidgets/pull/1030
2018-12-05 02:53:37 +01:00
Daniel Collins
4726819484
Rotate wxNotebook tabs label under wxGTK to match other ports
...
wxMSW and wxOSX/Cocoa show the labels vertically for the tabs positioned
on the left- or right-hand side of wxNotebook, but wxGTK showed them
horizontally.
Bring it in sync with the other ports by rotating the labels to draw
them vertically as the other ports do in wxGTK too.
Closes https://github.com/wxWidgets/wxWidgets/pull/1032
2018-12-05 02:48:45 +01:00
Vadim Zeitlin
dbd46881e6
Fix links to installation instructions in README-GIT.md
...
The extensions of these files have changed from .txt to .md, see
1b5e3649e5
Closes #18282 .
2018-12-04 15:18:24 +01:00
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
Maarten Bent
e984857b0e
CMake: Improve webview checks
...
Try to match behavior of configure.
Fix building webview sample with STC disabled.
2018-12-03 00:20:38 +01:00
Maarten Bent
8192d507e3
CMake: Fix wx-config include dirs
2018-12-02 17:45:43 +01:00
Maarten Bent
c0544afcd7
CMake: Improve installation on Linux
...
Install setup header, wx-config and wxrc. Make wx-config executable.
Add renamed files and symbolic links to uninstall target.
2018-12-02 17:45:43 +01:00
Maarten Bent
c80aecbfc1
CMake: Put include and link commands on one line
...
Use correct check for LIBICONV.
2018-12-02 17:45:43 +01:00
Maarten Bent
29666f1d91
CMake: Fix wxscintilla with precompiled headers and clang
...
The problem also occurs on Linux.
2018-12-02 17:45:35 +01:00
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