]>
git.saurik.com Git - wxWidgets.git/log
Stefan Csomor [Tue, 13 Apr 2010 20:24:59 +0000 (20:24 +0000)]
adding wrapping possibility for native tlws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63969
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Tue, 13 Apr 2010 20:22:53 +0000 (20:22 +0000)]
Make the gui test still run on the buildbot when the non-gui tests fail.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63968
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Tue, 13 Apr 2010 20:22:13 +0000 (20:22 +0000)]
Put the buildbot's default configure arguments before the optional ones so they can be overridden.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63967
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 13 Apr 2010 16:38:18 +0000 (16:38 +0000)]
Exclude wxWeakRef tests not compiling with VC6 from compilation.
The ctor used by these tests can't be enabled for VC6 (see r63955), simply
disable them to allow the rest to compile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63965
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 13 Apr 2010 15:07:40 +0000 (15:07 +0000)]
making sure calls don't crash for fully native dialogs which don't have a nowpeer like filedialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63964
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 13 Apr 2010 12:08:51 +0000 (12:08 +0000)]
adding fallbacks for non-native font variants, fixes #11938
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63963
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 13 Apr 2010 06:42:02 +0000 (06:42 +0000)]
fixing non-precomp build, fixes #10985
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63962
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 20:39:51 +0000 (20:39 +0000)]
correcting alpha and removing window shadow for overlay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63961
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 20:25:46 +0000 (20:25 +0000)]
correcting alpha and removing window shadow for overlay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63960
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 16:47:30 +0000 (16:47 +0000)]
fixing copy/paste error from carbon version, fixes #11540
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63959
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 16:29:35 +0000 (16:29 +0000)]
name change to correctly reflect the autorelease nature of the methods, removing double release, fixes #11547, fixes #11760
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63958
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 16:26:16 +0000 (16:26 +0000)]
copying native cursor under cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63957
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 13:38:41 +0000 (13:38 +0000)]
fixing some warnings, adding proper OnChar support for special keys
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63956
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 13:08:01 +0000 (13:08 +0000)]
Fix VC6 compilation which was somehow broken by adding wxWeakRef ctor.
For some mysterious reason, adding non-template wxWeakRef ctor breaks VC6
build with the apparently completely unrelated errors:
include\wx/toplevel.h(223) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class wxWindow *' (or there is no acceptable conversion)
include\wx/toplevel.h(231) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class wxWindow *' (or there is no acceptable conversion)
src\common\dummy.cpp(27) : error C2856: #pragma hdrstop cannot be inside an #if block
Simply don't define it for VC6 to at least allow the code not using wxWeakRef
to compile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63955
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 12:18:33 +0000 (12:18 +0000)]
changing sequence of makeFirstResponder and makeKeyAndOrderFront
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63954
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 12 Apr 2010 11:59:47 +0000 (11:59 +0000)]
change grow box implementation - was incorrectly getting the focus in panels before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63953
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:45 +0000 (11:21 +0000)]
Fix gcc warnings about testing undefined preprocessor symbol.
Use #ifdef instead of #if to test for __WXPALMOS[56]__.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63952
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:41 +0000 (11:21 +0000)]
Fix emulator compilation with wxX11 after GetMainWindow() renaming.
This function is now called X11GetMainWindow().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63951
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:37 +0000 (11:21 +0000)]
Fix string stream unit test compilation in non-Unicode build.
wxScopedCharBuffer can't be constructed from char* string, just use
wxCharBuffer instead, we don't care about efficiency here.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63950
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:17 +0000 (00:37 +0000)]
Update AUI pane resizable status even when it is floating.
Making a pane (e.g. a toolbar) [not] resizable didn't have any effect when it
was floating, fix this by explicitly updating its style to match the internal
state.
Closes #10638.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63948
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:13 +0000 (00:37 +0000)]
Fix over aggressive clipping in generic wxListCtrl header drawing.
Clipping out 4 pixels vertically resulted in truncating any letters with
descent (e.g. "g" or "q") under OS X where the native header size is just tall
enough to show the text.
Simply don't clip that much but use the entire header width.
Closes #11780.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63947
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:08 +0000 (00:37 +0000)]
Fix crash in wxListbook if image list is assigned after adding pages.
The generic wxListCtrl didn't properly support switching between report and
non-report modes without invalidating the control contents, the required in
non report view geometry info pointers were not allocated when the control was
switched to a, say, list mode and not created in it.
Fix this by updating all list control lines when the report mode changes.
Closes #11698.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63946
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:02 +0000 (00:37 +0000)]
Translate the label used by the font picker dialog.
Simply use _() instead of wxT().
Closes #11935.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63945
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:52 +0000 (00:36 +0000)]
Remove all obsolete release-generation scripts.
Only leave the files which are still used for the daily snapshots generation.
Also remove the obsolete release-making instructions.
See #11610.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63944
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:36 +0000 (00:36 +0000)]
Fix return value of wxList::insert() in non-STL builds.
The returned value was the same as the iterator that was passed in which could
even be invalid when appending.
Fix the wrong use of postfix decrement instead of prefix one and handle the
case of appending correctly.
Closes #11808.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63943
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:31 +0000 (00:36 +0000)]
Fix compilation of wxIconBundle in some particular minimal builds.
Let the code compile when wxUSE_STREAMS==1 but wxUSE_FILE and wxUSE_FFILE are
both 0.
Closes #10900.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63942
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:22 +0000 (00:36 +0000)]
Use string sort order with CompareString() in wxString::CmpNoCase().
Using the default word sort order may fail to define a strict weak order using
this function, thus breaking algorithms such as std::sort which rely on its
properties. It's also more consistent with the fallback manual implementation.
Closes #10375.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63941
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 11 Apr 2010 17:38:01 +0000 (17:38 +0000)]
Use template class instead of template function in wxVectorSort().
This allows the code to compile with VC6 which has trouble with explicit
specification of the template functions instantiation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63940
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 11 Apr 2010 13:20:10 +0000 (13:20 +0000)]
Fixed typo in documentation string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63939
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 11 Apr 2010 11:08:49 +0000 (11:08 +0000)]
Add wxString::ToStdString() and ToStdWstring().
These trivial helper functions are available in all builds (provided that
wxUSE_STD_STRING is not explicitly set to non-default 0 value) unlike implicit
conversions to std::[w]string which are only available when wxUSE_STL==1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63938
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 11 Apr 2010 09:26:31 +0000 (09:26 +0000)]
cocoa implementation for overlay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63937
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:34 +0000 (18:13 +0000)]
Don't crash if wxMimeTypesManager is used before wxApp creation.
This is arguably not a supported use case but this apparently used to work
before and so it's probably not a good idea to break it now.
Closes #11927.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63935
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:29 +0000 (18:13 +0000)]
Add non-template wxWeakRef<T> constructor from T*.
We need a non-template ctor to make the code initializing wxWeakRef with
literal NULL to compile.
Closes #11916.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63934
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:23 +0000 (18:13 +0000)]
Add wxWeakRef::element_type, remove unnecessary assignment operator.
Define element_type for consistency with other classes (wxSharedPtr, weak_ptr)
and to allow accessing the type from the template code.
Also remove the apparently unnecessary template assignment operator:
assignment from an expression convertible to type T* works even without it and
while assigning something implicitly convertible to T* wouldn't work now, it's
for the best as we don't want to rely on such implicit conversions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63933
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sat, 10 Apr 2010 17:47:29 +0000 (17:47 +0000)]
flushing upon destruction, hope this won't redraw congestion in old code, see #11930
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63932
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sat, 10 Apr 2010 17:46:31 +0000 (17:46 +0000)]
note for future implementation using a former private API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63931
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Fri, 9 Apr 2010 23:18:57 +0000 (23:18 +0000)]
Corrections for the buildbot configs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63930
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Fri, 9 Apr 2010 23:04:43 +0000 (23:04 +0000)]
Add wxDFB to buildbot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63929
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Fri, 9 Apr 2010 22:20:59 +0000 (22:20 +0000)]
Typos.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63928
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Fri, 9 Apr 2010 22:04:59 +0000 (22:04 +0000)]
Update configuration of linux buildbots.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63927
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 9 Apr 2010 14:14:26 +0000 (14:14 +0000)]
Regenerated makefiles after removing USE_GDIPLUS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63925
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 9 Apr 2010 14:12:08 +0000 (14:12 +0000)]
Remove USE_GDIPLUS setting from bakefiles.
GDI+ DLL is always loaded dynamically at runtime, so there's no reason
to link against it anymore.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63924
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 9 Apr 2010 13:15:25 +0000 (13:15 +0000)]
Discard fully transparent alpha channel when loading bitmaps.
Some bitmap files declare themselves to be 32bpp, normally indicating that
they have an alpha channel, but have only zeroes in their alpha data. Hence
loading them used to create fully transparent images which wasn't the desired
effect.
Fix this by simply discarding the alpha channel entirely if it turns out that
all pixels were fully transparent.
Closes #10915.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63923
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 9 Apr 2010 13:15:20 +0000 (13:15 +0000)]
Add wxImage::ClearAlpha().
This simple method can be used to remove alpha channel from the image.
See #10915.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63922
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 9 Apr 2010 08:10:31 +0000 (08:10 +0000)]
reverting r57083 for OSX, fixes #11922
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63921
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Fri, 9 Apr 2010 06:55:19 +0000 (06:55 +0000)]
Add system libs in msvc/wx/setup.h too.
This makes it possible to use static build of wx from VC++ by just
including its headers. Even though it's common to have these libs in
your settings, it's not always the case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63920
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Michael Wetherell [Thu, 8 Apr 2010 21:46:58 +0000 (21:46 +0000)]
Add initial config for TBITCWXBUILDBOT buildbot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63919
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Apr 2010 21:39:14 +0000 (21:39 +0000)]
trying to simplify and optimize font handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63918
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Apr 2010 18:47:41 +0000 (18:47 +0000)]
using statically allocated font objects for speedup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63917
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Apr 2010 09:46:36 +0000 (09:46 +0000)]
allowing direct native tlw modal loops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63912
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 8 Apr 2010 09:45:59 +0000 (09:45 +0000)]
switching modal loop implementation, fixes #11921
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63911
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 7 Apr 2010 22:23:45 +0000 (22:23 +0000)]
#include <algorithm>
to fix problem in PCH-less STL builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63909
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Apr 2010 22:07:02 +0000 (22:07 +0000)]
fixing NSFontDescriptor matching for font weights and styles, fixes #11910
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63908
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 7 Apr 2010 21:56:08 +0000 (21:56 +0000)]
(blind) fix for buildbot breakage with MSVC 6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63907
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 7 Apr 2010 20:40:32 +0000 (20:40 +0000)]
Drop the Array class added in the last scintilla patch and switch to using wxVector instead. Closes #11765.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63905
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 7 Apr 2010 20:32:25 +0000 (20:32 +0000)]
Add wxVectorSort function for sorting wxVector<T> containers. Closes #11889
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63904
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 7 Apr 2010 20:29:08 +0000 (20:29 +0000)]
Test m_dc before using it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63903
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Apr 2010 20:27:17 +0000 (20:27 +0000)]
fixing focus, fixes #11911
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63902
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 7 Apr 2010 18:59:51 +0000 (18:59 +0000)]
Fixed wxFileSystem::FileNameToURL() regression with UNC paths.
We cannot use wxURI to do the escaping, because wxFileSystem depends on
use of nonstandard escaping and prefixes (wxURI eats away
file:// prefix, while wxFileSystem uses it to signify UNC paths;
wxFileSystem needs to escape #,: as well).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63901
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Apr 2010 18:42:08 +0000 (18:42 +0000)]
borders might have to be drawn differently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63900
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Apr 2010 12:55:21 +0000 (12:55 +0000)]
Fix harmless MSVC warning about int to bool conversion in Scintilla.
The warning is harmless but prevents buildbot from reporting any new warnings
during the library compilation step so suppress it.
Notice that it might be better if ViewStyle::extraFontFlag was bool and not
int to begin with.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63894
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Apr 2010 12:52:31 +0000 (12:52 +0000)]
Suppress dummy gcc warnings in regex library code.
These warnings are harmless (variables are always initialized when they are
used) but they unfortunately prevent buildbot from reporting any new warnings
(which may not be harmless) during the library compilation step so suppress
them in the least intrusive way possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63893
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Apr 2010 12:43:29 +0000 (12:43 +0000)]
Work around "possibly uninitialized variable" warning in wxFileName.
Initialize multiplier to its default value in GetHumanReadableSize() to avoid
a "warning: 'multiplier' may be used uninitialized in this function" from g++.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63892
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Apr 2010 10:50:41 +0000 (10:50 +0000)]
Rename the rest of wxSIZE_CONV_TRADIONAL to wxSIZE_CONV_TRADITIONAL.
Fix tests compilation after r63886.
See #10673.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63891
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 7 Apr 2010 10:50:37 +0000 (10:50 +0000)]
Correct documentation of wxSizeConvention elements.
1KiB is 1024 bytes, not 1000. Also put the elements in the correct order (same
as in the real header).
See #10673.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63890
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Apr 2010 09:05:26 +0000 (09:05 +0000)]
switching loop mode for idle processing, fixes #11912 (left is a redraw issue, textfield borders are not repainted correctly when enabling)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63889
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Apr 2010 07:22:30 +0000 (07:22 +0000)]
moving static box construction - z Order makes checkboxes nonresponsive otherwise on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63888
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 23:51:13 +0000 (23:51 +0000)]
Fix wxGTK compilation after r63880.
SendTextUpdatedEvent() needs to be public as it's called from GTK callback.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63887
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Tue, 6 Apr 2010 22:51:11 +0000 (22:51 +0000)]
fix typos introduced by error in r63870 (see #10673)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63886
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 6 Apr 2010 22:43:49 +0000 (22:43 +0000)]
making gradients working again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63885
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 6 Apr 2010 21:17:59 +0000 (21:17 +0000)]
supporting text foreground color, fixes #11903
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63884
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 6 Apr 2010 18:57:35 +0000 (18:57 +0000)]
fixing warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63883
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:35 +0000 (18:46 +0000)]
Add wxTextEntryBase::ForwardEnableTextChangedEvents().
Use this method to forward the status of text events in the implementation of
wxComboBox in wxOSX/Carbon. This ensures that the events are correctly [not]
generated when various wxComboBox methods are called.
The unit tests now also pass with wxOSX/Carbon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63882
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:29 +0000 (18:46 +0000)]
Fix text text changed events sending in OS X combo box and text control.
Don't duplicate needlessly wxTextEntry functionality in wxTextCtrl.
Don't clear the combobox text entry part twice in wxComboBox::DoClear(), it is
supposed to only clear the item container contents as the base class Clear()
already calls wxTextEntry::Clear().
Do send text updated events from wxTextEntry itself as it applies to
wxComboBox just as well as to wxTextCtrl.
The unit tests now pass under wxOSX/Cocoa, not breaking them again would be
appreciated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63881
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:24 +0000 (18:46 +0000)]
Move SendTextUpdatedEvent() down to wxTextEntryBase from wxTextCtrlBase.
This will allow reusing it in wxComboBox implementation as well.
Also add SendTextUpdatedEventIfAllowed() which can be used to only send the
events if they were not blocked at wxTextEntry level.
No real changes otherwise.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63880
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:18 +0000 (18:46 +0000)]
Implement support for gradient stops for OS X.
Currently the code still doesn't work but OTOH it's not any worse than what it
was before.
See #11904.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63879
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:14 +0000 (18:46 +0000)]
Remove duplicated GetTextPeer() definitions from derived classes.
GetTextPeer() may be implemented directly in wxTextEntry under OS X, there is
no need to define it (identically) in wxTextCtrl and wxComboBox.
Also just call this method instead of duplicating its code in wxOSX
wxTextCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63878
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:09 +0000 (18:46 +0000)]
Set the value passed to wxComboBox ctor in wxOSX/Cocoa.
The initial value was simply ignored, do use it now if it's specified, i.e.
non empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63877
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:05 +0000 (18:46 +0000)]
Suppress a harmless signed/unsigned comparison warning.
wxComboBox::FindString() used int loop index, change it to unsigned one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63876
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:00 +0000 (18:46 +0000)]
Suppress unused parameter warnings.
observer argument of wxCFEventLoop::ObserverCallBack() and timestampsec one of
wxComboBox::OSXHandleClicked() were unused and generated gcc warnings.
wxComboBox::EnableTextChangedEvents() needs to be implemented but as there is
already a wxFAIL in it an extra warning is not really useful.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63875
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 17:38:27 +0000 (17:38 +0000)]
Attempt to correct mysterious MSVC6 compilation error.
For some reasons MSVC6 refuses to compile TestData struct initialization. Try
to work around it by not using wxULongLong as this looks like the only thing
which might be confusing it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63874
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 17:38:23 +0000 (17:38 +0000)]
Fix more harmless warnings.
Fix a warning about unused parameters and another about signed/unsigned
comparison during samples and tests compilation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63873
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 6 Apr 2010 16:51:12 +0000 (16:51 +0000)]
adding clipboard events, fixes #11906
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63872
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 16:23:15 +0000 (16:23 +0000)]
Remove extra semicolons from NOTIFYICONDATA_V[12]_SIZE definitions.
These semicolons prevented the code from compiling when using old SDK which
didn't provide these symbols itself.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63871
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 14:53:04 +0000 (14:53 +0000)]
Add support for IEC and SI size units to wxFileName::GetHumanReadableSize().
Allow choosing the multiplier to use (1000 or 1024) and the names of the units
(SI or IEC). By default, still use traditional convention, i.e. multiplier of
1024 but SI unit names. This will probably need to be changed to use IEC units
in the future.
Also added unit test for this function.
Closes #10673.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63870
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 13:55:35 +0000 (13:55 +0000)]
Add default constructor to wxGraphicsGradientStop.
It may be convenient to create wxGraphicsGradientStop first and initialize it
later so allow doing this by providing the default argument for constructor
parameters and thus allowing to use it as the default constructor.
See #11897.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63869
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 13:55:30 +0000 (13:55 +0000)]
Correct check for MSVC version in wxUSE_GRAPHICS_CONTEXT definition.
Set wxUSE_GRAPHICS_CONTEXT to 1 by default for MSVC 7.1+ and not 8+.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63868
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 6 Apr 2010 09:47:19 +0000 (09:47 +0000)]
Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63867
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 6 Apr 2010 00:17:16 +0000 (00:17 +0000)]
Correct checks for gradient stop position.
It may be <= 1 in the final version and not < 1.
See #11897.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63866
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robert Roebling [Mon, 5 Apr 2010 17:52:05 +0000 (17:52 +0000)]
non PCH compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63865
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:19:04 +0000 (17:19 +0000)]
Fix text input and completion in wxComboCtrl and wxOwnerDrawnComboBox.
Both wxEVT_KEY_DOWN and wxEVT_CHAR must be handled and only the latter
used for completion (or any characters input). Don't make incorrect
assumptions about wxEVT_CHAR keycodes either, it's only the Unicode
character and printability that matter.
Otherwise, completion in readonly controls wouldn't work correctly
for e.g. numbers on numpad or non-ASCII characters.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63864
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:18:58 +0000 (17:18 +0000)]
wxOwnerDrawnComboBox: handle Home and End keys as native control does.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63863
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:18:55 +0000 (17:18 +0000)]
Pass events around with ProcessEvent(), not AddPendingEvent().
The latter adds the event for later processing. As a result, the event
appears to be processed to the caller, even if the handled it was passed
to called Skip() on it. ProcessEvent() doesn't suffer from this problem,
it may modify the event as expected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63862
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:18:50 +0000 (17:18 +0000)]
wxOwnerDrawnComboBox: handle numpad navigation keys.
For consitency with the native control, up/down/pgup/pgdown keys should
be handled even when pressed on the numpad.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63861
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:18:46 +0000 (17:18 +0000)]
Implement native mousewheel behaviour in wxOwnerDrawnComboBox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63860
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Apr 2010 17:18:41 +0000 (17:18 +0000)]
In wxPopupFocusHandler, watch for EVT_CHAR, not EVT_KEY_DOWN.
We should close the popup only if neither of these events was processed;
previously, EVT_CHAR would never reach the popup in open state, as it
would be closed automatically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63859
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 5 Apr 2010 12:44:31 +0000 (12:44 +0000)]
moving OnInit back
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63858
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Apr 2010 12:15:11 +0000 (12:15 +0000)]
Add support for gradient stops to wxGraphicsContext.
Allow specifying a set of gradient stops instead of just the beginning and
ending colours. Add the new wxGraphicsGradientStop(s) classes and new
wxGraphicsContext::Create{Linear,Radial}GradientBrush() overloads. Also change
the same methods of wxGraphicsRenderer to take wxGraphicsGradientStops instead
of a pair of colours.
Implement the new API for MSW and Cairo. OS X still uses just the two colours
for now.
Closes #11897.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63857
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Apr 2010 11:44:33 +0000 (11:44 +0000)]
Add wxTransparentColour global pseudo-variable.
Introduce a symbolic name for a fully transparent colour.
See #11897.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63856
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 5 Apr 2010 11:44:28 +0000 (11:44 +0000)]
Use helper wxColourToColor function in wxMSW wxGraphicsContext code.
Don't repeat Color ctor from wxColour all the time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63855
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775