Commit Graph

18422 Commits

Author SHA1 Message Date
Vadim Zeitlin
4693d68648 removed wxGTK2 hack, not needed any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 01:37:36 +00:00
Vadim Zeitlin
77c514d111 if we don't convert message catalog strings to the UI encoding, use message catalog encoding for the UI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 01:34:03 +00:00
Vadim Zeitlin
7a4b1e6623 some code simplifications, no real changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 01:04:21 +00:00
Vadim Zeitlin
d5bef0a323 added wxConvUI which determines the conversion used for the UI elements and can be changed from the user code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 00:36:24 +00:00
Vadim Zeitlin
12bc5f9ad2 use wxConvLocal for wxFONTENCODING_SYSTEM/DEFAULT in wxConvertToGTK()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 23:53:09 +00:00
Vadim Zeitlin
d0311dd366 all encodings are available in GTK+ 2 (because we always convert to UTF-8 anyhow)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 22:26:36 +00:00
Vadim Zeitlin
5f11fef543 use the encoding of the font which is used to draw the text when convering it to UTF-8 in wxGTK_CONV; the old wxGTK_CONV renamed to wxGTK_CONV_SYS (uses system encoding) and used in the contexts where no font is available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 22:22:13 +00:00
Vadim Zeitlin
99257cbe01 don't let the user modify the contents of read-only control (modified patch 1463707)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 16:22:42 +00:00
Vadim Zeitlin
f3190d1cea use #if WXWIN_COMPATIBILITY_2_6 guard around implementation of wxNotebookSizer ctor too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 13:04:25 +00:00
Vadim Zeitlin
3abb199dee use #if WXWIN_COMPATIBILITY_2_6 guard around implementation of wxBookCtrlSizer ctor too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 12:54:52 +00:00
David Surovell
520b09fcda cleanup - reformatting, pt 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 04:45:25 +00:00
David Surovell
cee24bf7ab cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 03:54:42 +00:00
Vadim Zeitlin
a3669332df use wxGTK_CONV instead of directly using wxConvLocal (simplifies code avoiding needless #ifdefs and prepares for further wxGTK_CONV changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 01:39:38 +00:00
Vadim Zeitlin
777f37e0cc don't generate wxEVT_CONTEXT_MENU messages for right clicks in the list control header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 01:17:49 +00:00
Vadim Zeitlin
2754877b7c fix for the previous commit: delete m_conv after calling Flush() which uses it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 00:52:21 +00:00
Vadim Zeitlin
84a9b3f89e ISO8859-1 is also supported by GTK+ 2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 20:42:40 +00:00
Stefan Csomor
3281bf6779 make the string properly 0 terminated and allow for one char more on the output buffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 12:51:03 +00:00
Stefan Csomor
75b324211c in case of an faulty event this might not get initialized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 08:53:39 +00:00
Stefan Csomor
d995756723 conversion fix by Ryan
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 08:48:36 +00:00
Stefan Csomor
ef2c03d913 listbox cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 08:37:56 +00:00
Stefan Csomor
b4726a583d listbox cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 06:50:54 +00:00
Robin Dunn
2b01fd4918 Use CmdDown in mouse events instead of ControlDown so Mac users can
multi-select with shift and cmd like they are used to.  Other
platforms are not affected.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 00:09:35 +00:00
Robin Dunn
afd0f084f4 Added missing not operator that was preventing the drawing of the
gridlines


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 23:09:46 +00:00
Vadim Zeitlin
031943ac4c changed DoMessageFromThreadWait() to not block if there are no messages, this avoids the need for sending a dummy WM_NULL from the thread wait loop (replaces patch 1459812)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 22:51:42 +00:00
Stefan Csomor
3271d7376a fixing Clipboard::IsSupported when asking for unicode text and only non-unicode text is available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 15:26:05 +00:00
Julian Smart
429bf2309b Corrected FindString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 14:58:08 +00:00
Stefan Csomor
2fbfb7d6fb changing coordinates to client-area relative (patch 1378189)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 14:33:00 +00:00
Stefan Csomor
51478cd68d allowing the suppression of SetValue event-triggering (needed for composite controls)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 13:00:13 +00:00
Stefan Csomor
32efab35c1 applying patch 1411230
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 11:43:13 +00:00
David Surovell
a074f61eae minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 09:14:06 +00:00
Stefan Csomor
1413285777 ellipsis support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 05:52:43 +00:00
Vadim Zeitlin
36b4d42311 fix recently introduced memory leak of m_conv (bug 1466559)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 22:41:11 +00:00
Stefan Csomor
f5158fa61f applied patch 1378261
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 19:21:50 +00:00
Stefan Csomor
c4d9fc3947 applied patch 1466370
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 18:59:51 +00:00
David Surovell
2f02438455 cleanup - added whitespace around operators, some blank lines, fixed comment typos, broke up one-line if-stmts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 16:51:36 +00:00
Vadim Zeitlin
65afac3fbc added wxTLW::ShouldPreventAppExit() which can be overridden to allow closing the application even if some windows are still opened; use it for wxHtmlHelpFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 00:38:49 +00:00
Vadim Zeitlin
402dfce7b3 GetBoundingRect() is supposed to return the logical coordinates, even in !textOnly case; also documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 14:27:34 +00:00
Vadim Zeitlin
9088c87bd0 leave enough space for the trailing NUL when converting UTF-16 to UTF-32 in Mac conversion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:43:38 +00:00
Vadim Zeitlin
faa112c4ca don't crash if conversion of a command line argument to Unicode fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:38:31 +00:00
Mart Raudsepp
5e08131542 wxGTK2: No need to check for __WXGTK20__ here either (and test cia script again)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:06:37 +00:00
Mart Raudsepp
2ec371fda2 wxGTK2: No need to check for __WXGTK20__ here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 12:01:04 +00:00
Mart Raudsepp
afeb58f16b wxGTK2: We don't need to check for __WXGTK20__ here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 11:59:07 +00:00
Vadim Zeitlin
8d3dd06948 added missing const to fix last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 11:51:41 +00:00
Vadim Zeitlin
e27a15e146 added a cast to wxDecodeSurrogate() to fix wxMSW cross-compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 11:27:40 +00:00
David Surovell
ef1991645a cleanup (repeat of v197) - added whitespace around operators, some blank lines, fixed comment typos, renamed out-in vars to outBuff-inBuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 02:30:52 +00:00
Vadim Zeitlin
bfaee57e81 really fixed number of bytes written in WriteString() in Unicode mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 23:19:09 +00:00
Vadim Zeitlin
35d11700a5 implemented UTF-16/32 using To/FromWChar() instead of MB2WC/WC2MB for sizeof(wchar_t)==4 platforms too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 23:04:10 +00:00
Vadim Zeitlin
467e04791c 1. use a manifest constant wxNO_LEN instead of -1 for lengths everywhere
2. reimplemented UTF-16/32 conversions using To/FromWChar() API instead
   of MB2WC/WC2MB for Windows (or rather SIZEOF_WCHAR_T == 2 platforms),
   the first tangible result is that reading UTF-32BE text streams now
   works too
3. more off by 1 fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 22:12:45 +00:00
David Surovell
d32a507d02 cleanup - added whitespace around operators, some blank lines, fixed comment typos, renamed out-in vars to outBuff-inBuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 18:02:26 +00:00
Vadim Zeitlin
d3478e2cf1 Mac compilation fix after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 17:10:01 +00:00