summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.h
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-11-21 01:18:39 +0000
committerMark Palange <palange@lindenlab.com>2008-11-21 01:18:39 +0000
commitac68eb16a2dac453fe85b7218297f561b8fc96ca (patch)
treea1e26d95326b610c6d2a740ee80071bfb866d8e9 /indra/llui/lltexteditor.h
parent77c108b2c4879fbbb168f91fed7763a0b557ecab (diff)
Merging the changes in viewer_1-22-0 (1.22 RC0) back into trunk, revs. 101837 to 103519
Diffstat (limited to 'indra/llui/lltexteditor.h')
-rw-r--r--indra/llui/lltexteditor.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/llui/lltexteditor.h b/indra/llui/lltexteditor.h
index af9908a540..4f41f67ce8 100644
--- a/indra/llui/lltexteditor.h
+++ b/indra/llui/lltexteditor.h
@@ -245,9 +245,9 @@ public:
llwchar getWChar(S32 pos) const { return mWText[pos]; }
LLWString getWSubString(S32 pos, S32 len) const { return mWText.substr(pos, len); }
- const LLTextSegment* getCurrentSegment() { return getSegmentAtOffset(mCursorPos); }
- const LLTextSegment* getPreviousSegment();
- void getSelectedSegments(std::vector<const LLTextSegment*>& segments);
+ const LLTextSegment* getCurrentSegment() const { return getSegmentAtOffset(mCursorPos); }
+ const LLTextSegment* getPreviousSegment() const;
+ void getSelectedSegments(std::vector<const LLTextSegment*>& segments) const;
static bool isPartOfWord(llwchar c) { return (c == '_') || LLStringOps::isAlnum((char)c); }
@@ -433,6 +433,14 @@ private:
void drawText();
void drawClippedSegment(const LLWString &wtext, S32 seg_start, S32 seg_end, F32 x, F32 y, S32 selection_left, S32 selection_right, const LLStyleSP& color, F32* right_x);
+ void needsReflow()
+ {
+ mReflowNeeded = TRUE;
+ // cursor might have moved, need to scroll
+ mScrollNeeded = TRUE;
+ }
+ void needsScroll() { mScrollNeeded = TRUE; }
+
//
// Data
//
@@ -489,6 +497,8 @@ private:
};
typedef std::vector<line_info> line_list_t;
line_list_t mLineStartList;
+ BOOL mReflowNeeded;
+ BOOL mScrollNeeded;
LLFrameTimer mKeystrokeTimer;