]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoFix crash in wxMediaCtrl::GetDownloadProgress() with ActiveMovie backend.
Vadim Zeitlin [Fri, 2 Apr 2010 19:30:34 +0000 (19:30 +0000)] 
Fix crash in wxMediaCtrl::GetDownloadProgress() with ActiveMovie backend.

IActiveMovie::get_FilterGraph() may return S_FALSE, i.e. succeed, while
leaving the output pointer NULL. Check for this and don't dereference the
pointer before checking for its validity.

Also do it for the other call in this function just in case. And rearrange the
code to be slightly more readable.

Closes #11894.

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

14 years agoShow labels for controls in wxOSX/Carbon toolbars.
Vadim Zeitlin [Fri, 2 Apr 2010 19:30:29 +0000 (19:30 +0000)] 
Show labels for controls in wxOSX/Carbon toolbars.

Add a call to HIToolbarItemSetLabel().

Closes #11885.

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

14 years agokeeping m_labelOrig untouched, solves test failures (FM)
Stefan Csomor [Fri, 2 Apr 2010 18:19:03 +0000 (18:19 +0000)] 
keeping m_labelOrig untouched, solves test failures (FM)

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

14 years agosimplifying modal event loop handling
Stefan Csomor [Fri, 2 Apr 2010 14:52:08 +0000 (14:52 +0000)] 
simplifying modal event loop handling

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

14 years agomoving OnInit to a later stage to avoid Carbon Emulation artifacts by the OS, fixes...
Stefan Csomor [Fri, 2 Apr 2010 12:27:39 +0000 (12:27 +0000)] 
moving OnInit to a later stage to avoid Carbon Emulation artifacts by the OS, fixes #11839

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

14 years agomove everything inside wxUSE_RIBBON wrapper
Paul Cornett [Thu, 1 Apr 2010 17:16:57 +0000 (17:16 +0000)] 
move everything inside wxUSE_RIBBON wrapper

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

14 years agoavoid setting negative window sizes
Paul Cornett [Thu, 1 Apr 2010 17:00:44 +0000 (17:00 +0000)] 
avoid setting negative window sizes

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

14 years agodon't try to create a color named "Default"
Paul Cornett [Thu, 1 Apr 2010 16:59:34 +0000 (16:59 +0000)] 
don't try to create a color named "Default"

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

14 years agoFix OpenVMS compile support for new version in src/stc
Jouk Jansen [Thu, 1 Apr 2010 09:59:19 +0000 (09:59 +0000)] 
Fix OpenVMS compile support for new version in src/stc

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

14 years agoCommitting modified version of jwiesemann's patch (see #11223):
Francesco Montorsi [Tue, 30 Mar 2010 21:38:31 +0000 (21:38 +0000)] 
Committing modified version of jwiesemann's patch (see #11223):
Fix wxURL copy ctor and assignment: the default ones provided by the compiler are wrong because wxURL uses pointers internally.
Also add a test for copy & assignment in URLTestCase.

Closes #11223

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

14 years agoRemove unnecessary declarations.
Paul Cornett [Tue, 30 Mar 2010 16:14:11 +0000 (16:14 +0000)] 
Remove unnecessary declarations.
Contrary to the comment, they are not used often, in fact only once each
and in the same file.

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

14 years agocorrecting typo in commit 63803
Jouk Jansen [Tue, 30 Mar 2010 12:02:16 +0000 (12:02 +0000)] 
correcting typo in commit 63803

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

14 years agoDefining wxCOMPILE_TIME_ASSERT for OpenVMS
Jouk Jansen [Tue, 30 Mar 2010 11:54:37 +0000 (11:54 +0000)] 
Defining wxCOMPILE_TIME_ASSERT for OpenVMS

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

14 years agoApply patch (plus some additional changes) upgrading Scintilla to version 2.03. ...
Robin Dunn [Tue, 30 Mar 2010 03:50:06 +0000 (03:50 +0000)] 
Apply patch (plus some additional changes) upgrading Scintilla to version 2.03.  Closes #11765, #11748, #11346

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

14 years agobetter docs for Get/SetLabel methods
Francesco Montorsi [Mon, 29 Mar 2010 21:31:27 +0000 (21:31 +0000)] 
better docs for Get/SetLabel methods

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

14 years agoFix compilation breakage in r63783.
Vadim Zeitlin [Mon, 29 Mar 2010 21:24:44 +0000 (21:24 +0000)] 
Fix compilation breakage in r63783.

