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


C++ LLFloaterGroupPicker类代码示例

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


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

示例1: onClickGroup

void LLPanelPermissions::onClickGroup(void* data)
{
	LLPanelPermissions* panelp = (LLPanelPermissions*)data;
	LLUUID owner_id;
	std::string name;
	BOOL owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, name);
	LLFloater* parent_floater = gFloaterView->getParentFloater(panelp);

	if(owners_identical && (owner_id == gAgent.getID()))
	{
		LLFloaterGroupPicker* fg = LLFloaterGroupPicker::showInstance(LLSD(gAgent.getID()));

		if (fg)
		{
			fg->setSelectCallback( cbGroupID, data );

			if (parent_floater)
			{
				LLRect new_rect = gFloaterView->findNeighboringPosition(parent_floater, fg);
				fg->setOrigin(new_rect.mLeft, new_rect.mBottom);
				parent_floater->addDependentFloater(fg);
			}
		}
	}
}
开发者ID:radegastdev,项目名称:EffervescenceViewer,代码行数:25,代码来源:llpanelpermissions.cpp

示例2: getInstance

// static
LLFloaterGroupPicker* LLFloaterGroupPicker::showInstance(const LLSD& seed)
{
	LLFloaterGroupPicker* pickerp = getInstance(seed);
	if (pickerp) pickerp->open();
	else pickerp = new LLFloaterGroupPicker(seed);
	return pickerp;
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:8,代码来源:llfloatergroups.cpp

示例3: inviteToGroup

void LLAvatarActions::inviteToGroup(const uuid_vec_t& ids)
{
	LLFloaterGroupPicker* widget = LLFloaterGroupPicker::showInstance(LLSD(ids.front()));
	if (widget)
	{
		widget->center();
		widget->setPowersMask(GP_MEMBER_INVITE);
		widget->removeNoneOption();
		widget->setSelectGroupCallback(boost::bind(callback_invite_to_group, _1, ids));
	}
}
开发者ID:Ratany,项目名称:SingularityViewer,代码行数:11,代码来源:llavataractions.cpp

示例4: LLSD

void LLAvatarActions::inviteToGroup(const LLUUID& id)
{
	LLFloaterGroupPicker* widget = LLFloaterReg::showTypedInstance<LLFloaterGroupPicker>("group_picker", LLSD(id));
	if (widget)
	{
		widget->center();
		widget->setPowersMask(GP_MEMBER_INVITE);
		widget->removeNoneOption();
		widget->setSelectGroupCallback(boost::bind(callback_invite_to_group, _1, id));
	}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:11,代码来源:llavataractions.cpp

示例5: onClickInvite

// static
void PanelRadar::onClickInvite(void* user_data)
{
	PanelRadar* self = (PanelRadar*) user_data;
	LLScrollListItem *item = self->mRadarList->getFirstSelected();
	if (item != NULL)
	{
		LLUUID agent_id = item->getUUID();
		LLFloaterGroupPicker* widget;
		widget = LLFloaterGroupPicker::showInstance(LLSD(gAgent.getID()));
		if (widget)
		{
			widget->center();
			widget->setPowersMask(GP_MEMBER_INVITE);
			widget->setSelectCallback(callback_invite_to_group, (void *)&agent_id);
		}
	}
}
开发者ID:ArminW,项目名称:imprudence,代码行数:18,代码来源:panelradar.cpp

示例6: onBtnCancel

void LLFloaterGroupPicker::onBtnCancel(void* userdata)
{
	LLFloaterGroupPicker* self = (LLFloaterGroupPicker*)userdata;
	if(self) self->close();
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:5,代码来源:llfloatergroups.cpp

示例7: onBtnOK

void LLFloaterGroupPicker::onBtnOK(void* userdata)
{
	LLFloaterGroupPicker* self = (LLFloaterGroupPicker*)userdata;
	if(self) self->ok();
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:5,代码来源:llfloatergroups.cpp


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