aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterdirectory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterdirectory.cpp')
-rw-r--r--linden/indra/newview/llfloaterdirectory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloaterdirectory.cpp b/linden/indra/newview/llfloaterdirectory.cpp
index 7ac491e..42a3bae 100644
--- a/linden/indra/newview/llfloaterdirectory.cpp
+++ b/linden/indra/newview/llfloaterdirectory.cpp
@@ -62,7 +62,7 @@
62#include "llpaneldirland.h" 62#include "llpaneldirland.h"
63#include "llfloateravatarinfo.h" 63#include "llfloateravatarinfo.h"
64#include "lldir.h" 64#include "lldir.h"
65#include "llvieweruictrlfactory.h" 65#include "lluictrlfactory.h"
66 66
67LLFloaterDirectory* LLFloaterDirectory::sInstance = NULL; 67LLFloaterDirectory* LLFloaterDirectory::sInstance = NULL;
68//static 68//static
@@ -112,7 +112,7 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name)
112 112
113 factory_map["Panel Avatar"] = LLCallbackMap(createPanelAvatar, this); 113 factory_map["Panel Avatar"] = LLCallbackMap(createPanelAvatar, this);
114 114
115 gUICtrlFactory->buildFloater(this, "floater_directory.xml", &factory_map); 115 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_directory.xml", &factory_map);
116 moveResizeHandlesToFront(); 116 moveResizeHandlesToFront();
117 117
118 if(mPanelAvatarp) 118 if(mPanelAvatarp)
@@ -248,7 +248,7 @@ void* LLFloaterDirectory::createEventDetail(void* userdata)
248{ 248{
249 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; 249 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata;
250 self->mPanelEventp = new LLPanelEvent(); 250 self->mPanelEventp = new LLPanelEvent();
251 gUICtrlFactory->buildPanel(self->mPanelEventp, "panel_event.xml"); 251 LLUICtrlFactory::getInstance()->buildPanel(self->mPanelEventp, "panel_event.xml");
252 self->mPanelEventp->setVisible(FALSE); 252 self->mPanelEventp->setVisible(FALSE);
253 return self->mPanelEventp; 253 return self->mPanelEventp;
254} 254}
@@ -279,7 +279,7 @@ void* LLFloaterDirectory::createPlaceDetail(void* userdata)
279{ 279{
280 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; 280 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata;
281 self->mPanelPlacep = new LLPanelPlace(); 281 self->mPanelPlacep = new LLPanelPlace();
282 gUICtrlFactory->buildPanel(self->mPanelPlacep, "panel_place.xml"); 282 LLUICtrlFactory::getInstance()->buildPanel(self->mPanelPlacep, "panel_place.xml");
283 self->mPanelPlacep->setVisible(FALSE); 283 self->mPanelPlacep->setVisible(FALSE);
284 return self->mPanelPlacep; 284 return self->mPanelPlacep;
285} 285}
@@ -289,7 +289,7 @@ void* LLFloaterDirectory::createPlaceDetailSmall(void* userdata)
289{ 289{
290 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata; 290 LLFloaterDirectory *self = (LLFloaterDirectory*)userdata;
291 self->mPanelPlaceSmallp = new LLPanelPlace(); 291 self->mPanelPlaceSmallp = new LLPanelPlace();
292 gUICtrlFactory->buildPanel(self->mPanelPlaceSmallp, "panel_place_small.xml"); 292 LLUICtrlFactory::getInstance()->buildPanel(self->mPanelPlaceSmallp, "panel_place_small.xml");
293 self->mPanelPlaceSmallp->setVisible(FALSE); 293 self->mPanelPlaceSmallp->setVisible(FALSE);
294 return self->mPanelPlaceSmallp; 294 return self->mPanelPlaceSmallp;
295} 295}
@@ -378,7 +378,7 @@ void LLFloaterDirectory::refreshGroup(const LLUUID& group_id)
378 378
379void LLFloaterDirectory::focusCurrentPanel() 379void LLFloaterDirectory::focusCurrentPanel()
380{ 380{
381 LLTabContainer* tabs = LLUICtrlFactory::getTabContainerByName(this, "Directory Tabs"); 381 LLTabContainer* tabs = getChild<LLTabContainer>("Directory Tabs");
382 if (!tabs) return; 382 if (!tabs) return;
383 383
384 LLPanel* panel = tabs->getCurrentPanel(); 384 LLPanel* panel = tabs->getCurrentPanel();