merge changes for other open sourc contributions
commit
71a468c6fb
|
|
@ -0,0 +1,13 @@
|
|||
Second Life Viewer
|
||||
==================
|
||||
|
||||
This project manages the source code for the
|
||||
[Second Life](https://www.secondlife.com) Viewer.
|
||||
|
||||
This source is available as open source; for details on licensing, see
|
||||
[https://wiki.secondlife.com/wiki/Linden_Lab_Official:Second_Life_Viewer_Licensing_Program](the
|
||||
licensing page on the Second Life wiki)
|
||||
|
||||
For information on how to use and contribute to this, see
|
||||
[https://wiki.secondlife.com/wiki/Open_Source_Portal](the open source
|
||||
portal on the wiki).
|
||||
|
|
@ -185,6 +185,9 @@ Ansariel Hiller
|
|||
BUG-3764
|
||||
STORM-1984
|
||||
STORM-1979
|
||||
STORM-2083
|
||||
STORM-2094
|
||||
MAINT-4677
|
||||
Aralara Rajal
|
||||
Arare Chantilly
|
||||
CHUIBUG-191
|
||||
|
|
@ -328,6 +331,7 @@ Cinder Roxley
|
|||
STORM-2037
|
||||
STORM-2053
|
||||
STORM-2113
|
||||
STORM-2098
|
||||
Clara Young
|
||||
Coaldust Numbers
|
||||
VWR-1095
|
||||
|
|
@ -723,6 +727,11 @@ Jonathan Yap
|
|||
STORM-2034
|
||||
STORM-2018
|
||||
STORM-2082
|
||||
STORM-2086
|
||||
STORM-2085
|
||||
STORM-2088
|
||||
STORM-2094
|
||||
STORM-2099
|
||||
Kadah Coba
|
||||
STORM-1060
|
||||
STORM-1843
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (!(options.has("pid") && options.has("dumpdir")))
|
||||
{
|
||||
llwarns << "Insufficient parameters to crash report." << llendl;
|
||||
LL_WARNS() << "Insufficient parameters to crash report." << LL_ENDL;
|
||||
}
|
||||
|
||||
if (! app.init())
|
||||
|
|
|
|||
|
|
@ -362,13 +362,4 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
|
|||
#define LL_INFOS_ONCE(...) lllog(LLError::LEVEL_INFO, true, ##__VA_ARGS__)
|
||||
#define LL_WARNS_ONCE(...) lllog(LLError::LEVEL_WARN, true, ##__VA_ARGS__)
|
||||
|
||||
// DEPRECATED: Use the new macros that allow tags and *look* like macros.
|
||||
#define lldebugs LL_COMPILE_TIME_MESSAGE("Warning: lldebugs deprecated, use LL_DEBUGS() instead") LL_DEBUGS()
|
||||
#define llinfos LL_COMPILE_TIME_MESSAGE("Warning: llinfos deprecated, use LL_INFOS() instead") LL_INFOS()
|
||||
#define llwarns LL_COMPILE_TIME_MESSAGE("Warning: llwarns deprecated, use LL_WARNS() instead") LL_WARNS()
|
||||
#define llerrs LL_COMPILE_TIME_MESSAGE("Warning: llerrs deprecated, use LL_ERRS() instead") LL_ERRS()
|
||||
#define llcont LL_COMPILE_TIME_MESSAGE("Warning: llcont deprecated, use LL_CONT instead") LL_CONT
|
||||
#define llendl LL_COMPILE_TIME_MESSAGE("Warning: llendl deprecated, use LL_ENDL instead") LL_ENDL
|
||||
|
||||
|
||||
#endif // LL_LLERROR_H
|
||||
|
|
|
|||
|
|
@ -167,9 +167,9 @@ private:
|
|||
F32 _sin(const F32& a) const { return sin(DEG_TO_RAD * a); }
|
||||
F32 _cos(const F32& a) const { return cos(DEG_TO_RAD * a); }
|
||||
F32 _tan(const F32& a) const { return tan(DEG_TO_RAD * a); }
|
||||
F32 _asin(const F32& a) const { return asin(a * RAD_TO_DEG); }
|
||||
F32 _acos(const F32& a) const { return acos(a * RAD_TO_DEG); }
|
||||
F32 _atan(const F32& a) const { return atan(a * RAD_TO_DEG); }
|
||||
F32 _asin(const F32& a) const { return asin(a) * RAD_TO_DEG; }
|
||||
F32 _acos(const F32& a) const { return acos(a) * RAD_TO_DEG; }
|
||||
F32 _atan(const F32& a) const { return atan(a) * RAD_TO_DEG; }
|
||||
F32 _sqrt(const F32& a) const { return sqrt(a); }
|
||||
F32 _log(const F32& a) const { return log(a); }
|
||||
F32 _exp(const F32& a) const { return exp(a); }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1316,6 +1316,7 @@ void LLTextBase::replaceWithSuggestion(U32 index)
|
|||
|
||||
|
||||
setCursorPos(it->first + (S32)suggestion.length());
|
||||
onSpellCheckPerformed();
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -2380,6 +2380,14 @@ void LLTextEditor::removeTextFromEnd(S32 num_chars)
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
void LLTextEditor::onSpellCheckPerformed()
|
||||
{
|
||||
if (isPristine())
|
||||
{
|
||||
mBaseDocIsPristine = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void LLTextEditor::makePristine()
|
||||
{
|
||||
mPristineCmd = mLastCmd;
|
||||
|
|
|
|||
|
|
@ -160,6 +160,8 @@ public:
|
|||
autoreplace_callback_t mAutoreplaceCallback;
|
||||
void setAutoreplaceCallback(autoreplace_callback_t cb) { mAutoreplaceCallback = cb; }
|
||||
|
||||
/*virtual*/ void onSpellCheckPerformed();
|
||||
|
||||
//
|
||||
// Text manipulation
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ int main(int argc, char **argv)
|
|||
|
||||
if (!(options.has("pid") && options.has("dumpdir")))
|
||||
{
|
||||
llwarns << "Insufficient parameters to crash report." << llendl;
|
||||
LL_WARNS() << "Insufficient parameters to crash report." << LL_ENDL;
|
||||
}
|
||||
|
||||
if (! app.init())
|
||||
|
|
|
|||
|
|
@ -96,13 +96,13 @@ LLNetMap::LLNetMap (const Params & p)
|
|||
mToolTipMsg(),
|
||||
mPopupMenu(NULL)
|
||||
{
|
||||
mScale = gSavedSettings.getF32("MiniMapScale");
|
||||
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
|
||||
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
|
||||
setScale(gSavedSettings.getF32("MiniMapScale"));
|
||||
}
|
||||
|
||||
LLNetMap::~LLNetMap()
|
||||
{
|
||||
gSavedSettings.setF32("MiniMapScale", mScale);
|
||||
}
|
||||
|
||||
BOOL LLNetMap::postBuild()
|
||||
|
|
@ -137,6 +137,8 @@ void LLNetMap::setScale( F32 scale )
|
|||
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
|
||||
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
|
||||
|
||||
gSavedSettings.setF32("MiniMapScale", mScale);
|
||||
|
||||
mUpdateNow = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ public:
|
|||
{
|
||||
if (params.size() > 2)
|
||||
{
|
||||
const std::string object_name = params[2].asString();
|
||||
const std::string object_name = LLURI::unescape(params[2].asString());
|
||||
LLMute mute(avatar_id, object_name, LLMute::OBJECT);
|
||||
LLMuteList::getInstance()->add(mute);
|
||||
LLPanelBlockedList::showPanelAndSelect(mute.mID);
|
||||
|
|
|
|||
|
|
@ -2831,6 +2831,8 @@ BOOL enable_object_build(void*)
|
|||
|
||||
bool enable_object_edit()
|
||||
{
|
||||
if (!isAgentAvatarValid()) return false;
|
||||
|
||||
// *HACK: The new "prelude" Help Islands have a build sandbox area,
|
||||
// so users need the Edit and Create pie menu options when they are
|
||||
// there. Eventually this needs to be replaced with code that only
|
||||
|
|
|
|||
|
|
@ -2481,8 +2481,9 @@ This is usually a temporary failure. Please customize and save the wearable agai
|
|||
icon="alertmodal.tga"
|
||||
name="YouHaveBeenLoggedOut"
|
||||
type="alertmodal">
|
||||
Darn. You have been logged out of [SECOND_LIFE]
|
||||
[MESSAGE]
|
||||
Darn. You have been logged out of [SECOND_LIFE].
|
||||
|
||||
[MESSAGE]
|
||||
<usetemplate
|
||||
name="okcancelbuttons"
|
||||
notext="Quit"
|
||||
|
|
|
|||
|
|
@ -39,7 +39,12 @@
|
|||
enabled="true"
|
||||
label="English"
|
||||
name="English"
|
||||
value="en" />
|
||||
value="en" />
|
||||
<combo_box.item
|
||||
enabled="true"
|
||||
label="Dansk (Danish) - Beta"
|
||||
name="Danish"
|
||||
value="da" />
|
||||
<combo_box.item
|
||||
enabled="true"
|
||||
label="Deutsch (German) - Beta"
|
||||
|
|
@ -59,7 +64,12 @@
|
|||
enabled="true"
|
||||
label="Italiano (Italian) - Beta"
|
||||
name="Italian"
|
||||
value="it" />
|
||||
value="it" />
|
||||
<combo_box.item
|
||||
enabled="true"
|
||||
label="Polski (Polish) - Beta"
|
||||
name="Polish"
|
||||
value="pl" />
|
||||
<combo_box.item
|
||||
enabled="true"
|
||||
label="Português (Portuguese) - Beta"
|
||||
|
|
|
|||
Loading…
Reference in New Issue