]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoUse '1'..'9' to simulate digits instead of WXK_NUMPADn.
Vadim Zeitlin [Thu, 8 Dec 2011 15:55:40 +0000 (15:55 +0000)] 
Use '1'..'9' to simulate digits instead of WXK_NUMPADn.

Using WXK_NUMPADn with wxUIActionSimulator doesn't work under Unix, the
resulting GDK events have wrong keyval for some reason.

It would, of course, be nice to fix this but in the meanwhile use ASCII codes
to simulate the digits to at least allow doing this at all.

Also extend uiaction sample to allow testing text simulation.

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

12 years agoRefactor to eliminate duplication in wxGTK key events generation code.
Vadim Zeitlin [Thu, 8 Dec 2011 15:55:37 +0000 (15:55 +0000)] 
Refactor to eliminate duplication in wxGTK key events generation code.

This also fixes a small bug with wxKeyEvent::m_uniChar not being always set
correctly to the same value as m_keyCode for ASCII characters.

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

12 years agoRegenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but...
Bryan Petty [Thu, 8 Dec 2011 15:45:41 +0000 (15:45 +0000)] 
Regenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but only for use with Doxygen 1.7.4.

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

12 years agoFix Unicode key code for Ctrl-letter in wxGTK.
Vadim Zeitlin [Thu, 8 Dec 2011 14:54:25 +0000 (14:54 +0000)] 
Fix Unicode key code for Ctrl-letter in wxGTK.

This was broken by changes in r69892 and just the letter was used as the key
code instead of Ctrl-letter as it used (and should) be.

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

12 years agoOnly declare wxComboBox::Popup/Dismiss() when using Cocoa in wxOSX.
Vadim Zeitlin [Thu, 8 Dec 2011 14:47:37 +0000 (14:47 +0000)] 
Only declare wxComboBox::Popup/Dismiss() when using Cocoa in wxOSX.

wxOSX/Carbon doesn't use the core implementation file so declaring these
methods for the Carbon version resulted in linking errors. Just don't do this,
they're not implemented for Carbon anyhow.

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

12 years agoRefresh generic wxListCtrl after removing a column from it.
Vadim Zeitlin [Thu, 8 Dec 2011 14:15:55 +0000 (14:15 +0000)] 
Refresh generic wxListCtrl after removing a column from it.

Deleting a column still kept it on display, at least until the next refresh,
e.g. resizing the window was enough to make it disappear.

Simply add a call to Refresh() to ensure that the column does disappear when
deleted.

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

12 years agoDocument that wxEraseEvent::GetDC() never returns NULL.
Vadim Zeitlin [Thu, 8 Dec 2011 13:07:53 +0000 (13:07 +0000)] 
Document that wxEraseEvent::GetDC() never returns NULL.

This makes implementation of EVT_ERASE_BACKGROUND handlers simpler.

Closes #13736.

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

12 years agoCorrect the name of EVT_DATAVIEW_ITEM_START_EDITING event type in the docs.
Vadim Zeitlin [Thu, 8 Dec 2011 13:04:11 +0000 (13:04 +0000)] 
Correct the name of EVT_DATAVIEW_ITEM_START_EDITING event type in the docs.

START_EDITING is not the same as EDITING_STARTED.

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

12 years agoFix asserts when removing the menu item starting radio group in wxOSX.
Vadim Zeitlin [Thu, 8 Dec 2011 00:07:12 +0000 (00:07 +0000)] 
Fix asserts when removing the menu item starting radio group in wxOSX.

Update m_startRadioGroup when removing the item it corresponds to.

Closes #13545.

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

12 years agoSet the tooltip for generic wxToolBar tools under wxOSX/Cocoa.
Vadim Zeitlin [Wed, 7 Dec 2011 23:55:38 +0000 (23:55 +0000)] 
Set the tooltip for generic wxToolBar tools under wxOSX/Cocoa.

When using non-native toolbar, set the tooltip for tools m_controlHandle.

Closes #12362.

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

12 years agoWork around impossibility to use wxCombobox in wxGrid in wxOSX.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:14 +0000 (23:41 +0000)] 
Work around impossibility to use wxCombobox in wxGrid in wxOSX.

