jsalatas created this revision. Restricted Application added a subscriber: kwrite-devel. Restricted Application added a project: Frameworks.
REVISION SUMMARY I'm creating a diff/patch frontend similar to Kompare but using KTextEditor to display/edit source/destination files. In order to be able to sync the scrolling positions of the two Views and also to overlay diff indicators (see screenshot), I'm exposing the following: - scrollPos: scrolls the View to a cursor position - scrollColumns: scrolls the View to a column - maxStartPos: returns the cursor position of the maximum vertical scroll position - startLine: returns the first visible line in the View - endLine: returns the last visible line in the View - textareaRect: returns the View's text area rectangle excluding border, scrollbars, etc. F2705627: Screenshot_20170305_124152.png <https://phabricator.kde.org/F2705627> TEST PLAN Already tested in my app. It works :) REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D4947 AFFECTED FILES src/include/ktexteditor/view.h src/view/kateview.cpp src/view/kateview.h To: jsalatas, #ktexteditor, #frameworks Cc: kwrite-devel