diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-03-04 13:46:57 +0200 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-03-04 13:46:57 +0200 |
commit | 211465b77282ec5981f8b052c9ff8d4277a10d5f (patch) | |
tree | 4d3be27810b4d7c6fee3b652ea09c7a76a04f9c0 /indra/newview/llbottomtray.h | |
parent | 0247cd6aebd85d578b14778f20866616ef3ab05f (diff) |
STORM-236 WIP Minor code improvements.
- To decrease code duplication:
* Added RS_BUTTON_SPEAK to the button->panel mapping (mStateProcessedObjectMap).
* Replaces all lookups in mStateProcessedObjectMap with calls to getButtonPanel().
- Added some comments.
Diffstat (limited to 'indra/newview/llbottomtray.h')
-rw-r--r-- | indra/newview/llbottomtray.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llbottomtray.h b/indra/newview/llbottomtray.h index 32d4968521..76d80b8e0b 100644 --- a/indra/newview/llbottomtray.h +++ b/indra/newview/llbottomtray.h @@ -393,6 +393,8 @@ private: /** * Get panel containing the given button. + * + * @see mStateProcessedObjectMap */ LLPanel* getButtonPanel(EResizeState button_type); @@ -415,13 +417,21 @@ private: */ void processChatbarCustomization(S32 new_width); + /// Get button name for debugging. + static std::string resizeStateToString(EResizeState state); /// Buttons automatically hidden due to lack of space. MASK mResizeState; + /** + * Mapping of button types to the layout panels the buttons are wrapped in. + * + * Used by getButtonPanel(). + */ typedef std::map<EResizeState, LLPanel*> state_object_map_t; state_object_map_t mStateProcessedObjectMap; + /// Default (maximum) widths of the layout panels. typedef std::map<EResizeState, S32> state_object_width_map_t; state_object_width_map_t mObjectDefaultWidthMap; |