Added missing #endif.

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

14 years agoOnly allow opening existing files in docview framework.
Vadim Zeitlin [Mon, 29 Mar 2010 21:24:39 +0000 (21:24 +0000)] 
Only allow opening existing files in docview framework.

Use wxFD_FILE_MUST_EXIST when asking the user for the name of the file to
open.

Closes #11866.

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

14 years agoAdd wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW.
Vadim Zeitlin [Mon, 29 Mar 2010 20:57:41 +0000 (20:57 +0000)] 
Add wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW.

wxFileSystemWatcher implementation uses threads under MSW and can't be
compiled when wxUSE_THREADS==0.

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

14 years agoFor better support of wxValidators, invoke wxValidator::Validate() directly. Also...
Jaakko Salli [Mon, 29 Mar 2010 18:17:55 +0000 (18:17 +0000)] 
For better support of wxValidators, invoke wxValidator::Validate() directly. Also remove obsolete flag wxPG_FL_VALIDATION_FAILED and make wxPropertyGrid::DoEditorValidate() virtual.

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

14 years agoUse fixed screen DPI of 96 when printing HTML.
Václav Slavík [Mon, 29 Mar 2010 14:19:06 +0000 (14:19 +0000)] 
Use fixed screen DPI of 96 when printing HTML.

Unlike font sizes, which depend on screen resolution because of weird
wxFont API, pixel sizes used elsewhere (and in particular, for images)
shouldn't depend on screen DPI.

This finally makes the output independent of screen size.

Fixes #10942.

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

14 years agoRemoved useless wxDisplaySize() calls from wxHtmlPrintout.
Václav Slavík [Mon, 29 Mar 2010 14:18:58 +0000 (14:18 +0000)] 
Removed useless wxDisplaySize() calls from wxHtmlPrintout.

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

14 years agoAdd wxBitmap unit test.
Vadim Zeitlin [Mon, 29 Mar 2010 09:59:05 +0000 (09:59 +0000)] 
Add wxBitmap unit test.

This should have been part of r63774.

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

14 years agobuild fix for IRIX
Paul Cornett [Mon, 29 Mar 2010 06:45:00 +0000 (06:45 +0000)] 
build fix for IRIX

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

14 years agonon-pch build fix
Paul Cornett [Mon, 29 Mar 2010 06:44:16 +0000 (06:44 +0000)] 
non-pch build fix

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

14 years agoReverse hierarchy of wxPizza GdkWindows
Paul Cornett [Mon, 29 Mar 2010 01:16:06 +0000 (01:16 +0000)] 
Reverse hierarchy of wxPizza GdkWindows
widget->window must be topmost in order for GTK+ to calculate DND drop coordinates correctly
fixes #11834

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

14 years agoImplement wxMask copy ctor for wxGTK.
Vadim Zeitlin [Sun, 28 Mar 2010 23:20:49 +0000 (23:20 +0000)] 
Implement wxMask copy ctor for wxGTK.

Without copy ctor copying masks simply crashed because the same pointer was
deleted twice.

Also added a (completely trivial but better than nothing...) unit test for
wxBitmap to check that copying masks does work now.

Closes #11854.

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

14 years agoSuppress gcc warnings about double to int conversion.
Vadim Zeitlin [Sun, 28 Mar 2010 23:20:41 +0000 (23:20 +0000)] 
Suppress gcc warnings about double to int conversion.

This change might actually make the code more correct as well although in
practice it probably doesn't change anything.

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

14 years agoFix bug in wxMBConv_cf::FromWChar() in OS X.
Vadim Zeitlin [Sun, 28 Mar 2010 22:39:39 +0000 (22:39 +0000)] 
Fix bug in wxMBConv_cf::FromWChar() in OS X.

Apparently CFStringGetBytes() doesn't always behave as expected, work around
this by checking that the returned buffer size is not greater than the size we
passed in.

Closes #11859.

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

14 years agoClarify wxMenu objects allocation rules.
Vadim Zeitlin [Sun, 28 Mar 2010 22:39:32 +0000 (22:39 +0000)] 
Clarify wxMenu objects allocation rules.

Make it clear that only the menu directly passed to wxWindow::PopupMenu()
doesn't need to be allocated on the heap and that its submenus still do.

Closes #11851.

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

