]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoCorrect wxTLS_PTR definition for !wxHAS_COMPILER_TLS case.
Vadim Zeitlin [Sun, 27 Nov 2011 19:50:01 +0000 (19:50 +0000)] 
Correct wxTLS_PTR definition for !wxHAS_COMPILER_TLS case.

wxTLS_PTR should have type of "T*" instead of being simply usable as "T*"
because of its overloaded operator->(), otherwise the code relying on it being
"T*" and compiling without problems in wxHAS_COMPILER_TLS case could fail to
compile without compiler TLS support.

Closes #13644.

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

13 years agoDon't hide/show wxActiveXContainer when resizing it.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:58 +0000 (19:49 +0000)] 
Don't hide/show wxActiveXContainer when resizing it.

This results in bad flicker as can be seen with wxWebView or wxMediaCtrl and
just doesn't seem to be necessary.

Closes #13680.

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

13 years agoDon't crash when changing label of label-less wxToggleButton in wxGTK.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:54 +0000 (19:49 +0000)] 
Don't crash when changing label of label-less wxToggleButton in wxGTK.

If a button doesn't show any text label, simply don't do anything when
SetLabel() is called instead of replacing the image shown by the button with a
text label as the button doesn't expect this to happen and doing it breaks its
assumptions about the widgets it has and results in assert failures later.

Closes #13693.

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

13 years agoInclude webview library headers in the list of all headers.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:48 +0000 (19:49 +0000)] 
Include webview library headers in the list of all headers.

Due to a typo in files.bkl (${...} was used instead of $(...) so the variable
didn't get really dereferenced), the web view headers were not included in the
list of all headers and hence not installed by "make install" under Unix.

Closes #13690.

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

13 years agoMerge similar but not quite identical translated strings.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:43 +0000 (19:49 +0000)] 
Merge similar but not quite identical translated strings.

Some translated strings appeared several times in almost but not quite
identical form. Remove a few of them so that they don't have to be translated
multiple times.

Closes #13637.

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

13 years agoDefine wxCURSOR_DEFAULT_TYPE correctly for the old Cocoa port.
Vadim Zeitlin [Sun, 27 Nov 2011 19:49:33 +0000 (19:49 +0000)] 
Define wxCURSOR_DEFAULT_TYPE correctly for the old Cocoa port.

Closes #13652.

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

13 years agomerged libpng 1.5.6 to trunk
Dimitri Schoolwerth [Fri, 25 Nov 2011 22:25:11 +0000 (22:25 +0000)] 
merged libpng 1.5.6 to trunk

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

13 years agoAccount for indentation in wxDataViewCtrl::GetBestColumnWidth().
Václav Slavík [Fri, 25 Nov 2011 18:11:16 +0000 (18:11 +0000)] 
Account for indentation in wxDataViewCtrl::GetBestColumnWidth().

Generic control only accounted for actual content, but didn't consider
indentation level when calculating width of the expander column.

Fixes #13629.

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

13 years agofixing iPhone build
Stefan Csomor [Fri, 25 Nov 2011 14:37:03 +0000 (14:37 +0000)] 
fixing iPhone build

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

13 years agocheck for self-assignment in operator=
Paul Cornett [Fri, 25 Nov 2011 01:01:26 +0000 (01:01 +0000)] 
check for self-assignment in operator=

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

13 years agocopy array with memcpy rather than a loop
Paul Cornett [Fri, 25 Nov 2011 00:59:45 +0000 (00:59 +0000)] 
copy array with memcpy rather than a loop

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

13 years agouse int instead of size_t for a couple member variables
Paul Cornett [Fri, 25 Nov 2011 00:52:24 +0000 (00:52 +0000)] 
use int instead of size_t for a couple member variables
it's simpler, and there is no point in using size_t anyway since they are assigned from ints

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

13 years agoIsNull --> IsEmpty
Paul Cornett [Fri, 25 Nov 2011 00:32:27 +0000 (00:32 +0000)] 
IsNull --> IsEmpty

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

