Exemplo n.º 1
0
LLStatView::LLStatView(const LLStatView::Params& p)
:	LLContainerView(p),
	mSetting(p.setting)
{
	BOOL isopen = getDisplayChildren();
	if (mSetting.length() > 0)
	{
		isopen = LLUI::sSettingGroups["config"]->getBOOL(mSetting);
	}
	setDisplayChildren(isopen);
}
Exemplo n.º 2
0
LLTextureView::LLTextureView(const std::string& name, const LLRect& rect)
	:	LLContainerView(name, rect),
		mFreezeView(FALSE),
		mOrderFetch(FALSE),
		mPrintList(FALSE),
		mNumTextureBars(0)
{
	setVisible(FALSE);
	
	setDisplayChildren(TRUE);
	mGLTexMemBar = 0;
}
Exemplo n.º 3
0
void LLAccordionCtrlTab::changeOpenClose(bool is_open)
{
	if(is_open)
		mExpandedHeight = getRect().getHeight();

	setDisplayChildren(!is_open);
	reshape(getRect().getWidth(), getRect().getHeight(), FALSE);
	if (mCommitSignal)
	{
		(*mCommitSignal)(this, getDisplayChildren());
	}
}
LLTextureView::LLTextureView(const LLTextureView::Params& p)
    :	LLContainerView(p),
      mFreezeView(FALSE),
      mOrderFetch(FALSE),
      mPrintList(FALSE),
      mNumTextureBars(0)
{
    setVisible(FALSE);

    setDisplayChildren(TRUE);
    mGLTexMemBar = 0;
    mAvatarTexBar = 0;
}
Exemplo n.º 5
0
LLStatView::LLStatView(const std::string& name, const std::string& label, const std::string& setting, const LLRect& rect)
	:	LLContainerView(name, rect),
		mNumStatBars(0),
		mSetting(setting)
{
	setFollows(FOLLOWS_TOP | FOLLOWS_LEFT);
	setLabel(label);
	BOOL open = FALSE;
	if (mSetting.length() > 0)
	{
		open = gSavedSettings.getBOOL(mSetting);
	}
	setDisplayChildren(open);		/* Flawfinder: ignore */
}
Exemplo n.º 6
0
bool LLAccordionCtrlTab::addChild(LLView* child, S32 tab_group)
{
	if(DD_HEADER_NAME != child->getName())
	{
		reshape(child->getRect().getWidth() , child->getRect().getHeight() + HEADER_HEIGHT );
		mExpandedHeight = getRect().getHeight();
	}

	bool res = LLUICtrl::addChild(child, tab_group);

	if(DD_HEADER_NAME != child->getName())
	{
		if(!mCollapsible)
			setDisplayChildren(true);
		else
			setDisplayChildren(getDisplayChildren());	
	}

	if (!mContainerPanel)
		mContainerPanel = findContainerView();

	return res;
}
BOOL LLContainerView::handleMouseDown(S32 x, S32 y, MASK mask)
{
	BOOL handled = FALSE;
	if (mDisplayChildren)
	{
		handled = (LLView::childrenHandleMouseDown(x, y, mask) != NULL);
	}
	if (!handled)
	{
		if( mCollapsible && mShowLabel && (y >= getRect().getHeight() - 10) )
		{
			setDisplayChildren(!mDisplayChildren);
			reshape(getRect().getWidth(), getRect().getHeight(), FALSE);
			handled = TRUE;
		}
	}
	return handled;
}
BOOL LLContainerView::postBuild()
{
	setDisplayChildren(mDisplayChildren);
	reshape(getRect().getWidth(), getRect().getHeight(), FALSE);
	return TRUE;
}