]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoNo changes, just remove the strange "#if 1".
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:33 +0000 (01:00 +0000)] 
No changes, just remove the strange "#if 1".

This was apparently unintentionally added in r15050 to all files of the
widgets sample and somehow survived in this one only until now.

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

14 years agoFix sending of wxEVT_COMMAND_LIST_COL_DRAGGING events in wxMSW wxListCtrl.
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:27 +0000 (01:00 +0000)] 
Fix sending of wxEVT_COMMAND_LIST_COL_DRAGGING events in wxMSW wxListCtrl.

We were not getting HDN_TRACK from the system because apparently it is not
sent for header controls with HDS_FULLDRAG style which is used by default by
the native list control. A possible solution would be to forcefully unset this
style but this would make the UI look old fashioned and less intuitive so
instead send these DRAGGING events from HDN_ITEMCHANGING.

Closes #9471,

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

14 years agoMove wx/evtloop.h from GUI_CMN_HDR to BASE_CMN_HDR in files.bkl.
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:20 +0000 (01:00 +0000)] 
Move wx/evtloop.h from GUI_CMN_HDR to BASE_CMN_HDR in files.bkl.

And rebake.

Now that wxEventLoop can be used in wxBase as well, we need this file to be
installed as part of wxBase too.

Closes #11617.

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

14 years agoFix wxHTTPStream::Eof() to return true for empty HTTP resources.
Vadim Zeitlin [Sun, 24 Jan 2010 01:00:03 +0000 (01:00 +0000)] 
Fix wxHTTPStream::Eof() to return true for empty HTTP resources.

Eof() never returned true when attempting to read an empty resource before.

Closes #11596.

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

14 years agoUse a helper wxNEEDS_DECL_BEFORE_TEMPLATE symbol in wxStrcoll() workaround.
Vadim Zeitlin [Sun, 24 Jan 2010 00:59:56 +0000 (00:59 +0000)] 
Use a helper wxNEEDS_DECL_BEFORE_TEMPLATE symbol in wxStrcoll() workaround.