13 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Thu, 24 Nov 2011 22:21:59 +0000 (22:21 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to include wxRichToolTip files.

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

13 years agoOnSysRead is pure virtual
Robin Dunn [Thu, 24 Nov 2011 01:38:08 +0000 (01:38 +0000)] 
OnSysRead is pure virtual

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

13 years agoThe wxStreamProtocolType enum is multiply defined, remove one of them.
Robin Dunn [Thu, 24 Nov 2011 01:37:45 +0000 (01:37 +0000)] 
The wxStreamProtocolType enum is multiply defined, remove one of them.

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

13 years agoFix crash in wxTreeListCtrl::GetItemText() if text was never set.
Vadim Zeitlin [Wed, 23 Nov 2011 23:58:54 +0000 (23:58 +0000)] 
Fix crash in wxTreeListCtrl::GetItemText() if text was never set.

Asking for the text of an item is not an error even if it was never set for
any column but the first one so just return an empty string in this case
instead of crashing.

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

13 years agoremove redundant GTK-specific code
Paul Cornett [Wed, 23 Nov 2011 17:21:06 +0000 (17:21 +0000)] 
remove redundant GTK-specific code

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

13 years agoItalian translation corrections from Roberto Boriotti.
Vadim Zeitlin [Wed, 23 Nov 2011 15:06:42 +0000 (15:06 +0000)] 
Italian translation corrections from Roberto Boriotti.

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

13 years agoMake generic wxDataViewCtrl rows a bit taller.
Václav Slavík [Wed, 23 Nov 2011 13:43:04 +0000 (13:43 +0000)] 
Make generic wxDataViewCtrl rows a bit taller.

They now use the same height that Windows 7's Explorer uses. This makes
more inline editor controls fit comfortably.

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

13 years agoAdded convenient wxCmdLineParser::AddLong{Option,Switch}() wrappers.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:58 +0000 (13:18 +0000)] 
Added convenient wxCmdLineParser::AddLong{Option,Switch}() wrappers.

The new functions simply call Add{Option,Switch}() with an empty first
argument but using them makes the code more readable.

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

13 years agoDismiss wxSplashScreen on any user input, not necessarily on splash itself.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:55 +0000 (13:18 +0000)] 
Dismiss wxSplashScreen on any user input, not necessarily on splash itself.

Use wxEventFilter to remove the splash screen as soon as any user input is
detected anywhere in the application, not necessarily over the splash screen
itself.

This ensures that the splash screen disappears as soon as the user starts
working with the application instead of sticking around and covering the main
window.

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

13 years agoEnsure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:53 +0000 (13:18 +0000)] 
Ensure that wxSplashScreen doesn't appear on taskbar nor in Alt-TAB list.

Having the splash screen in Alt-TAB window list under MSW was useless and ugly
(as it didn't even have the proper application icon) so use the appropriate
styles to avoid this.

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

13 years agoAdd wxEventFilter and related functionality.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:50 +0000 (13:18 +0000)] 
Add wxEventFilter and related functionality.

Allow defining event filters to globally pre-process all application events
without having to override wxApp::FilterEvent().

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

13 years agoHack wxMSW wxNotebook to show the text controls correctly initially.
Vadim Zeitlin [Tue, 22 Nov 2011 13:18:45 +0000 (13:18 +0000)] 
Hack wxMSW wxNotebook to show the text controls correctly initially.

Add an Update() call to ensure that text controls in the initially selected
notebook page are shown correctly. It's almost certainly not the right fix for
the real bug that results in text controls not being shown when the notebook
comes up but it doesn't cost much and at least allows us to get correct
appearance for the themed notebooks.

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

13 years agofixes #13684
Stefan Csomor [Tue, 22 Nov 2011 07:41:17 +0000 (07:41 +0000)] 
fixes #13684

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

13 years agoItalian translation update from Stefano and Roberto Boriotti.
Vadim Zeitlin [Sat, 19 Nov 2011 17:35:56 +0000 (17:35 +0000)] 
Italian translation update from Stefano and Roberto Boriotti.

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

