]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoIn wxBitmapComboBox::RecreateControl(), always get recreated control's height from...
Jaakko Salli [Sun, 3 Oct 2010 10:51:50 +0000 (10:51 +0000)] 
In wxBitmapComboBox::RecreateControl(), always get recreated control's height from the best size, and also set the ComboBox item height with CB_SETITEMHEIGHT message (fixes #12515).

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

14 years agoConnect to events only if using native implementation instead of using event table...
Tim Kosse [Sat, 2 Oct 2010 09:39:58 +0000 (09:39 +0000)] 
Connect to events only if using native implementation instead of using event table. Closes #12469

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

14 years agoAdd non-vararg wxFileTypeInfo ctor and various setters.
Vadim Zeitlin [Fri, 1 Oct 2010 13:05:42 +0000 (13:05 +0000)] 
Add non-vararg wxFileTypeInfo ctor and various setters.

This allows to create wxFileTypeInfo objects in a more readable even if more
verbose way.

This should also incidentally fix the unit tests compilation with VC6 which
seems to have some existential troubles with the vararg ctor in debug DLL
build (only). Using the non-vararg ctor should hopefully make it happy and let
the unit tests pass with this compiler.

Also document wxFileTypeInfo class which wasn't documented at all.

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

14 years agoAdd wxHAS_BITMAPTOGGLEBUTTON and test for it in the unit test.
Vadim Zeitlin [Fri, 1 Oct 2010 13:05:36 +0000 (13:05 +0000)] 
Add wxHAS_BITMAPTOGGLEBUTTON and test for it in the unit test.

Not all ports define wxBitmapToggleButton class currently, so add a special
symbol which is defined only if this class is indeed available and test for it
in the unit test for this class.

This fixes the tests compilation under wxX11.

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

14 years agoDisable ItemClick() unit test for wxListCtrl under wxMSW.
Vadim Zeitlin [Fri, 1 Oct 2010 13:05:30 +0000 (13:05 +0000)] 
Disable ItemClick() unit test for wxListCtrl under wxMSW.

This test just doesn't want to work on MSW buildbot slaves even though it
works perfectly locally. No idea why but disable it when running on a build
bot slave for now to let the entire test suite pass.

Also add a comment explaining why the test is disabled for wxGTK.

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

14 years agoDisable wxEVT_COMMAND_LIST_ITEM_FOCUSED test for wxMSW.
Vadim Zeitlin [Thu, 30 Sep 2010 17:35:01 +0000 (17:35 +0000)] 
Disable wxEVT_COMMAND_LIST_ITEM_FOCUSED test for wxMSW.

This test fails on MSW buildbot slaves for unknown reasons so disable it to
make the test suite pass. The failure is irreproducible locally so no idea how
to debug this unfortunately.

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

14 years agoopening ATSU Font info for Ulrich Telle's wxPDFContext
Stefan Csomor [Thu, 30 Sep 2010 17:30:48 +0000 (17:30 +0000)] 
opening ATSU Font info for Ulrich Telle's wxPDFContext

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

14 years agoAdd default value for GetPopupMenuSelectionFromUser() position argument.
Vadim Zeitlin [Thu, 30 Sep 2010 14:33:53 +0000 (14:33 +0000)] 
Add default value for GetPopupMenuSelectionFromUser() position argument.

Let the menu be popped up at the system-determined position, just as it can
already be done with PopupMenu() itself.

Closes #12530.

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

14 years agoCorrectly convert wxPrintf() to a buffer even when it doesn't fit.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:41 +0000 (14:30 +0000)] 
Correctly convert wxPrintf() to a buffer even when it doesn't fit.

ConvertStringToBuf() helper function was defined incorrectly for converting
wxString to a char* buffer as it didn't fill the buffer at all if the string
didn't fit into it entirely instead of putting as much of the string into it
as possible as was already done for the conversion to wchar_t* buffer. This
broke wxSprintf()-related functions in when the ASCII output buffer was not
big enough as it was not filled at all.

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

14 years agoCorrect handling of %hs and %ls in our wxPrintf() implementation.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:35 +0000 (14:30 +0000)] 
Correct handling of %hs and %ls in our wxPrintf() implementation.

The strings corresponding to %hs and %ls are always narrow/wide independently
of the build so using wxArgNormalizedString which is defined differently in
different builds doesn't make sense in wxPrintf().

Instead, simply expect the parameter of the appropriate matching type for
these conversion specifications. Any conversions to it, if necessary, had been
already done before by wxFormatString.

This fixes some VsnprintfTestCase::BigToSmallBuffer() unit test failures.

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

14 years agoFix handling of asterisks in wxPrintf() implementation.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:28 +0000 (14:30 +0000)] 
Fix handling of asterisks in wxPrintf() implementation.

Count the number of asterisks before modifying the string we use to do this,
otherwise we were off by one for the format specifications containing two of
them.

This really fixes the handling of asterisks (used for width/precision) in
wxPrintf() format string, it wasn't done correctly by r60120 but now
VsnprintfTestCase::Asterisk() test does pass.

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

14 years agoExpect an assert in wxVsnprintf() test with too many parameters.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:23 +0000 (14:30 +0000)] 
Expect an assert in wxVsnprintf() test with too many parameters.

