// ----------------------------------------------------------------------------- // CWazeCameraView::ConstructL() // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CWazeCameraView::ConstructL( const TRect& aRect ) { // Create a window for this application view CreateWindowL(); #ifdef TOUCH_SCREEN EnableDragEvents(); // iTouchFeedBack = MTouchFeedback::Instance(); // iTouchFeedBack->SetFeedbackEnabledForThisApp(ETrue); #endif // Set the windows size SetRect( aRect ); // Fullscreen mode SetExtentToWholeScreen(); // Activate the window, which makes it ready to be drawn ActivateL(); // Register to capture the camera keys CaptureCameraKeys(); iCameraEngine = CWazeCameraEngine::NewL( this ); CreateCacheScreenBufferL(); }
void C{{PROJECT}}AppView::ConstructL(const TRect& aRect) { CreateWindowL(); EnableDragEvents(); Window().SetPointerGrab(ETrue); InitComponentArrayL(); SetRect(aRect); }
void CWindowMover::ConstructL(MWindowMover* m,QmlApplicationViewer* v,RWsSession* aWs) { iWinGroup=new (ELeave) RWindowGroup(*aWs); iWinGroup->Construct((TUint32)&iWinGroup, EFalse); iWinGroup->EnableReceiptOfFocus(EFalse); // Don't capture any key events. iWinGroup->SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront+KAddPriority+1); CApaWindowGroupName* wn=CApaWindowGroupName::NewL(*aWs); wn->SetHidden(ETrue); wn->SetSystem(ETrue); wn->SetWindowGroupName(*iWinGroup); delete wn; iCallBack=m; viewer=v; iDragged=EFalse; CreateWindowL(iWinGroup); SetPointerCapture(ETrue); EnableDragEvents(); // for transparency TRgb backgroundColour = KRgbWhite; // for example //#ifndef _DEBUG if(KErrNone == Window().SetTransparencyAlphaChannel()) {backgroundColour.SetAlpha(0);} //#endif Window().SetBackgroundColor(backgroundColour); //SetSize(TSize(1,1)); MakeVisible(EFalse); SetExtentToWholeScreen(); settings=new QSettings(KConfigFile,QSettings::IniFormat); xAnim=new MyAnimation(); yAnim=new MyAnimation(); //QEasingCurve curve=new QEasingCurve(QEasingCurve::OutQuad); xAnim->setEasingCurve(QEasingCurve::OutQuad); yAnim->setEasingCurve(QEasingCurve::OutQuad); xAnim->setDuration(200); yAnim->setDuration(200); connect(xAnim,SIGNAL(valueChanged(QVariant)),this,SLOT(xAnimChanged(QVariant))); connect(yAnim,SIGNAL(valueChanged(QVariant)),this,SLOT(yAnimChanged(QVariant))); connect(yAnim,SIGNAL(finished()),this,SLOT(finished())); connect(xAnim,SIGNAL(finished()),this,SLOT(finished())); iTimer=new QTimer(); iTimer->setInterval(400); iTimer->setSingleShot(false); connect(iTimer,SIGNAL(timeout()),this,SLOT(checkLaunchArea())); ActivateL(); int gest=settings->value("settings/gesture").toInt(); if (gest==0) axisSet=false; else if (gest==1) {axisX=1;axisY=0; axisSet=true;} else if (gest==2) {axisX=0;axisY=1; axisSet=true;} }
void CMultiPtrTestChildControl::ConstructL( const TDesC& aName ) { CMultiPtrTestControlBase::ConstructL(); iAppUi = static_cast<CConeMultiPtrCompoundTestAppUi*>(ControlEnv()->AppUi()); TFontSpec spec(_L("Arial"),240); iFont = iCoeEnv->CreateScreenFontL( spec ); iName = aName.AllocL(); EnableDragEvents(); }
// ----------------------------------------------------------------------------- // ConstructL // // ----------------------------------------------------------------------------- // void CAknInfoPopupNote::ConstructL() { /* Popup should disappear quickly. By making popup as window-owning * control, that backups graphics behind it (backed-up-behind window) * we enable fast hiding. However, it eats more memory, and in OOM * situation backup is not done, but status pane is actually redrawn. * See Symbian documentation of RWindowBase::EnableBackup for more * information. */ delete iBgContext; iBgContext = NULL; iBgContext = CAknsFrameBackgroundControlContext::NewL( KAknsIIDQsnFrPopupPreview, TRect(), TRect(), EFalse ); CreateWindowL(); EnableDragEvents(); SetAllowStrayPointers(); if( CAknEnv::Static()->TransparencyEnabled() ) { // try to enable window transparency if ( Window().SetTransparencyAlphaChannel() == KErrNone ) { Window().SetRequiredDisplayMode( EColor16MA ); Window().SetBackgroundColor( ~0 ); } } DrawableWindow()->EnableBackup( EWindowBackupAreaBehind ); DrawableWindow()->SetNonFading( ETrue); if ( !iText ) { iText = CAknTextControl::NewL(); iText->SetContainerWindowL( *this ); iText->CopyControlContextFrom( this ); iText->SetComponentsToInheritVisibility( ETrue ); } iAvkonAppUi->AddToStackL( this, ECoeStackPriorityCba, ECoeStackFlagRefusesAllKeys | ECoeStackFlagRefusesFocus ); DrawableWindow()->SetPointerGrab( ETrue ); SetComponentsToInheritVisibility( ETrue ); Hide(); ControlEnv()->AddForegroundObserverL( *this ); }
void CNRLTestControl::ConstructL (const TRect& aRect) { CreateWindowL(); Window().SetShadowDisabled(ETrue); Window().SetBackgroundColor(KRgbGray); EnableDragEvents(); SetRect(aRect); SetBlank(); TRect consoleSize = aRect; consoleSize.Shrink(1,1); iConsole=new(ELeave) CEikConsoleScreen; iConsole->ConstructL(_L("TEST"),TPoint(1,1),consoleSize.Size(),CEikConsoleScreen::ENoInitialCursor,EEikConsWinInPixels); }
void CContainerButton::ConstructL(RWindowGroup* aWg) { CreateWindowL(aWg); TRgb col(0,0,0,0); Window().SetTransparencyAlphaChannel(); Window().SetBackgroundColor(col); MakeVisible(ETrue); SetPointerCapture(ETrue); EnableDragEvents(); iTimer=CPeriodic::NewL(CActive::EPriorityHigh); iTimeUp.HomeTime(); iTimeDown.HomeTime(); ActivateL(); }
void CSliderForDialog :: ConstructL(CCoeControl* aParent ) { // ��� ����������� ����� ������������ ���� �� ��������� ������� font = CEikonEnv::Static()->NormalFont(); iParent=aParent; // ������ ������������ ����� �������� ����� TBuf<50> tmpLabel; tmpLabel.Num(iMaxVal); iMaxLbWidth = font->TextWidthInPixels( tmpLabel); SetContainerWindowL(*aParent); SetPointerCapture(ETrue); EnableDragEvents(); ActivateL(); iBgColor=KRgbBlack; iBgColor.SetAlpha(255); }
// Set up console control void CConsoleControl::ConstructL() { CreateWindowL(); Window().SetShadowDisabled(ETrue); Window().SetBackgroundColor(KRgbGray); EnableDragEvents(); SetExtentToWholeScreen(); SetBlank(); iConsole=new(ELeave) CEikConsoleScreen; _LIT(KMsgExApp,"MsgExApp"); iConsole->ConstructL(KMsgExApp,0); iConsole->SetHistorySizeL(10,10); (iCoeEnv->WsSession()).SetAutoFlush(ETrue); iMenuHandler = new (ELeave) CMenuHandler(*iConsole,iBuffer); iMenuHandler->ConstructL(); }
void CBuddycloudListComponent::ConstructL() { // Initialize timer & set title iTimer = CCustomTimer::NewL(this, KTimeTimerId); // Scrollbar iScrollBar = new (ELeave) CEikScrollBarFrame(this, this); iScrollBar->CreateDoubleSpanScrollBarsL(true, false, true, false); iScrollBar->SetTypeOfVScrollBar(CEikScrollBarFrame::EDoubleSpan); iScrollBar->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOn); #ifdef __SERIES60_40__ // Touch iTouchFeedback = MTouchFeedback::Instance(); EnableDragEvents(); if(!iTouchFeedback->FeedbackEnabledForThisApp()) { iTouchFeedback->SetFeedbackEnabledForThisApp(true); } iDragTimer = CCustomTimer::NewL(this, KDragTimerId); iUnselectedItemIconTextOffset = 40; iSelectedItemIconTextOffset = 72; iItemIconSize = 64; iIconMidmapSize = ELevelLarge; #else iUnselectedItemIconTextOffset = 20; iSelectedItemIconTextOffset = 40; iItemIconSize = 32; iIconMidmapSize = ELevelNormal; #endif iSnapToItem = true; iShowMialog = true; iTextUtilities = CTextUtilities::NewL(); ConfigureSkin(); ConfigureFonts(); // Buddycloud Logic iBuddycloudLogic->AddNotificationObserver(this); iAvatarRepository = iBuddycloudLogic->GetImageRepository(); }
void CTstControl::ConstructL() { RWsSession& windowServerSession=iCoeEnv->WsSession(); windowServerSession.SetAutoFlush(ETrue); CreateWindowL(); EnableDragEvents(); ClaimPointerGrab(); RDrawableWindow& window=*DrawableWindow(); window.SetOrdinalPosition(0); window.SetShadowHeight(3); CWsScreenDevice& screenDevice=*iCoeEnv->ScreenDevice(); const TSize screenSize(screenDevice.SizeInPixels()); SetExtent(TPoint(20, 20), TSize(screenSize.iWidth-40, screenSize.iHeight-40)); iEikonEnv->AddDialogLikeControlToStackL(this); iAppServer=CTstAppServer::NewL(); ActivateL(); }
void CMusicPlayerContainer::ConstructL(const TRect& aRect) { // Create a window for this application view CreateWindowL(); // Set the windows size SetMopParent(iMusicPlayerView); SetRect( aRect ); iCurrentTheme=iMusicPlayerView->iThemeManager->GetThemeL(aRect,iCurrentTheme); __ASSERT_ALWAYS(iCurrentTheme,Panic(EMusicPlayerNoTheme)); iCurrentTheme->SetContainer(this); //iBackground = CAknsBasicBackgroundControlContext::NewL( KAknsIIDQsnBgAreaMain, aRect, EFalse ); //SetExtent(aRect.iTl,aRect.Size()); #ifdef __TOUCH_ENABLED__ EnableDragEvents(); #endif // Activate the window, which makes it ready to be drawn ActivateL(); }