wxWidgets.git
12 years agoMake wxEVT_CHAR_HOOK behave in wxGTK as in wxMSW.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:22 +0000 (00:50 +0000)] 
Make wxEVT_CHAR_HOOK behave in wxGTK as in wxMSW.

Send wxEVT_CHAR_HOOK before wxEVT_KEY_DOWN and avoid generating both
wxEVT_KEY_DOWN and wxEVT_CHAR if the hook event was handled.

This makes wxGTK behave consistently with wxMSW and wxOSX/Cocoa as can be seen
in the keyboard sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded wxKeyEvent ctor for creating event of the different type for same key.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:19 +0000 (00:50 +0000)] 
Added wxKeyEvent ctor for creating event of the different type for same key.

This is useful for implementation code in a couple of ports so provide a
higher level ctor doing this instead of having to use a copy ctor and then
manually changing the event type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRefactor wxKeyEvent copying code.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:16 +0000 (00:50 +0000)] 
Refactor wxKeyEvent copying code.

Avoid duplication between copy ctor and assignment operator.

Also extract the assignment of everything not including the event type in a
reusable function as this can be useful for key event generation code in wxGTK
and possibly other ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement EVT_CHAR_HOOK for wxOSX/Cocoa.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:12 +0000 (00:50 +0000)] 
Implement EVT_CHAR_HOOK for wxOSX/Cocoa.

Send wxEVT_CHAR_HOOK event from wxOSX/Cocoa code.

Also test for wxEVT_CHAR_HOOK in the keyboard sample and show the effect of
not skipping it.

Closes #12431.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just remove unnecessary #pragma warning.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:09 +0000 (00:50 +0000)] 
No changes, just remove unnecessary #pragma warning.

The warning we disabled occurred in the code that was removed long time ago so
it's not necessary to do it any more.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoapplying patch for raise and synthesizing mouse-up for built-in controls, fixes ...
Stefan Csomor [Thu, 1 Dec 2011 18:36:58 +0000 (18:36 +0000)] 
applying patch for raise and synthesizing mouse-up for built-in controls, fixes #12363

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofix warning about missing return statement, closes #13713
Paul Cornett [Thu, 1 Dec 2011 16:54:21 +0000 (16:54 +0000)] 
fix warning about missing return statement, closes #13713

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOnly use __declspec(restrict) with VC8+ in libpng.
Vadim Zeitlin [Thu, 1 Dec 2011 14:22:20 +0000 (14:22 +0000)] 
Only use __declspec(restrict) with VC8+ in libpng.

VC7 doesn't support it.

Closes #13710.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded wxCriticalSection::TryEnter() method.
Vadim Zeitlin [Thu, 1 Dec 2011 14:22:15 +0000 (14:22 +0000)] 
Added wxCriticalSection::TryEnter() method.

This is similar to wxMutex::TryLock() and useful for the same reasons.

Closes #13638.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoChinese translations update from Huang Jiawei.
Vadim Zeitlin [Thu, 1 Dec 2011 14:22:11 +0000 (14:22 +0000)] 
Chinese translations update from Huang Jiawei.

Fix more fuzzy translations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix timeout used in POSIX implementation of wxCondition::WaitTimeout().
Vadim Zeitlin [Thu, 1 Dec 2011 14:22:07 +0000 (14:22 +0000)] 
Fix timeout used in POSIX implementation of wxCondition::WaitTimeout().

The time passed to pthread_cond_timedwait() must be in UTC, not local time,
but wxGetLocalTimeMillis() now really returns the time in local time zone so
we must use wxGetUTCTimeMillis() instead.

Closes #13707.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove unused variables
Paul Cornett [Thu, 1 Dec 2011 08:16:42 +0000 (08:16 +0000)] 
remove unused variables

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadd test for bug fixed in r69878
Paul Cornett [Thu, 1 Dec 2011 08:08:24 +0000 (08:08 +0000)] 
add test for bug fixed in r69878

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix crash when appending menuitem after removing it from another menu.
Paul Cornett [Thu, 1 Dec 2011 06:57:44 +0000 (06:57 +0000)] 
Fix crash when appending menuitem after removing it from another menu.
Also remove unused return value from GtkAppend

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix setting the parent of wxProgressDialog.
Vadim Zeitlin [Wed, 30 Nov 2011 10:48:05 +0000 (10:48 +0000)] 
Fix setting the parent of wxProgressDialog.

