diff options
author | Alexei Arabadji <aarabadji@productengine.com> | 2010-04-22 09:26:48 +0300 |
---|---|---|
committer | Alexei Arabadji <aarabadji@productengine.com> | 2010-04-22 09:26:48 +0300 |
commit | e096bdc7ed5ab61ea097019bbfe6d96a27042a56 (patch) | |
tree | 6820889779872e627c1463343b954d11b188f74d /indra/newview/lltoastpanel.cpp | |
parent | 647327d0eca0c089d94ce964a8cc837cc2888e93 (diff) |
fixed EXT-6936 Avoid using LLToastNotifyPanel class for tip toasts.
* renamed class LLOnlineStatusToast to LLPanelOnlineStatus;
* updated method LLToastPanel::buidPanelFromNotification to provide building all kinds of tip toast panels;
* updated method LLTipHandler::processNotification to avoid using LLToastNotifyPanel;
reviewed by Vadim Savchuk at
https://codereview.productengine.com/secondlife/r/286/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/lltoastpanel.cpp')
-rw-r--r-- | indra/newview/lltoastpanel.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/lltoastpanel.cpp b/indra/newview/lltoastpanel.cpp index d142a0665b..71598b3169 100644 --- a/indra/newview/lltoastpanel.cpp +++ b/indra/newview/lltoastpanel.cpp @@ -33,6 +33,7 @@ #include "llviewerprecompiledheaders.h" #include "llpanelgenerictip.h" +#include "llpanelonlinestatus.h" #include "llnotifications.h" #include "lltoastpanel.h" @@ -97,9 +98,19 @@ LLToastPanel* LLToastPanel::buidPanelFromNotification( { LLToastPanel* res = NULL; - if (notification->getName() == "SystemMessageTip") + //process tip toast panels + if ("notifytip" == notification->getType()) { - res = new LLPanelGenericTip(notification); + // if it is online/offline notification + if ("FriendOffline" == notification->getName() || "FriendOnline" == notification->getName()) + { + res = new LLPanelOnlineStatus(notification); + } + // in all other case we use generic tip panel + else + { + res = new LLPanelGenericTip(notification); + } } /* else if(...) |