14 years agono real changes: just a small optimization on wxStaticText::DoSetLabel() to avoid...
Francesco Montorsi [Sun, 28 Mar 2010 22:23:38 +0000 (22:23 +0000)] 
no real changes: just a small optimization on wxStaticText::DoSetLabel() to avoid altering m_labelOrig there (it's already modified by SetLabel(), no need to change it twice)

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

14 years agowxHTML: Support percentage width in IMG tag.
Václav Slavík [Sun, 28 Mar 2010 17:55:51 +0000 (17:55 +0000)] 
wxHTML: Support percentage width in IMG tag.

(Patch #11800 by lpoujoulat) Fixes #11800.

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

14 years agoFix UTF-8 string storage in constant: use unsigned char.
Václav Slavík [Sun, 28 Mar 2010 17:52:19 +0000 (17:52 +0000)] 
Fix UTF-8 string storage in constant: use unsigned char.

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

14 years agoReverted wxFileSystem support in wxLocale.
Václav Slavík [Sun, 28 Mar 2010 15:41:41 +0000 (15:41 +0000)] 
Reverted wxFileSystem support in wxLocale.

The implementation was broken in numerous ways. URLs were corrupted in
search paths thanks to use of wxFileName for normalization. Lookup of
catalogs was broken, because ":" in URLs were interpreted as path
separators. Asserts occured because filenames were (incorrectly!)
interpreted as URLs.

Will replace with proper implementation.

See #8793, #11491.

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

14 years agoFix wxFileSystem::FileNameToURL() for Unicode file names.
Václav Slavík [Sun, 28 Mar 2010 15:41:35 +0000 (15:41 +0000)] 
Fix wxFileSystem::FileNameToURL() for Unicode file names.

If filename with non-ASCII characters was encoded, resulting URL
contained non-ASCII characters. But URLToFileName() expected the
input to be in UTF-8. This change fixes it by using UTF-8 for
file: URLs in FileNameToURL() too.

Fixes #11491.

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

14 years agoAdd test wxFileSystem::FileNameToURL,URLToFileName roundtrip with
Václav Slavík [Sun, 28 Mar 2010 15:41:29 +0000 (15:41 +0000)] 
Add test wxFileSystem::FileNameToURL,URLToFileName roundtrip with
Unicode filenames.

See #11491.

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

14 years agoPreserve m_skipped in wx[Var]ScrollHelperEvtHandler::ProcessEvent.
Václav Slavík [Sun, 28 Mar 2010 14:37:30 +0000 (14:37 +0000)] 
Preserve m_skipped in wx[Var]ScrollHelperEvtHandler::ProcessEvent.

If the event was skipped and not processed, its "skipped" status would
be lost.

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

14 years agoFix compilation of wx/debug.h when it's the first wx header to be included.
Vadim Zeitlin [Thu, 25 Mar 2010 20:08:05 +0000 (20:08 +0000)] 
Fix compilation of wx/debug.h when it's the first wx header to be included.

We must include wx/dlimpexp.h from wx/debug.h to be able to forward declare
wxString and wxCStrData using WXDLLIMPEXP_FWD_BASE, otherwise compilation
errors occur in the code which includes wx/debug.h as the first wx header.

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

14 years agoAllow overriding print preview frame creation in docview.
Vadim Zeitlin [Thu, 25 Mar 2010 20:07:58 +0000 (20:07 +0000)] 
Allow overriding print preview frame creation in docview.

Add a virtual wxDocManager::CreatePreviewFrame() which can be overridden to
customize the print preview used by docview framework.

Closes #11390.

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

14 years agoFix focus at the end of a property label edit (needed at least for wxGTK)
Jaakko Salli [Thu, 25 Mar 2010 15:55:01 +0000 (15:55 +0000)] 
Fix focus at the end of a property label edit (needed at least for wxGTK)

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

14 years agoIn wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor
Jaakko Salli [Thu, 25 Mar 2010 15:40:27 +0000 (15:40 +0000)] 
In wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor

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

14 years agoUpdates to make wxWidgets compaile on OpenVMS again
Jouk Jansen [Thu, 25 Mar 2010 11:16:32 +0000 (11:16 +0000)] 
Updates to make wxWidgets compaile on OpenVMS again

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

14 years agobetter fix for #11803, don't set iconized state for hidden window
Paul Cornett [Tue, 23 Mar 2010 17:58:03 +0000 (17:58 +0000)] 
better fix for #11803, don't set iconized state for hidden window

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

14 years agoignore iconized state when computing client size for GetBestSize(), fixes #11803
Paul Cornett [Tue, 23 Mar 2010 17:19:02 +0000 (17:19 +0000)] 
ignore iconized state when computing client size for GetBestSize(), fixes #11803

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

14 years agoAdding keyboard sample to OpenVMS makefiles
Jouk Jansen [Tue, 23 Mar 2010 15:14:25 +0000 (15:14 +0000)] 
Adding keyboard sample to OpenVMS makefiles

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

14 years agoImplement wxDocument::Revert() and show its use in the sample.
Vadim Zeitlin [Tue, 23 Mar 2010 10:49:51 +0000 (10:49 +0000)] 
Implement wxDocument::Revert() and show its use in the sample.

wxDocument::Revert() method existed but didn't do anything, provide a
default implementation for it. Also document it and show it in the sample.

Closes #11849.

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

14 years agoAlways call wxView::Close() when closing it.
Vadim Zeitlin [Tue, 23 Mar 2010 10:36:36 +0000 (10:36 +0000)] 
Always call wxView::Close() when closing it.

After wxDocView refactoring the behaviour has changed and wxView::Close() and
hence user-overriddable OnClose() called from it) was only called if the close
event could be vetoed. This broke code which relied on OnClose() being
executed in any case to perform some cleanup and was incompatible with 2.8 so
restore the old behaviour now.

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

14 years agoFixed ordering bug that caused an assertion because symbol list control wasn't set...
Julian Smart [Tue, 23 Mar 2010 08:59:52 +0000 (08:59 +0000)] 
Fixed ordering bug that caused an assertion because symbol list control wasn't set to unicode yet

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

14 years agoAdd uiaction sample to the list of samples to build if enabled.
Vadim Zeitlin [Mon, 22 Mar 2010 22:56:26 +0000 (22:56 +0000)] 
Add uiaction sample to the list of samples to build if enabled.

The uiaction sample was never built under Unix, do add it to SAMPLES_SUBDIRS
to enable building it if wxUSE_UIACTIONSIMULATOR==1.

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

14 years agoLet uiaction sample compile even if wxUSE_UIACTIONSIMULATOR==0.
Vadim Zeitlin [Mon, 22 Mar 2010 22:56:22 +0000 (22:56 +0000)] 
Let uiaction sample compile even if wxUSE_UIACTIONSIMULATOR==0.

There is no way to exclude the sample from the build under Windows so make it
compile and link even if wxUSE_UIACTIONSIMULATOR==0 but just give an error
message on startup in this case instead of working as expected.

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

14 years agoClarify wxDateTime::ParseDateTime() semantics: it needs both date and time.
Vadim Zeitlin [Mon, 22 Mar 2010 22:56:17 +0000 (22:56 +0000)] 
Clarify wxDateTime::ParseDateTime() semantics: it needs both date and time.

Correct documentation and also remove unnecessary initialization of variables
and comments in the function itself.

See #11846.

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

14 years agoTemporarily disable wxFileSystemWatcher unit test under OS X.
Vadim Zeitlin [Mon, 22 Mar 2010 16:08:44 +0000 (16:08 +0000)] 
Temporarily disable wxFileSystemWatcher unit test under OS X.

This tests hangs and never finishes, disable it for now to allow buildbot to
at least run the other tests.

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

14 years agoFixed RefreshRect() call in wxPropertyGrid::DrawItems() to use physical window coordi...
Jaakko Salli [Mon, 22 Mar 2010 16:07:45 +0000 (16:07 +0000)] 
Fixed RefreshRect() call in wxPropertyGrid::DrawItems() to use physical window coordinates instead of logical grid ones

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

14 years agoFix wxOSX compilation without PCH.
Vadim Zeitlin [Mon, 22 Mar 2010 11:40:40 +0000 (11:40 +0000)] 
Fix wxOSX compilation without PCH.

Explicitly include wx/nonownedwnd.h as we use wxNonOwnedWindow in this file.

Closes #11833.

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

14 years agoAdd wxUSE_UIACTIONSIMULATOR and turn it off by default.
Vadim Zeitlin [Mon, 22 Mar 2010 11:40:35 +0000 (11:40 +0000)] 
Add wxUSE_UIACTIONSIMULATOR and turn it off by default.

Disable the recently added wxUIActionSimulator class until the issues with it
mentioned at http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/119792/
are fixed.

Also use "" around wx headers instead of <> in wx code itself.

See #11801.

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

14 years agoDon't enter an infinite loop if a spacer with min size of -1 is used.
Vadim Zeitlin [Mon, 22 Mar 2010 11:40:26 +0000 (11:40 +0000)] 
Don't enter an infinite loop if a spacer with min size of -1 is used.

Sizer layout algorithm broke down if min size of an item happened to be -1,
i.e. the same value as we use as a sentinel for indicating that the min size
hasn't been fixed yet. It doesn't make much sense for min size to be negative
in the first place but currently this can happen at least for spacers so deal
with it here by ensuring that the min size we use is positive.

Closes #11842.

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

14 years agoFix the selection validity check in wxSingleChoiceDialog.
Vadim Zeitlin [Mon, 22 Mar 2010 11:40:19 +0000 (11:40 +0000)] 
Fix the selection validity check in wxSingleChoiceDialog.

Fix the typo ("> 0" was used instead of ">= 0") introduced in r63731.

Closes #11844.

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

14 years agoreorder GetLabel(), GetLabelText(), SetLabel() and SetLabelText() function declaratio...
Francesco Montorsi [Sun, 21 Mar 2010 21:39:15 +0000 (21:39 +0000)] 
reorder GetLabel(), GetLabelText(), SetLabel() and SetLabelText() function declarations, implementations and relative documentations.

Add wxStaticTextBase::GetLabelWithoutMarkup() and use it in the wxMSW implementation of wxStaticText::SetLabel() to close bug #11446; the function RemoveMarkup() which was previously used in fact could not check for presence/absence of wxST_MARKUP style since it's a static function.

Add wxStaticTextBase::SetLabelText() functions for symmetry with wxControlBase::SetLabelText()

Add test unit for both wxControl::*Label* and wxStaticText::*Label* functions.

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

14 years agoCorrect wxFILTER_DIGITS handling broken by r63582.
Vadim Zeitlin [Sun, 21 Mar 2010 11:06:36 +0000 (11:06 +0000)] 
Correct wxFILTER_DIGITS handling broken by r63582.

The fix in r63582 accidentally omitted the "!" in wxFILTER_DIGITS check.

Restore it.

Closes #11838.

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

14 years agoAdd initial selection parameter to wxGetSingleChoice() functions.
Vadim Zeitlin [Sun, 21 Mar 2010 11:06:31 +0000 (11:06 +0000)] 
Add initial selection parameter to wxGetSingleChoice() functions.

Allow to easily specify the initially selected item.

Closes #11749.

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

14 years agoDon't leak m_protocol in wxURL.
Vadim Zeitlin [Sun, 21 Mar 2010 11:06:26 +0000 (11:06 +0000)] 
Don't leak m_protocol in wxURL.

Destroy the old protocol before creating it anew in ParseURL().

Closes #11796.

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

14 years agoMake wxPGVFBFlags an unsigned char define instead of wxByte typedef (easier time...
Jaakko Salli [Sat, 20 Mar 2010 14:08:34 +0000 (14:08 +0000)] 
Make wxPGVFBFlags an unsigned char define instead of wxByte typedef (easier time for wxPython bindings)

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

14 years agoRemove obsolete parts of wxPageSetupDialog documentation.
Vadim Zeitlin [Sat, 20 Mar 2010 13:18:28 +0000 (13:18 +0000)] 
Remove obsolete parts of wxPageSetupDialog documentation.

Don't speak about features "new" in Windows 95 nor 4.0 any more (what next,
discussion of wxWidgets limitations when running on an abacus?) but do mention
that this dialog is native under all major platforms now.

Closes #11820.

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

14 years agoAdd wxMessageDialog::GetEffectiveIcon() and use it in all ports.
Vadim Zeitlin [Sat, 20 Mar 2010 13:18:23 +0000 (13:18 +0000)] 
Add wxMessageDialog::GetEffectiveIcon() and use it in all ports.

Remove code duplication and inconsistencies among different ports by using a
single function in the base class for the determination of the effective icon
style to use, correctly handling both wxICON_NONE and the absence of any
wxICON_XXX styles.

Closes #11822.

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

14 years agoRemove unused and empty src/x11/joystick.cpp file.
Vadim Zeitlin [Sat, 20 Mar 2010 13:03:09 +0000 (13:03 +0000)] 
Remove unused and empty src/x11/joystick.cpp file.

This was never implemented and is unlikely to ever be. In any case the file
didn't contain anything useful.

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

14 years agoRename wxWindow::GetMainWindow() to X11GetMainWindow() in wxX11.
Vadim Zeitlin [Sat, 20 Mar 2010 13:03:05 +0000 (13:03 +0000)] 
Rename wxWindow::GetMainWindow() to X11GetMainWindow() in wxX11.

This avoids conflicts with GetMainWindow() defined in other wxWindow-derived
classes (such as wxDataViewCtrl and potentially user-defined classes as well).

Closes #11818.

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

14 years agoFix a couple of harmless unused parameter warnings in wxX11.
Vadim Zeitlin [Sat, 20 Mar 2010 13:03:00 +0000 (13:03 +0000)] 
Fix a couple of harmless unused parameter warnings in wxX11.

See #11818.

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

14 years agoDe-TAB-bed src/x11/pango_x.cpp.
Vadim Zeitlin [Sat, 20 Mar 2010 13:02:56 +0000 (13:02 +0000)] 
De-TAB-bed src/x11/pango_x.cpp.

This is necessary in order to be able to check in its modified version in the
next commit.

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

14 years agoFix some harmless unused parameter warnings.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:47 +0000 (12:45 +0000)] 
Fix some harmless unused parameter warnings.