Don't call GetParentForModalDialog() with wxProgressDialog style, this doesn't
work as it expects the window style.

Do call SetParent() when using the native MSW implementation as the wx-level
parent is not used then.

Closes #13706.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't include all wx/xxx/webviewhistoryitem_xxx.h headers.
Vadim Zeitlin [Wed, 30 Nov 2011 10:21:43 +0000 (10:21 +0000)] 
Don't include all wx/xxx/webviewhistoryitem_xxx.h headers.

Only one of these headers is available for each platform so include at most
one of them.

Closes #13705.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInclude wx/defs.h, not wx/setup.h from wx/webview.h for consistency.
Vadim Zeitlin [Wed, 30 Nov 2011 10:21:40 +0000 (10:21 +0000)] 
Include wx/defs.h, not wx/setup.h from wx/webview.h for consistency.

All wx headers start by including wx/defs.h so do it in wx/webview.h as well
even if wx/setup.h was sufficient in this particular case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDocument more wxCommandProcessor methods.
Vadim Zeitlin [Wed, 30 Nov 2011 09:21:37 +0000 (09:21 +0000)] 
Document more wxCommandProcessor methods.

Document CanRedo(), Store() and GetCurrentCommand().

Closes #13700.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse more clear names for variables in wxHtmlSelection code.
Vadim Zeitlin [Wed, 30 Nov 2011 09:21:33 +0000 (09:21 +0000)] 
Use more clear names for variables in wxHtmlSelection code.

Call the variables and related methods "character position" instead of
"private position" which wasn't very clear.

Closes #13307.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unused variable from wxWebViewWebKit code in wxGTK.
Vadim Zeitlin [Wed, 30 Nov 2011 09:16:48 +0000 (09:16 +0000)] 
Remove unused variable from wxWebViewWebKit code in wxGTK.

g++ correctly warned about a variable being set but never used, just remove
it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxWebView compilation in STL build with wxGTK.
Vadim Zeitlin [Wed, 30 Nov 2011 09:16:44 +0000 (09:16 +0000)] 
Fix wxWebView compilation in STL build with wxGTK.

Convert wxString to GTK+ strings explicitly, implicit conversion doesn't
happen in STL build and may be wrong anyhow as it doesn't necessarily convert
the strings to UTF-8 expected by GTK+.

Closes #13703.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake wxMSW status bar slightly less tall by default.
Vadim Zeitlin [Wed, 30 Nov 2011 00:52:34 +0000 (00:52 +0000)] 
Make wxMSW status bar slightly less tall by default.

The status bar in wxMSW applications was too big under Windows 7 because it
used EDIT_HEIGHT_FROM_CHAR_HEIGHT() to calculate the height which was simply
unwarranted here. Instead, make the status bar tall enough to accommodate
simple text contents by default and fix SetMinHeight() to actually work for
the cases when a taller toolbar is needed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't include pbt.h from wxMSW code unnecessarily.
Vadim Zeitlin [Tue, 29 Nov 2011 19:27:14 +0000 (19:27 +0000)] 
Don't include pbt.h from wxMSW code unnecessarily.

The contents of this header is available from winuser.h (included by
windows.h) since at least 15 years and pbt.h itself is not included in the
latest Platform SDK releases (8+) so simply don't include it and also don't
test for its availability in configure.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOverride MSWTranslateMessage for wxActiveXContainer. Calling IOleInPlaceActiveObject...
Steve Lamerton [Mon, 28 Nov 2011 20:19:16 +0000 (20:19 +0000)] 
Override MSWTranslateMessage for wxActiveXContainer. Calling IOleInPlaceActiveObject::TranslateAccelerator ensures that accelerators and other keyboard functionality behaves correctly.

