]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoAdd wxPoint::IsFullySpecified() and SetDefaults().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:51 +0000 (16:03 +0000)] 
Add wxPoint::IsFullySpecified() and SetDefaults().

These methods do the same thing as wxSize methods with the same names and are
useful for the same reasons.

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

14 years agoFix handling of help buttons with non-empty label under OS X.
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:46 +0000 (16:03 +0000)] 
Fix handling of help buttons with non-empty label under OS X.

Creating a button with wxID_HELP and a non-empty label used to always show
this label, even if it was just a standard "Help" or "&Help". This didn't work
at all as the help buttons under OS X are too small to show any label.

To fix this, use normal buttons, not help ones, if a really custom label is
used to ensure that it can be seen. And to still use the correct help buttons
in as many cases as possible, ignore the standard "Help" label and its
variants and don't show it at all.

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

14 years agoUse correct format specifiers in wxString::Printf().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:04 +0000 (16:03 +0000)] 
Use correct format specifiers in wxString::Printf().

Using %d with size_t argument resulted in asserts, fix it.

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

14 years agoFix line indices translation in wxGrid::DoEndDragResizeLine().
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:04 +0000 (22:39 +0000)] 
Fix line indices translation in wxGrid::DoEndDragResizeLine().

We used the translation in wrong direction, i.e. interpreted x coordinates as
rows and y coordinates as columns. This could result in passing invalid cell
indices to GetCellSize() and was generally completely wrong.

Closes #12311.

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

14 years agoWIP
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:00 +0000 (22:39 +0000)] 
WIP

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

14 years agoDon't set Unicode key code in key events to non-Unicode values in wxGTK.
Vadim Zeitlin [Tue, 10 Aug 2010 22:38:54 +0000 (22:38 +0000)] 
Don't set Unicode key code in key events to non-Unicode values in wxGTK.

Only assign the wx key code wxKeyEvent::m_uniChar if it's a key corresponding
to an ASCII symbol, don't do it for the values outside of ASCII range such as
all the special WXK_ constants. It doesn't make sense to generate Unicode key
codes for e.g. cursor key presses.

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

14 years agoUse wxPanel as controls parent in wrapsizer sample.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:22 +0000 (21:48 +0000)] 
Use wxPanel as controls parent in wrapsizer sample.

Follow our own advice about never creating controls directly on the frame and
using an intermediate wxPanel in our own sample. This is better style and
makes it look better under Windows.

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

14 years agoInherit notebook background recursively under wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:17 +0000 (21:48 +0000)] 
Inherit notebook background recursively under wxMSW.

With MSWSetTransparentBackground() hack only the panel which was the immediate
child of wxNotebook (i.e. its page) inherited the notebook background but not
its children. This resulted in jarring background discontinuities when nested
panels were used.

Fix this by inheriting notebook background in all child panels by testing for
the return value of the parents MSWHasInheritableBackground() method in
wxPanel::HasTransparentBackground() recursively.

Closes #12317.

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

14 years agoFix wxBitmapButton initial best size determination in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:06 +0000 (18:58 +0000)] 
Fix wxBitmapButton initial best size determination in wxMSW.

This was broken during wxButton/wxBitmapButton merge and wxBitmapButton was
not created with the correct initial size if the default size was specified
when creating it any longer. Fix this by calling SetInitialSize() once again
after setting the bitmap.

See #12323.

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

14 years agoKeep the button bitmap centered if the button has no label in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:02 +0000 (18:58 +0000)] 
Keep the button bitmap centered if the button has no label in wxMSW.

We should only honour the bitmap alignment if the button shows both the bitmap
and the label. If only the bitmap is shown (e.g. when wxBitmapButton is used),
it should always be centered as it used to be done in 2.8.

Closes #12323.

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

14 years agoRemove obsolete and out of date Xcode project file.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:56 +0000 (18:57 +0000)] 
Remove obsolete and out of date Xcode project file.

The project files under build/osx should now be used, this Xcode project file
was out of date and couldn't be updated automatically.

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

14 years agoRevert MSW window classes uniquification patch.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:51 +0000 (18:57 +0000)] 
Revert MSW window classes uniquification patch.

Making the class names unique doesn't seem to be necessary so revert the patch
which appended unique pointer value to their names (r57030).

See #9031.

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

