diff -r 000000000000 -r 8466d47a6819 emailuis/uicomponents/inc/fstextviewerselectsmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/uicomponents/inc/fstextviewerselectsmanager.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Manager for selectable elements (hotspots and expand areas) +* +*/ + + +#ifndef C_FSTEXTVIEWERSELECTSMANAGER_H +#define C_FSTEXTVIEWERSELECTSMANAGER_H + +// removed __FS_ALFRED_SUPPORT flag +//#include +// removed __FS_ALFRED_SUPPORT flag +#include + +#include "fstextviewerselect.h" + +class CAlfVisual; +class CFsTextViewerVisualizer; +class CAlfTexture; + +class CFsTextViewerSelectsManager : public CBase + { + public: + static CFsTextViewerSelectsManager* NewL( + CFsTextViewerVisualizer* aOwner ); + ~CFsTextViewerSelectsManager(); + + public: + void AppendSelectVisL( TFsRangedVisual* aVisual, TInt aId, + CFsTextViewerSelect::TFsTextViewerSelectType aType ); + CFsTextViewerVisualizer* Visualizer(); + TBool MoveNextL( TBool& aChanged ); + TBool MovePrevL( TBool& aChanged ); + void RemoveVisual( TFsRangedVisual* aVisual ); + void ClickedL(); + TBool IsHotspotHighlighted(); + TInt GetCurrentSelectId(); + // + TInt GetCurrentSelectedIndex(); + // + void DimAllL(); + void RefreshSelectionL(); + void SelectL( TInt aId ); + void SelectByCharL( TInt aIndex ); + void SelectByIndexL( TInt aIndex ); + TSize GetDisplaySize(); + TBool IsCurrentHotspotVisible(); + TInt GetCurrentHotspotLine(); + void HideActionButtonFromCurrentHighlightedHotspot(); + void ShowActionButtonForCurrentHighlightedHotspotL(); + static TInt Compare( + const CFsTextViewerSelect& aFirst, + const CFsTextViewerSelect& aSecond ); + + public: + CAlfTexture* iHighlightLine; + TReal32 iHighlightLineOpacity; + CAlfTexture* iActionButton; + TReal32 iActionButtonOpacity; + TReal32 iActionButtonMargin; + TReal32 iActionButtonWidth; + TReal32 iActionButtonHeight; + CAlfControl* iControl; + + private: + void ConstructL(); + CFsTextViewerSelectsManager( CFsTextViewerVisualizer* aOwner ); + + private: + RPointerArray iSelects; + TInt iCurrent; + CFsTextViewerVisualizer* iOwner; + TSize iDisplaySize; + }; + +#endif //C_FSTEXTVIEWERSELECTSMANAGER_H