]>
git.saurik.com Git - wxWidgets.git/log
Vadim Zeitlin [Sat, 19 Sep 2009 15:41:08 +0000 (15:41 +0000)]
Set svn properties correctly for the newly added files.
Set svn:keyword and, most importantly, svn:eol-style, to avoid having files
with DOS line endings in svn, for the new files added by r61971.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61973
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 19 Sep 2009 10:13:31 +0000 (10:13 +0000)]
Fixed wxAny tests for VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61972
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 19 Sep 2009 08:51:11 +0000 (08:51 +0000)]
wxAny initial commit (closes #10932)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61971
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 18 Sep 2009 22:16:59 +0000 (22:16 +0000)]
Add wxUSE_RIBBON to wx/setup_inc.h and wx/chkconf.h.
wxUSE_RIBBON was apparently added to the different wx/*/setup.h files manually
instead of being added to wx/setup_inc.h and regenerating the rest, correct it.
Also check that it is defined in wx/chkconf.h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61968
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 18 Sep 2009 17:11:21 +0000 (17:11 +0000)]
Don't query system option in every DrawBitmap() call under MSW.
Doing this had noticeable (and bad) performance implications so cache the
value of the option during the first call. This doesn't allow changing its
value during the program execution so we may want to provide some way to
update its value later if really needed.
Closes #11172.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61967
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 18 Sep 2009 17:10:58 +0000 (17:10 +0000)]
Change return type of wxList::Member() to bool.
It used to return a pointer in wxUSE_STL==0 build and an object in
wxUSE_STL==1 one making checking its return value difficult without provoking
warnings from either MSVC or g++ (see #11038).
Also, all the other occurrences of Member() already returned bool, including
the one in wxStringList so changing it to return bool in wxList itself is more
consistent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61966
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 18 Sep 2009 17:10:49 +0000 (17:10 +0000)]
Convert change log to UTF-8 encoding.
See #11116.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61965
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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