]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
11 years agoassociate the outline view with the impl, fixes #13748
Stefan Csomor [Tue, 4 Jun 2013 16:18:53 +0000 (16:18 +0000)] 
associate the outline view with the impl, fixes #13748

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

11 years agorefactoring focus handling
Stefan Csomor [Tue, 4 Jun 2013 07:22:54 +0000 (07:22 +0000)] 
refactoring focus handling

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

11 years agoexposing wxOSXGetViewFromResponder
Stefan Csomor [Tue, 4 Jun 2013 07:06:19 +0000 (07:06 +0000)] 
exposing wxOSXGetViewFromResponder

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

11 years agoadding a more extensive version to arrive at the impl when given a native control...
Stefan Csomor [Tue, 4 Jun 2013 06:54:50 +0000 (06:54 +0000)] 
adding a more extensive version to arrive at the impl when given a native control, taking into account eg the composited controls of a scrollview

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

11 years agoadding comment
Stefan Csomor [Tue, 4 Jun 2013 06:27:02 +0000 (06:27 +0000)] 
adding comment

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

11 years agoavoiding reentrancy problems and congestion
Stefan Csomor [Mon, 3 Jun 2013 17:54:31 +0000 (17:54 +0000)] 
avoiding reentrancy problems and congestion

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

11 years agoavoiding focus lost events when a different subview gets focused, see #14042
Stefan Csomor [Mon, 3 Jun 2013 17:49:03 +0000 (17:49 +0000)] 
avoiding focus lost events when a different subview gets focused, see #14042

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

11 years agomake sure we don't execute pending deletes either when in runModel, otherwise reentra...
Stefan Csomor [Mon, 3 Jun 2013 14:57:56 +0000 (14:57 +0000)] 
make sure we don't execute pending deletes either when in runModel, otherwise reentrancy problems occur

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

11 years agousing ordinary Show for popup windows as on MSW which activates it as well, I'll...
Stefan Csomor [Mon, 3 Jun 2013 13:21:10 +0000 (13:21 +0000)] 
using ordinary Show for popup windows as on MSW which activates it as well, I'll rewire ShowWithoutActivating for the other use case, fixes #15008

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

11 years agorefactoring SizeEvent sending
Stefan Csomor [Mon, 3 Jun 2013 13:01:50 +0000 (13:01 +0000)] 
refactoring SizeEvent sending

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

11 years agorefactoring SizeEvent sending
Stefan Csomor [Mon, 3 Jun 2013 12:58:29 +0000 (12:58 +0000)] 
refactoring SizeEvent sending

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

11 years agoforgot to commit ...
Stefan Csomor [Mon, 3 Jun 2013 11:47:53 +0000 (11:47 +0000)] 
forgot to commit ...

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

11 years agoattempt to get the 'new focus' window parameter of a focus kill event set correctly
Stefan Csomor [Mon, 3 Jun 2013 10:37:01 +0000 (10:37 +0000)] 
attempt to get the 'new focus' window parameter of a focus kill event set correctly

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

11 years agodeal with Cocoa as we do with Carbon, see #15008
Stefan Csomor [Mon, 3 Jun 2013 09:40:50 +0000 (09:40 +0000)] 
deal with Cocoa as we do with Carbon, see #15008

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

11 years agodeal with Cocoa as we do with Carbon, see #15008
Stefan Csomor [Mon, 3 Jun 2013 08:34:11 +0000 (08:34 +0000)] 
deal with Cocoa as we do with Carbon, see #15008

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

11 years agomake sure mouse moved events are always delivered, see #15008
Stefan Csomor [Mon, 3 Jun 2013 08:32:15 +0000 (08:32 +0000)] 
make sure mouse moved events are always delivered, see #15008

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

11 years agomake sure button clicks etc. on a popup window don't lead to a dismissal because...
Stefan Csomor [Mon, 3 Jun 2013 08:30:33 +0000 (08:30 +0000)] 
make sure button clicks etc. on a popup window don't lead to a dismissal because their GetWindow()/parent = popup check didn't work

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

11 years agoTurkish translations update from Kaya Zeren.
Vadim Zeitlin [Sun, 2 Jun 2013 18:03:21 +0000 (18:03 +0000)] 
Turkish translations update from Kaya Zeren.

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

