]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoChange wxPGProperty::SetChoices() to accept 'const wxPGChoices&'
Jaakko Salli [Thu, 6 May 2010 17:42:26 +0000 (17:42 +0000)] 
Change wxPGProperty::SetChoices() to accept 'const wxPGChoices&'

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

14 years agoModify float/double wxAny testing to use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_AS...
Jaakko Salli [Thu, 6 May 2010 17:21:50 +0000 (17:21 +0000)] 
Modify float/double wxAny testing to use CPPUNIT_ASSERT_EQUAL() instead of CPPUNIT_ASSERT_DOUBLES_EQUAL(), so that we know the retrieved values are truly identical.

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

14 years agoDon't accept focus in the dummy main generic spin control window.
Vadim Zeitlin [Thu, 6 May 2010 12:58:36 +0000 (12:58 +0000)] 
Don't accept focus in the dummy main generic spin control window.

This window is only used as a container for the sub-windows and shouldn't
accept focus, trying to set it to it doesn't work anyhow (see #12004).

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

14 years agoDon't send wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED when nothing changed.
Vadim Zeitlin [Thu, 6 May 2010 12:58:32 +0000 (12:58 +0000)] 
Don't send wxEVT_COMMAND_SPINCTRLDOUBLE_UPDATED when nothing changed.

The generic double spin control sent UPDATED events whenever it lost focus,
whether anything changed or not.

Don't send events unless the controls value has really changed.

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

14 years agoAlways update the value of generic spin control when leaving it.
Vadim Zeitlin [Thu, 6 May 2010 12:58:27 +0000 (12:58 +0000)] 
Always update the value of generic spin control when leaving it.

We could be left with an invalid value in the control when leaving it. E.g. in
the widgets sample whose double spin control has range from 0 to 10, 123 could
be entered in it and was not replaced by 10 when the control lost focus. This
happened because the code didn't bother to update the text control if its
contents already corresponded to the internally stored value -- but this was
wrong as it could have a different representation.

Just always update the text unconditionally when synchronizing it with the
internal value.

See #12004.

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

14 years agoMake keyboard navigation in generic wxTreeCtrl more Mac-like under OS X.
Vadim Zeitlin [Thu, 6 May 2010 12:58:22 +0000 (12:58 +0000)] 
Make keyboard navigation in generic wxTreeCtrl more Mac-like under OS X.

In the native OS X tree control right cursor arrow expands the current item
and the left one collapses it if it's expanded, make the generic control work
like this too under Mac.

Closes #12019.

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

14 years agoCheck that menu ids are limited to MSW-supported range.
Vadim Zeitlin [Thu, 6 May 2010 12:40:18 +0000 (12:40 +0000)] 
Check that menu ids are limited to MSW-supported range.

We already check that positive (i.e. specified by user and not generated by
wx) window ids are in 0..SHRT_MAX range. Now do the same for the menu ids as
ids outside of this range suffer from the same problem under MSW: they get
wrapped and become negative when we receive events for them.

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

14 years agoAdded wxLANGUAGE_BOSNIAN.
Vadim Zeitlin [Thu, 6 May 2010 12:40:11 +0000 (12:40 +0000)] 
Added wxLANGUAGE_BOSNIAN.

Closes #12016.

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

14 years agoMention that hatched pens don't work under wxGTK and wxX11.
Vadim Zeitlin [Thu, 6 May 2010 12:22:57 +0000 (12:22 +0000)] 
Mention that hatched pens don't work under wxGTK and wxX11.

See #11983.

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

14 years agoRefactor wxTranslationsLoader API.
Václav Slavík [Thu, 6 May 2010 12:12:53 +0000 (12:12 +0000)] 
Refactor wxTranslationsLoader API.

Instead of calling back into wxTranslations to actually load the data,
return wxMsgCatalog instance from
wxTranslationsLoader::LoadCatalog(). This requires making wxMsgCatalog
public.

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

14 years agoMove wxScopedPtr::reset() implementation to wxDEFINE_SCOPED_PTR.
Václav Slavík [Thu, 6 May 2010 05:43:01 +0000 (05:43 +0000)] 
Move wxScopedPtr::reset() implementation to wxDEFINE_SCOPED_PTR.

Just as the destructor, reset() calls delete on T pointer and so can
only be defined when T is fully defined.

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

14 years agoUse wxCHECKED_DELETE in wxScopedPtr::reset().
Václav Slavík [Thu, 6 May 2010 05:42:57 +0000 (05:42 +0000)] 
Use wxCHECKED_DELETE in wxScopedPtr::reset().