14 years agoDon't use bitmap still selected in wxMemoryDC in image sample.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:47 +0000 (18:57 +0000)] 
Don't use bitmap still selected in wxMemoryDC in image sample.

The bitmap must be deselected from wxMemoryDC before being used in any other
way but the sample didn't do this. Fix this by simply destroying the DC as
soon as we don't need it, this makes bitmap available for other use as well.

Closes #12310.

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

14 years agoUse window position in screen coordinates in wxDisplay::GetFromWindow().
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:42 +0000 (18:57 +0000)] 
Use window position in screen coordinates in wxDisplay::GetFromWindow().

To determine the display to which the window belongs we must use the window
position in screen coordinates returned by wxWindow::GetScreenRect() and not
the positioned returned by GetRect() which is the same only for the top level
windows but not for the child ones.

Closes #12318.

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

14 years agoCorrect documentation of majorDimension in wxRadioBox ctor.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:36 +0000 (18:57 +0000)] 
Correct documentation of majorDimension in wxRadioBox ctor.

The default value of this parameter is 0, not 1. Also add the explanation of
what using 0 actually means.

Closes #12325.

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

14 years agoRemove obsolete stc makefile.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:31 +0000 (18:57 +0000)] 
Remove obsolete stc makefile.

This makefile is not used any more since stc was integrated into wx core.

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

14 years agoAdd wxDataViewCtrl::{Set,Get}CurrentItem().
Vadim Zeitlin [Tue, 10 Aug 2010 12:53:03 +0000 (12:53 +0000)] 
Add wxDataViewCtrl::{Set,Get}CurrentItem().

Current item is the same as the selected item in single selection mode but in
multiple selection mode there was no way to neither get this item nor change
it before so add the new functions to allow doing this now.

The new methods are implemented for the generic, GTK and OS X/Cocoa versions
but only stubs are provided for OS X/Carbon.

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

14 years agoDon't lose selection in wxDataViewCtrl::Select() under Mac.
Vadim Zeitlin [Mon, 9 Aug 2010 21:17:51 +0000 (21:17 +0000)] 
Don't lose selection in wxDataViewCtrl::Select() under Mac.

Calling Select() for an item should not deselect the other selected items in
multiple selection mode. This is consistent with the GTK and generic versions
behaviour and also just makes more sense but also document that this is indeed
the desired behaviour just in case.

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

14 years agoMoved wxPGProperty::SetFlag() to protected API since it does not have any side-effect...
Jaakko Salli [Sun, 8 Aug 2010 12:22:08 +0000 (12:22 +0000)] 
Moved wxPGProperty::SetFlag() to protected API since it does not have any side-effects that are usually desired in the user code. Added wxPGProperty::SetAutoUnspecified() since wxPG_PROP_AUTO_UNSPECIFIED can no longer be set (conveniently) with SetFlag().

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

14 years agoRemoved spurious semicolon that prevented compilation
Jaakko Salli [Sun, 8 Aug 2010 11:59:34 +0000 (11:59 +0000)] 
Removed spurious semicolon that prevented compilation

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

14 years agoAdded wxPGProperty::Enable() for conveniency. Refactored related code and improved...
Jaakko Salli [Sun, 8 Aug 2010 11:41:20 +0000 (11:41 +0000)] 
Added wxPGProperty::Enable() for conveniency. Refactored related code and improved related documentation.

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

14 years agoAdd name argument to wxDataViewCtrl ctor for consistency.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:57 +0000 (11:37 +0000)] 
Add name argument to wxDataViewCtrl ctor for consistency.

As all the other wxWidgets controls take the parameter in their ctor/Create()
it's unexpected that wxDataViewCtrl does not. Add the name parameter and pass
it to wxWindowBase::CreateBase() as usual.

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

14 years agoDon't export wxDataViewCtrlInternal unnecessarily.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:50 +0000 (11:37 +0000)] 
Don't export wxDataViewCtrlInternal unnecessarily.

wxDataViewCtrlInternal is a private class used only inside wxWidgets itself
and doesn't need to be exported from the shared library, so remove the
unnecessary WXDLLIMPEXP_ADV from its declaration.

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

14 years agoFix dataview sample compilation with wxUSE_DRAG_AND_DROP==0.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:46 +0000 (11:37 +0000)] 
Fix dataview sample compilation with wxUSE_DRAG_AND_DROP==0.

This allows to build it under wxX11. Unfortunately it still doesn't work at
all there.

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

