]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoCorrect placement of calling convention keyword: must follow the return type.
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:27 +0000 (03:04 +0000)] 
Correct placement of calling convention keyword: must follow the return type.

Using __stdcall before the return type results in a warning with VC6 and an
error with VC9, place it after the return type.

Also use wxSTDCALL instead of just __stdcall for potentially better
compatibility with other compilers.

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

15 years agoRegenerate dll samples makefiles using the correct source file name.
Vadim Zeitlin [Mon, 7 Dec 2009 03:04:22 +0000 (03:04 +0000)] 
Regenerate dll samples makefiles using the correct source file name.

The file is called wx_exe.cpp and not dll_user_wx.cpp in the svn, do use the
correct name.

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

15 years agoRemove a couple of VC6 workspace files for the samples.
Vadim Zeitlin [Mon, 7 Dec 2009 02:20:05 +0000 (02:20 +0000)] 
Remove a couple of VC6 workspace files for the samples.

See r62797.

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

15 years agoRemove the MSVC solution files added with the new dll sample.
Vadim Zeitlin [Mon, 7 Dec 2009 02:18:10 +0000 (02:18 +0000)] 
Remove the MSVC solution files added with the new dll sample.

We don't keep solution files in svn for the other samples, there is no reason
for this one to be exceptional.

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

15 years agoAdd wxTLW::SetModified to allow apps to set the TLW's dirty state. On Mac this gives...
Kevin Ollivier [Mon, 7 Dec 2009 01:54:21 +0000 (01:54 +0000)] 
Add wxTLW::SetModified to allow apps to set the TLW's dirty state. On Mac this gives us the dot in the close button, not implemented elsewhere yet.

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

15 years agoHandle deprecated style so we don't assert and then crash.
Kevin Ollivier [Sun, 6 Dec 2009 16:32:11 +0000 (16:32 +0000)] 
Handle deprecated style so we don't assert and then crash.

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

15 years agoRestore TAB in accelerator string wrong removed by r62791.
Vadim Zeitlin [Sun, 6 Dec 2009 15:31:02 +0000 (15:31 +0000)] 
Restore TAB in accelerator string wrong removed by r62791.

See #11512.

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

15 years agoCorrect two bugs in wxMBConv::FromWChar() with non NUL-terminated strings.
Vadim Zeitlin [Sun, 6 Dec 2009 02:30:05 +0000 (02:30 +0000)] 
Correct two bugs in wxMBConv::FromWChar() with non NUL-terminated strings.

The variable "lenChunk" was incorrectly used as the length of the wide string
chunk which could result in wrong output.

Worse, the output buffer could be overflown for the final chunk because it
didn't have to have enough space for the trailing NUL(s) in it.

Fix both bugs and added unit tests for them.

Based on patch by Kuang-che Wu.

Closes #11486.

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

15 years agoMinor corrections to ToWChar() comment.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:56 +0000 (02:29 +0000)] 
Minor corrections to ToWChar() comment.

Don't refer to the non-existent outputBuf parameter and don't imply that the
value of dstLen matters to decide whether we really convert or not -- only
whether dst pointer itself is NULL or not does.

See #11486.

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

15 years agoUse wxAcceleratorEntry::ToString() for undo/redo accelerator labels.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:49 +0000 (02:29 +0000)] 
Use wxAcceleratorEntry::ToString() for undo/redo accelerator labels.

Don't hardcode the string representation of the accelerators, it was
inconsistent with the rest of wxWidgets which used '-' while here a '+' was
used.

Closes #11512.

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

15 years agoFix wxFD_CLR() definition for Intel compiler under Linux.
Vadim Zeitlin [Sun, 6 Dec 2009 02:29:42 +0000 (02:29 +0000)] 
Fix wxFD_CLR() definition for Intel compiler under Linux.

wxFD_CLR() should be void, not bool.

Closes #11517.

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

15 years agominor cleanup
Paul Cornett [Sat, 5 Dec 2009 19:57:58 +0000 (19:57 +0000)] 
minor cleanup

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

15 years agoremove unused variables, minor cleanup
Paul Cornett [Sat, 5 Dec 2009 19:45:42 +0000 (19:45 +0000)] 
remove unused variables, minor cleanup

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

15 years agoremove -I on nonexistent directory
Paul Cornett [Sat, 5 Dec 2009 19:29:06 +0000 (19:29 +0000)] 
remove -I on nonexistent directory

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

15 years agoremove unnecessary DoGetBestSize
Paul Cornett [Sat, 5 Dec 2009 19:26:39 +0000 (19:26 +0000)] 
remove unnecessary DoGetBestSize

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

