ganeswidgets/inc/hggridcontainer.h
changeset 0 89c329efa980
child 1 e48454f237ca
equal deleted inserted replaced
-1:000000000000 0:89c329efa980
       
     1 /*
       
     2 * Copyright (c) 2010 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HGGRIDCONTAINER_H
       
    19 #define HGGRIDCONTAINER_H
       
    20 
       
    21 #include "HgContainer.h"
       
    22 
       
    23 class HbLabel;
       
    24 class HgWidgetItem;
       
    25 class HgMediaWallRenderer;
       
    26 
       
    27 class HgGridContainer : public HgContainer
       
    28 {
       
    29     Q_OBJECT
       
    30     Q_DISABLE_COPY(HgGridContainer)
       
    31 
       
    32 public:
       
    33     explicit HgGridContainer(QGraphicsItem *parent = 0);
       
    34     
       
    35     virtual ~HgGridContainer();
       
    36 
       
    37 protected:
       
    38 
       
    39     // events
       
    40     virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
       
    41     
       
    42     // from HgContainer
       
    43     virtual HgMediaWallRenderer* createRenderer();
       
    44     virtual qreal getCameraDistance(qreal springVelocity);
       
    45     virtual qreal getCameraRotationY(qreal springVelocity);
       
    46     virtual void handleTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemIndex);
       
    47     virtual void handleLongTapAction(const QPointF& pos, HgWidgetItem* hitItem, int hitItemindex);
       
    48    
       
    49 };
       
    50 
       
    51 #endif