From 2f80012ccd028c3807720420c29e7f4597f9e821 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Sun, 3 Nov 2013 20:51:48 -0500 Subject: [PATCH 01/11] Feature Request: If EditLinkedParts is on, Copy Key should copy keys of any selected prim(s) --- indra/newview/llpanelpermissions.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/indra/newview/llpanelpermissions.cpp b/indra/newview/llpanelpermissions.cpp index 42facc56c..f9ad87f55 100644 --- a/indra/newview/llpanelpermissions.cpp +++ b/indra/newview/llpanelpermissions.cpp @@ -1118,16 +1118,17 @@ void LLPanelPermissions::onClickDeedToGroup(void* data) LLNotificationsUtil::add( "DeedObjectToGroup", LLSD(), LLSD(), callback_deed_to_group); } -void LLPanelPermissions::onClickCopyObjKey() +template +std::string gather_keys(iterator iter, iterator end) { //NAMESHORT - Was requested on the forums, was going to integrate a textbox with the ID, but due to lack of room on the floater, //We now have a copy button :> //Madgeek - Hacked together method to copy more than one key, separated by comma. //At some point the separator was changed to read from the xml settings - I'll probably try to make this openly changable from settings. -HgB + //Lirusaito - Tweaked to copy selected prim(s) when EditLinkedParts, main functionality moved into gather_keys std::string output; std::string separator = gSavedSettings.getString("AscentDataSeparator"); - for (LLObjectSelection::root_iterator iter = LLSelectMgr::getInstance()->getSelection()->root_begin(); - iter != LLSelectMgr::getInstance()->getSelection()->root_end(); iter++) + for (; iter != end; ++iter) { LLSelectNode* selectNode = *iter; LLViewerObject* object = selectNode->getObject(); @@ -1137,6 +1138,14 @@ void LLPanelPermissions::onClickCopyObjKey() output.append(object->getID().asString()); } } + return output; +} + +void LLPanelPermissions::onClickCopyObjKey() +{ + bool parts(gSavedSettings.getBOOL("EditLinkedParts")); + LLObjectSelectionHandle selection(LLSelectMgr::getInstance()->getSelection()); + std::string output = parts ? gather_keys(selection->begin(), selection->end()) : gather_keys(selection->root_begin(), selection->root_end()); if (!output.empty()) gViewerWindow->getWindow()->copyTextToClipboard(utf8str_to_wstring(output)); } From ec55c53b62b3755a38a9f3e4db81ba923bbb7d12 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 4 Nov 2013 17:10:42 -0500 Subject: [PATCH 02/11] French menu gets Motion Resets Camera courtesy of Nomade (more translation on the way) --- indra/newview/skins/default/xui/fr/menu_viewer.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/skins/default/xui/fr/menu_viewer.xml b/indra/newview/skins/default/xui/fr/menu_viewer.xml index ab449a3d3..6d4bd005a 100644 --- a/indra/newview/skins/default/xui/fr/menu_viewer.xml +++ b/indra/newview/skins/default/xui/fr/menu_viewer.xml @@ -72,6 +72,7 @@ + From 7129d97ee54015099fa4a231ad7f01ee166eb6f1 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 4 Nov 2013 17:49:29 -0500 Subject: [PATCH 03/11] panel_tools_texture.xml splits off from floater_tools.xml (No real changes here, but this change will make life so nice for me) --- .../skins/default/xui/en-us/floater_tools.xml | 298 +----------------- .../default/xui/en-us/panel_tools_texture.xml | 292 +++++++++++++++++ 2 files changed, 297 insertions(+), 293 deletions(-) create mode 100644 indra/newview/skins/default/xui/en-us/panel_tools_texture.xml diff --git a/indra/newview/skins/default/xui/en-us/floater_tools.xml b/indra/newview/skins/default/xui/en-us/floater_tools.xml index 73d03d0cb..9568791e7 100644 --- a/indra/newview/skins/default/xui/en-us/floater_tools.xml +++ b/indra/newview/skins/default/xui/en-us/floater_tools.xml @@ -1355,299 +1355,11 @@ bottom_delta="-20" width="118" /> - - - - - - - - Transparency % - - - - Glow - - - - - Mapping - - - - Default - - - Planar - - - - Shininess - - - - None - - - Low - - - Medium - - - High - - - - Bumpiness - - - - None - - - Brightness - - - Darkness - - - woodgrain - - - bark - - - bricks - - - checker - - - concrete - - - crustytile - - - cutstone - - - discs - - - gravel - - - petridish - - - siding - - - stonetile - - - stucco - - - suction - - - weave - - - - - Repeats per Face - - - - - - - Rotation (degrees) - - - - Repeats Per Meter - - - Repeats Per Face - - - Repeats Per Meter - - - - - - - - + + + + + - - - + + + + + + + + + Glossiness + + + + Environment + + + + Color + + + + + URL of chosen media, if any, goes here + + + +