diff options
Diffstat (limited to 'indra/llui')
| -rwxr-xr-x | indra/llui/llkeywords.cpp | 14 | ||||
| -rwxr-xr-x | indra/llui/lltextbase.cpp | 1 | ||||
| -rwxr-xr-x | indra/llui/lltextbase.h | 1 | ||||
| -rwxr-xr-x | indra/llui/lltexteditor.cpp | 8 | ||||
| -rwxr-xr-x | indra/llui/lltexteditor.h | 2 | ||||
| -rwxr-xr-x | indra/llui/llurlaction.cpp | 2 | 
6 files changed, 20 insertions, 8 deletions
| diff --git a/indra/llui/llkeywords.cpp b/indra/llui/llkeywords.cpp index 6750ee482a..6c1333a2af 100755 --- a/indra/llui/llkeywords.cpp +++ b/indra/llui/llkeywords.cpp @@ -673,7 +673,7 @@ void LLKeywords::findSegments(std::vector<LLTextSegmentPtr>* seg_list, const LLW  						S32 seg_start = cur - base;  						S32 seg_end = seg_start + seg_len; -						// llinfos << "Seg: [" << word.c_str() << "]" << llendl; +						// LL_INFOS("SyntaxLSL") << "Seg: [" << word.c_str() << "]" << LL_ENDL;  						insertSegments(wtext, *seg_list,cur_token, text_len, seg_start, seg_end, defaultColor, editor);  					} @@ -740,10 +740,10 @@ void LLKeywords::insertSegment(std::vector<LLTextSegmentPtr>& seg_list, LLTextSe  #ifdef _DEBUG  void LLKeywords::dump()  { -	llinfos << "LLKeywords" << llendl; +	LL_INFOS() << "LLKeywords" << LL_ENDL; -	llinfos << "LLKeywords::sWordTokenMap" << llendl; +	LL_INFOS() << "LLKeywords::sWordTokenMap" << LL_ENDL;  	word_token_map_t::iterator word_token_iter = mWordTokenMap.begin();  	while( word_token_iter != mWordTokenMap.end() )  	{ @@ -752,7 +752,7 @@ void LLKeywords::dump()  		++word_token_iter;  	} -	llinfos << "LLKeywords::sLineTokenList" << llendl; +	LL_INFOS() << "LLKeywords::sLineTokenList" << LL_ENDL;  	for (token_list_t::iterator iter = mLineTokenList.begin();  		 iter != mLineTokenList.end(); ++iter)  	{ @@ -761,7 +761,7 @@ void LLKeywords::dump()  	} -	llinfos << "LLKeywords::sDelimiterTokenList" << llendl; +	LL_INFOS() << "LLKeywords::sDelimiterTokenList" << LL_ENDL;  	for (token_list_t::iterator iter = mDelimiterTokenList.begin();  		 iter != mDelimiterTokenList.end(); ++iter)  	{ @@ -772,12 +772,12 @@ void LLKeywords::dump()  void LLKeywordToken::dump()  { -	llinfos << "[" << +	LL_INFOS() << "[" <<  		mColor.mV[VX] << ", " <<  		mColor.mV[VY] << ", " <<  		mColor.mV[VZ] << "] [" <<  		wstring_to_utf8str(mToken) << "]" << -		llendl; +		LL_ENDL;  }  #endif  // DEBUG diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 602a703450..20ec243ec5 100755 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1316,6 +1316,7 @@ void LLTextBase::replaceWithSuggestion(U32 index)  			setCursorPos(it->first + (S32)suggestion.length()); +			onSpellCheckPerformed();  			break;  		} diff --git a/indra/llui/lltextbase.h b/indra/llui/lltextbase.h index dfc10923f3..0698e9b53c 100755 --- a/indra/llui/lltextbase.h +++ b/indra/llui/lltextbase.h @@ -362,6 +362,7 @@ public:  	std::string				getMisspelledWord(U32 pos) const;  	bool					isMisspelledWord(U32 pos) const;  	void					onSpellCheckSettingsChange(); +	virtual void			onSpellCheckPerformed(){}  	// used by LLTextSegment layout code  	bool					getWordWrap() { return mWordWrap; } diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 926326aaff..d170d17f94 100755 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -2380,6 +2380,14 @@ void LLTextEditor::removeTextFromEnd(S32 num_chars)  //---------------------------------------------------------------------------- +void LLTextEditor::onSpellCheckPerformed() +{ +	if (isPristine()) +	{ +		mBaseDocIsPristine = FALSE; +	} +} +  void LLTextEditor::makePristine()  {  	mPristineCmd = mLastCmd; diff --git a/indra/llui/lltexteditor.h b/indra/llui/lltexteditor.h index f6bdf917b4..26702b2412 100755 --- a/indra/llui/lltexteditor.h +++ b/indra/llui/lltexteditor.h @@ -160,6 +160,8 @@ public:  	autoreplace_callback_t mAutoreplaceCallback;  	void			setAutoreplaceCallback(autoreplace_callback_t cb) { mAutoreplaceCallback = cb; } +	/*virtual*/ void	onSpellCheckPerformed(); +  	//  	// Text manipulation  	// diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp index 12537d9dd1..c28dbb8577 100755 --- a/indra/llui/llurlaction.cpp +++ b/indra/llui/llurlaction.cpp @@ -227,6 +227,6 @@ void LLUrlAction::blockObject(std::string url)  	std::string object_name = getObjectName(url);  	if (LLUUID::validate(object_id))  	{ -		executeSLURL("secondlife:///app/agent/" + object_id + "/block/" + object_name); +		executeSLURL("secondlife:///app/agent/" + object_id + "/block/" + LLURI::escape(object_name));  	}  } | 
