mpxplugins/viewplugins/views/collectionviewhg/src/mpxpopuplist.cpp
branchRCL_3
changeset 14 943ff5625028
equal deleted inserted replaced
11:13afc0e517bd 14:943ff5625028
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Implementation of Collection view container
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "mpxpopuplist.h"
       
    22 
       
    23 CMpxPopupList::CMpxPopupList(): CAknPopupList()
       
    24     {
       
    25     }
       
    26 
       
    27 CMpxPopupList::~CMpxPopupList()
       
    28     {
       
    29     }
       
    30 
       
    31 CMpxPopupList* CMpxPopupList::NewL( 
       
    32     CEikListBox* aListBox, 
       
    33     TInt aCbaResource,
       
    34     AknPopupLayouts::TAknPopupLayouts aType )
       
    35     {
       
    36     CMpxPopupList* self = new (ELeave) CMpxPopupList();
       
    37     CleanupStack::PushL( self );
       
    38     self->ConstructL( aListBox, aCbaResource, aType );
       
    39     CleanupStack::Pop( self );
       
    40     return self;
       
    41     }
       
    42 
       
    43 TRect CMpxPopupList::LayoutRect()
       
    44     {
       
    45     SetupWindowLayout( iWindowType );
       
    46     TRect rect = Rect();
       
    47     rect.Move( PositionRelativeToScreen() );
       
    48     return rect;
       
    49     }
       
    50 
       
    51 //  End of File