Open the combobox when the editor is initially shown, this somehow ensures
that the combobox selection is taken into account when it is closed while
without this the selection is simply completely ignored.

This is just a hack but at least it allows to use wxGridCellChoiceEditor under
wxOSX which was previously impossible at all.

Closes #12644.

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

12 years agoUse NSApp abortModal instead of stopModal to end modal dialogs.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:10 +0000 (23:41 +0000)] 
Use NSApp abortModal instead of stopModal to end modal dialogs.

Using abortModal is apparently the right thing to do if the dialog is not
being closed as the result of user action (but e.g. because a timer expired)
and shouldn't change anything if it done because of something the user did
(e.g. clicked on a button).

Closes #12467.

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

12 years agoImplement wxComboBox::Popup() and Dismiss() for wxOSX/Cocoa.
Vadim Zeitlin [Wed, 7 Dec 2011 23:41:06 +0000 (23:41 +0000)] 
Implement wxComboBox::Popup() and Dismiss() for wxOSX/Cocoa.

Unlike in the other ports, these methods currently don't generate any events
under OS X because these events are never generated at all there.

Closes #12642.

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

12 years agoDon't use gtk_menu_item_set_submenu() with NULL menu with GTK+ < 2.12.
Vadim Zeitlin [Wed, 7 Dec 2011 23:21:06 +0000 (23:21 +0000)] 
Don't use gtk_menu_item_set_submenu() with NULL menu with GTK+ < 2.12.

In GTK+ 2.10 and earlier gtk_menu_item_remove_submenu() had to be used to
remove the items submenu as gtk_menu_item_set_submenu() gave errors when
passed NULL submenu, so call the old function when using old GTK+ version.

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

12 years agoIn Refresh(), allow for possibility that child is mapped and parent is not.
Paul Cornett [Wed, 7 Dec 2011 19:34:57 +0000 (19:34 +0000)] 
In Refresh(), allow for possibility that child is mapped and parent is not.
It turns out this can actually happen, and is apparently allowed by GTK.

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

12 years agoOrder the libraries correctly in wx-config for static linking.
Vadim Zeitlin [Wed, 7 Dec 2011 16:13:26 +0000 (16:13 +0000)] 
Order the libraries correctly in wx-config for static linking.

The order of libraries matters when linking statically under UNIX. Ensure that
it is always correct in wx-config itself.

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

12 years agoFix the size of the buffer when using wxIPC::Execute() with DDE.
Vadim Zeitlin [Wed, 7 Dec 2011 14:35:23 +0000 (14:35 +0000)] 
Fix the size of the buffer when using wxIPC::Execute() with DDE.

Don't multiply the "realSize" variable by sizeof(wxChar) when passing it to
DdeClientTransaction(), as its name indicates it is already supposed to be the
size of the data and not the length of the string so just ensure that it is
always correctly set to the size and not length when initializing it.

Closes #13734.

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

12 years agoRemove vertical wxTextCtrl adjustment hacks for wxMSW in wxComboCtrl code.
Vadim Zeitlin [Wed, 7 Dec 2011 14:05:11 +0000 (14:05 +0000)] 
Remove vertical wxTextCtrl adjustment hacks for wxMSW in wxComboCtrl code.

Because wxTextCtrl used to wrongly report its best size in wxNO_BORDER case
under MSW, wxComboCtrl manually adjusted its position to work around this.
However since r69066 wxTextCtrl::GetBestSize() was fixed and now these
adjustments resulted in wrong vertical position for the control.

Just remove all manual adjustments completely now to fix this.

Closes #13722.

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

12 years agoadd dot to path
Chris Elliott [Wed, 7 Dec 2011 12:48:17 +0000 (12:48 +0000)] 
add dot to path

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

12 years agoAdd documentation of emitted events to wxScrolled documentation.
Vadim Zeitlin [Wed, 7 Dec 2011 12:46:15 +0000 (12:46 +0000)] 
Add documentation of emitted events to wxScrolled documentation.

