browsercore/appfw/ThumbnailEngine/TnEngineView.h
changeset 5 0f2326c2a325
parent 1 b0dd75e285d2
child 6 1c3b8676e58c
equal deleted inserted replaced
1:b0dd75e285d2 5:0f2326c2a325
     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 __TNENGINEVIEW_H__
       
    20 #define __TNENGINEVIEW_H__
       
    21 
       
    22 #include <QWidget>
       
    23 
       
    24 namespace WRT {
       
    25 
       
    26 class TnEngineHandler;
       
    27 
       
    28 class TnEngineView : public QWidget
       
    29     {
       
    30     Q_OBJECT
       
    31 
       
    32     public:
       
    33         static TnEngineView* initiWithParentAndTnEngineHandler(QWidget* parent, TnEngineHandler* handler);
       
    34         virtual ~TnEngineView();
       
    35 
       
    36     protected:
       
    37         virtual void paintEvent(QPaintEvent* e);
       
    38         virtual void keyPressEvent(QKeyEvent* ev);
       
    39         virtual void resizeEvent (QResizeEvent* event);
       
    40         virtual void mouseMoveEvent(QMouseEvent*);
       
    41         virtual void mousePressEvent(QMouseEvent*);
       
    42         virtual void mouseReleaseEvent(QMouseEvent*);
       
    43 
       
    44     signals:
       
    45         void scrollStarted();  
       
    46         void scrollBy(int x, int y);
       
    47         void scrollEnded();
       
    48         void ok();
       
    49         void cancel();
       
    50 
       
    51     private:
       
    52         TnEngineView(QWidget* parent, TnEngineHandler* handler);
       
    53         void initview();
       
    54 
       
    55     private:    // Data
       
    56         TnEngineHandler* m_TnEngineHandler;
       
    57         QPoint m_currPoint;
       
    58     };
       
    59 }
       
    60 #endif // __TNENGINEVIEW_H__
       
    61