browsercore/appfw/Api/Controls/webzoomslider.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 __WEBZOOMSLIDER_H__
       
    20 #define __WEBZOOMSLIDER_H__
       
    21 
       
    22 #include <QSlider>
       
    23 #include <QTimer>
       
    24 #include "BWFGlobal.h"
       
    25 
       
    26 
       
    27 namespace WRT {
       
    28     
       
    29 #define ZOOMSLIDER_IDLE_TIMEOUT 3000
       
    30 
       
    31     // New view api has wrt page manager, and we export this control to make it accessible
       
    32     class WrtPageManager;
       
    33     class WebZoomSliderPrivate;
       
    34 
       
    35     class BWF_EXPORT WebZoomSlider : public QObject
       
    36     {
       
    37         Q_OBJECT
       
    38     public:
       
    39         WebZoomSlider(WrtPageManager* pageMgr, QWidget* parent);
       
    40         ~WebZoomSlider();
       
    41 
       
    42         void setGeometry(const QRect& rect);
       
    43         void show(int idleTimeout = ZOOMSLIDER_IDLE_TIMEOUT);
       
    44 
       
    45     public Q_SLOTS:
       
    46         void zoom(int value);
       
    47         void sliderPressed();
       
    48         void sliderReleased();
       
    49 
       
    50     signals:
       
    51         void idleTimeout();
       
    52 
       
    53     private:
       
    54         WebZoomSliderPrivate * const d;
       
    55     };
       
    56 
       
    57 }
       
    58 #endif