Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
26 #include "te_conestepbase.h"
36 class CTScale : public CTe_ConeStepBase
43 virtual TVerdict doTestStepPreambleL();
44 virtual TVerdict doTestStepL();
45 virtual TVerdict doTestStepPostambleL();
47 // from CTe_graphicsperformanceSuiteStepBase
48 virtual void InitUIL(CCoeEnv* aCoeEnv);
51 RSemaphore iSemaphore; // used to wait for font control to finish drawing
55 _LIT(KTScale,"tscale");
58 class CScaleControl : public CCoeControl
61 static CScaleControl* NewL(const TRect& aRect,const CCoeControl* aParent=NULL);
62 static CScaleControl* NewLC(const TRect& aRect,const CCoeControl* aParent=NULL);
67 void HandlePointerEventL(const TPointerEvent& aPointerEvent);
71 void ConstructL(const TRect& aRect,const CCoeControl* aParent = NULL);
74 void Draw(const TRect& aRect) const;
77 RSemaphore iSemaphore; // handle to a Semaphore which is owned by the test step
78 // The current zoom rectangle into the image
80 // The pixel position of the most recent PointerEvent
81 TPoint iCurrentPointerPos;
82 CFbsBitmap* iSourceBitmap;
85 RWsSession& iWsSession;
88 class CScaleAppUi : public CEikAppUi
94 CScaleControl* ScaleControl();
97 CScaleControl* iScale;