|
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 |
|
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 enum StillSceneModes |
|
40 { |
|
41 //! Automatic |
|
42 StillSceneAuto = 0, |
|
43 //! Portrait |
|
44 StillScenePortrait = 1, |
|
45 //! Landscape |
|
46 StillSceneLandscape = 2, |
|
47 //! Macro |
|
48 StillSceneMacro = 3, |
|
49 //! Sports |
|
50 StillSceneSports = 4, |
|
51 //! Night |
|
52 StillSceneNight = 5, |
|
53 //! Night portrait |
|
54 StillSceneNightPortrait = 6 |
|
55 }; |
|
56 } |
|
57 |
|
58 // Application layout strings |
|
59 namespace CxUiLayout |
|
60 { |
|
61 |
|
62 // Application layout xml files |
|
63 static const char *VIDEO_1ST_XML = ":/xml/view_video_precapture.docml"; |
|
64 static const char *VIDEO_2ND_XML = ":/xml/view_video_precapture_secondary.docml"; |
|
65 static const char *STILL_1ST_XML = ":/xml/view_still_precapture.docml"; |
|
66 static const char *STILL_2ND_XML = ":/xml/view_still_precapture_secondary.docml"; |
|
67 static const char *POSTCAPTURE_XML = ":/xml/view_postcapture.docml"; |
|
68 |
|
69 static const char *SCENEMODE_SETTING_XML = ":/xml/setting_still_scenemode.docml"; |
|
70 static const char *SCENEMODE_VIDEO_SETTING_XML = ":/xml/setting_video_scenemode.docml"; |
|
71 |
|
72 static const char *STANDBY_POPUP_XML = ":/xml/standbymode_popup.docml"; |
|
73 static const char *ERROR_POPUP_XML = ":/xml/errornote_popup.docml"; |
|
74 static const char *SETTINGS_SLIDER_DIALOG_XML = ":/xml/setting_slider.docml"; |
|
75 |
|
76 // Graphics |
|
77 static const char *TRANSPARENT_BACKGROUND_GRAPHIC = "qtg_fr_popup_trans"; |
|
78 |
|
79 // Sections |
|
80 static const char *STILL_PRE_CAPTURE_WIDGETS_SECTION = "still_capture_with_widgets"; |
|
81 static const char *VIDEO_PRE_CAPTURE_WIDGETS_SECTION = "video_capture_with_widgets"; |
|
82 static const char *POST_CAPTURE_WIDGETS_SECTION = "post_capture_with_widgets"; |
|
83 static const char *STILL_PRE_CAPTURE_EMBEDDED_SECTION = "still_embedded_mode"; |
|
84 static const char *STILL_PRE_CAPTURE_STANDALONE_SECTION = "still_standalone_mode"; |
|
85 static const char *VIDEO_PRE_CAPTURE_EMBEDDED_SECTION = "video_embedded_mode"; |
|
86 static const char *VIDEO_PRE_CAPTURE_STANDALONE_SECTION = "video_standalone_mode"; |
|
87 |
|
88 // Widgets |
|
89 // In order to be able to refer to a widget, we need to know its object name. |
|
90 static const char *STILL_PRE_CAPTURE_VIEW = "still_capture_view"; |
|
91 static const char *STILL_PRE_CAPTURE_VIEW2 = "still_capture_view_2"; |
|
92 static const char *STILL_PRE_CAPTURE_TOOLBAR = "toolbar"; |
|
93 static const char *STILL_PRE_CAPTURE_FLASH_ACTION = "cxui_action_flash"; |
|
94 static const char *STILL_PRE_CAPTURE_ROOT_WIDGET = "viewfinder_widget"; |
|
95 static const char *STILL_PRE_CAPTURE_VIEWFINDER = "transparent"; |
|
96 static const char *STILL_PRE_CAPTURE_ZOOM_SLIDER = "zoom"; |
|
97 static const char *STILL_PRE_CAPTURE_IMAGE_QUALITY_ACTION = "cxui_action_image_quality"; |
|
98 static const char *STILL_PRE_CAPTURE_GOTO_VIDEO_ACTION = "cxui_action_goto_video"; |
|
99 static const char *STILL_PRE_CAPTURE_GOTO_2ND_CAMERA_ACTION = "cxui_action_goto_2_camera"; |
|
100 static const char *STILL_PRE_CAPTURE_IMAGES_LEFT_LABEL = "images_remaining"; |
|
101 static const char *STILL_PRE_CAPTURE_QUALITY_ICON = "quality_indicator"; |
|
102 static const char *STILL_PRE_CAPTURE_POST_CAPTURE_ACTION = "cxui_action_stillpostcapture"; |
|
103 static const char *STILL_PRE_CAPTURE_INDICATOR_CONTAINER = "indicatorContainer"; |
|
104 static const char *STILL_PRE_CAPTURE_IMAGES_LEFT_CONTAINER = "images_left_container"; |
|
105 |
|
106 static const char *STILL_PRE_CAPTURE_SELFTIMER_CONTAINER = "still_precapture_selftimer_container"; |
|
107 static const char *STILL_PRE_CAPTURE_SELFTIMER_BUTTON_CONTAINER = "selftimer_button_container"; |
|
108 static const char *STILL_PRE_CAPTURE_SELFTIMER_COUNTER = "still_selftimer_counter"; |
|
109 static const char *STILL_PRE_CAPTURE_SELFTIMER_START_BUTTON = "still_selftimer_start_button"; |
|
110 static const char *STILL_PRE_CAPTURE_SELFTIMER_CANCEL_BUTTON = "still_selftimer_cancel_button"; |
|
111 |
|
112 static const char *VIDEO_PRE_CAPTURE_VIEW = "video_capture_view"; |
|
113 static const char *VIDEO_PRE_CAPTURE_VIEW2 = "video_capture_view_2"; |
|
114 |
|
115 // video |
|
116 // In order to be able to refer to a widget, we need to know its object name. |
|
117 static const char *VIDEO_PRE_CAPTURE_TOOLBAR = "video_toolbar"; |
|
118 static const char *VIDEO_PRE_CAPTURE_TOOLBAR_REC = "video_toolbar_recording"; |
|
119 static const char *VIDEO_PRE_CAPTURE_TOOLBAR_PAUSED = "video_toolbar_paused"; |
|
120 static const char *VIDEO_PRE_CAPTURE_FLASH_ACTION = "cxui_video_action_light"; |
|
121 static const char *VIDEO_PRE_CAPTURE_VIEWFINDER = "video_viewfinder_widget"; |
|
122 static const char *VIDEO_PRE_CAPTURE_ZOOM_SLIDER = "video_zoom"; |
|
123 static const char *VIDEO_PRE_CAPTURE_RECORDING_ICON = "video_recording_icon"; |
|
124 static const char *VIDEO_PRE_CAPTURE_ELAPSED_TIME_LABEL = "video_elapsed_time"; |
|
125 static const char *VIDEO_PRE_CAPTURE_REMAINING_TIME_LABEL = "video_remaining_time"; |
|
126 static const char *VIDEO_PRE_CAPTURE_TOGGLE_LIGHT_ACTION = "cxui_video_action_toggle_light"; |
|
127 static const char *VIDEO_PRE_CAPTURE_DEFAULT_MENU = "video_view_menu"; |
|
128 static const char *VIDEO_PRE_CAPTURE_VIDEO_QUALITY_ACTION = "cxui_video_action_quality"; |
|
129 static const char *VIDEO_PRE_CAPTURE_GOTO_STILL_ACTION = "cxui_video_action_gotostill"; |
|
130 static const char *VIDEO_PRE_CAPTURE_GOTO_2ND_CAMERA_ACTION = "cxui_video_action_goto_2_camera"; |
|
131 static const char *VIDEO_PRE_CAPTURE_POST_CAPTURE_ACTION = "cxui_video_action_showcapturedvideo"; |
|
132 static const char *VIDEO_PRE_CAPTURE_INDICATOR_CONTAINER_TOP = "video_indicator_container_top"; |
|
133 static const char *VIDEO_PRE_CAPTURE_INDICATOR_CONTAINER_BOTTOM = "video_indicator_container_bottom"; |
|
134 |
|
135 static const char *VIDEO_PRE_CAPTURE_QUALITY_ICON = "video_quality_indicator"; |
|
136 |
|
137 // standby |
|
138 static const char *STANDBY_POPUP = "standbymode_popup"; |
|
139 static const char *STANDBY_TEXT_WIDGET = "standby_text"; |
|
140 |
|
141 // error manager |
|
142 static const char *ERROR_POPUP = "errornote_popup"; |
|
143 static const char *ERROR_TEXT_WIDGET = "errornote_text"; |
|
144 static const char *ERROR_BUTTON_WIDGET = "errornote_button_exit"; |
|
145 |
|
146 //post capture |
|
147 static const char *POSTCAPTURE_VIEW = "postcapture_view"; |
|
148 static const char *STILL_POST_CAPTURE_TOOLBAR = "still_postcapture_toolbar"; |
|
149 static const char *VIDEO_POST_CAPTURE_TOOLBAR = "video_postcapture_toolbar"; |
|
150 static const char *EMBEDDED_POST_CAPTURE_TOOLBAR = "embedded_postcapture_toolbar"; |
|
151 static const char *POST_CAPTURE_SNAPSHOT_LABEL = "snapshot_label"; |
|
152 |
|
153 // common settings dialog layout details |
|
154 static const char *SETTINGS_DIALOG_XML = ":/xml/setting.docml"; |
|
155 static const char *SETTINGS_DIALOG_WIDGET = "settings_dialog"; |
|
156 static const char *SETTINGS_DIALOG_HEADING_WIDGET = "settings_dialog_heading"; |
|
157 static const char *SETTINGS_DIALOG_CONTENT_WIDGET = "settings_dialog_list"; |
|
158 |
|
159 // common slider settings dialog layout details |
|
160 static const char *SETTINGS_SLIDER_DIALOG_WIDGET = "slider_settings_dialog"; |
|
161 static const char *SETTINGS_SLIDER_DIALOG_HEADING_WIDGET = "slider_settings_dialog_heading"; |
|
162 static const char *SETTINGS_SLIDER_DIALOG_CONTENT_WIDGET = "settings_dialog_slider"; |
|
163 |
|
164 // scene setting |
|
165 static const char *STILL_SCENE_DIALOG = "still_scenemode_popup"; |
|
166 static const char *VIDEO_SCENE_DIALOG = "video_scenemode_popup"; |
|
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 Q_DECLARE_METATYPE(CxUi::CameraView) |
|
179 |
|
180 #endif // CXUIENUMS_H |