Commit Graph

54049 Commits

Author SHA1 Message Date
Steve Lamerton
538f284a44 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
2011-11-08 11:35:38 +00:00
Vadim Zeitlin
3bcb0be2bb 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
2011-11-08 11:02:07 +00:00
Vadim Zeitlin
cf0a0f9303 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
2011-11-08 11:02:05 +00:00
Vadim Zeitlin
b6dd4afdf8 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
2011-11-08 11:02:02 +00:00
Vadim Zeitlin
bedba0d176 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
2011-11-08 11:01:58 +00:00
Václav Slavík
0fff3dfcbb 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
2011-11-08 10:53:49 +00:00
Jouk Jansen
5ced53e599 Updates to compile WX on OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-07 09:42:06 +00:00
Jouk Jansen
a1db2ca07b 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
2011-11-07 09:34:50 +00:00
Vadim Zeitlin
5325c2e39b 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
2011-11-06 12:07:35 +00:00
Vadim Zeitlin
bf6968237d Chinese translations update from Jiawei Huang.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-06 12:06:46 +00:00
Vadim Zeitlin
2673c2394a 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
2011-11-06 12:06:43 +00:00
Václav Slavík
12a7fb5f0b 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
2011-11-05 15:20:32 +00:00
Václav Slavík
23f32cd750 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
2011-11-05 15:20:11 +00:00
Francesco Montorsi
7e6ab75033 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
2011-11-05 12:25:46 +00:00
Francesco Montorsi
ef74fc64a1 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
2011-11-05 11:55:42 +00:00
Francesco Montorsi
deed8373ae fix some simple Doxygen warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 11:55:00 +00:00
Francesco Montorsi
38ea03c936 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
2011-11-05 11:54:14 +00:00
Vadim Zeitlin
535a0e0889 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
2011-11-05 11:24:04 +00:00
Vadim Zeitlin
c052f780a4 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
2011-11-05 11:24:00 +00:00
Vadim Zeitlin
3a6b6a9889 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
2011-11-05 11:23:57 +00:00
Vadim Zeitlin
c977643bb1 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
2011-11-05 11:23:54 +00:00
Vadim Zeitlin
2371703475 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
2011-11-05 11:23:51 +00:00
Vadim Zeitlin
b059c519bf 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
2011-11-05 11:23:48 +00:00
Vadim Zeitlin
041e6050fd 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
2011-11-05 11:23:44 +00:00
Vadim Zeitlin
64b91e2d40 Add wxConvAuto::GetBOMChars() helper.
Closes #13620.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 11:23:41 +00:00
Francesco Montorsi
75e488d501 document wxLogGeneric() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 10:44:35 +00:00
Francesco Montorsi
b2fc9f0e3b document wxConfigPathChanger helper class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 10:42:16 +00:00
Vadim Zeitlin
86cf0018d3 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
2011-11-05 10:28:48 +00:00
Vadim Zeitlin
e2623304af 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
2011-11-04 17:41:20 +00:00
Vadim Zeitlin
d265ec6b0e 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
2011-11-04 17:40:49 +00:00
Vadim Zeitlin
6bb81c8e1a 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
2011-11-04 12:02:07 +00:00
Vadim Zeitlin
4878fbb880 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
2011-11-04 09:09:54 +00:00
Robin Dunn
884a3e9d37 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
2011-11-04 03:38:09 +00:00
Robin Dunn
0e8dff1b3c 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
2011-11-04 01:33:37 +00:00
Jouk Jansen
823093e4a4 Upadte setup for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-03 09:38:44 +00:00
Robin Dunn
6db0bd9256 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
2011-11-02 23:42:26 +00:00
Robin Dunn
7106fc4674 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
2011-11-02 20:22:29 +00:00
Vadim Zeitlin
c276efd946 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
2011-11-02 19:08:54 +00:00
Vadim Zeitlin
8000083c51 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
2011-11-02 19:08:51 +00:00
Vadim Zeitlin
ce316f2890 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
2011-11-02 19:08:49 +00:00
Vadim Zeitlin
970b8299e0 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
2011-11-02 19:08:46 +00:00
Vadim Zeitlin
666ce81a57 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
2011-11-02 19:08:43 +00:00
Vadim Zeitlin
beee38cb41 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
2011-11-01 12:04:27 +00:00
Vadim Zeitlin
3c3f29b5f1 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
2011-11-01 12:04:24 +00:00
Vadim Zeitlin
f81ccc1148 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
2011-10-31 19:41:06 +00:00
Vadim Zeitlin
824216af78 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
2011-10-31 19:33:43 +00:00
Paul Cornett
e503ef07d5 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
2011-10-31 16:09:47 +00:00
Vadim Zeitlin
898c3e88e9 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
2011-10-31 14:24:54 +00:00
Vadim Zeitlin
6677f122a1 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
2011-10-31 14:24:51 +00:00
Vadim Zeitlin
5fe43b6017 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
2011-10-31 14:24:49 +00:00