The call to wxPrintf() should provoke an assert if there are too many
parameters, so update the test to expect it.

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

14 years agoDisable test failing under VC6 only.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:18 +0000 (14:30 +0000)] 
Disable test failing under VC6 only.

Somehow the expected assert is not generated by wxString::Format("%d", ptr)
with VC6. Disable this test to make the test suite pass for VC6 for now to at
least be able to monitor the appearance of the new errors in it.

Of course, this one should ideally be debugged (by someone who is interested
in VC6 support) as well...

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

14 years agoInsert another item in the list control in its unit test.
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:13 +0000 (14:30 +0000)] 
Insert another item in the list control in its unit test.

For some reason the test fails with a single item in the control when running
on the buildbot slave, check if this is still the case if we add another item
to the control.

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

14 years agoRemove out of date code in DoStringPrintfV().
Vadim Zeitlin [Thu, 30 Sep 2010 14:30:06 +0000 (14:30 +0000)] 
Remove out of date code in DoStringPrintfV().

We can't clear a NULL buffer, the code didn't make any sense any more because
it wasn't updated when the function was changed as part of UTF-8 transition.

Closes #12529.

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

14 years agoA couple of fixes for wxChm
Michael Wetherell [Thu, 30 Sep 2010 13:09:04 +0000 (13:09 +0000)] 
A couple of fixes for wxChm

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

14 years agoMore compilation fixes for new wxRTC image code without PCH.
Vadim Zeitlin [Thu, 30 Sep 2010 12:30:02 +0000 (12:30 +0000)] 
More compilation fixes for new wxRTC image code without PCH.

Add more headers needed when not using PCH.

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

14 years agoNo changes whatsoever, just remove trailing whitespace.
Vadim Zeitlin [Thu, 30 Sep 2010 11:44:45 +0000 (11:44 +0000)] 
No changes whatsoever, just remove trailing whitespace.

There are no real changes in this commit but it removes all trailing white
space from our source files. This avoids problems when applying patches and
making diffs and it would be nice to prevent it from reappearing.

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

14 years agoUse Unix EOL format for the new files.
Vadim Zeitlin [Thu, 30 Sep 2010 11:31:57 +0000 (11:31 +0000)] 
Use Unix EOL format for the new files.

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

14 years agoInclude correct headers from richtextimagedlg.*.
Vadim Zeitlin [Thu, 30 Sep 2010 11:31:04 +0000 (11:31 +0000)] 
Include correct headers from richtextimagedlg.*.

Include or forward declares the classes used by the header to make it
self-contained. Do not include wx/wx.h from the source file to make compiling
it faster when not using PCH.

This fixes compilation under Unix after SOC2010_RTC_IMAGES branch merge.

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

14 years agoRemove interface/implementation #pragmas from richtextimagedlg.*.
Vadim Zeitlin [Thu, 30 Sep 2010 11:30:58 +0000 (11:30 +0000)] 
Remove interface/implementation #pragmas from richtextimagedlg.*.

These pragmas are not necessary and may actually be harmful, no idea why were
they added in the first place to a new file.

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

14 years agoMerge of SOC2010_RTC_IMAGES branch.
Vadim Zeitlin [Thu, 30 Sep 2010 10:27:07 +0000 (10:27 +0000)] 
Merge of SOC2010_RTC_IMAGES branch.

Added floating images and image property dialog to wxRichTextCtrl, by Mingquan
Yang as part of GSOC 2010. Also changed image block creation to use a memory
stream instead of creating a temporary file.

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

14 years agoCorrect printf() format specifiers for long variables in life demo.
Vadim Zeitlin [Wed, 29 Sep 2010 22:01:18 +0000 (22:01 +0000)] 
Correct printf() format specifiers for long variables in life demo.

Fix asserts in 64 bit builds due to using %u (expecting 32 bit values on a
typical Unix LP64 platform) for 64 bit long values.

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

14 years agoAdd EVT_RIBBONBAR_TAB_LEFT_DCLICK event.
Vadim Zeitlin [Wed, 29 Sep 2010 13:46:35 +0000 (13:46 +0000)] 
Add EVT_RIBBONBAR_TAB_LEFT_DCLICK event.

Generate a special event when a ribbon bar is double clicked.

Closes #12399.

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

14 years agoFix crash in wxWebKitCtrl when using JavaScript.
Vadim Zeitlin [Wed, 29 Sep 2010 13:46:24 +0000 (13:46 +0000)] 
Fix crash in wxWebKitCtrl when using JavaScript.

Ignore the unknown types of the script result, in particular don't crash
trying to dereference an uninitialized pointer if the script didn't return
anything.

Closes #12361.

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

14 years agoPreserve page size when changing increment in wxGTK wxSpinCtrlDouble.
Vadim Zeitlin [Wed, 29 Sep 2010 13:46:19 +0000 (13:46 +0000)] 
Preserve page size when changing increment in wxGTK wxSpinCtrlDouble.

The page size was wrongly reset when changing the increment before.

See #12342.

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

14 years agoFix wrong return value of wxGTK wxSpinCtrlDouble::GetIncrement().
Vadim Zeitlin [Wed, 29 Sep 2010 13:46:14 +0000 (13:46 +0000)] 
Fix wrong return value of wxGTK wxSpinCtrlDouble::GetIncrement().

