|
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 CPDISPLAYVIEW_H |
|
18 #define CPDISPLAYVIEW_H |
|
19 |
|
20 #include <cpbasesettingview.h> |
|
21 |
|
22 class HbDataFormModelItem; |
|
23 class HbDataFormModel; |
|
24 class CpSettingFormItemData; |
|
25 class CpDisplayModel; |
|
26 |
|
27 class CpDisplayView : public CpBaseSettingView |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 explicit CpDisplayView(QGraphicsItem *parent = 0); |
|
32 virtual ~CpDisplayView(); |
|
33 |
|
34 private: |
|
35 void makeScreenItem(HbDataFormModel* model); |
|
36 void makeBacklightItem(HbDataFormModel* model); |
|
37 void makeBrightnessItem(HbDataFormModel* model); |
|
38 |
|
39 public: |
|
40 bool isHidden(); |
|
41 |
|
42 private slots: |
|
43 //need handling your member's value change |
|
44 void ScreenValueChanged(int value); |
|
45 void DisplayValueChanged(int value); |
|
46 void BrightValueChanged(int value); |
|
47 |
|
48 private: |
|
49 CpSettingFormItemData *mScreenRadioButton; |
|
50 CpSettingFormItemData *mDisplayRadioButton; |
|
51 CpSettingFormItemData *mBrightSliderItem; |
|
52 CpDisplayModel* mModel; |
|
53 bool mIsHidden; |
|
54 |
|
55 }; |
|
56 #endif// CPDISPLAYVIEW_H |