ganeswidgets/inc/hglongpressvisualizer.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 13:59:05 +0300
changeset 3 c863538fcbb6
parent 0 89c329efa980
child 6 1cdcc61142d2
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#ifndef HGLONGPRESSVISUALIZER_H
#define HGLONGPRESSVISUALIZER_H

#include <QTime>
#include <hbwidget.h>
#include <hgwidgets/hgwidgets.h>

#include "hgmediawalldataprovider.h"
#include "hgdrag.h"
#include "hgspring.h"

class HgLongPressVisualizer : public HbWidget
{
public:
    HgLongPressVisualizer(QGraphicsItem* parent=0);
    virtual ~HgLongPressVisualizer();

    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget=0);
    QRectF boundingRect() const;
    
    void start(const QPointF& pos);
    void stop();
    void setFrame(int frame);
private:
    QRectF rect;    
    bool active;
    qreal spanAngle;
};

#endif