Vadim Zeitlin
234b1c0147
reverted wxHVScrolledWindow patch (rev 1.19/1.21 of vscroll.h/.cpp) because not only we don't want to duplicate code like this but it also broke wxHtmlListBox by making scrolling in it O(N) instead of O(1)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:55:28 +00:00
Julian Smart
fac6eaec24
Simulated text labels and toggle highlights under buttons
...
Removed background colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:49:57 +00:00
Julian Smart
b95c06ba08
Reversed accidental commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:24:50 +00:00
Julian Smart
77631b1d81
Implemented Mac-style button toggling within wxButtonToolBar, and line
...
under toolbar.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 12:40:34 +00:00
Julian Smart
1a1190b245
Allow specification of border spacing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 12:38:48 +00:00
Włodzimierz Skiba
9d9d3d55c9
MSLU with DMC build fix [ #1469456 ].
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 12:16:29 +00:00
Václav Slavík
88a1b6485f
don't show the I-beam cursor over text in wxHtmlListBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 11:38:36 +00:00
Julian Smart
e5f49cbf82
Compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 09:31:47 +00:00
Julian Smart
64d3ed176d
Steps towards implementing native-style, non-top-level toolbars on Mac
...
by implementing a toolbar class that uses native buttons.
Ultimately this should allow wxToolbook and wxPropertySheetDialog
classes to look native, when we complete the button API improvements
to combine text, bitmaps and toggling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 09:15:10 +00:00
Václav Slavík
bc55e31bdc
1. added abstract interface to wxHtmlWindow for use by wxHtmlWinParser and implemented it for wxHtmlListBox
...
2. used the above to implement clickable links support in wxHtmlListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 22:08:28 +00:00
Włodzimierz Skiba
e0d5d9af8b
All book controls shares wxBK_* flags [bug #1469980 ].
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 18:24:38 +00:00
Julian Smart
87cf52d8ac
On screens with restricted space, it's useful to be able to add controls
...
to e.g. the wxChoice control of a wxChoicebook. GetControlSizer
allows an app to do that, and we also add a control margin which
may or may not be respected by individual book controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 14:22:32 +00:00
Stefan Neis
0934d91c7b
Fixed GetSelection to behave the same as for the other ports, added
...
GetCurrentSelection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 20:31:46 +00:00
Julian Smart
cb8acbd632
Added IsDynamic to XTI
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 13:46:21 +00:00
Julian Smart
0c06c9839c
Applied patch [ 1211299 ] Minor mod to wxClassInfo to improve usability
...
David Falkinder
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 13:06:05 +00:00
Vadim Zeitlin
171a1afede
made ShouldPreventAppExit() public
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 00:47:36 +00:00
Vadim Zeitlin
5851053a96
added wx/font.h include to fix PCH-less build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 14:18:20 +00:00
Stefan Csomor
0c81ef7fce
Ryan's patch 1468129 ,
...
1) Don't hog mouse events from other windows
2) Don't crash on mouse and other events when a bad file is loaded
3) Correctly detect whether a file can be loaded or not (Forgot to call ::ClearMoviesStickyError())
4) Real workaround for the wxNotebook issue (by using offscreen GWorld)
5) Nuke of CreateMovieControl version and many other cleanups
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 05:53:55 +00:00
Vadim Zeitlin
1cef1b4ab6
Unicode compilation fix after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 01:05:18 +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
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
0e05227246
no changes, just corrected the comment for wxConvLocal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 21:53:42 +00:00
Vadim Zeitlin
fc298ea781
added wxDCClipper ctor overload taking a wxRegion and documented it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 15:08:10 +00:00
David Surovell
12cb759190
cleanup - reformatting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 14:58:15 +00:00
Włodzimierz Skiba
f7c3b945ec
Blind check for compatibility flags.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 13:42:28 +00:00
Stefan Csomor
37c287c49c
cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 11:45:54 +00:00
Vadim Zeitlin
2f4f6de77b
added wxWxCharBuffer which stands for buffer of wxChars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 01:35:21 +00:00
Vadim Zeitlin
3952889a90
really fix warning about implicitly converting 0 and 1 to size_t -- use explicit cast to size_type
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 22:47:46 +00:00
Stefan Csomor
ba5b8a68f7
listbox cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 06:42:32 +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
Vadim Zeitlin
4c82058341
don't redefine _CRT_SECURE_NO_DEPRECATE and _CRT_NON_CONFORMING_SWPRINTFS if already defined (patch 1463364)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 22:58:54 +00:00
Stefan Csomor
66bc84a900
ellipsis support for static text (mac), applied patch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 15:32:18 +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
Stefan Csomor
b1fd3badf5
applied patch 1465549
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 18:56:13 +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
2ed8c8dd1f
some compilers warn about implicitly converting 0 and 1 to size_t -- use 0u and 1u instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 23:45:14 +00:00
Vadim Zeitlin
2e2cf78dc1
fixed gcc warnings about not initializing the base class in copy ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 17:11:25 +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
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
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
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
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
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
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
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