These warnings only happen in specific builds (when HAVE_LANGINFO_H and
wxUSE_DISPLAY are undefined/off).

See #11817.

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

14 years agoCheck whether SA_RESTART is defined and don't use it if it isn't.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:43 +0000 (12:45 +0000)] 
Check whether SA_RESTART is defined and don't use it if it isn't.

SA_RESTART is not defined for QNX and not only VMS so test for it directly
instead of testing for the platform.

See #11817.

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

14 years agoInclude sys/time.h from threadpsx.cpp for all systems.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:39 +0000 (12:45 +0000)] 
Include sys/time.h from threadpsx.cpp for all systems.

It's needed by Linux and QNX and shouldn't do any harm under the others.

See #11817.

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

14 years agoAdd support for QNX to dialup detection code.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:33 +0000 (12:45 +0000)] 
Add support for QNX to dialup detection code.

See #11817.

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

14 years agoAlways include sys/time.h and sys/select.h from selectdispatcher.h.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:28 +0000 (12:45 +0000)] 
Always include sys/time.h and sys/select.h from selectdispatcher.h.

fd_set used by this header is supposed to be defined in sys/select.h and not
including this header resulted in compilation problems under QNX. And
including sys/time.h shouldn't hurt and is needed by select() under many
systems anyhow.

