19
|
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 |
|
21
|
20 |
#include <QMap>
|
19
|
21 |
#include <cpbasesettingview.h>
|
|
22 |
#include <hbdataformmodelitem.h>
|
|
23 |
|
|
24 |
class HbDataFormModelItem;
|
|
25 |
class HbDataFormModel;
|
|
26 |
class CpSettingFormItemData;
|
|
27 |
class CpKeyScreenModel;
|
21
|
28 |
class QPersistentModelIndex;
|
|
29 |
class QVariant;
|
19
|
30 |
|
|
31 |
class CpKeyScreenView : public CpBaseSettingView
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
public:
|
|
35 |
explicit CpKeyScreenView(QGraphicsItem *parent = 0);
|
|
36 |
virtual ~CpKeyScreenView();
|
|
37 |
|
|
38 |
private:
|
|
39 |
void makeScreenItem(HbDataFormModel& model);
|
|
40 |
void makeRotateItem(HbDataFormModel& model);
|
|
41 |
void makeBrightnessItem(HbDataFormModel& model);
|
|
42 |
void makeCallibrationItem(HbDataFormModel& model);
|
|
43 |
|
|
44 |
private slots:
|
21
|
45 |
void screenValueChanged(const QString&);
|
19
|
46 |
void rotateValueChanged(int value);
|
|
47 |
void brightValueChanged(int value);
|
|
48 |
void launchCallib();
|
|
49 |
|
|
50 |
private:
|
21
|
51 |
CpSettingFormItemData *mScreenComboButton;
|
19
|
52 |
CpSettingFormItemData *mRotateCheckbox;
|
|
53 |
CpSettingFormItemData *mBrightSliderItem;
|
|
54 |
CpSettingFormItemData *mCallibItem;
|
|
55 |
CpKeyScreenModel* mModel;
|
21
|
56 |
|
|
57 |
QMap<int,QString> mScreenLockValues;
|
19
|
58 |
};
|
|
59 |
#endif// CPKEYSCREENVIEW_H
|