Commit Graph

50856 Commits

Author SHA1 Message Date
Vadim Zeitlin
7f2468e96a Fix using weak references to incomplete classes.
wxWeakRef can work with forward-declared classes provided dynamic_cast<> is
available but this wasn't detected as being the case due to the use of the
obsolete HAVE_DYNAMIC_CAST in its code.

Replace HAVE_DYNAMIC_CAST with !wxNO_RTTI to fix this.

Also add a unit test checking that this does work.

Closes #11916.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-15 22:47:37 +00:00
Stefan Csomor
52cda80e1c supporting switching back background style from transparent on tlws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-15 20:04:37 +00:00
Stefan Csomor
6cb3007944 fixing build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 17:06:53 +00:00
Stefan Csomor
a3f78cebd7 make sure log output on the iphone goes to the console by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 16:46:45 +00:00
Stefan Csomor
98daf410db fixing layout of custom controls during resize, cleanup of member variables naming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 12:34:33 +00:00
Stefan Csomor
7d53220e14 fixing constants to be of the expected parameter type (float instead of double)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 12:16:42 +00:00
Michael Wetherell
d1662129f4 Update buildbot config.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 07:21:44 +00:00
Michael Wetherell
695ad1e6f3 Add builds to the buildbot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-14 05:55:00 +00:00
Stefan Csomor
61ad44c7a9 adding support for extraControl on osx_carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-13 20:27:04 +00:00
Stefan Csomor
17e2694c59 adding wrapping possibility for native tlws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-13 20:24:59 +00:00
Michael Wetherell
c96ce98975 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
2010-04-13 20:22:53 +00:00
Michael Wetherell
aff8792c70 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
2010-04-13 20:22:13 +00:00
Vadim Zeitlin
deee2b1885 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
2010-04-13 16:38:18 +00:00
Stefan Csomor
aa47eebb1b 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
2010-04-13 15:07:40 +00:00
Stefan Csomor
d0a7d7b1af 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
2010-04-13 12:08:51 +00:00
Stefan Csomor
ca9047f7ad fixing non-precomp build, fixes #10985
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-13 06:42:02 +00:00
Stefan Csomor
b61b8371b0 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
2010-04-12 20:39:51 +00:00
Stefan Csomor
583982c82f 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
2010-04-12 20:25:46 +00:00
Stefan Csomor
fa6ff5f183 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
2010-04-12 16:47:30 +00:00
Stefan Csomor
59d866ad85 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
2010-04-12 16:29:35 +00:00
Stefan Csomor
ad05cdb74c copying native cursor under cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-12 16:26:16 +00:00
Stefan Csomor
849252d51c 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
2010-04-12 13:38:41 +00:00
Vadim Zeitlin
946ceed9cd 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
2010-04-12 13:08:01 +00:00
Stefan Csomor
c6d9001128 changing sequence of makeFirstResponder and makeKeyAndOrderFront
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-12 12:18:33 +00:00
Stefan Csomor
82f8ea8547 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
2010-04-12 11:59:47 +00:00
Vadim Zeitlin
0e9eb80c39 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
2010-04-12 11:21:45 +00:00
Vadim Zeitlin
43b5ebf2a5 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
2010-04-12 11:21:41 +00:00
Vadim Zeitlin
9def6786d6 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
2010-04-12 11:21:37 +00:00
Vadim Zeitlin
71d77ea604 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
2010-04-12 00:37:17 +00:00
Vadim Zeitlin
6578236183 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
2010-04-12 00:37:13 +00:00
Vadim Zeitlin
476de5ea9a 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
2010-04-12 00:37:08 +00:00
Vadim Zeitlin
77e82897f2 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
2010-04-12 00:37:02 +00:00
Vadim Zeitlin
b503bfef1d 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
2010-04-12 00:36:52 +00:00
Vadim Zeitlin
8dd13d0fa1 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
2010-04-12 00:36:36 +00:00
Vadim Zeitlin
89e1de6441 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
2010-04-12 00:36:31 +00:00
Vadim Zeitlin
1935acd7a5 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
2010-04-12 00:36:22 +00:00
Vadim Zeitlin
d8eff331e2 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
2010-04-11 17:38:01 +00:00
Jaakko Salli
5caf524dff Fixed typo in documentation string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-11 13:20:10 +00:00
Vadim Zeitlin
e3ab69523b 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
2010-04-11 11:08:49 +00:00
Stefan Csomor
13f0c85aa4 cocoa implementation for overlay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-11 09:26:31 +00:00
Vadim Zeitlin
6e3f8e61a9 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
2010-04-10 18:13:34 +00:00
Vadim Zeitlin
43aecc4dd7 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
2010-04-10 18:13:29 +00:00
Vadim Zeitlin
fc4e23d7c1 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
2010-04-10 18:13:23 +00:00
Stefan Csomor
72a0d0fc95 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
2010-04-10 17:47:29 +00:00
Stefan Csomor
5575dacc50 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
2010-04-10 17:46:31 +00:00
Michael Wetherell
91e1a483a7 Corrections for the buildbot configs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-09 23:18:57 +00:00
Michael Wetherell
133a64cd90 Add wxDFB to buildbot.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-09 23:04:43 +00:00
Michael Wetherell
b8b2794a63 Typos.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-09 22:20:59 +00:00
Michael Wetherell
ec2c679586 Update configuration of linux buildbots.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-09 22:04:59 +00:00
Václav Slavík
b796194b15 Regenerated makefiles after removing USE_GDIPLUS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-09 14:14:26 +00:00