diff options
| author | Jonathan Yap <none@none> | 2012-01-30 16:12:40 -0500 | 
|---|---|---|
| committer | Jonathan Yap <none@none> | 2012-01-30 16:12:40 -0500 | 
| commit | 439a7df6ba40e34d390eee7849879a41cc2785de (patch) | |
| tree | a1a7d48941d9477e4bdd5e671c51af482fa6b788 | |
| parent | 4ef9277761b5faee2825177112939b72c563a4ea (diff) | |
STORM-637 Scripts Progress windows Missing
| -rw-r--r-- | doc/contributions.txt | 1 | ||||
| -rw-r--r-- | indra/newview/llcompilequeue.cpp | 15 | ||||
| -rw-r--r-- | indra/newview/llviewermenu.cpp | 7 | 
3 files changed, 16 insertions, 7 deletions
| diff --git a/doc/contributions.txt b/doc/contributions.txt index c5db396c97..9ff8b98fe2 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -610,6 +610,7 @@ Jonathan Yap  	STORM-1788  	STORM-1799  	STORM-1796 +	STORM-637  Kadah Coba  	STORM-1060  Jondan Lundquist diff --git a/indra/newview/llcompilequeue.cpp b/indra/newview/llcompilequeue.cpp index a42677845e..91cf630932 100644 --- a/indra/newview/llcompilequeue.cpp +++ b/indra/newview/llcompilequeue.cpp @@ -100,6 +100,7 @@ BOOL LLFloaterScriptQueue::postBuild()  {  	childSetAction("close",onCloseBtn,this);  	getChildView("close")->setEnabled(FALSE); +	setVisible(true);  	return TRUE;  } @@ -178,7 +179,7 @@ BOOL LLFloaterScriptQueue::start()  	args["[COUNT]"] = llformat ("%d", mObjectIDs.count());  	buffer = getString ("Starting", args); -	getChild<LLScrollListCtrl>("queue output")->setCommentText(buffer); +	getChild<LLScrollListCtrl>("queue output")->addSimpleElement(buffer, ADD_BOTTOM);  	return nextObject();  } @@ -211,7 +212,7 @@ BOOL LLFloaterScriptQueue::nextObject()  	if(isDone() && !mDone)  	{  		mDone = true; -		getChild<LLScrollListCtrl>("queue output")->setCommentText(getString("Done")); +		getChild<LLScrollListCtrl>("queue output")->addSimpleElement(getString("Done"), ADD_BOTTOM);  		getChildView("close")->setEnabled(TRUE);  	}  	return successful_start; @@ -277,7 +278,7 @@ public:  			return;  		} -		queue->getChild<LLScrollListCtrl>("queue output")->setCommentText(message); +		queue->getChild<LLScrollListCtrl>("queue output")->addSimpleElement(message, ADD_BOTTOM);  	}  private: @@ -464,7 +465,7 @@ void LLFloaterCompileQueue::scriptArrived(LLVFS *vfs, const LLUUID& asset_id,  	}  	if(queue && (buffer.size() > 0))   	{ -		queue->getChild<LLScrollListCtrl>("queue output")->setCommentText(buffer); +		queue->getChild<LLScrollListCtrl>("queue output")->addSimpleElement(buffer, ADD_BOTTOM);  	}  	delete data;  } @@ -637,7 +638,7 @@ void LLFloaterResetQueue::handleInventory(LLViewerObject* viewer_obj,  				LLInventoryItem* item = (LLInventoryItem*)((LLInventoryObject*)(*it));  				std::string buffer;  				buffer = getString("Resetting") + (": ") + item->getName(); -				getChild<LLScrollListCtrl>("queue output")->setCommentText(buffer); +				getChild<LLScrollListCtrl>("queue output")->addSimpleElement(buffer, ADD_BOTTOM);  				LLMessageSystem* msg = gMessageSystem;  				msg->newMessageFast(_PREHASH_ScriptReset);  				msg->nextBlockFast(_PREHASH_AgentData); @@ -690,7 +691,7 @@ void LLFloaterRunQueue::handleInventory(LLViewerObject* viewer_obj,  				LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");  				std::string buffer;  				buffer = getString("Running") + (": ") + item->getName(); -				list->setCommentText(buffer); +				list->addSimpleElement(buffer, ADD_BOTTOM);  				LLMessageSystem* msg = gMessageSystem;  				msg->newMessageFast(_PREHASH_SetScriptRunning); @@ -745,7 +746,7 @@ void LLFloaterNotRunQueue::handleInventory(LLViewerObject* viewer_obj,  				LLScrollListCtrl* list = getChild<LLScrollListCtrl>("queue output");  				std::string buffer;  				buffer = getString("NotRunning") + (": ") +item->getName(); -				list->setCommentText(buffer); +				list->addSimpleElement(buffer, ADD_BOTTOM);  				LLMessageSystem* msg = gMessageSystem;  				msg->newMessageFast(_PREHASH_SetScriptRunning); diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 67f6150dbe..34f13c71a3 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -6509,31 +6509,37 @@ class LLToolsSelectedScriptAction : public view_listener_t  		std::string action = userdata.asString();  		bool mono = false;  		std::string msg, name; +		std::string title;  		if (action == "compile mono")  		{  			name = "compile_queue";  			mono = true;  			msg = "Recompile"; +			title = LLTrans::getString("CompileQueueTitle");  		}  		if (action == "compile lsl")  		{  			name = "compile_queue";  			msg = "Recompile"; +			title = LLTrans::getString("CompileQueueTitle");  		}  		else if (action == "reset")  		{  			name = "reset_queue";  			msg = "Reset"; +			title = LLTrans::getString("ResetQueueTitle");  		}  		else if (action == "start")  		{  			name = "start_queue";  			msg = "SetRunning"; +			title = LLTrans::getString("RunQueueTitle");  		}  		else if (action == "stop")  		{  			name = "stop_queue";  			msg = "SetRunningNot"; +			title = LLTrans::getString("NotRunQueueTitle");  		}  		LLUUID id; id.generate(); @@ -6542,6 +6548,7 @@ class LLToolsSelectedScriptAction : public view_listener_t  		{  			queue->setMono(mono);  			queue_actions(queue, msg); +			queue->setTitle(title);  		}  		else  		{ | 
