Hooked LLTrans into LLNotification stuffs. Also, fixed [CURRENCY] showing up in several places on the buy land window.
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "llviewercontrol.h"
|
||||
#include "lluictrlfactory.h"
|
||||
#include "llfirstuse.h"
|
||||
#include "llnotificationtemplate.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
LLPanelMsgs::LLPanelMsgs() :
|
||||
@@ -71,11 +72,14 @@ BOOL LLPanelMsgs::postBuild()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLPanelMsgs::buildLists()
|
||||
{
|
||||
LLScrollListCtrl& disabled_popups = getChildRef<LLScrollListCtrl>("disabled_popups");
|
||||
LLScrollListCtrl& enabled_popups = getChildRef<LLScrollListCtrl>("enabled_popups");
|
||||
|
||||
void LLPanelMsgs::buildLists() //void LLFloaterPreference::buildPopupLists() in v3
|
||||
{
|
||||
LLScrollListCtrl& disabled_popups =
|
||||
getChildRef<LLScrollListCtrl>("disabled_popups");
|
||||
LLScrollListCtrl& enabled_popups =
|
||||
getChildRef<LLScrollListCtrl>("enabled_popups");
|
||||
|
||||
disabled_popups.deleteAllItems();
|
||||
enabled_popups.deleteAllItems();
|
||||
|
||||
@@ -90,14 +94,20 @@ void LLPanelMsgs::buildLists()
|
||||
if (ignore == LLNotificationForm::IGNORE_NO)
|
||||
continue;
|
||||
|
||||
LLSD params;
|
||||
params["name"] = (*iter).first;
|
||||
LLNotificationPtr notification = LLNotificationPtr(new LLNotification(params));
|
||||
|
||||
LLSD row;
|
||||
row["columns"][0]["value"] = formp->getIgnoreMessage();
|
||||
std::string ignore_msg = formp->getIgnoreMessage();
|
||||
LLStringUtil::format(ignore_msg,notification->getSubstitutions());
|
||||
row["columns"][0]["value"] = ignore_msg;
|
||||
row["columns"][0]["font"] = "SANSSERIF_SMALL";
|
||||
row["columns"][0]["width"] = 300;
|
||||
|
||||
LLScrollListItem* item = NULL;
|
||||
|
||||
bool show_popup = gSavedSettings.getWarning(templatep->mName);
|
||||
bool show_popup = !formp->getIgnored();
|
||||
if (!show_popup)
|
||||
{
|
||||
if (ignore == LLNotificationForm::IGNORE_WITH_LAST_RESPONSE)
|
||||
|
||||
Reference in New Issue
Block a user