summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationlistitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llnotificationlistitem.h')
-rw-r--r--indra/newview/llnotificationlistitem.h52
1 files changed, 29 insertions, 23 deletions
diff --git a/indra/newview/llnotificationlistitem.h b/indra/newview/llnotificationlistitem.h
index bd76d17fe8..f8d9fc0330 100644
--- a/indra/newview/llnotificationlistitem.h
+++ b/indra/newview/llnotificationlistitem.h
@@ -30,6 +30,7 @@
#include "llpanel.h"
#include "lllayoutstack.h"
#include "lltextbox.h"
+#include "llviewertexteditor.h"
#include "llbutton.h"
#include "llgroupiconctrl.h"
#include "llavatariconctrl.h"
@@ -95,24 +96,25 @@ protected:
void onClickExpandBtn();
void onClickCondenseBtn();
void onClickCloseBtn();
-
- Params mParams;
- LLTextBox* mTitleBox;
- LLTextBox* mTitleBoxExp;
- LLTextBox* mNoticeTextExp;
- LLTextBox* mTimeBox;
- LLTextBox* mTimeBoxExp;
- LLButton* mExpandBtn;
- LLButton* mCondenseBtn;
- LLButton* mCloseBtn;
- LLButton* mCloseBtnExp;
- LLPanel* mCondensedViewPanel;
- LLPanel* mExpandedViewPanel;
- std::string mTitle;
- std::string mNotificationName;
- S32 mCondensedHeight;
- S32 mExpandedHeight;
- S32 mExpandedHeightResize;
+ virtual void close() {};
+
+ Params mParams;
+ LLTextBox* mTitleBox;
+ LLTextBox* mTitleBoxExp;
+ LLViewerTextEditor* mNoticeTextExp;
+ LLTextBox* mTimeBox;
+ LLTextBox* mTimeBoxExp;
+ LLButton* mExpandBtn;
+ LLButton* mCondenseBtn;
+ LLButton* mCloseBtn;
+ LLButton* mCloseBtnExp;
+ LLPanel* mCondensedViewPanel;
+ LLPanel* mExpandedViewPanel;
+ std::string mTitle;
+ std::string mNotificationName;
+ S32 mCondensedHeight;
+ S32 mExpandedHeight;
+ S32 mExpandedHeightResize;
};
class LLGroupNotificationListItem
@@ -174,12 +176,16 @@ private:
LLGroupNoticeNotificationListItem & operator=(LLGroupNoticeNotificationListItem &);
void setSender(std::string sender);
+ void onClickAttachment();
+ /*virtual*/ void close();
+
+ static bool isAttachmentOpenable(LLAssetType::EType);
- LLPanel* mAttachmentPanel;
- LLTextBox* mAttachmentTextBox;
- LLIconCtrl* mAttachmentIcon;
- LLIconCtrl* mAttachmentIconExp;
- LLOfferInfo* mInventoryOffer;
+ LLPanel* mAttachmentPanel;
+ LLTextBox* mAttachmentTextBox;
+ LLIconCtrl* mAttachmentIcon;
+ LLIconCtrl* mAttachmentIconExp;
+ LLOfferInfo* mInventoryOffer;
};
class LLTransactionNotificationListItem : public LLNotificationListItem