]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoCheck that files being checked in use UTF-8.
Vadim Zeitlin [Fri, 18 Sep 2009 16:28:10 +0000 (16:28 +0000)] 
Check that files being checked in use UTF-8.

Closes #11116.

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

15 years agoAdd the initial version of svn pre-commit hook.
Vadim Zeitlin [Fri, 18 Sep 2009 16:28:04 +0000 (16:28 +0000)] 
Add the initial version of svn pre-commit hook.

This version checks for absence of hard TABs in our source files.

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

15 years agoFix recurring typo in "theming".
Vadim Zeitlin [Fri, 18 Sep 2009 16:16:30 +0000 (16:16 +0000)] 
Fix recurring typo in "theming".

It was (consistently) misspelt as "themeing" in several places.

Closes #11206.

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

15 years agoUse UTF-8 for all non-ASCII characters in the sources.
Vadim Zeitlin [Fri, 18 Sep 2009 16:16:12 +0000 (16:16 +0000)] 
Use UTF-8 for all non-ASCII characters in the sources.

Avoid mixing Latin-1, UTF-8 and Mac Roman (?) encodings in different source
files, use UTF-8 everywhere.

See #11116.

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

15 years agoDefine NDEBUG when building 3rd party libraries.
Vadim Zeitlin [Fri, 18 Sep 2009 16:15:54 +0000 (16:15 +0000)] 
Define NDEBUG when building 3rd party libraries.

We are not interested in asserts in 3rd party libraries so make them disappear
by defining NDEBUG when building them.

Closes #11155.

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

15 years agoUse wxASSERT() instead of assert() in wx code.
Vadim Zeitlin [Fri, 18 Sep 2009 14:04:22 +0000 (14:04 +0000)] 
Use wxASSERT() instead of assert() in wx code.

This is more consistent and ensures that all asserts in wxWidgets are
controlled by a single wxDEBUG_LEVEL setting instead of also relying on NDEBUG
as standard assert() macro does.

See #11155.

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

15 years agoCorrect wxStreamBuffer::Seek() return value.
Vadim Zeitlin [Fri, 18 Sep 2009 14:03:55 +0000 (14:03 +0000)] 
Correct wxStreamBuffer::Seek() return value.

It returned the offset instead of the new position when seeking forward from
current position in a "flushable" buffer.

Closes #11205.

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

15 years agoAnother compilation fix for wxRibbon under OS X.
Vadim Zeitlin [Fri, 18 Sep 2009 14:03:28 +0000 (14:03 +0000)] 
Another compilation fix for wxRibbon under OS X.

Include Carbon/Carbon.h to get kThemeBrushToolbarBackground declaration.

Closes #11203.

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

15 years agoFixes for Mac (use wxClientDC not wxMemoryDC for temporary DC)
Julian Smart [Fri, 18 Sep 2009 09:01:43 +0000 (09:01 +0000)] 
Fixes for Mac (use wxClientDC not wxMemoryDC for temporary DC)

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

15 years agoadd wxUSE_RIBOON to setup for OpenVMS
Jouk Jansen [Fri, 18 Sep 2009 06:24:59 +0000 (06:24 +0000)] 
add wxUSE_RIBOON to setup for OpenVMS

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

15 years agoCompilation fix for ANSI build after r61898.
Vadim Zeitlin [Thu, 17 Sep 2009 13:02:12 +0000 (13:02 +0000)] 
Compilation fix for ANSI build after r61898.

wxWX2MBbuf is just char* if wxUSE_UNICODE==0 and so doesn't have a length()
method, use wxString::length() in wxFile::Write() instead.

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

15 years agoAdded missing includes
Julian Smart [Thu, 17 Sep 2009 08:18:52 +0000 (08:18 +0000)] 
Added missing includes

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

15 years agoInclusion of inline function has been changed
Jouk Jansen [Thu, 17 Sep 2009 06:53:11 +0000 (06:53 +0000)] 
Inclusion of inline function has been changed

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