15 years agosimplify Enable()
Paul Cornett [Sat, 5 Dec 2009 19:25:04 +0000 (19:25 +0000)] 
simplify Enable()

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

15 years agoAdded samples/dll for showing how to use wxWidgets to implement
Václav Slavík [Sat, 5 Dec 2009 18:54:40 +0000 (18:54 +0000)] 
Added samples/dll for showing how to use wxWidgets to implement
a DLL that is used from another application written with a different
toolkit (or different wx version).

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

15 years agoImplement wxNativeContainerWindow::IsShown() for MSW.
Vadim Zeitlin [Sat, 5 Dec 2009 17:31:07 +0000 (17:31 +0000)] 
Implement wxNativeContainerWindow::IsShown() for MSW.

Simply use native ::IsWindowVisible() for IsShown() implementation.

Closes #11503.

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

15 years agoAdd support for MSW unique volume names to wxFileName.
Vadim Zeitlin [Sat, 5 Dec 2009 17:31:00 +0000 (17:31 +0000)] 
Add support for MSW unique volume names to wxFileName.

Recognize the paths starting with "\\?\Volume{GUID}" under MSW and provide a
way to test for them.

Closes #8874.

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

15 years agoDon't lock global mutex when deleting wxThread to avoid deadlocks.
Vadim Zeitlin [Sat, 5 Dec 2009 17:30:53 +0000 (17:30 +0000)] 
Don't lock global mutex when deleting wxThread to avoid deadlocks.

Calling out the user-defined wxThread dtor while holding gs_mutexDeleteThread
lock is a bad idea as it may result in deadlocks if the dtor deletes another
thread. Only lock the mutex directly before manipulating the data it protects.

Thanks to Neno Ganchev.

Closes #11501.

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

15 years agoDon't crash in wxActiveXContainer if FindConnectionPoint() failed.
Vadim Zeitlin [Sat, 5 Dec 2009 14:25:53 +0000 (14:25 +0000)] 
Don't crash in wxActiveXContainer if FindConnectionPoint() failed.

This method is supposed to succeed but don't crash by calling Advise() on NULL
pointer if it did not.

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

15 years agoDocumented that wxCriticalSection can be used before wxInitialize(), as a global...
Václav Slavík [Sat, 5 Dec 2009 09:05:45 +0000 (09:05 +0000)] 
Documented that wxCriticalSection can be used before wxInitialize(), as a global object.

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

15 years agoFix wxLogChain (and wxLogWindow deriving from it) broken by wxLog changes.
Vadim Zeitlin [Sat, 5 Dec 2009 01:32:45 +0000 (01:32 +0000)] 
Fix wxLogChain (and wxLogWindow deriving from it) broken by wxLog changes.

wxLogChain::DoLogRecord() only called DoLogRecord() on the old logger but not
the new one when the new logger was the same object as wxLogChain itself as is
always the case for wxLogWindow. The result was that nothing was logged into
the window.

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

15 years agoExit wxPropertyGrid::RecalculateVirtualSize() immediately if it was called before...
Jaakko Salli [Thu, 3 Dec 2009 18:19:31 +0000 (18:19 +0000)] 
Exit wxPropertyGrid::RecalculateVirtualSize() immediately if it was called before the grid state was initialized.

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

15 years agoHandle the rare case where wxPropertyGrid::HandleCustomEditorEvent() may receive...
Jaakko Salli [Thu, 3 Dec 2009 18:08:24 +0000 (18:08 +0000)] 
Handle the rare case where wxPropertyGrid::HandleCustomEditorEvent() may receive event before the grid state has been initialized.

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

15 years agomake access for virtuals match base
Paul Cornett [Thu, 3 Dec 2009 17:20:15 +0000 (17:20 +0000)] 
make access for virtuals match base

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

15 years agoSuppress errors from static bitmap page of widgets sample.
Vadim Zeitlin [Thu, 3 Dec 2009 16:26:25 +0000 (16:26 +0000)] 
Suppress errors from static bitmap page of widgets sample.

Don't fail loudly if the image file is not found (which can happen under Unix
if the image sample wasn't built yet or if we're not running the sample from
its own directory) but just don't create the bitmap.

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

15 years agoDon't assert if the path is not absolute in wxFileDialog::SetPath().
Vadim Zeitlin [Thu, 3 Dec 2009 16:26:15 +0000 (16:26 +0000)] 
Don't assert if the path is not absolute in wxFileDialog::SetPath().

