diff options
author | Debi King (Dessie) <dessie@lindenlab.com> | 2011-11-08 19:45:54 -0500 |
---|---|---|
committer | Debi King (Dessie) <dessie@lindenlab.com> | 2011-11-08 19:45:54 -0500 |
commit | 6bce3d1b9d05dce77db50f3d2c92a70ad6ac8166 (patch) | |
tree | 4e46356e118106d0a7097affb40f954feedd578b /indra/newview/llpanelmarketplaceinboxinventory.h | |
parent | 860777473acef16dcff16cd5587038409967e44c (diff) | |
parent | 5fa125ea0b733b3729208d90777d260db5e331e8 (diff) |
reconciled .hgtags
Diffstat (limited to 'indra/newview/llpanelmarketplaceinboxinventory.h')
-rw-r--r-- | indra/newview/llpanelmarketplaceinboxinventory.h | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/indra/newview/llpanelmarketplaceinboxinventory.h b/indra/newview/llpanelmarketplaceinboxinventory.h index 46eeb9ea7f..d6b827ee3e 100644 --- a/indra/newview/llpanelmarketplaceinboxinventory.h +++ b/indra/newview/llpanelmarketplaceinboxinventory.h @@ -69,16 +69,15 @@ public: }; LLInboxFolderViewFolder(const Params& p); - ~LLInboxFolderViewFolder(); - + void draw(); - void computeFreshness(); - void deFreshify(); - void selectItem(); void toggleOpen(); + void computeFreshness(); + void deFreshify(); + bool isFresh() const { return mFresh; } protected: @@ -88,15 +87,35 @@ protected: }; -class LLInboxFolderViewItem : public LLFolderViewItem +class LLInboxFolderViewItem : public LLFolderViewItem, public LLBadgeOwner { public: - LLInboxFolderViewItem(const Params& p) - : LLFolderViewItem(p) + struct Params : public LLInitParam::Block<Params, LLFolderViewItem::Params> { - } + Optional<LLBadge::Params> new_badge; + + Params() + : new_badge("new_badge") + { + } + }; + LLInboxFolderViewItem(const Params& p); + + BOOL addToFolder(LLFolderViewFolder* folder, LLFolderView* root); BOOL handleDoubleClick(S32 x, S32 y, MASK mask); + + void draw(); + + void selectItem(); + + void computeFreshness(); + void deFreshify(); + + bool isFresh() const { return mFresh; } + +protected: + bool mFresh; }; #endif //LL_INBOXINVENTORYPANEL_H |