15 years agoMore ribbon compilation fixes for OS X.
Vadim Zeitlin [Thu, 17 Sep 2009 00:17:57 +0000 (00:17 +0000)] 
More ribbon compilation fixes for OS X.

Add more headers for wxColour and wxFont.

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

15 years agoRibbon compilation fixes for OS X.
Vadim Zeitlin [Wed, 16 Sep 2009 23:19:01 +0000 (23:19 +0000)] 
Ribbon compilation fixes for OS X.

Forward declare wxWindow and wxDC classes in wx/ribbon/art.h to avoid errors
in (PCH-less?) buildbot builds.

Also include header containing declarations of private Mac functions in
implementation file (closes #11203).

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

15 years agoAdd ribbon sample to the list of samples to build.
Vadim Zeitlin [Wed, 16 Sep 2009 23:18:55 +0000 (23:18 +0000)] 
Add ribbon sample to the list of samples to build.

Add the file to samples/samples.bkl and regenerate the makefiles and also add
it manually to samples.dsw.

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

15 years agoProvide implementation for wxArrayString::resize().
Vadim Zeitlin [Wed, 16 Sep 2009 23:18:48 +0000 (23:18 +0000)] 
Provide implementation for wxArrayString::resize().

This method was declared but not implemented in wxUSE_STL==0 build.

Also add unit test for this function.

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

15 years agoRebaked everything with bakefile 0.2.6 after wxRibbon merge.
Vadim Zeitlin [Wed, 16 Sep 2009 13:07:10 +0000 (13:07 +0000)] 
Rebaked everything with bakefile 0.2.6 after wxRibbon merge.

0.2.5 versions of some makefiles were checked in, regenerate them using 0.2.6.

Also regenerate configure after autoconf_inc.m4 was updated.

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

15 years agoAllow creating wxSingleInstanceChecker with default name.
Vadim Zeitlin [Wed, 16 Sep 2009 12:38:00 +0000 (12:38 +0000)] 
Allow creating wxSingleInstanceChecker with default name.

This makes it easier to use in common cases: there is no need to come up with
a unique name for the checker any more as sufficiently unique combination of
wxApp::GetAppName() and wxGetUserId() is used if no name was explicitly given.

This is done by calling the new CreateDefault() on demand from
IsAnotherRunning() instead of simply creating the checker with the default
name in the default ctor for compatibility (you had to call Create() after
using the default ctor before and it can only be called once) and because
wxTheApp might not exist yet when wxSingleInstanceChecker is created.

Closes #11166.

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

15 years agoMerged GSOC Ribbon work from SOC2009_RIBBON branch into trunk.
Peter Cawley [Wed, 16 Sep 2009 12:06:02 +0000 (12:06 +0000)] 
Merged GSOC Ribbon work from SOC2009_RIBBON branch into trunk.

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

15 years agoChange wxBoxSizer::AddSpacer() to only add space in sizer direction.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:32 +0000 (17:05 +0000)] 
Change wxBoxSizer::AddSpacer() to only add space in sizer direction.

It used to add a spacer with the given size in both directions but this was
counter-intuitive and wasn't expected even by the original author of this code
so change it to behave more reasonably.

Closes #11197.

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

15 years agoCorrect wxPendingDelete declaration.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:24 +0000 (17:05 +0000)] 
Correct wxPendingDelete declaration.

This variable was moved to wxBase from wxCore recently and hence must be
declared using WXDLLIMPEXP_DATA_BASE and not WXDLLIMPEXP_DATA_CORE now.

Closes #11202.

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

15 years agoReally fix VC6 compilation after r61919.
Vadim Zeitlin [Tue, 15 Sep 2009 17:05:13 +0000 (17:05 +0000)] 
Really fix VC6 compilation after r61919.

The change in r61922 which was supposed to do it somehow forgot the fix itself
and added only a comment explaining why it was needed. Really do name the
struct now.

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

15 years agoAdd wxXmlResource::LoadObjectRecursively().
Vadim Zeitlin [Mon, 14 Sep 2009 23:22:00 +0000 (23:22 +0000)] 
Add wxXmlResource::LoadObjectRecursively().

