ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgetoptionsview.h
changeset 1 e48454f237ca
child 2 49c70dcc3f17
equal deleted inserted replaced
0:89c329efa980 1:e48454f237ca
       
     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 #ifndef HGWIDGETOPTIONSVIEW_H_
       
    19 #define HGWIDGETOPTIONSVIEW_H_
       
    20 
       
    21 #include <hbview.h>
       
    22 #include <hgwidgets/hgmediawall.h>
       
    23 #include "hgtestdefs.h"
       
    24 
       
    25 class HbDataForm;
       
    26 class HbDataFormModel;
       
    27 
       
    28 class HgWidgetOptionsView : public HbView
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     HgWidgetOptionsView(QGraphicsItem *parent = 0);
       
    35     ~HgWidgetOptionsView();
       
    36 
       
    37 signals:
       
    38     void optionsClosed();
       
    39     void widgetTypeChanged(HgTestWidgetType);
       
    40     void scrollBarVisibilityChanged(HgWidget::ScrollBarPolicy);
       
    41     void scrollBarInteractivityChanged(bool);
       
    42     void imageTypeChanged(HgTestImageType);
       
    43     void lowResImageUseChanged(bool);
       
    44     void titlePositionChanged(HgMediawall::LabelPosition);
       
    45     void titleFontChanged(const HbFontSpec &);
       
    46     void descriptionPositionChanged(HgMediawall::LabelPosition);
       
    47     void descriptionFontChanged(const HbFontSpec &);
       
    48     void widgetHeightChanged(int);
       
    49     void widgetWidthChanged(int);
       
    50     void reflectionsEnabledChanged(bool);
       
    51 private slots:
       
    52     void updateData(QModelIndex startIn, QModelIndex endIn);
       
    53 
       
    54 private:
       
    55     void setCoverflowEnabled(bool value);
       
    56     void storeWidgetSize();
       
    57     void setupData();
       
    58     void resizeEvent(QGraphicsSceneResizeEvent *event);
       
    59 
       
    60 private: // data
       
    61     HbDataForm *mForm;
       
    62     HbDataFormModel *mModel;
       
    63     bool mContentReady;
       
    64     bool mUpdateWidgetSize;
       
    65 };
       
    66 
       
    67 
       
    68 #endif /* HGWIDGETOPTIONSVIEW_H_ */