aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbuy.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloaterbuy.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterbuy.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterbuy.cpp b/linden/indra/newview/llfloaterbuy.cpp
index 18d2913..5d815fa 100644
--- a/linden/indra/newview/llfloaterbuy.cpp
+++ b/linden/indra/newview/llfloaterbuy.cpp
@@ -52,7 +52,7 @@
52LLFloaterBuy* LLFloaterBuy::sInstance = NULL; 52LLFloaterBuy* LLFloaterBuy::sInstance = NULL;
53 53
54LLFloaterBuy::LLFloaterBuy() 54LLFloaterBuy::LLFloaterBuy()
55: LLFloater("floater_buy_object", "FloaterBuyRect", "") 55: LLFloater(std::string("floater_buy_object"), std::string("FloaterBuyRect"), LLStringUtil::null)
56{ 56{
57 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_buy_object.xml"); 57 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_buy_object.xml");
58 58
@@ -132,7 +132,7 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
132 sInstance->setTitle(title); 132 sInstance->setTitle(title);
133 133
134 LLUUID owner_id; 134 LLUUID owner_id;
135 LLString owner_name; 135 std::string owner_name;
136 BOOL owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, owner_name); 136 BOOL owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, owner_name);
137 if (!owners_identical) 137 if (!owners_identical)
138 { 138 {
@@ -151,7 +151,7 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
151 LLSD row; 151 LLSD row;
152 152
153 // Compute icon for this item 153 // Compute icon for this item
154 LLString icon_name = get_item_icon_name(LLAssetType::AT_OBJECT, 154 std::string icon_name = get_item_icon_name(LLAssetType::AT_OBJECT,
155 LLInventoryType::IT_OBJECT, 155 LLInventoryType::IT_OBJECT,
156 0x0, FALSE); 156 0x0, FALSE);
157 157
@@ -162,7 +162,7 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
162 // Append the permissions that you will acquire (not the current 162 // Append the permissions that you will acquire (not the current
163 // permissions). 163 // permissions).
164 U32 next_owner_mask = node->mPermissions->getMaskNextOwner(); 164 U32 next_owner_mask = node->mPermissions->getMaskNextOwner();
165 LLString text = node->mName; 165 std::string text = node->mName;
166 if (!(next_owner_mask & PERM_COPY)) 166 if (!(next_owner_mask & PERM_COPY))
167 { 167 {
168 text.append(sInstance->getString("no_copy_text")); 168 text.append(sInstance->getString("no_copy_text"));
@@ -194,7 +194,6 @@ void LLFloaterBuy::show(const LLSaleInfo& sale_info)
194 sInstance->requestVOInventory(); 194 sInstance->requestVOInventory();
195} 195}
196 196
197
198void LLFloaterBuy::inventoryChanged(LLViewerObject* obj, 197void LLFloaterBuy::inventoryChanged(LLViewerObject* obj,
199 InventoryObjectList* inv, 198 InventoryObjectList* inv,
200 S32 serial_num, 199 S32 serial_num,
@@ -256,7 +255,7 @@ void LLFloaterBuy::inventoryChanged(LLViewerObject* obj,
256 item_is_multi = TRUE; 255 item_is_multi = TRUE;
257 } 256 }
258 257
259 LLString icon_name = get_item_icon_name(inv_item->getType(), 258 std::string icon_name = get_item_icon_name(inv_item->getType(),
260 inv_item->getInventoryType(), 259 inv_item->getInventoryType(),
261 inv_item->getFlags(), 260 inv_item->getFlags(),
262 item_is_multi); 261 item_is_multi);
@@ -267,7 +266,7 @@ void LLFloaterBuy::inventoryChanged(LLViewerObject* obj,
267 // Append the permissions that you will acquire (not the current 266 // Append the permissions that you will acquire (not the current
268 // permissions). 267 // permissions).
269 U32 next_owner_mask = inv_item->getPermissions().getMaskNextOwner(); 268 U32 next_owner_mask = inv_item->getPermissions().getMaskNextOwner();
270 LLString text = obj->getName(); 269 std::string text = obj->getName();
271 if (!(next_owner_mask & PERM_COPY)) 270 if (!(next_owner_mask & PERM_COPY))
272 { 271 {
273 text.append(" (no copy)"); 272 text.append(" (no copy)");
@@ -290,6 +289,11 @@ void LLFloaterBuy::inventoryChanged(LLViewerObject* obj,
290 removeVOInventoryListener(); 289 removeVOInventoryListener();
291} 290}
292 291
292void LLFloaterBuy::close(bool app_quitting)
293{
294 LLSelectMgr::getInstance()->deselectAll();
295 LLFloater::close(app_quitting);
296}
293 297
294// static 298// static
295void LLFloaterBuy::onClickBuy(void*) 299void LLFloaterBuy::onClickBuy(void*)