diff options
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index f8baf46..505364f 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp | |||
@@ -2,6 +2,8 @@ | |||
2 | * @file llinventorybridge.cpp | 2 | * @file llinventorybridge.cpp |
3 | * @brief Implementation of the Inventory-Folder-View-Bridge classes. | 3 | * @brief Implementation of the Inventory-Folder-View-Bridge classes. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | ||
6 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 7 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 8 | * |
7 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
@@ -24,6 +26,7 @@ | |||
24 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
25 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
26 | * COMPLETENESS OR PERFORMANCE. | 28 | * COMPLETENESS OR PERFORMANCE. |
29 | * $/LicenseInfo$ | ||
27 | */ | 30 | */ |
28 | 31 | ||
29 | #include "llviewerprecompiledheaders.h" | 32 | #include "llviewerprecompiledheaders.h" |
@@ -109,13 +112,6 @@ void remove_inventory_category_from_avatar_step2( BOOL proceed, void* userdata); | |||
109 | void move_task_inventory_callback(S32 option, void* user_data); | 112 | void move_task_inventory_callback(S32 option, void* user_data); |
110 | void confirm_replace_attachment_rez(S32 option, void* user_data); | 113 | void confirm_replace_attachment_rez(S32 option, void* user_data); |
111 | 114 | ||
112 | // TomY XUI: translate | ||
113 | const char* FIND_HINT = "Start typing to select an item by name"; | ||
114 | const char* NAME_SEARCH_DESC = "Find items whose name contains (leave blank for all):"; | ||
115 | const char* NEW_LSL_NAME = "New Script"; | ||
116 | const char* NEW_NOTECARD_NAME = "New Note"; | ||
117 | const char* NEW_GESTURE_NAME = "New Gesture"; | ||
118 | |||
119 | const char* ICON_NAME[ICON_NAME_COUNT] = | 115 | const char* ICON_NAME[ICON_NAME_COUNT] = |
120 | { | 116 | { |
121 | "inv_item_texture.tga", | 117 | "inv_item_texture.tga", |
@@ -1788,8 +1784,14 @@ void LLFolderBridge::folderOptionsMenu() | |||
1788 | checkFolderForContentsOfType(model, is_gesture) ) | 1784 | checkFolderForContentsOfType(model, is_gesture) ) |
1789 | { | 1785 | { |
1790 | mItems.push_back("Folder Wearables Separator"); | 1786 | mItems.push_back("Folder Wearables Separator"); |
1791 | mItems.push_back("Add To Outfit"); | 1787 | |
1792 | mItems.push_back("Replace Outfit"); | 1788 | // Only enable add/replace outfit for non-default folders. |
1789 | const LLInventoryCategory* category = model->getCategory(mUUID); | ||
1790 | if (!category || (LLAssetType::AT_NONE == category->getPreferredType())) | ||
1791 | { | ||
1792 | mItems.push_back("Add To Outfit"); | ||
1793 | mItems.push_back("Replace Outfit"); | ||
1794 | } | ||
1793 | mItems.push_back("Take Off Items"); | 1795 | mItems.push_back("Take Off Items"); |
1794 | } | 1796 | } |
1795 | hideContextEntries(*mMenu, mItems, disabled_items); | 1797 | hideContextEntries(*mMenu, mItems, disabled_items); |
@@ -4252,7 +4254,6 @@ void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags) | |||
4252 | no_open = (item->getType() == LLAssetType::AT_CLOTHING) || | 4254 | no_open = (item->getType() == LLAssetType::AT_CLOTHING) || |
4253 | (item->getType() == LLAssetType::AT_BODYPART); | 4255 | (item->getType() == LLAssetType::AT_BODYPART); |
4254 | } | 4256 | } |
4255 | |||
4256 | if (!no_open) | 4257 | if (!no_open) |
4257 | { | 4258 | { |
4258 | items.push_back("Open"); | 4259 | items.push_back("Open"); |