diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llpanelmsgs.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llpanelmsgs.cpp')
-rw-r--r-- | linden/indra/newview/llpanelmsgs.cpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelmsgs.cpp b/linden/indra/newview/llpanelmsgs.cpp index 08ba343..f25d477 100644 --- a/linden/indra/newview/llpanelmsgs.cpp +++ b/linden/indra/newview/llpanelmsgs.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2003-2007, Linden Research, Inc. | 5 | * Copyright (c) 2003-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -69,22 +70,32 @@ void LLPanelMsgs::buildLists() | |||
69 | { | 70 | { |
70 | LLAlertDialogTemplate* alert_temp = iter->second; | 71 | LLAlertDialogTemplate* alert_temp = iter->second; |
71 | S32 ignore = alert_temp->getIgnore(); | 72 | S32 ignore = alert_temp->getIgnore(); |
72 | LLScrollListItem* item = new LLScrollListItem(); | 73 | |
73 | item->setUserdata((void*)&iter->first); | 74 | LLSD row; |
74 | item->addColumn(alert_temp->mIgnoreListText, LLFontGL::sSansSerifSmall, 300); | 75 | row["columns"][0]["value"] = alert_temp->mIgnoreListText; |
76 | row["columns"][0]["font"] = "SANSSERIF_SMALL"; | ||
77 | row["columns"][0]["width"] = 300; | ||
78 | |||
79 | LLScrollListItem* item = NULL; | ||
80 | |||
81 | |||
75 | if (ignore) | 82 | if (ignore) |
76 | { | 83 | { |
77 | if (ignore == LLAlertDialog::IGNORE_USE_SAVED) | 84 | if (ignore == LLAlertDialog::IGNORE_USE_SAVED) |
78 | { | 85 | { |
79 | S32 arg = LLUI::sConfigGroup->getS32("Default" + alert_temp->mIgnoreLabel); | 86 | S32 arg = LLUI::sConfigGroup->getS32("Default" + alert_temp->mIgnoreLabel); |
80 | item->addColumn(alert_temp->mOptionDefaultText[arg], LLFontGL::sSansSerifSmall, 160); | 87 | row["columns"][1]["value"] = alert_temp->mOptionDefaultText[arg]; |
88 | row["columns"][1]["font"] = "SANSSERIF_SMALL"; | ||
89 | row["columns"][1]["width"] = 160; | ||
81 | } | 90 | } |
82 | mDisabledPopups->addItem(item, ADD_SORTED); | 91 | item = mDisabledPopups->addElement(row, ADD_SORTED); |
83 | } | 92 | } |
84 | else | 93 | else |
85 | { | 94 | { |
86 | mEnabledPopups->addItem(item, ADD_SORTED); | 95 | item = mEnabledPopups->addElement(row, ADD_SORTED); |
87 | } | 96 | } |
97 | |||
98 | item->setUserdata((void*)&iter->first); | ||
88 | } | 99 | } |
89 | } | 100 | } |
90 | 101 | ||