aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelland.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llpanelland.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llpanelland.cpp')
-rw-r--r--linden/indra/newview/llpanelland.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/linden/indra/newview/llpanelland.cpp b/linden/indra/newview/llpanelland.cpp
index 5edd304..be05703 100644
--- a/linden/indra/newview/llpanelland.cpp
+++ b/linden/indra/newview/llpanelland.cpp
@@ -43,7 +43,7 @@
43#include "llviewerregion.h" 43#include "llviewerregion.h"
44#include "roles_constants.h" 44#include "roles_constants.h"
45 45
46#include "llvieweruictrlfactory.h" 46#include "lluictrlfactory.h"
47 47
48LLPanelLandSelectObserver* LLPanelLandInfo::sObserver = NULL; 48LLPanelLandSelectObserver* LLPanelLandInfo::sObserver = NULL;
49LLPanelLandInfo* LLPanelLandInfo::sInstance = NULL; 49LLPanelLandInfo* LLPanelLandInfo::sInstance = NULL;
@@ -81,7 +81,7 @@ LLPanelLandInfo::LLPanelLandInfo(const std::string& name)
81 if (!sObserver) 81 if (!sObserver)
82 { 82 {
83 sObserver = new LLPanelLandSelectObserver(); 83 sObserver = new LLPanelLandSelectObserver();
84 gParcelMgr->addObserver( sObserver ); 84 LLViewerParcelMgr::getInstance()->addObserver( sObserver );
85 } 85 }
86 86
87} 87}
@@ -90,7 +90,7 @@ LLPanelLandInfo::LLPanelLandInfo(const std::string& name)
90// virtual 90// virtual
91LLPanelLandInfo::~LLPanelLandInfo() 91LLPanelLandInfo::~LLPanelLandInfo()
92{ 92{
93 gParcelMgr->removeObserver( sObserver ); 93 LLViewerParcelMgr::getInstance()->removeObserver( sObserver );
94 delete sObserver; 94 delete sObserver;
95 sObserver = NULL; 95 sObserver = NULL;
96 96
@@ -111,8 +111,8 @@ void LLPanelLandInfo::refreshAll()
111// public 111// public
112void LLPanelLandInfo::refresh() 112void LLPanelLandInfo::refresh()
113{ 113{
114 LLParcel *parcel = gParcelMgr->getParcelSelection()->getParcel(); 114 LLParcel *parcel = LLViewerParcelMgr::getInstance()->getParcelSelection()->getParcel();
115 LLViewerRegion *regionp = gParcelMgr->getSelectionRegion(); 115 LLViewerRegion *regionp = LLViewerParcelMgr::getInstance()->getSelectionRegion();
116 116
117 if (!parcel || !regionp) 117 if (!parcel || !regionp)
118 { 118 {
@@ -177,9 +177,9 @@ void LLPanelLandInfo::refresh()
177 // not just a single unit of land, 177 // not just a single unit of land,
178 // you must own part of it, 178 // you must own part of it,
179 // and it must not be a whole parcel. 179 // and it must not be a whole parcel.
180 if (gParcelMgr->getSelectedArea() > PARCEL_UNIT_AREA 180 if (LLViewerParcelMgr::getInstance()->getSelectedArea() > PARCEL_UNIT_AREA
181 //&& gParcelMgr->getSelfCount() > 1 181 //&& LLViewerParcelMgr::getInstance()->getSelfCount() > 1
182 && !gParcelMgr->getParcelSelection()->getWholeParcelSelected()) 182 && !LLViewerParcelMgr::getInstance()->getParcelSelection()->getWholeParcelSelected())
183 { 183 {
184 childSetEnabled("button join land",TRUE); 184 childSetEnabled("button join land",TRUE);
185 } 185 }
@@ -197,12 +197,12 @@ void LLPanelLandInfo::refresh()
197 S32 rent_price; 197 S32 rent_price;
198 BOOL for_sale; 198 BOOL for_sale;
199 F32 dwell; 199 F32 dwell;
200 gParcelMgr->getDisplayInfo(&area, 200 LLViewerParcelMgr::getInstance()->getDisplayInfo(&area,
201 &claim_price, 201 &claim_price,
202 &rent_price, 202 &rent_price,
203 &for_sale, 203 &for_sale,
204 &dwell); 204 &dwell);
205 if(is_public || (is_for_sale && gParcelMgr->getParcelSelection()->getWholeParcelSelected())) 205 if(is_public || (is_for_sale && LLViewerParcelMgr::getInstance()->getParcelSelection()->getWholeParcelSelected()))
206 { 206 {
207 childSetTextArg("label_area_price","[PRICE]", llformat("%d",claim_price)); 207 childSetTextArg("label_area_price","[PRICE]", llformat("%d",claim_price));
208 childSetTextArg("label_area_price","[AREA]", llformat("%d",area)); 208 childSetTextArg("label_area_price","[AREA]", llformat("%d",area));
@@ -222,35 +222,35 @@ void LLPanelLandInfo::refresh()
222//static 222//static
223void LLPanelLandInfo::onClickClaim(void*) 223void LLPanelLandInfo::onClickClaim(void*)
224{ 224{
225 gParcelMgr->startBuyLand(); 225 LLViewerParcelMgr::getInstance()->startBuyLand();
226} 226}
227 227
228 228
229//static 229//static
230void LLPanelLandInfo::onClickRelease(void*) 230void LLPanelLandInfo::onClickRelease(void*)
231{ 231{
232 gParcelMgr->startReleaseLand(); 232 LLViewerParcelMgr::getInstance()->startReleaseLand();
233} 233}
234 234
235// static 235// static
236void LLPanelLandInfo::onClickDivide(void*) 236void LLPanelLandInfo::onClickDivide(void*)
237{ 237{
238 gParcelMgr->startDivideLand(); 238 LLViewerParcelMgr::getInstance()->startDivideLand();
239} 239}
240 240
241// static 241// static
242void LLPanelLandInfo::onClickJoin(void*) 242void LLPanelLandInfo::onClickJoin(void*)
243{ 243{
244 gParcelMgr->startJoinLand(); 244 LLViewerParcelMgr::getInstance()->startJoinLand();
245} 245}
246 246
247//static 247//static
248void LLPanelLandInfo::onClickAbout(void*) 248void LLPanelLandInfo::onClickAbout(void*)
249{ 249{
250 // Promote the rectangle selection to a parcel selection 250 // Promote the rectangle selection to a parcel selection
251 if (!gParcelMgr->getParcelSelection()->getWholeParcelSelected()) 251 if (!LLViewerParcelMgr::getInstance()->getParcelSelection()->getWholeParcelSelected())
252 { 252 {
253 gParcelMgr->selectParcelInRectangle(); 253 LLViewerParcelMgr::getInstance()->selectParcelInRectangle();
254 } 254 }
255 255
256 LLFloaterLand::showInstance(); 256 LLFloaterLand::showInstance();