aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterinspect.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/llfloaterinspect.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/llfloaterinspect.cpp')
-rw-r--r--linden/indra/newview/llfloaterinspect.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterinspect.cpp b/linden/indra/newview/llfloaterinspect.cpp
index cdca428..ff0a2ee 100644
--- a/linden/indra/newview/llfloaterinspect.cpp
+++ b/linden/indra/newview/llfloaterinspect.cpp
@@ -40,7 +40,7 @@
40#include "lltoolmgr.h" 40#include "lltoolmgr.h"
41#include "llviewercontrol.h" 41#include "llviewercontrol.h"
42#include "llviewerobject.h" 42#include "llviewerobject.h"
43#include "llvieweruictrlfactory.h" 43#include "lluictrlfactory.h"
44 44
45LLFloaterInspect* LLFloaterInspect::sInstance = NULL; 45LLFloaterInspect* LLFloaterInspect::sInstance = NULL;
46 46
@@ -49,19 +49,19 @@ LLFloaterInspect::LLFloaterInspect(void) :
49 mDirty(FALSE) 49 mDirty(FALSE)
50{ 50{
51 sInstance = this; 51 sInstance = this;
52 gUICtrlFactory->buildFloater(this, "floater_inspect.xml"); 52 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_inspect.xml");
53} 53}
54 54
55LLFloaterInspect::~LLFloaterInspect(void) 55LLFloaterInspect::~LLFloaterInspect(void)
56{ 56{
57 if(!gFloaterTools->getVisible()) 57 if(!gFloaterTools->getVisible())
58 { 58 {
59 if(gToolMgr->getBaseTool() == gToolInspect) 59 if(LLToolMgr::getInstance()->getBaseTool() == LLToolCompInspect::getInstance())
60 { 60 {
61 gToolMgr->clearTransientTool(); 61 LLToolMgr::getInstance()->clearTransientTool();
62 } 62 }
63 // Switch back to basic toolset 63 // Switch back to basic toolset
64 gToolMgr->setCurrentToolset(gBasicToolset); 64 LLToolMgr::getInstance()->setCurrentToolset(gBasicToolset);
65 } 65 }
66 else 66 else
67 { 67 {
@@ -80,7 +80,7 @@ void LLFloaterInspect::show(void* ignored)
80 // setForceSelection ensures that the pie menu does not deselect things when it 80 // setForceSelection ensures that the pie menu does not deselect things when it
81 // looses the focus (this can happen with "select own objects only" enabled 81 // looses the focus (this can happen with "select own objects only" enabled
82 // VWR-1471 82 // VWR-1471
83 BOOL forcesel = gSelectMgr->setForceSelection(TRUE); 83 BOOL forcesel = LLSelectMgr::getInstance()->setForceSelection(TRUE);
84 84
85 if (!sInstance) // first use 85 if (!sInstance) // first use
86 { 86 {
@@ -88,10 +88,10 @@ void LLFloaterInspect::show(void* ignored)
88 } 88 }
89 89
90 sInstance->open(); 90 sInstance->open();
91 gToolMgr->setTransientTool(gToolInspect); 91 LLToolMgr::getInstance()->setTransientTool(LLToolCompInspect::getInstance());
92 gSelectMgr->setForceSelection(forcesel); // restore previouis value 92 LLSelectMgr::getInstance()->setForceSelection(forcesel); // restore previouis value
93 93
94 sInstance->mObjectSelection = gSelectMgr->getSelection(); 94 sInstance->mObjectSelection = LLSelectMgr::getInstance()->getSelection();
95 sInstance->refresh(); 95 sInstance->refresh();
96} 96}
97 97
@@ -152,7 +152,7 @@ void LLFloaterInspect::onClickOwnerProfile(void* ctrl)
152 152
153BOOL LLFloaterInspect::postBuild() 153BOOL LLFloaterInspect::postBuild()
154{ 154{
155 mObjectList = LLUICtrlFactory::getScrollListByName(this, "object_list"); 155 mObjectList = getChild<LLScrollListCtrl>("object_list");
156 childSetAction("button owner",onClickOwnerProfile, this); 156 childSetAction("button owner",onClickOwnerProfile, this);
157 childSetAction("button creator",onClickCreatorProfile, this); 157 childSetAction("button creator",onClickCreatorProfile, this);
158 childSetCommitCallback("object_list", onSelectObject); 158 childSetCommitCallback("object_list", onSelectObject);
@@ -256,7 +256,7 @@ void LLFloaterInspect::refresh()
256 256
257void LLFloaterInspect::onFocusReceived() 257void LLFloaterInspect::onFocusReceived()
258{ 258{
259 gToolMgr->setTransientTool(gToolInspect); 259 LLToolMgr::getInstance()->setTransientTool(LLToolCompInspect::getInstance());
260 LLFloater::onFocusReceived(); 260 LLFloater::onFocusReceived();
261} 261}
262 262