Fixes #13679.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOverride GetMainWindowOfCompositeControl() in wxGrid subwindows.
Vadim Zeitlin [Mon, 28 Nov 2011 19:15:59 +0000 (19:15 +0000)] 
Override GetMainWindowOfCompositeControl() in wxGrid subwindows.

This is necessary for HasFocus() to work correctly for them since the changes
of r69788.

Closes #13686.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCorrect HasFocus() to work with subwindows of a composite control.
Vadim Zeitlin [Mon, 28 Nov 2011 19:15:57 +0000 (19:15 +0000)] 
Correct HasFocus() to work with subwindows of a composite control.

When a subwindow (i.e. one that overrides GetMainWindowOfCompositeControl() to
return a parent window) has focus, HasFocus() should return true for it too,
in addition to returning true for the main window.

This completes the fix of r69788.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoExtend wxBannerWindow background bitmap if necessary.
Vadim Zeitlin [Mon, 28 Nov 2011 18:58:52 +0000 (18:58 +0000)] 
Extend wxBannerWindow background bitmap if necessary.

Ensure that the entire banner window uses the same background colour as the
bitmap, even when the bitmap is too small for the window size. This allows to
avoid using huge bitmaps if extending the bitmap with solid colour looks good
enough.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded instructions about building applications using wxMSW.
Vadim Zeitlin [Mon, 28 Nov 2011 14:16:03 +0000 (14:16 +0000)] 
Added instructions about building applications using wxMSW.

Explaining how to build wxWidgets itself is insufficient as usually people
want to actually build their programs using it and not just the library
itself, so add a section explaining how to build the projects using wxMSW.

Also add a table of contents and mention that MSVC and g++ are the main
supported compilers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoIgnore WXK_NONE events in wxStyledTextCtrl.
Vadim Zeitlin [Mon, 28 Nov 2011 13:34:16 +0000 (13:34 +0000)] 
Ignore WXK_NONE events in wxStyledTextCtrl.

Scintilla use of 0 indicating "modifier key" conflicts with our use of
WXK_NONE indicating absence of a valid key code. As Scintilla can't do
anything with the keys without a key code anyhow, simply ignore them
immediately, without passing them to Scintilla, in DoKeyDown().

This fixes handling of IME input in wxStyledTextCtrl under MSW and possibly
other problems (e.g. with dead char keys).

Closes #13570.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd support for custom numeric formats to wxGrid.
Vadim Zeitlin [Mon, 28 Nov 2011 13:23:33 +0000 (13:23 +0000)] 
Add support for custom numeric formats to wxGrid.

Allow %e and %g formats (as well as their upper-letter equivalents) in
addition to the default %f format for number display in wxGrid.

Closes #13583.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't hardcode the number of toolbar tools in the toolbar sample.
Vadim Zeitlin [Mon, 28 Nov 2011 12:47:26 +0000 (12:47 +0000)] 
Don't hardcode the number of toolbar tools in the toolbar sample.

Use GetToolsCount() instead of the hardcoded 10 (which can be wrong if any
tools were added or removed).

See #13673.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCorrected handling of wxTB_HORZ_TEXT in the toolbar sample.
Vadim Zeitlin [Mon, 28 Nov 2011 12:47:23 +0000 (12:47 +0000)] 
Corrected handling of wxTB_HORZ_TEXT in the toolbar sample.

The value of flag could be lost when toolbar was recreated without using text
at all.

