All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

STORM-1898 Add "Copy SLURL" to context menu when right clicking Landmarks in Inventory

Review Request #591 - Created July 11, 2012 and submitted

Jonathan Yap Reviewers
3.3.3 viewer
STORM-1898
None viewer-release
SLURLs get passed around frequently in SL and on websites, etc. There should be an easier way to copy the SLURL from a Landmark in inventory.

Currently you must go through several steps to copy a SLURL from a landmark in inventory:
1)right click LM
2)Click "About Landmark"
3)Click "Map"
4)Click "Copy SLurl"

It would be much more efficient if you could just:
1)right click LM
2)click "Copy SLurl"
See test plan in jira.
indra/newview/llinventorybridge.h
Revision 4d9106153407 New Change
... 189 lines hidden [Expand]
public:
190
};
190
};
191

   
191

   
192
class LLItemBridge : public LLInvFVBridge
192
class LLItemBridge : public LLInvFVBridge
193
{
193
{
194
public:
194
public:
195
	LLItemBridge(LLInventoryPanel* inventory, 
195
	LLItemBridge(LLInventoryPanel* inventory, 
196
				 LLFolderView* root,
196
				 LLFolderView* root,
197
				 const LLUUID& uuid) :
197
				 const LLUUID& uuid) :
198
		LLInvFVBridge(inventory, root, uuid) {}
198
		LLInvFVBridge(inventory, root, uuid) {}
199

   
199

   

   
200
	typedef boost::function<void(std::string& slurl)> slurl_callback_t;

   
201

   
200
	virtual void performAction(LLInventoryModel* model, std::string action);
202
	virtual void performAction(LLInventoryModel* model, std::string action);
201
	virtual void selectItem();
203
	virtual void selectItem();
202
	virtual void restoreItem();
204
	virtual void restoreItem();
203
	virtual void restoreToWorld();
205
	virtual void restoreToWorld();
204
	virtual void gotoItem();
206
	virtual void gotoItem();
205
	virtual LLUIImagePtr getIcon() const;
207
	virtual LLUIImagePtr getIcon() const;
206
	virtual const std::string& getDisplayName() const;
208
	virtual const std::string& getDisplayName() const;
207
	virtual std::string getLabelSuffix() const;
209
	virtual std::string getLabelSuffix() const;
208
	virtual LLFontGL::StyleFlags getLabelStyle() const;
210
	virtual LLFontGL::StyleFlags getLabelStyle() const;
209
	virtual PermissionMask getPermissionMask() const;
211
	virtual PermissionMask getPermissionMask() const;
210
	virtual time_t getCreationDate() const;
212
	virtual time_t getCreationDate() const;
211
	virtual BOOL isItemRenameable() const;
213
	virtual BOOL isItemRenameable() const;
212
	virtual BOOL renameItem(const std::string& new_name);
214
	virtual BOOL renameItem(const std::string& new_name);
213
	virtual BOOL removeItem();
215
	virtual BOOL removeItem();
214
	virtual BOOL isItemCopyable() const;
216
	virtual BOOL isItemCopyable() const;
215
	virtual BOOL hasChildren() const { return FALSE; }
217
	virtual BOOL hasChildren() const { return FALSE; }
216
	virtual BOOL isUpToDate() const { return TRUE; }
218
	virtual BOOL isUpToDate() const { return TRUE; }
217

   

   
218
	/*virtual*/ void clearDisplayName() { mDisplayName.clear(); }
219
	/*virtual*/ void clearDisplayName() { mDisplayName.clear(); }
219

   
220

   
220
	LLViewerInventoryItem* getItem() const;
221
	LLViewerInventoryItem* getItem() const;
221

   
222

   
222
protected:
223
protected:
223
	BOOL confirmRemoveItem(const LLSD& notification, const LLSD& response);
224
	BOOL confirmRemoveItem(const LLSD& notification, const LLSD& response);
224
	virtual BOOL isItemPermissive() const;
225
	virtual BOOL isItemPermissive() const;
225
	static void buildDisplayName(LLInventoryItem* item, std::string& name);
226
	static void buildDisplayName(LLInventoryItem* item, std::string& name);
226

   
227

   
227
	mutable std::string mDisplayName;
228
	mutable std::string mDisplayName;
... 431 lines hidden [Expand]
indra/newview/llinventorybridge.cpp
Revision 4d9106153407 New Change
 
indra/newview/skins/default/xui/en/menu_inventory.xml
Revision 4d9106153407 New Change
 
  1. indra/newview/llinventorybridge.h: Loading...
  2. indra/newview/llinventorybridge.cpp: Loading...
  3. indra/newview/skins/default/xui/en/menu_inventory.xml: Loading...