diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterimport.cpp | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/linden/indra/newview/llfloaterimport.cpp b/linden/indra/newview/llfloaterimport.cpp index 478b5d7..72cf2e0 100644 --- a/linden/indra/newview/llfloaterimport.cpp +++ b/linden/indra/newview/llfloaterimport.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2005-2007, Linden Research, Inc. | 5 | * Copyright (c) 2005-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 |
@@ -148,9 +149,6 @@ BOOL LLFloaterImport::postBuild() | |||
148 | setDefaultBtn(mOKBtn); | 149 | setDefaultBtn(mOKBtn); |
149 | 150 | ||
150 | mImageLabel = LLViewerUICtrlFactory::getTextBoxByName(this, "preview_label"); | 151 | mImageLabel = LLViewerUICtrlFactory::getTextBoxByName(this, "preview_label"); |
151 | |||
152 | LLFontGL *default_font = LLFontGL::sSansSerif; | ||
153 | |||
154 | mImportList = LLViewerUICtrlFactory::getScrollListByName(this, "upload_list"); | 152 | mImportList = LLViewerUICtrlFactory::getScrollListByName(this, "upload_list"); |
155 | 153 | ||
156 | bool object_file_read = false; | 154 | bool object_file_read = false; |
@@ -180,17 +178,20 @@ BOOL LLFloaterImport::postBuild() | |||
180 | task_name_node->getStringValue(1, &task_name); | 178 | task_name_node->getStringValue(1, &task_name); |
181 | } | 179 | } |
182 | { | 180 | { |
183 | LLScrollListItem *new_item = new LLScrollListItem(TRUE, task); | ||
184 | new_item->addColumn("OBJECT", default_font, 60); | ||
185 | LLString output_line; | 181 | LLString output_line; |
186 | char buffer[20]; /*Flawfinder: ignore*/ | 182 | char buffer[20]; /*Flawfinder: ignore*/ |
187 | snprintf(buffer, sizeof(buffer), "%d", (S32)tasks_list.size()); /*Flawfinder: ignore*/ | 183 | snprintf(buffer, sizeof(buffer), "%d", (S32)tasks_list.size()); /* Flawfinder: ignore */ |
188 | output_line.append(buffer); | 184 | output_line.append(buffer); |
189 | output_line.append(" prims"); | 185 | output_line.append(" prims"); |
190 | new_item->addColumn(output_line, default_font, 80); | 186 | |
191 | new_item->addColumn(task_name, default_font); | 187 | LLSD row; |
192 | new_item->setEnabled(FALSE); | 188 | row["columns"][0]["value"] = "OBJECT"; |
193 | mImportList->addItem(new_item); | 189 | row["columns"][0]["width"] = 60; |
190 | row["columns"][1]["value"] = output_line; | ||
191 | row["columns"][1]["width"] = 80; | ||
192 | row["columns"][2]["value"] = task_name; | ||
193 | row["enabled"] = false; | ||
194 | mImportList->addElement(row); | ||
194 | } | 195 | } |
195 | mImportList->setCanSelect(TRUE); | 196 | mImportList->setCanSelect(TRUE); |
196 | mImportList->setAllowMultipleSelection(TRUE); | 197 | mImportList->setAllowMultipleSelection(TRUE); |
@@ -286,12 +287,13 @@ BOOL LLFloaterImport::postBuild() | |||
286 | } | 287 | } |
287 | for (U32 image_num=0; image_num<unique_images.size(); ++image_num) | 288 | for (U32 image_num=0; image_num<unique_images.size(); ++image_num) |
288 | { | 289 | { |
289 | LLString *image_file = new LLString(unique_images[image_num]); | 290 | LLSD row; |
290 | LLScrollListItem *new_item = new LLScrollListItem(TRUE, image_file, unique_ids[image_num]); | 291 | row["columns"][0]["value"] = "IMAGE"; |
291 | new_item->addColumn("IMAGE", default_font, 60); | 292 | row["columns"][0]["width"] = 60; |
292 | new_item->addColumn(image_changed[image_num]?"NEW":"NOT NEW", default_font, 80); | 293 | row["columns"][1]["value"] = image_changed[image_num]?"NEW":"NOT NEW"; |
293 | new_item->addColumn(unique_images[image_num].c_str(), default_font); | 294 | row["columns"][1]["width"] = 80; |
294 | mImportList->addItem(new_item); | 295 | row["columns"][2]["value"] = unique_images[image_num]; |
296 | mImportList->addElement(row); | ||
295 | mImportList->setCanSelect(TRUE); | 297 | mImportList->setCanSelect(TRUE); |
296 | image_count++; | 298 | image_count++; |
297 | } | 299 | } |