diff -r 000000000000 -r 05e9090e2422 uiresources_pub/pictograph_api/tsrc/src/testsdkpictographcontrol.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiresources_pub/pictograph_api/tsrc/src/testsdkpictographcontrol.cpp Thu Dec 17 09:14:12 2009 +0200 @@ -0,0 +1,106 @@ +/* +* Copyright (c) 2008 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: test aknpictographinterface.h + akniconsrvclient.h + akniconutils.h + akninternaliconutils.h +* +*/ + + +#include "testsdkpictographcontrol.h" + + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::CTestSDKPicToGraphControl +// ----------------------------------------------------------------------------- +// +CTestSDKPicToGraphControl::CTestSDKPicToGraphControl() + { + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::~CTestSDKPicToGraphControl +// ----------------------------------------------------------------------------- +// +CTestSDKPicToGraphControl::~CTestSDKPicToGraphControl() + { + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::NewL +// ----------------------------------------------------------------------------- +// +CTestSDKPicToGraphControl* CTestSDKPicToGraphControl::NewL() + { + CTestSDKPicToGraphControl* self = new ( ELeave ) CTestSDKPicToGraphControl; + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::ConstructL +// ----------------------------------------------------------------------------- +// +void CTestSDKPicToGraphControl::ConstructL() + { + CreateWindowL(); + SetRect( Rect() ); + ActivateL(); + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::Draw +// ----------------------------------------------------------------------------- +// +void CTestSDKPicToGraphControl::Draw(const TRect& /*aRect*/) const + { + CWindowGc& gc = SystemGc(); + gc.SetPenStyle( CGraphicsContext::ENullPen ); + gc.SetBrushColor( KRgbGray ); + gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); + gc.DrawRect( Rect() ); + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::CountComponentControls +// ----------------------------------------------------------------------------- +// +TInt CTestSDKPicToGraphControl::CountComponentControls() const + { + return 0; + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::ComponentControl +// ----------------------------------------------------------------------------- +// +CCoeControl* CTestSDKPicToGraphControl::ComponentControl(TInt /*aIndex*/) const + { + return NULL; + + } + +// ----------------------------------------------------------------------------- +// CTestSDKPicToGraphControl::SizeChanged +// ----------------------------------------------------------------------------- +// +void CTestSDKPicToGraphControl::SizeChanged() + { + } +