]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoAllow creating wxTextMeasure without specifying the font.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:22 +0000 (17:15 +0000)] 
Allow creating wxTextMeasure without specifying the font.

Use the default window/DC font by default as this is the most common case.

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

12 years agoAlways set the font to use in wxMSW wxTextMeasure when using a window.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:19 +0000 (17:15 +0000)] 
Always set the font to use in wxMSW wxTextMeasure when using a window.

The default window HDC font is not the same as the wxWindow font, so we need
to always set the font explicitly in this case (when using a wxDC, its HDC
does have the current wxDC font already selected into it, so doing it once
again would be unnecessarily wasteful).

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

12 years agoAllow constructing wxGTK wxTextMeasure with NULL font.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:15 +0000 (17:15 +0000)] 
Allow constructing wxGTK wxTextMeasure with NULL font.

The font is explicitly documented as being possibly NULL in the base class and
wxMSW handles NULL font just fine, so also handle it in the GTK version.

See #14706.

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

12 years agoDon't crash in wxHTML when parsing empty tables with empty width parameter.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:12 +0000 (17:15 +0000)] 
Don't crash in wxHTML when parsing empty tables with empty width parameter.

Guard against accessing invalid string element.

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

12 years agoAdded wxEVT_COMMAND_DIRCTRL_CHANGED for wxDirCtrl selection changes.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:08 +0000 (17:15 +0000)] 
Added wxEVT_COMMAND_DIRCTRL_CHANGED for wxDirCtrl selection changes.

This makes it much simpler to react to the changes in the control, update the
sample to show it.

Closes #14792.

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

12 years agoNo changes, just some cleanup in wxGenericDirCtrl code.
Vadim Zeitlin [Thu, 1 Nov 2012 17:15:03 +0000 (17:15 +0000)] 
No changes, just some cleanup in wxGenericDirCtrl code.

Use GetItemData() helper to only write a cast to wxDirItemData in this
function instead of repeating it many times.

See #14790.

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

12 years agoAdd distclean target to samples/Makefile.
Vadim Zeitlin [Thu, 1 Nov 2012 17:14:59 +0000 (17:14 +0000)] 
Add distclean target to samples/Makefile.

It is necessary because it is used by the distclean target of the top level
makefile.

Closes #14793.

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

12 years agoDeal correctly with wx directory being a symlink in docs generation script.
Vadim Zeitlin [Thu, 1 Nov 2012 17:14:54 +0000 (17:14 +0000)] 
Deal correctly with wx directory being a symlink in docs generation script.

The script calling Doxygen is smart enough to strip the path of the wxWidgets
directory from the paths of the files, but it didn't do it correctly if this
directory was a symlink.

Fix this by using readlink, if available, to get the canonical name.

Closes #14796.

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

12 years agoTests for wxTEST_DIALOG and wx/testing.h.
Václav Slavík [Thu, 1 Nov 2012 16:45:14 +0000 (16:45 +0000)] 
Tests for wxTEST_DIALOG and wx/testing.h.

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

12 years agoAdd wxTEST_DIALOG for testing of modal dialogs.
Václav Slavík [Thu, 1 Nov 2012 16:45:11 +0000 (16:45 +0000)] 
Add wxTEST_DIALOG for testing of modal dialogs.

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

12 years agoAdd wxCALL_FOR_EACH() macro.
Václav Slavík [Thu, 1 Nov 2012 16:45:01 +0000 (16:45 +0000)] 
Add wxCALL_FOR_EACH() macro.

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

12 years agoNepalese translations update from Him Prasad Gautam.
Vadim Zeitlin [Wed, 31 Oct 2012 13:39:04 +0000 (13:39 +0000)] 
Nepalese translations update from Him Prasad Gautam.

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

12 years agoRevert "Split documentation of the GUI wxLog classes in a separate file."
Vadim Zeitlin [Wed, 31 Oct 2012 12:55:52 +0000 (12:55 +0000)] 
Revert "Split documentation of the GUI wxLog classes in a separate file."

This reverts r72818 as it resulted in wrong header files being generated in
the documentation for the GUI wxLog classes.

See #14784.

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

12 years agoadding principal class for command line builds (High Resolution Support), changing...
Stefan Csomor [Wed, 31 Oct 2012 07:16:01 +0000 (07:16 +0000)] 
adding principal class for command line builds (High Resolution Support), changing years in copyright info

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

12 years agoadding constants for newer OSX versions to make sure our conditional expressions...
Stefan Csomor [Wed, 31 Oct 2012 07:10:07 +0000 (07:10 +0000)] 
adding constants for newer OSX versions to make sure our conditional expressions are working with earlier SDKs

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