14 years agoUse helper class instead of manually calling gtk_tree_path_free().
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:41 +0000 (11:37 +0000)] 
Use helper class instead of manually calling gtk_tree_path_free().

No real changes, just simplify the code and make it more obviously correct by
ensuring that all temporary tree paths are always destroyed because they are
assigned to a wxGtkTreePath object which does it in its dtor instead of
calling gtk_tree_path_free() manually every time.

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

14 years agoAdd wxDataViewCtrl::GTKPathToItem() function and use it.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:37 +0000 (11:37 +0000)] 
Add wxDataViewCtrl::GTKPathToItem() function and use it.

No real changes, just refactor the code to use a function mapping GtkTreeIter
to our wxDataViewItem and use it instead of duplicating its code everywhere.

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

14 years agoInclude wx/defs.h before testing for wxUSE_CHECKLISTBOX.
Vadim Zeitlin [Sun, 8 Aug 2010 11:35:55 +0000 (11:35 +0000)] 
Include wx/defs.h before testing for wxUSE_CHECKLISTBOX.

We need to include wx/defs.h that (indirectly) defines wxUSE_CHECKLISTBOX
before testing for it in wx/checklst.h, otherwise the test may fail if the
latter header is the first wx header included by the user code.

Closes #12306.

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

14 years agoCorrect a print format specifier mismatch in wxFileConfig::Parse().
Vadim Zeitlin [Sun, 8 Aug 2010 11:35:49 +0000 (11:35 +0000)] 
Correct a print format specifier mismatch in wxFileConfig::Parse().

Pass an int and not a size_t to a %d.

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

14 years agoAdded the documentation for wxMemoryBuffer::AppendData(), it was lost in the Doxygen...
Bryan Petty [Fri, 6 Aug 2010 20:14:39 +0000 (20:14 +0000)] 
Added the documentation for wxMemoryBuffer::AppendData(), it was lost in the Doxygen conversion.

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

14 years agoFix DnD in generic wxDataViewCtrl when scrolled.
Václav Slavík [Fri, 6 Aug 2010 16:28:46 +0000 (16:28 +0000)] 
Fix DnD in generic wxDataViewCtrl when scrolled.

wxDataViewMainWindow drag and drop code incorrectly used Y coordinate
where X axis should be used to check whether the mouse is inside columns
area. This manifested itself as refusing to accept drops once the
control was sufficiently scrolled down.

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

14 years agoFix attributes escaping when writing XML.
Václav Slavík [Wed, 4 Aug 2010 14:57:30 +0000 (14:57 +0000)] 
Fix attributes escaping when writing XML.

wxXmlDocument didn't correctly escape some characters that the spec says
must be escaped. Behaves correctly now.

Fixes #12275.

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

14 years agoDon't reset bullet number and outline number when applying style sheet.
Julian Smart [Tue, 3 Aug 2010 17:15:33 +0000 (17:15 +0000)] 
Don't reset bullet number and outline number when applying style sheet.

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

14 years agoFix MSVC warning about int->bool conversion.
Václav Slavík [Tue, 3 Aug 2010 12:59:30 +0000 (12:59 +0000)] 
Fix MSVC warning about int->bool conversion.

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

14 years agoFix Tab navigation when focused control is disabled.
Václav Slavík [Sun, 1 Aug 2010 10:11:53 +0000 (10:11 +0000)] 
Fix Tab navigation when focused control is disabled.

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

14 years agoFix wxDataViewCtrl to omit expander space for all kinds of lists.
Václav Slavík [Thu, 29 Jul 2010 20:54:00 +0000 (20:54 +0000)] 
Fix wxDataViewCtrl to omit expander space for all kinds of lists.

List-only models don't have expanders and so the control shouldn't
reserve any space for them; the notion of expander column doesn't make
sense here.

Previously, this was done correctly only for wxDataViewVirtualListModel;
"ordinary" list models, such as the one used by wxDataViewListCtrl, were
treated as generic tree models and 0th column had ugly empty space
reserved for (never used) expander.

This patch fixes it by adding IsListModel() helper function in
addition to existing IsVirtualListModel(). Some of the
IsVirtualListModel() tests were changed into IsListModel() checks as
appropriate.

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

14 years agoAdd ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK...
Robert Roebling [Thu, 29 Jul 2010 16:57:09 +0000 (16:57 +0000)] 
Add ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK does not support wx.CONTROL_UNDETERMINED for checkboxes

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

