]>
git.saurik.com Git - wxWidgets.git/log
Paul Cornett [Sat, 1 Dec 2012 22:14:36 +0000 (22:14 +0000)]
remove colour/pen/brush arguments which are the default in the samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73091
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 1 Dec 2012 00:14:54 +0000 (00:14 +0000)]
Use disabled colour for the dropdown arrow of disabled ribbon.
Previously the normal colour was used for the arrow in MSW art provider even
if the ribbon was disabled.
Closes #14864.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73086
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 1 Dec 2012 00:14:31 +0000 (00:14 +0000)]
Miscellaneous spelling and typo fixes in the documentation.
Closes #14866.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73085
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 1 Dec 2012 00:14:07 +0000 (00:14 +0000)]
Fix premature truncation of brief descriptions in Doxygen comments.
Don't end the brief description at the first period if it's a period which is
part of "i.e." or "e.g.": escape the space following it to prevent Doxygen
from recognizing it as an end of sentence.
See #14866.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73084
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 1 Dec 2012 00:13:40 +0000 (00:13 +0000)]
Fix documentation of wxGridBagSizer::Add() spacer overload.
Describe the width and height parameters.
See #14866.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73083
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 30 Nov 2012 22:28:11 +0000 (22:28 +0000)]
Interface fixes for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73070
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 30 Nov 2012 18:21:45 +0000 (18:21 +0000)]
simplify code to return from the end of the function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73068
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 30 Nov 2012 18:01:53 +0000 (18:01 +0000)]
indentation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73067
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 30 Nov 2012 06:56:50 +0000 (06:56 +0000)]
move wxGet{Colour,Font}FromUser() out of utilscmn.cpp so they don't have to be in every app that links statically
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73066
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Nov 2012 22:03:21 +0000 (22:03 +0000)]
Don't assert when stopping watching a just renamed file.
(Almost) silently ignore renames of the files which we don't watch any longer
instead of asserting if this happens.
Closes #14863.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73065
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Nov 2012 22:02:58 +0000 (22:02 +0000)]
Log invalid inotify() events without a valid watch descriptor.
Apparently we can get events without any valid watch descriptor, even though
this is not supposed to happen. At least warn about them.
See #14854.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73064
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 29 Nov 2012 22:02:36 +0000 (22:02 +0000)]
Correct handling of IN_Q_OVERFLOW in wxFileSystemWatcher Linux code.
Don't use wd field if it's -1 which can happen for IN_Q_OVERFLOW.
See #14854.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73063
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 29 Nov 2012 10:17:00 +0000 (10:17 +0000)]
Cope with the common case of utf-8 being specified in the .hhp file, and convert the book title.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73060
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 29 Nov 2012 07:53:21 +0000 (07:53 +0000)]
declare wxQsort in vector.h as well as utils.h to work around circular header dependency mess
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73058
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 29 Nov 2012 07:00:39 +0000 (07:00 +0000)]
Do not use GTKIsUsingGlobalMenu when compiled against gtk1.x
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73057
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 23:56:38 +0000 (23:56 +0000)]
Fix bezel used for bitmap buttons in wxOSX/Cocoa.
Don't use NSRoundedBezelStyle for bitmap buttons as this bezel has fixed
height. Instead, use NSRegularSquareBezelStyle which can used with buttons of
any size and is the correct bezel to use for the buttons mostly identified by
their icon according to Apple docs.
Notice that we still use the standard bezel for the "small" (where "small" is
arbitrarily defined by the hard coded 20 pixels height) icons as those are
usually used in addition to the text and not replacing it and so it makes more
sense to use the same bezel as for the normal buttons for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73056
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 23:56:16 +0000 (23:56 +0000)]
Select the entire spin control contents when changing its value.
Selecting the entire contents makes it more convenient for the user to enter
the new value.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73055
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 23:55:53 +0000 (23:55 +0000)]
Handle Shift-TAB correctly in wxOSX/Carbon wxComboBox.
The navigation event direction should depend on Shift key state.
See #3821.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73054
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 28 Nov 2012 20:57:59 +0000 (20:57 +0000)]
adding some additional fixes for programmatic selection handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73053
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 28 Nov 2012 17:14:35 +0000 (17:14 +0000)]
Compilation fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73052
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 15:42:18 +0000 (15:42 +0000)]
Compilation fixes after r73050.
See #14862.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73051
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 14:18:17 +0000 (14:18 +0000)]
Add "rect" paramerer to wxRichToolTip::ShowFor().
Allow to show the tooltip at the exact specified position instead of placing
it automatically.
Closes #14862.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73050
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 14:17:53 +0000 (14:17 +0000)]
Add missing wxUSE_OLE checks to safearray.cpp.
Fix compilation with wxUSE_OLE==0.
Closes #14860.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73049
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 28 Nov 2012 14:17:30 +0000 (14:17 +0000)]
Compilation fix for wxDocManager after r73004.
Define GetXXXVector() methods after all the classes are fully declared to
ensure that static_cast<> inside wxList::AsVector() they use compiles with the
OpenVMS compiler.
See #14814.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73048
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 28 Nov 2012 10:13:41 +0000 (10:13 +0000)]
support for inheriting non-standard attributes (explicit fonts instead of window variants), fixes #3583
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73047
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 28 Nov 2012 08:51:56 +0000 (08:51 +0000)]
supporting selection methods when not focused, closes #1480
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73046
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 27 Nov 2012 19:16:21 +0000 (19:16 +0000)]
simulating focus events, see #13495
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73045
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 27 Nov 2012 19:09:41 +0000 (19:09 +0000)]
support for simulating focus events since not all controls can be focused
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73044
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 27 Nov 2012 13:23:46 +0000 (13:23 +0000)]
emulating wx' focus-lost behavior
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73043
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 27 Nov 2012 13:22:26 +0000 (13:22 +0000)]
spell error fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73042
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 27 Nov 2012 08:29:24 +0000 (08:29 +0000)]
workaround, see #14856
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73041
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 27 Nov 2012 07:42:19 +0000 (07:42 +0000)]
Fix OpenVMS makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73040
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 27 Nov 2012 01:19:31 +0000 (01:19 +0000)]
More interface fixes for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73029
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 23:53:44 +0000 (23:53 +0000)]
Compilation fix to docview sample after r73004.
Don't use wxDocManager::GetDocumentsVector() with VC6 which doesn't have it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73028
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 26 Nov 2012 18:30:08 +0000 (18:30 +0000)]
disconnect "toggled" signal in dtor when style has wxALIGN_RIGHT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73027
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 26 Nov 2012 17:53:01 +0000 (17:53 +0000)]
fix for GTK assert after r72696, a draw/expose_event signal may also be attached to parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73026
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 15:51:04 +0000 (15:51 +0000)]
Disable CallAfter() for MSVC 7 too, it can't compile this code.
It was already disabled for VC6 but VC7 doesn't compile this code neither, so
disable it for this compiler as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73025
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 15:50:37 +0000 (15:50 +0000)]
Bracket vararg macro definition with wxHAS_VARIADIC_MACROS.
This should fix tests compilation with VC6.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73024
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 13:50:13 +0000 (13:50 +0000)]
Another Nepalese translations update.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73023
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 13:14:39 +0000 (13:14 +0000)]
Fix wxALWAYS_SHOW_SB behaviour in wxGTK.
Don't show the scrollbar always if it's not enabled at all, i.e. if the
corresponding wxHSCROLL or wxVSCROLL style is not specified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73022
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 13:14:15 +0000 (13:14 +0000)]
Fix harmless warning about uninitialized variable in fswatcher sample.
Just always initialize it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73021
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 26 Nov 2012 13:13:47 +0000 (13:13 +0000)]
Fix warnings about using type attribute on forward declaration.
This results in many, many warnings in OS X build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73020
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 23:18:20 +0000 (23:18 +0000)]
Fix wxGenericListCtrl scrolling by not processing the events twice.
Scrolling wxGenericListCtrl was broken since r72939 because its OnScroll()
event handler explicitly called wxScrollHelper::HandleOnScroll() which was
also called by the base class ProcessEvent().
Arguably, wxScrollHelper::ProcessEvent() should be updated to allow handling
events directly like this by not processing it again if the event wasn't
skipped but for now just do skip the event and let the default handling take
place which at least makes wxGenericListCtrl work correctly again.
Closes #14852.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73019
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 23:17:56 +0000 (23:17 +0000)]
Fix TAB navigation in wxGTK broken by r72663.
Don't call SetCanFocus(true) for container windows with focusable children,
this doesn't play well at all with wxGTK focus handling and in particular
totally disabled TAB navigation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73018
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 23:17:33 +0000 (23:17 +0000)]
Restore generic GetPartialTextExtents() version use in wxGTK and wxMSW.
Non-wxWindowDC-derived wxDC classes in wxGTK, such as wxGtkPrinterDCImpl, have
to fall back on the generic implementation of GetPartialTextExtents() as Pango
version can't be used with them.
This fixes a crash due to using NULL Pango layout when printing wxRichTextCtrl
in wxGTK.
Closes #14847.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73017
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 23:17:10 +0000 (23:17 +0000)]
Don't dereference NULL output pointer in wxTextMeasure.
Check that pointers are non-NULL before assigning 0 to them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73016
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 11:51:21 +0000 (11:51 +0000)]
Handle UBUNTU_MENUPROXY=0 as "not using global menu".
Although the correct way to disable the global menu bar under Ubuntu is to
set UBUNTU_MENUPROXY to an empty string, many guides on the web advise setting
it to "0", so handle this special case in wxApp::GTKIsUsingGlobalMenu() too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73014
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 25 Nov 2012 03:41:42 +0000 (03:41 +0000)]
avoid functions deprecated in GTK3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73013
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 25 Nov 2012 02:49:42 +0000 (02:49 +0000)]
fix wxBitmapComboBox Gtk-CRITICAL assertion `GTK_IS_ENTRY (entry)' failed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73012
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 25 Nov 2012 02:30:08 +0000 (02:30 +0000)]
non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73011
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 25 Nov 2012 02:23:34 +0000 (02:23 +0000)]
Simplify GetDefaultAttributesFromGTKWidget() by passing the widget to use,
rather than a pointer to a function to create the widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73010
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 00:15:49 +0000 (00:15 +0000)]
Use idle time menu updating when using global menu bar in wxGTK.
We don't get wxEVT_MENU_OPEN events when using the global menu bar so don't
rely on them for updating the menu items status and fall back to idle time
menu updating if the global menu bar is used.
This required changing wxUSE_IDLEMENUUPDATES tests from compile- to run-time
ones.
Closes #14302.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73009
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 00:15:26 +0000 (00:15 +0000)]
Add wxApp::GTKIsUsingGlobalMenu() helper to wxGTK.
This allows to check whether the global menu is being used and will be mostly
useful for working around various bugs/problems uncovered by it.
See #14302.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73008
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 25 Nov 2012 00:15:03 +0000 (00:15 +0000)]
Ignore menu events while modal dialogs are shown in wxGTK.
Normally menus are disabled in this case but not when running under Ubuntu
Unity, so add an explicit test for this to avoid breaking the program expected
flow of control by allowing the user to show the same modal dialog twice, for
example.
This is not ideal, it would be better to visually disable the menu while the
modal dialogs are shown but is better than nothing.
Closes #14823.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73007
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 23:01:45 +0000 (23:01 +0000)]
Blind compilation fix for VC6 after r73004.
Define wxDocTemplateVector for VC6 too, it's used in docview.cpp.
Also wrap too long lines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73006
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 24 Nov 2012 21:49:04 +0000 (21:49 +0000)]
silence GCC warning "enumeral and non-enumeral type in conditional expression"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73005
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 17:37:12 +0000 (17:37 +0000)]
Add wxDocManager::Get{Views,Documents,Templates}Vector().
Add accessors returning more convenient wxVectors to supplement the existing
ones giving access to internally used wxLists.
Closes #14814.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73004
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 17:36:44 +0000 (17:36 +0000)]
Add wxList::AsVector<>() helper.
This can be useful in legacy code using wxList to progressively replace it
with wxVector.
See #14814.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73003
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 17:36:19 +0000 (17:36 +0000)]
Don't include wx/utils.h from wx/vector.h.
This will allow to include wx/vector.h from wx/list.h which is itself included
from wx/utils.h by breaking this circular dependency.
Don't use wxMin(), defined in wx/utils.h, in order to do this.
See #14814.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73002
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 00:33:44 +0000 (00:33 +0000)]
Use wxBufferedPaintDC for wxStyledTextCtrl drawing in wxGTK.
GTK+ doesn't seem to use double buffering for Scintilla window for some
reason, resulting in bad flicker when it's updated, e.g. when the user types
into it.
Force the use of double buffering at wxWidgets level by using
wxBufferedPaintDC for painting it. This may be inefficient if GTK+ does double
buffer it in some cases but at least it gets rid of the flicker.
Closes #12704, #14828.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73001
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 24 Nov 2012 00:33:19 +0000 (00:33 +0000)]
Add check for destroying window with mouse capture in wxGTK.
We already have an assert checking for this at wxWindowBase level but it seems
that it wasn't always triggered somehow (maybe because we crashed before
getting there?), so do it sooner.
Closes #14602.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73000
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 23 Nov 2012 19:02:01 +0000 (19:02 +0000)]
support for custom app controllers, override OSXCreateAppController in wxApp subclass
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72999
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 23 Nov 2012 14:34:31 +0000 (14:34 +0000)]
Fix ribbon bar scroll buttons visibility bug.
Fix scroll buttons update code in wxRibbonPage.
Closes #14844.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72998
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 23 Nov 2012 14:32:15 +0000 (14:32 +0000)]
Add possibility to delay showing wxRichToolTip.
Optionally show the tooltip after a delay instead of doing it immediately when
Show() is called.
Closes #14846.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72997
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 23 Nov 2012 07:55:58 +0000 (07:55 +0000)]
fixing overrelease and out-of-bounds write, fixes #13725
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72996
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Nov 2012 12:49:53 +0000 (12:49 +0000)]
Implement GetSizeFromTextSize() for wxSpinCtrl.
Implement it for the native MSW and GTK versions and the generic one used in
the other ports and also for wxSpinCtrlDouble under MSW.
Also test this function in the spin page of the widgets sample.
Closes #14840.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72995
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Nov 2012 12:49:29 +0000 (12:49 +0000)]
Make wxSpinCtrlGenericBase a wxCompositeWindow.
This takes care of propagating methods setting fonts and colours to the
subwindows automatically, so that setting font for the generic wxSpinCtrl now
works, unlike before.
Closes #14839.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72994
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Nov 2012 12:49:03 +0000 (12:49 +0000)]
Revert all wxNOEXCEPT-related changes.
This reverts r72978, 72984, 72989 and 72992. Do not use wxNOEXCEPT for
wxTextCtrl dtor as this breaks compilation of any user-defined classes
inheriting from it unless they use wxNOEXCEPT as well and the benefits
(fixing a harmless warning for the niche ICC compiler) are just not worth
the compatibility breakage.
See #14826.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72993
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 20 Nov 2012 00:57:25 +0000 (00:57 +0000)]
Fix another compilation problem after wxNOEXCEPT introduction.
Also add wxNOEXCEPT to wxTextCtrl dtor definition in wxMSW.
See #14826.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72992
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 18:07:55 +0000 (18:07 +0000)]
Add wxTL_NO_HEADER style to wxTreeListCtrl.
Closes #14838.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72990
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 18:01:01 +0000 (18:01 +0000)]
More compilation fixes after wxNOEXCEPT introduction.
This is a temporary change, r72984 and the following changes (see #14826) will
probably be reverted soon anyhow, but for now at least fix wxGTK compilation.
Closes #14837.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72989
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 19 Nov 2012 13:06:01 +0000 (13:06 +0000)]
implementing delayed freezing, fixes #12865
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72988
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 12:52:18 +0000 (12:52 +0000)]
Add wxFSW_EVENT_UNMOUNT wxFileSystemWatcher flag and implement it for Linux.
This flag generates the corresponding event when the file system containing
the watched directory is unmounted. Currently it is only implemented for
Linux where unmounting now generates this event instead of an error.
Closes #14834.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72987
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 12:51:54 +0000 (12:51 +0000)]
Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly.
Previously these types were not handled at all, resulting in asserts.
See #14834.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72986
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 11:54:12 +0000 (11:54 +0000)]
Implement wxLocale::GetSystemEncodingName() for wxOSX.
Use CFStringGetNameOfEncoding() to get the canonical name of the encoding from
OS X itself.
Closes #2571.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72985
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 19 Nov 2012 11:53:49 +0000 (11:53 +0000)]
Add wxNOEXCEPT to all wxTextCtrl dtors.
Fix compilation with some compilers after r72978 which added wxNOEXCEPT to
wxTextCtrlBase dtor and wxTextCtrl dtor in wxMSW but not in all the other
ports.
See #14826.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72984
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 19 Nov 2012 04:17:42 +0000 (04:17 +0000)]
put both versions of wxGetMousePosition in one place so they can use one implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72983
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 19 Nov 2012 02:29:24 +0000 (02:29 +0000)]
fix object referencing with wxSL_MIN_MAX_LABELS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72982
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 18 Nov 2012 00:17:07 +0000 (00:17 +0000)]
Define SPI_GETCARETWIDTH ourselves if it's not defined.
This fixes another compilation error for VC6.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72981
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 18 Nov 2012 00:14:37 +0000 (00:14 +0000)]
Compilation fixes for VC6 after MSWGetComboBoxInfo() introduction.
Don't use COMBOBOXINFO outside of WINVER checks, we can only use
tagCOMBOBOXINFO that we forward declared ourselves.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72980
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 17 Nov 2012 23:56:47 +0000 (23:56 +0000)]
Fix path returned from wxGTK wxFileDialog too.
This is similar to the fixes to wxDirDialog in r72779.
Closes #14786.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72979
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 17 Nov 2012 23:56:23 +0000 (23:56 +0000)]
Add wxNOEXCEPT and use it for std::streambuf-derived classes.
This fixes warnings from Intel compiler about overriding function using a
different exception specification than the base one and also incidentally
provides a handy macro that can be useful in other situations.
Closes #14826.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72978
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 17 Nov 2012 23:56:00 +0000 (23:56 +0000)]
Add wxFSW_EVENT_ATTRIB wxFileSystemWatcher flag.
This flag allows to monitor changes to the file attributes, such as file
modification time.
This patch adds the flag, support for it under Linux and the corresponding
modifications to the sample and the test suite.
Closes #14833.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72977
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 17 Nov 2012 23:55:35 +0000 (23:55 +0000)]
Fix typo in include/wx/generic/private/richtooltip.h header guard.
A wrong symbol was being defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72976
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 17 Nov 2012 22:17:10 +0000 (22:17 +0000)]
Fix broken and missing DataView interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72966
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 17 Nov 2012 13:34:09 +0000 (13:34 +0000)]
Fixed unused parameter warnings for webview on OSX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72965
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 16 Nov 2012 07:35:53 +0000 (07:35 +0000)]
avoid deprecated functions with GTK3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72964
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 16 Nov 2012 07:30:07 +0000 (07:30 +0000)]
silence warnings about unhandled enum value in switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72963
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 16 Nov 2012 07:24:29 +0000 (07:24 +0000)]
Remove code that has no effect
Adjusting the wxEVT_ENTER_WINDOW mouse position is pointless, execution won't reach that far if
gdk_event->window != gtk_widget_get_window(widget), and GetClientAreaOrigin() always returns (0,0).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72962
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 15 Nov 2012 22:24:22 +0000 (22:24 +0000)]
Support monitoring only some events in wxGTK wxFileSystemWatcher.
Call inotify() with the appropriate flags instead of always using IN_ALL_EVENTS.
Closes #14832.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72961
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 15 Nov 2012 18:48:55 +0000 (18:48 +0000)]
Restore setting focus to generic wxDataViewCtrl on any mouse click.
The changes of r72632 resulted in focus not being given to
wxDataViewMainWindow on right or middle click, restore this behaviour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72960
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 15 Nov 2012 18:45:42 +0000 (18:45 +0000)]
Document how to build wxOSX/Carbon under recent OS X.
Mention that Xcode 3 is needed for this.
Closes #14524.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72959
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 15 Nov 2012 12:22:05 +0000 (12:22 +0000)]
Add back WINVER check to fix VC6 compilation of wxMSW.
The changes of r72953 removed the check for WINVER around the code using
COMBOBOXINFO but it's still needed with VC^, so restore it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72958
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Wed, 14 Nov 2012 18:19:25 +0000 (18:19 +0000)]
Fix GetClientSize() when scrollbars are present
The value of GtkScrolledWindowClass.scrollbar_spacing seems to be invalid (-1).
Use the style property "scrollbar-spacing" instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72957
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Wed, 14 Nov 2012 16:55:24 +0000 (16:55 +0000)]
re-enable using our own resize grip with GTK3, themes can (and do) disable the native grip
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72956
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 14 Nov 2012 13:48:23 +0000 (13:48 +0000)]
Implement wxComboCtrl::GetSizeFromTextSize().
Improve calculation of wxComboCtrl best size which doesn't work correctly for
non-default fonts as shown by r72935. It is still not perfect but better now.
Closes #14825.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72955
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 14 Nov 2012 13:47:59 +0000 (13:47 +0000)]
Implement DoGetSizeFromTextSize() for wxMSW wx{Choice,Combobox,TextCtrl}.
Refactor and improve the existing DoGetBestSize() implementations to use
DoGetBestSize().
Closes #14816.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72954
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 14 Nov 2012 13:47:36 +0000 (13:47 +0000)]
No changes, just refactor wxMSW wxComboBox code calling GetComboBoxInfo().
Move the code dynamically loading this function to the base wxChoice class to
make it possible to use it from there in the upcoming commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72953
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 14 Nov 2012 13:47:13 +0000 (13:47 +0000)]
Handle wxBORDER_NONE in wxGTK wxTextCtrl::DoGetSizeFromTextSize().
Don't add margins for the controls without borders, they are not used in this
case.
See #14816.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72952
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 14 Nov 2012 13:46:50 +0000 (13:46 +0000)]
Don't call setlocale("") on startup by default any longer.
This undoes the changes of r44773 because calling setlocale() resulted in C
locale being set differently from C++ locale which was confusing and led to
huge slowdowns in any code using std::stream with at least MinGW. And setting
the C++ locale to be the same, as r72719 tried to do, doesn't seem to be
practical as it results in immediate crashes under OS X and MinGW when used
under XP.
Do provide wxApp::SetCLocale() helper to explicitly do what was previously
done implicitly, even though currently it is a trivial wrapper for setlocale()
and we don't even need to call gtk_set_locale() as it has never done anything
else and is deprecated since GTK+ 2.24.
Closes #14780.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72951
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775