Commit Graph

65112 Commits

Author SHA1 Message Date
Stefan Csomor
88a15bea48 fixing graphics state stack error 2018-09-24 00:11:31 +02:00
Stefan Csomor
148732993a only use native NSImage dimension 2018-09-24 00:11:31 +02:00
Stefan Csomor
84f68aa764 Fixes and Cleanup 2018-09-24 00:11:31 +02:00
Stefan Csomor
e7d21f6638 Initial Commit of full native bitmap macOS implementation
Right now, to better test regressions, with dual implementation
2018-09-24 00:11:31 +02:00
Stefan Csomor
a5aa044a7b Update deprecation in docs 2018-09-24 00:11:31 +02:00
Stefan Csomor
87e9b3963e Fixing creation from CGContextRef
Our native buffer must be updated as well, otherwise RawAccess will fail
2018-09-24 00:11:31 +02:00
wxBen
efb52e7078 Fix ribbon panel size after calling Realize() again
Reset m_smallest_unminimised_size variable in Realize() before calling
GetPanelSizerMinSize() to prevent the latter from using the old value of
that variable, which could result in panel elements being cut off.

Closes #18226.
2018-09-23 16:04:58 +02:00
Vadim Zeitlin
1833c3d8e4 Add wxBitmap::operator=(wxImage) to wxMSW to resolve amboguities
Code doing "bitmap = image" compiled in the other ports, but not in
wxMSW with WXWIN_COMPATIBILITY_3_0==1 as there was an ambiguity between
converting wxImage to wxBitmap, as intended, or converting wxImage to
wxCursor and then assigning it to wxBitmap using operator=(wxCursor)
overload.

Resolve this ambiguity by providing operator=() overload taking wxImage
directly.

This fixes widgets sample compilation under MSW after the changes of
455a45f5a8

See https://github.com/wxWidgets/wxWidgets/pull/946
2018-09-23 15:51:26 +02:00
Blake-Eryx
f58ea62596 Remove (most) occurrences of wxT() macro from the samples
Also replace wxChar* with wxString.

Closes https://github.com/wxWidgets/wxWidgets/pull/945
2018-09-23 01:15:08 +02:00
Stefan Csomor
e768046774 fixing iOS builds with new SKDs 2018-09-22 17:30:37 +02:00
Vadim Zeitlin
6c1b2b23cf Fix field widths in wxStatusBar showing a size grip in wxGTK
Account for the size grip in DoUpdateFieldWidths(), otherwise the last
field overlapped it.
2018-09-22 16:36:05 +02:00
Vadim Zeitlin
9327a1f75c Update upmake to address bug with </if> in bakefile backend
Include fix from

89044c8082

to ensure that new files are added inside the <if> enclosing all the
files inside <set> in build/bakefiles/files.bkl.
2018-09-22 16:07:37 +02:00
Vadim Zeitlin
94c8179ef8 Merge branch 'more-wxoverride' of https://github.com/MaartenBent/wxWidgets
See https://github.com/wxWidgets/wxWidgets/pull/944
2018-09-22 14:44:08 +02:00
Maarten Bent
f666510cbb CMake: Add headers of demos and drawing test 2018-09-22 14:44:08 +02:00
Maarten Bent
a6f6f75d12 Fix white-space in demos 2018-09-22 14:44:08 +02:00
Maarten Bent
7c1ab06ea5 Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
Maarten Bent
a3eeb4d0be Revert wxAuiDefaultDockArt::DrawIcon API change
Mark the function as deprecated. It should not be part of the public API. It
cannot be overridden and manually calling it has no lasting effect because
DrawCaption calls it as well.

Closes https://github.com/wxWidgets/wxWidgets/pull/943
2018-09-22 14:44:00 +02:00
Vadim Zeitlin
455a45f5a8 Always create wxStaticBitmap in the widgets sample
Not creating it when the default image wasn't found resulted in a crash,
so always create wxStaticBitmap using a fallback bitmap if necessary.

