Commit Graph

70018 Commits

Author SHA1 Message Date
Graham Dawes
ac55d06bc1 Fix a crash when setting a menu icon to a null bitmap in wxQt
Previous implementation didn't take into account that
wxBitmap::GetHandle() could return NULL for wxQt. Specifically when
wxBitmap::IsNull returns true.

Closes https://github.com/wxWidgets/wxWidgets/pull/1071
2018-12-12 18:14:45 +01:00
Graham Dawes
331dc1fdfe Change wxFont::GetEncoding to return UTF8 for wxQt
QT doesn't have the concept of font encoding and is generally Unicode
aware throughout. The previous implementation of wxFont::GetEncoding for
wxQT returned a nonsensical value.

Closes https://github.com/wxWidgets/wxWidgets/pull/1070
2018-12-12 18:13:54 +01:00
Graham Dawes
6c5c9e578b wxCarioContext:Flush now draws back to the QT image
wxCairoContext::Flush was flushing back to the internal image but this
image wasn't drawn back to the QPainter until the wxCarioContext
instance was destroyed.

This fix ensure that after a call to Flush, anything drawn by Cario is
drawn back to the QImage.

Closes https://github.com/wxWidgets/wxWidgets/pull/1068
2018-12-12 18:12:36 +01:00
Vadim Zeitlin
3a24beca62 Document that wxDataViewCtrl now always expands its last column
This has been changed back in 4156e1a5c9
and is a (mildly) incompatible change, so document it in the appropriate
change log section.

See #18295.
2018-12-12 18:01:41 +01:00
Liam Treacy
e7260cffe0 Fix wxRadioBox::Show() behaviour in wxQt
If a QGroupBox is not visible, then you cannot set any of items to be
visible. Update the implementation to match that expected by wx.

Closes https://github.com/wxWidgets/wxWidgets/pull/1065
2018-12-12 03:23:24 +01:00
Liam Treacy
418a1b747e Select first item of wxRadioBox by default in wxQt too
Follow the other ports and select the first radio box item when it's
created, to ensure that it always has selection.

See https://github.com/wxWidgets/wxWidgets/pull/1065
2018-12-12 03:21:17 +01:00
Tobias Taschner
68cbd54db0 Update since version 2018-12-10 21:09:47 +01:00
Liam Treacy
2a64b65149 Fix enabling radiobox buttons in wxQt
If a QGroupBox is disabled, then you cannot set any of its items to be
enabled without first enabling it. Enabling/disabling it will set that
value (true/false) on all of its items, although setting the QGroupBox
to an enabled state which it already has does not result in this
behaviour.

Fix wxQt to match the expected wxRadioBox behaviour and allow the unit
test to pass.

Closes https://github.com/wxWidgets/wxWidgets/pull/1064
2018-12-10 19:52:22 +01:00
Liam Treacy
91a87e765b Don't omit "int" in wxQt wxRadioBox::GetCount() signature
No real changes, just use "unsigned int" instead of just "unsigned".

See https://github.com/wxWidgets/wxWidgets/pull/1064
2018-12-10 19:51:52 +01:00
Stefan Ziegler
0c2956be09 Fix wxInfoBar close button size in high DPI
Don't apply the scaling factor twice when dynamically creating the close
button bitmap.

Closes https://github.com/wxWidgets/wxWidgets/pull/1063

