implemented EXT-4131 [BSI] "Only friends and groups can call or IM me" NEEDS auto-response

added a modal warning window
"Non-friends won't know that you've choosen to ignore their calls and instant messages."

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2010-01-25 17:20:09 +02:00
parent bac4045064
commit 307d94a92a
3 changed files with 22 additions and 0 deletions

View File

@ -1435,6 +1435,7 @@ BOOL LLPanelPreference::postBuild()
media_enabled_ctrl->set(enabled);
media_enabled_ctrl->setTentative(!(video_enabled == music_enabled == media_enabled));
getChild<LLCheckBoxCtrl>("autoplay_enabled")->setEnabled(enabled);
getChild<LLCheckBoxCtrl>("voice_call_friends_only_check")->setCommitCallback(showFriendsOnlyWarning);
}
apply();
@ -1485,6 +1486,14 @@ void LLPanelPreference::saveSettings()
}
}
void LLPanelPreference::showFriendsOnlyWarning(LLUICtrl* checkbox, const LLSD& value)
{
if (checkbox && checkbox->getValue())
{
LLNotificationsUtil::add("FriendsAndGroupsOnly");
}
}
void LLPanelPreference::cancel()
{
for (control_values_map_t::iterator iter = mSavedValues.begin();

View File

@ -166,6 +166,9 @@ public:
virtual void saveSettings();
private:
//for "Only friends and groups can call or IM me"
static void showFriendsOnlyWarning(LLUICtrl*, const LLSD&);
typedef std::map<LLControlVariable*, LLSD> control_values_map_t;
control_values_map_t mSavedValues;

View File

@ -242,6 +242,16 @@ Save all changes to clothing/body parts?
yestext="Save All"/>
</notification>
<notification
icon="alertmodal.tga"
name="FriendsAndGroupsOnly"
type="alertmodal">
Non-friends won't know that you've choosen to ignore their calls and instant messages.
<usetemplate
name="okbutton"
yestext="Yes"/>
</notification>
<notification
icon="alertmodal.tga"
name="GrantModifyRights"