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


C++ LLFloaterAvatarPicker::childSetEnabled方法代码示例

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


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

示例1: editKeystroke

//static
void LLFloaterAvatarPicker::editKeystroke(LLLineEditor* caller, void* user_data)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)user_data;
	LLPanel* active_panel = self->childGetVisibleTab("ResidentChooserTabs");
	if(active_panel == self->getChild<LLPanel>("SearchPanel"))
		self->childSetEnabled("Find", caller->getText().size() >= 3);
	else if(active_panel == self->getChild<LLPanel>("KeyPanel"))
	{
		LLUUID specified = self->getChild<LLLineEditor>("EditUUID")->getValue().asUUID();
		self->childSetEnabled("Select", specified.notNull());
	}
}
开发者ID:BillBarnhill,项目名称:SingularityViewer,代码行数:13,代码来源:llfloateravatarpicker.cpp

示例2: editKeystroke

//static
void LLFloaterAvatarPicker::editKeystroke(LLLineEditor* caller, void* user_data)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)user_data;
	if (caller->getText().size() >= 3)
	{
		self->childSetEnabled("Find",TRUE);
	}
	else
	{
		self->childSetEnabled("Find",FALSE);
	}
}
开发者ID:Nora28,项目名称:imprudence,代码行数:13,代码来源:llfloateravatarpicker.cpp

示例3: onList

void LLFloaterAvatarPicker::onList(LLUICtrl* ctrl, void* userdata)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)userdata;
	if (!self)
	{
		return;
	}

	self->mAvatarIDs.clear();
	self->mAvatarNames.clear();

	if (!self->mListNames)
	{
		return;
	}
	
	std::vector<LLScrollListItem*> items =
		self->mListNames->getAllSelected();
	for (
		std::vector<LLScrollListItem*>::iterator iter = items.begin();
		iter != items.end();
		++iter)
	{
		LLScrollListItem* item = *iter;
		self->mAvatarNames.push_back(item->getColumn(0)->getValue().asString());
		self->mAvatarIDs.push_back(item->getUUID());
		self->childSetEnabled("Select", TRUE);
	}
}
开发者ID:Nora28,项目名称:imprudence,代码行数:29,代码来源:llfloateravatarpicker.cpp

示例4: onList

void LLFloaterAvatarPicker::onList(LLUICtrl* ctrl, void* userdata)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)userdata;
	if (self)
	{
		self->childSetEnabled("Select", self->visibleItemsSelected());
	}
}
开发者ID:Xara,项目名称:Luna-Viewer,代码行数:8,代码来源:llfloateravatarpicker.cpp

示例5: editKeystroke

//static
void LLFloaterAvatarPicker::editKeystroke(LLLineEditor* caller, void* user_data)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)user_data;
	if(caller->getName() == "Edit")
		self->getChildView("Find")->setEnabled(caller->getText().size() >= 3);
	else
		self->childSetEnabled("Select", caller->getValue().asUUID().notNull());
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:9,代码来源:llfloateravatarpicker.cpp

示例6: onTabChanged

void LLFloaterAvatarPicker::onTabChanged(void* userdata, bool from_click)
{
	LLFloaterAvatarPicker* self = (LLFloaterAvatarPicker*)userdata;
	if (!self)
	{
		return;
	}
	
	self->childSetEnabled("Select", self->visibleItemsSelected());
}
开发者ID:BillBarnhill,项目名称:SingularityViewer,代码行数:10,代码来源:llfloateravatarpicker.cpp


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