I was wrong after all. InsertText() doesn't call SetRunArray() (and
hence CancelInputMethod()), but it implements part of it. To avoid code duplication, I added a private _SetRunArray() call, which does most of the work, except cancelling the input method, and calling Refresh(). Removed some unneeded code from CancelInputMethod(), some small changes in HandleInputMethodChanged. -Questa linea, e quelle sotto di essa, saranno ignorate-- M src/kits/interface/TextView.cpp M headers/os/interface/TextView.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22489 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -359,7 +359,7 @@ virtual void _ReservedTextView12();
|
||||
|
||||
void PerformAutoScrolling();
|
||||
void UpdateScrollbars();
|
||||
void AutoResize(bool doredraw=true);
|
||||
void AutoResize(bool doRedraw = true);
|
||||
|
||||
void NewOffscreen(float padding = 0.0F);
|
||||
void DeleteOffscreen();
|
||||
@@ -369,6 +369,9 @@ virtual void _ReservedTextView12();
|
||||
|
||||
void NormalizeFont(BFont *font);
|
||||
|
||||
void _SetRunArray(int32 startOffset, int32 endOffset,
|
||||
const text_run_array *inRuns);
|
||||
|
||||
uint32 CharClassification(int32 offset) const;
|
||||
int32 NextInitialByte(int32 offset) const;
|
||||
int32 PreviousInitialByte(int32 offset) const;
|
||||
|
||||
Reference in New Issue
Block a user