NABI_SE issues resolved
[apps/osp/MyFiles.git] / src / MfTypes.cpp
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://floralicense.org/license/
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file: MfTypes.cpp
19  * @brief: This file contains common enumerators, static constants used across the application
20  */
21
22 #include "MfTypes.h"
23
24 //APPCONTROL APPID
25 const wchar_t* musicPlayerAppId = L"dhrul6qzj3.MusicPlayer";
26 const wchar_t* browserAppId = L"kmcele1k0n.Internet";
27 const wchar_t* phoneAppId = L"zktdpemtmw.Phone";
28 const wchar_t* videoPlayerAppId = L"npwf0scb88.VideoPlayer";
29
30 //typeImage
31 const int SELECT_DELETE_BUTTON = 1;
32 const int SELECT_SHARE_BUTTON = 2;
33 const int SELECT_MOVE_BUTTON = 3;
34 const int SELECT_COPY_BUTTON = 4;
35 const int SELECT_CREATE_FOLDER = 5;
36 const int SELECT_ROOT_DIRECTORY = 6;
37 const int SELECT_SUB_DIRECTORY = 7;
38 const int SELECT_NO_BUTTON = 0;
39 const int SELECTED_FROM_ROOT_DIRECTORY = 8;
40 const int SELECTED_FROM_SUB_DIRECTORY = 9;
41 const int SELECT_RENAME = 10;
42
43 const int DISPLAY_MODE_PICK = 6;
44 const int DISPLAY_MODE_SELECT = 7;
45
46 const int POP_UP_VIEW_AS = 1;
47 const int POP_UP_SORT_BY = 2;
48 const int POP_UP_SHARE = 3;
49
50 //app control data
51 const wchar_t* appcontroldataKey = L"http://tizen.org/appcontrol/data/selected";
52 const wchar_t* appcontrolKey = L"path";
53
54 //Storage Body names
55 const wchar_t* defaultPhoneBody = L"Phone";
56 const wchar_t* defaultSdCardBody = L"SDCard";
57 const wchar_t* defaultExternalStorageBody = L"External";
58 const wchar_t* fileExtenstionKeyName = L"ExtensionVisibility";
59 const wchar_t* usbDeviceStatusInserted = L"Inserted";
60 const wchar_t* usbDeviceStatusRemoved = L"Removed";
61 const wchar_t* sdCardStatusMounted = L"Mounted";
62 const wchar_t* sdCardStatusUnmounted = L"Unmounted";
63
64 //Bitmaps
65 const wchar_t* IDB_MORE = L"00_icon_more_status_normal.png";
66 const wchar_t* IDB_MORE_DISABLED = L"00_icon_more_ef.png";
67 const wchar_t* IDB_MORE_PRESS = L"00_icon_more_press.png";
68
69 //Popup
70 const wchar_t* IDB_BACKGROUND_POPUP_BOTTOM = L"00_popup_bottom_bg.9.png";
71 const wchar_t* IDB_BACKGROUND_POPUP_CENTER = L"00_popup_bg.9.png";
72
73 //Delete
74 const wchar_t* IDB_CONTEXT_DELETE_NORMAL = L"00_button_sweep_delete.9.png";
75 const wchar_t* IDB_CONTEXT_DELETE_PRESS = L"00_button_sweep_delete_press.9.png";
76
77 //ListView Items/Elements
78 const wchar_t* IDB_FOLDER = L"U01_icon_folder_default.png";
79 const wchar_t* IDB_DUMMY_IMG = L"00_Nocontents_picture.png";
80
81 //Header Icons
82 //const wchar_t* IDB_PHONE_ICON = L"U01_1st_icon_phone.png";
83 //const wchar_t* IDB_SDCARD_ICON = L"U01_1st_icon_memory_card.png";
84 //const wchar_t* IDB_EXTERNAL_ICON = L"U01_1st_icon_external_storage.png";
85 const wchar_t* IDB_PHONE_ICON = L"U01_icon_folder_default.png";
86 const wchar_t* IDB_SDCARD_ICON = L"U01_icon_folder_default.png";
87 const wchar_t* IDB_SDCARD_ICON_TOP_LEVEL = L"U01_icon_folder_sdcard.png";
88 const wchar_t* IDB_EXTERNAL_ICON = L"U01_icon_folder_external.png";
89
90 const wchar_t* IDB_HOME_BUTTON_ICON = L"U01_controlbar_cion_home_web.png";
91 const wchar_t* IDB_UP_BUTTON_ICON = L"U01_controlbar_cion_up_folder_web.png";
92 const wchar_t* IDB_HOME_BUTTON_ICON_PRESS = L"U01_controlbar_cion_home_press_web.png";
93 const wchar_t* IDB_UP_BUTTON_ICON_PRESS = L"U01_controlbar_cion_up_folder_press_web.png";
94
95
96 const wchar_t* IDB_BACK_BUTTON_NORMAL = L"00_icon_Back.png";
97 const wchar_t* IDB_BACK_BUTTON_PRESSED = L"00_icon_Back_press.png";
98
99 const wchar_t* IDB_PHONE_HEADER_TAB = L"U01_1st_icon_phone.png";
100 const wchar_t* IDB_SDCARD_HEADER_TAB = L"U01_1st_icon_memory_card.png";
101 const wchar_t* IDB_EXTERNAL_HEADER_TAB = L"U01_1st_icon_external_storage.png";
102
103 //Header Icons Pressed
104 //const wchar_t* IDB_PHONE_ICON_PRESSED = L"U01_1st_icon_phone_press.png";
105 //const wchar_t* IDB_SDCARD_ICON_PRESSED = L"U01_1st_icon_memory_card_press.png";
106 //const wchar_t* IDB_EXTERNAL_ICON_PRESSED = L"U01_1st_icon_external_storage_press.png";
107
108 const wchar_t* IDB_PHONE_ICON_PRESSED = L"U01_icon_folder_default.png";
109 const wchar_t* IDB_SDCARD_ICON_PRESSED = L"U01_icon_folder_sdcard.png";
110 const wchar_t* IDB_EXTERNAL_ICON_PRESSED = L"U01_icon_folder_external.png";
111
112 const wchar_t* IDB_PHONE_HEADER_TAB_PRESSED = L"U01_1st_icon_phone_press.png";
113 const wchar_t* IDB_SDCARD_HEADER_TAB_PRESSED = L"U01_1st_icon_memory_card_press.png";
114 const wchar_t* IDB_EXTERNAL_HEADER_TAB_PRESSED = L"U01_1st_icon_external_storage_press.png";
115
116 const wchar_t* IDB_SELECT_ALL_NORMAL = L"00_icon_select_all_web.png";
117 const wchar_t* IDB_SELECT_ALL_PRESSED = L"00_icon_select_all_press_web.png";
118 const wchar_t* IDB_SELECT_ALL_DISABLED = L"00_icon_select_all_dim_web.png";
119
120 //Thumbnail Manager
121 const wchar_t* IDB_VIDEO_PLAY_SMALL = L"U01_icon_video.png";
122 const wchar_t* IDB_PDF = L"U01_icon_pdf.png";
123 const wchar_t* IDB_MS_WORD = L"U01_icon_doc.png";
124 const wchar_t* IDB_MS_EXCEL = L"U01_icon_xls.png";
125 const wchar_t* IDB_MS_PPT = L"U01_icon_ppt.png";
126 const wchar_t* IDB_MUSIC = L"U01_icon_music.png";
127 const wchar_t* IDB_VIDEO = L"U01_icon_video.png";
128 const wchar_t* IDB_RSS = L"U01_icon_rss.png";
129 const wchar_t* IDB_TEXT = L"U01_icon_text.png";
130 const wchar_t* IDB_SVG = L"U01_icon_svg.png";
131 const wchar_t* IDB_SWF = L"U01_icon_swf.png";
132 const wchar_t* IDB_HTML = L"U01_icon_html.png";
133 const wchar_t* IDB_UNKNOWN = L"U01_icon_unkown.png";
134 const wchar_t* IDB_TPK = L"U01_list_icon_tpk-file.png";
135 const wchar_t* IDB_VCARD = L"U01_list_icon_Vcard.png";
136 const wchar_t* IDB_VCALENDAR = L"U01_list_icon_Vcalendar.png";
137
138 //Category Icon
139 const wchar_t* IDB_POPUP_SORTBY_ICON = L"U01_popup_icon_sort_by.png";
140 const wchar_t* IDB_POPUP_SEARCH_ICON = L"U01_popup_icon_Search.png";
141 const wchar_t* IDB_POPUP_CREATE_FOLDER_ICON = L"U01_popup_icon_Create_folder.png";
142 const wchar_t* IDB_POPUP_COPY_ICON = L"U01_popup_icon_Copy.png";
143 const wchar_t* IDB_POPUP_MOVE_ICON = L"U01_popup_icon_Move.png";
144 const wchar_t* IDB_CATEGORY_BACKGROUND = L"U01_MyFiles.9.png";
145
146
147 const wchar_t* IDB_CATEGORY_IMAGE_ICON = L"U01_category_icon_image.png";
148 const wchar_t* IDB_CATEGORY_IMAGE_ICON_PRESS = L"U01_category_icon_image_press.png";
149 const wchar_t* IDB_CATEGORY_VIDEO_ICON = L"U01_category_icon_video.png";
150 const wchar_t* IDB_CATEGORY_VIDEO_ICON_PRESS = L"U01_category_icon_video_press.png";
151 const wchar_t* IDB_CATEGORY_SOUND_ICON = L"U01_category_icon_sound.png";
152 const wchar_t* IDB_CATEGORY_SOUND_ICON_PRESS = L"U01_category_icon_sound_press.png";
153 const wchar_t* IDB_CATEGORY_DOCUMENT_ICON = L"U01_category_icon_document.png";
154 const wchar_t* IDB_CATEGORY_DOCUMENT_ICON_PRESS = L"U01_category_icon_document_press.png";
155 const wchar_t* IDB_CATEGORY_OTHERS_ICON = L"U01_category_icon_others.png";
156 const wchar_t* IDB_CATEGORY_OTHERS_ICON_PRESS = L"U01_category_icon_others_press.png";
157
158 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION = L"00_button_right_ef.png";
159 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_PRESSED = L"00_button_right.png";
160 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_BG = L"U01_circle_button.png";
161 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_BG_PRESSED = L"U01_circle_button.png";
162
163 //
164 //Share Context MEnu
165 const wchar_t* IDB_POPUP_MESSAGE_ICON =  L"U01_popup_icon_Message.png";
166 const wchar_t* IDB_POPUP_EMAIL_ICON = L"U01_popup_icon_email.png";
167 const wchar_t* IDB_POPUP_BLUETOOTH_ICON =  L"U01_popup_icon_Bluetooth.png";
168 const wchar_t* IDB_POPUP_WIFIDIRECT_ICON =  L"U01_popup_icon_Wi-Fi direct.png";
169
170 //Dimensions of Controls
171 const int X_DEFAULT = 0;
172 const int Y_DEFAULT = 0;
173 const int X_LISTVIEW = 16;
174 const int Y_LISTVIEW = 10;
175 const int H_ITEM_LISTVIEW_POPUP = 112;
176 const int H_ITEM_LISTVIEW = 112;
177 const int H_DETAIL_LISTVIEW = 128;
178 const int H_CATEGORY_PANEL = 122;
179
180 const int H_LISTVIEW_ITEM_BITMAP = 74;
181 const int W_LISTVIEW_ITEM_BITMAP = 74;
182
183 const int H_SEARCH_ALL_FOLDERS = 60;
184 const int H_DISPLAY_PATH_LABEL = 48;
185
186 const int H_FOOTER_BUTTON_MORE = 60;
187 const int W_FOOTER_BUTTON_MORE = 60;
188
189 const int H_RENAME_EDITFIELD = 112;
190 const int H_RENAME_PANEL = 130;
191 const int H_CREATE_FOLDER_EDITFIELD = 90;
192 const int Y_CREATE_FOLDER_EDITFIELD = 40;
193
194 const int W_POPUP_LISTVIEW = 400;
195
196 const int H_CHECK_BUTTON = 112;
197 const int CATEGORY_ICONS_PANEL_HEIGHT = 192;
198
199 const int KB_DIVISOR = 1024;
200 const int MB_DIVISOR = 1048576;
201 const int INVALID_LIST_INDEX = -1;
202 const int ENABLE_FOOTER_ITEM = 1;
203 const int DISABLE_FOOTER_ITEM = 0;
204
205 const int W_RENAME_ICON = 64;
206 const int H_LISTVIEW_ITEM_TITLE = 60;
207 const int H_LISTVIEW_ITEM_DESCRIPTION = 48;
208
209 const int X_SEARCH_ALL_FOLDERS = 100;
210
211 const int W_DELETE_BUTTON = 100;
212 const int H_DELETE_BUTTON = 74;
213 const int W_MAX_POPUP = 620;
214 const int H_BOTTOM_PANEL = 96;
215 const int H_DEFAULT_BUTTON = 72;
216
217 const int ID_THUMBNAIL_WIDH=164;
218 const int ID_THUMBNAIL_HEIGHT=164;
219
220 const int ID_FILE_NAME_LENGTH_MAX = 250;
221 const int ID_FOLDER_NAME_LENGTH_MAX = 255;
222
223 //IconListView OVERLAY ITEMS
224 const int OVERLAYITEM_RENAME = 0;
225
226 //Search Form
227 const int X_POPUP_SEARCH = 50;
228 const int Y_POPUP_SEARCH = 250;
229 const int H_POPUP_SEARCH = 300;
230 const int H_SEARCH_BAR = 86;
231
232 //AppControl
233 const wchar_t* IDB_PLAY_OUTER_CIRCLE = L"00_btn_circle_bg_normal.png";
234 const wchar_t* IDB_PLAY = L"U01_button_play.png";
235 const wchar_t* IDB_PLAY_PRESSED = L"U01_button_play_press.png";
236 const wchar_t* IDB_PAUSE = L"U01_button_pause.png";
237 const wchar_t* IDB_PAUSE_PRESSED = L"U01_button_pause_press.png";
238 const wchar_t* IDB_RENAME_OUTER_CIRCLE = L"00_btn_circle_bg_normal.png";
239 const wchar_t* IDB_RENAME_PRESSED_CIRCLE = L"00_btn_circle_bg_press.png";
240 const wchar_t* IDB_RENAME = L"00_button_rename_normal.png";
241
242 //System Date/Time Formats
243 const wchar_t* IDB_DATETIME_24HR = L"EEEE, d MMMM y HH:mm:ss";
244 const wchar_t* IDB_DATETIME_12HR = L"EEEE, d MMMM y h:mm:ss a";
245
246 //Fonts
247 const int ID_FONT_SIZE_26 = 26;
248 const int ID_FONT_SIZE_32 = 32;
249 const int ID_FONT_SIZE_36 = 36;
250 const int ID_FONT_SIZE_40 = 40;
251 const int ID_FONT_SIZE_44 = 44;
252 const int MAX_TEXT_ITEMS = 10;
253 const int ID_MAX_LINE_SPACE = 40;
254 const int H_ENRICHED_TEXT = 800;
255
256 //color
257 const int IDC_RGB_GREY = 68;
258
259 //MessageBox Timeouts
260 extern const int ID_MESSAGE_BOX_TIMEOUT_ONE_SECOND = 1000;
261
262 //String Arrays
263 const Tizen::Base::String typeImage[ID_IMAGE_TYPE_SIZE] =
264 {
265         "jpg", "jpeg", "bmp", "png", "gif",
266         "JPG", "JPEG", "BMP", "PNG", "GIF"
267 };
268
269 const Tizen::Base::String typeAudio[ID_AUDIO_TYPE_SIZE] =
270 {
271         "mp3", "aac", "amr", "mid", "midi", "wav", "m4a",
272         "MP3", "AAC", "AMR", "MID", "MIDI", "WAV", "M4A"
273 };
274
275 const Tizen::Base::String typeVideo[ID_VIDEO_TYPE_SIZE] =
276 {
277         "mpeg4", "mp4", "3gpp", "3gp", "avi", "mpeg",
278         "MPEG4", "MP4", "3GPP", "3GP", "AVI", "MPEG"
279 };
280
281 const Tizen::Base::String typeContacts[ID_CONTACT_TYPE_SIZE] =
282 {
283         "vcs",
284         "VCS"
285 };