Commit Graph

51301 Commits

Author SHA1 Message Date
Václav Slavík
3b12da351c 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
2010-07-03 14:24:12 +00:00
Václav Slavík
5b4a88f4db 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
2010-07-03 14:24:06 +00:00
Jaakko Salli
2d8d109b6c 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
2010-07-03 12:22:58 +00:00
Jaakko Salli
8915141c1e 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
2010-07-03 11:43:49 +00:00
Jaakko Salli
3217f79df1 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
2010-07-02 14:24:45 +00:00
Václav Slavík
afc1f37c65 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
2010-07-01 15:28:35 +00:00
Václav Slavík
908c405611 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
2010-07-01 15:28:30 +00:00
Václav Slavík
227c030f98 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
2010-07-01 14:30:29 +00:00
Jouk Jansen
0d3d9817c0 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
2010-07-01 12:03:36 +00:00
Julian Smart
8698cfea93 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
2010-06-28 21:21:22 +00:00
Chris Elliott
9670c0a8d4 delete docs after building
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-28 08:58:28 +00:00
Jouk Jansen
882b808d08 Update Makefile for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-28 08:41:57 +00:00
Francesco Montorsi
a23a0a455e 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
2010-06-26 11:44:05 +00:00
Francesco Montorsi
ffc78010a9 fix couple of typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-26 11:43:13 +00:00
Julian Smart
826c4761df Documentation change for new wxRTC function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-26 09:15:03 +00:00
Václav Slavík
f2485d4fb5 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
2010-06-26 08:01:14 +00:00
Robin Dunn
3b2c81c759 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
2010-06-25 20:53:39 +00:00
Robin Dunn
55a84a2d05 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
2010-06-25 20:50:41 +00:00
Julian Smart
35bdbae572 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
2010-06-25 14:05:07 +00:00
Vadim Zeitlin
658e62e493 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
2010-06-25 09:42:21 +00:00
Jouk Jansen
d920252a21 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
2010-06-25 08:47:42 +00:00
Vadim Zeitlin
4c5ec23654 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
2010-06-25 08:47:17 +00:00
Paul Cornett
6e7cf3bd5b 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
2010-06-25 04:31:45 +00:00
Václav Slavík
df67b58b5b 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
2010-06-24 11:25:54 +00:00
Václav Slavík
c869479eb4 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
2010-06-24 11:25:49 +00:00
Václav Slavík
ad6e5c47de Add tests for printf arguments validation code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-24 10:34:36 +00:00
Václav Slavík
bb2ce9356e 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
2010-06-24 10:34:31 +00:00
Václav Slavík
38914d5a51 Format strings fixes in test suite.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-24 10:34:23 +00:00
Václav Slavík
0f895b0cf5 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
2010-06-24 10:34:18 +00:00
Václav Slavík
2fe2d3de6b 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
2010-06-24 10:34:11 +00:00
Václav Slavík
060ec116e4 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
2010-06-24 10:34:06 +00:00
Václav Slavík
2f06971640 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
2010-06-24 10:34:01 +00:00
Václav Slavík
35e9c131e2 Fix thread ID formatting in log messages.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-24 10:33:57 +00:00
Václav Slavík
72e7920f2d 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
2010-06-24 10:33:36 +00:00
Stefan Csomor
155362949b 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
2010-06-22 13:48:17 +00:00
Stefan Csomor
f009da6ed5 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
2010-06-22 12:46:20 +00:00
Stefan Csomor
a2c8b98460 trying to get it building at least
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-22 11:49:09 +00:00
Vadim Zeitlin
a49b09f5af 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
2010-06-22 09:55:11 +00:00
Vadim Zeitlin
4c9ccee713 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
2010-06-22 09:50:40 +00:00
Jouk Jansen
a9638bb6eb Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-22 08:08:11 +00:00
Francesco Montorsi
ddd4f327f7 blind buildbot fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 23:32:34 +00:00
Francesco Montorsi
995202d020 small warning+PCH fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 21:46:29 +00:00
Francesco Montorsi
81ec0e15af 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
2010-06-21 21:03:47 +00:00
Francesco Montorsi
10dee2ae3f 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
2010-06-21 19:47:14 +00:00
Francesco Montorsi
d6609db5a7 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
2010-06-21 19:44:27 +00:00
Stefan Csomor
bd7bfb002d adding mimetype patch, closes #12072
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 16:36:45 +00:00
Stefan Csomor
20196e15ee 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
2010-06-21 15:30:07 +00:00
Stefan Csomor
6bc5b23535 fixing year display, see #11444
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 14:01:59 +00:00
Stefan Csomor
5bd7710593 adding bestsize for osx_cocoa combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-21 14:00:59 +00:00
Vadim Zeitlin
c14ae7f5b3 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
2010-06-21 12:19:14 +00:00