diff options
| author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-04-20 17:37:44 +0300 | 
|---|---|---|
| committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-04-20 17:37:44 +0300 | 
| commit | 2da402498f64b982edfe2ba6545780a16731ad34 (patch) | |
| tree | b71b69e1e634266b7e5bc3e4d2a910d1798202f6 /indra/newview | |
| parent | 3c45631cbc4b1f26143f05e9a58f0349679e663a (diff) | |
| parent | 5952fbca316ba1d1e4243bf5ebd6dc647e4957f4 (diff) | |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llagent.cpp | 12 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 13 | ||||
| -rw-r--r-- | indra/newview/llfeaturemanager.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llfloatertos.cpp | 38 | ||||
| -rw-r--r-- | indra/newview/llfloatertos.h | 2 | ||||
| -rw-r--r-- | indra/newview/llmoveview.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llpanelnearbymedia.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llpanelprimmediacontrols.cpp | 19 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llviewerassetstorage.cpp | 9 | ||||
| -rw-r--r-- | indra/newview/llviewerassetstorage.h | 4 | ||||
| -rw-r--r-- | indra/newview/llviewerjoystick.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llviewermedia.h | 6 | ||||
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.h | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/mime_types.xml | 6 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/mime_types_linux.xml | 6 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/mime_types_mac.xml | 6 | 
19 files changed, 79 insertions, 70 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index f434782977..8bcf680876 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1295,6 +1295,13 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)  		{  			resetAxes(mAutoPilotTargetFacing);  		} +		// Restore previous flying state before invoking mAutoPilotFinishedCallback to allow +		// callback function to change the flying state (like in near_sit_down_point()). +		// If the user cancelled, don't change the fly state +		if (!user_cancel) +		{ +			setFlying(mAutoPilotFlyOnStop); +		}  		//NB: auto pilot can terminate for a reason other than reaching the destination  		if (mAutoPilotFinishedCallback)  		{ @@ -1302,11 +1309,6 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)  		}  		mLeaderID = LLUUID::null; -		// If the user cancelled, don't change the fly state -		if (!user_cancel) -		{ -			setFlying(mAutoPilotFlyOnStop); -		}  		setControlFlags(AGENT_CONTROL_STOP);  		if (user_cancel && !mAutoPilotBehaviorName.empty()) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 78163adf47..2f9bbb1407 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -862,7 +862,7 @@ bool LLAppViewer::init()  			minSpecs += "\n";  			unsupported = true;  		} -		if(gSysCPU.getMhz() < minCPU) +		if(gSysCPU.getMHz() < minCPU)  		{  			minSpecs += LLNotifications::instance().getGlobalString("UnsupportedCPU");  			minSpecs += "\n"; @@ -2524,7 +2524,7 @@ void LLAppViewer::writeSystemInfo()  	gDebugInfo["CPUInfo"]["CPUString"] = gSysCPU.getCPUString();  	gDebugInfo["CPUInfo"]["CPUFamily"] = gSysCPU.getFamily(); -	gDebugInfo["CPUInfo"]["CPUMhz"] = gSysCPU.getMhz(); +	gDebugInfo["CPUInfo"]["CPUMhz"] = (S32)gSysCPU.getMHz();  	gDebugInfo["CPUInfo"]["CPUAltivec"] = gSysCPU.hasAltivec();  	gDebugInfo["CPUInfo"]["CPUSSE"] = gSysCPU.hasSSE();  	gDebugInfo["CPUInfo"]["CPUSSE2"] = gSysCPU.hasSSE2(); @@ -2537,7 +2537,7 @@ void LLAppViewer::writeSystemInfo()  	// which may have been the intended grid. This can b  	gDebugInfo["GridName"] = LLViewerLogin::getInstance()->getGridLabel(); -	// *FIX:Mani - move this ddown in llappviewerwin32 +	// *FIX:Mani - move this down in llappviewerwin32  #ifdef LL_WINDOWS  	DWORD thread_id = GetCurrentThreadId();  	gDebugInfo["MainloopThreadID"] = (S32)thread_id; @@ -3242,6 +3242,13 @@ bool LLAppViewer::initCache()  	else  	{  		LLVFile::initClass(); + +		//llinfos << "Static VFS listing" << llendl; +		//gStaticVFS->listFiles(); + +		//llinfos << "regular VFS listing" << llendl; +		//gVFS->listFiles(); +		  		return true;  	}  } diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp index fbb90c69f3..50b08f782a 100644 --- a/indra/newview/llfeaturemanager.cpp +++ b/indra/newview/llfeaturemanager.cpp @@ -621,9 +621,9 @@ void LLFeatureManager::applyBaseMasks()  #if LL_SOLARIS && defined(__sparc) 	//  even low MHz SPARCs are fast  #error The 800 is hinky. Would something like a LL_MIN_MHZ make more sense here? -	if (gSysCPU.getMhz() < 800) +	if (gSysCPU.getMHz() < 800)  #else -	if (gSysCPU.getMhz() < 1100) +	if (gSysCPU.getMHz() < 1100)  #endif  	{  		maskFeatures("CPUSlow"); diff --git a/indra/newview/llfloatertos.cpp b/indra/newview/llfloatertos.cpp index 3db9587797..104827f4a3 100644 --- a/indra/newview/llfloatertos.cpp +++ b/indra/newview/llfloatertos.cpp @@ -144,9 +144,6 @@ BOOL LLFloaterTOS::postBuild()  		// Don't use the start_url parameter for this browser instance -- it may finish loading before we get to add our observer.  		// Store the URL separately and navigate here instead.  		web_browser->navigateTo( getString( "loading_url" ) ); -		 -		gResponsePtr = LLIamHere::build( this ); -		LLHTTPClient::get( getString( "real_url" ), gResponsePtr );  	}  	return TRUE; @@ -163,10 +160,19 @@ void LLFloaterTOS::setSiteIsAlive( bool alive )  		if ( alive )  		{  			// navigate to the "real" page  -			loadIfNeeded(); +			if(!mRealNavigateBegun && mSiteAlive) +			{ +				LLMediaCtrl* web_browser = getChild<LLMediaCtrl>("tos_html"); +				if(web_browser) +				{ +					mRealNavigateBegun = true; +					web_browser->navigateTo( getString( "real_url" ) ); +				} +			}  		}  		else  		{ +			LL_INFOS("TOS") << "ToS page: ToS page unavailable!" << LL_ENDL;  			// normally this is set when navigation to TOS page navigation completes (so you can't accept before TOS loads)  			// but if the page is unavailable, we need to do this now  			LLCheckBoxCtrl* tos_agreement = getChild<LLCheckBoxCtrl>("agree_chk"); @@ -175,22 +181,8 @@ void LLFloaterTOS::setSiteIsAlive( bool alive )  	}  } -void LLFloaterTOS::loadIfNeeded() -{ -	if(!mRealNavigateBegun && mSiteAlive) -	{ -		LLMediaCtrl* web_browser = getChild<LLMediaCtrl>("tos_html"); -		if(web_browser) -		{ -			mRealNavigateBegun = true; -			web_browser->navigateTo( getString( "real_url" ) ); -		} -	} -} -  LLFloaterTOS::~LLFloaterTOS()  { -  	// tell the responder we're not here anymore  	if ( gResponsePtr )  		gResponsePtr->setParent( 0 ); @@ -215,7 +207,7 @@ void LLFloaterTOS::updateAgree(LLUICtrl*, void* userdata )  void LLFloaterTOS::onContinue( void* userdata )  {  	LLFloaterTOS* self = (LLFloaterTOS*) userdata; -	llinfos << "User agrees with TOS." << llendl; +	LL_INFOS("TOS") << "User agrees with TOS." << LL_ENDL;  	if(self->mReplyPumpName != "")  	{ @@ -229,7 +221,7 @@ void LLFloaterTOS::onContinue( void* userdata )  void LLFloaterTOS::onCancel( void* userdata )  {  	LLFloaterTOS* self = (LLFloaterTOS*) userdata; -	llinfos << "User disagrees with TOS." << llendl; +	LL_INFOS("TOS") << "User disagrees with TOS." << LL_ENDL;  	LLNotificationsUtil::add("MustAgreeToLogIn", LLSD(), LLSD(), login_alert_done);  	if(self->mReplyPumpName != "") @@ -254,11 +246,13 @@ void LLFloaterTOS::handleMediaEvent(LLPluginClassMedia* /*self*/, EMediaEvent ev  		if(!mLoadingScreenLoaded)  		{  			mLoadingScreenLoaded = true; -			loadIfNeeded(); + +			gResponsePtr = LLIamHere::build( this ); +			LLHTTPClient::get( getString( "real_url" ), gResponsePtr );  		}  		else if(mRealNavigateBegun)  		{ -			llinfos << "NAVIGATE COMPLETE" << llendl; +			LL_INFOS("TOS") << "TOS: NAVIGATE COMPLETE" << LL_ENDL;  			// enable Agree to TOS radio button now that page has loaded  			LLCheckBoxCtrl * tos_agreement = getChild<LLCheckBoxCtrl>("agree_chk");  			tos_agreement->setEnabled( true ); diff --git a/indra/newview/llfloatertos.h b/indra/newview/llfloatertos.h index 6ea56408ee..d985ccbab0 100644 --- a/indra/newview/llfloatertos.h +++ b/indra/newview/llfloatertos.h @@ -67,8 +67,6 @@ public:  private: -	void			loadIfNeeded(); -	  	std::string		mMessage;  	int				mWebBrowserWindowId;  	bool			mLoadingScreenLoaded; diff --git a/indra/newview/llmoveview.cpp b/indra/newview/llmoveview.cpp index 0ddc4efc81..2f22512aba 100644 --- a/indra/newview/llmoveview.cpp +++ b/indra/newview/llmoveview.cpp @@ -200,7 +200,11 @@ void LLFloaterMove::setFlyingMode(BOOL fly)  	if (instance)  	{  		instance->setFlyingModeImpl(fly); -		BOOL is_sitting = isAgentAvatarValid() && gAgentAvatarp->isSitting(); +		LLVOAvatarSelf* avatar_object = gAgentAvatarp; +		bool is_sitting = avatar_object +			&& (avatar_object->getRegion() != NULL) +			&& (!avatar_object->isDead()) +			&& avatar_object->isSitting();  		instance->showModeButtons(!fly && !is_sitting);  	}  	if (fly) diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp index 79786c06d9..6411cd802d 100644 --- a/indra/newview/llpanelnearbymedia.cpp +++ b/indra/newview/llpanelnearbymedia.cpp @@ -1062,15 +1062,10 @@ void LLPanelNearByMedia::showBasicControls(bool playing, bool include_zoom, bool  	mStopCtrl->setVisible(playing);  	mPlayCtrl->setVisible(!playing);  	mPauseCtrl->setVisible(false); -#ifdef PER_MEDIA_VOLUME  	mVolumeSliderCtrl->setVisible(true);  	mMuteCtrl->setVisible(true);  	mMuteBtn->setValue(muted);  	mVolumeSlider->setValue(volume); -#else -	mVolumeSliderCtrl->setVisible(false); -	mMuteCtrl->setVisible(false); -#endif  	mZoomCtrl->setVisible(include_zoom && !is_zoomed);  	mUnzoomCtrl->setVisible(include_zoom && is_zoomed);	  	mStopCtrl->setEnabled(true); diff --git a/indra/newview/llpanelprimmediacontrols.cpp b/indra/newview/llpanelprimmediacontrols.cpp index 5209d50755..0648d99685 100644 --- a/indra/newview/llpanelprimmediacontrols.cpp +++ b/indra/newview/llpanelprimmediacontrols.cpp @@ -350,6 +350,11 @@ void LLPanelPrimMediaControls::updateShape()  		mHomeCtrl->setEnabled(has_focus && can_navigate);  		LLPluginClassMediaOwner::EMediaStatus result = ((media_impl != NULL) && media_impl->hasMedia()) ? media_plugin->getStatus() : LLPluginClassMediaOwner::MEDIA_NONE; +		mVolumeCtrl->setVisible(has_focus); +		mVolumeCtrl->setEnabled(has_focus); +		mVolumeSliderCtrl->setEnabled(has_focus && shouldVolumeSliderBeVisible()); +		mVolumeSliderCtrl->setVisible(has_focus && shouldVolumeSliderBeVisible()); +  		if(media_plugin && media_plugin->pluginSupportsMediaTime())  		{  			mReloadCtrl->setEnabled(false); @@ -462,14 +467,6 @@ void LLPanelPrimMediaControls::updateShape()  			mSkipBackCtrl->setVisible(FALSE);  			mSkipBackCtrl->setEnabled(FALSE); -#ifdef PER_MEDIA_VOLUME -			// these should be pulled up above the pluginSupportsMediaTime -			// if check once we always have PER_MEDIA_VOLUME turned on -			mVolumeCtrl->setVisible(has_focus); -			mVolumeCtrl->setEnabled(has_focus); -			mVolumeSliderCtrl->setEnabled(has_focus && shouldVolumeSliderBeVisible()); -			mVolumeSliderCtrl->setVisible(has_focus && shouldVolumeSliderBeVisible()); -  			if(media_impl->getVolume() <= 0.0)  			{  				mMuteBtn->setToggleState(true); @@ -478,12 +475,6 @@ void LLPanelPrimMediaControls::updateShape()  			{  				mMuteBtn->setToggleState(false);  			} -#else -			mVolumeCtrl->setVisible(FALSE); -			mVolumeSliderCtrl->setVisible(FALSE); -			mVolumeCtrl->setEnabled(FALSE); -			mVolumeSliderCtrl->setEnabled(FALSE); -#endif  			if (mMediaPanelScroll)  			{ diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 27b8ff0628..7ad7799515 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -564,7 +564,7 @@ bool idle_startup()  				gXferManager->setUseAckThrottling(TRUE);  				gXferManager->setAckThrottleBPS(xfer_throttle_bps);  			} -			gAssetStorage = new LLViewerAssetStorage(msg, gXferManager, gVFS); +			gAssetStorage = new LLViewerAssetStorage(msg, gXferManager, gVFS, gStaticVFS);  			F32 dropPercent = gSavedSettings.getF32("PacketDropPercentage"); diff --git a/indra/newview/llviewerassetstorage.cpp b/indra/newview/llviewerassetstorage.cpp index bb49804aff..c3a6b7111b 100644 --- a/indra/newview/llviewerassetstorage.cpp +++ b/indra/newview/llviewerassetstorage.cpp @@ -41,15 +41,16 @@  #include "llagent.h"  LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *xfer, -										   LLVFS *vfs, const LLHost &upstream_host) -		: LLAssetStorage(msg, xfer, vfs, upstream_host) +										   LLVFS *vfs, LLVFS *static_vfs,  +										   const LLHost &upstream_host) +		: LLAssetStorage(msg, xfer, vfs, static_vfs, upstream_host)  {  }  LLViewerAssetStorage::LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *xfer, -										   LLVFS *vfs) -		: LLAssetStorage(msg, xfer, vfs) +										   LLVFS *vfs, LLVFS *static_vfs) +		: LLAssetStorage(msg, xfer, vfs, static_vfs)  {  } diff --git a/indra/newview/llviewerassetstorage.h b/indra/newview/llviewerassetstorage.h index 512b590a1b..8e7ea3471d 100644 --- a/indra/newview/llviewerassetstorage.h +++ b/indra/newview/llviewerassetstorage.h @@ -42,10 +42,10 @@ class LLViewerAssetStorage : public LLAssetStorage  {  public:  	LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *xfer, -				   LLVFS *vfs, const LLHost &upstream_host); +				   LLVFS *vfs, LLVFS *static_vfs, const LLHost &upstream_host);  	LLViewerAssetStorage(LLMessageSystem *msg, LLXferManager *xfer, -				   LLVFS *vfs); +				   LLVFS *vfs, LLVFS *static_vfs);  	using LLAssetStorage::storeAssetData;  	virtual void storeAssetData( diff --git a/indra/newview/llviewerjoystick.cpp b/indra/newview/llviewerjoystick.cpp index b758f6c701..240a539f2e 100644 --- a/indra/newview/llviewerjoystick.cpp +++ b/indra/newview/llviewerjoystick.cpp @@ -163,7 +163,7 @@ LLViewerJoystick::LLViewerJoystick()  	memset(mBtn, 0, sizeof(mBtn));  	// factor in bandwidth? bandwidth = gViewerStats->mKBitStat -	mPerfScale = 4000.f / gSysCPU.getMhz(); +	mPerfScale = 4000.f / gSysCPU.getMHz(); // hmm.  why?  }  // ----------------------------------------------------------------------------- diff --git a/indra/newview/llviewermedia.h b/indra/newview/llviewermedia.h index bc6716697e..e829d7a5b4 100644 --- a/indra/newview/llviewermedia.h +++ b/indra/newview/llviewermedia.h @@ -46,12 +46,6 @@  #include "llurl.h" - -#if defined(LL_DARWIN) || (LL_WINDOWS && !LL_RELEASE_FOR_DOWNLOAD ) -#define PER_MEDIA_VOLUME -#endif - -  class LLViewerMediaImpl;  class LLUUID;  class LLViewerMediaTexture; diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 930568f904..960d9919ab 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -4428,6 +4428,9 @@ void process_avatar_sit_response(LLMessageSystem *mesgsys, void **user_data)  	}  	gAgentCamera.setForceMouselook(force_mouselook); +	// Forcing turning off flying here to prevent flying after pressing "Stand" +	// to stand up from an object. See EXT-1655. +	gAgent.setFlying(FALSE);  	LLViewerObject* object = gObjectList.findObject(sitObjectID);  	if (object) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index acb3b0d458..3f021d1f84 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -1,6 +1,6 @@  /**    * @File llvoavatar.cpp - * @brief Implementation of LLVOAvatar class which is a derivation fo LLViewerObject + * @brief Implementation of LLVOAvatar class which is a derivation of LLViewerObject   *   * $LicenseInfo:firstyear=2001&license=viewergpl$   *  @@ -5644,6 +5644,8 @@ void LLVOAvatar::sitOnObject(LLViewerObject *sit_object)  	mDrawable->mXform.setRotation(mDrawable->getWorldRotation() * inv_obj_rot);  	gPipeline.markMoved(mDrawable, TRUE); +	// Notice that removing sitDown() from here causes avatars sitting on +	// objects to be not rendered for new arrivals. See EXT-6835 and EXT-1655.  	sitDown(TRUE);  	mRoot.getXform()->setParent(&sit_object->mDrawable->mXform); // LLVOAvatar::sitOnObject  	mRoot.setPosition(getPosition()); diff --git a/indra/newview/llvoavatar.h b/indra/newview/llvoavatar.h index 8da4c226ed..c80d59966c 100644 --- a/indra/newview/llvoavatar.h +++ b/indra/newview/llvoavatar.h @@ -1,6 +1,6 @@  /**   * @file llvoavatar.h - * @brief Declaration of LLVOAvatar class which is a derivation fo + * @brief Declaration of LLVOAvatar class which is a derivation of   * LLViewerObject   *   * $LicenseInfo:firstyear=2001&license=viewergpl$ diff --git a/indra/newview/skins/default/xui/en/mime_types.xml b/indra/newview/skins/default/xui/en/mime_types.xml index 76c0d027f3..8e1e5ff062 100644 --- a/indra/newview/skins/default/xui/en/mime_types.xml +++ b/indra/newview/skins/default/xui/en/mime_types.xml @@ -138,6 +138,9 @@  		<widgettype>  			audio  		</widgettype> +		<impl> +			media_plugin_quicktime +		</impl>  	</mimetype>  	<mimetype name="video/*">  		<label name="video2_label"> @@ -146,6 +149,9 @@  		<widgettype>  			movie  		</widgettype> +		<impl> +			media_plugin_quicktime +		</impl>  	</mimetype>  	<mimetype name="image/*">  		<label name="image2_label"> diff --git a/indra/newview/skins/default/xui/en/mime_types_linux.xml b/indra/newview/skins/default/xui/en/mime_types_linux.xml index 05cd850725..4748c14554 100644 --- a/indra/newview/skins/default/xui/en/mime_types_linux.xml +++ b/indra/newview/skins/default/xui/en/mime_types_linux.xml @@ -138,6 +138,9 @@  		<widgettype>  			audio  		</widgettype> +		<impl> +			media_plugin_gstreamer +		</impl>  	</mimetype>  	<mimetype name="video/*">  		<label name="video2_label"> @@ -146,6 +149,9 @@  		<widgettype>  			movie  		</widgettype> +		<impl> +			media_plugin_gstreamer +		</impl>  	</mimetype>  	<mimetype name="image/*">  		<label name="image2_label"> diff --git a/indra/newview/skins/default/xui/en/mime_types_mac.xml b/indra/newview/skins/default/xui/en/mime_types_mac.xml index 76c0d027f3..8e1e5ff062 100644 --- a/indra/newview/skins/default/xui/en/mime_types_mac.xml +++ b/indra/newview/skins/default/xui/en/mime_types_mac.xml @@ -138,6 +138,9 @@  		<widgettype>  			audio  		</widgettype> +		<impl> +			media_plugin_quicktime +		</impl>  	</mimetype>  	<mimetype name="video/*">  		<label name="video2_label"> @@ -146,6 +149,9 @@  		<widgettype>  			movie  		</widgettype> +		<impl> +			media_plugin_quicktime +		</impl>  	</mimetype>  	<mimetype name="image/*">  		<label name="image2_label">  | 
