dependencies/EikSoftkeyImage.h
branchv5backport
changeset 35 9d28e9ec8f22
equal deleted inserted replaced
33:e89187c6bc81 35:9d28e9ec8f22
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Changes cba button's label to image. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef EIKSOFTKEYIMAGE_H
       
    21 #define EIKSOFTKEYIMAGE_H
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CEikButtonGroupContainer;
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Changes cba button's label to image. 
       
    30 *
       
    31 *  @lib EIKCOCTL
       
    32 *  @since 2.0
       
    33 */
       
    34 class EikSoftkeyImage
       
    35     {
       
    36     public:
       
    37 
       
    38         /**
       
    39         * Set image to cba button by replacing label
       
    40         * @since 2.0
       
    41         * @param aButtonGroupContainer Button container
       
    42         * @param aImage Image to button,
       
    43         *               Takes Images ownership
       
    44         * @param aLeft  Boolean: left or right button. 
       
    45         *                        If true, then change left, 
       
    46         *                        if false, change right
       
    47         */
       
    48         IMPORT_C static void SetImage(CEikButtonGroupContainer* aButtonGroupContainer, CEikImage& aImage, TBool aLeft);
       
    49 
       
    50         /**
       
    51         * Change to cba button image back to label
       
    52         * @since 2.0
       
    53         * @param aButtonGroupContainer Button container
       
    54         * @param aLeft Boolean: left or right button. 
       
    55         *                        If true, then change left, 
       
    56         *                        if false, change right
       
    57         */
       
    58         IMPORT_C static void SetLabel(CEikButtonGroupContainer* aButtonGroupContainer, TBool aLeft);
       
    59     
       
    60     private:
       
    61 
       
    62         /**
       
    63         * C++ default constructor.
       
    64         */
       
    65         EikSoftkeyImage() {};
       
    66 
       
    67 
       
    68     };
       
    69 
       
    70 #endif      // EIKSOFTKEYIMAGE_H   
       
    71             
       
    72 // End of File
       
    73