12 years agofix WakeUpIdle() when called from another thread while idle processing is in progress
Paul Cornett [Wed, 31 Oct 2012 05:43:01 +0000 (05:43 +0000)] 
fix WakeUpIdle() when called from another thread while idle processing is in progress

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

12 years agoDefine wxSOCKET_XXX flags as wxSOCKET_XXX_READ|wxSOCKET_XXX_WRITE.
Vadim Zeitlin [Wed, 31 Oct 2012 00:17:17 +0000 (00:17 +0000)] 
Define wxSOCKET_XXX flags as wxSOCKET_XXX_READ|wxSOCKET_XXX_WRITE.

The recently introduced (in r72591) wxSOCKET_{WAITALL,NOWAIT}_{READ,WRITE}
flags weere for some reason completely different and unrelated to the existing
bidirectional wxSOCKET_{WAITALL,NOWAIT} ones. Change this by defining the
bidirectional version simply as the sum of the two others. This makes much
more sense than testing for either wxSOCKET_XXX or wxSOCKET_XXX_READ or
wxSOCKET_XXX_WRITE being specified.

And it also fixes an assert in wxSocketWaitModeChanger where a sanity check
failed when this class was used with wxSOCKET_WAITALL|wxSOCKET_WAITALL_READ.

See #14506.

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

12 years agoRevert "Split documentation of non-GUI wxEvent-related classes."
Vadim Zeitlin [Tue, 30 Oct 2012 14:04:39 +0000 (14:04 +0000)] 
Revert "Split documentation of non-GUI wxEvent-related classes."

This reverts r72817 as it resulted in build problems for wxPython and
incorrect headers in the generated documentation.

See #14785.

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

12 years agoCompare file paths using wxFileName, not wxString, in the sample.
Vadim Zeitlin [Mon, 29 Oct 2012 18:30:14 +0000 (18:30 +0000)] 
Compare file paths using wxFileName, not wxString, in the sample.

Comparing paths using wxString is a bad idea as identical paths can be seen as
mismatching because of case-only differences.

Also, don't reset wxRadioBox selection from its selection handler, this
doesn't work under e.g. wxGTK and is a bad example.

Closes #14791.

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

12 years agoAdd wxDirCtrl::GetPath().
Vadim Zeitlin [Mon, 29 Oct 2012 18:30:10 +0000 (18:30 +0000)] 
Add wxDirCtrl::GetPath().

This allows to retrieve the directory being affected by wxTreeCtrl event.

Closes #14790.

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

12 years agoSplit documentation of the GUI wxLog classes in a separate file.
Vadim Zeitlin [Mon, 29 Oct 2012 15:15:38 +0000 (15:15 +0000)] 
Split documentation of the GUI wxLog classes in a separate file.

Put the GUI classes in a new interface/wx/generic/logg.h to make it easier to
generate wrappers for only the base or only the core libraries.

Also change the order of the classes remaining in log.h to ensure that the
base classes are always defined before the derived ones.

Closes #14784.

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

12 years agoSplit documentation of non-GUI wxEvent-related classes.
Vadim Zeitlin [Mon, 29 Oct 2012 15:15:33 +0000 (15:15 +0000)] 
Split documentation of non-GUI wxEvent-related classes.

Separate GUI from base classes to make it easier to generate wrappers for just
the latter using e.g. SWIG.

Closes #14785.

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

12 years agoGet rid of wxAuiToolBar::m_style and just use base class m_windowStyle.
Vadim Zeitlin [Mon, 29 Oct 2012 14:50:42 +0000 (14:50 +0000)] 
Get rid of wxAuiToolBar::m_style and just use base class m_windowStyle.

This fixes an assert exposed by the addition of wxAuiToolBar::Create() in
r72785: as m_style was not initialized before, calling GetWindowStyle() from
wxControl::Create() returned wrong flags.

Fix this by just removing m_style completely, there doesn't seem to be any
need for it nor for overriding GetWindowStyleFlag().

See #13520.

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

12 years agoFix the use of obsolete wxDD_NEW_DIR_BUTTON in wxOSX.
Vadim Zeitlin [Mon, 29 Oct 2012 01:20:28 +0000 (01:20 +0000)] 
Fix the use of obsolete wxDD_NEW_DIR_BUTTON in wxOSX.

Use wxDD_DIR_MUST_EXIST, testing for wxDD_NEW_DIR_BUTTON always failed.

Closes #13596.

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

12 years agoNo changes, just avoid code duplication in wxOSX wxDirDialog.
Vadim Zeitlin [Mon, 29 Oct 2012 01:20:26 +0000 (01:20 +0000)] 
No changes, just avoid code duplication in wxOSX wxDirDialog.

Factor our common parts of wxDirDialog::ShowModal() and ShowWindowModal() in
OSXCreatePanel() helper.

Also some minor cosmetic changes.

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

