本文整理汇总了C++中childDisable函数的典型用法代码示例。如果您正苦于以下问题:C++ childDisable函数的具体用法?C++ childDisable怎么用?C++ childDisable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了childDisable函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: childSetValue
BOOL LLPanelDirLand::postBuild()
{
LLPanelDirBrowser::postBuild();
childSetValue("type", gSavedSettings.getString("FindLandType"));
bool adult_enabled = gAgent.canAccessAdult();
bool mature_enabled = gAgent.canAccessMature();
childSetVisible("incpg", true);
if (!mature_enabled)
{
childSetValue("incmature", FALSE);
childDisable("incmature");
}
if (!adult_enabled)
{
childSetValue("incadult", FALSE);
childDisable("incadult");
}
childSetCommitCallback("pricecheck", onCommitPrice, this);
childSetCommitCallback("areacheck", onCommitArea, this);
childSetValue("priceedit", gStatusBar->getBalance());
childSetEnabled("priceedit", gSavedSettings.getBOOL("FindLandPrice"));
childSetPrevalidate("priceedit", LLLineEditor::prevalidateNonNegativeS32);
childSetEnabled("areaedit", gSavedSettings.getBOOL("FindLandArea"));
childSetPrevalidate("areaedit", LLLineEditor::prevalidateNonNegativeS32);
childSetAction("Search", onClickSearchCore, this);
setDefaultBtn("Search");
childSetTextArg("land", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol());
childSetTextArg("pricecheck_symbol", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol());
childSetLabelArg("pricecheck", "[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol());
mCurrentSortColumn = "per_meter";
LLScrollListCtrl* results = getChild<LLScrollListCtrl>("results");
if (results)
{
results->setSortChangedCallback(boost::bind(&LLPanelDirLand::onClickSort,this));
results->sortByColumn(mCurrentSortColumn,mCurrentSortAscending);
LLStringUtil::format_map_t args;
args["[CURRENCY]"] = gHippoGridManager->getConnectedGrid()->getCurrencySymbol();
int n = results->getNumColumns();
for (int i=0; i<n; i++) {
LLScrollListColumn *col = results->getColumn(i);
std::string label = col->mLabel;
LLStringUtil::format(label, args);
results->setColumnLabel(col->mName, label);
}
}
childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_LAND));
return TRUE;
}
示例2: childSetAction
BOOL LLPanelDirFind::postBuild()
{
LLPanelDirBrowser::postBuild();
childSetAction("back_btn", onClickBack, this);
childSetAction("home_btn", onClickHome, this);
childSetAction("forward_btn", onClickForward, this);
childSetCommitCallback("search_editor", onCommitSearch, this);
childSetAction("search_btn", onClickSearch, this);
childSetAction("?", onClickHelp, this);
// showcase doesn't have maturity flags -- it's all PG
if (hasChild("incmature"))
{
// Teens don't get mature checkbox
if (gAgent.wantsPGOnly())
{
childSetValue("incmature", FALSE);
childSetValue("incadult", FALSE);
childHide("incmature");
childHide("incadult");
childSetValue("incpg", TRUE);
childDisable("incpg");
}
if (!gAgent.canAccessMature())
{
childSetValue("incmature", FALSE);
childDisable("incmature");
}
if (!gAgent.canAccessAdult())
{
childSetValue("incadult", FALSE);
childDisable("incadult");
}
}
mWebBrowser = getChild<LLMediaCtrl>(mBrowserName);
if (mWebBrowser)
{
mWebBrowser->addObserver(this);
// new pages appear in same window as the results page now
mWebBrowser->setOpenInInternalBrowser( false );
mWebBrowser->setOpenInExternalBrowser( false );
// need to handle inworldz:///app/ URLs for direct teleports
mWebBrowser->setTrusted( true );
// redirect 404 pages from S3 somewhere else
mWebBrowser->set404RedirectUrl( getString("redirect_404_url") );
navigateToDefaultPage();
}
return TRUE;
}
示例3: childSetCommitCallback
BOOL LLPanelRegionTools::postBuild()
{
childSetCommitCallback("region name", onChangeAnything, this);
childSetKeystrokeCallback("region name", onChangeSimName, this);
childSetPrevalidate("region name", &LLLineEditor::prevalidatePrintableNotPipe);
childSetCommitCallback("check prelude", onChangePrelude, this);
childSetCommitCallback("check fixed sun", onChangeAnything, this);
childSetCommitCallback("check reset home", onChangeAnything, this);
childSetCommitCallback("check visible", onChangeAnything, this);
childSetCommitCallback("check damage", onChangeAnything, this);
childSetCommitCallback("block dwell", onChangeAnything, this);
childSetCommitCallback("block terraform", onChangeAnything, this);
childSetCommitCallback("allow transfer", onChangeAnything, this);
childSetCommitCallback("is sandbox", onChangeAnything, this);
childSetAction("Bake Terrain", onBakeTerrain, this);
childSetAction("Revert Terrain", onRevertTerrain, this);
childSetAction("Swap Terrain", onSwapTerrain, this);
childSetCommitCallback("estate", onChangeAnything, this);
childSetPrevalidate("estate", &LLLineEditor::prevalidatePositiveS32);
childSetCommitCallback("parentestate", onChangeAnything, this);
childSetPrevalidate("parentestate", &LLLineEditor::prevalidatePositiveS32);
childDisable("parentestate");
childSetCommitCallback("gridposx", onChangeAnything, this);
childSetPrevalidate("gridposx", &LLLineEditor::prevalidatePositiveS32);
childDisable("gridposx");
childSetCommitCallback("gridposy", onChangeAnything, this);
childSetPrevalidate("gridposy", &LLLineEditor::prevalidatePositiveS32);
childDisable("gridposy");
childSetCommitCallback("redirectx", onChangeAnything, this);
childSetPrevalidate("redirectx", &LLLineEditor::prevalidatePositiveS32);
childSetCommitCallback("redirecty", onChangeAnything, this);
childSetPrevalidate("redirecty", &LLLineEditor::prevalidatePositiveS32);
childSetCommitCallback("billable factor", onChangeAnything, this);
childSetCommitCallback("land cost", onChangeAnything, this);
childSetAction("Refresh", onRefresh, this);
childSetAction("Apply", onApplyChanges, this);
childSetAction("Select Region", onSelectRegion, this);
childSetAction("Autosave now", onSaveState, this);
return TRUE;
}
示例4: childSetLabelArg
//-----------------------------------------------------------------------------
// postBuild()
//-----------------------------------------------------------------------------
BOOL LLFloaterImagePreview::postBuild()
{
if (!LLFloaterNameDesc::postBuild())
{
return FALSE;
}
childSetLabelArg("ok_btn", "[UPLOADFEE]", gHippoGridManager->getConnectedGrid()->getUploadFee());
childSetAction("ok_btn", onBtnOK, this);
LLCtrlSelectionInterface* iface = childGetSelectionInterface("clothing_type_combo");
if (iface)
{
iface->selectFirstItem();
}
childSetCommitCallback("clothing_type_combo", onPreviewTypeCommit, this);
mPreviewRect.set(PREVIEW_HPAD,
PREVIEW_TEXTURE_HEIGHT,
getRect().getWidth() - PREVIEW_HPAD,
PREVIEW_HPAD + PREF_BUTTON_HEIGHT + PREVIEW_HPAD);
mPreviewImageRect.set(0.f, 1.f, 1.f, 0.f);
childHide("bad_image_text");
if (mRawImagep.notNull() && gAgent.getRegion() != NULL)
{
mAvatarPreview = new LLImagePreviewAvatar(256, 256);
mAvatarPreview->setPreviewTarget("mPelvis", "mUpperBodyMesh0", mRawImagep, 2.f, FALSE);
mSculptedPreview = new LLImagePreviewSculpted(256, 256);
mSculptedPreview->setPreviewTarget(mRawImagep, 2.0f);
if (mRawImagep->getWidth() * mRawImagep->getHeight () <= LL_IMAGE_REZ_LOSSLESS_CUTOFF * LL_IMAGE_REZ_LOSSLESS_CUTOFF)
childEnable("lossless_check");
// <edit>
gSavedSettings.setBOOL("TemporaryUpload",FALSE);
childSetValue("temp_check",FALSE);
// </edit>
}
else
{
mAvatarPreview = NULL;
mSculptedPreview = NULL;
childShow("bad_image_text");
childDisable("clothing_type_combo");
childDisable("ok_btn");
}
return TRUE;
}
示例5: LLFloater
LLFloaterBuy::LLFloaterBuy()
: LLFloater(std::string("floater_buy_object"), std::string("FloaterBuyRect"), LLStringUtil::null)
{
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_buy_object.xml");
childDisable("object_list");
childDisable("item_list");
childSetAction("cancel_btn", onClickCancel, this);
childSetAction("buy_btn", onClickBuy, this);
setDefaultBtn("cancel_btn"); // to avoid accidental buy (SL-43130)
}
示例6: childEnable
void LLPanelNetwork::refresh()
{
if (childGetValue("speed_rez_check").asBoolean())
{
childEnable("speed_rez_interval_spinner");
childEnable("speed_rez_seconds_text");
}
else
{
childDisable("speed_rez_interval_spinner");
childDisable("speed_rez_seconds_text");
}
}
示例7: childEnable
void LLPrefsIMImpl::enableHistory()
{
if (childGetValue("log_instant_messages").asBoolean() || childGetValue("log_chat").asBoolean())
{
childEnable("log_show_history");
childEnable("log_path_button");
}
else
{
childDisable("log_show_history");
childDisable("log_path_button");
}
}
示例8: childSetValue
void LLPrefsAscentSysImpl::cancel()
{
//General -----------------------------------------------------------------------------
childSetValue("double_click_teleport_check", mDoubleClickTeleport);
childSetValue("center_after_teleport_check", mResetCameraAfterTP);
childSetValue("offset_teleport_check", mOffsetTPByUserHeight);
childSetValue("preview_anim_in_world_check", mPreviewAnimInWorld);
childSetValue("save_scripts_as_mono_check", mSaveScriptsAsMono);
childSetValue("always_rez_in_group_check", mAlwaysRezInGroup);
//Chat --------------------------------------------------------------------------------
childSetValue("hide_notifications_in_chat_check", mHideNotificationsInChat);
childSetValue("play_typing_sound_check", mPlayTypingSound);
childSetValue("hide_typing_check", mHideTypingNotification);
childSetValue("seconds_in_chat_and_ims_check", mSecondsInChatAndIMs);
childSetValue("allow_mu_pose_check", mEnableMUPose);
childSetValue("close_ooc_check", mEnableOOCAutoClose);
//Show Links
//Time Format
//Date Format
childSetValue("seconds_in_chat_and_ims_check", mEnableOOCAutoClose);
//Save Performance --------------------------------------------------------------------
childSetValue("fetch_inventory_on_login_check", mFetchInventoryOnLogin);
childSetValue("enable_wind", mEnableLLWind);
childSetValue("enable_clouds", mEnableClouds);
childSetValue("enable_classic_clouds", mEnableClassicClouds);
childSetValue("speed_rez_check", mSpeedRez);
if (mSpeedRez)
{
childEnable("speed_rez_interval");
childEnable("speed_rez_seconds");
}
else
{
childDisable("speed_rez_interval");
childDisable("speed_rez_seconds");
}
//Command Line ------------------------------------------------------------------------
//Privacy -----------------------------------------------------------------------------
childSetValue("broadcast_viewer_effects", mBroadcastViewerEffects);
childSetValue("disable_point_at_and_beams_check", mDisablePointAtAndBeam);
childSetValue("private_look_at_check", mPrivateLookAt);
childSetValue("revoke_perms_on_stand_up_check", mRevokePermsOnStandUp);
childSetValue("enable_clouds", mEnableClouds);
childSetValue("enable_classic_clouds", mEnableClassicClouds);
gLLWindEnabled = mEnableLLWind;
}
示例9: childDisable
void LLFloaterAvatarPicker::populateNearMe()
{
BOOL all_loaded = TRUE;
BOOL empty = TRUE;
LLScrollListCtrl* near_me_scroller = getChild<LLScrollListCtrl>("NearMe");
near_me_scroller->deleteAllItems();
std::vector<LLUUID> avatar_ids;
LLWorld::getInstance()->getAvatars(&avatar_ids, NULL, gAgent.getPositionGlobal(), gSavedSettings.getF32("NearMeRange"));
for(U32 i=0; i<avatar_ids.size(); i++)
{
LLUUID& av = avatar_ids[i];
if(av == gAgent.getID()) continue;
LLSD element;
element["id"] = av; // value
std::string fullname;
if(!gCacheName->getFullName(av, fullname))
{
element["columns"][0]["value"] = LLCacheName::getDefaultName();
all_loaded = FALSE;
}
else
{
element["columns"][0]["value"] = fullname;
}
near_me_scroller->addElement(element);
empty = FALSE;
}
if (empty)
{
childDisable("NearMe");
childDisable("Select");
near_me_scroller->addCommentText(getString("no_one_near"));
}
else
{
childEnable("NearMe");
childEnable("Select");
near_me_scroller->selectFirstItem();
onList(near_me_scroller, this);
near_me_scroller->setFocus(TRUE);
}
if (all_loaded)
{
mNearMeListComplete = TRUE;
}
}
示例10: childSetValue
BOOL LLPanelDirClassified::postBuild()
{
LLPanelDirBrowser::postBuild();
// Teens don't get mature checkbox
if (gAgent.wantsPGOnly())
{
childSetValue("incmature", FALSE);
childSetValue("incadult", FALSE);
childHide("incmature");
childHide("incadult");
childSetValue("incpg", TRUE);
childDisable("incpg");
}
bool mature_enabled = gAgent.canAccessMature();
if (!mature_enabled)
{
childSetValue("incmature", FALSE);
childDisable("incmature");
}
bool adult_enabled = gAgent.canAccessAdult();
if (!adult_enabled)
{
childSetValue("incadult", FALSE);
childDisable("incadult");
}
// 0 or 3+ character searches allowed, exciting
childSetKeystrokeCallback("name", onKeystrokeNameClassified, this);
childSetAction("Search", onClickSearchCore, this);
childSetAction("Browse", onClickSearchCore, this);
setDefaultBtn( "Browse" );
childSetAction("Place an Ad...", onClickCreateNewClassified, this);
childSetAction("Delete", onClickDelete, this);
childDisable("Delete");
childHide("Delete");
// Don't do this every time we open find, it's expensive; require clicking 'search'
//requestClassified();
childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_CLASSIFIEDS));
return TRUE;
}
示例11: childEnable
void LLPanelDirEvents::onDateModeCallback()
{
if (childGetValue("date_mode").asString() == "date")
{
childEnable("Today");
childEnable(">>");
childEnable("<<");
}
else
{
childDisable("Today");
childDisable(">>");
childDisable("<<");
}
}
示例12: childSetAction
BOOL LLFloaterAvatarPicker::postBuild()
{
getChild<LLLineEditor>("Edit")->setKeystrokeCallback( boost::bind(&LLFloaterAvatarPicker::editKeystroke, this, _1, _2),NULL);
childSetAction("Find", boost::bind(&LLFloaterAvatarPicker::onBtnFind, this));
childDisable("Find");
childSetAction("Refresh", boost::bind(&LLFloaterAvatarPicker::onBtnRefresh, this));
getChild<LLUICtrl>("near_me_range")->setCommitCallback(boost::bind(&LLFloaterAvatarPicker::onRangeAdjust, this));
LLScrollListCtrl* searchresults = getChild<LLScrollListCtrl>("SearchResults");
searchresults->setDoubleClickCallback( boost::bind(&LLFloaterAvatarPicker::onBtnSelect, this));
searchresults->setCommitCallback(boost::bind(&LLFloaterAvatarPicker::onList, this));
childDisable("SearchResults");
LLScrollListCtrl* nearme = getChild<LLScrollListCtrl>("NearMe");
nearme->setDoubleClickCallback(boost::bind(&LLFloaterAvatarPicker::onBtnSelect, this));
nearme->setCommitCallback(boost::bind(&LLFloaterAvatarPicker::onList, this));
LLScrollListCtrl* friends = getChild<LLScrollListCtrl>("Friends");
friends->setDoubleClickCallback(boost::bind(&LLFloaterAvatarPicker::onBtnSelect, this));
getChild<LLUICtrl>("Friends")->setCommitCallback(boost::bind(&LLFloaterAvatarPicker::onList, this));
childSetAction("ok_btn", boost::bind(&LLFloaterAvatarPicker::onBtnSelect, this));
childDisable("ok_btn");
childSetAction("cancel_btn", boost::bind(&LLFloaterAvatarPicker::onBtnClose, this));
childSetFocus("Edit");
LLPanel* search_panel = getChild<LLPanel>("SearchPanel");
if (search_panel)
{
// Start searching when Return is pressed in the line editor.
search_panel->setDefaultBtn("Find");
}
getChild<LLScrollListCtrl>("SearchResults")->setCommentText(getString("no_results"));
getChild<LLTabContainer>("ResidentChooserTabs")->setCommitCallback(
boost::bind(&LLFloaterAvatarPicker::onTabChanged, this));
setAllowMultiple(FALSE);
center();
populateFriend();
return TRUE;
}
示例13: childSetKeystrokeCallback
BOOL LLFloaterAvatarPicker::postBuild()
{
childSetKeystrokeCallback("Edit", editKeystroke, this);
childSetKeystrokeCallback("EditUUID", editKeystroke, this);
childSetAction("Find", onBtnFind, this);
childDisable("Find");
childSetAction("Refresh", onBtnRefresh, this);
childSetCommitCallback("near_me_range", onRangeAdjust, this);
childSetDoubleClickCallback("SearchResults", onBtnSelect);
childSetDoubleClickCallback("NearMe", onBtnSelect);
childSetCommitCallback("SearchResults", onList, this);
childSetCommitCallback("NearMe", onList, this);
childDisable("SearchResults");
childSetAction("Select", onBtnSelect, this);
childDisable("Select");
childSetAction("Cancel", onBtnClose, this);
childSetFocus("Edit");
LLPanel* search_panel = getChild<LLPanel>("SearchPanel");
if (search_panel)
{
// Start searching when Return is pressed in the line editor.
search_panel->setDefaultBtn("Find");
}
getChild<LLScrollListCtrl>("SearchResults")->addCommentText(getString("no_results"));
/*LLInventoryPanel* inventory_panel = getChild<LLInventoryPanel>("InventoryPanel");
inventory_panel->setFilterTypes(0x1 << LLInventoryType::IT_CALLINGCARD);
inventory_panel->setFollowsAll();
inventory_panel->setShowFolderState(LLInventoryFilter::SHOW_NON_EMPTY_FOLDERS);
inventory_panel->openDefaultFolderForType(LLAssetType::AT_CALLINGCARD);
inventory_panel->setSelectCallback(LLFloaterAvatarPicker::onCallingCardSelectionChange, this);*/
init_cards = FALSE;
childSetTabChangeCallback("ResidentChooserTabs", "SearchPanel", onTabChanged, this);
childSetTabChangeCallback("ResidentChooserTabs", "CallingCardsPanel", onTabChanged, this);
childSetTabChangeCallback("ResidentChooserTabs", "NearMePanel", onTabChanged, this);
childSetTabChangeCallback("ResidentChooserTabs", "KeyPanel", onTabChanged, this);
setAllowMultiple(FALSE);
return TRUE;
}
示例14: childSetCommitCallback
BOOL LLPanelDirEvents::postBuild()
{
LLPanelDirBrowser::postBuild();
childSetCommitCallback("date_mode", onDateModeCallback, this);
childSetAction("<<", onBackBtn, this);
childSetAction(">>", onForwardBtn, this);
childSetAction("Today", onClickToday, this);
childSetCommitCallback("mature", onCommitMature, this);
childSetAction("Search", LLPanelDirBrowser::onClickSearchCore, this);
setDefaultBtn("Search");
childSetAction("Delete", onClickDelete, this);
childDisable("Delete");
childHide("Delete");
onDateModeCallback(NULL, this);
mCurrentSortColumn = "time";
if (!gDisplayEventHack)
{
setDay(0); // for today
//performQuery(); // Temporary change to help DB - Sabin
}
gDisplayEventHack = FALSE;
return TRUE;
}
示例15: childSetKeystrokeCallback
BOOL LLPanelDirPlaces::postBuild()
{
LLPanelDirBrowser::postBuild();
childSetKeystrokeCallback("name", &LLPanelDirBrowser::onKeystrokeName, this);
childSetAction("Search", &LLPanelDirBrowser::onClickSearchCore, this);
childDisable("Search");
mCurrentSortColumn = "dwell";
mCurrentSortAscending = FALSE;
if (gAgent.getAgentAccess().isInTransition())
{
// during the AO transition, this combo has an Adult item.
// Post-transition, it goes away. We can remove this conditional
// after the transition and just use the "else" clause.
childSetVisible("Category_Adult", true);
childSetEnabled("Category_Adult", true);
}
else
{
// this is the code that should be preserved post-transition
childSetVisible("Category", true);
childSetEnabled("Category", true);
}
childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_SIMS));
// Don't prepopulate the places list, as it hurts the database as of 2006-12-04. JC
// initialQuery();
return TRUE;
}