11 years agoupdated Xcode project files
Stefan Csomor [Sun, 2 Jun 2013 15:02:06 +0000 (15:02 +0000)] 
updated Xcode project files

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

11 years agodon't take resize indicators into account if we are at 10.7 or higher, they don't...
Stefan Csomor [Sun, 2 Jun 2013 09:57:26 +0000 (09:57 +0000)] 
don't take resize indicators into account if we are at 10.7 or higher, they don't exist anymore … see #15187

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

11 years agopropagate scroll wheel events to parent, fixes #15187
Stefan Csomor [Sun, 2 Jun 2013 09:33:33 +0000 (09:33 +0000)] 
propagate scroll wheel events to parent, fixes #15187

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

11 years agofixes potential crash under gatekeeper
Stefan Csomor [Sat, 1 Jun 2013 18:29:41 +0000 (18:29 +0000)] 
fixes potential crash under gatekeeper

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

11 years agoonly set native window level, when not using a wrapped native window, see #14739
Stefan Csomor [Sat, 1 Jun 2013 18:28:53 +0000 (18:28 +0000)] 
only set native window level, when not using a wrapped native window, see #14739

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

11 years agoupdate position for widgets in native containers, fixes #15231
Paul Cornett [Sat, 1 Jun 2013 17:06:14 +0000 (17:06 +0000)] 
update position for widgets in native containers, fixes #15231

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

11 years agoDocument that wxRadioBox::SetSelection() doesn't accept wxNOT_FOUND.
Vadim Zeitlin [Fri, 31 May 2013 23:21:40 +0000 (23:21 +0000)] 
Document that wxRadioBox::SetSelection() doesn't accept wxNOT_FOUND.

A radio box always has selection and it can't be unset (at least not under all
platforms), so document that the item passed to its SetSelection() must be
valid, unlike with SetSelection() methods in some other classes.

Closes #15233.

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

11 years agoChange wxMSW wxTreeCtrl::DoFreeze() to not hide the tree any more.
Vadim Zeitlin [Fri, 31 May 2013 23:21:36 +0000 (23:21 +0000)] 
Change wxMSW wxTreeCtrl::DoFreeze() to not hide the tree any more.

Hiding the tree when it's frozen, as done in r72665, results in its own
problems, e.g. loss of focus. So don't do this but resize the control to a
very small size when freezing it and restore it to its old size afterwards.

Closes #15166.

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

11 years agoAdd wxFileDialog::GetCurrentlySelectedFilename().
Vadim Zeitlin [Fri, 31 May 2013 23:21:27 +0000 (23:21 +0000)] 
Add wxFileDialog::GetCurrentlySelectedFilename().

Also send wxEVT_UPDATE_UI events for the extra controls in wxFileDialog.

The combination of these changes allows extra controls to update their state
depending on the current selection in the dialog. Show a simple example of
doing it in the dialogs sample.

Closes #15235.

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

11 years agoDon't create multiple parent-less top level frames in layout sample.
Vadim Zeitlin [Fri, 31 May 2013 23:21:21 +0000 (23:21 +0000)] 
Don't create multiple parent-less top level frames in layout sample.

This resulted in unexpected behaviour if the main frame was closed while the
other ones were still shown as they remained shown and had to be hunted and
closed one by one to make the application exit.

Fix this simply by creating all the other frames as children of the main one.
This also results in better UI when minimizing and restoring the main frame.

Also get rid of unused position parameters in child frame constructors and get
rid of the title parameter which is not really needed as it's always the same
too.

See #11923.

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

11 years agoFix wxStyledTextCtrl::SetInsertionPointEnd().
Vadim Zeitlin [Fri, 31 May 2013 23:21:16 +0000 (23:21 +0000)] 
Fix wxStyledTextCtrl::SetInsertionPointEnd().

This relied on SetInsertionPoint(-1) working like in wxTextCtrl but it didn't.
Add an explicit check to it for consistency with the other classes and to make
SetInsertionPointEnd() work.

Closes #15234.

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

11 years agoImprove horizontal scrolling in wxRibbonControl.
Vadim Zeitlin [Fri, 31 May 2013 23:21:11 +0000 (23:21 +0000)] 
Improve horizontal scrolling in wxRibbonControl.

Scroll by entire "sections", i.e. panes of the ribbon, instead of scrolling by
a fixed number of pixels as it's much more useful and user-friendly to uncover
the next section entirely instead of asking the user to press on the arrow
several times before being able to use it.

