2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
21 #include <Elementary.h>
23 #include <ui-gadget.h>
25 #include <appcore-efl.h>
29 # define PACKAGE "volume"
33 # define RESDIR "/usr/apps/com.samsung.volume/res"
36 #if !defined(LOCALEDIR)
37 # define LOCALEDIR RESDIR"/locale"
41 # define EDJDIR RESDIR"/edje"
44 #define EDJ_THEME EDJDIR"/volume_popup.edj"
45 #define GRP_VOLUME_SLIDER "popup_slider_style"
46 #define GRP_VOLUME_SLIDER_WITH_WARNING "popup_slider_text_style_with_warn_label"
47 #define EDJ_APP EDJDIR"/volume_app.edj"
48 #define GRP_VOLUME_BLOCKEVENTS "block_events"
49 #define GRP_VOLUME_LAYOUT "volumeLayout"
50 #define GRP_VOLUME_CONTENT "volumeLayoutContent"
51 #define GRP_VOLUME_SLIDER_HORIZONTAL "volumeHorizontalSlider"
53 #define IMG_VOLUME_ICON "/00_volume_icon.png"
54 #define IMG_VOLUME_ICON_CALL "/00_volume_icon_Call.png"
55 #define IMG_VOLUME_ICON_MUTE "/00_volume_icon_Mute.png"
56 #define IMG_VOLUME_ICON_VIB "/00_volume_icon_Vibrat.png"
57 #define IMG_VOLUME_ICON_HEADPHONE "/00_volume_icon_headphone.png"
58 #define IMG_VOLUME_ICON_MEDIA "/00_volume_icon_media.png"
59 #define IMG_VOLUME_ICON_SETTINGS "/00_volume_icon_settings.png"
60 #define IMG_VOLUME_ICON_SETTINGS_PRESSED "/00_volume_icon_settings_pressed.png"
61 #define IMG_VOLUME_WINSET_DIVIDER_LINE "/00_winset_divider_line.png"
63 #define S_(str) dgettext("sys_string", str)
64 #define T_(str) dgettext(PACKAGE, str)
66 #define ADD_TIMER(x, time, _timer_cb, data) \
67 x = ecore_timer_add(time, _timer_cb, data);\
69 #define DEL_TIMER(x) \
77 Evas_Object *win, *block_events, *ly, *sl, *ic, *ic_settings, *warn_lb;
80 Ecore_Timer *stimer; /* slider timer */
81 Ecore_Timer *sutimer, *sdtimer, *lutimer, *ldtimer; /* long press */
82 Ecore_Timer *warntimer; /* warning message timer */
83 Ecore_Timer *luwarmtimer, *ldwarmtimer;
91 /* add more variables here */
92 int sh; /* svi handle */
93 int flag_pressing; /* to set hard key press */
97 int flag_warning; /* set device warning flag */
100 #endif /* __VOLUME_H__ */