See #11817.

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

14 years agoDefine wxGraphicsRenderer::GetDefaultRenderer() for all non-{MSW,Mac} ports.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:23 +0000 (12:45 +0000)] 
Define wxGraphicsRenderer::GetDefaultRenderer() for all non-{MSW,Mac} ports.

wxGraphicsRenderer::GetDefaultRenderer() was only defined for wxGTK for some
reason but it needs to be defined in terms of GetCairoRenderer() for all ports
without native renderer implementation, i.e. everything but wxMSW and wxMac.

See #11817.

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

14 years agoRemove duplicate variable definition.
Vadim Zeitlin [Sat, 20 Mar 2010 12:45:19 +0000 (12:45 +0000)] 
Remove duplicate variable definition.

The splitterX variable in wxPropertyGrid::HandleMouseMove() was defined twice
with the same value, remove the second definition to avoid warnings about
shadowing the variable in outer scope from some compilers.

See #11817.

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

14 years agoFix various doxygen warnings
Francesco Montorsi [Fri, 19 Mar 2010 22:35:30 +0000 (22:35 +0000)] 
Fix various doxygen warnings

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

14 years agoPostpone initialization of owner-drawn menu metrics.
Vadim Zeitlin [Fri, 19 Mar 2010 09:57:15 +0000 (09:57 +0000)] 
Postpone initialization of owner-drawn menu metrics.