These methods can be used to load objects from anywhere in the XRC resource
tree and not just from the top level.

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

15 years agoAdd virtual dtor to header renderer classes to avoid g++ warnings.
Vadim Zeitlin [Mon, 14 Sep 2009 23:21:48 +0000 (23:21 +0000)] 
Add virtual dtor to header renderer classes to avoid g++ warnings.

g++ warns about class with virtual functions having non-virtual dtor so make
the dtor of wxGridCornerHeaderRenderer virtual even if it's not really needed.

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

15 years agowxRTC's own caret is more reliable than the generic one, so use it.
Julian Smart [Mon, 14 Sep 2009 15:52:48 +0000 (15:52 +0000)] 
wxRTC's own caret is more reliable than the generic one, so use it.

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

15 years agoAdded dummy wxPG_THEME_BORDER style for backwards compatibility
Jaakko Salli [Mon, 14 Sep 2009 15:17:50 +0000 (15:17 +0000)] 
Added dummy wxPG_THEME_BORDER style for backwards compatibility

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

15 years agoFixed use of map::erase() in ClearActionTriggers() (this bug was revealed by static...
Jaakko Salli [Mon, 14 Sep 2009 14:53:13 +0000 (14:53 +0000)] 
Fixed use of map::erase() in ClearActionTriggers() (this bug was revealed by static code analysis - see ticket #11195)

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

15 years agoadded missing destructor
Stefan Csomor [Mon, 14 Sep 2009 13:23:48 +0000 (13:23 +0000)] 
added missing destructor

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

15 years agofixing and completing iPhone sound
Stefan Csomor [Mon, 14 Sep 2009 13:07:23 +0000 (13:07 +0000)] 
fixing and completing iPhone sound

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

15 years agoenable backface culling which is not enabled by default on ES
Stefan Csomor [Mon, 14 Sep 2009 11:52:43 +0000 (11:52 +0000)] 
enable backface culling which is not enabled by default on ES

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

15 years agoremove debug logging
Stefan Csomor [Mon, 14 Sep 2009 08:50:17 +0000 (08:50 +0000)] 
remove debug logging

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

15 years agoLaunch Services are not available on iPhone
Stefan Csomor [Mon, 14 Sep 2009 08:38:05 +0000 (08:38 +0000)] 
Launch Services are not available on iPhone

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

15 years agoFix VC6 compilation after r61919.
Vadim Zeitlin [Mon, 14 Sep 2009 08:37:28 +0000 (08:37 +0000)] 
Fix VC6 compilation after r61919.

Work around VC6 bug which resulted in error C2639 when compiling the
declaration of an unnamed struct inside wxGridCellAttrProvider.

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

15 years agoadding glFrustum to compat API, supporting SetColour on OpenGL ES
Stefan Csomor [Mon, 14 Sep 2009 08:37:23 +0000 (08:37 +0000)] 
adding glFrustum to compat API, supporting SetColour on OpenGL ES

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

15 years agoAdded support for corner, row and column headers renderers to wxGrid.
Vadim Zeitlin [Mon, 14 Sep 2009 00:45:29 +0000 (00:45 +0000)] 
Added support for corner, row and column headers renderers to wxGrid.

Make it possible to customize the appearance of wxGrid corner window and its
row and column headers by defining custom renderers for them.

Add demonstration of this new feature to the grid sample and update the
documentation.

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

15 years agoDocument wxGridCellAttrProvider.
Vadim Zeitlin [Mon, 14 Sep 2009 00:45:18 +0000 (00:45 +0000)] 
Document wxGridCellAttrProvider.

Added basic documentation for wxGridCellAttrProvider and
wxGridCellAttr::wxAttrKind enum used by it.

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

15 years agoRemove unneeded pointer check.
Vadim Zeitlin [Mon, 14 Sep 2009 00:44:59 +0000 (00:44 +0000)] 
Remove unneeded pointer check.

This was flagged as an error by static code analyse tools.

Closes #11195.

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

15 years agoadapting to new sound file organization for osx
Stefan Csomor [Sun, 13 Sep 2009 18:28:45 +0000 (18:28 +0000)] 
adapting to new sound file organization for osx

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

15 years agoMinor code cleanup
Jaakko Salli [Sun, 13 Sep 2009 17:52:32 +0000 (17:52 +0000)] 
Minor code cleanup

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

15 years agoadding types for OpenGL on iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:45:21 +0000 (17:45 +0000)] 
adding types for OpenGL on iPhone

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

15 years agoadapting to new sound files organization on osx
Stefan Csomor [Sun, 13 Sep 2009 17:41:36 +0000 (17:41 +0000)] 
adapting to new sound files organization on osx

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

15 years agoavoiding potential infinite recursion
Stefan Csomor [Sun, 13 Sep 2009 17:34:51 +0000 (17:34 +0000)] 
avoiding potential infinite recursion

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

15 years agosupporting rotated display correctly for display size
Stefan Csomor [Sun, 13 Sep 2009 17:33:46 +0000 (17:33 +0000)] 
supporting rotated display correctly for display size

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

15 years agoenabling correct audio framework on OSX
Stefan Csomor [Sun, 13 Sep 2009 17:23:53 +0000 (17:23 +0000)] 
enabling correct audio framework on OSX

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

15 years agosound implementation for AudioToolbox on 10.5 and iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:23:05 +0000 (17:23 +0000)] 
sound implementation for AudioToolbox on 10.5 and iPhone

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

