本文整理汇总了C++中LLFloaterGroupPicker::setSelectCallback方法的典型用法代码示例。如果您正苦于以下问题:C++ LLFloaterGroupPicker::setSelectCallback方法的具体用法?C++ LLFloaterGroupPicker::setSelectCallback怎么用?C++ LLFloaterGroupPicker::setSelectCallback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLFloaterGroupPicker
的用法示例。
在下文中一共展示了LLFloaterGroupPicker::setSelectCallback方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
}
}
示例2: 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);
}
}
}