Commit Graph

59339 Commits

Author SHA1 Message Date
Vadim Zeitlin
d24f711f88 Only link webview library with libwebkitgtk in wxGTK, not the core one.
Add EXTRALIBS_WEBVIEW similar to the existing EXTRALIBS_MEDIA and such and set
it in configure instead of adding libwebkitgtk and dependent libraries
directly to GUI_TK_LIBRARY.

This ensure that the core library doesn't have any dependencies on
libwebkitgtk which it doesn't need.

Closes #16624.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-16 13:33:08 +00:00
Julian Smart
cf72b6c111 Don't calculate refresh optimizations if we're not going to use them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-16 10:13:48 +00:00
Paul Cornett
c808bbb4d7 update code to match 3.0 branch after r78023
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-15 16:56:17 +00:00
Vadim Zeitlin
0bb7676889 Disable surrogate-related unit test for MSW.
This test can't work when the in-memory representation is UTF-16, as we can't
convert surrogates to anything else in this case.

This fixes the unit tests broken since r76622, see #16298.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-14 19:36:51 +00:00
Vadim Zeitlin
f99ff49e29 Don't end converting prematurely on encountering consecutive NULs.
Don't stop converting subsequent chunks just because the length of one of them
was 0: this can happen if the first character of a string is a NUL or if there
are two (or more) NULs in it later.

Simply remove the check for this and continue as usual even in this case.

Also add a unit test verifying that we do translate NULs in input into NULs in
output.

Closes #16620.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-14 19:36:46 +00:00
Vadim Zeitlin
c66c12aa63 Fix typo in a comment in wxSpinCtrlGenericBase::Create().
s/satisfy/specify/ to give some sense to this comment.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-14 19:23:27 +00:00
Vadim Zeitlin
1c9709d2c0 Spanish translations update from Miguel Giménez.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-14 13:40:32 +00:00
Václav Slavík
de0c7f725d Add support for template NSImages to wxBitmap
wxBitmap uses CGImage instead of NSImage internally and the conversion
looses NSImage metadata.  In particular, it looses the "template"
attribute, which is set for files ending with "Template" and loaded
trough wxArtProvider.

This change makes it easy to use template images with native controls
such as the toolbar.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-14 08:53:11 +00:00
Vadim Zeitlin
1f6fae0f3f Define unambiguous Is{List,Text}Empty() in wxOwnerDrawnComboBox.
Like in wxComboBox itself, it's useful to provide these methods to avoid
problems with ambiguous IsEmpty(), inherited from both wxTextEntry and
wxItemContainer.

Closes #16618.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-13 12:08:10 +00:00
Artur Wieczorek
b10b027423 Fix clearing wxPG
Properties deleted immediately in wxPropertyGridPageState::DoClear() should be first removed from the lists of pending deletions.

Closes #16617

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-13 07:19:58 +00:00
Vadim Zeitlin
96c301bb71 Fix calling wxFileHistory::Load() more than once.
Don't add all the items in the history to the menu again, remove the old ones
if we had already added them.

Closes #16588.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-12 20:48:56 +00:00
Vadim Zeitlin
c0548a02fd Fix vertical cell alignment in wxDataViewCtrl in wxGTK.
Pass the alignment used when creating the column to the renderer.

Closes #16035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-12 20:48:52 +00:00
Vadim Zeitlin
ad0a1fb717 Update MSVS 2010+ remarks in wxMSW installation notes.
Document wx_local.props instead of the old and not existing any more
wx_vcN_local.props.

Also mention that wx/msw/setup.h can be linked to wx/msw/setup0.h instead of
being a copy of it.

Closes #16597.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-12 20:48:46 +00:00
Vadim Zeitlin
b9e0e606a8 Add support for 'z' size format specifier.
Assume that non-MSVC compilers support it directly and use 'I' for MSVC.

Closes #16596.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-12 20:48:41 +00:00
Vadim Zeitlin
af1191ab99 Fall back to executable file name in wxApp::GetAppName().
This is especially useful when wxWidgets is used as part of another library
and is not initialized with the real argc/argv containing the application
name.

Closes #16615.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-12 20:48:36 +00:00
Vadim Zeitlin
793187de9d Add wxART_FULL_SCREEN icon.
Use stock GTK+ icon in wxGTK and Tango icon elsewhere.

See #2662.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 16:30:06 +00:00
Vadim Zeitlin
2f51147732 Fix resource compiler include path for Borland.
Explicitly include $(BCCDIR)/include/windows/sdk directory in the resource
compiler options, as it needs it to find windows.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 16:30:00 +00:00
Vadim Zeitlin
030c155c28 Compilation fix for Borland overload selection bug.
Avoid the following bogus compiler error:

Error E2015 ..\..\src\common\filename.cpp 2589: Ambiguity between 'wxFileName::Exists(int)
 const at ..\..\src\common\filename.cpp:777' and 'wxFileName::Exists(const wxString &,int)
 at ..\..\src\common\filename.cpp:790' in function wxFileName::SetPermissions(int)

by using an unambiguous overload.

See #16592.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 16:29:37 +00:00
Vadim Zeitlin
0fb7f1cd0b Compilation fix for Borland compiler bug with ternary operator.
Don't use ?: operator with references, Borland wrongly deduces the common type
as being an object in this case, so use pointers instead and dereference later.