It was only used in delete call in destructor, but the use in  reset()
needs safeguards as well.

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

14 years agoUse wxCHECKED_DELETE in wxScopedPtr<T>.
Václav Slavík [Thu, 6 May 2010 05:42:52 +0000 (05:42 +0000)] 
Use wxCHECKED_DELETE in wxScopedPtr<T>.

It was only used in macros-based implementation, use it in the template
version too.

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

14 years agoFix PCH-less compilation after recent changes.
Vadim Zeitlin [Wed, 5 May 2010 13:53:40 +0000 (13:53 +0000)] 
Fix PCH-less compilation after recent changes.

Include wx/sizer.h explicitly when not using PCH.

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

14 years agoFix incorrect assumptions about locales codes.
Václav Slavík [Wed, 5 May 2010 13:50:15 +0000 (13:50 +0000)] 
Fix incorrect assumptions about locales codes.

wx incorrectly assumes that Unix locale codes have the form of xx_YY,
where both xx and yy are two characters long. This is wrong, xx is
ISO 639 code, which can often have 3 characters ("ast", "gez" etc.);
future ISO 639-6 will have up to 4 chars. Similarly, ISO 3166 has
alpha-3 variant of country codes too (even though they aren't used in
this context today).

For parsing needs, we can just look for '_' in the code. The only place
where a check for xx_YY code was performed was GetSystemLanguage().
Instead of bothering with correct check (or a heuristic), let's simply
assume locale is xx_YY code and only do alternative handling if that
assumption fails. According to the comments, this alternative handling
was for cases such as LANG=german environment on SuSE, but it's safe to
say that no modern systems do that anymore, so it's OK that this patch
is marginally less efficient on such legacy systems.

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

14 years agoNo changes, just make wxDataViewEditorCtrlEvtHandler private.
Vadim Zeitlin [Wed, 5 May 2010 12:45:14 +0000 (12:45 +0000)] 
No changes, just make wxDataViewEditorCtrlEvtHandler private.

This class is used by wxDataViewCtrl implementation only, there is no need for
it to be in a public header.

Move the class declaration from wx/dataview.h to datavcmn.cpp.

See #11732.

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

14 years agoPop event handler from wxDVC edit control before destroying it.
Vadim Zeitlin [Wed, 5 May 2010 12:45:09 +0000 (12:45 +0000)] 
Pop event handler from wxDVC edit control before destroying it.

This fixes the assert in wxWindow dtor checking that all event handlers pushed
on the window were removed.

Also fix a memory leak by not creating an unnecessary object of wxKillRef
class. In fact remove this class entirely.

Closes #11732.

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

14 years agoDon't use size_t for plural forms parameter.
Václav Slavík [Wed, 5 May 2010 12:27:07 +0000 (12:27 +0000)] 
Don't use size_t for plural forms parameter.

size_t should be used for size of objects, which wxGetTranslation() and
wxTranslations::GetString() 'n' argument isn't -- it's just a regular
integer.

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

14 years agoNotify user less intrusively about overflow when previewing HTML printouts.
Vadim Zeitlin [Wed, 5 May 2010 12:20:15 +0000 (12:20 +0000)] 
Notify user less intrusively about overflow when previewing HTML printouts.

We used to show a modal dialog if the page didn't fit horizontally but this
was too intrusive when the user was just previewing the output and not really
printing it. Moreover, the question of the message box ("Print" or "Cancel")
simply didn't make sense in this case.

Fix both problems by not showing this dialog at all when previewing. Instead,
notify the user with a much less intrusive info bar in the preview window.

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

14 years agoMove wxInfoBar to core library from adv.
Vadim Zeitlin [Wed, 5 May 2010 12:20:08 +0000 (12:20 +0000)] 
Move wxInfoBar to core library from adv.

This is necessary in order to be able to use it in the print preview (an
upcoming change).

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

14 years agoReplace wxPrintout::SetIsPreview() with SetPreview().
Vadim Zeitlin [Wed, 5 May 2010 12:19:59 +0000 (12:19 +0000)] 
Replace wxPrintout::SetIsPreview() with SetPreview().

Unlike the old function just indicating whether a printout is being used for
previewing, the new one associates the preview object with it. This can be
useful if we need to access the window used for the preview, for example.

Also remove a bunch of apparently unnecessary SetIsPreview(false) calls as
printing (and not previewing) is already the default.

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