The condition for which this workaround is needed has already changed once
(see #11605) and may change again in the future as we test with more compilers
so use a symbolic name for it.

No real changes otherwise.

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

14 years agoApply workaround for wxStrcoll() template for g++ to 3.4 too.
Vadim Zeitlin [Sun, 24 Jan 2010 00:59:49 +0000 (00:59 +0000)] 
Apply workaround for wxStrcoll() template for g++ to 3.4 too.

At least mingw32 version of g++ 3.4.5 needs the same workaround to be able to
compile wx.

Closes #11605.

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

14 years agoFix for generic implementation.
Kevin Ollivier [Sat, 23 Jan 2010 22:45:24 +0000 (22:45 +0000)] 
Fix for generic implementation.

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

14 years agoFix for non-Mac builds.
Kevin Ollivier [Sat, 23 Jan 2010 21:17:19 +0000 (21:17 +0000)] 
Fix for non-Mac builds.

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

14 years agoRemove assert that was used during testing while changing style flags.
Kevin Ollivier [Sat, 23 Jan 2010 20:10:17 +0000 (20:10 +0000)] 
Remove assert that was used during testing while changing style flags.

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

14 years agoStart on ShowWindowModal for OS X Cocoa. Not working properly as children do not...
Kevin Ollivier [Sat, 23 Jan 2010 20:06:48 +0000 (20:06 +0000)] 
Start on ShowWindowModal for OS X Cocoa. Not working properly as children do not display.

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

14 years agoAdd virtual wxSizer::DoInsert() to replace Insert().
Vadim Zeitlin [Sat, 23 Jan 2010 13:44:46 +0000 (13:44 +0000)] 
Add virtual wxSizer::DoInsert() to replace Insert().

This allows to avoid problems with hiding all but the overridden overloads of
Insert() in wxSizer-derived classes, see #11616, without having to explicitly
write any using statements.

Keep Insert(size_t, wxSizerItem) virtual to allow the existing code overriding
it to keep working.

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

14 years agoAllow to not create wxPaintDC in EVT_PAINT handler in wxMSW.
Vadim Zeitlin [Sat, 23 Jan 2010 13:22:25 +0000 (13:22 +0000)] 
Allow to not create wxPaintDC in EVT_PAINT handler in wxMSW.

Failure to create a wxPaintDC in EVT_PAINT handler resulted in many serious
and difficult to debug problems under wxMSW. We used to document that the user
shouldn't do it but this wasn't enough (see #11648). We could also assert if
we detected that a handler didn't create a wxPaintDC but it seems better to
just handle this case gracefully for consistency with the other platforms.

Add wxDidCreatePaintDC global variable which is reset before generating
wxPaintEvent and set to true when ::BeginPaint() is called from wxPaintDC
ctor and validate the update region of the window ourselves if it wasn't set
(meaning that wxPaintDC wasn't created).

Update the documentation to emphasize the link between EVT_PAINT handlers and
wxPaintDC but without saying that wxPaintDC object must always be created in
the handler as this is not true any more.

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

14 years agoDon't crash when input is empty in wxFileConfig(wxInputStream) ctor.
Vadim Zeitlin [Sat, 23 Jan 2010 13:22:14 +0000 (13:22 +0000)] 
Don't crash when input is empty in wxFileConfig(wxInputStream) ctor.

Fix crash due to dereferencing a NULL pointer when the input buffer in
wxFileConfig ctor is empty.

Closes #11636.

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

14 years agoFix off by 1 errors in owner-drawn menu drawing code in wxMSW.
Vadim Zeitlin [Sat, 23 Jan 2010 13:22:07 +0000 (13:22 +0000)] 
Fix off by 1 errors in owner-drawn menu drawing code in wxMSW.

The label was offset by 1 pixel vertically and the check marks were 1 pixel
too wide compared to the native ones under XP, correct this.

Closes #11420 (again).

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

14 years agoImprove wxCheckListBox appearance under Vista/Win7.
Vadim Zeitlin [Sat, 23 Jan 2010 13:22:00 +0000 (13:22 +0000)] 
Improve wxCheckListBox appearance under Vista/Win7.

Fix the items alignment and also code cleanup: fix indentation, remove magic
numbers &c.

Closes #10286.

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

14 years agoCorrect drawing of check marks for owner-drawn items without bitmaps.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:52 +0000 (13:21 +0000)] 
Correct drawing of check marks for owner-drawn items without bitmaps.

Standard check mark was not drawn correctly for check/radio items without
bitmaps.

Closes #11480.

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

14 years agoCorrect alignment of menu accelerator strings in owner-drawn menus.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:46 +0000 (13:21 +0000)] 
Correct alignment of menu accelerator strings in owner-drawn menus.

Draw them right-aligned as the native menus do.

Closes #11479.

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

14 years agoUse theme functions for drawing owner-drawn menus.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:36 +0000 (13:21 +0000)] 
Use theme functions for drawing owner-drawn menus.

This makes the menu items with custom attributes or bitmaps look more native,
especially on post-XP systems.

Closes #11420.

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

14 years agoFix calculation of the margins for owner-drawn menu items.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:27 +0000 (13:21 +0000)] 
Fix calculation of the margins for owner-drawn menu items.

Take into account the widths of the bitmaps properly.

Closes #11268.

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

14 years agoSet up menu bitmaps correctly for checkable items.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:20 +0000 (13:21 +0000)] 
Set up menu bitmaps correctly for checkable items.

We must not set MENUITEMINFO::hbmpItem for the checkable items as it would
then be used for both checked and unchecked state.

Closes #11244.

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

14 years agoRefactor owner-drawing code.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:12 +0000 (13:21 +0000)] 
Refactor owner-drawing code.

Only keep common code in the base class and extract all menu/listbox-specific
stuff into derived classes.

This makes the code cleaner and more maintainable but introduces some problems
in wxCheckListBox appearance which will be fixed by the next patch.

Closes #10635.

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

14 years agoReturn old, not new, selection from wxMSW wxNotebook::ChangeSelection().
Vadim Zeitlin [Sat, 23 Jan 2010 13:20:54 +0000 (13:20 +0000)] 
Return old, not new, selection from wxMSW wxNotebook::ChangeSelection().

The function is documented to return the old selection and not the new one, so
correct it to behave as expected.

Closes #11646.

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

14 years agoCorrection on previous commit: statement order corrected
Jouk Jansen [Fri, 22 Jan 2010 15:52:20 +0000 (15:52 +0000)] 
Correction on previous commit: statement order corrected

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

