windowing/windowserver/tauto/TSCRMODE.H
branchRCL_3
changeset 97 0e9202c0340c
parent 0 5d03bc08d59c
equal deleted inserted replaced
82:65f103b6ab60 97:0e9202c0340c
     1 
     1 // Copyright (c) 1996-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
     2 // All rights reserved.
     4 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    32 class CSecondConnection;
    31 class CSecondConnection;
    33 
    32 
    34 class CSecondConnectionGroup : public CTWindowGroup
    33 class CSecondConnectionGroup : public CTWindowGroup
    35 	{
    34 	{
    36 public:
    35 public:
    37 	CSecondConnectionGroup(CTClient *aClient, CSecondConnection *aSecondConnection, CTestBase *aTest, CTestStep* aTestStep);
    36 	CSecondConnectionGroup(CTClient* aClient, CSecondConnection* aSecondConnection, CTestBase* aTest, CTestStep* aTestStep);
    38 	void ScreenDeviceChanged();
    37 	void ScreenDeviceChanged();
    39 private:
    38 private:
    40 	CTestBase *iTest;
    39 	CTestBase* iTest;
    41 	CSecondConnection *iSecondConnection;
    40 	CSecondConnection* iSecondConnection;
    42 	CTestStep* iTestStep;
    41 	CTestStep* iTestStep;
    43 	};
    42 	};
    44 
    43 
    45 class CSecondConnection : public CBase
    44 class CSecondConnection : public CBase
    46 	{
    45 	{
    47 public:
    46 public:
    48 	~CSecondConnection();
    47 	~CSecondConnection();
    49 	void ConstructL(TInt aScreenNumber,const TRect &aWinRect, CTestBase *aTest, CTestStep* aTestStep);
    48 	void ConstructL(TInt aScreenNumber,const TRect &aWinRect, CTestBase* aTest, CTestStep* aTestStep);
    50 	void EnableMessages();
    49 	void EnableMessages();
    51 	void DisableMessages();
    50 	void DisableMessages();
    52 	TInt DeviceMessageCount() const;
    51 	TInt DeviceMessageCount() const;
    53 	void ScreenDeviceChanged();
    52 	void ScreenDeviceChanged();
    54 	void SetWindow2Visibility(TBool aVisible);
    53 	void SetWindow2Visibility(TBool aVisible);
    55 public:
    54 public:
    56 	CSecondConnectionGroup *iGroup;
    55 	CSecondConnectionGroup* iGroup;
    57 private:
    56 private:
    58 	CTClient *iClient;
    57 	CTClient* iClient;
    59 	CTBlankWindow *iWindow;
    58 	CTBlankWindow* iWindow;
    60 	CTBlankWindow *iWindow2;
    59 	CTBlankWindow* iWindow2;
    61 	TInt iMessageCount;
    60 	TInt iMessageCount;
    62 	};
    61 	};
    63 	
    62 	
    64 class SecondClientConnection : public CTClient
    63 class SecondClientConnection : public CTClient
    65 	{
    64 	{
    83 	TBool MoveWindow();
    82 	TBool MoveWindow();
    84 	void TestPanicsL();
    83 	void TestPanicsL();
    85 	void ScaledDrawingL();
    84 	void ScaledDrawingL();
    86 	void SetScreenModeEnforcement(TScreenModeEnforcement aMode);
    85 	void SetScreenModeEnforcement(TScreenModeEnforcement aMode);
    87 	void CheckWindows(TBool aWinIsVis);
    86 	void CheckWindows(TBool aWinIsVis);
    88 	void ValidateWin(TestWindow *aWin, TRgb aColor);
    87 	void ValidateWin(TestWindow* aWin, TRgb aColor);
    89 	void RedrawWin(RWindow &aWin, TRgb aColor);
    88 	void RedrawWin(RWindow &aWin, TRgb aColor);
    90 	void ScreenRotationsL();
    89 	void ScreenRotationsL();
    91 	void MoreScreenRotationsL();
    90 	void MoreScreenRotationsL();
    92 	TBool RectClearBugL();
    91 	TBool RectClearBugL();
    93 	void ScreenModeChange1L();
    92 	void ScreenModeChange1L();
    99 	void SetScreenModeAfterScreenDeviceDeletedL();
    98 	void SetScreenModeAfterScreenDeviceDeletedL();
   100 	void TestRotateAndScreenModeL();
    99 	void TestRotateAndScreenModeL();
   101 private:
   100 private:
   102 	void DrawTestBmpL(CFbsBitmap* aTestBitmap);
   101 	void DrawTestBmpL(CFbsBitmap* aTestBitmap);
   103 	void TestDrawingToWindows(CWindowGc* aWinGc1, CWindowGc* aWinGc2, RWindow& aWindow1,RWindow& aWindow2,CFbsBitmap* aBitmap64K,CFbsBitmap* aBitmap16M,CFbsFont* aFont,TBool aAllInRedraw, TBool aUseSystemGc, TBool aUseBmp16M);
   102 	void TestDrawingToWindows(CWindowGc* aWinGc1, CWindowGc* aWinGc2, RWindow& aWindow1,RWindow& aWindow2,CFbsBitmap* aBitmap64K,CFbsBitmap* aBitmap16M,CFbsFont* aFont,TBool aAllInRedraw, TBool aUseSystemGc, TBool aUseBmp16M);
       
   103 	void CheckHalSetting(TInt aGcOrientation);
   104 private:
   104 private:
   105 	TInt iSubState;
   105 	TInt iSubState;
   106 	CSecondConnection *iSecondConnection;
   106 	CSecondConnection* iSecondConnection;
   107 	TSize iWinSize;
   107 	TSize iWinSize;
   108 	TPoint iWinPos;
   108 	TPoint iWinPos;
   109 	TInt iWinState;
   109 	TInt iWinState;
   110 	TScreenModeEnforcement iOldEnfMode;
   110 	TScreenModeEnforcement iOldEnfMode;
   111 	TScreenModeEnforcement iCurEnforcement;
   111 	TScreenModeEnforcement iCurEnforcement;
   112 	};
   112 	};
   113 
   113 
   114 
       
   115 	
       
   116 class CTScrModeStep : public CTGraphicsStep
   114 class CTScrModeStep : public CTGraphicsStep
   117 	{
   115 	{
   118 public:
   116 public:
   119 	CTScrModeStep();
   117 	CTScrModeStep();
   120 protected:	
   118 protected: