From 02359fde690e038aa75c5d86f7a497ec8f98d188 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Mon, 27 Apr 2009 14:00:45 +0000 Subject: [PATCH] [ should have been part of last commit ] more work concerning navigation within BTextView: * pressing HOME on last line works again * made public versions of LineAt() do what is required to pass back the correct value even for the last line of the buffer (original implementation has been moved to private _LineAt()) * PAGE_UP/PAGE_DOWN now moves the view by the bounds-height, making the behaviour somewhat less confusing (IMHO, please shout if that's not acceptable for you) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30459 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/TextView.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headers/os/interface/TextView.h b/headers/os/interface/TextView.h index 35c64ece57..ed6623fe14 100644 --- a/headers/os/interface/TextView.h +++ b/headers/os/interface/TextView.h @@ -381,6 +381,10 @@ private: void _HandleInputMethodLocationRequest(); void _CancelInputMethod(); + int32 _LineAt(int32 offset) const; + int32 _LineAt(const BPoint& point) const; + bool _IsOnEmptyLastLine(int32 offset) const; + BPrivate::TextGapBuffer* fText; LineBuffer* fLines; StyleBuffer* fStyles;