uiresources_pub/pictograph_api/tsrc/src/testsdkpictographcontrol.cpp
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  test aknpictographinterface.h
       
    15                       akniconsrvclient.h
       
    16                       akniconutils.h
       
    17                       akninternaliconutils.h
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #include "testsdkpictographcontrol.h"
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CTestSDKPicToGraphControl::CTestSDKPicToGraphControl
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CTestSDKPicToGraphControl::CTestSDKPicToGraphControl()
       
    32     {
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CTestSDKPicToGraphControl::~CTestSDKPicToGraphControl
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 CTestSDKPicToGraphControl::~CTestSDKPicToGraphControl()
       
    40     {
       
    41     }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // CTestSDKPicToGraphControl::NewL
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 CTestSDKPicToGraphControl* CTestSDKPicToGraphControl::NewL()
       
    48     {
       
    49     CTestSDKPicToGraphControl* self = new ( ELeave ) CTestSDKPicToGraphControl;
       
    50     CleanupStack::PushL( self );
       
    51     self->ConstructL();
       
    52     CleanupStack::Pop( self );
       
    53     return self;
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CTestSDKPicToGraphControl::ConstructL
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 void CTestSDKPicToGraphControl::ConstructL()
       
    61     {
       
    62     CreateWindowL();
       
    63     SetRect( Rect() );
       
    64     ActivateL();
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // CTestSDKPicToGraphControl::Draw
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 void CTestSDKPicToGraphControl::Draw(const TRect& /*aRect*/) const
       
    72     {
       
    73     CWindowGc& gc = SystemGc();
       
    74     gc.SetPenStyle( CGraphicsContext::ENullPen );
       
    75     gc.SetBrushColor( KRgbGray );
       
    76     gc.SetBrushStyle( CGraphicsContext::ESolidBrush );  
       
    77     gc.DrawRect( Rect() );
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CTestSDKPicToGraphControl::CountComponentControls
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 TInt CTestSDKPicToGraphControl::CountComponentControls() const
       
    85     {
       
    86     return 0;
       
    87     }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // CTestSDKPicToGraphControl::ComponentControl
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 CCoeControl* CTestSDKPicToGraphControl::ComponentControl(TInt /*aIndex*/) const
       
    94     {
       
    95     return NULL;
       
    96 
       
    97     }
       
    98 
       
    99 // -----------------------------------------------------------------------------
       
   100 // CTestSDKPicToGraphControl::SizeChanged
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 void CTestSDKPicToGraphControl::SizeChanged()
       
   104     {
       
   105     }
       
   106