aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-15 19:33:01 -0600
committerJacek Antonelli2008-12-15 19:33:01 -0600
commitd943ba735ce9b2778c04942bb01df3c40b2ae2f7 (patch)
treee6f0ff9b019b57e1f46f49d3a6dce85d1cc23313 /linden/indra/newview
parentVWR-10823: Right click > Inspect crashes viewer. (diff)
parentAdded 'Select Only Copyable' option in the Tools menu (diff)
downloadmeta-impy-d943ba735ce9b2778c04942bb01df3c40b2ae2f7.zip
meta-impy-d943ba735ce9b2778c04942bb01df3c40b2ae2f7.tar.gz
meta-impy-d943ba735ce9b2778c04942bb01df3c40b2ae2f7.tar.bz2
meta-impy-d943ba735ce9b2778c04942bb01df3c40b2ae2f7.tar.xz
Merged 'mccabe/selectcopyable' into next
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llselectmgr.cpp3
-rw-r--r--linden/indra/newview/llviewermenu.cpp13
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml6
4 files changed, 32 insertions, 1 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 209de41..ca3dd81 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -6687,6 +6687,17 @@
6687 <key>Value</key> 6687 <key>Value</key>
6688 <integer>0</integer> 6688 <integer>0</integer>
6689 </map> 6689 </map>
6690 <key>SelectCopyableOnly</key>
6691 <map>
6692 <key>Comment</key>
6693 <string>Select only objects you can copy</string>
6694 <key>Persist</key>
6695 <integer>1</integer>
6696 <key>Type</key>
6697 <string>Boolean</string>
6698 <key>Value</key>
6699 <integer>0</integer>
6700 </map>
6690 <key>SelectOwnedOnly</key> 6701 <key>SelectOwnedOnly</key>
6691 <map> 6702 <map>
6692 <key>Comment</key> 6703 <key>Comment</key>
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 2e4983c..90b1bd3 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -5745,7 +5745,8 @@ BOOL LLSelectMgr::canSelectObject(LLViewerObject* object)
5745 } 5745 }
5746 5746
5747 if ((gSavedSettings.getBOOL("SelectOwnedOnly") && !object->permYouOwner()) || 5747 if ((gSavedSettings.getBOOL("SelectOwnedOnly") && !object->permYouOwner()) ||
5748 (gSavedSettings.getBOOL("SelectMovableOnly") && !object->permMove())) 5748 (gSavedSettings.getBOOL("SelectMovableOnly") && !object->permMove()) ||
5749 (gSavedSettings.getBOOL("SelectCopyableOnly") && !object->permCopy()))
5749 { 5750 {
5750 // only select my own objects 5751 // only select my own objects
5751 return FALSE; 5752 return FALSE;
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp
index 9859710..3bf390e 100644
--- a/linden/indra/newview/llviewermenu.cpp
+++ b/linden/indra/newview/llviewermenu.cpp
@@ -6718,6 +6718,18 @@ class LLToolsSelectOnlyMovableObjects : public view_listener_t
6718 } 6718 }
6719}; 6719};
6720 6720
6721class LLToolsSelectOnlyCopyableObjects : public view_listener_t
6722{
6723 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
6724 {
6725 BOOL cur_val = gSavedSettings.getBOOL("SelectCopyableOnly");
6726
6727 gSavedSettings.setBOOL("SelectCopyableOnly", ! cur_val );
6728
6729 return true;
6730 }
6731};
6732
6721class LLToolsSelectBySurrounding : public view_listener_t 6733class LLToolsSelectBySurrounding : public view_listener_t
6722{ 6734{
6723 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) 6735 bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
@@ -9833,6 +9845,7 @@ void initialize_menus()
9833 addMenu(new LLToolsSelectTool(), "Tools.SelectTool"); 9845 addMenu(new LLToolsSelectTool(), "Tools.SelectTool");
9834 addMenu(new LLToolsSelectOnlyMyObjects(), "Tools.SelectOnlyMyObjects"); 9846 addMenu(new LLToolsSelectOnlyMyObjects(), "Tools.SelectOnlyMyObjects");
9835 addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects"); 9847 addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects");
9848 addMenu(new LLToolsSelectOnlyCopyableObjects(), "Tools.SelectOnlyCopyableObjects");
9836 addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); 9849 addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding");
9837 addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); 9850 addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection");
9838 addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); 9851 addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius");
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
index 67be436..682acb9 100644
--- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml
@@ -613,6 +613,12 @@
613 userdata="movable" /> 613 userdata="movable" />
614 <on_check control="SelectMovableOnly" /> 614 <on_check control="SelectMovableOnly" />
615 </menu_item_check> 615 </menu_item_check>
616 <menu_item_check name="Select Only Copyable Objects"
617 label="Select Only Copyable Objects">
618 <on_click function="Tools.SelectOnlyCopyableObjects"
619 userdata="copyable" />
620 <on_check control="SelectCopyableOnly" />
621 </menu_item_check>
616 <menu_item_check name="Select By Surrounding" 622 <menu_item_check name="Select By Surrounding"
617 label="Select By Surrounding"> 623 label="Select By Surrounding">
618 <on_click function="Tools.SelectBySurrounding" 624 <on_click function="Tools.SelectBySurrounding"