12 years agoAvoid double destruction of wxTipWindow under wxOSX.
Vadim Zeitlin [Mon, 29 Oct 2012 01:20:21 +0000 (01:20 +0000)] 
Avoid double destruction of wxTipWindow under wxOSX.

Hiding the window results in wxEVT_KILL_FOCUS under OS X and this destroys it
already, so when we call Destroy() from wxTipWindow::Close() later, it
triggers assert about destroying it twice.

Avoid doing this under OS X for now, even though the real problem is probably
the discrepancy in wxEVT_KILL_FOCUS event generation under different platforms.

Closes #14651.

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

12 years agoDocument which wxWebView methods must wait for a page load before being called.
Steve Lamerton [Sun, 28 Oct 2012 21:01:06 +0000 (21:01 +0000)] 
Document which wxWebView methods must wait for a page load before being called.

Closes #14768

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

12 years agoDon't return "void" to fix MSVC6 compilation.
Vadim Zeitlin [Sun, 28 Oct 2012 13:31:50 +0000 (13:31 +0000)] 
Don't return "void" to fix MSVC6 compilation.

VC6 doesn't support returning void "value".

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

12 years agoUpdates to Indonesian translations by Rahmat Bambang.
Vadim Zeitlin [Sun, 28 Oct 2012 12:36:06 +0000 (12:36 +0000)] 
Updates to Indonesian translations by Rahmat Bambang.

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

12 years agoImplement support for button mnemonics in wxOSX/Cocoa.
Vadim Zeitlin [Sun, 28 Oct 2012 01:08:32 +0000 (01:08 +0000)] 
Implement support for button mnemonics in wxOSX/Cocoa.

Set the mnemonic as "key equivalent".

Closes #12917.

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

12 years agoImprove splitter appearance in wxOSX/Cocoa.
Vadim Zeitlin [Sun, 28 Oct 2012 01:08:28 +0000 (01:08 +0000)] 
Improve splitter appearance in wxOSX/Cocoa.

Try to imitate NSSplitView better.

Closes #12921.

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

12 years agoImplement image support for wxNotebook pages in wxOSX/Cocoa.
Vadim Zeitlin [Sun, 28 Oct 2012 01:08:24 +0000 (01:08 +0000)] 
Implement image support for wxNotebook pages in wxOSX/Cocoa.

This currently doesn't work correctly for left/right orientations but at least
it does work for the default top (and also bottom) one.

Closes #12754.

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

12 years agoFix taskbar sample compilation under wxOSX/Cocoa.
Vadim Zeitlin [Sun, 28 Oct 2012 01:08:20 +0000 (01:08 +0000)] 
Fix taskbar sample compilation under wxOSX/Cocoa.

Use wxTBI_XXX constants instead of wxTaskBarIcon::XXX ones which don't seem to
exist any longer.

See #11831.

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

12 years agoFix the pages range in the print dialog in wxOSX.
Vadim Zeitlin [Sun, 28 Oct 2012 01:08:16 +0000 (01:08 +0000)] 
Fix the pages range in the print dialog in wxOSX.

Set the min/max pages earlier for them to be taken into account and also
actually do set them in the print settings.

Closes #8349.

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

12 years agoAnother attempt to fix wxTextMeasure compilation with VC6.
Vadim Zeitlin [Sat, 27 Oct 2012 12:28:04 +0000 (12:28 +0000)] 
Another attempt to fix wxTextMeasure compilation with VC6.

Simply make the methods accessed by the nested class public.

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

12 years agoAllow using wxTextMeasure::GetLargestStringExtent() with wxArrayString.
Vadim Zeitlin [Sat, 27 Oct 2012 12:28:00 +0000 (12:28 +0000)] 
Allow using wxTextMeasure::GetLargestStringExtent() with wxArrayString.

Change the signature of this method to take the number of strings and the
pointer to the first of them instead of wxVector<wxString> as this allows it
to be used with all of wxVector<wxString>, wxArrayString and raw arrays of
wxStrings.

Also return the computed size from it instead of filling output parameters.

Closes #14781.

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

12 years agoAllow wxTextMeasure to work with non-native wxDC objects too.
Vadim Zeitlin [Sat, 27 Oct 2012 12:27:56 +0000 (12:27 +0000)] 
Allow wxTextMeasure to work with non-native wxDC objects too.

Just forward back to wxDC itself in this case instead of using the
platform-specific code in wxTextMeasure that only works with native DCs.

See #14781.

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

12 years agoFix warning about signed/unsigned comparison in wxFile::ReadAll().
Vadim Zeitlin [Sat, 27 Oct 2012 12:27:53 +0000 (12:27 +0000)] 
Fix warning about signed/unsigned comparison in wxFile::ReadAll().

Compare ssize_t value with another ssize_t value instead of size_t one to
avoid warnings.

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

