NABI_SE issues fixes
[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.0 (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 //Thumbnail Manager
117 const wchar_t* IDB_VIDEO_PLAY_SMALL = L"U01_icon_video.png";
118 const wchar_t* IDB_PDF = L"U01_icon_pdf.png";
119 const wchar_t* IDB_MS_WORD = L"U01_icon_doc.png";
120 const wchar_t* IDB_MS_EXCEL = L"U01_icon_xls.png";
121 const wchar_t* IDB_MS_PPT = L"U01_icon_ppt.png";
122 const wchar_t* IDB_MUSIC = L"U01_icon_music.png";
123 const wchar_t* IDB_VIDEO = L"U01_icon_video.png";
124 const wchar_t* IDB_RSS = L"U01_icon_rss.png";
125 const wchar_t* IDB_TEXT = L"U01_icon_text.png";
126 const wchar_t* IDB_SVG = L"U01_icon_svg.png";
127 const wchar_t* IDB_SWF = L"U01_icon_swf.png";
128 const wchar_t* IDB_HTML = L"U01_icon_html.png";
129 const wchar_t* IDB_UNKNOWN = L"U01_icon_unkown.png";
130 const wchar_t* IDB_TPK = L"U01_list_icon_tpk-file.png";
131 const wchar_t* IDB_VCARD = L"U01_list_icon_Vcard.png";
132
133 //Category Icon
134 const wchar_t* IDB_POPUP_SORTBY_ICON = L"U01_popup_icon_sort_by.png";
135 const wchar_t* IDB_POPUP_SEARCH_ICON = L"U01_popup_icon_Search.png";
136 const wchar_t* IDB_POPUP_CREATE_FOLDER_ICON = L"U01_popup_icon_Create_folder.png";
137 const wchar_t* IDB_POPUP_COPY_ICON = L"U01_popup_icon_Copy.png";
138 const wchar_t* IDB_POPUP_MOVE_ICON = L"U01_popup_icon_Move.png";
139 const wchar_t* IDB_CATEGORY_BACKGROUND = L"U01_MyFiles.9.png";
140
141
142 const wchar_t* IDB_CATEGORY_IMAGE_ICON = L"U01_category_icon_image.png";
143 const wchar_t* IDB_CATEGORY_IMAGE_ICON_PRESS = L"U01_category_icon_image_press.png";
144 const wchar_t* IDB_CATEGORY_VIDEO_ICON = L"U01_category_icon_video.png";
145 const wchar_t* IDB_CATEGORY_VIDEO_ICON_PRESS = L"U01_category_icon_video_press.png";
146 const wchar_t* IDB_CATEGORY_SOUND_ICON = L"U01_category_icon_sound.png";
147 const wchar_t* IDB_CATEGORY_SOUND_ICON_PRESS = L"U01_category_icon_sound_press.png";
148 const wchar_t* IDB_CATEGORY_DOCUMENT_ICON = L"U01_category_icon_document.png";
149 const wchar_t* IDB_CATEGORY_DOCUMENT_ICON_PRESS = L"U01_category_icon_document_press.png";
150 const wchar_t* IDB_CATEGORY_OTHERS_ICON = L"U01_category_icon_others.png";
151 const wchar_t* IDB_CATEGORY_OTHERS_ICON_PRESS = L"U01_category_icon_others_press.png";
152
153 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION = L"00_button_right_ef.png";
154 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_PRESSED = L"00_button_right.png";
155 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_BG = L"U01_circle_button.png";
156 const wchar_t* IDB_CATEGORY_GO_TO_LOCATION_BG_PRESSED = L"U01_circle_button.png";
157
158 //
159 //Share Context MEnu
160 const wchar_t* IDB_POPUP_MESSAGE_ICON =  L"U01_popup_icon_Message.png";
161 const wchar_t* IDB_POPUP_EMAIL_ICON = L"U01_popup_icon_email.png";
162 const wchar_t* IDB_POPUP_BLUETOOTH_ICON =  L"U01_popup_icon_Bluetooth.png";
163 const wchar_t* IDB_POPUP_WIFIDIRECT_ICON =  L"U01_popup_icon_Wi-Fi direct.png";
164
165 //Dimensions of Controls
166 const int X_DEFAULT = 0;
167 const int Y_DEFAULT = 0;
168 const int X_LISTVIEW = 16;
169 const int Y_LISTVIEW = 10;
170 const int H_ITEM_LISTVIEW_POPUP = 112;
171 const int H_ITEM_LISTVIEW = 112;
172 const int H_DETAIL_LISTVIEW = 128;
173 const int H_CATEGORY_PANEL = 122;
174
175 const int H_LISTVIEW_ITEM_BITMAP = 74;
176 const int W_LISTVIEW_ITEM_BITMAP = 74;
177
178 const int H_SEARCH_ALL_FOLDERS = 60;
179 const int H_DISPLAY_PATH_LABEL = 48;
180
181 const int H_FOOTER_BUTTON_MORE = 60;
182 const int W_FOOTER_BUTTON_MORE = 60;
183
184 const int H_RENAME_EDITFIELD = 112;
185 const int H_RENAME_PANEL = 130;
186 const int H_CREATE_FOLDER_EDITFIELD = 90;
187 const int Y_CREATE_FOLDER_EDITFIELD = 40;
188
189 const int W_POPUP_LISTVIEW = 400;
190
191 const int H_CHECK_BUTTON = 112;
192 const int CATEGORY_ICONS_PANEL_HEIGHT = 192;
193
194 const int KB_DIVISOR = 1024;
195 const int MB_DIVISOR = 1048576;
196 const int INVALID_LIST_INDEX = -1;
197 const int ENABLE_FOOTER_ITEM = 1;
198 const int DISABLE_FOOTER_ITEM = 0;
199
200 const int W_RENAME_ICON = 64;
201 const int H_LISTVIEW_ITEM_TITLE = 60;
202 const int H_LISTVIEW_ITEM_DESCRIPTION = 48;
203
204 const int X_SEARCH_ALL_FOLDERS = 100;
205
206 const int W_DELETE_BUTTON = 100;
207 const int H_DELETE_BUTTON = 74;
208 const int W_MAX_POPUP = 620;
209 const int H_BOTTOM_PANEL = 96;
210 const int H_DEFAULT_BUTTON = 72;
211
212 const int ID_THUMBNAIL_WIDH=164;
213 const int ID_THUMBNAIL_HEIGHT=164;
214
215 const int ID_FILE_NAME_LENGTH_MAX = 196;
216 const int ID_FOLDER_NAME_LENGTH_MAX = 200;
217
218 //IconListView OVERLAY ITEMS
219 const int OVERLAYITEM_RENAME = 0;
220
221 //Search Form
222 const int X_POPUP_SEARCH = 50;
223 const int Y_POPUP_SEARCH = 250;
224 const int H_POPUP_SEARCH = 300;
225 const int H_SEARCH_BAR = 86;
226
227 //AppControl
228 const wchar_t* IDB_PLAY_OUTER_CIRCLE = L"00_btn_circle_bg_normal.png";
229 const wchar_t* IDB_PLAY = L"U01_button_play.png";
230 const wchar_t* IDB_PLAY_PRESSED = L"U01_button_play_press.png";
231 const wchar_t* IDB_PAUSE = L"U01_button_pause.png";
232 const wchar_t* IDB_PAUSE_PRESSED = L"U01_button_pause_press.png";
233 const wchar_t* IDB_RENAME_OUTER_CIRCLE = L"00_btn_circle_bg_normal.png";
234 const wchar_t* IDB_RENAME_PRESSED_CIRCLE = L"00_btn_circle_bg_press.png";
235 const wchar_t* IDB_RENAME = L"00_button_rename_normal.png";
236
237 //Fonts
238 const int ID_FONT_SIZE_26 = 26;
239 const int ID_FONT_SIZE_32 = 32;
240 const int ID_FONT_SIZE_36 = 36;
241 const int ID_FONT_SIZE_40 = 40;
242 const int ID_FONT_SIZE_44 = 44;
243 const int MAX_TEXT_ITEMS = 10;
244 const int ID_MAX_LINE_SPACE = 40;
245 const int H_ENRICHED_TEXT = 800;
246
247 //color
248 const int IDC_RGB_GREY = 68;
249
250 //MessageBox Timeouts
251 extern const int ID_MESSAGE_BOX_TIMEOUT_ONE_SECOND = 1000;
252
253 //String Arrays
254 const Tizen::Base::String typeImage[ID_IMAGE_TYPE_SIZE] =
255 {
256         "jpg", "jpeg", "bmp", "png", "gif",
257         "JPG", "JPEG", "BMP", "PNG", "GIF"
258 };
259
260 const Tizen::Base::String typeAudio[ID_AUDIO_TYPE_SIZE] =
261 {
262         "mp3", "aac", "amr", "mid", "midi", "wav", "m4a",
263         "MP3", "AAC", "AMR", "MID", "MIDI", "WAV", "M4A"
264 };
265
266 const Tizen::Base::String typeVideo[ID_VIDEO_TYPE_SIZE] =
267 {
268         "mpeg4", "mp4", "3gpp", "3gp", "avi", "mpeg",
269         "MPEG4", "MP4", "3GPP", "3GP", "AVI", "MPEG"
270 };
271
272 const Tizen::Base::String typeContacts[ID_CONTACT_TYPE_SIZE] =
273 {
274         "vcs",
275         "VCS"
276 };