14 years agoNo real changes, just clean up wxAbortProc mess.
Vadim Zeitlin [Wed, 5 May 2010 12:19:53 +0000 (12:19 +0000)] 
No real changes, just clean up wxAbortProc mess.

Remove m_lpAbortProc which is not needed at all and just requires ugly casts
because its type was different from the real type of wxAbortProc.

Get rid of the rest of the old Win16 code.

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

14 years agoRemove GtkPrintOperation preview signal handler.
Vadim Zeitlin [Wed, 5 May 2010 12:19:44 +0000 (12:19 +0000)] 
Remove GtkPrintOperation preview signal handler.

This handler wasn't doing anything useful as we were always using the default
preview based on an external program, so just remove it completely.

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

14 years agoFix wxScopedCharTypeBuffer<T>::CreateOwned() to match docs.
Václav Slavík [Wed, 5 May 2010 07:45:33 +0000 (07:45 +0000)] 
Fix wxScopedCharTypeBuffer<T>::CreateOwned() to match docs.

The documentation says that it takes ownership of the memory block
passed to it, but the implementation made a copy.

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

14 years agoIgnore time component of SYSTEMTIME in wxCalendarCtrl.
Vadim Zeitlin [Tue, 4 May 2010 21:59:17 +0000 (21:59 +0000)] 
Ignore time component of SYSTEMTIME in wxCalendarCtrl.

Native month calendar functions doesn't always return correct values in the
time part of SYSTEMTIME so ignore it and use just the date component.

To simplify doing it, add helper (MSW-specific) SetFromMSWSysDate() and
GetAsMSWSysDate() functions which convert between wxDateTime and SYSTEMTIME
but take only date component into account.

This commit partially replaces changes of r63560 and closes #11276.

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

14 years agoFixed a typo in misc/languages/README.
Václav Slavík [Tue, 4 May 2010 16:38:56 +0000 (16:38 +0000)] 
Fixed a typo in misc/languages/README.

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

14 years agoMove wxFileHistory out of docview framework, add wxUSE_FILE_HISTORY.
Václav Slavík [Tue, 4 May 2010 12:15:14 +0000 (12:15 +0000)] 
Move wxFileHistory out of docview framework, add wxUSE_FILE_HISTORY.

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

14 years agoUse wxString::ToCDouble() instead of emulating it.
Vadim Zeitlin [Mon, 3 May 2010 11:19:42 +0000 (11:19 +0000)] 
Use wxString::ToCDouble() instead of emulating it.

No real changes, just replace the code which was working around the absence of
a wxString::ToCDouble() with the call to the real thing now that we have it.

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

14 years agoUpdate OpenVMS compile support
Jouk Jansen [Mon, 3 May 2010 08:02:02 +0000 (08:02 +0000)] 
Update OpenVMS compile support

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

14 years agoFix PCH-less build after changes r64139.
Vadim Zeitlin [Sun, 2 May 2010 12:19:19 +0000 (12:19 +0000)] 
Fix PCH-less build after changes r64139.

As wx/log.h is not included from wx/dynlib.h (via wx/msw/private.h) any
longer, include it from here explicitly.

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

14 years agoInclude <windows.h> before including <shellapi.h>.
Vadim Zeitlin [Sun, 2 May 2010 12:19:14 +0000 (12:19 +0000)] 
Include <windows.h> before including <shellapi.h>.

Although this is not needed with most compilers (including recent MinGW),
including <shellapi.h> directly apparently doesn't work with some older MinGW
versions.

This fixes compilation after the changes of r64139.

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

14 years agoAdd wxTreeCtrl::{Clear,Set}FocusedItem().
Vadim Zeitlin [Sun, 2 May 2010 12:01:30 +0000 (12:01 +0000)] 
Add wxTreeCtrl::{Clear,Set}FocusedItem().

Allow changing just the currently focused (not selected) item and also
removing the focus completely.

Closes #11599.

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

14 years agoSpell contributor name correctly.
Vadim Zeitlin [Sun, 2 May 2010 11:48:39 +0000 (11:48 +0000)] 
Spell contributor name correctly.

Use the spelling preferred by Nikolay himself, see #11599.

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

14 years agoupdated headers
Stefan Csomor [Fri, 30 Apr 2010 18:29:43 +0000 (18:29 +0000)] 
updated headers

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

14 years agotextctrl impl
Stefan Csomor [Fri, 30 Apr 2010 18:29:17 +0000 (18:29 +0000)] 
textctrl impl

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

