photosgallery/viewframework/layouts/inc/glxfollowfocuslayout.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-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:    Layout mapping index to distance from focus
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef T_GLXFOLLOWFOCUSLAYOUT_H
       
    22 #define T_GLXFOLLOWFOCUSLAYOUT_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <glxlayout.h>
       
    27 #include <mglxvisuallistobserver.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  *  TGlxFollowFocusLayout 
       
    33  *
       
    34  *  Layout mapping index to distance from focus
       
    35  *
       
    36  *  @lib glxlayouts.lib
       
    37  */
       
    38 class TGlxFollowFocusLayout : public TGlxLayout, public MGlxVisualListObserver
       
    39     {
       
    40 	public:
       
    41 	
       
    42 		/**
       
    43 		 * Constructor, resets the state
       
    44 		 */
       
    45 	    IMPORT_C TGlxFollowFocusLayout();
       
    46 
       
    47 		/**
       
    48 		 * Destructor
       
    49 		 */
       
    50 		IMPORT_C virtual ~TGlxFollowFocusLayout();
       
    51 
       
    52 		/**
       
    53 		* Set visual list to which the layout is applied.
       
    54 		*/
       
    55 	    IMPORT_C void SetVisualListL( MGlxVisualList* aVisualList );
       
    56 
       
    57 	protected:	// From TGlxLayout
       
    58 
       
    59 		/// @ref TGlxLayout::DoSetLayoutValues
       
    60 		void DoSetLayoutValues( TGlxLayoutInfo& aInfo );
       
    61 
       
    62 	private:
       
    63 
       
    64 	    /** Visual list to which the layout is applied (not owned) */
       
    65 	    MGlxVisualList* iVisualList;
       
    66 
       
    67 	    };
       
    68 
       
    69 #endif // T_GLXFOLLOWFOCUSLAYOUT_H