Jouk Jansen [Mon, 14 Nov 2011 09:39:43 +0000 (09:39 +0000)]
Update compile support fror wxGTK on OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69755
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 14 Nov 2011 07:52:33 +0000 (07:52 +0000)]
latest private API usage complaint, right now most subclasses are using their own implementation, so this shouldn't lead to problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69754
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 13 Nov 2011 12:57:28 +0000 (12:57 +0000)]
Set focus on the browser window after loading a url. Also fix a warning.
Closes #13660
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69748
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 13 Nov 2011 11:51:49 +0000 (11:51 +0000)]
Added stock accelerator for wxID_PRINT.
Ctrl+P is a pretty standard accelerator for the "Print" command so add it as a
stock one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69747
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Nov 2011 22:47:11 +0000 (22:47 +0000)]
Use wxConvertStringToOle() in wxWebViewIE code.
Fix compilation in wxUSE_UNICODE=0 case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69746
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 12 Nov 2011 22:47:08 +0000 (22:47 +0000)]
Correct typo in wxUSE_WEBVIEW_IE test in configure.
Because of a missing '$' before wxUSE_WEBVIEW_IE in the configure test
wxUSE_WEBVIEW was never enabled for wxMSW builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69745
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 12 Nov 2011 20:49:40 +0000 (20:49 +0000)]
Replace the sample animation timer with an idle loops and the animation with a busy cursor.
Fixes #13518, #13658
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69744
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 12 Nov 2011 16:50:37 +0000 (16:50 +0000)]
position expander in center of given rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69741
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 11 Nov 2011 16:38:48 +0000 (16:38 +0000)]
use correct function to free GtkTextAttributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69740
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 11 Nov 2011 14:26:06 +0000 (14:26 +0000)]
Intercept some keys in wxMSW wxTextCtrl even if they're used as accelerators.
Bare (i.e. without any modifiers) Delete, Home and End keys are also required
by the text control itself so don't handle them as accelerators when wxTextCtrl
has focus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69739
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 10 Nov 2011 14:41:14 +0000 (14:41 +0000)]
Add compile support for widgets sample on OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69731
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 10 Nov 2011 11:58:04 +0000 (11:58 +0000)]
Compilation fix for wxUSE_UNICODE=0 build after wxUSE_STL=1 fix.
The result of wxString::mb_str() can't be converted to wxScopedCharBuffer in
non-Unicode build but converting it to wxCharBuffer is always fine (though
slightly less efficient).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69730
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 10 Nov 2011 11:49:02 +0000 (11:49 +0000)]
Correct the direction passed to wxDataObject in wxOSX clipboard code.
Query for formats that wxDataObject supports on input, not output, in
wxClipboard::GetData().
This is similar to r69454 For wxGTK.
Closes #13649.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69729
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 10 Nov 2011 10:46:34 +0000 (10:46 +0000)]
Applied Blit system options optimization to StretchBlit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69727
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 10 Nov 2011 00:30:10 +0000 (00:30 +0000)]
Fix compilation in wxUSE_STL case broken by r69663.
Don't rely on implicit wxString to char* conversion when calling
XRCID_Assign().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69721
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 10 Nov 2011 00:30:04 +0000 (00:30 +0000)]
Remove all unwanted occurrences of -mt/-pthread in configure.
Remove all inappropriate compiler options and not just the first one as they
can occur multiple times because they may come from pkg-config output for
several different libraries.
Closes #13647.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69720
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 8 Nov 2011 17:40:28 +0000 (17:40 +0000)]
Ensure that there is a modal event loop before trying to use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69704
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 8 Nov 2011 17:39:38 +0000 (17:39 +0000)]
Add a border on the AutoComp list for wxOSX-Cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69703
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Tue, 8 Nov 2011 13:34:40 +0000 (13:34 +0000)]
Skip spurious blank JavaScript events in wxWebView.
Closes #13481
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69702
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Tue, 8 Nov 2011 13:23:45 +0000 (13:23 +0000)]
Correctly escape the error log messages in the wxWebView sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69701
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Tue, 8 Nov 2011 11:35:38 +0000 (11:35 +0000)]
Update wxHtmlWindow documentation to refer to wxWebView.
Closes #13608
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69700
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:07 +0000 (11:02 +0000)]
Don't include wx/msw/wrapgdip.h if !wxUSE_GRAPHICS_CONTEXT.
Fix compilation when GDI+ headers are not available by not including the
header that includes <gdiplus.h> in this case.
Closes #13640.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69699
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:05 +0000 (11:02 +0000)]
Move GDK_META_MASK definition in the header in which it is also used.
The code using GDK_META_MASK was moved to wx/gtk/private/event.h from
gtk/window.cpp but the fallback definition of GDK_META_MASK for GTK+ < 2.10
remained in window.cpp.
Move it to the header as well now so that it can be compiled with GTK+ < 2.10
again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69698
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:02 +0000 (11:02 +0000)]
Compilation fixes for GTK+ 2.4.
Add missing GTK_CHECK_VERSION(2,6,0) checks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69697
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 8 Nov 2011 11:01:58 +0000 (11:01 +0000)]
Add missing stdio.h include to wxGTK assert dialog code.
As we use FILE for saving the assert message to a file, we must include
<stdio.h> (which is not included from any other header, at least not under
Solaris).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69696
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Tue, 8 Nov 2011 10:53:49 +0000 (10:53 +0000)]
Use Enter and Space for cell editing in generic wxDVC too.
If the normal Enter or Space processing (sending activate event or doing
activatable editing respectively) isn't handled by the control, use
these keys to trigger inline editing too, as F2 does.
This makes the Windows control more similar to OS X and GTK+ ones and
makes discovering editability easier.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69695
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 7 Nov 2011 09:42:06 +0000 (09:42 +0000)]
Updates to compile WX on OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69693
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 7 Nov 2011 09:34:50 +0000 (09:34 +0000)]
wxGTK1 should not include .h files for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69692
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Nov 2011 12:07:35 +0000 (12:07 +0000)]
Updated all message catalogs to correspond to the current sources.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69691
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Nov 2011 12:06:46 +0000 (12:06 +0000)]
Chinese translations update from Jiawei Huang.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69690
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 6 Nov 2011 12:06:43 +0000 (12:06 +0000)]
Use current time, not the Epoch for time zone determination.
When deducing the time zone from struct tm tm_gmtoff field, query tm for the
current time and not the Epoch as the DST rules -- and hence the time zone
offset -- could have changed since 1970. This is notably the case for Ireland
which used a different time zone from 1968 to 1971.
Notice that GetTimeZone() still must return the time zone without taking DST
into account, so we explicitly compensate for DST if it's in effect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69689
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 5 Nov 2011 15:20:32 +0000 (15:20 +0000)]
Fix wxArray::Index() with bFromEnd=true in STL build.
This function incorrectly returned index from the end of the array when
searching from the end. Fixed to work as the non-STL version.
Fixes #13626.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69688
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 5 Nov 2011 15:20:11 +0000 (15:20 +0000)]
Test correctness of wxArray::Index() with bFromEnd=true.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69687
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 12:25:46 +0000 (12:25 +0000)]
no real change: just move Docset/CHM/QCH declarations in their own sections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69686
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 11:55:42 +0000 (11:55 +0000)]
Move detailed documentation to the top, leaving styles and event tables at the bottom, like for any other wxWidgets control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69685
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 11:55:00 +0000 (11:55 +0000)]
fix some simple Doxygen warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69684
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 11:54:14 +0000 (11:54 +0000)]
better links to the stock item ID list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69683
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:24:04 +0000 (11:24 +0000)]
Allow reusing the same wxWindowID more than 254 times.
Extend the id reference count storage to use an overflow hash map for the ids
used more than 254 times. This allows to use the same id an arbitrarily large
number of times.
Closes #13618.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69682
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:24:00 +0000 (11:24 +0000)]
Use wxWindowUpdateLocker to speed up updates of the static widgets sample page.
See #13619.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69681
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:57 +0000 (11:23 +0000)]
Fix adding a control to two different sizers in the widgets sample.
A checkbox on the static page was added to two sizers at once, resulting in
heap corruption later. Fix this by adding it to the right sizer only.
Closes #13619.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69680
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:54 +0000 (11:23 +0000)]
Translate the log message in wxLog destructor.
The message about losing the last message was not translated for some reason,
do translate it now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69679
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:51 +0000 (11:23 +0000)]
Fix format string in wxLog::LogLastRepeatIfNeeded().
We used a format string without any format specifiers in it in a call to
wxString::Printf() which always had a parameter resulting in an assert failure
about a mismatch between the string and parameter count.
Fix this by using a separate Printf() call for this case.
Closes #13613.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69678
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:48 +0000 (11:23 +0000)]
Use correct direction in wxDataObject::IsSupported() in wxOSX dnd code.
Before calling wxDataObject::SetData() we must check whether the object
supports this format using IsSupported(Set) instead of just IsSupported()
which does the test in the "Get" direction.
Closes #13615.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69677
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:44 +0000 (11:23 +0000)]
Don't read beyond the end of input buffer when decoding UTF-16.
wxMBConvStrictUTF8::FromWChar() didn't update the input length correctly when
encountering a surrogate while decoding UTF-16 and could read beyond the end
of the input buffer in this case.
Fix this by simply adjusting the input length when a surrogate is read.
Closes #13614.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69676
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:41 +0000 (11:23 +0000)]
Add wxConvAuto::GetBOMChars() helper.
Closes #13620.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69675
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 10:44:35 +0000 (10:44 +0000)]
document wxLogGeneric() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69674
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 5 Nov 2011 10:42:16 +0000 (10:42 +0000)]
document wxConfigPathChanger helper class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69673
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 5 Nov 2011 10:28:48 +0000 (10:28 +0000)]
Rename lineAnchor in Scintilla code to avoid shadowing warning.
Local variable "lineAnchor" in Editor::SetRectangularRange() was shadowing the
member variable Editor::lineAnchor, resulting in warnings from some compilers
(AIX xlC, Sun CC).
Rename it to "lineAnchorRect", just as it was done in the latest Scintilla
sources, to avoid them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69672
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Nov 2011 17:41:20 +0000 (17:41 +0000)]
Correct the misleading example of using id ranges in XRC documentation.
"range[end]" is the last id in the range, inclusive, not the first id after it
so any loops iterating over all ids in the range should cover it as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69664
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Nov 2011 17:40:49 +0000 (17:40 +0000)]
Simplify wxIdRange code by using new XRCID_Assign() function.
Only traverse the id hash once in XRCID_Assign() instead of using
RemoveXRCIDEntry() to delete the old entry (which usually doesn't exist so
this traversed the entire hash) followed by XRCID_Lookup() to create a new one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69663
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Nov 2011 12:02:07 +0000 (12:02 +0000)]
Fix choice of tree item icon for the selected state in wxMSW.
The logic for selecting the item icon was broken when selected image was
specified as it was not taken into account as fallback for selected expanded
state so selected icon was used only for collapsed items.
Fix this by using the selected icon if it is specified and selected expanded
one is not.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69662
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 4 Nov 2011 09:09:54 +0000 (09:09 +0000)]
Make wxQsort() definition exactly the same as declaration.
Remove the extra "const" in the first parameter.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69661
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 4 Nov 2011 03:38:09 +0000 (03:38 +0000)]
Add wxAnyButton so the shared class hierarchy of wxButton and wxToggleButton is accurate.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69659
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 4 Nov 2011 01:33:37 +0000 (01:33 +0000)]
Fix missing and broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69656
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 3 Nov 2011 09:38:44 +0000 (09:38 +0000)]
Upadte setup for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69655
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 2 Nov 2011 23:42:26 +0000 (23:42 +0000)]
Fix missing or broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69646
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 2 Nov 2011 20:22:29 +0000 (20:22 +0000)]
Fix missing or broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69644
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Nov 2011 19:08:54 +0000 (19:08 +0000)]
Improvements to German translation.
- Changed phrasing of some texts
- Replaced words by more commonly used ones
- Translated untranslated words and sentences
- Used clear translation for vague expressions
- Used common translation for multiply used terms like "save"
Patch from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69643
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Nov 2011 19:08:51 +0000 (19:08 +0000)]
Orthographical fixes in German translation.
- Corrected misspelled words
- Corrected upper and lower case words
- Corrected some typos, like "HTLM" and "DDMEL"
- Corrected some grammar errors
Patch from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69642
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Nov 2011 19:08:49 +0000 (19:08 +0000)]
Hyphen fixes in German translation.
- Added missing hyphens to concatenate german words
- Concatenated wrongly separated word
Patch from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69641
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Nov 2011 19:08:46 +0000 (19:08 +0000)]
Punctuation fixes in German translation.
- Fixed some menu entries which where using '$' instead of '&'
- Added missing punctuation marks to equal the original text
- Removed unneeded and double characters
Patch from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69640
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Nov 2011 19:08:43 +0000 (19:08 +0000)]
Corrections to spaces in German translation.
Patch from Sebastian Walderich.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69639
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 1 Nov 2011 12:04:27 +0000 (12:04 +0000)]
Explicitly include X11/Xlib.h to fix AIX build.
At least under AIX X11/Xlib.h is not included from X11/Xutil.h so include it
explicitly ourselves. It should do no harm on the other systems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69626
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 1 Nov 2011 12:04:24 +0000 (12:04 +0000)]
Define _LINUX_SOURCE_COMPAT for AIX build.
This takes care of the conflict between GTK+ headers and #define of func_data
in AIX sys/timer.h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69625
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 19:41:06 +0000 (19:41 +0000)]
Make wxTreeListEvent dynamically creatable.
This is unfortunately required by wxEvent::Clone() support unit test so
provide the default ctor in this class even though it doesn't make any sense
in normal use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69619
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 19:33:43 +0000 (19:33 +0000)]
Correct wxFileName::SetPath() documentation.
It wrongly claimed that this function affected the full path, i.e. including
name and extension, which was simply wrong.
Closes #13612.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69618
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 16:09:47 +0000 (16:09 +0000)]
fix creation of bitmap from image with requested depth 32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69617
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 14:24:54 +0000 (14:24 +0000)]
Suppress harmless unused variable warnings in wxSocket under AIX.
The size of the buffer is not used with AIX conventions for gethostbyaddr_r()
and getservbyname_r() functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69616
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 14:24:51 +0000 (14:24 +0000)]
Fix compilation of wxGethostbyname_r() and wxGethostbyaddr_r() under AIX.
gethostbyname_r() and gethostbyaddr_r() functions return int, not hostent*,
under AIX so assign their return value to the error indicator.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69615
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 14:24:49 +0000 (14:24 +0000)]
Compilation fix for AIX: fix the name of wxGetservBuf ctor.
The ctor was wrongly called so wxGetservBuf class couldn't be compiled,
breaking compilation under AIX and any other systems with 4 argument
getservbyname_r().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69614
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 31 Oct 2011 12:15:05 +0000 (12:15 +0000)]
Fixed #13535: wxRichTextCtrl: Incorrectly documented or named functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69613
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Mon, 31 Oct 2011 11:30:45 +0000 (11:30 +0000)]
Fixed dropdown height of wxChoice and wxComboBox controls.
When using comctl32.dll versions prior to 6.0 (e.g. with Win2k or no manifest file) the dropdown height of a wxChoice and wxComboBox would show all but one item and a vertical scrollbar was always visible. Fixed by reintroducing code that adds 1 to the total number of items. The code got dropped in r60553, added a comment to it in the hope that it will not be lost again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69612
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 10:49:52 +0000 (10:49 +0000)]
Mention setting up file as default download on SF in release docs.
The newly uploaded files must be configured to be default downloads as
otherwise SF continues to propose the old files by default.
See #13347.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69611
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 10:42:42 +0000 (10:42 +0000)]
Compilation fix for wxUSE_GRAPHICS_CONTEXT && !WX_PRECOMP.
Include wx/dcclient.h to get wxPaintDC declaration necessary in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69610
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 10:40:52 +0000 (10:40 +0000)]
Correct FSF postal address in the licence text.
Closes #13411.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69609
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Oct 2011 10:40:50 +0000 (10:40 +0000)]
Remove duplicated and apparently unnecessary licence file.
This file was exactly the same as docs/licence.txt so keep just one of them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69608
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 05:42:10 +0000 (05:42 +0000)]
add gdk_window_get_height/width
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69607
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 05:36:51 +0000 (05:36 +0000)]
simplify Refresh(), ancestors of a mapped window have to be mapped also, no point in checking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69606
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 05:22:59 +0000 (05:22 +0000)]
in DoSetSize, only call GetPosition if necessary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69605
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 05:15:04 +0000 (05:15 +0000)]
correct callback function signature
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69604
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 05:14:13 +0000 (05:14 +0000)]
move class function out of extern "C" block
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69603
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 31 Oct 2011 04:35:56 +0000 (04:35 +0000)]
simplify code calling gtk_window_set_urgency_hint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69602
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:50 +0000 (19:48 +0000)]
Avoid too many sash position changed events when splitter is resized.
We could call SetSashPositionAndNotify() twice in a row which was probably
unexpected and possibly wasteful, if the user code did anything non trivial in
response to this event.
Just call it once after we're certain which sash position do we want to set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69601
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:48 +0000 (19:48 +0000)]
Fix the check for second window becoming too small in wxSplitterWindow.
There was a strange check for the second pane size in OnSize() which hardcoded
5 pixels as minimal pane size in the check and 40 pixels as the minimal size
to set. This resulted in strange behaviour when the second pane size would
decrease to 6 pixels smoothly and then jump back to 40 pixels when the
splitter window was resized and also was ugly at the code level.
Get rid of this code and simply call AdjustSashPosition() to ensure that the
sash position remains valid as the splitter is resized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69600
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:44 +0000 (19:48 +0000)]
Make the initial sash position work in splitter sample.
The initial splitter size must be set correctly when using gravity with
wxSplitterWindow as otherwise the sash would jump on first resize -- which was
exactly what happened in the splitter sample.
Add a SetSize() call to the sample with the comment explaining why is it
needed and also actually make it stick as the cached last size was not updated
before the splitter was split before.
Closes #9821.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69599
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:40 +0000 (19:48 +0000)]
Don't apply gravity before requested sash position was set in wxSplitterWindow.
Gravity should take effect only after the originally requested sash position
is set as otherwise it's not really taken into account.
Closes #13508.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69598
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:38 +0000 (19:48 +0000)]
Remove wxSplitterWindow::m_checkRequestedSashPosition.
This variable seemed to be redundant with m_requestedSashPosition being set to
INT_MAX so harmonise the code to always check for the latter and get rid of
the former.
There should be no observable changes in behaviour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69597
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 19:48:34 +0000 (19:48 +0000)]
No changes, just remove wxSplitterWindow::{Set,Get}NeedUpdating().
GetNeedUpdating() was never used at all while SetNeedUpdating() was used only
once while m_needUpdating variable was being changed directly in other places
making the code difficult to follow.
Just use the member variable directly and remove the accessors.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69596
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 30 Oct 2011 17:28:03 +0000 (17:28 +0000)]
Fixed problem with the size of paragraphs not needing layout not being taken into account when calculating overall box size.
Should fix the problem with lines becoming insensitive to mouse clicks after adding a couple of shorter lines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 16:51:10 +0000 (16:51 +0000)]
Perform wxAuiToolBar idle updates from UpdateWindowUI(), not OnIdle().
No real changes, just optimize the idle updates by doing it from (less often
called) UpdateWindowUI() instead of EVT_IDLE handler.
Closes #10075.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69594
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 16:44:24 +0000 (16:44 +0000)]
Generate right click events for all kinds of items in wxAuiToolBar.
Don't generate wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK for normal items only,
they can be useful for other ones too.
Note that this had been previously applied to 2.8 branch as r66926 but somehow
wasn't applied to the trunk.
Closes #10079.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69593
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 16:41:34 +0000 (16:41 +0000)]
Fix splitting message into title in body in MSW wxProgressDialog.
If the message doesn't contain any new lines, it should be used as the body,
not the title as having title without body doesn't make sense and looks
strange.
Closes #13441.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69592
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 16:22:30 +0000 (16:22 +0000)]
Don't replace non default wxMessageDialog labels with default translations.
The code translating the button labels of wxMessageBox to the application
language was overeager and replaced even the custom labels with the
translations of the default ones.
This shouldn't be done, of course, so simply check that no custom labels had
been set before translating.
See #10962.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69591
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 14:20:03 +0000 (14:20 +0000)]
Change variables naming convention in wxAUI code.
Use the standard wxWidgets camelCase convention instead of the
old_one_using_underscores for all the private variables.
Closes #13476.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69590
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 14:19:59 +0000 (14:19 +0000)]
Link tests with webview library only if it is actually available.
This allows the tests to build again even on the machines without the
prerequisites for building wxWebView.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69589
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 14:19:55 +0000 (14:19 +0000)]
Remove apparently unnecessary wxAuiMDIClientWindow dtor.
This dtor doesn't seem to do anything useful as the base class dtor already
destroys all window children anyhow and removing it is reported to fix some
crashes in wxAUI (which is surprising and probably hides some other bug...).
Closes #13547.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69588
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 14:19:51 +0000 (14:19 +0000)]
Add wx/datetimectrl.h to the wxAdv files list.
Ensure that this header is installed by "make install" as it ought to.
Close #13529.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69587
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 30 Oct 2011 14:19:47 +0000 (14:19 +0000)]
Fix assert in generic wxListCtrl icon view when using images.
Don't assume that the item image is a valid index in m_small_image_list as we
may be in icon view which doesn't use small images at all.
For now restrict this code to the report view mode as apparently the cached
line height is not supposed to be used in other modes even though it's not
clear whether this is really the case and so, perhaps, this code should also
be used when in small icons view mode.
Closes #13604.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69586
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 30 Oct 2011 13:39:11 +0000 (13:39 +0000)]
Fixed warning when compiling richttextctrl.cpp in VS2010 (fixes #13606)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69585
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sun, 30 Oct 2011 13:34:43 +0000 (13:34 +0000)]
Add indents to maximum size to prevent problems with paragraph layout (fixes #13458).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69584
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775