14 years agoFix gcc warning in wxDataViewListCtrl::ItemToRow().
Václav Slavík [Thu, 29 Jul 2010 15:30:11 +0000 (15:30 +0000)] 
Fix gcc warning in wxDataViewListCtrl::ItemToRow().

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

14 years agoFix wxOSX wxTextCtrl refactoring of r65129.
Vadim Zeitlin [Wed, 28 Jul 2010 18:22:26 +0000 (18:22 +0000)] 
Fix wxOSX wxTextCtrl refactoring of r65129.

Add the Init() calls in wxNSTextFieldControl ctors forgotten the last time.

Closes #12284.

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

14 years agoAllow non-modal windows shown from modal dialogs to work in wxOSX.
Vadim Zeitlin [Wed, 28 Jul 2010 18:22:20 +0000 (18:22 +0000)] 
Allow non-modal windows shown from modal dialogs to work in wxOSX.

Use kCGUtilityWindowLevel for such windows instead of kCGFloatingWindowLevel
and also call setWorksWhenModal:YES.

Closes #12187.

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

14 years agoAdd association between wxOSX wxTextWidgetImpl and wxTextEntry.
Vadim Zeitlin [Wed, 28 Jul 2010 11:27:01 +0000 (11:27 +0000)] 
Add association between wxOSX wxTextWidgetImpl and wxTextEntry.

This allows to always find the correct wxTextEntry to use in the
implementation of text-related widgets without using any casts. Notably, the
wrong up-cast of wxWindow to wxTextCtrl in wxNSTextFieldControl::controlAction()
which resulted in a crash when the window was actually a wxComboBox can now be
fixed.

Closes #12284.

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

14 years agoCorrect the check for MRU menu items range.
Vadim Zeitlin [Wed, 28 Jul 2010 11:26:49 +0000 (11:26 +0000)] 
Correct the check for MRU menu items range.

The last id of the range if offset by the first one by the number of items in
the menu, not the base id of the file history menu.

Closes #12141.

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

14 years agoCorrect id in the wxRichTextCtrl::OnUndo() documentation.
Vadim Zeitlin [Wed, 28 Jul 2010 11:26:41 +0000 (11:26 +0000)] 
Correct id in the wxRichTextCtrl::OnUndo() documentation.

wxID_PASTE was wrongly used instead of wxID_UNDO.

Closes #12278.

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

14 years agoReturn after activating already opened document in wxDocManager.
Vadim Zeitlin [Wed, 28 Jul 2010 11:26:33 +0000 (11:26 +0000)] 
Return after activating already opened document in wxDocManager.

Add accidentally omitted "return" in wxDocManager::CreateDocument() to prevent
recreating already opened documents.

Closes #12277.

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

14 years agoFix harmless float to int conversion warnings in wxOSX build.
Vadim Zeitlin [Wed, 28 Jul 2010 11:26:26 +0000 (11:26 +0000)] 
Fix harmless float to int conversion warnings in wxOSX build.

Add casts to truncate the values as the code intended anyhow.

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

14 years agoCorrect format specifiers used to show wxIPV4address.
Vadim Zeitlin [Wed, 28 Jul 2010 11:26:14 +0000 (11:26 +0000)] 
Correct format specifiers used to show wxIPV4address.

wxIPV4address::IPAddress() used %lu to show each of (byte-sized) IPv4 address
components for some reason, which resulted in asserts about format specifier
mismatch. Fix this by just using %u.

Closes #12272.

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

14 years agoAdd index-based selection functions to wxDataViewListCtrl.
Václav Slavík [Tue, 27 Jul 2010 21:45:50 +0000 (21:45 +0000)] 
Add index-based selection functions to wxDataViewListCtrl.

These are convenience functions for work working with indexes, for
consistency with other wxDataViewListCtrl methods.

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

14 years agoAdd item<->row mapping helpers to wxDataViewListCtrl.
Václav Slavík [Tue, 27 Jul 2010 21:45:45 +0000 (21:45 +0000)] 
Add item<->row mapping helpers to wxDataViewListCtrl.

These are commonly needed when using wxDataViewListCtrl, yet they were
only available in wxDataViewIndexListModel.

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

14 years agoCreated the model in wxDataViewListCtrl::Create().
Václav Slavík [Tue, 27 Jul 2010 21:45:37 +0000 (21:45 +0000)] 
Created the model in wxDataViewListCtrl::Create().

