本文整理汇总了C++中childGetValue函数的典型用法代码示例。如果您正苦于以下问题:C++ childGetValue函数的具体用法?C++ childGetValue怎么用?C++ childGetValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了childGetValue函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: id
// reacts to user clicking a valid field in the local scroll list.
void LLFloaterTexturePicker::onLocalScrollCommit()
{
LLUUID id(mLocalScrollCtrl->getSelectedItemLabel(LOCALLIST_COL_ID));
mOwner->setImageAssetID(id);
if (childGetValue("apply_immediate_check").asBoolean())
mOwner->onFloaterCommit(LLTextureCtrl::TEXTURE_CHANGE, id); // calls an overridden function.
}
开发者ID:emperorstarfinder,项目名称:SingularityViewer,代码行数:9,代码来源:lltexturectrl.cpp
示例2: childGetValue
void LLFloaterTexturePicker::commitIfImmediateSet()
{
bool apply_immediate = childGetValue("apply_immediate_check").asBoolean();
if (!mNoCopyTextureSelected && apply_immediate && mOwner)
{
mOwner->onFloaterCommit(LLTextureCtrl::TEXTURE_CHANGE);
}
}
开发者ID:meta7,项目名称:Meta7-Viewer-Imprud-refactor,代码行数:8,代码来源:lltexturectrl.cpp
示例3: setActive
void LLFloaterTexturePicker::setActive( BOOL active )
{
if (!active && childGetValue("Pipette").asBoolean())
{
stopUsingPipette();
}
mActive = active;
}
开发者ID:meta7,项目名称:Meta7-Viewer-Imprud-refactor,代码行数:8,代码来源:lltexturectrl.cpp
示例4: childGetValue
//-----------------------------------------------------------------------------
// resetMotion()
//-----------------------------------------------------------------------------
void LLFloaterAnimPreview::resetMotion()
{
LLVOAvatar* avatarp;
if (mInWorld)
{
avatarp = gAgent.getAvatarObject();
}
else
{
avatarp = mAnimPreview->getDummyAvatar();
}
if (!avatarp)
{
return;
}
BOOL paused = avatarp->areAnimationsPaused();
// *TODO: Fix awful casting hack
LLKeyframeMotion* motionp = (LLKeyframeMotion*)avatarp->findMotion(mMotionID);
// Set emotion
std::string emote = childGetValue("emote_combo").asString();
motionp->setEmote(mIDList[emote]);
LLUUID base_id = mIDList[childGetValue("preview_base_anim").asString()];
avatarp->deactivateAllMotions();
avatarp->startMotion(base_id, BASE_ANIM_TIME_OFFSET);
avatarp->startMotion(mMotionID, 0.0f);
childSetValue("playback_slider", 0.0f);
// Set pose
std::string handpose = childGetValue("hand_pose_combo").asString();
avatarp->startMotion( ANIM_AGENT_HAND_MOTION, 0.0f );
motionp->setHandPose(LLHandMotion::getHandPose(handpose));
if (paused)
{
mPauseRequest = avatarp->requestPause();
}
else
{
mPauseRequest = NULL;
}
}
开发者ID:fractured-crystal,项目名称:SingularityViewer,代码行数:48,代码来源:llfloateranimpreview.cpp
示例5: childGetValue
//////////////////////////////////////////////////////////////////////////
// Private Section
void LLFloaterGetBlockedObjectName::applyBlocking()
{
if (mGetObjectNameCallback)
{
const std::string& text = childGetValue("object_name").asString();
mGetObjectNameCallback(text);
}
closeFloater();
}
开发者ID:HyangZhao,项目名称:NaCl-main,代码行数:11,代码来源:llpanelblockedlist.cpp
示例6: childGetValue
void HippoPanelGridsImpl::retrieveGridInfo()
{
std::string loginuri = childGetValue("loginuri");
if ((loginuri == "") || (loginuri == "<required>")) {
LLNotificationsUtil::add("GridInfoNoLoginUri");
return;
}
HippoGridInfo *grid = 0;
bool cleanupGrid = false;
if (mState == NORMAL) {
grid = gHippoGridManager->getGrid(mCurGrid);
} else if ((mState == ADD_NEW) || (mState == ADD_COPY)) {
grid = new HippoGridInfo("");
cleanupGrid = true;
} else {
llerrs << "Illegal state " << mState << '.' << llendl;
return;
}
if (!grid) {
llerrs << "Internal error retrieving grid info." << llendl;
return;
}
grid->setLoginUri(loginuri);
try
{
grid->getGridInfo();
if (grid->getPlatform() != HippoGridInfo::PLATFORM_OTHER)
getChild<LLComboBox>("platform")->setCurrentByIndex(grid->getPlatform());
if (grid->getGridName() != "") childSetText("gridname", grid->getGridName());
if (grid->getLoginUri() != "") childSetText("loginuri", grid->getLoginUri());
if (grid->getLoginPage() != "") childSetText("loginpage", grid->getLoginPage());
if (grid->getHelperUri() != "") childSetText("helperuri", grid->getHelperUri());
if (grid->getWebSite() != "") childSetText("website", grid->getWebSite());
if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl());
if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl());
if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl());
if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl());
if (grid->getGridMessage() != "") childSetText("gridmessage", grid->getGridMessage());
}
catch(AIAlert::ErrorCode const& error)
{
if (error.getCode() == HTTP_METHOD_NOT_ALLOWED || error.getCode() == HTTP_OK)
{
AIAlert::add("GridInfoError", error);
}
else
{
// Append GridInfoErrorInstruction to error message.
AIAlert::add("GridInfoError", AIAlert::Error(AIAlert::Prefix(), AIAlert::not_modal, error, "GridInfoErrorInstruction"));
}
}
if (cleanupGrid) delete grid;
}
开发者ID:pcerioli,项目名称:SingularityViewer,代码行数:57,代码来源:hippopanelgrids.cpp
示例7: childGetValue
// virtual
void LLPanelDirGroups::performQuery()
{
if (childGetValue("name").asString().length() < mMinSearchChars)
{
return;
}
BOOL inc_pg = childGetValue("incpg").asBoolean();
BOOL inc_mature = childGetValue("incmature").asBoolean();
BOOL inc_adult = childGetValue("incadult").asBoolean();
if (!(inc_pg || inc_mature || inc_adult))
{
LLNotifyBox::showXml("NoContentToSearch");
return;
}
setupNewSearch();
// groups
U32 scope = DFQ_GROUPS;
if (inc_pg)
{
scope |= DFQ_INC_PG;
}
if (inc_mature)
{
scope |= DFQ_INC_MATURE;
}
if (inc_adult)
{
scope |= DFQ_INC_ADULT;
}
mCurrentSortColumn = "score";
mCurrentSortAscending = FALSE;
// send the message
sendDirFindQuery(
gMessageSystem,
mSearchID,
childGetValue("name").asString(),
scope,
mSearchStart);
}
开发者ID:Boy,项目名称:netbook,代码行数:45,代码来源:llpaneldirgroups.cpp
示例8: childGetValue
void LLFloaterBuyLandUI::runWebSitePrep(const std::string& password)
{
if (!mCanBuy)
{
return;
}
BOOL remove_contribution = childGetValue("remove_contribution").asBoolean();
mParcelBuyInfo = LLViewerParcelMgr::getInstance()->setupParcelBuy(gAgent.getID(), gAgent.getSessionID(),
gAgent.getGroupID(), mIsForGroup, mIsClaim, remove_contribution);
if (mParcelBuyInfo
&& !mSiteMembershipUpgrade
&& !mSiteLandUseUpgrade
&& mCurrency.getAmount() == 0
&& mSiteConfirm != "password")
{
sendBuyLand();
return;
}
std::string newLevel = "noChange";
if (mSiteMembershipUpgrade)
{
LLComboBox* levels = getChild<LLComboBox>( "account_level");
if (levels)
{
mUserPlanChoice = levels->getCurrentIndex();
newLevel = mSiteMembershipPlanIDs[mUserPlanChoice];
}
}
LLXMLRPCValue keywordArgs = LLXMLRPCValue::createStruct();
keywordArgs.appendString("agentId", gAgent.getID().asString());
keywordArgs.appendString(
"secureSessionId",
gAgent.getSecureSessionID().asString());
keywordArgs.appendString("levelId", newLevel);
keywordArgs.appendInt("billableArea",
mIsForGroup ? 0 : mParcelBillableArea);
keywordArgs.appendInt("currencyBuy", mCurrency.getAmount());
keywordArgs.appendInt("estimatedCost", mCurrency.getUSDEstimate());
keywordArgs.appendString("estimatedLocalCost", mCurrency.getLocalEstimate());
keywordArgs.appendString("confirm", mSiteConfirm);
if (!password.empty())
{
keywordArgs.appendString("password", password);
}
LLXMLRPCValue params = LLXMLRPCValue::createArray();
params.append(keywordArgs);
startTransaction(TransactionBuy, params);
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:56,代码来源:llfloaterbuyland.cpp
示例9: childGetValue
void LLPanelRequestTools::sendRequest(const LLHost& host)
{
// intercept viewer local actions here
std::string req = childGetValue("request");
if (req == "terrain download")
{
gXferManager->requestFile("terrain.raw", "terrain.raw", LL_PATH_NONE,
host,
FALSE,
terrain_download_done,
NULL);
}
else
{
req = req.substr(0, req.find_first_of(" "));
sendRequest(req.c_str(), childGetValue("parameter").asString().c_str(), host);
}
}
开发者ID:Boy,项目名称:netbook,代码行数:19,代码来源:llfloatergodtools.cpp
示例10: onSave
void onSave()
{
mItemName = childGetValue("name ed").asString();
LLStringUtil::trim(mItemName);
if( !mItemName.empty() )
{
mSaveAsSignal(mItemName);
closeFloater(); // destroys this object
}
}
开发者ID:Xara,项目名称:Opensource-V2-SL-Viewer,代码行数:10,代码来源:llpaneloutfitsinventory.cpp
示例11: childGetValue
void LLMakeOutfitDialog::onSave()
{
std::string folder_name = childGetValue("name ed").asString();
LLStringUtil::trim(folder_name);
if (!folder_name.empty())
{
makeOutfit(folder_name);
close(); // destroys this object
}
}
开发者ID:aragornarda,项目名称:SingularityViewer,代码行数:10,代码来源:llmakeoutfitdialog.cpp
示例12: childGetValue
void LLPanelDirFindAll::search(const std::string& search_text)
{
if (!search_text.empty())
{
bool mature = childGetValue( "mature_check" ).asBoolean();
std::string selected_collection = childGetValue( "Category" ).asString();
std::string url = buildSearchURL(search_text, selected_collection, mature);
if (mWebBrowser)
{
mWebBrowser->navigateTo(url);
}
}
else
{
// empty search text
navigateToDefaultPage();
}
childSetText("search_editor", search_text);
}
开发者ID:Nora28,项目名称:imprudence,代码行数:20,代码来源:llpaneldirfind.cpp
示例13: childSetTextArg
// called from setFocus()
// called internally too
void HippoPanelGridsImpl::refresh()
{
const std::string &defaultGrid = gHippoGridManager->getDefaultGridName();
LLComboBox *grids = getChild<LLComboBox>("grid_selector");
S32 selectIndex = -1, i = 0;
grids->removeall();
if (defaultGrid != "") {
grids->add(defaultGrid);
selectIndex = i++;
}
HippoGridManager::GridIterator it, end = gHippoGridManager->endGrid();
for (it = gHippoGridManager->beginGrid(); it != end; ++it) {
const std::string &grid = it->second->getGridName();
if (grid != defaultGrid) {
grids->add(grid);
if (grid == mCurGrid) selectIndex = i;
i++;
}
}
if ((mState == ADD_NEW) || (mState == ADD_COPY)) {
grids->add("<new>");
selectIndex = i++;
}
if (selectIndex >= 0) {
grids->setCurrentByIndex(selectIndex);
} else {
grids->setLabel(LLStringExplicit("")); // LLComboBox::removeall() does not clear the label
}
childSetTextArg("default_grid", "[DEFAULT]", (defaultGrid != "")? defaultGrid: " ");
childSetEnabled("btn_delete", (selectIndex >= 0));
childSetEnabled("btn_copy", (mState == NORMAL) && (selectIndex >= 0));
childSetEnabled("btn_default", (mState == NORMAL) && (selectIndex > 0));
childSetEnabled("gridname", (mState == ADD_NEW) || (mState == ADD_COPY));
if (childGetValue("platform").asString() == "SecondLife") {
// disable platform selector, if logged into the grid edited and it is SL
// so object export restrictions cannot be circumvented by changing the platform
bool enablePlatform = (LLStartUp::getStartupState() < STATE_LOGIN_CLEANUP) ||
(mCurGrid != gHippoGridManager->getConnectedGrid()->getGridName());
childSetEnabled("platform", enablePlatform);
childSetEnabled("search", false);
childSetText("search", LLStringExplicit(""));
childSetEnabled("render_compat", false);
childSetValue("render_compat", false);
} else {
childSetEnabled("platform", true);
childSetEnabled("search", true);
childSetText("search", gHippoGridManager->getConnectedGrid()->getSearchUrl());
childSetEnabled("render_compat", true);
}
}
开发者ID:OS-Development,项目名称:VW.Singularity,代码行数:56,代码来源:hippopanelgrids.cpp
示例14: childGetValue
void LLFloaterPostcard::sendPostcard()
{
mTransactionID.generate();
mAssetID = mTransactionID.makeAssetID(gAgent.getSecureSessionID());
LLVFile::writeFile(mJPEGImage->getData(), mJPEGImage->getDataSize(), gVFS, mAssetID, LLAssetType::AT_IMAGE_JPEG);
// upload the image
std::string url = gAgent.getRegion()->getCapability("SendPostcard");
if(!url.empty())
{
llinfos << "Send Postcard via capability" << llendl;
LLSD body = LLSD::emptyMap();
// the capability already encodes: agent ID, region ID
body["pos-global"] = mPosTakenGlobal.getValue();
body["to"] = childGetValue("to_form").asString();
body["from"] = childGetValue("from_form").asString();
body["name"] = childGetValue("name_form").asString();
body["subject"] = childGetValue("subject_form").asString();
body["msg"] = childGetValue("msg_form").asString();
LLHTTPClient::post(url, body, new LLSendPostcardResponder(body, mAssetID, LLAssetType::AT_IMAGE_JPEG));
}
else
{
gAssetStorage->storeAssetData(mTransactionID, LLAssetType::AT_IMAGE_JPEG, &uploadCallback, (void *)this, FALSE);
}
// give user feedback of the event
gViewerWindow->playSnapshotAnimAndSound();
LLUploadDialog::modalUploadDialog(getString("upload_message"));
// don't destroy the window until the upload is done
// this way we keep the information in the form
setVisible(FALSE);
// also remove any dependency on another floater
// so that we can be sure to outlive it while we
// need to.
LLFloater* dependee = getDependee();
if (dependee)
dependee->removeDependentFloater(this);
}
开发者ID:VirtualReality,项目名称:Viewer,代码行数:41,代码来源:llfloaterpostcard.cpp
示例15: childGetValue
void LLPanelDirBrowser::getSelectedInfo(LLUUID* id, S32 *type)
{
LLScrollListCtrl* list = findChild<LLScrollListCtrl>("results");
if (!list) return;
LLSD id_sd = childGetValue("results");
*id = id_sd.asUUID();
std::string id_str = id_sd.asString();
*type = mResultsContents[id_str]["type"];
}
开发者ID:ichibo,项目名称:SingularityViewer,代码行数:12,代码来源:llpaneldirbrowser.cpp
示例16: onChangePrelude
void LLPanelRegionTools::onChangePrelude()
{
// checking prelude auto-checks fixed sun
if (childGetValue("check prelude").asBoolean())
{
childSetValue("check fixed sun", TRUE);
childSetValue("check reset home", TRUE);
onChangeAnything();
}
// pass on to default onChange handler
}
开发者ID:Xara,项目名称:Opensource-V2-SL-Viewer,代码行数:12,代码来源:llfloatergodtools.cpp
示例17: childGetValue
void LLFloaterWorldMap::updateSearchEnabled()
{
if (childHasKeyboardFocus("location") &&
childGetValue("location").asString().length() > 0)
{
setDefaultBtn("DoSearch");
}
else
{
setDefaultBtn(NULL);
}
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:12,代码来源:llfloaterworldmap.cpp
示例18: childGetValue
void FloaterGridManager::retrieveGridInfo()
{
std::string loginuri = childGetValue("loginuri");
if ((loginuri == "") || (loginuri == "<required>"))
{
LLNotifications::instance().add("GridInfoNoLoginUri");
return;
}
HippoGridInfo* grid = 0;
bool cleanupGrid = false;
if (mState == NORMAL)
{
grid = gHippoGridManager->getGrid(mCurGrid);
}
else if ((mState == ADD_NEW) || (mState == ADD_COPY))
{
grid = new HippoGridInfo("");
cleanupGrid = true;
}
else
{
llerrs << "Illegal state " << mState << '.' << llendl;
return;
}
if (!grid)
{
llerrs << "Internal error retrieving grid info." << llendl;
return;
}
grid->setLoginUri(loginuri);
if (grid->retrieveGridInfo())
{
if (grid->getGridNick() != "") childSetText("gridnick", grid->getGridNick());
if (grid->getGridName() != "") childSetText("gridname", grid->getGridName());
if (grid->getLoginUri() != "") childSetText("loginuri", grid->getLoginUri());
if (grid->getLoginPage() != "") childSetText("loginpage", grid->getLoginPage());
if (grid->getHelperUri() != "") childSetText("helperuri", grid->getHelperUri());
if (grid->getWebSite() != "") childSetText("website", grid->getWebSite());
if (grid->getSupportUrl() != "") childSetText("support", grid->getSupportUrl());
if (grid->getRegisterUrl() != "") childSetText("register", grid->getRegisterUrl());
if (grid->getPasswordUrl() != "") childSetText("password", grid->getPasswordUrl());
if (grid->getSearchUrl() != "") childSetText("search", grid->getSearchUrl());
}
else
{
LLNotifications::instance().add("GridInfoError");
}
if (cleanupGrid) delete grid;
}
开发者ID:kow,项目名称:pleiaviewer,代码行数:53,代码来源:floatergridmanager.cpp
示例19: childGetValue
void LLPanelDirFindAll::search(const std::string& search_text)
{
BOOL inc_pg = childGetValue("incpg").asBoolean();
BOOL inc_mature = childGetValue("incmature").asBoolean();
BOOL inc_adult = childGetValue("incadult").asBoolean();
if (!(inc_pg || inc_mature || inc_adult))
{
LLNotificationsUtil::add("NoContentToSearch");
return;
}
if (!search_text.empty())
{
// Check whether or not we're on the old or web search All -- MC
bool is_web = false;
LLPanel* tabs_panel = mFloaterDirectory->getChild<LLTabContainer>("Directory Tabs")->getCurrentPanel();
if (tabs_panel)
{
is_web = tabs_panel->getName() == "find_all_panel";
}
else
{
llwarns << "search panel not found! How can this be?!" << llendl;
}
std::string selected_collection = childGetValue( "Category" ).asString();
std::string url = buildSearchURL(search_text, selected_collection, inc_pg, inc_mature, inc_adult, is_web);
if (mWebBrowser)
{
mWebBrowser->navigateTo(url);
}
}
else
{
// empty search text
navigateToDefaultPage();
}
childSetText("search_editor", search_text);
}
开发者ID:cry0,项目名称:SingularityViewer,代码行数:40,代码来源:llpaneldirfind.cpp
示例20: childGetValue
void LLPanelInput::apply()
{
// any cancel after this point will use these new values
mPreAdjustFOV = childGetValue("camera_fov").asReal();
mPreAdjustCameraOffsetScale = childGetValue("camera_offset_scale").asReal();
gSavedSettings.setF32("MouseSensitivity", childGetValue("mouse_sensitivity").asReal());
gSavedSettings.setBOOL("AutomaticFly", childGetValue("automatic_fly"));
gSavedSettings.setBOOL("InvertMouse", childGetValue("invert_mouse"));
gSavedSettings.setBOOL("EditCameraMovement", childGetValue("edit_camera_movement"));
gSavedSettings.setBOOL("AppearanceCameraMovement", childGetValue("appearance_camera_movement"));
gSavedSettings.setF32("CameraAngle", mPreAdjustFOV);
gSavedSettings.setBOOL("FirstPersonAvatarVisible", childGetValue("first_person_avatar_visible"));
}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:14,代码来源:llpanelinput.cpp
注:本文中的childGetValue函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论