aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelgroupnotices.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelgroupnotices.cpp28
1 files changed, 8 insertions, 20 deletions
diff --git a/linden/indra/newview/llpanelgroupnotices.cpp b/linden/indra/newview/llpanelgroupnotices.cpp
index 30709af..846a4c1 100644
--- a/linden/indra/newview/llpanelgroupnotices.cpp
+++ b/linden/indra/newview/llpanelgroupnotices.cpp
@@ -76,8 +76,6 @@ public:
76 76
77 // 77 //
78 // LLView functionality 78 // LLView functionality
79 virtual EWidgetType getWidgetType() const;
80 virtual LLString getWidgetTag() const;
81 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, 79 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop,
82 EDragAndDropType cargo_type, 80 EDragAndDropType cargo_type,
83 void* cargo_data, 81 void* cargo_data,
@@ -96,16 +94,6 @@ LLGroupDropTarget::LLGroupDropTarget(const std::string& name, const LLRect& rect
96{ 94{
97} 95}
98 96
99EWidgetType LLGroupDropTarget::getWidgetType() const
100{
101 return WIDGET_TYPE_DONTCARE;
102}
103
104LLString LLGroupDropTarget::getWidgetTag() const
105{
106 return LL_GROUP_DROP_TARGET_TAG;
107}
108
109void LLGroupDropTarget::doDrop(EDragAndDropType cargo_type, void* cargo_data) 97void LLGroupDropTarget::doDrop(EDragAndDropType cargo_type, void* cargo_data)
110{ 98{
111 llinfos << "LLGroupDropTarget::doDrop()" << llendl; 99 llinfos << "LLGroupDropTarget::doDrop()" << llendl;
@@ -328,12 +316,12 @@ void LLPanelGroupNotices::setItem(LLPointer<LLInventoryItem> inv_item)
328 item_is_multi = TRUE; 316 item_is_multi = TRUE;
329 }; 317 };
330 318
331 LLViewerImage* item_icon = get_item_icon(inv_item->getType(), 319 LLString icon_name = get_item_icon_name(inv_item->getType(),
332 inv_item->getInventoryType(), 320 inv_item->getInventoryType(),
333 inv_item->getFlags(), 321 inv_item->getFlags(),
334 item_is_multi ); 322 item_is_multi );
335 323
336 mCreateInventoryIcon->setImage(item_icon->getID()); 324 mCreateInventoryIcon->setImage(icon_name);
337 mCreateInventoryIcon->setVisible(TRUE); 325 mCreateInventoryIcon->setVisible(TRUE);
338 326
339 std::stringstream ss; 327 std::stringstream ss;
@@ -486,11 +474,11 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg)
486 row["columns"][0]["column"] = "icon"; 474 row["columns"][0]["column"] = "icon";
487 if (has_attachment) 475 if (has_attachment)
488 { 476 {
489 LLUUID icon_id = get_item_icon_uuid( 477 LLString icon_name = get_item_icon_name(
490 (LLAssetType::EType)asset_type, 478 (LLAssetType::EType)asset_type,
491 LLInventoryType::IT_NONE,FALSE, FALSE); 479 LLInventoryType::IT_NONE,FALSE, FALSE);
492 row["columns"][0]["type"] = "icon"; 480 row["columns"][0]["type"] = "icon";
493 row["columns"][0]["value"] = icon_id; 481 row["columns"][0]["value"] = icon_name;
494 } 482 }
495 483
496 row["columns"][1]["column"] = "subject"; 484 row["columns"][1]["column"] = "subject";
@@ -556,11 +544,11 @@ void LLPanelGroupNotices::showNotice(const char* subject,
556 { 544 {
557 mInventoryOffer = inventory_offer; 545 mInventoryOffer = inventory_offer;
558 546
559 LLViewerImage* item_icon = get_item_icon(mInventoryOffer->mType, 547 LLString icon_name = get_item_icon_name(mInventoryOffer->mType,
560 LLInventoryType::IT_TEXTURE, 548 LLInventoryType::IT_TEXTURE,
561 0, FALSE); 549 0, FALSE);
562 550
563 mViewInventoryIcon->setImage(item_icon->getID()); 551 mViewInventoryIcon->setImage(icon_name);
564 mViewInventoryIcon->setVisible(TRUE); 552 mViewInventoryIcon->setVisible(TRUE);
565 553
566 std::stringstream ss; 554 std::stringstream ss;