Closes #13572.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosupporting rawctrl strings, fixes #13496, rawctrl is correctly interpreted for all...
Stefan Csomor [Mon, 28 Nov 2011 10:24:13 +0000 (10:24 +0000)] 
supporting rawctrl strings, fixes #13496, rawctrl is correctly interpreted for all platforms

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Mon, 28 Nov 2011 06:02:52 +0000 (06:02 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to include src/common/time.cpp.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoupdate _GOptionGroup check
Paul Cornett [Mon, 28 Nov 2011 05:11:27 +0000 (05:11 +0000)] 
update _GOptionGroup check

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agobuild fixes for Universal
Paul Cornett [Mon, 28 Nov 2011 05:00:09 +0000 (05:00 +0000)] 
build fixes for Universal

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agodon't warn about gnomeprint if we already have gtkprint
Paul Cornett [Mon, 28 Nov 2011 04:51:51 +0000 (04:51 +0000)] 
don't warn about gnomeprint if we already have gtkprint

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agodon't require gconf-2.0, we don't use it
Paul Cornett [Sun, 27 Nov 2011 22:59:26 +0000 (22:59 +0000)] 
don't require gconf-2.0, we don't use it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInclude wx/time.h to get wxLocaltime_r() declaration, not wx/datetime.h.
Vadim Zeitlin [Sun, 27 Nov 2011 20:28:45 +0000 (20:28 +0000)] 
Include wx/time.h to get wxLocaltime_r() declaration, not wx/datetime.h.

Also remove wxUSE_DATETIME guard, wxLocaltime_r() is available even without
wxUSE_DATETIME.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just moved wxLocaltime_r() and wxGmtime_r() to wx/time.h.
Vadim Zeitlin [Sun, 27 Nov 2011 20:28:43 +0000 (20:28 +0000)] 
No changes, just moved wxLocaltime_r() and wxGmtime_r() to wx/time.h.

These functions are used by wxGetTimeZone() defined in time.cpp and so need to
be available from wx/time.h. This is also the most logical place for them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement wxStackWalker for wxMSW under x86-64.
Vadim Zeitlin [Sun, 27 Nov 2011 19:52:13 +0000 (19:52 +0000)] 
Implement wxStackWalker for wxMSW under x86-64.

Use 64 bit debug help functions instead of 32 bit ones and add code for
dealing with x86-64 stack frames.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd support for VK_OEM_102 key under wxMSW.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:53 +0000 (19:50 +0000)] 
Add support for VK_OEM_102 key under wxMSW.

This is the "<>|" key on German keyboard and is also used in many other
layouts so failing to handle it resulted in not receiving EVT_KEY_XXX events
for these keys in wxWidgets programs.

Closes #13558.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSet Unicode key code correctly for key events for WXK_RETURN in wxMSW.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:49 +0000 (19:50 +0000)] 
Set Unicode key code correctly for key events for WXK_RETURN in wxMSW.

WXK_RETURN is an ASCII character so return it from wxKeyEvent::GetUnicodeKey()
for EVT_KEY_{DOWN,UP} events, especially as it was already done for EVT_CHAR
ones.

See #13558.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoChange value of wxHELP to avoid clash with wxSTAY_ON_TOP.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:45 +0000 (19:50 +0000)] 
Change value of wxHELP to avoid clash with wxSTAY_ON_TOP.

Using wxSTAY_ON_TOP with wxMessageDialog resulted in "Help" button appearing
since r68537 because these two constants had the same numeric value.

Avoid this by changing wxHELP value to be the same as wxCLOSE_BOX instead: the
latter can't be used with wxMessageDialog so this should solve the problem,
even if there are still conflicts. Also adjust the other button constants
values to account for wxHELP change.

Closes #13433.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse wxGetUTCTimeUSec() in wxStopWatch under Unix for higher precision.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:42 +0000 (19:50 +0000)] 
Use wxGetUTCTimeUSec() in wxStopWatch under Unix for higher precision.

If gettimeofday() is available we can achieve better than millisecond
precision (even if it usually isn't as high as microsecond), so use it as
clock source in wxStopWatch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse wxGetUTCTimeMillis() instead of wxGetLocalTimeMillis() in wxStopWatch.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:35 +0000 (19:50 +0000)] 
Use wxGetUTCTimeMillis() instead of wxGetLocalTimeMillis() in wxStopWatch.

Using local time meant that wxStopWatch didn't work reliably around DST
changes. It also was completely unnecessary, just use the UTC clock instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemoved private wxGetLocalTimeUsec() function from Unix code.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:33 +0000 (19:50 +0000)] 
Removed private wxGetLocalTimeUsec() function from Unix code.

