// -----------------------------------------------------------------------------
// SetTextL
// 
// -----------------------------------------------------------------------------
//
void CAknInfoPopupNote::SetTextL( const TDesC& aText )
    {
    if ( aText != iText->Text() )
        {
        iText->SetTextL( aText );

        for ( TInt i = 0; i < iText->NumberOfLines(); i++ )
            {
            // Draw the label after the background.
            CEikLabel* line = iText->Line( i );
            line->ActivateL(); // Never leaves

            if ( !IsVisible() )
                {
                line->MakeVisible( EFalse );
                }

            iText->SetLineModified( i, EFalse );
            }

        SetWindowLayoutL();

        if ( IsVisible() )
            {
            Window().Invalidate( Rect() );
            }
        }
    }
void CRecognizerContainer::StopDisplay()
{
	CALLSTACKITEM_N(_CL("CRecognizerContainer"), _CL("StopDisplay"));

	if (owns_bitmap) delete iBitmap; iBitmap=0;
	delete iVCS; iVCS=0;
	delete iCurrentCodeInfo; iCurrentCodeInfo=0;
	iCurrentCodeArray->Reset();
	iStandByLabel->MakeVisible(ETrue);
	DrawDeferred();
}
void CUploadContainer::ShowImageError(const TDesC& Descr, TInt Code)
{
	CALLSTACKITEM_N(_CL("CUploadContainer"), _CL("ShowImageError"));

	if (!iImgPlaceHolder) return;

	iImgPlaceHolder->MakeVisible(ETrue);

	TBuf<30> msg;
	msg.Append(Descr); msg.Append(_L(": "));
	msg.AppendNum(Code);
	iImgPlaceHolder->SetTextL(msg);
}
void CUploadContainer::MiuoConvertComplete(TInt aError)
{
	// FIXME: error handling

	if (!iScaledBitmap) {
		iScaler=CMdaBitmapScaler::NewL();
		iScaledBitmap=iOrigBitmap;
		iScaler->ScaleL(*this, *iScaledBitmap,
			TSize(100, IMG_HEIGHT));
	} else {
		scaled=true;
		iImgPlaceHolder->MakeVisible(EFalse);
		DrawNow();
	}
}
void CRecognizerContainer::StartDisplay()
{
	CALLSTACKITEM_N(_CL("CRecognizerContainer"), _CL("StartDisplay"));

	iTakingPicture = FALSE;
	iCurrentCode = -1;
	iBitmap = NULL;
	iTranslation.SetXY(0, 0);
	iTarget.SetXY(320, 240);
	iTilting.SetXY(0.0, 0.0);
	iMagnification = 2;

	iStandByLabel->MakeVisible(EFalse);

	ViewFinderStartStop();
}