本文整理汇总了C++中LLPanelDirBrowser::childGetValue方法的典型用法代码示例。如果您正苦于以下问题:C++ LLPanelDirBrowser::childGetValue方法的具体用法?C++ LLPanelDirBrowser::childGetValue怎么用?C++ LLPanelDirBrowser::childGetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLPanelDirBrowser
的用法示例。
在下文中一共展示了LLPanelDirBrowser::childGetValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onCommitList
// static
void LLPanelDirBrowser::onCommitList(LLUICtrl* ctrl, void* data)
{
LLPanelDirBrowser* self = (LLPanelDirBrowser*)data;
LLCtrlListInterface *list = self->childGetListInterface("results");
if (!list) return;
// Start with everyone invisible
if (self->mFloaterDirectory)
{
self->mFloaterDirectory->hideAllDetailPanels();
}
if (FALSE == list->getCanSelect())
{
return;
}
std::string id_str = self->childGetValue("results").asString();
if (id_str.empty())
{
return;
}
LLSD item_id = list->getCurrentID();
S32 type = self->mResultsContents[id_str]["type"];
if (type == EVENT_CODE)
{
// all but events use the UUID above
item_id = self->mResultsContents[id_str]["event_id"];
}
//std::string name = self->mResultsContents[id_str]["name"].asString();
self->showDetailPanel(type, item_id);
if (type == FOR_SALE_CODE)
{
std::string land_type = self->mResultsContents[id_str]["landtype"].asString();
if (self->mFloaterDirectory && self->mFloaterDirectory->mPanelPlaceSmallp)
{
self->mFloaterDirectory->mPanelPlaceSmallp->setLandTypeString(land_type);
}
}
}