Vadim Zeitlin
6e2f308461
use wxUIntPtr instead of long for 3rd parameter of wxListCtrl::SortItems() to allow passing pointers to it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 21:23:50 +00:00
Stefan Csomor
50b5e38d3f
textctrl fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 19:44:51 +00:00
Stefan Csomor
d9d551f6a2
adapting TextUpdateEvents, using wxTextEntry API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 20:09:39 +00:00
Stefan Csomor
c443ff6f53
fixing native font info support bugs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 19:58:51 +00:00
Vadim Zeitlin
ff3fd98a08
remove semicolon from wxDECLARE_EVENT; having it there was inconsistent with other wxXXX_EVENT macros and generally unexpected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 12:47:46 +00:00
Václav Slavík
fb5ae4f6d9
(blind) fix for VC6s' warning about non-dll base template class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-14 07:02:59 +00:00
Vadim Zeitlin
582886dde5
return empty string instead of NULL from mb_str()/wc_str() when conversion fails to avoid crashing badly written code which doesn't check for conversion failures
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-13 17:48:11 +00:00
Vadim Zeitlin
f20e268907
fix g++ warnings about initialization order mismatch after the last change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 23:43:04 +00:00
Vadim Zeitlin
75ac34cefc
fix support for using asterisks in the format string and some code cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 23:37:28 +00:00
Vadim Zeitlin
f54cb154d5
return persistent buffers from mb_str()/wc_str() to allow assigning the returned value to simple pointers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 19:49:45 +00:00
Francesco Montorsi
34be948fdb
no real change; just fix the argument name of the wxFont(const wxString&) ctor under wxGTK since it was misleading
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 16:06:43 +00:00
Václav Slavík
ed5e656088
fixed wxString::utf8_str() in UTF8 build to return buffer with length
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-12 10:12:44 +00:00
Vadim Zeitlin
85fcb94fc9
implement GetImageCount() for GIF handler ( closes #10663 ); added test for it to the sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-05 12:52:22 +00:00
Vadim Zeitlin
24a5629aed
define HAVE_SSIZE_T if we define ssize_t ourselves to prevent redefinitions in other libraries headers ( closes #10674 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-05 12:16:58 +00:00
Vadim Zeitlin
390b8241d3
revert r60023 and really fixed compilation problems caused by r60017 by providing assertEquals(const char *, const char *) overload as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 23:55:05 +00:00
Vadim Zeitlin
599d12919c
allow symmetric comparisons to work too in CPPUNIT_ASSERT_EQUAL (e.g. wxString==char*, size_t==int and not only char*==wxString, int==size_t)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-04 16:43:36 +00:00
Václav Slavík
197380a09f
always return (owned or non-owned, depending on build) wxScopedCharBuffer from utf8_str() and ToUTF8()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 18:28:42 +00:00
Václav Slavík
38d26d6040
fixes or embedded NULs handling in wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 15:35:47 +00:00
Václav Slavík
a6bb7a282d
fixed size of buffer returned by wxFormatConverter (it was too large before)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 11:54:41 +00:00
Stefan Csomor
ee032c59df
hiding the impl type more again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 07:30:26 +00:00
Václav Slavík
e542e141a3
compilation fix for wxUSE_UTF8_LOCALE_ONLY case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 00:00:15 +00:00
Václav Slavík
1c60f64458
set icons bundle, not single icon, for frames loaded from XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 21:25:23 +00:00
Václav Slavík
b5c2a33438
wxArtProvider::GetIconBundle() cleanup:
...
* makes GetIcon() and GetBitmap() behave in the same way again (i.e. GetBitmap
falls back to CreateIconBundle too)
* GetIcon() used to call CreateIconBundle() first, before CreateBitmap() - this
doesn't make sense, inverted
* GetIconBundle() falls back to GetIcon() if provider's CreateIconBundle()
doesn't return anything and vice versa: GetIcon()/GetBitmap() falls back to
GetIconBundle() if CreateBitmap() doesn't return anything
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 21:23:59 +00:00
Václav Slavík
cee875e329
add support for loading wxIconBundles from streams
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 21:19:40 +00:00
Václav Slavík
6df09f32fd
added length to wx(Scoped)CharBuffer to improve handling of embedded NULs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:58:39 +00:00
Stefan Csomor
b4ff8b3e4e
adding iphone code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:48:05 +00:00
Stefan Csomor
421bb0184e
adding proper iphone includes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:45:45 +00:00
Stefan Csomor
c099b53353
streamlining code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 20:44:58 +00:00
Vadim Zeitlin
89a7e1ff98
Added wxLOCALE_DATE/TIME_FMT support to wxLocale::GetInfo().
...
- Implement for POSIX and Win32, TODO for OS X
- Use this instead of ad hoc code in wxDateTime::ParseFormat()
- Remove HAVE_STRPTIME, we don't need nor use strptime() any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 17:15:43 +00:00
Stefan Csomor
04ce16a870
bracketing opengl code that doesn't work on OpenGL ES
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 17:13:27 +00:00
Vadim Zeitlin
4c802fdc48
no real changes, jus renames some parameters (see #10594 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 12:38:53 +00:00
Stefan Csomor
6c1f25cc9b
bracketing menu code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-28 16:46:34 +00:00
Václav Slavík
5412c6ad17
variadic macros need specializations for both wxCharBuffer and wxScopedCharBuffer ( fixes #10651 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-28 12:32:06 +00:00
Václav Slavík
3339414ae8
don't duplicate copy ctor and assignment operator code in wxCharTypeBuffer<T>, it was identical to base class' version
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-28 09:35:53 +00:00
Václav Slavík
de4983f323
split wxCharTypeBuffer<T> into wxScopedCharTypeBuffer<T> and wxCharTypeBuffer<T> -- the former is for transient data with validity limited to parent's lifetime, the latter is for permanent storage of string data (bug #9638 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-27 15:33:55 +00:00
Vadim Zeitlin
e06e81194b
no changes, just write a more detailed comment for StripExtension()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 16:02:09 +00:00
Vadim Zeitlin
181dd701fa
implement deprecated wxStripExtension() in terms of new wxFileName::StripExtension() ( closes #10634 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:55:01 +00:00
Vadim Zeitlin
4209475ced
detect horizontal overflow in wxHtmlPrintout and warn the user about it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 13:37:37 +00:00
Benjamin Williams
0eefa65979
added ability to set tool alignment ( #10174 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 15:56:23 +00:00
Benjamin Williams
8bc10f3280
added missing getters to wxAuiToolBar ( #10182 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 14:23:14 +00:00
Stefan Csomor
8fa9ac5e09
moving down for non-precomp build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 14:05:36 +00:00
Benjamin Williams
e7b8af652f
fix incorrect application of styles ( #10171 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:42:35 +00:00
Vadim Zeitlin
cf58616239
don't crash in wxFAIL and wxCHECK if assertion handler is NULL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:31:38 +00:00
Stefan Csomor
f06e0fea67
focus handling streamlined
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 10:24:51 +00:00
Stefan Csomor
43c5b6e808
better native types for carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 10:20:11 +00:00
Vadim Zeitlin
c398434d92
abandon attempts to make wxAnyStrPtr behave as bool: user-defined logical operators don't short circuit silently breaking existing code so it is better to not provide them at all; instead simply return bool from the new versions taking wxString::const_iterator; advise to use the new versions in the new code and so in our own files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 09:54:10 +00:00
Stefan Csomor
938fbc8f74
making method properly const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 09:46:08 +00:00
Vadim Zeitlin
b7aadf25fa
compilation fixes for wxAnyStrPtr for VC7; mention it in the change log
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 09:23:30 +00:00
Vadim Zeitlin
c5e8b33639
compilation fixes for wxAnyStrPtr for VC6
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 00:44:25 +00:00
Vadim Zeitlin
254696bb8f
return a wxAnyStrPtr covnertible to either narrow or wide char pointer from wxDateTime::ParseXXX() methods to improve compatibility with wx 2.8 and also simplify the code ( closes #9560 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 23:21:29 +00:00