当前位置: 首页>>代码示例>>C++>>正文


C++ LLUICtrl类代码示例

本文整理汇总了C++中LLUICtrl的典型用法代码示例。如果您正苦于以下问题:C++ LLUICtrl类的具体用法?C++ LLUICtrl怎么用?C++ LLUICtrl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了LLUICtrl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: postBuild

// Checked: 2011-11-08 (RLVa-1.5.0)
BOOL RlvFloaterStrings::postBuild()
{
	// Set up the UI controls
	m_pStringList = findChild<LLComboBox>("string_list");
	m_pStringList->setCommitCallback(boost::bind(&RlvFloaterStrings::checkDirty, this, true));

	LLUICtrl* pDefaultBtn = findChild<LLUICtrl>("default_btn");
	pDefaultBtn->setCommitCallback(boost::bind(&RlvFloaterStrings::onStringRevertDefault, this));

	// Read all string metadata from the default strings file
	llifstream fileStream(RlvStrings::getStringMapPath(), std::ios::binary); LLSD sdFileData;
	if ( (fileStream.is_open()) && (LLSDSerialize::fromXMLDocument(sdFileData, fileStream)) )
	{
		m_sdStringsInfo = sdFileData["strings"];
		fileStream.close();
	}

	// Populate the combo box
	for (LLSD::map_const_iterator itString = m_sdStringsInfo.beginMap(); itString != m_sdStringsInfo.endMap(); ++itString)
	{
		const LLSD& sdStringInfo = itString->second;
		if ( (!sdStringInfo.has("customizable")) || (!sdStringInfo["customizable"].asBoolean()) )
			continue;
		m_pStringList->add( (sdStringInfo.has("label")) ? sdStringInfo["label"].asString() : itString->first, itString->first);
	}

	refresh();

	return TRUE;
}
开发者ID:HanHeld,项目名称:SingularityViewerFeb2016,代码行数:31,代码来源:rlvfloaters.cpp

示例2: getParentUICtrl

bool LLPanelPlacesTab::isTabVisible()
{
	LLUICtrl* parent = getParentUICtrl();
	if (!parent) return false;
	if (!parent->getVisible()) return false;
	return true;
}
开发者ID:OS-Development,项目名称:VW.Kirsten,代码行数:7,代码来源:llpanelplacestab.cpp

示例3: while

bool LLPanelPreferenceGraphics::hasDirtyChilds()
{
	std::list<LLView*> view_stack;
	view_stack.push_back(this);
	while(!view_stack.empty())
	{
		// Process view on top of the stack
		LLView* curview = view_stack.front();
		view_stack.pop_front();

		LLUICtrl* ctrl = dynamic_cast<LLUICtrl*>(curview);
		if (ctrl)
		{
			if(ctrl->isDirty())
				return true;
		}
		// Push children onto the end of the work stack
		for (child_list_t::const_iterator iter = curview->getChildList()->begin();
			 iter != curview->getChildList()->end(); ++iter)
		{
			view_stack.push_back(*iter);
		}
	}	
	return false;
}
开发者ID:Xara,项目名称:Opensource-V2-SL-Viewer,代码行数:25,代码来源:llfloaterpreference.cpp

示例4: onFocusReceived

void LLPanel::setFocus(BOOL b)
{
	if( b )
	{
		if (!gFocusMgr.childHasKeyboardFocus(this))
		{
			//refresh();
			if (!focusFirstItem())
			{
				LLUICtrl::setFocus(TRUE);
			}
			onFocusReceived();
		}
	}
	else
	{
		if( this == gFocusMgr.getKeyboardFocus() )
		{
			gFocusMgr.setKeyboardFocus( NULL );
		}
		else
		{
			//RN: why is this here?
			LLView::ctrl_list_t ctrls = getCtrlList();
			for (LLView::ctrl_list_t::iterator ctrl_it = ctrls.begin(); ctrl_it != ctrls.end(); ++ctrl_it)
			{
				LLUICtrl* ctrl = *ctrl_it;
				ctrl->setFocus( FALSE );
			}
		}
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:32,代码来源:llpanel.cpp

示例5:

void	LLNearbyChatToastPanel::setHeaderVisibility(EShowItemHeader e)
{
	LLUICtrl* icon = getChild<LLUICtrl>("avatar_icon", false);
	if(icon)
		icon->setVisible(e == CHATITEMHEADER_SHOW_ONLY_ICON || e==CHATITEMHEADER_SHOW_BOTH);

}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例6: childSetUserData

void LLPanel::childSetUserData(const std::string& id, void* userdata)
{
	LLUICtrl* child = getChild<LLUICtrl>(id, true);
	if (child)
	{
		child->setCallbackUserData(userdata);
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:8,代码来源:llpanel.cpp

示例7: BOOL

void LLPanel::childSetValidate(const std::string& id, BOOL (*cb)(LLUICtrl*, void*))
{
	LLUICtrl* child = getChild<LLUICtrl>(id, true);
	if (child)
	{
		child->setValidateBeforeCommit(cb);
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:8,代码来源:llpanel.cpp

示例8: void

void LLPanel::childSetFocusChangedCallback(const std::string& id, void (*cb)(LLFocusableElement*, void*), void* user_data)
{
	LLUICtrl* child = getChild<LLUICtrl>(id, true);
	if (child)
	{
		child->setFocusChangedCallback(cb, user_data);
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:8,代码来源:llpanel.cpp

示例9: childSetMaxValue

void LLPanel::childSetMaxValue(const std::string& id, LLSD max_value)
{
	LLUICtrl* child = getChild<LLUICtrl>(id, true);
	if (child)
	{
		child->setMaxValue(max_value);
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:8,代码来源:llpanel.cpp

示例10: childSetTentative

void LLPanel::childSetTentative(const std::string& id, bool tentative)
{
	LLUICtrl* child = findChild<LLUICtrl>(id);
	if (child)
	{
		child->setTentative(tentative);
	}
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:8,代码来源:llpanel.cpp

示例11: childSetAlpha

void LLPanel::childSetAlpha(const std::string& id, F32 alpha)
{
	LLUICtrl* child = getChild<LLUICtrl>(id, true);
	if (child)
	{
		child->setAlpha(alpha);
	}
}
开发者ID:AGoodPerson,项目名称:Ascent,代码行数:8,代码来源:llpanel.cpp

示例12: childSetFocus

void LLPanel::childSetFocus(const std::string& id, BOOL focus)
{
	LLUICtrl* child = findChild<LLUICtrl>(id);
	if (child)
	{
		child->setFocus(focus);
	}
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:8,代码来源:llpanel.cpp

示例13: childSetColor

void LLPanel::childSetColor(const std::string& id, const LLColor4& color)
{
	LLUICtrl* child = findChild<LLUICtrl>(id);
	if (child)
	{
		child->setColor(color);
	}
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:8,代码来源:llpanel.cpp

示例14: childSetValue

void LLPanel::childSetValue(const std::string& id, LLSD value)
{
	LLUICtrl* child = findChild<LLUICtrl>(id);
	if (child)
	{
		child->setValue(value);
	}
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:8,代码来源:llpanel.cpp

示例15: childSetControlName

void LLPanel::childSetControlName(const std::string& id, const std::string& control_name)
{
	LLUICtrl* view = findChild<LLUICtrl>(id);
	if (view)
	{
		view->setControlName(control_name, NULL);
	}
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:8,代码来源:llpanel.cpp


注:本文中的LLUICtrl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。