Remove the assert added in r62101 (see #10917), it was wrong as the other
ports do not assert in this case. Instead, just ensure that the path we use
with the GTK+ native chooser is absolute.

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

15 years agomake array data fully const
Paul Cornett [Wed, 2 Dec 2009 17:28:45 +0000 (17:28 +0000)] 
make array data fully const

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

15 years agouse const_cast where appropriate
Paul Cornett [Wed, 2 Dec 2009 17:27:17 +0000 (17:27 +0000)] 
use const_cast where appropriate

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

15 years agocheck for self assignment in operator=
Paul Cornett [Wed, 2 Dec 2009 16:36:50 +0000 (16:36 +0000)] 
check for self assignment in operator=

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

15 years agoCompilation fix after r62754.
Vadim Zeitlin [Wed, 2 Dec 2009 13:27:17 +0000 (13:27 +0000)] 
Compilation fix after r62754.

Don't pass second argument to wxPizza::New() any more in wxStaticBox.

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

15 years agoRemoved hard-coded timer Id in wxAUI for the transparent hint fade functionality...
Bryan Petty [Wed, 2 Dec 2009 00:57:56 +0000 (00:57 +0000)] 
Removed hard-coded timer Id in wxAUI for the transparent hint fade functionality. (fixes #11435)

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

15 years agoForward-port of r62758 (Added wxHtmlEasyPrinting name accessor and modifier).
Bryan Petty [Tue, 1 Dec 2009 20:23:29 +0000 (20:23 +0000)] 
Forward-port of r62758 (Added wxHtmlEasyPrinting name accessor and modifier).

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

15 years agoremove m_backing_window member, to keep people from trying to use it
Paul Cornett [Tue, 1 Dec 2009 17:16:28 +0000 (17:16 +0000)] 
remove m_backing_window member, to keep people from trying to use it

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

15 years agoAdd wxOSX_10_6_AND_LATER macro and use it.
Vadim Zeitlin [Tue, 1 Dec 2009 16:47:33 +0000 (16:47 +0000)] 
Add wxOSX_10_6_AND_LATER macro and use it.

Replace all occurrences of

@interface wxFoo : NSFoo
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
    <NSProtocol>
#endif

which we used for protocols new in 10.6 with just

@interface wxFoo : NSFoo wxOSX_10_6_AND_LATER(<NSProtocol>)

which looks better and simpler.

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

15 years agoremove unused data member
Paul Cornett [Tue, 1 Dec 2009 16:23:48 +0000 (16:23 +0000)] 
remove unused data member

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

15 years agoDefine _CRT_NONSTDC_NO_WARNINGS to suppress MSVC warning in libtiff.
Vadim Zeitlin [Tue, 1 Dec 2009 00:43:15 +0000 (00:43 +0000)] 
Define _CRT_NONSTDC_NO_WARNINGS to suppress MSVC warning in libtiff.

Defining lfind as _lfind is not enough and a warning C4996 is still generated
by MSVC9 when the function is called.

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

15 years agoDefine _CRT_SECURE_NO_WARNINGS when building 3rd party libs with MSVC.
Vadim Zeitlin [Tue, 1 Dec 2009 00:42:19 +0000 (00:42 +0000)] 
Define _CRT_SECURE_NO_WARNINGS when building 3rd party libs with MSVC.

Avoid dozens of warnings about "unsafe" use of the standard C library
functions in 3rd party code which are harmless and which we don't care about
in any case.

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

15 years agousing 64bit APIs, closes #10184
Stefan Csomor [Mon, 30 Nov 2009 17:47:37 +0000 (17:47 +0000)] 
using 64bit APIs, closes #10184

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

15 years agopartially revert changes of r58531 as wxCollapsiblePane currently doesn't work with...
Francesco Montorsi [Mon, 30 Nov 2009 13:17:06 +0000 (13:17 +0000)] 
partially revert changes of r58531 as wxCollapsiblePane currently doesn't work with GTK+ 2.18.3 (altough it does work with GTK+ 2.12.2); all following changes (r58632,58718,61109) should have been preserved

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

15 years agoorderBack puts it behind all windows in its level, including in other apps, so use...
Kevin Ollivier [Mon, 30 Nov 2009 01:08:04 +0000 (01:08 +0000)] 
orderBack puts it behind all windows in its level, including in other apps, so use orderFront instead.

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

15 years agoFix compilation of image sample with wxUSE_LIBPNG==0.
Vadim Zeitlin [Mon, 30 Nov 2009 00:30:15 +0000 (00:30 +0000)] 
Fix compilation of image sample with wxUSE_LIBPNG==0.

Also don't propose to save the file using the extensions not supported in this
library build.

Closes #11495.

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

15 years agoFix compilation in wxUSE_STL==1 case broken by r62738.
Vadim Zeitlin [Mon, 30 Nov 2009 00:30:08 +0000 (00:30 +0000)] 
Fix compilation in wxUSE_STL==1 case broken by r62738.

We need to use wxString::c_str() explicitly to convert wxString to const char
* in STL build.

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

15 years agoMake sure we setup the base's Show state correctly and send a show event.
Kevin Ollivier [Sun, 29 Nov 2009 21:46:15 +0000 (21:46 +0000)] 
Make sure we setup the base's Show state correctly and send a show event.

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

15 years agoFixed regression: forgot to set wxPropertyGridPageState::m_anyModified to false in...
Jaakko Salli [Sun, 29 Nov 2009 09:42:45 +0000 (09:42 +0000)] 
Fixed regression: forgot to set wxPropertyGridPageState::m_anyModified to false in wxPropertyGridInterface::ClearModifiedStatus().

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

15 years agoFix needed to allow shaped windows, and other windows without a title bar, to get...
Kevin Ollivier [Sat, 28 Nov 2009 20:09:00 +0000 (20:09 +0000)] 
Fix needed to allow shaped windows, and other windows without a title bar, to get the focus when clicked under OS X.

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

15 years ago64bit builds had problems with full circles, as we can use 10.4+ only APIs, use new...
Stefan Csomor [Sat, 28 Nov 2009 20:05:39 +0000 (20:05 +0000)] 
64bit builds had problems with full circles, as we can use 10.4+ only APIs, use new implementation, fixes #11471

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

15 years agoAllow calling wxStrchr() with a narrow string and wide character.
Vadim Zeitlin [Sat, 28 Nov 2009 14:37:03 +0000 (14:37 +0000)] 
Allow calling wxStrchr() with a narrow string and wide character.

Calls to wxStrchr(char-string, wide-char) would previously fail if wide
character couldn't be converted to a single character in the current locale
encoding. Change it to simply return NULL in this case as it's a safe and
useful generalization: a narrow string will never contain a wide character not
representable in the current locale.

Add wxUniChar::GetAsChar() to help with implementing this.

Closes #11487.

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

15 years agoDefine INVALID_FILE_ATTRIBUTES in filename.cpp too.
Vadim Zeitlin [Sat, 28 Nov 2009 03:37:41 +0000 (03:37 +0000)] 
Define INVALID_FILE_ATTRIBUTES in filename.cpp too.

Fix VC6 compilation: INVALID_FILE_ATTRIBUTES is not defined in its headers so
we need to do it ourselves (this was done in filefn.cpp before but part of the
code using this constant was moved to filename.cpp in r62735 so now we need to
define it here too).

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

15 years agoNo changes, just remove unnecessary UTF-8 bytes.
Vadim Zeitlin [Sat, 28 Nov 2009 03:37:36 +0000 (03:37 +0000)] 
No changes, just remove unnecessary UTF-8 bytes.

The patch of #11187 (applied in r61884) unnecessarily used +U2019 which can't
be converted to latin1, remove it.

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

15 years agoImplement wx{File,Dir}Exists() in terms of wxFileName methods.
Vadim Zeitlin [Sat, 28 Nov 2009 02:40:08 +0000 (02:40 +0000)] 
Implement wx{File,Dir}Exists() in terms of wxFileName methods.

Use wxFileName from the global functions instead of using global functions in
wxFileName methods as wxFileName is the preferred API for all these
operations.

Closes #11488.

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

15 years agoDon't override msw.remap system option value in wxToolbook.
Vadim Zeitlin [Sat, 28 Nov 2009 02:29:08 +0000 (02:29 +0000)] 
Don't override msw.remap system option value in wxToolbook.

Introducing a system option for all toolbars and then ignoring it inside wx
itself is ridiculous and just goes to prove that this option itself was a
mistake. But as we have it, we should respect whatever value it's set to
(which should hopefully be 0 anyhow for most modern systems) instead of
overriding it forcefully making the mockery of the whole "option" concept.

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

15 years agoAvoid infinite recursion in wxToolbook::OnSize() under wxMSW.
Vadim Zeitlin [Sat, 28 Nov 2009 02:29:02 +0000 (02:29 +0000)] 
Avoid infinite recursion in wxToolbook::OnSize() under wxMSW.

Reset m_needsRealizing flag before calling wxToolBar::Realize() as doing this
can result in another call to wxToolbook::OnSize() itself.

Closes #11942.

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

15 years agoUse OUTLINETEXTMETRIC::otmpFamilyName to get wxFont face name from MSW.
Vadim Zeitlin [Sat, 28 Nov 2009 02:28:57 +0000 (02:28 +0000)] 
Use OUTLINETEXTMETRIC::otmpFamilyName to get wxFont face name from MSW.

In spite of the name, we need to use otmpFamilyName member of
OUTLINETEXTMETRIC struct and not otmpFaceName to get the font face name: the
latter may contain (locale-dependent, so the changes of r62708 didn't work for
non-English versions of Windows) "Italic" or "Bold" suffix while the former
does not and is what we want.

This should really fix the unit test failures, even in French locale.

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

15 years agoCompilation fix for wxUSE_CAIRO==0 after last commit.
Vadim Zeitlin [Fri, 27 Nov 2009 21:36:03 +0000 (21:36 +0000)] 
Compilation fix for wxUSE_CAIRO==0 after last commit.

Include wx/graphics.h when wxUSE_CAIRO==0 but wxUSE_GRAPHICS_CONTEXT==1 (as in
e.g. MSW builds).

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

15 years agoDefine wxUSE_CAIRO in wx/chkconf.h to ensure that it's always defined.
Vadim Zeitlin [Fri, 27 Nov 2009 21:06:03 +0000 (21:06 +0000)] 
Define wxUSE_CAIRO in wx/chkconf.h to ensure that it's always defined.

wxUSE_CAIRO used to be defined only in wx/cairo.h but this header wasn't
included by src/common/dcgraph.cpp so the code there was compiled as if we
were not using Cairo even when we were (thanks g++ for the warning).

Define it in wx/chkconf.h (included from wx/defs.h, i.e. always) now to ensure
that not only this bug is fixed but also that it can't happen any more.

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

15 years agoUse #ifdef to check for __WXMSW__ and __WXGTK__ and not #if.
Vadim Zeitlin [Fri, 27 Nov 2009 21:05:57 +0000 (21:05 +0000)] 
Use #ifdef to check for __WXMSW__ and __WXGTK__ and not #if.

Using #if doesn't work when symbols are not defined.

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

15 years agoAllow changing horizontal alignment of numeric cells in wxGrid.
Vadim Zeitlin [Fri, 27 Nov 2009 01:47:38 +0000 (01:47 +0000)] 
Allow changing horizontal alignment of numeric cells in wxGrid.

wxGridCellAttr didn't provide any way to query its alignment attributes
without falling back to the (always defined) default alignment so the code in
wxGridCellNumberRenderer and similar classes simply always used right
alignment,

Add a new wxGridCellAttr::GetNonDefaultAlignment() function which allows to
retrieve the alignment defined in the attribute and use it to use right
alignment by default but allow overriding it.

Add a test to the sample showing a non right-aligned numeric cell.

Incidentally fix a long-standing bug in wxGridCell{DateTime,Enum}Renderers
which used wxRIGHT instead of wxALIGN_RIGHT and so were not aligned properly
even by default.

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

15 years agoAdd symbolic constant wxALIGN_INVALID and use it instead of -1 in wxGrid.
Vadim Zeitlin [Fri, 27 Nov 2009 01:47:30 +0000 (01:47 +0000)] 
Add symbolic constant wxALIGN_INVALID and use it instead of -1 in wxGrid.

wxGridCellAttr was using literal -1 to indicate "no alignment" which wasn't
immediately obvious, use a new wxALIGN_INVALID (which has the same value)
instead.

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

15 years agoBuild fix for OS X <= 10.5.
Kevin Ollivier [Thu, 26 Nov 2009 23:14:28 +0000 (23:14 +0000)] 
Build fix for OS X <= 10.5.

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

15 years agoAllow OS X Cocoa (or any OS X port) to override GetBestSize and provide a native...
Kevin Ollivier [Thu, 26 Nov 2009 23:11:27 +0000 (23:11 +0000)] 
Allow OS X Cocoa (or any OS X port) to override GetBestSize and provide a native OS X Cocoa impl. Also, fix the line ending check under OS X Cocoa, and a sanity check for SetStyle.

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

15 years agoAdd CheckSpelling support for OS X Cocoa, make sure NSTextView-based wxTextCtrls...
Kevin Ollivier [Thu, 26 Nov 2009 21:52:42 +0000 (21:52 +0000)] 
Add CheckSpelling support for OS X Cocoa, make sure NSTextView-based wxTextCtrls emit EVT_TEXT, and a fix for GetStyle when position == length.

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

15 years agoMake wxFileDialog::Set/SetPath() behave consistently.
Vadim Zeitlin [Thu, 26 Nov 2009 16:17:00 +0000 (16:17 +0000)] 
Make wxFileDialog::Set/SetPath() behave consistently.

wxFileDialog::GetPath() didn't return the value set by a previous call to
SetPath() in wxMSW version. Fix this and also implement SetPath() and
SetDirectory() methods in the generic versions in the same way as
SetFilename().

Closes #3672.

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

15 years agoDon't set wxTextAttr font family to invalid value.
Vadim Zeitlin [Thu, 26 Nov 2009 15:59:27 +0000 (15:59 +0000)] 
Don't set wxTextAttr font family to invalid value.

wxTextAttr::HasFontFamily() shouldn't return true if there is no valid font
family in this attribute but this could happen if it was constructed from a
font which didn't know its own family.

This fixes asserts on the startup of the text sample in wxMSW due to passing
wxFONTFAMILY_UNKNOWN to wxFont::SetFamily() when trying to use such invalid
attribute later.

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

15 years agoUse wxTE_RICH style for the log window in the text sample.
Vadim Zeitlin [Thu, 26 Nov 2009 15:59:20 +0000 (15:59 +0000)] 
Use wxTE_RICH style for the log window in the text sample.

This makes it have nicer colour (white instead of grey by default) under MSW
and wxTE_RICH was already in the code, just commented out -- it seems it's
better to enable it (as it also allows more text to be shown in the control
under old Windows versions) than to remove it.

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

15 years agoExplicitly set the cursor when showing popup menu on text control in wxMSW.
Vadim Zeitlin [Thu, 26 Nov 2009 03:29:27 +0000 (03:29 +0000)] 
Explicitly set the cursor when showing popup menu on text control in wxMSW.

Without this, an I-beam cursor is used when a menu is shown by a rich text
control. Set the arrow cursor explicitly to work around this apparent bug in
the native control.

Closes #11314.

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

15 years agoNo changes, just avoid overriding GetNativeFontInfoDesc() in wxMSW wxFont.
Vadim Zeitlin [Thu, 26 Nov 2009 02:34:01 +0000 (02:34 +0000)] 
No changes, just avoid overriding GetNativeFontInfoDesc() in wxMSW wxFont.

wxFont::GetNativeFontInfoDesc() and GetNativeFontInfoUserDesc() were
overridden just to ensure that the font is realized but it makes sense to do
it in wxFontRefData::GetNativeFontInfo() itself as detecting the face name
won't work if the font is not realized anyhow. And then we don't need these
functions at all as the only thing they do is checking that the font is valid
when they are called but this can be done in the base class itself as this
should happen in all ports (document that this is the case).

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

15 years agoReturn face name from wxFont::GetNativeFontInfo() under MSW.
Vadim Zeitlin [Thu, 26 Nov 2009 02:33:53 +0000 (02:33 +0000)] 
Return face name from wxFont::GetNativeFontInfo() under MSW.

Retrieve the face name from the system if we don't have it already before
returning the native font info.

This fixes the currently failing font unit tests.

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

15 years agoDon't use unsafe strcpy() when parsing wxNativeFontInfo.
Vadim Zeitlin [Tue, 24 Nov 2009 00:02:21 +0000 (00:02 +0000)] 
Don't use unsafe strcpy() when parsing wxNativeFontInfo.

Fix a nice buffer overflow waiting to happen due to the use of wxStrcpy().
Call wxNativeFontInfo::SetFaceName() which uses wxStrlcpy() instead.

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

15 years agoDon't return italic/bold suffix from wxFont::GetFaceName() in wxMSW.
Vadim Zeitlin [Tue, 24 Nov 2009 00:02:05 +0000 (00:02 +0000)] 
Don't return italic/bold suffix from wxFont::GetFaceName() in wxMSW.

These suffixes don't make part of the face name in wx API but the native MSW
API which we use since r62675 does return them. This made the unit test fail
in SettingsTestCase::GlobalFonts() as a face name with such suffix wasn't
recognized as a valid face name any more, so simply remove them.

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

15 years agoMake the assert in SettingsTestCase::GlobalFonts() more informative.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:51 +0000 (00:01 +0000)] 
Make the assert in SettingsTestCase::GlobalFonts() more informative.

Show the index of the font and the face name which was invalid.

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

15 years agoFix wxListCtrl::GetSubItemRect(wxLIST_RECT_ICON/LABEL) in wxMSW for column 0.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:38 +0000 (00:01 +0000)] 
Fix wxListCtrl::GetSubItemRect(wxLIST_RECT_ICON/LABEL) in wxMSW for column 0.

