|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (developer.feedback@nokia.com) |
|
6 ** |
|
7 ** This file is part of the HbApps module of the UI Extensions for Mobile. |
|
8 ** |
|
9 ** GNU Lesser General Public License Usage |
|
10 ** This file may be used under the terms of the GNU Lesser General Public |
|
11 ** License version 2.1 as published by the Free Software Foundation and |
|
12 ** appearing in the file LICENSE.LGPL included in the packaging of this file. |
|
13 ** Please review the following information to ensure the GNU Lesser General |
|
14 ** Public License version 2.1 requirements will be met: |
|
15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
16 ** |
|
17 ** In addition, as a special exception, Nokia gives you certain additional |
|
18 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
20 ** |
|
21 ** If you have questions regarding the use of this file, please contact |
|
22 ** Nokia at developer.feedback@nokia.com. |
|
23 ** |
|
24 ****************************************************************************/ |
|
25 |
|
26 #ifndef SETTINGSVIEW_H |
|
27 #define SETTINGSVIEW_H |
|
28 |
|
29 #include <hbview.h> |
|
30 |
|
31 class HbMainWindow; |
|
32 class HbDocumentLoader; |
|
33 class HbComboBox; |
|
34 class HbLabel; |
|
35 class HbScrollArea; |
|
36 |
|
37 class SettingsView : public HbView |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 SettingsView(HbDocumentLoader* loader, HbMainWindow *window, HbView *infoView); |
|
43 |
|
44 private: |
|
45 void setupMenu(); |
|
46 void setupLayout(); |
|
47 void connectSignals(); |
|
48 void disconnectSignals(); |
|
49 |
|
50 void sendEvent(const int eventID, const int data=0); |
|
51 |
|
52 private slots: |
|
53 void changeOrientation(); |
|
54 void changeResolution(int index); |
|
55 void changeOrientation(int index); |
|
56 void changeLayoutDirection(int index); |
|
57 void changeTouchAreaVisibility(int index); |
|
58 void changeTextItemVisibility(int index); |
|
59 void changeIconItemVisibility(int index); |
|
60 void changeLocMode(int index); |
|
61 void changeTestUtilMode(int index); |
|
62 void changeFpsCounterVisibility(int index); |
|
63 |
|
64 void updateLayout(); |
|
65 void updateSelections(); |
|
66 |
|
67 void goBack(); |
|
68 |
|
69 private: |
|
70 HbMainWindow *mWindow; |
|
71 HbDocumentLoader* mLoader; |
|
72 HbComboBox* mResolutionComboBox; |
|
73 HbComboBox* mOrientationComboBox; |
|
74 HbComboBox* mLayoutDirectionComboBox; |
|
75 HbComboBox* mTouchAreaComboBox; |
|
76 HbComboBox* mTextItemComboBox; |
|
77 HbComboBox* mIconItemComboBox; |
|
78 HbComboBox* mLocalizationComboBox; |
|
79 HbComboBox* mTestUtilityComboBox; |
|
80 HbComboBox* mFpsCounterComboBox; |
|
81 HbView* mInfoView; |
|
82 }; |
|
83 |
|
84 |
|
85 #endif // SETTINGSVIEW_H |
|
86 |