13 years agoCzech translations update from Zbyněk Schwarz.
Vadim Zeitlin [Sat, 19 Nov 2011 00:00:24 +0000 (00:00 +0000)] 
Czech translations update from Zbyněk Schwarz.

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

13 years agoFix HasFocus() for composite controls.
Vadim Zeitlin [Fri, 18 Nov 2011 23:40:53 +0000 (23:40 +0000)] 
Fix HasFocus() for composite controls.

Comparing the result of DoFindFocus() with the main window of composite
control doesn't work as it can return a child window so HasFocus() still
returned false for a composite control such as generic wxListCtrl even when it
did have focus.

Just use FindFocus() instead of DoFindFocus() to fix this.

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

13 years agoNo changes, just remove extra whitespace from wxWebViewIE code.
Vadim Zeitlin [Fri, 18 Nov 2011 23:40:24 +0000 (23:40 +0000)] 
No changes, just remove extra whitespace from wxWebViewIE code.

Closes #13678.

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

13 years agoRemove double buffering from wxWebViewIE as this is handled by the web browser contro...
Steve Lamerton [Thu, 17 Nov 2011 20:43:34 +0000 (20:43 +0000)] 
Remove double buffering from wxWebViewIE as this is handled by the web browser control itself and actually makes flickering worse. Also remove an unnecessary background style.

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

13 years agoAdjust testing for non-visible controls in wxActiveXContainer.
Steve Lamerton [Thu, 17 Nov 2011 20:39:44 +0000 (20:39 +0000)] 
Adjust testing for non-visible controls in wxActiveXContainer.

Fixes  #13659

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

13 years agoProvide HANDLE_PTR for the compilers without it such as VC6.
Vadim Zeitlin [Thu, 17 Nov 2011 16:43:34 +0000 (16:43 +0000)] 
Provide HANDLE_PTR for the compilers without it such as VC6.

Also include wx/msw/wrapwin.h defininig HANDLE_PTR from wx/msw/webview_ie.h
that uses it.

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

13 years agodefine Popup and Dismiss for wxComboBox in wxMOTIF
Jouk Jansen [Thu, 17 Nov 2011 07:51:04 +0000 (07:51 +0000)] 
define Popup and Dismiss for wxComboBox in wxMOTIF

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

13 years agofix missing and broken interface items for Phoenix
Robin Dunn [Thu, 17 Nov 2011 03:20:25 +0000 (03:20 +0000)] 
fix missing and broken interface items for Phoenix

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

13 years agoAdd arg default values for the Create method
Robin Dunn [Thu, 17 Nov 2011 01:25:56 +0000 (01:25 +0000)] 
Add arg default values for the Create method

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

13 years agoDon't include webkit headers from wx headers
Robin Dunn [Thu, 17 Nov 2011 01:23:03 +0000 (01:23 +0000)] 
Don't include webkit headers from wx headers

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

13 years agoMove wxWebView-related definitions to webview_ie.cpp and fix them.
Vadim Zeitlin [Wed, 16 Nov 2011 23:45:22 +0000 (23:45 +0000)] 
Move wxWebView-related definitions to webview_ie.cpp and fix them.

Ensure that all the GUIDs are defined by including initguid.h to fix linking
error with most versions of MinGW.

Use "wx" prefix to avoid clashes with the standard GUIDs if they do happen to
be defined.

Closes #13645.

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

13 years agoAnother Chinese translations update from Jiawei Huang.
Vadim Zeitlin [Wed, 16 Nov 2011 18:38:02 +0000 (18:38 +0000)] 
Another Chinese translations update from Jiawei Huang.

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

13 years agoCompilation fix for PCH-less build after r69758.
Vadim Zeitlin [Wed, 16 Nov 2011 18:27:48 +0000 (18:27 +0000)] 
Compilation fix for PCH-less build after r69758.

Need to include wx/msw/private.h explicitly for wxGetCursorPosMSW()
declaration now.

Closes #13664 (again).

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

