Vadim Zeitlin
e835ec0100
added wxMBConv::Clone() to be able to copy conversion objects polymorphically
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 16:54:02 +00:00
Vadim Zeitlin
3793402c74
also fixed WriteString() to work correctly when outputting UTF-16/32: can't use strlen() with these encodings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 16:28:29 +00:00
Vadim Zeitlin
d7f73361b9
fixed NextChar() to read the entire character at once as before it stopped on the first byte for ASCII input encoded as UTF-32LE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 16:17:58 +00:00
Vadim Zeitlin
d36c9347ea
added wxMBConv::Clone() to be able to copy conversion objects polymorphically
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 16:10:08 +00:00
Vadim Zeitlin
64f56529a8
properly NUL-terminate the output in wxMBConvUTF16swap::WC2MB()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 15:18:05 +00:00
Vadim Zeitlin
d31a29b566
rebaked after adding convautotest.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 15:07:06 +00:00
Vadim Zeitlin
a1999705b6
rebaked after adding convauto.cpp/.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 15:06:15 +00:00
Roman Rolinsky
28e65e0fa0
Second fix for Copy/Paste (using expat.native_encoding property).
...
Added cellpos,cellspan properties for Spacer in GridBag sizer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 14:55:17 +00:00
Vadim Zeitlin
a29cce78aa
tests for wxConvAuto
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 14:38:42 +00:00
Vadim Zeitlin
830f8f11bc
1. changed all "wxMBConv& conv" parameters to "const wxMBConv&"
...
2. this allows to use wxConvAuto() instead of wxConvUTF8 as default value
for this parameter in the classes which read text from the file: wxConvAuto
automatically recognizes the BOM at the start of file and uses the correct
conversion
3. don't use Windows for UTF-7 conversions as there is no way to make it
fail on invalid UTF-7 strings; use our own wxMBConvUtf7 instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 14:37:47 +00:00
Mart Raudsepp
cc845a6142
encconv.cpp: Remove comment about 5 being big enough value for ENC_PER_PLATFORM - it should be the minimum
...
necessary instead.
fmapbase.cpp: Slightly reduce the size of an array - it should be reduced further (we only have one item with the
size of 9, rest are not over 6)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 10:02:28 +00:00
Mart Raudsepp
da9619e046
Update unictabl.inc manually, keeping KOI8-U, while doing it as close as possible for as how the regenerator would
...
have done if it had a matching KOI8-U.TXT file at hand.
This moves 5.9KB from .data to .rodata (guaranteed to be shared among wx apps).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 00:37:45 +00:00
Mart Raudsepp
cd1a22d1d3
Support having const encoding tables. Modify generator code to regenerate as such.
...
Can't simply regenerate src/common/unictabl.inc, because KOI8-U.TXT is missing, and mk_fallbacks has issues
(sort +2 isn't valid on my system)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 00:30:18 +00:00
Mart Raudsepp
c260cbf80d
Make the unicode table scripts generate file with whitespacing done as has been manually edited despite the
...
warning on top.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 00:18:31 +00:00
Robin Dunn
b82f68a95b
Docstring fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 23:33:01 +00:00
Robin Dunn
985eb16c7b
EVT_TEXT_ENTER handler on a combobox needs evt.Skip() otherwise the
...
dropdown may not close
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 23:29:14 +00:00
Mart Raudsepp
8ddbb13781
Make EquivalentEncodings 3-dimensional array const, moving 864 bytes from data segment (copy-on-write) to
...
.rodata segment (always guaranteed to be shared among processes) in wxBase.
Make said array as big as necessary, not bigger than necessary (as before) - shaving 122 bytes off of that 864
bytes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 23:01:57 +00:00
Mart Raudsepp
ac131bab11
wxGTK2: No need to warn about threads being unsupported if gtk+ is lower than 1.2.4 - this is source code for gtk2
...
only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 19:44:27 +00:00
Mart Raudsepp
042bcad45e
Add GDK_PIXBUF_DISABLE_DEPRECATED, it should build with it now. Will keep an eye on the tinderbox at a reasonable
...
interval.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 19:34:38 +00:00
Mart Raudsepp
08f600190c
gdk_window_get_colormap -> gdk_drawable_get_colormap
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 18:56:39 +00:00
Mart Raudsepp
bc8b8220f8
gdk_cursor_destroy -> gdk_cursor_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 18:19:55 +00:00
Mart Raudsepp
2454dc8a64
GDK_ROOT_PARENT -> gdk_get_default_root_window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 17:50:58 +00:00
Mart Raudsepp
791d7ea2d6
gdk_window_get_size -> gdk_drawable_get_size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 17:19:42 +00:00
David Surovell
ee32d4354f
added missing paren
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 16:40:38 +00:00
Mart Raudsepp
e6e9293af3
gdk_gc_destroy -> gdk_gc_unref -> g_object_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 15:06:55 +00:00
Mart Raudsepp
4e84399d42
gdk_image_destroy -> g_object_unref (gdk_image_destroy is deprecated in favor of gdk_image_unref, and is just a
...
#define to it; gdk_image_unref deprecated in favor of g_object_unref)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:57:45 +00:00
Mart Raudsepp
1a3a1b2df2
gdk_pixbuf_unref -> g_object_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:44:06 +00:00
Mart Raudsepp
5e4bf05abd
gdk_gc_unref -> g_object_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:26:57 +00:00
Vadim Zeitlin
5c763f5a23
corrected mistake in the UTF-16 test on big endian machines
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:25:59 +00:00
Mart Raudsepp
f5af73080a
And gdk_drawable_unref is in turn deprecated in favor of g_object_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 14:06:00 +00:00
Mart Raudsepp
f368b5b9ab
gdk_bitmap/pixmap_unref -> gdk_drawable_unref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 13:54:02 +00:00
Mart Raudsepp
15f0ad7014
gdk_draw_pixmap -> gdk_draw_drawable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 13:46:34 +00:00
Mart Raudsepp
62d4b5d6fe
gdk_window_copy_area(drawable,gc,x,y,source_drawable,source_x,source_y,width,height) ->
...
gdk_draw_pixmap(drawable,gc,source_drawable,source_x,source_y,x,y,width,height)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 13:37:31 +00:00
Mart Raudsepp
22a3bce465
gdk_window_get_visual -> gdk_drawable_get_visual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 13:13:04 +00:00
Vadim Zeitlin
509da4510f
MB2WC/WC2MB are not pure virtual any longer, implement them in terms of To/FromWChar()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 13:04:47 +00:00
Vadim Zeitlin
483b0434bf
added new To/FromWChar() API with more reasonable semantics than old MB2WC/WC2MB; for now both coexist and the change is/should be backwards compatible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 12:35:21 +00:00
Vadim Zeitlin
7ef3ab50e9
renamed GetMinMBCharWidth() to GetMBNulLen(), made it public and documented it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-04 07:49:08 +00:00
Vadim Zeitlin
5e51fb4ca5
fixed LaTeX markup to suit tex2rtf
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 22:16:22 +00:00
Václav Slavík
e7feeafa56
added ParseInnerSource() to make <pre>-like parsing easier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 19:34:21 +00:00
Włodzimierz Skiba
47eb93d02d
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 17:38:05 +00:00
Mart Raudsepp
8de699dcfa
Sync wxGTK docs from WX_2_6_BRANCH to HEAD
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 05:53:39 +00:00
David Surovell
bee1995894
minor cleanup - reformatting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 00:21:00 +00:00
Vadim Zeitlin
0739e2eef9
Apple gcc compilation fixes: for it size_t and unsigned are not the same type for some reason
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 20:18:33 +00:00
Vadim Zeitlin
69373110a5
fixed wxMBConv_iconv to work with UTF-16/32
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 20:03:42 +00:00
Vadim Zeitlin
72b2fc5c80
properly terminate UTF-32 test string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 20:02:33 +00:00
Vadim Zeitlin
39406a5d05
compilation fix for iconv call
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 15:59:57 +00:00
Julian Smart
eb257f65ed
Corrected index passed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 15:50:32 +00:00
Vadim Zeitlin
33366127e8
added filename comparison test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 15:02:56 +00:00
Vadim Zeitlin
c1464d9d10
replaced recently added wxMBConv::GetMBNul() with a less clever but better
...
working GetMinMBCharWidth(): the idea is that we can't deal with completely
arbitrary encodings anyhow using the current API as we get confused by NUL
runs in the middle of the string, so instead just deal correctly with normal
multibyte encodings, UTF-16/UCS-2 and UTF-32/UCS-4 which should cover 99.9% of
the cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 14:59:53 +00:00
Vadim Zeitlin
11fead7c46
added wxBuffer::reset()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-02 14:57:36 +00:00