aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
AgeCommit message (Collapse)AuthorFilesLines
2021-03-19Add an explicit FlushDrawing method to Surface that should be called afterNeil1-0/+4
completing a bitmap. Currently only has a real implementation on Direct2D. Avoiding implicit flushes inside Copy and FillRectangle produced a 23% speed improvement on files with about 1 indentation guide per line as the drawing pipeline was being flushed for each indentation guide.
2021-03-19Implement PopClip to allow local clipping.Neil1-1/+7
2021-03-19Add Surface::PixelDivisions which detects 'retina' displays that useNeil1-0/+6
multiple display pixels per logical pixel. Likely will only return >1 for Apple displays. Can be used for finer placement of elements.
2021-03-19Add Platform::Supports for SupportsFeature API.Neil1-0/+13
2021-03-18Make Surface::Release and callers (where possible) noexcept.Neil1-1/+1
2021-03-18Use unique_ptr for Surface::Allocate to show transfer of ownership.Neil1-2/+2
2021-03-18ListBox options API. ListOptions is currently empty but may contain list itemNeil1-0/+4
colours in the future.
2021-03-17Use unique_ptr for ListBox::Allocate to show transfer of ownership.Neil1-2/+2
2021-03-17Change Window::Cursor to an enum class.Neil1-8/+8
2021-03-17Remove Window::SetFont as never used.Neil1-6/+0
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-68/+54
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2021-03-17Make Window argument to Menu::Show const as that avoids warnings and the WindowNeil1-1/+1
is not altered by showing a menu.
2021-03-17Mark Window::Destroy, ListBox::Clear, and Menu::Destroy as noexcept sinceNeil1-4/+4
destroying state should not throw.
2021-03-17Remove DynamicLibrary as loading lexers with SCI_LOADLEXERLIBRARY was removedNeil1-44/+0
for Scintilla 5.
2021-03-16Convert Platform from a class to a namespace. Does not change callers.Neil1-4/+4
Make Assert, DebugPrintf, and similar noexcept so they can be used in noexcept methods and they don't throw.
2020-07-13Minor warning fixes. 0 -> nullptr and static_cast -> dynamic_cast.Neil1-3/+3
2020-07-13Use float for text size in case application calls SCI_STYLESETSIZEFRACTIONAL.Neil1-1/+1
2020-07-08Fix translucent rectangle drawing on Qt.Neil1-12/+28
2020-07-08Use correct signature to override QListWidget::selectionChanged and use this toNeil1-14/+21
call ListNotify on delegate. This avoids need to override mouseReleaseEvent. As currentRow() is not updated for selectionChanged, use selectedRows to find selection. Fixes a compiler warning.
2020-07-08Fix deprecated QDesktopWidget::availableGeometry call to use currently supportedNeil1-8/+21
QScreen::availableGeometry call when available.
2020-07-08Fix deprecated Qt call to use currently supported call.Neil1-1/+1
2020-04-07Use const as avoids warning.Neil1-1/+1
2020-01-05Fix some warnings.Neil1-2/+2
2019-12-13Use safe mechanism for converting between function pointers and void*.Neil1-8/+8
2019-11-04Avoid warnings where const reasonable.Neil1-4/+14
2018-07-10Delete standard methods to avoid warnings.Neil1-0/+5
2018-06-02Define IScreenLineLayout as the main interface for implementing bidirectionalNeil1-12/+2
features by platform code. Implement IScreenLineLayout for Win32 / DirectWrite as ScreenLineLayout.
2018-05-26Add necessary headers and move includes to be in same order.Neil1-1/+2
2018-05-23Add definitions for bidirectional support to Platform.h and provide emptyNeil1-0/+19
implementations for each platform.
2018-05-22Add GradientRectangle method to Surface to draw rectangles with vertical orNeil1-0/+20
horizontal gradients.
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-23/+23
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-9/+3
Polygon and delete the standard copy and assignment methods.
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-8/+8
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
2018-05-02Replace NULL and 0 with nullptr.Neil Hodgson1-41/+20
2018-05-02Define ListBoxImpl::GetWidget method to avoid casts.Neil Hodgson1-55/+37
2018-04-26Use <chrono> for platform-independent timing and remove ElapsedTime.Neil1-27/+0
Also use #if for painting measurement as there are 7 sections of code to enable.
2018-04-25Remove variables and casts that are not needed.Neil1-2/+2
2018-04-15Feature [feature-requests:#1215]. Stop warning about virtual call in destructor.Neil1-13/+18
2018-03-22Feature [feature-requests:#1211]. Use pre-computed table for UTF8BytesOfLead.Zufu Liu1-16/+4
Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests.
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-4/+0
interfaces ILexer4 and IDocument.
2017-06-12Removed unused functions and methods from Platform.h.Neil1-104/+2
Replaced Platform::Clamp with Sci::clamp but will later change this to std::clamp once on full C++17 compilers. Drop MouseButtonBounce workaround for very early GTK+/Linux.
2017-06-11Implement SCN_AUTOCSELECTIONCHANGE notification.Neil1-12/+26
2017-05-19Avoid explicit memory management.Neil1-3/+2
2017-04-19Use "override" for GTK+ and Qt platform layers.Neil1-25/+25
2017-04-07Use same parameter names in declarations and definitions.Neil1-1/+1
2016-01-26Fix flags to be compatible with Qt 4.x.Neil1-2/+5
2015-12-11Bug [#1669]. Prevent crash when clicking on autocompletion list.Neil1-1/+2
This appears to be a focus problem. Clicking on the list sets it as the focus which removes focus from the Scintilla text window. Scintilla responds to loss of focus by destroying any popups including the autocompletion list which is not in a state where it is safe to be destroyed. Adding the WindowDoesNotAcceptFocus flag to the list prevents it from getting focus and thus prevents the crash.
2015-11-20Remove line end whitespace.Neil1-2/+2
2015-05-13Bug [#1703]. Fix bug when drawing text margins in buffered mode which would useNeil1-1/+4
default encoding instead of chosen encoding.
2015-05-13Make single argument constructors explicit where simple to avoid possibility ofNeil1-2/+2
unintended conversions.