summaryrefslogtreecommitdiff
path: root/indra/newview/llsidetray.h
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2010-12-28 13:15:07 -0800
committerMerov Linden <merov@lindenlab.com>2010-12-28 13:15:07 -0800
commitcc11129afb3e79b7034059e6a09ec698584befa6 (patch)
tree972b738dd42d8c3139d19fef8eb971fa0b48398f /indra/newview/llsidetray.h
parent76e70a0da6f8f1db50de6a26fb6845a3b561adea (diff)
parentf644ef0fb00aa622cb132553bc33d38f8b454ecd (diff)
STORM-682 : pull into viewer-development
Diffstat (limited to 'indra/newview/llsidetray.h')
-rw-r--r--indra/newview/llsidetray.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llsidetray.h b/indra/newview/llsidetray.h
index 3c572dde95..184d78845f 100644
--- a/indra/newview/llsidetray.h
+++ b/indra/newview/llsidetray.h
@@ -165,9 +165,18 @@ public:
void reshape (S32 width, S32 height, BOOL called_from_parent = TRUE);
- void updateSidetrayVisibility();
+ /**
+ * @return side tray width if it's visible and expanded, 0 otherwise.
+ *
+ * Not that width of the tab buttons is not included.
+ *
+ * @see setVisibleWidthChangeCallback()
+ */
+ S32 getVisibleWidth();
+
+ void setVisibleWidthChangeCallback(const commit_signal_t::slot_type& cb);
- commit_signal_t& getCollapseSignal() { return mCollapseSignal; }
+ void updateSidetrayVisibility();
void handleLoginComplete();
@@ -216,7 +225,7 @@ private:
tab_order_vector_t mOriginalTabOrder;
LLSideTrayTab* mActiveTab;
- commit_signal_t mCollapseSignal;
+ commit_signal_t mVisibleWidthChangeSignal;
LLButton* mCollapseButton;
bool mCollapsed;