Make it clear that wxScrolled<> emits wxScrollWinEvent and not wxScrollEvent.

Closes #13730.

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

12 years agoUpdate Make-files for OpenVMS
Jouk Jansen [Wed, 7 Dec 2011 07:47:29 +0000 (07:47 +0000)] 
Update Make-files for OpenVMS

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

12 years agoPretend that the window showing popup menu has focus in wxGTK.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:48 +0000 (00:59 +0000)] 
Pretend that the window showing popup menu has focus in wxGTK.

This is necessary for compatibility with wxMSW as the focus remains on the
window which had it before the popup menu was shown there and existing code
relies on it, while in wxGTK the popup steals the focus when it's shown.

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

12 years agoEnable wxEvtHandler::Bind() for Sun CC.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:46 +0000 (00:59 +0000)] 
Enable wxEvtHandler::Bind() for Sun CC.

At least 5.10+ are good enough to compile it.

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

12 years agoFix build with Sun CC under Linux.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:43 +0000 (00:59 +0000)] 
Fix build with Sun CC under Linux.

We need to explicitly define _GNU_SOURCE when building our code as we use it
configure when running the tests and it's not predefined by Sun CC, unlike g++
so we need to add it to CXXFLAGS ourselves.

An alternative solution would be to run the tests without _GNU_SOURCE but this
would lose too much functionality so it doesn't seem like a good idea.

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

12 years agoRemove wxHAVE_GLIBC2 from configure, always predefine _GNU_SOURCE.
Vadim Zeitlin [Wed, 7 Dec 2011 00:59:40 +0000 (00:59 +0000)] 
Remove wxHAVE_GLIBC2 from configure, always predefine _GNU_SOURCE.

We used to test for glibc version first and predefined _GNU_SOURCE only if it
was greater than 2.1 but there doesn't seem to be any harm to just always
predefine _GNU_SOURCE under Linux (not that there are any systems with glibc <
2.1 left anyhow). Also do it much earlier to ensure that all tests are
affected by it.

And as we don't use wxHAVE_GLIBC2 anywhere else just remove it.

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

12 years agoavoiding NSToolbarSeparatorItemIdentifier under Lion, where it is not supported anymo...
Stefan Csomor [Tue, 6 Dec 2011 18:35:49 +0000 (18:35 +0000)] 
avoiding NSToolbarSeparatorItemIdentifier under Lion, where it is not supported anymore, fixes #13363

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

12 years agoApplied patch #13698 to fix wrong border test
Julian Smart [Mon, 5 Dec 2011 09:59:51 +0000 (09:59 +0000)] 
Applied patch #13698 to fix wrong border test

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

12 years agoadd docs to name
Chris Elliott [Mon, 5 Dec 2011 09:00:23 +0000 (09:00 +0000)] 
add docs to name

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

12 years agoNo changes, just remove unnecessary assignment in wxOSX code.
Vadim Zeitlin [Mon, 5 Dec 2011 00:00:58 +0000 (00:00 +0000)] 
No changes, just remove unnecessary assignment in wxOSX code.

Local size variable was unnecessarily assigned itself.

Closes #13723.

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

12 years agoAdd virtual dtor to wxCustomBackgroundWindowBase.
Vadim Zeitlin [Sun, 4 Dec 2011 23:57:36 +0000 (23:57 +0000)] 
Add virtual dtor to wxCustomBackgroundWindowBase.

Suppress g++ warnings about a class with virtual methods but non-virtual dtor
by making the dtor virtual even if we don't need it to be virtual in this
class.

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

12 years agoCompilation fix for wxCarbon after the last commit.
Vadim Zeitlin [Sun, 4 Dec 2011 23:57:32 +0000 (23:57 +0000)] 
Compilation fix for wxCarbon after the last commit.

Apply corrected version of the patch for Carbon.

See #13661.

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

13 years agoFix wxDataViewCtrl compilation with 10.7 SDK under OS X.
Vadim Zeitlin [Sun, 4 Dec 2011 19:23:42 +0000 (19:23 +0000)] 
Fix wxDataViewCtrl compilation with 10.7 SDK under OS X.

Add the required casts to wxPointerObject.