13 years agoAdd support for digits and +/- sign to wxUIActionSimulator::Text().
Vadim Zeitlin [Tue, 15 Nov 2011 15:56:55 +0000 (15:56 +0000)] 
Add support for digits and +/- sign to wxUIActionSimulator::Text().

Support the characters needed for number entry in wxUIActionSimulator::Text()
too.

Closes #13671.

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

13 years agoOnly update status bar fields after they were created in wxMSW.
Vadim Zeitlin [Tue, 15 Nov 2011 15:46:01 +0000 (15:46 +0000)] 
Only update status bar fields after they were created in wxMSW.

Postpone updating statu bar panes after they were actually created.

Setting the status bar fields contents before setting the number of them
failed resulting in debug error messages and the text not appearing in the
status bar.

Closes #13670.

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

13 years agoReplace wxT() with wxS() in image options definitions.
Vadim Zeitlin [Mon, 14 Nov 2011 13:35:52 +0000 (13:35 +0000)] 
Replace wxT() with wxS() in image options definitions.

The optimal way of creating a literal strings consisting of only ASCII
characters is to use wxS() as this avoids the need for run-time conversion in
all builds while wxT() requires a conversion from wchar_t to UTF-8 in UTF-8
builds. So replace wxT() with wxS() in wxImage options definitions.

Also remove wxT() from the options documentation, it's just useless there.

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

13 years agoAdded wxIMAGE_OPTION_ORIGINAL_{WIDTH,HEIGHT} wxImage options.
Vadim Zeitlin [Mon, 14 Nov 2011 13:35:48 +0000 (13:35 +0000)] 
Added wxIMAGE_OPTION_ORIGINAL_{WIDTH,HEIGHT} wxImage options.

These options allow to retrieve the original image size if the image was
scaled during load.

Closes #13662.

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

13 years agoFall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:53 +0000 (12:51 +0000)] 
Fall back on ::GetMessagePos() if ::GetCursorPos() fails under MSW.

In some rare but reproducible cases GetCursorPos() can fail and return without
filling in the provided point. Fall back to GetMessagePos() if this happens:
this is not ideal but clearly better than using uninitialized position or hard
coding something like (0, 0).

Closes #13664.

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

13 years agoDon't redefine symbols already defined in latest MinGW headers.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:49 +0000 (12:51 +0000)] 
Don't redefine symbols already defined in latest MinGW headers.

Closes #13645.

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

13 years agoNo changes, just add another case to a switch on wxMouseButton.
Vadim Zeitlin [Mon, 14 Nov 2011 12:51:47 +0000 (12:51 +0000)] 
No changes, just add another case to a switch on wxMouseButton.

Fix warnings given when wx headers are compiled with g++ -Wswitch-enum option.

Also make the assert messages more precise and less verbose as there is no
need to include the function name in them, all relatively recent compilers
provide it via __FUNCTION__ and wxFAIL_MSG() already uses it.

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

13 years agoUpdate compile support fror wxGTK on OpenVMS
Jouk Jansen [Mon, 14 Nov 2011 09:39:43 +0000 (09:39 +0000)] 
Update compile support fror wxGTK on OpenVMS

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

13 years agolatest private API usage complaint, right now most subclasses are using their own...
Stefan Csomor [Mon, 14 Nov 2011 07:52:33 +0000 (07:52 +0000)] 
latest private API usage complaint, right now most subclasses are using their own implementation, so this shouldn't lead to problems

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

13 years agoSet focus on the browser window after loading a url. Also fix a warning.
Steve Lamerton [Sun, 13 Nov 2011 12:57:28 +0000 (12:57 +0000)] 
Set focus on the browser window after loading a url. Also fix a warning.

Closes #13660

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

13 years agoAdded stock accelerator for wxID_PRINT.
Vadim Zeitlin [Sun, 13 Nov 2011 11:51:49 +0000 (11:51 +0000)] 
Added stock accelerator for wxID_PRINT.

Ctrl+P is a pretty standard accelerator for the "Print" command so add it as a
stock one.

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

