aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt12
-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
5 files changed, 44 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 6a71bcc..b4ce192 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -23,6 +23,18 @@
23 Backported from LL's 1.22 RC3. 23 Backported from LL's 1.22 RC3.
24 24
25 25
262008-12-01 McCabe Maxsted <hakushakukun@gmail.com>
27
28 * linden/indra/newview/app_settings/settings.xml:
29 Added "Select Only Copyable Objects" menu option.
30 * linden/indra/newview/llselectmgr.cpp:
31 Ditto
32 * linden/indra/newview/llviewermenu.cpp:
33 Ditto
34 * linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml:
35 Ditto
36
37
262008-11-24 McCabe Maxsted <hakushakukun@gmail.com> 382008-11-24 McCabe Maxsted <hakushakukun@gmail.com>
27 39
28 * linden/indra/newview/llfloatergroupinvite.cpp: 40 * linden/indra/newview/llfloatergroupinvite.cpp:
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"