browsercore/appfw/Api/Views/ThumbnailView.h
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 2 bf4420e9fa4d
parent 6 1c3b8676e58c
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     1 /*
       
     2 * Copyright (c) 2009 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 __THUMBNAILVIEW_H__
       
    20 #define __THUMBNAILVIEW_H__
       
    21 
       
    22 #include <QWidget>
       
    23 #include <QGraphicsWidget>
       
    24 #include <QAction>
       
    25 #include "controllableviewimpl.h"
       
    26 
       
    27 namespace WRT {
       
    28 
       
    29     class WrtBrowserContainer;
       
    30     class WrtPageManager;
       
    31     class TnEngineHandler;
       
    32     class TnEngineView;
       
    33     class ThumbnailViewPrivate;
       
    34 
       
    35     class BWF_EXPORT ThumbnailView : public ControllableViewQWidgetBase
       
    36     {
       
    37         Q_OBJECT
       
    38     public:
       
    39         ThumbnailView(WrtPageManager * mgr, QWidget* parent);
       
    40         ThumbnailView(WrtPageManager * mgr, QGraphicsWidget* parent);
       
    41         ~ThumbnailView();
       
    42         
       
    43         WrtPageManager* wrtPageManager();
       
    44 
       
    45     public: // public actions available for this view
       
    46         QAction * getActionOK();
       
    47         QAction * getActionCancel();
       
    48 
       
    49     public: // Pure Virtual from ControllableView
       
    50 
       
    51         QString title();
       
    52         bool isActive();
       
    53         QList<QAction*> getContext();
       
    54         static const QString Type() { return "ImageFlowView"; }
       
    55         virtual QString type() const { return Type(); }
       
    56 
       
    57     signals:
       
    58         void scrollStarted();  
       
    59         void scrollBy(int x, int y);
       
    60         void scrollEnded();
       
    61         void ok(int x, int y);
       
    62         void cancel();
       
    63 
       
    64     public slots:
       
    65         void activate();
       
    66         void deactivate();
       
    67         void scrollViewBy(int, int);
       
    68 
       
    69     protected:
       
    70         QWidget* qWidget() const;
       
    71     private:
       
    72         ThumbnailViewPrivate * const d;
       
    73     };
       
    74 }
       
    75 #endif // __THUMBNAILVIEW_H__