Doing it during globals initialization time didn't work and could even result
in a crash due to dereferencing a NULL wxTheApp pointer.

Closes #11806.

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

14 years agoClarify documentation for wxPropertyGridEvent::GetProperty()
Jaakko Salli [Thu, 18 Mar 2010 17:12:40 +0000 (17:12 +0000)] 
Clarify documentation for wxPropertyGridEvent::GetProperty()

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

14 years agoReturn exit code as signed integer from wxExecute(wxEXEC_SYNC).
Vadim Zeitlin [Thu, 18 Mar 2010 15:51:19 +0000 (15:51 +0000)] 
Return exit code as signed integer from wxExecute(wxEXEC_SYNC).

The caller expects the function to return -1 if the child process exited with
-1 error code and not 255 that was returned before. The function is also
documented as returning -1 if the execution fails which wasn't true neither.

Fix this by explicitly handling the exit code as signed.

Closes #11824.

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

14 years agoEnsure that setting wxChoice height to its default value does set it.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:39 +0000 (15:07 +0000)] 
Ensure that setting wxChoice height to its default value does set it.

Setting wxChoice height to its default value didn't change the height even if
the current height was different from the default. This resulted in problems
when a wxChoice was used inside a wxAuiToolBar because AUI temporarily reduces
the toolbar size to (1, 1) when docking it (thus ensuring that the height of
wxChoice is changed too) and generally didn't make sense.