Closes #15232.

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

11 years agoUse deferred window positioning in wxWindow::Layout() in wxMSW.
Vadim Zeitlin [Fri, 31 May 2013 23:21:06 +0000 (23:21 +0000)] 
Use deferred window positioning in wxWindow::Layout() in wxMSW.

Ensure that {Begin,End}RepositioningChildren() are called before/after
changing the positions of multiple children, whether we're using sizers or
constraints.

This fixes display corruption which could happen under Windows 7 and a child
resized first became bigger, pushing off the children resized later.

Closes #15214.

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

11 years agoAdd wxWindow::BeginRepositioningChildren() and EndRepositioningChildren().
Vadim Zeitlin [Fri, 31 May 2013 23:21:03 +0000 (23:21 +0000)] 
Add wxWindow::BeginRepositioningChildren() and EndRepositioningChildren().

This is just a refactoring of wxMSW code to make it possible to use deferred
window positioning from other places in subsequent commits.

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

11 years agoMake wxSharedPtr::Release() really MT-safe.
Vadim Zeitlin [Fri, 31 May 2013 23:20:58 +0000 (23:20 +0000)] 
Make wxSharedPtr::Release() really MT-safe.

Using wxAtomicDec() is not enough, its result also must be checked as it will
return 0 only in one of the threads if multiple threads call it in parallel,
while the old test for m_count==0 could pass for more than one thread,
resulting in deleting the same pointer more than once.

Closes #15227.

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

11 years agoFix for special characters in Doxygen comments.
Vadim Zeitlin [Fri, 31 May 2013 23:20:53 +0000 (23:20 +0000)] 
Fix for special characters in Doxygen comments.

Escape "-" characters in the beginning of the paragraph as they are not
handled properly by Doxygen otherwise.

Escape the space after "i.e." to prevent the brief doc string from being
terminated by it.

Escape "--" which is translated to a dash by Doxygen otherwise.

Closes #15228.

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

11 years agoFix assert when adding columns to wxGrid using native header.
Vadim Zeitlin [Fri, 31 May 2013 23:20:48 +0000 (23:20 +0000)] 
Fix assert when adding columns to wxGrid using native header.

Change the order of updating m_colWidths array and the native header control
in wxGird::Redimension() to ensure that we can test whether the column is
shown (which results in accessing m_colWidths element at this column index)
from the wxGridHeaderCtrl::SetColumnCount().

Closes #15225.

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

11 years agousing an empty default menu bar when no menubar is available, see #12402
Stefan Csomor [Fri, 31 May 2013 18:19:49 +0000 (18:19 +0000)] 
using an empty default menu bar when no menubar is available, see #12402

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

11 years agomake sure we have a default handling the quit command, see #12402
Stefan Csomor [Fri, 31 May 2013 18:18:42 +0000 (18:18 +0000)] 
make sure we have a default handling the quit command, see #12402

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

11 years agoavoiding reshow of hidden windows when app is brought forward #12402
Stefan Csomor [Fri, 31 May 2013 17:33:53 +0000 (17:33 +0000)] 
avoiding reshow of hidden windows when app is brought forward #12402

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

11 years agoApplied patch for #15189 - avoid crash when deleting focused cell (dghart)
Julian Smart [Sun, 26 May 2013 15:32:12 +0000 (15:32 +0000)] 
Applied patch for #15189 - avoid crash when deleting focused cell (dghart)

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

11 years agoReset row and columns count in wxRichTextTable::ClearTable().
Vadim Zeitlin [Sun, 26 May 2013 13:14:48 +0000 (13:14 +0000)] 
Reset row and columns count in wxRichTextTable::ClearTable().

No real changes, just update the internal variables in ClearTable() to avoid
inconsistent internal state, even if this doesn't seem to result in any
problems for now.

Closes #15190.

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

11 years agoEnsure that detached menus don't keep focus grab in wxGTK.
Vadim Zeitlin [Sun, 26 May 2013 13:14:43 +0000 (13:14 +0000)] 
Ensure that detached menus don't keep focus grab in wxGTK.

A widget being hidden must remove its focus grab with GTK+, otherwise GTK+
would continue sending all input messages to it but fail to process them
because the widget is not realized any more, resulting in a complete freeze of
the entire program.

