本文整理汇总了C++中LLTextBox::setURLClickedCallback方法的典型用法代码示例。如果您正苦于以下问题:C++ LLTextBox::setURLClickedCallback方法的具体用法?C++ LLTextBox::setURLClickedCallback怎么用?C++ LLTextBox::setURLClickedCallback使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLTextBox
的用法示例。
在下文中一共展示了LLTextBox::setURLClickedCallback方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: postBuild
/*virtual*/
BOOL LLInspectObject::postBuild(void)
{
// The XML file has sample data in it. Clear that out so we don't
// flicker when data arrives off network.
getChild<LLUICtrl>("object_name")->setValue("");
getChild<LLUICtrl>("object_creator")->setValue("");
getChild<LLUICtrl>("object_description")->setValue("");
getChild<LLUICtrl>("object_media_url")->setValue("");
// Set buttons invisible until we know what this object can do
hideButtons();
// Hide floater when name links clicked
LLTextBox* textbox = getChild<LLTextBox>("object_creator");
textbox->setURLClickedCallback(boost::bind(&LLInspectObject::closeFloater, this, false) );
// Hook up functionality
getChild<LLUICtrl>("buy_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickBuy, this));
getChild<LLUICtrl>("pay_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickPay, this));
getChild<LLUICtrl>("take_free_copy_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickTakeFreeCopy, this));
getChild<LLUICtrl>("touch_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickTouch, this));
getChild<LLUICtrl>("sit_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickSit, this));
getChild<LLUICtrl>("open_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickOpen, this));
getChild<LLUICtrl>("more_info_btn")->setCommitCallback(
boost::bind(&LLInspectObject::onClickMoreInfo, this));
// Watch for updates to selection properties off the network
LLSelectMgr::getInstance()->mUpdateSignal.connect(
boost::bind(&LLInspectObject::update, this) );
return TRUE;
}