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


C++ LLFloaterReporter::getObjectInfo方法代码示例

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


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

示例1: showFromObject

// static
//void LLFloaterReporter::showFromObject(const LLUUID& object_id)
LLFloaterReporter* LLFloaterReporter::showFromObject(const LLUUID& object_id, bool show)
{
	LLFloaterReporter* f = createNewAbuseReporter();
	f->center();
	f->setFocus(TRUE);

	// grab the user's name
	std::string fullname;
	gAgent.buildFullname(fullname);
	f->childSetText("reporter_field", fullname);

	// Request info for this object
	f->getObjectInfo(object_id);

	// Need to deselect on close
	f->mDeselectOnClose = TRUE;

	//f->open();		/* Flawfinder: ignore */
	if ( show )
	{
		f->open();		/* Flawfinder: ignore */
	}
	else
	{
		gDialogVisible = FALSE;
	}

	return f;
}
开发者ID:Xara,项目名称:Meerkat-Viewer,代码行数:31,代码来源:llfloaterreporter.cpp

示例2: closePickTool

// static
void LLFloaterReporter::closePickTool(void *userdata)
{
	LLFloaterReporter *self = (LLFloaterReporter *)userdata;

	LLUUID object_id = LLToolObjPicker::getInstance()->getObjectID();
	self->getObjectInfo(object_id);

	LLToolMgr::getInstance()->clearTransientTool();
	self->mPicking = FALSE;
	LLButton* pick_btn = self->getChild<LLButton>("pick_btn");
	if (pick_btn) pick_btn->setToggleState(FALSE);
}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:13,代码来源:llfloaterreporter.cpp

示例3: show

// static
void LLFloaterReporter::show(const LLUUID& object_id, const std::string& avatar_name)
{
	LLFloaterReporter* f = getInstance();

	if (avatar_name.empty())
	{
		// Request info for this object
		f->getObjectInfo(object_id);
	}
	else
	{
		f->setFromAvatarID(object_id);
	}

	// Need to deselect on close
	f->mDeselectOnClose = TRUE;

	f->open();		/* Flawfinder: ignore */
}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:20,代码来源:llfloaterreporter.cpp

示例4: show

// static
void LLFloaterReporter::show(const LLUUID& object_id, const std::string& avatar_name)
{
	LLFloaterReporter* f = LLFloaterReg::showTypedInstance<LLFloaterReporter>("reporter");

	if (avatar_name.empty())
	{
		// Request info for this object
		f->getObjectInfo(object_id);
	}
	else
	{
		f->setFromAvatarID(object_id);
	}

	// Need to deselect on close
	f->mDeselectOnClose = TRUE;

	f->openFloater();
}
开发者ID:NickyPerian,项目名称:viewer-development,代码行数:20,代码来源:llfloaterreporter.cpp

示例5: show

// static
void LLFloaterReporter::show(const LLUUID& object_id, const std::string& avatar_name)
{
	LLFloaterReporter* f = LLFloaterReg::showTypedInstance<LLFloaterReporter>("reporter");

	// grab the user's name
	std::string fullname;
	LLAgentUI::buildFullname(fullname);
	f->getChild<LLUICtrl>("reporter_field")->setValue(fullname);

	if (avatar_name.empty())
		// Request info for this object
		f->getObjectInfo(object_id);
	else
		f->setFromAvatar(object_id, avatar_name);

	// Need to deselect on close
	f->mDeselectOnClose = TRUE;

	f->openFloater();
}
开发者ID:otwstephanie,项目名称:hpa2oar,代码行数:21,代码来源:llfloaterreporter.cpp


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