14 years agoGet wxDC defined when nescessary
Jouk Jansen [Fri, 22 Jan 2010 07:55:26 +0000 (07:55 +0000)] 
Get wxDC defined when nescessary

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

14 years agoHandle the case of NSNotFound result properly.
Kevin Ollivier [Wed, 20 Jan 2010 02:07:22 +0000 (02:07 +0000)] 
Handle the case of NSNotFound result properly.

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

14 years agoDisable size grip for TLW status bar if TLW is not resizeable.
Vadim Zeitlin [Wed, 20 Jan 2010 00:17:08 +0000 (00:17 +0000)] 
Disable size grip for TLW status bar if TLW is not resizeable.

wxSTB_SIZEGRIP is part of default status bar style but it doesn't make sense
for non-resizeable TLWs, so turn it off in this case.

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

14 years agoFix wxMulDivInt32() to round the result like win32 MulDiv() does.
Václav Slavík [Tue, 19 Jan 2010 22:02:59 +0000 (22:02 +0000)] 
Fix wxMulDivInt32() to round the result like win32 MulDiv() does.

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

14 years agoMake ConvertPixelsToDialog() and ConvertDialogToPixels() const.
Václav Slavík [Tue, 19 Jan 2010 17:53:29 +0000 (17:53 +0000)] 
Make ConvertPixelsToDialog() and ConvertDialogToPixels() const.

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

14 years agoDon't query metrics that won't be used.
Václav Slavík [Tue, 19 Jan 2010 16:32:31 +0000 (16:32 +0000)] 
Don't query metrics that won't be used.

If ConvertPixelsToDialog() or ConvertDialogToPixels() was called with
one of the two input values set to -1, the respective font metric was
queried needlessly.

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

14 years agoSupport XHTML ' entity.
Václav Slavík [Tue, 19 Jan 2010 14:47:20 +0000 (14:47 +0000)] 
Support XHTML ' entity.

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

14 years agoFurther enhancement to the samples overview page.
Vadim Zeitlin [Tue, 19 Jan 2010 13:49:12 +0000 (13:49 +0000)] 
Further enhancement to the samples overview page.

Add links to samples sources in svn to all the individual samples and be even
more explicit about their location on the local disk.

Move the paragraph explaining the samples location further below -- but <hr>
still doesn't work somehow.

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

14 years agoExplain the location of samples better in the samples overview page.
Vadim Zeitlin [Tue, 19 Jan 2010 13:02:21 +0000 (13:02 +0000)] 
Explain the location of samples better in the samples overview page.

Don't mention controls sample, just the widgets one, as the latter is much
richer and easier to understand.

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

14 years agoDon't set initial size as min size for top level windows in wxMSW.
Vadim Zeitlin [Tue, 19 Jan 2010 13:02:14 +0000 (13:02 +0000)] 
Don't set initial size as min size for top level windows in wxMSW.

This was accidentally done because wxWindowBase::CreateBase() didn't recognize
the window as being top level as it was called before the window was appended
to wxTopLevelWindows list.

Fix this by doing the same thing wxGTK already did: just call
wxTopLevelWindows.Append() before CreateBase().

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

14 years agoAdd wxThreadEvent::SetPayload<T>().
Václav Slavík [Tue, 19 Jan 2010 13:01:40 +0000 (13:01 +0000)] 
Add wxThreadEvent::SetPayload<T>().

This makes it possible to easily pass custom data between threads, in
type-safe way (thanks to internal use of wxAny). This adds
sizeof(wxAny)==16+sizeof(void*) overhead to wxThreadEvent, but I think
it's cheaper than doing malloc/free on copying.

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

14 years agoDon't make full copy of string in wxThreadEvent::Clone().
Václav Slavík [Tue, 19 Jan 2010 13:01:33 +0000 (13:01 +0000)] 
Don't make full copy of string in wxThreadEvent::Clone().

It's enough to do it once to ensure thread-safety. Doing it twice (once
in copy ctor called by Clone(), once in Clone() itself) only wastes
time.

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

14 years agomoving GetPageInfo to later stage, closes #11494
Stefan Csomor [Mon, 18 Jan 2010 11:05:27 +0000 (11:05 +0000)] 
moving GetPageInfo to later stage, closes #11494

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