Due to confusion in gtk_spin_button_get_increments() parameters order the page
size was returned instead of the increment.

See #12342.

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

14 years agoReturn wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily().
Vadim Zeitlin [Wed, 29 Sep 2010 13:46:09 +0000 (13:46 +0000)] 
Return wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily().

Although returning wxFONTFAMILY_UNKNOWN when the font family is not recognized
makes more sense, it breaks a lot of existing code including all the
font-related code generated by DialogBlocks, so prefer to return
wxFONTFAMILY_DEFAULT instead -- which can't be confused for a valid font
family neither but can be passed to wxFont ctor or SetFamily() without
problems.

To ensure that this behaviour is correctly implemented by all ports, rename
the existing wxFont::GetFamily() to DoGetFamily() and call the new method from
wxFontBase::GetFamily() which adjusts the return value if needed.

Closes #12330.

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

14 years agoImprove mouse handling code in wxAuiToolBar.
Vadim Zeitlin [Wed, 29 Sep 2010 13:45:56 +0000 (13:45 +0000)] 
Improve mouse handling code in wxAuiToolBar.

Capture the mouse to handle mouse input on the buttons to ensure we always
reset the button when the mouse leaves it.

Closes #11784.

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

14 years agoInclude wx/defs.h before testing for wxUSE_RADIOBOX.
Vadim Zeitlin [Wed, 29 Sep 2010 13:45:51 +0000 (13:45 +0000)] 
Include wx/defs.h before testing for wxUSE_RADIOBOX.

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

This is similar to r65210 fix for wxUSE_CHECKLISTBOX.

Closes #12526.

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

14 years agoReset wxPGEditor singleton instance pointers in dtors. This is useful if wxPropertyGr...
Jaakko Salli [Tue, 28 Sep 2010 18:59:41 +0000 (18:59 +0000)] 
Reset wxPGEditor singleton instance pointers in dtors. This is useful if wxPropertyGrid is being accessed from an external main loop.

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

14 years agoReplace some stray _T()s with wxT().
Vadim Zeitlin [Mon, 27 Sep 2010 12:55:28 +0000 (12:55 +0000)] 
Replace some stray _T()s with wxT().

We use wxT() exclusively now so replace some _T()s which crept in unnoticed.

This also fixes compilation using Sun CC.

See #12452.

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

14 years agoFix wx/event.h compilation with Sun CC compiler.
Vadim Zeitlin [Mon, 27 Sep 2010 12:55:22 +0000 (12:55 +0000)] 
Fix wx/event.h compilation with Sun CC compiler.

Move wxObjectEventFunctor::operator() definition after wxEvtHandler
declaration as it uses call through a pointer to member of this class and Sun
CC refuses to compile this without having the full class declaration.

Closes #12452.

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

14 years agoUse wxString methods for UTF-8 conversions in wxX11 code.
Vadim Zeitlin [Mon, 27 Sep 2010 12:48:21 +0000 (12:48 +0000)] 
Use wxString methods for UTF-8 conversions in wxX11 code.

Use wxString::utf8_str() and FromUTF8() to convert to and from UTF-8. This is
more efficient than using wxConvUTF8 as the code did before as it avoids the
conversion entirely when wxString uses UTF-8 internally (as it does by default
in wxX11) and also has the advantage of compiling in STL build unlike the old
code.

Closes #12518.

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

14 years agoSmall clean up in wxX11 Pango code.
Vadim Zeitlin [Mon, 27 Sep 2010 12:48:14 +0000 (12:48 +0000)] 
Small clean up in wxX11 Pango code.

Don't use unnecessary explicit casts of wxCharBuffer to "const char *".

Use wxCharBuffer::length() instead of strlen().

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

14 years agoFix wxX11 compilation when using PCH.
Vadim Zeitlin [Mon, 27 Sep 2010 12:48:07 +0000 (12:48 +0000)] 
Fix wxX11 compilation when using PCH.

wx/unix/utilsx11.h is not included by wx/wxprec.h so we need to include it
when using PCH too.

Closes #12517.

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

14 years agoDocument wxSpinDoubleEvent class.
Vadim Zeitlin [Mon, 27 Sep 2010 11:57:03 +0000 (11:57 +0000)] 
Document wxSpinDoubleEvent class.

Add documentation for the class itself and the associated EVT_SPINCTRLDOUBLE
macro.

Patch by Carsten Fuchs.

Closes #12520.

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

14 years agoClose a modal dialog even when it doesn't have any buttons.
Vadim Zeitlin [Mon, 27 Sep 2010 11:52:06 +0000 (11:52 +0000)] 
Close a modal dialog even when it doesn't have any buttons.

The close button in the dialog title bar should work even if there are no
buttons in the dialog itself (unlike the Escape key which works as an
accelerator for a button), so close the dialog explicitly if the emulated
button click wasn't processed in wxDialogBase::OnCloseWindow().

Closes #12513.

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

14 years agoFix typo in wxStandardPathsBase::ResourceCat description and document it.
Vadim Zeitlin [Mon, 27 Sep 2010 11:51:50 +0000 (11:51 +0000)] 
Fix typo in wxStandardPathsBase::ResourceCat description and document it.

Document the enum itself and also correct GetLocalizedResourcesDir()
documentation which didn't specify the default value for the category
parameter.

Closes #12523.

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

