diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-11-20 14:39:27 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-11-20 14:39:27 +0200 |
commit | 91fdbd92c8e93e1676ba501bbc91ee56d38255c3 (patch) | |
tree | 3ae910c9c5401dfb9f65cb6e354221e375506fc3 /indra/newview/llspeakbutton.h | |
parent | 8dd743e783464f59b1d80763d8e2e8c52e048cb1 (diff) |
Fixed normal bug EXT-2616 ("Speak" button isn't narrowed and has title when width of window is 800px)
- updated resize behavior to shrink Snapshot button: only speaker is shown in this case.
- updated LLSpeakButton to hide/show its labels
- updated talk_button widget (talk_button.xml) to have correct follows attributes
- also fixed bug with calculating necessary updates for children while extending bottom tray
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llspeakbutton.h')
-rw-r--r-- | indra/newview/llspeakbutton.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llspeakbutton.h b/indra/newview/llspeakbutton.h index 02c8ab3890..424ee5357a 100644 --- a/indra/newview/llspeakbutton.h +++ b/indra/newview/llspeakbutton.h @@ -67,6 +67,18 @@ public: void setSpeakToolTip(const std::string& msg); void setShowToolTip(const std::string& msg); + /** + * Sets visibility of speak button's label according to passed parameter. + * + * It removes label/selected label if "visible" is false and restores otherwise. + * + * @param visible if true - show label and selected label. + * + * @see mSpeakBtn + * @see LLBottomTray::processShrinkButtons() + */ + void setLabelVisible(bool visible); + protected: friend class LLUICtrlFactory; LLSpeakButton(const Params& p); |