author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 2 |
// All rights reserved. |
sl@0 | 3 |
// This component and the accompanying materials are made available |
sl@0 | 4 |
// under the terms of "Eclipse Public License v1.0" |
sl@0 | 5 |
// which accompanies this distribution, and is available |
sl@0 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 7 |
// |
sl@0 | 8 |
// Initial Contributors: |
sl@0 | 9 |
// Nokia Corporation - initial contribution. |
sl@0 | 10 |
// |
sl@0 | 11 |
// Contributors: |
sl@0 | 12 |
// |
sl@0 | 13 |
// Description: |
sl@0 | 14 |
// |
sl@0 | 15 |
|
sl@0 | 16 |
/** |
sl@0 | 17 |
@file |
sl@0 | 18 |
@test |
sl@0 | 19 |
@internalComponent - Internal Symbian test code |
sl@0 | 20 |
|
sl@0 | 21 |
This file specifies the interface to the test of having a full |
sl@0 | 22 |
screen of text within a CONE control. |
sl@0 | 23 |
*/ |
sl@0 | 24 |
|
sl@0 | 25 |
|
sl@0 | 26 |
#ifndef __TFULLSCREENTEXT_H__ |
sl@0 | 27 |
#define __TFULLSCREENTEXT_H__ |
sl@0 | 28 |
|
sl@0 | 29 |
|
sl@0 | 30 |
#include "te_conestepbase.h" |
sl@0 | 31 |
|
sl@0 | 32 |
#include <coecntrl.h> |
sl@0 | 33 |
#include <coeaui.h> |
sl@0 | 34 |
#include <eikappui.h> |
sl@0 | 35 |
|
sl@0 | 36 |
|
sl@0 | 37 |
_LIT(KFullScreenText,"tfullscreentext"); |
sl@0 | 38 |
|
sl@0 | 39 |
|
sl@0 | 40 |
class CGlobalTextControl : public CCoeControl |
sl@0 | 41 |
{ |
sl@0 | 42 |
public: |
sl@0 | 43 |
static CGlobalTextControl* NewL(const CCoeControl* aParent, |
sl@0 | 44 |
TBool aDrawVertically, TBool aRightToLeft); |
sl@0 | 45 |
static CGlobalTextControl* NewLC(const CCoeControl* aParent, |
sl@0 | 46 |
TBool aDrawVertically, TBool aRightToLeft); |
sl@0 | 47 |
~CGlobalTextControl(); |
sl@0 | 48 |
|
sl@0 | 49 |
private: |
sl@0 | 50 |
CGlobalTextControl(TBool aDrawVertically, TBool aRightToLeft); |
sl@0 | 51 |
void ConstructL(const CCoeControl* aParent); |
sl@0 | 52 |
|
sl@0 | 53 |
// From CCoeControl |
sl@0 | 54 |
void Draw(const TRect& aRect) const; |
sl@0 | 55 |
void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
sl@0 | 56 |
|
sl@0 | 57 |
private: |
sl@0 | 58 |
TBidiText* iBidiText; |
sl@0 | 59 |
CWsScreenDevice* iScreen; |
sl@0 | 60 |
RSemaphore iSemaphore; |
sl@0 | 61 |
|
sl@0 | 62 |
TMargins8 iMargin; |
sl@0 | 63 |
TBool iDrawVertically; |
sl@0 | 64 |
TBool iRightToLeft; |
sl@0 | 65 |
|
sl@0 | 66 |
RWsSession& iWsSession; |
sl@0 | 67 |
}; |
sl@0 | 68 |
|
sl@0 | 69 |
|
sl@0 | 70 |
class CTFullScreenText : public CTe_ConeStepBase |
sl@0 | 71 |
{ |
sl@0 | 72 |
public: |
sl@0 | 73 |
CTFullScreenText(); |
sl@0 | 74 |
|
sl@0 | 75 |
private: |
sl@0 | 76 |
// From CTestStep |
sl@0 | 77 |
virtual TVerdict doTestStepPreambleL(); |
sl@0 | 78 |
virtual TVerdict doTestStepL(); |
sl@0 | 79 |
virtual TVerdict doTestStepPostambleL(); |
sl@0 | 80 |
virtual void InitUIL(CCoeEnv* aCoeEnv); |
sl@0 | 81 |
|
sl@0 | 82 |
void FullScreenTextL(); |
sl@0 | 83 |
void GenerateEventL(TRawEvent::TType aEventType); |
sl@0 | 84 |
|
sl@0 | 85 |
private: |
sl@0 | 86 |
RSemaphore iSemaphore; |
sl@0 | 87 |
TBool iDrawVertically; |
sl@0 | 88 |
TBool iRightToLeft; |
sl@0 | 89 |
}; |
sl@0 | 90 |
|
sl@0 | 91 |
|
sl@0 | 92 |
class CFullScreenTextAppUi : public CEikAppUi |
sl@0 | 93 |
{ |
sl@0 | 94 |
public: |
sl@0 | 95 |
CFullScreenTextAppUi(); |
sl@0 | 96 |
virtual ~CFullScreenTextAppUi(); |
sl@0 | 97 |
void ConstructL(TBool aDrawVertically, TBool aRightToLeft); |
sl@0 | 98 |
|
sl@0 | 99 |
private: |
sl@0 | 100 |
CGlobalTextControl* iGlobalTextControl; |
sl@0 | 101 |
}; |
sl@0 | 102 |
|
sl@0 | 103 |
#endif |