15 years agoOpenGL for iPhone
Stefan Csomor [Sun, 13 Sep 2009 17:22:13 +0000 (17:22 +0000)] 
OpenGL for iPhone

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

15 years agoOpenGL changes for carbon and cocoa
Stefan Csomor [Sun, 13 Sep 2009 17:19:01 +0000 (17:19 +0000)] 
OpenGL changes for carbon and cocoa

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

15 years agoadding emulation API for OpenGL ES platforms
Stefan Csomor [Sun, 13 Sep 2009 17:17:40 +0000 (17:17 +0000)] 
adding emulation API for OpenGL ES platforms

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

15 years agoBe more paranoid about parent window possibly being NULL (partly fixes #11115).
Stefan Neis [Sun, 13 Sep 2009 15:48:40 +0000 (15:48 +0000)] 
Be more paranoid about parent window possibly being NULL (partly fixes #11115).

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

15 years agoFix test compilation under OS X.
Vadim Zeitlin [Sun, 13 Sep 2009 12:26:03 +0000 (12:26 +0000)] 
Fix test compilation under OS X.

wxFileOffset and ssize_t are not the same type under this platform so using
CPPUNIT_ASSERT_EQUAL() with the arguments of these types fails. Use ssize_t
instead of wxFileOffset to fix this.

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

15 years agoReenable build of execmon in utils bakefile.
Vadim Zeitlin [Sun, 13 Sep 2009 11:55:08 +0000 (11:55 +0000)] 
Reenable build of execmon in utils bakefile.

Undo r61894, it's not necessary to disable build of execmon any longer after
r61901.

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

15 years agoadd execmon bakefile (which was forgotten in the initial commit) and regenerate execm...
Francesco Montorsi [Sun, 13 Sep 2009 10:09:59 +0000 (10:09 +0000)] 
add execmon bakefile (which was forgotten in the initial commit) and regenerate execmon makefiles

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

15 years agoDocument the meaning of empty value name in wxRegKey methods.
Vadim Zeitlin [Sat, 12 Sep 2009 22:48:29 +0000 (22:48 +0000)] 
Document the meaning of empty value name in wxRegKey methods.

Empty value refers to the default or unnamed key in Win32 API but this may be
not clear to people unused to it so mention this explicitly.

Closes #11191.

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

15 years agoWrite correct number of bytes in wxFile::Write(wxString).
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:42 +0000 (22:40 +0000)] 
Write correct number of bytes in wxFile::Write(wxString).

This function was broken for conversions using more than one byte per
character (e.g. UTF-16 or UTF-32) and also even for UTF-8 for strings
containing NUL bytes as it used strlen() to determine the number of bytes to
write out instead of using the really needed number.

Fix this by using the wxCharBuffer::length() method which always returns the
correct value.

Also add a wxFile unit test verifying that it can correctly read back a string
written using any of UTF-8, UTF-16 or UTF-32.

Closes #11192.

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

15 years agoExtract TestFile class in a separate header.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:35 +0000 (22:40 +0000)] 
Extract TestFile class in a separate header.

