ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgitemsizedialog.h
changeset 1 e48454f237ca
child 6 1cdcc61142d2
equal deleted inserted replaced
0:89c329efa980 1:e48454f237ca
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Another view for test application.
       
    15 *
       
    16 */
       
    17 #ifndef HGITEMSIZEDIALOG_H_
       
    18 #define HGITEMSIZEDIALOG_H_
       
    19 
       
    20 #include <hbdialog>
       
    21 #include <hblabel>
       
    22 #include <hbwidget>
       
    23 #include <hbslider>
       
    24 
       
    25 class HgItemSizeDialog : public HbDialog
       
    26 {
       
    27     Q_OBJECT
       
    28 public:
       
    29     
       
    30 	HgItemSizeDialog(QSizeF size, QSizeF spacing, HbWidget *parent=0);
       
    31     
       
    32     QSizeF itemSize() const;
       
    33     QSizeF itemSpacing() const;
       
    34         
       
    35     void setSliderLimits(int min, int max);
       
    36     
       
    37 signals:
       
    38     void updateItemSizeAndSpacing();
       
    39     void closed();
       
    40 private slots:
       
    41     void itemSizeXChanged(int);
       
    42     void itemSizeYChanged(int);
       
    43     void itemSpacingXChanged(int);
       
    44     void itemSpacingYChanged(int);    
       
    45     void buttonClosed(bool);
       
    46 private:
       
    47     HbLabel*                mSizeXLabel;
       
    48     HbLabel*                mSizeYLabel;
       
    49     HbLabel*                mSpacingXLabel;
       
    50     HbLabel*                mSpacingYLabel;
       
    51     QSizeF                  mSize;
       
    52     QSizeF                  mSpacing;
       
    53     HbSlider*               mSizeXSlider;
       
    54     HbSlider*               mSizeYSlider;
       
    55     HbSlider*               mSpacingXSlider;
       
    56     HbSlider*               mSpacingYSlider;
       
    57 };
       
    58 
       
    59 #endif /* HGTESTVIEW_H_ */