本文整理汇总了C++中LLFloaterPostcard::childSetValue方法的典型用法代码示例。如果您正苦于以下问题:C++ LLFloaterPostcard::childSetValue方法的具体用法?C++ LLFloaterPostcard::childSetValue怎么用?C++ LLFloaterPostcard::childSetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLFloaterPostcard
的用法示例。
在下文中一共展示了LLFloaterPostcard::childSetValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: missingSubjMsgAlertCallback
void LLFloaterPostcard::missingSubjMsgAlertCallback(S32 option, void* data)
{
if(data)
{
LLFloaterPostcard* self = static_cast<LLFloaterPostcard*>(data);
if(0 == option)
{
// User clicked OK
if((self->childGetValue("subject_form").asString()).empty())
{
// Stuff the subject back into the form.
self->childSetValue("subject_form", self->childGetText("default_subject"));
}
if(!self->mHasFirstMsgFocus)
{
// The user never switched focus to the messagee window.
// Using the default string.
self->childSetValue("msg_form", self->childGetText("default_message"));
}
self->sendPostcard();
}
}
}
示例2: updateUserInfo
// static
void LLFloaterPostcard::updateUserInfo(const std::string& email)
{
for (instance_list_t::iterator iter = sInstances.begin();
iter != sInstances.end(); ++iter)
{
LLFloaterPostcard *instance = *iter;
const std::string& text = instance->childGetValue("from_form").asString();
if (text.empty())
{
// there's no text in this field yet, pre-populate
instance->childSetValue("from_form", LLSD(email));
}
}
}
示例3: updateUserInfo
// static
void LLFloaterPostcard::updateUserInfo(const char *email)
{
LLFloaterPostcard *instance;
sInstances.resetList();
while ((instance = sInstances.getNextData()))
{
const LLString& text = instance->childGetValue("from_form").asString();
if (text.empty())
{
// there's no text in this field yet, pre-populate
instance->childSetValue("from_form", LLSD(email));
}
}
}