コード例 #1
0
ファイル: llpreview.cpp プロジェクト: Katharine/kittyviewer
void LLPreview::onOpen(const LLSD& key)
{
	if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED)
	{
		loadAsset();
	}
}
コード例 #2
0
ファイル: llpreview.cpp プロジェクト: Boy/rainbow
void LLPreview::open()	/*Flawfinder: ignore*/
{
	if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED)
	{
		loadAsset();
	}
	LLFloater::open();		/*Flawfinder: ignore*/
}
コード例 #3
0
void LLPreview::onOpen(const LLSD& key)
{
	if (!getFloaterHost() && !getHost() && getAssetStatus() == PREVIEW_ASSET_UNLOADED)
	{
		loadAsset();
	}

	// <FS:Ansariel> Multi preview layout fix; Anim, gesture and sound previews can't be resized
	if (getHost() &&
		(dynamic_cast<LLPreviewAnim*>(this) ||
		dynamic_cast<LLPreviewGesture*>(this) ||
		dynamic_cast<LLPreviewSound*>(this)))
	{
		getHost()->setCanResize(FALSE);
	}
	// </FS:Ansariel>
}