aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2008-12-01 00:45:11 -0700
committerMcCabe Maxsted2008-12-01 00:45:11 -0700
commit54a503c06a00939c38dc72321cdbe4b78c80cf89 (patch)
tree89cc9e521a448e349029a7979a1124095ffd1a4a
parentRemove preprocessor condition for grid selector. (diff)
downloadmeta-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 '')
-rw-r--r--ChangeLog.txt17
-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, 49 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 88829c9..b381dff 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,20 @@
12008-12-01 McCabe Maxsted <hakushakukun@gmail.com>
2
3 * linden/indra/newview/app_settings/settings.xml:
4 Added "Select Only Copyable Objects" menu option.
5 * linden/indra/newview/llselectmgr.cpp:
6 Ditto
7 * linden/indra/newview/llviewermenu.cpp:
8 Ditto
9 * linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml:
10 Ditto
11
12
13 Remove preprocessor condition for grid selector.
14 The grid selector on the login screen will always show,
15 instead of only showing when the viewer was compiled
16 as LL_RELEASE_FOR_DOWNLOAD.
17
12008-11-29 Jacek Antonelli <jacek.antonelli@gmail.com> 182008-11-29 Jacek Antonelli <jacek.antonelli@gmail.com>
2 19
3 * linden/indra/newview/llpanellogin.cpp: 20 * linden/indra/newview/llpanellogin.cpp:
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
6717class 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
6717class LLToolsSelectBySurrounding : public view_listener_t 6729class 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"