commonuisupport/grid/tef/TGrid0Step.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 __TGRID0_STEP_H__)
       
    22 #define __TGRID0_STEP_H__
       
    23 #include <basched.h>
       
    24 #include <coemain.h>
       
    25 #include <coeaui.h>
       
    26 #include "COEGRID.H"
       
    27 #include <grdstd.h>
       
    28 #include "TIMG0.H"
       
    29 
       
    30 #include "TGridTestServer.h"
       
    31 #include "appfwk_test_AppUi.h"
       
    32 
       
    33 //! A CTestCoeAppUi derived Class.\n
       
    34 /**
       
    35 	 App Ui class for the TGrid0Step.\n
       
    36 */
       
    37 
       
    38 class CTestGridAppUi : public CTestCoeAppUi
       
    39 	{
       
    40 public:
       
    41 	enum
       
    42 		{
       
    43 		ENoRows=200,ENoCols=200
       
    44 		};
       
    45 	enum
       
    46 		{
       
    47 		EGridXPos=40,EGridYPos=40,
       
    48 		EGridWidth=560,EGridHeight=160
       
    49 		};
       
    50 	enum 
       
    51 		{
       
    52 		EPageWidthInTwips=5000,EPageHeightInTwips=2000
       
    53 		};
       
    54 public:
       
    55 	CTestGridAppUi(CTmsTestStep* aStep);
       
    56 	virtual ~CTestGridAppUi();
       
    57     virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    58     virtual void ConstructL();
       
    59 private:
       
    60 	CFileStore* CreateStoreLC(RFile &aFile);
       
    61 	TBool LoadL(TCellRef& aCursorPos);
       
    62 	void SaveL();
       
    63 	void SetZoomFactorL(TInt aZoomFactor);
       
    64 	void ChangeColors(TBool aReset);
       
    65 	void RunTestStepL(TInt aNumStep);
       
    66 private:
       
    67 	CSheetCellImg* iSheetCellImg;
       
    68 	CSheetLabelImg* iSheetLabelImg;	
       
    69 	MGridTable* iGridTable;
       
    70 	CGridWin *iGridWin;
       
    71 	TZoomFactor* iZoomFactor;
       
    72 	CGridLay* iGridLay;
       
    73 	CGridImg* iGridImg;
       
    74 	TBool iUndoColors;
       
    75 	CTGridQueryDialog* iDialog;
       
    76 	};
       
    77 
       
    78 //! A CTestStep derived class 
       
    79 /*!
       
    80 	Incorporates the tests on Grid with Definite Row Boundaries.\n
       
    81 */
       
    82 
       
    83 class CTGrid0Step : public CTmsTestStep
       
    84 	{
       
    85 public:
       
    86 	CTGrid0Step();
       
    87 	~CTGrid0Step();
       
    88 //	virtual TVerdict doTestStepPreambleL();
       
    89 //	virtual TVerdict doTestStepPostambleL();
       
    90 	virtual TVerdict doTestStepL();
       
    91 	void ConstructAppL(CCoeEnv* aCoe);
       
    92 private:
       
    93 	};
       
    94 
       
    95 _LIT(KTGrid0Step,"TGrid0");
       
    96 #endif
       
    97 
       
    98