CHUI-100 WIP Fix translate chat checkbox showing

master
AlexanderP ProductEngine 2012-06-18 23:20:17 +03:00
parent bc5e0eda1b
commit 7edcbb1613
4 changed files with 10 additions and 5 deletions

View File

@ -236,6 +236,13 @@ void LLIMConversation::updateHeaderAndToolbar()
mCloseBtn->setVisible(is_hosted);
enableDisableCallBtn();
showTranslationCheckbox();
}
void LLIMConversation::showTranslationCheckbox(BOOL show)
{
getChild<LLUICtrl>("translate_chat_checkbox_lp")->setVisible(mIsNearbyChat? show : FALSE);
}
// static

View File

@ -56,6 +56,9 @@ public:
*/
static bool isChatMultiTab();
// show/hide the translation check box
void showTranslationCheckbox(const BOOL visible = FALSE);
// LLFloater overrides
/*virtual*/ void onOpen(const LLSD& key);
/*virtual*/ BOOL postBuild();

View File

@ -393,10 +393,6 @@ void LLNearbyChat::showHistory()
storeRectControl();
}
void LLNearbyChat::showTranslationCheckbox(BOOL show)
{
getChild<LLUICtrl>("translate_chat_checkbox_lp")->setVisible(show);
}
BOOL LLNearbyChat::tick()
{

View File

@ -87,7 +87,6 @@ public:
static void sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL animate);
void showHistory();
void showTranslationCheckbox(BOOL show);
protected:
static BOOL matchChatTypeTrigger(const std::string& in_str, std::string* out_str);