landmarksui/uicontrols/inc/CLmkIconSelectorPopup.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     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:    LandmarksUi Content File -    Icon selector popup.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef __CLMKICONSELECTORPOPUP_H__
       
    26 #define __CLMKICONSELECTORPOPUP_H__
       
    27 
       
    28 //  INCLUDES
       
    29 #include <AknGrid.h>
       
    30 
       
    31 // CLASS DECLARATION
       
    32 /**
       
    33 * CLmkIconSelectorPopup class
       
    34 */
       
    35 class CLmkIconSelectorPopup : public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         * @param aGrid
       
    42         * @return
       
    43         */
       
    44         static CLmkIconSelectorPopup* NewL( CAknGrid& aGrid );
       
    45 
       
    46     public: // From CAknPopupList
       
    47 		TBool ExecuteLD();
       
    48 
       
    49 		void HandleScreenSizeChange();
       
    50     protected:
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CLmkIconSelectorPopup();
       
    55 
       
    56    	private:
       
    57 		/**
       
    58 		 * By default Symbian 2nd phase constructor is private.
       
    59 		 */
       
    60         void ConstructL( CAknGrid& aGrid );
       
    61 
       
    62         /**
       
    63         * C++ default constructor.
       
    64         */
       
    65         CLmkIconSelectorPopup();
       
    66 
       
    67     private: //new functions
       
    68         /**
       
    69          * Load graphics
       
    70          */
       
    71     	void LoadGraphicsL();
       
    72 
       
    73         /**
       
    74          * Add Icons to Popup
       
    75          * @param number of icons
       
    76          */
       
    77 		void AddDataL( TInt aNum );
       
    78 
       
    79         /**
       
    80          * Set layout to cells in the grid.
       
    81          */
       
    82         void ApplySelGridGraphicStyleL();
       
    83 
       
    84     private:    // Data
       
    85         TInt iNumOfColumns;
       
    86         TInt iNumOfRows;
       
    87         TSize iSizeOfItems;
       
    88 
       
    89         ///Ref:
       
    90         CAknGrid* iGrid;
       
    91 
       
    92         // Ref:
       
    93         CEikonEnv*      iEnv;
       
    94     };
       
    95 
       
    96 #endif      // __CLMKICONSELECTORPOPUP_H__
       
    97 
       
    98 // End of File