It was totally unexpected that construction through the ctor behaved
differently from Create(). Also, the behavior now actually matches
documentation.

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

14 years agoAllow empty message in wxRearrangeDialog.
Václav Slavík [Tue, 27 Jul 2010 21:45:29 +0000 (21:45 +0000)] 
Allow empty message in wxRearrangeDialog.

If the message is empty, don't reserve space for it at the top; instead,
just make the dialog a bit smaller.

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

14 years agoLet wxMSW report wxDataViewCustomRenderer::LeftClick() report the click position...
Robert Roebling [Tue, 27 Jul 2010 17:04:44 +0000 (17:04 +0000)] 
Let wxMSW report wxDataViewCustomRenderer::LeftClick() report the click position relative to the inner cell, not the window - as in wxGTK, fixes #12270: wxDataViewCustomRenderer::LeftClick behaves differently under wxGTK and
wxMSW

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

14 years agomention wxSystemSettings::GetColour() in wxWindow::SetBackgroundColour() docs
Francesco Montorsi [Tue, 27 Jul 2010 09:21:22 +0000 (09:21 +0000)] 
mention wxSystemSettings::GetColour() in wxWindow::SetBackgroundColour() docs

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

14 years agoadd a spacer in case the progress dialog is built without labels (elapsed/estimated...
Francesco Montorsi [Mon, 26 Jul 2010 10:28:36 +0000 (10:28 +0000)] 
add a spacer in case the progress dialog is built without labels (elapsed/estimated/remaining) time nor buttons

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

14 years agoNo changes, just use traditional English name for Mozart's work.
Vadim Zeitlin [Mon, 26 Jul 2010 10:08:19 +0000 (10:08 +0000)] 
No changes, just use traditional English name for Mozart's work.

In English, this work (K. 525) is always referred to with its indefinite
article included and its appearance without it is jarring.

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

14 years agoMinor correction to smart pointer docs
Robert Roebling [Sun, 25 Jul 2010 19:45:24 +0000 (19:45 +0000)] 
Minor correction to smart pointer docs

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

14 years agoTried to make wxDataViewModel docs clearer
Robert Roebling [Sun, 25 Jul 2010 19:27:07 +0000 (19:27 +0000)] 
Tried to make wxDataViewModel docs clearer

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

14 years agoOnly define WXUSINGDLL in multilib builds for wxscintilla.lib.
Vadim Zeitlin [Sun, 25 Jul 2010 18:39:22 +0000 (18:39 +0000)] 
Only define WXUSINGDLL in multilib builds for wxscintilla.lib.

In monolithic builds wxscintilla is linked directly into the one and only wx
DLL and doesn't need to import anything from it, WXUSINGDLL is only needed in
multilib case when wxscintilla is part of wxCore DLL and does need to import
symbols (e.g. wxQsort() used by wxVector) from wxBase one.

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

14 years agoNo real changes, just rearrange wxCursor::InitFromImage() in wxGTK.
Vadim Zeitlin [Sun, 25 Jul 2010 18:39:16 +0000 (18:39 +0000)] 
No real changes, just rearrange wxCursor::InitFromImage() in wxGTK.

Make it more clear that the function deals with two cases by using if/else
instead of if+return.

Also use smart wxGtkObject pointer instead of calling g_object_unref()
manually.

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

14 years agoCorrect creation of the mask for wxImage cursors in wxGTK.
Vadim Zeitlin [Sun, 25 Jul 2010 18:39:10 +0000 (18:39 +0000)] 
Correct creation of the mask for wxImage cursors in wxGTK.

The code created the monochrome bitmap used by wxCursor(wxImage) ctor
incorrectly resulting in bad cursor appearance. Use the right values for
foreground and background pixels (which are inversed compared to naive
expectations) to fix this.

Closes #11989.

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

14 years agomake POSIX and Windows implementation of wxThread::Run() coherently assert when tryin...
Francesco Montorsi [Sun, 25 Jul 2010 13:55:36 +0000 (13:55 +0000)] 
make POSIX and Windows implementation of wxThread::Run() coherently assert when trying to Run() a thread twice; add a test for it.

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

14 years agoFix VC++ compile error
Julian Smart [Sun, 25 Jul 2010 13:34:16 +0000 (13:34 +0000)] 
Fix VC++ compile error

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

14 years agofix double documentation for the same wxLogTrace() functions
Francesco Montorsi [Sun, 25 Jul 2010 13:23:30 +0000 (13:23 +0000)] 
fix double documentation for the same wxLogTrace() functions

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

14 years agorefactor wxLog documentation moving verbose parts to the wxLog overview and grouping...
Francesco Montorsi [Sun, 25 Jul 2010 11:53:54 +0000 (11:53 +0000)] 
refactor wxLog documentation moving verbose parts to the wxLog overview and grouping similar wxLog functions together

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

14 years agoBuild fix: don't test for __WXMSW__ using #if in wx/defs.h.
Vadim Zeitlin [Sun, 25 Jul 2010 11:42:43 +0000 (11:42 +0000)] 
Build fix: don't test for __WXMSW__ using #if in wx/defs.h.

__WXMSW__ should be tested using #ifdef but in fact there doesn't seem to be
any need to test for it at all here as __CYGWIN__ implies __WXMSW__ anyhow.

Closes #12266.

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

14 years agodo not add files in wxDebugReport::AddFile if copy failed
Francesco Montorsi [Sun, 25 Jul 2010 11:26:04 +0000 (11:26 +0000)] 
do not add files in wxDebugReport::AddFile if copy failed

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

14 years agosmall doxygen warning fixes
Francesco Montorsi [Sun, 25 Jul 2010 11:24:38 +0000 (11:24 +0000)] 
small doxygen warning fixes

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

14 years agopreserve doxygen 1.6.x look also with doxygen 1.7.x: it produces more readable naviga...
Francesco Montorsi [Sun, 25 Jul 2010 11:05:43 +0000 (11:05 +0000)] 
preserve doxygen 1.6.x look also with doxygen 1.7.x: it produces more readable navigation tabs

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

14 years agoRefactored validation of numeric properties (wxIntProperty, wxUIntProperty and wxFloa...
Jaakko Salli [Sun, 25 Jul 2010 10:36:19 +0000 (10:36 +0000)] 
Refactored validation of numeric properties (wxIntProperty, wxUIntProperty and wxFloatProperty). They now use (basically) a single template function instead of three separate ones.

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

14 years agowxGraphics* classes are all ref-counted
Francesco Montorsi [Sun, 25 Jul 2010 09:54:44 +0000 (09:54 +0000)] 
wxGraphics* classes are all ref-counted

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

14 years agoadd tables of events related to wxAuiManagerEvent
Francesco Montorsi [Sun, 25 Jul 2010 09:54:18 +0000 (09:54 +0000)] 
add tables of events related to wxAuiManagerEvent

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

14 years agono real change: just follow wx typical commenting style and separe // from the follow...
Francesco Montorsi [Sun, 25 Jul 2010 09:52:13 +0000 (09:52 +0000)] 
no real change: just follow wx typical commenting style and separe // from the following characters with a space

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

14 years agoAdded wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant...
Jaakko Salli [Sun, 25 Jul 2010 09:30:50 +0000 (09:30 +0000)] 
Added wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant can be converted to native 64-bit integer types on the same terms as it is converted to other numeric types (useful in e.g. template functions)

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

14 years agoSet 'Min' attribute for the sample wxFloatProperty
Jaakko Salli [Sun, 25 Jul 2010 09:23:25 +0000 (09:23 +0000)] 
Set 'Min' attribute for the sample wxFloatProperty

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

14 years agoUse default wxPropertyGrid validation failure behavior in the sample
Jaakko Salli [Sun, 25 Jul 2010 09:19:52 +0000 (09:19 +0000)] 
Use default wxPropertyGrid validation failure behavior in the sample

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

14 years agoMake SetFont() public (fixes #9641)
Jaakko Salli [Sun, 25 Jul 2010 07:39:17 +0000 (07:39 +0000)] 
Make SetFont() public (fixes #9641)

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

14 years agoOnly define WXUSINGDLL in DLL configurations when building wxscintilla.
Vadim Zeitlin [Sun, 25 Jul 2010 00:19:06 +0000 (00:19 +0000)] 
Only define WXUSINGDLL in DLL configurations when building wxscintilla.

WXUSINGDLL shouldn't be defined in static build configurations, this results
in warnings and might explain errors in MinGW build.

Closes #11966.

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

14 years agoNo real changes in makefile but avoid repetitious in bakefile.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:57 +0000 (00:18 +0000)] 
No real changes in makefile but avoid repetitious in bakefile.

Collect all preprocessor options needed for Scintilla compilation in
wxscintilla_cppflags template and use for both Scintilla compilation itself
and for the wx libraries using it.

The order of flags in the makefiles has changed but they are still the same
except for Borland makefile which now includes Borland-specific warning
suppression option everywhere it's needed and not just in multilib targets.

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

14 years agoNo changes, just remove hard TABs and fix a typo.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:51 +0000 (00:18 +0000)] 
No changes, just remove hard TABs and fix a typo.

Separate trivial changes from subsequent commits.

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

14 years agoUpdate the version tech note to remind to rebake.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:46 +0000 (00:18 +0000)] 
Update the version tech note to remind to rebake.

Insist on the fact that version.bkl (which is not updated by the script) must
be updated and makefiles rebaked after any version change.

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

14 years agoUpgrade version in the bakefiles to 2.9.2 as well and rebake.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:34 +0000 (00:18 +0000)] 
Upgrade version in the bakefiles to 2.9.2 as well and rebake.