14 years agoswitching to LaunchServices implementation, fixes #11508
Stefan Csomor [Mon, 18 Jan 2010 10:56:17 +0000 (10:56 +0000)] 
switching to LaunchServices implementation, fixes #11508

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

14 years agofixing type for 64 bit, closes #11550
Stefan Csomor [Mon, 18 Jan 2010 10:09:47 +0000 (10:09 +0000)] 
fixing type for 64 bit, closes #11550

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

14 years agoavoiding Insert shadowing superclass methods, closes #11616
Stefan Csomor [Mon, 18 Jan 2010 09:45:32 +0000 (09:45 +0000)] 
avoiding Insert shadowing superclass methods, closes #11616

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

14 years agosetting correct 'default' for m_filterIndex, closes #11541
Stefan Csomor [Mon, 18 Jan 2010 09:12:53 +0000 (09:12 +0000)] 
setting correct 'default' for m_filterIndex, closes #11541

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

14 years agoapplying patch, closes #11309
Stefan Csomor [Mon, 18 Jan 2010 09:03:05 +0000 (09:03 +0000)] 
applying patch, closes #11309

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

14 years agosetting correct refcon in menus (was incorrectly changed to menuimpl), fixes #11611
Stefan Csomor [Mon, 18 Jan 2010 08:56:20 +0000 (08:56 +0000)] 
setting correct refcon in menus (was incorrectly changed to menuimpl), fixes #11611

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

14 years agoavoiding double define warning
Stefan Csomor [Mon, 18 Jan 2010 08:52:46 +0000 (08:52 +0000)] 
avoiding double define warning

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

14 years agoDocument wxCENTRE style for wxMessageDialog.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:12 +0000 (00:29 +0000)] 
Document wxCENTRE style for wxMessageDialog.

This is currently only implemented for MSW but we could implement it for the
other ports in the future.

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

14 years agoDon't set stretchable spacers size to 0, this doesn't work so use 1 instead.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:05 +0000 (00:29 +0000)] 
Don't set stretchable spacers size to 0, this doesn't work so use 1 instead.

If the toolbar is not big enough for its fixed-size contents, we set the size
of the tools corresponding to stretchable spacers to 0 but this didn't really
work and resulted in bad toolbar appearance even after resizing it to be big
enough (as could be seen in samples/xrc).

So set the spacers size to at least 1 to ensure that we do resize them
correctly.

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

14 years agoAdd support for stretchable spacers to XRC wxToolBar handler.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:00 +0000 (00:29 +0000)] 
Add support for stretchable spacers to XRC wxToolBar handler.

Notice that currently only stretchable spacers are supported via
separator-like "space" XRC element. If we ever add support for fixed spacers
in the toolbar we should do it via its fixed sub-element, e.g. they would be
specified with <fixed>1</fixed> in XRC file.

Also use spacers instead of separator in the XRC sample and ensure that the
toolbars in it are resized.

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

14 years agoCorrect test for parent being on screen in wxTLW::DoCentre().
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:53 +0000 (00:28 +0000)] 
Correct test for parent being on screen in wxTLW::DoCentre().

The old test was needlessly complicated, didn't take all cases into account
and had a typo in it which prevented it from working in half of the cases
which it did [try to] take into account.

Correct this by simply checking if the parent rectangle intersects the visible
display area at all.

Also simplify the code a little by checking for the window being maximized
from the beginning as centering a maximized window on either screen or parent
is a no-op.

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

14 years agoInvalidate stored wxTreeItemIds when the corresponding item is deleted in wxMSW.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:47 +0000 (00:28 +0000)] 
Invalidate stored wxTreeItemIds when the corresponding item is deleted in wxMSW.

m_htSelStart and m_htClickedItem stored in wxTreeCtrl must be invalidated when
the item they point to is deleted (which also happens when all the items are
deleted), otherwise the selection doesn't behave correctly after doing it.

Closes #11619.

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

14 years agoGenerate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:41 +0000 (00:28 +0000)] 
Generate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl.

We only generated wxEVT_COMMAND_TREE_KEY_DOWN events for the keys which can be
used for tree control navigation and which are handled specially in the code
but not the wxEVT_KEY_DOWN ones. This was inconsistent with the other keys and
incompatible with wx 2.8 and other ports, so generate both events unless the
wxEVT_KEY_DOWN one was handled by the user code.

