meetingrequest/mrguicommon/inc/cmrbutton.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2002-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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRButton_H
       
    19 #define CMRButton_H
       
    20 
       
    21 #include <AknIconUtils.h>
       
    22 #include <aknbutton.h>
       
    23 
       
    24 #include "esmrfieldbuilderdef.h"
       
    25 #include "nmrbitmapmanager.h"
       
    26 
       
    27 /**
       
    28  *  CMRButton is graphical button component for fields 
       
    29  */
       
    30 NONSHARABLE_CLASS( CMRButton ) : public CAknButton
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Two-phased constructor.
       
    35      *
       
    36      * @param aBitmapId
       
    37      * @param aParent parent control
       
    38      * @param aScaleMode 
       
    39      * @return Pointer to created and initialized mr image object.
       
    40      */
       
    41      IMPORT_C static CMRButton* NewL(
       
    42              NMRBitmapManager::TMRBitmapId aBitmapId,
       
    43              const CCoeControl* aParent = NULL,
       
    44              TScaleMode aScaleMode = EAspectRatioPreserved );
       
    45 
       
    46     /**
       
    47      * C++ Destructor
       
    48      */
       
    49     IMPORT_C virtual ~CMRButton();
       
    50     
       
    51     void SizeChanged();
       
    52 
       
    53 private:
       
    54     /**
       
    55      * C++ default constructor
       
    56      */
       
    57     CMRButton( TScaleMode aScaleMode );
       
    58     void ConstructL(
       
    59             NMRBitmapManager::TMRBitmapId aBitmapId,
       
    60             const CCoeControl* aParent );
       
    61     
       
    62 private:
       
    63     TScaleMode iScaleMode;
       
    64     };
       
    65 
       
    66 #endif //CMRButton_H
       
    67 
       
    68 // EOF