aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltexteditor.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:50 -0500
committerJacek Antonelli2008-08-15 23:45:50 -0500
commit2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch)
tree95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llui/lltexteditor.h
parentSecond Life viewer sources 1.20.6 (diff)
downloadmeta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2
meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lltexteditor.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/llui/lltexteditor.h b/linden/indra/llui/lltexteditor.h
index 54a34cc..d5a68ca 100644
--- a/linden/indra/llui/lltexteditor.h
+++ b/linden/indra/llui/lltexteditor.h
@@ -139,7 +139,7 @@ public:
139 void insertText(const LLString &text); 139 void insertText(const LLString &text);
140 // appends text at end 140 // appends text at end
141 void appendText(const LLString &wtext, bool allow_undo, bool prepend_newline, 141 void appendText(const LLString &wtext, bool allow_undo, bool prepend_newline,
142 const LLStyle* segment_style = NULL); 142 const LLStyleSP *stylep = NULL);
143 143
144 void appendColoredText(const LLString &wtext, bool allow_undo, 144 void appendColoredText(const LLString &wtext, bool allow_undo,
145 bool prepend_newline, 145 bool prepend_newline,
@@ -148,7 +148,7 @@ public:
148 // if styled text starts a line, you need to prepend a newline. 148 // if styled text starts a line, you need to prepend a newline.
149 void appendStyledText(const LLString &new_text, bool allow_undo, 149 void appendStyledText(const LLString &new_text, bool allow_undo,
150 bool prepend_newline, 150 bool prepend_newline,
151 const LLStyle* style); 151 const LLStyleSP *stylep = NULL);
152 152
153 // Removes text from the end of document 153 // Removes text from the end of document
154 // Does not change highlight or cursor position. 154 // Does not change highlight or cursor position.
@@ -429,7 +429,7 @@ private:
429 void drawSelectionBackground(); 429 void drawSelectionBackground();
430 void drawCursor(); 430 void drawCursor();
431 void drawText(); 431 void drawText();
432 void drawClippedSegment(const LLWString &wtext, S32 seg_start, S32 seg_end, F32 x, F32 y, S32 selection_left, S32 selection_right, const LLStyle& color, F32* right_x); 432 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);
433 433
434 // 434 //
435 // Data 435 // Data
@@ -528,7 +528,7 @@ class LLTextSegment
528public: 528public:
529 // for creating a compare value 529 // for creating a compare value
530 LLTextSegment(S32 start); 530 LLTextSegment(S32 start);
531 LLTextSegment( const LLStyle& style, S32 start, S32 end ); 531 LLTextSegment( const LLStyleSP& style, S32 start, S32 end );
532 LLTextSegment( const LLColor4& color, S32 start, S32 end, BOOL is_visible); 532 LLTextSegment( const LLColor4& color, S32 start, S32 end, BOOL is_visible);
533 LLTextSegment( const LLColor4& color, S32 start, S32 end ); 533 LLTextSegment( const LLColor4& color, S32 start, S32 end );
534 LLTextSegment( const LLColor3& color, S32 start, S32 end ); 534 LLTextSegment( const LLColor3& color, S32 start, S32 end );
@@ -536,10 +536,10 @@ public:
536 S32 getStart() const { return mStart; } 536 S32 getStart() const { return mStart; }
537 S32 getEnd() const { return mEnd; } 537 S32 getEnd() const { return mEnd; }
538 void setEnd( S32 end ) { mEnd = end; } 538 void setEnd( S32 end ) { mEnd = end; }
539 const LLColor4& getColor() const { return mStyle.getColor(); } 539 const LLColor4& getColor() const { return mStyle->getColor(); }
540 void setColor(const LLColor4 &color) { mStyle.setColor(color); } 540 void setColor(const LLColor4 &color) { mStyle->setColor(color); }
541 const LLStyle& getStyle() const { return mStyle; } 541 const LLStyleSP& getStyle() const { return mStyle; }
542 void setStyle(const LLStyle &style) { mStyle = style; } 542 void setStyle(const LLStyleSP &style) { mStyle = style; }
543 void setIsDefault(BOOL b) { mIsDefault = b; } 543 void setIsDefault(BOOL b) { mIsDefault = b; }
544 BOOL getIsDefault() const { return mIsDefault; } 544 BOOL getIsDefault() const { return mIsDefault; }
545 void setToken( LLKeywordToken* token ) { mToken = token; } 545 void setToken( LLKeywordToken* token ) { mToken = token; }
@@ -557,7 +557,7 @@ public:
557 }; 557 };
558 558
559private: 559private:
560 LLStyle mStyle; 560 LLStyleSP mStyle;
561 S32 mStart; 561 S32 mStart;
562 S32 mEnd; 562 S32 mEnd;
563 LLKeywordToken* mToken; 563 LLKeywordToken* mToken;