diff -r 000000000000 -r 1450b09d0cfd ginebra2/mostvisitedpageview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ginebra2/mostvisitedpageview.h Tue May 04 12:39:35 2010 +0300 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2009 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: +* +*/ + +#include +#include "ChromeSnippet.h" + +namespace GVA { + class LinearFlowSnippet; +} + +namespace GVA { + +class MostVisitedPagesWidget : public QGraphicsWidget +{ + Q_OBJECT +public : + //construction and destruction + MostVisitedPagesWidget(ChromeSnippet* snippet,QGraphicsWidget* parent); + ~MostVisitedPagesWidget(); + + void open(); + + void updatePos(QPointF pos, qreal &toolBarHeight); + void resize(const QSize &size); + void displayModeChanged(QString& newMode); + void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); + void setCenterIndex(QString displayMode); + void updateMVGeometry(); + void updateMVStore(QWebPage *page); + +Q_SIGNALS: + void closeComplete(); + +protected: + void mousePressEvent(QGraphicsSceneMouseEvent* event); + +public slots: + void close(bool hide=true); + void okTriggered(int index); + void closeAnimationCompleted(); + void onLoadFinished(const bool ok); + +private : + MostVisitedPageStore* m_mostVisitedPageStore; + QGraphicsWidget* m_parent; + GVA::LinearFlowSnippet *m_flowInterface; + int m_selectIndex; + ChromeSnippet* m_snippet; + bool m_hideOnClose; +}; +} \ No newline at end of file