14 years agoCompilation fix for MinGW STL build.
Vadim Zeitlin [Sun, 26 Sep 2010 22:11:32 +0000 (22:11 +0000)] 
Compilation fix for MinGW STL build.

std::tr1::unordeded_map<T *>::find() doesn't accept "const T *" pointer, at
least with MinGW 4.4.0 standard library version, so add an explicit
const_cast<> to fix compilation.

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

14 years agoCompilation fix for MinGW 4.x in new keyboard code.
Vadim Zeitlin [Sun, 26 Sep 2010 22:11:27 +0000 (22:11 +0000)] 
Compilation fix for MinGW 4.x in new keyboard code.

Explicitly choose the comparison operator to use when comparing wchar_t and
int values, otherwise MinGW (correctly) complains about ambiguity between
(int, int) and (wchar_t, const wxUniChar&) overloads.

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

14 years agoMake wxDateTime::Tm::yday public and document it.
Vadim Zeitlin [Sun, 26 Sep 2010 22:11:21 +0000 (22:11 +0000)] 
Make wxDateTime::Tm::yday public and document it.

There doesn't seem any reason to allow access to all the other struct Tm
fields but not yday so make it public, fill it in correctly when creating Tm
without using its ctor from struct tm and document struct Tm itself including
its yday field.

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

14 years agoInitialize wxDateTime::Tm::yday in the ctor.
Vadim Zeitlin [Sun, 26 Sep 2010 22:11:16 +0000 (22:11 +0000)] 
Initialize wxDateTime::Tm::yday in the ctor.

Set Tm::yday to a fixed value in the ctor as well instead of not initializing
it at all.

This bug actually didn't have any visible consequences as yday is currently a
private member of struct tm and didn't seem to be used anywhere but it at
least avoids MinGW 4.x warnings about possibly uninitialized variable and
might become important in the future if we allow accessing this field.

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

14 years agoCorrect g++ 4.x warnings about suggested explicit braces.
Vadim Zeitlin [Sun, 26 Sep 2010 22:11:10 +0000 (22:11 +0000)] 
Correct g++ 4.x warnings about suggested explicit braces.

Several warnings were generated for wxLogLastError() calls inside
CALL_CARET_API macro by MinGW 4.4. Fix them by adding the extra braces.

See also r61475.

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

14 years agoCorrect empty space drawing
Jaakko Salli [Fri, 24 Sep 2010 17:44:20 +0000 (17:44 +0000)] 
Correct empty space drawing

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

14 years agoRemoved debug log message
Jaakko Salli [Fri, 24 Sep 2010 17:40:06 +0000 (17:40 +0000)] 
Removed debug log message

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

14 years agoFixed PCH-less build
Jaakko Salli [Fri, 24 Sep 2010 15:22:52 +0000 (15:22 +0000)] 
Fixed PCH-less build

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

14 years agoHave wxPropertyGrid inherit from wxControl and wxScrollHelper instead of wxScrolledWi...
Jaakko Salli [Fri, 24 Sep 2010 14:47:20 +0000 (14:47 +0000)] 
Have wxPropertyGrid inherit from wxControl and wxScrollHelper instead of wxScrolledWindow. This is the approach other scrolled controls use.

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

14 years agoFix sending a size event for the displayed page when the notebook is sized
Robin Dunn [Thu, 23 Sep 2010 21:12:40 +0000 (21:12 +0000)] 
Fix sending a size event for the displayed page when the notebook is sized

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

14 years agoUse the wx version of the wxDECLARE_EVENT_TABLE_ENTRY macro
Robin Dunn [Thu, 23 Sep 2010 21:11:47 +0000 (21:11 +0000)] 
Use the wx version of the wxDECLARE_EVENT_TABLE_ENTRY macro

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

14 years agoAvoid an endless recursion situation
Robin Dunn [Thu, 23 Sep 2010 21:10:34 +0000 (21:10 +0000)] 
Avoid an endless recursion situation

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

14 years agoAllow the renderer to also work with wxMemoryDCs
Robin Dunn [Thu, 23 Sep 2010 21:09:24 +0000 (21:09 +0000)] 
Allow the renderer to also work with wxMemoryDCs

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

14 years agoSetUserScale(1.0, 1.0) in Unmask() so the image will not be scaled again when blitted
Robin Dunn [Thu, 23 Sep 2010 21:08:26 +0000 (21:08 +0000)] 
SetUserScale(1.0, 1.0) in Unmask() so the image will not be scaled again when blitted

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

14 years agoCanSetTransparent needs to be virtual
Robin Dunn [Thu, 23 Sep 2010 21:07:19 +0000 (21:07 +0000)] 
CanSetTransparent needs to be virtual

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

14 years agoVarious build tweaks and updates for wxPython 2.9.1.1
Robin Dunn [Thu, 23 Sep 2010 21:05:30 +0000 (21:05 +0000)] 
Various build tweaks and updates for wxPython 2.9.1.1

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

14 years agoAdd flag to enable specifying an architecture to build on Mac. Also add x86_64 archit...
Robin Dunn [Thu, 23 Sep 2010 20:54:54 +0000 (20:54 +0000)] 
Add flag to enable specifying an architecture to build on Mac. Also add x86_64 architecture to universal build when buildng wxOSX-Cocoa

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