14 years agoadding wrapper for native UIWindow, using designated initializer for view controller
Stefan Csomor [Fri, 30 Apr 2010 16:55:33 +0000 (16:55 +0000)] 
adding wrapper for native UIWindow, using designated initializer for view controller

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

14 years agoadjusting to API change of cocoa and carbon
Stefan Csomor [Fri, 30 Apr 2010 16:53:33 +0000 (16:53 +0000)] 
adjusting to API change of cocoa and carbon

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

14 years agocleanup
Stefan Csomor [Fri, 30 Apr 2010 16:52:43 +0000 (16:52 +0000)] 
cleanup

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

14 years agoCheck in samples/dll for WXUSINGDLL.
Václav Slavík [Fri, 30 Apr 2010 16:46:22 +0000 (16:46 +0000)] 
Check in samples/dll for WXUSINGDLL.

If it is set and DLL build of wx is used, emit an error, as the sample
won't work correctly in that case.

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

14 years agomoving value setting conformance to impl
Stefan Csomor [Fri, 30 Apr 2010 16:40:44 +0000 (16:40 +0000)] 
moving value setting conformance to impl

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

14 years agoiphone implementations
Stefan Csomor [Fri, 30 Apr 2010 16:31:27 +0000 (16:31 +0000)] 
iphone implementations

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

14 years agoUse scoped ptrs to managed wxAnyValueType instances. This fixes deallocation issues...
Jaakko Salli [Fri, 30 Apr 2010 13:32:41 +0000 (13:32 +0000)] 
Use scoped ptrs to managed wxAnyValueType instances. This fixes deallocation issues in some dynamic library use cases.

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

14 years agoadding uifont support
Stefan Csomor [Fri, 30 Apr 2010 09:29:36 +0000 (09:29 +0000)] 
adding uifont support

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

14 years agoAlways use active wxTranslations instance via wxLocale.
Václav Slavík [Thu, 29 Apr 2010 08:31:42 +0000 (08:31 +0000)] 
Always use active wxTranslations instance via wxLocale.

Don't use m_translations directly, if the user made changes to
wxTranslations instance, it would be too confusing if calls through
wxLocale compat API did nothing.

Also don't change active wxTranslations object from wxLocale if already
done by user, only call wxTranslations::Set() from wxLocale constructor
if it wasn't already set by the user. Still do if wxTranslations
instance currently in use was set by previous wxLocale on the locale
stack.

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

14 years agowxRTC: fixed style selection reset after editing a style.
Julian Smart [Tue, 27 Apr 2010 16:09:22 +0000 (16:09 +0000)] 
wxRTC: fixed style selection reset after editing a style.
wxRTC: can now edit line spacing in .1 increments from 1 to 2.

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

14 years agoFont output fix
Julian Smart [Tue, 27 Apr 2010 16:07:38 +0000 (16:07 +0000)] 
Font output fix

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

14 years agoSafeguard against redundant registration of the same wxAnyValueType instance (by...
Jaakko Salli [Tue, 27 Apr 2010 13:26:45 +0000 (13:26 +0000)] 
Safeguard against redundant registration of the same wxAnyValueType instance (by storing pointers in a set instead of a vector)

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

14 years agoUse '+' in accelerators, not '-'.
Václav Slavík [Tue, 27 Apr 2010 09:38:17 +0000 (09:38 +0000)] 
Use '+' in accelerators, not '-'.

This was always GTK+ standard and even Windows uses it now, see the
UX Guide.

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

14 years agoAdd support for storing translations in win32 resources.
Václav Slavík [Mon, 26 Apr 2010 20:51:22 +0000 (20:51 +0000)] 
Add support for storing translations in win32 resources.

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

14 years agoShorten lang names in wxTranslations, not wxFileTranslationsLoader.
Václav Slavík [Mon, 26 Apr 2010 20:51:16 +0000 (20:51 +0000)] 
Shorten lang names in wxTranslations, not wxFileTranslationsLoader.

If a catalog with full language name ("fr_BE") doesn't exist,
wxFileTranslationsLoader tries to look for just the base language ("fr")
too. This isn't something specific to wxFileTranslationsLoader, it makes
sense to do it regardless of the loader.

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

14 years agoAdd wxMemoryBuffer::release().
Václav Slavík [Mon, 26 Apr 2010 20:51:07 +0000 (20:51 +0000)] 
Add wxMemoryBuffer::release().

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

14 years agoAdd instance argument to wxLoadUserResource().
Václav Slavík [Mon, 26 Apr 2010 20:51:02 +0000 (20:51 +0000)] 
Add instance argument to wxLoadUserResource().

This makes it possible to load resources from other modules than the
main executable.

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

14 years agoMake wxLoadUserResource() declaration available to wxBase too.
Václav Slavík [Mon, 26 Apr 2010 20:50:57 +0000 (20:50 +0000)] 
Make wxLoadUserResource() declaration available to wxBase too.

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

14 years agoAdd wxLoadUserResource() overload not copying the resource data.
Vadim Zeitlin [Mon, 26 Apr 2010 16:53:21 +0000 (16:53 +0000)] 
Add wxLoadUserResource() overload not copying the resource data.

The existing wxLoadUserResource() copies the resource data which is often
unnecessary. Add another overload which just returns the pointer directly to
the resource data.

Also move the function into base from core as it can be useful for the console
applications as well.

Finally, define wxUserResourceStr used by this function only in the same file
where the function itself is defined instead of datacmn.cpp.

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

14 years agoRemove a harmless unused parameter warning in wxOSX/Carbon.
Vadim Zeitlin [Mon, 26 Apr 2010 16:23:42 +0000 (16:23 +0000)] 
Remove a harmless unused parameter warning in wxOSX/Carbon.

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

14 years agoFix wxGTK1 event loop definition mismatch between base/GUI.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:31 +0000 (14:19 +0000)] 
Fix wxGTK1 event loop definition mismatch between base/GUI.