Closes #13661.

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

13 years agoDo not declare "environ" variable ourselves under MSW.
Vadim Zeitlin [Sun, 4 Dec 2011 12:26:24 +0000 (12:26 +0000)] 
Do not declare "environ" variable ourselves under MSW.

The changes of r69564 making "environ" declaration unconditional broke
MinGW 4.6 build, presumably because "environ" is declared differently (as DLL
exported?) there, so avoid declaring it under MSW, we don't need to do it
there anyhow as it's always defined in system headers.

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

13 years agoAllow 2-step creation of wxGenericProgressDialog.
Vadim Zeitlin [Sat, 3 Dec 2011 23:52:39 +0000 (23:52 +0000)] 
Allow 2-step creation of wxGenericProgressDialog.

Add default ctor and Create() with the same parameters as the non-default
ctor.

Closes #13555.

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

13 years agoDon't include version in the URL created by wxMSW installer.
Vadim Zeitlin [Sat, 3 Dec 2011 23:52:36 +0000 (23:52 +0000)] 
Don't include version in the URL created by wxMSW installer.

The link is the same for all version so don't version it.

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

13 years agoDon't require admin privileges in the MSW installer.
Vadim Zeitlin [Sat, 3 Dec 2011 23:52:33 +0000 (23:52 +0000)] 
Don't require admin privileges in the MSW installer.

We don't need any extra privileges so avoid the elevation prompt under Windows
Vista and later.

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

13 years agoGenerate makefiles for treelist sample when using configure.
Vadim Zeitlin [Sat, 3 Dec 2011 00:34:24 +0000 (00:34 +0000)] 
Generate makefiles for treelist sample when using configure.

treelist sample was never added to SAMPLES_SUBDIRS.

Closes #13718.

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

13 years agoFix bug with wxStopWatch::Start() not resuming paused stopwatch any more.
Vadim Zeitlin [Sat, 3 Dec 2011 00:34:00 +0000 (00:34 +0000)] 
Fix bug with wxStopWatch::Start() not resuming paused stopwatch any more.

Since r69835 the stop watch remained paused even when Start() was called. Do
resume it when restarting it both for backwards compatibility and because it
makes more sense and also document this behaviour.

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

13 years agoUpdated out of date versions and release dates.
Dimitri Schoolwerth [Fri, 2 Dec 2011 23:44:22 +0000 (23:44 +0000)] 
Updated out of date versions and release dates.

Mentioned more files in tn0011.txt that need version updating, and made it more clear which ones need to be changed manually. Modified inc_release to update docs/readme.txt and changed the version references in the readme.txt to 2.9.3. Also changed two references to the month of release from July to December.

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

13 years agorc1
Chris Elliott [Fri, 2 Dec 2011 17:06:32 +0000 (17:06 +0000)] 
rc1

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

13 years agofixing build
Stefan Csomor [Fri, 2 Dec 2011 13:25:16 +0000 (13:25 +0000)] 
fixing build

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

13 years agoLink to wxGridCellFloatFormat when it's mentioned in the documentation.
Vadim Zeitlin [Fri, 2 Dec 2011 12:42:35 +0000 (12:42 +0000)] 
Link to wxGridCellFloatFormat when it's mentioned in the documentation.

Enum names are not auto-linked by Doxygen so prefix this enum with "::" to
force link creation.

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

13 years agoRebake after webview-related changes in common.bkl.
Vadim Zeitlin [Fri, 2 Dec 2011 12:04:51 +0000 (12:04 +0000)] 
Rebake after webview-related changes in common.bkl.

Forgot to rebake all files (and not just library ones) after changes of
r69589.

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

13 years agoCompilation fixes for wxMSW in wxUSE_STL=1 build.
Vadim Zeitlin [Fri, 2 Dec 2011 12:04:46 +0000 (12:04 +0000)] 
Compilation fixes for wxMSW in wxUSE_STL=1 build.

Add explicit conversions from wxString to wchar_t* as they don't happen
implicitly when wxUSE_STL=1.

Closes #13715.

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

