Tizen 2.1 base
[apps/osp/Home.git] / inc / HmTypes.h
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        HmTypes.h
19  * @brief       Keeps all the constants used throughout the application
20  */
21
22 #ifndef _HM_TYPES_H_
23 #define _HM_TYPES_H_
24
25 // string constants
26 // bitmap paths
27 extern const wchar_t* IDB_BACKGROUND_IMAGE;
28 extern const wchar_t* IDB_CLOSE_ICON;
29 extern const wchar_t* IDB_SELECTED_BUBBLE_TOP;
30 extern const wchar_t* IDB_BUBBLE_TOP;
31 extern const wchar_t* IDB_DEFAULT_APP_ICON;
32 extern const wchar_t* IDB_SETTING_BUTTON;
33 extern const wchar_t* IDB_SETTING_BUTTON_PRESSED;
34 // application specific constants
35 extern const wchar_t* SETTINGS_KEY_WALLPAPER;
36 extern const wchar_t* SETTINGS_KEY_LANGUAGE;
37 extern const wchar_t* WAIT_CURSOR_IMAGE_BASE;
38 extern const wchar_t* BITMAP_EXTENSION;
39 extern const wchar_t* APP_ID_REPLACE_STR;
40 extern const wchar_t* SETTING_ANIMATION_PROPERTY_NAME;
41 // database constants
42 extern const wchar_t* HOME_DATABASE_NAME;
43 // database table names
44 extern const wchar_t* HOME_APPLICATIONS_TABLE;
45 // database column names
46 extern const wchar_t* APPS_RECORD_ID;
47 extern const wchar_t* APPS_APP_ID;
48 extern const wchar_t* APPS_APP_NAME;
49 extern const wchar_t* APPS_APP_ICON;
50 extern const wchar_t* APPS_APP_PAGE;
51 extern const wchar_t* APPS_APP_PAGEINDEX;
52 //DATATYPES used for database
53 extern const wchar_t* DATATYPE_INTEGER_PRIMARY;
54 extern const wchar_t* DATATYPE_INTEGER;
55 extern const wchar_t* DATATYPE_TEXT;
56 extern const wchar_t* DATATYPE_UNIQUE;
57 // database queries
58 extern const wchar_t* CREATE_TABLE;
59 extern const wchar_t* INSERT_TABLE;
60 extern const wchar_t* SELECT_TABLE;
61 extern const wchar_t* DELETE_TABLE;
62 extern const wchar_t* UPDATE_TABLE;
63 extern const wchar_t* GET_LAST_RECORD_ID;
64
65 extern const unsigned int COLOR_SETTING_BOUNDARY_INNER;
66
67 // int constants
68 // Ui Bounds
69 extern const int X_MARKER_LABEL_OFFSET;
70 extern const int X_MARKER_POSITION;
71 extern const int Y_MARKER_POSITION;
72 extern const int W_MARKER_LABEL;
73 extern const int H_MARKER_LABEL;
74 extern const int W_MARKER_OFFSET;
75 extern const int X_PAGE_POSITION;
76 extern const int H_APP_CAPTION_TEXT;
77 extern const int Y_APP_ICON_IMAGE_START;
78 extern const int W_APPLICATION_ICON;
79 extern const int H_APPLICATION_ICON;
80 extern const int X_PAGE_OFFSET;
81 extern const int H_EDIT;
82 extern const int H_CONTROL_OFFSET;
83 extern const int H_PAGE_MARKER;
84 extern const int W_DEFAULT_PAGE;
85 extern const int X_SETTING_PANEL;
86 extern const int Y_SETTING_PANEL;
87 extern const int W_SETTING_PANEL;
88 extern const int H_SETTING_PANEL;
89 extern const int X_SETTING_PANEL_PRESSED_OFFSET;
90 extern const int SIZE_SETTING_LABEL_OFFSET;
91 extern const int OVERLAY_BITMAP_DIMENSION;
92 extern const int GAP_ICON_HORIZONTAL;
93 extern const int GAP_ICON_VERTICAL;
94 extern const int WAIT_CURSUR_DIMESION;
95 extern const int APP_ICON_IMAGE_SIZE;
96 // timer durations
97 extern const int DURATION_FOR_EACH_IMAGE;
98 extern const int DURATION_SETTING_ANIMATION;
99 extern const int MOVEMENT_UPDATE_DURATION;
100 extern const int LONG_TOUCH_GESTURE_DURATION;
101 extern const int SCROLL_ANIMATION_DURATION;
102 // font size
103 extern const int FONT_SIZE_APP_CAPTION;
104 // color values
105 extern const unsigned int COLOR_APP_ICON_CAPTION;
106 extern const unsigned int COLOR_APP_CAPTION_SHADOW1;
107 extern const unsigned int COLOR_APP_CAPTION_SHADOW2;
108 // action ids
109 extern const int IDA_OVERLAYBITMAP_CLOSE;
110 extern const int IDA_SETTING_BUTTON;
111 // other constants
112 extern const int MAX_ICONS_PER_PAGE;
113 extern const int MAX_PAGE_COUNT;
114 extern const int MAX_BITMAP_COUNT;
115 extern const int REPEAT_COUNT;
116 extern const int MOVING_ICON_OPACITY;
117
118 #endif //_HM_TYPES_H_