ginebra2/animators/SlideAnimator.h
changeset 0 1450b09d0cfd
child 3 0954f5dd2cd0
equal deleted inserted replaced
-1:000000000000 0:1450b09d0cfd
       
     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 
       
    19 #ifndef __GINEBRA_SLIDEANIMATOR_H__
       
    20 #define __GINEBRA_SLIDEANIMATOR_H__
       
    21 
       
    22 #include <QObject>
       
    23 #include <QTransform>
       
    24 
       
    25 #include "../VisibilityAnimator.h"
       
    26 
       
    27 namespace GVA {
       
    28 class ChromeSnippet;
       
    29 
       
    30 class SlideAnimator : public VisibilityAnimator
       
    31 {
       
    32    Q_OBJECT
       
    33 
       
    34  public:
       
    35   SlideAnimator(ChromeSnippet* snippet);
       
    36   virtual ~SlideAnimator();
       
    37   void setDirection(const QString& direction);
       
    38  public slots:
       
    39   virtual void updateVisibility(qreal step);
       
    40  private:
       
    41   QString m_direction;
       
    42   //QPoint m_visiblePos;
       
    43   QTransform m_originalTransform;
       
    44   qreal m_xRange;
       
    45   qreal m_yRange;
       
    46 };
       
    47 }
       
    48 #endif