diff options
author | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:59 -0500 |
commit | a408bac29378072fbf36864164149458c978cfcc (patch) | |
tree | 67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/llviewermenu.cpp | |
parent | Second Life viewer sources 1.17.0.12 (diff) | |
download | meta-impy-a408bac29378072fbf36864164149458c978cfcc.zip meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2 meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz |
Second Life viewer sources 1.17.1.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 4119573..b36b9a2 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -244,7 +244,7 @@ const LLString SAVE_INTO_TASK_INVENTORY("Save Object Back to Object Contents"); | |||
244 | 244 | ||
245 | #if LL_WINDOWS | 245 | #if LL_WINDOWS |
246 | static const char* SOUND_EXTENSIONS = ".wav"; | 246 | static const char* SOUND_EXTENSIONS = ".wav"; |
247 | static const char* IMAGE_EXTENSIONS = ".tga .bmp .jpg .jpeg"; | 247 | static const char* IMAGE_EXTENSIONS = ".tga .bmp .jpg .jpeg .png"; |
248 | static const char* ANIM_EXTENSIONS = ".bvh"; | 248 | static const char* ANIM_EXTENSIONS = ".bvh"; |
249 | #ifdef _CORY_TESTING | 249 | #ifdef _CORY_TESTING |
250 | static const char* GEOMETRY_EXTENSIONS = ".slg"; | 250 | static const char* GEOMETRY_EXTENSIONS = ".slg"; |
@@ -1259,7 +1259,7 @@ void init_debug_avatar_menu(LLMenuGL* menu) | |||
1259 | 1259 | ||
1260 | sub_menu = new LLMenuGL("Character Tests"); | 1260 | sub_menu = new LLMenuGL("Character Tests"); |
1261 | sub_menu->append(new LLMenuItemToggleGL("Go Away/AFK When Idle", | 1261 | sub_menu->append(new LLMenuItemToggleGL("Go Away/AFK When Idle", |
1262 | &gAllowAFK)); | 1262 | &gAllowIdleAFK)); |
1263 | 1263 | ||
1264 | sub_menu->append(new LLMenuItemCallGL("Appearance To XML", | 1264 | sub_menu->append(new LLMenuItemCallGL("Appearance To XML", |
1265 | &LLVOAvatar::dumpArchetypeXML)); | 1265 | &LLVOAvatar::dumpArchetypeXML)); |
@@ -4150,7 +4150,7 @@ class LLToolsBuyOrTake : public view_listener_t | |||
4150 | { | 4150 | { |
4151 | S32 total_price = selection_price(); | 4151 | S32 total_price = selection_price(); |
4152 | 4152 | ||
4153 | if (total_price <= gStatusBar->getBalance()) | 4153 | if (total_price <= gStatusBar->getBalance() || total_price == 0) |
4154 | { | 4154 | { |
4155 | handle_buy(NULL); | 4155 | handle_buy(NULL); |
4156 | } | 4156 | } |
@@ -4442,7 +4442,7 @@ class LLToolsEnableLink : public view_listener_t | |||
4442 | // user can modify at least one of the selected objects. | 4442 | // user can modify at least one of the selected objects. |
4443 | 4443 | ||
4444 | // in component mode, can't link | 4444 | // in component mode, can't link |
4445 | if (gSavedSettings.getBOOL("SelectLinkedSet")) | 4445 | if (!gSavedSettings.getBOOL("EditLinkedParts")) |
4446 | { | 4446 | { |
4447 | if(gSelectMgr->selectGetAllRootsValid() && gSelectMgr->getSelection()->getRootObjectCount() >= 2) | 4447 | if(gSelectMgr->selectGetAllRootsValid() && gSelectMgr->getSelection()->getRootObjectCount() >= 2) |
4448 | { | 4448 | { |
@@ -4842,6 +4842,12 @@ void show_debug_menus() | |||
4842 | if ( gMenuBarView ) | 4842 | if ( gMenuBarView ) |
4843 | { | 4843 | { |
4844 | BOOL debug = gSavedSettings.getBOOL("UseDebugMenus"); | 4844 | BOOL debug = gSavedSettings.getBOOL("UseDebugMenus"); |
4845 | |||
4846 | if(debug) | ||
4847 | { | ||
4848 | LLFirstUse::useDebugMenus(); | ||
4849 | } | ||
4850 | |||
4845 | gMenuBarView->setItemVisible(CLIENT_MENU_NAME, debug); | 4851 | gMenuBarView->setItemVisible(CLIENT_MENU_NAME, debug); |
4846 | gMenuBarView->setItemEnabled(CLIENT_MENU_NAME, debug); | 4852 | gMenuBarView->setItemEnabled(CLIENT_MENU_NAME, debug); |
4847 | gMenuBarView->setItemVisible(SERVER_MENU_NAME, debug); | 4853 | gMenuBarView->setItemVisible(SERVER_MENU_NAME, debug); |
@@ -6927,6 +6933,23 @@ class LLToolsShowSelectionLightRadius : public view_listener_t | |||
6927 | } | 6933 | } |
6928 | }; | 6934 | }; |
6929 | 6935 | ||
6936 | class LLToolsEditLinkedParts : public view_listener_t | ||
6937 | { | ||
6938 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | ||
6939 | { | ||
6940 | BOOL select_individuals = gSavedSettings.getBOOL("EditLinkedParts"); | ||
6941 | if (select_individuals) | ||
6942 | { | ||
6943 | gSelectMgr->demoteSelectionToIndividuals(); | ||
6944 | } | ||
6945 | else | ||
6946 | { | ||
6947 | gSelectMgr->promoteSelectionToRoot(); | ||
6948 | } | ||
6949 | return true; | ||
6950 | } | ||
6951 | }; | ||
6952 | |||
6930 | void reload_personal_settings_overrides(void *) | 6953 | void reload_personal_settings_overrides(void *) |
6931 | { | 6954 | { |
6932 | llinfos << "Loading overrides from " << gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT,"overrides.xml") << llendl; | 6955 | llinfos << "Loading overrides from " << gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT,"overrides.xml") << llendl; |
@@ -7620,6 +7643,7 @@ void initialize_menus() | |||
7620 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); | 7643 | addMenu(new LLToolsSelectBySurrounding(), "Tools.SelectBySurrounding"); |
7621 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); | 7644 | addMenu(new LLToolsShowHiddenSelection(), "Tools.ShowHiddenSelection"); |
7622 | addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); | 7645 | addMenu(new LLToolsShowSelectionLightRadius(), "Tools.ShowSelectionLightRadius"); |
7646 | addMenu(new LLToolsEditLinkedParts(), "Tools.EditLinkedParts"); | ||
7623 | addMenu(new LLToolsSnapObjectXY(), "Tools.SnapObjectXY"); | 7647 | addMenu(new LLToolsSnapObjectXY(), "Tools.SnapObjectXY"); |
7624 | addMenu(new LLToolsUseSelectionForGrid(), "Tools.UseSelectionForGrid"); | 7648 | addMenu(new LLToolsUseSelectionForGrid(), "Tools.UseSelectionForGrid"); |
7625 | addMenu(new LLToolsLink(), "Tools.Link"); | 7649 | addMenu(new LLToolsLink(), "Tools.Link"); |