12 years agoJust fix header comments of wxTextMeasure-related files, no real changes.
Vadim Zeitlin [Sat, 27 Oct 2012 12:27:48 +0000 (12:27 +0000)] 
Just fix header comments of wxTextMeasure-related files, no real changes.

See #14781.

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

12 years agoAdd missing WXK constants for the control keys
Robin Dunn [Sat, 27 Oct 2012 03:15:17 +0000 (03:15 +0000)] 
Add missing WXK constants for the control keys

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

12 years agoGenerate the interface file for STC from gen_iface too.
Robin Dunn [Sat, 27 Oct 2012 03:15:08 +0000 (03:15 +0000)] 
Generate the interface file for STC from gen_iface too.

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

12 years agoFix incorrect libraries in the documentation.
Vadim Zeitlin [Sat, 27 Oct 2012 01:27:23 +0000 (01:27 +0000)] 
Fix incorrect libraries in the documentation.

Use wxcore for the GUI classes that were mistakenly documented as belonging to
the wxbase library.

Closes #14783.

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

12 years agoAdd wxAuiToolBar::Create().
Vadim Zeitlin [Sat, 27 Oct 2012 01:27:19 +0000 (01:27 +0000)] 
Add wxAuiToolBar::Create().

Implement two-step creation of wxAuiToolBar to allow doing it from XRC.

See #13520.

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

12 years agoRenamed file containing wxAuiToolBar documentation.
Vadim Zeitlin [Sat, 27 Oct 2012 01:27:16 +0000 (01:27 +0000)] 
Renamed file containing wxAuiToolBar documentation.

The real header is called wx/aui/auibar.h, not wx/aui/toolbar.h.

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

12 years agoFix PCH-less build after previous commit.
Vadim Zeitlin [Sat, 27 Oct 2012 01:27:13 +0000 (01:27 +0000)] 
Fix PCH-less build after previous commit.

Need to include wx/window.h now that wx/animate.h is not included any more.

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

12 years agoBreak implicit dependency of "core" on "adv" via wxXmlResourceHandlerImplBase.
Vadim Zeitlin [Sat, 27 Oct 2012 00:46:58 +0000 (00:46 +0000)] 
Break implicit dependency of "core" on "adv" via wxXmlResourceHandlerImplBase.

wxXmlResourceHandlerImplBase::GetAnimation() returned wxAnimation by value
which created references to wxAnimationCtrlNameStr and wxNullAnimation
symbols, defined in the "adv" library, in "core" when using Sun CC even though
they were not referenced directly.

Fix this by returning wxAnimation by pointer to keep it opaque for "core" code.

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

12 years agoCompilation fix for STL build after the last commit.
Vadim Zeitlin [Thu, 25 Oct 2012 23:55:54 +0000 (23:55 +0000)] 
Compilation fix for STL build after the last commit.

Add missing fn_str() call.

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

12 years agoStore the selected directory in wxGTK wxDirDialog.
Vadim Zeitlin [Thu, 25 Oct 2012 23:26:36 +0000 (23:26 +0000)] 
Store the selected directory in wxGTK wxDirDialog.

This should help with the selected directory not being remembered since
GTK+ 2.24.11 as apparently gtk_file_chooser_get_filename() doesn't work any
more now after hiding the dialog -- so call it before doing this and save the
result.

Also get rid of the ugly and apparently completely unnecessary OnFakeOk().

Closes #14525.

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

12 years agoPrevent pasting too much text into limited length wxTextCtrl in wxGTK.
Vadim Zeitlin [Thu, 25 Oct 2012 23:26:32 +0000 (23:26 +0000)] 
Prevent pasting too much text into limited length wxTextCtrl in wxGTK.

Improve insert-text signal handler to block pasting text into the control,
which may overflow the specified max length in one action, and not only
entering individual characters.

See #3158.

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

12 years agoMake wxFILE_EXISTS_SYMLINK work on its own, without wxFILE_EXISTS_NO_FOLLOW.
Vadim Zeitlin [Thu, 25 Oct 2012 22:30:43 +0000 (22:30 +0000)] 
Make wxFILE_EXISTS_SYMLINK work on its own, without wxFILE_EXISTS_NO_FOLLOW.

Include the wxFILE_EXISTS_NO_FOLLOW bit in wxFILE_EXISTS_SYMLINK definition to
allow using just wxFileName::Exists(wxFILE_EXISTS_SYMLINK) which used to never
work because the link was followed.

Closes #14777.

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

12 years agoInclude wx/xml/xml.h from the XRC handlers that need it.
Vadim Zeitlin [Thu, 25 Oct 2012 22:19:20 +0000 (22:19 +0000)] 
Include wx/xml/xml.h from the XRC handlers that need it.