The function was badly named as it returned UTC time and not local time and
can be simply replaced with the just added public wxGetUTCTimeUSec().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just move time functions from wx/stopwatch.h to wx/time.h.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:27 +0000 (19:50 +0000)] 
No changes, just move time functions from wx/stopwatch.h to wx/time.h.

Preserve compatibility by including wx/time.h from wx/stopwatch.h but put all
the time-related functions in a more logical place.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded wxGetUTCTimeMillis() and wxGetUTCTimeUSec().
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:23 +0000 (19:50 +0000)] 
Added wxGetUTCTimeMillis() and wxGetUTCTimeUSec().

Fixed wxGetLocalTimeMillis() to really return the local time and provide
wxGetUTCTimeMillis() doing what this function used to do before. Closes #13610.

Also add wxGetUTCTimeUSec() for even higher resolution time stamps as it is
basically the same as wxGetUTCTimeMillis() anyhow, at least for MSW and
non-ancient Unix systems providing gettimeofday().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoExtracted private GetTimeZone() to public wxGetTimeZone() function.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:19 +0000 (19:50 +0000)] 
Extracted private GetTimeZone() to public wxGetTimeZone() function.

Created new wx/time.h header for this function, more time-related functions
will be added to it later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded wxStopWatch::TimeInMicro() for better precision time measurement.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:12 +0000 (19:50 +0000)] 
Added wxStopWatch::TimeInMicro() for better precision time measurement.

Also simplify/streamline wxStopWatch implementation and replace confusingly
named m_pause with more clear m_elapsedBeforePause.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse ::QueryPerformanceCounter() for wxStopWatch implementation in wxMSW.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:08 +0000 (19:50 +0000)] 
Use ::QueryPerformanceCounter() for wxStopWatch implementation in wxMSW.

QueryPerformanceCounter() provides higher resolution and precision for
measuring time under MSW, even though it suffers from some problems in older
Windows versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse shorter sleep times in wxStopWatch unit test.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:05 +0000 (19:50 +0000)] 
Use shorter sleep times in wxStopWatch unit test.

Make wxStopWatchTestCase::Misc() run in 2.5 seconds instead of 7. This not
only makes the test run faster but allows us to test wxMilliSleep() and
precision of wxStopWatch for time periods in fractional seconds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCorrect wxTLS_PTR definition for !wxHAS_COMPILER_TLS case.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:01 +0000 (19:50 +0000)] 
Correct wxTLS_PTR definition for !wxHAS_COMPILER_TLS case.

wxTLS_PTR should have type of "T*" instead of being simply usable as "T*"
because of its overloaded operator->(), otherwise the code relying on it being
"T*" and compiling without problems in wxHAS_COMPILER_TLS case could fail to
compile without compiler TLS support.

Closes #13644.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't hide/show wxActiveXContainer when resizing it.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:58 +0000 (19:49 +0000)] 
Don't hide/show wxActiveXContainer when resizing it.

This results in bad flicker as can be seen with wxWebView or wxMediaCtrl and
just doesn't seem to be necessary.

Closes #13680.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't crash when changing label of label-less wxToggleButton in wxGTK.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:54 +0000 (19:49 +0000)] 
Don't crash when changing label of label-less wxToggleButton in wxGTK.

If a button doesn't show any text label, simply don't do anything when
SetLabel() is called instead of replacing the image shown by the button with a
text label as the button doesn't expect this to happen and doing it breaks its
assumptions about the widgets it has and results in assert failures later.

Closes #13693.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInclude webview library headers in the list of all headers.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:48 +0000 (19:49 +0000)] 
Include webview library headers in the list of all headers.