We must define wxEventLoopBase in the same way in base and GUI code,
otherwise, even though we fool the compiler into accepting our code, it
crashes or behaves otherwise weirdly during run-time because of vtbl mismatch.

This fixes wxGTK1 which was crashing on startup since the FSWATCHER branch
merge in r62474 and associated changes to support the event loop sources.

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

14 years agoUse wxMenuBar::Attach/Detach() instead of SetInvokingWindow() in wxGTK1.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:26 +0000 (14:19 +0000)] 
Use wxMenuBar::Attach/Detach() instead of SetInvokingWindow() in wxGTK1.

This is the same as r64127 for wxGTK.

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

14 years agoFix wxGTK1 link after toolbar files renaming.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:22 +0000 (14:19 +0000)] 
Fix wxGTK1 link after toolbar files renaming.

Fix a typo in r62849: tooltip.cpp was used instead of toolbar.cpp resulting in
linking errors for the duplicate symbols in the former and undefined symbols
in the latter.

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

14 years agoSet popup menu invoking window in wxWindowBase and not in all ports.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:17 +0000 (14:19 +0000)] 
Set popup menu invoking window in wxWindowBase and not in all ports.

Don't duplicate the code for setting (and unsetting, which was forgotten by at
least wxGTK) the popup menu invoking window in all ports but do it in the base
class PopupMenu() itself.

Also add a helper wxMenuInvokingWindowSetter class which ensures that the
invoking window will be unset in any case.

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

14 years agoDon't set invoking window recursively in wxGTK wxWindow::PopupMenu().
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:10 +0000 (14:19 +0000)] 
Don't set invoking window recursively in wxGTK wxWindow::PopupMenu().

Setting the invoking window for all submenus is unnecessary as
wxMenu::GetWindow() recurses upwards anyhow and results in assert failures
after recent menu code changes.

Simply don't do this.

OTOH do reset the invoking window to NULL after the menu is dismissed to avoid
storing a dangling pointer in the menu.

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

14 years agono real change: just fix RCS-ID so that it reflects the current revision number
Francesco Montorsi [Sun, 25 Apr 2010 21:33:16 +0000 (21:33 +0000)] 
no real change: just fix RCS-ID so that it reflects the current revision number

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

14 years agoDon't include wx/msw/private.h from dynlib.h.
Václav Slavík [Sun, 25 Apr 2010 12:07:37 +0000 (12:07 +0000)] 
Don't include wx/msw/private.h from dynlib.h.

Because it's private header and introduces dependency on window.h.

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

14 years agoDeclare various WXH* handles compatibly with SDK.
Václav Slavík [Sun, 25 Apr 2010 12:07:30 +0000 (12:07 +0000)] 
Declare various WXH* handles compatibly with SDK.

It is no longer necessary to cast between e.g. HINSTANCE and
WXHINSTANCE, they are now declared as the same type (without including
Windows SDK header).

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

14 years agoRemove unnecessary duplicate code dealing with invoking window from wxOSX.
Vadim Zeitlin [Sat, 24 Apr 2010 20:39:44 +0000 (20:39 +0000)] 
Remove unnecessary duplicate code dealing with invoking window from wxOSX.

