D4947: [KTextEditor] Expose additional internal View's functionality to the public API
John Salatas
noreply at phabricator.kde.org
Sun Mar 5 20:57:10 UTC 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170305/ea6d00b1/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list