Vadim Zeitlin
1558349361
Improve RTL support in wxStyledTextCtrl.
...
Use the correct HDC, inheriting the right text orientation, when creating
wxMemoryDC in SurfaceImpl code.
There may still be problems with the actual RTL languages, but at the very
least English text displayed in RTL locale is not mirrored any more.
Closes #16230 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-10 16:16:01 +00:00
Vadim Zeitlin
33ad33d447
Add wxOVERRIDE and use it in common and wxOSX code.
...
Make overriding virtual methods more explicit and enable additional checks
provided by C++11 compilers when "override" is used.
Closes #16100 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-20 13:26:28 +00:00
Vadim Zeitlin
9b31387508
Merge the changes from 3.0 branch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-12 18:06:37 +00:00
Vadim Zeitlin
cb6223b4a6
Fix potential buffer overflow in wxSTC DefaultFont() function.
...
Use safe(r) wxStrlcpy() instead of strcpy() to copy the font name.
Closes #15296 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-06 00:28:13 +00:00
Stefan Csomor
a4f6fe43c3
support retina display
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-25 15:11:18 +00:00
Robin Dunn
48d63da328
Scintilla's Point class no longer matches the structure of wxPoint, so we need to copy points to a wxPoint array instead of just typcasting Scintilla's array. Fixes #14687
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-09-25 23:53:14 +00:00
Vadim Zeitlin
4f97cb83cf
Fix alpha handling in Scintilla when not using wxGraphicsContext.
...
When using raw bitmap data access classes such as wxAlphaPixelData we must
destroy them to ensure that the changes done via them are committed to the
bitmap before drawing the bitmap.
Just add an extra block (the diff should be viewed ignoring white space to see
the only significant change) to ensure that wxAlphaPixelData is destroyed
before DrawBitmap() is called.
Closes #14680 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-09-20 20:00:48 +00:00
Jouk Jansen
117f3eaaa7
compilation fix for case that wxHAS_RAW_BITMAP is NOT defined
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-28 05:57:14 +00:00
Robin Dunn
b0c1857ea2
Use the popup's background as a border on wxGTK too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:42:35 +00:00
Robin Dunn
9b01abb82d
Minimal tweaks and additions to get wxSTC compiling successfully again, with Scintilla 3.21
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:14:46 +00:00
Vadim Zeitlin
2ed48ef81e
No changes, just simplify the code using wx2stc() a little.
...
Assign wx2stc() return value to a suitably const variable instead of using
ugly casts to get rid of constness.
Also use wxCharBuffer/char* explicitly inside explicit wxUSE_UNICODE checks,
using wxWX2MBbuf here doesn't gain us anything and just confuses the reader of
this code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-13 21:37:23 +00:00
Robin Dunn
56c1c29904
Add a border on the AutoComp list for wxOSX-Cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-08 17:39:38 +00:00
Vadim Zeitlin
01871bf642
Add wxUSE_STD_CONTAINERS and turn it on by default.
...
Previously, wxUSE_STL enabled both implicit conversion of wxString to
std::[w]string and use of standard containers for the implementation of their
wx equivalents. Split up the two roles now by allowing to enable the use of
the standard containers independently of (backwards incompatible) implicit
conversion in wxString and actually enable wxUSE_STD_CONTAINERS by default.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-30 14:16:04 +00:00
Vadim Zeitlin
ce00f59b5b
No changes whatsoever, just remove trailing whitespace.
...
There are no real changes in this commit but it removes all trailing white
space from our source files. This avoids problems when applying patches and
making diffs and it would be nice to prevent it from reappearing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-09-30 11:44:45 +00:00
Vadim Zeitlin
5276b0a53c
Use wxDELETE() and wxDELETEA() when possible.
...
Use wxDELETE[A]() functions which automatically NULL out their arguments after
deleting them instead of doing it manually.
Closes #9685 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 18:18:23 +00:00
Robin Dunn
9e96e16fe0
Apply patch (plus some additional changes) upgrading Scintilla to version 2.03. Closes #11765 , #11748 , #11346
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-30 03:50:06 +00:00
Vadim Zeitlin
c514752837
Fix some harmless unused parameter warnings.
...
These warnings only happen in specific builds (when HAVE_LANGINFO_H and
wxUSE_DISPLAY are undefined/off).
See #11817 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-20 12:45:47 +00:00
Robin Dunn
5cce237ab1
Use GraphicsContext (if available) for drawing in SurfaceImpl::AlphaRectangle. Fixes #10542 .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-10 00:40:49 +00:00
Vadim Zeitlin
8462a84b2c
Removed wxFont::Set/GetNoAntiAliasing() implementations.
...
Most of them were dummy and didn't do anything and this API was never meant to
be used anyhow.
Keep just the declarations in wxFontBase but mark them as deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-09 13:04:59 +00:00
Francesco Montorsi
d4f392ea20
use wxStockCursor (as documented and as already implemented in wxMotif) instead of a plain 'int'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 19:40:13 +00:00
Vadim Zeitlin
b796ba3931
fixed STC under Win64: as wxStyledTextCtrl::SendMsg() used (32 bit) long arguments, passing (64 bit) pointers to it almost certainly didn't work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 13:56:59 +00:00
Vadim Zeitlin
3fb1e0594a
use wxHAS_RAW_BITMAP instead of wxHAVE_RAW_BITMAP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-01 20:19:43 +00:00
Robin Dunn
8b6c20ce55
Also set wxHAVE_RAW_BITMAP for Mac and GTK2, use it in wxSTC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-14 18:41:06 +00:00
Francesco Montorsi
cb129171c2
further wxPenStyle/wxBrushStyle fixes for builds with compat off (partially by Marcin Wojdyr)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-19 18:28:04 +00:00
Robin Dunn
a9dbb4f681
Don't need to use wxHAVE_RAW_BITMAP any more.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-09 03:24:38 +00:00
Stefan Neis
038c03337f
Blind fix for typo in 50972.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-02 13:09:17 +00:00
Robin Dunn
d67c33888f
Ensure AutoComp items with no type will set the item's image index to -1.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-31 20:12:42 +00:00
Vadim Zeitlin
3f0640b0a8
fix unused parameter warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 20:20:16 +00:00
Robin Dunn
7e0c58e92c
Update Scintilla to version 1.75
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 04:07:00 +00:00
Václav Slavík
ea88e9bca9
don't export private stc2wx(), wx2stc() functions from wxSTC shared library
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-15 08:10:29 +00:00
Vadim Zeitlin
1032be03d5
remove deprecated UseAlpha() call
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-12 22:01:03 +00:00
Paul Cornett
819850ff06
non-pch build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 17:15:56 +00:00
Paul Cornett
29825f5fc4
add wxUSE_STC wrappers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 05:48:09 +00:00
Robin Dunn
54429bb380
Bakefile and other changes for new locations of STC and wxSVGFileDC.
...
Remove old files in contrib.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 06:27:23 +00:00
Vadim Zeitlin
8d3a53745e
suppress unused parameter warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-14 21:13:57 +00:00
Robin Dunn
67879c5b41
Use float-on-parent frames for the popups if wxPopupWindow is not available
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-20 03:26:34 +00:00
Vadim Zeitlin
74e1efddbc
update from suzumizaki (patch 1522506)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 00:26:01 +00:00
Robin Dunn
a3511a2e06
supress some unused parameter warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 16:34:57 +00:00
Robin Dunn
8b3d52fc71
Only use raw bitmap if it is available
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 16:01:45 +00:00
Robin Dunn
6a93571daf
Provide an implementation for SurfaceImpl::AlphaRectangle, and rename
...
[G|S]etCaretLineBack
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 05:35:26 +00:00
Robin Dunn
b8193d807f
Updated Scintilla to version 1.70
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-14 01:20:18 +00:00
Robin Dunn
aeeaf3eaf0
wxWakeUpIdle seems unnecessary here
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-29 20:54:57 +00:00
Włodzimierz Skiba
1d94e268dd
Deprecated and obsolete parts marked up for backward compatibility.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 19:54:51 +00:00
Włodzimierz Skiba
80cac95edb
wxTinderbox warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-10 09:54:08 +00:00
Włodzimierz Skiba
d35ad26eee
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-08 16:34:47 +00:00
Robin Dunn
1e9bafca0f
Updated to Scintilla 1.67
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-08 01:48:03 +00:00
Stefan Csomor
fd39aa23bc
adjusting to SetLabel migration
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-07 17:56:17 +00:00
Włodzimierz Skiba
d66551669c
#include markup fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-07 08:36:08 +00:00
Vadim Zeitlin
5e99793eca
fixed cursor flicker (patch 1254492 by Hans P. Palbol)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 16:33:18 +00:00
Mattia Barbon
f3ee029e05
Another STL compilation fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-24 15:56:00 +00:00