Due to a typo in files.bkl (${...} was used instead of $(...) so the variable
didn't get really dereferenced), the web view headers were not included in the
list of all headers and hence not installed by "make install" under Unix.

Closes #13690.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMerge similar but not quite identical translated strings.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:43 +0000 (19:49 +0000)] 
Merge similar but not quite identical translated strings.

Some translated strings appeared several times in almost but not quite
identical form. Remove a few of them so that they don't have to be translated
multiple times.

Closes #13637.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDefine wxCURSOR_DEFAULT_TYPE correctly for the old Cocoa port.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:33 +0000 (19:49 +0000)] 
Define wxCURSOR_DEFAULT_TYPE correctly for the old Cocoa port.

Closes #13652.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agomerged libpng 1.5.6 to trunk
Dimitri Schoolwerth [Fri, 25 Nov 2011 22:25:11 +0000 (22:25 +0000)] 
merged libpng 1.5.6 to trunk

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAccount for indentation in wxDataViewCtrl::GetBestColumnWidth().
Václav Slavík [Fri, 25 Nov 2011 18:11:16 +0000 (18:11 +0000)] 
Account for indentation in wxDataViewCtrl::GetBestColumnWidth().

Generic control only accounted for actual content, but didn't consider
indentation level when calculating width of the expander column.

Fixes #13629.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixing iPhone build
Stefan Csomor [Fri, 25 Nov 2011 14:37:03 +0000 (14:37 +0000)] 
fixing iPhone build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agocheck for self-assignment in operator=
Paul Cornett [Fri, 25 Nov 2011 01:01:26 +0000 (01:01 +0000)] 
check for self-assignment in operator=

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agocopy array with memcpy rather than a loop
Paul Cornett [Fri, 25 Nov 2011 00:59:45 +0000 (00:59 +0000)] 
copy array with memcpy rather than a loop

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agouse int instead of size_t for a couple member variables
Paul Cornett [Fri, 25 Nov 2011 00:52:24 +0000 (00:52 +0000)] 
use int instead of size_t for a couple member variables
it's simpler, and there is no point in using size_t anyway since they are assigned from ints

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoIsNull --> IsEmpty
Paul Cornett [Fri, 25 Nov 2011 00:32:27 +0000 (00:32 +0000)] 
IsNull --> IsEmpty

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Thu, 24 Nov 2011 22:21:59 +0000 (22:21 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to include wxRichToolTip files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOnSysRead is pure virtual
Robin Dunn [Thu, 24 Nov 2011 01:38:08 +0000 (01:38 +0000)] 
OnSysRead is pure virtual

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoThe wxStreamProtocolType enum is multiply defined, remove one of them.
Robin Dunn [Thu, 24 Nov 2011 01:37:45 +0000 (01:37 +0000)] 
The wxStreamProtocolType enum is multiply defined, remove one of them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix crash in wxTreeListCtrl::GetItemText() if text was never set.
Vadim Zeitlin [Wed, 23 Nov 2011 23:58:54 +0000 (23:58 +0000)] 
Fix crash in wxTreeListCtrl::GetItemText() if text was never set.

Asking for the text of an item is not an error even if it was never set for
any column but the first one so just return an empty string in this case
instead of crashing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove redundant GTK-specific code
Paul Cornett [Wed, 23 Nov 2011 17:21:06 +0000 (17:21 +0000)] 
remove redundant GTK-specific code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoItalian translation corrections from Roberto Boriotti.
Vadim Zeitlin [Wed, 23 Nov 2011 15:06:42 +0000 (15:06 +0000)] 
Italian translation corrections from Roberto Boriotti.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake generic wxDataViewCtrl rows a bit taller.
Václav Slavík [Wed, 23 Nov 2011 13:43:04 +0000 (13:43 +0000)] 
Make generic wxDataViewCtrl rows a bit taller.

They now use the same height that Windows 7's Explorer uses. This makes
more inline editor controls fit comfortably.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded convenient wxCmdLineParser::AddLong{Option,Switch}() wrappers.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:58 +0000 (13:18 +0000)] 
Added convenient wxCmdLineParser::AddLong{Option,Switch}() wrappers.

The new functions simply call Add{Option,Switch}() with an empty first
argument but using them makes the code more readable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDismiss wxSplashScreen on any user input, not necessarily on splash itself.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:55 +0000 (13:18 +0000)] 
Dismiss wxSplashScreen on any user input, not necessarily on splash itself.

