controlpanelui/src/cpplugins/keytouchfdbkplugin/src/cpkeyscreenview.h
changeset 19 36aa4756ee82
child 21 2883a5458389
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
       
     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 #ifndef	CPKEYSCREENVIEW_H
       
    18 #define	CPKEYSCREENVIEW_H
       
    19 
       
    20 #include <cpbasesettingview.h>
       
    21 #include <hbdataformmodelitem.h>
       
    22 
       
    23 class HbDataFormModelItem;
       
    24 class HbDataFormModel;
       
    25 class CpSettingFormItemData;
       
    26 class CpKeyScreenModel;
       
    27 
       
    28 class CpKeyScreenView : public CpBaseSettingView
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     explicit CpKeyScreenView(QGraphicsItem *parent = 0);
       
    33     virtual ~CpKeyScreenView();
       
    34 
       
    35 private:
       
    36     void makeScreenItem(HbDataFormModel& model);
       
    37     void makeRotateItem(HbDataFormModel& model);
       
    38     void makeBrightnessItem(HbDataFormModel& model);
       
    39     void makeCallibrationItem(HbDataFormModel& model);
       
    40     
       
    41 private slots:
       
    42     //need handling your member's value change
       
    43     void screenValueChanged(int index);
       
    44     void rotateValueChanged(int value);
       
    45     void brightValueChanged(int value);
       
    46     void launchCallib();
       
    47 
       
    48 private:
       
    49     CpSettingFormItemData *mScreenRadioButton;
       
    50     CpSettingFormItemData *mRotateCheckbox;
       
    51 	CpSettingFormItemData *mBrightSliderItem;
       
    52 	CpSettingFormItemData *mCallibItem;
       
    53 	CpKeyScreenModel* mModel;
       
    54 };
       
    55 #endif//	CPKEYSCREENVIEW_H