summaryrefslogtreecommitdiff
path: root/indra/newview/llsidepanelinventory.h
diff options
context:
space:
mode:
authorLeslie Linden <none@none>2011-06-06 17:00:59 -0700
committerLeslie Linden <none@none>2011-06-06 17:00:59 -0700
commit98bcd9e2efe4cc0dc5e51da09c6f18424b9d9144 (patch)
treebc60274730d7515c1088f7d4a99cb6308297474b /indra/newview/llsidepanelinventory.h
parent0c0f7558782edccda375609777967184b8440441 (diff)
EXP-859 FIX -- Save setting for last time inbox expanded
EXP-841 PROGRESS -- Create outbox sync button with basic enable/disable logic and animation EXP-866 PROGRESS -- Create inbox observer to dynamically update inbox item count and badge value EXP-872 PROGRESS -- Hide inbox and outbox unless applicable Inbox expansion time is now saved as setting variable "LastInventoryInboxExpand". New outbox sync button art. Observers for items and categories are now implemented in the LLSidepanelInventory but the exact method of use is still to be determined. Functions are in place to show and hide the inbox and outbox panels but the logic around the decision is TBD. The resize bar for the inbox/outbox is now disabled when both inbox and outbox are collapsed. Reviewed by Leyla.
Diffstat (limited to 'indra/newview/llsidepanelinventory.h')
-rw-r--r--indra/newview/llsidepanelinventory.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llsidepanelinventory.h b/indra/newview/llsidepanelinventory.h
index a4e8d0e8e8..8047e11566 100644
--- a/indra/newview/llsidepanelinventory.h
+++ b/indra/newview/llsidepanelinventory.h
@@ -30,6 +30,8 @@
#include "llpanel.h"
class LLFolderViewItem;
+class LLInboxOutboxInventoryAddedObserver;
+class LLInventoryCategoriesObserver;
class LLInventoryItem;
class LLInventoryPanel;
class LLPanelMainInventory;
@@ -59,6 +61,12 @@ public:
void onToggleInboxBtn();
void onToggleOutboxBtn();
+ void updateInboxOutboxPanels();
+ void enableInbox(bool enabled);
+ void enableOutbox(bool enabled);
+
+ virtual void draw();
+
protected:
// Tracks highlighted (selected) item in inventory panel.
LLInventoryItem *getSelectedItem();
@@ -70,6 +78,9 @@ protected:
bool canWearSelected(); // check whether selected items can be worn
+ void onInboxChanged(const LLUUID& inbox_id);
+ void onOutboxChanged(const LLUUID& outbox_id);
+
//
// UI Elements
//
@@ -88,6 +99,7 @@ protected:
void onTeleportButtonClicked();
void onOverflowButtonClicked();
void onBackButtonClicked();
+
private:
LLButton* mInfoBtn;
LLButton* mShareBtn;
@@ -97,6 +109,10 @@ private:
LLButton* mOverflowBtn;
LLButton* mShopBtn;
+ bool mInventoryFetched;
+
+ LLInventoryCategoriesObserver* mCategoriesObserver;
+ LLInboxOutboxInventoryAddedObserver* mInboxOutboxAddedObserver;
};
#endif //LL_LLSIDEPANELINVENTORY_H