//--------------------------------------------------------------------------------- void LLSysWellWindow::setVisible(BOOL visible) { if (visible) { if (NULL == getDockControl() && getDockTongue().notNull()) { setDockControl(new LLDockControl( LLBottomTray::getInstance()->getChild<LLView>(getAnchorViewName()), this, getDockTongue(), LLDockControl::TOP, boost::bind(&LLSysWellWindow::getAllowedRect, this, _1))); } } // do not show empty window if (NULL == mMessageList || isWindowEmpty()) visible = FALSE; LLTransientDockableFloater::setVisible(visible); // update notification channel state if(mChannel) { mChannel->updateShowToastsState(); mChannel->redrawToasts(); } if (visible) { releaseNewMessagesState(); } }
//--------------------------------------------------------------------------------- void LLSysWellWindow::setVisible(BOOL visible) { if (visible) { if (NULL == getDockControl() && getDockTongue().notNull()) { setDockControl(new LLDockControl( LLChicletBar::getInstance()->getChild<LLView>(getAnchorViewName()), this, getDockTongue(), LLDockControl::BOTTOM)); } } // do not show empty window if (NULL == mMessageList || isWindowEmpty()) visible = FALSE; LLTransientDockableFloater::setVisible(visible); // update notification channel state initChannel(); // make sure the channel still exists if(mChannel) { mChannel->updateShowToastsState(); mChannel->redrawToasts(); } if (visible) { releaseNewMessagesState(); } }
// virtual BOOL LLCallFloater::postBuild() { LLTransientDockableFloater::postBuild(); mAvatarList = getChild<LLAvatarList>("speakers_list"); mAvatarListRefreshConnection = mAvatarList->setRefreshCompleteCallback(boost::bind(&LLCallFloater::onAvatarListRefreshed, this)); childSetAction("leave_call_btn", boost::bind(&LLCallFloater::leaveCall, this)); mNonAvatarCaller = findChild<LLNonAvatarCaller>("non_avatar_caller"); mNonAvatarCaller->setVisible(FALSE); LLView *anchor_panel = LLBottomTray::getInstance()->getChild<LLView>("speak_flyout_btn"); setDockControl(new LLDockControl( anchor_panel, this, getDockTongue(), LLDockControl::TOP)); initAgentData(); connectToChannel(LLVoiceChannel::getCurrentVoiceChannel()); setIsChrome(true); //chrome="true" hides floater caption if (mDragHandle) mDragHandle->setTitleVisible(TRUE); updateTransparency(TT_ACTIVE); // force using active floater transparency (STORM-730) updateSession(); return TRUE; }
void LLFloaterCamera::onOpen(const LLSD& key) { LLButton *anchor_panel = LLBottomTray::getInstance()->getChild<LLButton>("camera_btn"); setDockControl(new LLDockControl( anchor_panel, this, getDockTongue(), LLDockControl::TOP)); mZoom->onOpen(key); // Returns to previous mode, see EXT-2727(View tool should remember state). // In case floater was just hidden and it isn't reset the mode // just update state to current one. Else go to previous. if ( !mClosed ) updateState(); else toPrevMode(); mClosed = FALSE; }
void LLFloaterMove::onOpen(const LLSD& key) { LLButton *anchor_panel = LLBottomTray::getInstance()->getChild<LLButton>("movement_btn"); if (gAgent.getFlying()) { setFlyingMode(TRUE); showModeButtons(FALSE); } if (gAgent.getAvatarObject() && gAgent.getAvatarObject()->isSitting()) { setSittingMode(TRUE); showModeButtons(FALSE); } setDockControl(new LLDockControl( anchor_panel, this, getDockTongue(), LLDockControl::TOP)); sUpdateFlyingStatus(); }