aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
AgeCommit message (Collapse)AuthorFilesLines
2021-03-22Replace multiple mode setting calls on Surface with SetMode as this isNeil1-4/+2
extensible. For CallTip, GTK and Qt hardcode BidiR2L to false as they don't support bidirectional, its the same as current, and the BidiR2L state on EditModel isn't easily accessible.
2021-03-20Use Surface::AllocatePixMap instead of changing an existing surface withNeil1-1/+1
InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small.
2021-03-19Switch enum to enum class.Neil1-30/+32
2020-06-24Converting between UTF-8 and current encoding.Neil1-0/+18
Allows platform-independent code to be written just to handle Unicode.
2021-03-18Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.Neil1-4/+4
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Window::Cursor to an enum class.Neil1-3/+3
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2020-11-02Use std::size instead of ELEMENTS so StringCopy.h is only used by Lexilla andNeil1-3/+2
can be removed from Scintilla.
2020-05-22Hoist repeated test for string selection types into static method.Neil1-4/+7
2020-05-22Bug [#2171]. Implement per-monitor DPI Awareness on Windows.Chris Graham1-9/+20
2020-05-01Replace deprecated function pango_script_for_unichar with g_unichar_get_script.Neil1-5/+5
2020-03-26Fix spelling mistakes.Neil1-3/+3
2020-03-21Bug [#2149]. Enable windowed IME on Wayland by setting as transient for main.Zufu Liu1-2/+12
2020-03-21Remove some casts that are not needed.Zufu Liu1-3/+2
2020-03-19Use dynamic_cast and assertion to make bugs more obvious.Neil1-20/+15
Use noexcept, namespace, const, constexpr, and static inline where reasonable. Avoid warnings in initializations.
2020-01-06Bug [#2135]. Prevent movement of candidate window while typing.Zufu Liu1-2/+4
2020-01-06Bug [#2135]. Improve location of candidate window.Zufu Liu1-2/+4
2020-01-06Bug [#2135]. Set candidate window position in windowed IME mode.Zufu Liu1-0/+2
2019-12-31Move collection of modules from Catalogue.cxx to CatalogueModules.h so it canNeil1-3/+0
be reused.
2019-12-13Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.Neil1-15/+0
This allows removal of related #include statements.
2019-11-22Replace GTimeVal and g_get_current_time with gint64 and g_get_monotonic_time.Neil1-10/+4
GTimeVal was deprecated in GLib 2.61.2 as it is not year-2038-safe.
2019-11-15Feature [feature-requests:#1316] Allow target to have virtual space.Neil1-4/+4
2019-09-30Delete standard functions on classes where there could be attempts to copy.Neil Hodgson1-0/+10
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-5/+2
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
2019-06-29Bug [#2111]. Retracted change to IME on GTK.Neil1-7/+0
Backed out changeset: 512ec9ab2e7c
2019-06-22Bug [#2111]. Reset IME when mouse is clicked on GTK.Hodong Kim1-0/+7
2019-06-22Feature [feature-requests:#1297] Update to use INDICATOR_ instead of INDIC_ asNeil1-5/+5
INDIC_ is also used for indicator styles.
2019-06-17Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.Zufu Liu1-3/+3
2019-04-12Bug [#2093]. Remove restrictions on IME input length.Zufu Liu1-2/+1
2019-04-11Bug [#2087]. Fix flickering when inserting primary selection on GTK betweenNeil1-13/+29
SciTE tabs. This does not allow primary selection to work between tabs as the tabs are sharing a single Scintilla and the old primary selection is unclaimed when the file is changed. This fix adds a new ReceivedClipboard method which does not try to convert the selection if received in a different format than asked for. It was the call to gtk_selection_convert that seemed to cause the flickering. ReceivedClipboard is only called from SelectionReceiver::ClipboardReceived so only occurs due to a call to RequestSelection and can not occur because of a selection_received signal. ReceivedSelection is left with its complexity in case it is needed for some other issue although it doesn't appear to be called for drag&drop, for example.
2019-04-05Bug [#2094]. gtk: Accessible: use the built-in character position cacheColomban Wendling1-1/+1
It's quite a lot faster even after trying and optimizing the custom version, and it makes the code simpler. Also improve ByteOffsetFromCharacterOffset() to make use of the cache, making it drastically faster.
2019-03-29Include "CharacterCategory.h" in all files that include "Document.h" as it willNeil1-0/+1
be needed for adding a CharacterCategory feature.
2019-03-28Use standard GDK_SELECTION_CLIPBOARD instead of interning "CLIPBOARD".Neil1-5/+3
2019-03-28Bug [#2087]. Fix flicker when inserting primary selection on GTK.Neil1-28/+40
2019-03-27Ran astyle to standardize formatting.Neil1-212/+214
2019-03-27Fix problem with MinGW which defines NOMINMAX itself.Neil1-0/+1
2019-03-27Use const where reasonable. Some additional type safety.Neil1-51/+51
2019-03-27Standardize extracting point from mouse event, more noexcept, anonymousNeil1-26/+33
namespace and type safety.
2019-03-27Replace NULL/0 with nullptr. Mark noexcept where simple.Neil1-63/+64
Move some static functions into anonymous namespace.
2019-03-27Initialize all the fields of ScintillaGTK.Neil1-2/+6
2019-03-27Add <algorithm> for std::min/max. Standardize on _WIN32 to gate Win32 features.Neil1-1/+3
Protect from windows.h definition of min/max.
2019-03-26Make PWidget noexcept and take const argument so it can be used in more ↵Neil1-1/+1
contexts.
2019-03-25Use std::make_unique.Neil1-1/+1
2019-03-25Use generic versions of ceil, floor, round, lround, trunc from <cmath>.Neil1-4/+4
2019-01-13Replace the only use of a function from <cctype> with a Scintilla function.Neil1-1/+0
Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments.
2018-10-11Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-3/+4
This can reduce the time taken to fold a document by half.
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-2/+2
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-2/+1
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.