Do it when detaching menus from menubar and menubar from the frame to fix just
such a problem in case SetMenuBar() was called while the previous menubar was
opened.

Closes #15221.

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

11 years agoFix printing multiple copies in wxMSW.
Vadim Zeitlin [Sun, 26 May 2013 13:14:38 +0000 (13:14 +0000)] 
Fix printing multiple copies in wxMSW.

If wxPrinterDC was created by the native "Print" dialog for a printer that
supports printing multiple copies, we must not manually print multiple copies
ourselves as this results in too many copies being printed. However we still
need to loop explicitly for wxPrinterDC objects created manually or for the
printers without support for multiple copies (supposing they still exist).

Closes #10323.

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

11 years agoUse C locale representation for floating point numbers in wxAny.
Vadim Zeitlin [Sun, 26 May 2013 13:14:35 +0000 (13:14 +0000)] 
Use C locale representation for floating point numbers in wxAny.

Always use the decimal point, regardless of the current locale.

This completes the changes of r74019.

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

11 years agoTamil translations update from DINAKAR T.D.
Vadim Zeitlin [Sun, 26 May 2013 11:55:40 +0000 (11:55 +0000)] 
Tamil translations update from DINAKAR T.D.

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

11 years agoadding x server license terms for polygon methods
Stefan Csomor [Fri, 24 May 2013 17:05:19 +0000 (17:05 +0000)] 
adding x server license terms for polygon methods

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

11 years agoadding x server license terms for polygon methods
Stefan Csomor [Fri, 24 May 2013 17:04:01 +0000 (17:04 +0000)] 
adding x server license terms for polygon methods

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

11 years agoadding x server license terms for polygon methods
Stefan Csomor [Fri, 24 May 2013 17:01:54 +0000 (17:01 +0000)] 
adding x server license terms for polygon methods

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

11 years agousing scan-line polygon conversion for constructing wxregion
Stefan Csomor [Fri, 24 May 2013 16:54:37 +0000 (16:54 +0000)] 
using scan-line polygon conversion for constructing wxregion

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

11 years agoAdd wxRTTI for the wxFileSystemWatcherEvent class
Robin Dunn [Fri, 24 May 2013 16:05:33 +0000 (16:05 +0000)] 
Add wxRTTI for the wxFileSystemWatcherEvent class

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

11 years agoCorrectly link to wxWebViewNavigationError from wxWebViewEvent.
Steve Lamerton [Fri, 24 May 2013 14:38:39 +0000 (14:38 +0000)] 
Correctly link to wxWebViewNavigationError from wxWebViewEvent.

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

11 years agoDocument the unused baseURL parameter in wxWebViewIE.
Steve Lamerton [Fri, 24 May 2013 14:04:56 +0000 (14:04 +0000)] 
Document the unused baseURL parameter in wxWebViewIE.

See #15223.

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

11 years agoAdd ctor and assign() taking an iterator range to wxVector<>.
Vadim Zeitlin [Wed, 22 May 2013 14:13:26 +0000 (14:13 +0000)] 
Add ctor and assign() taking an iterator range to wxVector<>.

Do it for consistency with wxArray and std::vector<>, even if the current
implementation is suboptimal.

See #15216.

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

11 years agoAdd ctor from two input iterators to wxArray in STL build too.
Vadim Zeitlin [Wed, 22 May 2013 14:13:22 +0000 (14:13 +0000)] 
Add ctor from two input iterators to wxArray in STL build too.

This ctor already existed in non-STL build but was omitted from the STL
version.

Closes #15216.

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

11 years agoFix regression in wxGTK wxFilePickerCtrl due to wxFileDialog changes.
Vadim Zeitlin [Wed, 22 May 2013 13:36:14 +0000 (13:36 +0000)] 
Fix regression in wxGTK wxFilePickerCtrl due to wxFileDialog changes.

