Commit Graph

24462 Commits

Author SHA1 Message Date
Vadim Zeitlin
cf9f673789 fix wxDateTime::ParseRfc822Date() to handle missing seconds (ticket #1341)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 14:37:26 +00:00
Vadim Zeitlin
77fa3d8243 add a special macro for comparing time_t values to fix unit test compilation on platforms with 64 bit time_t (such as FreeBSD 6.2 apparently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 13:01:59 +00:00
Vadim Zeitlin
a964d3edf5 corrected bug in wxMBConvStrictUTF8::FromWChar(): it wrote one extra NUL when used with explicit source length
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 03:11:32 +00:00
Vadim Zeitlin
ca8cf4fffb added wxTextOutputStream::Flush(): this is necessary with the stateful encodings, such as UTF-7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 03:09:25 +00:00
Vadim Zeitlin
9d653e810c rewrote UTF-7 to work on streams of data to be comaptible with the way wxTextStream uses the converters; also converted a couple off by 1 bugs and unit test finally pass now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 03:08:45 +00:00
Vadim Zeitlin
e4e487e2a5 no real changes, just simplify LoadPage() to make it more readable and less redundant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 13:25:50 +00:00
Václav Slavík
91915e1c13 allow periods in wxFileSystem URL anchors (patch #2265)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 09:44:03 +00:00
Vadim Zeitlin
e5c28d8710 don't write extraneous NUL bytes in wxMBConv_iconv::FromWChar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:55:45 +00:00
Vadim Zeitlin
2588ee861f correct similar off by 1 bug to the one fixed by r53869 in wxMBConv_iconv::ToWChar() in FromWChar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:54:21 +00:00
Vadim Zeitlin
1752fda65b fix bug with wrong return value in wxMBConv_iconv::ToWChar() introduced by a recent check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:53:10 +00:00
Vadim Zeitlin
d50c083157 fix wxMBConv_iconv to respect the base class conventions: when the input is NUL-terminated, the output should be NUL-terminated and the return value should account for the terminating NUL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:39:32 +00:00
Vadim Zeitlin
467a2982d2 swap all characters instead of just the last one in a loop in wxMBConv_iconv::ToWChar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:23:36 +00:00
Vadim Zeitlin
95f82f4ce3 don't return success when converting incomplete UTF-7 sequences
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 01:22:16 +00:00
Vadim Zeitlin
893bf46069 undid change of r44565: not taking hyphens into account entirely is a bad idea as we then recognize some junk as valid encodings and it even made our own unit test fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 23:12:39 +00:00
Vadim Zeitlin
8f4b0f43f0 implement wxMBConv_iconv::To/FromWChar() instead of MB2WC/WC2MB: this allows to use wxMBConv conversions with wxTextInputStream and fixes TextStreamTestCase unit test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 22:49:48 +00:00
Vadim Zeitlin
179a30e2f8 check that the argument is not empty in wxHtmlWindow::LoadPage() to avoid crashing if it is
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 19:49:53 +00:00
Julian Smart
e1ac8c99e4 Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 17:50:45 +00:00
Julian Smart
7b32a8b736 Don't update UI if hidden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 17:44:52 +00:00
Vadim Zeitlin
508b652335 ensure that GetEditControl() returns something even if label editing was started by the user and not the program (closes #1325)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 00:26:07 +00:00
Vadim Zeitlin
5cd4cb75ee no changes, just refactor the code to avoid having the same code for m_textCtrl destruction in 4 places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 00:03:03 +00:00
Robert Roebling
13d843f1c1 More work on getting wxLisBox events right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 23:13:47 +00:00
Vadim Zeitlin
4081eb6fe2 include wx/crt.h needed for wxFprintf() (closes #9509)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 16:58:59 +00:00
Stefan Csomor
cbb4085001 adding lowlevel hook to listbox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 14:13:45 +00:00
Vadim Zeitlin
b0fa01cca2 don't give an error if VT_DATE variant is being released, there is nothing to do for it anyhow (closes #4527)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 13:35:52 +00:00
Vadim Zeitlin
fe267c2fad take wxString in wxCrashReport::SetFileName() to allow passing either ASCII or wide strings as well as wxStrings to this method (closes 9505)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 13:28:05 +00:00
Paul Cornett
aac7dbf3aa remove unused/unneeded menuitem cruft
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 04:41:37 +00:00
Paul Cornett
efebabb7ff mark long-deprecated ctor as such
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-29 04:26:29 +00:00
Vadim Zeitlin
1033a7cc58 fix assert in ANSI build in wxConsoleStderr::GetCommandHistory() (ticket 9146)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-28 12:47:27 +00:00
Robin Dunn
fa34bc5331 Add wxWebKitNewWindowEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-28 06:33:46 +00:00
Paul Cornett
e828d3fc80 fix leak introduced by r53753
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-28 06:15:35 +00:00
Vadim Zeitlin
7ead384579 get rid of MSVC warning about possibly uninitialized variable in CalcAndSendEvent() and also make its code somewhat more structured
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 23:21:29 +00:00
Vadim Zeitlin
575cabba69 fix some harmless compilation in (release) MSVC build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 22:48:54 +00:00
Vadim Zeitlin
ae1675944b ifdef fixes for PalmOS6 (part of ticket 4700)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:35:13 +00:00
Vadim Zeitlin
2d7388d3e8 Palm compiler needs const_cast for passing const int parameters to function taking int (part of ticket 4700)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:34:50 +00:00
Václav Slavík
f94d33c584 silence warnings about not using double-buffered surface in wxScreenDC ; add comment explaining why (and how) is wxScreenDC implementation in wxDFB broken
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:28:28 +00:00
Vadim Zeitlin
a0d6f21464 translate comments in English (part of ticket 4700)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:26:11 +00:00
Vadim Zeitlin
66930b351f distinguish between Server 2003 and XP 64-bit (closes 3359)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:17:16 +00:00
Vadim Zeitlin
d4885e10dd add a mention to OS description string if running under a 64-bit Windows version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 16:00:22 +00:00
Vadim Zeitlin
a284cce85f recognize Vista by name in wxGetOsDescription()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 15:48:23 +00:00
Robert Roebling
e78c1d7855 Native wxBitmapComboBox patch for GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 10:17:56 +00:00
Robert Roebling
7a04b64409 Clear columns on destruction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:52:26 +00:00
Robert Roebling
ef11ea71bb Use wxList::DeleteContents() to delete columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:26:09 +00:00
Robert Roebling
b3a3c9d82c Use wxList::DeleteContents() to delete columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:19:41 +00:00
Robert Roebling
1afad0ac74 Reapply wxWeakRef patch again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 09:17:56 +00:00
Robert Roebling
3e040a2981 Use wxWindowRef to hold pointer to default button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 08:53:48 +00:00
Stefan Csomor
47c1bb9515 fixing arc filling for angles > 180
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-27 04:49:30 +00:00
Paul Cornett
afd83fb797 fix removing menu item, ticket 3387
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-26 17:28:41 +00:00
Kevin Ollivier
c88d91ba07 (Port to trunk) Fix for wxClientDC::GetAsBitmap, which partially resolves ticket #9486
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-25 21:54:32 +00:00
Kevin Ollivier
c489cc51e9 Build fix for non-pch builds, e.g. for universal binary building.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-25 21:48:39 +00:00
Robert Roebling
1ddb283ad5 Defer SetHorizontalExtent to idle, also fixes (wxListBox::Delete ignores Freeze/Thaw and is verrrrry slow)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-25 20:54:30 +00:00