diff options
author | Jacek Antonelli | 2008-12-15 19:33:01 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-15 19:33:01 -0600 |
commit | d943ba735ce9b2778c04942bb01df3c40b2ae2f7 (patch) | |
tree | e6f0ff9b019b57e1f46f49d3a6dce85d1cc23313 /linden/indra/newview/llviewermenu.cpp | |
parent | VWR-10823: Right click > Inspect crashes viewer. (diff) | |
parent | Added 'Select Only Copyable' option in the Tools menu (diff) | |
download | meta-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/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 | ||
6721 | class 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 | |||
6721 | class LLToolsSelectBySurrounding : public view_listener_t | 6733 | class 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"); |