aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcompilequeue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llcompilequeue.cpp')
-rw-r--r--linden/indra/newview/llcompilequeue.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/linden/indra/newview/llcompilequeue.cpp b/linden/indra/newview/llcompilequeue.cpp
index 8e1ba81..aeaa189 100644
--- a/linden/indra/newview/llcompilequeue.cpp
+++ b/linden/indra/newview/llcompilequeue.cpp
@@ -56,7 +56,7 @@
56#include "lldir.h" 56#include "lldir.h"
57#include "llfloaterchat.h" 57#include "llfloaterchat.h"
58#include "llviewerstats.h" 58#include "llviewerstats.h"
59#include "llvieweruictrlfactory.h" 59#include "lluictrlfactory.h"
60 60
61///---------------------------------------------------------------------------- 61///----------------------------------------------------------------------------
62/// Local function declarations, constants, enums, and typedefs 62/// Local function declarations, constants, enums, and typedefs
@@ -106,7 +106,7 @@ LLFloaterScriptQueue::LLFloaterScriptQueue(const std::string& name,
106 DRAG_ON_TOP, MINIMIZE_YES, CLOSE_YES) 106 DRAG_ON_TOP, MINIMIZE_YES, CLOSE_YES)
107{ 107{
108 108
109 gUICtrlFactory->buildFloater(this,"floater_script_queue.xml"); 109 LLUICtrlFactory::getInstance()->buildFloater(this,"floater_script_queue.xml");
110 110
111 childSetAction("close",onCloseBtn,this); 111 childSetAction("close",onCloseBtn,this);
112 childSetEnabled("close",FALSE); 112 childSetEnabled("close",FALSE);
@@ -201,7 +201,7 @@ BOOL LLFloaterScriptQueue::start()
201 char buffer[MAX_STRING]; /*Flawfinder: ignore*/ 201 char buffer[MAX_STRING]; /*Flawfinder: ignore*/
202 snprintf(buffer, sizeof(buffer), "Starting %s of %d items.", mStartString, mObjectIDs.count()); /* Flawfinder: ignore */ 202 snprintf(buffer, sizeof(buffer), "Starting %s of %d items.", mStartString, mObjectIDs.count()); /* Flawfinder: ignore */
203 203
204 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "queue output"); 204 LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");
205 list->addCommentText(buffer); 205 list->addCommentText(buffer);
206 206
207 return nextObject(); 207 return nextObject();
@@ -235,7 +235,7 @@ BOOL LLFloaterScriptQueue::nextObject()
235 if(isDone() && !mDone) 235 if(isDone() && !mDone)
236 { 236 {
237 237
238 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "queue output"); 238 LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");
239 239
240 mDone = TRUE; 240 mDone = TRUE;
241 char buffer[MAX_STRING]; /*Flawfinder: ignore*/ 241 char buffer[MAX_STRING]; /*Flawfinder: ignore*/
@@ -412,10 +412,7 @@ void LLFloaterCompileQueue::scriptArrived(LLVFS *vfs, const LLUUID& asset_id,
412 } 412 }
413 else 413 else
414 { 414 {
415 if( gViewerStats ) 415 LLViewerStats::getInstance()->incStat( LLViewerStats::ST_DOWNLOAD_FAILED );
416 {
417 gViewerStats->incStat( LLViewerStats::ST_DOWNLOAD_FAILED );
418 }
419 416
420 if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status ) 417 if( LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE == status )
421 { 418 {
@@ -442,7 +439,7 @@ void LLFloaterCompileQueue::scriptArrived(LLVFS *vfs, const LLUUID& asset_id,
442 } 439 }
443 if(queue) 440 if(queue)
444 { 441 {
445 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(queue, "queue output"); 442 LLScrollListCtrl* list = queue->getChild<LLScrollListCtrl>("queue output");
446 list->addCommentText(buffer); 443 list->addCommentText(buffer);
447 } 444 }
448 delete data; 445 delete data;
@@ -621,7 +618,7 @@ void LLFloaterResetQueue::handleInventory(LLViewerObject* viewer_obj,
621 if (object) 618 if (object)
622 { 619 {
623 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it)); 620 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it));
624 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "queue output"); 621 LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");
625 char buffer[MAX_STRING]; /*Flawfinder: ignore*/ 622 char buffer[MAX_STRING]; /*Flawfinder: ignore*/
626 snprintf(buffer, sizeof(buffer), "Resetting '%s'.", item->getName().c_str()); /* Flawfinder: ignore */ 623 snprintf(buffer, sizeof(buffer), "Resetting '%s'.", item->getName().c_str()); /* Flawfinder: ignore */
627 list->addCommentText(buffer); 624 list->addCommentText(buffer);
@@ -684,7 +681,7 @@ void LLFloaterRunQueue::handleInventory(LLViewerObject* viewer_obj,
684 if (object) 681 if (object)
685 { 682 {
686 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it)); 683 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it));
687 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "queue output"); 684 LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");
688 char buffer[MAX_STRING]; /*Flawfinder: ignore*/ 685 char buffer[MAX_STRING]; /*Flawfinder: ignore*/
689 snprintf(buffer, sizeof(buffer), "Running '%s'.", item->getName().c_str()); /* Flawfinder: ignore */ 686 snprintf(buffer, sizeof(buffer), "Running '%s'.", item->getName().c_str()); /* Flawfinder: ignore */
690 list->addCommentText(buffer); 687 list->addCommentText(buffer);
@@ -749,7 +746,7 @@ void LLFloaterNotRunQueue::handleInventory(LLViewerObject* viewer_obj,
749 if (object) 746 if (object)
750 { 747 {
751 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it)); 748 LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it));
752 LLScrollListCtrl* list = LLUICtrlFactory::getScrollListByName(this, "queue output"); 749 LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");
753 char buffer[MAX_STRING]; /*Flawfinder: ignore*/ 750 char buffer[MAX_STRING]; /*Flawfinder: ignore*/
754 snprintf(buffer, sizeof(buffer), "Not running '%s'.", item->getName().c_str()); /* Flawfinder: ignore */ 751 snprintf(buffer, sizeof(buffer), "Not running '%s'.", item->getName().c_str()); /* Flawfinder: ignore */
755 list->addCommentText(buffer); 752 list->addCommentText(buffer);