This allows to reuse it in the other tests which need to create a temporary
file automatically destroyed on test exit.

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

15 years agoAdd convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:25 +0000 (22:40 +0000)] 
Add convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers.

These overloads allow not to worry about buffer lengths and just convert
between wxCharBuffer and wxWCharBuffer directly in a convenient way.

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

15 years agoUnregister wake up pipe file fd in ~wxConsoleEventLoop.
Vadim Zeitlin [Sat, 12 Sep 2009 22:40:18 +0000 (22:40 +0000)] 
Unregister wake up pipe file fd in ~wxConsoleEventLoop.

We must unregister the wake up pipe file descriptor which we register with the
IO dispatcher in wxConsoleEventLoop ctor, otherwise doing it the next time
(i.e. if wxConsoleEventLoop is deleted and recreated) results in asserts, at
least when using wxSelectDispatcher and not wxEpollDispatcher (i.e. under any
non-Linux Unix system).

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

15 years agoDisable build of utils/execmon.
Vadim Zeitlin [Sat, 12 Sep 2009 15:29:11 +0000 (15:29 +0000)] 
Disable build of utils/execmon.

Bakefile for this program doesn't exist so its makefiles are out of date and
it doesn't build any more now, disable its build until the bakefile is checked
in.

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

15 years agoRebake all the samples, demos and tests makefiles.
Vadim Zeitlin [Sat, 12 Sep 2009 13:38:08 +0000 (13:38 +0000)] 
Rebake all the samples, demos and tests makefiles.

This should have been committed together with the changes to the debug flags
handling in build/bakefiles in r61887.

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

15 years agoregenerated
Vadim Zeitlin [Sat, 12 Sep 2009 13:35:16 +0000 (13:35 +0000)] 
regenerated

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

15 years agoRemove WX_DEBUG option from Unix wx presets, it's not needed any more.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:49 +0000 (11:29 +0000)] 
Remove WX_DEBUG option from Unix wx presets, it's not needed any more.

It doesn't make sense to select debug or release build of wxWidgets any more
as they are now compatible under Unix. Under Windows the option is still
needed but it selects the build using debug (or not) version of the CRT rather
than the one built with __WXDEBUG__ defined.

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

15 years agoAdd wxDEBUG_LEVEL to wx/setup.h and document it.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:42 +0000 (11:29 +0000)] 
Add wxDEBUG_LEVEL to wx/setup.h and document it.

Under Unix wxDEBUG_LEVEL can be set using configure --enable-debug=max option
but under Windows it needs to be changed in wx/msw/setup.h so add it to this
file with a comment explaining its meaning.

Also document this symbol with the other preprocessor constants.

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

15 years agoChange Unix build system to not use debug build any more.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:31 +0000 (11:29 +0000)] 
Change Unix build system to not use debug build any more.

Remove "d" suffix from the libraries and the BUILD variable which is not used
any longer.

Also ignore (but still support, for compatibility) --debug option in wx-config.

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

15 years agoUse wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:23 +0000 (11:29 +0000)] 
Use wxDEBUG_LEVEL instead of __WXDEBUG__ in wxInfoMessageBox().

Also disable sizer-drawing code unless wxDEBUG_LEVEL>=2 as we don't want it to
be available in production versions.

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

