diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-06 01:48:07 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-06 01:48:07 +0300 |
commit | 1218ffb000289954cbbbf7fc5c62e494c85f1ede (patch) | |
tree | 0c94630cfb1e66ef70f599a25f6471913599920d /indra/newview/llbottomtray.h | |
parent | 318752fe3df9ef86d3735fc0ef935d27ac3d5f7d (diff) |
STORM-1028 WIP Fixing bottom bar buttons reshaping, tier 3
* Rewritten some code for better readability. Behavior should not be affected.
* Debug prints and other minor changes.
Diffstat (limited to 'indra/newview/llbottomtray.h')
-rw-r--r-- | indra/newview/llbottomtray.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llbottomtray.h b/indra/newview/llbottomtray.h index f1c193ef16..7301551975 100644 --- a/indra/newview/llbottomtray.h +++ b/indra/newview/llbottomtray.h @@ -240,8 +240,9 @@ private: * * @params[in, out] available_width - reference to available width to be used to show buttons. * @see processShowButton() + * @return consumed pixels (difference in available width). */ - void processShowButtons(S32& available_width); + S32 processShowButtons(S32& available_width); /** * Tries to show panel with specified button using available width. @@ -431,9 +432,17 @@ private: */ void processChatbarCustomization(S32 new_width); + /** + * @return difference between current chiclet panel width and the minimum. + */ + S32 getChicletPanelShrinkHeadroom() const; + /// Get button name for debugging. static std::string resizeStateToString(EResizeState state); + /// Dump a mask for debugging + static std::string resizeStateMaskToString(MASK mask); + /// Buttons automatically hidden due to lack of space. MASK mResizeState; |