13 years agoUse wxConvertStringToOle() in wxWebViewIE code.
Vadim Zeitlin [Sat, 12 Nov 2011 22:47:11 +0000 (22:47 +0000)] 
Use wxConvertStringToOle() in wxWebViewIE code.

Fix compilation in wxUSE_UNICODE=0 case.

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

13 years agoCorrect typo in wxUSE_WEBVIEW_IE test in configure.
Vadim Zeitlin [Sat, 12 Nov 2011 22:47:08 +0000 (22:47 +0000)] 
Correct typo in wxUSE_WEBVIEW_IE test in configure.

Because of a missing '$' before wxUSE_WEBVIEW_IE in the configure test
wxUSE_WEBVIEW was never enabled for wxMSW builds.

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

13 years agoReplace the sample animation timer with an idle loops and the animation with a busy...
Steve Lamerton [Sat, 12 Nov 2011 20:49:40 +0000 (20:49 +0000)] 
Replace the sample animation timer with an idle loops and the animation with a busy cursor.

Fixes #13518, #13658

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

13 years agoposition expander in center of given rectangle
Paul Cornett [Sat, 12 Nov 2011 16:50:37 +0000 (16:50 +0000)] 
position expander in center of given rectangle

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

13 years agouse correct function to free GtkTextAttributes
Paul Cornett [Fri, 11 Nov 2011 16:38:48 +0000 (16:38 +0000)] 
use correct function to free GtkTextAttributes

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

13 years agoIntercept some keys in wxMSW wxTextCtrl even if they're used as accelerators.
Vadim Zeitlin [Fri, 11 Nov 2011 14:26:06 +0000 (14:26 +0000)] 
Intercept some keys in wxMSW wxTextCtrl even if they're used as accelerators.

Bare (i.e. without any modifiers) Delete, Home and End keys are also required
by the text control itself so don't handle them as accelerators when wxTextCtrl
has focus.

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

13 years agoAdd compile support for widgets sample on OpenVMS
Jouk Jansen [Thu, 10 Nov 2011 14:41:14 +0000 (14:41 +0000)] 
Add compile support for widgets sample on OpenVMS

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

13 years agoCompilation fix for wxUSE_UNICODE=0 build after wxUSE_STL=1 fix.
Vadim Zeitlin [Thu, 10 Nov 2011 11:58:04 +0000 (11:58 +0000)] 
Compilation fix for wxUSE_UNICODE=0 build after wxUSE_STL=1 fix.

The result of wxString::mb_str() can't be converted to wxScopedCharBuffer in
non-Unicode build but converting it to wxCharBuffer is always fine (though
slightly less efficient).

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

13 years agoCorrect the direction passed to wxDataObject in wxOSX clipboard code.
Vadim Zeitlin [Thu, 10 Nov 2011 11:49:02 +0000 (11:49 +0000)] 
Correct the direction passed to wxDataObject in wxOSX clipboard code.

Query for formats that wxDataObject supports on input, not output, in
wxClipboard::GetData().

This is similar to r69454 For wxGTK.

Closes #13649.

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

13 years agoApplied Blit system options optimization to StretchBlit
Julian Smart [Thu, 10 Nov 2011 10:46:34 +0000 (10:46 +0000)] 
Applied Blit system options optimization to StretchBlit

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

13 years agoFix compilation in wxUSE_STL case broken by r69663.
Vadim Zeitlin [Thu, 10 Nov 2011 00:30:10 +0000 (00:30 +0000)] 
Fix compilation in wxUSE_STL case broken by r69663.

Don't rely on implicit wxString to char* conversion when calling
XRCID_Assign().

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

13 years agoRemove all unwanted occurrences of -mt/-pthread in configure.
Vadim Zeitlin [Thu, 10 Nov 2011 00:30:04 +0000 (00:30 +0000)] 
Remove all unwanted occurrences of -mt/-pthread in configure.

Remove all inappropriate compiler options and not just the first one as they
can occur multiple times because they may come from pkg-config output for
several different libraries.

Closes #13647.

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

