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/llfloateravatarpicker.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/llfloateravatarpicker.cpp')
-rw-r--r-- | linden/indra/newview/llfloateravatarpicker.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloateravatarpicker.cpp b/linden/indra/newview/llfloateravatarpicker.cpp index 4d01bab..f31626e 100644 --- a/linden/indra/newview/llfloateravatarpicker.cpp +++ b/linden/indra/newview/llfloateravatarpicker.cpp | |||
@@ -41,7 +41,7 @@ | |||
41 | #include "lllineeditor.h" | 41 | #include "lllineeditor.h" |
42 | #include "llscrolllistctrl.h" | 42 | #include "llscrolllistctrl.h" |
43 | #include "lltextbox.h" | 43 | #include "lltextbox.h" |
44 | #include "llvieweruictrlfactory.h" | 44 | #include "lluictrlfactory.h" |
45 | #include "llagent.h" | 45 | #include "llagent.h" |
46 | 46 | ||
47 | const S32 MIN_WIDTH = 200; | 47 | const S32 MIN_WIDTH = 200; |
@@ -88,7 +88,7 @@ LLFloaterAvatarPicker::LLFloaterAvatarPicker() : | |||
88 | mCallback(NULL), | 88 | mCallback(NULL), |
89 | mCallbackUserdata(NULL) | 89 | mCallbackUserdata(NULL) |
90 | { | 90 | { |
91 | gUICtrlFactory->buildFloater(this, "floater_avatar_picker.xml", NULL); | 91 | LLUICtrlFactory::getInstance()->buildFloater(this, "floater_avatar_picker.xml", NULL); |
92 | } | 92 | } |
93 | 93 | ||
94 | BOOL LLFloaterAvatarPicker::postBuild() | 94 | BOOL LLFloaterAvatarPicker::postBuild() |
@@ -98,7 +98,7 @@ BOOL LLFloaterAvatarPicker::postBuild() | |||
98 | childSetAction("Find", onBtnFind, this); | 98 | childSetAction("Find", onBtnFind, this); |
99 | childDisable("Find"); | 99 | childDisable("Find"); |
100 | 100 | ||
101 | mListNames = LLViewerUICtrlFactory::getScrollListByName(this, "Names"); | 101 | mListNames = getChild<LLScrollListCtrl>("Names"); |
102 | childSetDoubleClickCallback("Names",onBtnAdd); | 102 | childSetDoubleClickCallback("Names",onBtnAdd); |
103 | childSetCommitCallback("Names", onList, this); | 103 | childSetCommitCallback("Names", onList, this); |
104 | childDisable("Names"); | 104 | childDisable("Names"); |
@@ -115,7 +115,7 @@ BOOL LLFloaterAvatarPicker::postBuild() | |||
115 | mListNames->addCommentText("No results"); | 115 | mListNames->addCommentText("No results"); |
116 | } | 116 | } |
117 | 117 | ||
118 | mInventoryPanel = (LLInventoryPanel*)this->getCtrlByNameAndType("Inventory Panel", WIDGET_TYPE_INVENTORY_PANEL); | 118 | mInventoryPanel = getChild<LLInventoryPanel>("Inventory Panel"); |
119 | if(mInventoryPanel) | 119 | if(mInventoryPanel) |
120 | { | 120 | { |
121 | mInventoryPanel->setFilterTypes(0x1 << LLInventoryType::IT_CALLINGCARD); | 121 | mInventoryPanel->setFilterTypes(0x1 << LLInventoryType::IT_CALLINGCARD); |
@@ -388,7 +388,7 @@ void LLFloaterAvatarPicker::editKeystroke(LLLineEditor* caller, void* user_data) | |||
388 | } | 388 | } |
389 | 389 | ||
390 | // virtual | 390 | // virtual |
391 | BOOL LLFloaterAvatarPicker::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) | 391 | BOOL LLFloaterAvatarPicker::handleKeyHere(KEY key, MASK mask) |
392 | { | 392 | { |
393 | if (key == KEY_RETURN | 393 | if (key == KEY_RETURN |
394 | && mask == MASK_NONE) | 394 | && mask == MASK_NONE) |
@@ -410,5 +410,5 @@ BOOL LLFloaterAvatarPicker::handleKeyHere(KEY key, MASK mask, BOOL called_from_p | |||
410 | return TRUE; | 410 | return TRUE; |
411 | } | 411 | } |
412 | 412 | ||
413 | return LLFloater::handleKeyHere(key, mask, called_from_parent); | 413 | return LLFloater::handleKeyHere(key, mask); |
414 | } | 414 | } |