Rebake makefiles to update the name used for the shared libraries to reflect
the new version.

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

14 years agoRemove asserts in wxMSW::wxTLW::SetIcons() and always set some icon.
Vadim Zeitlin [Sat, 24 Jul 2010 17:43:47 +0000 (17:43 +0000)] 
Remove asserts in wxMSW::wxTLW::SetIcons() and always set some icon.

In practice having the icons of the exact size for all versions of Windows is
not always possible, there are just too many of them. So set the icon of the
most suitable size if no exact match is found instead of asserting in this
case.

See #11146.

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

14 years agoFix buildbot build 'Linux i386 wxGTK stable STL' building wrong branch.
Michael Wetherell [Sat, 24 Jul 2010 15:32:57 +0000 (15:32 +0000)] 
Fix buildbot build 'Linux i386 wxGTK stable STL' building wrong branch.

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

14 years agoMake calls wxDataViewModel::ItemDeleted() etc. non-virtual as they are not supposed...
Robert Roebling [Sat, 24 Jul 2010 15:30:03 +0000 (15:30 +0000)] 
Make calls wxDataViewModel::ItemDeleted() etc. non-virtual as they are not supposed to be overridden

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

14 years agoDon't show empty sizers.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:34 +0000 (12:27 +0000)] 
Don't show empty sizers.

