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/llfloatergroups.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 '')
-rw-r--r-- | linden/indra/newview/llfloatergroups.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloatergroups.cpp b/linden/indra/newview/llfloatergroups.cpp index 4a89fae..7f32b24 100644 --- a/linden/indra/newview/llfloatergroups.cpp +++ b/linden/indra/newview/llfloatergroups.cpp | |||
@@ -52,7 +52,7 @@ | |||
52 | #include "llselectmgr.h" | 52 | #include "llselectmgr.h" |
53 | #include "llscrolllistctrl.h" | 53 | #include "llscrolllistctrl.h" |
54 | #include "lltextbox.h" | 54 | #include "lltextbox.h" |
55 | #include "llvieweruictrlfactory.h" | 55 | #include "lluictrlfactory.h" |
56 | #include "llviewerwindow.h" | 56 | #include "llviewerwindow.h" |
57 | #include "llimview.h" | 57 | #include "llimview.h" |
58 | 58 | ||
@@ -81,7 +81,7 @@ LLFloaterGroupPicker* LLFloaterGroupPicker::findInstance(const LLSD& seed) | |||
81 | LLFloaterGroupPicker* LLFloaterGroupPicker::createInstance(const LLSD &seed) | 81 | LLFloaterGroupPicker* LLFloaterGroupPicker::createInstance(const LLSD &seed) |
82 | { | 82 | { |
83 | LLFloaterGroupPicker* pickerp = new LLFloaterGroupPicker(seed); | 83 | LLFloaterGroupPicker* pickerp = new LLFloaterGroupPicker(seed); |
84 | gUICtrlFactory->buildFloater(pickerp, "floater_choose_group.xml"); | 84 | LLUICtrlFactory::getInstance()->buildFloater(pickerp, "floater_choose_group.xml"); |
85 | return pickerp; | 85 | return pickerp; |
86 | } | 86 | } |
87 | 87 | ||
@@ -115,7 +115,7 @@ void LLFloaterGroupPicker::setPowersMask(U64 powers_mask) | |||
115 | 115 | ||
116 | BOOL LLFloaterGroupPicker::postBuild() | 116 | BOOL LLFloaterGroupPicker::postBuild() |
117 | { | 117 | { |
118 | init_group_list(LLUICtrlFactory::getScrollListByName(this, "group list"), gAgent.getGroupID(), mPowersMask); | 118 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID(), mPowersMask); |
119 | 119 | ||
120 | childSetAction("OK", onBtnOK, this); | 120 | childSetAction("OK", onBtnOK, this); |
121 | 121 | ||
@@ -173,8 +173,7 @@ bool LLPanelGroups::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | |||
173 | reset(); | 173 | reset(); |
174 | return true; | 174 | return true; |
175 | } | 175 | } |
176 | 176 | return false; | |
177 | return LLView::handleEvent(event, userdata); | ||
178 | } | 177 | } |
179 | 178 | ||
180 | // Default constructor | 179 | // Default constructor |
@@ -200,7 +199,7 @@ void LLPanelGroups::reset() | |||
200 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); | 199 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); |
201 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); | 200 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); |
202 | 201 | ||
203 | init_group_list(LLUICtrlFactory::getScrollListByName(this, "group list"), gAgent.getGroupID()); | 202 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID()); |
204 | enableButtons(); | 203 | enableButtons(); |
205 | } | 204 | } |
206 | 205 | ||
@@ -211,7 +210,7 @@ BOOL LLPanelGroups::postBuild() | |||
211 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); | 210 | childSetTextArg("groupcount", "[COUNT]", llformat("%d",gAgent.mGroups.count())); |
212 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); | 211 | childSetTextArg("groupcount", "[MAX]", llformat("%d",MAX_AGENT_GROUPS)); |
213 | 212 | ||
214 | init_group_list(LLUICtrlFactory::getScrollListByName(this, "group list"), gAgent.getGroupID()); | 213 | init_group_list(getChild<LLScrollListCtrl>("group list"), gAgent.getGroupID()); |
215 | 214 | ||
216 | childSetAction("Activate", onBtnActivate, this); | 215 | childSetAction("Activate", onBtnActivate, this); |
217 | 216 | ||