1 /* |
|
2 * Copyright (c) 2009-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CXUIENUMS_H |
|
19 #define CXUIENUMS_H |
|
20 |
|
21 |
|
22 namespace CxUi |
|
23 { |
|
24 enum CameraView |
|
25 { |
|
26 //! Viewfinder view for still capture |
|
27 StillPreCaptureView = 0, |
|
28 |
|
29 //! Viewfinder view for video capture |
|
30 VideoPreCaptureView = 1, |
|
31 |
|
32 //! Preview for captured image |
|
33 StillPostCaptureView = 2, |
|
34 |
|
35 //! Preview for captured image |
|
36 VideoPostCaptureView = 3 |
|
37 }; |
|
38 } |
|
39 |
|
40 // Application layout strings |
|
41 namespace CxUiLayout |
|
42 { |
|
43 |
|
44 // Application layout xml files |
|
45 static const char *VIDEO_1ST_XML = ":/xml/view_video_precapture.docml"; |
|
46 static const char *STILL_1ST_XML = ":/xml/view_still_precapture.docml"; |
|
47 static const char *POSTCAPTURE_XML = ":/xml/view_postcapture.docml"; |
|
48 |
|
49 static const char *SCENEMODE_SETTING_XML = ":/xml/setting_scenemode.docml"; |
|
50 |
|
51 static const char *ERROR_POPUP_XML = ":/xml/errornote_popup.docml"; |
|
52 static const char *SETTINGS_SLIDER_DIALOG_XML = ":/xml/setting_slider.docml"; |
|
53 |
|
54 static const char *FULL_SCREEN_POPUP_XML = ":/xml/full_screen_popup.docml"; |
|
55 |
|
56 |
|
57 // Graphics |
|
58 static const char *TRANSPARENT_BACKGROUND_GRAPHIC = "qtg_fr_popup_trans"; |
|
59 |
|
60 // Sections |
|
61 static const char *STILL_PRE_CAPTURE_INDICATORS_SECTION = "still_capture_indicators"; |
|
62 static const char *STILL_PRE_CAPTURE_WIDGETS_SECTION = "still_capture_with_widgets"; |
|
63 static const char *VIDEO_PRE_CAPTURE_INDICATORS_SECTION = "video_capture_indicators"; |
|
64 static const char *VIDEO_PRE_CAPTURE_WIDGETS_SECTION = "video_capture_with_widgets"; |
|
65 static const char *POST_CAPTURE_WIDGETS_SECTION = "post_capture_with_widgets"; |
|
66 static const char *STILL_PRE_CAPTURE_EMBEDDED_SECTION = "still_embedded_mode"; |
|
67 static const char *STILL_PRE_CAPTURE_STANDALONE_SECTION = "still_standalone_mode"; |
|
68 static const char *VIDEO_PRE_CAPTURE_EMBEDDED_SECTION = "video_embedded_mode"; |
|
69 static const char *VIDEO_PRE_CAPTURE_STANDALONE_SECTION = "video_standalone_mode"; |
|
70 |
|
71 static const char *VIDEO_PRE_CAPTURE_IDLE = "video_idle"; |
|
72 static const char *VIDEO_PRE_CAPTURE_RECORDING = "video_recording"; |
|
73 static const char *VIDEO_PRE_CAPTURE_PAUSED = "video_paused"; |
|
74 |
|
75 // Widgets |
|
76 // In order to be able to refer to a widget, we need to know its object name. |
|
77 static const char *STILL_PRE_CAPTURE_VIEW = "still_capture_view"; |
|
78 static const char *STILL_PRE_CAPTURE_TOOLBAR = "toolbar"; |
|
79 static const char *STILL_PRE_CAPTURE_FLASH_ACTION = "cxui_action_flash"; |
|
80 static const char *STILL_PRE_CAPTURE_SCENE_MODE_ACTION = "cxui_action_scenemodes"; |
|
81 static const char *STILL_PRE_CAPTURE_ROOT_WIDGET = "viewfinder_widget"; |
|
82 static const char *STILL_PRE_CAPTURE_VIEWFINDER = "transparent"; |
|
83 static const char *STILL_PRE_CAPTURE_ZOOM_SLIDER = "zoom"; |
|
84 static const char *STILL_PRE_CAPTURE_IMAGE_QUALITY_ACTION = "cxui_action_image_quality"; |
|
85 static const char *STILL_PRE_CAPTURE_GOTO_VIDEO_ACTION = "cxui_action_goto_video"; |
|
86 static const char *STILL_PRE_CAPTURE_IMAGES_LEFT_LABEL = "images_remaining"; |
|
87 static const char *STILL_PRE_CAPTURE_QUALITY_ICON = "quality_indicator"; |
|
88 static const char *STILL_PRE_CAPTURE_FACE_TRACKING_ICON = "face_tracking_indicator"; |
|
89 static const char *STILL_PRE_CAPTURE_POST_CAPTURE_ACTION = "cxui_action_stillpostcapture"; |
|
90 static const char *STILL_PRE_CAPTURE_INDICATOR_CONTAINER = "indicatorContainer"; |
|
91 static const char *STILL_PRE_CAPTURE_IMAGES_LEFT_CONTAINER = "images_left_container"; |
|
92 static const char *STILL_PRE_CAPTURE_GEOTAGGING_INDICATOR_ICON = "still_geotagging_indicator"; |
|
93 static const char *STILL_PRE_CAPTURE_FLASHBLINK_INDICATOR_ICON = "flash_indicator"; |
|
94 |
|
95 static const char *STILL_PRE_CAPTURE_SELFTIMER_CONTAINER = "still_precapture_selftimer_container"; |
|
96 static const char *STILL_PRE_CAPTURE_SELFTIMER_COUNTER = "still_selftimer_counter"; |
|
97 static const char *STILL_PRE_CAPTURE_SELFTIMER_START_BUTTON = "still_selftimer_start_button"; |
|
98 static const char *STILL_PRE_CAPTURE_SELFTIMER_CANCEL_BUTTON = "still_selftimer_cancel_button"; |
|
99 |
|
100 static const char *VIDEO_PRE_CAPTURE_VIEW = "video_capture_view"; |
|
101 |
|
102 static const char *SETTINGS_DIALOG_OK_ACTION = "action_ok"; |
|
103 |
|
104 // video |
|
105 // In order to be able to refer to a widget, we need to know its object name. |
|
106 static const char *VIDEO_PRE_CAPTURE_TOOLBAR = "video_toolbar"; |
|
107 static const char *VIDEO_PRE_CAPTURE_TOOLBAR_REC = "video_toolbar_recording"; |
|
108 static const char *VIDEO_PRE_CAPTURE_TOOLBAR_PAUSED = "video_toolbar_paused"; |
|
109 static const char *VIDEO_PRE_CAPTURE_VIEWFINDER = "video_viewfinder_widget"; |
|
110 static const char *VIDEO_PRE_CAPTURE_ZOOM_SLIDER = "video_zoom"; |
|
111 static const char *VIDEO_PRE_CAPTURE_RECORDING_ICON = "video_recording_icon"; |
|
112 static const char *VIDEO_PRE_CAPTURE_VIDEO_TIME_LABEL = "video_elapsed_time"; |
|
113 static const char *VIDEO_PRE_CAPTURE_DEFAULT_MENU = "video_view_menu"; |
|
114 static const char *VIDEO_PRE_CAPTURE_VIDEO_QUALITY_ACTION = "cxui_video_action_quality"; |
|
115 static const char *VIDEO_PRE_CAPTURE_GOTO_STILL_ACTION = "cxui_video_action_gotostill"; |
|
116 static const char *VIDEO_PRE_CAPTURE_POST_CAPTURE_ACTION = "cxui_video_action_showcapturedvideo"; |
|
117 static const char *VIDEO_PRE_CAPTURE_INDICATOR_CONTAINER_TOP = "video_indicator_container_top"; |
|
118 static const char *VIDEO_PRE_CAPTURE_INDICATOR_CONTAINER_BOTTOM = "video_indicator_container_bottom"; |
|
119 static const char *VIDEO_PRE_CAPTURE_SCENE_MODE_ACTION = "cxui_video_action_scene"; |
|
120 |
|
121 static const char *VIDEO_PRE_CAPTURE_QUALITY_ICON = "video_quality_indicator"; |
|
122 static const char *VIDEO_PRE_CAPTURE_GEOTAGGING_INDICATOR_ICON = "video_geotagging_indicator"; |
|
123 static const char *VIDEO_PRE_CAPTURE_VIDEOAUDIOMUTE_INDICATOR_ICON = "video_audio_mute_indicator"; |
|
124 static const char *VIDEO_PRE_CAPTURE_STABILITY_INDICATOR_ICON = "video_stability_indicator"; |
|
125 |
|
126 // standby |
|
127 static const char *STANDBY_POPUP = "standbymode_popup"; |
|
128 static const char *STANDBY_TEXT_WIDGET = "standby_text"; |
|
129 |
|
130 // Full screen popup |
|
131 static const char *FULL_SCREEN_POPUP = "full_screen_popup"; |
|
132 static const char *FULL_SCREEN_POPUP_TEXT = "full_screen_popup_text"; |
|
133 static const char *FULL_SCREEN_POPUP_BUTTON = "full_screen_popup_button"; |
|
134 |
|
135 // error manager |
|
136 static const char *ERROR_POPUP = "errornote_popup"; |
|
137 static const char *ERROR_TEXT_WIDGET = "errornote_text"; |
|
138 static const char *ERROR_BUTTON_WIDGET = "errornote_button_exit"; |
|
139 |
|
140 //post capture |
|
141 static const char *POSTCAPTURE_VIEW = "postcapture_view"; |
|
142 static const char *STILL_POST_CAPTURE_TOOLBAR = "still_postcapture_toolbar"; |
|
143 static const char *VIDEO_POST_CAPTURE_TOOLBAR = "video_postcapture_toolbar"; |
|
144 static const char *EMBEDDED_POST_CAPTURE_TOOLBAR = "embedded_postcapture_toolbar"; |
|
145 static const char *POST_CAPTURE_SNAPSHOT_LABEL = "snapshot_label"; |
|
146 |
|
147 // common settings dialog layout details |
|
148 static const char *SETTINGS_DIALOG_XML = ":/xml/setting.docml"; |
|
149 static const char *SETTINGS_DIALOG_WIDGET = "settings_dialog"; |
|
150 static const char *SETTINGS_DIALOG_HEADING_WIDGET = "settings_dialog_heading"; |
|
151 static const char *SETTINGS_DIALOG_CONTENT_WIDGET = "settings_dialog_list"; |
|
152 |
|
153 // common slider settings dialog layout details |
|
154 static const char *SETTINGS_SLIDER_DIALOG_WIDGET = "slider_settings_dialog"; |
|
155 static const char *SETTINGS_SLIDER_DIALOG_HEADING_WIDGET = "slider_settings_dialog_heading"; |
|
156 static const char *SETTINGS_SLIDER_DIALOG_CONTENT_WIDGET = "settings_dialog_slider"; |
|
157 |
|
158 // scene mode view |
|
159 static const char *SCENE_MODE_VIEW = "settings_scenes_view"; |
|
160 static const char *SCENE_MODE_VIEW_CONTAINER = "scene_view_container"; |
|
161 static const char *SCENE_MODE_VIEW_BG_IMAGE = "scene_view_bg_icon"; |
|
162 static const char *SCENE_MODE_VIEW_BG_IMAGE2 = "scene_view_bg_icon2"; |
|
163 static const char *SCENE_MODE_VIEW_RADIOBUTTONS = "scene_view_radioButtonList"; |
|
164 static const char *SCENE_MODE_VIEW_OK_BUTTON = "scene_ok_button"; |
|
165 static const char *SCENE_MODE_VIEW_CANCEL_BUTTON = "scene_cancel_button"; |
|
166 static const char *SCENE_MODE_VIEW_HEADING_WIDGET = "scene_title"; |
|
167 } |
|
168 |
|
169 namespace CxUiInternal |
|
170 { |
|
171 // Property for setting id string |
|
172 static const char *PROPERTY_KEY_SETTING_ID = "settingskey"; |
|
173 // Property for settings grid initiated settings |
|
174 static const char *PROPERTY_KEY_SETTING_GRID = "settingsgrid"; |
|
175 static const char *PROPERTY_KEY_TRUE = "1"; |
|
176 } |
|
177 |
|
178 namespace CxuiActivityIds |
|
179 { |
|
180 static const QString STILL_PRECAPTURE_ACTIVITY = "CameraViewfinderShow"; |
|
181 static const QString STILL_POSTCAPTURE_ACTIVITY = "CameraPostCaptureShow"; |
|
182 |
|
183 static const QString VIDEO_PRECAPTURE_ACTIVITY = "CamcorderViewfinderShow"; |
|
184 static const QString VIDEO_POSTCAPTURE_ACTIVITY = "CamcorderPostCaptureShow"; |
|
185 } |
|
186 |
|
187 Q_DECLARE_METATYPE(CxUi::CameraView) |
|
188 |
|
189 #endif // CXUIENUMS_H |
|