]>
git.saurik.com Git - wxWidgets.git/log
Julian Smart [Thu, 8 Jul 2010 17:35:45 +0000 (17:35 +0000)]
iPhone SDK 2.2 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64855
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 8 Jul 2010 17:35:04 +0000 (17:35 +0000)]
Respect wxUSE_MENUS in toolbar base classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64854
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 8 Jul 2010 13:32:34 +0000 (13:32 +0000)]
Avoid warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64851
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Wed, 7 Jul 2010 10:12:38 +0000 (10:12 +0000)]
mention wxPostEvent() and wxQueueEvent() and related wxEvtHandler functions.
use wx prefix for event table macros.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64836
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Jul 2010 08:32:17 +0000 (08:32 +0000)]
only hide tool windows on deactivate, fixes #11924
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64834
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 7 Jul 2010 08:26:00 +0000 (08:26 +0000)]
supporting disabled tools, fixes #11457
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64833
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 5 Jul 2010 14:23:21 +0000 (14:23 +0000)]
Add std::[w]string support to wxVariant.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64821
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 5 Jul 2010 06:39:56 +0000 (06:39 +0000)]
fixing doc for OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64818
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 5 Jul 2010 06:36:21 +0000 (06:36 +0000)]
using backwards compatible implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64817
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 11:21:27 +0000 (11:21 +0000)]
Make m_inDoPropertyChanged and m_inCommitChangesFromEditor bools; Manage m_inDoPropertyChanged using wxON_BLOCK_EXIT_SET()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64814
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 10:39:10 +0000 (10:39 +0000)]
Mention why wxPG_EX_UNFOCUS_ON_ENTER was removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64812
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 10:30:13 +0000 (10:30 +0000)]
m_inDoSelectProperty: make it bool and use wxON_BLOCK_EXIT_SET() on it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64811
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 09:46:43 +0000 (09:46 +0000)]
Redundant wxPropertyGrid validation failure message boxes should no longer be shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64810
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 08:53:07 +0000 (08:53 +0000)]
Changed wxPropertyGrid default property validation failure behavior to more user-friendly wxPG_VFB_MARK_CELL | wxPG_VFB_SHOW_MESSAGEBOX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64808
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 08:33:16 +0000 (08:33 +0000)]
Translate text 'Property Error'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64807
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robert Roebling [Sun, 4 Jul 2010 08:25:28 +0000 (08:25 +0000)]
Fix assert in dataview sample, fixes #12194: wxDataViewCtrl sample asserts in wxArgNormalizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64806
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 4 Jul 2010 08:22:52 +0000 (08:22 +0000)]
Added new wxPropertyGrid property validation failure flags wxPG_VFB_SHOW_MESSAGEBOX and wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR, which allow defining the default message display behavior more accurately
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64805
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robert Roebling [Sun, 4 Jul 2010 08:22:06 +0000 (08:22 +0000)]
Let wxChoice determine its size for wxDataViewChoiceRenderer itself, fixes #12193: wxDataViewChoiceRenderer size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64804
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:31 +0000 (14:24 +0000)]
Fixed XML parser error text formatting.
XML_GetCurrentLineNumber() returns int in some versions of Expat and
unsigned long (or even uint64_t) in other versions. Just cast the value
to int so that it works correctly with all versions.
Fixes #12196.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64802
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:27 +0000 (14:24 +0000)]
Fix strings formatting in wxrc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64801
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:23 +0000 (14:24 +0000)]
Fix format strings parsing to understand C99 %zu etc.
The parser used to understand only 'Z' specifier for size_t/ptrdiff_t,
which is non-standard libc5 extension. C99 defines 'z' for this purpose,
so use that. Compatibility with 'Z' is preserved.
Also support Visual C++'s non-standard 'I' modifier with the same
meaning.
Fixes #12192.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64800
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:17 +0000 (14:24 +0000)]
wxFileOffsetFmtSpec isn't translatable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64799
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:12 +0000 (14:24 +0000)]
Fix vararg type checking to accept ints for %c.
It's perfectly legitimate to format int values as %c, so don't assert in
this case.
Fixes #12192.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64798
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 3 Jul 2010 14:24:06 +0000 (14:24 +0000)]
Simply varargs type checking by adding subtypes to check mask.
Instead of always declaraing that a C++ type corresponds to either
Arg_String or Arg_Pointer, make Arg_String superset of Arg_Pointer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64797
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 3 Jul 2010 12:22:58 +0000 (12:22 +0000)]
Eliminated lingering validation failure message on the status bar. Added wxPropertyGrid virtual member functions DoHidePropertyError() and GetStatusBar().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64796
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sat, 3 Jul 2010 11:43:49 +0000 (11:43 +0000)]
wxPropertyGrid validation failure was not (always) reset when a valid value was entered after an invalid one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64795
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Fri, 2 Jul 2010 14:24:45 +0000 (14:24 +0000)]
Fixed and improved wxIntProperty's min/max validation failure message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64791
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 1 Jul 2010 15:28:35 +0000 (15:28 +0000)]
Fix printf arguments validation code for ANSI build.
char arguments weren't recognized as allowed variadic types. Unlike in
Unicode build, where chars are treated specially, they are primitive
types in ANSI build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64790
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 1 Jul 2010 15:28:30 +0000 (15:28 +0000)]
Use wxScopedCharBuffer in To8BitData() in ANSI build too.
This allows one to write code compatible with both Unicode and ANSI
builds.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64789
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 1 Jul 2010 14:30:29 +0000 (14:30 +0000)]
Don't assume size_t is either int- or long-sized.
On 64bit Windows systems, sizeof(int)==sizeof(long)=4, but size_t is 8
bytes large.
Fixes #12179.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64788
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Thu, 1 Jul 2010 12:03:36 +0000 (12:03 +0000)]
allow USE_UNICODE=1 for wxMOTIF on OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64787
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 28 Jun 2010 21:21:22 +0000 (21:21 +0000)]
Added missing wxTEXT_ATTR_PAGE_BREAK from wxTEXT_ATTR_PARAGRAPH
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64776
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Chris Elliott [Mon, 28 Jun 2010 08:58:28 +0000 (08:58 +0000)]
delete docs after building
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64765
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Mon, 28 Jun 2010 08:41:57 +0000 (08:41 +0000)]
Update Makefile for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64764
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 26 Jun 2010 11:44:05 +0000 (11:44 +0000)]
fix error (more arguments for wxString::Format than specifiers) occurring because of a misplaced bracket
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64755
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 26 Jun 2010 11:43:13 +0000 (11:43 +0000)]
fix couple of typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64754
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sat, 26 Jun 2010 09:15:03 +0000 (09:15 +0000)]
Documentation change for new wxRTC function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64749
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sat, 26 Jun 2010 08:01:14 +0000 (08:01 +0000)]
Document that wxRearrange* controls exist since 2.9.0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64748
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 25 Jun 2010 20:53:39 +0000 (20:53 +0000)]
Move build tools into the main part of the repository tree
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64739
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 25 Jun 2010 20:50:41 +0000 (20:50 +0000)]
Remove svn:external property for build/tools as per wx-dev discussion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64738
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 25 Jun 2010 14:05:07 +0000 (14:05 +0000)]
Added PaintAboveContent function for drawing on top of text (#12176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64735
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 25 Jun 2010 09:42:21 +0000 (09:42 +0000)]
Fix posting of binary data using wxHTTP.
Don't use mbc_str() which can fail to convert contents of the string created
using wxString::From8BitData(). Use To8BitData() instead.
This fixes posting of binary data via HTTP using binary content transfer
encoding.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64728
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Fri, 25 Jun 2010 08:47:42 +0000 (08:47 +0000)]
synchronize setup.h_vms with setup.h.in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64727
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 25 Jun 2010 08:47:17 +0000 (08:47 +0000)]
Remove duplicate sample.xpm inclusion from stc sample.
This sample already included sample.xpm even before the recent changes
replacing mondrian.xpm (which it also included) inclusion with sample.xpm so
now it included it twice.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64726
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 25 Jun 2010 04:31:45 +0000 (04:31 +0000)]
invalidate border area when showing or hiding a pizza widget, fixes #12174
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64725
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 11:25:54 +0000 (11:25 +0000)]
Fix another bad format string in the testsuite.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64717
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 11:25:49 +0000 (11:25 +0000)]
Compilation fix for compilers that don't have native wchar_t.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64716
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:36 +0000 (10:34 +0000)]
Add tests for printf arguments validation code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64713
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:31 +0000 (10:34 +0000)]
Check if there aren't too many variadic arguments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64712
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:23 +0000 (10:34 +0000)]
Format strings fixes in test suite.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64711
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:18 +0000 (10:34 +0000)]
Check wxPrintf etc. arguments types.
Implements checks similar to gcc's compile-time checks: verify that the
arguments are of correct types. This works partially at compile time
(e.g. passing an object as argument fails to compile) and partially at
runtime (assert if the specifier doesn't match the type).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64710
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:11 +0000 (10:34 +0000)]
Add correct wxArgNormalizer code for signed char.
Signed char is distict type (see 3.9.1 [basic.fundamental] part of the
standard), covering just char and unsigned char is not enough.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64709
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:06 +0000 (10:34 +0000)]
Always NUL-terminate wxPrintfConvSpec::m_szFlags.
The array was initialized and terminating NUL was only added in some
cases. In combination with strchr() calls, this would result it
incorrect calculations or even crashes.
Fixed by initializing the array to zeros. This is less error-prone than
fixing the few places where explicitly adding the terminating NUL was
missing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64708
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:34:01 +0000 (10:34 +0000)]
Check that wxSIZE_T_IS_* macros are always defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64707
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:33:57 +0000 (10:33 +0000)]
Fix thread ID formatting in log messages.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64706
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Thu, 24 Jun 2010 10:33:36 +0000 (10:33 +0000)]
Corrected formatting of archiver command in the tests.
wxString::Format() was used even when the first argument didn't contain
any %s, yet a string argument was always passed to it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64705
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 22 Jun 2010 13:48:17 +0000 (13:48 +0000)]
paint events cannot be constructed outside a native redraw in OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64691
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 22 Jun 2010 12:46:20 +0000 (12:46 +0000)]
paint events cannot be constructed outside a native redraw in OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64690
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 22 Jun 2010 11:49:09 +0000 (11:49 +0000)]
trying to get it building at least
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64689
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 22 Jun 2010 09:55:11 +0000 (09:55 +0000)]
Add an explicit t_str() to fix wxMSW compilation with wxUSE_STL=1.
wxString is not implicitly convertible to TCHAR* in this case and we need to
use t_str() explicitly.
Closes #12169.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64685
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 22 Jun 2010 09:50:40 +0000 (09:50 +0000)]
Undo/replace the workaround for Doxygen crash from r64630.
According to
http://sourceforge.net/mailarchive/forum.php?thread_name=
5040710F -9134-4C21-9B08-
EA985136F53C %40gmail.com&forum_name=doxygen-users
simply adding an empty line after @since should be enough to fix the problem
and this does seem to work in practice so restore @since removed by r64630.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64684
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 22 Jun 2010 08:08:11 +0000 (08:08 +0000)]
Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64683
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Mon, 21 Jun 2010 23:32:34 +0000 (23:32 +0000)]
blind buildbot fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64681
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Mon, 21 Jun 2010 21:46:29 +0000 (21:46 +0000)]
small warning+PCH fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64680
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Mon, 21 Jun 2010 21:03:47 +0000 (21:03 +0000)]
move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user.
Leave in the console sample only a barebone console application (i.e. a real example).
Closes #11960
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64679
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Mon, 21 Jun 2010 19:47:14 +0000 (19:47 +0000)]
better DirTestCase::DirExists test;
fix test cases /usr//bin and /usr///bin: they succeed because wxDir::Exists does not care about redundant path separator (and this holds also for non-Unix platforms);
add some more test case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64678
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Mon, 21 Jun 2010 19:44:27 +0000 (19:44 +0000)]
minor change: use a "positive" logic: use shouldSucceed instead of shouldFail and use more descriptive names for non-existing folders; add a few test cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64677
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 16:36:45 +0000 (16:36 +0000)]
adding mimetype patch, closes #12072
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64671
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 15:30:07 +0000 (15:30 +0000)]
adding HitTest to osx_cocoa implementation of listbox, refactoring code, fixes #11972
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64670
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 14:01:59 +0000 (14:01 +0000)]
fixing year display, see #11444
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64669
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 14:00:59 +0000 (14:00 +0000)]
adding bestsize for osx_cocoa combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64668
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:14 +0000 (12:19 +0000)]
Correct the expected result of directory existence check.
As /.. is the same as /, a directory with any number of ".." in it will always
exist.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64667
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:10 +0000 (12:19 +0000)]
Remove references to joytest.rc that was recently removed.
Another fix to samples compilation after recent changes removing unneeded
icons and resource files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64666
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 21 Jun 2010 12:19:04 +0000 (12:19 +0000)]
Suppress bogus g++ warnings about uninitialized variables.
The variables are always initialized but for some reason (at least the Apple
version of) g++ gives warnings for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64665
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 11:50:53 +0000 (11:50 +0000)]
adding fix for non-precomp header build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64664
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 10:14:57 +0000 (10:14 +0000)]
storing current event for dnd support, adding default data-drag image, fixes #12065
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64663
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 21 Jun 2010 07:50:12 +0000 (07:50 +0000)]
text updated events were not always sent out correctly, fixes #11462
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64662
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:41 +0000 (18:18 +0000)]
Remove references to not existing any more griddemo.rc file.
The file was removed in a recent commit but the bakefile was not updated.
Do it now and rebake the makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64659
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:36 +0000 (18:18 +0000)]
Correct the name of the XPM file containing the icon in xrc sample.
This fixes a compilation error introduced during de-mondrianization of the
samples.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64658
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:32 +0000 (18:18 +0000)]
Gracefully disconnect clients in wxDDEServer dtor.
Remove the SetConnected(false) call which prevented the connection from
notifying the client about its destruction.
Closes #12164.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64657
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 18:18:23 +0000 (18:18 +0000)]
Use wxDELETE() and wxDELETEA() when possible.
Use wxDELETE[A]() functions which automatically NULL out their arguments after
deleting them instead of doing it manually.
Closes #9685.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64656
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:35 +0000 (17:43 +0000)]
Quote file names with spaces in wxFileType::ExpandCommand().
Add double quotes around the file name inserted into the command to open the
file by wxFileType::ExpandCommand() if the file name contains any spaces and
if it's not already quoted by the command line itself.
While this doesn't completely fix the problem, it does help with opening the
files with spaces in their names under Windows and shouldn't do any harm under
Unix.
Closes #4607.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64655
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:30 +0000 (17:43 +0000)]
Fix activation handling in generic wxDataViewCtrl renderers.
Handling of activation in the generic implementation of standard renderers was
broken since r62589 which stopped calling their Activate() method. Restore it
by introducing a special WXOnActivate() replacing it (but clearly marked as
private and implementation-only) and calling it instead.
Closes #11460.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64654
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:26 +0000 (17:43 +0000)]
Extract tags from private headers under wxMSW too.
Added include/wx/msw/private/*.h to the list of files passed to ctags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64653
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:21 +0000 (17:43 +0000)]
Add a system option to exit immediately on assert failure.
This option will allow to test for absence of asserts in wxWidgets samples in
the future.
Closes #10697.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64652
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:15 +0000 (17:43 +0000)]
Document and improve system options definition in the environment.
Document that system options can be defined in the environment.
Replace another character (dash) invalid in environment variable names but
present in some standard system option names with underscore.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64651
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:11 +0000 (17:43 +0000)]
Add a test for selecting the last item in the tree control sample.
This allows to test whether an item is brought into view by selecting it,
see #11154.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64650
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:06 +0000 (17:43 +0000)]
Use wxFont::Bold() in wxGenericTreeCtrl instead of wrongly duplicating it.
Creating a new wxFont from the components of the existing one doesn't always
work because we may not have a valid value for the old font family so attempt
to use it as a family of the new font results in an assert.
Just use wxFont::Bold() instead to avoid the problem. It's much shorter and
obviously correct and doesn't result in asserts.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64649
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:43:02 +0000 (17:43 +0000)]
Use PBM_SETMARQUEE to implement indeterminate mode in wxMSW wxGauge.
The old code which simply used PBM_SETPOS after setting PBS_MARQUEE style
often worked but sometimes apparently didn't, so switch to the officially
sanctioned PBM_SETMARQUEE to implement this.
Also make wxGauge::SetDeterminateMode() and SetIndeterminateMode() methods
private as they are not part of the public class API.
Closes #11357.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64648
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:42:56 +0000 (17:42 +0000)]
Don't enable scrollbar if it can't do anything in wxMSW.
Only reenable scrollbar in wxWindow::SetScrollbar() in wxMSW if its range is
large enough to allow scrolling it.
Closes #11373.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64647
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:42:52 +0000 (17:42 +0000)]
Use wxTE_RICH2 for in-place wxGrid text editor control.
This works around a bug with the plain text edit control under MSW which seems
to totally lose its caret when we hide it and show it again for another cell.
This is not a proper fix for the problem, of course, but at least it does
allow to edit wxGrid cells in the meanwhile.
Closes #11681.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64646
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:42:33 +0000 (17:42 +0000)]
Remove unnecessary mondrian.{ico,xpm} files from samples directory.
Standardize on using sample.rc and sample icon in all the samples, it was
confusing that some of them used it and other didn't, without any apparent
logic.
Remove the now unnecessary icon files, including the dialogs sample icon which
seemed to be corrupted (this closes #11146).
Also replace multiple OS/2 resource files with a single one in the sample
directory. The OS/2 projects/makefiles would need to be updated to use them.
Remove dialogs sample icon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64645
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 17:41:14 +0000 (17:41 +0000)]
No real changes, just convert a Mac-specific file to UTF-8.
This is needed in order to be able to commit the next change, updating it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64644
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 20 Jun 2010 15:24:01 +0000 (15:24 +0000)]
using proper dylib for darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64643
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 20 Jun 2010 14:53:34 +0000 (14:53 +0000)]
no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64642
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 20 Jun 2010 14:49:40 +0000 (14:49 +0000)]
no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64641
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 20 Jun 2010 14:46:44 +0000 (14:46 +0000)]
no trailing slash for OSX_CARBON
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64640
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 20 Jun 2010 11:46:49 +0000 (11:46 +0000)]
Ensure that wxFileName::GetTempDir() doesn't return trailing slashes.
Sanitize the value returned by GetTempDir() to ensure that it doesn't have any
trailing path separators. This happened at least under OS X where standard
TMPDIR has a trailing slash and was inconsistent with the behaviour under the
other platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64638
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jaakko Salli [Sun, 20 Jun 2010 07:08:13 +0000 (07:08 +0000)]
VC6 Fix: Use wxANY_AS() instead of wxAny::As<>()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64637
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Francesco Montorsi [Sat, 19 Jun 2010 12:48:46 +0000 (12:48 +0000)]
group all interactive tests together to make it easier to understand what's going on when running the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64636
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775