MAINT-5394 [Project Notice] The PERMISSION_DEBIT notification is not distinct enough on the Project Notice viewer.

meow-7.2.2
pavelkproductengine 2015-07-31 17:49:45 +03:00
parent f0f95036a4
commit 5665c5320c
3 changed files with 23 additions and 2 deletions

View File

@ -396,6 +396,7 @@ void LLFloaterNotificationsTabbed::onStoreToast(LLPanel* info_panel, LLUUID id)
p.paid_from_id = payload["from_id"];
p.paid_to_id = payload["dest_id"];
p.inventory_offer = payload["inventory_offer"];
p.notification_priority = notify->getPriority();
addItem(p);
}
@ -403,7 +404,10 @@ void LLFloaterNotificationsTabbed::onStoreToast(LLPanel* info_panel, LLUUID id)
void LLFloaterNotificationsTabbed::onItemClick(LLNotificationListItem* item)
{
LLUUID id = item->getID();
//LLFloaterReg::showInstance("inspect_toast", id);
if (item->showPopup())
{
LLFloaterReg::showInstance("inspect_toast", id);
}
}
//---------------------------------------------------------------------------------

View File

@ -566,9 +566,19 @@ BOOL LLTransactionNotificationListItem::postBuild()
LLSystemNotificationListItem::LLSystemNotificationListItem(const Params& p)
: LLNotificationListItem(p),
mSystemNotificationIcon(NULL)
mSystemNotificationIcon(NULL),
mIsCaution(false)
{
buildFromFile("panel_notification_list_item.xml");
mIsCaution = p.notification_priority >= NOTIFICATION_PRIORITY_HIGH;
if (mIsCaution)
{
mTitleBox->setColor(LLUIColorTable::instance().getColor("NotifyCautionBoxColor"));
mTitleBoxExp->setColor(LLUIColorTable::instance().getColor("NotifyCautionBoxColor"));
mNoticeTextExp->setReadOnlyColor(LLUIColorTable::instance().getColor("NotifyCautionBoxColor"));
mTimeBox->setColor(LLUIColorTable::instance().getColor("NotifyCautionBoxColor"));
mTimeBoxExp->setColor(LLUIColorTable::instance().getColor("NotifyCautionBoxColor"));
}
}
BOOL LLSystemNotificationListItem::postBuild()

View File

@ -59,6 +59,7 @@ public:
LLDate time_stamp;
LLDate received_time;
LLSD inventory_offer;
e_notification_priority notification_priority;
Params() {};
};
@ -87,6 +88,7 @@ public:
boost::signals2::connection setOnItemCloseCallback(item_callback_t cb) { return mOnItemClose.connect(cb); }
boost::signals2::connection setOnItemClickCallback(item_callback_t cb) { return mOnItemClick.connect(cb); }
virtual bool showPopup() { return true; }
void setExpanded(BOOL value);
virtual BOOL postBuild();
@ -162,6 +164,8 @@ public:
static std::set<std::string> getTypes();
virtual BOOL postBuild();
/*virtual*/ bool showPopup() { return false; }
private:
friend class LLNotificationListItem;
LLGroupInviteNotificationListItem(const Params& p);
@ -188,6 +192,8 @@ public:
static std::set<std::string> getTypes();
virtual BOOL postBuild();
/*virtual*/ bool showPopup() { return false; }
private:
friend class LLNotificationListItem;
LLGroupNoticeNotificationListItem(const Params& p);
@ -232,6 +238,7 @@ private:
LLSystemNotificationListItem & operator=(LLSystemNotificationListItem &);
LLIconCtrl* mSystemNotificationIcon;
LLIconCtrl* mSystemNotificationIconExp;
bool mIsCaution;
};
#endif // LL_LLNOTIFICATIONLISTITEM_H