diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-12 19:39:11 +0100 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-12 19:39:11 +0100 | 
| commit | 265391fb3f88a97c5af868f3712bb7b06ad630c1 (patch) | |
| tree | 39393f9a6a1a3107f1bf9bc5bb8bc68d7a9fee9f /indra | |
| parent | b54e4459df25ac00a63a6d2f094372ce74a11069 (diff) | |
| parent | 491d0f1ae4b3557f36a9c1ba7d0033fdcb7d22e5 (diff) | |
merge
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llinventorybridge.cpp | 45 | ||||
| -rw-r--r-- | indra/newview/llinventorybridge.h | 255 | ||||
| -rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 21 | ||||
| -rw-r--r-- | indra/newview/llinventoryfunctions.h | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/floater_animation_preview.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/floater_tools.xml | 8 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/menu_viewer.xml | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/panel_group_general.xml | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/it/panel_region_general.xml | 2 | 
9 files changed, 129 insertions, 212 deletions
| diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 64379f4ce7..973257b19c 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -997,46 +997,36 @@ void LLInvFVBridge::purgeItem(LLInventoryModel *model, const LLUUID &uuid)  	}  } -bool LLInvFVBridge::isInOutfitsSidePanel() const +BOOL LLInvFVBridge::isInOutfitsSidePanel() const  {  	LLInventoryPanel *my_panel = dynamic_cast<LLInventoryPanel*>(mInventoryPanel.get());  	LLPanelOutfitsInventory *outfit_panel =  		dynamic_cast<LLPanelOutfitsInventory*>(LLSideTray::getInstance()->getPanel("panel_outfits_inventory"));  	if (!outfit_panel) -		return false; +		return FALSE;  	return outfit_panel->isTabPanel(my_panel);  } -bool LLInvFVBridge::canShare() +BOOL LLInvFVBridge::canShare() const  {  	const LLInventoryModel* model = getInventoryModel(); -	if(!model) -	{ -		return false; -	} +	if (!model) return FALSE; -	LLViewerInventoryItem *item = model->getItem(mUUID); +	const LLViewerInventoryItem *item = model->getItem(mUUID);  	if (item)  	{ -		bool allowed = false; -		allowed = LLInventoryCollectFunctor::itemTransferCommonlyAllowed(item); -		if (allowed && -			!item->getPermissions().allowOperationBy(PERM_TRANSFER, gAgent.getID())) -		{ -			allowed = false; -		} -		if (allowed && -			!item->getPermissions().allowCopyBy(gAgent.getID())) -		{ -			allowed = false; -		} -		return allowed; +		if (!LLInventoryCollectFunctor::itemTransferCommonlyAllowed(item))  +			return FALSE; +		if (!item->getPermissions().allowOperationBy(PERM_TRANSFER, gAgent.getID())) +			return FALSE; +		if (!item->getPermissions().allowCopyBy(gAgent.getID())) +			return FALSE; +		return TRUE;  	} -	LLViewerInventoryCategory* cat = model->getCategory(mUUID); -  	// All categories can be given. -	return cat != NULL; +	const LLViewerInventoryCategory* cat = model->getCategory(mUUID); +	return (cat != NULL);  }  // +=================================================+ @@ -4095,12 +4085,11 @@ LLObjectBridge::LLObjectBridge(LLInventoryPanel* inventory,  							   const LLUUID& uuid,   							   LLInventoryType::EType type,   							   U32 flags) : -	LLItemBridge(inventory, root, uuid),  -	mInvType(type) +	LLItemBridge(inventory, root, uuid)  {  	mAttachPt = (flags & 0xff); // low bye of inventory flags -  	mIsMultiObject = ( flags & LLInventoryItemFlags::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS ) ?  TRUE: FALSE; +	mInvType = type;  }  LLUIImagePtr LLObjectBridge::getIcon() const @@ -4447,9 +4436,9 @@ LLWearableBridge::LLWearableBridge(LLInventoryPanel* inventory,  								   LLWearableType::EType  wearable_type) :  	LLItemBridge(inventory, root, uuid),  	mAssetType( asset_type ), -	mInvType(inv_type),  	mWearableType(wearable_type)  { +	mInvType = inv_type;  }  // *NOTE: hack to get from avatar inventory to avatar diff --git a/indra/newview/llinventorybridge.h b/indra/newview/llinventorybridge.h index d77062ba84..c5efefac7e 100644 --- a/indra/newview/llinventorybridge.h +++ b/indra/newview/llinventorybridge.h @@ -74,21 +74,26 @@ public:  									   U32 flags = 0x00);  	virtual ~LLInvFVBridge() {} -	virtual const LLUUID& getUUID() const { return mUUID; } +	BOOL isInOutfitsSidePanel() const; // allow context menus to be customized for side panel +	BOOL canShare() const; +	//-------------------------------------------------------------------- +	// LLInvFVBridge functionality +	//-------------------------------------------------------------------- +	virtual const LLUUID& getUUID() const { return mUUID; } +	virtual void clearDisplayName() {}  	virtual void restoreItem() {}  	virtual void restoreToWorld() {} -	// LLFolderViewEventListener functions +	//-------------------------------------------------------------------- +	// Inherited LLFolderViewEventListener functions +	//--------------------------------------------------------------------  	virtual const std::string& getName() const;  	virtual const std::string& getDisplayName() const;  	virtual PermissionMask getPermissionMask() const;  	virtual LLFolderType::EType getPreferredType() const;  	virtual time_t getCreationDate() const; -	virtual LLFontGL::StyleFlags getLabelStyle() const -	{ -		return LLFontGL::NORMAL; -	} +	virtual LLFontGL::StyleFlags getLabelStyle() const { return LLFontGL::NORMAL; }  	virtual std::string getLabelSuffix() const { return LLStringUtil::null; }  	virtual void openItem() {}  	virtual void closeItem() {} @@ -100,7 +105,6 @@ public:  	virtual BOOL isItemMovable() const;  	virtual BOOL isItemInTrash() const;  	virtual BOOL isLink() const; -  	//virtual BOOL removeItem() = 0;  	virtual void removeBatch(LLDynamicArray<LLFolderViewEventListener*>& batch);  	virtual void move(LLFolderViewEventListener* new_parent_bridge) {} @@ -120,14 +124,6 @@ public:  							void* cargo_data) { return FALSE; }  	virtual LLInventoryType::EType getInventoryType() const { return mInvType; } -	// LLInvFVBridge functionality -	virtual void clearDisplayName() {} - -	// Allow context menus to be customized for side panel. -	bool isInOutfitsSidePanel() const; - -	bool canShare(); -  	//--------------------------------------------------------------------  	// Convenience functions for adding various common menu options.  	//-------------------------------------------------------------------- @@ -147,7 +143,7 @@ protected:  	BOOL isLinkedObjectMissing() const; // Is this a linked obj whose baseobj is not in inventory?  	BOOL isAgentInventory() const; // false if lost or in the inventory library -	BOOL isCOFFolder() const; // true if COF or descendent of. +	BOOL isCOFFolder() const; // true if COF or descendent of  	virtual BOOL isItemPermissive() const;  	static void changeItemParent(LLInventoryModel* model,  								 LLViewerInventoryItem* item, @@ -168,7 +164,7 @@ protected:  };  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -// Class LLInvFVBridge +// Class LLInvFVBridgeBuilder  //  // This class intended to build Folder View Bridge via LLInvFVBridge::createBridge.  // It can be overridden with another way of creation necessary Inventory-Folder-View-Bridge. @@ -195,7 +191,6 @@ public:  		LLInvFVBridge(inventory, root, uuid) {}  	virtual void performAction(LLInventoryModel* model, std::string action); -  	virtual void selectItem();  	virtual void restoreItem();  	virtual void restoreToWorld(); @@ -214,30 +209,32 @@ public:  	virtual BOOL hasChildren() const { return FALSE; }  	virtual BOOL isUpToDate() const { return TRUE; } -	// override for LLInvFVBridge -	virtual void clearDisplayName() { mDisplayName.clear(); } +	/*virtual*/ void clearDisplayName() { mDisplayName.clear(); }  	LLViewerInventoryItem* getItem() const; -	  	bool isAddAction(std::string action) const;  	bool isRemoveAction(std::string action) const; -  protected: +	BOOL confirmRemoveItem(const LLSD& notification, const LLSD& response);  	virtual BOOL isItemPermissive() const;  	static void buildDisplayName(LLInventoryItem* item, std::string& name); -	mutable std::string mDisplayName; -	BOOL confirmRemoveItem(const LLSD& notification, const LLSD& response); +	mutable std::string mDisplayName;  };  class LLFolderBridge : public LLInvFVBridge  { -	friend class LLInvFVBridge;  public: -	BOOL dragItemIntoFolder(LLInventoryItem* inv_item, -							BOOL drop); -	BOOL dragCategoryIntoFolder(LLInventoryCategory* inv_category, -								BOOL drop); +	LLFolderBridge(LLInventoryPanel* inventory,  +				   LLFolderView* root, +				   const LLUUID& uuid) : +		LLInvFVBridge(inventory, root, uuid), +		mCallingCards(FALSE), +		mWearables(FALSE), +		mMenu(NULL) {} +	BOOL dragItemIntoFolder(LLInventoryItem* inv_item, BOOL drop); +	BOOL dragCategoryIntoFolder(LLInventoryCategory* inv_category, BOOL drop); +  	virtual void performAction(LLInventoryModel* model, std::string action);  	virtual void openItem();  	virtual void closeItem(); @@ -278,18 +275,11 @@ public:  	LLViewerInventoryCategory* getCategory() const;  protected: -	LLFolderBridge(LLInventoryPanel* inventory,  -				   LLFolderView* root, -				   const LLUUID& uuid) : -		LLInvFVBridge(inventory, root, uuid), -		mCallingCards(FALSE), -		mWearables(FALSE), -		mMenu(NULL) {} - -	// menu callbacks +	//-------------------------------------------------------------------- +	// Menu callbacks +	//--------------------------------------------------------------------  	static void pasteClipboard(void* user_data);  	static void createNewCategory(void* user_data); -  	static void createNewShirt(void* user_data);  	static void createNewPants(void* user_data);  	static void createNewShoes(void* user_data); @@ -310,15 +300,17 @@ protected:  	void modifyOutfit(BOOL append);  	void determineFolderType(); -	/** -	 * Returns a copy of current menu items. -	 */ -	menuentry_vec_t getMenuItems() { return mItems; } +	menuentry_vec_t getMenuItems() { return mItems; } // returns a copy of current menu items + +	//-------------------------------------------------------------------- +	// Messy hacks for handling folder options +	//--------------------------------------------------------------------  public:  	static LLFolderBridge* sSelf;  	static void staticFolderOptionsMenu();  	void folderOptionsMenu(); +  private:  	BOOL			mCallingCards;  	BOOL			mWearables; @@ -329,63 +321,57 @@ private:  class LLTextureBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: -	virtual LLUIImagePtr getIcon() const; -	virtual void openItem(); -	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); -	virtual void performAction(LLInventoryModel* model, std::string action); - -protected:  	LLTextureBridge(LLInventoryPanel* inventory,   					LLFolderView* root,  					const LLUUID& uuid,   					LLInventoryType::EType type) : -		LLItemBridge(inventory, root, uuid), -		mInvType(type)  -	{} +		LLItemBridge(inventory, root, uuid) +	{ +		mInvType = type; +	} +	virtual LLUIImagePtr getIcon() const; +	virtual void openItem(); +	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); +	virtual void performAction(LLInventoryModel* model, std::string action);  	bool canSaveTexture(void); -	LLInventoryType::EType mInvType;  };  class LLSoundBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: + 	LLSoundBridge(LLInventoryPanel* inventory,  +				  LLFolderView* root, +				  const LLUUID& uuid) : +		LLItemBridge(inventory, root, uuid) {}  	virtual void openItem();  	virtual void previewItem();  	virtual void buildContextMenu(LLMenuGL& menu, U32 flags);  	static void openSoundPreview(void*); - -protected: -	LLSoundBridge(LLInventoryPanel* inventory,  -				  LLFolderView* root, -				  const LLUUID& uuid) : -		LLItemBridge(inventory, root, uuid) {}  };  class LLLandmarkBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: + 	LLLandmarkBridge(LLInventoryPanel* inventory,  +					 LLFolderView* root, +					 const LLUUID& uuid,  +					 U32 flags = 0x00);  	virtual void performAction(LLInventoryModel* model, std::string action);  	virtual void buildContextMenu(LLMenuGL& menu, U32 flags);  	virtual LLUIImagePtr getIcon() const;  	virtual void openItem(); - -protected: -	LLLandmarkBridge(LLInventoryPanel* inventory,  -					 LLFolderView* root, -					 const LLUUID& uuid,  -					 U32 flags = 0x00);  protected:  	BOOL mVisited;  };  class LLCallingCardBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: +	LLCallingCardBridge(LLInventoryPanel* inventory,  +						LLFolderView* folder, +						const LLUUID& uuid ); +	~LLCallingCardBridge();  	virtual std::string getLabelSuffix() const;  	//virtual const std::string& getDisplayName() const;  	virtual LLUIImagePtr getIcon() const; @@ -397,71 +383,57 @@ public:  							void* cargo_data);  	void refreshFolderViewItem();  protected: -	LLCallingCardBridge(LLInventoryPanel* inventory,  -						LLFolderView* folder, -						const LLUUID& uuid ); -	~LLCallingCardBridge(); -protected:  	LLCallingCardObserver* mObserver;  }; -  class LLNotecardBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: -	virtual void openItem(); -protected:  	LLNotecardBridge(LLInventoryPanel* inventory,   					 LLFolderView* root,  					 const LLUUID& uuid) :  		LLItemBridge(inventory, root, uuid) {} +	virtual void openItem();  };  class LLGestureBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: +	LLGestureBridge(LLInventoryPanel* inventory,  +					LLFolderView* root, +					const LLUUID& uuid) : +		LLItemBridge(inventory, root, uuid) {}  	// Only suffix for gesture items, not task items, because only  	// gestures in your inventory can be active.  	virtual LLFontGL::StyleFlags getLabelStyle() const;  	virtual std::string getLabelSuffix() const; -  	virtual void performAction(LLInventoryModel* model, std::string action);  	virtual void openItem();  	virtual BOOL removeItem(); -  	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); -  	static void playGesture(const LLUUID& item_id); - -protected: -	LLGestureBridge(LLInventoryPanel* inventory,  -					LLFolderView* root, -					const LLUUID& uuid) -	:	LLItemBridge(inventory, root, uuid) {}  };  class LLAnimationBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: -	virtual void performAction(LLInventoryModel* model, std::string action); -	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); - -	virtual void openItem(); - -protected:  	LLAnimationBridge(LLInventoryPanel* inventory,   					  LLFolderView* root,   					  const LLUUID& uuid) :  		LLItemBridge(inventory, root, uuid) {} +	virtual void performAction(LLInventoryModel* model, std::string action); +	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); +	virtual void openItem();  };  class LLObjectBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: +	LLObjectBridge(LLInventoryPanel* inventory,  +				   LLFolderView* root,  +				   const LLUUID& uuid,  +				   LLInventoryType::EType type,  +				   U32 flags);  	virtual LLUIImagePtr	getIcon() const;  	virtual void			performAction(LLInventoryModel* model, std::string action);  	virtual void			openItem(); @@ -469,37 +441,32 @@ public:  	virtual std::string getLabelSuffix() const;  	virtual void			buildContextMenu(LLMenuGL& menu, U32 flags);  	virtual BOOL renameItem(const std::string& new_name); -  	LLInventoryObject* getObject() const;  protected: -	LLObjectBridge(LLInventoryPanel* inventory,  -				   LLFolderView* root,  -				   const LLUUID& uuid,  -				   LLInventoryType::EType type,  -				   U32 flags); -protected: -	static LLUUID	sContextMenuItemID;  // Only valid while the context menu is open. -	LLInventoryType::EType mInvType; +	static LLUUID sContextMenuItemID;  // Only valid while the context menu is open.  	U32 mAttachPt;  	BOOL mIsMultiObject;  };  class LLLSLTextBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: -	virtual void openItem(); -protected:  	LLLSLTextBridge(LLInventoryPanel* inventory,   					LLFolderView* root,   					const LLUUID& uuid ) :  		LLItemBridge(inventory, root, uuid) {} +	virtual void openItem();  };  class LLWearableBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: +	LLWearableBridge(LLInventoryPanel* inventory,  +					 LLFolderView* root,  +					 const LLUUID& uuid,  +					 LLAssetType::EType asset_type,  +					 LLInventoryType::EType inv_type,  +					 LLWearableType::EType wearable_type);  	virtual LLUIImagePtr getIcon() const;  	virtual void	performAction(LLInventoryModel* model, std::string action);  	virtual void	openItem(); @@ -525,51 +492,38 @@ public:  	static void 	removeItemFromAvatar(LLViewerInventoryItem *item);  	static void 	removeAllClothesFromAvatar();  	void			removeFromAvatar(); - -protected: -	LLWearableBridge(LLInventoryPanel* inventory,  -					 LLFolderView* root,  -					 const LLUUID& uuid,  -					 LLAssetType::EType asset_type,  -					 LLInventoryType::EType inv_type,  -					 LLWearableType::EType wearable_type);  protected:  	LLAssetType::EType mAssetType; -	LLInventoryType::EType mInvType;  	LLWearableType::EType  mWearableType;  };  class LLLinkItemBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: -	virtual const std::string& getPrefix() { return sPrefix; } -	virtual void buildContextMenu(LLMenuGL& menu, U32 flags); -protected:  	LLLinkItemBridge(LLInventoryPanel* inventory,   					 LLFolderView* root,  					 const LLUUID& uuid) :  		LLItemBridge(inventory, root, uuid) {} +	virtual const std::string& getPrefix() { return sPrefix; } +	virtual void buildContextMenu(LLMenuGL& menu, U32 flags);  protected:  	static std::string sPrefix;  };  class LLLinkFolderBridge : public LLItemBridge  { -	friend class LLInvFVBridge;  public: +	LLLinkFolderBridge(LLInventoryPanel* inventory,  +					   LLFolderView* root, +					   const LLUUID& uuid) : +		LLItemBridge(inventory, root, uuid) {}  	virtual const std::string& getPrefix() { return sPrefix; }  	virtual LLUIImagePtr getIcon() const;  	virtual void buildContextMenu(LLMenuGL& menu, U32 flags);  	virtual void performAction(LLInventoryModel* model, std::string action);  	virtual void gotoItem();  protected: -	LLLinkFolderBridge(LLInventoryPanel* inventory,  -					   LLFolderView* root, -					   const LLUUID& uuid) : -		LLItemBridge(inventory, root, uuid) {}  	const LLUUID &getFolderID() const; -protected:  	static std::string sPrefix;  }; @@ -603,47 +557,33 @@ protected:  	LLInventoryModel* mModel;  }; +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// Recent Inventory Panel related classes +//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/************************************************************************/ -/* Recent Inventory Panel related classes                               */ -/************************************************************************/ -class LLRecentInventoryBridgeBuilder; -/** - * Overridden version of the Inventory-Folder-View-Bridge for Folders - */ +// Overridden version of the Inventory-Folder-View-Bridge for Folders  class LLRecentItemsFolderBridge : public LLFolderBridge  { -	friend class LLRecentInventoryBridgeBuilder; -  public: -	/** -	 * Creates context menu for Folders related to Recent Inventory Panel. -	 * -	 * It uses base logic and than removes from visible items "New..." menu items. -	 */ -	/*virtual*/ void buildContextMenu(LLMenuGL& menu, U32 flags); - -protected: +	// Creates context menu for Folders related to Recent Inventory Panel. +	// Uses base logic and than removes from visible items "New..." menu items.  	LLRecentItemsFolderBridge(LLInventoryType::EType type, -						 LLInventoryPanel* inventory, -						 LLFolderView* root, -						 const LLUUID& uuid) : +							  LLInventoryPanel* inventory, +							  LLFolderView* root, +							  const LLUUID& uuid) :  		LLFolderBridge(inventory, root, uuid)  	{  		mInvType = type;  	} +	/*virtual*/ void buildContextMenu(LLMenuGL& menu, U32 flags);  }; -/** - * Bridge builder to create Inventory-Folder-View-Bridge for Recent Inventory Panel - */ +// Bridge builder to create Inventory-Folder-View-Bridge for Recent Inventory Panel  class LLRecentInventoryBridgeBuilder : public LLInventoryFVBridgeBuilder  { -	/** -	 * Overrides FolderBridge for Recent Inventory Panel. -	 * -	 * It use base functionality for bridges other than FolderBridge. -	 */ +public: +	// Overrides FolderBridge for Recent Inventory Panel. +	// It use base functionality for bridges other than FolderBridge.  	virtual LLInvFVBridge* createBridge(LLAssetType::EType asset_type,  		LLAssetType::EType actual_asset_type,  		LLInventoryType::EType inv_type, @@ -651,11 +591,8 @@ class LLRecentInventoryBridgeBuilder : public LLInventoryFVBridgeBuilder  		LLFolderView* root,  		const LLUUID& uuid,  		U32 flags = 0x00) const; -  }; - -  void wear_inventory_item_on_avatar(LLInventoryItem* item);  void rez_attachment(LLViewerInventoryItem* item,  diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 35ad8b64da..f1520d34df 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -92,39 +92,30 @@ LLUUID LLInventoryState::sWearNewClothingTransactionID;  ///----------------------------------------------------------------------------  // static -bool LLInventoryCollectFunctor::itemTransferCommonlyAllowed(LLInventoryItem* item) +bool LLInventoryCollectFunctor::itemTransferCommonlyAllowed(const LLInventoryItem* item)  {  	if (!item)  		return false; -	bool allowed = false; -  	switch(item->getType())  	{  		case LLAssetType::AT_CALLINGCARD: -			// not allowed +			return false;  			break; -			  		case LLAssetType::AT_OBJECT:  			if (isAgentAvatarValid() && !gAgentAvatarp->isWearingAttachment(item->getUUID())) -			{ -				allowed = true; -			} +				return true;  			break; -			  		case LLAssetType::AT_BODYPART:  		case LLAssetType::AT_CLOTHING:  			if(!gAgentWearables.isWearingItem(item->getUUID())) -			{ -				allowed = true; -			} +				return true;  			break;  		default: -			allowed = true; +			return true;  			break;  	} -	 -	return allowed; +	return false;  }  bool LLIsType::operator()(LLInventoryCategory* cat, LLInventoryItem* item) diff --git a/indra/newview/llinventoryfunctions.h b/indra/newview/llinventoryfunctions.h index 1e2b4ff09c..02a5fc9224 100644 --- a/indra/newview/llinventoryfunctions.h +++ b/indra/newview/llinventoryfunctions.h @@ -58,7 +58,7 @@ public:  	virtual ~LLInventoryCollectFunctor(){};  	virtual bool operator()(LLInventoryCategory* cat, LLInventoryItem* item) = 0; -	static bool itemTransferCommonlyAllowed(LLInventoryItem* item); +	static bool itemTransferCommonlyAllowed(const LLInventoryItem* item);  };  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/indra/newview/skins/default/xui/it/floater_animation_preview.xml b/indra/newview/skins/default/xui/it/floater_animation_preview.xml index 5472e32544..77341cad63 100644 --- a/indra/newview/skins/default/xui/it/floater_animation_preview.xml +++ b/indra/newview/skins/default/xui/it/floater_animation_preview.xml @@ -153,7 +153,7 @@ La lunghezza massima è [MAX_LENGTH] secondi.  		<item label="Accigliato" name="Frown" value="Accigliato"/>  		<item label="Bacio" name="Kiss" value="Bacio"/>  		<item label="Risata" name="Laugh" value="Risata"/> -		<item label="Plllppt" name="Plllppt" value="Plllppt"/> +		<item label="Plllppt" name="Plllppt" value="Linguaccia"/>  		<item label="Repulsione" name="Repulsed" value="Repulsione"/>  		<item label="Triste" name="Sad" value="Triste"/>  		<item label="Scrollata di spalle" name="Shrug" value="Scrollata di spalle"/> diff --git a/indra/newview/skins/default/xui/it/floater_tools.xml b/indra/newview/skins/default/xui/it/floater_tools.xml index 1c611915dc..cd16246f0f 100644 --- a/indra/newview/skins/default/xui/it/floater_tools.xml +++ b/indra/newview/skins/default/xui/it/floater_tools.xml @@ -39,11 +39,11 @@  	<floater.string name="grid_attachment_text">  		Accessorio  	</floater.string> -	<button label="" label_selected="" name="button focus" tool_tip="Focus"/> -	<button label="" label_selected="" name="button move" tool_tip="Muoviti"/> +	<button label="" label_selected="" name="button focus" tool_tip="Ingrandisci"/> +	<button label="" label_selected="" name="button move" tool_tip="Sposta"/>  	<button label="" label_selected="" name="button edit" tool_tip="Modifica"/>  	<button label="" label_selected="" name="button create" tool_tip="Crea"/> -	<button label="" label_selected="" name="button land" tool_tip="Terra"/> +	<button label="" label_selected="" name="button land" tool_tip="Terreno"/>  	<text name="text status">  		Trascina per muovere, trascina+maiuscolo per copiare  	</text> @@ -397,7 +397,7 @@  			</text>  			<check_box label="Massima luminosità" name="checkbox fullbright"/>  			<text name="tex gen"> -				Applicazione della texture +				Applicazione  			</text>  			<combo_box name="combobox texgen">  				<combo_box.item label="Default" name="Default"/> diff --git a/indra/newview/skins/default/xui/it/menu_viewer.xml b/indra/newview/skins/default/xui/it/menu_viewer.xml index 49a1a1a746..a5923ac42b 100644 --- a/indra/newview/skins/default/xui/it/menu_viewer.xml +++ b/indra/newview/skins/default/xui/it/menu_viewer.xml @@ -64,7 +64,7 @@  			<menu_item_call label="Strumento Ingrandisci" name="Focus"/>  			<menu_item_call label="Strumento Movimento" name="Move"/>  			<menu_item_call label="Strumento Modifica" name="Edit"/> -			<menu_item_call label="Crea strumento" name="Create"/> +			<menu_item_call label="Strumento Crea" name="Create"/>  			<menu_item_call label="Strumento Terreno" name="Land"/>  		</menu>  		<menu_item_call label="Collegamento" name="Link"/> @@ -182,7 +182,7 @@  				<menu_item_call label="Strumento Ingrandisci" name="Focus"/>  				<menu_item_call label="Strumento Movimento" name="Move"/>  				<menu_item_call label="Strumento Modifica" name="Edit"/> -				<menu_item_call label="Crea strumento" name="Create"/> +				<menu_item_call label="Strumento Crea" name="Create"/>  				<menu_item_call label="Strumento Terreno" name="Land"/>  			</menu>  			<menu_item_call label="Zoom avanti" name="Zoom In"/> diff --git a/indra/newview/skins/default/xui/it/panel_group_general.xml b/indra/newview/skins/default/xui/it/panel_group_general.xml index ffcbdca6f7..49baa73811 100644 --- a/indra/newview/skins/default/xui/it/panel_group_general.xml +++ b/indra/newview/skins/default/xui/it/panel_group_general.xml @@ -46,7 +46,7 @@ Muovi il tuo mouse sopra le opzioni per maggiore aiuto.  		<check_box label="Chiunque può aderire" name="open_enrollement" tool_tip="Imposta se questo gruppo permette ai nuovi membri di aderire senza essere invitati."/>  		<check_box label="Quota di adesione" name="check_enrollment_fee" tool_tip="Imposta se richiedere una tassa d'iscrizione per aderire al gruppo"/>  		<spinner label="L$" left_delta="136" name="spin_enrollment_fee" tool_tip="I nuovi soci devono pagare questa tassa d'iscrizione quando è selezionata." width="60"/> -		<combo_box name="group_mature_check" tool_tip="Imposta se le informazioni sul tuo gruppo sono da considerarsi Mature."> +		<combo_box name="group_mature_check" tool_tip="Imposta se le informazioni sul tuo gruppo sono da considerarsi di tipo Moderato.">  			<combo_item name="select_mature">  				- Seleziona categoria di accesso -  			</combo_item> diff --git a/indra/newview/skins/default/xui/it/panel_region_general.xml b/indra/newview/skins/default/xui/it/panel_region_general.xml index a30fadcaa6..6ca5dd878e 100644 --- a/indra/newview/skins/default/xui/it/panel_region_general.xml +++ b/indra/newview/skins/default/xui/it/panel_region_general.xml @@ -30,7 +30,7 @@  	<text label="Maturità" name="access_text" width="120">  		Categoria di accesso:  	</text> -	<icons_combo_box label="Mature" left="126" name="access_combo" width="74"> +	<icons_combo_box label="Moderato" left="126" name="access_combo" width="74">  		<icons_combo_box.item label="Adulti" name="Adult" value="42"/>  		<icons_combo_box.item label="Moderato" name="Mature" value="21"/>  		<icons_combo_box.item label="Generale" name="PG" value="13"/> | 