15 years agoUse "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.
Vadim Zeitlin [Sat, 12 Sep 2009 11:29:11 +0000 (11:29 +0000)] 
Use "d" suffix according to DEBUG_RUNTIME_LIBS, not DEBUG_FLAG.

The "d" suffix is now only used under Windows and indicates that we link with
debug CRT version.

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

15 years agoDefine wxDEBUG_LEVEL in both debug and release builds as 1.
Vadim Zeitlin [Sat, 12 Sep 2009 11:28:52 +0000 (11:28 +0000)] 
Define wxDEBUG_LEVEL in both debug and release builds as 1.

By default include assertions and debug logging in both debug and release
builds but disable them in application release builds (when NDEBUG is
defined).

Also update (more accurately, replace) debugging overview.

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

15 years agoRestore correct setting of the background colour.
Vadim Zeitlin [Sat, 12 Sep 2009 10:59:43 +0000 (10:59 +0000)] 
Restore correct setting of the background colour.

The background colour for the HDC used for drawing the native controls wasn't
set correctly any more after changes of r61859 but we do need to call it or
the text in edit and similar controls is drawn using the default background
even if we return the correct brush which is used for erasing the control.

Closes #11190.

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

15 years agoDocument ctors creating a wxString from repeated characters.
Vadim Zeitlin [Sat, 12 Sep 2009 10:42:04 +0000 (10:42 +0000)] 
Document ctors creating a wxString from repeated characters.

Closes #11187.

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

15 years agoDocument wxStandardPaths vendor-related changes.
Vadim Zeitlin [Sat, 12 Sep 2009 10:41:55 +0000 (10:41 +0000)] 
Document wxStandardPaths vendor-related changes.

The change in the values returned by wxStandardPaths functions is important as
it's incompatible with 2.8 if the application defines a vendor name so must be
mentioned in docs/changes.txt.

Also update the documentation of the class itself and mention UseAppInfo() in
the overview.

Closes #11189.

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

15 years agoadding Kevin's fix for wxTOOL_STYLE_SEPARATOR
Stefan Csomor [Fri, 11 Sep 2009 21:01:45 +0000 (21:01 +0000)] 
adding Kevin's fix for wxTOOL_STYLE_SEPARATOR

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

15 years agoFixed constants of the new wxPG_EX styles
Jaakko Salli [Fri, 11 Sep 2009 16:41:31 +0000 (16:41 +0000)] 
Fixed constants of the new wxPG_EX styles

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

15 years agowxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
Julian Smart [Fri, 11 Sep 2009 11:49:03 +0000 (11:49 +0000)] 
wxPropertyGrid: added wxPG_NO_INTERNAL_BORDER, wxPG_EX_NO_TOOLBAR_DIVIDER
and wxPG_EX_TOOLBAR_SEPARATOR styles for finer control over borders.
Borders around property grid are now native for consistency.
Some strange VC6 compiler errors fixed, plus size assertion in
sample.

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

15 years agoDocumented a couple of combo control fixes on Mac.
Julian Smart [Fri, 11 Sep 2009 11:42:05 +0000 (11:42 +0000)] 
Documented a couple of combo control fixes on Mac.

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

15 years agoFixed a bug on Mac whereby popup window disappeared as soon as the button was clicked...
Julian Smart [Fri, 11 Sep 2009 09:30:51 +0000 (09:30 +0000)] 
Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)

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

15 years agoFix on Mac to prevent scrollbars always being shown
Julian Smart [Fri, 11 Sep 2009 08:55:59 +0000 (08:55 +0000)] 
Fix on Mac to prevent scrollbars always being shown

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

15 years agoNotify if the grid is being destroyed in an event generated by it
Jaakko Salli [Thu, 10 Sep 2009 14:15:32 +0000 (14:15 +0000)] 
Notify if the grid is being destroyed in an event generated by it

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

15 years agoMention wxOSX/Cocoa in the old wxCocoa docs.
Vadim Zeitlin [Thu, 10 Sep 2009 12:49:06 +0000 (12:49 +0000)] 
Mention wxOSX/Cocoa in the old wxCocoa docs.