Including this header from wx/xrc/xmlres.h itself only when WXMAKINGDLL_XRC is
defined doesn't work when we're building a static library and not a shared/DLL
one and we don't have any symbol defined in this case, so just don't try to be
smart and include this header from the files that need it.

This fixes breakage of r72756.

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

12 years agoPCH-less build fix for DynamicLibraryTestCase.
Vadim Zeitlin [Wed, 24 Oct 2012 23:41:04 +0000 (23:41 +0000)] 
PCH-less build fix for DynamicLibraryTestCase.

Include wx/log.h needed by wxLogWarning().

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

12 years agoImplement clipping in wxSVGFileDC.
Vadim Zeitlin [Wed, 24 Oct 2012 23:40:41 +0000 (23:40 +0000)] 
Implement clipping in wxSVGFileDC.

Support setting the clipping region and add update the documentation and the
sample accordingly.

Closes #14462.

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

12 years agoNo real changes, just avoid unnecessary string operations in wxSVGFileDCImpl.
Vadim Zeitlin [Wed, 24 Oct 2012 23:40:17 +0000 (23:40 +0000)] 
No real changes, just avoid unnecessary string operations in wxSVGFileDCImpl.

Simply write string together instead of concatenating them during run-time.

See #14462.

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

12 years agoNo changes, just remove unused variable from wxSVGFileDCImpl.
Vadim Zeitlin [Wed, 24 Oct 2012 23:39:55 +0000 (23:39 +0000)] 
No changes, just remove unused variable from wxSVGFileDCImpl.

sWarn was never used, drop it.

See #14462.

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

12 years agoShow some information about the environment in the unit tests.
Vadim Zeitlin [Wed, 24 Oct 2012 23:14:01 +0000 (23:14 +0000)] 
Show some information about the environment in the unit tests.

For now just show the system description and the locale, this should already
be helpful for diagnosing some test failures.

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

12 years agoTest for the shared library existence in DynamicLibraryTestCase.
Vadim Zeitlin [Wed, 24 Oct 2012 23:13:38 +0000 (23:13 +0000)] 
Test for the shared library existence in DynamicLibraryTestCase.

Trying to understand why does the test fail in some build slaves builds.

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

12 years agoAdd a missing test for wxHAS_CALL_AFTER in the implementation too.
Vadim Zeitlin [Wed, 24 Oct 2012 23:13:16 +0000 (23:13 +0000)] 
Add a missing test for wxHAS_CALL_AFTER in the implementation too.

This completes the changes of r72743.

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

12 years agoTry to avoid accidental use of wxXmlNode in XRC handlers.
Vadim Zeitlin [Wed, 24 Oct 2012 18:34:19 +0000 (18:34 +0000)] 
Try to avoid accidental use of wxXmlNode in XRC handlers.

Now that the handlers can be defined outside of the XRC library, we can't use
wxXmlNode in them because this would create an (unsatisfied) link dependency
on the xml library.

To avoid this happening accidentally, don't include wx/xml/xml.h from the XRC
header, unless building the xrc library itself.

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

12 years agoDisable dropdown menu support in wxRibbonXmlHandler.
Vadim Zeitlin [Wed, 24 Oct 2012 18:33:57 +0000 (18:33 +0000)] 
Disable dropdown menu support in wxRibbonXmlHandler.

The code handling it uses wxXmlNode directly as it's written now which isn't
allowed as it introduces a dependency of ribbon library on the xml one and so
currently breaks linking of the ribbon DLL under MSW.

See #12058.

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

12 years agoDon't call wxSafeYield() from wxGenericListCtrl::EditLabel().
Vadim Zeitlin [Wed, 24 Oct 2012 18:22:39 +0000 (18:22 +0000)] 
Don't call wxSafeYield() from wxGenericListCtrl::EditLabel().

This could result in wxYield() reentrancy and while it could be avoided by
using wxSafeYield(NULL, true /* only if needed */) it seems that we don't
actually need to yield here at all and a simple Update() should be enough.

Closes #14727.

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

12 years agoDon't iterate over files in wxFileSystemWatcherBase.
Vadim Zeitlin [Wed, 24 Oct 2012 18:22:17 +0000 (18:22 +0000)] 
Don't iterate over files in wxFileSystemWatcherBase.

We ignore the files anyhow when recursively adding watches for the entire
tree, so don't include them in the iteration.

See #14543.

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

12 years agoRemove wxAUI dependency on wxXML as it doesn't depend on it.
Vadim Zeitlin [Wed, 24 Oct 2012 18:21:54 +0000 (18:21 +0000)] 
Remove wxAUI dependency on wxXML as it doesn't depend on it.

Don't include wxAUI -> wxXML dependency in the libraries diagram in the
manual.

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

