commonuisupport/grid/tef/TCoGridStep.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code  
       
    19 */
       
    20 
       
    21 #if (!defined __TCOGRID_STEP_H__)
       
    22 #define __TCOGRID_STEP_H__
       
    23 
       
    24 #include <basched.h>
       
    25 #include <coemain.h>
       
    26 #include <coeaui.h>
       
    27 #include "COEGRID.H"
       
    28 #include <grdstd.h>
       
    29 #include "TESTIMG.H"
       
    30 
       
    31 #include "TGridTestServer.h"
       
    32 #include "appfwk_test_AppUi.h"
       
    33 
       
    34 //! A CTestCoeAppUi Derived Class.\n
       
    35 
       
    36 /**
       
    37   App Ui class for the TCoGridStep.\n
       
    38 */
       
    39 class CTestCoeGridAppUi : public CTestCoeAppUi
       
    40 	{
       
    41 public:
       
    42 	enum {ENoRows=200,ENoCols=200};
       
    43 	enum {EPageWidthInTwips=5000,EPageHeightInTwips=2000};
       
    44 public:
       
    45 	CTestCoeGridAppUi(CTmsTestStep* aStep);
       
    46 	virtual ~CTestCoeGridAppUi();
       
    47     virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    48     virtual void ConstructL();
       
    49 private:
       
    50 	CFileStore* CreateStoreLC(RFile &aFile);
       
    51 	void LoadL();
       
    52 	void SaveL();
       
    53 	void SetZoomFactorL(TInt aZoomFactor);
       
    54 	void ChangeColors(TBool aReset);
       
    55 	void RunTestStepL(TInt aNumStep);
       
    56 private:
       
    57 	CTestCellImg* iTestCellImg;
       
    58 	CTestLabelImg* iTestLabelImg;	
       
    59 	CTestGridTable* iGridTable;
       
    60 	CGridWin *iGridWin;
       
    61 	TZoomFactor* iZoomFactor;
       
    62 	CGridLay* iGridLay;
       
    63 	CGridImg* iGridImg;
       
    64 	TBool iUndoColors;
       
    65 	};
       
    66 
       
    67 //! A CTestStep derived class 
       
    68 /*!
       
    69  	Incorporates the tests on Grid with InDefinite Row Boundaries.\n
       
    70 */
       
    71 class CTCoGridStep : public CTmsTestStep
       
    72 	{
       
    73 public:
       
    74 	CTCoGridStep();
       
    75 	~CTCoGridStep();
       
    76 //	virtual TVerdict doTestStepPreambleL();
       
    77 //	virtual TVerdict doTestStepPostambleL();
       
    78 	virtual TVerdict doTestStepL();
       
    79 	void ConstructAppL(CCoeEnv* aEnv);
       
    80 private:
       
    81 	};
       
    82 
       
    83 _LIT(KTCoGridStep,"TCoGrid");
       
    84 #endif
       
    85