Stefan Csomor [Sun, 10 Mar 2013 14:20:36 +0000 (14:20 +0000)]
trying to solve cursor update problems with AUI, refs #15072
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73636
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Mar 2013 01:09:41 +0000 (01:09 +0000)]
Disable sorting of generic wxDataViewCtrl while it is frozen.
Don't sort the contents of wxDataViewCtrl while it is frozen and resort it
only when it is thawed. This dramatically speeds up adding items to the
control when sorting is used as we only sort it once now instead of doing it
after adding every item.
Closes #14073.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73635
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Mar 2013 01:09:37 +0000 (01:09 +0000)]
Use symbolic constants instead of magic numbers in wxDataViewCtrl code.
No real changes, just add SortColumn_XXX symbolic constants which are somewhat
more clear than -1 and -2 used before. Although the code based on the global
variables remains as bad as before.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73634
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:44 +0000 (15:08 +0000)]
Add GetFile() accessor to wxFileStream classes.
Allow to retrieve the underlying file used by the stream.
Closes #15093.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73633
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:40 +0000 (15:08 +0000)]
No real changes, just use wxString::clear() instead of assignment.
Consistently use clear() everywhere instead of assigning wxEmptyString in some
places and wxT("") in some others to a string in order to clear it.
See #15091.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73632
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:36 +0000 (15:08 +0000)]
Return false from wxFileName::AppendDir() and InsertDir() on failure.
Give the caller a way to know whether the directory was valid or not.
Closes #15091.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73631
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:31 +0000 (15:08 +0000)]
Use generic spin control itself as parent for its children.
This fixes a problem with using wxSpinCtrlGeneric in toolbars under wxOSX,
using the toolbar itself (i.e. the parent of the spin control) as parent for
the children didn't work there and no windows were visible at all.
Also use wxNavigationEnabled as base class of wxSpinCtrlGeneric to fix
keyboard navigation.
And override SetBackgroundColour() to set it for the text control part of the
spin control only.
Closes #15016.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73630
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:25 +0000 (15:08 +0000)]
Implement support for pen cap and join in wxPostScriptDC.
Use PostScript "setlinecap" and "setlinejoin" commands to do it.
Closes #1244.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73629
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:21 +0000 (15:08 +0000)]
Test PostScript printing in the print sample if it is compiled in.
Just use wxUSE_POSTSCRIPT instead of wxTEST_POSTSCRIPT_IN_MSW and also do it
under all platforms, not just MSW.
See #1244.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73628
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:17 +0000 (15:08 +0000)]
Fix compilation with MinGW -std=c++11 option.
With this option _strdup() is not available, so update the code defining
wxCRT_StrdupA() to check for __WX_STRICT_ANSI_GCC__.
Also try to simplify it a bit and make it more clear.
Closes #15011.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73627
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:13 +0000 (15:08 +0000)]
Fix compilation for MinGW with wxUSE_IPV6==1.
MinGW doesn't provide wspiapi.h header, so only include it when using MSVC and
include ws2tcpip.h which directly declares the functions used for the other
compilers.
This doesn't have quite the same semantics but it's better than failing to
compile at all.
See #15005.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73626
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:09 +0000 (15:08 +0000)]
Don't cache HDC used by wxPaintDCEx in wxMSW.
This avoids the problem with mistakenly using wrong HDC in wxBitmapComboBox
code which was due to assuming that we can only ever have one paint HDC for
the given window -- while in wxBitmapComboBox case we are passed different
HDCs for the same window via WM_DRAWITEM.
Instead of fixing the cache, just don't use it at all for wxPaintDCEx as we
don't gain anything from doing it anyhow.
Closes #14842.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73625
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:05 +0000 (15:08 +0000)]
Fit the generic preferences editor dialog to its pages size initially.
Ensure that the dialog has the appropriate size before showing it.
In addition to making it big enough to fit the pages contents, this also fixes
a problem with initial appearance under MSW.
Closes #15092.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73624
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:08:00 +0000 (15:08 +0000)]
Don't set cell value in wxDataViewEvent in one place only.
We should either set the cell value in the event object everywhere or not do
it anywhere and as currently the native GTK and OS X versions don't do it at
all and the generic version only does it for ITEM_CONTEXT_MENU events, it's
easier to not do it at all.
See #14163.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73623
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:07:56 +0000 (15:07 +0000)]
Remove wxLogWindow::OnFrameCreate() virtual method.
This method couldn't be overridden by the classes deriving from wxLogWindow
because it was called (indirectly) from wxLogWindow ctor itself and so was
completely useless. Just remove it to avoid confusion.
Closes #12763.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73622
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Mar 2013 15:07:49 +0000 (15:07 +0000)]
Restore wxDIRCTRL_SHOW_FILTERS flag of wxDirCtrl.
Closes #8572.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73621
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 7 Mar 2013 21:41:39 +0000 (21:41 +0000)]
avoid infinite recursion for richtooltops, (hopefully) fixes #15070
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73614
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 6 Mar 2013 21:00:38 +0000 (21:00 +0000)]
implementing canBecomeKeyView for user panes, native focus support, fixes #15070
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73610
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 5 Mar 2013 06:50:37 +0000 (06:50 +0000)]
Minor tweaks to the preferences docs for Phoenix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73604
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 5 Mar 2013 06:50:28 +0000 (06:50 +0000)]
don't use string module
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73603
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 4 Mar 2013 18:19:41 +0000 (18:19 +0000)]
Unselect all wxDataViewCtrl items when clicking outside of the item area.
This is consistent with Windows behaviour and as the generic wxDataViewCtrl is
mostly used under Windows, it makes sense to follow Windows convention in it.
Closes #15082.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73602
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 4 Mar 2013 11:48:26 +0000 (11:48 +0000)]
Fix crash on wxDataViewCtrl creation after r73565.
Initialize m_clientArea to NULL to avoid crash in SetFont() which is called
during the control creation.
This might still be not 100% correct as the initial font is not set at all for
the client area but at least it fixes the crash.
See #15056.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73601
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 4 Mar 2013 10:47:55 +0000 (10:47 +0000)]
Corrected layout when scaling the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73600
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 3 Mar 2013 22:44:17 +0000 (22:44 +0000)]
Fix handling of wxST_NO_AUTORESIZE in wxOSX.
We do need to set the size of wxStaticText initially even when this style is
specified, it only tells us to not update it later. Otherwise even the initial
label was never shown in full.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73599
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 3 Mar 2013 22:44:14 +0000 (22:44 +0000)]
Fix hundreds of unused parameter warnings in wxOSX build.
Comment out the name of the parameter in the recently added SetupTabs().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73598
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 3 Mar 2013 17:23:58 +0000 (17:23 +0000)]
issue NUMPAD constants only for Key but not for Char events, fixes #15073
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73597
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 3 Mar 2013 12:19:20 +0000 (12:19 +0000)]
Revert "Fix off by 1 error in wxGenericListCtrl::HitTest()."
Revert r73563, this breaks the selection in the control apparently.
See #15063.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73596
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sat, 2 Mar 2013 13:01:57 +0000 (13:01 +0000)]
enabling cursor events, fixes #15044
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:53 +0000 (12:11 +0000)]
Reset accelerator table after removing last accelerator in wxMSW wxMenuBar.
We didn't update the accelerator table if no more accelerators were left in it
but we still need to do it to stop handling the previously active accelerators.
Closes #15078.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73594
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:47 +0000 (12:11 +0000)]
Use more native icons in wxMSW wxArtProvider.
Use SHGetStockIconInfo() and SHGetFileInfo() to look up some icons.
Closes #15068.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73593
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:44 +0000 (12:11 +0000)]
Enable wxUSE_FSVOLUME in configure builds.
This was never set to 1 when using configure, add a configure option for it
and set it to 1 by default now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73592
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:40 +0000 (12:11 +0000)]
Don't give error message for non-existent paths in wxFileSystemWatcher.
The file we're trying to watch might have been just deleted, this is an
unavoidable (and not only in theory but also in practice when watching busy
directories) race condition so don't give an error message if this does happen
but simply return false from Add().
Closes #15051.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73591
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:36 +0000 (12:11 +0000)]
Interpret wxRect passed to wxRichToolTip::ShowFor() as client coords.
It makes more sense to use the window coordinates here instead of the screen
ones.
Closes #15060.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73590
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 2 Mar 2013 12:11:32 +0000 (12:11 +0000)]
Make wxRect parameter of wxRichToolTip::ShowFor() const.
This parameter is read-only, so accept a const pointer here.
See #15060.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73589
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 1 Mar 2013 13:00:41 +0000 (13:00 +0000)]
Traditional Chinese translations update from Wei-Lun Chao.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73588
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 1 Mar 2013 12:21:41 +0000 (12:21 +0000)]
Don't use GetThreadId() in wxMSW code.
Revert r73585, GetThreadId() is only available in Vista or later so don't use
it.
Just cast the handle to an integer explicitly to be able to print it with
"%x".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73587
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 28 Feb 2013 20:41:14 +0000 (20:41 +0000)]
Use thread ID and not thread handle in the error messages in wxMSW.
The ID is in general more useful than the handle and this also fixes an assert
failure due to mismatch between the HANLDE type and "%x" format specifier.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73585
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 28 Feb 2013 18:11:35 +0000 (18:11 +0000)]
enabling menu close event, fixes #15069
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73580
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 28 Feb 2013 17:23:09 +0000 (17:23 +0000)]
Corrected loading of images: we need the parent size to compute initial object size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73579
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 16:53:41 +0000 (16:53 +0000)]
Compilation fix for wxPreferencesPage.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73578
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 16:29:12 +0000 (16:29 +0000)]
Add preferences sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73577
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 16:29:05 +0000 (16:29 +0000)]
Add wxPreferencesEditor class.
Implements native UI for preferences editing. In particular, the API
handles the differences between modal (Windows) and non-modal (OS X) preferences windows and provides platform's native look.
Currently implemented natively for wxOSX/Cocoa, wxGTK and Windows (the latter is used as a fallback generic implementation as well).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73576
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 16:28:56 +0000 (16:28 +0000)]
Add support for Cocoa's selectable toolbar items.
The support is currently limited to making all toolbar items selectable
and is only available in wxOSX with Cocoa and native toolbars.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73575
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 16:28:52 +0000 (16:28 +0000)]
Add wxBitmap(NSImage*) ctor to wxOSX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73574
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 14:29:00 +0000 (14:29 +0000)]
Line endings fixes in bakefile-generated files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73573
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 28 Feb 2013 13:31:58 +0000 (13:31 +0000)]
Don't include Common-Controls manifest in wxBase apps.
If only the non-GUI portions of wxWidgets are used, the dependency on
Microsoft.Windows.Common-Controls assembly shouldn't be automatically
added to Visual C++. Only do it when compiling GUI code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73572
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Neis [Wed, 27 Feb 2013 12:05:17 +0000 (12:05 +0000)]
No real changes, just spelling fixes to comments. Closes #15030.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73571
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 27 Feb 2013 08:12:42 +0000 (08:12 +0000)]
Minor change. Fix LoadURL case typo in wxWebView docs.
Closes #15067
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73570
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:57 +0000 (13:48 +0000)]
Fix, or at least make less common, deadlock in the thread sample.
Don't always deadlock when "Stop the last spawned thread" menu command is
selected. There is still a problem with a race condition which could result in
a crash when dereferencing an invalid pointer, but at least this doesn't
happen all the time, unlike the current bug.
Of course, the real solution would be to properly rewrite the sample to show
how thread deletion should be handled correctly...
See #14891.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73568
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:49 +0000 (13:48 +0000)]
Preserve client data pointers when setting bitmaps in wxBitmapComboBox.
Changing the bitmap could recreate the control if the height of the bitmap
changed but recreating wxBitmapComboBox lost all the client data pointers.
Do preserve them now when recreating.
Closes #14892.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73567
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:42 +0000 (13:48 +0000)]
Fix typo in definitions of BEGIN_EVENT_TABLE_TEMPLATEn() macros with n>=2.
They were all defined as wxBEGIN_EVENT_TABLE_TEMPLATE1() instead of the
correct wxBEGIN_EVENT_TABLE_TEMPLATEn().
Closes #15050.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73566
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:35 +0000 (13:48 +0000)]
Make wxGenericDataViewCtrl::SetFont() really work.
Do use the new font for the items display.
Closes #15056.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73565
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:26 +0000 (13:48 +0000)]
Fix compilation in !wxUSE_MENUS case.
wxFrameBase::ShouldUpdateMenuFromIdle() should be defined inside "#if
wxUSE_MENUS" as it's only declared when wxUSE_MENUS==1.
Closes #15062.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73564
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:20 +0000 (13:48 +0000)]
Fix off by 1 error in wxGenericListCtrl::HitTest().
Account for the header height if the header is present.
Closes #15063.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73563
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 24 Feb 2013 13:48:13 +0000 (13:48 +0000)]
Move menu messages handling from wxFrame to wxTLW in wxMSW.
This allows to generate the menu open/close/highlight events correctly for the
popup menus used in the dialogs.
Extend the menu sample with a test using such menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73562
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 22 Feb 2013 05:59:59 +0000 (05:59 +0000)]
Fix MSVCBuilder so it can pass an alternate make command to the Builder
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73554
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 22 Feb 2013 05:59:51 +0000 (05:59 +0000)]
Enable using jom in place of nmake in the wxMSW build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73553
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 22 Feb 2013 05:59:42 +0000 (05:59 +0000)]
Add version check for MSVC 10
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73552
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 21 Feb 2013 14:32:04 +0000 (14:32 +0000)]
Fix crash when drawing bitmaps with mask in wxGTK with GTK+ < 2.20.
r73386 introduced a crash in wxGTK drawing code when using old GTK+ versions
by releasing the mask pixmap prematurely. Apparently GTK+ itself was fixed at
some time in 2.19.x time frame but work around the bug for the sake of older
GTK+ versions in wxGTK itself by simply releasing the pixmap at the end of
DoDrawBitmap(), as pre-r73386 code did.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73549
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 21 Feb 2013 13:22:31 +0000 (13:22 +0000)]
No real changes, just suppress a harmless warning.
g++ warned about possibly uninitialized variable, so initialize it in its
declaration even if it was actually already always initialized in the branches
where it could be used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73548
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 19 Feb 2013 23:13:21 +0000 (23:13 +0000)]
Fix background corruption in scrolled wxHtmlWindow.
Draw the background on the entire virtual size, not just the currently shown
client size.
Closes #15047.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73543
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 17 Feb 2013 16:17:20 +0000 (16:17 +0000)]
applying patch, closes #13045
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73533
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 17 Feb 2013 14:54:43 +0000 (14:54 +0000)]
switching notebook implementation to common
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73532
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 15 Feb 2013 12:40:22 +0000 (12:40 +0000)]
Remove wxRTTI macro for wxComboBox from Motif port.
This is now done in src/common/combocmn.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73521
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 15 Feb 2013 12:40:20 +0000 (12:40 +0000)]
Don't use ternary operator ?: with wxString and literal strings.
This results in warnings about converting string literal to (non const) C
string.
Also remove the now unneeded calls to c_str() inside wxString::Printf().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73520
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 15 Feb 2013 12:40:17 +0000 (12:40 +0000)]
sAlways iInclude wx/encinfo.h from src/unix/fontutil.cpp.
We use wxNativeEncodingInfo in this file, so we always need this header, not
just when not using PCH.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73519
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 15 Feb 2013 12:40:13 +0000 (12:40 +0000)]
Don't connect to the same signal multiple times in wxGTK wxClipboard.
We called g_signal_connect("selection_get") in wxClipboard code each time its
AddData() method was called. This resulted in progressive but noticeable
slowdown as the handler was called more and more times.
Only connect to the handler once now.
Closes #15038.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73518
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 14 Feb 2013 08:07:24 +0000 (08:07 +0000)]
closes #13841
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73517
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 13 Feb 2013 19:31:48 +0000 (19:31 +0000)]
adding CoreText
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73516
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 13 Feb 2013 19:29:49 +0000 (19:29 +0000)]
updating dates, fixing product name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73515
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 13 Feb 2013 19:28:52 +0000 (19:28 +0000)]
using default compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73514
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 19:14:51 +0000 (19:14 +0000)]
making sure cfbundle identifier has correct characters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73512
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 11:49:52 +0000 (11:49 +0000)]
added new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73510
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 11:18:04 +0000 (11:18 +0000)]
added new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73509
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 10:51:12 +0000 (10:51 +0000)]
added new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73508
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 10:49:16 +0000 (10:49 +0000)]
adding lexlib header include, turning off utf8 default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73507
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 10:34:13 +0000 (10:34 +0000)]
missed the ppc switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73506
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 12 Feb 2013 10:33:13 +0000 (10:33 +0000)]
increasing deployment to 10.5 min
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73505
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 12 Feb 2013 07:30:01 +0000 (07:30 +0000)]
Fix missing or incorrect wxGrid interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73504
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:14:03 +0000 (16:14 +0000)]
Account for scrolling when setting the background brush origin in wxMSW.
We must use physical coordinates for the brush origin to account for the
coordinates offset in scrolled windows, so add MSWAdjustBrushOrg() and call it
from MSWGetBgBrushForChild().
Closes #14917.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73495
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:58 +0000 (16:13 +0000)]
No changes, just factor out PrepareDC() call in the erase sample.
Call this only once in DoPaint() itself instead of calling it twice before
calling it.
See #14917.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73494
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:53 +0000 (16:13 +0000)]
Erase the entire virtual area of the window in the erase sample.
Just clearing the DC is not enough when the window is scrolled, so clear the
entire virtual area. We should be able to optimize it by clearing just the
rectangle currently scrolled into view but this is at least correct, i.e.
doesn't result in corrupted display, even if it's suboptimal.
See #14917.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73493
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:50 +0000 (16:13 +0000)]
Compilation fix for !wxHAS_MSW_BACKGROUND_ERASE_HOOK case.
This doesn't actually change anything as wxHAS_MSW_BACKGROUND_ERASE_HOOK is
always defined, except under WinCE where this file is not used anyhow, but do
test it here for completeness.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73492
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:46 +0000 (16:13 +0000)]
Create wxCURSOR_RIGHT_ARROW on the fly from normal arrow cursor under MSW.
This allows to avoid having another cursor resource and also makes this cursor
nicer as rightarr.cur looks rather out of place under modern Windows systems.
Closes #14991.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73491
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:42 +0000 (16:13 +0000)]
Create new tab at the correct location in wxAuiNotebook.
Create the new tab in wxAuiTabCtrl that was double clicked and not near the
last selected tab which could have been in another wxAuiTabCtrl.
Closes #14995.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73490
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 10 Feb 2013 16:13:37 +0000 (16:13 +0000)]
Add wxIcon::CreateFromHICON() to wxMSW.
Provide a public method properly assigning an HICON to wxIcon, instead of
asking people to call SetHICON() and SetSize().
Closes #15023.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73489
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 11:11:53 +0000 (11:11 +0000)]
Don't call ::GetLayout() in wxMSW code directly.
Use wxMSW::GetLayout() wrapper to avoid directly binding to a function not
present in old Windows versions and also to fix linking errors with MinGW
after the changes of r73484.
See #3995.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73488
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 00:36:02 +0000 (00:36 +0000)]
Fix infinite loop in wxGrid::PosToEdgeOfLine().
Return -1 from wxGridRowOperations::GetLineBefore(0) to ensure that we exit
the loop in wxGrid::PosToEdgeOfLine(). Doing this is the logical thing to do
as wxGridColumnOperations::GetLineBefore() already behaved like this and this
was is more expected than returning 0, as the function previously did for some
reason.
Closes #15035.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73487
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 00:35:58 +0000 (00:35 +0000)]
Fix pulsing of bitmaps in focused buttons under Windows 7.
It turns out that the actual bitmap shown in this case varies between the
bitmaps at PBS_DEFAULTED and PBS_STYLUSHOT, so that it's invisible half of the
time if we don't specify the value for the latter. Do it now to fix unwanted
pulsing of the bitmap in the focused button.
Closes #15034.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73486
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 00:35:54 +0000 (00:35 +0000)]
Refresh wxMSW wxStaticBitmap when its size changes.
As MSW native control centers the image, it must be entirely redrawn when the
area in which the image is centered changes, but it doesn't happen by default,
so do it ourselves explicitly.
Also explain that this centering behaviour is platform-specific and shouldn't
be relied upon.
Closes #4564.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73485
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 00:35:49 +0000 (00:35 +0000)]
Fix drawing of bitmaps with masks in mirrored wxDC.
The mask must be mirrored in the same way as the main bitmap itself (currently
it's not mirrored at all but this could change in the future), so create the
temporary memory HDC with the same layout as is used by the main HDC.
Closes #3995.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73484
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 9 Feb 2013 00:35:46 +0000 (00:35 +0000)]
Don't include the manifest in wx/msw/wx.rc by default for MSVC compiler.
The later versions of this compiler don't need it any more, so make it easier
to set up the projects for them at the expense of MSVC 6 and 7 users who will
now need to explicitly define wxUSE_RC_MANIFEST=1 and predefine the
architecture macro (or setup their resource compiler include path to get
wx/msw/rcdefs.h under the lib directory but predefining the architecture is
clearly simpler).
Do generate manifest when using gcc as it predefines the architecture macros
allowing us to avoid requiring using the generated rcdefs.h.
The other compilers will be dealt with as needed if anybody is still using
them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73483
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 12:48:12 +0000 (12:48 +0000)]
Don't recurse into top level children when validating recursively.
Even with wxWS_EX_VALIDATE_RECURSIVELY flag, we should never validate the top
level children (e.g. dialogs) when validating the parent window. This is never
useful and can be completely unexpected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73482
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 12:48:09 +0000 (12:48 +0000)]
Refactor children traversal in wxWindow::TransferData{To,From}Window().
No real changes, just factor out the logic for children traversal into a
helper template class and reuse it in Validate() and both TransferData()
methods to avoid triplicating it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73481
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 12:46:24 +0000 (12:46 +0000)]
Allow creating wxCursor from ANI files under MSW.
Simply pass them to the standard LoadCursorFromFile() function which supports
this format.
Closes #3472.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73480
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 12:43:48 +0000 (12:43 +0000)]
Don't show log menu tiems in the tree control sample when !wxUSE_LOG.
No real changes, just correct the "#if wxUSE_LOG" placement.
See #4024.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73479
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 00:42:11 +0000 (00:42 +0000)]
Fix harmless warning about NULL in wxStyledTextCtrl code.
Cast NULL to the type of third argument of SendMsg() explicitly to avoid a
warning about it from Ubuntu g++ 4.6.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73478
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 00:42:09 +0000 (00:42 +0000)]
Fix harmless g++ warning about operator precedence.
Add parentheses to suppress "&& inside ||" warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73477
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 6 Feb 2013 00:42:06 +0000 (00:42 +0000)]
Check for _MSC_VER definedness in libtiff code.
This avoids warnings about _MSC_VER being undefined when it's compared with
1500 when building with gcc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73476
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 5 Feb 2013 20:47:12 +0000 (20:47 +0000)]
Fix printf format specifier in graphics benchmark.
Use "%ld" for long arguments to fix asserts under 64 bit architectures.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73475
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775