void CBuddycloudListComponent::TimerExpired(TInt aExpiryId) { if(aExpiryId == KDragTimerId) { #ifdef __SERIES60_40__ if(iDraggingAllowed) { iDragVelocity = iDragVelocity * 0.95; iScrollbarHandlePosition += TInt(iDragVelocity); CBuddycloudListComponent::RepositionItems(false); RenderScreen(); if(Abs(iDragVelocity) > 0.05) { iDragTimer->After(50000); } } #endif } else if(aExpiryId == KTimeTimerId) { #ifdef __3_2_ONWARDS__ HBufC* aTitle = iEikonEnv->AllocReadResourceLC(R_LOCALIZED_STRING_APPNAME); SetTitleL(*aTitle); CleanupStack::PopAndDestroy(); #else TTime aTime; aTime.HomeTime(); TBuf<32> aTextTime; aTime.FormatL(aTextTime, _L("%J%:1%T%B")); SetTitleL(aTextTime); TDateTime aDateTime = aTime.DateTime(); iTimer->After((60 - aDateTime.Second() + 1) * 1000000); #endif } }
void CWordStyleFormatDialog::PreLayoutDynInitL() { // // Dynamically change the title of this dialog as appropriate TInt id = (iButton == EWordCidAddStyle)? R_WORD_STYLEFORMAT_TITLE_ADD : R_WORD_STYLEFORMAT_TITLE_MODIFY; if (id == R_WORD_STYLEFORMAT_TITLE_ADD) SetTitleL(id); else { TBuf<24> buf; iCoeEnv->ReadResource(buf,R_WORD_STYLEFORMAT_TITLE_MODIFY); TBuf<24+KMaxParagraphStyleName> title; // 56 TParagraphStyleName name; name = (iNormalStyle)? iNormalName : iParagraphStyle->iName; title.Format(buf,&name); SetTitleL(title); } // TParaFormatMask paraMask; CParaFormat* paraFormat=CParaFormat::NewLC(); ButtonGroupContainer().ButtonById(EWordCidFormatList)-> SetButtonLayout(CEikCommandButton::ETextLeftPictureRight); if (iNormalStyle) { TParagraphStyleName name; iCoeEnv->ReadResource(name , R_WORD_NORMAL); SetEdwinTextL(EWordCidStyleName,&name); SetLineDimmedNow(EWordCidStyleName,ETrue); SetLineDimmedNow(EWordCidOutline,ETrue); iText->GlobalParaFormatLayer()->SenseL(paraFormat,paraMask); } else { SetEdwinTextL(EWordCidStyleName,&iParagraphStyle->iName); TUid type=iParagraphStyle->Type(); if (type==KSystemParagraphStyleUid) SetLineDimmedNow(EWordCidStyleName,ETrue); iParagraphStyle->SenseL(paraFormat,paraMask); } //hotkey if (iButton==EWordCidModifyStyle) { CEikCharEditor* editor=(CEikCharEditor*)Control(EWordCidHotKey); editor->SetChar(iChar); } // CEikButtonBase::TState state; state=(paraFormat->iBullet)? CEikButtonBase::ESet : CEikButtonBase::EClear ; SetCheckBoxState(EWordCidBullet,state); // Set values for Outline level SetNumberEditorValue(EWordCidOutline,iOutline); CleanupStack::PopAndDestroy(); }
void CVBookmarkConverter::ResetL() { SetVersionL( KEmptyString ); SetUrlL( KEmptyString ); SetTitleL( KEmptyString ); SetInternetShortcutL( KEmptyString ); }
// ---------------------------------------------------------------------------- // CStatusPaneHandler::SetTitleL // // ---------------------------------------------------------------------------- // void CStatusPaneHandler::SetTitleL( const TDesC& aText ) { if ( iOriginalTitleStored ) { SetTitleL( iAppUi, aText ); } }
// ---------------------------------------------------------------------------- // CStatusPaneHandler::RestoreOriginalTitleL // // ---------------------------------------------------------------------------- // void CStatusPaneHandler::RestoreOriginalTitleL() { if ( iOriginalTitleStored ) { SetTitleL( iAppUi, iOriginalTitle ); } }
void CMVSVolumeDialog::PreLayoutDynInitL() { _LIT(KTitle1,"SetVolume"); _LIT(KTitle2,"SetGain"); if(iPlayback) { SetTitleL(KTitle1); } else { SetTitleL(KTitle2); } // Get a downcasted pointer to the controls CCoeControl* myControlPtr = this->Control(EMVSCmdSetVolume); iProgInfo = static_cast<CEikProgressInfo*>(myControlPtr); //Initial Volume iProgInfo->SetAndDraw(iVolume); //Initial VolumeRamp InitControl((TInt)EMVSCmdSetVolumeRamp, I64INT(iRamp.Int64())/1000, 0, I64INT(iClipLength.Int64())/1000); }
void CVBookmarkConverter::ImportDbItemL( const CFolderItem& aItem ) { ResetL(); if( aItem.IsFolder() ) { User::Leave( KErrNotSupported ); } SetVersionL( KVBMKVer ); SetUrlL( aItem.SourceUrl() ); SetInternetShortcutL( aItem.SourceUrl() ); SetTitleL( aItem.Name() ); }
void CVBookmarkConverter::ImportDbItemL( const CFavouritesItem& aItem ) { ResetL(); if( aItem.Type() != CFavouritesItem::EItem ) { User::Leave( KErrNotSupported ); } SetVersionL( KVBMKVer ); SetUrlL( aItem.Url() ); SetInternetShortcutL( aItem.Url() ); SetTitleL( aItem.Name() ); }
void CQueueEntry::InternalizeL( RReadStream& aStream ) { TInt size; RBuf text; CleanupClosePushL( text ); RBuf8 text8; CleanupClosePushL( text8 ); size = aStream.ReadInt32L( ); text.ReAllocL( size ); aStream.ReadL( text, size ); SetUrlL(text); size = aStream.ReadInt32L( ); if( size > text.Length() ) text.ReAllocL( size ); aStream.ReadL( text, size ); SetTitleL(text); size = aStream.ReadInt32L( ); if( size > text.Length() ) text.ReAllocL( size ); aStream.ReadL( text, size ); SetTagsL(text); size = aStream.ReadInt32L( ); if( size > text.Length() ) text.ReAllocL( size ); aStream.ReadL( text, size ); SetDescriptionL( text ); size = aStream.ReadInt32L( ); if( size > text.Length() ) text.ReAllocL( size ); aStream.ReadL( text, size ); SetFilename( text ); CleanupStack::PopAndDestroy( &text8 ); CleanupStack::PopAndDestroy( &text ); iType = (TEntryType) aStream.ReadInt32L( ); iStatus = (TEntryStatus) aStream.ReadInt32L( ); iCategory = (TMovieCategory) aStream.ReadInt32L( ); iPublic = aStream.ReadInt32L( ); iSize = aStream.ReadInt32L( ); iUid = aStream.ReadInt32L( ); }
void CBuddycloudEditPlaceList::ConstructL(const TRect& aRect, CBuddycloudLogic* aBuddycloudLogic) { iBuddycloudLogic = aBuddycloudLogic; iBuddycloudLogic->AddNotificationObserver(this); // Load place data GetEditedPlace(); iTitleResourceId = R_LOCALIZED_STRING_NEWPLACE_TITLE; if(iEditingPlace && iEditingPlace->GetItemId() > 0) { iTitleResourceId = R_LOCALIZED_STRING_EDITPLACE_TITLE; } SetTitleL(iTitleResourceId); SetRect(aRect); }
void CBuddycloudEditPlaceList::EditItemL(TInt aIndex, TBool aCalledFromMenu) { CAknSettingItemArray* aItemArray = SettingItemArray(); TInt aIdentifier = ((*aItemArray)[aIndex])->Identifier(); // Set title switch(aIdentifier) { case EEditPlaceItemName: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_NAME); break; case EEditPlaceItemStreet: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_STREET); break; case EEditPlaceItemArea: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_AREA); break; case EEditPlaceItemCity: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_CITY); break; case EEditPlaceItemPostcode: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_POSTCODE); break; case EEditPlaceItemRegion: SetTitleL(R_LOCALIZED_STRING_EDITPLACE_REGION); break; case EEditPlaceItemCountry: if(iEditingPlace && iEditingPlace->GetGeoloc()->GetString(EGeolocCountry).Length() > 0) { return; } SetTitleL(R_LOCALIZED_STRING_EDITPLACE_COUNTRY); break; default:; } CAknSettingItemList::EditItemL(aIndex, aCalledFromMenu); // Reset title SetTitleL(iTitleResourceId); ((*aItemArray)[aIndex])->StoreL(); ((*aItemArray)[aIndex])->UpdateListBoxTextL(); }
// --------------------------------------------------------------------------- // // --------------------------------------------------------------------------- TInt CSvgStyleElementImpl::SetAttributeL( const TDesC& aName, const TDesC& aValue ) { if ( SetIdandXmlbaseL( aName, aValue ) ) { return KErrNone; } if ( this->SetLangSpaceAttributeL( aName, aValue ) ) { return KErrNone; } // Set type _LIT( KType, "type" ); _LIT( KMedia, "media" ); _LIT( KTitle, "title" ); if ( aName == KType ) { SetTypeL( aValue ); } // Set media else if ( aName == KMedia ) { SetMediaL( aValue ); } // Set title else if ( aName == KTitle ) { SetTitleL( aValue ); } else if ( aName == KTitle ) { SetStyleL( aValue ); } return KErrNone; }
TInt CVBookmarkConverter::ImportVBookmarkL( const TDesC8& aBuffer ) { LOGGER_ENTERFN( "CVBookmarkConverter::ImportVBookmarkL" ); ResetL(); TInt error = KErrNone; TInt position = 0; TPtrC8 tag; TPtrC8 value; TPtrC8 properties; error = ReadTagAndValue( aBuffer, position, tag, value, properties ); if( error != KErrNone ) { LOGGER_WRITE_1( "ReadTagAndValue err: %d", error ); return error; } if ( ( tag != KVBMKBegin ) || ( value != KVBMKVbkm ) ) { LOGGER_WRITE( "Invalid tag" ); return KErrNotFound; } while ( ( error = ReadTagAndValue( aBuffer, position, tag, value, properties ) ) == KErrNone ) { // Version if ( tag == KVBMKVersion ) { SetVersionL( value ); } // Url else if ( tag == KVBMKUrl ) { SetUrlL( value ); } // Title else if ( tag == KVBMKTitle ) { TBookmarkEncoding encoding = Encoding( properties ); SetTitleL( value, encoding ); } // Beginning of envelope else if ( ( tag == KVBMKBegin ) && ( value == KVBMKEnv ) ) { // Read the envelope, quit if error error = ReadEnvelopeL( aBuffer, position ); if( error != KErrNone ) { return error; } } // End of Bookmark else if ( ( tag == KVBMKEnd ) && ( value == KVBMKVbkm ) ) { return error; } else { // Unknown data, skip } } LOGGER_LEAVEFN( "CVBookmarkConverter::ImportVBookmarkL" ); return error; }
// ---------------------------------------------------------------------------- // CStatusPaneHandler::SetTitleL // // ---------------------------------------------------------------------------- // void CStatusPaneHandler::SetTitleL( TInt aResourceId ) { HBufC* hBuf = StringLoader::LoadLC( aResourceId ); SetTitleL( hBuf->Des() ); CleanupStack::PopAndDestroy( hBuf ); }