12 years agoRespect wxFileName::DontFollowLink() in wxFileSystemWatcher.
Vadim Zeitlin [Wed, 24 Oct 2012 18:21:31 +0000 (18:21 +0000)] 
Respect wxFileName::DontFollowLink() in wxFileSystemWatcher.

Watch the link itself and not its target if DontFollowLink() had been called.

Closes #14543.

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

12 years agoMake wxDateTime invalid after Set((time_t)-1) call.
Vadim Zeitlin [Wed, 24 Oct 2012 14:02:30 +0000 (14:02 +0000)] 
Make wxDateTime invalid after Set((time_t)-1) call.

Closes #14776.

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

12 years agoClose wxLogWindow automatically if it's the last remaining TLW.
Vadim Zeitlin [Wed, 24 Oct 2012 14:02:08 +0000 (14:02 +0000)] 
Close wxLogWindow automatically if it's the last remaining TLW.

Don't keep the application opened just because a log window is shown.

Closes #14775.

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

12 years agoAdd wxVector::assign().
Vadim Zeitlin [Wed, 24 Oct 2012 14:01:44 +0000 (14:01 +0000)] 
Add wxVector::assign().

Closes #14703.

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

12 years agoUpdated Lativan translation
Julian Smart [Wed, 24 Oct 2012 13:13:19 +0000 (13:13 +0000)] 
Updated Lativan translation

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

12 years agoDon't use std::min(), it's not available everywhere.
Vadim Zeitlin [Wed, 24 Oct 2012 00:25:31 +0000 (00:25 +0000)] 
Don't use std::min(), it's not available everywhere.

Fix compilation using Sun CC under Solaris.

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

12 years agoDon't use Shift-TAB in keyboard test.
Vadim Zeitlin [Wed, 24 Oct 2012 00:25:09 +0000 (00:25 +0000)] 
Don't use Shift-TAB in keyboard test.

This key combination seems to be intercepted by GTK now for keyboard
navigation purposes and we never get key up events for it. Just use a
different key.

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

12 years agoDisable wxEvtHandler::CallAfter() for VC6, it's too broken for it.
Vadim Zeitlin [Wed, 24 Oct 2012 00:17:15 +0000 (00:17 +0000)] 
Disable wxEvtHandler::CallAfter() for VC6, it's too broken for it.

There is no clear way to implement wxRemoveRef() for VC6 so just disable it,
and CallAfter() as it relies on it, for this compiler.

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

12 years agoDon't follow symlinks in wxFileName::Rmdir(wxPATH_RMDIR_RECURSIVE).
Vadim Zeitlin [Tue, 23 Oct 2012 23:58:17 +0000 (23:58 +0000)] 
Don't follow symlinks in wxFileName::Rmdir(wxPATH_RMDIR_RECURSIVE).

Following symlinks, possibly leading outside of the directory being removed,
is at best surprising and at worst dangerous, so don't do it and just mimic
the behaviour of "rm -rf", i.e. remove everything inside this directory,
including the symlinks themselves, but don't follow them.

Closes #14649.

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

12 years agoMention wxFILE_EXISTS_NO_FOLLOW in wxFILE_EXISTS_SYMLINK description.
Vadim Zeitlin [Tue, 23 Oct 2012 23:57:54 +0000 (23:57 +0000)] 
Mention wxFILE_EXISTS_NO_FOLLOW in wxFILE_EXISTS_SYMLINK description.

Using wxFILE_EXISTS_SYMLINK without wxFILE_EXISTS_NO_FOLLOW can only be
fruitless, so mention that they should normally be used together in the
documentation.

An alternative solution would be to always add wxFILE_EXISTS_NO_FOLLOW
automatically if wxFILE_EXISTS_SYMLINK is used, perhaps we should do this
instead.

See #14542.

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

12 years agoAdd wxDIR_NO_FOLLOW flag for wxDir iteration.
Vadim Zeitlin [Tue, 23 Oct 2012 23:57:32 +0000 (23:57 +0000)] 
Add wxDIR_NO_FOLLOW flag for wxDir iteration.

This flag allows to avoid following the symbolic links during the directory
traversal. In particular, this means that links to the directories
(potentially outside the directory being traversed) are not considered as
directories at all when it is used, potentially avoiding surprises.

Closes #14542.

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

12 years agoChange the way directory iteration flags are constructed.
Vadim Zeitlin [Tue, 23 Oct 2012 23:57:07 +0000 (23:57 +0000)] 
Change the way directory iteration flags are constructed.

Instead of explicitly constructing the flags from the flags that should be
included, construct them by excluding the flags that shouldn't be used. This
makes the code more stable in the sense that it will continue to work when new
flags, such as the upcoming wxDIR_NO_FOLLOW, are added.

See #14542.

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