14 years agoRemove an assert that was not backed up by the documentation and so failed on some...
Steve Lamerton [Thu, 23 Sep 2010 17:02:08 +0000 (17:02 +0000)] 
Remove an assert that was not backed up by the documentation and so failed on some platforms but not on others. Re-enable some tests that were disabled in wxGTK as they now pass.

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

14 years agoAdd ClearEventCount to wxTestableFrame. This means we can clear an event count when...
Steve Lamerton [Thu, 23 Sep 2010 16:55:29 +0000 (16:55 +0000)] 
Add ClearEventCount to wxTestableFrame. This means we can clear an event count when an event counter goes out of scope so the are no spurious results in later tests.

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

14 years agoFix bug finding line after line break
Julian Smart [Thu, 23 Sep 2010 16:24:04 +0000 (16:24 +0000)] 
Fix bug finding line after line break

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

14 years agoStreamline wxPropertyGrid tooltip code
Jaakko Salli [Thu, 23 Sep 2010 12:58:02 +0000 (12:58 +0000)] 
Streamline wxPropertyGrid tooltip code

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

14 years agoWhen setting empty string as a tooltip, call gtk_widget_set_has_tooltip() with FALSE...
Jaakko Salli [Thu, 23 Sep 2010 12:55:22 +0000 (12:55 +0000)] 
When setting empty string as a tooltip, call gtk_widget_set_has_tooltip() with FALSE to remove the tooltip. This will bring wxGTK behavior in line with wxMSW.

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

14 years agoFix assert when changing the filter selection on a multiple selection wxGenericDirCtrl.
Steve Lamerton [Wed, 22 Sep 2010 19:24:41 +0000 (19:24 +0000)] 
Fix assert when changing the filter selection on a multiple selection wxGenericDirCtrl.

Because ExpandPaths selects the item we can simply grab a list of selected paths and then expand them all in the multiple selection case. The single selection case is unchanged.

Closes #12340

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

14 years agoBetter checks for wxMSWKeyboard::VKToWX() return value.
Vadim Zeitlin [Wed, 22 Sep 2010 13:31:41 +0000 (13:31 +0000)] 
Better checks for wxMSWKeyboard::VKToWX() return value.

Don't generate key events without any valid key code (this shouldn't normally
happen but might on exotic keyboards with keys that we don't know about).

Also ensure that we can distinguish between VKToWX() returning dead keys and
non-Latin-1 keys by setting wchar_t output parameter to WXK_NONE too in the
former case but not the latter.

Generate wxEVT_CHAR_HOOK events for non-Latin-1 keys too in Unicode build.

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

14 years agoFix recently broken generation of wxEVT_CHAR_HOOK events in wxMSW.
Vadim Zeitlin [Wed, 22 Sep 2010 13:31:32 +0000 (13:31 +0000)] 
Fix recently broken generation of wxEVT_CHAR_HOOK events in wxMSW.

Changes to VKToWX() semantics broke the logic of the global keyboard hook
function in wxMSW which didn't generate wxEVT_CHAR_HOOK events for ASCII
special keys such as WXK_ESCAPE any more.

Fix this and also generate wxEVT_CHAR_HOOK for all events, not just the
non-ASCII keys for consistency with the documentation and wxGTK.

Closes #12501.

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

14 years agoRe-enable disabled wxWindow label tests under wxGTK as they were fixed in r65374
Steve Lamerton [Wed, 22 Sep 2010 12:45:45 +0000 (12:45 +0000)] 
Re-enable disabled wxWindow label tests under wxGTK as they were fixed in r65374

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

14 years agoSend generic wxTreeCtrl wxEVT_COMMAND_TREE_KEY_DOWN events from OnKeyDown rather...
Steve Lamerton [Wed, 22 Sep 2010 10:06:39 +0000 (10:06 +0000)] 
Send generic wxTreeCtrl wxEVT_COMMAND_TREE_KEY_DOWN events from OnKeyDown rather than OnChar. This change means it sends events for the same keys as the wxMSW control. It also fixes the failing unit test.

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

14 years agoSend generic wxListCtrl wxEVT_COMMAND_LIST_KEY_DOWN events from OnKeyDown rather...
Steve Lamerton [Wed, 22 Sep 2010 08:48:15 +0000 (08:48 +0000)] 
Send generic wxListCtrl wxEVT_COMMAND_LIST_KEY_DOWN events from OnKeyDown rather than OnChar. Also remove the HasCurrent check. These changes bring the generic control into line with the control under wxMSW. Re-enable the previously failing unit test and document that the key down event might not have a valid item associated with it.

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

14 years agoCompilation fixes for old SDKs (VC6) after recent commit.
Vadim Zeitlin [Tue, 21 Sep 2010 12:57:59 +0000 (12:57 +0000)] 
Compilation fixes for old SDKs (VC6) after recent commit.

Define WM_QUERYUISTATE in wx/msw/missing.h too as src/msw/statbox.cpp uses it
now.

Also move DT_HIDEPREFIX definition from wx/msw/private/button.h to missing.h
as well as it's now used in statbox.cpp too. Include missing.h explicitly from
the files that use DT_HIDEPREFIX.

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

14 years agoCompilation fix of wxSocket code for older Solaris versions.
Vadim Zeitlin [Tue, 21 Sep 2010 11:56:53 +0000 (11:56 +0000)] 
Compilation fix of wxSocket code for older Solaris versions.

