meetingrequest/mrguicommon/src/cmrlabel.cpp
branchRCL_3
changeset 12 4ce476e64c59
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2009-2009 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:  URL Parser ECom plugin entry point
       
    15 *
       
    16 */
       
    17 #include "cmrlabel.h"
       
    18 #include "nmrcolormanager.h"
       
    19 
       
    20 #include <aknutils.h>
       
    21 #include <aknsutils.h>
       
    22 #include <aknsconstants.h>
       
    23 #include <aknsconstants.hrh>
       
    24 #include <gdi.h>
       
    25 
       
    26 #include "emailtrace.h"
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CMRLabel::NewL
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C CMRLabel* CMRLabel::NewL()
       
    33     {
       
    34     FUNC_LOG;
       
    35     
       
    36     CMRLabel* self = new (ELeave) CMRLabel();
       
    37     CleanupStack::PushL( self );
       
    38     self->ConstructL();
       
    39     CleanupStack::Pop( self );
       
    40     return self;
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CMRLabel::ConstructL
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 void CMRLabel::ConstructL()
       
    48     {
       
    49     FUNC_LOG;
       
    50 
       
    51     NMRColorManager::SetColor( *this, 
       
    52                                NMRColorManager::EMRMainAreaTextColor );
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CMRLabel::CMRLabel
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 CMRLabel::CMRLabel()
       
    60     {
       
    61     FUNC_LOG;
       
    62 
       
    63     // Do nothing
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CMRLabel::~CMRLabel
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 EXPORT_C CMRLabel::~CMRLabel()
       
    71     {
       
    72     FUNC_LOG;
       
    73 
       
    74     // Do nothing
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // CMRLabel::FocusChanged
       
    79 // ---------------------------------------------------------------------------
       
    80 //
       
    81 void CMRLabel::FocusChanged( TDrawNow aDrawNow )
       
    82     {
       
    83     FUNC_LOG;
       
    84 
       
    85     CEikLabel::FocusChanged( aDrawNow );
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // CMRLabel::SizeChanged
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 void CMRLabel::SizeChanged()
       
    93     {
       
    94     FUNC_LOG;
       
    95 
       
    96     CEikLabel::SizeChanged();
       
    97     
       
    98     NMRColorManager::SetColor(
       
    99             *this, 
       
   100             NMRColorManager::EMRMainAreaTextColor );
       
   101     }
       
   102 
       
   103 // End of file