aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterauction.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llfloaterauction.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llfloaterauction.cpp')
-rw-r--r--linden/indra/newview/llfloaterauction.cpp54
1 files changed, 14 insertions, 40 deletions
diff --git a/linden/indra/newview/llfloaterauction.cpp b/linden/indra/newview/llfloaterauction.cpp
index 8e7124a..49da8ba 100644
--- a/linden/indra/newview/llfloaterauction.cpp
+++ b/linden/indra/newview/llfloaterauction.cpp
@@ -5,6 +5,7 @@
5 * 5 *
6 * Copyright (c) 2004-2007, Linden Research, Inc. 6 * Copyright (c) 2004-2007, Linden Research, Inc.
7 * 7 *
8 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab 9 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0 10 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement 11 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -76,12 +77,6 @@ LLFloaterAuction::LLFloaterAuction() :
76 childSetCommitCallback("fence_check", 77 childSetCommitCallback("fence_check",
77 LLSavedSettingsGlue::setBOOL, (void*)"AuctionShowFence"); 78 LLSavedSettingsGlue::setBOOL, (void*)"AuctionShowFence");
78 79
79 LLComboBox* combo = LLUICtrlFactory::getComboBoxByName(this, "saletype_combo");
80 if (combo)
81 {
82 combo->selectFirstItem();
83 }
84
85 childSetAction("snapshot_btn", onClickSnapshot, this); 80 childSetAction("snapshot_btn", onClickSnapshot, this);
86 childSetAction("ok_btn", onClickOK, this); 81 childSetAction("ok_btn", onClickOK, this);
87} 82}
@@ -215,28 +210,18 @@ void LLFloaterAuction::onClickSnapshot(void* data)
215void LLFloaterAuction::onClickOK(void* data) 210void LLFloaterAuction::onClickOK(void* data)
216{ 211{
217 LLFloaterAuction* self = (LLFloaterAuction*)(data); 212 LLFloaterAuction* self = (LLFloaterAuction*)(data);
218 bool is_auction = false; 213
219 LLComboBox* combo = LLUICtrlFactory::getComboBoxByName(self, "saletype_combo");
220 if (combo
221 && combo->getCurrentIndex() == 0)
222 {
223 is_auction = true;
224 }
225 if(self->mImageID.notNull()) 214 if(self->mImageID.notNull())
226 { 215 {
227 LLSD parcel_name = self->childGetValue("parcel_text"); 216 LLSD parcel_name = self->childGetValue("parcel_text");
228 217
229 // create the asset 218 // create the asset
230 if(is_auction) 219 LLString* name = new LLString(parcel_name.asString());
231 { 220 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_IMAGE_TGA,
232 // only need the tga if it is an auction. 221 &auction_tga_upload_done,
233 LLString* name = new LLString(parcel_name.asString()); 222 (void*)name,
234 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_IMAGE_TGA, 223 FALSE);
235 &auction_tga_upload_done, 224 self->getWindow()->incBusyCount();
236 (void*)name,
237 FALSE);
238 self->getWindow()->incBusyCount();
239 }
240 225
241 LLString* j2c_name = new LLString(parcel_name.asString()); 226 LLString* j2c_name = new LLString(parcel_name.asString());
242 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_TEXTURE, 227 gAssetStorage->storeAssetData(self->mTransactionID, LLAssetType::AT_TEXTURE,
@@ -245,24 +230,13 @@ void LLFloaterAuction::onClickOK(void* data)
245 FALSE); 230 FALSE);
246 self->getWindow()->incBusyCount(); 231 self->getWindow()->incBusyCount();
247 232
248 if(is_auction) 233 LLNotifyBox::showXml("UploadingAuctionSnapshot");
249 { 234
250 LLNotifyBox::showXml("UploadingAuctionSnapshot");
251 }
252 else
253 {
254 LLNotifyBox::showXml("UploadingSnapshot");
255 }
256 } 235 }
257 LLMessageSystem* msg = gMessageSystem; 236 LLMessageSystem* msg = gMessageSystem;
258 if(is_auction) 237
259 { 238 msg->newMessage("ViewerStartAuction");
260 msg->newMessage("ViewerStartAuction"); 239
261 }
262 else
263 {
264 msg->newMessage("ParcelGodReserveForNewbie");
265 }
266 msg->nextBlock("AgentData"); 240 msg->nextBlock("AgentData");
267 msg->addUUID("AgentID", gAgent.getID()); 241 msg->addUUID("AgentID", gAgent.getID());
268 msg->addUUID("SessionID", gAgent.getSessionID()); 242 msg->addUUID("SessionID", gAgent.getSessionID());