Include sys/filio.h to define FIONBIO in all cases (sometimes this header is
already included from sys/ioctl.h but not always).

Closes #12481.

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

14 years agoCorrect drawing of mnemonics in wxStaticBox label under wxMSW.
Vadim Zeitlin [Tue, 21 Sep 2010 11:44:47 +0000 (11:44 +0000)] 
Correct drawing of mnemonics in wxStaticBox label under wxMSW.

Only show the mnemonics if they need to be shown, i.e. use the same logic as
the standard controls use, to avoid showing mnemonics in wxStaticBox with
custom label colour even when other wxStaticBoxes don't show it.

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

14 years agoFix wxStaticBox label redrawing when "Alt" is pressed in wxMSW.
Vadim Zeitlin [Tue, 21 Sep 2010 11:44:41 +0000 (11:44 +0000)] 
Fix wxStaticBox label redrawing when "Alt" is pressed in wxMSW.

The default handling for Alt key press in the standard control is to redraw
the label to account for showing of the keyboard queues (i.e. if the mnemonics
were initially hidden, they are shown when Alt is pressed) but it doesn't
redraw it in the correct colour resulting in any custom label colour being
lost whenever Alt is pressed anywhere in the window containing the box.

Fix this by forcing the box refresh which will result in repainting it using
our code which does use the correct colour.

Also update the static page of the widgets sample to allow changing the
colours of all static controls on this page, including the wxStaticBox, and
not just the main wxStaticText.

Closes #12497.

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

14 years agoCall SetToolTip() for the property editor control when wxPG_EX_HELP_AS_TOOLTIPS style...
Jaakko Salli [Mon, 20 Sep 2010 15:38:12 +0000 (15:38 +0000)] 
Call SetToolTip() for the property editor control when wxPG_EX_HELP_AS_TOOLTIPS style is used

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

14 years agoPCH-less compilation fix to GDI+ wxMSW code.
Vadim Zeitlin [Mon, 20 Sep 2010 14:14:12 +0000 (14:14 +0000)] 
PCH-less compilation fix to GDI+ wxMSW code.

Closes #12496.

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

14 years agoCorrectly recognize when wglChoosePixelFormatARB() fails.
Vadim Zeitlin [Mon, 20 Sep 2010 13:15:21 +0000 (13:15 +0000)] 
Correctly recognize when wglChoosePixelFormatARB() fails.

This function returns TRUE even if it failed to find any matching formats, so
test not only its return value but also the number of formats it found.

Closes #12474.

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

14 years agoAlways use native task dialog for wxProgressDialog under MSW if supported.
Vadim Zeitlin [Mon, 20 Sep 2010 13:11:03 +0000 (13:11 +0000)] 
Always use native task dialog for wxProgressDialog under MSW if supported.

Use task dialogs even for the dialogs with wxPD_AUTO_HIDE style flag and
without wxPD_CAN_ABORT one. Generic fallback was used in this case as native
task dialog doesn't support dialogs without buttons but it is finally better
to create a dummy button and use the native dialog nevertheless. We already
have a mostly disabled "Close" button for the dialogs without wxPD_AUTO_HIDE
style so it seems logical to also have it (but just never enable it at all)
when this style is used.

Closes #12462.

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

14 years agoIgnore time component of SYSTEMTIME in wxMSW wxDatePickerCtrl.
Vadim Zeitlin [Mon, 20 Sep 2010 13:10:49 +0000 (13:10 +0000)] 
Ignore time component of SYSTEMTIME in wxMSW wxDatePickerCtrl.

This is similar to the fix of r64208 for wxCalendarCtrl and ignores the time
component of SYSTEMTIME objects returned by the native functions in
wxDatePickerCtrl too to ensure that we operate with pure dates only.

Closes #12493.

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

14 years agoDon't use native MSW functions in wxString::CmpNoCase().
Vadim Zeitlin [Mon, 20 Sep 2010 12:52:26 +0000 (12:52 +0000)] 
Don't use native MSW functions in wxString::CmpNoCase().

While the native CompareString() is much more efficient than MSVC CRT version
of _wcsicmp(), it gives unexpected results for non-letter characters, so don't
use it but use the slow but correct wxStricmp() instead.

At least don't use char-by-char comparison (in non-UTF-8 case) as it's the
slowest possible implementation of this function, the new one using
wxStricmp() is 3 times faster (by comparison, using CompareString() is 16
times faster still -- but wrong).

Closes #10375.

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

14 years agoAdd benchmarks for various ways to compare strings.
Vadim Zeitlin [Mon, 20 Sep 2010 12:52:21 +0000 (12:52 +0000)] 
Add benchmarks for various ways to compare strings.

Benchmark the abstraction overhead of wxString methods compared to plain
functions and also benchmark native functions for string comparison under MSW.

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

14 years agoFlush output after every benchmark.
Vadim Zeitlin [Mon, 20 Sep 2010 12:52:15 +0000 (12:52 +0000)] 
Flush output after every benchmark.

This purely cosmetic change simply allows to see the output of the benchmarks
sooner which is more user-friendly when running several long benchmarks.

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

