summaryrefslogtreecommitdiff
path: root/indra/newview/llavataractions.h
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2010-09-28 22:14:22 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2010-09-28 22:14:22 +0300
commitb0cadec6fbd3c8d0ca21d5804061d2ce366b52dc (patch)
treeffcc103ffa227e52134ce414fdfb0766db2b2626 /indra/newview/llavataractions.h
parentdf290ee4d45481144e7cc7675d11575b0eea2c78 (diff)
STORM-248 FIXED The 'Share' button in My Inventory now respects multiple selection.
- The button is now enabled only if all selected items are shareable. (it had checked only one currently selected item) - Eliminated some copy&paste.
Diffstat (limited to 'indra/newview/llavataractions.h')
-rw-r--r--indra/newview/llavataractions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.h b/indra/newview/llavataractions.h
index 6313ae0759..44bd3778da 100644
--- a/indra/newview/llavataractions.h
+++ b/indra/newview/llavataractions.h
@@ -34,6 +34,8 @@
#include <string>
#include <vector>
+class LLInventoryPanel;
+
/**
* Friend-related actions (add, remove, offer teleport, etc)
*/
@@ -183,6 +185,15 @@ public:
*/
static bool canOfferTeleport(const uuid_vec_t& ids);
+ /**
+ * Checks whether all items selected in the given inventory panel can be shared
+ *
+ * @param inv_panel Inventory panel to get selection from. If NULL, the active inventory panel is used.
+ *
+ * @return false if the selected items cannot be shared or the active inventory panel cannot be obtained
+ */
+ static bool canShareSelectedItems(LLInventoryPanel* inv_panel = NULL);
+
private:
static bool callbackAddFriend(const LLSD& notification, const LLSD& response);
static bool callbackAddFriendWithMessage(const LLSD& notification, const LLSD& response);