browsercore/appfw/Api/Views/ImageLiteView.cpp
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 
       
    20 
       
    21 #include "ImageLiteView.h"
       
    22 #include "ImageView_p.h"
       
    23 #include "VisualFlowLite.h"
       
    24 
       
    25 #include <QDebug>
       
    26 
       
    27 namespace WRT {
       
    28 
       
    29 /*!
       
    30  * \class ImageLiteView
       
    31  *
       
    32  * \brief presents the page images in the "Lite" style
       
    33  *
       
    34  * This class is responsible for....
       
    35  */
       
    36 
       
    37 /*!
       
    38   Basic ImageLiteView constructor requires a PageManager to manage the pages
       
    39   and a parent QWidget
       
    40   @param  mgr  : WrtPageManager Handle for this class
       
    41   @param  parent : widget parent handle for this class
       
    42   @see    WrtPageManager
       
    43 */
       
    44 ImageLiteView::ImageLiteView(WrtPageManager* mgr, QWidget* parent) :
       
    45     ImageView(mgr,parent)
       
    46 {
       
    47 }
       
    48 
       
    49 /*!
       
    50   Basic ImageLiteView constructor requires a PageManager to manage the pages
       
    51   and a parent QGraphicsWidget
       
    52   @param  mgr  : WrtPageManager Handle for this class
       
    53   @param  parent : Graphics widget parent handle for this class
       
    54   @see    WrtPageManager
       
    55 */
       
    56 ImageLiteView::ImageLiteView(WrtPageManager* mgr, QGraphicsWidget* parent) :
       
    57     ImageView(mgr,parent)
       
    58 {
       
    59 }
       
    60 
       
    61 /*!
       
    62   activate the view's resources. Could be connected by client to view visibility
       
    63 */
       
    64 void ImageLiteView::activate()
       
    65 {
       
    66     d->m_flowInterface = new VisualFlowLite(d->m_widgetParent);
       
    67     ImageView::activate();
       
    68 }
       
    69 
       
    70 /*!
       
    71   set the history view's center index
       
    72   @param i : index to which the view's center has to be set
       
    73 */
       
    74 void ImageLiteView::setCenterIndex(int i)
       
    75 {
       
    76     ImageView::setCenterIndex(i);
       
    77     VisualFlowLite * vf = static_cast<VisualFlowLite*>(d->m_flowInterface);
       
    78     vf->setCenterThumbnail(i);
       
    79 }
       
    80 
       
    81 } // namespace WRT