diff -r 000000000000 -r 2f259fa3e83a commonuisupport/grid/tef/TCoGridStep.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commonuisupport/grid/tef/TCoGridStep.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,85 @@ +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalComponent - Internal Symbian test code +*/ + +#if (!defined __TCOGRID_STEP_H__) +#define __TCOGRID_STEP_H__ + +#include +#include +#include +#include "COEGRID.H" +#include +#include "TESTIMG.H" + +#include "TGridTestServer.h" +#include "appfwk_test_AppUi.h" + +//! A CTestCoeAppUi Derived Class.\n + +/** + App Ui class for the TCoGridStep.\n +*/ +class CTestCoeGridAppUi : public CTestCoeAppUi + { +public: + enum {ENoRows=200,ENoCols=200}; + enum {EPageWidthInTwips=5000,EPageHeightInTwips=2000}; +public: + CTestCoeGridAppUi(CTmsTestStep* aStep); + virtual ~CTestCoeGridAppUi(); + virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); + virtual void ConstructL(); +private: + CFileStore* CreateStoreLC(RFile &aFile); + void LoadL(); + void SaveL(); + void SetZoomFactorL(TInt aZoomFactor); + void ChangeColors(TBool aReset); + void RunTestStepL(TInt aNumStep); +private: + CTestCellImg* iTestCellImg; + CTestLabelImg* iTestLabelImg; + CTestGridTable* iGridTable; + CGridWin *iGridWin; + TZoomFactor* iZoomFactor; + CGridLay* iGridLay; + CGridImg* iGridImg; + TBool iUndoColors; + }; + +//! A CTestStep derived class +/*! + Incorporates the tests on Grid with InDefinite Row Boundaries.\n +*/ +class CTCoGridStep : public CTmsTestStep + { +public: + CTCoGridStep(); + ~CTCoGridStep(); +// virtual TVerdict doTestStepPreambleL(); +// virtual TVerdict doTestStepPostambleL(); + virtual TVerdict doTestStepL(); + void ConstructAppL(CCoeEnv* aEnv); +private: + }; + +_LIT(KTCoGridStep,"TCoGrid"); +#endif +