13 years agoEnsure that there is a modal event loop before trying to use it.
Robin Dunn [Tue, 8 Nov 2011 17:40:28 +0000 (17:40 +0000)] 
Ensure that there is a modal event loop before trying to use it.

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

13 years agoAdd a border on the AutoComp list for wxOSX-Cocoa
Robin Dunn [Tue, 8 Nov 2011 17:39:38 +0000 (17:39 +0000)] 
Add a border on the AutoComp list for wxOSX-Cocoa

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

13 years agoSkip spurious blank JavaScript events in wxWebView.
Steve Lamerton [Tue, 8 Nov 2011 13:34:40 +0000 (13:34 +0000)] 
Skip spurious blank JavaScript events in wxWebView.

Closes #13481

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

13 years agoCorrectly escape the error log messages in the wxWebView sample.
Steve Lamerton [Tue, 8 Nov 2011 13:23:45 +0000 (13:23 +0000)] 
Correctly escape the error log messages in the wxWebView sample.

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

13 years agoUpdate wxHtmlWindow documentation to refer to wxWebView.
Steve Lamerton [Tue, 8 Nov 2011 11:35:38 +0000 (11:35 +0000)] 
Update wxHtmlWindow documentation to refer to wxWebView.

Closes #13608

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

13 years agoDon't include wx/msw/wrapgdip.h if !wxUSE_GRAPHICS_CONTEXT.
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:07 +0000 (11:02 +0000)] 
Don't include wx/msw/wrapgdip.h if !wxUSE_GRAPHICS_CONTEXT.

Fix compilation when GDI+ headers are not available by not including the
header that includes <gdiplus.h> in this case.

Closes #13640.

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

13 years agoMove GDK_META_MASK definition in the header in which it is also used.
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:05 +0000 (11:02 +0000)] 
Move GDK_META_MASK definition in the header in which it is also used.

The code using GDK_META_MASK was moved to wx/gtk/private/event.h from
gtk/window.cpp but the fallback definition of GDK_META_MASK for GTK+ < 2.10
remained in window.cpp.

Move it to the header as well now so that it can be compiled with GTK+ < 2.10
again.

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

13 years agoCompilation fixes for GTK+ 2.4.
Vadim Zeitlin [Tue, 8 Nov 2011 11:02:02 +0000 (11:02 +0000)] 
Compilation fixes for GTK+ 2.4.

Add missing GTK_CHECK_VERSION(2,6,0) checks.

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

13 years agoAdd missing stdio.h include to wxGTK assert dialog code.
Vadim Zeitlin [Tue, 8 Nov 2011 11:01:58 +0000 (11:01 +0000)] 
Add missing stdio.h include to wxGTK assert dialog code.

As we use FILE for saving the assert message to a file, we must include
<stdio.h> (which is not included from any other header, at least not under
Solaris).

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

13 years agoUse Enter and Space for cell editing in generic wxDVC too.
Václav Slavík [Tue, 8 Nov 2011 10:53:49 +0000 (10:53 +0000)] 
Use Enter and Space for cell editing in generic wxDVC too.

If the normal Enter or Space processing (sending activate event or doing
activatable editing respectively) isn't handled by the control, use
these keys to trigger inline editing too, as F2 does.

This makes the Windows control more similar to OS X and GTK+ ones and
makes discovering editability easier.

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

13 years agoUpdates to compile WX on OpenVMS
Jouk Jansen [Mon, 7 Nov 2011 09:42:06 +0000 (09:42 +0000)] 
Updates to compile WX on OpenVMS

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

13 years agowxGTK1 should not include .h files for wxGTK
Jouk Jansen [Mon, 7 Nov 2011 09:34:50 +0000 (09:34 +0000)] 
wxGTK1 should not include .h files for wxGTK

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

13 years agoUpdated all message catalogs to correspond to the current sources.
Vadim Zeitlin [Sun, 6 Nov 2011 12:07:35 +0000 (12:07 +0000)] 
Updated all message catalogs to correspond to the current sources.

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