14 years agoIncrease the number of expected events in TreeCtrlTestCase::KeyDown and ListBaseTestC...
Steve Lamerton [Sun, 19 Sep 2010 10:02:57 +0000 (10:02 +0000)] 
Increase the number of expected events in TreeCtrlTestCase::KeyDown and ListBaseTestCase::KeyDown from four to six as this is the number of events seen when testing using their samples. This also stops the tests failing after the recent keyboard event improvements.

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

14 years agoReally fix setting fonts in RichEdit 4.1 controls.
Vadim Zeitlin [Sat, 18 Sep 2010 16:26:35 +0000 (16:26 +0000)] 
Really fix setting fonts in RichEdit 4.1 controls.

The fix applied in r64394 wasn't enough and the control could still decide to
overwrite the font used by default when non-ASCII characters were inserted
into it. To really force it to use the font we want we apparently must send it
EM_SETCHARFORMAT with SCF_ALL flag (MSDN also documents SCF_DEFAULT but it's
not clear if we should use it instead or together with SCF_ALL, for now it
doesn't seem to be necessary).

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

14 years agoNo changes, just refactor wxTextCtrl::SetStyle() in wxMSW.
Vadim Zeitlin [Sat, 18 Sep 2010 16:26:30 +0000 (16:26 +0000)] 
No changes, just refactor wxTextCtrl::SetStyle() in wxMSW.

Split this overly long function into MSWSetCharFormat() and MSWSetParaFormat().

No real changes otherwise except for the use of PARAFORMAT instead of
PARAFORMAT2 if wxUSE_RICHEDIT2 is not set as it was certainly intended (but
the fact that nobody complained about this problem means that nobody must be
compiling without wxUSE_RICHEDIT2 by now so arguably we should just remove it
completely).

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

14 years agoSet wxTextCtrl::m_verRichEdit to 4 for RichEdit 4.1.
Vadim Zeitlin [Sat, 18 Sep 2010 16:26:22 +0000 (16:26 +0000)] 
Set wxTextCtrl::m_verRichEdit to 4 for RichEdit 4.1.

Set m_verRichEdit to a different value for the version 4.1 of the control as
it behaves subtly differently from the previous versions.

Also clarify that value of 2 is used for both 2.0 and 3.0 versions of the
control.

No real changes yet.

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

14 years agoPostpone EnsureVisible() to idle as this sometimes seems to be required, fixes #12480...
Robert Roebling [Fri, 17 Sep 2010 19:07:02 +0000 (19:07 +0000)] 
Postpone EnsureVisible() to idle as this sometimes seems to be required, fixes #12480: wxDataViewCtrl::EnsureVisible does not make item visible in some
circumstances on GTK

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

14 years agoSet svn properties on .cpp files.
Dimitri Schoolwerth [Fri, 17 Sep 2010 11:17:55 +0000 (11:17 +0000)] 
Set svn properties on .cpp files.

Add missing svn:eol-style property to all .cpp files. Also set svn:keywords for .cpp files which don't have that property yet to Id, including src/osx/core/glgrab.cpp for consistency (it doesn't make use of the property).

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

14 years agoAllow setting Mac-specific menu item ids to wxID_NONE to suppress them.
Vadim Zeitlin [Thu, 16 Sep 2010 19:36:37 +0000 (19:36 +0000)] 
Allow setting Mac-specific menu item ids to wxID_NONE to suppress them.

If s_macAboutMenuItemId or s_macPreferencesMenuItemId was explicitly set to
wxID_NONE by the application, don't add them to the standard menu at all,
otherwise they would be present there but be always disabled and useless.

This is still not documented because we really need a better API for this but
it at least provides a temporary workaround for having useless menu items
under OS X.

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

14 years agoAllow use of report mode non-native wxListCtrl in wxListBook under Mac.
Vadim Zeitlin [Thu, 16 Sep 2010 19:36:29 +0000 (19:36 +0000)] 
Allow use of report mode non-native wxListCtrl in wxListBook under Mac.

