aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatersellland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloatersellland.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/linden/indra/newview/llfloatersellland.cpp b/linden/indra/newview/llfloatersellland.cpp
index 0be9246..90e4dd3 100644
--- a/linden/indra/newview/llfloatersellland.cpp
+++ b/linden/indra/newview/llfloatersellland.cpp
@@ -42,7 +42,7 @@
42#include "lltexturectrl.h" 42#include "lltexturectrl.h"
43#include "llviewercontrol.h" 43#include "llviewercontrol.h"
44#include "llviewerparcelmgr.h" 44#include "llviewerparcelmgr.h"
45#include "llvieweruictrlfactory.h" 45#include "lluictrlfactory.h"
46#include "llviewerwindow.h" 46#include "llviewerwindow.h"
47 47
48// defined in llfloaterland.cpp 48// defined in llfloaterland.cpp
@@ -122,7 +122,7 @@ LLFloaterSellLandUI* LLFloaterSellLandUI::soleInstance(bool createIfNeeded)
122 { 122 {
123 sInstance = new LLFloaterSellLandUI(); 123 sInstance = new LLFloaterSellLandUI();
124 124
125 gUICtrlFactory->buildFloater(sInstance, "floater_sell_land.xml"); 125 LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_sell_land.xml");
126 sInstance->center(); 126 sInstance->center();
127 } 127 }
128 128
@@ -131,7 +131,7 @@ LLFloaterSellLandUI* LLFloaterSellLandUI::soleInstance(bool createIfNeeded)
131 if (!parcelSelectionObserver) 131 if (!parcelSelectionObserver)
132 { 132 {
133 parcelSelectionObserver = new SelectionObserver; 133 parcelSelectionObserver = new SelectionObserver;
134 gParcelMgr->addObserver(parcelSelectionObserver); 134 LLViewerParcelMgr::getInstance()->addObserver(parcelSelectionObserver);
135 } 135 }
136 136
137 return sInstance; 137 return sInstance;
@@ -156,14 +156,14 @@ void LLFloaterSellLandUI::SelectionObserver::changed()
156 LLFloaterSellLandUI* ui = LLFloaterSellLandUI::soleInstance(false); 156 LLFloaterSellLandUI* ui = LLFloaterSellLandUI::soleInstance(false);
157 if (ui) 157 if (ui)
158 { 158 {
159 if (gParcelMgr->selectionEmpty()) 159 if (LLViewerParcelMgr::getInstance()->selectionEmpty())
160 { 160 {
161 ui->close(); 161 ui->close();
162 } 162 }
163 else { 163 else {
164 ui->setParcel( 164 ui->setParcel(
165 gParcelMgr->getSelectionRegion(), 165 LLViewerParcelMgr::getInstance()->getSelectionRegion(),
166 gParcelMgr->getParcelSelection()); 166 LLViewerParcelMgr::getInstance()->getParcelSelection());
167 } 167 }
168 } 168 }
169} 169}
@@ -251,22 +251,22 @@ void LLFloaterSellLandUI::updateParcelInfo()
251 251
252void LLFloaterSellLandUI::setBadge(const char* id, Badge badge) 252void LLFloaterSellLandUI::setBadge(const char* id, Badge badge)
253{ 253{
254 static LLUUID badgeOK(gViewerArt.getString("badge_ok.tga")); 254 static LLString badgeOK("badge_ok.j2c");
255 static LLUUID badgeNote(gViewerArt.getString("badge_note.tga")); 255 static LLString badgeNote("badge_note.j2c");
256 static LLUUID badgeWarn(gViewerArt.getString("badge_warn.tga")); 256 static LLString badgeWarn("badge_warn.j2c");
257 static LLUUID badgeError(gViewerArt.getString("badge_error.tga")); 257 static LLString badgeError("badge_error.j2c");
258 258
259 LLUUID badgeUUID; 259 LLString badgeName;
260 switch (badge) 260 switch (badge)
261 { 261 {
262 default: 262 default:
263 case BADGE_OK: badgeUUID = badgeOK; break; 263 case BADGE_OK: badgeName = badgeOK; break;
264 case BADGE_NOTE: badgeUUID = badgeNote; break; 264 case BADGE_NOTE: badgeName = badgeNote; break;
265 case BADGE_WARN: badgeUUID = badgeWarn; break; 265 case BADGE_WARN: badgeName = badgeWarn; break;
266 case BADGE_ERROR: badgeUUID = badgeError; break; 266 case BADGE_ERROR: badgeName = badgeError; break;
267 } 267 }
268 268
269 childSetValue(id, badgeUUID); 269 childSetValue(id, badgeName);
270} 270}
271 271
272void LLFloaterSellLandUI::refreshUI() 272void LLFloaterSellLandUI::refreshUI()
@@ -274,7 +274,7 @@ void LLFloaterSellLandUI::refreshUI()
274 LLParcel* parcelp = mParcelSelection->getParcel(); 274 LLParcel* parcelp = mParcelSelection->getParcel();
275 if (!parcelp) return; 275 if (!parcelp) return;
276 276
277 LLTextureCtrl* snapshot = LLViewerUICtrlFactory::getTexturePickerByName(this, "info_image"); 277 LLTextureCtrl* snapshot = getChild<LLTextureCtrl>("info_image");
278 if (snapshot) 278 if (snapshot)
279 { 279 {
280 snapshot->setImageAssetID(mParcelSnapshot); 280 snapshot->setImageAssetID(mParcelSnapshot);
@@ -451,7 +451,7 @@ void LLFloaterSellLandUI::doShowObjects(void *userdata)
451// static 451// static
452void LLFloaterSellLandUI::callbackHighlightTransferable(S32 option, void* userdata) 452void LLFloaterSellLandUI::callbackHighlightTransferable(S32 option, void* userdata)
453{ 453{
454 gSelectMgr->unhighlightAll(); 454 LLSelectMgr::getInstance()->unhighlightAll();
455} 455}
456 456
457// static 457// static
@@ -546,7 +546,7 @@ void LLFloaterSellLandUI::onConfirmSale(S32 option, void *userdata)
546 } 546 }
547 547
548 // Send update to server 548 // Send update to server
549 gParcelMgr->sendParcelPropertiesUpdate( parcel ); 549 LLViewerParcelMgr::getInstance()->sendParcelPropertiesUpdate( parcel );
550 550
551 self->close(); 551 self->close();
552} 552}