Closes #11621.

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

14 years agoShow the more metrics for the selected font in the sample.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:35 +0000 (00:28 +0000)] 
Show the more metrics for the selected font in the sample.

Show the result of wxDC::GetChar{Width,Height}() and the font size in pixels
in addition to the font size in points.

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

14 years agoDon't call base class version unnecessarily in wxLogWindow::DoLogTextAtLevel().
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:21 +0000 (00:28 +0000)] 
Don't call base class version unnecessarily in wxLogWindow::DoLogTextAtLevel().

This is unnecessary as the log message is already passed to the previous
logger by the base class wxLogChain::DoLogRecord() implementation. Worse, it's
actively harmful as it resulted in asserts in wxLog::DoLogText() when built
with WXWIN_COMPATIBILITY_2_8==0.

Closes #11526.

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

14 years agoNo changes, just fix an unused parameter warning.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:15 +0000 (00:28 +0000)] 
No changes, just fix an unused parameter warning.

Fix warning in mingw32 wxMSW build.

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

14 years agoAdd wxIsascii() function and use it instead of isascii() in our code.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:11 +0000 (00:28 +0000)] 
Add wxIsascii() function and use it instead of isascii() in our code.

isascii() is non-ANSI and is not available under all platforms. While we
currently define it ourselves in wx/wxcrtbase.h in this case, it's not a good
idea as this can't be easily done correctly for all platforms so start
transitioning away from using isascii() by adding wxIsascii() and using it in
our own code.

The only remaining occurrences of isascii() are in Scintilla code which we
probably don't want to modify.

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

14 years agoOnly disable use of non-ANSI functions in strict ANSI mode under Windows.
Vadim Zeitlin [Mon, 18 Jan 2010 00:27:59 +0000 (00:27 +0000)] 
Only disable use of non-ANSI functions in strict ANSI mode under Windows.

The changes of r62518 fixed compilation of wx headers in g++ strict ANSI mode
(enabled by th use of -ansi or -std=c++{98,0x} options) with mingw32 but
broke it when using g++ in ANSI mode under Unix. The problems arose at least
due to redeclaration of isascii() with different exception specifier and due
to the lack of wxCRT_StrdupA() definition in the library.

Fix this by simply not disabling the use of non-ANSI functions such as
isascii() and strdup() under Unix as they are still available in the headers
by default because of _GNU_SOURCE predefined by g++.

Notice that if _GNU_SOURCE is explicitly undefined, compilation would probably
still be broken. To fix this we might check whether __USE_SVID is defined
under Linux. Unfortunately doing tests in configure is not an answer as
wxWidgets might not be compiled with the same -std option as the programs
using it, so there is no obviously correct way to fix this.

See #11374.

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

14 years agoupdate docs for wxMAXIMIZE on GTK
Paul Cornett [Sat, 16 Jan 2010 04:14:18 +0000 (04:14 +0000)] 
update docs for wxMAXIMIZE on GTK

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

14 years agoWhen checking whether the parent has wxTAB_TRAVERSAL style, take into account that...
Jaakko Salli [Fri, 15 Jan 2010 17:19:54 +0000 (17:19 +0000)] 
When checking whether the parent has wxTAB_TRAVERSAL style, take into account that the wxComboCtrl can be part of a composite control

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

14 years agohonor wxMAXIMIZE frame style, fixes #11631
Paul Cornett [Fri, 15 Jan 2010 17:09:29 +0000 (17:09 +0000)] 
honor wxMAXIMIZE frame style, fixes #11631

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

14 years agoMore wx(Flex)GridSizer constructors documentation improvements.
Vadim Zeitlin [Thu, 14 Jan 2010 22:51:04 +0000 (22:51 +0000)] 
More wx(Flex)GridSizer constructors documentation improvements.

Mention that the number of columns may also be automatically deduced.

Don't duplicate the same documentation in wxGridSizer and wxFlexGridSizer as
this inevitably results in forgetting to update one of the versions (as in the
previous commit). Instead, just link to wxGridSizer from wxFlexGridSizer.

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

14 years agoMinor corrections to wxFlexGridSizer ctor documentation.
Vadim Zeitlin [Thu, 14 Jan 2010 22:43:23 +0000 (22:43 +0000)] 
Minor corrections to wxFlexGridSizer ctor documentation.