See #16592.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 16:29:33 +00:00
Vadim Zeitlin
2df4b4505e Update release instructions to mention tagging the release.
Also remove the reference to the non-existing "next section" and a couple of
other minor changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-11 16:29:29 +00:00
Vadim Zeitlin
3a4cea5b20 Fix excessive height of wxSlider with labels but no ticks in wxMSW.
We shouldn't add the label height to the control best height as the labels are
positioned at the same vertical level as the main part of the control.

See #16604.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-09 15:37:45 +00:00
Mariano Reingart
9622023abc Fix invalid listctrl imagelist assert in wxQT
This reverts the bug introduced in r77935, now the list control sample works again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-09 04:44:54 +00:00
Mariano Reingart
5a6ec20ebc Support frameless taskbarless dialogs in wxQt
* Moved frameless hint to window, checking border
 * Removed duplicate code in wxFrame and asserts that were preventing AUI to work

Thanks to @seandepagnier for the original patch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-09 04:23:05 +00:00
Julian Smart
8c56462500 Corrections to HasCharacterAttributes, HasParagraphAttributes
EditProperties functions don't try to change read-only content
Page up/down behaviour now takes into account margins and scale
Transparency and y poition corrections to field labels


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-08 10:29:01 +00:00
Vadim Zeitlin
e762c4ce83 Check that there are no uncommitted changes in the release script.
Any such changes wouldn't be included in the release, which is probably
unexpected.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-06 21:50:20 +00:00
Vadim Zeitlin
e212ac8591 Don't export private wxDisplayImplX11 class.
This class is only used internally and doesn't need to be exported. In
addition to being unnecessary, this also resulted in ABI compatibility check
errors after changes to this class in 3.0 branch, so avoid such problems in
the future.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-02 23:49:20 +00:00
Vadim Zeitlin
cf33b058d9 Fix wxMSW build in UTF-8 build.
Need an explicit cast to convert the buffer returned by wxString::t_str() to a
pointer in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-02 14:35:53 +00:00
Václav Slavík
a404093ec8 Fix warning when compiling against OS X 10.10 SDK.
Something broke NSApp compatibility object in 10.10 and its setDelegate:
expects NSFileManagerDelegate, not NSApplicationDelegate, and the
compiler warns about. Use the equivalent [NSApplication
sharedApplication] object to fix this.

Also cast appcontroller to the expected type, because passing untyped
object to setDelegate: yields a warning as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-02 10:36:28 +00:00
Paul Cornett
87f55e5d14 avoid Gtk-WARNING about negative allocation size with GTK3, closes #16563
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 17:32:29 +00:00
Mariano Reingart
7ccffa24be Allow setting font and brush in DC when the qt painter is not active in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:26:50 +00:00
Mariano Reingart
e3f67c52ee Fix listctrl base window pointer in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:23:36 +00:00
Mariano Reingart
3b12797953 Improve specific listctrl wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:21:26 +00:00
Mariano Reingart
47547703f7 Remove redundant __WXQT__ define, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:18:49 +00:00
Mariano Reingart
0435721b3e Implement readonly dcscreen for wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:16:57 +00:00
Mariano Reingart
fa98a771e3 Copy pixmap to match others ctors in wxQT, thanks @seandpagnier
This should fix a double free crash

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:14:17 +00:00
Mariano Reingart
0f5be542ae Correct window transparency calculation in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:11:48 +00:00
Mariano Reingart
9348ec2ba9 Add inverted flag support to slider in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:10:53 +00:00
Mariano Reingart
61bcfe59c3 Improve wx->qt filter mapping logic in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:08:02 +00:00
Mariano Reingart
aceb68f48b Improve slider implementation in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:03:29 +00:00
Mariano Reingart
740bcdc81a Block qt signals when manually setting value to avoid emitting an event in wxQT, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:01:13 +00:00
Mariano Reingart
fdc2433ede Fix case where widgets may get hidden by qt, thanks @seandpagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:58:40 +00:00
Mariano Reingart
93732aba36 Enable mouse tracking in wxQT, thanks @seandepagnier
This is needed so qt mouse events are triggered without a button pressed.
Note that I modified this to prevent a crash if m_qtWindow was null (reproducible with controls sample and the original patch from Sean)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:56:33 +00:00
Mariano Reingart
9c9d6e8481 Implement abstract class for wxuniversal in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:50:34 +00:00
Mariano Reingart
7940e70f51 Remove unused event table in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:49:29 +00:00
Mariano Reingart
6a3bdf5f66 Support native font info in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:43:31 +00:00
Mariano Reingart
cd0e3b9ba4 Implement more statusbar routines in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:20:28 +00:00
Mariano Reingart
8ef86dc3fc Fix wxControl rtti info in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:18:44 +00:00
Mariano Reingart
30184d9f4a Fix elliptic arc drawing for complete circle in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:17:30 +00:00
Mariano Reingart
2c8b781550 Discard repeated keyup events in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:16:03 +00:00
Mariano Reingart
ab7e49deb8 Allow SetFont to be called before Create in wxQT, thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:12:59 +00:00