12 years agonon-pch build fix
Paul Cornett [Tue, 23 Oct 2012 17:29:32 +0000 (17:29 +0000)] 
non-pch build fix

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

12 years agoMinor changes to some comments
Paul Cornett [Tue, 23 Oct 2012 17:28:43 +0000 (17:28 +0000)] 
Minor changes to some comments

remove ambiguous "only"
procession --> processing

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

12 years agoFix for PCH-less compilation of wxRibbonXmlHandler.
Vadim Zeitlin [Tue, 23 Oct 2012 14:30:23 +0000 (14:30 +0000)] 
Fix for PCH-less compilation of wxRibbonXmlHandler.

Need to have wxMenu declaration in order to wxDynamicCast() to it.

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

12 years agoGuard gmake-specific syntax with IF_GNU_MAKE in make_dist.mk.
Vadim Zeitlin [Tue, 23 Oct 2012 14:03:53 +0000 (14:03 +0000)] 
Guard gmake-specific syntax with IF_GNU_MAKE in make_dist.mk.

Debian distribution target uses GNU make extensions to make syntax which makes
the entire makefile impossible to use with other make versions, e.g. Solaris
make.

Fix this by prepending IF_GNU_MAKE to all Debian-specific lines, there should
be never any need to use them with non-GNU make.

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

12 years agoAdd support for wxRibbonBar and related controls to XRC.
Vadim Zeitlin [Tue, 23 Oct 2012 13:52:27 +0000 (13:52 +0000)] 
Add support for wxRibbonBar and related controls to XRC.

Add wxRibbonXmlHandler and an example of using it to the xrc sample.

Closes #12058.

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

12 years agoAdd support for wxAuiNotebook to XRC.
Vadim Zeitlin [Tue, 23 Oct 2012 13:51:58 +0000 (13:51 +0000)] 
Add support for wxAuiNotebook to XRC.

Add wxAuiNotebookXmlHandler to "aui" library, now that we can do it without
adding a dependency of it on "xrc" one.

Closes #10889.

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

12 years agoRefactor wxXRC to allow defining handlers outside of xrc library.
Vadim Zeitlin [Tue, 23 Oct 2012 13:51:32 +0000 (13:51 +0000)] 
Refactor wxXRC to allow defining handlers outside of xrc library.

Split wxXmlResourceHandler into an ABC and the real implementation to allow
referencing the ABC in the core library itself but without pulling in all of
the XRC into it. This also allows defining XRC handlers, which only depend on
this ABC and not the xrc library, in other libraries, such as richtext, as
demonstrated by the now enabled wxRichTextXMLHandler.

Closes #10996.

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

12 years agoDefine WXDLLIMPEXP_FWD_RIBBON for consistency with all the other libraries.
Vadim Zeitlin [Tue, 23 Oct 2012 13:51:06 +0000 (13:51 +0000)] 
Define WXDLLIMPEXP_FWD_RIBBON for consistency with all the other libraries.

We defined only WXDLLIMPEXP_RIBBON but not the FWD version, do add it now.

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

12 years agoRecognize more XRC elements as containing translatable strings.
Vadim Zeitlin [Tue, 23 Oct 2012 12:06:40 +0000 (12:06 +0000)] 
Recognize more XRC elements as containing translatable strings.

This allows to translate the text of these elements in wxrc-generated code
using gettext.

Closes #14765.

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

12 years agoAdd a simple unit test for wxRegion::Intersect().
Vadim Zeitlin [Tue, 23 Oct 2012 12:03:09 +0000 (12:03 +0000)] 
Add a simple unit test for wxRegion::Intersect().

Check that Intersect() returns true, yet the intersection is empty.

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

12 years agoProcess pending events from wxYield() in wxGTK.
Vadim Zeitlin [Tue, 23 Oct 2012 12:02:47 +0000 (12:02 +0000)] 
Process pending events from wxYield() in wxGTK.

Calling wxYield() is supposed to process the pending events but it didn't, any
more, in wxGTK. Restore this by explicitly calling ProcessPendingEvents() from
wxGTK wxYield() implementation as wxGUIEventLoop::ProcessIdle() does not call
it, in spite of a comment to the contrary in the sources.

Closes #14760.

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

12 years agoAdd wxEvtHandler::CallAfter() for asynchronous method calls.
Vadim Zeitlin [Tue, 23 Oct 2012 12:02:24 +0000 (12:02 +0000)] 
Add wxEvtHandler::CallAfter() for asynchronous method calls.

Add wxAsyncMethodCallEvent that is handled simply by calling the method this
event was created for and add default handler for this event to wxEvtHandler.

Implement CallAfter() overloads for up to 2 parameters only for now.

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

12 years agoAdd wx/meta/removeref.h header defining wxRemoveRef<> helper.
Vadim Zeitlin [Tue, 23 Oct 2012 12:02:00 +0000 (12:02 +0000)] 
Add wx/meta/removeref.h header defining wxRemoveRef<> helper.