Revert the change of r44514 and do hide the empty sizers. Code relying on them
being shown/positioned should use wxRESERVE_SPACE_EVEN_IF_HIDDEN flag but
assuming it by default results in completely unexpected layouts, e.g. still
using margins around a sizer with hidden window if it contains an empty
sub-sizer.

Closes #11426.

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

14 years agoPostpone showing the notebook pages under wxOSX/Cocoa.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:29 +0000 (12:27 +0000)] 
Postpone showing the notebook pages under wxOSX/Cocoa.

Showing the selected notebook page immediately when it's selected can result
in the top level parent of the notebook being shown prematurely, so don't do
this until the notebook itself is shown.

Closes #12227.

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

14 years agoAdd EVT_RIBBONGALLERY_CLICKED event.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:25 +0000 (12:27 +0000)] 
Add EVT_RIBBONGALLERY_CLICKED event.

This event is sent whenever an item is clicked, even if it's already selected,
unlike the existing EVT_RIBBONGALLERY_SELECTED.

Closes #12128.

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

14 years agoRemove hard limit on number of pages in wxHtmlPrintout.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:18 +0000 (12:27 +0000)] 
Remove hard limit on number of pages in wxHtmlPrintout.

This seems to be a leftover from an old version in which the page breaks
positions were stored in a fixed size array. As the code uses a dynamic array
now there doesn't seem to be any reason to impose any limit on the number of
pages and some people did run into the old 999 pages limitation apparently.

Closes #11159.

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

14 years agoRemove selection showing code from the grid sample.
Vadim Zeitlin [Sat, 24 Jul 2010 11:56:11 +0000 (11:56 +0000)] 
Remove selection showing code from the grid sample.

This code is broken as it doesn't always show the selection correctly and
doesn't handle rows-or-columns selection mode at all. Until we can fix it
properly it's better to not have it at all so that at least people avoid
copying the wrong code into their own programs.

Closes #12195.

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