Be more clear about what does it mean to specify the number of rows. Don't use
@code for inline expressions. Remove an extraneous "it".

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

14 years agofixing comments, making sure sound always gets the completion call in the same thread...
Stefan Csomor [Thu, 14 Jan 2010 19:04:38 +0000 (19:04 +0000)] 
fixing comments, making sure sound always gets the completion call in the same thread as it was created, otherwise iphone sometimes crashes

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

14 years agoNo real changes, just fix a typo in comments and documentation.
Vadim Zeitlin [Thu, 14 Jan 2010 18:02:26 +0000 (18:02 +0000)] 
No real changes, just fix a typo in comments and documentation.

Use "surprising" instead of (common) "surprizing" misspelling.

Closes #11627.

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

14 years agoFixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified(...
Jaakko Salli [Wed, 13 Jan 2010 18:29:09 +0000 (18:29 +0000)] 
Fixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified() unconditionally, disregarding value of 'unspecified' argument.

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

14 years agoCheck for a function existing in all libpng releases in configure.
Vadim Zeitlin [Tue, 12 Jan 2010 15:47:16 +0000 (15:47 +0000)] 
Check for a function existing in all libpng releases in configure.

We tested for png_check_sig() which was deprecated and is not available in the
latest libpng 1.4 any more. Just use another, not deprecated and not new,
function for the test.

See #11625.

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

14 years agoAdd wx/osx/textentry.h to the list of OS X headers.
Vadim Zeitlin [Tue, 12 Jan 2010 15:47:07 +0000 (15:47 +0000)] 
Add wx/osx/textentry.h to the list of OS X headers.

Fix problem with "make install" which didn't install this header.

Closes #11624.

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

14 years agoadding protocol support for 10.6
Stefan Csomor [Mon, 11 Jan 2010 14:19:28 +0000 (14:19 +0000)] 
adding protocol support for 10.6

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

14 years agoRemove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618.
Kevin Ollivier [Sun, 10 Jan 2010 01:52:22 +0000 (01:52 +0000)] 
Remove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618.

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

14 years agoUse GraphicsContext (if available) for drawing in SurfaceImpl::AlphaRectangle. Fixes...
Robin Dunn [Sun, 10 Jan 2010 00:40:49 +0000 (00:40 +0000)] 
Use GraphicsContext (if available) for drawing in SurfaceImpl::AlphaRectangle.  Fixes #10542.

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

14 years agoRebake.
Kevin Ollivier [Sat, 9 Jan 2010 19:56:18 +0000 (19:56 +0000)] 
Rebake.

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

14 years agoImplement native OS X ComboBox for OS X Cocoa, and implement wxTextEntry methods...
Kevin Ollivier [Sat, 9 Jan 2010 19:50:55 +0000 (19:50 +0000)] 
Implement native OS X ComboBox for OS X Cocoa, and implement wxTextEntry methods to share code between wxComboBox and wxTextCtrl.

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

14 years agoRestore default WM_ERASEBKGND handling for wxMDIParentFrame.
Vadim Zeitlin [Sat, 9 Jan 2010 17:57:52 +0000 (17:57 +0000)] 
Restore default WM_ERASEBKGND handling for wxMDIParentFrame.

We pretended that we erased the background ourselves but actually we did not.
Just let DefWindowProc() do whatever it does by default to fix the problem
with wrong toolbar background colour since r62971.

Also removed the unused and unneeded WM_SIZE handler as well.

Closes #11607.

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

14 years agoMinor fixes and enhancements to wxWindowID documentation.
Vadim Zeitlin [Sat, 9 Jan 2010 17:39:45 +0000 (17:39 +0000)] 
Minor fixes and enhancements to wxWindowID documentation.

Document NewControlId() more precisely. Fix various spelling and grammar
problems.

Closes #11613.

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

14 years agoRebake.
Kevin Ollivier [Fri, 8 Jan 2010 18:20:39 +0000 (18:20 +0000)] 
Rebake.

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

14 years agofor file load/save, always try wxImage first, fallback to pixbuf
Paul Cornett [Fri, 8 Jan 2010 18:19:23 +0000 (18:19 +0000)] 
for file load/save, always try wxImage first, fallback to pixbuf

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

14 years agofix broken #elif
Paul Cornett [Fri, 8 Jan 2010 04:05:31 +0000 (04:05 +0000)] 
fix broken #elif

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

14 years agoSupport mouse click through as otherwise clicking inside an inactive window causes...
Kevin Ollivier [Fri, 8 Jan 2010 01:29:51 +0000 (01:29 +0000)] 
Support mouse click through as otherwise clicking inside an inactive window causes us to lose the first mouse down, unlike with MSW.

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

14 years agoImproved documentation for wxPGProperty::DoSetAttribute()
Jaakko Salli [Thu, 7 Jan 2010 19:43:12 +0000 (19:43 +0000)] 
Improved documentation for wxPGProperty::DoSetAttribute()

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

14 years agoFixed deprecation message (brings include file in line with the the interface)
Jaakko Salli [Thu, 7 Jan 2010 19:37:42 +0000 (19:37 +0000)] 
Fixed deprecation message (brings include file in line with the the interface)

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

14 years agoDo not use deprecated property attribute wxPG_ATTR_INLINE_HELP (fixes #11605)
Jaakko Salli [Thu, 7 Jan 2010 19:35:33 +0000 (19:35 +0000)] 
Do not use deprecated property attribute wxPG_ATTR_INLINE_HELP (fixes #11605)

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

14 years agoFixed a deprecation message
Jaakko Salli [Thu, 7 Jan 2010 19:31:56 +0000 (19:31 +0000)] 
Fixed a deprecation message

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

14 years agoremove unused function GetGdkVisual()
Paul Cornett [Thu, 7 Jan 2010 18:30:18 +0000 (18:30 +0000)] 
remove unused function GetGdkVisual()

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

14 years agodefer creating bitmap representation until it is needed
Paul Cornett [Thu, 7 Jan 2010 18:16:45 +0000 (18:16 +0000)] 
defer creating bitmap representation until it is needed

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

14 years agoImprove hit detection in wxMSW wxTreeCtrl with wxTR_FULL_ROW_HIGHLIGHT style.
Vadim Zeitlin [Thu, 7 Jan 2010 13:16:01 +0000 (13:16 +0000)] 
Improve hit detection in wxMSW wxTreeCtrl with wxTR_FULL_ROW_HIGHLIGHT style.

When wxTR_FULL_ROW_HIGHLIGHT is used, the item visually takes up the entire
breadth of the window so clicking both to the left or to the right of the item
should have the same effect as clicking on it.

So add a MSWIsOnItem() helper which tests for whether a point is above the
item correctly and use it in order to:

1. In multi selection mode, allow clicking anywhere to select the item(s)
   when Ctrl or Shift is pressed (Closes #11598).
2. Generate activation event when clicking to the right of the item too
   (Closes #11602).
3. Detect item bounds correctly in WM_LBUTTONUP handler (although it's
   not really clear what does this code do and hence what problem does this
   fix...).

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

14 years agoGerman translations update from Thomas Krebs.
Vadim Zeitlin [Thu, 7 Jan 2010 13:15:51 +0000 (13:15 +0000)] 
German translations update from Thomas Krebs.

Closes #11562.

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

14 years agoFix typos in IMediaPlayer2 and INSPlay interfaces declarations.
Vadim Zeitlin [Thu, 7 Jan 2010 13:15:43 +0000 (13:15 +0000)] 
Fix typos in IMediaPlayer2 and INSPlay interfaces declarations.

Fix missing/extraneous parentheses.

Closes #11600.

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

14 years agoForward port 2.8 fix.
Kevin Ollivier [Wed, 6 Jan 2010 22:02:59 +0000 (22:02 +0000)] 
Forward port 2.8 fix.

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

14 years agoFix another line somehow missing from the wxGraphicsBitmap forward port.
Kevin Ollivier [Wed, 6 Jan 2010 02:22:38 +0000 (02:22 +0000)] 
Fix another line somehow missing from the wxGraphicsBitmap forward port.

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

14 years agoadded zlib directly to dynamic targets
Stefan Csomor [Tue, 5 Jan 2010 18:27:30 +0000 (18:27 +0000)] 
added zlib directly to dynamic targets

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

14 years agoremove never-implemented palette support
Paul Cornett [Tue, 5 Jan 2010 17:53:37 +0000 (17:53 +0000)] 
remove never-implemented palette support

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

14 years agoCall virtual ctrl->GetDefaultAttributes() instead of static GetClassDefaultAttributes()
Jaakko Salli [Tue, 5 Jan 2010 16:42:35 +0000 (16:42 +0000)] 
Call virtual ctrl->GetDefaultAttributes() instead of static GetClassDefaultAttributes()

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

14 years agoadded zlib directly to dynamic targets
Stefan Csomor [Tue, 5 Jan 2010 13:55:20 +0000 (13:55 +0000)] 
added zlib directly to dynamic targets

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

14 years agoadd zlib only in dynamic build targets
Stefan Csomor [Tue, 5 Jan 2010 13:54:44 +0000 (13:54 +0000)] 
add zlib only in dynamic build targets

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

14 years agoBrazilian Portuguese translations updae from Allann Jones.
Vadim Zeitlin [Tue, 5 Jan 2010 12:56:40 +0000 (12:56 +0000)] 
Brazilian Portuguese translations updae from Allann Jones.

Closes #11597.

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

14 years agoAllow wxPropertyGridInterface::EnableProperty() to work even if property->GetGrid...
Jaakko Salli [Mon, 4 Jan 2010 16:07:47 +0000 (16:07 +0000)] 
Allow wxPropertyGridInterface::EnableProperty() to work even if property->GetGrid() returns NULL.

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

14 years agoAdd assert checking that window has no event handlers when destroyed.
Vadim Zeitlin [Mon, 4 Jan 2010 12:51:48 +0000 (12:51 +0000)] 
Add assert checking that window has no event handlers when destroyed.

Forgetting to pop custom event handlers pushed onto the window before it is
destroyed will result in a crash later on, so try to detect this immediately
with an assert.

We might want to forcefully pop them off too, this could result in memory
leaks but would be still better than crashing.

Closes #11533.

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

14 years agoFix wxConvAuto behaviour when it is used by wxTextInputStream.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:49 +0000 (12:22 +0000)] 
Fix wxConvAuto behaviour when it is used by wxTextInputStream.

wxConvAuto implicitly supposed that the chunk of data passed to it for
translation was big enough to allow it to at least detect the BOM from it.
However this isn't necessarily the case and never is with wxTextInputStream
which reads the bytes one by one.

Fix this by waiting until we have enough data to be able to detect the BOM.
This still doesn't fix the problem with streams without BOM and the
corresponding unit test still fails -- it will need to be fixed at the level
of wxTextInputStream itself later but handling correctly the cases when a BOM
is present is already better than before.

See #11570.

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

14 years agoMake calling wxLog::IsAllowedTraceMask() safe during static init time.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:42 +0000 (12:22 +0000)] 
Make calling wxLog::IsAllowedTraceMask() safe during static init time.

Although using wxLog during statics initialization is not recommended, it may
still happen, possibly indirectly so make it work correctly by using an
accessor function for the array of trace masks which ensures that this array
is always correctly initialized before being used.

Closes #11592.

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

14 years agoCompilation fix for VC6 after r63061.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:34 +0000 (12:22 +0000)] 
Compilation fix for VC6 after r63061.

VC6 doesn't support empty struct initializers apparently.

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

14 years agoCorrectly parse times without seconds in wxDateTime::ParseTime().
Vadim Zeitlin [Mon, 4 Jan 2010 11:05:47 +0000 (11:05 +0000)] 
Correctly parse times without seconds in wxDateTime::ParseTime().

This was always supposed to work but never did because of a typo in the "24
hour format without seconds" format specification. Fix this by removing the
extra "%S" from it and add a test for this case.

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

14 years agoDon't dereference invalid iterator in wxDateTime::ParseDate().
Vadim Zeitlin [Mon, 4 Jan 2010 10:59:40 +0000 (10:59 +0000)] 
Don't dereference invalid iterator in wxDateTime::ParseDate().

If the string passed to this method contained only spaces (possibly 0 of them,
i.e. was empty) we would dereference the end string iterator. Fix this by
adding an explicit test for "p != pEnd".

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

14 years agofixing include type
Stefan Csomor [Mon, 4 Jan 2010 10:08:01 +0000 (10:08 +0000)] 
fixing include type

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