The old wxCocoa port isn't what most people are looking for so point them to
wxOSX/Cocoa if they look under docs/cocoa.

Closes #11182.

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

15 years agoAdapted wxPGComboBox margins setup to changes in wxComboCtrl
Jaakko Salli [Wed, 9 Sep 2009 17:26:46 +0000 (17:26 +0000)] 
Adapted wxPGComboBox margins setup to changes in wxComboCtrl

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

15 years agoVarious improvements to wxComboCtrl's text ctrl left margin setup: less #defines...
Jaakko Salli [Wed, 9 Sep 2009 16:41:23 +0000 (16:41 +0000)] 
Various improvements to wxComboCtrl's text ctrl left margin setup: less #defines, better margin when SetCustomPaintWidth() has been called, fixed SetFont() behavior on wxMSW

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

15 years agoFixed a warning generated by GCC 4.4.0
Jaakko Salli [Tue, 8 Sep 2009 14:03:30 +0000 (14:03 +0000)] 
Fixed a warning generated by GCC 4.4.0

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

15 years agoUse real id for wxPGCanvas
Jaakko Salli [Tue, 8 Sep 2009 13:57:38 +0000 (13:57 +0000)] 
Use real id for wxPGCanvas

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

15 years agoSet correct foreground default in wxControl::DoMSWControlColor().
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:28 +0000 (12:23 +0000)] 
Set correct foreground default in wxControl::DoMSWControlColor().

Instead of hard-coding GetSysColor(COLOR_WINDOWTEXT), use
GetForegroundColour() which will call GetDefaultAttributes() to retrieve the
default foreground appropriate for this control.

This also allows to make the code simpler by calling SetTextColor() only once.

See #1691.

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

15 years agoDon't always override the default background colours.
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:17 +0000 (12:23 +0000)] 
Don't always override the default background colours.

The wxColour argument taken by wxControl::DoMSWControlColor() allows to
override the default colour, it shouldn't be used in MSWControlColor() as this
resulted in always using custom colours for the controls, even when the user
hadn't changed them. Fix this by not passing any valid colour to it in this
case and allowing it to deduce the correct colour to use on its own.

See #1691.

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

15 years agoUse correct visual attributes for wxSpinCtrl.
Vadim Zeitlin [Tue, 8 Sep 2009 12:23:06 +0000 (12:23 +0000)] 
Use correct visual attributes for wxSpinCtrl.

The default colours for this control are wxTextCtrl-like and not wxButton-like
(which is the default). Override GetDefaultAttributes() to indicate this and
to avoid returning a wrong background from wxControl::DoMSWControlColor() when
just a foreground is set.

See #1691.

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

15 years agoFix wxLog compilation with wxUSE_THREADS==0.
Vadim Zeitlin [Tue, 8 Sep 2009 11:21:45 +0000 (11:21 +0000)] 
Fix wxLog compilation with wxUSE_THREADS==0.

Define WX_DEFINE_GLOBAL_VAR macro when wxUSE_THREADS==0 too, it is used for
components level hash map in any case.

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

15 years agoAlways use 32bpp image lists.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:29 +0000 (23:00 +0000)] 
Always use 32bpp image lists.

Using 32bpp image lists (ILC_COLOR32) is required as we need to be able to put
32bpp bitmaps in them and results in better (albeit still broken, see #9050)
display when the display depth is < 32.

This change was tested under Windows 2000, 2003 and Vista in 8 (Win2k-only),
16 and 32bpp display depth modes.

Closes #11031.

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

15 years agoShow the order in which different event handlers are called.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:21 +0000 (23:00 +0000)] 
Show the order in which different event handlers are called.

Update the event sample to define (as) many (as possible) event handlers for a
test button and log messages in all of the handlers to leave a trace of the
order in which they were executed.

Add a pointer to this feature of the event sample to the events overview.

Closes #11156.

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

