// ---------------------------------------------------------------------------- // CCreate2WayVideoSessionDialog::PreLayoutDynInitL() // . // ---------------------------------------------------------------------------- // void CCreate2WayVideoSessionDialog::PreLayoutDynInitL() { CEikEdwin* edwinPoCAddress = static_cast<CEikEdwin*>( Control( ESessionDialog2WayVideoRecipientAddress ) ); TBuf<KBufLength> defaultAddress; defaultAddress.Copy(iParams->iRecipentAddress); edwinPoCAddress->SetTextL(&defaultAddress); edwinPoCAddress->SetCursorPosL(defaultAddress.Length(),EFalse); CAknPopupFieldText* popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoVideoCodec)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoAudioCodec)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoViewFinder)); popupFieldText->SetCurrentValueIndex(0); popupFieldText = static_cast <CAknPopupFieldText*> (Control(ESessionDialog2WayVideoCamera)); popupFieldText->SetCurrentValueIndex(0); CAknForm::PreLayoutDynInitL(); }
void CSymellaConsoleView::HandleLogWriteL(const TDesC& aText) { /*if (aText.Length() < KMaxConsoleBufferSize) { // Checks the new text length TInt diff = iTextBuffer->DocumentLength() + aText.Length() - KMaxConsoleBufferSize; // If it's longer than the maximum then deletes from // the beginning if ( diff > 0) { iTextBuffer->DeleteL(0, diff); if (iContainer) iContainer->Edwin()->Text()->DeleteL(0, diff); } iTextBuffer->InsertL(iTextBuffer->DocumentLength(), aText);*/ if (iContainer) { CEikEdwin* edwin = iContainer->Edwin(); TInt diff = edwin->Text()->DocumentLength() + aText.Length() - KMaxConsoleBufferSize; if (diff > edwin->Text()->DocumentLength()) diff = edwin->Text()->DocumentLength(); if ( diff > 0) edwin->Text()->DeleteL(0, diff); edwin->Text()->InsertL(edwin->Text()->DocumentLength(), aText); edwin->HandleTextChangedL(); edwin->SetCursorPosL(edwin->Text()->DocumentLength(), EFalse); } /* } else { TPtrC ptr = aText.Right(KMaxConsoleBufferSize); iTextBuffer->DeleteL(0, iTextBuffer->DocumentLength()); iTextBuffer->InsertL(0, ptr); if (iContainer) { CEikEdwin* edwin = iContainer->Edwin(); edwin->Text()->DeleteL(0, edwin->Text()->DocumentLength()); edwin->Text()->InsertL(0, ptr); edwin->HandleTextChangedL(); edwin->SetCursorPosL(edwin->Text()->DocumentLength(), EFalse); } }*/ }