Closes #18283.
2018-12-10 19:48:04 +01:00
Tobias Taschner
85c6fee7cf Add support for libcurl before version 7.28.0
Support older versions might be useful for older
linux distributions and could be used as a
possible fallback to macOS URLSession implementation
on macOS 10.7 and 10.8.
2018-12-10 19:38:17 +01:00
Tobias Taschner
5077eaee6c Expand button sizer in webrequest sample 2018-12-10 19:38:16 +01:00
Tobias Taschner
37df063a26 Implement POST requests with NSURLSession 2018-12-10 19:38:15 +01:00
Tobias Taschner
d477aade96 Use different method to get NSData bytes 2018-12-10 19:38:14 +01:00
Tobias Taschner
152e160f76 Initial NSURLSession implementation
First incomplete implementation based on NSURLSession
2018-12-10 19:38:13 +01:00
Tobias Taschner
45f006d752 Add wxWebSession::GetLibraryVersionInfo() 2018-12-10 19:38:12 +01:00
Tobias Taschner
4af4dd6cbf Init image handlers webrequest sample 2018-12-10 19:38:11 +01:00
Tobias Taschner
725e917ce8 Add webrequest sample to configure 2018-12-10 19:38:10 +01:00
Tobias Taschner
95264069ee Change creation order of mutex and condition 2018-12-10 19:38:09 +01:00
Tobias Taschner
d2420a064c Implement wxWebRequestCURL::Cancel() 2018-12-10 19:38:08 +01:00
Tobias Taschner
fe4a5343f7 Implement wxWebRequestCURL::GetBytesSent 2018-12-10 19:38:08 +01:00
Tobias Taschner
127b596ada Initial libcurl wxWebRequest implementation 2018-12-10 19:38:07 +01:00
Tobias Taschner
2fa38b1d26 Remove incompatible Storage:: specifier 2018-12-10 19:38:06 +01:00
Tobias Taschner
7577c95aab Destroy default wxWebSession in module 2018-12-10 19:38:05 +01:00
Tobias Taschner
f04094e4ec Implement GetBytesReceived() in base class 2018-12-10 19:38:04 +01:00
Tobias Taschner
ab544da1d2 Move GetBytesExpectedToReceive() impl to base class 2018-12-10 19:38:03 +01:00
Cătălin Răceanu
2f4be7e1ae Update src/common/webrequest.cpp
Co-Authored-By: TcT2k <TcT2k@users.noreply.github.com>
2018-12-10 19:38:02 +01:00
Cătălin Răceanu
58ad18adf3 Update samples/webrequest/webrequest.cpp
Co-Authored-By: TcT2k <TcT2k@users.noreply.github.com>
2018-12-10 19:38:01 +01:00
Cătălin Răceanu
0051bbd605 Update interface/wx/webrequest.h
Co-Authored-By: TcT2k <TcT2k@users.noreply.github.com>
2018-12-10 19:38:00 +01:00
Cătălin Răceanu
09bc378aad Update interface/wx/creddlg.h
Co-Authored-By: TcT2k <TcT2k@users.noreply.github.com>
2018-12-10 19:37:59 +01:00
Cătălin Răceanu
7a5916175d Update docs/doxygen/overviews/commondialogs.h 2018-12-10 19:37:58 +01:00
Tobias Taschner
00623291ac Use Content-Disposition in GetSuggestedFileName() 2018-12-10 19:37:56 +01:00
Tobias Taschner
f40e2e64d9 Add wxWebRequest::SplitParameters method
This method is adapted for use in wxWidgets from the Poco library.
2018-12-10 19:37:55 +01:00
Maarten Bent
028af93c35 Fix documentation types/inconsistencies 2018-12-10 19:37:54 +01:00
Tobias Taschner
e6b33cb76c Various small interface changes 2018-12-10 19:37:53 +01:00
Maarten Bent
17d77fe8ce Fix various small issues in webrequest sample 2018-12-10 19:37:52 +01:00
Tobias Taschner
56af6cbdee Implement Cancel for WinHTTP backend 2018-12-10 19:37:50 +01:00
Tobias Taschner
6bafed4ceb Add Cancel button to webrequest sample 2018-12-10 19:37:48 +01:00
Tobias Taschner
d32e27191d Implement advanced page in webrequest sample 2018-12-10 19:37:47 +01:00
Tobias Taschner
6a23c1342e CMake: Find CURL when wxUSE_WEBREQUEST_CURL is ON 2018-12-10 19:37:46 +01:00
Tobias Taschner
f64fbf0b4b Remove deprecated usage of wxRemove() 2018-12-10 19:37:45 +01:00
Tobias Taschner
22f1894266 Fix webrequest without precomp 2018-12-10 19:37:44 +01:00
Tobias Taschner
e9618ce657 Implement Download page in webrequest sample 2018-12-10 19:37:43 +01:00
Tobias Taschner
faa81dcdf1 Update documentation 2018-12-10 19:37:43 +01:00
Tobias Taschner
c24efa9821 Implement additional storage targets 2018-12-10 19:37:42 +01:00
Tobias Taschner
d4362f4bca Add wxWebResponse::AsString() test 2018-12-10 19:37:41 +01:00
Tobias Taschner
6530e3c08e Move response data handling to base class 2018-12-10 19:37:40 +01:00
Tobias Taschner
5660565081 Prepare wxWebRequest::SetStorage() implementation 2018-12-10 19:37:39 +01:00
Tobias Taschner
cf85c04d25 Add wxWebRequest progress methods 2018-12-10 19:37:38 +01:00
Tobias Taschner
871049f1a1 Implement wxWebResponse::GetMimeType() and GetSuggestedFileName() 2018-12-10 19:37:37 +01:00