Commit Graph

44788 Commits

Author SHA1 Message Date
Vadim Zeitlin
36f9367822 fix bug introduced in r54646: we still need to count the embedded NULs when converting the entire NUL-terminated string to wchar_t, only the trailing NUL shouldn't be counted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:45:04 +00:00
Vadim Zeitlin
42e8b52f09 make test failures easier to debug by using more informative failure messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:24:21 +00:00
Vadim Zeitlin
ae43193571 don't run the tests which can't succeed in ANSI build; remove the tests for wxUSE_WCHAR_T, it's always 1 now; test MB2WC conversions in Unicode build too (it only tested WC2MB for some reason)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:01:17 +00:00
Vadim Zeitlin
852dcba528 properly detect missing data at the end of UTF-7-encoded segment and fail the conversion in this case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:01:02 +00:00
Vadim Zeitlin
55f7a9ec3c CP-xxx and MS-yyy iconv identifiers actually don't have dashes in them (this fixes CP932 unit test failure under FreeBSD where iconv doesn't have WINDOWS-932)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 19:44:59 +00:00
Vadim Zeitlin
bb778cae99 emphasize the fact that GetSelectedCols/Rows() is not sufficient to get the selection (#4732)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 16:06:23 +00:00
Vadim Zeitlin
d8df88930e allow using SetFont(wxNullFont) to reset the font as per documented behaviour (#3238)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:53:44 +00:00
Vadim Zeitlin
bec76e1835 add GetLo/Hi() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:21:24 +00:00
Stefan Csomor
f772729b7c adding missing include for non-precomp builds, and grouping headers, solves #9744
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 08:59:27 +00:00
Vadim Zeitlin
d79c9c6791 _beginthreadex() entry point should really return unsigned and not wxUIntPtr even if this means that it's impossible to return pointers from wxThread::Entry() under Win64 (#9727)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 02:49:12 +00:00
Vadim Zeitlin
b3f2ce1c3f check for comctl32.dll version and not OS one as an app running XP without manifest is still incapable of drawing bitmaps with alpha (still related to #8684)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:47:14 +00:00
Vadim Zeitlin
52d80ec642 use parent background and not ours unless one was explicitly set when manually drawing (related to #8684)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:30:32 +00:00
Vadim Zeitlin
56c74796a6 clean up wxBitmapButton::Create(); override MSWGetStyle() (#4804)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 01:08:52 +00:00
Vadim Zeitlin
fae7120624 use wxCmdLineParser::ConverStringToArgs() instead of (incorrectly) duplicating it here (#9743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:53:11 +00:00
Vadim Zeitlin
a4761b4c08 implement flag for Unix-like behaviour in wxCmdLineParser::ConverStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:49:25 +00:00
Vadim Zeitlin
fec42c21ef added wxConvISO8859_1 test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:48:47 +00:00
Vadim Zeitlin
f6a0208756 fix the output length returned from cWC2MB/MB2WC() to be consistent with From/ToWChar(); fix off by NUL-length bug in wxMBConv implementation of From/ToWChar() in terms of legacy WC2MB/MB2WC() (which are still used in wxMBConv_wxwin) that this uncovered; added a simple test for the bugs the old code resulted in which could be easily seen with wxConvISO8859_1 (see #9739)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 23:57:25 +00:00
Julian Smart
9ca15f291c Fixed wxTreebook tree control style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 21:28:12 +00:00
Vadim Zeitlin
339e08c704 use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 18:00:49 +00:00
Vadim Zeitlin
fa0584f14d use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 17:38:03 +00:00
Vadim Zeitlin
b161b1549c test ok in the record reading loop as otherwise we never exit from it if there is an invalid character in the record
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 17:31:40 +00:00
Vadim Zeitlin
05392dc8c6 remove wxCSConv::MB2WC/WC2MB, implement Latin-1 fallback conversion in To/FromWChar() themselves; this is more efficient and removing the old code fixes off by 1 bugs in it (related to #9739)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 16:09:00 +00:00
Vadim Zeitlin
99ea81de15 don't pass pointers to unaligned DWORDs to avoid 64 bit build problems (#9726)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 15:22:23 +00:00
Vadim Zeitlin
a6b2078ddd fix changing size of merged cells (#9736)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 14:36:28 +00:00
Vadim Zeitlin
15840e670e don't mention deprecated wxRESIZE_BOX (#9735)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 13:50:37 +00:00
Václav Slavík
6a8dba378b compilation fix after SetClippingRegion changes (patch #9696 by Anders Larsen)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 21:13:35 +00:00
Vadim Zeitlin
02ab8d3a75 only initialize sockets if IPC implementation is socket-based
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 21:01:41 +00:00
Vadim Zeitlin
4c141c5a96 PCH-less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 15:12:58 +00:00
Vadim Zeitlin
4563378999 fix heap corruption bug: use delete[] to delete a buffer allocated with new[], not delete
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:34:29 +00:00
Vadim Zeitlin
e7ce668e1d added a simple IPC unit test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:19:34 +00:00
Vadim Zeitlin
eaad096e79 relay out the control after deleting any page, not just the last one (#9684); also extract the size event sending code in a separate function to be able to replace it with something better easier later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:04:28 +00:00
Vadim Zeitlin
95867b4efc calling Notify() from child thread is ok -- as long as you do it from one and the same thread all the time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:03:57 +00:00
Vadim Zeitlin
589c1174f4 removed automatically generated code for frame layout with human-readable version; some other cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 01:20:33 +00:00
Vadim Zeitlin
d7ad5a0289 define {first,second}_type in the struct declared by _WX_DECLARE_PAIR too for compatibility with std::pair, we can avoid #ifdefs in the code using the hash then (#9725)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:20:06 +00:00
Vadim Zeitlin
101198ba0c set wxKeyEvent::m_uniChar correctly in the events generated by generic wxListCtrl (#4581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:16:38 +00:00
Vadim Zeitlin
67ef83eb03 added wxFlexGridSizer::Add{Row,Col}Growable() (#2603)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:06:50 +00:00
Vadim Zeitlin
9379b3f68d mention that GetItemRect() is new in 2.9.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:02:38 +00:00
Vadim Zeitlin
905069b18f relay out the control after deleting any page, not just the last one (#9684); also extract the size event sending code in a separate function to be able to replace it with something better easier later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:01:12 +00:00
Vadim Zeitlin
b8e57034a2 don't assert when GetSubItemRect() is called in non-report view if it's called with wxLIST_GETSUBITEMRECT_WHOLEITEM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 17:52:52 +00:00
Vadim Zeitlin
3a59bd2e78 add back parameter dropped during Doxygen conversion (#9697)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 17:34:56 +00:00
Vadim Zeitlin
d237bb0753 correct wrong example of using wxSizerFlags::Border() (#9699)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 17:31:41 +00:00
Vadim Zeitlin
293b15f78d added wxVListBox::GetItemRect() (#9711)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 17:28:31 +00:00
Vadim Zeitlin
1bf55f4cda use wxString::Format() instead of hardcoding floating point numbers string representation, this doesn't work in locales using decimal comma (#9714)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 16:33:19 +00:00
Vadim Zeitlin
550cb72bf6 more compilation fixes for wxUSE_STL && wxUSE_DEBUG_CONTEXT build (#9698)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 16:29:57 +00:00
Julian Smart
043c0d5843 Shift+Return now puts the cursor on the next line
Fixed GetContiguousPlainText bug that caused wrapping problem


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 12:13:38 +00:00
Vadim Zeitlin
e6f688797c run tests several times with different socket flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:43:19 +00:00
Vadim Zeitlin
bf451723ca check that the stream raises no error other than EOF when it's supposed to be at EOF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:30:06 +00:00
Vadim Zeitlin
c515e20be4 enable the rest of wxSocketStream tests now that they pass
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:29:42 +00:00
Vadim Zeitlin
c91574928d add wxSocket::IsClosed(), use it to implement Eof() in wxSocketStream
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:28:12 +00:00
Vadim Zeitlin
74a50e4923 no changes, just removed broken #if 0'd out code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:17:11 +00:00