Also add a wxCHECK_RET to prevent the crash from happening in a similar
situation in the future.
2018-09-22 14:33:29 +02:00
Václav Slavík
1cf981e243 Parse legacy weight in string font descriptions
Preserve compatiblity font descriptions serialized using
wxNativeFontInfo::ToString() in older versions of wxWidgets and load
them correctly, instead of asserting.

aedf89b098 originally did this, then
d355af3420 reversed it as "not needed".
Turns out it is, for old serializations.

Reverse d355af3420 and implement the same
backward compatible logic in wxOSX. wxMSW uses win32-native description
and doesn't need this.
2018-09-21 17:38:13 +02:00
Václav Slavík
ac6766c2fc Use numeric weight in wxFontBase::operator== 2018-09-21 17:38:13 +02:00
Paul Cornett
99565d0619 Fix checking for round()
Old check fails on current GCC/glibc with
"error: statement cannot resolve address of overloaded function"
2018-09-21 08:25:31 -07:00
Vadim Zeitlin
fa1af3405c Don't truncate addresses under Win64 in wxDebugReport
Avoid casting addresses to "long", as it can be smaller than pointer
size on some platforms and notably is under Win64.

Use wxUIntPtr instead, which is guaranteed to be large enough.

See https://github.com/wxWidgets/wxWidgets/pull/940
2018-09-20 23:23:53 +02:00
Thomas Pointhuber
d173ccdb96 Add additional informations stack in wxDebugReport
Always add offset and address of a stack element, even if there is no
symbolic function name, as this can still be helpful. If possible add
module as well.

Closes https://github.com/wxWidgets/wxWidgets/pull/940
2018-09-20 23:23:53 +02:00
Maarten Bent
7a8e314736 Fix clicking on drop down button in wxAuiToolBar on wxMSW
The code handling the mouse events assumed the drop down button with was
10px, but wxAuiMSWToolBarArt uses a different width (14px). So clicking
on the left-most 4 pixels was not registered as a drop down click.

Allow the get (and set) the width of the drop down button of the
ToolBarArt.

Increase the detection area for drop down events, because the drop down
button is drawn 1 pixel larger than the actual size.

Rename some variables where dropdown was used instead of overflow.

Closes https://github.com/wxWidgets/wxWidgets/pull/939
2018-09-20 23:23:53 +02:00
Mick Phillips
8a2dd7f18e Check for success of registry operations in wxJoystick code
Avoid reading wrong registry keys of REGSTR_VAL_JOYOEMNAME is not
available.

Closes https://github.com/wxWidgets/wxWidgets/pull/938
2018-09-20 23:23:53 +02:00
Václav Slavík
81ef669c6d Fix wxPreferencesPage rendering in macOS dark mode
In 10.14's dark mode, all views are layer-backed and the assumption that child
windows are redrawn with their parent may not be correct. Change Refresh() to
explicitly refresh child windows too.