Use wxEventFilter to remove the splash screen as soon as any user input is
detected anywhere in the application, not necessarily over the splash screen
itself.

This ensures that the splash screen disappears as soon as the user starts
working with the application instead of sticking around and covering the main
window.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnsure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:53 +0000 (13:18 +0000)] 
Ensure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list.

Having the splash screen in Alt-TAB window list under MSW was useless and ugly
(as it didn't even have the proper application icon) so use the appropriate
styles to avoid this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxEventFilter and related functionality.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:50 +0000 (13:18 +0000)] 
Add wxEventFilter and related functionality.

Allow defining event filters to globally pre-process all application events
without having to override wxApp::FilterEvent().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoHack wxMSW wxNotebook to show the text controls correctly initially.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:45 +0000 (13:18 +0000)] 
Hack wxMSW wxNotebook to show the text controls correctly initially.

Add an Update() call to ensure that text controls in the initially selected
notebook page are shown correctly. It's almost certainly not the right fix for
the real bug that results in text controls not being shown when the notebook
comes up but it doesn't cost much and at least allows us to get correct
appearance for the themed notebooks.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixes #13684
Stefan Csomor [Tue, 22 Nov 2011 07:41:17 +0000 (07:41 +0000)] 
fixes #13684

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoItalian translation update from Stefano and Roberto Boriotti.
Vadim Zeitlin [Sat, 19 Nov 2011 17:35:56 +0000 (17:35 +0000)] 
Italian translation update from Stefano and Roberto Boriotti.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCzech translations update from Zbyněk Schwarz.
Vadim Zeitlin [Sat, 19 Nov 2011 00:00:24 +0000 (00:00 +0000)] 
Czech translations update from Zbyněk Schwarz.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix HasFocus() for composite controls.
Vadim Zeitlin [Fri, 18 Nov 2011 23:40:53 +0000 (23:40 +0000)] 
Fix HasFocus() for composite controls.

Comparing the result of DoFindFocus() with the main window of composite
control doesn't work as it can return a child window so HasFocus() still
returned false for a composite control such as generic wxListCtrl even when it
did have focus.

Just use FindFocus() instead of DoFindFocus() to fix this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just remove extra whitespace from wxWebViewIE code.
Vadim Zeitlin [Fri, 18 Nov 2011 23:40:24 +0000 (23:40 +0000)] 
No changes, just remove extra whitespace from wxWebViewIE code.

Closes #13678.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove double buffering from wxWebViewIE as this is handled by the web browser contro...
Steve Lamerton [Thu, 17 Nov 2011 20:43:34 +0000 (20:43 +0000)] 
Remove double buffering from wxWebViewIE as this is handled by the web browser control itself and actually makes flickering worse. Also remove an unnecessary background style.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdjust testing for non-visible controls in wxActiveXContainer.
Steve Lamerton [Thu, 17 Nov 2011 20:39:44 +0000 (20:39 +0000)] 
Adjust testing for non-visible controls in wxActiveXContainer.

Fixes  #13659

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoProvide HANDLE_PTR for the compilers without it such as VC6.
Vadim Zeitlin [Thu, 17 Nov 2011 16:43:34 +0000 (16:43 +0000)] 
Provide HANDLE_PTR for the compilers without it such as VC6.