15 years agoFix bug with parsing concatenated switches in wxCmdLineParser.
Vadim Zeitlin [Mon, 7 Sep 2009 23:00:05 +0000 (23:00 +0000)] 
Fix bug with parsing concatenated switches in wxCmdLineParser.

The constructs such as "-abcd" were not parsed correctly, i.e. the same as "-a
-b -c -d" because the code tried to parse a non-existent option "abcd" even if
it was supposed to not do this -- fix this.

Closes #11180.

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

15 years agoremoved superfluous ;
Jouk Jansen [Mon, 7 Sep 2009 13:50:04 +0000 (13:50 +0000)] 
removed superfluous ;

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

15 years agofixed typo : wxDEPRECTED -> wxDEPRECATED
Jouk Jansen [Mon, 7 Sep 2009 12:14:21 +0000 (12:14 +0000)] 
fixed typo : wxDEPRECTED -> wxDEPRECATED

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

15 years agoRecognize the buddy text control as part of wxSpinCtrl.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:25 +0000 (14:31 +0000)] 
Recognize the buddy text control as part of wxSpinCtrl.

This allows the code in wxWindowMSW::HandleCtlColor() to find the correct
control when handling the messages from the buddy control and hence setting
the colours for wxSpinCtrl works after this change.

Closes #1691.

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

15 years agoCompilation fix after wxTextEntry::SetMargins() changes.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:17 +0000 (14:31 +0000)] 
Compilation fix after wxTextEntry::SetMargins() changes.

We need to include wx/gdicmn.h to define wxPoint which is now used in
wx/textentry.h, it is not necessarily already included and in fact compilation
was broken in PCH-less build.

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

15 years agoUse SYSTEMTIME instead of DOS time when converting to/from VARIANTS.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:10 +0000 (14:31 +0000)] 
Use SYSTEMTIME instead of DOS time when converting to/from VARIANTS.

SYSTEMTIME has a much larger range than DOS time and a much better precision
(1ms instead of 2s) as well.

Closes #11177.

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

15 years agoTake time into account in wxDateTime <-> SYSTEMTIME conversion.
Vadim Zeitlin [Sun, 6 Sep 2009 14:31:01 +0000 (14:31 +0000)] 
Take time into account in wxDateTime <-> SYSTEMTIME conversion.

wxDateTime::SetFromMSWSysTime() and GetAsMSWSysTime() worked with the date
part of SYSTEMTIME only, do use time part as well now.

Closes #11176.

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

15 years agoDo not allow multiple selection when dragging in the 'value' column
Jaakko Salli [Sun, 6 Sep 2009 08:35:05 +0000 (08:35 +0000)] 
Do not allow multiple selection when dragging in the 'value' column

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

15 years agoFixed property iterator crash when iterating through 'non-interesting' properties...
Jaakko Salli [Sun, 6 Sep 2009 07:53:53 +0000 (07:53 +0000)] 
Fixed property iterator crash when iterating through 'non-interesting' properties at the edges of the grid.

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

15 years agoAdded check to allow multiple selection by dragging only if property under mouse...
Jaakko Salli [Sun, 6 Sep 2009 07:51:35 +0000 (07:51 +0000)] 
Added check to allow multiple selection by dragging only if property under mouse was adjacent to a property already in the selection.

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

15 years agoPerform Apple SDK tests for Mac ports only.
Vadim Zeitlin [Sat, 5 Sep 2009 14:24:58 +0000 (14:24 +0000)] 
Perform Apple SDK tests for Mac ports only.

Fix after changes of r61832: SDK checks should be done for Mac ports only as
they are useless under the other systems and break configure because sw_vers
is Mac-only and unsurprisingly using it results in errors under the other
systems:

/usr/local/src/wx/HEAD/configure: line 18215: sw_vers: command not found
checking if C compiler works with SDK/version options... configure: error: no.
Try a different SDK

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

15 years agoFixed GtkBorder allocation (hopefully)
Jaakko Salli [Sat, 5 Sep 2009 13:23:03 +0000 (13:23 +0000)] 
Fixed GtkBorder allocation (hopefully)

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