Commit Graph

40352 Commits

Author SHA1 Message Date
Václav Slavík
5881d27bcf made the code a bit more readable by not using _T() around to-be-generated code snippets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 20:22:08 +00:00
Robin Dunn
993f08452d Coerce to floating point to fix ResampleBicubic. See bug #1736953.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 19:39:13 +00:00
Robin Dunn
d1b736b796 Send the calendar and date changed events to the datepicker ctrl first
(not its parent) so they can be caught by dynamic event handlers
connected directly to the picker.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 19:34:56 +00:00
Mattia Barbon
ad877f92c6 Must update iterator to avoid infinite loop
in case backend initialization fails.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 19:23:09 +00:00
Václav Slavík
c5d7b81ecf improve XRC loading performance on Unix by avoiding MIME database loading
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 18:43:34 +00:00
Václav Slavík
dd25c6ee10 make our vsnprintf() implementation work for ANSI version too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 16:14:25 +00:00
Václav Slavík
300b44a933 fixed wxString iterators linked list corruption
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 08:55:11 +00:00
Mart Raudsepp
6cfdfed86b gtk_border_free is for freeing GtkBorder's, not g_free.
Using g_free instead used to have no ill effects as gtk_border_free called that anyway, but in gtk+-2.11 GtkBorder
uses GSlice and gtk_border_free therefore uses g_slice_free and using g_free makes things crash hard.
So fix it or wxGTK won't work with the upcoming gtk+-2.12 stable release planned for end of July.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 06:03:50 +00:00
Mart Raudsepp
9ce97705fc Fix memory leak in wxTextCtrl au_check_word that was triggered only with wxTE_AUTO_URL style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-18 04:54:41 +00:00
Václav Slavík
8eb3a3a923 when selecting text in wxHTML, selecting half a character is enough to select it (patch #1719530; this is standard behaviour when selecting text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 17:52:40 +00:00
Václav Slavík
117f4046d7 fixed selecting part of word from right to left in wxHTML (patch #1719530)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 17:31:09 +00:00
Mattia Barbon
416a4799e5 Linking fix: g_isIdle is for GTK1 only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 11:02:03 +00:00
Václav Slavík
69cce15178 determine wxFSFile's MIME type when wxFSFile::GetMimeType() is called instead of creating it; this dramatically improves startup times of XRC applications on Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 10:59:01 +00:00
Václav Slavík
81c882b613 don't make read-only text controls editable when enabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 09:29:41 +00:00
Vadim Zeitlin
d476275306 correct setting of pSymbol->SizeOfStruct (patch 1737789)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-17 00:51:36 +00:00
Vadim Zeitlin
b01204c942 fix unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 23:57:25 +00:00
Václav Slavík
aff909dd4f fixed crash when setting locale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 19:11:40 +00:00
Václav Slavík
994f04a3f2 wxUSE_STL compilation fixes for wxGenericFontDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 17:32:09 +00:00
Václav Slavík
410390cf09 removed code for compatibility with OS X <= 10.2, 10.3 is the minimum since wx-2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 17:15:16 +00:00
Vadim Zeitlin
80820772ad changed wxIsxxx() to return bool, not int, to avoid int->bool conversion warnings from VC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:45:01 +00:00
Václav Slavík
f966a73d40 fixed FromUTF8() to accept NULL as well as len==npos; this fixes crashes when loading XML files in UTF-8 build with wxUSE_STL=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:29:52 +00:00
Vadim Zeitlin
1663c65500 show the unhandled exceptions in debug build instead of silently eating them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 14:20:16 +00:00
Vadim Zeitlin
724b119a15 replace wxDocument::GetPrintableName(wxString&) and wxDocManager::MakeDefaultName(wxString&) with GetUserReadableName() and MakeNewDocumentName() which return wxStrings directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-16 12:49:56 +00:00
Václav Slavík
6ae3ead6f0 always compile at least a minimal version of wxStandardPaths class, it's used too often
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:21:57 +00:00
Václav Slavík
c560da981a use char* instead of wxChar* for XRC IDs to save space; GetXRCID() takes wxString argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:12:51 +00:00
Vadim Zeitlin
5d88a6b579 added wxDEPRECATED_BUT_USED_INTERNALLY macro and use it for the old wxLog::DoLog() overloads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:08:51 +00:00
Vadim Zeitlin
149210fbba documented WXUSING/MAKINGDLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 14:13:00 +00:00
Vadim Zeitlin
21686ff448 documented __WXDFB__ and __WXGTK2n__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 13:38:21 +00:00
Jouk Jansen
28ffb1f22f Committing in .
Changes to make OpenVMS compile WX

 Modified Files:
 	wxWidgets/include/wx/wxcrt.h wxWidgets/include/wx/wxcrtbase.h
 	wxWidgets/src/common/wxcrt.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 12:52:25 +00:00
Václav Slavík
a33c7045d1 don't put invalid UTF-8 data into wxString if Printf() fails in UTF-8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 11:26:29 +00:00
Václav Slavík
63415a83f7 (blind) compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 09:57:57 +00:00
Vadim Zeitlin
8f0b4082f4 corrected strptime() test, don't use NULL pointer as this crashes under Darwin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 00:29:54 +00:00
Paul Cornett
056b067f47 typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-14 06:34:39 +00:00
Paul Cornett
823fb291ae remove gtk1 code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-14 05:56:47 +00:00
Václav Slavík
37a4076eb5 fixed wxComboBox::Replace() to correctly use UTF-8 string even in ANSI build and to compile with wxUSE_STL=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-14 05:54:26 +00:00
Vadim Zeitlin
63a09523da check if strptime() works correctly and disable its use if it doesn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-14 00:56:35 +00:00
Václav Slavík
8d6c5e4f3f prefer wxFFile to wxFile if both are available, for better performance (see bug #1736365)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 20:49:27 +00:00
Václav Slavík
049908c573 make wxFrame a wxControlContainer too, so that it behaves in the same way as wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 16:29:23 +00:00
Václav Slavík
6b6bd02c07 don't propagate wxChildFocusEvent outside of wxTLWs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 15:35:57 +00:00
Vadim Zeitlin
105260e89f overload wxStrpbrk() for more types and add tests for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 15:31:09 +00:00
Václav Slavík
1757c449c4 removed redundant #include <dynarray.h>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 15:09:41 +00:00
Vadim Zeitlin
f291c98e52 use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT as this gives more detailed information in case of a test failure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 14:29:02 +00:00
Vadim Zeitlin
af9c764aa1 strWC used in the tests was supposed to be a wide string, not a narrow one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 14:21:40 +00:00
Vadim Zeitlin
10de049c42 Unicode compilation fix: wxStrlocale() doesn't take wide strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 14:19:24 +00:00
Vadim Zeitlin
7c37eb10fd added wxNullPtr and use it instead of just 0 with wxFileTypeInfo vararg ctor to fix crashes under 64 bit architectures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 11:32:44 +00:00
Václav Slavík
e9c7391947 added missing #includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-13 10:52:10 +00:00
Václav Slavík
12e8247795 use wxString in wxDateTime methods (only partially done)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 18:41:27 +00:00
Václav Slavík
a007b626a7 wxUSE_UNICODE_MSLU compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 17:08:23 +00:00
Jouk Jansen
84a90fc847 Updates for VMS
Modified Files:
 	setup.h_vms


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 13:32:33 +00:00
Vadim Zeitlin
2e1338ee4f update from Yuri Chornoivan
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-12 12:08:35 +00:00