This is roughly the same as r64127 for wxGTK but for wxOSX: don't duplicate
the functionality already present in the base class in Mac-specific way. Just
use wxMenu::GetWindow() instead of painstakingly propagating invoking window
changes via the entire menu hierarchy.

Also attach the root menu used in wxOSX to the menu bar to ensure that the
correct window can be found for all its menus.

Closes #11990.

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

14 years agoRecurse upwards the menu hierarchy in wxMenu::GetWindow().
Vadim Zeitlin [Sat, 24 Apr 2010 20:39:39 +0000 (20:39 +0000)] 
Recurse upwards the menu hierarchy in wxMenu::GetWindow().

Only the top level menus have non-NULL wxMenuBar pointer too, so recurse
upwards the menu hierarchy in GetWindow() and not (just) GetInvokingWindow().

This fixes event processing for submenus broken by the recent changes.

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

14 years agoDisable ImageTestCase::LoadFromFile() on build slaves.
Vadim Zeitlin [Sat, 24 Apr 2010 17:52:27 +0000 (17:52 +0000)] 
Disable ImageTestCase::LoadFromFile() on build slaves.

This test case keeps failing erratically resulting in too many bogus build
breakage notifications. Disable it until someone has time to fix it properly.

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

14 years agoA slightly better compilation fix after PCH-less build breakage in r64126.
Vadim Zeitlin [Sat, 24 Apr 2010 16:59:09 +0000 (16:59 +0000)] 
A slightly better compilation fix after PCH-less build breakage in r64126.

Include wx/frame.h header instead of casting wxFrame to wxWindow using C style
cast. Although this does work now and probably will work later too it seems
better to not use the cast nevertheless.

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

14 years agoAdded missing @since tags to wxTranslationsLoader classes.
Václav Slavík [Sat, 24 Apr 2010 16:10:30 +0000 (16:10 +0000)] 
Added missing @since tags to wxTranslationsLoader classes.

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

14 years agonon-pch build fix
Paul Cornett [Sat, 24 Apr 2010 14:40:58 +0000 (14:40 +0000)] 
non-pch build fix

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

14 years agoDon't use invoking window in wxGTK wxMenuBar implementation.
Vadim Zeitlin [Sat, 24 Apr 2010 15:08:00 +0000 (15:08 +0000)] 
Don't use invoking window in wxGTK wxMenuBar implementation.

wxGTK wxMenuBar used its own SetInvokingWindow/UnsetInvokingWindow() and
related functions instead of reusing the base class Attach/Detach() which
exist for exactly the same purpose. This resulted in unnecessary code
duplication and confusion and, since the changes of r64104, resulted in
asserts due to use of SetInvokingWindow() for non-popup menus.

Fix this by removing the wxGTK-specific functions and doing the work they used
to do in (now overridden) Attach() and Detach(). Also call Attach/Detach()
instead of these functions from wxGTK wxFrame and wxMDIParentFrame code.

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

14 years agoUse wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:55 +0000 (15:07 +0000)] 
Use wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().

This simplifies the code as we don't need to walk the menu hierarchy upwards
any more (GetInvokingWindow() does it now) and also makes it work for all
menus, not just the popup ones.

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

14 years agoAvoid code duplication in wxGTK menu events generation code.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:51 +0000 (15:07 +0000)] 
Avoid code duplication in wxGTK menu events generation code.

Reuse the existing DoCommonMenuCallbackCode() function instead of duplicating
its code in menuitem_select() and menuitem_deselect() GTK callbacks.

No changes in behaviour.

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

14 years agoNo real changes, just remove empty wxMenuBar dtor in wxGTK.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:47 +0000 (15:07 +0000)] 
No real changes, just remove empty wxMenuBar dtor in wxGTK.

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

14 years agoMove wxMSW wxMenu::GetWindow() down to wxMenuBase.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:39 +0000 (15:07 +0000)] 
Move wxMSW wxMenu::GetWindow() down to wxMenuBase.

GetInvokingWindow() can only be used for the popup menus which have the
invoking window, so add a new function which can be used to get the window
associated with any kind of menu in all ports -- it already existed in wxMSW
but is needed elsewhere too.

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

