diff options
Diffstat (limited to 'linden/indra/newview/llfloaterbuyland.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterbuyland.cpp | 164 |
1 files changed, 79 insertions, 85 deletions
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp index 7681da5..2786a34 100644 --- a/linden/indra/newview/llfloaterbuyland.cpp +++ b/linden/indra/newview/llfloaterbuyland.cpp | |||
@@ -390,13 +390,13 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
390 | 390 | ||
391 | if (!mParcelValid) | 391 | if (!mParcelValid) |
392 | { | 392 | { |
393 | mCannotBuyReason= childGetText("no_land_selected"); | 393 | mCannotBuyReason = getString("no_land_selected"); |
394 | return; | 394 | return; |
395 | } | 395 | } |
396 | 396 | ||
397 | if (mParcel->getMultipleOwners()) | 397 | if (mParcel->getMultipleOwners()) |
398 | { | 398 | { |
399 | mCannotBuyReason = childGetText("multiple_parcels_selected"); | 399 | mCannotBuyReason = getString("multiple_parcels_selected"); |
400 | return; | 400 | return; |
401 | } | 401 | } |
402 | 402 | ||
@@ -454,13 +454,13 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
454 | bool haveEnoughCash = mParcelPrice <= mAgentCashBalance; | 454 | bool haveEnoughCash = mParcelPrice <= mAgentCashBalance; |
455 | S32 cashBuy = haveEnoughCash ? 0 : (mParcelPrice - mAgentCashBalance); | 455 | S32 cashBuy = haveEnoughCash ? 0 : (mParcelPrice - mAgentCashBalance); |
456 | mCurrency.setAmount(cashBuy, true); | 456 | mCurrency.setAmount(cashBuy, true); |
457 | mCurrency.setZeroMessage(haveEnoughCash ? childGetText("none_needed") : ""); | 457 | mCurrency.setZeroMessage(haveEnoughCash ? getString("none_needed") : ""); |
458 | 458 | ||
459 | // checks that we can buy the land | 459 | // checks that we can buy the land |
460 | 460 | ||
461 | if(mIsForGroup && !gAgent.hasPowerInActiveGroup(GP_LAND_DEED)) | 461 | if(mIsForGroup && !gAgent.hasPowerInActiveGroup(GP_LAND_DEED)) |
462 | { | 462 | { |
463 | mCannotBuyReason = childGetText("cant_buy_for_group"); | 463 | mCannotBuyReason = getString("cant_buy_for_group"); |
464 | return; | 464 | return; |
465 | } | 465 | } |
466 | 466 | ||
@@ -474,7 +474,7 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
474 | || (mParcelPrice == 0 && authorizedBuyer.isNull())) | 474 | || (mParcelPrice == 0 && authorizedBuyer.isNull())) |
475 | { | 475 | { |
476 | 476 | ||
477 | mCannotBuyReason = childGetText("parcel_not_for_sale"); | 477 | mCannotBuyReason = getString("parcel_not_for_sale"); |
478 | return; | 478 | return; |
479 | } | 479 | } |
480 | 480 | ||
@@ -482,18 +482,18 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
482 | { | 482 | { |
483 | if (mIsForGroup) | 483 | if (mIsForGroup) |
484 | { | 484 | { |
485 | mCannotBuyReason = childGetText("group_already_owns"); | 485 | mCannotBuyReason = getString("group_already_owns"); |
486 | } | 486 | } |
487 | else | 487 | else |
488 | { | 488 | { |
489 | mCannotBuyReason = childGetText("you_already_own"); | 489 | mCannotBuyReason = getString("you_already_own"); |
490 | } | 490 | } |
491 | return; | 491 | return; |
492 | } | 492 | } |
493 | 493 | ||
494 | if (!authorizedBuyer.isNull() && buyer != authorizedBuyer) | 494 | if (!authorizedBuyer.isNull() && buyer != authorizedBuyer) |
495 | { | 495 | { |
496 | mCannotBuyReason = childGetText("set_to_sell_to_other"); | 496 | mCannotBuyReason = getString("set_to_sell_to_other"); |
497 | return; | 497 | return; |
498 | } | 498 | } |
499 | } | 499 | } |
@@ -501,14 +501,14 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
501 | { | 501 | { |
502 | if (mParcelActualArea == 0) | 502 | if (mParcelActualArea == 0) |
503 | { | 503 | { |
504 | mCannotBuyReason = childGetText("no_public_land"); | 504 | mCannotBuyReason = getString("no_public_land"); |
505 | return; | 505 | return; |
506 | } | 506 | } |
507 | 507 | ||
508 | if (mParcel->hasOthersSelected()) | 508 | if (mParcel->hasOthersSelected()) |
509 | { | 509 | { |
510 | // Policy: Must not have someone else's land selected | 510 | // Policy: Must not have someone else's land selected |
511 | mCannotBuyReason = childGetText("not_owned_by_you"); | 511 | mCannotBuyReason = getString("not_owned_by_you"); |
512 | return; | 512 | return; |
513 | } | 513 | } |
514 | } | 514 | } |
@@ -521,39 +521,39 @@ void LLFloaterBuyLandUI::updateCovenantInfo() | |||
521 | LLViewerRegion* region = gParcelMgr->getSelectionRegion(); | 521 | LLViewerRegion* region = gParcelMgr->getSelectionRegion(); |
522 | if(!region) return; | 522 | if(!region) return; |
523 | 523 | ||
524 | LLTextBox* region_name = (LLTextBox*)getChildByName("region_name_text"); | 524 | LLTextBox* region_name = getChild<LLTextBox>("region_name_text"); |
525 | if (region_name) | 525 | if (region_name) |
526 | { | 526 | { |
527 | region_name->setText(region->getName()); | 527 | region_name->setText(region->getName()); |
528 | } | 528 | } |
529 | 529 | ||
530 | LLTextBox* resellable_clause = (LLTextBox*)getChildByName("resellable_clause"); | 530 | LLTextBox* resellable_clause = getChild<LLTextBox>("resellable_clause"); |
531 | if (resellable_clause) | 531 | if (resellable_clause) |
532 | { | 532 | { |
533 | if (region->getRegionFlags() & REGION_FLAGS_BLOCK_LAND_RESELL) | 533 | if (region->getRegionFlags() & REGION_FLAGS_BLOCK_LAND_RESELL) |
534 | { | 534 | { |
535 | resellable_clause->setText(childGetText("can_not_resell")); | 535 | resellable_clause->setText(getString("can_not_resell")); |
536 | } | 536 | } |
537 | else | 537 | else |
538 | { | 538 | { |
539 | resellable_clause->setText(childGetText("can_resell")); | 539 | resellable_clause->setText(getString("can_resell")); |
540 | } | 540 | } |
541 | } | 541 | } |
542 | 542 | ||
543 | LLTextBox* changeable_clause = (LLTextBox*)getChildByName("changeable_clause"); | 543 | LLTextBox* changeable_clause = getChild<LLTextBox>("changeable_clause"); |
544 | if (changeable_clause) | 544 | if (changeable_clause) |
545 | { | 545 | { |
546 | if (region->getRegionFlags() & REGION_FLAGS_ALLOW_PARCEL_CHANGES) | 546 | if (region->getRegionFlags() & REGION_FLAGS_ALLOW_PARCEL_CHANGES) |
547 | { | 547 | { |
548 | changeable_clause->setText(childGetText("can_change")); | 548 | changeable_clause->setText(getString("can_change")); |
549 | } | 549 | } |
550 | else | 550 | else |
551 | { | 551 | { |
552 | changeable_clause->setText(childGetText("can_not_change")); | 552 | changeable_clause->setText(getString("can_not_change")); |
553 | } | 553 | } |
554 | } | 554 | } |
555 | 555 | ||
556 | LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)getChildByName("agree_covenant"); | 556 | LLCheckBoxCtrl* check = getChild<LLCheckBoxCtrl>("agree_covenant"); |
557 | if(check) | 557 | if(check) |
558 | { | 558 | { |
559 | check->set(false); | 559 | check->set(false); |
@@ -562,7 +562,7 @@ void LLFloaterBuyLandUI::updateCovenantInfo() | |||
562 | check->setCommitCallback(onChangeAgreeCovenant); | 562 | check->setCommitCallback(onChangeAgreeCovenant); |
563 | } | 563 | } |
564 | 564 | ||
565 | LLTextBox* box = (LLTextBox*)getChildByName("covenant_text"); | 565 | LLTextBox* box = getChild<LLTextBox>("covenant_text"); |
566 | if(box) | 566 | if(box) |
567 | { | 567 | { |
568 | box->setVisible(FALSE); | 568 | box->setVisible(FALSE); |
@@ -589,14 +589,14 @@ void LLFloaterBuyLandUI::onChangeAgreeCovenant(LLUICtrl* ctrl, void* user_data) | |||
589 | 589 | ||
590 | void LLFloaterBuyLandUI::updateCovenantText(const std::string &string, const LLUUID& asset_id) | 590 | void LLFloaterBuyLandUI::updateCovenantText(const std::string &string, const LLUUID& asset_id) |
591 | { | 591 | { |
592 | LLViewerTextEditor* editor = (LLViewerTextEditor*)getChildByName("covenant_editor"); | 592 | LLViewerTextEditor* editor = getChild<LLViewerTextEditor>("covenant_editor"); |
593 | if (editor) | 593 | if (editor) |
594 | { | 594 | { |
595 | editor->setHandleEditKeysDirectly(FALSE); | 595 | editor->setHandleEditKeysDirectly(FALSE); |
596 | editor->setText(string); | 596 | editor->setText(string); |
597 | 597 | ||
598 | LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)getChildByName("agree_covenant"); | 598 | LLCheckBoxCtrl* check = getChild<LLCheckBoxCtrl>("agree_covenant"); |
599 | LLTextBox* box = (LLTextBox*)getChildByName("covenant_text"); | 599 | LLTextBox* box = getChild<LLTextBox>("covenant_text"); |
600 | if(check && box) | 600 | if(check && box) |
601 | { | 601 | { |
602 | if (asset_id.isNull()) | 602 | if (asset_id.isNull()) |
@@ -621,19 +621,19 @@ void LLFloaterBuyLandUI::updateCovenantText(const std::string &string, const LLU | |||
621 | 621 | ||
622 | void LLFloaterBuyLandUI::updateEstateName(const std::string& name) | 622 | void LLFloaterBuyLandUI::updateEstateName(const std::string& name) |
623 | { | 623 | { |
624 | LLTextBox* box = (LLTextBox*)getChildByName("estate_name_text"); | 624 | LLTextBox* box = getChild<LLTextBox>("estate_name_text"); |
625 | if (box) box->setText(name); | 625 | if (box) box->setText(name); |
626 | } | 626 | } |
627 | 627 | ||
628 | void LLFloaterBuyLandUI::updateLastModified(const std::string& text) | 628 | void LLFloaterBuyLandUI::updateLastModified(const std::string& text) |
629 | { | 629 | { |
630 | LLTextBox* editor = (LLTextBox*)getChildByName("covenant_timestamp_text"); | 630 | LLTextBox* editor = getChild<LLTextBox>("covenant_timestamp_text"); |
631 | if (editor) editor->setText(text); | 631 | if (editor) editor->setText(text); |
632 | } | 632 | } |
633 | 633 | ||
634 | void LLFloaterBuyLandUI::updateEstateOwnerName(const std::string& name) | 634 | void LLFloaterBuyLandUI::updateEstateOwnerName(const std::string& name) |
635 | { | 635 | { |
636 | LLTextBox* box = (LLTextBox*)getChildByName("estate_owner_text"); | 636 | LLTextBox* box = getChild<LLTextBox>("estate_owner_text"); |
637 | if (box) box->setText(name); | 637 | if (box) box->setText(name); |
638 | } | 638 | } |
639 | 639 | ||
@@ -819,18 +819,11 @@ void LLFloaterBuyLandUI::updateNames() | |||
819 | } | 819 | } |
820 | else if (parcelp->getIsGroupOwned()) | 820 | else if (parcelp->getIsGroupOwned()) |
821 | { | 821 | { |
822 | char groupName[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 822 | gCacheName->getGroupName(parcelp->getGroupID(), mParcelSellerName); |
823 | |||
824 | gCacheName->getGroupName(parcelp->getGroupID(), &groupName[0]); | ||
825 | mParcelSellerName = groupName; | ||
826 | } | 823 | } |
827 | else | 824 | else |
828 | { | 825 | { |
829 | char firstName[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | 826 | gCacheName->getFullName(parcelp->getOwnerID(), mParcelSellerName); |
830 | char lastName[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ | ||
831 | |||
832 | gCacheName->getName(parcelp->getOwnerID(), firstName, lastName); | ||
833 | mParcelSellerName = llformat("%s %s", firstName, lastName); | ||
834 | } | 827 | } |
835 | } | 828 | } |
836 | 829 | ||
@@ -908,7 +901,7 @@ void LLFloaterBuyLandUI::tellUserError( | |||
908 | { | 901 | { |
909 | mCanBuy = false; | 902 | mCanBuy = false; |
910 | mCannotBuyIsError = true; | 903 | mCannotBuyIsError = true; |
911 | mCannotBuyReason = childGetText("fetching_error"); | 904 | mCannotBuyReason = getString("fetching_error"); |
912 | mCannotBuyReason += message; | 905 | mCannotBuyReason += message; |
913 | mCannotBuyURI = uri; | 906 | mCannotBuyURI = uri; |
914 | } | 907 | } |
@@ -998,17 +991,15 @@ void LLFloaterBuyLandUI::refreshUI() | |||
998 | mParcelValid ? mParcelSnapshot : LLUUID::null); | 991 | mParcelValid ? mParcelSnapshot : LLUUID::null); |
999 | } | 992 | } |
1000 | 993 | ||
1001 | |||
1002 | |||
1003 | if (mParcelValid) | 994 | if (mParcelValid) |
1004 | { | 995 | { |
1005 | childSetText("info_parcel", mParcelLocation); | 996 | childSetText("info_parcel", mParcelLocation); |
1006 | 997 | ||
1007 | 998 | LLString::format_map_t string_args; | |
1008 | childSetTextArg("meters_supports_object", "[AMOUNT]", llformat("%d", mParcelActualArea)); | 999 | string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); |
1009 | childSetTextArg("meters_supports_object", "[AMOUNT2]", llformat("%d", mParcelSupportedObjects)); | 1000 | string_args["[AMOUNT2]"] = llformat("%d", mParcelSupportedObjects); |
1010 | 1001 | ||
1011 | childSetText("info_size", childGetText("meters_supports_object")); | 1002 | childSetText("info_size", getString("meters_supports_object", string_args)); |
1012 | 1003 | ||
1013 | 1004 | ||
1014 | childSetText("info_price", | 1005 | childSetText("info_price", |
@@ -1022,7 +1013,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1022 | } | 1013 | } |
1023 | else | 1014 | else |
1024 | { | 1015 | { |
1025 | childSetText("info_parcel", childGetText("no_parcel_selected")); | 1016 | childSetText("info_parcel", getString("no_parcel_selected")); |
1026 | childSetText("info_size", LLString::null); | 1017 | childSetText("info_size", LLString::null); |
1027 | childSetText("info_price", LLString::null); | 1018 | childSetText("info_price", LLString::null); |
1028 | } | 1019 | } |
@@ -1031,12 +1022,12 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1031 | mCanBuy | 1022 | mCanBuy |
1032 | ? | 1023 | ? |
1033 | mIsForGroup | 1024 | mIsForGroup |
1034 | ? childGetText("buying_for_group")//"Buying land for group:" | 1025 | ? getString("buying_for_group")//"Buying land for group:" |
1035 | : childGetText("buying_will")//"Buying this land will:" | 1026 | : getString("buying_will")//"Buying this land will:" |
1036 | : | 1027 | : |
1037 | mCannotBuyIsError | 1028 | mCannotBuyIsError |
1038 | ? childGetText("cannot_buy_now")//"Cannot buy now:" | 1029 | ? getString("cannot_buy_now")//"Cannot buy now:" |
1039 | : childGetText("not_for_sale")//"Not for sale:" | 1030 | : getString("not_for_sale")//"Not for sale:" |
1040 | 1031 | ||
1041 | ); | 1032 | ); |
1042 | } | 1033 | } |
@@ -1081,8 +1072,8 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1081 | childSetText("account_action", mSiteMembershipAction); | 1072 | childSetText("account_action", mSiteMembershipAction); |
1082 | childSetText("account_reason", | 1073 | childSetText("account_reason", |
1083 | mSiteMembershipUpgrade | 1074 | mSiteMembershipUpgrade |
1084 | ? childGetText("must_upgrade") | 1075 | ? getString("must_upgrade") |
1085 | : childGetText("cant_own_land") | 1076 | : getString("cant_own_land") |
1086 | ); | 1077 | ); |
1087 | 1078 | ||
1088 | LLComboBox* levels = LLUICtrlFactory::getComboBoxByName(this, "account_level"); | 1079 | LLComboBox* levels = LLUICtrlFactory::getComboBoxByName(this, "account_level"); |
@@ -1127,18 +1118,17 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1127 | 1118 | ||
1128 | if (mIsForGroup) | 1119 | if (mIsForGroup) |
1129 | { | 1120 | { |
1130 | childSetTextArg("insufficient_land_credits", "[GROUP]", LLString(gAgent.mGroupName)); | 1121 | LLString::format_map_t string_args; |
1122 | string_args["[GROUP]"] = LLString(gAgent.mGroupName); | ||
1131 | 1123 | ||
1132 | 1124 | message += getString("insufficient_land_credits", string_args); | |
1133 | message += childGetText("insufficient_land_credits"); | ||
1134 | 1125 | ||
1135 | } | 1126 | } |
1136 | else | 1127 | else |
1137 | { | 1128 | { |
1138 | 1129 | LLString::format_map_t string_args; | |
1139 | childSetTextArg("land_holdings", "[BUYER]", llformat("%d", mAgentCommittedTier)); | 1130 | string_args["[BUYER]"] = llformat("%d", mAgentCommittedTier); |
1140 | message += childGetText("land_holdings"); | 1131 | message += getString("land_holdings", string_args); |
1141 | |||
1142 | } | 1132 | } |
1143 | 1133 | ||
1144 | if (!mParcelValid) | 1134 | if (!mParcelValid) |
@@ -1147,21 +1137,24 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1147 | } | 1137 | } |
1148 | else if (mParcelBillableArea == mParcelActualArea) | 1138 | else if (mParcelBillableArea == mParcelActualArea) |
1149 | { | 1139 | { |
1150 | childSetTextArg("parcel_meters", "[AMOUNT]", llformat("%d", mParcelActualArea)); | 1140 | LLString::format_map_t string_args; |
1151 | message += childGetText("parcel_meters"); | 1141 | string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); |
1142 | message += getString("parcel_meters", string_args); | ||
1152 | } | 1143 | } |
1153 | else | 1144 | else |
1154 | { | 1145 | { |
1155 | 1146 | ||
1156 | if (mParcelBillableArea > mParcelActualArea) | 1147 | if (mParcelBillableArea > mParcelActualArea) |
1157 | { | 1148 | { |
1158 | childSetTextArg("premium_land", "[AMOUNT]", llformat("%d", mParcelBillableArea) ); | 1149 | LLString::format_map_t string_args; |
1159 | message += childGetText("premium_land"); | 1150 | string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea); |
1151 | message += getString("premium_land", string_args); | ||
1160 | } | 1152 | } |
1161 | else | 1153 | else |
1162 | { | 1154 | { |
1163 | childSetTextArg("discounted_land", "[AMOUNT]", llformat("%d", mParcelBillableArea) ); | 1155 | LLString::format_map_t string_args; |
1164 | message += childGetText("discounted_land"); | 1156 | string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea); |
1157 | message += getString("discounted_land", string_args); | ||
1165 | } | 1158 | } |
1166 | } | 1159 | } |
1167 | 1160 | ||
@@ -1208,35 +1201,36 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1208 | 1201 | ||
1209 | if (haveEnough) | 1202 | if (haveEnough) |
1210 | { | 1203 | { |
1211 | 1204 | LLString::format_map_t string_args; | |
1212 | childSetTextArg("have_enough_lindens", "[AMOUNT]", llformat("%d", mAgentCashBalance)); | 1205 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); |
1213 | childSetText("currency_reason", childGetText("have_enough_lindens")); | 1206 | |
1207 | childSetText("currency_reason", getString("have_enough_lindens", string_args)); | ||
1214 | } | 1208 | } |
1215 | else | 1209 | else |
1216 | { | 1210 | { |
1217 | childSetTextArg("not_enough_lindens", "[AMOUNT]", llformat("%d", mAgentCashBalance)); | 1211 | LLString::format_map_t string_args; |
1218 | childSetTextArg("not_enough_lindens", "[AMOUNT2]", llformat("%d", mParcelPrice - mAgentCashBalance)); | 1212 | string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); |
1213 | string_args["[AMOUNT2]"] = llformat("%d", mParcelPrice - mAgentCashBalance); | ||
1219 | 1214 | ||
1220 | childSetText("currency_reason", childGetText("not_enough_lindens")); | 1215 | childSetText("currency_reason", getString("not_enough_lindens", string_args)); |
1221 | 1216 | ||
1222 | childSetTextArg("currency_est", "[AMOUNT2]", llformat("%#.2f", mCurrency.getEstimate() / 100.0)); | 1217 | childSetTextArg("currency_est", "[AMOUNT2]", llformat("%#.2f", mCurrency.getEstimate() / 100.0)); |
1223 | |||
1224 | } | 1218 | } |
1225 | 1219 | ||
1226 | if (willHaveEnough) | 1220 | if (willHaveEnough) |
1227 | { | 1221 | { |
1222 | LLString::format_map_t string_args; | ||
1223 | string_args["[AMOUNT]"] = llformat("%d", finalBalance); | ||
1228 | 1224 | ||
1229 | childSetTextArg("balance_left", "[AMOUNT]", llformat("%d", finalBalance)); | 1225 | childSetText("currency_balance", getString("balance_left", string_args)); |
1230 | |||
1231 | childSetText("currency_balance", childGetText("balance_left")); | ||
1232 | 1226 | ||
1233 | } | 1227 | } |
1234 | else | 1228 | else |
1235 | { | 1229 | { |
1230 | LLString::format_map_t string_args; | ||
1231 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice - mAgentCashBalance); | ||
1236 | 1232 | ||
1237 | childSetTextArg("balance_needed", "[AMOUNT]", llformat("%d", mParcelPrice - mAgentCashBalance)); | 1233 | childSetText("currency_balance", getString("balance_needed", string_args)); |
1238 | |||
1239 | childSetText("currency_balance", childGetText("balance_needed")); | ||
1240 | 1234 | ||
1241 | } | 1235 | } |
1242 | 1236 | ||
@@ -1264,7 +1258,7 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1264 | 1258 | ||
1265 | 1259 | ||
1266 | bool agrees_to_covenant = false; | 1260 | bool agrees_to_covenant = false; |
1267 | LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)getChildByName("agree_covenant"); | 1261 | LLCheckBoxCtrl* check = getChild<LLCheckBoxCtrl>("agree_covenant"); |
1268 | if (check) | 1262 | if (check) |
1269 | { | 1263 | { |
1270 | agrees_to_covenant = check->get(); | 1264 | agrees_to_covenant = check->get(); |
@@ -1298,17 +1292,17 @@ void LLFloaterBuyLandUI::startBuyPreConfirm() | |||
1298 | } | 1292 | } |
1299 | if (mCurrency.getAmount() > 0) | 1293 | if (mCurrency.getAmount() > 0) |
1300 | { | 1294 | { |
1295 | LLString::format_map_t string_args; | ||
1296 | string_args["[AMOUNT]"] = llformat("%d", mCurrency.getAmount()); | ||
1297 | string_args["[AMOUNT2]"] = llformat("%#.2f", mCurrency.getEstimate() / 100.0); | ||
1301 | 1298 | ||
1302 | childSetTextArg("buy_for_US", "[AMOUNT]", llformat("%d", mCurrency.getAmount())); | 1299 | action += getString("buy_for_US", string_args); |
1303 | childSetTextArg("buy_for_US", "[AMOUNT2]", llformat("%#.2f", mCurrency.getEstimate() / 100.0)); | ||
1304 | |||
1305 | action += childGetText("buy_for_US"); | ||
1306 | } | 1300 | } |
1307 | 1301 | ||
1308 | childSetTextArg("pay_to_for_land", "[AMOUNT]", llformat("%d", mParcelPrice)); | 1302 | LLString::format_map_t string_args; |
1309 | childSetTextArg("pay_to_for_land", "[SELLER]", mParcelSellerName); | 1303 | string_args["[AMOUNT]"] = llformat("%d", mParcelPrice); |
1310 | 1304 | string_args["[SELLER]"] = mParcelSellerName; | |
1311 | action += childGetText("pay_to_for_land"); | 1305 | action += getString("pay_to_for_land", string_args); |
1312 | 1306 | ||
1313 | 1307 | ||
1314 | LLConfirmationManager::confirm(mSiteConfirm, | 1308 | LLConfirmationManager::confirm(mSiteConfirm, |
@@ -1322,7 +1316,7 @@ void LLFloaterBuyLandUI::startBuyPostConfirm(const std::string& password) | |||
1322 | runWebSitePrep(password); | 1316 | runWebSitePrep(password); |
1323 | 1317 | ||
1324 | mCanBuy = false; | 1318 | mCanBuy = false; |
1325 | mCannotBuyReason = childGetText("processing"); | 1319 | mCannotBuyReason = getString("processing"); |
1326 | refreshUI(); | 1320 | refreshUI(); |
1327 | } | 1321 | } |
1328 | 1322 | ||