13 years agoChinese translations update from Jiawei Huang.
Vadim Zeitlin [Sun, 6 Nov 2011 12:06:46 +0000 (12:06 +0000)] 
Chinese translations update from Jiawei Huang.

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

13 years agoUse current time, not the Epoch for time zone determination.
Vadim Zeitlin [Sun, 6 Nov 2011 12:06:43 +0000 (12:06 +0000)] 
Use current time, not the Epoch for time zone determination.

When deducing the time zone from struct tm tm_gmtoff field, query tm for the
current time and not the Epoch as the DST rules -- and hence the time zone
offset -- could have changed since 1970. This is notably the case for Ireland
which used a different time zone from 1968 to 1971.

Notice that GetTimeZone() still must return the time zone without taking DST
into account, so we explicitly compensate for DST if it's in effect.

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

13 years agoFix wxArray::Index() with bFromEnd=true in STL build.
Václav Slavík [Sat, 5 Nov 2011 15:20:32 +0000 (15:20 +0000)] 
Fix wxArray::Index() with bFromEnd=true in STL build.

This function incorrectly returned index from the end of the array when
searching from the end. Fixed to work as the non-STL version.

Fixes #13626.

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

13 years agoTest correctness of wxArray::Index() with bFromEnd=true.
Václav Slavík [Sat, 5 Nov 2011 15:20:11 +0000 (15:20 +0000)] 
Test correctness of wxArray::Index() with bFromEnd=true.

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

13 years agono real change: just move Docset/CHM/QCH declarations in their own sections
Francesco Montorsi [Sat, 5 Nov 2011 12:25:46 +0000 (12:25 +0000)] 
no real change: just move Docset/CHM/QCH declarations in their own sections

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

13 years agoMove detailed documentation to the top, leaving styles and event tables at the bottom...
Francesco Montorsi [Sat, 5 Nov 2011 11:55:42 +0000 (11:55 +0000)] 
Move detailed documentation to the top, leaving styles and event tables at the bottom, like for any other wxWidgets control

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

13 years agofix some simple Doxygen warning
Francesco Montorsi [Sat, 5 Nov 2011 11:55:00 +0000 (11:55 +0000)] 
fix some simple Doxygen warning

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

13 years agobetter links to the stock item ID list
Francesco Montorsi [Sat, 5 Nov 2011 11:54:14 +0000 (11:54 +0000)] 
better links to the stock item ID list

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

13 years agoAllow reusing the same wxWindowID more than 254 times.
Vadim Zeitlin [Sat, 5 Nov 2011 11:24:04 +0000 (11:24 +0000)] 
Allow reusing the same wxWindowID more than 254 times.

Extend the id reference count storage to use an overflow hash map for the ids
used more than 254 times. This allows to use the same id an arbitrarily large
number of times.

Closes #13618.

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

13 years agoUse wxWindowUpdateLocker to speed up updates of the static widgets sample page.
Vadim Zeitlin [Sat, 5 Nov 2011 11:24:00 +0000 (11:24 +0000)] 
Use wxWindowUpdateLocker to speed up updates of the static widgets sample page.

See #13619.

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

13 years agoFix adding a control to two different sizers in the widgets sample.
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:57 +0000 (11:23 +0000)] 
Fix adding a control to two different sizers in the widgets sample.

A checkbox on the static page was added to two sizers at once, resulting in
heap corruption later. Fix this by adding it to the right sizer only.

Closes #13619.

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

13 years agoTranslate the log message in wxLog destructor.
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:54 +0000 (11:23 +0000)] 
Translate the log message in wxLog destructor.

The message about losing the last message was not translated for some reason,
do translate it now.

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

13 years agoFix format string in wxLog::LogLastRepeatIfNeeded().
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:51 +0000 (11:23 +0000)] 
Fix format string in wxLog::LogLastRepeatIfNeeded().

We used a format string without any format specifiers in it in a call to
wxString::Printf() which always had a parameter resulting in an assert failure
about a mismatch between the string and parameter count.

Fix this by using a separate Printf() call for this case.

Closes #13613.

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