14 years agoDocument wxGridSelectRowsOrColumns selection mode.
Vadim Zeitlin [Sat, 24 Jul 2010 11:56:06 +0000 (11:56 +0000)] 
Document wxGridSelectRowsOrColumns selection mode.

See #12195.

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

14 years agoAdd test for a custom cursor to the image sample.
Vadim Zeitlin [Sat, 24 Jul 2010 11:49:05 +0000 (11:49 +0000)] 
Add test for a custom cursor to the image sample.

Load a cursor from PNG file to check that it appears as expected.

See #11989.

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

14 years agoFix AUI compilation without PCH after recent changes.
Vadim Zeitlin [Sat, 24 Jul 2010 11:23:17 +0000 (11:23 +0000)] 
Fix AUI compilation without PCH after recent changes.

r65061 broke PCH-less compilation as it used wxClientDC without (forward)
declaring it. Fix this and also correct wxAuiPaneInfo forward declaration.

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

14 years agoUpdate BUILD and DEBUG_{FLAG,INFO} documentation for wxMSW.
Vadim Zeitlin [Fri, 23 Jul 2010 23:44:05 +0000 (23:44 +0000)] 
Update BUILD and DEBUG_{FLAG,INFO} documentation for wxMSW.

The documentation was completely out of date and hence very misleading.

Closes #12244.

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

14 years agoRemove mentions of wxUSE_ODBC from documentation.
Vadim Zeitlin [Fri, 23 Jul 2010 23:44:00 +0000 (23:44 +0000)] 
Remove mentions of wxUSE_ODBC from documentation.

This option doesn't exist any more in 2.9.

See #12244.

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

14 years agoImplement wxAuiDefaultTabArt::Clone() using its copy ctor.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:51 +0000 (23:33 +0000)] 
Implement wxAuiDefaultTabArt::Clone() using its copy ctor.

Compiler-generated copy ctor works just fine for this class, there is really
no reason to reimplement it, especially wrongly (as it loses many and even
most of the fields), in Clone().

Closes #11388.

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

14 years agoEnsure that wxAuiNotebook::SetArtProvider() always does set it.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:46 +0000 (23:33 +0000)] 
Ensure that wxAuiNotebook::SetArtProvider() always does set it.

It used to only set the provider if the height of the tabs defined by the new
provider was different from the one used by the old one, otherwise the call
was optimized away. Fix this by explicitly setting the art provider for all
tabs in SetArtProvider() itself if UpdateTabCtrlHeight() didn't do it.

Closes #9738.

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

14 years agoFix waiting for IO on UDP sockets.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:40 +0000 (23:33 +0000)] 
Fix waiting for IO on UDP sockets.

We mistakenly considered them closed because they were not connected but UDP
sockets don't have to be -- unlike TCP ones.

Closes #11384.

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

14 years agoFix MSW compilation with wxUSE_DEFERRED_SIZING==0.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:36 +0000 (23:33 +0000)] 
Fix MSW compilation with wxUSE_DEFERRED_SIZING==0.

Add checks for wxUSE_DEFERRED_SIZING around the code using
wxWindow::m_pending{Size,Position}.

Closes #11348.

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

14 years agoJust call wxDocManager::CloseDocument() instead of duplicating it.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:32 +0000 (23:33 +0000)] 
Just call wxDocManager::CloseDocument() instead of duplicating it.

No real changes but avoid making the document deletion code even more opaque
by duplicating the code already existing as a function elsewhere.

Closes #11364.

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

14 years agoNo changes, just slightly improve docview sample code.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:27 +0000 (23:33 +0000)] 
No changes, just slightly improve docview sample code.

Call the base class version of OnClose() in the derived classes instead of
duplicating it.

Closes #11363.

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

14 years agoPropagate wxHtmlWindow layout direction to the wxDC it uses.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:23 +0000 (23:33 +0000)] 
Propagate wxHtmlWindow layout direction to the wxDC it uses.

While wxHtmlWindow doesn't support mixing LTR and RTL contents we can indeed
try to make it render pure RTL stuff correctly by setting up the wxDC used for
drawing accordingly.

Closes #1988.

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

14 years agoAdd support for CP-866 encoding to wxEncodingConverter.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:16 +0000 (23:33 +0000)] 
Add support for CP-866 encoding to wxEncodingConverter.

Recognize yet another Cyrillic encoding, a DOS OEM one.

Closes #2318.

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