Wrong width was returned for the icon or label rectangle when querying the
first column. Fix this and add a test to the sample allowing to check this.

GetSubItemRect() still returns wrong results for second and subsequent
columns, see #11355.

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

15 years agoDon't change file access time implicitly when setting it explicitly.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:25 +0000 (00:01 +0000)] 
Don't change file access time implicitly when setting it explicitly.

wxFileHandle helper class used in wxFileName::SetTimes() under MSW modified
the file access time by setting it to the current time because it opened the
file in a wrong mode.

Closes #10567.

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

15 years agoEnable wxGraphicsContext and related classes by default if supported.
Vadim Zeitlin [Tue, 24 Nov 2009 00:01:15 +0000 (00:01 +0000)] 
Enable wxGraphicsContext and related classes by default if supported.

For MSW, check for gdiplus.h availability when using configure but only
support it for MSVC 7+ otherwise. For the other platforms, always support it.

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

15 years agoMade Unicode the default in symbols dialog.
Julian Smart [Mon, 23 Nov 2009 09:34:07 +0000 (09:34 +0000)] 
Made Unicode the default in symbols dialog.
Fixed wrongly sized symbols dialog.

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

15 years agoDefine wxNO_RTTI if RTTI support is disabled for g++ or MSVC.
Vadim Zeitlin [Sun, 22 Nov 2009 11:24:09 +0000 (11:24 +0000)] 
Define wxNO_RTTI if RTTI support is disabled for g++ or MSVC.

