aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbuyland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterbuyland.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp
index b596339..de14129 100644
--- a/linden/indra/newview/llfloaterbuyland.cpp
+++ b/linden/indra/newview/llfloaterbuyland.cpp
@@ -198,7 +198,7 @@ private:
198}; 198};
199 199
200static void cacheNameUpdateRefreshesBuyLand(const LLUUID&, 200static void cacheNameUpdateRefreshesBuyLand(const LLUUID&,
201 const char*, const char*, BOOL, void* data) 201 const std::string&, const std::string&, BOOL, void* data)
202{ 202{
203 LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(false); 203 LLFloaterBuyLandUI* ui = LLFloaterBuyLandUI::soleInstance(false);
204 if (ui) 204 if (ui)
@@ -321,7 +321,7 @@ LLFloaterBuyLandUI* LLFloaterBuyLandUI::soleInstance(bool createIfNeeded)
321#pragma warning(disable : 4355) 321#pragma warning(disable : 4355)
322#endif 322#endif
323LLFloaterBuyLandUI::LLFloaterBuyLandUI() 323LLFloaterBuyLandUI::LLFloaterBuyLandUI()
324: LLFloater("Buy Land"), 324: LLFloater(std::string("Buy Land")),
325 mParcel(0), 325 mParcel(0),
326 mBought(false), 326 mBought(false),
327 mParcelValid(false), mSiteValid(false), 327 mParcelValid(false), mSiteValid(false),
@@ -455,7 +455,7 @@ void LLFloaterBuyLandUI::updateParcelInfo()
455 bool haveEnoughCash = mParcelPrice <= mAgentCashBalance; 455 bool haveEnoughCash = mParcelPrice <= mAgentCashBalance;
456 S32 cashBuy = haveEnoughCash ? 0 : (mParcelPrice - mAgentCashBalance); 456 S32 cashBuy = haveEnoughCash ? 0 : (mParcelPrice - mAgentCashBalance);
457 mCurrency.setAmount(cashBuy, true); 457 mCurrency.setAmount(cashBuy, true);
458 mCurrency.setZeroMessage(haveEnoughCash ? getString("none_needed") : ""); 458 mCurrency.setZeroMessage(haveEnoughCash ? getString("none_needed") : LLStringUtil::null);
459 459
460 // checks that we can buy the land 460 // checks that we can buy the land
461 461
@@ -810,7 +810,7 @@ void LLFloaterBuyLandUI::updateNames()
810 810
811 if (!parcelp) 811 if (!parcelp)
812 { 812 {
813 mParcelSellerName = ""; 813 mParcelSellerName = LLStringUtil::null;
814 return; 814 return;
815 } 815 }
816 816
@@ -1014,7 +1014,7 @@ void LLFloaterBuyLandUI::refreshUI()
1014 { 1014 {
1015 childSetText("info_parcel", mParcelLocation); 1015 childSetText("info_parcel", mParcelLocation);
1016 1016
1017 LLString::format_map_t string_args; 1017 LLStringUtil::format_map_t string_args;
1018 string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); 1018 string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea);
1019 string_args["[AMOUNT2]"] = llformat("%d", mParcelSupportedObjects); 1019 string_args["[AMOUNT2]"] = llformat("%d", mParcelSupportedObjects);
1020 1020
@@ -1033,8 +1033,8 @@ void LLFloaterBuyLandUI::refreshUI()
1033 else 1033 else
1034 { 1034 {
1035 childSetText("info_parcel", getString("no_parcel_selected")); 1035 childSetText("info_parcel", getString("no_parcel_selected"));
1036 childSetText("info_size", LLString::null); 1036 childSetText("info_size", LLStringUtil::null);
1037 childSetText("info_price", LLString::null); 1037 childSetText("info_price", LLStringUtil::null);
1038 } 1038 }
1039 1039
1040 childSetText("info_action", 1040 childSetText("info_action",
@@ -1056,7 +1056,7 @@ void LLFloaterBuyLandUI::refreshUI()
1056 // error section 1056 // error section
1057 if (showingError) 1057 if (showingError)
1058 { 1058 {
1059 mChildren.setBadge("step_error", 1059 mChildren.setBadge(std::string("step_error"),
1060 mCannotBuyIsError 1060 mCannotBuyIsError
1061 ? LLViewChildren::BADGE_ERROR 1061 ? LLViewChildren::BADGE_ERROR
1062 : LLViewChildren::BADGE_WARN); 1062 : LLViewChildren::BADGE_WARN);
@@ -1084,7 +1084,7 @@ void LLFloaterBuyLandUI::refreshUI()
1084 // section one: account 1084 // section one: account
1085 if (!showingError) 1085 if (!showingError)
1086 { 1086 {
1087 mChildren.setBadge("step_1", 1087 mChildren.setBadge(std::string("step_1"),
1088 mSiteMembershipUpgrade 1088 mSiteMembershipUpgrade
1089 ? LLViewChildren::BADGE_NOTE 1089 ? LLViewChildren::BADGE_NOTE
1090 : LLViewChildren::BADGE_OK); 1090 : LLViewChildren::BADGE_OK);
@@ -1127,7 +1127,7 @@ void LLFloaterBuyLandUI::refreshUI()
1127 // section two: land use fees 1127 // section two: land use fees
1128 if (!showingError) 1128 if (!showingError)
1129 { 1129 {
1130 mChildren.setBadge("step_2", 1130 mChildren.setBadge(std::string("step_2"),
1131 mSiteLandUseUpgrade 1131 mSiteLandUseUpgrade
1132 ? LLViewChildren::BADGE_NOTE 1132 ? LLViewChildren::BADGE_NOTE
1133 : LLViewChildren::BADGE_OK); 1133 : LLViewChildren::BADGE_OK);
@@ -1137,15 +1137,15 @@ void LLFloaterBuyLandUI::refreshUI()
1137 1137
1138 if (mIsForGroup) 1138 if (mIsForGroup)
1139 { 1139 {
1140 LLString::format_map_t string_args; 1140 LLStringUtil::format_map_t string_args;
1141 string_args["[GROUP]"] = LLString(gAgent.mGroupName); 1141 string_args["[GROUP]"] = std::string(gAgent.mGroupName);
1142 1142
1143 message += getString("insufficient_land_credits", string_args); 1143 message += getString("insufficient_land_credits", string_args);
1144 1144
1145 } 1145 }
1146 else 1146 else
1147 { 1147 {
1148 LLString::format_map_t string_args; 1148 LLStringUtil::format_map_t string_args;
1149 string_args["[BUYER]"] = llformat("%d", mAgentCommittedTier); 1149 string_args["[BUYER]"] = llformat("%d", mAgentCommittedTier);
1150 message += getString("land_holdings", string_args); 1150 message += getString("land_holdings", string_args);
1151 } 1151 }
@@ -1156,7 +1156,7 @@ void LLFloaterBuyLandUI::refreshUI()
1156 } 1156 }
1157 else if (mParcelBillableArea == mParcelActualArea) 1157 else if (mParcelBillableArea == mParcelActualArea)
1158 { 1158 {
1159 LLString::format_map_t string_args; 1159 LLStringUtil::format_map_t string_args;
1160 string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea); 1160 string_args["[AMOUNT]"] = llformat("%d", mParcelActualArea);
1161 message += getString("parcel_meters", string_args); 1161 message += getString("parcel_meters", string_args);
1162 } 1162 }
@@ -1165,13 +1165,13 @@ void LLFloaterBuyLandUI::refreshUI()
1165 1165
1166 if (mParcelBillableArea > mParcelActualArea) 1166 if (mParcelBillableArea > mParcelActualArea)
1167 { 1167 {
1168 LLString::format_map_t string_args; 1168 LLStringUtil::format_map_t string_args;
1169 string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea); 1169 string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea);
1170 message += getString("premium_land", string_args); 1170 message += getString("premium_land", string_args);
1171 } 1171 }
1172 else 1172 else
1173 { 1173 {
1174 LLString::format_map_t string_args; 1174 LLStringUtil::format_map_t string_args;
1175 string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea); 1175 string_args["[AMOUNT]"] = llformat("%d", mParcelBillableArea);
1176 message += getString("discounted_land", string_args); 1176 message += getString("discounted_land", string_args);
1177 } 1177 }
@@ -1201,7 +1201,7 @@ void LLFloaterBuyLandUI::refreshUI()
1201 1201
1202 if (!showingError) 1202 if (!showingError)
1203 { 1203 {
1204 mChildren.setBadge("step_3", 1204 mChildren.setBadge(std::string("step_3"),
1205 !willHaveEnough 1205 !willHaveEnough
1206 ? LLViewChildren::BADGE_WARN 1206 ? LLViewChildren::BADGE_WARN
1207 : mCurrency.getAmount() > 0 1207 : mCurrency.getAmount() > 0
@@ -1220,14 +1220,14 @@ void LLFloaterBuyLandUI::refreshUI()
1220 1220
1221 if (haveEnough) 1221 if (haveEnough)
1222 { 1222 {
1223 LLString::format_map_t string_args; 1223 LLStringUtil::format_map_t string_args;
1224 string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); 1224 string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance);
1225 1225
1226 childSetText("currency_reason", getString("have_enough_lindens", string_args)); 1226 childSetText("currency_reason", getString("have_enough_lindens", string_args));
1227 } 1227 }
1228 else 1228 else
1229 { 1229 {
1230 LLString::format_map_t string_args; 1230 LLStringUtil::format_map_t string_args;
1231 string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance); 1231 string_args["[AMOUNT]"] = llformat("%d", mAgentCashBalance);
1232 string_args["[AMOUNT2]"] = llformat("%d", mParcelPrice - mAgentCashBalance); 1232 string_args["[AMOUNT2]"] = llformat("%d", mParcelPrice - mAgentCashBalance);
1233 1233
@@ -1238,7 +1238,7 @@ void LLFloaterBuyLandUI::refreshUI()
1238 1238
1239 if (willHaveEnough) 1239 if (willHaveEnough)
1240 { 1240 {
1241 LLString::format_map_t string_args; 1241 LLStringUtil::format_map_t string_args;
1242 string_args["[AMOUNT]"] = llformat("%d", finalBalance); 1242 string_args["[AMOUNT]"] = llformat("%d", finalBalance);
1243 1243
1244 childSetText("currency_balance", getString("balance_left", string_args)); 1244 childSetText("currency_balance", getString("balance_left", string_args));
@@ -1246,7 +1246,7 @@ void LLFloaterBuyLandUI::refreshUI()
1246 } 1246 }
1247 else 1247 else
1248 { 1248 {
1249 LLString::format_map_t string_args; 1249 LLStringUtil::format_map_t string_args;
1250 string_args["[AMOUNT]"] = llformat("%d", mParcelPrice - mAgentCashBalance); 1250 string_args["[AMOUNT]"] = llformat("%d", mParcelPrice - mAgentCashBalance);
1251 1251
1252 childSetText("currency_balance", getString("balance_needed", string_args)); 1252 childSetText("currency_balance", getString("balance_needed", string_args));
@@ -1311,14 +1311,14 @@ void LLFloaterBuyLandUI::startBuyPreConfirm()
1311 } 1311 }
1312 if (mCurrency.getAmount() > 0) 1312 if (mCurrency.getAmount() > 0)
1313 { 1313 {
1314 LLString::format_map_t string_args; 1314 LLStringUtil::format_map_t string_args;
1315 string_args["[AMOUNT]"] = llformat("%d", mCurrency.getAmount()); 1315 string_args["[AMOUNT]"] = llformat("%d", mCurrency.getAmount());
1316 string_args["[AMOUNT2]"] = llformat("%#.2f", mCurrency.getEstimate() / 100.0); 1316 string_args["[AMOUNT2]"] = llformat("%#.2f", mCurrency.getEstimate() / 100.0);
1317 1317
1318 action += getString("buy_for_US", string_args); 1318 action += getString("buy_for_US", string_args);
1319 } 1319 }
1320 1320
1321 LLString::format_map_t string_args; 1321 LLStringUtil::format_map_t string_args;
1322 string_args["[AMOUNT]"] = llformat("%d", mParcelPrice); 1322 string_args["[AMOUNT]"] = llformat("%d", mParcelPrice);
1323 string_args["[SELLER]"] = mParcelSellerName; 1323 string_args["[SELLER]"] = mParcelSellerName;
1324 action += getString("pay_to_for_land", string_args); 1324 action += getString("pay_to_for_land", string_args);