Fix this by resetting the height to the default value if the value passed to
wxChoice::SetSize() is what it considers to be its default height.

Add a unit test for this bug and also add a wxChoice to AUI sample to allow
testing for wxChoice behaviour inside a wxAuiToolBar being [un]docked.

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

14 years agoRemove wxAuiProportionalBoxSizer hack and replace it with wxBoxSizer.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:32 +0000 (15:07 +0000)] 
Remove wxAuiProportionalBoxSizer hack and replace it with wxBoxSizer.

The temporary workaround due to wxBoxSizer changes in 2.9.0 is not needed any
more, revert r59889 and use wxBoxSizer instead of custom
wxAuiProportionalBoxSizer again.

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

14 years agoFix box sizer layout algorithm to respect both proportions and min sizes.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:24 +0000 (15:07 +0000)] 
Fix box sizer layout algorithm to respect both proportions and min sizes.

The new version of the algorithm tries to distribute the entire space
allocated to the sizer among its children, just as the version in 2.8 did,
while still respecting minimal children sizes first and foremost. This means
that the space allocated to the item will always be at least its minimal size
if the total space is at least equal to the sum of minimal sizes of the
children but that if there is enough space, the proportions will be respected
too.

Extended the unit test to check that laying out various combinations of three
elements results in the expected results.

Closes #11311.

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

14 years agoEnsure that size in the minor direction of box sizer doesn't exceed the total.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:19 +0000 (15:07 +0000)] 
Ensure that size in the minor direction of box sizer doesn't exceed the total.

