diff options
author | McCabe Maxsted | 2008-12-01 00:45:11 -0700 |
---|---|---|
committer | McCabe Maxsted | 2008-12-01 00:45:11 -0700 |
commit | 54a503c06a00939c38dc72321cdbe4b78c80cf89 (patch) | |
tree | 89cc9e521a448e349029a7979a1124095ffd1a4a /linden | |
parent | Remove preprocessor condition for grid selector. (diff) | |
download | meta-impy-54a503c06a00939c38dc72321cdbe4b78c80cf89.zip meta-impy-54a503c06a00939c38dc72321cdbe4b78c80cf89.tar.gz meta-impy-54a503c06a00939c38dc72321cdbe4b78c80cf89.tar.bz2 meta-impy-54a503c06a00939c38dc72321cdbe4b78c80cf89.tar.xz |
Added 'Select Only Copyable' option in the Tools menu
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 13 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 6 |
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 1d2da46..953d588 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -6676,6 +6676,17 @@ | |||
6676 | <key>Value</key> | 6676 | <key>Value</key> |
6677 | <integer>0</integer> | 6677 | <integer>0</integer> |
6678 | </map> | 6678 | </map> |
6679 | <key>SelectCopyableOnly</key> | ||
6680 | <map> | ||
6681 | <key>Comment</key> | ||
6682 | <string>Select only objects you can copy</string> | ||
6683 | <key>Persist</key> | ||
6684 | <integer>1</integer> | ||
6685 | <key>Type</key> | ||
6686 | <string>Boolean</string> | ||
6687 | <key>Value</key> | ||
6688 | <integer>0</integer> | ||
6689 | </map> | ||
6679 | <key>SelectOwnedOnly</key> | 6690 | <key>SelectOwnedOnly</key> |
6680 | <map> | 6691 | <map> |
6681 | <key>Comment</key> | 6692 | <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 5e67712..c794b6a 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -6714,6 +6714,18 @@ class LLToolsSelectOnlyMovableObjects : public view_listener_t | |||
6714 | } | 6714 | } |
6715 | }; | 6715 | }; |
6716 | 6716 | ||
6717 | class LLToolsSelectOnlyCopyableObjects : public view_listener_t | ||
6718 | { | ||
6719 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
6720 | { | ||
6721 | BOOL cur_val = gSavedSettings.getBOOL("SelectCopyableOnly"); | ||
6722 | |||
6723 | gSavedSettings.setBOOL("SelectCopyableOnly", ! cur_val ); | ||
6724 | |||
6725 | return true; | ||
6726 | } | ||
6727 | }; | ||
6728 | |||
6717 | class LLToolsSelectBySurrounding : public view_listener_t | 6729 | class LLToolsSelectBySurrounding : public view_listener_t |
6718 | { | 6730 | { |
6719 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6731 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
@@ -9829,6 +9841,7 @@ void initialize_menus() | |||
9829 | addMenu(new LLToolsSelectTool(), "Tools.SelectTool"); | 9841 | addMenu(new LLToolsSelectTool(), "Tools.SelectTool"); |
9830 | addMenu(new LLToolsSelectOnlyMyObjects(), "Tools.SelectOnlyMyObjects"); | 9842 | addMenu(new LLToolsSelectOnlyMyObjects(), "Tools.SelectOnlyMyObjects"); |
9831 | addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects"); | 9843 | addMenu(new LLToolsSelectOnlyMovableObjects(), "Tools.SelectOnlyMovableObjects"); |
9844 | addMenu(new LLToolsSelectOnlyCopyableObjects(), "Tools.SelectOnlyCopyableObjects"); | ||
9832 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); | 9845 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); |
9833 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); | 9846 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); |
9834 | addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); | 9847 | 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 71044a0..aeef31a 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 | |||
@@ -608,6 +608,12 @@ | |||
608 | userdata="movable" /> | 608 | userdata="movable" /> |
609 | <on_check control="SelectMovableOnly" /> | 609 | <on_check control="SelectMovableOnly" /> |
610 | </menu_item_check> | 610 | </menu_item_check> |
611 | <menu_item_check name="Select Only Copyable Objects" | ||
612 | label="Select Only Copyable Objects"> | ||
613 | <on_click function="Tools.SelectOnlyCopyableObjects" | ||
614 | userdata="copyable" /> | ||
615 | <on_check control="SelectCopyableOnly" /> | ||
616 | </menu_item_check> | ||
611 | <menu_item_check name="Select By Surrounding" | 617 | <menu_item_check name="Select By Surrounding" |
612 | label="Select By Surrounding"> | 618 | label="Select By Surrounding"> |
613 | <on_click function="Tools.SelectBySurrounding" | 619 | <on_click function="Tools.SelectBySurrounding" |