diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloatertopobjects.cpp | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-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/llfloatertopobjects.cpp')
-rw-r--r-- | linden/indra/newview/llfloatertopobjects.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloatertopobjects.cpp b/linden/indra/newview/llfloatertopobjects.cpp index 04f00bd..a6efb06 100644 --- a/linden/indra/newview/llfloatertopobjects.cpp +++ b/linden/indra/newview/llfloatertopobjects.cpp | |||
@@ -46,7 +46,7 @@ | |||
46 | #include "lltracker.h" | 46 | #include "lltracker.h" |
47 | #include "llviewerparcelmgr.h" | 47 | #include "llviewerparcelmgr.h" |
48 | #include "llviewerregion.h" | 48 | #include "llviewerregion.h" |
49 | #include "llvieweruictrlfactory.h" | 49 | #include "lluictrlfactory.h" |
50 | #include "llviewerwindow.h" | 50 | #include "llviewerwindow.h" |
51 | 51 | ||
52 | LLFloaterTopObjects* LLFloaterTopObjects::sInstance = NULL; | 52 | LLFloaterTopObjects* LLFloaterTopObjects::sInstance = NULL; |
@@ -62,7 +62,7 @@ void LLFloaterTopObjects::show() | |||
62 | } | 62 | } |
63 | 63 | ||
64 | sInstance = new LLFloaterTopObjects(); | 64 | sInstance = new LLFloaterTopObjects(); |
65 | gUICtrlFactory->buildFloater(sInstance, "floater_top_objects.xml"); | 65 | LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_top_objects.xml"); |
66 | sInstance->center(); | 66 | sInstance->center(); |
67 | } | 67 | } |
68 | 68 | ||
@@ -85,7 +85,7 @@ BOOL LLFloaterTopObjects::postBuild() | |||
85 | childSetCommitCallback("objects_list", onCommitObjectsList, this); | 85 | childSetCommitCallback("objects_list", onCommitObjectsList, this); |
86 | childSetDoubleClickCallback("objects_list", onDoubleClickObjectsList); | 86 | childSetDoubleClickCallback("objects_list", onDoubleClickObjectsList); |
87 | childSetFocus("objects_list"); | 87 | childSetFocus("objects_list"); |
88 | LLScrollListCtrl *objects_list = LLUICtrlFactory::getScrollListByName(this, "objects_list"); | 88 | LLScrollListCtrl *objects_list = getChild<LLScrollListCtrl>("objects_list"); |
89 | if (objects_list) | 89 | if (objects_list) |
90 | { | 90 | { |
91 | objects_list->setCommitOnSelectionChange(TRUE); | 91 | objects_list->setCommitOnSelectionChange(TRUE); |
@@ -106,7 +106,7 @@ BOOL LLFloaterTopObjects::postBuild() | |||
106 | 106 | ||
107 | 107 | ||
108 | /* | 108 | /* |
109 | LLLineEditor* line_editor = LLUICtrlFactory::getLineEditorByName(this, "owner_name_editor"); | 109 | LLLineEditor* line_editor = getChild<LLLineEditor>("owner_name_editor"); |
110 | if (line_editor) | 110 | if (line_editor) |
111 | { | 111 | { |
112 | line_editor->setCommitOnFocusLost(FALSE); | 112 | line_editor->setCommitOnFocusLost(FALSE); |
@@ -114,7 +114,7 @@ BOOL LLFloaterTopObjects::postBuild() | |||
114 | line_editor->setCallbackUserData(this); | 114 | line_editor->setCallbackUserData(this); |
115 | } | 115 | } |
116 | 116 | ||
117 | line_editor = LLUICtrlFactory::getLineEditorByName(this, "object_name_editor"); | 117 | line_editor = getChild<LLLineEditor>("object_name_editor"); |
118 | if (line_editor) | 118 | if (line_editor) |
119 | { | 119 | { |
120 | line_editor->setCommitOnFocusLost(FALSE); | 120 | line_editor->setCommitOnFocusLost(FALSE); |
@@ -247,7 +247,7 @@ void LLFloaterTopObjects::onCommitObjectsList(LLUICtrl* ctrl, void* data) | |||
247 | 247 | ||
248 | void LLFloaterTopObjects::updateSelectionInfo() | 248 | void LLFloaterTopObjects::updateSelectionInfo() |
249 | { | 249 | { |
250 | LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "objects_list"); | 250 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("objects_list"); |
251 | 251 | ||
252 | if (!list) return; | 252 | if (!list) return; |
253 | 253 | ||
@@ -445,7 +445,7 @@ void LLFloaterTopObjects::onGetByOwnerName(LLUICtrl* ctrl, void* data) | |||
445 | 445 | ||
446 | void LLFloaterTopObjects::showBeacon() | 446 | void LLFloaterTopObjects::showBeacon() |
447 | { | 447 | { |
448 | LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "objects_list"); | 448 | LLScrollListCtrl* list = getChild<LLScrollListCtrl>("objects_list"); |
449 | if (!list) return; | 449 | if (!list) return; |
450 | 450 | ||
451 | LLScrollListItem* first_selected = list->getFirstSelected(); | 451 | LLScrollListItem* first_selected = list->getFirstSelected(); |