summaryrefslogtreecommitdiff
path: root/indra/newview/lltoastpanel.h
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-04-12 17:09:50 +0300
committerAlexei Arabadji <aarabadji@productengine.com>2010-04-12 17:09:50 +0300
commit73d07c93255a24f0ea23453f8ed180ce1d63a78a (patch)
tree0e106934d5f5adedaaf8aa84a3d5fd713faaee80 /indra/newview/lltoastpanel.h
parent7e76f26407c6760464b5928b7c6cb8c800a5883f (diff)
fixed major EXT-6593 "New notifications arrived while you were away" is bold
and doesn't fit on toast * Unbolded startup toast message text; * Avoided increasing complexity of LLToastNotifyPanel class that in future should be decoupled on separate independent toast panel implementations and added LLPanelGenericTip class to represent generic notifytip panels. reviewed by Vadim Savchuk and Mike Antipov at https://codereview.productengine.com/secondlife/r/214/ --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/lltoastpanel.h')
-rw-r--r--indra/newview/lltoastpanel.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/lltoastpanel.h b/indra/newview/lltoastpanel.h
index f1dd7d7a86..54243e52fa 100644
--- a/indra/newview/lltoastpanel.h
+++ b/indra/newview/lltoastpanel.h
@@ -53,13 +53,21 @@ public:
*/
class LLToastPanel: public LLPanel {
public:
- LLToastPanel(LLNotificationPtr&);
+ LLToastPanel(const LLNotificationPtr&);
virtual ~LLToastPanel() = 0;
virtual std::string getTitle();
virtual const LLUUID& getID();
static const S32 MIN_PANEL_HEIGHT;
+
+ /**
+ * Builder method for constructing notification specific panels.
+ * Normally type of created panels shouldn't be publicated and should be hidden
+ * from other functionality.
+ */
+ static LLToastPanel* buidPanelFromNotification(
+ const LLNotificationPtr& notification);
protected:
LLNotificationPtr mNotification;
void snapToMessageHeight(LLTextBase* message, S32 maxLineCount);