+upd: Scintilla Lib v5.2.1

This commit is contained in:
METANEOCORTEX\Kotti 2022-08-29 17:46:59 +02:00
parent 09a63bed81
commit 851f171109
11 changed files with 65 additions and 28 deletions

View File

@ -31,6 +31,10 @@ constParameter:scintilla/lexlib/StyleContext.cxx
// ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla
unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp
// Doesn't understand changing dropWentOutside in Editor
knownConditionTrueFalse:scintilla/qt/ScintillaEditBase/ScintillaQt.cpp
knownConditionTrueFalse:scintilla/win32/ScintillaWin.cxx
// moc_ files show #error as they are not built with standard context
preprocessorErrorDirective:scintilla/qt/*.cpp

View File

@ -134,7 +134,7 @@
Exceptions and templates may be used but, since Scintilla can be used from C as well as
C++, exceptions may not be thrown out of Scintilla and all exceptions should be caught
before returning from Scintilla.
A 'Scintilla' name space is used. This helps with name clashes on OS X.
A 'Scintilla' name space is used. This helps with name clashes on macOS.
</p>
<p>
The goto statement is not used because of bad memories from my first job

View File

@ -169,7 +169,7 @@
<p>The GTK version also uses messages in a similar way to the Windows version. This is
different to normal GTK practice but made it easier to implement rapidly.</p>
<p>Scintilla also builds with Cocoa on OS X and with Qt, and follows the conventions of
<p>Scintilla also builds with Cocoa on macOS and with Qt, and follows the conventions of
those platforms.</p>
<p>Scintilla provides only limited experimental support on Windows for right-to-left languages
@ -5177,7 +5177,7 @@ struct Sci_TextToFind {
<a class="jump" href="#RGBA">RGBA format</a> is used for the pixmap.
The width and height must previously been set with the <code>SCI_RGBAIMAGESETWIDTH</code> and
<code>SCI_RGBAIMAGESETHEIGHT</code> messages.</p>
<p>A scale factor in percent may be set with <code>SCI_RGBAIMAGESETSCALE</code>. This is useful on OS X with
<p>A scale factor in percent may be set with <code>SCI_RGBAIMAGESETSCALE</code>. This is useful on macOS with
a retina display where each display unit is 2 pixels: use a factor of 200 so that each image pixel is displayed using a screen pixel.
The default scale, 100, will stretch each image pixel to cover 4 screen pixels on a retina display.</p>
<p>Pixmaps use the <code>SC_MARK_RGBAIMAGE</code> marker symbol. </p>
@ -5562,7 +5562,7 @@ struct Sci_TextToFind {
<td>A version of <code>INDIC_SQUIGGLE</code> that draws using a pixmap instead of
as a series of line segments for performance.
Measured to be between 3 and 6 times faster than <code>INDIC_SQUIGGLE</code> on GTK.
Appearance will not be as good as <code>INDIC_SQUIGGLE</code> on OS X in HiDPI mode.</td>
Appearance will not be as good as <code>INDIC_SQUIGGLE</code> on macOS in HiDPI mode.</td>
</tr>
<tr>
@ -5728,11 +5728,11 @@ struct Sci_TextToFind {
Can be used to iterate through the document to discover all the indicator positions.
</p>
<h3 id="FindIndicators">OS X Find Indicator</h3>
<h3 id="FindIndicators">macOS Find Indicator</h3>
<p>On OS X search matches are highlighted with an animated gold rounded rectangle.
<p>On macOS search matches are highlighted with an animated gold rounded rectangle.
The indicator shows, then briefly grows 25% and shrinks to the original size to draw the user's attention.
While this feature is currently only implemented on OS X, it may be implemented on other platforms
While this feature is currently only implemented on macOS, it may be implemented on other platforms
in the future.</p>
<p><b id="SCI_FINDINDICATORSHOW">SCI_FINDINDICATORSHOW(position start, position end)</b><br />
@ -5740,7 +5740,7 @@ struct Sci_TextToFind {
These two messages show and animate the find indicator. The indicator remains visible with
<code>SCI_FINDINDICATORSHOW</code> and fades out after showing for half a second with
<code>SCI_FINDINDICATORFLASH</code>.
<code>SCI_FINDINDICATORSHOW</code> behaves similarly to the OS X TextEdit and Safari applications
<code>SCI_FINDINDICATORSHOW</code> behaves similarly to the macOS TextEdit and Safari applications
and is best suited to editing documentation where the search target is often a word.
<code>SCI_FINDINDICATORFLASH</code> is similar to Xcode and is suited to editing source code
where the match will often be located next to operators which would otherwise be hidden under the indicator's
@ -6471,8 +6471,8 @@ struct Sci_TextToFind {
</p>
<p>The <code>SCI_SCROLLTO[START|END]</code> commands scroll the document to the start
or end without changing the selection. These commands match OS X platform conventions for the behaviour of the
<code>home</code> and <code>end</code> keys. Scintilla can be made to match OS X applications
or end without changing the selection. These commands match macOS platform conventions for the behaviour of the
<code>home</code> and <code>end</code> keys. Scintilla can be made to match macOS applications
by binding the <code>home</code> and <code>end</code> keys to these commands.
</p>
@ -6514,7 +6514,7 @@ struct Sci_TextToFind {
<p>The modifiers are a combination of zero or more of <code>SCMOD_ALT</code>,
<code>SCMOD_CTRL</code>, <code>SCMOD_SHIFT</code>,
<code>SCMOD_META</code>, and <code>SCMOD_SUPER</code>.
On OS X, the Command key is mapped to <code>SCMOD_CTRL</code> and the Control key to
On macOS, the Command key is mapped to <code>SCMOD_CTRL</code> and the Control key to
<code>SCMOD_META</code>.
<code>SCMOD_SUPER</code> is only available on GTK which is commonly the Windows key.
If you are building a table, you might
@ -9415,7 +9415,7 @@ for line = lineStart to lineEnd do SCI_ENSUREVISIBLE(line) next
If there is no suitable platform support, the <a href="http://lodev.org/lodepng/">LodePNG and picoPNG</a> libraries are small libraries
for loading and decoding PNG files available under a BSD-style license.</p>
<p>RGBA format is supported on Windows, GTK and OS X Cocoa.</p>
<p>RGBA format is supported on Windows, GTK and macOS Cocoa.</p>
<h3 id="XPM">XPM</h3>

View File

@ -26,9 +26,9 @@
<table bgcolor="#CCCCCC" width="100%" cellspacing="0" cellpadding="8" border="0">
<tr>
<td>
<font size="4"> <a href="https://www.scintilla.org/scintilla520.zip">
<font size="4"> <a href="https://www.scintilla.org/scintilla521.zip">
Windows</a>&nbsp;&nbsp;
<a href="https://www.scintilla.org/scintilla520.tgz">
<a href="https://www.scintilla.org/scintilla521.tgz">
GTK/Linux</a>&nbsp;&nbsp;
</font>
</td>
@ -42,7 +42,7 @@
containing very few restrictions.
</p>
<h3>
Release 5.2.0
Release 5.2.1
</h3>
<h4>
Source Code
@ -50,8 +50,8 @@
The source code package contains all of the source code for Scintilla but no binary
executable code and is available in
<ul>
<li><a href="https://www.scintilla.org/scintilla520.zip">zip format</a> (1.3M) commonly used on Windows</li>
<li><a href="https://www.scintilla.org/scintilla520.tgz">tgz format</a> (1.2M) commonly used on Linux and compatible operating systems</li>
<li><a href="https://www.scintilla.org/scintilla521.zip">zip format</a> (1.3M) commonly used on Windows</li>
<li><a href="https://www.scintilla.org/scintilla521.tgz">tgz format</a> (1.2M) commonly used on Linux and compatible operating systems</li>
</ul>
Instructions for building on both Windows and Linux are included in the readme file.
<h4>

View File

@ -572,6 +572,32 @@
</tr>
</table>
<h2>Releases</h2>
<h3>
<a href="https://www.scintilla.org/scintilla521.zip">Release 5.2.1</a>
</h3>
<ul>
<li>
Released 24 February 2022.
</li>
<li>
Enable multi-threaded layout on GTK.
</li>
<li>
Fix pixmap leak on GTK.
<a href="https://sourceforge.net/p/scintilla/bugs/2317/">Bug #2317</a>.
</li>
<li>
Fix re-entrant painting on GTK to maintain update region.
</li>
<li>
Fix key map for GTK on macOS.
<a href="https://sourceforge.net/p/scintilla/bugs/2315/">Bug #2315</a>.
</li>
<li>
Fix building for Haiku.
<a href="https://sourceforge.net/p/scintilla/bugs/2315/">Bug #2315</a>.
</li>
</ul>
<h3>
<a href="https://www.scintilla.org/scintilla520.zip">Release 5.2.0</a>
</h3>
@ -599,6 +625,11 @@
<a href="https://sourceforge.net/p/scintilla/bugs/2306/">Bug #2306</a>.
</li>
<li>
On GTK, use fractional positioning to help Chinese characters in monospaced fonts
line up better with roman characters.
<a href="https://sourceforge.net/p/scintilla/bugs/2310/">Bug #2310</a>.
</li>
<li>
On macOS allow Scintilla to run if built without cursor images.
<a href="https://sourceforge.net/p/scintilla/feature-requests/1425/">Feature #1425</a>.
</li>

View File

@ -9,7 +9,7 @@
<meta name="keywords" content="Scintilla, SciTE, Editing Component, Text Editor" />
<meta name="Description"
content="www.scintilla.org is the home of the Scintilla editing component and SciTE text editor application." />
<meta name="Date.Modified" content="20220209" />
<meta name="Date.Modified" content="20220224" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
#versionlist {
@ -53,11 +53,11 @@
</td>
<td width="40%" align="left">
<font color="#FFCC99" size="4"> A free source code editing component for Win32,
GTK, and OS X</font>
GTK, and macOS</font>
</td>
<td width="40%" align="right">
<font color="#FFCC99" size="3"> Release version 5.2.0<br />
Site last modified February 9 2022</font>
<font color="#FFCC99" size="3"> Release version 5.2.1<br />
Site last modified February 24 2022</font>
</td>
<td width="20%">
&nbsp;
@ -72,6 +72,7 @@
</tr>
</table>
<ul id="versionlist">
<li>Version 5.2.1 fixes leaks on GTK.</li>
<li>Version 5.2.0 adds multithreaded layout to significantly improve performance for very wide lines.</li>
<li>Version 5.1.5 changes string-returning APIs to be more consistent and removes ScintillaEditPy.</li>
<li>Version 5.1.4 fixes primary selection paste within one instance on GTK.</li>

View File

@ -2957,13 +2957,13 @@ get Technology GetTechnology=2631(,)
# Create an ILoader*.
fun pointer CreateLoader=2632(position bytes, DocumentOption documentOptions)
# On OS X, show a find indicator.
# On macOS, show a find indicator.
fun void FindIndicatorShow=2640(position start, position end)
# On OS X, flash a find indicator, then fade out.
# On macOS, flash a find indicator, then fade out.
fun void FindIndicatorFlash=2641(position start, position end)
# On OS X, hide the find indicator.
# On macOS, hide the find indicator.
fun void FindIndicatorHide=2642(,)
# Move caret to before first visible character on display line.

View File

@ -58,7 +58,6 @@ using namespace Scintilla::Internal;
#define SciLn(line) static_cast<Sci::Line>(line)
#define SciPosExt(pos) static_cast<Sci_Position>(pos)
// ============================================================================
// *** Oningmo configuration ***
// ============================================================================

View File

@ -18,6 +18,8 @@
#include "ScintillaMessages.h"
#include "Debugging.h"
#include "Geometry.h"
#include "Platform.h"
#include "KeyMap.h"
@ -56,7 +58,7 @@ const std::map<KeyModifiers, Message> &KeyMap::GetKeyMap() const noexcept {
#endif
// Define a modifier that is exactly Ctrl key on all platforms
// Most uses of Ctrl map to Cmd on OS X but some can't so use SCI_[S]CTRL_META
// Most uses of Ctrl map to Cmd on macOS but some can't so use SCI_[S]CTRL_META
#if OS_X_KEYS
#define SCI_CTRL_META SCI_META
#define SCI_SCTRL_META (SCI_META | SCI_SHIFT)

View File

@ -308,7 +308,7 @@ void RunStyles<DISTANCE, STYLE>::Check() const {
template class Scintilla::Internal::RunStyles<int, int>;
template class Scintilla::Internal::RunStyles<int, char>;
#if (PTRDIFF_MAX != INT_MAX) || PLAT_HAIKU
#if (PTRDIFF_MAX != INT_MAX) || defined(__HAIKU__)
template class Scintilla::Internal::RunStyles<ptrdiff_t, int>;
template class Scintilla::Internal::RunStyles<ptrdiff_t, char>;
#endif

View File

@ -1 +1 @@
520
521