Revert the changes of r72979 and fix wxFileDialog::GetDirectory() return
value bug (see #14786) differently to avoid breaking wxFilePickerCtrl which
relies on getting wxEVT_BUTTON event when the associated dialog is dismissed.

Closes #15218.

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

11 years agoFix GTK+ errors during wxFilePickerCtrl destruction after recent changes.
Vadim Zeitlin [Wed, 22 May 2013 13:36:10 +0000 (13:36 +0000)] 
Fix GTK+ errors during wxFilePickerCtrl destruction after recent changes.

We do need to destroy the dialog (see #15156), but we must not destroy its
GtkWidget as it is owned by GtkFileChooserButton itself, so amend the changes
of r74030 to only destroy the C++ object, not GTK+ one.

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

11 years agoUse the best instead of current page size in OS X preferences dialog.
Vadim Zeitlin [Tue, 21 May 2013 23:47:20 +0000 (23:47 +0000)] 
Use the best instead of current page size in OS X preferences dialog.

The page, which is typically just a wxPanel, is usually not created with the
correct size, so resize it to its best size before showing it in the
preferences dialog.

This makes OS X behaviour consistent with MSW and GTK and is generally more
useful.

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

11 years agoFit modeless preferences dialog to its contents too.
Vadim Zeitlin [Tue, 21 May 2013 23:17:29 +0000 (23:17 +0000)] 
Fit modeless preferences dialog to its contents too.

When a preferences dialog is shown non-modally, it should still fit to the
contents of its pages, so move the code added for the modal case in r73624
to the base wxGenericPreferencesEditorImplBase class.

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

11 years agoTurkish translations update from Kaya Zeren.
Vadim Zeitlin [Tue, 21 May 2013 12:02:10 +0000 (12:02 +0000)] 
Turkish translations update from Kaya Zeren.

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

11 years agoFix last count value after ReadAll() and WriteAll().
Vadim Zeitlin [Mon, 20 May 2013 15:26:22 +0000 (15:26 +0000)] 
Fix last count value after ReadAll() and WriteAll().

This corrects the bugs introduced when applying the patch adding these
functions in r74034: we can't simply use m_lastcount directly in them because
it's also modified by each call to Read() and Write(), so do use the temporary
variable.

See #12056.

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

11 years agoAdd a public wxModalDialogHook class for intercepting modal dialogs.
Vadim Zeitlin [Mon, 20 May 2013 13:15:41 +0000 (13:15 +0000)] 
Add a public wxModalDialogHook class for intercepting modal dialogs.

Extract wxModalDialogHook from wx/testing.h into its own wx/modalhook.h,
extend it to allow to be notified not only about showing modal dialogs but
also about dismissing them and document it and show its use in the dialogs
sample.

Also replace all the WX_TESTING_SHOW_MODAL_HOOK macros occurrences with
WX_HOOK_MODAL_DIALOG.

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

11 years agoFix return value of wxCountingOutputStream::LastWrite().
Vadim Zeitlin [Mon, 20 May 2013 13:15:26 +0000 (13:15 +0000)] 
Fix return value of wxCountingOutputStream::LastWrite().

Don't reuse m_lastcount in wxCountingOutputStream to store the stream length,
this doesn't make any sense and results in LastWrite() returning completely
wrong results as it expects m_lastcount to be the number of bytes written by
the last operation.

Add m_lastPos member to store the stream length instead.

Also correct wxCountingOutputStream documentation.

Closes #15215.

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

11 years agoMake code reading BMP files more robust.
Vadim Zeitlin [Mon, 20 May 2013 13:15:21 +0000 (13:15 +0000)] 
Make code reading BMP files more robust.

Check that we did correctly read the requested amount of data instead of
blindly assuming that the needed (from the point of view of BMP format
specification) number of bytes are always available -- this doesn't work so
well with corrupted or truncated files.

Closes #12056.

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

11 years agoAdd wxInputStream::ReadAll() and wxOutputStream::WriteAll().
Vadim Zeitlin [Mon, 20 May 2013 13:15:16 +0000 (13:15 +0000)] 
Add wxInputStream::ReadAll() and wxOutputStream::WriteAll().

Unlike Read() and Write(), these functions always transfer exactly the
specified number of bytes or fail.

See #12056.

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

11 years agoLink with liblzma when using built-in libtiff if it's available.
Vadim Zeitlin [Sun, 19 May 2013 17:26:53 +0000 (17:26 +0000)] 
Link with liblzma when using built-in libtiff if it's available.

New version of libtiff includes code using liblzma if it's available, so we
need to link with it in this case.

Closes #14963.

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

11 years agoPropagate wxEVT_COMMAND_TEXT_UPDATED renaming to the real stc.cpp.
Vadim Zeitlin [Sun, 19 May 2013 12:47:34 +0000 (12:47 +0000)] 
Propagate wxEVT_COMMAND_TEXT_UPDATED renaming to the real stc.cpp.

wxEVT_COMMAND_TEXT_UPDATED was renamed to wxEVT_TEXT in the generated stc.cpp
but not in stc.cpp.in it was generated from. Do it there too to prevent the
correct version in stc.cpp from being overwritten during the next regeneration.

See #10661.

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

11 years agoTrigger wxLog auto-creation when getting old logger in wxLogChain ctor.
Vadim Zeitlin [Sun, 19 May 2013 12:38:22 +0000 (12:38 +0000)] 
Trigger wxLog auto-creation when getting old logger in wxLogChain ctor.

This ensures that a program that uses wxLogChain or one of the classes
deriving from it, such as wxLogWindow, can do it directly without worrying
about the standard logging being completely suppressed if the default log
target hadn't been instantiated yet.

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

11 years agoDelete the associated dialog in wxGTK wx{File,Dir}Button.
Vadim Zeitlin [Sun, 19 May 2013 12:38:18 +0000 (12:38 +0000)] 
Delete the associated dialog in wxGTK wx{File,Dir}Button.

The code seemed to rely on Destroy() being called for deleting the dialog, but
it's actually not used for child windows, so do it in dtor instead.

Closes #15156.

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

11 years agoAdd conversions to/from long long to wxUniChar.
Vadim Zeitlin [Sun, 19 May 2013 12:38:12 +0000 (12:38 +0000)] 
Add conversions to/from long long to wxUniChar.

Allow conversions to/from long long and unsigned long long values in wxUniChar
for consistency with the other integral types.

Also make the code shorter by using helper wxDO_FOR_INT_TYPES() and
wxDO_FOR_CHAR_INT_TYPES() macros to avoid duplicating the same code for all of
the integral types and having to handle wchar_t (and wxLongLong_t now)
specially because sometimes we may need to overload on it and sometimes not.

Finally, add more tests to check that all the wxUniChar methods compile and
work with all the different types.

Closes #15206.

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

11 years agoDisable menu event test case in wxGTK buildbot slaves.
Vadim Zeitlin [Sun, 19 May 2013 12:38:09 +0000 (12:38 +0000)] 
Disable menu event test case in wxGTK buildbot slaves.

This test sporadically fails for unknown reason and I don't know what to do
about it, so disable it for now to let the test suite pass consistently and be
notifed about any new failures.

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

11 years agoUse wxCOMPtr throughout the wxWebViewIE Find code.
Steve Lamerton [Sat, 18 May 2013 14:07:58 +0000 (14:07 +0000)] 
Use wxCOMPtr throughout the wxWebViewIE Find code.

As well as making the code a bit neater this seems to fix some memory issues.

See #15207.

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

11 years agoTest using wxString::ToCDouble() in wxAny.
Vadim Zeitlin [Fri, 17 May 2013 20:00:10 +0000 (20:00 +0000)] 
Test using wxString::ToCDouble() in wxAny.

Apparently the heap corruption problems in wxOSX/PPC build are due to using
wxString::ToDouble() and not anything done specifically in wxAny at all.

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

11 years agoTry using wxString::ToCDouble() instead of ToDouble() in wxAny case.
Vadim Zeitlin [Fri, 17 May 2013 11:53:46 +0000 (11:53 +0000)] 
Try using wxString::ToCDouble() instead of ToDouble() in wxAny case.

Apparently enabling the call to ToDouble() in the test is enough to corrupt
the heap in wxOSX PPC build. No idea how can this be possible but try to check
if using ToCDouble() helps...

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

11 years agoMake wxPreferencesEditor dtor virtual.
Vadim Zeitlin [Fri, 17 May 2013 11:53:43 +0000 (11:53 +0000)] 
Make wxPreferencesEditor dtor virtual.

Mainly just to suppress g++ warnings about a class with virtual functions but
non-virtual dtor, this class isn't really supposed to be used polymorphically.

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

11 years agoAdd richtext event types.
Robin Dunn [Thu, 16 May 2013 18:00:12 +0000 (18:00 +0000)] 
Add richtext event types.

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

11 years agoMore richtext fixes and cleanup for Phoenix
Robin Dunn [Thu, 16 May 2013 18:00:02 +0000 (18:00 +0000)] 
More richtext fixes and cleanup for Phoenix

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

11 years agoAdd docs for SetMin and SetMax
Robin Dunn [Thu, 16 May 2013 17:57:01 +0000 (17:57 +0000)] 
Add docs for SetMin and SetMax

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

11 years agoInitialize wxXmlResourceHandler members in its ctor.
Vadim Zeitlin [Thu, 16 May 2013 14:43:13 +0000 (14:43 +0000)] 
Initialize wxXmlResourceHandler members in its ctor.

Not sure if this results in any real problems but at the very least memory
checking tools give errors about reading uninitialized memory in
wxXmlResourceHandlerImpl::CreateResource() if we leave them uninitialized, so
do initialize all the pointers.

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

11 years agoAllow wxPreferencesEditor::Dismiss() to work when using modal dialogs too.
Vadim Zeitlin [Thu, 16 May 2013 14:43:09 +0000 (14:43 +0000)] 
Allow wxPreferencesEditor::Dismiss() to work when using modal dialogs too.

The modal dialog case is not really different, the dialog may still need to be
dismissed if the associated object doesn't exist any longer.

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

11 years agoAdd wxPreferencesEditor::ShownModally().
Vadim Zeitlin [Thu, 16 May 2013 14:43:06 +0000 (14:43 +0000)] 
Add wxPreferencesEditor::ShownModally().

While this is not necessary to use wxPreferencesEditor in normal scenario, it
can be useful if the program needs to handle modal dialogs in some special way.

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

11 years agoMake wxPreferencesEditor::Show() virtual.
Vadim Zeitlin [Thu, 16 May 2013 14:43:02 +0000 (14:43 +0000)] 
Make wxPreferencesEditor::Show() virtual.

This allows derived classes to override it to do something before/after
showing the dialog, which can be useful on the platforms where modal dialogs
are used for wxPreferencesEditor implementation.

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

11 years agoUse "<Application> Preferences" as generic wxPreferencesEditor dialog title.
Vadim Zeitlin [Thu, 16 May 2013 14:42:59 +0000 (14:42 +0000)] 
Use "<Application> Preferences" as generic wxPreferencesEditor dialog title.

This is more appropriate than just "Preferences" under MSW and GTK which use
the generic wxPreferencesEditor, OS X has its own native version which
continues to correctly use "Preferences" for the title.

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

11 years agoAllow to specify the title used by wxPreferencesEditor window.
Vadim Zeitlin [Thu, 16 May 2013 14:42:56 +0000 (14:42 +0000)] 
Allow to specify the title used by wxPreferencesEditor window.

Customize the title is useful for "Settings"-style windows which are used for
editing the properties of the given object, that should be identified in the
window title, as opposed to the global program preferences.

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

11 years agoOpen generic wxPreferencesEditor at last shown page.
Vadim Zeitlin [Thu, 16 May 2013 14:42:52 +0000 (14:42 +0000)] 
Open generic wxPreferencesEditor at last shown page.

This is very convenient under systems using a modal dialog for the preferences
editor implementation (such as MSW), as it allows to do several changes in the
same page without having to select it manually every time.

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

11 years agoRename CreateWindow() to CreateDialog() in generic wxPreferencesEditor code.
Vadim Zeitlin [Thu, 16 May 2013 14:42:50 +0000 (14:42 +0000)] 
Rename CreateWindow() to CreateDialog() in generic wxPreferencesEditor code.

No real changes, just rename a method to avoid confusion with
wxPreferencesPage::CreateWindow().

Also return the concrete type of the dialog, not a base wxDialog, as it will
be useful for future changes.

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

11 years agoAdd wxEVT_DIRCTRL_FILEACTIVATED wxDirCtrl event.
Vadim Zeitlin [Thu, 16 May 2013 14:33:07 +0000 (14:33 +0000)] 
Add wxEVT_DIRCTRL_FILEACTIVATED wxDirCtrl event.

Allow processing double clicks on the files in the directory control.

Closes #15208.

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

11 years agoRename wxEVT_DIRCTRL_CHANGED to wxEVT_DIRCTRL_SELECTIONCHANGED.
Vadim Zeitlin [Thu, 16 May 2013 14:33:01 +0000 (14:33 +0000)] 
Rename wxEVT_DIRCTRL_CHANGED to wxEVT_DIRCTRL_SELECTIONCHANGED.

This is more consistent with the existing wxEVT_FILECTRL_SELECTIONCHANGED.

Closes #15209.

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

11 years agoAllow associating a validator with wxGridCellTextEditor.
Vadim Zeitlin [Thu, 16 May 2013 14:32:55 +0000 (14:32 +0000)] 
Allow associating a validator with wxGridCellTextEditor.

Add wxGridCellTextEditor::SetValidator() for finer control over text input in
wxGrid.

Closes #15176.

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

11 years agoRe-enable yet another hopefully harmless test in wxAny test case.
Vadim Zeitlin [Thu, 16 May 2013 14:32:50 +0000 (14:32 +0000)] 
Re-enable yet another hopefully harmless test in wxAny test case.

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

11 years agoCall wxThread::Create() from Run() automatically.
Václav Slavík [Thu, 16 May 2013 14:15:46 +0000 (14:15 +0000)] 
Call wxThread::Create() from Run() automatically.

In the common case, when Run() is called immediately after Create() and
default stack size is used, it's unnecessarily verbose.  Just create the
thread in Run() if it wasn't done explicitly yet.

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

11 years agoMove POSIX implementation of wxThread::Create() to wxThreadInternal.
Václav Slavík [Thu, 16 May 2013 14:15:42 +0000 (14:15 +0000)] 
Move POSIX implementation of wxThread::Create() to wxThreadInternal.

No real changes, just refactoring to follow the same pattern as other
implementations use.

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

11 years agoLock m_critsect in POSIX wxThread::Create().
Václav Slavík [Thu, 16 May 2013 14:15:38 +0000 (14:15 +0000)] 
Lock  m_critsect in POSIX wxThread::Create().

This is the documented behavior: all methods accessing m_internal should
lock it.

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

11 years agoRe-enable wxAny<double>::GetAs<wxString>() test.
Vadim Zeitlin [Thu, 16 May 2013 11:40:08 +0000 (11:40 +0000)] 
Re-enable wxAny<double>::GetAs<wxString>() test.

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

11 years agom_useExtendedPrecision is only used if the macro wxUSE_APPLE_IEEE is defined
Jouk Jansen [Thu, 16 May 2013 06:18:54 +0000 (06:18 +0000)] 
m_useExtendedPrecision is only used if the macro wxUSE_APPLE_IEEE is defined

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

11 years agoEnable wxAny<double>::GetAs<unsigned long>() test.
Vadim Zeitlin [Thu, 16 May 2013 01:45:42 +0000 (01:45 +0000)] 
Enable wxAny<double>::GetAs<unsigned long>() test.

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

11 years agoRe-enable a single m_anyDoubleDouble1 test in wxAny test case.
Vadim Zeitlin [Wed, 15 May 2013 21:45:28 +0000 (21:45 +0000)] 
Re-enable a single m_anyDoubleDouble1 test in wxAny test case.

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

11 years agoFix wxXmlNode self-assignment.
Vadim Zeitlin [Wed, 15 May 2013 21:45:25 +0000 (21:45 +0000)] 
Fix wxXmlNode self-assignment.

Don't lose the node contents if it's assigned to itself.

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

11 years agoReenable m_anyBool1 tests in wxAny test case too.
Vadim Zeitlin [Wed, 15 May 2013 20:02:01 +0000 (20:02 +0000)] 
Reenable m_anyBool1 tests in wxAny test case too.

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

11 years agoFix memory leak in wxXmlNode::operator=().
Vadim Zeitlin [Wed, 15 May 2013 20:01:58 +0000 (20:01 +0000)] 
Fix memory leak in wxXmlNode::operator=().

We must delete all children and attributes in the node being overwritten and
not just the first one of each.

Add a unit test exercising this code to be able to check that valgrind doesn't
report memory leak any more after the fix.

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

11 years agoRe-enable conversions of wxAny to boolean tests.
Vadim Zeitlin [Wed, 15 May 2013 13:05:53 +0000 (13:05 +0000)] 
Re-enable conversions of wxAny to boolean tests.

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

11 years agoRestore ability to parse hours only with wxDateTime::ParseTime().
Vadim Zeitlin [Wed, 15 May 2013 13:05:49 +0000 (13:05 +0000)] 
Restore ability to parse hours only with wxDateTime::ParseTime().

This was accidentally removed in r51059, but worked in 2.8 and so should
continue to work.

Also add a unit test to ensure that this doesn't get broken again in the
future.

Closes #15204.

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