Also include wx/msw/wrapwin.h defininig HANDLE_PTR from wx/msw/webview_ie.h
that uses it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agodefine Popup and Dismiss for wxComboBox in wxMOTIF
Jouk Jansen [Thu, 17 Nov 2011 07:51:04 +0000 (07:51 +0000)] 
define Popup and Dismiss for wxComboBox in wxMOTIF

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofix missing and broken interface items for Phoenix
Robin Dunn [Thu, 17 Nov 2011 03:20:25 +0000 (03:20 +0000)] 
fix missing and broken interface items for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd arg default values for the Create method
Robin Dunn [Thu, 17 Nov 2011 01:25:56 +0000 (01:25 +0000)] 
Add arg default values for the Create method

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't include webkit headers from wx headers
Robin Dunn [Thu, 17 Nov 2011 01:23:03 +0000 (01:23 +0000)] 
Don't include webkit headers from wx headers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMove wxWebView-related definitions to webview_ie.cpp and fix them.
Vadim Zeitlin [Wed, 16 Nov 2011 23:45:22 +0000 (23:45 +0000)] 
Move wxWebView-related definitions to webview_ie.cpp and fix them.

Ensure that all the GUIDs are defined by including initguid.h to fix linking
error with most versions of MinGW.

Use "wx" prefix to avoid clashes with the standard GUIDs if they do happen to
be defined.

Closes #13645.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAnother Chinese translations update from Jiawei Huang.
Vadim Zeitlin [Wed, 16 Nov 2011 18:38:02 +0000 (18:38 +0000)] 
Another Chinese translations update from Jiawei Huang.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCompilation fix for PCH-less build after r69758.
Vadim Zeitlin [Wed, 16 Nov 2011 18:27:48 +0000 (18:27 +0000)] 
Compilation fix for PCH-less build after r69758.

Need to include wx/msw/private.h explicitly for wxGetCursorPosMSW()
declaration now.

Closes #13664 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd support for digits and +/- sign to wxUIActionSimulator::Text().
Vadim Zeitlin [Tue, 15 Nov 2011 15:56:55 +0000 (15:56 +0000)] 
Add support for digits and +/- sign to wxUIActionSimulator::Text().

Support the characters needed for number entry in wxUIActionSimulator::Text()
too.

Closes #13671.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoOnly update status bar fields after they were created in wxMSW.
Vadim Zeitlin [Tue, 15 Nov 2011 15:46:01 +0000 (15:46 +0000)] 
Only update status bar fields after they were created in wxMSW.

Postpone updating statu bar panes after they were actually created.

Setting the status bar fields contents before setting the number of them
failed resulting in debug error messages and the text not appearing in the
status bar.

Closes #13670.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReplace wxT() with wxS() in image options definitions.
Vadim Zeitlin [Mon, 14 Nov 2011 13:35:52 +0000 (13:35 +0000)] 
Replace wxT() with wxS() in image options definitions.

The optimal way of creating a literal strings consisting of only ASCII
characters is to use wxS() as this avoids the need for run-time conversion in
all builds while wxT() requires a conversion from wchar_t to UTF-8 in UTF-8
builds. So replace wxT() with wxS() in wxImage options definitions.

Also remove wxT() from the options documentation, it's just useless there.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded wxIMAGE_OPTION_ORIGINAL_{WIDTH,HEIGHT} wxImage options.
Vadim Zeitlin [Mon, 14 Nov 2011 13:35:48 +0000 (13:35 +0000)] 
Added wxIMAGE_OPTION_ORIGINAL_{WIDTH,HEIGHT} wxImage options.

These options allow to retrieve the original image size if the image was
scaled during load.

Closes #13662.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:53 +0000 (12:51 +0000)] 
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.

In some rare but reproducible cases GetCursorPos() can fail and return without
filling in the provided point. Fall back to GetMessagePos() if this happens:
this is not ideal but clearly better than using uninitialized position or hard
coding something like (0, 0).

Closes #13664.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't redefine symbols already defined in latest MinGW headers.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:49 +0000 (12:51 +0000)] 
Don't redefine symbols already defined in latest MinGW headers.

Closes #13645.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just add another case to a switch on wxMouseButton.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:47 +0000 (12:51 +0000)] 
No changes, just add another case to a switch on wxMouseButton.

Fix warnings given when wx headers are compiled with g++ -Wswitch-enum option.

Also make the assert messages more precise and less verbose as there is no
need to include the function name in them, all relatively recent compilers
provide it via __FUNCTION__ and wxFAIL_MSG() already uses it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775