14 years agoAllow wxPGProperty::Hide() to be called on unattached property (see #11987)
Jaakko Salli [Sat, 24 Apr 2010 10:13:22 +0000 (10:13 +0000)] 
Allow wxPGProperty::Hide() to be called on unattached property (see #11987)

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

14 years agoIn wxPropertyGrid::DoPropertyChanged(), call GetEditorControl() as late as possible...
Jaakko Salli [Sat, 24 Apr 2010 10:02:25 +0000 (10:02 +0000)] 
In wxPropertyGrid::DoPropertyChanged(), call GetEditorControl() as late as possible so that editor can be changed in wxPGProperty::OnSetValue() (fixes #11987)

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

14 years agowxLocale::InitLanguagesDB() doesn't use wxStringTokenizer, remove it.
Václav Slavík [Sat, 24 Apr 2010 07:06:38 +0000 (07:06 +0000)] 
wxLocale::InitLanguagesDB() doesn't use wxStringTokenizer, remove it.

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

14 years agoSplit intl.h into intl.h, language.h and translation.h.
Václav Slavík [Sat, 24 Apr 2010 07:06:32 +0000 (07:06 +0000)] 
Split intl.h into intl.h, language.h and translation.h.

To make the code more manageable, intl.h now contains wxLocale and
translation.h all translations-related stuff (wxTranslations, _() etc.).
Code generated by genlang.py was moved into its own files (language.h,
languageinfo.cpp).

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

14 years agoSplit wxLocale into wxLocale and wxTranslations.
Václav Slavík [Sat, 24 Apr 2010 07:06:18 +0000 (07:06 +0000)] 
Split wxLocale into wxLocale and wxTranslations.

wxTranslations is for handling gettext translations. wxLocale manages
locale and provides compatiblity API for translations. Separating these
two loosely related tasks makes it possible to use translations into
languages not known by Windows or using localized GUI without all the
locales compilations.

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

14 years agoFix typo in internat sample.
Václav Slavík [Sat, 24 Apr 2010 07:06:11 +0000 (07:06 +0000)] 
Fix typo in internat sample.

Catalog should be added with domain name ("wxstd"), not file name
("wxstd.mo").

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

14 years agoWork around wrong client size computation for not yet shown maximized windows.
Vadim Zeitlin [Fri, 23 Apr 2010 19:34:36 +0000 (19:34 +0000)] 
Work around wrong client size computation for not yet shown maximized windows.

The client size of maximized windows which hadn't been shown yet isn't
computed correctly by wxMSW because WM_NCCALCSIZE returns too small values for
some reason. Attempts to fix this were unsuccessful so just ensure that the
window is re-laid out using the right size from WM_SIZE it receives when it is
shown instead of using the wrong pending size.

Closes #11762.

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

14 years agoFixed (correct) warning about uninitialized inputConv.
Václav Slavík [Thu, 22 Apr 2010 14:57:18 +0000 (14:57 +0000)] 
Fixed (correct) warning about uninitialized inputConv.

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

14 years agoFix harmless warning about a possibly uninitialized variable.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:26 +0000 (14:16 +0000)] 
Fix harmless warning about a possibly uninitialized variable.

gcc complained about possibly uninitialized variable in QueueTestCase in
optimized build, just initialize it to suppress this warning.

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

14 years agoDon't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:22 +0000 (14:16 +0000)] 
Don't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().

The variable "mode" is not filled by TranslateRasterOp() function if the input
function is not supported, so don't compare it with wxCOMPOSITION_XOR later.
Just compare "function" itself with wxXOR as this works in any case.

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

14 years agoFix harmless g++ 4.3 warning about suggested parentheses.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:18 +0000 (14:16 +0000)] 
Fix harmless g++ 4.3 warning about suggested parentheses.

Add parentheses around && within ||.

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

14 years agoDefine wxStrto{d,l,ul}_l() functions in non-Unicode build too.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:12 +0000 (14:16 +0000)] 
Define wxStrto{d,l,ul}_l() functions in non-Unicode build too.

This fixes the unit test compilation in ANSI build.

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

14 years agoAdded parenthesis around macro arguments
Jaakko Salli [Thu, 22 Apr 2010 14:06:00 +0000 (14:06 +0000)] 
Added parenthesis around macro arguments

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

14 years agoAllow wxAny to contain 'const char*' or 'const wchar_t*'. This was previously not...
Jaakko Salli [Thu, 22 Apr 2010 13:51:38 +0000 (13:51 +0000)] 
Allow wxAny to contain 'const char*' or 'const wchar_t*'. This was previously not possible since these pointers were converted to wxString, as convenient means to work with string literals. Now pointers (to string literals) are stored instead, and As<wxString>(), comparison operators do the type conversion.

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