For g++ it could have been possible to define wxNO_RTTI in configure itself
but it seems better/simpler/more maintainable to do it in C++ code. As for
MSVC, we already define wxNO_RTTI correctly if build/msw/makefile.vc is used
but not if (modified or rebaked) project files are used and detecting RTTI
support in the code is the only way to fix it.

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

15 years agoDocument that throwing exceptions from wxTimer::Notify() is unsupported.
Vadim Zeitlin [Sun, 22 Nov 2009 11:24:03 +0000 (11:24 +0000)] 
Document that throwing exceptions from wxTimer::Notify() is unsupported.

Currently exceptions thrown from this function are not passed to wxApp::
OnExceptionInMainLoop() (unlike exceptions thrown from timer event handlers).

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

15 years agoFixed Cut&Paste error in wxTextCtrl::ChangeValue documentation (fixes #11469).
Stefan Neis [Sun, 22 Nov 2009 11:00:42 +0000 (11:00 +0000)] 
Fixed Cut&Paste error in wxTextCtrl::ChangeValue documentation (fixes #11469).

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

15 years agomaking sure creation is setup correctly for wx-frame coordinates into cocoa-content...
Stefan Csomor [Sat, 21 Nov 2009 17:02:06 +0000 (17:02 +0000)] 
making sure creation is setup correctly for wx-frame coordinates into cocoa-content coordinates, fixes #11463

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

15 years agoAdded a new documentation overview section 'Caveats When Not Using C++ RTTI', describ...
Jaakko Salli [Sat, 21 Nov 2009 11:39:32 +0000 (11:39 +0000)] 
Added a new documentation overview section 'Caveats When Not Using C++ RTTI', describing possible problems with Bind() and wxAny when C++ RTTI is disabled.

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

15 years agoUnified meaning of wxTypeIdentifier in RTTI and RTTI-less type info systems; Fixed...
Jaakko Salli [Sat, 21 Nov 2009 09:28:00 +0000 (09:28 +0000)] 
Unified meaning of wxTypeIdentifier in RTTI and RTTI-less type info systems; Fixed and added some comments

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

15 years agoFix compilation for some wxMSW configurations.
Vadim Zeitlin [Thu, 19 Nov 2009 22:34:33 +0000 (22:34 +0000)] 
Fix compilation for some wxMSW configurations.

wx/scopeguard.h was not always included when using PCH, so include it in any
case, not just #ifndef WX_PRECOMP.

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

15 years agoFixed builds without wxHAS_EVENT_BIND (typeinfo.h include was misplaced)
Jaakko Salli [Thu, 19 Nov 2009 21:16:10 +0000 (21:16 +0000)] 
Fixed builds without wxHAS_EVENT_BIND (typeinfo.h include was misplaced)

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

15 years agoAdded typeinfo.h which implements wxTypeId, using C++ RTTI if available. wxAny and...
Jaakko Salli [Thu, 19 Nov 2009 19:27:24 +0000 (19:27 +0000)] 
Added typeinfo.h which implements wxTypeId, using C++ RTTI if available. wxAny and Unbind<>() code are updated to use it. Added and updated related unit tests.

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

15 years agoCompilation fix for wxUSE_STL build: another missing _str().
Vadim Zeitlin [Thu, 19 Nov 2009 01:36:54 +0000 (01:36 +0000)] 
Compilation fix for wxUSE_STL build: another missing _str().

Use utf8_str() to convert wxString to GTK+ string instead of relying on
implicit conversion which doesn't exist when wxUSE_STL==1 (and also when using
wchar_t-based Unicode build).

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

15 years agoFix accidental commit of 2.8 ABI compat. code.
Kevin Ollivier [Wed, 18 Nov 2009 21:01:52 +0000 (21:01 +0000)] 
Fix accidental commit of 2.8 ABI compat. code.

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

15 years agoRebake after last commit.
Kevin Ollivier [Wed, 18 Nov 2009 19:22:58 +0000 (19:22 +0000)] 
Rebake after last commit.

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

15 years agoForward port of r60190 (wxMSW Cairo support) to trunk.
Kevin Ollivier [Wed, 18 Nov 2009 19:05:42 +0000 (19:05 +0000)] 
Forward port of r60190 (wxMSW Cairo support) to trunk.

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

15 years agoFixed #11212 [RichText sample] Assert/Crash when Styles combo box opened
Julian Smart [Wed, 18 Nov 2009 14:01:21 +0000 (14:01 +0000)] 
Fixed #11212 [RichText sample] Assert/Crash when Styles combo box opened
Patch by Catalin

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

15 years agoSuppress harmless g++ warnings about converting float/double to int.
Vadim Zeitlin [Wed, 18 Nov 2009 09:56:59 +0000 (09:56 +0000)] 
Suppress harmless g++ warnings about converting float/double to int.

The conversion is done on purpose on these places so just suppress the warning
by using explicit casts.

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

15 years agoFix harmless g++ warning about using NULL for non-pointer.
Vadim Zeitlin [Wed, 18 Nov 2009 09:56:52 +0000 (09:56 +0000)] 
Fix harmless g++ warning about using NULL for non-pointer.

PostQueuedCompletionStatus() may be either an int or a pointer, pass 0 instead
of NULL when we don't care about its value anyhow.

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

15 years agoFix handling of invalid paths with multiple columns in wxFileName.
Vadim Zeitlin [Wed, 18 Nov 2009 03:45:32 +0000 (03:45 +0000)] 
Fix handling of invalid paths with multiple columns in wxFileName.

SplitVolume() didn't handle colons in the initial position correctly which
surprised SetPath() and led to accessing an out-of-range string element. Fix
SplitVolume() and also add a check to SetPath() itself as it seems like it
could be called with a path containing the volume only.

Closes #11453.

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

15 years agoRemove unnecessary manual face name selection code.
Vadim Zeitlin [Wed, 18 Nov 2009 03:18:24 +0000 (03:18 +0000)] 
Remove unnecessary manual face name selection code.

The change of r60391 made specifying the face name explicitly unnecessary but
left the code which filled "facename" array in wxNativeFontInfo::SetFamily()
with face names even though it was never used -- simply remove this code.

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

15 years agoImplement wxFont::GetFaceName() to return the face name being really used.
Vadim Zeitlin [Wed, 18 Nov 2009 03:18:16 +0000 (03:18 +0000)] 
Implement wxFont::GetFaceName() to return the face name being really used.

Since the change of r60391 empty face name was returned for all fonts created
using the standard wxFont constructor (so basically all fonts except for those
created from native font info and the default/normal font which we retrieve
from the system). Use Windows GetOutlineTextMetrics() function to get the real
face name being used independently of the way the font was created.

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

15 years agoImproved handling of anchors in wxHTML: scroll to better position (patch #11406).
Václav Slavík [Tue, 17 Nov 2009 20:20:48 +0000 (20:20 +0000)] 
Improved handling of anchors in wxHTML: scroll to better position (patch #11406).

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

15 years agoFix typo in Bind() documentation: s/binded/bound/
Vadim Zeitlin [Tue, 17 Nov 2009 14:47:56 +0000 (14:47 +0000)] 
Fix typo in Bind() documentation: s/binded/bound/

Closes #11450.

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

15 years agoExplicitly document event types for EVT_CLOSE().
Vadim Zeitlin [Tue, 17 Nov 2009 14:47:44 +0000 (14:47 +0000)] 
Explicitly document event types for EVT_CLOSE().

Closes #11445.

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

15 years agoFix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes...
Bryan Petty [Mon, 16 Nov 2009 21:55:57 +0000 (21:55 +0000)] 
Fix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes #10170)

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

15 years agoAdd some missing commas. Fixes #11443
Robin Dunn [Mon, 16 Nov 2009 21:28:55 +0000 (21:28 +0000)] 
Add some missing commas.  Fixes #11443

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