This is similar to the previous commit but for the transversal direction of a
box sizer: we could give an item size larger than the size of the sizer itself
making only part of its window visible (and thus potentially making the window
unusable e.g. because the scrollbar wasn't visible at all).

Fix this by always restricting the item size in the minor direction to the
total size available and add a unit test which failed previously and passes
now.

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

14 years agoEnsure that size in the major direction of box sizer doesn't exceed the total.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:14 +0000 (15:07 +0000)] 
Ensure that size in the major direction of box sizer doesn't exceed the total.

After fixing the problem with "growing items by negative proportion" in r56010
(which still was the correct thing to do as it fixed such indefensibly broken
behaviour as shrinking items with larger proportion by more than "smaller"
items when there was not enough space) the items in a box sizer could become
larger than the total space allocated to the sizer resulting in only parts of
them being visible.

Fix this by truncating the items to the (remaining) total size even if this
means making them less than their minimal sizes -- because there is nothing
else we can do when the total space is smaller than the sum of minimal sizes
anyhow.

Closes #10008.

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

14 years agoAdd (a very simple for now) wxBoxSizer unit test.
Vadim Zeitlin [Thu, 18 Mar 2010 15:07:10 +0000 (15:07 +0000)] 
Add (a very simple for now) wxBoxSizer unit test.

Only check that layout for a single sizer item works correctly for now.

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

14 years agoCzech translation update from Herbert Breunung.
Vadim Zeitlin [Thu, 18 Mar 2010 15:02:15 +0000 (15:02 +0000)] 
Czech translation update from Herbert Breunung.

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

14 years agoUse explicit wxPGPropertyFlags enum type with wxPGProperty::SetFlag() and similar...
Jaakko Salli [Wed, 17 Mar 2010 18:17:19 +0000 (18:17 +0000)] 
Use explicit wxPGPropertyFlags enum type with wxPGProperty::SetFlag() and similar member functions (thus preventing use of incorrect set of flags). Also now document wxPGProperty flags.

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

14 years agofixing non-precomp builds
Stefan Csomor [Wed, 17 Mar 2010 09:13:55 +0000 (09:13 +0000)] 
fixing non-precomp builds

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

14 years agoadding proper removal of observer for stacked event loops, using cfrunloop for consol...
Stefan Csomor [Wed, 17 Mar 2010 08:05:04 +0000 (08:05 +0000)] 
adding proper removal of observer for stacked event loops, using cfrunloop for console on osx as well

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

14 years agostreamlining OSX event support third step, using platform specific native run methods...
Stefan Csomor [Wed, 17 Mar 2010 07:14:03 +0000 (07:14 +0000)] 
streamlining OSX event support third step, using platform specific native run methods for event loops

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

14 years agoDon't use grouping of different methods as this creates confusing output
Robert Roebling [Tue, 16 Mar 2010 19:13:36 +0000 (19:13 +0000)] 
Don't use grouping of different methods as this creates confusing output

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

14 years agoAdd white outline to bulls eye cursor used under MSW.
Vadim Zeitlin [Tue, 16 Mar 2010 14:48:02 +0000 (14:48 +0000)] 
Add white outline to bulls eye cursor used under MSW.

The cursor used black circles only making it perfectly invisible on black
background. Add a white outline as well to ensure that it can be seen in this
case too, similarly to how it's done for magnifying glass cursor and the same
bulls eye cursor in GTK+.

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

14 years agoInitialize picker style in native GTK file/dir pickers.
Vadim Zeitlin [Tue, 16 Mar 2010 00:23:57 +0000 (00:23 +0000)] 
Initialize picker style in native GTK file/dir pickers.

This fixes the styles used in the native wxGTK version after changes in
r63654: we must initialize base class m_pickerStyle now and the code didn't do
this before resulting in various asserts and incorrect behaviour.

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

14 years agostreamlining OSX event support second step, moving pending and idle event handling...
Stefan Csomor [Mon, 15 Mar 2010 19:31:57 +0000 (19:31 +0000)] 
streamlining OSX event support second step, moving pending and idle event handling to runloop-observer, see #11805, see #11797

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

14 years agostreamlining OSX event support first step, see #11805, see #11797
Stefan Csomor [Mon, 15 Mar 2010 15:40:47 +0000 (15:40 +0000)] 
streamlining OSX event support first step, see #11805, see #11797

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

14 years agoFixed label editor position for child properties
Jaakko Salli [Sun, 14 Mar 2010 17:15:17 +0000 (17:15 +0000)] 
Fixed label editor position for child properties

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

14 years agoFix test for compilers not supporting \u escapes in strings (such as VC6).
Vadim Zeitlin [Sun, 14 Mar 2010 14:47:11 +0000 (14:47 +0000)] 
Fix test for compilers not supporting \u escapes in strings (such as VC6).

Also reformat the code to follow wx style and explicitly use UTF-8 for the
test strings encoding instead of assuming the encoding of the current locale
was UTF-8 (which is never the case under Windows).

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

14 years agoSet correct properties for the new file added in r63660.
Vadim Zeitlin [Sun, 14 Mar 2010 14:44:25 +0000 (14:44 +0000)] 
Set correct properties for the new file added in r63660.

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

14 years agoUse an appropriate icon automatically in wxMSW wxMessageDialog.
Vadim Zeitlin [Sun, 14 Mar 2010 14:15:49 +0000 (14:15 +0000)] 
Use an appropriate icon automatically in wxMSW wxMessageDialog.

wxMessageBox() functions uses wxICON_QUESTION or wxICON_INFORMATION
automatically if no other icon style (including wxICON_NONE) is specified but
wxMessageDialog under MSW didn't do this, unlike under e.g. wxGTK.

Fix this by also determining the appropriate icon automatically in
wxMessageDialog itself in wxMSW.

Ideally we'd do this in all ports wxMessageDialog implementations and remove
the code doing it from wxMessageBox() but right now it's still needed for the
platforms other than wxMSW and wxGTK.

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

14 years agoDocument that message box with wxYES_NO but without wxCANCEL can't be closed.
Vadim Zeitlin [Sun, 14 Mar 2010 14:15:46 +0000 (14:15 +0000)] 
Document that message box with wxYES_NO but without wxCANCEL can't be closed.

Recommend using these styles together to avoid it.

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

14 years agoAdd a "not specified" icon style to the message box test dialog.
Vadim Zeitlin [Sun, 14 Mar 2010 14:15:42 +0000 (14:15 +0000)] 
Add a "not specified" icon style to the message box test dialog.

The sample allowed to test the behaviour with all wxICON_XXX including
wxICON_NONE but not without any icon styles at all. Do allow it now.

Also use symbolic names for the radiobox indices for clarity.

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