diff options
author | Richard Nelson <none@none> | 2010-07-30 10:02:30 -0700 |
---|---|---|
committer | Richard Nelson <none@none> | 2010-07-30 10:02:30 -0700 |
commit | 9b526997d93d9290602a86f91a7f096da4395d97 (patch) | |
tree | 1cc7ae3cfca94a0417d9de1fe600304b7cf7cc6c /indra/newview/llpanelgroup.cpp | |
parent | 5d13631452ac043b549f2b8be52c4cc3bf36206a (diff) |
deprecated LLPanel::child*() methods
Diffstat (limited to 'indra/newview/llpanelgroup.cpp')
-rw-r--r-- | indra/newview/llpanelgroup.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/llpanelgroup.cpp b/indra/newview/llpanelgroup.cpp index d997b83cbb..62852f98d9 100644 --- a/indra/newview/llpanelgroup.cpp +++ b/indra/newview/llpanelgroup.cpp @@ -321,7 +321,7 @@ void LLPanelGroup::onChange(EStatusType status, const std::string &channelURI, b return; } - childSetEnabled("btn_call", LLVoiceClient::getInstance()->voiceEnabled() && LLVoiceClient::getInstance()->isVoiceWorking()); + getChildView("btn_call")->setEnabled(LLVoiceClient::getInstance()->voiceEnabled() && LLVoiceClient::getInstance()->isVoiceWorking()); } void LLPanelGroup::notifyObservers() @@ -335,8 +335,8 @@ void LLPanelGroup::update(LLGroupChange gc) if(gdatap) { std::string group_name = gdatap->mName.empty() ? LLTrans::getString("LoadingData") : gdatap->mName; - childSetValue("group_name", group_name); - childSetToolTip("group_name",group_name); + getChild<LLUICtrl>("group_name")->setValue(group_name); + getChildView("group_name")->setToolTip(group_name); LLGroupData agent_gdatap; bool is_member = gAgent.getGroupData(mID,agent_gdatap) || gAgent.isGodlike(); @@ -382,8 +382,8 @@ void LLPanelGroup::setGroupID(const LLUUID& group_id) if(gdatap) { std::string group_name = gdatap->mName.empty() ? LLTrans::getString("LoadingData") : gdatap->mName; - childSetValue("group_name", group_name); - childSetToolTip("group_name",group_name); + getChild<LLUICtrl>("group_name")->setValue(group_name); + getChildView("group_name")->setToolTip(group_name); } LLButton* button_apply = findChild<LLButton>("btn_apply"); @@ -535,7 +535,7 @@ void LLPanelGroup::draw() if (mRefreshTimer.hasExpired()) { mRefreshTimer.stop(); - childEnable("btn_refresh"); + getChildView("btn_refresh")->setEnabled(TRUE); } LLButton* button_apply = findChild<LLButton>("btn_apply"); @@ -547,7 +547,7 @@ void LLPanelGroup::draw() for(std::vector<LLPanelGroupTab* >::iterator it = mTabs.begin();it!=mTabs.end();++it) enable = enable || (*it)->needsApply(mesg); - childSetEnabled("btn_apply", enable); + getChildView("btn_apply")->setEnabled(enable); } } @@ -563,7 +563,7 @@ void LLPanelGroup::refreshData() setGroupID(getID()); // 5 second timeout - childDisable("btn_refresh"); + getChildView("btn_refresh")->setEnabled(FALSE); mRefreshTimer.start(); mRefreshTimer.setTimerExpirySec(5); } |