diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelvolume.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/linden/indra/newview/llpanelvolume.cpp b/linden/indra/newview/llpanelvolume.cpp index 285750a..23ca7c4 100644 --- a/linden/indra/newview/llpanelvolume.cpp +++ b/linden/indra/newview/llpanelvolume.cpp | |||
@@ -74,7 +74,7 @@ | |||
74 | #include "pipeline.h" | 74 | #include "pipeline.h" |
75 | 75 | ||
76 | #include "lldrawpool.h" | 76 | #include "lldrawpool.h" |
77 | #include "llvieweruictrlfactory.h" | 77 | #include "lluictrlfactory.h" |
78 | 78 | ||
79 | // "Features" Tab | 79 | // "Features" Tab |
80 | 80 | ||
@@ -139,11 +139,11 @@ LLPanelVolume::~LLPanelVolume() | |||
139 | 139 | ||
140 | void LLPanelVolume::getState( ) | 140 | void LLPanelVolume::getState( ) |
141 | { | 141 | { |
142 | LLViewerObject* objectp = gSelectMgr->getSelection()->getFirstRootObject(); | 142 | LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject(); |
143 | LLViewerObject* root_objectp = objectp; | 143 | LLViewerObject* root_objectp = objectp; |
144 | if(!objectp) | 144 | if(!objectp) |
145 | { | 145 | { |
146 | objectp = gSelectMgr->getSelection()->getFirstObject(); | 146 | objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); |
147 | // *FIX: shouldn't we just keep the child? | 147 | // *FIX: shouldn't we just keep the child? |
148 | if (objectp) | 148 | if (objectp) |
149 | { | 149 | { |
@@ -183,12 +183,12 @@ void LLPanelVolume::getState( ) | |||
183 | BOOL owners_identical; | 183 | BOOL owners_identical; |
184 | LLUUID owner_id; | 184 | LLUUID owner_id; |
185 | LLString owner_name; | 185 | LLString owner_name; |
186 | owners_identical = gSelectMgr->selectGetOwner(owner_id, owner_name); | 186 | owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, owner_name); |
187 | 187 | ||
188 | // BUG? Check for all objects being editable? | 188 | // BUG? Check for all objects being editable? |
189 | BOOL editable = root_objectp->permModify(); | 189 | BOOL editable = root_objectp->permModify(); |
190 | BOOL single_volume = gSelectMgr->selectionAllPCode( LL_PCODE_VOLUME ) | 190 | BOOL single_volume = LLSelectMgr::getInstance()->selectionAllPCode( LL_PCODE_VOLUME ) |
191 | && gSelectMgr->getSelection()->getObjectCount() == 1; | 191 | && LLSelectMgr::getInstance()->getSelection()->getObjectCount() == 1; |
192 | 192 | ||
193 | // Select Single Message | 193 | // Select Single Message |
194 | if (single_volume) | 194 | if (single_volume) |
@@ -232,9 +232,9 @@ void LLPanelVolume::getState( ) | |||
232 | } | 232 | } |
233 | else | 233 | else |
234 | { | 234 | { |
235 | ((LLPanel *) getChildByName ("Light Intensity", true))->clear(); | 235 | getChild<LLSpinCtrl>("Light Intensity", true)->clear(); |
236 | ((LLPanel *) getChildByName ("Light Radius", true))->clear(); | 236 | getChild<LLSpinCtrl>("Light Radius", true)->clear(); |
237 | ((LLPanel *) getChildByName ("Light Falloff", true))->clear(); | 237 | getChild<LLSpinCtrl>("Light Falloff", true)->clear(); |
238 | 238 | ||
239 | childSetEnabled("label color",false); | 239 | childSetEnabled("label color",false); |
240 | LLColorSwatchCtrl* LightColorSwatch = getChild<LLColorSwatchCtrl>("colorswatch"); | 240 | LLColorSwatchCtrl* LightColorSwatch = getChild<LLColorSwatchCtrl>("colorswatch"); |
@@ -292,14 +292,14 @@ void LLPanelVolume::getState( ) | |||
292 | } | 292 | } |
293 | else | 293 | else |
294 | { | 294 | { |
295 | ((LLPanel *) getChildByName ("FlexNumSections", true))->clear(); | 295 | getChild<LLSpinCtrl>("FlexNumSections", true)->clear(); |
296 | ((LLPanel *) getChildByName ("FlexGravity", true))->clear(); | 296 | getChild<LLSpinCtrl>("FlexGravity", true)->clear(); |
297 | ((LLPanel *) getChildByName ("FlexTension", true))->clear(); | 297 | getChild<LLSpinCtrl>("FlexTension", true)->clear(); |
298 | ((LLPanel *) getChildByName ("FlexFriction", true))->clear(); | 298 | getChild<LLSpinCtrl>("FlexFriction", true)->clear(); |
299 | ((LLPanel *) getChildByName ("FlexWind", true))->clear(); | 299 | getChild<LLSpinCtrl>("FlexWind", true)->clear(); |
300 | ((LLPanel *) getChildByName ("FlexForceX", true))->clear(); | 300 | getChild<LLSpinCtrl>("FlexForceX", true)->clear(); |
301 | ((LLPanel *) getChildByName ("FlexForceY", true))->clear(); | 301 | getChild<LLSpinCtrl>("FlexForceY", true)->clear(); |
302 | ((LLPanel *) getChildByName ("FlexForceZ", true))->clear(); | 302 | getChild<LLSpinCtrl>("FlexForceZ", true)->clear(); |
303 | 303 | ||
304 | childSetEnabled("FlexNumSections",false); | 304 | childSetEnabled("FlexNumSections",false); |
305 | childSetEnabled("FlexGravity",false); | 305 | childSetEnabled("FlexGravity",false); |
@@ -412,7 +412,7 @@ void LLPanelVolume::sendIsFlexible() | |||
412 | 412 | ||
413 | if (objectp->getClickAction() == CLICK_ACTION_SIT) | 413 | if (objectp->getClickAction() == CLICK_ACTION_SIT) |
414 | { | 414 | { |
415 | gSelectMgr->selectionSetClickAction(CLICK_ACTION_NONE); | 415 | LLSelectMgr::getInstance()->selectionSetClickAction(CLICK_ACTION_NONE); |
416 | } | 416 | } |
417 | 417 | ||
418 | } | 418 | } |
@@ -420,7 +420,7 @@ void LLPanelVolume::sendIsFlexible() | |||
420 | if (volobjp->setIsFlexible(is_flexible)) | 420 | if (volobjp->setIsFlexible(is_flexible)) |
421 | { | 421 | { |
422 | mObject->sendShapeUpdate(); | 422 | mObject->sendShapeUpdate(); |
423 | gSelectMgr->selectionUpdatePhantom(volobjp->flagPhantom()); | 423 | LLSelectMgr::getInstance()->selectionUpdatePhantom(volobjp->flagPhantom()); |
424 | } | 424 | } |
425 | 425 | ||
426 | llinfos << "update flexible sent" << llendl; | 426 | llinfos << "update flexible sent" << llendl; |