13 years agoHandle OpenBSD in wxDialUpManager code.
Vadim Zeitlin [Fri, 2 Dec 2011 12:04:42 +0000 (12:04 +0000)] 
Handle OpenBSD in wxDialUpManager code.

Closes #13716.

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

13 years agoset svn:eol-style to CRLF on MSVC project files for wxWebView
Dimitri Schoolwerth [Fri, 2 Dec 2011 10:34:46 +0000 (10:34 +0000)] 
set svn:eol-style to CRLF on MSVC project files for wxWebView

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

13 years agoFixed x64 application termination after exceptions in a file dialog callback.
Dimitri Schoolwerth [Fri, 2 Dec 2011 10:15:16 +0000 (10:15 +0000)] 
Fixed x64 application termination after exceptions in a file dialog callback.

Since Windows 7 exceptions thrown in a file dialog callback (possibly by third-party utilities) aren't swallowed anymore. Make use of SetProcessUserModeExceptionPolicy (available in Windows 7 SP1) to temporarily restore the old behaviour and prevent the crashing (or summoning of the Program Compatibility Assistant) of an x64 application.

Closes #13674.

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

13 years agoadapting Xcode projects for r69898
Stefan Csomor [Fri, 2 Dec 2011 07:40:45 +0000 (07:40 +0000)] 
adapting Xcode projects for r69898

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

13 years agoRemoved const from a couple methods that are not const in the real code.
Robin Dunn [Fri, 2 Dec 2011 01:01:12 +0000 (01:01 +0000)] 
Removed const from a couple methods that are not const in the real code.

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

13 years agoRename src/generic/richtooltip.cpp to src/generic/richtooltipg.cpp.
Vadim Zeitlin [Fri, 2 Dec 2011 00:56:44 +0000 (00:56 +0000)] 
Rename src/generic/richtooltip.cpp to src/generic/richtooltipg.cpp.

This avoids object file name conflict with src/msw/richtooltip.cpp when using
VC6.

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

13 years agoUpdate all controls using in-place editors to handle Escape/Return correctly.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:41 +0000 (00:50 +0000)] 
Update all controls using in-place editors to handle Escape/Return correctly.

Define EVT_CHAR_HOOK handlers to ensure that pressing Escape/Return while an
in-place edit control is active affects only it and is not used for the
keyboard navigation.

Closes #9102.

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

13 years agoFix reentrancy in wxDataViewRendererBase::FinishEditing().
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:35 +0000 (00:50 +0000)] 
Fix reentrancy in wxDataViewRendererBase::FinishEditing().

Switching focus to the main wxDataViewCtrl window resulted in focus loss event
and a reentrant call to FinishEditing() itself if it wasn't called because the
in-place edit control was being destroyed the first time.

Fix this by destroying the in-place control first and adjusting the focus
later, the effect should be exactly the same but now FinishEditing() can be
safely called from anywhere in the code.

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

13 years agoNo changes, just move wxTreeCtrlBase ctor to the source file.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:33 +0000 (00:50 +0000)] 
No changes, just move wxTreeCtrlBase ctor to the source file.

Move inline ctor out of line to prepare for changing it.

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

13 years agoDon't use ListView_CancelEditLabel() as it doesn't work as expected.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:29 +0000 (00:50 +0000)] 
Don't use ListView_CancelEditLabel() as it doesn't work as expected.

ListView_CancelEditLabel() doesn't revert the controls value to the original
text as expected, so don't use it and revert to sending VK_ESCAPE to the
in-place edit control instead under all versions of Windows.

See #7663.

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

13 years agoMake wxEVT_CHAR_HOOK propagate upwards and send it to the window itself.
Vadim Zeitlin [Fri, 2 Dec 2011 00:50:25 +0000 (00:50 +0000)] 
Make wxEVT_CHAR_HOOK propagate upwards and send it to the window itself.

Send wxEVT_CHAR_HOOK events to the focused window itself but make them
propagatable to ensure that the parent windows (including the top level
parent) still get it. This still allows the TLW parent to intercept keyboard
handling in its child but allows the child (or an intermediate parent window)
to have some say in the matter.

See #9102.

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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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

13 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