1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicstest/uibench/s60/src/tests_fonts/tfullscreentext.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,103 @@
1.4 + // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 + // All rights reserved.
1.6 + // This component and the accompanying materials are made available
1.7 + // under the terms of "Eclipse Public License v1.0"
1.8 + // which accompanies this distribution, and is available
1.9 + // at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 + //
1.11 + // Initial Contributors:
1.12 + // Nokia Corporation - initial contribution.
1.13 + //
1.14 + // Contributors:
1.15 + //
1.16 + // Description:
1.17 + //
1.18 +
1.19 +/**
1.20 + @file
1.21 + @test
1.22 + @internalComponent - Internal Symbian test code
1.23 +
1.24 +This file specifies the interface to the test of having a full
1.25 + screen of text within a CONE control.
1.26 +*/
1.27 +
1.28 +
1.29 +#ifndef __TFULLSCREENTEXT_H__
1.30 +#define __TFULLSCREENTEXT_H__
1.31 +
1.32 +
1.33 +#include "te_conestepbase.h"
1.34 +
1.35 +#include <coecntrl.h>
1.36 +#include <coeaui.h>
1.37 +#include <eikappui.h>
1.38 +
1.39 +
1.40 +_LIT(KFullScreenText,"tfullscreentext");
1.41 +
1.42 +
1.43 +class CGlobalTextControl : public CCoeControl
1.44 + {
1.45 +public:
1.46 + static CGlobalTextControl* NewL(const CCoeControl* aParent,
1.47 + TBool aDrawVertically, TBool aRightToLeft);
1.48 + static CGlobalTextControl* NewLC(const CCoeControl* aParent,
1.49 + TBool aDrawVertically, TBool aRightToLeft);
1.50 + ~CGlobalTextControl();
1.51 +
1.52 +private:
1.53 + CGlobalTextControl(TBool aDrawVertically, TBool aRightToLeft);
1.54 + void ConstructL(const CCoeControl* aParent);
1.55 +
1.56 + // From CCoeControl
1.57 + void Draw(const TRect& aRect) const;
1.58 + void HandlePointerEventL(const TPointerEvent& aPointerEvent);
1.59 +
1.60 +private:
1.61 + TBidiText* iBidiText;
1.62 + CWsScreenDevice* iScreen;
1.63 + RSemaphore iSemaphore;
1.64 +
1.65 + TMargins8 iMargin;
1.66 + TBool iDrawVertically;
1.67 + TBool iRightToLeft;
1.68 +
1.69 + RWsSession& iWsSession;
1.70 + };
1.71 +
1.72 +
1.73 +class CTFullScreenText : public CTe_ConeStepBase
1.74 + {
1.75 +public:
1.76 + CTFullScreenText();
1.77 +
1.78 +private:
1.79 + // From CTestStep
1.80 + virtual TVerdict doTestStepPreambleL();
1.81 + virtual TVerdict doTestStepL();
1.82 + virtual TVerdict doTestStepPostambleL();
1.83 + virtual void InitUIL(CCoeEnv* aCoeEnv);
1.84 +
1.85 + void FullScreenTextL();
1.86 + void GenerateEventL(TRawEvent::TType aEventType);
1.87 +
1.88 +private:
1.89 + RSemaphore iSemaphore;
1.90 + TBool iDrawVertically;
1.91 + TBool iRightToLeft;
1.92 + };
1.93 +
1.94 +
1.95 +class CFullScreenTextAppUi : public CEikAppUi
1.96 + {
1.97 +public:
1.98 + CFullScreenTextAppUi();
1.99 + virtual ~CFullScreenTextAppUi();
1.100 + void ConstructL(TBool aDrawVertically, TBool aRightToLeft);
1.101 +
1.102 +private:
1.103 + CGlobalTextControl* iGlobalTextControl;
1.104 + };
1.105 +
1.106 +#endif