emailuis/uicomponents/inc/fstextviewerselectsmanager.h
branchRCL_3
changeset 25 3533d4323edc
parent 0 8466d47a6819
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 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 "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:  Manager for selectable elements (hotspots and expand areas)
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_FSTEXTVIEWERSELECTSMANAGER_H
       
    20 #define C_FSTEXTVIEWERSELECTSMANAGER_H
       
    21 
       
    22 //<cmail> removed __FS_ALFRED_SUPPORT flag
       
    23 //#include <fsconfig.h>
       
    24 //</cmail> removed __FS_ALFRED_SUPPORT flag
       
    25 #include <e32base.h>
       
    26 
       
    27 #include "fstextviewerselect.h"
       
    28 
       
    29 class CAlfVisual;
       
    30 class CFsTextViewerVisualizer;
       
    31 class CAlfTexture;
       
    32 
       
    33 class CFsTextViewerSelectsManager : public CBase
       
    34     {
       
    35     public:
       
    36         static CFsTextViewerSelectsManager* NewL( 
       
    37              CFsTextViewerVisualizer* aOwner );
       
    38         ~CFsTextViewerSelectsManager();
       
    39 
       
    40     public:
       
    41         void AppendSelectVisL( TFsRangedVisual* aVisual, TInt aId, 
       
    42              CFsTextViewerSelect::TFsTextViewerSelectType aType );
       
    43         CFsTextViewerVisualizer* Visualizer();
       
    44         TBool MoveNextL( TBool& aChanged );
       
    45         TBool MovePrevL( TBool& aChanged );
       
    46         void RemoveVisual( TFsRangedVisual* aVisual );
       
    47         void ClickedL();
       
    48         TBool IsHotspotHighlighted();
       
    49         TInt GetCurrentSelectId();
       
    50         // <cmail>
       
    51         TInt GetCurrentSelectedIndex();
       
    52         // </cmail>
       
    53         void DimAllL();
       
    54         void RefreshSelectionL();
       
    55         void SelectL( TInt aId );
       
    56         void SelectByCharL( TInt aIndex );
       
    57         void SelectByIndexL( TInt aIndex );
       
    58         TSize GetDisplaySize();
       
    59         TBool IsCurrentHotspotVisible();
       
    60         TInt GetCurrentHotspotLine();
       
    61         void HideActionButtonFromCurrentHighlightedHotspot();
       
    62         void ShowActionButtonForCurrentHighlightedHotspotL();
       
    63         static TInt Compare( 
       
    64              const CFsTextViewerSelect& aFirst, 
       
    65              const CFsTextViewerSelect& aSecond );
       
    66 
       
    67     public:
       
    68         CAlfTexture* iHighlightLine;
       
    69         TReal32 iHighlightLineOpacity;
       
    70         CAlfTexture* iActionButton;
       
    71         TReal32 iActionButtonOpacity;
       
    72         TReal32 iActionButtonMargin;
       
    73         TReal32 iActionButtonWidth;
       
    74         TReal32 iActionButtonHeight;
       
    75         CAlfControl* iControl;
       
    76 
       
    77     private:
       
    78         void ConstructL();
       
    79         CFsTextViewerSelectsManager( CFsTextViewerVisualizer* aOwner );
       
    80     
       
    81     private:
       
    82         RPointerArray<CFsTextViewerSelect> iSelects;
       
    83         TInt iCurrent;
       
    84         CFsTextViewerVisualizer* iOwner;
       
    85         TSize iDisplaySize;
       
    86     };
       
    87 
       
    88 #endif //C_FSTEXTVIEWERSELECTSMANAGER_H