The use of wxListBook in report mode was disabled for wxOSX in r54001 and
r54318 (see #9484) because it created problems with the native wxListCtrl
implementation but the report mode can be used if we're using the generic
wxListCtrl version so do allow to use it if the system option governing the
choice of the version to use is set to "generic".

Of course, the real fix would be to correct the bugs in the native wxListCtrl
version and use report mode always but for now this at least restores correct
behaviour with the generic version.

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

14 years agoOnly use wxFORCE_LINK_MODULE() in mediaplayer sample in static build.
Vadim Zeitlin [Thu, 16 Sep 2010 11:05:51 +0000 (11:05 +0000)] 
Only use wxFORCE_LINK_MODULE() in mediaplayer sample in static build.

The linking optimization this macro protects against can't happen when using
DLL and so using it is at best useless and actually harmful (because it
doesn't contain the correct DLL export declarations) in the latter case.

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

14 years agoCompilation fixes for non-MSVC 9 compilers after r65555.
Vadim Zeitlin [Thu, 16 Sep 2010 11:05:46 +0000 (11:05 +0000)] 
Compilation fixes for non-MSVC 9 compilers after r65555.

Somehow MSVC 9 compiled invalid wxT(__FUNCTION__) expressions but both MinGW
and MSVC 6 (correctly) failed. Don't use this construct at all but instead
call wxLogLastError() with the real function name.

Also refactor the code slightly to avoid having to repeat this fix thrice.

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

14 years agoFix wxMSW rendering artifacts with modal dialogs.
Václav Slavík [Thu, 16 Sep 2010 09:05:48 +0000 (09:05 +0000)] 
Fix wxMSW rendering artifacts with modal dialogs.

When a modal dialog showed another modal dialog, parts of the parent
window weren't refreshed correctly. This demonstrated itself as
rendering artifacts when moving the child dialog to another position:
parts of the dialog were shown as disabled, parts as enabled.

Fixed by explicitly refreshing the window.

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

14 years agoRemove display information caching from MSW wxDisplay implementation.
Vadim Zeitlin [Wed, 15 Sep 2010 23:04:02 +0000 (23:04 +0000)] 
Remove display information caching from MSW wxDisplay implementation.

Don't cache display rectangle and client rectangle as they can both change
during the program lifetime (especially the latter which changes whenever
taskbar is moved or shown/hidden) and retrieving them every time they're
needed doesn't seem to be a problem performance-wise anyhow.

We still cache the list of all the monitors, ideally we'd refresh it when we
receive a notification about a display being [dis]connected.

Closes #4582.

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

14 years agoFix possible errors introduced while generating Xcode project.
Dimitri Schoolwerth [Wed, 15 Sep 2010 22:13:40 +0000 (22:13 +0000)] 
Fix possible errors introduced while generating Xcode project.

Under some unknown circumstances two added source files are concatenated into one faulty entry in an Xcode project (this probably occurs either at the Xcode or XMLTools2 level). Try to detect these errors in the Python script and fix them by patching up the project.pbxproj file.

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

14 years agoDocument limitations of the generic wxTextEntry hints.
Vadim Zeitlin [Wed, 15 Sep 2010 22:10:26 +0000 (22:10 +0000)] 
Document limitations of the generic wxTextEntry hints.

Calling methods other than SetValue() or ChangeValue() doesn't update the
display correctly currently, see #12475.

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

14 years agoUpdate the text hint display correctly when ChangeValue() is called.
Vadim Zeitlin [Wed, 15 Sep 2010 22:10:20 +0000 (22:10 +0000)] 
Update the text hint display correctly when ChangeValue() is called.

wxTextEntry::ChangeValue() doesn't generate any events so we need to
explicitly update the text stored by wxTextEntryHintData when it is called to
ensure that it corresponds to the real controls value.

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

14 years agoFix several bugs in generic text entry hints implementation.
Vadim Zeitlin [Wed, 15 Sep 2010 22:10:14 +0000 (22:10 +0000)] 
Fix several bugs in generic text entry hints implementation.

The text controls contents and colour was not updated correctly in several
situations (see #12475).

The old code was completely wrong as it didn't store the actual value of the
control at all and so could never work. Do store and update it now and show
the hint if and only if the real contents is empty.

Also handle "text updated" event to correctly update the hint when the control
becomes [non-]empty.

Closes #12475.

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

14 years agoFix wxTextEntry::SelectAll() in presence of hints in wxGTK.
Vadim Zeitlin [Wed, 15 Sep 2010 22:10:07 +0000 (22:10 +0000)] 
Fix wxTextEntry::SelectAll() in presence of hints in wxGTK.

Translation of wx (-1, -1) selection to (0, GetValue().length()) in
wxTextCtrl::SetSelection() was unnecessary as it ended up calling the base
class wxTextEntry::SetSelection() version which didn't need it. Moreover, this
translation was actually harmful when the text control happened to show a hint
string as its official value was empty in this case and so SetSelection(0, 0)
was called which didn't do anything and broke clearing/changing the controls
text when it was showing a hint.

Simply don't translate the indices when using a single line control to fix
this.

See #12475.

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

14 years agoUse a unique namespace for generating identifiers.
Dimitri Schoolwerth [Wed, 15 Sep 2010 11:45:32 +0000 (11:45 +0000)] 
Use a unique namespace for generating identifiers.

Instead of using uuid.NAMESPACE_DNS as namespace use a newly generated UUID. Also minor cleanup of import uuid statement.

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

14 years agoMake Xcode identifier consecutive when there is a collision.
Dimitri Schoolwerth [Wed, 15 Sep 2010 11:29:07 +0000 (11:29 +0000)] 
Make Xcode identifier consecutive when there is a collision.

Making them consecutive groups source files that are repeated next to each other in the project file like Xcode does, instead of creating a complete new random identifier which resulted in creating a distance between the source files after they were sorted.

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

14 years agoClick on wxOwnerDrawnComboBox's animating popup should close it.
Václav Slavík [Tue, 14 Sep 2010 18:35:50 +0000 (18:35 +0000)] 
Click on wxOwnerDrawnComboBox's animating popup should close it.

Previously, it behaved differently from native combo box: clicking the
popup while its opening animation was running had no effect. This was
different from the native control, which would close the popup in this
case (just like when it's fully opened).

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

14 years agoFix incorrect behaviour of wxRibbonGallery::EnsureVisible when the ribbon is vertical...
Peter Cawley [Tue, 14 Sep 2010 17:35:26 +0000 (17:35 +0000)] 
Fix incorrect behaviour of wxRibbonGallery::EnsureVisible when the ribbon is vertical rather than horizontal.

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