This is a very simple template allowing to remove the reference from the given
type, similar to std::remove_reference<>.

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

12 years agoFix border size computation in wxAuiTabArt.
Vadim Zeitlin [Mon, 22 Oct 2012 21:46:46 +0000 (21:46 +0000)] 
Fix border size computation in wxAuiTabArt.

Space was reserved for the borders even when it wasn't filled, resulting in
visual artefacts. Fix this by virtualizing the function returning the
additional space needed for the borders and only overriding it to return non
zero in wxAuiGtkTabArt.

Closes #14710.

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

12 years agoSet C++ global locale too in wxAppTraitsBase::SetLocale().
Vadim Zeitlin [Mon, 22 Oct 2012 15:51:49 +0000 (15:51 +0000)] 
Set C++ global locale too in wxAppTraitsBase::SetLocale().

Ensure that C++ locale matches the C one, otherwise operations on C++ streams
may get much slower because some implementations (notable MinGW-64) change and
reset the C locale on every function call in this case.

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

12 years agoRevert accidental incompatible change to wxFileName::DirExists().
Vadim Zeitlin [Mon, 22 Oct 2012 15:51:26 +0000 (15:51 +0000)] 
Revert accidental incompatible change to wxFileName::DirExists().

The non-static version tests for the existence of the directory part of the
object only as is explicitly mentioned in the documentation, so do the test on
GetPath() and not GetFullPath() as we did since r72707.

Also add a unit test for this behaviour.

Closes #14771.

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

12 years agoEnsure the correct cleanup order for GDI+-related modules in wxMSW.
Vadim Zeitlin [Mon, 22 Oct 2012 11:21:02 +0000 (11:21 +0000)] 
Ensure the correct cleanup order for GDI+-related modules in wxMSW.

GDI+ DLL could be unloaded by wxGdiPlusModule before wxGDIPlusRendererModule::
OnExit() was called, resulting in a crash when trying to call a GDI+ function
from the latter.

Fix this by adding a correct dependency between the modules.

Closes #14769.

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

12 years agoRemove unnecessary SetInitialSize() from wxGTK wxComboBox::Create().
Vadim Zeitlin [Sun, 21 Oct 2012 20:48:54 +0000 (20:48 +0000)] 
Remove unnecessary SetInitialSize() from wxGTK wxComboBox::Create().

SetInitialSize() is already done by PostCreation() called just above, no need
to call it twice.

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

12 years agoExplicitly unregister custom wxWebViewIE namespaces when we are done with them. Also...
Steve Lamerton [Sun, 21 Oct 2012 20:33:48 +0000 (20:33 +0000)] 
Explicitly unregister custom wxWebViewIE namespaces when we are done with them. Also add a missing ClassFactory::AddRef.

Closes #14749

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

12 years agoCheck the return value of system() and pipe() in the test suite.
Vadim Zeitlin [Sat, 20 Oct 2012 14:49:13 +0000 (14:49 +0000)] 
Check the return value of system() and pipe() in the test suite.

This is mainly to avoid -Wunused-result warnings under recent Linux systems
but also could give valuable information if the call does fail.

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

12 years agoFix tests compilation in STL build after r72707.
Vadim Zeitlin [Sat, 20 Oct 2012 14:48:50 +0000 (14:48 +0000)] 
Fix tests compilation in STL build after r72707.

Add an explicit call to wxString::c_str() as there is no implicit conversion
in STL build.

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

12 years agoNepali translation update from Him Prasad Gautam.
Vadim Zeitlin [Sat, 20 Oct 2012 12:04:51 +0000 (12:04 +0000)] 
Nepali translation update from Him Prasad Gautam.

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

12 years agoUpdate header control when wxPropertyGridManager is resized.
Vadim Zeitlin [Fri, 19 Oct 2012 22:03:47 +0000 (22:03 +0000)] 
Update header control when wxPropertyGridManager is resized.

Closes #14762.

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

12 years agoAllow specifying all wxFlexGridSizer parameters in XRC.
Vadim Zeitlin [Fri, 19 Oct 2012 22:03:25 +0000 (22:03 +0000)] 
Allow specifying all wxFlexGridSizer parameters in XRC.

Add support for specifying flexible direction, grow mode in non-flexible
direction and row/column proportions for the growable ones.

Closes #14767.

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

12 years agoAdd more error checks to XRC handler for longs, doubles and fonts.
Vadim Zeitlin [Fri, 19 Oct 2012 22:03:01 +0000 (22:03 +0000)] 
Add more error checks to XRC handler for longs, doubles and fonts.

Verify that the values in the XRC really conform to the expected type.

Closes #14766.

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