14 years agoFix off by one error in wxFTP::GetFileSize().
Vadim Zeitlin [Thu, 22 Apr 2010 12:08:16 +0000 (12:08 +0000)] 
Fix off by one error in wxFTP::GetFileSize().

We incremented the index once more even after finding the line we were looking
for in the array which meant that we accessed a wrong array element in any
case and could even attempt to access an out of bound one if the file was
found in the last line.

Closes #11964.

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

14 years agoReturn correct invoking window for submenus of a popup menu.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:35 +0000 (11:21 +0000)] 
Return correct invoking window for submenus of a popup menu.

SetInvokingWindow() is only called for the top menu being popped up itself but
the invoking window should also be associated with its submenus.

Modify GetInvokingWindow() to return the parents invoking window for submenus.

This fixes a crash due to returning NULL from wxMenu::GetWindow() in wxMSW
owner-drawn code.

And it also makes redundant some code in wxUniversal wxMenu implementation
which can now simply use GetInvokingWindow() in all cases.

Closes #11957.

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

14 years agoUse symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:30 +0000 (11:21 +0000)] 
Use symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.

No real changes, just use wxID_NONE instead of hardcoded -1 (in one place) and
-3 (in another one). Hardcoding them not only made the code less readable but
also resulted in two numbers actually becoming different when they almost
certainly were meant to be the same.

This shouldn't result in any changes in the user-visible behaviour but we now
avoid searching the menu bar for menu items with id of -1 needlessly.

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

14 years agoFix bug with using incorrect negative ids in wxEVT_MENU_HIGHLIGHT events.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:25 +0000 (11:21 +0000)] 
Fix bug with using incorrect negative ids in wxEVT_MENU_HIGHLIGHT events.

wxMSW code implicitly cast ids carried by wxEVT_MENU_HIGHLIGHT events to
unsigned short so that they didn't compare equal to the (signed, negative) ids
of the real menu items. Because of this menu help strings were not shown for
any items with negative ids, i.e. those created using wxID_ANY.

Closes #11977.

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

14 years agoOverride wxWindow::MSWGetCreateWindowCoords() in wxTopLevelWindow.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:21 +0000 (11:21 +0000)] 
Override wxWindow::MSWGetCreateWindowCoords() in wxTopLevelWindow.

The old code was messy because it handled both top level and child windows at
wxWindow level when they need quite different treatment. This resulted in
several errors: first, wxWindow versions of WidthDefault and HeightDefault
were used to determine the initial size even of top level windows which was
clearly wrong as it created tiny windows (20*20). Second, CW_USEDEFAULT could
be used for child window for which this shouldn't be done.

Fix this by making MSWGetCreateWindowCoords() virtual and overriding it in
wxTopLevelWindow. This makes the code much simpler and more obviously correct.

Also make MSWGetCreateWindowCoords() void, as nobody was using its return
value anyhow (and the old version also had a bug in it and wrongly returned
true when default size was passed to it).

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

14 years agoAdd documentation for several grid cell renderer/editor classes.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:50 +0000 (11:20 +0000)] 
Add documentation for several grid cell renderer/editor classes.

Document the previously undocumented renderers and editors.

Closes #11965.

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

14 years agoClarify that Raise() is only a request to raise the window.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:45 +0000 (11:20 +0000)] 
Clarify that Raise() is only a request to raise the window.

Calling Raise() doesn't guarantee that the window will be raised.

Closes #11974.

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

14 years agoFix fatal bug in ArgsArray(wchar_t**) ctor.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:37 +0000 (11:20 +0000)] 
Fix fatal bug in ArgsArray(wchar_t**) ctor.

The input pointer was modified before being used again leading to out of bound
array access.

Closes #11979.

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

14 years agomissed in r64093
Stefan Csomor [Thu, 22 Apr 2010 07:00:32 +0000 (07:00 +0000)] 
missed in r64093

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

14 years agoswitching to correct hit-testing
Stefan Csomor [Thu, 22 Apr 2010 06:46:02 +0000 (06:46 +0000)] 
switching to correct hit-testing

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

14 years agosimpler code
Stefan Csomor [Thu, 22 Apr 2010 06:23:57 +0000 (06:23 +0000)] 
simpler code

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

14 years agoshutdown sequence routing to EndSession calls
Stefan Csomor [Thu, 22 Apr 2010 06:18:15 +0000 (06:18 +0000)] 
shutdown sequence routing to EndSession calls

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