uiresources/src/testsdkskinscontrol.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Test AknsDrawUtils.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <eikenv.h>
       
    20 #include <aknappui.h> 
       
    21 
       
    22 #include "testsdkskinscontrol.h"
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 // -----------------------------------------------------------------------------
       
    27 // CTestSDKSkinsControl::NewL
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 CTestSDKSkinsControl* CTestSDKSkinsControl::NewL()
       
    31     {
       
    32     CTestSDKSkinsControl* self = new (ELeave) CTestSDKSkinsControl;
       
    33     CleanupStack::PushL(self);
       
    34     self->ConstructL();
       
    35     CleanupStack::Pop(self);
       
    36     return self;
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CTestSDKSkinsControl::~CTestSDKSkinsControl
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 CTestSDKSkinsControl::~CTestSDKSkinsControl()
       
    44     {
       
    45     
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CTestSDKSkinsControl::CTestSDKSkinsControl
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CTestSDKSkinsControl::CTestSDKSkinsControl(){};
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CTestSDKSkinsControl::ConstructL
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 void CTestSDKSkinsControl::ConstructL()
       
    59     {
       
    60     CreateWindowL();
       
    61     SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect());
       
    62     ActivateL();
       
    63 
       
    64     }
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // CTestSDKSkinsControl::OfferKeyEventL
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 TKeyResponse CTestSDKSkinsControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,
       
    71         TEventCode /*aType*/)
       
    72     {
       
    73     return EKeyWasConsumed;
       
    74     }
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // CTestSDKSkinsControl::Draw
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 void CTestSDKSkinsControl::Draw(const TRect& /*aRect*/) const
       
    81     {
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CTestSDKSkinsControl::CountComponentControls
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 TInt CTestSDKSkinsControl::CountComponentControls() const
       
    89     {
       
    90     return 0;
       
    91     }
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // CTestSDKSkinsControl::ComponentControl
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 CCoeControl* CTestSDKSkinsControl::ComponentControl(TInt /*aIndex*/) const
       
    98     {
       
    99     return NULL;
       
   100 
       
   101     }
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CTestSDKSkinsControl::SizeChanged
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 void CTestSDKSkinsControl::SizeChanged()
       
   108     {
       
   109     }
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // CTestSDKSkinsControl::SizeChanged
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 void CTestSDKSkinsControl::ActivateGc()
       
   116     {
       
   117     CCoeControl::ActivateGc();
       
   118     }
       
   119 
       
   120 // -----------------------------------------------------------------------------
       
   121 // CTestSDKSkinsControl::SizeChanged
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 void CTestSDKSkinsControl::DeactivateGc()
       
   125     {
       
   126     CCoeControl::DeactivateGc();
       
   127     }
       
   128