13 years agoUse correct direction in wxDataObject::IsSupported() in wxOSX dnd code.
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:48 +0000 (11:23 +0000)] 
Use correct direction in wxDataObject::IsSupported() in wxOSX dnd code.

Before calling wxDataObject::SetData() we must check whether the object
supports this format using IsSupported(Set) instead of just IsSupported()
which does the test in the "Get" direction.

Closes #13615.

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

13 years agoDon't read beyond the end of input buffer when decoding UTF-16.
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:44 +0000 (11:23 +0000)] 
Don't read beyond the end of input buffer when decoding UTF-16.

wxMBConvStrictUTF8::FromWChar() didn't update the input length correctly when
encountering a surrogate while decoding UTF-16 and could read beyond the end
of the input buffer in this case.

Fix this by simply adjusting the input length when a surrogate is read.

Closes #13614.

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

13 years agoAdd wxConvAuto::GetBOMChars() helper.
Vadim Zeitlin [Sat, 5 Nov 2011 11:23:41 +0000 (11:23 +0000)] 
Add wxConvAuto::GetBOMChars() helper.

Closes #13620.

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

13 years agodocument wxLogGeneric() function
Francesco Montorsi [Sat, 5 Nov 2011 10:44:35 +0000 (10:44 +0000)] 
document wxLogGeneric() function

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

13 years agodocument wxConfigPathChanger helper class
Francesco Montorsi [Sat, 5 Nov 2011 10:42:16 +0000 (10:42 +0000)] 
document wxConfigPathChanger helper class

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

13 years agoRename lineAnchor in Scintilla code to avoid shadowing warning.
Vadim Zeitlin [Sat, 5 Nov 2011 10:28:48 +0000 (10:28 +0000)] 
Rename lineAnchor in Scintilla code to avoid shadowing warning.

Local variable "lineAnchor" in Editor::SetRectangularRange() was shadowing the
member variable Editor::lineAnchor, resulting in warnings from some compilers
(AIX xlC, Sun CC).

Rename it to "lineAnchorRect", just as it was done in the latest Scintilla
sources, to avoid them.

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

13 years agoCorrect the misleading example of using id ranges in XRC documentation.
Vadim Zeitlin [Fri, 4 Nov 2011 17:41:20 +0000 (17:41 +0000)] 
Correct the misleading example of using id ranges in XRC documentation.

"range[end]" is the last id in the range, inclusive, not the first id after it
so any loops iterating over all ids in the range should cover it as well.

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

13 years agoSimplify wxIdRange code by using new XRCID_Assign() function.
Vadim Zeitlin [Fri, 4 Nov 2011 17:40:49 +0000 (17:40 +0000)] 
Simplify wxIdRange code by using new XRCID_Assign() function.

Only traverse the id hash once in XRCID_Assign() instead of using
RemoveXRCIDEntry() to delete the old entry (which usually doesn't exist so
this traversed the entire hash) followed by XRCID_Lookup() to create a new one.

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

13 years agoFix choice of tree item icon for the selected state in wxMSW.
Vadim Zeitlin [Fri, 4 Nov 2011 12:02:07 +0000 (12:02 +0000)] 
Fix choice of tree item icon for the selected state in wxMSW.

The logic for selecting the item icon was broken when selected image was
specified as it was not taken into account as fallback for selected expanded
state so selected icon was used only for collapsed items.

Fix this by using the selected icon if it is specified and selected expanded
one is not.

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

13 years agoMake wxQsort() definition exactly the same as declaration.
Vadim Zeitlin [Fri, 4 Nov 2011 09:09:54 +0000 (09:09 +0000)] 
Make wxQsort() definition exactly the same as declaration.

Remove the extra "const" in the first parameter.

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

13 years agoAdd wxAnyButton so the shared class hierarchy of wxButton and wxToggleButton is accurate.
Robin Dunn [Fri, 4 Nov 2011 03:38:09 +0000 (03:38 +0000)] 
Add wxAnyButton so the shared class hierarchy of wxButton and wxToggleButton is accurate.

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