Also explicitly refresh the page before showing it in wxPreferences, because
otherwise generic windows wouldn't be drawn correctly.
2018-09-20 19:19:15 +02:00
Václav Slavík
398e8744bd Fix TLW appearance in macOS 10.14's dark mode
Set toplevel window's background colour to the correct value of
NSColor.windowBackgroundColor (i.e. wxSYS_COLOUR_APPWORKSPACE). Without this,
the window's frame would be rendered slightly incorrectly, because of the way
the dark mode blends colors - even when no part of the window's interior, where
the background color would be used, is visible.
2018-09-20 19:19:15 +02:00
Václav Slavík
7564d7ff27 Add M_COLDATA access asserts to wxOSX
Similarly to wxGTK, check the color for validity before deferencing its ref data.
2018-09-20 19:19:15 +02:00
Václav Slavík
d3e35b6bb1 Fix wxUnknownControlContainer background handling
Don't set invalid background color. Don't set debugging magenta background
color, because it did more harm than good, particularly after
d255dc6706.
2018-09-20 19:19:15 +02:00
Václav Slavík
d4d6524c63 Silence warning building with macOS SDK < 10.14 2018-09-20 19:19:15 +02:00
Václav Slavík
7dfe9e05c6 Slightly improve wxStatusBar in macOS dark mode
Tweak text color to match the latest GM version. Add comment explaining
inadequacy of this approach.
2018-09-20 19:19:15 +02:00
Vadim Zeitlin
deb0c2566b Document the change to unknown options handling in configure
They used to be silently ignored, but are flagged as errors since
aa7e10bb09
2018-09-20 17:40:11 +02:00
Vadim Zeitlin
d663cd5641 Merge branch 'travis-toolkits' of https://github.com/MaartenBent/wxWidgets
Test all the 2nd (and even 3rd) tier ports on Travis CI too: run builds
using wxX11, wxQt, wxDFB and even wxMotif.

See https://github.com/wxWidgets/wxWidgets/pull/922
2018-09-20 13:55:01 +02:00
Maarten Bent
6b9a6d4446 Disable wxUIActionSimulator for wxDFB
Show used toolkit when disabling wxTooltip.
2018-09-19 22:03:00 +02:00
Vadim Zeitlin
b37bf78a0b Add file required by wxDFB 2018-09-19 22:03:00 +02:00
Maarten Bent
ce4363eb7c Add implementations for missing wxDFB functions 2018-09-19 22:03:00 +02:00
Maarten Bent
86d586222d Add missing wxFont constructor to wxMotif 2018-09-19 22:02:47 +02:00
Maarten Bent
837b7ca3e1 Fix ambiguous call to wxNotebook::DeletePage 2018-09-19 22:01:18 +02:00
Maarten Bent
7bf952165f Test success in BitmapTestCase::Mask() 2018-09-19 22:01:17 +02:00
Maarten Bent
a914478f60 Add guards around test cases 2018-09-19 22:01:17 +02:00
Maarten Bent
4a93c99aeb Use correct signature for Qt mouseEvent and keyEvent 2018-09-19 22:00:02 +02:00
Maarten Bent
a02df37fb8 All QFont enum values are available since Qt 5.5 2018-09-19 22:00:02 +02:00
Vadim Zeitlin
d2ab2ef442 Fix wxFont compilation with Qt 5.2
This version doesn't define all the font constants available in the
later Qt versions, so define our own symbols for them.
2018-09-19 22:00:02 +02:00
Maarten Bent
d3628d8373 Build more toolkits with Travis CI 2018-09-19 22:00:01 +02:00
Pavel Kalugin
54cf25a9ea Fix typo in event handling overview 2018-09-19 14:30:50 +02:00
Scott Furry
fd7f4dfe3d Implement wxComboBox::SetValue() in wxQt
Make setting combobox value work.
2018-09-19 00:25:08 +02:00
Scott Furry
019cf6e6f0 Move wxComboBox::Clear() out of line in wxQt
No real changes.
2018-09-19 00:25:08 +02:00
Scott Furry
4c0b919851 Make wxToolBar::Init() private in wxQt
No real changes, just keep private method out of the public part.
2018-09-19 00:25:08 +02:00
Vadim Zeitlin
f741031e69 Suppress gcc -Wfloat-conversion warning in wxFontInfo ctor
Add an explicit cast to avoid warnings when compiling with this option.

While just casting double to float is not the best idea, it seems quite
unlikely that anybody would pass a value outside of float range to this
ctor.
2018-09-18 15:57:43 +02:00
Vadim Zeitlin
9bd3de272a Merge branch 'mdi-window'
Fix handling of MDI "Window" menu under MSW when the translation of its
label changes during the program lifetime.

See https://github.com/wxWidgets/wxWidgets/pull/937
2018-09-18 14:16:04 +02:00