aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-01-13Backport: Replace the only use of a function from <cctype> with a Scintilla ↵Neil1-1/+0
function. Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments. Backport of changeset 7228:348e55f8107c.
2018-12-07Backport: Feature [feature-requests:#1246]. Replace MAKELONG with ↵Zufu Liu1-3/+3
MAKELRESULT and MAKEWPARAM which are more specific. Backport of changeset 7183:3ca4517dc18f.
2018-10-17Backport: Use nullptr, default brace and member initialisation for some ↵Neil1-13/+13
simple cases. Backport of changeset 7119:32e2131e1f04.
2018-10-11Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-3/+5
This can reduce the time taken to fold a document by half. Backport of changeset 7110:09c647755bed.
2018-08-09Backport: Avoid some casts.Neil1-3/+4
Backport of changeset 7072:557c1fa29581.
2018-05-24Backport: Fix warnings. Add const, constexpr, and noexcept. Initialize. ↵Neil1-20/+20
Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. Backport of changeset 6974:e99161ef7bdd.
2018-05-14Backport: Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-2/+3
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform. Backport of changeset 6938:a42c7cc3254b.
2018-05-01Backport: Use RectFromPRectangle to avoid casts.Neil1-2/+2
Backport of changeset 6770:c14d2ee02108.
2018-05-01Backport: Bug [#2012]. Use '0' instead of '0l'.Neil1-2/+2
Backport of changeset 6768:afe3117ead02.
2018-04-30Backport: Add conversion function from Scintilla Point to Win32 POINT.Neil1-23/+49
Use namespaces more consistently. Fix typo. Backport of changeset 6767:0a0334bef5c9.
2018-04-30Backport: Use const where possible.Neil1-21/+21
Backport of changeset 6765:ec572b29a86f.
2018-04-30Backport: Use const for IME, code page and related code.Neil1-28/+27
Backport of changeset 6764:f29220418dd5.
2018-04-30Backport: Use Win32 types and avoid casting. Move code to avoid warnings.Neil1-8/+7
Use const where there is a benefit. Backport of changeset 6763:e9079a505ea8.
2018-04-30Backport: Use message parameter access macros provided by Windows instead of ↵Neil1-30/+8
casting. Backport of changeset 6762:addd3229350b.
2018-04-30Backport: Use C++ casts in preference to C casts. Use nullptr instead of 0.Neil1-1/+2
Backport of changeset 6761:3d5f0669be84.
2018-04-28Backport: Delete standard functions on classes where there could be attempts ↵Neil1-0/+12
to copy. Backport of changeset 6756:29866b0927e0.
2018-04-28Backport: Remove unused definition and replace 0 with nullptr.Neil1-2/+1
Backport of changeset 6754:e62ae5a8a587.
2018-04-28Backport:Initialize timers in definition instead of looping to avoid cast ↵Neil1-4/+1
and warning. Backport of changeset 6753:2950b9c35ecc.
2018-05-06Backport: Use <chrono> for platform-independent timing and remove ↵mitchell1-2/+4
ElapsedTime. Also use #if for painting measurement as there are 7 sections of code to enable. Backport of changeset 6741:af5d9064c25c.
2018-04-25Backport: Use set of coercion functions for transforming WndProc parameters ↵Neil1-7/+7
into pointers. Backport of changeset 6738:5b39367ee7da.
2018-04-25Backport: Standardized signature of TargetAsUTF8 and EncodedFromUTF8.Neil1-2/+2
Backport of changeset 6737:5c4aea8a1e8a.
2018-05-06Backport: Remove casts that are not needed since sptr_t and Sci::Position ↵mitchell1-1/+1
are the same type. Backport of changeset 6735:ed52dd761341.
2018-04-22Backport: Remove casts between char and unsigned char where possible.Neil1-4/+4
Backport of changeset 6731:8e06234817c0.
2018-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil1-13/+13
for 64-bit builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened. Backport of changeset 6705:5c0a80740b8c.
2018-04-05Backport: Backed out changeset: 7402342dc7a3 Caching client rectangle on ↵Neil1-2/+2
EditView. This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based. Backport of changeset 6673:a22abea8d41e.
2018-04-04Backport: Remove automatic detection of Direct2D support during build.Neil1-1/+1
DISABLE_D2D may still be defined to remove Direct2D features. Backport of changeset 6672:9c1997a14d89.
2018-04-04Backport: Move DLL entry points DllMain and Scintilla_DirectFunction into ↵Neil1-22/+12
ScintillaDLL.cxx to simplify build process by eliminating the compilation of ScintillaWin.cxx into ScintillaWinS.o|obj. Backport of changeset 6670:cfe90078d684.
2018-04-04Backport: Cache client rectangle on EditView so it can be used easily inside ↵Neil1-2/+2
EditView. Backport of changeset 6669:7402342dc7a3.
2018-03-15Backport: Use forward class definitions of XPM and RGBAImage so only code ↵Neil1-1/+0
that uses them needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage. Backport of changeset 6624:32adac0930bb.
2018-01-21Backport: Type casts in case Sci::Position and Sci::Line are extended to ↵Neil1-14/+14
64-bits. Use of const where reasonable. Backport of changeset 6428:b250ca7c9896.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-2/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-08-28Backport: New header ILoader.h defines ILoader interface as it does not ↵Neil1-0/+1
belong in ILexer.h. Backport of changeset 6383:9c8257ff60b7.
2017-06-22Backport: Cast between Sci_Position.h types used for lexers and Position.h ↵Neil1-6/+6
types used in core to allow the Sci_Position.h types to widen to 64-bits. Backport of changeset 6324:95346e626cf8.
2017-06-12Backport: Remove old timer code in favour of the FineTicker* methods.Neil1-8/+0
Backport of changeset 6311:3a180dc6e9c8.
2017-06-12Backport: Simplify mouse and keyboard handling by only retaining the ↵Neil1-23/+23
'WithModifiers" form. All events include a set of keyboard modifier flags. Older calls that passed individual parameters for each key were removed. Backport of changeset 6310:af83baede430.
2017-06-12Backport: Removed unused functions and methods from Platform.h.Neil1-16/+24
Replaced Platform::Clamp with Sci::clamp. Drop MouseButtonBounce workaround for very early GTK+/Linux. Backported from changeset 6307:7030530a9a0f.
2017-05-21Make SparseVector work with move-only types.Neil1-0/+1
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-02More consistent use of size_t when converting Unicode formats.Neil1-20/+21
2017-05-02Use unique_ptr for drawing surfaces and don't check for allocation failureNeil1-43/+39
as that throws an exception. Also use unique_ptr for tab stop positions.
2017-04-21More consistent deletion of standard methods.Neil1-1/+1
2017-04-20More consistent deletion of standard methods.Neil1-2/+3
2017-04-15Avoid calling virtual functions in constructors and destructors.Neil1-3/+3
2017-04-07Prefer C++ static cast over C-style casts.Neil1-5/+5
2017-04-07Use same parameter names in declarations and definitions.Neil1-2/+2
2017-04-06Added const where possible.Neil1-39/+39
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-7/+8
where it may be needed in the future.
2017-03-31Hide decorations details a little.Neil1-1/+1
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-42/+42
and lines.
2017-03-09Drop support for Windows NT 4 by statically linking to system APIs that areNeil1-20/+4
only available from Windows 2000 and later.
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-0/+1
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.