summaryrefslogtreecommitdiff
path: root/2.3-wearable
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-02-01 13:58:02 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-02-01 13:58:02 +0900
commitb9a5bc0d3dd96ddee2a2218713e74dc433cf7594 (patch)
tree983c2a552d44f9e40a151d8b906caf2e1f6dd519 /2.3-wearable
parent53605de8d45e6546e5baedcee4b9db626453a8ee (diff)
downloadefl-theme-tizen-tizen_2.3.tar.gz
efl-theme-tizen-tizen_2.3.tar.bz2
efl-theme-tizen-tizen_2.3.zip
Diffstat (limited to '2.3-wearable')
-rw-r--r--2.3-wearable/HVGA-inc.edc605
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_00.pngbin0 -> 1416 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_01.pngbin0 -> 1504 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_02.pngbin0 -> 1514 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_03.pngbin0 -> 1519 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_04.pngbin0 -> 1527 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_05.pngbin0 -> 1524 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_06.pngbin0 -> 1523 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_07.pngbin0 -> 1523 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_08.pngbin0 -> 1532 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_09.pngbin0 -> 1528 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_10.pngbin0 -> 1525 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_11.pngbin0 -> 1522 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_12.pngbin0 -> 1507 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_13.pngbin0 -> 1518 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_14.pngbin0 -> 1536 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_15.pngbin0 -> 1408 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_16.pngbin0 -> 1516 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_17.pngbin0 -> 1503 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_18.pngbin0 -> 1517 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_19.pngbin0 -> 1555 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_20.pngbin0 -> 1517 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_21.pngbin0 -> 1524 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_22.pngbin0 -> 1522 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_23.pngbin0 -> 1513 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_24.pngbin0 -> 1515 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_25.pngbin0 -> 1497 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_26.pngbin0 -> 1524 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_27.pngbin0 -> 1505 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_28.pngbin0 -> 1518 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_29.pngbin0 -> 1518 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_left_holo_dark.pngbin0 -> 1058 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_right_holo_dark.pngbin0 -> 1062 bytes
-rw-r--r--2.3-wearable/HVGA/images/Body/indicator_on_focused.pngbin0 -> 1095 bytes
-rw-r--r--2.3-wearable/HVGA/images/Body/indicator_on_focused_ef.pngbin0 -> 1202 bytes
-rw-r--r--2.3-wearable/HVGA/images/Body/indicator_on_normal.pngbin0 -> 1088 bytes
-rw-r--r--2.3-wearable/HVGA/images/Body/indicator_on_normal_ef.pngbin0 -> 1201 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Controller_icon/tw_btn_check_holo_dark.pngbin0 -> 1352 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_holo_dark.pngbin0 -> 995 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_line_holo_dark.pngbin0 -> 1018 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Controller_icon/tw_btn_next_depth_holo_dark.pngbin0 -> 1156 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_radio_holo_dark.pngbin0 -> 1388 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_holo_dark.pngbin0 -> 1646 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_line.pngbin0 -> 1845 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_bg_holo.pngbin0 -> 1960 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_handle_holo.pngbin0 -> 1792 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_off_holo_dark.pngbin0 -> 2125 bytes
-rw-r--r--2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_on_holo_dark.pngbin0 -> 1241 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-angry-shout.pngbin0 -> 11657 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-angry.pngbin0 -> 12475 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-guilty.pngbin0 -> 12038 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-haha.pngbin0 -> 14123 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-half-smile.pngbin0 -> 12977 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-happy.pngbin0 -> 12936 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-kiss.pngbin0 -> 14611 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-little-bit-sorry.pngbin0 -> 13621 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-love.pngbin0 -> 12076 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-minimal-smile.pngbin0 -> 10323 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-omg.pngbin0 -> 13424 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-smile.pngbin0 -> 13055 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-sorry.pngbin0 -> 12900 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-surprised.pngbin0 -> 12547 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-tongue-dangling.pngbin0 -> 13111 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-very-sorry.pngbin0 -> 14951 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-wink.pngbin0 -> 13190 bytes
-rw-r--r--2.3-wearable/HVGA/images/Emoticon/emo-worried.pngbin0 -> 13835 bytes
-rw-r--r--2.3-wearable/HVGA/images/Focus/tw_focused_effect.#.pngbin0 -> 970 bytes
-rw-r--r--2.3-wearable/HVGA/images/List/b_list_swipe-delete.pngbin0 -> 2085 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/List/b_list_swipe_left.#.pngbin0 -> 1101 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/List/b_list_swipe_right.#.pngbin0 -> 1101 bytes
-rw-r--r--2.3-wearable/HVGA/images/List/tw_list_add_holo_dark.pngbin0 -> 1085 bytes
-rw-r--r--2.3-wearable/HVGA/images/List/tw_list_delete_holo_dark.pngbin0 -> 1119 bytes
-rw-r--r--2.3-wearable/HVGA/images/List/tw_list_setting_holo_dark.pngbin0 -> 1920 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg.#.pngbin0 -> 1069 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg_line.#.pngbin0 -> 196 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail.pngbin0 -> 1178 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail_line.pngbin0 -> 1196 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail.pngbin0 -> 1252 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail_line.pngbin0 -> 1228 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Option popup/tw_focused_effect.#.pngbin0 -> 970 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_edge.pngbin0 -> 1090 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_glow.pngbin0 -> 5100 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_edge.pngbin0 -> 1007 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_glow.pngbin0 -> 6433 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_edge.pngbin0 -> 1007 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_glow.pngbin0 -> 6380 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_edge.pngbin0 -> 1089 bytes
-rw-r--r--2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_glow.pngbin0 -> 5190 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_brightness.pngbin0 -> 2128 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_mute.pngbin0 -> 1575 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_outdoor.pngbin0 -> 1596 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_sound.pngbin0 -> 1753 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_sound_off.pngbin0 -> 1827 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_device_options_vibrate.pngbin0 -> 1675 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_ic_lock_power_off.pngbin0 -> 2182 bytes
-rw-r--r--2.3-wearable/HVGA/images/Popup/tw_ic_lock_restart.pngbin0 -> 2140 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_00.pngbin0 -> 2715 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_01.pngbin0 -> 3380 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_02.pngbin0 -> 3438 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_03.pngbin0 -> 3485 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_04.pngbin0 -> 3526 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_05.pngbin0 -> 3498 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_06.pngbin0 -> 3384 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_07.pngbin0 -> 3220 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_08.pngbin0 -> 3216 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_09.pngbin0 -> 3304 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_10.pngbin0 -> 3368 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_11.pngbin0 -> 3368 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_12.pngbin0 -> 3412 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_13.pngbin0 -> 3406 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_14.pngbin0 -> 3370 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_15.pngbin0 -> 2708 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_16.pngbin0 -> 3372 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_17.pngbin0 -> 3460 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_18.pngbin0 -> 3540 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_19.pngbin0 -> 3530 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_20.pngbin0 -> 3410 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_21.pngbin0 -> 3358 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_22.pngbin0 -> 3292 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_23.pngbin0 -> 3313 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_24.pngbin0 -> 3356 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_25.pngbin0 -> 3396 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_26.pngbin0 -> 3445 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_27.pngbin0 -> 3407 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_28.pngbin0 -> 3457 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_29.pngbin0 -> 3354 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate1_holo_dark.pngbin0 -> 1074 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate2_holo_dark.pngbin0 -> 1068 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate3_holo_dark.pngbin0 -> 1069 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate4_holo_dark.pngbin0 -> 1070 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate5_holo_dark.pngbin0 -> 1069 bytes
-rw-r--r--2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark.pngbin0 -> 1343 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark_press.pngbin0 -> 1489 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Progress/tw_scrubber_control_press_line.pngbin0 -> 1648 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Scroll/b_fast_scroll_rollover_bg_line.pngbin0 -> 1123 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Scroll/b_index_scroll_press_bg_line.pngbin0 -> 992 bytes
-rw-r--r--2.3-wearable/HVGA/images/Search/b_list_search_icon.pngbin0 -> 1496 bytes
-rw-r--r--2.3-wearable/HVGA/images/Search/tw_ic_clear_search_api_holo_dark.pngbin0 -> 1306 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_button_controller_bg.pngbin0 -> 3552 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_button_controller_bg_press.pngbin0 -> 3707 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_button_controller_icon_mute.pngbin0 -> 2490 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_btn_bg.pngbin0 -> 1892 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_btn_ff.pngbin0 -> 1913 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_btn_minus.pngbin0 -> 1109 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_btn_plus.pngbin0 -> 1110 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_btn_rw.pngbin0 -> 1905 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_module_close.pngbin0 -> 1269 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_module_ff.pngbin0 -> 1619 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_module_minus.pngbin0 -> 1086 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_module_plus.pngbin0 -> 1103 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_controller_module_rw.pngbin0 -> 1637 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_brightness.pngbin0 -> 1993 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_outdoor.pngbin0 -> 1684 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_mute.pngbin0 -> 1525 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_sound.pngbin0 -> 1971 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_vibrate.pngbin0 -> 1845 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/Slider/tw_timepicker_num_bg_new.#.pngbin0 -> 233 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_colon.pngbin0 -> 1299 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left.pngbin0 -> 1322 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left_minus.pngbin0 -> 1181 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right.pngbin0 -> 1300 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right_plus.pngbin0 -> 1190 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_focus_line.#.pngbin0 -> 384 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot.pngbin0 -> 1508 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot_effect.pngbin0 -> 1451 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_left_softbtn.pngbin0 -> 1341 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new.#.pngbin0 -> 233 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new_transparent.#.pngbin0 -> 987 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_btn.pngbin0 -> 3026 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_right_softbtn.pngbin0 -> 1339 bytes
-rw-r--r--2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top.pngbin0 -> 1451 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top_effect.pngbin0 -> 1166 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_1.pngbin0 -> 1251 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_2.pngbin0 -> 1131 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_1.pngbin0 -> 1231 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_2.pngbin0 -> 1123 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_clipboard.pngbin0 -> 1287 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_copy.pngbin0 -> 1211 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_cut.pngbin0 -> 1506 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_paste.pngbin0 -> 1272 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_select_all.pngbin0 -> 1298 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center.pngbin0 -> 5136 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center_reverse.pngbin0 -> 5112 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left.pngbin0 -> 4770 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01.pngbin0 -> 4637 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01_reverse.pngbin0 -> 4653 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_reverse.pngbin0 -> 4583 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right.pngbin0 -> 4689 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01.pngbin0 -> 4586 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01_reverse.pngbin0 -> 4728 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_reverse.pngbin0 -> 4647 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg.#.pngbin0 -> 1003 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_effect.#.pngbin0 -> 1291 bytes
-rw-r--r--2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_line.#.pngbin0 -> 1019 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_left.pngbin0 -> 9165 bytes
-rwxr-xr-x2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_right.pngbin0 -> 9185 bytes
-rw-r--r--2.3-wearable/HVGA/sounds/End_of_List.wavbin0 -> 165216 bytes
-rw-r--r--2.3-wearable/HVGA/sounds/Focus.wavbin0 -> 46924 bytes
-rw-r--r--2.3-wearable/HVGA/sounds/List_scroll.wavbin0 -> 58652 bytes
-rw-r--r--2.3-wearable/Makefile56
-rw-r--r--2.3-wearable/tizen.edc183
-rw-r--r--2.3-wearable/widgets/access.edc65
-rw-r--r--2.3-wearable/widgets/bg.edc70
-rw-r--r--2.3-wearable/widgets/button.edc2529
-rw-r--r--2.3-wearable/widgets/check.edc1205
-rw-r--r--2.3-wearable/widgets/conform.edc587
-rw-r--r--2.3-wearable/widgets/ctxpopup.edc2558
-rw-r--r--2.3-wearable/widgets/datetime.edc1328
-rwxr-xr-x2.3-wearable/widgets/entry.edc6621
-rw-r--r--2.3-wearable/widgets/gengrid.edc153
-rw-r--r--2.3-wearable/widgets/genlist.edc805
-rw-r--r--2.3-wearable/widgets/genlist_decorate.edc93
-rw-r--r--2.3-wearable/widgets/genlist_macro.edc1973
-rw-r--r--2.3-wearable/widgets/index.edc1109
-rw-r--r--2.3-wearable/widgets/label.edc888
-rw-r--r--2.3-wearable/widgets/layout.edc1292
-rw-r--r--2.3-wearable/widgets/naviframe.edc1009
-rw-r--r--2.3-wearable/widgets/popup.edc963
-rw-r--r--2.3-wearable/widgets/progressbar.edc605
-rwxr-xr-x2.3-wearable/widgets/radio.edc708
-rw-r--r--2.3-wearable/widgets/scroller.edc1618
-rw-r--r--2.3-wearable/widgets/slider.edc599
-rw-r--r--2.3-wearable/widgets/spinner.edc2215
223 files changed, 29837 insertions, 0 deletions
diff --git a/2.3-wearable/HVGA-inc.edc b/2.3-wearable/HVGA-inc.edc
new file mode 100644
index 00000000..f5a4cdb3
--- /dev/null
+++ b/2.3-wearable/HVGA-inc.edc
@@ -0,0 +1,605 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+//*** This file defines the width, height (not color!) for W widgets *** //
+
+// ************* Naming ************ //
+// {WIDGET}_{PART}_{TYPE}_{STATE}_COLOR
+
+
+// ***************************** Action bar ***********************************/
+#define ACTIONBAR_PADDING_SIZE 16
+#define ACTIONBAR_HEIGHT 60
+#define ACTIONBAR_TEXT_SIZE 33
+#define ACTIONBAR_ICON_SIZE 39 39
+#define ACTIONBAR_NEXT_BTN_SIZE 68 60
+#define ACTIONBAR_FADE_WIDTH 14
+#define ACTIONBAR_ICON_TEXT_TOP_PADDING_SIZE 11
+#define ACTIONBAR_ICON_TEXT_BOTTOM_PADDING_SIZE 10
+
+// ***************************** Sroller **************************************/
+#define SCROLLER_VBAR_MIN_SIZE 4 15
+#define SCROLLER_VBAR_MAX_SIZE 4 99999
+#define SCROLLER_HBAR_MIN_SIZE 15 4
+#define SCROLLER_HBAR_MAX_SIZE 99999 4
+#define SCROLLER_VBAR_PADDING_TOP_SIZE 2
+#define SCROLLER_VBAR_PADDING_BOTTOM_SIZE 2
+#define SCROLLER_VBAR_PADDING_LEFT_SIZE 2
+#define SCROLLER_VBAR_PADDING_RIGHT_SIZE 4
+#define SCROLLER_HBAR_PADDING_TOP_SIZE 2
+#define SCROLLER_HBAR_PADDING_BOTTOM_SIZE 2
+#define SCROLLER_HBAR_PADDING_LEFT_SIZE 2
+#define SCROLLER_HBAR_PADDING_RIGHT_SIZE 2
+#define END_EFFECT_GLOW_MAX_SIZE 50
+#define END_EFFECT_GLOW_MIN_SIZE 40
+#define END_EFFECT_GLOW_MOVE_CORRECTION_VALUE 10
+#define END_EFFECT_HORIZONTAL_EDGE_SIZE 2
+#define END_EFFECT_VERTICAL_EDGE_SIZE 1
+
+// ***************************** List *****************************************/
+#define LIST_PADDING_LEFT_SIZE 16
+#define LIST_PADDING_RIGHT_SIZE 8
+#define LIST_PADDING_DEFAULT_SIZE 16
+#define LIST_PADDING_R_ICON_RIGHT_SIZE 8
+#define LIST_PADDING_R_ICON_DEFAULT_SIZE 8
+#define LIST_GROUPINDEX_PADDING_TOP_SIZE 1
+#define LIST_GROUPINDEX_PADDING_BOTTOM_SIZE 1
+#define LIST_1LINE_HEIGHT 100
+#define LIST_1LINE_PADDING_TOP_SIZE 25
+#define LIST_1LINE_PADDING_BOTTOM_SIZE 26
+#define LIST_2LINE_PADDING_TOP_SIZE 8
+#define LIST_2LINE_PADDING_BOTTOM_SIZE 9
+#define LIST_TEXT_MAIN_SIZE 42
+#define LIST_TEXT_SUB_SIZE 27
+#define LIST_TEXT_SWEEP_SIZE 32
+#define LIST_DIVIDER_HEIGHT 56
+#define LIST_DIVIDER_PADDING_SIZE 8
+#define LIST_GROUPINDEX_HEIGHT 34
+#define LIST_GROUPINDEX_TEXT_SIZE 27
+#define LIST_HIDDEN_HEIGHT 85
+#define LIST_MULTILINE_HEIGHT 44
+#define LIST_MULTILINE_2LINE_HEIGHT 100
+// Notification
+#define LIST_NOTI_ICON_SIZE 52 52
+#define LIST_NOTI_NUMBER_ICON_HEIGHT 30
+#define LIST_NOTI_TEXT_SIZE 24
+// Device option
+#define LIST_DEVICE_OPTION_PADDING_LEFT_SIZE 25 // NOT USED
+#define LIST_DEVICE_OPTION_PADDING_RIGHT_SIZE 25 // NOT USED
+#define LIST_DEVICE_OPTION_PADDING_TOP_SIZE 14
+#define LIST_DEVICE_OPTION_PADDING_BOTTOM_SIZE 15
+#define LIST_DEVICE_OPTION_ICON_MIN_MAX_SIZE 56 56
+#define LIST_DEVICE_OPTION_PADDING_DEFAULT_SIZE 12 // NOT USED
+#define LIST_DEVICE_OPTION_HEIGHT 115
+#define LIST_DEVICE_OPTION_TEXT_MAIN_SIZE 34
+#define LIST_DEVICE_OPTION_TEXT_SUB_SIZE 27
+#define LIST_DEVICE_OPTION_ICON1_MIN_MAX_SIZE 160 115
+#define LIST_DEVICE_OPTION_ICON_DIVIDER_MIN_MAX_INC 1 68
+
+
+// ***************************** Button ***************************************/
+#define BUTTON_TEXT_SIZE 31
+#define BUTTON_HEIGHT 85
+#define BUTTON_NEXTDEPTH_SIZE 56 56
+#define BUTTON_PLUS_SIZE 66 66
+#define BUTTON_BOTTOM_SIZE_LEFT 60 60
+#define BUTTON_BOTTOM_SIZE_RIGHT 60 60
+#define BUTTON_BOTTOM_BG_SIZE_LEFT 180 83
+#define BUTTON_BOTTOM_BG_SIZE_RIGHT 179 83
+#define BUTTON_DELETE_SIZE 50 50
+#define BUTTON_PADDING_SIZE 1 0
+#define BUTTON_ICON_SIZE 60 60
+// Naviframe
+#define BUTTON_NAVIFRAME_BG_BORDER_SIZE 15 15 15 15
+// Divider
+#define BUTTON_DIVIDER_BTN_SIZE 74 // ( 2 + 8 + 56 + 8 )
+#define BUTTON_DIVIDER_BTN_ICON_SIZE 56
+#define BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE 10 // LEFT PADDING + DIVIDER LINE ( 8 + 2 )
+#define BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE 8
+// Device_option
+#define BUTTON_DEVICE_OPTION_TOP_PADDING_SIZE 1
+#define BUTTON_DEVICE_OPTION_ICON_SIZE 65 44
+#define BUTTON_DEVICE_OPTION_TEXT_PART_SIZE 0 70
+#define BUTTON_DEVICE_OPTION_LR_PADDING_SIZE 10
+// Hidden Button
+#define HIDDEN_BUTTON_HEIGHT 85
+// Clear Button
+#define BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC 34 34
+#define BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC 34 34
+
+// ***************************** Check and Radio ****************************************/
+#define CHECK_SIZE 56 56
+#define CHECK_TOGGLE_SIZE 207 110
+#define CHECK_TOGGLE_THUMB_SIZE 132 110
+#define RADIO_SIZE 56 56
+// popup
+#define CHECK_TEXT_SIZE 36
+#define CHECK_PADDING_SIZE 8 0
+
+// ***************************** Index ****************************************/
+// Scroll
+#define INDEX_SCROLL_PADDING_SIZE 0
+#define INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE 27
+#define INDEX_SCROLL_HANDLE_ITEM_WIDTH 45
+#define INDEX_DIVIDER_WIDTH_INC 1
+#define INDEX_SCROLL_BG_LINE_WIDTH_INC 2
+#define INDEX_SCROLL_HANDLE_ITEM_HEIGHT 41
+#define INDEX_SCROLL_POPUP_TEXT_SIZE 70
+#define INDEX_SCROLL_2DEPTH_FOCUS_SIZE 34
+#define INDEX_SCROLL_DRAG_PART_SIZE 20 40
+#define INDEX_SCROLL_REF_RECT_SIZE 40 0
+#define INDEX_SCROLL_POPUP_SIZE 156 99
+#define INDEX_SCROLL_POPUP_TEXT_LEFT_RIGHT_PADDING 79
+#define INDEX_SCROLL_DIVIDER_WIDTH_INC 2
+// Tab
+#define INDEX_TAB_HEIGHT 6
+#define INDEX_TAB_PADDING_SIZE 2
+// Thumbnail
+#define INDEX_THUMBNAIL_BG_SIZE 40 20
+#define INDEX_THUMBNAIL_IND_SIZE 20 20
+#define INDEX_THUMBNAIL_IMAGE_BORDER_SIZE 6 6 5 7
+
+// ***************************** Gengrid **************************************/
+#define GENGRID_DEFAULT_PADDING_LT_SIZE 0 0
+#define GENGRID_DEFAULT_PADDING_RB_SIZE 0 0
+#define GENGRID_DEFAULT_PADDING_ITEM_BG_LT_SIZE 0 0
+#define GENGRID_DEFAULT_PADDING_ITEM_BG_RB_SIZE 0 0
+
+// ***************************** Ctxpopup **************************************/
+#define CTXPOPUP_MOVE_PAD_INC 40
+#define CTXPOPUP_SHADOW_LEFT_PADDING 1
+#define CTXPOPUP_SHADOW_TOP_PADDING 1
+#define CTXPOPUP_SHADOW_RIGHT_PADDING 1
+#define CTXPOPUP_SHADOW_BOTTOM_PADDING 1
+#define CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC 60
+#define CTXPOPUP_ICON_ITEM_HORIZONTAL_HEIGHT_INC 69
+#define CTXPOPUP_ARROW_SIZE_INC 32 32
+#define CTXPOPUP_FRAME_CORNER_ARROW_PADDING 18
+#define CTXPOPUP_CONTENT_PADDING_WIDTH 1
+#define CTXPOPUP_CONTENT_PADDING_HEIGHT 1
+#define CTXPOPUP_ARROW_PADDING 3
+#define CTXPOPUP_HORIZONTAL_WIDTH_MIN_INC 73
+#define CTXPOPUP_WIDTH_MIN_INC 320
+#define CTXPOPUP_WIDTH_MAX_INC 320
+#define CTXPOPUP_ITEM_HEIGHT_MIN_INC 81
+#define CTXPOPUP_ITEM_HEIGHT_MAX_INC 101
+#define CTXPOPUP_HORIZONTAL_ITEM_HEIGHT_MAX_INC 89
+#define CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 1
+#define CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING 8
+#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_TOP_PADDING_INC 18
+#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_BOTTOM_PADDING_INC 18
+#define CTXPOPUP_ITEM_TEXT_LR_PADDING_INC 6
+#define CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC 19
+#define CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC 19
+#define CTXPOPUP_ITEM_ICON_LR_PADDING_INC 8
+#define CTXPOPUP_ITEM_ICON_TOP_PADDING_INC 6
+#define CTXPOPUP_ITEM_ICON_BOTTOM_PADDING_INC 6
+#define CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC 42
+#define CTXPOPUP_TEXT_MAX_INC 306
+#define CTXPOPUP_ITEM_TEXT_SIZE_INC 36
+#define CTXPOPUP_ITEM_TEXT_MAX_SIZE_INC (CTXPOPUP_ITEM_TEXT_SIZE_INC*2)
+#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_SIZE_INC 28
+#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_HEIGHT_MIN_INC 33
+#define CTXPOPUP_HORIZONTAL_ITEM_TEXT_MAX_SIZE_INC (CTXPOPUP_HORIZONTAL_ITEM_TEXT_SIZE_INC*2)
+#define CTXPOPUP_ITEM_ICON_PADDING_INC 6
+#define CTXPOPUP_ITEM_ICON_TEXT_PADDING_INC 8
+#define CTXPOPUP_ITEM_ICON_TEXT_TOP_PADDING_INC 12
+#define CTXPOPUP_ICON_WIDTH_INC 56
+#define CTXPOPUP_ICON_HEIGHT_INC 56
+#define CTXPOPUP_HORIZONTAL_ICON_WIDTH_INC 44
+#define CTXPOPUP_HORIZONTAL_ICON_HEIGHT_INC 43
+
+#define CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MIN_INC 52
+#define CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MAX_INC 52
+#define CTXPOPUP_COPYPASTE_ITEM_HEIGHT_MIN_INC 70
+#define CTXPOPUP_COPYPASTE_ICON_WIDTH_INC 52
+#define CTXPOPUP_COPYPASTE_ICON_HEIGHT_INC 70
+#define CTXPOPUP_COPYPASTE_ITEM_ICON_TOP_PADDING_INC 0
+#define CTXPOPUP_COPYPASTE_ITEM_ICON_BOTTOM_PADDING_INC 0
+#define CTXPOPUP_COPYPASTE_ITEM_TEXT_PADDING_INC 0
+#define CTXPOPUP_COPYPASTE_ITEM_TEXT_BOTTOM_PADDING_INC 0
+#define CTXPOPUP_COPYPASTE_SEPARATOR_MIN_SIZE_INC 1 CTXPOPUP_COPYPASTE_ITEM_HEIGHT_MIN_INC
+#define CTXPOPUP_COPYPASTE_SEPARATOR_MAX_SIZE_INC 1 -1
+
+#define CTXPOPUP_HELP_BG_WIDTH_INC 328
+#define CTXPOPUP_HELP_BG_LINE_SIZE_INC 3
+#define CTXPOPUP_HELP_ITEM_WIDTH_INC 322
+#define CTXPOPUP_HELP_ITEM_HEIGHT_INC 126
+#define CTXPOPUP_HELP_ITEM_LR_PAD_INC 13
+#define CTXPOPUP_HELP_ITEM_TB_PAD_INC 23
+#define CTXPOPUP_HELP_ITEM_TEXT_MAX_WIDTH_INC 296
+
+// Help popup (made by ctxpopup)
+#define POPUP_HELP_TEXT_SIZE 36
+
+// ***************************** Popup ****************************************/
+
+#define POPUP_OUTSIDE_PADDING "6" //480(total height) - 480(popup max height) + 3*2(top, bottom outline width)
+#define POPUP_TITLE_AREA_HEIGHT "68"
+
+#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC 360 0
+#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC 360 480
+#define POPUP_CONTENT_AREA_DEFAULT_MIN_INC 358 0
+#define POPUP_TEXT_PADDING_LEFT_SIZE 16
+#define POPUP_TEXT_PADDING_RIGHT_SIZE 16
+#define POPUP_TITLE_HEIGHT 68
+#define POPUP_TITLE_TEXT_SIZE 30
+#define POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT 3
+#define POPUP_LEFT_RIGHT_LINE_WIDTH 3
+#define POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT "83"
+#define POPUP_BUTTON_HEIGHT 83
+#define POPUP_BUTTON_CENTER_PADDING_SIZE 1
+#define POPUP_BODY_TEXT_SIZE 34
+#define POPUP_BODY_TEXT_PADDING_TOP_SIZE 8
+#define POPUP_BODY_TEXT_PADDING_BOTTOM_SIZE 8
+// Popup -Toast
+#define POPUP_TOAST_BG_WIDTH 360
+#define POPUP_TOAST_PADDING_BOTTOM_SIZE 0
+#define POPUP_TOAST_PADDING_LEFT_SIZE 16
+#define POPUP_TOAST_PADDING_RIGHT_SIZE 16
+#define POPUP_TOAST_PADDING_TOP_SIZE 25
+#define POPUP_TOAST_TEXT_PADDING_BOTTOM_SIZE 26
+#define POPUP_TOAST_TEXT_WIDTH 328
+#define POPUP_TOAST_TEXT_MAX_HEIGHT_INC 429
+#define POPUP_TOAST_ICON_TEXT_MAX_HEIGHT_INC 365
+#define POPUP_TOAST_TEXT_SIZE 36
+#define POPUP_TOAST_ICON_SIZE 56
+#define POPUP_TOAST_ICON_BOTTOM_PADDING_SIZE 8
+
+// ***************************** Progressbar **********************************/
+#define PROGRESS_BG_BORDER_SIZE 6 6 2 2
+#define PROGRESS_BAR_IMAGE_BORDER_SIZE 6 6 2 2
+#define PROGRESSBAR_HEIGHT 6
+#define PROGRESSBAR_PENDING_SIZE 288 6
+#define PROGRESSBAR_POPUP_PENDING_SIZE 258 6
+#define PROGRESSBAR_ACTIVITY_IMAGE_SIZE 84 84
+#define PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE 34 34
+
+// ***************************** Layout ***************************************/
+#define BUTTON_CONTROLLER_PADDING_LT_SIZE 8 8
+#define BUTTON_CONTROLLER_PADDING_RB_SIZE 8 8
+#define BUTTON_CONTROLLER_ICON_CENTER_SIZE 168 168
+#define BUTTON_CONTROLLER_ICON_SIZE 68 68
+// Layout - thumbnail
+#define BODY_THUMBNAIL_LAYOUT_SIZE 248 480
+#define BODY_THUMBNAIL_SIZE 216 288
+#define BODY_THUMBNAIL_PADDING_TOP_SIZE 66
+#define BODY_THUMBNAIL_PADDING_LEFT_SIZE 16
+#define BODY_THUMBNAIL_PADDING_RIGHT_SIZE 16
+#define BODY_THUMBNAIL_PADDING_CENTER_SIZE 14
+#define BODY_THUMBNAIL_TEXT_SIZE 36
+#define BODY_THUMBNAIL_TEXT_SUB_SIZE 28
+#define BODY_THUMBNAIL_1LINE_TEXT_HEIGHT 88
+#define BODY_THUMBNAIL_LINE_SIZE 2
+// Layout - No Item
+#define NOITEM_TEXT_SIZE 32
+#define NOITEM_LR_PADDING_SIZE 16
+#define NOITEM_IMAGE_SIZE 98
+#define NOITEM_IMAGE_PADDING_HEIGHT 12
+// Search bar
+#define SEARCHBAR_CANCEL_BUTTON_W_INC 34
+#define SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 10
+#define SEARCHBAR_H_INC 64
+#define SEARCHBAR_HEIGHT_INC 48
+#define SEARCHBAR_BASE_HEIGHT_INC 64
+#define SEARCHBAR_WIDTH_INC 120
+#define SEARCHBAR_TOP_PADDING_INC 8
+#define SEARCHBAR_BOTTOM_PADDING_INC 8
+#define SEARCHBAR_LEFT_PADDING_INC 16
+#define SEARCHBAR_RIGHT_PADDING_INC 16
+// ***************************** Slider ***************************************/
+#define SLIDER_IND_WIDTH 36
+#define SLIDER_IND_HEIGHT 36
+#define SLIDER_IND_MAX_WIDTH 46
+#define SLIDER_IND_MAX_HEIGHT 46
+#define SLIDER_BG_HEIGHT_INC 48
+#define SLIDER_ICON_PADDING_SIZE_INC 22 13
+#define SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC 59
+#define SLIDER_POPUP_SIZE_INC 86 79
+
+// ***************************** Radio ****************************************/
+
+// ***************************** Datetime *************************************/
+#define DATETIME_DATE_PICKER_BG_MIN_SIZE 300 290
+#define DATETIME_TIME_PICKER_BG_MIN_SIZE 300 290
+#define DATETIME_DATE_PICKER_BG_NO_BTN_MIN_SIZE 328 179
+#define DATETIME_TIME_PICKER_BG_NO_BTN_MIN_SIZE 300 179
+#define DATETIME_DATE_YEAR_FIELD_WIDTH 112
+#define DATETIME_DATE_MONTH_FIELD_WIDTH 90
+#define DATETIME_DATE_DATE_FIELD_WIDTH 84
+#define DATETIME_DATE_FIELD_PADDING_WIDTH 8
+#define DATETIME_TIME_HOUR_FIELD_WIDTH 84
+#define DATETIME_TIME_MINUTE_FIELD_WIDTH 84
+#define DATETIME_TIME_AMPM_FIELD_WIDTH 94
+#define DATETIME_TIME_LEFT_PADDING_MIN_WIDTH 51 //AM_PM_w(94)/2 + filed_padding(8)/2
+#define DATETIME_TIME_COLON_BG_MIN_SIZE 30
+#define DATETIME_TIME_COLON_IMAGE_SIZE 20 106
+#define DATETIME_FIELD_HEIGHT 106
+#define DATETIME_TOP_FOOT_BUTTON_SIZE 72 72
+#define DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE 84 92 // To increase the touch event area of top/foot button
+#define DATETIME_TEXT_DIGIT_SIZE_INC 35 52
+#define DATETIME_TEXT_STRING_SIZE_INC 35 47
+#define DATETIME_ENTRY_DIGIT_SIZE 52
+#define DATETIME_ENTRY_TEXT_SIZE 47
+// ***************************** Spiiner **************************************/
+
+// ***************************** Spiiner **************************************/
+#define SPINNER_HORIZONTAL_DEFAULT_BG_SIZE 336 87
+#define SPINNER_VERTICAL_DEFAULT_BG_SIZE 168 304
+#define SPINNER_BG_LEFT_RIGHT_SIZE 77 87
+#define SPINNER_ICON_LEFT_RIGHT_SIZE 58 58
+#define SPINNER_ICON_TOP_BOTTOM_SIZE 68 68
+#define SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE 168 168
+#define SPINNER_DRAGABLE_PART_MIN_SIZE 90 180
+#define SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE 1 87
+#define SPINNER_CONTENT_BG_SIZE 180 87
+#define SPINNER_CENTER_IMAGE_SIZE 48 48
+#define SPINNER_TEXT_TOP_PADDING_HEIGHT 2
+#define SPINNER_BOTTOM_PADDING_SIZE 180 16
+#define SPINNER_PICKERSTYLE_BG_SIZE 124 290
+#define SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE 72 45
+#define SPINNER_PICKERSTYLE_TEXT_HEIGHT 52
+#define SPINNER_PICKERSTYLE_FIELD_HEIGHT 90
+#define SPINNER_PICKERSTYLE_FIELD_WIDTH 84
+
+// ***************************** Entry ****************************************/
+#define ENTRY_TEXT_SIZE 34
+#define ENTRY_SELECTION_BLOCK_HANDLE_MIN_SIZE 51 79
+#define ENTRY_SELECTION_BLOCK_HANDLE_EDGE_WIDTH 4
+#define ENTRY_TOP_BOTTOM_PADDING_HEIGHT 7
+#define MAGNIFIER_HEIGHT_FIXED 90
+#define MAGNIFIER_WIDTH_FIXED 200
+#define MAGNIFIER_ARROW_HEIGHT_INC 10
+#define MAGNIFIER_LEFT_OFFSET_INC 7 2
+#define MAGNIFIER_RIGHT_OFFSET_INC 7 14
+#define ENTRY_EMOTICON_SIZE 26 26
+#define ENTRY_FOCUS_RECT_EDGE_INC 2
+
+#define ENTRY_EDITFIELD_TEXT_SIZE_INC 24
+#define ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 42 0
+#define ENTRY_EDITFIELD_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC 4 0
+
+#define ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC 24
+
+#define ENTRY_SEARCH_ICON_MIN_MAX_INC 34 34
+#define ENTRY_SEARCH_ICON_LEFT_PADDING_MIN_MAX_INC 0 0
+#define ENTRY_SEARCH_ICON_RIGHT_PADDING_MIN_MAX_INC 3 0
+#define ENTRY_SEARCH_CLEAR_BUTTON_PADDING_MIN_MAX_INC 38 0
+#define ENTRY_SEARCH_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC 4 0
+
+// ***************************** Label ****************************************/
+#define LABEL_FONT_SIZE_INC 34
+
+// PRESS
+#define PRESS_TIMER_VAL 0.1
+
+#define STYLE_TAG \
+ tag: "br" "\n";\
+ tag: "ps" "ps";\
+ tag: "tab" "\t";\
+ tag: "b" "+ font_weight=Bold";
+
+#define STYLE_TAG_MATCH \
+ tag: "match" "+ color=#ffffff color_class=T0212";
+
+#define STYLE_TAG_MATCH_FOCUS \
+ tag: "match" ;
+
+styles {
+ // Index_Scroller Styles
+ style { name: "Index_scroll_bar_select";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0311P text_class=T0311P ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "Index_scroll_bar_unselect";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0311 text_class=T0311 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "Index_scroll_1depth_popup";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=center color=#FFFFFF color_class=T0312P text_class=T0312P ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "Index_scroll_1depth_popup_left_align";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=left color=#FFFFFF color_class=T0312 text_class=T0312 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "Index_scroll_bar_2depth_popup";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_POPUP_TEXT_SIZE" align=right color=#FFFFFF color_class=T0312P text_class=T0312P ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "Index_scroll_bar_2depth_focus_bar";
+ base: "font=Tizen:style=Regular font_size="INDEX_SCROLL_HANDLE_ITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T0313 text_class=T0313 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ // Naviframe Style
+ style { name: "action_bar_title";
+ base: "font=Tizen:style=Bold font_size="ACTIONBAR_TEXT_SIZE" color=#FFFFFF color_class=T012 text_class=T012 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ // List Style
+ style { name: "list_text_groupindex_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_GROUPINDEX_TEXT_SIZE" color=#ffffff color_class=T0231 text_class=T0231 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_groupindex_sub_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_GROUPINDEX_TEXT_SIZE" color=#FFFFFF color_class=T0232 text_class=T0232 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_main_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_main_press";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211P text_class=T0211P ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_main_dim";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211D text_class=T0211D ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_press";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022P ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_dim";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022D text_class=T022D ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_multiline_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_multiline_dim";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022D text_class=T022D wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_sub_multiline_press";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022P text_class=T022P wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_multiline";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_multiline_2line_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211 text_class=T0211 wrap=mixed ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_text_multiline_2line_dim";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color=#ffffff color_class=T0211D text_class=T0211D wrap=mixed ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_noti_style";
+ base: "font=Tizen:style=Bold font_size="LIST_NOTI_TEXT_SIZE" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_sweep_style";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SWEEP_SIZE" align=center color=#ffffff color_class=T024 text_class=T024 ellipsis=1.0 align=center";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ // device_option
+ style { name: "list_device_option_sub_normal";
+ base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color=#ffffff color_class=T022 text_class=T022 ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "button_popup_device_option_2_text_normal";
+ base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" color=#FFFFFF color_class=T095 text_class=T095 wrap=mixed ellipsis=1.0";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "button_popup_device_option_2_text_press";
+ base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" align=center color=#FFFFFF color_class=T095P text_class=T095P ellipsis=1.0 wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ style { name: "button_popup_device_option_2_text_dim";
+ base: "font=Tizen:style=Regular align=center font_size="LIST_DEVICE_OPTION_TEXT_SUB_SIZE" align=center color=#FFFFFF color_class=T095D text_class=T095D ellipsis=1.0 wrap=mixed";
+ STYLE_TAG
+ STYLE_TAG_MATCH
+ }
+ // Nocontent styles
+ style { name: "nocontent_style";
+ base: "font=Tizen:style=Regular font_size="NOITEM_TEXT_SIZE" align=center color=#FFFFFF color_class=T071 text_class=T071 wrap=mixed ";
+ STYLE_TAG
+ }
+ // Button styles
+ style { name: "button_general_text_normal";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041 ellipsis=1.0 wrap=mixed text_class=T041";
+ STYLE_TAG
+ }
+ style { name: "button_general_text_dim";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041D ellipsis=1.0 wrap=mixed text_class=T041D";
+ STYLE_TAG
+ }
+ style { name: "button_general_text_press";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T041P ellipsis=1.0 wrap=mixed text_class=T041P";
+ STYLE_TAG
+ }
+ style { name: "button_popup_text_normal";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093 ellipsis=1.0 wrap=mixed text_class=T093";
+ STYLE_TAG
+ }
+ style { name: "button_popup_text_dim";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093D ellipsis=1.0 wrap=mixed text_class=T093D";
+ STYLE_TAG
+ }
+ style { name: "button_popup_text_press";
+ base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE" align=center color=#FFFFFF color_class=T093P ellipsis=1.0 wrap=mixed text_class=T093P";
+ STYLE_TAG
+ }
+ style { name: "check_text_normal";
+ base: "font=Tizen:style=Regular font_size="CHECK_TEXT_SIZE" align=left color=#FFFFFF color_class=T092 wrap=mixed ellipsis=1.0 text_class=T092";
+ }
+ style { name: "popup_title_style";
+ base: "font=Tizen:style=Bold font_size="POPUP_TITLE_TEXT_SIZE" color=#FFFFFF color_class=T091 ellipsis=1.0 text_class=T091";
+ STYLE_TAG
+ }
+ style { name: "popup_body_default_font_style";
+ base: "font=Tizen:style=Regular font_size="POPUP_BODY_TEXT_SIZE" color=#FFFFFF color_class=T092 wrap=mixed text_class=T092";
+ STYLE_TAG
+ }
+ style { name: "popup_toast_style";
+ base: "font=Tizen:style=Regular font_size="POPUP_TOAST_TEXT_SIZE" color=#FFFFFF color_class=T092 wrap=mixed text_class=T092";
+ STYLE_TAG
+ }
+ style { name: "popup_help_style";
+ base: "font=Tizen:style=Regular font_size="POPUP_HELP_TEXT_SIZE" color=#FFFFFF color_class=T141 ellipsis=1.0 wrap=mixed text_class=T141";
+ STYLE_TAG
+ }
+ style { name: "body_thumbnail_1line_style";
+ base: "font=Tizen:style=Bold font_size="BODY_THUMBNAIL_TEXT_SIZE" align=center color=#FFFFFF color_class=T0812 wrap=mixed ellipsis=1.0 text_class=T0812";
+ STYLE_TAG
+ }
+}
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_00.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_00.png
new file mode 100755
index 00000000..cb0c282f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_00.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_01.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_01.png
new file mode 100755
index 00000000..3f2b6e25
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_01.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_02.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_02.png
new file mode 100755
index 00000000..a2fb891f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_02.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_03.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_03.png
new file mode 100755
index 00000000..62ced12e
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_03.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_04.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_04.png
new file mode 100755
index 00000000..5be7c049
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_04.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_05.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_05.png
new file mode 100755
index 00000000..acd9a66f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_05.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_06.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_06.png
new file mode 100755
index 00000000..42cdf99b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_06.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_07.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_07.png
new file mode 100755
index 00000000..7f135264
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_07.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_08.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_08.png
new file mode 100755
index 00000000..38c7ff66
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_08.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_09.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_09.png
new file mode 100755
index 00000000..e55e6c37
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_09.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_10.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_10.png
new file mode 100755
index 00000000..a3c744f6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_10.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_11.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_11.png
new file mode 100755
index 00000000..fd075d91
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_11.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_12.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_12.png
new file mode 100755
index 00000000..6e4cfbf6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_12.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_13.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_13.png
new file mode 100755
index 00000000..16081d1e
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_13.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_14.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_14.png
new file mode 100755
index 00000000..e4dc6879
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_14.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_15.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_15.png
new file mode 100755
index 00000000..88b9c017
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_15.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_16.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_16.png
new file mode 100755
index 00000000..de5ab3f0
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_16.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_17.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_17.png
new file mode 100755
index 00000000..c3e9780a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_17.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_18.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_18.png
new file mode 100755
index 00000000..1ed3d2d7
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_18.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_19.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_19.png
new file mode 100755
index 00000000..147d76dc
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_19.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_20.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_20.png
new file mode 100755
index 00000000..cd0fe5ee
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_20.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_21.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_21.png
new file mode 100755
index 00000000..0349ef88
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_21.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_22.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_22.png
new file mode 100755
index 00000000..6afed411
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_22.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_23.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_23.png
new file mode 100755
index 00000000..aef9cb6a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_23.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_24.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_24.png
new file mode 100755
index 00000000..af0e30a0
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_24.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_25.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_25.png
new file mode 100755
index 00000000..8448029d
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_25.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_26.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_26.png
new file mode 100755
index 00000000..cecefcda
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_26.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_27.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_27.png
new file mode 100755
index 00000000..3e9e7f76
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_27.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_28.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_28.png
new file mode 100755
index 00000000..6d3668d9
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_28.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_29.png b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_29.png
new file mode 100755
index 00000000..8e93abf8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/Activity/tw_widget_actionbar_activity_29.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_left_holo_dark.png b/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_left_holo_dark.png
new file mode 100755
index 00000000..cb229246
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_left_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_right_holo_dark.png b/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_right_holo_dark.png
new file mode 100755
index 00000000..7f8c596c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Action_bar/tw_action_text_fadeout_right_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Body/indicator_on_focused.png b/2.3-wearable/HVGA/images/Body/indicator_on_focused.png
new file mode 100644
index 00000000..0c84b5f9
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Body/indicator_on_focused.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Body/indicator_on_focused_ef.png b/2.3-wearable/HVGA/images/Body/indicator_on_focused_ef.png
new file mode 100644
index 00000000..7e529133
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Body/indicator_on_focused_ef.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Body/indicator_on_normal.png b/2.3-wearable/HVGA/images/Body/indicator_on_normal.png
new file mode 100644
index 00000000..a8443170
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Body/indicator_on_normal.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Body/indicator_on_normal_ef.png b/2.3-wearable/HVGA/images/Body/indicator_on_normal_ef.png
new file mode 100644
index 00000000..e2b20f67
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Body/indicator_on_normal_ef.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_check_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_check_holo_dark.png
new file mode 100755
index 00000000..b93066eb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_check_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_holo_dark.png
new file mode 100755
index 00000000..b66d28cf
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_line_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_line_holo_dark.png
new file mode 100755
index 00000000..e76b0812
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_checkbox_line_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_next_depth_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_next_depth_holo_dark.png
new file mode 100755
index 00000000..5b3394ba
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_next_depth_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radio_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radio_holo_dark.png
new file mode 100644
index 00000000..0fc1881d
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radio_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_holo_dark.png
new file mode 100644
index 00000000..703cb0ce
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_line.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_line.png
new file mode 100644
index 00000000..1f92e884
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_radiobox_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_bg_holo.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_bg_holo.png
new file mode 100644
index 00000000..64425ba6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_bg_holo.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_handle_holo.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_handle_holo.png
new file mode 100644
index 00000000..6a5b9944
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_handle_holo.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_off_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_off_holo_dark.png
new file mode 100644
index 00000000..3e93ebdf
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_off_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_on_holo_dark.png b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_on_holo_dark.png
new file mode 100644
index 00000000..b82efb5c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Controller_icon/tw_btn_toggle_on_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-angry-shout.png b/2.3-wearable/HVGA/images/Emoticon/emo-angry-shout.png
new file mode 100644
index 00000000..9995fe8a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-angry-shout.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-angry.png b/2.3-wearable/HVGA/images/Emoticon/emo-angry.png
new file mode 100644
index 00000000..8ad74e19
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-angry.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-guilty.png b/2.3-wearable/HVGA/images/Emoticon/emo-guilty.png
new file mode 100644
index 00000000..d2894414
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-guilty.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-haha.png b/2.3-wearable/HVGA/images/Emoticon/emo-haha.png
new file mode 100644
index 00000000..a4c61b7c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-haha.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-half-smile.png b/2.3-wearable/HVGA/images/Emoticon/emo-half-smile.png
new file mode 100644
index 00000000..d1d07cc3
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-half-smile.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-happy.png b/2.3-wearable/HVGA/images/Emoticon/emo-happy.png
new file mode 100644
index 00000000..8cdfd564
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-happy.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-kiss.png b/2.3-wearable/HVGA/images/Emoticon/emo-kiss.png
new file mode 100644
index 00000000..0f148a87
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-kiss.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-little-bit-sorry.png b/2.3-wearable/HVGA/images/Emoticon/emo-little-bit-sorry.png
new file mode 100644
index 00000000..e053f281
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-little-bit-sorry.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-love.png b/2.3-wearable/HVGA/images/Emoticon/emo-love.png
new file mode 100644
index 00000000..78892a09
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-love.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-minimal-smile.png b/2.3-wearable/HVGA/images/Emoticon/emo-minimal-smile.png
new file mode 100644
index 00000000..aff28da5
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-minimal-smile.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-omg.png b/2.3-wearable/HVGA/images/Emoticon/emo-omg.png
new file mode 100644
index 00000000..94faeefc
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-omg.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-smile.png b/2.3-wearable/HVGA/images/Emoticon/emo-smile.png
new file mode 100644
index 00000000..7a011d37
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-smile.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-sorry.png b/2.3-wearable/HVGA/images/Emoticon/emo-sorry.png
new file mode 100644
index 00000000..bbfbe4e8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-sorry.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-surprised.png b/2.3-wearable/HVGA/images/Emoticon/emo-surprised.png
new file mode 100644
index 00000000..87a9d987
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-surprised.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-tongue-dangling.png b/2.3-wearable/HVGA/images/Emoticon/emo-tongue-dangling.png
new file mode 100644
index 00000000..3a7f0ac4
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-tongue-dangling.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-very-sorry.png b/2.3-wearable/HVGA/images/Emoticon/emo-very-sorry.png
new file mode 100644
index 00000000..a9daeb73
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-very-sorry.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-wink.png b/2.3-wearable/HVGA/images/Emoticon/emo-wink.png
new file mode 100644
index 00000000..2f22878a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-wink.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Emoticon/emo-worried.png b/2.3-wearable/HVGA/images/Emoticon/emo-worried.png
new file mode 100644
index 00000000..9bb78c86
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Emoticon/emo-worried.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Focus/tw_focused_effect.#.png b/2.3-wearable/HVGA/images/Focus/tw_focused_effect.#.png
new file mode 100644
index 00000000..78f6796b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Focus/tw_focused_effect.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/b_list_swipe-delete.png b/2.3-wearable/HVGA/images/List/b_list_swipe-delete.png
new file mode 100644
index 00000000..f1f5634f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/b_list_swipe-delete.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/b_list_swipe_left.#.png b/2.3-wearable/HVGA/images/List/b_list_swipe_left.#.png
new file mode 100755
index 00000000..68172266
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/b_list_swipe_left.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/b_list_swipe_right.#.png b/2.3-wearable/HVGA/images/List/b_list_swipe_right.#.png
new file mode 100755
index 00000000..ea131f4f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/b_list_swipe_right.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/tw_list_add_holo_dark.png b/2.3-wearable/HVGA/images/List/tw_list_add_holo_dark.png
new file mode 100644
index 00000000..bd24e0eb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/tw_list_add_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/tw_list_delete_holo_dark.png b/2.3-wearable/HVGA/images/List/tw_list_delete_holo_dark.png
new file mode 100644
index 00000000..ccbb7006
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/tw_list_delete_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/List/tw_list_setting_holo_dark.png b/2.3-wearable/HVGA/images/List/tw_list_setting_holo_dark.png
new file mode 100644
index 00000000..5b902230
--- /dev/null
+++ b/2.3-wearable/HVGA/images/List/tw_list_setting_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg.#.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg.#.png
new file mode 100755
index 00000000..a96fe0a3
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg_line.#.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg_line.#.png
new file mode 100755
index 00000000..bf286350
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bg_line.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail.png
new file mode 100755
index 00000000..6f4ddefe
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail_line.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail_line.png
new file mode 100755
index 00000000..00eb1744
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_bottom_tail_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail.png
new file mode 100755
index 00000000..4ea75475
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail_line.png b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail_line.png
new file mode 100755
index 00000000..0f3cb8f7
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/b_list_option_popup_top_tail_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Option popup/tw_focused_effect.#.png b/2.3-wearable/HVGA/images/Option popup/tw_focused_effect.#.png
new file mode 100755
index 00000000..78f6796b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Option popup/tw_focused_effect.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_edge.png b/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_edge.png
new file mode 100644
index 00000000..7259d14b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_edge.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_glow.png b/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_glow.png
new file mode 100644
index 00000000..5b150b06
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Bottom/bouncing_bottom_glow.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_edge.png b/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_edge.png
new file mode 100644
index 00000000..413fccdf
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_edge.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_glow.png b/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_glow.png
new file mode 100644
index 00000000..11015e41
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Left/bouncing_left_glow.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_edge.png b/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_edge.png
new file mode 100644
index 00000000..e14f69bb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_edge.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_glow.png b/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_glow.png
new file mode 100644
index 00000000..69ed30be
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Right/bouncing_right_glow.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_edge.png b/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_edge.png
new file mode 100644
index 00000000..6138e661
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_edge.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_glow.png b/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_glow.png
new file mode 100644
index 00000000..73b2fc9a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Overscrolling/Top/bouncing_top_glow.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_brightness.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_brightness.png
new file mode 100644
index 00000000..9ee71b06
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_brightness.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_mute.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_mute.png
new file mode 100644
index 00000000..913cff73
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_mute.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_outdoor.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_outdoor.png
new file mode 100644
index 00000000..f72aa5b9
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_outdoor.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_sound.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_sound.png
new file mode 100644
index 00000000..9f8e8477
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_sound.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_sound_off.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_sound_off.png
new file mode 100644
index 00000000..35ca2556
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_sound_off.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_device_options_vibrate.png b/2.3-wearable/HVGA/images/Popup/tw_device_options_vibrate.png
new file mode 100644
index 00000000..28c7d784
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_device_options_vibrate.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_ic_lock_power_off.png b/2.3-wearable/HVGA/images/Popup/tw_ic_lock_power_off.png
new file mode 100644
index 00000000..0ba3b27f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_ic_lock_power_off.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Popup/tw_ic_lock_restart.png b/2.3-wearable/HVGA/images/Popup/tw_ic_lock_restart.png
new file mode 100644
index 00000000..719d5574
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Popup/tw_ic_lock_restart.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_00.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_00.png
new file mode 100755
index 00000000..9128c262
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_00.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_01.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_01.png
new file mode 100755
index 00000000..96980a10
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_01.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_02.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_02.png
new file mode 100755
index 00000000..f7d40191
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_02.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_03.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_03.png
new file mode 100755
index 00000000..1287a103
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_03.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_04.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_04.png
new file mode 100755
index 00000000..fb6c817a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_04.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_05.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_05.png
new file mode 100755
index 00000000..c8c51e58
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_05.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_06.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_06.png
new file mode 100755
index 00000000..8d1cd972
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_06.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_07.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_07.png
new file mode 100755
index 00000000..50cea0fb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_07.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_08.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_08.png
new file mode 100755
index 00000000..29fdb42b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_08.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_09.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_09.png
new file mode 100755
index 00000000..f8f22d75
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_09.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_10.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_10.png
new file mode 100755
index 00000000..8b600ca6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_10.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_11.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_11.png
new file mode 100755
index 00000000..6a48174b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_11.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_12.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_12.png
new file mode 100755
index 00000000..f1192352
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_12.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_13.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_13.png
new file mode 100755
index 00000000..57f29b1d
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_13.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_14.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_14.png
new file mode 100755
index 00000000..dbb76bc6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_14.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_15.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_15.png
new file mode 100755
index 00000000..2d55d0ff
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_15.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_16.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_16.png
new file mode 100755
index 00000000..83b5bb13
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_16.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_17.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_17.png
new file mode 100755
index 00000000..9bea7853
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_17.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_18.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_18.png
new file mode 100755
index 00000000..ab9a03c3
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_18.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_19.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_19.png
new file mode 100755
index 00000000..5c4f5fc0
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_19.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_20.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_20.png
new file mode 100755
index 00000000..a0b9972a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_20.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_21.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_21.png
new file mode 100755
index 00000000..664251ef
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_21.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_22.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_22.png
new file mode 100755
index 00000000..e0aa870b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_22.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_23.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_23.png
new file mode 100755
index 00000000..c0546105
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_23.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_24.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_24.png
new file mode 100755
index 00000000..3a348c97
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_24.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_25.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_25.png
new file mode 100755
index 00000000..a9bcf747
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_25.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_26.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_26.png
new file mode 100755
index 00000000..6ab5e0dd
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_26.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_27.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_27.png
new file mode 100755
index 00000000..2adcfee8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_27.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_28.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_28.png
new file mode 100755
index 00000000..a0cf8c20
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_28.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_29.png b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_29.png
new file mode 100755
index 00000000..ac203099
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/Activity/tw_widget_activity_29.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate1_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate1_holo_dark.png
new file mode 100755
index 00000000..a0116ab5
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate1_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate2_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate2_holo_dark.png
new file mode 100755
index 00000000..e54361fa
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate2_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate3_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate3_holo_dark.png
new file mode 100755
index 00000000..465103c8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate3_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate4_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate4_holo_dark.png
new file mode 100755
index 00000000..cdad6059
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate4_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate5_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate5_holo_dark.png
new file mode 100755
index 00000000..b35108de
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_progressbar_indeterminate5_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark.png b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark.png
new file mode 100644
index 00000000..2c67a5dd
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark_press.png b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark_press.png
new file mode 100755
index 00000000..b5f624be
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_holo_dark_press.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_press_line.png b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_press_line.png
new file mode 100755
index 00000000..773f021e
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Progress/tw_scrubber_control_press_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Scroll/b_fast_scroll_rollover_bg_line.png b/2.3-wearable/HVGA/images/Scroll/b_fast_scroll_rollover_bg_line.png
new file mode 100755
index 00000000..af56b820
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Scroll/b_fast_scroll_rollover_bg_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Scroll/b_index_scroll_press_bg_line.png b/2.3-wearable/HVGA/images/Scroll/b_index_scroll_press_bg_line.png
new file mode 100755
index 00000000..bb60fd84
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Scroll/b_index_scroll_press_bg_line.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Search/b_list_search_icon.png b/2.3-wearable/HVGA/images/Search/b_list_search_icon.png
new file mode 100644
index 00000000..c22d12aa
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Search/b_list_search_icon.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Search/tw_ic_clear_search_api_holo_dark.png b/2.3-wearable/HVGA/images/Search/tw_ic_clear_search_api_holo_dark.png
new file mode 100644
index 00000000..b2a5007e
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Search/tw_ic_clear_search_api_holo_dark.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg.png b/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg.png
new file mode 100755
index 00000000..0beab95c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg_press.png b/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg_press.png
new file mode 100755
index 00000000..58f453f6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_button_controller_bg_press.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_button_controller_icon_mute.png b/2.3-wearable/HVGA/images/Slider/tw_button_controller_icon_mute.png
new file mode 100755
index 00000000..ce55a8c6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_button_controller_icon_mute.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_btn_bg.png b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_bg.png
new file mode 100755
index 00000000..17686077
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_bg.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_btn_ff.png b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_ff.png
new file mode 100755
index 00000000..10dede0b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_ff.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_btn_minus.png b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_minus.png
new file mode 100755
index 00000000..1a476ce3
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_minus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_btn_plus.png b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_plus.png
new file mode 100755
index 00000000..654d1838
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_plus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_btn_rw.png b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_rw.png
new file mode 100755
index 00000000..b9532b0f
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_btn_rw.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_module_close.png b/2.3-wearable/HVGA/images/Slider/tw_controller_module_close.png
new file mode 100755
index 00000000..daa4eb7e
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_module_close.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_module_ff.png b/2.3-wearable/HVGA/images/Slider/tw_controller_module_ff.png
new file mode 100755
index 00000000..2a104421
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_module_ff.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_module_minus.png b/2.3-wearable/HVGA/images/Slider/tw_controller_module_minus.png
new file mode 100755
index 00000000..e0c24337
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_module_minus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_module_plus.png b/2.3-wearable/HVGA/images/Slider/tw_controller_module_plus.png
new file mode 100755
index 00000000..6f8da290
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_module_plus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_controller_module_rw.png b/2.3-wearable/HVGA/images/Slider/tw_controller_module_rw.png
new file mode 100755
index 00000000..bb4e20fb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_controller_module_rw.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_brightness.png b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_brightness.png
new file mode 100755
index 00000000..8e114eb8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_brightness.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_outdoor.png b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_outdoor.png
new file mode 100755
index 00000000..d0f8971a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_outdoor.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_mute.png b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_mute.png
new file mode 100755
index 00000000..2e780b28
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_mute.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_sound.png b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_sound.png
new file mode 100755
index 00000000..8c103705
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_sound.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_vibrate.png b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_vibrate.png
new file mode 100755
index 00000000..97834df6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_number_controller_icon_ringtone_vibrate.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/Slider/tw_timepicker_num_bg_new.#.png b/2.3-wearable/HVGA/images/Slider/tw_timepicker_num_bg_new.#.png
new file mode 100755
index 00000000..2ba7f031
--- /dev/null
+++ b/2.3-wearable/HVGA/images/Slider/tw_timepicker_num_bg_new.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_colon.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_colon.png
new file mode 100644
index 00000000..cd5ce81b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_colon.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left.png
new file mode 100644
index 00000000..dfb39a35
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left_minus.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left_minus.png
new file mode 100644
index 00000000..f3c5bc87
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_left_minus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right.png
new file mode 100644
index 00000000..5124a019
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right_plus.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right_plus.png
new file mode 100644
index 00000000..954de220
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_dialbtn_right_plus.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_focus_line.#.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_focus_line.#.png
new file mode 100644
index 00000000..ea2b5f8a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_focus_line.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot.png
new file mode 100644
index 00000000..654a4f02
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot_effect.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot_effect.png
new file mode 100755
index 00000000..a9585e78
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_foot_effect.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_left_softbtn.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_left_softbtn.png
new file mode 100644
index 00000000..0a21eb43
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_left_softbtn.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new.#.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new.#.png
new file mode 100644
index 00000000..2ba7f031
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new_transparent.#.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new_transparent.#.png
new file mode 100755
index 00000000..cc200ee6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_bg_new_transparent.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_btn.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_btn.png
new file mode 100755
index 00000000..3837b7b1
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_num_btn.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_right_softbtn.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_right_softbtn.png
new file mode 100644
index 00000000..f62dbbae
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_right_softbtn.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top.png
new file mode 100644
index 00000000..8ef67184
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top_effect.png b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top_effect.png
new file mode 100755
index 00000000..012d0323
--- /dev/null
+++ b/2.3-wearable/HVGA/images/TimePicker/tw_timepicker_top_effect.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_1.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_1.png
new file mode 100644
index 00000000..b79d7970
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_1.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_2.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_2.png
new file mode 100644
index 00000000..9ed6029c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_bottom_2.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_1.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_1.png
new file mode 100644
index 00000000..d1176a79
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_1.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_2.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_2.png
new file mode 100644
index 00000000..203f09c8
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_handler_top_2.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_clipboard.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_clipboard.png
new file mode 100644
index 00000000..679f65e2
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_clipboard.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_copy.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_copy.png
new file mode 100644
index 00000000..0dedd0b9
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_copy.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_cut.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_cut.png
new file mode 100644
index 00000000..a6258938
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_cut.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_paste.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_paste.png
new file mode 100644
index 00000000..83196beb
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_paste.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_select_all.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_select_all.png
new file mode 100644
index 00000000..874b4d1b
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/b_popup_icon_select_all.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center.png
new file mode 100755
index 00000000..61ab8529
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center_reverse.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center_reverse.png
new file mode 100755
index 00000000..fb9829d1
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_center_reverse.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left.png
new file mode 100755
index 00000000..da293c39
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01.png
new file mode 100755
index 00000000..ba10440d
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01_reverse.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01_reverse.png
new file mode 100644
index 00000000..a8c92454
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_01_reverse.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_reverse.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_reverse.png
new file mode 100755
index 00000000..fe2f3c2c
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_left_reverse.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right.png
new file mode 100755
index 00000000..3ab7a430
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01.png
new file mode 100644
index 00000000..5f8b832a
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01_reverse.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01_reverse.png
new file mode 100644
index 00000000..345e6748
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_01_reverse.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_reverse.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_reverse.png
new file mode 100644
index 00000000..e34df2a0
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/copy&paste_Handler_right_reverse.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg.#.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg.#.png
new file mode 100644
index 00000000..10de92a0
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_effect.#.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_effect.#.png
new file mode 100644
index 00000000..ee794fd6
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_effect.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_line.#.png b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_line.#.png
new file mode 100644
index 00000000..d84c1372
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/Copy_Paste/tw_magnifier_bg_line.#.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_left.png b/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_left.png
new file mode 100755
index 00000000..f9f6a0fc
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_left.png
Binary files differ
diff --git a/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_right.png b/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_right.png
new file mode 100755
index 00000000..ecb521c7
--- /dev/null
+++ b/2.3-wearable/HVGA/images/temp/swipe/00_list_swipe_right.png
Binary files differ
diff --git a/2.3-wearable/HVGA/sounds/End_of_List.wav b/2.3-wearable/HVGA/sounds/End_of_List.wav
new file mode 100644
index 00000000..3ea5f123
--- /dev/null
+++ b/2.3-wearable/HVGA/sounds/End_of_List.wav
Binary files differ
diff --git a/2.3-wearable/HVGA/sounds/Focus.wav b/2.3-wearable/HVGA/sounds/Focus.wav
new file mode 100644
index 00000000..a92dee26
--- /dev/null
+++ b/2.3-wearable/HVGA/sounds/Focus.wav
Binary files differ
diff --git a/2.3-wearable/HVGA/sounds/List_scroll.wav b/2.3-wearable/HVGA/sounds/List_scroll.wav
new file mode 100644
index 00000000..41a19bc8
--- /dev/null
+++ b/2.3-wearable/HVGA/sounds/List_scroll.wav
Binary files differ
diff --git a/2.3-wearable/Makefile b/2.3-wearable/Makefile
new file mode 100644
index 00000000..113e1d44
--- /dev/null
+++ b/2.3-wearable/Makefile
@@ -0,0 +1,56 @@
+prefix ?= /usr
+INSTALL=install -c
+THEME_DIR=$(DESTDIR)/$(prefix)/share/elementary/themes
+EDJE_FLAGS_VERBOSE_ =
+EDJE_FLAGS_VERBOSE_0 =
+EDJE_FLAGS_VERBOSE_1 = -v
+SRC=tizen
+
+all:
+ for s in $(SIZE); do \
+ cp $(SRC).edc $(SRC)-$(TARGET)-$$s.edc; \
+ perl -pi -e "s/TIZEN_TMP_INC/\"$$s-inc.edc\"/g" $(SRC)-$(TARGET)-$$s.edc; \
+ edje_cc $(EDJE_FLAGS_$(V))\
+ -id ./$$s/images/\
+ -id ./$$s/images/Action_bar\
+ -id ./$$s/images/Action_bar/Activity\
+ -id ./$$s/images/Body\
+ -id ./$$s/images/Controller_icon\
+ -id ./$$s/images/List\
+ -id ./$$s/images/Overscrolling\
+ -id ./$$s/images/Overscrolling/Bottom\
+ -id ./$$s/images/Overscrolling/Left\
+ -id ./$$s/images/Overscrolling/Right\
+ -id ./$$s/images/Overscrolling/Top\
+ -id ./$$s/images/Option\ popup\
+ -id ./$$s/images/Popup\
+ -id ./$$s/images/Progress\
+ -id ./$$s/images/Progress/Activity\
+ -id ./$$s/images/Scroll\
+ -id ./$$s/images/Slider\
+ -id ./$$s/images/TimePicker\
+ -id ./$$s/images/Search\
+ -id ./$$s/images/Focus\
+ -id ./$$s/images/temp\
+ -id ./$$s/images/temp/Copy_Paste\
+ -id ./$$s/images/Emoticon\
+ -id ./$$s/images/temp/swipe\
+ -sd ./$$s/sounds -fd ../objects \
+ $(SRC)-$(TARGET)-$$s.edc $(SRC)-$(TARGET)-$$s.edj; \
+ done
+
+clean:
+ for s in $(SIZE); do \
+ rm -rf $(SRC)-$(TARGET)-$$s.*; \
+ done
+
+install:
+ mkdir -p $(THEME_DIR)
+ for s in $(SIZE); do \
+ $(INSTALL) $(SRC)-$(TARGET)-$$s.edj $(THEME_DIR); \
+ done
+
+uninstall:
+ rm -rf $(THEME_DIR)/
+
+distclean: clean
diff --git a/2.3-wearable/tizen.edc b/2.3-wearable/tizen.edc
new file mode 100644
index 00000000..676e767c
--- /dev/null
+++ b/2.3-wearable/tizen.edc
@@ -0,0 +1,183 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+// LICENSE NOTE:
+// This file (and only this one) is licenses under public-domain. The reason
+// is that this is meant to serve as a template for making your own themes and
+// Elementary's LGPL license is not intended to follow. The images used do come
+// under LGPL, but this file specifically for the structure of your theme is
+// public-domain. This means you can take, use, re-license and otherwise
+// have zero restrictions on using this file as a base for your theme.
+
+// theme configuration file for each theme (tizen, tizen-black, ...)
+
+// Default definitions
+#include TIZEN_TMP_INC
+
+externals {
+ external: "elm";
+}
+
+collections {
+ base_scale: 1.3;
+ plugins {
+ plugin {
+ name: "touch_sound";
+ source: "feedback";
+ param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
+ /* 2014.06.11 updated from libsvi(feedback)
+ Above plugin will run below external function:
+ int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
+
+ param1: feedback_type_e
+ FEEDBACK_TYPE_NONE = 0,
+ FEEDBACK_TYPE_SOUND = 1,
+ FEEDBACK_TYPE_VIBRATION,
+ FEEDBACK_TYPE_LED,
+ FEEDBACK_TYPE_END
+
+ * param2 enumeration:
+ FEEDBACK_PATTERN_TAP = 0,
+ FEEDBACK_PATTERN_SIP,
+ FEEDBACK_PATTERN_SIP_BACKSPACE,
+ FEEDBACK_PATTERN_SIP_FUNCTION,
+ FEEDBACK_PATTERN_SIP_FJKEY,
+ ...
+
+ * Fore information, please refer the libsvi libraries.
+ * git: slp-info.sec.samsung.net:29418/magnolia/framework/system/libsvi
+ * web: http://slp-info.sec.samsung.net/gerrit/plugins/gitiles/magnolia/framework/system/libsvi
+ */
+ }
+ }
+ sounds {
+ sample {
+ name: "access_focus_sound" RAW;
+ source: "Focus.wav";
+ }
+ }
+ sounds {
+ sample {
+ name: "access_scroll_sound" RAW;
+ source: "List_scroll.wav";
+ }
+ }
+ sounds {
+ sample {
+ name: "access_end_sound" RAW;
+ source: "End_of_List.wav";
+ }
+ }
+ #include "widgets/access.edc"
+ #include "widgets/bg.edc"
+ #include "widgets/conform.edc"
+ #include "widgets/ctxpopup.edc"
+ #include "widgets/button.edc"
+ #include "widgets/check.edc"
+ #include "widgets/datetime.edc"
+ #include "widgets/genlist.edc"
+ #include "widgets/genlist_decorate.edc"
+ #include "widgets/gengrid.edc"
+ #include "widgets/index.edc"
+ #include "widgets/layout.edc"
+ #include "widgets/naviframe.edc"
+ #include "widgets/popup.edc"
+ #include "widgets/progressbar.edc"
+ #include "widgets/radio.edc"
+ #include "widgets/scroller.edc"
+ #include "widgets/slider.edc"
+ #include "widgets/entry.edc"
+ #include "widgets/label.edc"
+ #include "widgets/spinner.edc"
+
+ color_classes {
+ color_class {
+ name: "transparent";
+ color: 0 0 0 0;
+ }
+ }
+
+ group { name: "elm/focus_highlight/top/default";
+ images {
+ image: "tw_focused_effect.#.png" COMP;
+ }
+ data {
+ item: "animate" "off";
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ visible: 0;
+ }
+ }
+ part { name: "shine";
+ type: IMAGE;
+ mouse_events: 0;
+ repeat_events: 1;
+ ignore_flags: ON_HOLD;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ image.normal: "tw_focused_effect.#.png";
+ color_class: "W201";
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "elm,action,focus,show";
+ source: "elm";
+ action: STATE_SET "show" 0.0;
+ target: "shine";
+ after: "show_end";
+ }
+ program { name: "show_end";
+ action: SIGNAL_EMIT "elm,action,focus,show,end" "";
+ }
+ program { name: "hide";
+ signal: "elm,action,focus,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "shine";
+ after: "hide_end";
+ }
+ program { name: "hide_end";
+ action: SIGNAL_EMIT "elm,action,focus,hide,end" "";
+ }
+ }
+ }
+
+// ***************************** Applications *************************************** //
+}
diff --git a/2.3-wearable/widgets/access.edc b/2.3-wearable/widgets/access.edc
new file mode 100644
index 00000000..69f210a3
--- /dev/null
+++ b/2.3-wearable/widgets/access.edc
@@ -0,0 +1,65 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+///////////////////////////////////////////////////////////////////////////////////////
+//
+// access
+//
+///////////////////////////////////////////////////////////////////////////////////////
+ group { name: "elm/access/base/default";
+ images {
+ image: "tw_focused_effect.#.png" COMP;
+ }
+ parts {
+ part { name: "base";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ image {
+ normal: "tw_focused_effect.#.png";
+ }
+ fill.smooth: 0;
+ color_class: "W201";
+ }
+ }
+ }
+ programs {
+ program { name: "access_focus_sound";
+ signal: "elm,action,focus,sound";
+ source: "elm";
+ action: PLAY_SAMPLE "access_focus_sound" 1.0;
+ }
+ program { name: "access_scroll_sound";
+ signal: "elm,action,scroll,sound";
+ source: "elm";
+ action: PLAY_SAMPLE "access_scroll_sound" 1.0;
+ }
+ program { name: "access_end_sound";
+ signal: "elm,action,end,sound";
+ source: "elm";
+ action: PLAY_SAMPLE "access_end_sound" 1.0;
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/bg.edc b/2.3-wearable/widgets/bg.edc
new file mode 100644
index 00000000..f1f0250c
--- /dev/null
+++ b/2.3-wearable/widgets/bg.edc
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+///////////////////////////////////////////////////////////////////////////////
+ group { name: "elm/bg/base/default";
+ parts {
+ part { name: "base";
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "B011";
+ }
+ }
+ part { name: "elm.swallow.rectangle";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.background";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "elm/bg/base/datetime";
+ inherit: "elm/bg/base/default";
+ parts {
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ }
+ } \ No newline at end of file
diff --git a/2.3-wearable/widgets/button.edc b/2.3-wearable/widgets/button.edc
new file mode 100644
index 00000000..388248bf
--- /dev/null
+++ b/2.3-wearable/widgets/button.edc
@@ -0,0 +1,2529 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ group { name: "elm/button/base/default";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 BUTTON_HEIGHT;
+ color_class: "W011";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W011D";
+ }
+ }
+ part { name: "padding_left_top";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel2.relative: 0.0 0.0;
+ min: BUTTON_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ min: BUTTON_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "icon_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
+ min: 0 0;
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ clip_to: "elm.swallow.content.clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
+ fixed: 1 0;
+ }
+ description { state: "visible" 0.0;
+ fixed: 1 1;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
+ }
+ description { state: "icononly" 0.0;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "icon_rect";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ text {
+ max: 1 0;
+ style: "button_general_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_general_text_press";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "F022L1i";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "F022L1iD";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "bg";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "bg";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "bg";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "icononly"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ }
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
+group { name: "elm/button/base/green";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color_class: W014;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: W014P;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: W014D;
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/orange";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color_class: W013;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: W013P;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: W013D;
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/red";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color_class: W012;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: W012P;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: W012D;
+ }
+ }
+ }
+}
+
+ group { name: "elm/button/base/popup";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ min: 0 POPUP_BUTTON_HEIGHT;
+ max: -1 POPUP_BUTTON_HEIGHT;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ min: 0 POPUP_BUTTON_HEIGHT;
+ max: -1 POPUP_BUTTON_HEIGHT;
+ color_class: "B065L4";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B065L4P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B065L4D";
+ }
+ }
+ part { name: "padding_left_top";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 0.0;
+ to: "bg";
+ }
+ min: BUTTON_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "padding_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 1.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "bg";
+ }
+ rel2.to: "bg";
+ min: BUTTON_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "icon_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
+ min: 0 0;
+ fixed: 1 1;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ clip_to: "elm.swallow.content.clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
+ fixed: 1 0;
+ }
+ description { state: "visible" 0.0;
+ fixed: 1 1;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
+ }
+ description { state: "icononly" 0.0;
+ min: BUTTON_ICON_SIZE;
+ max: BUTTON_ICON_SIZE;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "icon_rect";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
+ text {
+ max: 1 0;
+ style: "button_popup_text_normal";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_popup_text_dim";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.style: "button_popup_text_press";
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "B0522";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B0522D";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "base";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "base";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "base";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "icononly"))
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ }
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "icon_rect";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.swallow.content.clip";
+ target: "elm.text";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/naviframe/title_icon";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "button_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_NEXT_BTN_SIZE;
+ max: ACTIONBAR_NEXT_BTN_SIZE;
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "B0511P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "elm.icon.clipper";
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.icon.clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "B052L1";
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ color_class: "B052L1D";
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_click";
+ signal: "mouse,down,1";
+ source: "over2";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_click1");
+ }
+ }
+ }
+ program { name: "button_click1";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ after: "button_click_anim";
+ }
+ program { name: "button_click_anim";
+ script {
+ set_state(PART:"elm.icon.clipper", "clicked", 0.0);
+ set_state(PART:"button_bg", "pressed", 0.0);
+ }
+ }
+ program { name: "button_double_click";
+ signal: "mouse,down,1,double";
+ source: "over2";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_click_anim");
+ }
+ }
+ }
+ program { name: "button_unpress";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ after: "button_unclick_anim";
+ }
+ program { name: "button_unclick_anim";
+ action: STATE_SET "default" 0.0;
+ target: "button_bg";
+ }
+ program { name: "button_mouseout_clicked";
+ signal: "mouse,up,1";
+ source: "over3";
+ script {
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ set_state(PART:"elm.icon.clipper", "default", 0.0);
+ run_program(PROGRAM:"button_unpress");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "over2";
+ script {
+ if (get_int(multi_down) == 0) {
+ run_program(PROGRAM:"play_sound");
+ run_program(PROGRAM:"button_unclick3");
+ }
+ }
+ }
+ program { name: "play_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "button_unclick3";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ target: "elm.icon.clipper";
+ target: "button_bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ target: "elm.icon.clipper";
+ target: "button_bg";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
+group { name: "elm/button/base/nextdepth";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ images {
+ image: "tw_btn_next_depth_holo_dark.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_NEXTDEPTH_SIZE;
+ max: BUTTON_NEXTDEPTH_SIZE;
+ fixed: 1 1;
+ image.normal: "tw_btn_next_depth_holo_dark.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W015P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W015D";
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "bg";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "bg";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "bg";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/plus";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ images {
+ image: "tw_controller_btn_bg.png" COMP;
+ image: "tw_controller_btn_plus.png" COMP;
+ }
+ parts {
+ part { name: "btn_bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_controller_btn_bg.png";
+ color_class: "W181L2";
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_PLUS_SIZE;
+ max: BUTTON_PLUS_SIZE;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ image.normal: "tw_controller_btn_plus.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"btn_bg", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"btn_bg", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "event";
+ target: "bg";
+ target: "btn_bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event";
+ target: "bg";
+ target: "btn_bg";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/minus";
+ inherit: "elm/button/base/plus";
+ images {
+ image: "tw_controller_btn_minus.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_PLUS_SIZE;
+ max: BUTTON_PLUS_SIZE;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ image.normal: "tw_controller_btn_minus.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/controller_plus";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ images {
+ image: "tw_timepicker_dialbtn_right_plus.png" COMP;
+ image: "tw_timepicker_dialbtn_right.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_dialbtn_right.png";
+ color_class: "W0821L11";
+ }
+ description { state: "pressed" 0.0;
+ image.normal: "tw_timepicker_dialbtn_right.png";
+ color_class: "W0821L11P";
+ }
+ }
+ part { name: "icon_image";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_timepicker_dialbtn_right_plus.png";
+ color_class: "W0821L1";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "event";
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event";
+ target: "bg";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/controller_minus";
+ inherit: "elm/button/base/controller_plus";
+ images {
+ image: "tw_timepicker_dialbtn_left_minus.png" COMP;
+ image: "tw_timepicker_dialbtn_left.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_dialbtn_left.png";
+ color_class: "W0821L11";
+ }
+ description { state: "pressed" 0.0;
+ image.normal: "tw_timepicker_dialbtn_left.png";
+ color_class: "W0821L11P";
+ }
+ }
+ part { name: "icon_image";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_timepicker_dialbtn_left_minus.png";
+ color_class: "W0821L1";
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/fast_forward";
+ inherit: "elm/button/base/plus";
+ images {
+ image: "tw_controller_btn_ff.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_controller_btn_ff.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/rewind";
+ inherit: "elm/button/base/fast_forward";
+ images {
+ image: "tw_controller_btn_rw.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_controller_btn_rw.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ }
+}
+
+group { name: "elm/button/base/list_divider_btn";
+ inherit: "elm/button/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ color_class: "B041P";
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE -1;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1.to: "bg";
+ rel2 {
+ to: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE -1;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ }
+ }
+ part { name: "elm.swallow.content";
+ clip_to: "elm.swallow.content.clip";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_DIVIDER_BTN_ICON_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_ICON_SIZE -1;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ visible: 1;
+ rel1 {
+ to: "left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "right_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "icononly" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content.clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "F022L1i";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "F022L1iD";
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ repeat_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "pressed", 0.0);
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bg", "default", 0.0);
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "event";
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event";
+ target: "bg";
+ }
+ }
+}
+
+ group { name: "elm/button/base/editfield_clear";
+ alias: "elm/button/base/search_clear";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ images {
+ image: "tw_ic_clear_search_api_holo_dark.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
+ max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
+ }
+ }
+ part { name: "button_image";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "clear_button";
+ rel2.to: "clear_button";
+ color_class: "transparent";
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B041P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "clear_button";
+ scale: 1;
+ mouse_events: 0;
+ clip_to: "clear_button.clipper";
+ description { state: "default" 0.0;
+ min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
+ max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
+ align: 0.5 0.5;
+ image.normal: "tw_ic_clear_search_api_holo_dark.png";
+ }
+ }
+ part { name: "clear_button.clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "B085";
+ }
+ description { state: "pressed" 0.0;
+ color_class: "B085P";
+ }
+ description { state: "disabled" 0.0;
+ color_class: "B085D";
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_press";
+ signal: "mouse,down,1*";
+ source: "over2";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press2");
+ }
+ }
+ }
+ program { name: "button_press2";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ after: "button_press_anim";
+ }
+ program { name: "button_press_anim";
+ action: STATE_SET "pressed" 0.0;
+ target: "button_image";
+ target: "clear_button.clipper";
+ }
+ program { name: "button_unpress";
+ signal: "mouse,up,1*";
+ source: "over3";
+ script {
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress2");
+ run_program(PROGRAM:"button_unpress_anim");
+ }
+ }
+ }
+ program { name: "button_unpress2";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ }
+ program { name: "button_unpress_anim";
+ action: STATE_SET "default" 0.0;
+ target: "button_image";
+ target: "clear_button.clipper";
+ }
+ program { name: "button_click";
+ signal: "mouse,clicked,1";
+ source: "over2";
+ script {
+ if (get_int(multi_down) == 0) {
+ run_program(PROGRAM:"play_sound");
+ run_program(PROGRAM:"button_click2");
+ }
+ }
+ }
+ program { name: "play_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "button_click2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "button_image";
+ target: "disabler";
+ target: "clear_button.clipper";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "button_image";
+ target: "disabler";
+ target: "clear_button.clipper";
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+#define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
+ group { name: "elm/button/base/"style_name; \
+ data { \
+ item: "focus_highlight" "on"; \
+ } \
+ images { \
+ image: image_normal COMP; \
+ } \
+ script { \
+ public mouse_down = 0; \
+ public multi_down = 0; \
+ } \
+ parts { \
+ part { name: "elm.swallow.content"; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ } \
+ } \
+ part { name: "focus_image"; \
+ scale: 1; \
+ mouse_events: 0; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ image.normal: image_normal; \
+ fill.smooth: 0; \
+ color_class: "W201"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "over2"; \
+ type: RECT; \
+ repeat_events: 1; \
+ ignore_flags: ON_HOLD; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "over3"; \
+ type: RECT; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ } \
+ programs { \
+ program { name: "button_press"; \
+ signal: "mouse,down,1*"; \
+ source: "over2"; \
+ script { \
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0)) \
+ { \
+ set_int(mouse_down, 1); \
+ emit("elm,action,press", ""); \
+ } \
+ } \
+ } \
+ program { name: "button_unpress"; \
+ signal: "mouse,up,1*"; \
+ source: "over3"; \
+ script { \
+ if (get_int(mouse_down) == 1) \
+ { \
+ set_int(mouse_down, 0); \
+ emit("elm,action,unpress", ""); \
+ } \
+ } \
+ } \
+ program { name: "button_click"; \
+ signal: "mouse,clicked,1"; \
+ source: "over2"; \
+ script { \
+ if (get_int(multi_down) == 0) { \
+ emit("elm,action,click", ""); \
+ } \
+ } \
+ } \
+ program { name: "action_focus"; \
+ signal: "elm,action,focus_highlight,show"; \
+ source: "elm"; \
+ action: STATE_SET "focused" 0.0; \
+ target: "focus_image"; \
+ } \
+ program { name: "action_unfocus"; \
+ signal: "elm,action,focus_highlight,hide"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_image"; \
+ } \
+ program { \
+ name: "multi_down"; \
+ signal: "elm,action,multi,down"; \
+ source: "elm"; \
+ script { \
+ set_int(multi_down, 1); \
+ } \
+ } \
+ program { \
+ name: "multi_up"; \
+ signal: "elm,action,multi,up"; \
+ source: "elm"; \
+ script { \
+ set_int(multi_down, 0); \
+ } \
+ } \
+ } \
+ } \
+
+BUTTON_DEFAULT_FOCUS_STYLES("focus", "tw_focused_effect.#.png")
+
+ group { name: "elm/button/base/datetime/top_btn";
+ images {
+ image: "tw_timepicker_top.png" COMP;
+ image: "tw_timepicker_top_effect.png" COMP;
+ }
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "top_button_normal";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: DATETIME_TOP_FOOT_BUTTON_SIZE;
+ max: DATETIME_TOP_FOOT_BUTTON_SIZE;
+ image.normal: "tw_timepicker_top.png";
+ color_class: "W089";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W089P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W263D";
+ }
+ }
+ part { name: "top_button_effect";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_top_effect.png";
+ color_class: "W211";
+ rel1.to: "top_button_normal";
+ rel2.to: "top_button_normal";
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_press";
+ signal: "mouse,down,1*";
+ source: "over2";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press2");
+ }
+ }
+ }
+ program { name: "button_press2";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ after: "button_press_state_set";
+ }
+ program { name: "button_press_state_set";
+ action: STATE_SET "pressed" 0.0;
+ target: "top_button_normal";
+ target: "top_button_effect";
+ }
+ program { name: "button_unpress";
+ signal: "mouse,up,1*";
+ source: "over3";
+ script {
+ if (get_int(mouse_down) == 1)
+ {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress2");
+ run_program(PROGRAM:"button_unpress_state_set");
+ }
+ }
+ }
+ program { name: "button_unpress2";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ }
+ program { name: "button_unpress_state_set";
+ action: STATE_SET "default" 0.0;
+ target: "top_button_normal";
+ target: "top_button_effect";
+ }
+ program { name: "button_click";
+ signal: "mouse,clicked,1";
+ source: "over2";
+ script {
+ if (get_int(multi_down) == 0) {
+ run_program(PROGRAM:"play_sound");
+ run_program(PROGRAM:"button_click2");
+ }
+ }
+ }
+ program { name: "action_unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "button_unpress_state_set";
+ }
+ program { name: "play_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "button_click2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "access_pressed";
+ signal: "elm,action,anim,activate";
+ source: "elm";
+ action: STATE_SET "pressed" 0.0;
+ target: "top_button_normal";
+ after: "access_pressed_anim";
+ }
+ program { name: "access_pressed_anim";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.2;
+ target: "top_button_normal";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "top_button_normal";
+ target: "top_button_effect";
+ target: "disabler";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "top_button_normal";
+ target: "top_button_effect";
+ target: "disabler";
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/datetime/foot_btn";
+ inherit: "elm/button/base/datetime/top_btn";
+ images {
+ image: "tw_timepicker_foot.png" COMP;
+ image: "tw_timepicker_foot_effect.png" COMP;
+ }
+ parts {
+ part { name: "top_button_normal";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: DATETIME_TOP_FOOT_BUTTON_SIZE;
+ max: DATETIME_TOP_FOOT_BUTTON_SIZE;
+ image.normal: "tw_timepicker_foot.png";
+ color_class: "W089";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W089P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W089";
+ }
+ }
+ part { name: "top_button_effect";
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_foot_effect.png";
+ rel1.to: "top_button_normal";
+ rel2.to: "top_button_normal";
+ color_class: "W211";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ /******************* SPINNER BUTTONS STYLES **********************/
+
+ group { name: "elm/button/base/spinner/increase/default";
+ alias: "elm/button/base/spinner/inc_button";
+ alias: "elm/button/base/spinner/increase/datetime";
+ data.item: "focus_highlight" "on";
+ images {
+ image: "tw_timepicker_top.png" COMP;
+ image: "tw_timepicker_top_effect.png" COMP;
+ }
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "arrow.image.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ align: 0.5 0.0;
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ }
+ }
+ part { name: "arrow.image";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "arrow.image.bg";
+ rel2.to: "arrow.image.bg";
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ color_class: "W089";
+ image.normal: "tw_timepicker_top.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W089P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W263D";
+ }
+ }
+ part { name: "arrow.effect";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "arrow.image";
+ rel2.to: "arrow.image";
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ image.normal: "tw_timepicker_top_effect.png";
+ color_class: "W211";
+ }
+ }
+ part { name: "over";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_press";
+ signal: "mouse,down,1*";
+ source: "over";
+ script {
+ if ((get_int(multi_down) == 0) &&
+ (get_int(mouse_down) == 0)) {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press2");
+ }
+ }
+ }
+ program { name: "button_press2";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ after: "button_press_anim";
+ }
+ program { name: "button_press_anim";
+ action: STATE_SET "pressed" 0.0;
+ target: "arrow.image";
+ }
+ program { name: "button_unpress";
+ signal: "mouse,up,1*";
+ source: "over";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress2");
+ run_program(PROGRAM:"button_unpress_anim");
+ }
+ }
+ }
+ program { name: "button_unpress2";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ }
+ program { name: "button_unpress_anim";
+ action: STATE_SET "default" 0.0;
+ target: "arrow.image";
+ }
+ program { name: "button_click";
+ signal: "mouse,clicked,1";
+ source: "over";
+ script {
+ if (get_int(multi_down) == 0) {
+ run_program(PROGRAM:"play_sound");
+ run_program(PROGRAM:"button_click2");
+ }
+ }
+ }
+ program { name: "play_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "action_unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "button_unpress_anim";
+ }
+ program { name: "action_pressed";
+ signal: "elm,action,pressed";
+ source: "elm";
+ after: "button_press_anim";
+ }
+ program { name: "button_click2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "access_pressed";
+ signal: "elm,action,anim,activate";
+ source: "elm";
+ action: STATE_SET "pressed" 0.0;
+ target: "arrow.image";
+ after: "access_pressed_anim";
+ }
+ program { name: "access_pressed_anim";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.1;
+ target: "arrow.image";
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/spinner/decrease/default";
+ alias: "elm/button/base/spinner/dec_button";
+ alias: "elm/button/base/spinner/decrease/datetime";
+ inherit: "elm/button/base/spinner/increase/default";
+ images {
+ image: "tw_timepicker_foot.png" COMP;
+ image: "tw_timepicker_foot_effect.png" COMP;
+ }
+ parts {
+ part { name: "arrow.image";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "arrow.image.bg";
+ rel2.to: "arrow.image.bg";
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ color_class: "W089";
+ image.normal: "tw_timepicker_foot.png";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W089P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W263D";
+ }
+ }
+ part { name: "arrow.effect";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "arrow.image";
+ rel2.to: "arrow.image";
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ image.normal: "tw_timepicker_foot_effect.png";
+ color_class: "W211";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/button/base/spinner/default";
+ alias: "elm/button/base/spinner/vertical";
+ images {
+ image: "tw_timepicker_num_bg_new_transparent.#.png" COMP;
+ }
+ script {
+ public button_state;
+ public button_disabled;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new_transparent.#.png";
+ min: SPINNER_PICKERSTYLE_FIELD_WIDTH SPINNER_PICKERSTYLE_FIELD_HEIGHT;
+ color_class: "W0811";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W0812";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W262D";
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "T051";
+ min: 0 SPINNER_PICKERSTYLE_TEXT_HEIGHT;
+ max: -1 SPINNER_PICKERSTYLE_TEXT_HEIGHT;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ text {
+ min: 0 0;
+ max: 1 0;
+ text_class: "T051";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0 0 ;
+ color_class: "T051D";
+ text.text_class: "T051D";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: "T051";
+ text.text_class: "T051";
+ }
+ }
+ part { name: "over";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_click";
+ signal: "mouse,clicked,1";
+ source: "over";
+ script {
+ run_program(PROGRAM:"button_click2");
+ }
+ }
+ program { name: "button_click2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ target: "elm.text";
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ target: "elm.text";
+ target: "bg";
+ }
+ program { name: "select";
+ signal: "elm,state,selected";
+ source: "elm";
+ action: STATE_SET "on" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ program { name: "unselect";
+ signal: "elm,state,unselected";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "elm.text";
+ }
+ }
+ }
+ group { name: "elm/button/base/spinner/datetime";
+ inherit: "elm/button/base/spinner/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "T094";
+ min: 0 SPINNER_PICKERSTYLE_TEXT_HEIGHT;
+ max: -1 SPINNER_PICKERSTYLE_TEXT_HEIGHT;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ text {
+ min: 0 0;
+ max: 1 0;
+ text_class: "T094";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0 0 ;
+ color_class: "T094D";
+ text.text_class: "T094D";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: "T094";
+ text.text_class: "T094";
+ }
+ }
+ }
+ }
+ /* This transparent button style is used by applications which use webview. */
+ group{ name: "elm/button/base/transparent";
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "event";
+ type: RECT;
+ scale: 1;
+ /* Do not remove the following line.
+ * elm.swallow.content part should receive mouse events. */
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "pressed";
+ signal: "mouse,down,1*";
+ source: "event";
+ script {
+ if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
+ {
+ set_int(mouse_down, 1);
+ run_program(PROGRAM:"button_press1");
+ }
+ }
+ }
+ program { name: "button_press1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ emit("elm,action,press", "");
+ }
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ run_program(PROGRAM:"button_unpress1");
+ }
+ }
+ }
+ program { name: "button_unpress1";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ emit("elm,action,unpress", "");
+ }
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ new st[31];
+ new Float:vl;
+ if (get_int(multi_down) == 0) {
+ get_state(PART:"bg", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ run_program(PROGRAM:"touch_sound");
+ emit("elm,action,click", "");
+ }
+ }
+ }
+ }
+ program { name: "touch_sound";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "bg";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ program { name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program { name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+ }
+
diff --git a/2.3-wearable/widgets/check.edc b/2.3-wearable/widgets/check.edc
new file mode 100644
index 00000000..30cec4ba
--- /dev/null
+++ b/2.3-wearable/widgets/check.edc
@@ -0,0 +1,1205 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+group { name: "elm/check/base/default";
+ images {
+ image: "tw_btn_checkbox_holo_dark.png" COMP;
+ image: "tw_btn_check_holo_dark.png" COMP;
+ image: "tw_btn_checkbox_line_holo_dark.png" COMP;
+ }
+ script {
+ public check_state;
+ public check_disabled;
+ public check_visible;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: CHECK_SIZE;
+ max: CHECK_SIZE;
+ image.normal: "tw_btn_checkbox_holo_dark.png";
+ color_class: "W012L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1D";
+ }
+ }
+ part { name: "check";
+ clip_to: "sequence_clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_check_holo_dark.png";
+ visible: 0;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "W012L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W012L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W012L2D";
+ }
+ }
+ part { name: "outline";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_checkbox_line_holo_dark.png";
+ color_class: "W231";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W231P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W231D";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ }
+ part { name: "sequence_clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ color: 255 255 255 255;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel2 {
+ relative: 1.0 1.0;
+ to: "bg";
+ }
+ }
+ }
+ part { name: "event";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "show";
+ script {
+ set_int(check_visible, 1);
+ }
+ }
+ program { name: "hide";
+ signal: "hide";
+ script {
+ set_int(check_visible, 0);
+ }
+ }
+ program { name: "click";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ emit("elm,action,check,toggle", "");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "unpressed2";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "event";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "pressed", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "pressed2";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "pressed", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "check_on";
+ signal: "elm,state,check,on";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1)
+ {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_state(PART:"check", "disabled", 0.0);
+ set_state(PART:"sequence_clip", "visible", 0.0);
+ }
+ else if (get_int(check_visible) == 1)
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ run_program(PROGRAM:"check_show_effect");
+ run_program(PROGRAM:"check_draw_effect");
+ }
+ else if (get_int(check_visible) == 0)
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_state(PART:"check", "on", 0.0);
+ set_state(PART:"sequence_clip", "visible", 0.0);
+ }
+ set_int(check_state, 1);
+ }
+ }
+ program { name: "check_off";
+ signal: "elm,state,check,off";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1)
+ {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ }
+ else
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"sequence_clip", "default", 0.0);
+ set_int(check_state, 0);
+ }
+ }
+ program { name: "check_show_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.233;
+ target: "check";
+ }
+ program { name: "check_draw_effect";
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.267;
+ target: "sequence_clip";
+ }
+ program { name: "focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "outline";
+ }
+ program { name: "unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "outline";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "disabled", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_int(check_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_int(check_disabled, 0);
+ }
+ }
+ }
+}
+
+// List Check Style
+
+group { name: "elm/check/base/list";
+ images {
+ image: "tw_btn_checkbox_holo_dark.png" COMP;
+ image: "tw_btn_check_holo_dark.png" COMP;
+ image: "tw_btn_checkbox_line_holo_dark.png" COMP;
+ }
+ script {
+ public check_state;
+ public check_disabled;
+ public check_visible;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: CHECK_SIZE;
+ max: CHECK_SIZE;
+ image.normal: "tw_btn_checkbox_holo_dark.png";
+ color_class: "W012L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1D";
+ }
+ }
+ part { name: "check";
+ clip_to: "sequence_clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_check_holo_dark.png";
+ visible: 0;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "W012L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W012L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W012L2D";
+ }
+ }
+ part { name: "outline";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_checkbox_line_holo_dark.png";
+ color_class: "W231";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W231P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W231D";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ }
+ part { name: "sequence_clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ color: 255 255 255 255;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel2 {
+ relative: 1.0 1.0;
+ to: "bg";
+ }
+ }
+ }
+ part { name: "event";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "show";
+ script {
+ set_int(check_visible, 1);
+ }
+ }
+ program { name: "hide";
+ signal: "hide";
+ script {
+ set_int(check_visible, 0);
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "unpressed2";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "event";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "pressed", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "pressed2";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "pressed", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "check_on";
+ signal: "elm,state,check,on";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1)
+ {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_state(PART:"check", "disabled", 0.0);
+ set_state(PART:"sequence_clip", "visible", 0.0);
+ }
+ else if (get_int(check_visible) == 1)
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ run_program(PROGRAM:"check_show_effect");
+ run_program(PROGRAM:"check_draw_effect");
+ }
+ else if (get_int(check_visible) == 0)
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_state(PART:"check", "on", 0.0);
+ set_state(PART:"sequence_clip", "visible", 0.0);
+ }
+ set_int(check_state, 1);
+ }
+ }
+ program { name: "check_off";
+ signal: "elm,state,check,off";
+ source: "elm";
+ script {
+ if (get_int(check_disabled) == 1)
+ {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ }
+ else
+ {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"sequence_clip", "default", 0.0);
+ set_int(check_state, 0);
+ }
+ }
+ program { name: "check_show_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.233;
+ target: "check";
+ }
+ program { name: "check_draw_effect";
+ action: STATE_SET "visible" 0.0;
+ transition: LINEAR 0.267;
+ target: "sequence_clip";
+ }
+ program { name: "focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "outline";
+ }
+ program { name: "unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "outline";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "disabled", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_int(check_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(check_state) == 1)
+ set_state(PART:"check", "on", 0.0);
+ else
+ set_state(PART:"check", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_int(check_disabled, 0);
+ }
+ }
+ }
+}
+
+
+group { name: "elm/check/base/list_divider";
+ inherit: "elm/check/base/default";
+ parts{
+ part { name: "elm.padding.left";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ min: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_PADDING_LEFT_SIZE -1;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "elm.padding.right";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 1.0 0.5;
+ min: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_PADDING_RIGHT_SIZE -1;
+ rel1.relative: 1.0 0.0;
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: CHECK_SIZE;
+ max: CHECK_SIZE;
+ image.normal: "tw_btn_checkbox_holo_dark.png";
+ color_class: "W012L1";
+ rel1.to: "elm.padding.left";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "elm.padding.right";
+ rel2.relative: 0.0 1.0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W012L1D";
+ }
+ }
+ }
+}
+
+group { name: "elm/check/base/on&off";
+ images {
+ image: "tw_btn_toggle_bg_holo.png" COMP;
+ image: "tw_btn_toggle_on_holo_dark.png" COMP;
+ image: "tw_btn_toggle_off_holo_dark.png" COMP;
+ image: "tw_btn_toggle_handle_holo.png" COMP;
+ }
+ script {
+ public is_rtl = 0;
+ public is_drag = 0;
+ public was_drag = 0;
+ public check_on = 0;
+ public check_disabled = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: CHECK_TOGGLE_SIZE;
+ max: CHECK_TOGGLE_SIZE;
+ }
+ }
+ part { name: "bg_image";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: CHECK_TOGGLE_SIZE;
+ max: CHECK_TOGGLE_SIZE;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_toggle_bg_holo.png";
+ color_class: "W014L2";
+ }
+ description { state: "on_pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L1P";
+ }
+ description { state: "on_disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L1D";
+ }
+ description { state: "off_pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L2P";
+ }
+ description { state: "off_disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L2D";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L1";
+ }
+ }
+ part { name: "drag_container";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "button_handler";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: CHECK_TOGGLE_THUMB_SIZE;
+ max: CHECK_TOGGLE_THUMB_SIZE;
+ rel1.to: "button";
+ rel2.to: "button";
+ image.normal: "tw_btn_toggle_handle_holo.png";
+ color_class: "W014L4";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L3";
+ }
+ description { state: "on_pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L3P";
+ }
+ description { state: "on_disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L3D";
+ }
+ description { state: "off_pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L4P";
+ }
+ description { state: "off_disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L4D";
+ }
+ }
+ part { name: "opacity_clip_button";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "button";
+ rel2.to: "button";
+ color: 255 255 255 255;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "button";
+ scale: 1;
+ clip_to: "clipper";
+ clip_to: "opacity_clip_button";
+ mouse_events: 1;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "drag_container";
+ }
+ description { state: "default" 0.0;
+ min: CHECK_TOGGLE_THUMB_SIZE;
+ max: CHECK_TOGGLE_THUMB_SIZE;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ image.normal: "tw_btn_toggle_off_holo_dark.png";
+ color_class: "W014L6";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_btn_toggle_on_holo_dark.png";
+ color_class: "W014L5";
+ }
+ description { state: "on_pressed" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W014L5P";
+ }
+ description { state: "on_disabled" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W014L5D";
+ }
+ description { state: "off_pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L6P";
+ }
+ description { state: "off_disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W014L6D";
+ }
+ }
+ part { name: "button_events";
+ type: RECT;
+ dragable {
+ events: "button";
+ }
+ description { state: "default" 0.0;
+ rel1.to_x: "bg";
+ rel2.to_x: "bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "onrect";
+ type: RECT;
+ scale: 1;
+ clip_to: "clipper";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: -1.0 0.0;
+ to: "button";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "button";
+ }
+ align: 1.0 0.5;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "offrect";
+ type: RECT;
+ scale: 1;
+ clip_to: "clipper";
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "button";
+ }
+ rel2 {
+ relative: 2.0 1.0;
+ to: "button";
+ }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ clip_to: "disclip";
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ visible: 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ aspect: 1.0 1.0;
+ aspect_preference: VERTICAL;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled_visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ aspect: 1.0 1.0;
+ }
+ }
+ part { name: "disclip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program {
+ signal: "mouse,clicked,1";
+ source: "button";
+ script {
+ new Float:dx, Float:dy;
+ get_drag(PART:"button", dx, dy);
+ if (!get_int(was_drag)) {
+ if (dx > 0.5) {
+ set_drag(PART:"button", 0.0, 0.0);
+ }
+ else {
+ set_drag(PART:"button", 1.0, 0.0);
+ }
+ if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
+ (get_int(is_rtl) == 0) && (dx > 0.5)) {
+ if (get_int(check_on)) {
+ emit("elm,action,check,off", "");
+ emit("elm,action,touch,sound", "");
+ }
+ }
+ else {
+ if (!get_int(check_on)) {
+ emit("elm,action,check,on", "");
+ emit("elm,action,touch,sound", "");
+ }
+ }
+ }
+ }
+ }
+ program { name: "press";
+ signal: "mouse,down,1";
+ source: "button";
+ script {
+ if (get_int(check_on)) {
+ set_state(PART:"button", "on_pressed", 0.0);
+ set_state(PART:"button_handler", "on_pressed", 0.0);
+ set_state(PART:"bg_image", "on_pressed", 0.0);
+ }
+ else {
+ set_state(PART:"button", "off_pressed", 0.0);
+ set_state(PART:"button_handler", "off_pressed", 0.0);
+ set_state(PART:"bg_image", "off_pressed", 0.0);
+ }
+ }
+ }
+ program { name: "unpress";
+ signal: "mouse,up,1";
+ source: "button";
+ script {
+ if (get_int(check_on)) {
+ set_state(PART:"button", "on", 0.0);
+ set_state(PART:"button_handler", "on", 0.0);
+ set_state(PART:"bg_image", "on", 0.0);
+ }
+ else {
+ set_state(PART:"button", "default", 0.0);
+ set_state(PART:"button_handler", "default", 0.0);
+ set_state(PART:"bg_image", "default", 0.0);
+ }
+ }
+ }
+ program { name: "touch_sound";
+ signal: "elm,action,touch,sound";
+ source: "";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ signal: "drag";
+ source: "button";
+ script {
+ if (get_int(check_disabled) == 1) return;
+ if (!get_int(is_drag)) emit("elm,action,check,drag,start", "");
+ set_int(is_drag, 1);
+ }
+ }
+ program {
+ signal: "mouse,down,1";
+ source: "button";
+ script {
+ set_int(was_drag, 0);
+ set_int(is_drag, 0);
+ }
+ }
+ program { name: "drag_end";
+ signal: "mouse,up,1";
+ source: "button";
+ script {
+ new Float:dx, Float:dy;
+ get_drag(PART:"button", dx, dy);
+ if (get_int(is_drag)) {
+ if (dx > 0.5) {
+ set_drag(PART:"button", 1.0, 0.0);
+ }
+ else {
+ set_drag(PART:"button", 0.0, 0.0);
+ }
+ if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
+ (get_int(is_rtl) == 0) && (dx > 0.5)) {
+ if (!get_int(check_on)) {
+ emit("elm,action,check,on", "");
+ emit("elm,action,touch,sound", "");
+ }
+ }
+ else {
+ if (get_int(check_on)) {
+ emit("elm,action,check,off", "");
+ emit("elm,action,touch,sound", "");
+ }
+ }
+ set_int(was_drag, get_int(is_drag));
+ set_int(is_drag, 0);
+ emit("elm,action,check,drag,stop", "");
+ }
+ }
+ }
+ program { name: "check_on";
+ signal: "elm,state,check,on";
+ source: "elm";
+ script {
+ new Float:drag;
+ if (get_int(is_rtl) == 0) {
+ drag = 100.0;
+ }
+ else {
+ drag = 0.0;
+ }
+ set_drag(PART:"button", drag, 0.0);
+ if (get_int(check_disabled) == 0) {
+ set_state(PART:"bg_image", "on_pressed", 0.0);
+ run_program(PROGRAM:"check_show_on_effect");
+ set_state(PART:"opacity_clip_button", "on", 0.0);
+ run_program(PROGRAM:"check_draw_on_effect");
+ set_state(PART:"button", "on", 0.0);
+ set_state(PART:"button_handler", "on", 0.0);
+ }
+ else {
+ set_state(PART:"bg_image", "on_disabled", 0.0);
+ set_state(PART:"button", "on_disabled", 0.0);
+ set_state(PART:"button_handler", "on_disabled", 0.0);
+ }
+ set_int(check_on, 1);
+ }
+ }
+ program { name: "check_show_on_effect";
+ action: STATE_SET "on" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "bg_image";
+ }
+ program { name: "check_draw_on_effect";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.25;
+ target: "opacity_clip_button";
+ }
+ program { name: "check_off";
+ signal: "elm,state,check,off";
+ source: "elm";
+ script {
+ new Float:drag;
+ if (get_int(is_rtl) == 0) {
+ drag = 0.0;
+ }
+ else {
+ drag = 100.0;
+ }
+ set_drag(PART:"button", drag, 0.0);
+ if (get_int(check_disabled) == 0) {
+ set_state(PART:"bg_image", "off_pressed", 0.0);
+ run_program(PROGRAM:"check_show_off_effect");
+ set_state(PART:"opacity_clip_button", "on", 0.0);
+ run_program(PROGRAM:"check_draw_off_effect");
+ set_state(PART:"button", "default", 0.0);
+ set_state(PART:"button_handler", "default", 0.0);
+ }
+ else {
+ set_state(PART:"bg_image", "off_disabled", 0.0);
+ set_state(PART:"button", "off_disbaled", 0.0);
+ set_state(PART:"button_handler", "off_disbaled", 0.0);
+ }
+ set_int(check_on, 0);
+ }
+ }
+ program { name: "check_show_off_effect";
+ action: STATE_SET "default" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "bg_image";
+ }
+ program { name: "check_draw_off_effect";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.25;
+ target: "opacity_clip_button";
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(check_on) == 1) {
+ set_state(PART:"button", "on_disabled", 0.0);
+ set_state(PART:"button_handler", "on_disabled", 0.0);
+ set_state(PART:"bg_image", "on_disabled", 0.0);
+ }
+ else {
+ set_state(PART:"button", "off_disabled", 0.0);
+ set_state(PART:"button_handler", "off_disabled", 0.0);
+ set_state(PART:"bg_image", "off_disabled", 0.0);
+ }
+ set_state(PART:"onrect", "disabled", 0.0);
+ set_state(PART:"offrect", "disabled", 0.0);
+ set_state(PART:"disabler", "disabled", 0.0);
+ set_int(check_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(check_on) == 1) {
+ set_state(PART:"button", "on", 0.0);
+ set_state(PART:"button_handler", "on", 0.0);
+ set_state(PART:"bg_image", "on", 0.0);
+ }
+ else {
+ set_state(PART:"button", "default", 0.0);
+ set_state(PART:"button_handler", "default", 0.0);
+ set_state(PART:"bg_image", "default", 0.0);
+ }
+ set_state(PART:"onrect", "default", 0.0);
+ set_state(PART:"offrect", "default", 0.0);
+ set_state(PART:"disabler", "default", 0.0);
+ set_int(check_disabled, 0);
+ }
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(is_rtl, 1);
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(is_rtl, 0);
+ }
+ }
+ }
+}
+
+group { name: "elm/check/base/popup";
+inherit: "elm/check/base/default";
+ parts {
+ part { name: "padding_before_text";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: 0 0;
+ fixed: 1 0;
+ rel1 {
+ to_x: "check";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "check";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: CHECK_PADDING_SIZE;
+ max: CHECK_PADDING_SIZE;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "padding_before_text";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ }
+ align: 0.0 0.5;
+ rel2.offset: -7 0;
+ text {
+ style: "check_text_normal";
+ align: 0.0 0.5;
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "text_show";
+ signal: "elm,state,text,visible";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "padding_before_text";
+ }
+ program { name: "text_hide";
+ signal: "elm,state,text,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "padding_before_text";
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/conform.edc b/2.3-wearable/widgets/conform.edc
new file mode 100644
index 00000000..8a8ad11c
--- /dev/null
+++ b/2.3-wearable/widgets/conform.edc
@@ -0,0 +1,587 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#define LAYOUT_INDICATOR_HEIGHT_INC 0
+
+// FIXME: conformant UX is not defined for wearable yet
+// indicator area size is 0. indicator color is transparent.
+group { name: "elm/conformant/base/default";
+ script {
+ public indicator_effect = 0; //Indicator need effect
+ public indicator_visible = 0; //Indicator visible check
+ public indicator_opacity = 0; //0=opaque, 1=transparent
+ public indicator_overlap = 0; //check indicator overlap/nooverlap
+ public clipboard_disable = 0; //check clipboard enable/disable
+ public keypad_disable = 0; //check virtualkeypad enable/disable
+ public landscape = 0; //Landscape mode status
+ public portrait_overlap = 0; //save portrait_overlap mode
+ public portrait_opacity = 0; //save portrait_opacity
+ }
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "indicator_base";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part { name: "indicator_overlap_base";
+ type: RECT;
+ description { state: "default" 0.0; //nooverlap
+ rel1 { relative: 0.0 0.0; to: "indicator_base"; }
+ rel2 { relative: 1.0 1.0; to: "indicator_base"; }
+ visible: 0;
+ }
+ description { state: "overlap" 0.0; //content start (0,0)
+ inherit: "default" 0.0;
+ rel2 { relative: 1.0 0.0; to: "indicator_base"; }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0; //sip: enable
+ align: 0.5 0.5;
+ rel1.relative: 0.0 1.0;
+ rel1.to: "indicator_overlap_base";
+ rel2.relative: 1.0 0.0;
+ rel2.to: "sip_area";
+ }
+ description { state: "disable_sip" 0.0; //sip: disable
+ inherit: "default" 0.0;
+ rel2.relative: 1.0 1.0;
+ rel2.to: "elm.swallow.bg";
+ }
+ }
+ part { name: "elm.swallow.ug";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1.relative: 0.0 1.0;
+ rel1.to: "indicator_overlap_base";
+ rel2.relative: 1.0 0.0;
+ rel2.to: "sip_area";
+ }
+ description { state: "disable_sip" 0.0; //sip: disable
+ inherit: "default" 0.0;
+ rel2.relative: 1.0 1.0;
+ rel2.to: "elm.swallow.bg";
+ }
+ }
+ part { name: "elm.swallow.dim";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ }
+ }
+ part { name: "indicator_event";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; }
+ rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ part { name: "indicator_clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "indicator_base"; }
+ rel2 { relative: 1.0 1.0; to: "indicator_base"; }
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ rel1 { relative: 0.0 -1.0; to: "indicator_base"; }
+ rel2 { relative: 1.0 0.0; to: "indicator_base"; }
+ }
+ }
+ part { name: "indicator_bg";
+ type: RECT;
+ clip_to: "indicator_clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
+ rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
+ color: 0 0 0 0; // FIXME
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.indicator_bg";
+ type: SWALLOW;
+ clip_to: "indicator_clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
+ rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.indicator";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "indicator_clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
+ rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
+ }
+ }
+ part { name: "sip_area";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ min: 0 0;
+ rel1.relative: 0.0 0.0;
+ rel1.to_y: "elm.swallow.virtualkeypad";
+ rel2.relative: 1.0 1.0;
+ rel2.to_y: "elm.swallow.virtualkeypad";
+ visible: 0;
+ }
+ description { state: "clipboard_on" 0.0;
+ inherit: "default" 0.0;
+ rel1.to_y: "elm.swallow.clipboard";
+ rel2.to_y: "elm.swallow.clipboard";
+ }
+ }
+ part { name: "clipboard_bg";
+ type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.clipboard";
+ rel2.to: "elm.swallow.clipboard";
+ color_class: "B011";
+ }
+ }
+ part { name: "elm.swallow.clipboard";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ part { name: "virtualkeypad_bg";
+ type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.virtualkeypad";
+ rel2.to: "elm.swallow.virtualkeypad";
+ color_class: "B011";
+ }
+ }
+ part { name: "elm.swallow.virtualkeypad";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "show_indicator"; //show indicator using effect
+ signal: "elm,state,indicator,show";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 1);
+ set_state(PART:"indicator_base", "default", 0.0);
+ //it is possible app call show after opacity call
+ /////Portrait
+ if (get_int(landscape) == 0) {
+ if (get_int(indicator_opacity) == 0)
+ run_program(PROGRAM:"opaque_state");
+ if (get_int(indicator_opacity) == 1)
+ run_program(PROGRAM:"transparent_state");
+ }
+ /////Landscape
+ else
+ run_program(PROGRAM:"transparent_state");
+ }
+ }
+ program {
+ name: "hide_indicator";
+ signal: "elm,state,indicator,hide";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 0);
+ set_state(PART:"indicator_base", "hide", 0.0);
+ }
+ }
+ program {
+ name: "show_indicator_transition"; //show indicator using effect
+ action: STATE_SET "default" 0.0;
+ target: "indicator_clipper";
+ transition: DECELERATE 0.2;
+ }
+ program {
+ name: "hide_indicator_transition"; //show indicator using effect
+ action: STATE_SET "hide" 0.0;
+ target: "indicator_clipper";
+ transition: DECELERATE 0.2;
+ }
+ program {
+ name: "show_indicator_effect"; //show indicator using effect
+ signal: "indicator,show,effect";
+ source: "elm";
+ script {
+ if (get_int(indicator_visible) == 1)
+ run_program(PROGRAM:"show_indicator_transition");
+ }
+ }
+ program {
+ name: "hide_indicator_effect"; //show indicator using effect
+ signal: "indicator,hide,effect";
+ source: "elm";
+ script {
+ if (get_int(indicator_visible) == 1)
+ run_program(PROGRAM:"hide_indicator_transition");
+ }
+ }
+ program {
+ name: "opaque_state";
+ script {
+ set_state(PART:"elm.swallow.indicator_bg", "default", 0.0);
+ set_state(PART:"indicator_clipper", "default", 0.0);
+ if (get_int(indicator_overlap) == 0)
+ {
+ set_state(PART:"indicator_overlap_base", "default", 0.0);
+ set_state(PART:"indicator_bg", "default", 0.0);
+ }
+ else
+ {
+ set_state(PART:"indicator_overlap_base", "overlap", 0.0);
+ set_state(PART:"indicator_bg", "hidden", 0.0);
+ }
+ }
+ }
+ program {
+ name: "transparent_state";
+ script {
+ set_state(PART:"indicator_bg", "default", 0.0);
+ set_state(PART:"elm.swallow.indicator_bg", "hidden", 0.0);
+ set_state(PART:"indicator_clipper", "hide", 0.0);
+ set_state(PART:"indicator_overlap_base", "overlap", 0.0);
+ }
+ }
+
+ program {
+ name: "opaque_indicator";
+ signal: "elm,state,indicator,opaque";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 0);
+ if ((get_int(indicator_visible) == 1) && (get_int(landscape) == 0))
+ run_program(PROGRAM:"opaque_state");
+ }
+ }
+ program {
+ name: "transparent_indicator";
+ signal: "elm,state,indicator,transparent";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 1);
+ if (get_int(indicator_visible) == 1)
+ run_program(PROGRAM:"transparent_state");
+ }
+ }
+ program {
+ name: "overlap_indicator";
+ signal: "elm,state,indicator,overlap";
+ source: "elm";
+ script {
+ set_int(indicator_overlap, 1);
+ set_state(PART:"indicator_overlap_base", "overlap", 0.0);
+ set_state(PART:"indicator_bg", "hidden", 0.0);
+ }
+ }
+ program {
+ name: "nooverlap_indicator";
+ signal: "elm,state,indicator,nooverlap";
+ source: "elm";
+ script {
+ //Only portrait state get nooverlap mode
+ set_int(indicator_overlap, 0);
+ if (get_int(indicator_visible) == 1)
+ if (get_int(indicator_opacity) == 0) { //only opaque can be nooverlap
+ if (get_int(landscape) == 0) { //landscape should be overlap
+ set_state(PART:"indicator_overlap_base", "default", 0.0);
+ set_state(PART:"indicator_bg", "default", 0.0);
+ }
+ }
+ }
+ }
+ program { name: "enable_clipboard";
+ signal: "elm,state,clipboard,enable";
+ source: "";
+ script {
+ set_int(clipboard_disable, 0);
+ //set content state
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ }
+ }
+ program { name: "disable_clipboard";
+ signal: "elm,state,clipboard,disable";
+ source: "";
+ script {
+ set_int(clipboard_disable, 1);
+ set_state(PART:"sip_area", "default", 0.0);
+ if (get_int(keypad_disable) == 1)
+ set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
+ else
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ }
+ }
+ program { name: "enable_virtualkeypad";
+ signal: "elm,state,virtualkeypad,enable";
+ source: "";
+ script {
+ set_int(keypad_disable, 0);
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ }
+ }
+ program { name: "disable_virtualkeypad";
+ signal: "elm,state,virtualkeypad,disable";
+ source: "";
+ script {
+ set_int(keypad_disable, 1);
+ if (get_int(clipboard_disable) == 1)
+ {
+ set_state(PART:"sip_area", "clipboard_on", 0.0);
+ set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
+ }
+ else
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ }
+ }
+ program {
+ name: "change_to_landscape";
+ script {
+ if (get_int(landscape) == 0) {
+ set_int(landscape, 1);
+ if (get_int(indicator_visible) == 1)
+ run_program(PROGRAM:"transparent_state");
+ }
+ }
+ }
+ program {
+ name: "change_to_portrait";
+ script {
+ if (get_int(landscape) == 1) { //content start (0, indicator height)
+ set_int(landscape, 0);
+ if (get_int(indicator_visible) == 1) {
+ if (get_int(indicator_opacity) == 1)
+ run_program(PROGRAM:"transparent_state");
+ else
+ run_program(PROGRAM:"opaque_state");
+ }
+ }
+ }
+ }
+ program { name: "landscape_mode";
+ source: "elm";
+ signal: "elm,state,orient,90";
+ after: "change_to_landscape";
+ }
+ program { name: "landscape_mode2";
+ source: "elm";
+ signal: "elm,state,orient,270";
+ after: "change_to_landscape";
+ }
+ program { name: "portrait_mode";
+ source: "elm";
+ signal: "elm,state,orient,0";
+ after: "change_to_portrait";
+ }
+ program { name: "portrait_mode2";
+ source: "elm";
+ signal: "elm,state,orient,180";
+ after: "change_to_portrait";
+ }
+ program {
+ name: "clipboard_on";
+ signal: "elm,state,clipboard,on";
+ source: "elm";
+ action: STATE_SET "clipboard_on" 0.0;
+ target: "sip_area";
+ }
+ program {
+ name: "clipboard_off";
+ signal: "elm,state,clipboard,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sip_area";
+ }
+ program { name: "indicator_event_down";
+ signal: "mouse,down,1";
+ source: "indicator_event";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ }
+ }
+}
+
+group { name: "elm/conformant/base/without_resize";
+ script {
+ public indicator_visible = 0; //Indicator visible check
+ public indicator_opacity = 0; //0=opaque, 1=transparent
+ }
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.indicator_area";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1.relative: 0.0 1.0;
+ rel1.to: "elm.swallow.indicator_area";
+ }
+ }
+ part { name: "indicator_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ color: 0 0 0 0; // FIXME
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ }
+ }
+ part { name: "elm.swallow.indicator_bg";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.indicator";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "show_indicator";
+ signal: "elm,state,indicator,show";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 1);
+ set_state(PART:"elm.swallow.indicator", "default", 0.0);
+ if (get_int(indicator_opacity) == 0)
+ {
+ set_state(PART:"indicator_bg", "default", 0.0);
+ set_state(PART:"elm.swallow.indicator_bg", "default", 0.0);
+ }
+ }
+ }
+ program {
+ name: "hide_indicator";
+ signal: "elm,state,indicator,hide";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 0);
+ set_state(PART:"elm.swallow.indicator", "hide", 0.0);
+ set_state(PART:"indicator_bg", "hidden", 0.0);
+ set_state(PART:"elm.swallow.indicator_bg", "hidden", 0.0);
+ }
+ }
+ program {
+ name: "opaque_indicator";
+ signal: "elm,state,indicator,opaque";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 0);
+ if (get_int(indicator_visible) == 1)
+ {
+ set_state(PART:"indicator_bg", "default", 0.0);
+ set_state(PART:"elm.swallow.indicator_bg", "default", 0.0);
+ }
+ }
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/ctxpopup.edc b/2.3-wearable/widgets/ctxpopup.edc
new file mode 100644
index 00000000..55343e4c
--- /dev/null
+++ b/2.3-wearable/widgets/ctxpopup.edc
@@ -0,0 +1,2558 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IPLIED WARRANTIES, INCLUDING, BUT NOT LIITED TO, THE IPLIED
+ * WARRANTIES OF ERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEPLARY, OR CONSEQUENTIAL DAAGES
+ * (INCLUDING, BUT NOT LIITED TO, PROCUREENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAAGE.
+ */
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/layout/default";
+
+ data.item: "visible_maxw" (CTXPOPUP_WIDTH_MAX_INC+CTXPOPUP_SHADOW_LEFT_PADDING+CTXPOPUP_SHADOW_RIGHT_PADDING);
+ data.item: "visible_maxh" ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*4.2)+CTXPOPUP_SHADOW_TOP_PADDING+CTXPOPUP_SHADOW_BOTTOM_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*4)+2);
+
+ parts {
+ part {
+ name:"top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 CTXPOPUP_MOVE_PAD_INC;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ }
+ description {
+ state: "show_up" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name:"bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 CTXPOPUP_MOVE_PAD_INC;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ }
+ description {
+ state: "show_down" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name: "swallow";
+ type: SWALLOW;
+ clip_to: "layout_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "show_up" 0.0;
+ rel1 {to_y:"top_padding"; relative: 0.0 1.0;}
+ rel2 {to_y:"top_padding"; relative: 1.0 1.0;}
+ align: 0.5 0.0;
+ }
+ description {
+ state: "show_down" 0.0;
+ rel1 {to_y:"bottom_padding"; relative: 0.0 0.0;}
+ rel2 {to_y:"bottom_padding"; relative: 1.0 0.0;}
+ align: 0.5 1.0;
+ }
+ }
+ part {
+ name: "event_blocker";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "layout_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ rel1 {to: "swallow"; relative: -0.2 -0.2; }
+ rel2 {to: "swallow"; relative: 1.2 1.2;}
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "showup";
+ signal: "elm,state,show,up";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_up")) {
+ set_state(PART:"swallow", "show_up", 0.0);
+ set_state(PART:"top_padding", "show_up", 0.0);
+ }
+ }
+ after: "showupend";
+ }
+ program {
+ name: "showdown";
+ signal: "elm,state,show,down";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show_down")) {
+ set_state(PART:"swallow", "show_down", 0.0);
+ set_state(PART:"bottom_padding", "show_down", 0.0);
+ }
+ }
+ after: "showdownend";
+ }
+ program {
+ name: "show_clip_blocker";
+ signal: "elm,state,show,*";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.25 0.5;
+ target: "layout_clip";
+ target: "event_blocker";
+ }
+ program {
+ name: "showupend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "top_padding";
+ }
+ program {
+ name: "showdownend";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "bottom_padding";
+ }
+ program {
+ name: "hideup";
+ signal: "elm,state,hide,up";
+ source: "elm";
+ action: STATE_SET "show_up" 0.0;
+ target: "swallow";
+ target: "top_padding";
+ transition: SIN_FAC 0.13 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hide_clip";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "layout_clip";
+ transition: SIN_FAC 0.13 0.5;
+ after: "be_default";
+ }
+ program {
+ name: "hide_event_blocker";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event_blocker";
+ }
+ program {
+ name: "be_default";
+ action: STATE_SET "default" 0.0;
+ target: "swallow";
+ target: "top_padding";
+ after: "hidefinished";
+ }
+ program {
+ name: "hidefinished";
+ action: SIGNAL_EMIT "elm,action,hide,finished" "";
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/layout/landscape/default";
+ inherit: "elm/ctxpopup/layout/default";
+
+ data.item: "visible_maxw" (CTXPOPUP_WIDTH_MAX_INC+CTXPOPUP_SHADOW_LEFT_PADDING+CTXPOPUP_SHADOW_RIGHT_PADDING);
+ data.item: "visible_maxh" ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*4.2)+CTXPOPUP_SHADOW_TOP_PADDING+CTXPOPUP_SHADOW_BOTTOM_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*4)+2);
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/layout/help";
+
+ data.item: "visible_maxw" CTXPOPUP_HELP_BG_WIDTH_INC;
+ data.item: "visible_maxh" 480;
+
+ parts {
+ part {
+ name: "swallow";
+ type: SWALLOW;
+ clip_to: "layout_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "show" 0.0;
+ }
+ }
+ part {
+ name: "event_blocker";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "layout_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "show";
+ signal: "elm,state,show,*";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"swallow", st, 30, vl);
+ if (strcmp(st, "show")) {
+ set_state(PART:"swallow", "show", 0.0);
+ }
+ }
+ }
+ program {
+ name: "show_clip_blocker";
+ signal: "elm,state,show,*";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ transition: SIN_FAC 0.25 0.5;
+ target: "layout_clip";
+ target: "event_blocker";
+ }
+ program {
+ name: "hide";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "show" 0.0;
+ target: "swallow";
+ transition: SIN_FAC 0.13 1.1;
+ after: "be_default";
+ }
+ program {
+ name: "hide_clip";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "layout_clip";
+ transition: SIN_FAC 0.13 0.5;
+ after: "be_default";
+ }
+ program {
+ name: "hide_event_blocker";
+ signal: "elm,state,hide,*";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "event_blocker";
+ }
+ program {
+ name: "be_default";
+ action: STATE_SET "default" 0.0;
+ target: "swallow";
+ after: "hidefinished";
+ }
+ program {
+ name: "hidefinished";
+ action: SIGNAL_EMIT "elm,action,hide,finished" "";
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/bg/default";
+ script {
+ public event_grab = 0;
+ }
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ color_class: "B091";
+ min: 360 480;
+ align: 0.0 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "event_checker";
+ type: RECT;
+ dragable {
+ x: 1 1 0;
+ y: 1 1 0;
+ }
+ description {
+ state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "mouse_down";
+ signal: "mouse,down,1";
+ source: "event_checker";
+ script {
+ set_int(event_grab, 1);
+ }
+ }
+ program {
+ name: "mouse_drag";
+ signal: "drag";
+ source: "event_checker";
+ script {
+ new Float:dx, Float:dy;
+ get_drag(PART:"event_checker", dx, dy);
+ if (abs(dx) > 60 || abs(dy) > 60) {
+ set_int(event_grab, 0);
+ }
+ }
+ }
+ program {
+ name: "mouse_up";
+ signal: "mouse,up,1";
+ source: "event_checker";
+ script {
+ if (get_int(event_grab))
+ emit("elm,action,click", "");
+ set_drag(PART:"event_checker", 0.0, 0.0);
+ }
+ }
+ program {
+ name: "show";
+ signal: "elm,state,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "bg";
+ }
+ program {
+ name: "hide";
+ signal: "elm,state,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/bg/copypaste";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ color: 0 0 0 0;
+ min: 480 480;
+ align: 0.0 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "clicked";
+ signal: "mouse,clicked,1";
+ source: "bg";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program {
+ name: "show";
+ signal: "elm,state,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "bg";
+ }
+ program {
+ name: "hide";
+ signal: "elm,state,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/bg/help";
+ script {
+ public event_grab = 0;
+ }
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ color_class: "transparent";
+ min: 360 480;
+ align: 0.0 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "event_checker";
+ type: RECT;
+ dragable {
+ x: 1 1 0;
+ y: 1 1 0;
+ }
+ description {
+ state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "mouse_down";
+ signal: "mouse,down,1";
+ source: "event_checker";
+ script {
+ set_int(event_grab, 1);
+ }
+ }
+ program {
+ name: "mouse_drag";
+ signal: "drag";
+ source: "event_checker";
+ script {
+ new Float:dx, Float:dy;
+ get_drag(PART:"event_checker", dx, dy);
+ if (abs(dx) > 60 || abs(dy) > 60) {
+ set_int(event_grab, 0);
+ }
+ }
+ }
+ program {
+ name: "mouse_up";
+ signal: "mouse,up,1";
+ source: "event_checker";
+ script {
+ if (get_int(event_grab))
+ emit("elm,action,click", "");
+ set_drag(PART:"event_checker", 0.0, 0.0);
+ }
+ }
+ program {
+ name: "show";
+ signal: "elm,state,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "bg";
+ }
+ program {
+ name: "hide";
+ signal: "elm,state,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/base/default";
+ images {
+ image: "b_list_option_popup_bg.#.png" COMP;
+ image: "b_list_option_popup_bg_line.#.png" COMP;
+ }
+ parts {
+ part {
+ name:"frame_shadow_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ rel2 { relative: 0 0; }
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"frame_shadow_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
+ max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
+ rel1{relative: 1 1;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "frame_bg";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1.to:"frame_shadow_left_top_padding";
+ rel2.to:"frame_shadow_right_bottom_padding";
+ min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC 0;
+ image.normal: "b_list_option_popup_bg.#.png";
+ color_class: "B092L1";
+ }
+ }
+ part {
+ name: "frame_line_bg";
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 {to: "frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ rel2 {to: "frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ image.normal: "b_list_option_popup_bg_line.#.png";
+ color_class: "B092L2";
+ }
+ }
+ part { name: "access.outline";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "frame_bg";
+ rel2.to: "frame_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "arrow_area_down";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 0;
+ rel1 {
+ relative: 1 0;
+ to_x: "ctxpopup_frame_left_top";
+ to_y: "arrow_right_bottom_padding";
+ }
+ rel2 {
+ relative: 0 0;
+ to_x:"ctxpopup_frame_right_bottom";
+ to_y: "arrow_right_bottom_padding";
+ }
+ }
+ }
+ part { name: "arrow_area_up";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 1;
+ rel1 {
+ relative: 1 1;
+ to_x: "ctxpopup_frame_left_top";
+ to_y: "arrow_left_top_padding";
+ }
+ rel2 {
+ relative: 0 1;
+ to_x: "ctxpopup_frame_right_bottom";
+ to_y: "arrow_left_top_padding";
+ }
+ }
+ }
+ part { name: "elm.swallow.arrow_down";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 1 1 0;
+ confine: "arrow_area_down";
+ }
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.arrow_up";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 1 1 0;
+ confine: "arrow_area_up";
+ }
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "ctxpopup_frame_left_top";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0 0;
+ fixed: 1 1;
+ min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ rel1 {relative: 1 1; to: "frame_shadow_left_top_padding";}
+ }
+ }
+ part {
+ name: "ctxpopup_frame_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1 1;
+ fixed: 1 1;
+ min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ rel2 {relative: 0 0; to: "frame_shadow_right_bottom_padding";}
+ }
+ }
+ part {
+ name:"content_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"content_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "arrow_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
+ max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
+ rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ align: 0 0;
+ }
+ }
+ part {
+ name: "arrow_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
+ max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
+ rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ align: 1 1;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0 0;
+ rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;}
+ rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;}
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/base/copypaste";
+ images {
+ image: "b_list_option_popup_bg.#.png" COMP;
+ image: "b_list_option_popup_bg_line.#.png" COMP;
+ }
+ parts {
+ part {
+ name:"frame_shadow_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
+ rel2 { relative: 0 0; }
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"frame_shadow_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
+ max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
+ rel1{relative: 1 1;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "frame_bg";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1.to:"frame_shadow_left_top_padding";
+ rel2.to:"frame_shadow_right_bottom_padding";
+ min: CTXPOPUP_COPYPASTE_ICON_WIDTH_INC 0;
+ image.normal: "b_list_option_popup_bg.#.png";
+ color_class: "B092L1";
+ }
+ }
+ part {
+ name: "frame_line_bg";
+ scale: 1;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ rel1 {to: "frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ rel2 {to: "frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ image.normal: "b_list_option_popup_bg_line.#.png";
+ color_class: "B092L2";
+ }
+ }
+ part { name: "access.outline";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "frame_bg";
+ rel2.to: "frame_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "ctxpopup_frame_left_top";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0 0;
+ fixed: 1 1;
+ min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ rel1 {relative: 1 1; to: "frame_shadow_left_top_padding";}
+ }
+ }
+ part {
+ name: "ctxpopup_frame_right_bottom";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 1 1;
+ fixed: 1 1;
+ min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING 0;
+ rel2 {relative: 0 0; to: "frame_shadow_right_bottom_padding";}
+ }
+ }
+ part {
+ name:"content_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ rel1 {to:"frame_shadow_left_top_padding"; relative: 1.0 1.0;}
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name:"content_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
+ rel2 {to:"frame_shadow_right_bottom_padding"; relative: 0.0 0.0;}
+ align: 1 1;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0 0;
+ rel1 {to:"content_left_top_padding"; relative: 1.0 1.0;}
+ rel2 {to:"content_right_bottom_padding"; relative: 0.0 0.0;}
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/base/help";
+ parts {
+ part {
+ name: "frame_bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_HELP_BG_WIDTH_INC 0;
+ color_class: "B061L1E";
+ }
+ }
+ part {
+ name: "frame_top_line";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "frame_bg";
+ rel2 {to: "frame_bg"; relative: 1.0 0.0;}
+ align: 0.5 0.0;
+ fixed: 0 1;
+ min: 0 CTXPOPUP_HELP_BG_LINE_SIZE_INC;
+ max: -1 CTXPOPUP_HELP_BG_LINE_SIZE_INC;
+ color_class: "B061L7";
+ }
+ }
+ part {
+ name: "frame_bottom_line";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {to: "frame_bg"; relative: 0.0 1.0;}
+ rel2.to: "frame_bg";
+ align: 0.5 1.0;
+ fixed: 0 1;
+ min: 0 CTXPOPUP_HELP_BG_LINE_SIZE_INC;
+ max: -1 CTXPOPUP_HELP_BG_LINE_SIZE_INC;
+ color_class: "B061L7";
+ }
+ }
+ part {
+ name: "frame_left_line";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "frame_bg";
+ rel2 {to: "frame_bg"; relative: 0.0 1.0;}
+ align: 0.0 0.5;
+ fixed: 1 0;
+ min: CTXPOPUP_HELP_BG_LINE_SIZE_INC 0;
+ max: CTXPOPUP_HELP_BG_LINE_SIZE_INC -1;
+ color_class: "B061L7";
+ }
+ }
+ part {
+ name: "frame_right_line";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {to: "frame_bg"; relative: 1.0 0.0;}
+ rel2.to: "frame_bg";
+ align: 1.0 0.5;
+ fixed: 1 0;
+ min: CTXPOPUP_HELP_BG_LINE_SIZE_INC 0;
+ max: CTXPOPUP_HELP_BG_LINE_SIZE_INC -1;
+ color_class: "B061L7";
+ }
+ }
+ part { name: "access.outline";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "frame_bg";
+ rel2.to: "frame_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {to_x: "frame_left_line"; to_y: "frame_top_line"; relative: 1.0 1.0;}
+ rel2 {to_x: "frame_right_line"; to_y: "frame_bottom_line"; relative: 0.0 0.0;}
+ }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/arrow/default";
+ images {
+ image: "b_list_option_popup_top_tail.png" COMP;
+ image: "b_list_option_popup_top_tail_line.png" COMP;
+ image: "b_list_option_popup_bottom_tail.png" COMP;
+ image: "b_list_option_popup_bottom_tail_line.png" COMP;
+ }
+ parts {
+ part {
+ name: "ctxpopup_arrow";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ visible: 0;
+ align: 0.5 0.5;
+ }
+ description {
+ state: "bottom" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ image.normal: "b_list_option_popup_top_tail.png";
+ color_class: "B092L1";
+ }
+ description {
+ state: "top" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ image.normal: "b_list_option_popup_bottom_tail.png";
+ color_class: "B092L1";
+ }
+ }
+ part {
+ name: "ctxpopup_arrow_effect";
+ type: IMAGE;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ visible: 0;
+ align: 0.5 0.5;
+ }
+ description {
+ state: "bottom" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ image.normal: "b_list_option_popup_top_tail_line.png";
+ color_class: "B092L2";
+ }
+ description {
+ state: "top" 0.0;
+ min: CTXPOPUP_ARROW_SIZE_INC;
+ max: CTXPOPUP_ARROW_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ image.normal: "b_list_option_popup_bottom_tail_line.png";
+ color_class: "B092L2";
+ }
+ }
+ }
+ programs {
+ program {
+ name: "enable_bottom_arrow";
+ signal: "elm,state,bottom";
+ source: "elm";
+ action: STATE_SET "bottom" 0.0;
+ target: "ctxpopup_arrow";
+ target: "ctxpopup_arrow_effect";
+ }
+ program {
+ name: "enable_top_arrow";
+ signal: "elm,state,top";
+ source: "elm";
+ action: STATE_SET "top" 0.0;
+ target: "ctxpopup_arrow";
+ target: "ctxpopup_arrow_effect";
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/arrow/copypaste";
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/arrow/help";
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/text_style_item/default";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 1;
+ max: CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 CTXPOPUP_ITEM_HEIGHT_MAX_INC;
+ rel1 {to_y: "separator"; relative: 0.0 1.0;}
+ color_class: "B093P";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "separator";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color_class: "B094";
+ rel2 {relative: 1.0 0.0; offset: 0 0;}
+ align: 0.5 0;
+ fixed: 0 1;
+ min: 0 0;
+ max: -1 0;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ max: -1 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ visible: 1;
+ }
+ }
+ part {
+ name: "left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC;
+ max: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC;
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 1 CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC;
+ max: CTXPOPUP_TEXT_MAX_INC (CTXPOPUP_ITEM_HEIGHT_MAX_INC-CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC-CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC);
+ align: 0.5 0.5;
+ rel1 {relative: 1.0 1.0; to: "left_top_padding";}
+ rel2 {relative: 0.0 0.0; to: "right_bottom_padding";}
+ color_class: "T111";
+ text {
+ text_class: "T111";
+ size_range: CTXPOPUP_ITEM_TEXT_SIZE_INC CTXPOPUP_ITEM_TEXT_MAX_SIZE_INC;
+ align: 0 0.5;
+ min: 1 1;
+ }
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T111P";
+ color_class: "T111P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T111D";
+ color_class: "T111D";
+ }
+ description {
+ state: "ellipsis" 0.0;
+ inherit: "default" 0.0;
+ min: CTXPOPUP_TEXT_MAX_INC CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC;
+ text.min: 0 1;
+ }
+ description {
+ state: "ellipsis_clicked" 0.0;
+ inherit: "ellipsis" 0.0;
+ text.text_class: "T111P";
+ color_class: "T111P";
+ }
+ description {
+ state: "ellipsis_disabled" 0.0;
+ inherit: "ellipsis" 0.0;
+ text.text_class: "T111D";
+ color_class: "T111D";
+ }
+ }
+ part {
+ name: "right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC;
+ max: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ }
+ }
+ part {
+ name: "events";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "text_default";
+ signal: "elm,state,text,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled"))
+ set_state(PART:"elm.text", "disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program {
+ name: "text_ellipsis";
+ signal: "elm,state,text,ellipsis";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "disabled") || !strcmp(st, "elipsis_disabled"))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ }
+ }
+ program {
+ name: "item_clicked";
+ signal: "mouse,clicked,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"disclip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"disclip", "default", 0.0);
+ }
+ }
+ program {
+ name: "hide_separator";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "show_separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "item_pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"bg", "clicked", 0.0);
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"elm.text", "clicked", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis_clicked", 0.0);
+ }
+ }
+ }
+ program { name: "item,unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "item_released";
+ }
+ program {
+ name: "item_released";
+ signal: "mouse,up,1";
+ source: "events";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_state(PART:"bg", "default", 0.0);
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "default") || !strcmp(st, "clicked"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/icon_text_style_item/default";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ data.item: "item_max_size" CTXPOPUP_ICON_TEXT_ITEM_MAX_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: CTXPOPUP_WIDTH_MIN_INC 1;
+ max: CTXPOPUP_WIDTH_MAX_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
+ rel1 {to_y: "separator"; relative: 0.0 1.0;}
+ color_class: "B093P";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "icon_left_padding";
+ scale: 1;
+ type: SPACER;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_TEXT_TOP_PADDING_INC;
+ max: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_TEXT_TOP_PADDING_INC;
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "separator";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color_class: "B094";
+ rel2 { relative: 1.0 0.0; offset: 0 0;}
+ align: 0.5 0;
+ fixed: 0 1;
+ min: 0 0;
+ max: -1 0;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ max: -1 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "icon_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
+ max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
+ align: 0 0;
+ aspect: 1.0 1.0;
+ rel1 { to:"icon_left_padding"; relative: 1 1; }
+ }
+ }
+ part {
+ name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color_class: "B095";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B095P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B095D";
+ }
+ }
+ part {
+ name: "icon_right_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_ITEM_ICON_TEXT_PADDING_INC CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC;
+ max: CTXPOPUP_ITEM_ICON_TEXT_PADDING_INC CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC;
+ align: 0 0;
+ fixed: 1 1;
+ rel1 { to_x:"elm.swallow.icon"; to_y:"separator"; relative: 1 1; }
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 1 CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC;
+ max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_ICON_WIDTH_INC-(CTXPOPUP_ITEM_ICON_PADDING_INC*2)) (CTXPOPUP_ITEM_HEIGHT_MAX_INC-CTXPOPUP_ITEM_TEXT_TOP_PADDING_INC-CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC);
+ align: 0.5 0.5;
+ rel1 {relative: 1.0 1.0; to: "icon_right_top_padding";}
+ rel2 {relative: 0.0 0.0; to: "text_right_bottom_padding";}
+ color_class: "T111";
+ text {
+ text_class: "T111";
+ size_range: CTXPOPUP_ITEM_TEXT_SIZE_INC CTXPOPUP_ITEM_TEXT_MAX_SIZE_INC;
+ align: 0.0 0.5;
+ min: 1 1;
+ }
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T111P";
+ color_class: "T111P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T111D";
+ color_class: "T111D";
+ }
+ description {
+ state: "ellipsis" 0.0;
+ inherit: "default" 0.0;
+ min: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_ICON_WIDTH_INC-(CTXPOPUP_ITEM_ICON_PADDING_INC*2)) CTXPOPUP_ITEM_TEXT_HEIGHT_MIN_INC;
+ text.min: 0 1;
+ }
+ description {
+ state: "ellipsis_clicked" 0.0;
+ inherit: "ellipsis" 0.0;
+ text.text_class: "T111P";
+ color_class: "T111P";
+ }
+ description {
+ state: "ellipsis_disabled" 0.0;
+ inherit: "ellipsis" 0.0;
+ text.text_class: "T111D";
+ color_class: "T111D";
+ }
+ }
+ part {
+ name: "text_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC;
+ max: (CTXPOPUP_ITEM_TEXT_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_TEXT_BOTTOM_PADDING_INC;
+ fixed: 1 0;
+ align: 1.0 1.0;
+ }
+ }
+ part {
+ name: "events";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "text_default";
+ signal: "elm,state,text,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "disabled")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program {
+ name: "text_ellipsis";
+ signal: "elm,state,text,ellipsis";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "disabled") || !strcmp(st, "ellipsis_disabled"))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ }
+ }
+ program {
+ name: "item_click";
+ signal: "mouse,clicked,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
+ else
+ set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"icon_clip", "disabled", 0.0);
+ set_state(PART:"disclip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ else
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ set_state(PART:"disclip", "default", 0.0);
+ }
+ }
+ program {
+ name: "hide_separator";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "show_separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "item_pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"icon_clip", "clicked", 0.0);
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"elm.text", "clicked", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis_clicked", 0.0);
+ }
+ }
+ }
+ program { name: "item,unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "item_released";
+ }
+ program {
+ name: "item_released";
+ signal: "mouse,up,1";
+ source: "events";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.text", st, 30, vl);
+ if (!strcmp(st, "default") || !strcmp(st, "clicked"))
+ set_state(PART:"elm.text", "default", 0.0);
+ else
+ set_state(PART:"elm.text", "ellipsis", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/icon_text_style_item/copypaste";
+ alias: "elm/ctxpopup/text_style_item_horizontal/copypaste";
+ alias: "elm/ctxpopup/text_style_item/copypaste";
+ alias: "elm/ctxpopup/icon_style_item/copypaste";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ data.item: "item_max_size" CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MAX_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: (CTXPOPUP_COPYPASTE_ITEM_HORIZONTAL_WIDTH_MIN_INC-1) CTXPOPUP_COPYPASTE_ITEM_HEIGHT_MIN_INC;
+ rel1 {to: "separator"; relative: 1.0 0.0;}
+ color_class: "B093P";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "separator";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color_class: "B097";
+ align: 0 0.5;
+ min: 0 0;
+ max: 0 -1;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: CTXPOPUP_COPYPASTE_SEPARATOR_MIN_SIZE_INC;
+ max: CTXPOPUP_COPYPASTE_SEPARATOR_MAX_SIZE_INC;
+ visible: 1;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "icon_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_COPYPASTE_ICON_WIDTH_INC CTXPOPUP_COPYPASTE_ICON_HEIGHT_INC;
+ max: CTXPOPUP_COPYPASTE_ICON_WIDTH_INC CTXPOPUP_COPYPASTE_ICON_HEIGHT_INC;
+ align: 0.5 0.0;
+ aspect: 1.0 1.0;
+ }
+ }
+ part {
+ name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color_class: "B096";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "clicked" 0.0;
+ color_class: "B096P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B096D";
+ }
+ }
+ part {
+ name: "events";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "item_click";
+ signal: "mouse,clicked,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"icon_clip", "disabled", 0.0);
+ set_state(PART:"disclip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"icon_clip", "default", 0.0);
+ set_state(PART:"disclip", "default", 0.0);
+ }
+ }
+ program {
+ name: "hide_separator";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "show_separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "item_pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"icon_clip", "clicked", 0.0);
+ }
+ }
+ }
+ program { name: "item,unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "item_released";
+ }
+ program {
+ name: "item_released";
+ signal: "mouse,up,1";
+ source: "events";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/icon_text_style_item/help";
+ alias: "elm/ctxpopup/text_style_item_horizontal/help";
+ alias: "elm/ctxpopup/text_style_item/help";
+ alias: "elm/ctxpopup/icon_style_item/help";
+
+ data.item: "item_max_size" CTXPOPUP_HELP_ITEM_WIDTH_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_HELP_ITEM_WIDTH_INC CTXPOPUP_HELP_ITEM_HEIGHT_INC;
+ max: CTXPOPUP_HELP_ITEM_WIDTH_INC CTXPOPUP_HELP_ITEM_HEIGHT_INC;
+ }
+ }
+ part {
+ name: "left_top_padding";
+ scale: 1;
+ type: SPACER;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_HELP_ITEM_LR_PAD_INC CTXPOPUP_HELP_ITEM_TB_PAD_INC;
+ max: CTXPOPUP_HELP_ITEM_LR_PAD_INC CTXPOPUP_HELP_ITEM_TB_PAD_INC;
+ align: 0 0;
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 1 CTXPOPUP_HELP_ITEM_HEIGHT_INC;
+ max: CTXPOPUP_HELP_ITEM_TEXT_MAX_WIDTH_INC CTXPOPUP_HELP_ITEM_HEIGHT_INC;
+ rel1 {relative: 1.0 1.0; to: "left_top_padding";}
+ rel2 {relative: 0.0 0.0; to: "right_bottom_padding";}
+ text {
+ max: 1 0;
+ style: "popup_help_style";
+ }
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_HELP_ITEM_LR_PAD_INC CTXPOPUP_HELP_ITEM_TB_PAD_INC;
+ max: CTXPOPUP_HELP_ITEM_LR_PAD_INC CTXPOPUP_HELP_ITEM_TB_PAD_INC;
+ align: 1.0 1.0;
+ }
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/text_style_item_horizontal/default";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: CTXPOPUP_HORIZONTAL_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 1;
+ max: CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 CTXPOPUP_HORIZONTAL_ITEM_HEIGHT_MAX_INC;
+ rel1 {to_x: "separator"; relative: 1.0 0.0;}
+ color_class: "B093P";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "separator";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color_class: "B097";
+ rel2 {relative: 0.0 1.0; offset: 0 0;}
+ align: 0 0.5;
+ fixed: 0 1;
+ min: 0 0;
+ max: 0 -1;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 0;
+ max: CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC -1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_HORIZONTAL_ITEM_TEXT_TOP_PADDING_INC;
+ max: (CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_HORIZONTAL_ITEM_TEXT_TOP_PADDING_INC;
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 1 CTXPOPUP_HORIZONTAL_ITEM_TEXT_HEIGHT_MIN_INC;
+ max: CTXPOPUP_TEXT_MAX_INC (CTXPOPUP_HORIZONTAL_ITEM_HEIGHT_MAX_INC-CTXPOPUP_HORIZONTAL_ITEM_TEXT_TOP_PADDING_INC-CTXPOPUP_HORIZONTAL_ITEM_TEXT_BOTTOM_PADDING_INC);
+ align: 0.5 0.5;
+ rel1 {relative: 1.0 1.0; to: "left_top_padding";}
+ rel2 {relative: 0.0 0.0; to: "right_bottom_padding";}
+ color_class: "T112";
+ text {
+ text_class: "T112";
+ size_range: CTXPOPUP_HORIZONTAL_ITEM_TEXT_SIZE_INC CTXPOPUP_HORIZONTAL_ITEM_TEXT_MAX_SIZE_INC;
+ align: 0 0.5;
+ min: 1 1;
+ }
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T112P";
+ color_class: "T112P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T112D";
+ color_class: "T112D";
+ }
+ }
+ part {
+ name: "right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_HORIZONTAL_ITEM_TEXT_BOTTOM_PADDING_INC;
+ max: (CTXPOPUP_HORIZONTAL_ITEM_LR_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_HORIZONTAL_ITEM_TEXT_BOTTOM_PADDING_INC;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ }
+ }
+ part {
+ name: "events";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "item_clicked";
+ signal: "mouse,clicked,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"disclip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"disclip", "default", 0.0);
+ }
+ }
+ program {
+ name: "hide_separator";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "show_separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "item_pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
+ }
+ }
+ }
+ program { name: "item,unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "item_released";
+ }
+ program {
+ name: "item_released";
+ signal: "mouse,up,1";
+ source: "events";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+///////////////////////////////////////////////////////////////////////////////
+group {
+ name: "elm/ctxpopup/icon_style_item/default";
+
+ script {
+ public mouse_down = 0;
+ public multi_down = 0;
+ }
+
+ parts {
+ part {
+ name: "event_blocker";
+ type: RECT;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 CTXPOPUP_ICON_ITEM_HORIZONTAL_HEIGHT_INC;
+ max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2 CTXPOPUP_HORIZONTAL_ITEM_HEIGHT_MAX_INC;
+ rel1 {to_x: "separator"; relative: 1.0 0.0;}
+ color_class: "B093P";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "separator";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color_class: "B097";
+ rel2 {relative: 0.0 1.0; offset: 0 0;}
+ align: 0 0.5;
+ fixed: 0 1;
+ min: 0 0;
+ max: 0 -1;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC 0;
+ max: CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC -1;
+ visible: 1;
+ }
+ }
+ part {
+ name: "left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_ICON_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_TOP_PADDING_INC;
+ max: (CTXPOPUP_ITEM_ICON_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_TOP_PADDING_INC;
+ align: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part {
+ name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "icon_clip";
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: CTXPOPUP_HORIZONTAL_ICON_WIDTH_INC CTXPOPUP_HORIZONTAL_ICON_HEIGHT_INC;
+ max: CTXPOPUP_HORIZONTAL_ICON_WIDTH_INC CTXPOPUP_HORIZONTAL_ICON_HEIGHT_INC;
+ rel1 {to: "left_top_padding"; relative: 1 1;}
+ rel2 {to: "right_bottom_padding"; relative: 0 0;}
+ }
+ }
+ part {
+ name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color_class: "B096";
+ }
+ description {
+ state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B096P";
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B096D";
+ }
+ }
+ part {
+ name: "right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: (CTXPOPUP_ITEM_ICON_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_BOTTOM_PADDING_INC;
+ max: (CTXPOPUP_ITEM_ICON_LR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_ICON_BOTTOM_PADDING_INC;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ }
+ }
+ part {
+ name: "events";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "disclip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "item_clicked";
+ signal: "mouse,clicked,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0) {
+ emit("elm,action,click", "");
+ run_program(PROGRAM:"touch_snd");
+ }
+ }
+ }
+ program {
+ name: "touch_snd";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"disclip", "disabled", 0.0);
+ set_state(PART:"icon_clip", "disabled", 0.0);
+ }
+ }
+ program {
+ name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"disclip", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ }
+ }
+ program {
+ name: "hide_separator";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "show_separator";
+ signal: "elm,state,separator";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "separator";
+ }
+ program {
+ name: "item_pressed";
+ signal: "mouse,down,1";
+ source: "events";
+ script {
+ if (get_int(multi_down) == 0 && get_int(mouse_down) == 0) {
+ set_int(mouse_down, 1);
+ set_state(PART:"bg", "clicked", 0.0);
+ set_state(PART:"icon_clip", "clicked", 0.0);
+ }
+ }
+ }
+ program { name: "item,unpressed";
+ signal: "elm,action,unpressed";
+ source: "elm";
+ after: "item_released";
+ }
+ program {
+ name: "item_released";
+ signal: "mouse,up,1";
+ source: "events";
+ script {
+ if (get_int(mouse_down) == 1) {
+ set_int(mouse_down, 0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"icon_clip", "default", 0.0);
+ }
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/datetime.edc b/2.3-wearable/widgets/datetime.edc
new file mode 100644
index 00000000..f4f15818
--- /dev/null
+++ b/2.3-wearable/widgets/datetime.edc
@@ -0,0 +1,1328 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+///////////////////////////////////////////////////////////////////////////////
+// datetime
+///////////////////////////////////////////////////////////////////////////////
+
+#define UP_SWALLOW_BTN(_to_part, _visibility) \
+ part { \
+ name: "up_btn_"#_to_part; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ align: 0.5 0.0; \
+ min: DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE; \
+ max: DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE; \
+ fixed: 1 1; \
+ visible: _visibility; \
+ rel1 { \
+ to: _to_part; \
+ } \
+ rel2 { \
+ to: _to_part; \
+ } \
+ } \
+ }
+
+#define DOWN_SWALLOW_BTN(_to_part, _visibility) \
+ part { \
+ name: "down_btn_"#_to_part; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ align: 0.5 1.0; \
+ min: DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE; \
+ max: DATETIME_TOP_FOOT_BUTTON_SWALLOW_SIZE; \
+ fixed: 1 1; \
+ visible: _visibility; \
+ rel1 { \
+ to: _to_part; \
+ } \
+ rel2 { \
+ to: _to_part; \
+ } \
+ } \
+ }
+
+group { name: "elm/datetime/base/default";
+ alias: "elm/datetime/base/datepicker_layout";
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_DATE_PICKER_BG_MIN_SIZE;
+ max: DATETIME_DATE_PICKER_BG_MIN_SIZE;
+ fixed: 1 1;
+ }
+ }
+ UP_SWALLOW_BTN(field0.padding, 1)
+ part { name: "field0.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "year" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ }
+ description { state: "month" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field0";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field0.padding";
+ rel2.to: "field0.padding";
+ }
+ }
+ DOWN_SWALLOW_BTN(field0.padding, 1)
+ part { name: "field.padding0";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field0.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field0.padding";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ UP_SWALLOW_BTN(field1.padding, 1)
+ part { name: "field1.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding0";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding0";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "year" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ }
+ description { state: "date" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field1.padding";
+ rel2.to: "field1.padding";
+ }
+ }
+ DOWN_SWALLOW_BTN(field1.padding, 1)
+ part { name: "field.padding1";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field1.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field1.padding";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ UP_SWALLOW_BTN(field2.padding, 1)
+ part { name: "field2.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding1";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding1";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "month" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ }
+ description { state: "date" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field2.padding";
+ rel2.to: "field2.padding";
+ }
+ }
+ DOWN_SWALLOW_BTN(field2.padding, 1)
+ UP_SWALLOW_BTN(field3.padding, 0)
+ part { name: "field3.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field3.padding, 0)
+ UP_SWALLOW_BTN(field4.padding, 0)
+ part { name: "field4.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field4";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field4.padding, 0)
+ UP_SWALLOW_BTN(field5.padding, 0)
+ part { name: "field5.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field5";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field5.padding, 0)
+ }
+ programs {
+ program { name: "field0.year";
+ signal: "elm,state,field0,year";
+ source: "*";
+ action: STATE_SET "year" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field0.month";
+ signal: "elm,state,field0,month";
+ source: "*";
+ action: STATE_SET "month" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field0.date";
+ signal: "elm,state,field0,date";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field1.year";
+ signal: "elm,state,field1,year";
+ source: "*";
+ action: STATE_SET "year" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field1.month";
+ signal: "elm,state,field1,month";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field1.date";
+ signal: "elm,state,field1,date";
+ source: "*";
+ action: STATE_SET "date" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field2.year";
+ signal: "elm,state,field2,year";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field2.padding";
+ }
+ program { name: "field2.month";
+ signal: "elm,state,field2,month";
+ source: "*";
+ action: STATE_SET "month" 0.0;
+ target: "field2.padding";
+ }
+ program { name: "field2.date";
+ signal: "elm,state,field2,date";
+ source: "*";
+ action: STATE_SET "date" 0.0;
+ target: "field2.padding";
+ }
+ }
+}
+
+group { name: "elm/datetime/base/timepicker_layout";
+ images {
+ image: "tw_timepicker_colon.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_TIME_PICKER_BG_MIN_SIZE;
+ max: DATETIME_TIME_PICKER_BG_MIN_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "left.padding";
+ type: SPACER;
+ scale:1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_LEFT_PADDING_MIN_WIDTH 0;
+ fixed: 1 0;
+ }
+ }
+ UP_SWALLOW_BTN(field3.padding, 1)
+ part { name: "field3.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "left.padding";
+ }
+ rel2.to: "left.padding";
+ align: 0.0 0.5;
+ }
+ description { state: "minute" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ }
+ description { state: "ampm" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_AMPM_FIELD_WIDTH 0;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "field3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field3.padding";
+ rel2.to: "field3.padding";
+ visible: 1;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field3.padding, 1)
+ part { name: "field.padding3";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field3.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field3.padding";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "colon" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_COLON_BG_MIN_SIZE 0;
+ }
+ }
+ UP_SWALLOW_BTN(field4.padding, 1)
+ part { name: "field4.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding3";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding3";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "hour" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field4";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field4.padding";
+ rel2.to: "field4.padding";
+ visible: 1;
+ }
+ }
+ DOWN_SWALLOW_BTN(field4.padding, 1)
+ part { name: "field.padding4";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field4.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field4.padding";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "colon" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_COLON_BG_MIN_SIZE 0;
+ }
+ }
+ UP_SWALLOW_BTN(field5.padding, 1)
+ part { name: "field5.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_AMPM_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding4";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding4";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "hour" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ }
+ description { state: "minute" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "field5";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 1 1;
+ rel1.to: "field5.padding";
+ rel2.to: "field5.padding";
+ visible: 1;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field5.padding, 1)
+ part { name: "colon";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_TIME_COLON_IMAGE_SIZE;
+ max: DATETIME_TIME_COLON_IMAGE_SIZE;
+ fixed: 1 1;
+ image.normal: "tw_timepicker_colon.png";
+ color_class: "W084";
+ rel1.to: "field.padding3";
+ rel2.to: "field.padding3";
+ }
+ description { state: "field4" 0.0;
+ inherit: "default" 0.0;
+ rel1.to: "field.padding4";
+ rel2.to: "field.padding4";
+ }
+ }
+ UP_SWALLOW_BTN(field0.padding, 0)
+ part { name: "field0.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field0";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field0.padding, 0)
+ UP_SWALLOW_BTN(field1.padding, 0)
+ part { name: "field1.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field1.padding, 0)
+ UP_SWALLOW_BTN(field2.padding, 0)
+ part { name: "field2.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ DOWN_SWALLOW_BTN(field2.padding, 0)
+ }
+ programs {
+ program { name: "field3.hour";
+ signal: "elm,state,field3,hour";
+ source: "*";
+ script {
+ set_state(PART:"field3.padding", "default", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ }
+ }
+ program { name: "field3.minute";
+ signal: "elm,state,field3,minute";
+ source: "*";
+ action: STATE_SET "minute" 0.0;
+ script {
+ set_state(PART:"field3.padding", "minute", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ }
+ }
+ program { name: "field3.ampm";
+ signal: "elm,state,field3,ampm";
+ source: "*";
+ action: STATE_SET "ampm" 0.0;
+ script {
+ set_state(PART:"field3.padding", "ampm", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ set_state(PART:"left.padding", "default", 0.0);
+ set_state(PART:"field.padding4", "colon", 0.0);
+ set_state(PART:"field.padding3", "defuault", 0.0);
+ set_state(PART:"colon", "field4", 0.0);
+ }
+ }
+ program { name: "field4.hour";
+ signal: "elm,state,field4,hour";
+ source: "*";
+ action: STATE_SET "hour" 0.0;
+ target: "field4.padding";
+ }
+ program { name: "field4.minute";
+ signal: "elm,state,field4,minute";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field4.padding";
+ }
+ program { name: "field5.hour";
+ signal: "elm,state,field5,hour";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "hour", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ }
+ }
+ program { name: "field5.minute";
+ signal: "elm,state,field5,minute";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "minute", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ }
+ }
+ program { name: "field5.ampm";
+ signal: "elm,state,field5,ampm";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "default", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ set_state(PART:"left.padding", "default", 0.0);
+ set_state(PART:"field.padding3", "colon", 0.0);
+ set_state(PART:"field.padding4", "defualt", 0.0);
+ set_state(PART:"colon", "default", 0.0);
+ }
+ }
+ program { name: "field3.ampm.hide";
+ signal: "elm,state,field3,ampm,hide";
+ source: "*";
+ action: STATE_SET "ampm_hide" 0.0;
+ target: "field3";
+ target: "field3.padding";
+ target: "left.padding";
+ }
+ program { name: "field5.ampm.hide";
+ signal: "elm,state,field5,ampm,hide";
+ source: "*";
+ action: STATE_SET "ampm_hide" 0.0;
+ target: "field5";
+ target: "field5.padding";
+ target: "left.padding";
+ }
+ }
+}
+
+group { name: "elm/datetime/datepicker_layout/entry";
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_DATE_PICKER_BG_NO_BTN_MIN_SIZE;
+ max: DATETIME_DATE_PICKER_BG_NO_BTN_MIN_SIZE;
+ align: 0.5 0.0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "field0.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "month" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ }
+ description { state: "date" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field0";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field0.padding";
+ rel2.to: "field0.padding";
+ }
+ }
+ part { name: "field.padding0";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field0.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field0.padding";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "field1.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding0";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding0";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "year" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ }
+ description { state: "date" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field1.padding";
+ rel2.to: "field1.padding";
+ }
+ }
+ part { name: "field.padding1";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field1.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field1.padding";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "field2.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_DATE_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding1";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding1";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "year" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_YEAR_FIELD_WIDTH 0;
+ }
+ description { state: "month" 0.0;
+ inherit: "default";
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field2.padding";
+ rel2.to: "field2.padding";
+ }
+ }
+ part { name: "field3.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ part { name: "field4.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field4";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ part { name: "field5.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field5";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program { name: "field0.year";
+ signal: "elm,state,field0,year";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field0.month";
+ signal: "elm,state,field0,month";
+ source: "*";
+ action: STATE_SET "month" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field0.date";
+ signal: "elm,state,field0,date";
+ source: "*";
+ action: STATE_SET "date" 0.0;
+ target: "field0.padding";
+ }
+ program { name: "field1.year";
+ signal: "elm,state,field1,year";
+ source: "*";
+ action: STATE_SET "year" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field1.month";
+ signal: "elm,state,field1,month";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field1.date";
+ signal: "elm,state,field1,date";
+ source: "*";
+ action: STATE_SET "date" 0.0;
+ target: "field1.padding";
+ }
+ program { name: "field2.year";
+ signal: "elm,state,field2,year";
+ source: "*";
+ action: STATE_SET "year" 0.0;
+ target: "field2.padding";
+ }
+ program { name: "field2.month";
+ signal: "elm,state,field2,month";
+ source: "*";
+ action: STATE_SET "month" 0.0;
+ target: "field2.padding";
+ }
+ program { name: "field2.date";
+ signal: "elm,state,field2,date";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field2.padding";
+ }
+ }
+}
+
+group { name: "elm/datetime/timepicker_layout/entry";
+ images {
+ image: "tw_timepicker_colon.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_TIME_PICKER_BG_NO_BTN_MIN_SIZE;
+ max: DATETIME_TIME_PICKER_BG_NO_BTN_MIN_SIZE;
+ align: 0.5 0.0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "left.padding";
+ type: SPACER;
+ scale:1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_LEFT_PADDING_MIN_WIDTH 0;
+ fixed: 1 0;
+ }
+ }
+ part { name: "field3.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "left.padding";
+ }
+ rel2.to: "left.padding";
+ align: 0.0 0.5;
+ }
+ description { state: "minute" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ }
+ description { state: "ampm" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_AMPM_FIELD_WIDTH 0;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "field3";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field3.padding";
+ rel2.to: "field3.padding";
+ visible: 1;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "field.padding3";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field3.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field3.padding";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "colon" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_COLON_BG_MIN_SIZE 0;
+ }
+ }
+ part { name: "field4.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding3";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding3";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "hour" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ }
+ }
+ part { name: "field4";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "field4.padding";
+ rel2.to: "field4.padding";
+ visible: 1;
+ }
+ }
+ part { name: "field.padding4";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_DATE_FIELD_PADDING_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field4.padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field4.padding";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "colon" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_COLON_BG_MIN_SIZE 0;
+ }
+ }
+ part { name: "field5.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: DATETIME_TIME_AMPM_FIELD_WIDTH 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "field.padding4";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "field.padding4";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "hour" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_HOUR_FIELD_WIDTH 0;
+ }
+ description { state: "minute" 0.0;
+ inherit: "default" 0.0;
+ min: DATETIME_TIME_MINUTE_FIELD_WIDTH 0;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "field5";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 1 1;
+ rel1.to: "field5.padding";
+ rel2.to: "field5.padding";
+ visible: 1;
+ }
+ description { state: "ampm_hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "colon";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_TIME_COLON_IMAGE_SIZE;
+ max: DATETIME_TIME_COLON_IMAGE_SIZE;
+ fixed: 1 1;
+ image.normal: "tw_timepicker_colon.png";
+ color_class: "W084";
+ rel1.to: "field.padding3";
+ rel2.to: "field.padding3";
+ }
+ description { state: "field4" 0.0;
+ inherit: "default" 0.0;
+ rel1.to: "field.padding4";
+ rel2.to: "field.padding4";
+ }
+ }
+ part { name: "field0.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field0";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ part { name: "field1.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ part { name: "field2.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "field2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program { name: "field3.hour";
+ signal: "elm,state,field3,hour";
+ source: "*";
+ script {
+ set_state(PART:"field3.padding", "default", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ }
+ }
+ program { name: "field3.minute";
+ signal: "elm,state,field3,minute";
+ source: "*";
+ action: STATE_SET "minute" 0.0;
+ script {
+ set_state(PART:"field3.padding", "minute", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ }
+ }
+ program { name: "field3.ampm";
+ signal: "elm,state,field3,ampm";
+ source: "*";
+ action: STATE_SET "ampm" 0.0;
+ script {
+ set_state(PART:"field3.padding", "ampm", 0.0);
+ set_state(PART:"field3", "default", 0.0);
+ set_state(PART:"left.padding", "default", 0.0);
+ set_state(PART:"field.padding4", "colon", 0.0);
+ set_state(PART:"field.padding3", "defuault", 0.0);
+ set_state(PART:"colon", "field4", 0.0);
+ }
+ }
+ program { name: "field4.hour";
+ signal: "elm,state,field4,hour";
+ source: "*";
+ action: STATE_SET "hour" 0.0;
+ target: "field4.padding";
+ }
+ program { name: "field4.minute";
+ signal: "elm,state,field4,minute";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "field4.padding";
+ }
+ program { name: "field5.hour";
+ signal: "elm,state,field5,hour";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "hour", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ }
+ }
+ program { name: "field5.minute";
+ signal: "elm,state,field5,minute";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "minute", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ }
+ }
+ program { name: "field5.ampm";
+ signal: "elm,state,field5,ampm";
+ source: "*";
+ script {
+ set_state(PART:"field5.padding", "default", 0.0);
+ set_state(PART:"field5", "default", 0.0);
+ set_state(PART:"left.padding", "default", 0.0);
+ set_state(PART:"field.padding3", "colon", 0.0);
+ set_state(PART:"field.padding4", "defualt", 0.0);
+ set_state(PART:"colon", "default", 0.0);
+ }
+ }
+ program { name: "field3.ampm.hide";
+ signal: "elm,state,field3,ampm,hide";
+ source: "*";
+ action: STATE_SET "ampm_hide" 0.0;
+ target: "field3";
+ target: "field3.padding";
+ target: "left.padding";
+ }
+ program { name: "field5.ampm.hide";
+ signal: "elm,state,field5,ampm,hide";
+ source: "*";
+ action: STATE_SET "ampm_hide" 0.0;
+ target: "field5";
+ target: "field5.padding";
+ target: "left.padding";
+ }
+ }
+} \ No newline at end of file
diff --git a/2.3-wearable/widgets/entry.edc b/2.3-wearable/widgets/entry.edc
new file mode 100755
index 00000000..3dbaa41d
--- /dev/null
+++ b/2.3-wearable/widgets/entry.edc
@@ -0,0 +1,6621 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+// FIXME: There is no UI images for entry !!!
+// All images from redwood dark theme
+
+#define ENTRY_PREEDIT_SUB1_COLOR "#2EA8E1"
+#define ENTRY_PREEDIT_SUB2_COLOR "#9962C3"
+#define ENTRY_PREEDIT_SUB3_COLOR "#76DE37"
+#define ENTRY_PREEDIT_SUB4_COLOR "#999999"
+#define ENTRY_PREEDIT_UNDERLINE_COLOR "#FFFFFF"
+#define ENTRY_PREEDIT_TEXT_COLOR "#000000"
+#define ENTRY_PREEDIT_BACKGROUND_COLOR "#FFFFFF"
+#define ENTRY_SELECTION_BG_COLOR 19 106 144 255
+#define ENTRY_SELECTION_EDGE_COLOR 59 115 182 255
+
+#define ENTRY_BLOCK_HANDLE_SOURCE7 "elm/entry/selection/block_handle_left"
+#define ENTRY_BLOCK_HANDLE_SOURCE8 "elm/entry/selection/block_handle_right"
+#define ENTRY_CURSOR_HANDLE_SOURCE9 "elm/entry/cursor_handle/default"
+#define ENTRY_BLOCK_HANDLE_SOURCE10 "elm/entry/selection/block_handle_edge_left"
+#define ENTRY_BLOCK_HANDLE_SOURCE11 "elm/entry/selection/block_handle_edge_right"
+
+#define ENTRY_EDITFIELD_FOCUS_DATA \
+ data.item: "focus_highlight" "on";
+
+#define ENTRY_TOP_BOTTOM_PADDING( SIZE ) \
+ part { name: "top_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 0 SIZE; \
+ max: 0 SIZE; \
+ align: 0.5 0.0; \
+ fixed: 0 1; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 0.0; \
+ } \
+ } \
+ part { name: "bottom_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 0 SIZE; \
+ max: 0 SIZE; \
+ align: 0.5 1.0; \
+ fixed: 0 1; \
+ rel1.relative: 0.0 1.0; \
+ rel2.relative: 1.0 1.0; \
+ } \
+ }
+
+#define ENTRY_TOP_BOTTOM_REL \
+ rel1 { \
+ to_y: "top_padding"; \
+ relative: 0.0 1.0; \
+ } \
+ rel2 { \
+ to_y: "bottom_padding"; \
+ relative: 1.0 0.0; \
+ }
+
+#define ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL \
+ rel1 { \
+ to_x: "focus_left_padding"; \
+ to_y: "top_padding";\
+ relative: 1.0 1.0; \
+ } \
+ rel2 { \
+ to_x: "clear_padding"; \
+ to_y: "bottom_padding"; \
+ relative: 0.0 0.0; \
+ }
+
+#define ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC \
+ script { \
+ public scroll_enabled; \
+ }
+
+#define ENTRY_EDITFIELD_SWALLOW_PARTS \
+ part { name: "clear_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ align: 1.0 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 1.0; \
+ } \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ min: ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0; \
+ max: ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0; \
+ } \
+ } \
+ part { name: "elm.swallow.clear"; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ align: 1.0 0.5; \
+ fixed: 1 1; \
+ rel1 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_right_padding"; \
+ relative: 0.0 1.0; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "visible" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_FOCUS_PARTS \
+ ENTRY_TOP_BOTTOM_PADDING(ENTRY_TOP_BOTTOM_PADDING_HEIGHT) \
+ part { name: "focus_bg"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ repeat_events: 1; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ color_class: "B099L1"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "B099L1D"; \
+ visible: 1; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "focus_left_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
+ fixed: 1 0; \
+ align: 0.0 0.5; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 0.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_right_padding"; \
+ type: SPACER; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ min: 10 0; \
+ max: 10 0; \
+ align: 1.0 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to_x: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ } \
+ part { name: "focus_rect_top"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC; \
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC; \
+ align: 0.0 0.0; \
+ rel1 { \
+ to: "focus_bg"; \
+ relative: 0.0 0.0; \
+ } \
+ rel2 { \
+ to: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ color_class: "B099L2"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "W201"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "B099L2D"; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "focus_rect_left"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0; \
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1; \
+ align: 0.0 0.0; \
+ rel1 { \
+ to: "focus_rect_top"; \
+ relative: 0.0 1.0; \
+ } \
+ rel2 { \
+ to: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ color_class: "B099L2"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "W201"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "B099L2D"; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "focus_rect_right"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0; \
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1; \
+ align: 1.0 0.0; \
+ rel1 { \
+ to: "focus_rect_top"; \
+ relative: 0.0 1.0; \
+ } \
+ rel2 { \
+ to: "focus_bg"; \
+ relative: 1.0 1.0; \
+ } \
+ color_class: "B099L2"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "W201"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "B099L2D"; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ } \
+ part { name: "focus_rect_bottom"; \
+ type: RECT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 1; \
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC; \
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC; \
+ align: 0.0 1.0; \
+ rel1 { \
+ to: "focus_rect_left"; \
+ relative: 1.0 0.0; \
+ } \
+ rel2 { \
+ to: "focus_rect_right"; \
+ relative: 0.0 1.0; \
+ } \
+ color_class: "B099L2"; \
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "W201"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color_class: "B099L2D"; \
+ } \
+ description { state: "hidden" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART \
+ part { name: "event_rect"; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ visible: 1; \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM \
+ program { name: "event_rect_touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "event_rect"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+#define ENTRY_EDITFIELD_SCROLLER_EVENT_RECT_SWALLOW_PART \
+ part { name: "scroller_event_rect"; \
+ type: SWALLOW; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ rel1.relative: 0.0 0.0; \
+ rel2.relative: 1.0 1.0; \
+ visible: 1; \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_SCROLLER_EVENT_RECT_SWALLOW_PROGRAM \
+ program { name: "scroller_event_rect_touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "scroller_event_rect"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+#define ENTRY_EDITFIELD_SWALLOW_PROGRAMS \
+ program { name: "scroll_enabled"; \
+ signal: "elm,state,scroll,enabled"; \
+ source: "*"; \
+ script { \
+ set_int(scroll_enabled, 1); \
+ set_state(PART:"focus_bg", "hidden", 0.0); \
+ set_state(PART:"focus_rect_top", "hidden", 0.0); \
+ set_state(PART:"focus_rect_left", "hidden", 0.0); \
+ set_state(PART:"focus_rect_right", "hidden", 0.0); \
+ set_state(PART:"focus_rect_bottom", "hidden", 0.0); \
+ set_state(PART:"focus_left_padding", "hidden", 0.0); \
+ set_state(PART:"focus_right_padding", "hidden", 0.0); \
+ } \
+ } \
+ program { name: "scroll_disabled"; \
+ signal: "elm,state,scroll,disabled"; \
+ source: "*"; \
+ script { \
+ set_int(scroll_enabled, 0); \
+ set_state(PART:"focus_bg", "default", 0.0); \
+ set_state(PART:"focus_rect_top", "default", 0.0); \
+ set_state(PART:"focus_rect_left", "default", 0.0); \
+ set_state(PART:"focus_rect_right", "default", 0.0); \
+ set_state(PART:"focus_rect_bottom", "default", 0.0); \
+ set_state(PART:"focus_left_padding", "default", 0.0); \
+ set_state(PART:"focus_right_padding", "default", 0.0); \
+ } \
+ } \
+ program { name: "clear_show"; \
+ signal: "elm,state,clear,visible"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"elm.swallow.clear", "visible", 0.0); \
+ set_state(PART:"clear_padding", "visible", 0.0); \
+ } \
+ } \
+ } \
+ program { name: "clear_hide"; \
+ signal: "elm,state,clear,hidden"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"elm.swallow.clear", "default", 0.0); \
+ set_state(PART:"clear_padding", "default", 0.0); \
+ } \
+ } \
+ }
+
+#define ENTRY_EDITFIELD_FOCUS_PROGRAMS \
+ program { name: "action_focus"; \
+ signal: "elm,state,focus,on"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_bg", "focused", 0.0); \
+ set_state(PART:"focus_rect_top", "focused", 0.0); \
+ set_state(PART:"focus_rect_left", "focused", 0.0); \
+ set_state(PART:"focus_rect_right", "focused", 0.0); \
+ set_state(PART:"focus_rect_bottom", "focused", 0.0); \
+ } \
+ set_state(PART:"elm.text", "focused", 0.0); \
+ } \
+ } \
+ program { name: "action_unfocus"; \
+ signal: "elm,state,focus,off"; \
+ source: "*"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_bg", "default", 0.0); \
+ set_state(PART:"focus_rect_top", "default", 0.0); \
+ set_state(PART:"focus_rect_left", "default", 0.0); \
+ set_state(PART:"focus_rect_right", "default", 0.0); \
+ set_state(PART:"focus_rect_bottom", "default", 0.0); \
+ } \
+ set_state(PART:"elm.text", "default", 0.0); \
+ } \
+ } \
+ program { name: "enable_focus_bg"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_bg", "default", 0.0); \
+ set_state(PART:"focus_rect_top", "default", 0.0); \
+ set_state(PART:"focus_rect_left", "default", 0.0); \
+ set_state(PART:"focus_rect_right", "default", 0.0); \
+ set_state(PART:"focus_rect_bottom", "default", 0.0); \
+ } \
+ } \
+ } \
+ program { name: "disable_focus_bg"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ script { \
+ new v; \
+ v = get_int(scroll_enabled); \
+ if (!v) { \
+ set_state(PART:"focus_bg", "disabled", 0.0); \
+ set_state(PART:"focus_rect_top", "disabled", 0.0); \
+ set_state(PART:"focus_rect_left", "disabled", 0.0); \
+ set_state(PART:"focus_rect_right", "disabled", 0.0); \
+ set_state(PART:"focus_rect_bottom", "disabled", 0.0); \
+ } \
+ } \
+ }
+
+#define ENTRY_SOUND_PROGRAM \
+ program { name: "touch_snd"; \
+ signal: "mouse,clicked,1"; \
+ source: "elm.text"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.text", st, 30, vl); \
+ if (strcmp(st, "disabled")) \
+ run_program(PROGRAM:"play_sound"); \
+ } \
+ } \
+ program { name: "play_sound"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+group { name: "elm/entry/base/editfield";
+ alias: "elm/entry/base-mixedwrap/editfield";
+ alias: "elm/entry/base/editfield/default";
+ alias: "elm/entry/base/editfield/lighting";
+ alias: "elm/entry/base/editfield/multiline";
+ alias: "elm/entry/base/editfield/multiline/default";
+ alias: "elm/entry/base/editfield/multiline/lighting";
+ alias: "elm/entry/base/editfield/searchbar/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_textblock_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=mixed left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=mixed left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=mixed left_margin=1 right_margin=2 text_class=T121D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G left_margin=4 right_margin=2 ellipsis=1.0 text_class=T121G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_textblock_guide_style";
+ min: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "editfield_textblock_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_focused_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_disabled_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-noedit/editfield";
+ alias: "elm/entry/base-noedit-mixedwrap/editfield";
+ alias: "elm/entry/base-noedit/editfield/default";
+ alias: "elm/entry/base-noedit/editfield/lighting";
+ alias: "elm/entry/base-noedit/editfield/multiline";
+ alias: "elm/entry/base-noedit/editfield/multiline/default";
+ alias: "elm/entry/base-noedit/editfield/multiline/lighting";
+ inherit: "elm/entry/base/editfield";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base/editfield/fixed_size";
+ alias: "elm/entry/base-mixedwrap/editfield/fixed_size";
+ alias: "elm/entry/base/editfield/multiline/fixed_size";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_textblock_fixed_size_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=mixed left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_fixed_size_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=mixed left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_fixed_size_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=mixed left_margin=1 right_margin=2 text_class=T121D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_fixed_size_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G left_margin=4 right_margin=2 ellipsis=1.0 text_class=T121G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_textblock_fixed_size_guide_style";
+ min: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "editfield_textblock_fixed_size_style";
+ min: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_fixed_size_focused_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_fixed_size_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-noedit/editfield/fixed_size";
+ alias: "elm/entry/base-noedit-mixedwrap/editfield/fixed_size";
+ alias: "elm/entry/base-noedit/editfield/multiline/fixed_size";
+ inherit: "elm/entry/base/editfield/fixed_size";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-charwrap/editfield";
+ alias: "elm/entry/base/editfield/char_wrap";
+ alias: "elm/entry/base/editfield/default/char_wrap";
+ alias: "elm/entry/base/editfield/lighting/char_wrap";
+ alias: "elm/entry/base/editfield/multiline/char_wrap";
+ alias: "elm/entry/base/editfield/multiline/default/char_wrap";
+ alias: "elm/entry/base/editfield/multiline/lighting/char_wrap";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_textblock_char_wrap_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=char left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=char left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDTIFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=char left_margin=1 right_margin=2 text_class=T121D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G left_margin=4 right_margin=2 ellipsis=1.0 text_class=T121G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_textblock_char_wrap_guide_style";
+ min: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "editfield_textblock_char_wrap_style";
+ min: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_char_wrap_focused_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_char_wrap_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-noedit-charwrap/editfield";
+ alias: "elm/entry/base-noedit/editfield/char_wrap";
+ alias: "elm/entry/base-noedit/editfield/default/char_wrap";
+ alias: "elm/entry/base-noedit/editfield/lighting/char_wrap";
+ alias: "elm/entry/base-noedit/editfield/multiline/char_wrap";
+ alias: "elm/entry/base-noedit/editfield/multiline/default/char_wrap";
+ alias: "elm/entry/base-noedit/editfield/multiline/lighting/char_wrap";
+ inherit: "elm/entry/base-charwrap/editfield";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-charwrap/editfield/fixed_size";
+ alias: "elm/entry/base/editfield/char_wrap/fixed_size";
+ alias: "elm/entry/base/editfield/multiline/char_wrap/fixed_size";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_textblock_char_wrap_fixed_size_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=char left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_fixed_size_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=char left_margin=1 right_margin=2 text_class=T121";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_fixed_size_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDTIFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=char left_margin=1 right_margin=2 text_class=T121D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_textblock_char_wrap_fixed_size_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G left_margin=4 right_margin=2 ellipsis=1.0 text_class=T121G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_textblock_char_wrap_fixed_size_guide_style";
+ min: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "editfield_textblock_char_wrap_fixed_size_style";
+ min: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_char_wrap_fixed_size_focused_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_textblock_char_wrap_fixed_size_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-noedit-charwrap/editfield/fixed_size";
+ alias: "elm/entry/base-noedit/editfield/char_wrap/fixed_size";
+ alias: "elm/entry/base-noedit/editfield/multiline/char_wrap/fixed_size";
+ inherit: "elm/entry/base-charwrap/editfield/fixed_size";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/editfield";
+ alias: "elm/entry/base-single/editfield/default";
+ alias: "elm/entry/base-single/editfield/lighting";
+ alias: "elm/entry/base-single/editfield/singleline";
+ alias: "elm/entry/base-single/editfield/singleline/default";
+ alias: "elm/entry/base-single/editfield/singleline/lighting";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_single_textblock_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=none left_margin=1 right_margin=3 text_class=T121";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=none left_margin=1 right_margin=3 text_class=T121";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=none left_margin=1 right_margin=3 text_class=T121D";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G wrap=none left_margin=4 right_margin=3 text_class=T121G ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: ; // selection over
+ //source3: ; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_disabled_style";
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/editfield";
+ alias: "elm/entry/base-single-noedit/editfield/default";
+ alias: "elm/entry/base-single-noedit/editfield/lighting";
+ alias: "elm/entry/base-single-noedit/editfield/singleline";
+ alias: "elm/entry/base-single-noedit/editfield/singleline/default";
+ alias: "elm/entry/base-single-noedit/editfield/singleline/lighting";
+ inherit: "elm/entry/base-single/editfield";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/editfield/fixed_size";
+ alias: "elm/entry/base-single/editfield/singleline/fixed_size";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "editfield_single_textblock_fixed_size_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=none left_margin=1 right_margin=3 text_class=T121";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_fixed_size_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121 wrap=none left_margin=1 right_margin=3 text_class=T121";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_fixed_size_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121D wrap=none left_margin=1 right_margin=3 text_class=T121D";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_single_textblock_fixed_size_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_TEXT_SIZE_INC" color=#ffffff color_class=T121G wrap=none left_margin=4 right_margin=3 text_class=T121G ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ ENTRY_EDITFIELD_FOCUS_DATA
+ parts {
+ ENTRY_EDITFIELD_FOCUS_PARTS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PART
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_single_textblock_fixed_size_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: ; // selection over
+ //source3: ; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_fixed_size_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ ENTRY_EDITFIELD_TEXTBLOCK_DEFAULT_REL
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_fixed_size_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_fixed_size_disabled_style";
+ }
+ }
+ }
+ ENTRY_EDITFIELD_SWALLOW_PARTS
+ }
+ ENTRY_EDITFIELD_SWALLOW_SCRIPT_PUBLIC
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ ENTRY_SOUND_PROGRAM
+ ENTRY_EDITFIELD_SWALLOW_PROGRAMS
+ ENTRY_EDITFIELD_FOCUS_PROGRAMS
+ ENTRY_EDITFIELD_EVENT_RECT_SWALLOW_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/editfield/fixed_size";
+ alias: "elm/entry/base-single-noedit/editfield/singleline/fixed_size";
+ inherit: "elm/entry/base-single/editfield/fixed_size";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/editfield/searchbar/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ styles {
+ style { name: "editfield_searchbar_single_textblock_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101 wrap=none left_margin=1 right_margin=3 text_class=T101";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101 wrap=none left_margin=1 right_margin=3 text_class=T101";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101D wrap=none left_margin=1 right_margin=3 text_class=T101D";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101G wrap=none left_margin=4 right_margin=3 text_class=T101G ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ style { name: "editfield_searchbar_single_textblock_disabled_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101D wrap=none left_margin=4 right_margin=3 text_class=T101D ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ script {
+ public guide_hidden;
+ public disabled;
+ }
+ parts {
+ ENTRY_TOP_BOTTOM_PADDING(ENTRY_TOP_BOTTOM_PADDING_HEIGHT)
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_searchbar_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_disabled_guide_style";
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ ENTRY_TOP_BOTTOM_REL
+ text {
+ style: "editfield_searchbar_single_textblock_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_int(disabled, 1);
+ if (!get_int(guide_hidden)) {
+ set_state(PART:"elm.guide", "disabled", 0.0);
+ }
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_int(disabled, 0);
+ if (!get_int(guide_hidden)) {
+ set_state(PART:"elm.guide", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ script {
+ set_int(guide_hidden, 1);
+ set_state(PART:"elm.guide", "hidden", 0.0);
+ }
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ script {
+ set_int(guide_hidden, 0);
+ if (get_int(disabled)) {
+ set_state(PART:"elm.guide", "disabled", 0.0);
+ } else {
+ set_state(PART:"elm.guide", "default", 0.0);
+ }
+ }
+ }
+ ENTRY_SOUND_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/editfield/searchbar/default";
+ inherit: "elm/entry/base-single/editfield/searchbar/default";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/editfield/searchbar/fixed_size";
+ alias: "elm/entry/base-single/editfield/popup";
+ alias: "elm/entry/base-single/editfield/password/popup";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ styles {
+ style { name: "editfield_searchbar_single_textblock_fixed_size_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101 wrap=none left_margin=1 right_margin=3 text_class=T101";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_fixed_size_focused_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101 wrap=none left_margin=1 right_margin=3 text_class=T101";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_fixed_size_disabled_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101D wrap=none left_margin=1 right_margin=3 text_class=T101D";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
+ }
+ style { name: "editfield_searchbar_single_textblock_fixed_size_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101G wrap=none left_margin=4 right_margin=3 text_class=T101G ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ style { name: "editfield_searchbar_single_textblock_fixed_size_disabled_guide_style";
+ base: "font=Tizen:style=Regular font_size="ENTRY_EDITFIELD_SEARCHBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T101D wrap=none left_margin=4 right_margin=3 text_class=T101D ellipsis=1.0";
+ tag: "br" "";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ script {
+ public guide_hidden;
+ public disabled;
+ }
+ parts {
+ ENTRY_TOP_BOTTOM_PADDING(ENTRY_TOP_BOTTOM_PADDING_HEIGHT)
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_disabled_guide_style";
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ ENTRY_TOP_BOTTOM_REL
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_int(disabled, 1);
+ if (!get_int(guide_hidden)) {
+ set_state(PART:"elm.guide", "disabled", 0.0);
+ }
+ set_state(PART:"elm.text", "disabled", 0.0);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_int(disabled, 0);
+ if (!get_int(guide_hidden)) {
+ set_state(PART:"elm.guide", "default", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ script {
+ set_int(guide_hidden, 1);
+ set_state(PART:"elm.guide", "hidden", 0.0);
+ }
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ script {
+ set_int(guide_hidden, 0);
+ if (get_int(disabled)) {
+ set_state(PART:"elm.guide", "disabled", 0.0);
+ } else {
+ set_state(PART:"elm.guide", "default", 0.0);
+ }
+ }
+ }
+ ENTRY_SOUND_PROGRAM
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/editfield/searchbar/fixed_size";
+ alias: "elm/entry/base-single-noedit/editfield/popup";
+ alias: "elm/entry/base-single-noedit/editfield/password/popup";
+ inherit: "elm/entry/base-single/editfield/searchbar/fixed_size";
+ parts {
+ part { name: "elm.text";
+ entry_mode: PLAIN;
+ source4: "";
+ }
+ }
+ programs {
+ program { name: "touch_snd";
+ }
+ }
+}
+
+group { name: "elm/entry/emoticon/angry/default"; images.image:
+ "emo-angry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-angry.png"; } } } }
+group { name: "elm/entry/emoticon/angry-shout/default"; images.image:
+ "emo-angry-shout.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-angry-shout.png"; } } } }
+group { name: "elm/entry/emoticon/guilty/default"; images.image:
+ "emo-guilty.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-guilty.png"; } } } }
+group { name: "elm/entry/emoticon/haha/default"; images.image:
+ "emo-haha.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-haha.png"; } } } }
+group { name: "elm/entry/emoticon/half-smile/default"; images.image:
+ "emo-half-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-half-smile.png"; } } } }
+group { name: "elm/entry/emoticon/happy/default"; images.image:
+ "emo-happy.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-happy.png"; } } } }
+group { name: "elm/entry/emoticon/kiss/default"; images.image:
+ "emo-kiss.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-kiss.png"; } } } }
+group { name: "elm/entry/emoticon/little-bit-sorry/default"; images.image:
+ "emo-little-bit-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-little-bit-sorry.png"; } } } }
+group { name: "elm/entry/emoticon/love/default"; images.image:
+ "emo-love.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-love.png"; } } } }
+group { name: "elm/entry/emoticon/minimal-smile/default"; images.image:
+ "emo-minimal-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-minimal-smile.png"; } } } }
+group { name: "elm/entry/emoticon/omg/default"; images.image:
+ "emo-omg.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-omg.png"; } } } }
+group { name: "elm/entry/emoticon/smile/default"; images.image:
+ "emo-smile.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-smile.png"; } } } }
+group { name: "elm/entry/emoticon/sorry/default"; images.image:
+ "emo-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-sorry.png"; } } } }
+group { name: "elm/entry/emoticon/surprised/default"; images.image:
+ "emo-surprised.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-surprised.png"; } } } }
+group { name: "elm/entry/emoticon/tongue-dangling/default"; images.image:
+ "emo-tongue-dangling.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-tongue-dangling.png"; } } } }
+group { name: "elm/entry/emoticon/very-sorry/default"; images.image:
+ "emo-very-sorry.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-very-sorry.png"; } } } }
+group { name: "elm/entry/emoticon/wink/default"; images.image:
+ "emo-wink.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-wink.png"; } } } }
+group { name: "elm/entry/emoticon/worried/default"; images.image:
+ "emo-worried.png" COMP; parts { part { name: "icon"; mouse_events: 0; description { state: "default" 0.0; max: ENTRY_EMOTICON_SIZE; image.normal:
+ "emo-worried.png"; } } } }
+
+group { name: "elm/entry/base/default";
+ alias: "elm/entry/base-mixedwrap/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "entry_textblock_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122 left_margin=1 right_margin=2 wrap=mixed text_class=T122";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_textblock_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122D left_margin=1 right_margin=2 wrap=mixed text_class=T122D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_textblock_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122G left_margin=4 right_margin=2 wrap=mixed text_class=T122G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-charwrap/default";
+ alias: "elm/entry/base/char_wrap";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "entry_textblock_char_wrap_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122 wrap=char left_margin=1 right_margin=2 text_class=T122";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_textblock_char_wrap_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122D wrap=char left_margin=1 right_margin=2 text_class=T122D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_textblock_char_wrap_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122G wrap=char left_margin=4 right_margin=2 text_class=T122G";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_char_wrap_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_char_wrap_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_char_wrap_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-nowrap/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "entry_textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ styles {
+ style { name: "entry_single_textblock_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122 wrap=none left_margin=1 right_margin=3 text_class=T122";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_single_textblock_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122D wrap=none left_margin=1 right_margin=3 text_class=T122D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link " "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_single_textblock_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color=#ffffff color_class=T122G wrap=none left_margin=4 right_margin=3 text_class=T122G ellipsis=1.0";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 0;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "entry_single_textblock_style";
+ min: 1 1;
+ max: 0 0;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "entry_single_textblock_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+}
+
+group { name: "elm/entry/base-noedit/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+}
+
+ group { name: "elm/entry/base-noedit-charwrap/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_char_wrap_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_char_wrap_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_char_wrap_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+ }
+
+ group { name: "elm/entry/base-noedit-mixedwrap/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+ }
+
+ group { name: "elm/entry/base-nowrap-noedit/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "entry_textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+ }
+
+ group { name: "elm/entry/base-password/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "entry_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PASSWORD;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "entry_single_textblock_style";
+ repch: "•";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+ }
+
+ group { name: "elm/entry/base-password/editfield/popup";
+ inherit: "elm/entry/base-password/default";
+ alias: "elm/entry/base-password/editfield/password/popup";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ ENTRY_TOP_BOTTOM_PADDING(ENTRY_TOP_BOTTOM_PADDING_HEIGHT)
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PASSWORD;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ ENTRY_TOP_BOTTOM_REL
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_style";
+ repch: "•";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_searchbar_single_textblock_fixed_size_disabled_style";
+ }
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/cursor/default";
+ parts {
+ part { name: "clip2";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clip";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip2";
+ description { state: "default" 0.0;
+ rel1.offset: -10 0;
+ rel2.offset: 9 9;
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ min: 2 2;
+ align: 0.5 1.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "glow";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip2";
+ description { state: "default" 0.0;
+ min: 3 0;
+ fixed: 1 0;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 -2;
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ offset: 0 -2;
+ }
+ color_class: "B084";
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ action: STATE_SET "hidden" 0.0;
+ in: 0.6 0.0;
+ target: "glow";
+ after: "show4";
+ }
+ program { name: "show4";
+ action: STATE_SET "default" 0.0;
+ in: 0.6 0.0;
+ target: "glow";
+ after: "show";
+ }
+ program { name: "focused";
+ signal: "elm,action,focus";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "clip2";
+ after: "show4";
+ }
+ program { name: "unfocused";
+ signal: "elm,action,unfocus";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "clip2";
+ after: "stop_glow";
+ }
+ program { name: "stop_glow";
+ action: ACTION_STOP;
+ target: "show";
+ target: "show4";
+ }
+ program { name: "show_cursor";
+ signal: "elm,action,show,cursor";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "show";
+ target: "show4";
+ after: "show_cursor1";
+ }
+ program { name: "show_cursor1";
+ action: STATE_SET "default" 0.0;
+ target: "glow";
+ after: "show";
+ }
+ }
+ }
+
+ group { name: "elm/entry/selection/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color_class: "B132";
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/selection/block_handle_left";
+ data.item: "height" "79";
+ data.item: "gap" "32";
+ }
+
+ group { name: "elm/entry/selection/block_handle_right";
+ data.item: "height" "79";
+ data.item: "gap" "32";
+ }
+
+ group { name: "elm/entry/cursor_handle/default";
+ images {
+ image: "b_handler_bottom_1.png" COMP;
+ image: "b_handler_bottom_2.png" COMP;
+ image: "b_handler_top_1.png" COMP;
+ image: "b_handler_top_2.png" COMP;
+ }
+ parts {
+ part { name: "handle";
+ scale: 1;
+ mouse_events: 1;
+ description { state: "default" 0.0;
+ max: 41 52;
+ min: 41 52;
+ align: 0 0;
+ visible: 0;
+ align: 0.5 0;
+ image {
+ normal: "b_handler_bottom_1.png";
+ border: 0 0 0 0;
+ }
+ image.middle: SOLID;
+ color_class: "B103L1";
+ fill.smooth: 0;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "top" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 0.5 1.0;
+ image {
+ normal: "b_handler_top_1.png";
+ border: 0 0 0 0;
+ }
+ }
+ }
+ part { name: "handle_mask";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "handle";
+ rel2.to: "handle";
+ visible: 0;
+ align: 0.5 0;
+ image {
+ normal: "b_handler_bottom_2.png";
+ border: 0 0 0 0;
+ }
+ image.middle: SOLID;
+ color_class: "B103L2";
+ fill.smooth: 0;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "top" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 0.5 1.0;
+ image {
+ normal: "b_handler_top_2.png";
+ border: 0 0 0 0;
+ }
+ }
+ }
+ }
+ script {
+ public on_top;
+ }
+ programs {
+ program { name: "focused";
+ signal: "edje,focus,in";
+ source: "edje";
+ script {
+ new on_top_val = get_int(on_top);
+ if (on_top_val)
+ {
+ set_state(PART:"handle", "top", 0.0);
+ set_state(PART:"handle_mask", "top", 0.0);
+ }
+ else
+ {
+ set_state(PART:"handle", "show", 0.0);
+ set_state(PART:"handle_mask", "show", 0.0);
+ }
+ }
+ }
+ program { name: "unfocused";
+ signal: "edje,focus,out";
+ source: "edje";
+ script {
+ set_state(PART:"handle", "default", 0.0);
+ set_state(PART:"handle_mask", "default", 0.0);
+ }
+ }
+ program { name: "show";
+ signal: "edje,cursor,handle,show";
+ source: "edje";
+ script {
+ set_int(on_top, 0);
+ set_state(PART:"handle", "show", 0.0);
+ set_state(PART:"handle_mask", "show", 0.0);
+ }
+ }
+ program { name: "hide";
+ signal: "edje,cursor,handle,hide";
+ source: "edje";
+ script {
+ set_state(PART:"handle", "default", 0.0);
+ set_state(PART:"handle_mask", "default", 0.0);
+ }
+ }
+ program { name: "top";
+ signal: "edje,cursor,handle,top";
+ source: "edje";
+ script {
+ set_int(on_top, 1);
+ set_state(PART:"handle", "top", 0.0);
+ set_state(PART:"handle_mask", "top", 0.0);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/selection/block_handle_edge_left";
+ }
+
+ group { name: "elm/entry/selection/block_handle_edge_right";
+ }
+
+ group { name: "elm/entry/anchor/default";
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ description { state: "default" 0.0;
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/preedit/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 128 128 128 255;
+ }
+ }
+ }
+ }
+
+#define MAGNIFIER_SCALE 1.5
+
+ group { name: "elm/entry/magnifier/fixed-size";
+ data.item: "height" MAGNIFIER_HEIGHT_FIXED;
+ data.item: "scale" MAGNIFIER_SCALE;
+ data.item: "arrow" MAGNIFIER_ARROW_HEIGHT_INC;
+ images {
+ image: "tw_magnifier_bg.#.png" COMP;
+ image: "tw_magnifier_bg_effect.#.png" COMP;
+ image: "tw_magnifier_bg_line.#.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: MAGNIFIER_WIDTH_FIXED MAGNIFIER_HEIGHT_FIXED;
+ image.normal: "tw_magnifier_bg.#.png";
+ color_class: "B131";
+ }
+ description { state: "custom_cc" 0.0;
+ inherit: "default" 0.0;
+ color_class: "mgf_custom_cc";
+ }
+ }
+ part { name: "bg_line";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_magnifier_bg_line.#.png";
+ color_class: "W201";
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "bg_effect";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_magnifier_bg_effect.#.png";
+ color_class: "B161";
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "left_offset";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: MAGNIFIER_LEFT_OFFSET_INC;
+ max: MAGNIFIER_LEFT_OFFSET_INC;
+ rel1 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "right_offset";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: MAGNIFIER_RIGHT_OFFSET_INC;
+ max: MAGNIFIER_RIGHT_OFFSET_INC;
+ rel1 {
+ to: "bg";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 1.0 1.0;
+ }
+ align: 1.0 1.0;
+ }
+ }
+ part { name: "swallow";
+ type: SWALLOW;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 {
+ to: "left_offset";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "right_offset";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ }
+ script {
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_INT_SET) {
+ new r, g, b, a;
+
+ r = getarg(2);
+ g = getarg(3);
+ b = getarg(4);
+ a = getarg(5);
+
+ set_state(PART:"bg", "custom_cc", 0.0);
+ set_color_class("mgf_custom_cc", r, g, b, a);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/entry/matchlist/default";
+ data.item: "max_height" "230";
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale : 1;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 20;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 20;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1 {
+ to: "base";
+ }
+ rel2 {
+ to: "base";
+ }
+ }
+ }
+ }
+ }
+
+group { name: "elm/entry/base/font_color_black";
+ alias: "elm/entry/base-mixedwrap/font_color_black";
+ alias: "elm/entry/base/font_color_black/default";
+ alias: "elm/entry/base/font_color_black/lighting";
+ alias: "elm/entry/base/font_color_black/multiline";
+ alias: "elm/entry/base/font_color_black/multiline/default";
+ alias: "elm/entry/base/font_color_black/multiline/lighting";
+ alias: "elm/entry/base/editfield/font_color_black";
+
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+
+ styles {
+ style { name: "font_color_black_textblock_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_textblock_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_DISABLED_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_textblock_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_GUIDE_TEXT_COLOR_INC" wrap=mixed left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "font_color_black_textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-noedit/font_color_black";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_textblock_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "font_color_black_textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_textblock_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+}
+
+group { name: "elm/entry/base-charwrap/font_color_black";
+ alias: "elm/entry/base/font_color_black/char_wrap";
+ alias: "elm/entry/base/font_color_black/default/char_wrap";
+ alias: "elm/entry/base/font_color_black/lighting/char_wrap";
+ alias: "elm/entry/base/font_color_black/multiline/char_wrap";
+ alias: "elm/entry/base/font_color_black/multiline/default/char_wrap";
+ alias: "elm/entry/base/font_color_black/multiline/lighting/char_wrap";
+ alias: "elm/entry/base-charwrap/editfield/font_color_black";
+
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+
+ styles {
+ style { name: "font_color_black_textblock_char_wrap_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_textblock_char_wrap_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_DISABLED_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_textblock_char_wrap_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_GUIDE_TEXT_COLOR_INC" wrap=char left_margin=1 right_margin=2 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_textblock_char_wrap_guide_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 1;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "font_color_black_textblock_char_wrap_style";
+ min: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_textblock_char_wrap_disabled_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/font_color_black";
+ alias: "elm/entry/base-single/font_color_black/default";
+ alias: "elm/entry/base-single/font_color_black/lighting";
+ alias: "elm/entry/base-single/font_color_black/singleline";
+ alias: "elm/entry/base-single/font_color_black/singleline/default";
+ alias: "elm/entry/base-single/font_color_black/singleline/lighting";
+ alias: "elm/entry/base-single/editfield/font_color_black";
+ alias: "elm/entry/base-single/editfield/searchbar/font_color_black";
+
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+
+ styles {
+ style { name: "font_color_black_single_textblock_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_single_textblock_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_DISABLED_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "font_color_black_single_textblock_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_GUIDE_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=entry";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single-noedit/font_color_black";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PLAIN;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_style";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ }
+}
+group { name: "elm/entry/base-single/font_color_black/tizen_text_class";
+ inherit: "elm/entry/base-single/font_color_black";
+ styles {
+ style { name: "tizen_text_class_single_textblock_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "tizen_text_class_single_textblock_disabled_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_DISABLED_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color=#000000FF";
+ tag: "preedit_sel" "+ backing=on backing_color=#000000FF color=#FFFFFFFF";
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color=#000000FF";
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color=#000000FF";
+ }
+ style { name: "tizen_text_class_single_textblock_guide_style";
+ base: "font=Tizen:style=Roman font_size="ENTRY_TEXT_SIZE" color="ENTRY_FONT_COLOR_BLACK_GUIDE_TEXT_COLOR_INC" wrap=none left_margin=1 right_margin=3 text_class=tizen ellipsis=1.0";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ }
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "tizen_text_class_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ description { state: "default" 0.0;
+ text {
+ style: "tizen_text_class_single_textblock_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "tizen_text_class_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+}
+group { name: "elm/entry/base-password/font_color_black";
+ alias: "elm/entry/base-password/editfield/font_color_black";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "font_color_black_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PASSWORD;
+ select_mode: BLOCK_HANDLE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_style";
+ repch: "•";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "font_color_black_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "gdisable";
+ signal: "elm,guide,disabled";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "genable";
+ signal: "elm,guide,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.guide";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+ group { name: "elm/entry/base-password/editfield";
+ inherit: "elm/entry/base-password/default";
+ alias: "elm/entry/base-password/editfield/default";
+ data.item: "default_font_size" "24";
+ data.item: "min_font_size" "8";
+ data.item: "max_font_size" "60";
+ data {
+ item: context_menu_orientation "horizontal";
+ }
+ parts {
+ ENTRY_TOP_BOTTOM_PADDING(ENTRY_TOP_BOTTOM_PADDING_HEIGHT)
+ part { name: "elm.guide";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ text {
+ style: "editfield_single_textblock_guide_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: PASSWORD;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ ENTRY_TOP_BOTTOM_REL
+ text {
+ style: "editfield_single_textblock_style";
+ repch: "•";
+ min: 1 1;
+ max: 0 1;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_focused_style";
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "editfield_single_textblock_disabled_style";
+ }
+ }
+ }
+ }
+ }
+
+
+group { name: "elm/scroller/entry/default";
+ data {
+ item: "focus_highlight" "off";
+ }
+ script {
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
+ public timer0(val) {
+ new v;
+ v = get_int(sbvis_v);
+ if (v) {
+ v = get_int(sbalways_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ v = get_int(sbvis_h);
+ if (v) {
+ v = get_int(sbalways_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ set_int(sbvis_timer, 0);
+ return 0;
+ }
+ }
+ parts {
+ part { name: "focus_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "focus_rect_top";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "focus_rect_left";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "focus_rect_right";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "focus_rect_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "clipper";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "contentclipper";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "icon_padding";
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "clear_padding";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "icon_padding";
+ type: SPACER;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel2 {
+ to_x: "elm.swallow.icon";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 0.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clear_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to_x: "elm.swallow.clear";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.clear";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.end";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 1.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ clip_to: "contentclipper";
+ scale: 1;
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "icon_padding";
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "clear_padding";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "sb_vbar_clip_master";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar_clip";
+ clip_to: "sb_vbar_clip_master";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 10 17;
+ align: 1.0 0.0;
+ rel1 {
+ relative: 0.0 0.0;
+ to_y: "elm.swallow.content";
+ to_x: "clear_padding";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_y: "sb_hbar";
+ to_x: "clear_padding";
+ }
+ }
+ }
+ part { name: "elm.dragable.vbar";
+ type: RECT;
+ scale: 1;
+ clip_to: "sb_vbar_clip";
+ mouse_events: 0;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "sb_vbar";
+ }
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ min: 10 17;
+ max: 10 99999;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ }
+ }
+ part { name: "sb_hbar_clip_master";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar_clip";
+ clip_to: "sb_hbar_clip_master";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 17 10;
+ align: 0.0 1.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.swallow.content";
+ to_y: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "sb_vbar";
+ to_y: "elm.swallow.content";
+ }
+ }
+ }
+ part { name: "elm.dragable.hbar";
+ type: RECT;
+ scale: 1;
+ clip_to: "sb_hbar_clip";
+ mouse_events: 0;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "sb_hbar";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 17 10;
+ max: 99999 10;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "sb_hbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "sb_hbar";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ emit("reload", "elm");
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,action,show,icon";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.icon";
+ target: "icon_padding";
+ }
+ program { name: "icon_hide";
+ signal: "elm,action,hide,icon";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.icon";
+ target: "icon_padding";
+ }
+ program { name: "clear_show";
+ signal: "elm,state,clear,visible";
+ source: "*";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ }
+ program { name: "clear_hide";
+ signal: "elm,state,clear,hidden";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ }
+ program { name: "end_show";
+ signal: "elm,action,show,end";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.end";
+ }
+ program { name: "end_hide";
+ signal: "elm,action,hide,end";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.end";
+ }
+ program { name: "vbar_show";
+ signal: "elm,action,show,vbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_hide";
+ signal: "elm,action,hide,vbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_show_always";
+ signal: "elm,action,show_always,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (!v) {
+ set_int(sbalways_v, 1);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ }
+ }
+ }
+ program { name: "vbar_show_notalways";
+ signal: "elm,action,show_notalways,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (v) {
+ set_int(sbalways_v, 0);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_vbar_show";
+ signal: "do-show-vbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_vbar_clip";
+ }
+ program { name: "sb_vbar_hide";
+ signal: "do-hide-vbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_vbar_clip";
+ }
+
+ program { name: "hbar_show";
+ signal: "elm,action,show,hbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_hide";
+ signal: "elm,action,hide,hbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_show_always";
+ signal: "elm,action,show_always,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (!v) {
+ set_int(sbalways_h, 1);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ }
+ }
+ }
+ program { name: "hbar_show_notalways";
+ signal: "elm,action,show_notalways,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (v) {
+ set_int(sbalways_h, 0);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_hbar_show";
+ signal: "do-show-hbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_hbar_clip";
+ }
+ program { name: "sb_hbar_hide";
+ signal: "do-hide-hbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.5;
+ target: "sb_hbar_clip";
+ }
+
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ }
+ }
+
+group { name: "elm/scroller/entry/editfield";
+ inherit: "elm/scroller/entry/default";
+ alias: "elm/scroller/entry/editfield/fixed_size";
+ data {
+ item: "focus_highlight" "on";
+ }
+ parts {
+ part { name: "focus_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "B099L1";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "B099L1D";
+ }
+ }
+ part { name: "focus_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 8 0;
+ max: 8 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 8 0;
+ max: 8 0;
+ align: 1.0 0.5;
+ fixed: 1 0;
+ rel1 {
+ to: "focus_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_rect_top";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC;
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC;
+ align: 0 0;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ color_class: "B099L2";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B099L2D";
+ }
+ }
+ part { name: "focus_rect_left";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0;
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1;
+ align: 0 0;
+ rel1 {
+ to: "focus_rect_top";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ color_class: "B099L2";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B099L2D";
+ }
+ }
+ part { name: "focus_rect_right";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0;
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1;
+ align: 1 0;
+ rel1 {
+ to: "focus_rect_top";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ color_class: "B099L2";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B099L2D";
+ }
+ }
+ part { name: "focus_rect_bottom";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC;
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC;
+ align: 0 1;
+ rel1 {
+ to: "focus_rect_left";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_rect_right";
+ relative: 0.0 1.0;
+ }
+ color_class: "B099L2";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B099L2D";
+ }
+ }
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "focus_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "focus_right_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "clear_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0;
+ max: ENTRY_EDITFIELD_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0;
+ }
+ }
+ part { name: "elm.swallow.clear";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "clear_right_padding";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "clear_right_padding";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clear_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: ENTRY_EDITFIELD_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC;
+ max: ENTRY_EDITFIELD_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC;
+ }
+ }
+ }
+ programs {
+ program { name: "action_focus";
+ signal: "elm,state,focus,on";
+ source: "*";
+ action: STATE_SET "focused" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,state,focus,off";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ }
+ program { name: "enabled";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ }
+ program { name: "clear_show";
+ signal: "elm,state,clear,visible";
+ source: "*";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ target: "clear_right_padding";
+ }
+ program { name: "clear_hide";
+ signal: "elm,state,clear,hidden";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ target: "clear_right_padding";
+ }
+ }
+}
+
+group { name: "elm/scroller/entry/editfield/searchbar/default";
+ inherit: "elm/scroller/entry/default";
+ alias: "elm/scroller/entry/editfield/searchbar/fixed_size";
+ alias: "elm/scroller/entry/editfield/popup";
+ alias: "elm/scroller/entry/editfield/password/popup";
+ data {
+ item: "focus_highlight" "on";
+ }
+ images {
+ image: "b_list_search_icon.png" COMP;
+ }
+ parts {
+ part { name: "focus_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "B082L1";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "B082L1S";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "B082L1D";
+ }
+ }
+ part { name: "focus_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 6 0;
+ max: 6 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 8 0;
+ max: 8 0;
+ align: 1.0 0.5;
+ fixed: 1 0;
+ rel1 {
+ to: "focus_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "focus_rect_top";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color_class: "B082L2";
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC;
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC;
+ align: 0.0 0.0;
+ rel1 {
+ to: "focus_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2S";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2D";
+ }
+ }
+ part { name: "focus_rect_left";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color_class: "B082L2";
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0;
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1;
+ align: 0.0 0.0;
+ rel1 {
+ to: "focus_rect_top";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2S";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2D";
+ }
+ }
+ part { name: "focus_rect_right";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color_class: "B082L2";
+ min: ENTRY_FOCUS_RECT_EDGE_INC 0;
+ max: ENTRY_FOCUS_RECT_EDGE_INC -1;
+ align: 1.0 0.0;
+ rel1 {
+ to: "focus_rect_top";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "focus_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2S";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2D";
+ }
+ }
+ part { name: "focus_rect_bottom";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color_class: "B082L2";
+ min: 0 ENTRY_FOCUS_RECT_EDGE_INC;
+ max: -1 ENTRY_FOCUS_RECT_EDGE_INC;
+ align: 0.0 1.0;
+ rel1 {
+ to: "focus_rect_left";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "focus_rect_right";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2S";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B082L2D";
+ }
+ }
+ part { name: "search_icon_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ENTRY_SEARCH_ICON_LEFT_PADDING_MIN_MAX_INC;
+ max: ENTRY_SEARCH_ICON_LEFT_PADDING_MIN_MAX_INC;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "focus_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "focus_left_padding";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "search_icon";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ repeat_events: 1;
+ clip_to: "search_icon.clipper";
+ description { state: "default" 0.0;
+ min: ENTRY_SEARCH_ICON_MIN_MAX_INC;
+ max: ENTRY_SEARCH_ICON_MIN_MAX_INC;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ image.normal: "b_list_search_icon.png";
+ rel1 {
+ to_x: "search_icon_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "search_icon_left_padding";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ visible: 0;
+ }
+ }
+ part { name: "search_icon_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ENTRY_SEARCH_ICON_RIGHT_PADDING_MIN_MAX_INC;
+ max: ENTRY_SEARCH_ICON_RIGHT_PADDING_MIN_MAX_INC;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "search_icon";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "search_icon";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ }
+ }
+ part { name: "search_icon.clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "B083";
+ }
+ description { state: "focused" 0.0;
+ color_class: "B083";
+ }
+ description { state: "disabled" 0.0;
+ color_class: "B083D";
+ }
+ }
+ part { name: "search_icon_over";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "search_icon_left_padding";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "search_icon_right_padding";
+ relative: 1.0 1.0;
+ }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "search_icon_disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.to: "search_icon";
+ rel2.to: "search_icon";
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "focus_left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "focus_right_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "icon_padding";
+ type: SPACER;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "search_icon_right_padding";
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "search_icon_right_padding";
+ to_y: "bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel2 {
+ to_x: "elm.swallow.icon";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "search_icon_right_padding";
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "search_icon_right_padding";
+ to_y: "bg";
+ relative: 1.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clear_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.end";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: ENTRY_SEARCH_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0;
+ max: ENTRY_SEARCH_CLEAR_BUTTON_PADDING_MIN_MAX_INC 0;
+ }
+ }
+ part { name: "elm.swallow.clear";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_x: "clear_right_padding";
+ to_y: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "clear_right_padding";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clear_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_y: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_y: "bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: ENTRY_SEARCH_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC;
+ max: ENTRY_SEARCH_CLEAR_BUTTON_RIGHT_PADDING_MIN_MAX_INC;
+ }
+ }
+ }
+ programs {
+ program { name: "search_icon_show";
+ signal: "elm,action,show,search_icon";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "search_icon_left_padding";
+ target: "search_icon_right_padding";
+ target: "search_icon";
+ }
+ program { name: "search_icon_hide";
+ signal: "elm,action,hide,search_icon";
+ source: "*";
+ action: STATE_SET "hide" 0.0;
+ target: "search_icon_left_padding";
+ target: "search_icon_right_padding";
+ target: "search_icon";
+ }
+ program { name: "action_focus";
+ signal: "elm,state,focus,on";
+ source: "*";
+ action: STATE_SET "focused" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ target: "search_icon.clipper";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,state,focus,off";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ target: "search_icon.clipper";
+ target: "search_icon.clipper";
+ }
+ program { name: "search_icon_touch_snd";
+ signal: "mouse,clicked,1";
+ source: "search_icon_over";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "search_icon_disabler";
+ target: "search_icon.clipper";
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ target: "search_icon.clipper";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "search_icon_disabler";
+ target: "search_icon.clipper";
+ target: "focus_bg";
+ target: "focus_rect_top";
+ target: "focus_rect_left";
+ target: "focus_rect_right";
+ target: "focus_rect_bottom";
+ target: "search_icon.clipper";
+ }
+ program { name: "clear_show";
+ signal: "elm,state,clear,visible";
+ source: "*";
+ action: STATE_SET "visible" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ target: "clear_right_padding";
+ }
+ program { name: "clear_hide";
+ signal: "elm,state,clear,hidden";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.clear";
+ target: "clear_padding";
+ target: "clear_right_padding";
+ }
+ }
+}
+
+//////////////////////////// DATETIME UI //////////////////////////////////////
+
+group { name: "elm/entry/base-single/datetime/style1";
+ alias: "elm/entry/base-single/datetime";
+ alias: "elm/entry/base-single/spinner/default";
+ alias: "elm/entry/base-single/spinner/datetime";
+ data.item: "default_font_size" "52";
+ data.item: "min_font_size" "35";
+ data.item: "max_font_size" "52";
+ images {
+ image: "tw_timepicker_focus_line.#.png" COMP;
+ image: "tw_timepicker_num_bg_new_transparent.#.png" COMP;
+ }
+ styles {
+ style { name: "entry_datetime_textblock_style_1_3";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_DIGIT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T051 wrap=none text_class=T051";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_datetime_textblock_disabled_style_1_3";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_DIGIT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T051D wrap=none text_class=T051D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ }
+ data {
+ item: context_menu_orientation "none";
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ }
+ }
+ part { name: "bg_base";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new_transparent.#.png";
+ color_class: "W0811";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_focus_line.#.png";
+ color_class: "W201";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1 {
+ to: "base";
+ offset: -3 -3;
+ }
+ rel2 {
+ to: "base";
+ offset: 2 2;
+ }
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ //source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ //source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_datetime_textblock_style_1_3";
+ min: 0 1;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_datetime_textblock_disabled_style_1_3";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "action_focus";
+ signal: "elm,action,focus";
+ source: "*";
+ action: STATE_SET "focused" 0.0;
+ target: "bg";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,action,unfocus";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/datetime/style2";
+ alias: "elm/entry/base-single/datetime/style3";
+ data.item: "default_font_size" "47";
+ data.item: "min_font_size" "35";
+ data.item: "max_font_size" "47";
+ images {
+ image: "tw_timepicker_focus_line.#.png" COMP;
+ image: "tw_timepicker_num_bg_new_transparent.#.png" COMP;
+ }
+ styles {
+ style { name: "entry_datetime_textblock_style2";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_TEXT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T052 wrap=none text_class=T052";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_datetime_textblock_disabled_style2";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_TEXT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T052D wrap=none text_class=T052D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ }
+ data {
+ item: context_menu_orientation "none";
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ }
+ }
+ part { name: "bg_base";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new_transparent.#.png";
+ color_class: "W0811";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_focus_line.#.png";
+ color_class: "W201";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1 {
+ to: "base";
+ offset: -3 -3;
+ }
+ rel2 {
+ to: "base";
+ offset: 2 2;
+ }
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "text_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: DATETIME_DATE_MONTH_FIELD_WIDTH 60; // Here 60 pixal is adjusted to make UI look simiar to radio one.
+ max: DATETIME_DATE_MONTH_FIELD_WIDTH 60;
+ fixed: 1 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ repeat_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ //source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ // source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1.to: "text_bg";
+ rel2.to: "text_bg";
+ text {
+ style: "entry_datetime_textblock_style2";
+ min: 1 1;
+ fit: 1 1;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_datetime_textblock_disabled_style2";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "action_focus";
+ signal: "elm,action,focus";
+ source: "*";
+ action: STATE_SET "focused" 0.0;
+ target: "bg";
+ }
+ program { name: "action_unfocus";
+ signal: "elm,action,unfocus";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+group { name: "elm/entry/base-single/datetime/AM_PM";
+ data.item: "default_font_size" "47";
+ data.item: "min_font_size" "35";
+ data.item: "max_font_size" "47";
+ images {
+ image: "tw_timepicker_focus_line.#.png" COMP;
+ image: "tw_timepicker_num_bg_new.#.png" COMP;
+ }
+ styles {
+ style { name: "entry_datetime_textblock_AM_PM";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_TEXT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T052 wrap=none text_class=T052";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#800 underline=on underline_color=#8008";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ style { name: "entry_datetime_textblock_disabled_AM_PM";
+ base: "font=Tizen:style=Roman font_size="DATETIME_ENTRY_TEXT_SIZE" color=#ffffff align=center left_margin=1 right_margin=2 color_class=T052D wrap=none text_class=T052D";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ tag: "em" "+ font_style=Oblique";
+ tag: "b" "+ font_weight=Bold";
+ tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR" color="ENTRY_PREEDIT_TEXT_COLOR" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR;
+ tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR;
+ }
+ }
+ data {
+ item: context_menu_orientation "none";
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ }
+ }
+ part { name: "bg_base";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new.#.png";
+ color_class: "W0811";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W0812";
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_focus_line.#.png";
+ color_class: "W201";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1 {
+ to: "base";
+ offset: -3 -3;
+ }
+ rel2 {
+ to: "base";
+ offset: 2 2;
+ }
+ visible: 0;
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 1;
+ repeat_events: 1;
+ scale: 1;
+ entry_mode: EDITABLE;
+ select_mode: BLOCK_HANDLE;
+ cursor_mode: BEFORE;
+ multiline: 0;
+ //source: "elm/entry/selection/default"; // selection under
+ //source2: "X"; // selection over
+ //source3: "X"; // cursor under
+ //source4: "elm/entry/cursor/default"; // cursorover
+ source5: "elm/entry/anchor/default"; // anchor under
+ //source6: "X"; // anchor over
+ //source7: ENTRY_BLOCK_HANDLE_SOURCE7; // start selection handler
+ // source8: ENTRY_BLOCK_HANDLE_SOURCE8; // end selection handler
+ source9: ENTRY_CURSOR_HANDLE_SOURCE9; // cursor handler
+ //source10: ""; // start edge selection
+ //source11: ""; // end edge selection
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ text {
+ style: "entry_datetime_textblock_AM_PM";
+ min: 1 0;
+ align: 0.0 0.5;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "entry_datetime_textblock_disabled_AM_PM";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "focus";
+ signal: "load";
+ source: "";
+ action: FOCUS_SET;
+ target: "elm.text";
+ }
+ program { name: "action_focus";
+ signal: "mouse,down,1";
+ source: "elm.text";
+ action: STATE_SET "focused" 0.0;
+ target: "bg";
+ target: "bg_base";
+ }
+ program { name: "action_unfocus";
+ signal: "mouse,up,1";
+ source: "elm.text";
+ action: STATE_SET "default" 0.0;
+ target: "bg";
+ target: "bg_base";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.text";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+}
+
+///////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////// COPY&PASTE UI ///////////////////////////////////
+#define IMAGE_GROUP(GROUP_NAME, IMAGE_NAME) \
+ group { name: GROUP_NAME; \
+ images.image: IMAGE_NAME COMP; \
+ parts { \
+ part { name: "image"; \
+ description { \
+ state: "default" 0.0; \
+ visible: 1; \
+ image.normal: IMAGE_NAME; \
+ aspect: 1 1; \
+ aspect_preference: BOTH; \
+ } \
+ } \
+ } \
+ }
+///////////////////////////////////////////////////////////////////////////////
+
+IMAGE_GROUP("elm/copypaste/clipboard/default", "b_popup_icon_clipboard.png");
+IMAGE_GROUP("elm/copypaste/copy/default", "b_popup_icon_copy.png");
+IMAGE_GROUP("elm/copypaste/cut/default", "b_popup_icon_cut.png");
+IMAGE_GROUP("elm/copypaste/paste/default", "b_popup_icon_paste.png");
+IMAGE_GROUP("elm/copypaste/select_all/default", "b_popup_icon_select_all.png");
diff --git a/2.3-wearable/widgets/gengrid.edc b/2.3-wearable/widgets/gengrid.edc
new file mode 100644
index 00000000..f41ebd38
--- /dev/null
+++ b/2.3-wearable/widgets/gengrid.edc
@@ -0,0 +1,153 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ group { name: "elm/gengrid/item/default/default";
+ alias: "elm/gengrid/item/default_grid/default";
+ data.item: "contents" "elm.swallow.icon elm.swallow.end";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "left_top_padding";
+ type: SPACER;
+ scale : 1;
+ description { state: "default" 0.0;
+ min: GENGRID_DEFAULT_PADDING_LT_SIZE;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 0.0;
+ to: "bg";
+ }
+ }
+ }
+ part { name: "right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: GENGRID_DEFAULT_PADDING_RB_SIZE;
+ align: 1.0 1.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "bg";
+ }
+ rel2.to: "bg";
+ }
+ }
+ part { name: "item_bg";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ color: 0 0 0 0;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "left_top_padding";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "right_bottom_padding";
+ }
+ }
+ }
+ part { name: "item_bg_left_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: GENGRID_DEFAULT_PADDING_ITEM_BG_LT_SIZE;
+ align: 0.0 0.0;
+ fixed: 1 1;
+ rel1.to: "item_bg";
+ rel2 {
+ relative: 0.0 0.0;
+ to: "item_bg";
+ }
+ }
+ }
+ part { name: "item_bg_right_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: GENGRID_DEFAULT_PADDING_ITEM_BG_RB_SIZE;
+ align: 1.0 1.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "item_bg";
+ }
+ rel2.to: "item_bg";
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "item_bg_left_top_padding";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "item_bg_right_bottom_padding";
+ }
+ }
+ }
+ part { name: "elm.swallow.end";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ }
+ }
+ }
+ programs {
+ program { name: "selected";
+ signal: "elm,state,selected";
+ source: "elm";
+ }
+ program { name: "unselected";
+ signal: "elm,state,unselected";
+ source: "elm";
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "elm.swallow.icon";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"elm.swallow.icon", st, 30, vl);
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/genlist.edc b/2.3-wearable/widgets/genlist.edc
new file mode 100644
index 00000000..54594de6
--- /dev/null
+++ b/2.3-wearable/widgets/genlist.edc
@@ -0,0 +1,805 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * vim:ts=3
+*/
+#include "genlist_macro.edc"
+
+group { name: "elm/genlist/item/default/default";
+ alias: "elm/list/item/default";
+ alias: "elm/list/item_odd/default";
+ alias: "elm/list/item_compress/default";
+ alias: "elm/list/item_compress_odd/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+ data.item: "contents" "elm.swallow.icon elm.swallow.end";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_1LINE_PADDING_TOP_SIZE, LIST_1LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(SWALLOW, "elm.swallow.icon",
+ DESC_L("elm.padding.left",)
+ )
+ PART(TEXT, "elm.text",
+ DESC_LRTB("elm.swallow.icon", "elm.swallow.end", "elm.padding.top", "elm.padding.bottom",
+ min: 0 0;
+ text {
+ min: 0 1;
+ text_class: "T0211";
+ align: 0 0.5;
+ }
+ color_class: "T0211";
+ )
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T0211D";
+ color_class: "T0211D";
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T0211P";
+ color_class: "T0211P";
+ }
+ )
+ PART(SWALLOW, "elm.swallow.end",
+ DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom",)
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text"; target: "elm.swallow.icon"; target: "elm.swallow.end"; )
+}
+
+group { name: "elm/genlist/item/groupindex/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text elm.text.1";
+ data.item: "contents" "elm.icon";
+
+ parts {
+ PART(RECT, "bg",
+ description { state: "default" 0.0;
+ color_class: "B012";
+ }
+ description { state: "selected" 0.0;
+ color_class: "B012P";
+ }
+ )
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ LIST_GROUPINDEX_PADDING_TOP_SIZE, LIST_GROUPINDEX_PADDING_BOTTOM_SIZE
+ )
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.left", "elm.text.padding", "elm.padding.top", "elm.padding.bottom",
+ min: 0 LIST_GROUPINDEX_HEIGHT;
+ PARAM_TEXT("list_text_groupindex_normal",)
+ )
+ )
+ PART(SPACER, "elm.text.padding",
+ DESC_R("elm.text.1", min: 8 0; max: 8 -1; )
+ )
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_RTB("elm.icon.padding", "elm.padding.top", "elm.padding.bottom",
+ min: 0 LIST_GROUPINDEX_HEIGHT;
+ align: 1.0 0.5;
+ rel1 {
+ to: "bg";
+ relative: 0.5 0;
+ }
+ PARAM_TEXT("list_text_groupindex_sub_normal", max: 1 0;)
+ )
+ )
+ PART(SPACER, "elm.icon.padding",
+ DESC_R("elm.icon", min: 2 0; max: 2 -1;)
+ )
+ PART(SWALLOW, "elm.icon",
+ DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 0 LIST_GROUPINDEX_HEIGHT;
+ fixed: 1 0;
+ )
+ )
+ }
+ programs{
+ PROGRAM_LIST_DEFAULT(
+ target: "bg";
+ )
+ PROGRAM_LIST_SELECT(
+ target: "bg";
+ )
+ }
+}
+
+group { name: "elm/genlist/item/1text/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_1LINE_PADDING_TOP_SIZE, LIST_1LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text"; )
+}
+
+group { name: "elm/genlist/item/1text/swipe/default";
+ inherit: "elm/genlist/item/1text/default";
+
+ SCRIPTS_LIST_SWIPE
+ IMAGES_LIST_SWIPE
+
+ data.item: "texts" "elm.text elm.text.swipe.left elm.text.swipe.right";
+ data.item: "contents" "elm.icon.swipe.left elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE
+ }
+ PROGRAMS_LIST_SWIPE
+}
+
+group { name: "elm/genlist/item/1text/swipe_left/default";
+ inherit: "elm/genlist/item/1text/swipe/default";
+
+ data.item: "texts" "elm.text elm.text.swipe.left";
+ data.item: "contents" "elm.icon.swipe.left";
+
+ parts {
+ PARTS_LIST_SWIPE_LEFT
+ }
+ PROGRAMS_LIST_SWIPE_LEFT
+}
+
+group { name: "elm/genlist/item/1text/swipe_right/default";
+ inherit: "elm/genlist/item/1text/swipe/default";
+
+ data.item: "texts" "elm.text elm.text.swipe.right";
+ data.item: "contents" "elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE_RIGHT
+ }
+ PROGRAMS_LIST_SWIPE_RIGHT
+}
+
+group { name: "elm/genlist/item/2text/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.noti";
+ data.item: "contents" "elm.swallow.colorbar elm.icon.noti";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.left", "elm.icon.noti", "elm.padding.top", "elm.text.2",
+ fixed: 1 0;
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(SWALLOW, "elm.icon.noti",
+ DESC_RTB("elm.padding.right", "elm.padding.top", "elm.text.2",
+ min: 0 LIST_NOTI_NUMBER_ICON_HEIGHT;
+ )
+ )
+ PART(TEXTBLOCK, "elm.text.noti",
+ mouse_events: 0;
+ DESC_TO("elm.icon.noti",
+ min: 0 LIST_NOTI_NUMBER_ICON_HEIGHT;
+ PARAM_TEXT("list_noti_style", min: 1 1;)
+ )
+ )
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRB("elm.padding.left", "elm.padding.right", "elm.padding.bottom",
+ fixed: 1 0;
+ min: 0 0;
+ PARAM_TEXT("list_text_sub_normal",)
+ ) DESCRIPIONS_TEXT("list_text_sub_dim", "list_text_sub_normal")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2";
+ target: "elm.text.noti"; target: "elm.icon.noti";)
+}
+
+group { name: "elm/genlist/item/2text/swipe/default";
+ inherit: "elm/genlist/item/2text/default";
+
+ SCRIPTS_LIST_SWIPE
+ IMAGES_LIST_SWIPE
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.noti elm.text.swipe.left elm.text.swipe.right";
+ data.item: "contents" "elm.swallow.colorbar elm.icon.noti elm.icon.swipe.left elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE
+ }
+ PROGRAMS_LIST_SWIPE
+}
+
+group { name: "elm/genlist/item/2text/swipe_left/default";
+ inherit: "elm/genlist/item/2text/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.noti elm.text.swipe.left";
+ data.item: "contents" "elm.swallow.colorbar elm.icon.noti elm.icon.swipe.left";
+
+ parts {
+ PARTS_LIST_SWIPE_LEFT
+ }
+ PROGRAMS_LIST_SWIPE_LEFT
+}
+
+group { name: "elm/genlist/item/2text/swipe_right/default";
+ inherit: "elm/genlist/item/2text/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.noti elm.text.swipe.right";
+ data.item: "contents" "elm.swallow.colorbar elm.icon.noti elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE_RIGHT
+ }
+ PROGRAMS_LIST_SWIPE_RIGHT
+}
+
+group { name: "elm/genlist/item/2text.1/default";
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2";
+ data.item: "contents" "elm.swallow.colorbar";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRT("elm.padding.left", "elm.padding.right", "elm.padding.top",
+ min: 0 0;
+ PARAM_TEXT("list_text_sub_normal",)
+ ) DESCRIPIONS_TEXT("list_text_sub_dim", "list_text_sub_press")
+ )
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.left", "elm.padding.right","elm.text.2", "elm.padding.bottom",
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2"; )
+}
+
+group { name: "elm/genlist/item/2text.1/swipe/default";
+ inherit: "elm/genlist/item/2text.1/default";
+
+ SCRIPTS_LIST_SWIPE
+ IMAGES_LIST_SWIPE
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.left elm.text.swipe.right";
+ data.item: "contents" "elm.icon.swipe.left elm.icon.swipe.right elm.swallow.colorbar";
+
+ parts {
+ PARTS_LIST_SWIPE
+ }
+ PROGRAMS_LIST_SWIPE
+}
+
+group { name: "elm/genlist/item/2text.1/swipe_left/default";
+ inherit: "elm/genlist/item/2text.1/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.left";
+ data.item: "contents" "elm.icon.swipe.left elm.swallow.colorbar";
+
+ parts {
+ PARTS_LIST_SWIPE_LEFT
+ }
+ PROGRAMS_LIST_SWIPE_LEFT
+}
+
+group { name: "elm/genlist/item/2text.1/swipe_right/default";
+ inherit: "elm/genlist/item/2text.1/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.right";
+ data.item: "contents" "elm.icon.swipe.right elm.swallow.colorbar";
+
+ parts {
+ PARTS_LIST_SWIPE_RIGHT
+ }
+ PROGRAMS_LIST_SWIPE_RIGHT
+}
+
+group { name: "elm/genlist/item/1icon/default";
+
+ PROLOG_LIST
+ data.item: "contents" "elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ 2, 2 // FIXME: arbitrary value to prevent overlap with bottom lines
+ )
+ PART_LIST_BOTTOMLINE
+ PART(SWALLOW, "elm.icon",
+ DESC_LRTB(
+ "elm.padding.left", "elm.padding.right",
+ "elm.padding.top", "elm.padding.bottom",
+ min: 0 ( LIST_1LINE_HEIGHT - (2 + 2));
+ )
+ )
+ }
+ PROGRAMS_LIST( target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/1icon/with_no_line/default";
+ inherit: "elm/genlist/item/1icon/default";
+
+ parts {
+ PART_LIST_BOTTOMLINE_OFF
+ }
+}
+
+group { name: "elm/genlist/item/1icon/no_padding/default";
+ inherit: "elm/genlist/item/1icon/default";
+
+ parts {
+ PART_LIST_PADDINGS(0, 0, 0, 0)
+ part { name: "elm.icon";
+ description { state: "default" 0.0;
+ min: 0 LIST_1LINE_HEIGHT;
+ }
+ }
+ }
+}
+
+group { name: "elm/genlist/item/1icon/no_padding_line/default";
+ inherit: "elm/genlist/item/1icon/default";
+
+ parts {
+ PART_LIST_PADDINGS(0, 0, 0, 0)
+ PART_LIST_BOTTOMLINE_OFF
+ part { name: "elm.icon";
+ description { state: "default" 0.0;
+ min: 0 LIST_1LINE_HEIGHT;
+ }
+ }
+ }
+}
+
+group { name: "elm/genlist/item/1icon/no_line_transparent/default";
+ inherit: "elm/genlist/item/1icon/default";
+
+ parts {
+ part { name: "bg";
+ clip_to: "bg_clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ PART_LIST_PADDINGS(0, 0, 8, 8)
+ PART_LIST_BOTTOMLINE_OFF
+ part { name: "elm.icon";
+ description { state: "default" 0.0;
+ min: 0 LIST_1LINE_HEIGHT;
+ }
+ }
+ }
+}
+
+group { name: "elm/genlist/item/1text.1icon/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+ data.item: "contents" "elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_1LINE_PADDING_TOP_SIZE, LIST_1LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(SWALLOW, "elm.icon",
+ DESC_L("elm.padding.left",
+ fixed: 1 1;
+ )
+ )
+ PART(SPACER, "elm.padding.icon.right",
+ DESC_L("elm.icon", min: LIST_PADDING_DEFAULT_SIZE 0; max: LIST_PADDING_DEFAULT_SIZE -1; )
+ )
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.icon.right", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text"; target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/1text.1icon.1/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+ data.item: "contents" "elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ LIST_1LINE_PADDING_TOP_SIZE, LIST_1LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.top", "elm.padding.bottom",
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(SPACER, "elm.padding.icon.left",
+ DESC_R("elm.icon", min: LIST_PADDING_R_ICON_DEFAULT_SIZE 0; max: LIST_PADDING_R_ICON_DEFAULT_SIZE -1; )
+ )
+ PART(SWALLOW, "elm.icon", DESC_R("elm.padding.right", ) )
+ }
+ PROGRAMS_LIST( target: "elm.text"; target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/1text.1icon.divider/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1";
+ data.item: "contents" "elm.swallow.colorbar elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ LIST_1LINE_PADDING_TOP_SIZE, LIST_1LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.left", "elm.padding.divider.left", "elm.padding.top", "elm.padding.bottom",
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(SPACER, "elm.padding.divider.left",
+ DESC_R("elm.divider",
+ min: LIST_DIVIDER_PADDING_SIZE 0; max: LIST_DIVIDER_PADDING_SIZE -1;
+ )
+ )
+ PART(SWALLOW, "elm.icon",
+ DESC_FROM_R(
+ min: BUTTON_DIVIDER_BTN_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_SIZE -1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ )
+ )
+ PART(RECT, "elm.divider",
+ DESC_R("elm.icon",
+ align: 0 0.5;
+ min: 2 LIST_DIVIDER_HEIGHT;
+ max: 2 LIST_DIVIDER_HEIGHT;
+ color_class: "B0221L1";
+ )
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1";
+ target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/1text.1icon.divider/sweep/default";
+ inherit: "elm/genlist/item/1text.1icon.divider/default";
+
+ data.item: "texts" "elm.text.1 elm.text.sweep";
+ data.item: "contents" "elm.icon elm.icon.sweep";
+ SCRIPTS_LIST_SWEEP
+
+ parts {
+ PARTS_LIST_SWEEP
+ }
+ programs {
+ PROGRAMS_LIST_SWEEP
+ }
+}
+
+group { name: "elm/genlist/item/2text.1icon/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2";
+ data.item: "contents" "elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+
+ PART(SWALLOW, "elm.icon",
+ DESC_L("elm.padding.left",)
+ )
+ PART(SPACER, "elm.padding.icon.right",
+ DESC_L("elm.icon", min: LIST_PADDING_DEFAULT_SIZE 0; max: LIST_PADDING_DEFAULT_SIZE -1; )
+ )
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.icon.right", "elm.padding.right", "elm.padding.top", "elm.text.2",
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRB( "elm.padding.icon.right", "elm.padding.right", "elm.padding.bottom",
+ min: 0 0;
+ PARAM_TEXT("list_text_sub_normal",)
+ ) DESCRIPIONS_TEXT("list_text_sub_dim", "list_text_sub_press")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2";
+ target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/2text.1icon/swipe/default";
+ inherit: "elm/genlist/item/2text.1icon/default";
+
+ SCRIPTS_LIST_SWIPE
+ IMAGES_LIST_SWIPE
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.left elm.text.swipe.right";
+ data.item: "contents" "elm.icon elm.icon.swipe.left elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE
+ }
+ PROGRAMS_LIST_SWIPE
+}
+
+group { name: "elm/genlist/item/2text.1icon/swipe_left/default";
+ inherit: "elm/genlist/item/2text.1icon/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.left";
+ data.item: "contents" "elm.icon elm.icon.swipe.left";
+
+ parts {
+ PARTS_LIST_SWIPE_LEFT
+ }
+ PROGRAMS_LIST_SWIPE_LEFT
+}
+
+group { name: "elm/genlist/item/2text.1icon/swipe_right/default";
+ inherit: "elm/genlist/item/2text.1icon/swipe/default";
+
+ data.item: "texts" "elm.text.1 elm.text.2 elm.text.swipe.right";
+ data.item: "contents" "elm.icon elm.icon.swipe.right";
+
+ parts {
+ PARTS_LIST_SWIPE_RIGHT
+ }
+ PROGRAMS_LIST_SWIPE_RIGHT
+}
+
+group { name: "elm/genlist/item/2text.1icon.1/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2";
+ data.item: "contents" "elm.swallow.colorbar elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.left", "elm.padding.icon.left", "elm.padding.top", "elm.text.2",
+ min: 0 0;
+ fixed: 1 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRB("elm.padding.left", "elm.padding.icon.left", "elm.padding.bottom",
+ min: 0 0;
+ fixed: 1 0;
+ PARAM_TEXT("list_text_sub_normal",)
+ ) DESCRIPIONS_TEXT("list_text_sub_dim", "list_text_sub_press")
+ )
+ PART(SPACER, "elm.padding.icon.left",
+ DESC_R("elm.icon",
+ min: LIST_PADDING_R_ICON_DEFAULT_SIZE 0; max: LIST_PADDING_R_ICON_DEFAULT_SIZE -1;
+ )
+ )
+ PART(SWALLOW, "elm.icon",
+ DESC_RTB("elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ )
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2";
+ target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/2text.1icon.divider/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2";
+ data.item: "contents" "elm.swallow.colorbar elm.icon";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRTB("elm.padding.left", "elm.padding.divider.left", "elm.padding.top", "elm.text.2",
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRB("elm.padding.left", "elm.padding.divider.left", "elm.padding.bottom",
+ min: 0 0;
+ PARAM_TEXT("list_text_sub_normal",)
+ ) DESCRIPIONS_TEXT("list_text_sub_dim", "list_text_sub_press")
+ )
+ PART(SPACER, "elm.padding.divider.left",
+ DESC_R("elm.divider",
+ min: LIST_DIVIDER_PADDING_SIZE 0; max: LIST_DIVIDER_PADDING_SIZE -1;
+ )
+ )
+ PART(SWALLOW, "elm.icon",
+ DESC_FROM_R(
+ min: BUTTON_DIVIDER_BTN_SIZE 0;
+ max: BUTTON_DIVIDER_BTN_SIZE -1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ )
+ )
+ PART(RECT, "elm.divider",
+ DESC_R("elm.icon",
+ align: 0 0.5;
+ min: 2 LIST_DIVIDER_HEIGHT;
+ max: 2 LIST_DIVIDER_HEIGHT;
+ color_class: "B0221L1";
+ )
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2";
+ target: "elm.icon"; )
+}
+
+group { name: "elm/genlist/item/multiline/2text/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text.1 elm.text.2";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+
+ PART(TEXTBLOCK, "elm.text.1",
+ DESC_LRT("elm.padding.left", "elm.padding.right", "elm.padding.top",
+ min: 0 0;
+ PARAM_TEXT("list_text_main_normal",)
+ ) DESCRIPIONS_TEXT("list_text_main_dim", "list_text_main_press")
+ )
+ PART(SPACER, "elm.padding.text1.bottom",
+ DESC_T("elm.text.1",
+ min: 0 4; max: -1 4;
+ )
+ )
+ PART(TEXTBLOCK, "elm.text.2",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.text1.bottom", "elm.padding.bottom",
+ min: 0 0;
+ PARAM_TEXT("list_text_sub_multiline_normal",)
+ )
+ DESCRIPIONS_TEXT("list_text_sub_multiline_dim", "list_text_sub_multiline_selected")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text.1"; target: "elm.text.2"; )
+}
+
+group { name: "elm/genlist/item/multiline/1text/default";
+ alias: "elm/layout/multiline/1text/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_PADDING_DEFAULT_SIZE, LIST_PADDING_DEFAULT_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 0 LIST_MULTILINE_HEIGHT;
+ PARAM_TEXT("list_text_multiline",)
+ )
+ )
+ }
+ PROGRAM_LIST_DEFAULT( target: "elm.text"; )
+ PROGRAM_LIST_BOTTOMLINE
+}
+
+group { name: "elm/genlist/item/multiline/1text.1/default";
+ alias: "elm/layout/multiline/1text.1/default";
+
+ PROLOG_LIST
+ data.item: "texts" "elm.text";
+
+ parts {
+ PART_LIST_BG
+ PART_LIST_PADDINGS(
+ LIST_PADDING_LEFT_SIZE, LIST_PADDING_RIGHT_SIZE,
+ LIST_2LINE_PADDING_TOP_SIZE, LIST_2LINE_PADDING_BOTTOM_SIZE
+ )
+ PART_LIST_BOTTOMLINE
+ PART(TEXTBLOCK, "elm.text",
+ DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
+ min: 0 LIST_MULTILINE_2LINE_HEIGHT;
+ PARAM_TEXT("list_text_multiline_2line_normal",)
+ ) DESCRIPIONS_TEXT("list_text_multiline_2line_dim", "list_text_multiline_2line_normal")
+ )
+ }
+ PROGRAMS_LIST( target: "elm.text"; )
+}
+
+group { name: "elm/genlist/item/hidden/default";
+ inherit: "elm/genlist/item/1icon/no_padding/default";
+
+ parts {
+ PART_LIST_PADDINGS(0, 0, 0, 0)
+ part { name: "elm.icon";
+ description { state: "default" 0.0;
+ min: 0 LIST_HIDDEN_HEIGHT;
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/2.3-wearable/widgets/genlist_decorate.edc b/2.3-wearable/widgets/genlist_decorate.edc
new file mode 100644
index 00000000..bcce232e
--- /dev/null
+++ b/2.3-wearable/widgets/genlist_decorate.edc
@@ -0,0 +1,93 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * vim:ts=3
+ */
+#include "genlist_macro.edc"
+
+group { name: "elm/genlist/item/edit_default/default";
+
+ PROLOG_LIST
+ data.item: "contents" "elm.edit.icon.1";
+
+ script {
+ public enabling;
+ public disabling;
+ }
+ parts {
+ PART_LIST_BG
+ PART_LIST_BOTTOMLINE
+ PART_LIST_PADDINGS(
+ 0, LIST_PADDING_R_ICON_RIGHT_SIZE,
+ 2, 2 // FIXME: arbitrary value to prevent overlap with bottom lines
+ )
+ PART(SWALLOW, "elm.swallow.decorate.content",
+ DESC_LR("elm.padding.left", "elm.edit.icon1.padding",
+ min: 0 LIST_1LINE_HEIGHT;
+ )
+ )
+ PART(SWALLOW, "elm.edit.icon.1",
+ DESC_R("elm.padding.right", align: 1 0.5; )
+ )
+ PART(SWALLOW, "elm.edit.icon1.padding",
+ DESC_R("elm.edit.icon.1",
+ min: LIST_PADDING_R_ICON_DEFAULT_SIZE 0;
+ max: LIST_PADDING_R_ICON_DEFAULT_SIZE -1;
+ )
+ )
+ PART(RECT, "block_events_on_animation",
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "block" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ )
+ }
+ programs {
+ PROGRAM_LIST_DEFAULT(
+ target: "bg";
+ target: "bg_clip";
+ target: "bottom_line";
+ target: "bottom_line_clip";
+ target: "elm.padding.left";
+ target: "elm.padding.right";
+ )
+ PROGRAM_LIST_DISABLE(
+ target: "bg";
+ )
+ PROGRAM_LIST_SELECT(
+ target: "bg";
+ )
+ PROGRAM_LIST_SOUND
+ PROGRAM_LIST_DECORATE(
+ target: "elm.edit.icon.1";
+ )
+ }
+}
diff --git a/2.3-wearable/widgets/genlist_macro.edc b/2.3-wearable/widgets/genlist_macro.edc
new file mode 100644
index 00000000..8157f28d
--- /dev/null
+++ b/2.3-wearable/widgets/genlist_macro.edc
@@ -0,0 +1,1973 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * vim:ts=3
+*/
+
+//****************************************************************************//
+// ***************** EDJE description have 24 patterns **********************//
+ //**************************************************************************//
+// ------------------
+// | --> HERE
+// ------------------
+ #define DESC_FROM_L( PARAM ) \
+ description { state: "default" 0.0;\
+ fixed: 1 0; \
+ align: 0.0 0.5; \
+ rel2.relative: 0.0 1.0; \
+ PARAM\
+ }
+
+// ------------------
+// HERE <-- |
+// ------------------
+ #define DESC_FROM_R( PARAM ) \
+ description { state: "default" 0.0;\
+ fixed: 1 0; \
+ align: 1.0 0.5; \
+ rel1.relative: 1 0; \
+ PARAM\
+ }
+
+// ----------
+// | HERE |
+// ----------
+// | |
+// ----------
+ #define DESC_FROM_T( PARAM ) \
+ description { state: "default" 0.0;\
+ fixed: 0 1; \
+ align: 0.5 0.0; \
+ rel2.relative: 1.0 0.0; \
+ PARAM\
+ }
+
+// ----------
+// | HERE |
+// ----------
+// | |
+// ----------
+ #define DESC_FROM_B( PARAM ) \
+ description { state: "default" 0.0;\
+ fixed: 0 1; \
+ rel1.relative: 0.0 1.0; \
+ align: 0.5 1.0; \
+ PARAM\
+ }
+
+// ------------------
+// | PART == HERE |
+// ------------------
+ #define DESC_TO( PART, PARAM ) \
+ description { state: "default" 0.0;\
+ rel1 { \
+ relative: 0 0; \
+ to: PART; \
+ }\
+ rel2 {\
+ relative: 1 1;\
+ to: PART; \
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ---------------------
+// LEFT | HERE | RIGHT
+// ---------------------
+// | BOTTOM |
+#define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 0 0;\
+ to_x: RIGHT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// ---------------------
+// LEFT |--> HERE
+// ---------------------
+#define DESC_L( LEFT, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ }\
+ rel2 { \
+ relative: 1 1;\
+ to_x: LEFT; \
+ }\
+ PARAM\
+ }
+
+// ---------------------
+// HERE <--| RIGHT
+// ---------------------
+#define DESC_R( RIGHT, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 1 0.5; \
+ fixed: 1 0; \
+ rel1 { \
+ relative: 0 0; \
+ to_x: RIGHT; \
+ }\
+ rel2 {\
+ relative: 0 1;\
+ to_x: RIGHT; \
+ }\
+ PARAM\
+ }
+
+// --------------------------
+// LEFT |--> HERE <--| RIGHT
+// --------------------------
+#define DESC_LR( LEFT, RIGHT, PARAM ) \
+ description { state: "default" 0.0;\
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ }\
+ rel2 {\
+ relative: 0 1;\
+ to_x: RIGHT;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// -----------------
+// | HERE <--| RIGHT
+// -----------------
+// | BOTTOM |
+#define DESC_RTB( RIGHT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 1 0.5;\
+ rel1 { \
+ relative: 0 1; \
+ to_x: RIGHT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 0 0;\
+ to_x: RIGHT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// LEFT | HERE | RIGHT
+// ---------------------
+// | BOTTOM |
+#define DESC_LRB( LEFT, RIGHT, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0.5 1;\
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ to_y: BOTTOM; \
+ }\
+ rel2 {\
+ relative: 0 0;\
+ to_x: RIGHT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ---------------------
+// LEFT | HERE | RIGHT
+#define DESC_LRT( LEFT, RIGHT, TOP, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0.5 0;\
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 0 1;\
+ to_x: RIGHT;\
+ to_y: TOP;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ---------------------
+// LEFT | --> HERE |
+#define DESC_LT( LEFT, TOP, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0 0;\
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 1 1;\
+ to_x: LEFT;\
+ to_y: TOP;\
+ }\
+ PARAM\
+ }
+
+// LEFT | --> HERE |
+// ---------------------
+// | BOTTOM |
+#define DESC_LB( LEFT, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0 1;\
+ rel1 { \
+ relative: 1 0; \
+ to_x: LEFT; \
+ to_y: BOTTOM; \
+ }\
+ rel2 {\
+ relative: 1 0;\
+ to_x: LEFT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ---------------------
+// LEFT |--> HERE |
+// ---------------------
+// | BOTTOM |
+#define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0 0.5;\
+ rel1 { \
+ relative: 1 1; \
+ to_x: LEFT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 1 0;\
+ to_x: LEFT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ---------------------
+// | HERE <--| RIGHT
+#define DESC_RT( RIGHT, TOP, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 1 0;\
+ rel1 { \
+ relative: 0 1; \
+ to_x: RIGHT; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 0 1;\
+ to_x: RIGHT;\
+ to_y: TOP;\
+ }\
+ PARAM\
+ }
+
+// | HERE <-- | RIGHT
+// ---------------------
+// | BOTTOM |
+#define DESC_RB( RIGHT, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 1 1;\
+ rel1 { \
+ relative: 0 0; \
+ to_x: RIGHT; \
+ to_y: BOTTOM; \
+ }\
+ rel2 {\
+ relative: 0 0;\
+ to_x: RIGHT;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ----------
+// | HERE |
+// ----------
+// | BOTTOM |
+#define DESC_TB( TOP, BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0.5 0.5;\
+ rel1 { \
+ relative: 0 1; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 1 0;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+// | TOP |
+// ----------
+// | HERE |
+// ----------
+#define DESC_T( TOP, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0.5 0.0;\
+ rel1 { \
+ relative: 0 1; \
+ to_y: TOP; \
+ }\
+ rel2 {\
+ relative: 1 1;\
+ to_y: TOP;\
+ }\
+ PARAM\
+ }
+
+// ----------
+// | HERE |
+// ----------
+// | BOTTOM |
+#define DESC_B( BOTTOM, PARAM ) \
+ description { state: "default" 0.0;\
+ align: 0.5 1.0;\
+ rel1 { \
+ relative: 0 0; \
+ to_y: BOTTOM; \
+ }\
+ rel2 {\
+ relative: 1 0;\
+ to_y: BOTTOM;\
+ }\
+ PARAM\
+ }
+
+//****************************************************************************//
+//******************************* Part Macros ********************************//
+//****************************************************************************//
+#define PART(TYPE, NAME, DESCRIPION) \
+ part { name: NAME; \
+ scale: 1; \
+ type: TYPE; \
+ DESCRIPION \
+ }
+
+//****************************************************************************//
+//**************************** Genlist Macros ********************************//
+//****************************************************************************//
+
+#define PROLOG_LIST \
+ data.item: "treesize" 0; \
+ data.item: "flips" "elm.flip.icon elm.flip.content"; \
+
+#define PART_LIST_BG \
+ PART(RECT, "bg_clip", \
+ mouse_events: 0; \
+ description { state: "default" 0.0; } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ PART(RECT, "bg", \
+ clip_to: "bg_clip"; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0211D"; \
+ } \
+ )
+
+#define PART_LIST_BOTTOMLINE \
+ PART(RECT, "bottom_line_clip", \
+ description { state: "default" 0.0; } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "flipped" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ PART(RECT, "bottom_line", \
+ mouse_events: 0; \
+ clip_to: "bottom_line_clip"; \
+ description { state: "default" 0.0; \
+ min: 0 1; \
+ max: -1 1; \
+ fixed: 0 1; \
+ align: 0.5 1; \
+ color_class: "B0222"; \
+ rel1.offset: -1 -1; \
+ } \
+ )
+
+#define PART_LIST_BOTTOMLINE_OFF \
+ PART(RECT, "bottom_line_clip", \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ PART(RECT, "bottom_line", \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ } \
+ )
+
+//**************************** Genlist PADDING *******************************//
+#define DESC_LIST_PADDINGS \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ min: 32 0; \
+ max: 32 -1; \
+ }
+
+#define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
+ PART(SWALLOW, "elm.swallow.pad", \
+ mouse_events: 0; \
+ DESC_FROM_L( ; ) \
+ ) \
+ PART(SWALLOW, "elm.swallow.colorbar", \
+ mouse_events: 0; \
+ DESC_L("elm.swallow.pad", ) \
+ ) \
+ PART(SPACER, "elm.padding.left", \
+ DESC_L("elm.swallow.pad", \
+ min: LEFT_SIZE 0; \
+ max: LEFT_SIZE -1; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.right", \
+ DESC_FROM_R( \
+ min: RIGHT_SIZE 0; \
+ max: RIGHT_SIZE -1; \
+ ) \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ min: 32 0; \
+ max: 32 -1; \
+ } \
+ ) \
+ PART(SPACER, "elm.padding.top", \
+ DESC_FROM_T( \
+ min: 0 TOP_SIZE; \
+ max: -1 TOP_SIZE; \
+ ) \
+ ) \
+ PART(SPACER, "elm.padding.bottom", \
+ DESC_FROM_B( \
+ min: 0 BOTTOM_SIZE; \
+ max: -1 BOTTOM_SIZE; \
+ ) \
+ )
+
+//*************************** Genlist Programs ****************************//
+#define PROGRAM_LIST_DEFAULT( TARGET ) \
+ program { name: "default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ } \
+
+#define PROGRAM_LIST_DISABLE( TARGET ) \
+ program { name: "enabled"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ } \
+ program { name: "disabled"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_SELECT( TARGET ) \
+ program { name: "selected"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ TARGET \
+ } \
+ program { name: "unselected"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ TARGET \
+ }
+
+#define PROGRAM_LIST_SOUND \
+ program { name: "play_sound"; \
+ signal: "elm,state,clicked"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"play_sample"); \
+ } \
+ } \
+ program { \
+ name: "play_sample"; \
+ action: RUN_PLUGIN "touch_sound"; \
+ }
+
+#define PROGRAM_LIST_FOCUS \
+ program { name: "focused"; \
+ signal: "elm,state,focused"; \
+ source: "elm"; \
+ action: STATE_SET "focused" 0.0; \
+ target: "focus_part"; \
+ } \
+ program { name: "unfocused"; \
+ signal: "elm,state,unfocused"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_part"; \
+ }
+
+#define PROGRAM_LIST_FLIP \
+ program { name: "flip_enabled"; \
+ signal: "elm,state,flip,enabled"; \
+ source: "elm"; \
+ transition: DECELERATE 0.5; \
+ action: STATE_SET "flipped" 0.0; \
+ target: "elm.flip.content"; \
+ target: "elm.flip.icon"; \
+ } \
+ program { name: "flip_disabled"; \
+ signal: "elm,state,flip,disabled"; \
+ source: "elm"; \
+ transition: DECELERATE 0.5; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.flip.content"; \
+ target: "elm.flip.icon"; \
+ } \
+ program { name: "flip_enabled_bg"; \
+ signal: "elm,state,flip,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "flipped" 0.0; \
+ target: "elm.flip.bg"; \
+ } \
+ program { name: "flip_disabled_bg"; \
+ signal: "elm,state,flip,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.flip.bg"; \
+ }
+
+#define PROGRAM_LIST_DECORATE( TARGET ) \
+ program { name: "decorate_enabled_effect_ef"; \
+ signal: "elm,state,decorate,enabled,effect";\
+ source: "elm";\
+ action: STATE_SET "decorate" 0.0;\
+ TARGET \
+ }\
+ program { name: "decorate_disabled_effect_ef";\
+ signal: "elm,state,decorate,disabled,effect";\
+ source: "elm";\
+ action: STATE_SET "default" 0.0;\
+ TARGET \
+ } \
+ program { name: "decorate_enabled_ef";\
+ signal: "elm,state,decorate,enabled";\
+ source: "elm";\
+ action: STATE_SET "decorate" 0.0;\
+ TARGET \
+ }\
+ program { name: "decorate_disabled_ef";\
+ signal: "elm,state,decorate,disabled";\
+ source: "elm";\
+ action: STATE_SET "default" 0.0;\
+ TARGET \
+ }
+
+#define PROGRAM_LIST_DECORATE_FX( TARGET ) \
+ program { name: "decorate_enabled_effect_ef"; \
+ signal: "elm,state,decorate,enabled,effect";\
+ source: "elm";\
+ transition: DECELERATE 0.5;\
+ action: STATE_SET "decorate" 0.0;\
+ TARGET \
+ }\
+ program { name: "decorate_disabled_effect_ef";\
+ signal: "elm,state,decorate,disabled,effect";\
+ source: "elm";\
+ transition: ACCELERATE 0.5;\
+ action: STATE_SET "default" 0.0;\
+ TARGET \
+ } \
+ program { name: "decorate_enabled_ef";\
+ signal: "elm,state,decorate,enabled";\
+ source: "elm";\
+ action: STATE_SET "decorate" 0.0;\
+ TARGET \
+ }\
+ program { name: "decorate_disabled_ef";\
+ signal: "elm,state,decorate,disabled";\
+ source: "elm";\
+ action: STATE_SET "default" 0.0;\
+ TARGET \
+ }
+
+#define PROGRAM_LIST_BOTTOMLINE \
+ program { name : "hide_bottomline"; \
+ signal: "elm,state,bottomline,hide"; \
+ source: ""; \
+ action: STATE_SET "hide" 0.0; \
+ target: "bottom_line_clip"; \
+ } \
+ program { name : "show_bottomline"; \
+ signal: "elm,state,bottomline,show"; \
+ source: ""; \
+ action: STATE_SET "default" 0.0; \
+ target: "bottom_line_clip"; \
+ } \
+
+
+#define PROGRAMS_LIST( TARGET ) \
+ programs { \
+ PROGRAM_LIST_DEFAULT( TARGET \
+ target: "bg"; \
+ target: "bg_clip"; \
+ target: "bottom_line"; \
+ target: "bottom_line_clip"; \
+ target: "elm.padding.left"; \
+ target: "elm.padding.right"; \
+ ) \
+ PROGRAM_LIST_DISABLE( TARGET \
+ target: "bg"; \
+ ) \
+ PROGRAM_LIST_SELECT( TARGET \
+ target: "bg"; \
+ ) \
+ PROGRAM_LIST_SOUND \
+ PROGRAM_LIST_DECORATE( \
+ target: "bg"; \
+ target: "bg_clip"; \
+ target: "bottom_line"; \
+ target: "bottom_line_clip"; \
+ target: "elm.padding.left"; \
+ target: "elm.padding.right"; \
+ ) \
+ PROGRAM_LIST_BOTTOMLINE \
+ }
+
+//******************************* Genlist TEXT ********************************//
+#define PARAM_TEXT(STYLE, PARAM) \
+ text { \
+ min: 0 1; \
+ style: STYLE; \
+ PARAM \
+ }
+
+#define DESCRIPIONS_TEXT(DISABLED, SELECTED) \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ text.style: DISABLED; \
+ } \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ text.style: SELECTED; \
+ }
+
+//******************************* Genlist SWIPE ********************************//
+#define SWIPE_TRANSIT SIN_FAC 0.667 0.8
+
+#define SWIPE_THRESH_X 60
+#define SWIPE_THRESH_Y 30
+
+#define SWIPE_OVERLAP_SIZE 100
+#define SWIPE_ICON_SIZE 64 100
+
+// state: normal(0)->start,right( 1)->rollback,right ( 3), swipe,right ( 2)-> normal(0)
+// ->start,left (-1)->rollback,right (-3), swipe,right (-2)->
+#define SCRIPTS_LIST_SWIPE \
+ script { \
+ public _state; \
+ public x1, y1; \
+ public cleanup() { \
+ set_int(_state, 0); \
+ set_int(x1, 0); \
+ set_int(y1, 0); \
+ set_drag(PART:"drag_part", 0, 0); \
+ set_state(PART:"drag_part", "default", 0.0); \
+ set_state(PART:"drag_part_left", "default", 0.0); \
+ set_state(PART:"drag_part_right", "default", 0.0); \
+ set_state(PART:"elm.text.swipe.left", "default", 0.0); \
+ set_state(PART:"elm.text.swipe.right", "default", 0.0); \
+ set_state(PART:"elm.icon.swipe.left", "default", 0.0); \
+ set_state(PART:"elm.icon.swipe.right", "default", 0.0); \
+ set_state(PART:"swipe_temp_disabler", "default", 0.0); \
+ } \
+ }
+
+#define IMAGES_LIST_SWIPE \
+ image : "b_list_swipe_right.#.png" COMP; \
+ image : "b_list_swipe_left.#.png" COMP;
+
+#define PARTS_LIST_SWIPE \
+ part { name: "drag_part"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ dragable { \
+ x: 1 1 0; \
+ y: 0 0 0; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1.offset: -SWIPE_OVERLAP_SIZE 0; \
+ rel2.offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ description { state: "disable" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ visible: 0; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ description { state: "right_end" 0.0; \
+ inherit: "start_right"; \
+ rel1.relative: 1 0; \
+ } \
+ description { state: "right_rollback" 0.0; \
+ inherit: "start_right" 0.0; \
+ rel1.relative: -1 0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ description { state: "left_end" 0.0; \
+ inherit: "start_left" 0.0; \
+ rel2.relative: 0 1; \
+ } \
+ description { state: "left_rollback" 0.0; \
+ inherit: "start_left" 0.0; \
+ rel2.relative: 2 1; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "drag_part_left"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ relative: -999 0; \
+ } \
+ rel2 { \
+ to_x: "drag_part"; \
+ relative: 0 1; \
+ offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ image { \
+ normal: "b_list_swipe_left.#.png"; \
+ } \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0242"; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0242"; \
+ } \
+ } \
+ part { name: "drag_part_right"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ to_x: "drag_part"; \
+ relative: 1 0; \
+ offset: -SWIPE_OVERLAP_SIZE 0; \
+ } \
+ rel2 { \
+ relative: 999 1; \
+ } \
+ image { \
+ normal: "b_list_swipe_right.#.png"; \
+ } \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0241"; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0241"; \
+ } \
+ } \
+ part { name: "swipe_temp_disabler"; \
+ type: RECT; \
+ scale:1; \
+ repeat_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "enable" 0.0; \
+ inherit: "default"; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.left"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.swipe.clip"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ rel1 { \
+ to_x: "elm.padding.left"; \
+ relative: 1 0; \
+ } \
+ rel2 { \
+ to_x: "elm.padding.right"; \
+ relative: 1 1; \
+ } \
+ align: 0 0.5; \
+ fixed: 1 1; \
+ min: SWIPE_ICON_SIZE; \
+ max: SWIPE_ICON_SIZE; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "right_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "left_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.right"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.swipe.clip"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ rel1 { \
+ to_x: "elm.padding.right"; \
+ relative: 0 0; \
+ } \
+ rel2 { \
+ to_x: "elm.padding.right"; \
+ relative: 0 1; \
+ } \
+ align: 1 0.5; \
+ fixed: 1 1; \
+ min: SWIPE_ICON_SIZE; \
+ max: SWIPE_ICON_SIZE; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "right_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "left_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.clip"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ color_class: "F071"; \
+ } \
+ } \
+ part { name: "elm.text.swipe.left"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ rel1 { \
+ relative: 1 0; \
+ to_x: "elm.icon.swipe.left"; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default"; \
+ visible: 1; \
+ align: 0.5 0.5; \
+ color_class: "T025"; \
+ text { \
+ align: 0.5 0.5; \
+ min: 0 1; \
+ text_class: "T025"; \
+ } \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ } \
+ part { name: "elm.text.swipe.right"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ rel2 { \
+ relative: 0 1; \
+ to_x: "elm.icon.swipe.right"; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ align: 0.5 0.5; \
+ color_class: "T025"; \
+ text { \
+ align: 0.5 0.5; \
+ min: 0 1; \
+ text_class: "T025"; \
+ text: "Call"; \
+ } \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ }
+
+#define PARTS_LIST_SWIPE_RIGHT \
+ part { name: "drag_part"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ dragable { \
+ x: 1 1 0; \
+ y: 0 0 0; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1.offset: -SWIPE_OVERLAP_SIZE 0; \
+ rel2.offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ description { state: "disable" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ description { state: "right_end" 0.0; \
+ inherit: "start_right"; \
+ rel1.relative: 1 0; \
+ } \
+ description { state: "right_rollback" 0.0; \
+ inherit: "start_right" 0.0; \
+ rel1.relative: -1 0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "drag_part_left"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ relative: -999 0; \
+ } \
+ rel2 { \
+ to_x: "drag_part"; \
+ relative: 0 1; \
+ offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ image { \
+ normal: "b_list_swipe_left.#.png"; \
+ } \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0242"; \
+ } \
+ } \
+ part { name: "drag_part_right"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ to_x: "drag_part"; \
+ relative: 1 0; \
+ offset: -SWIPE_OVERLAP_SIZE 0; \
+ } \
+ rel2 { \
+ relative: 999 1; \
+ } \
+ image { \
+ normal: "b_list_swipe_right.#.png"; \
+ } \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ } \
+ part { name: "swipe_temp_disabler"; \
+ type: RECT; \
+ scale:1; \
+ repeat_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "enable" 0.0; \
+ inherit: "default"; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.right"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.swipe.clip"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ rel1 { \
+ to_x: "elm.padding.right"; \
+ relative: 0 0; \
+ } \
+ rel2 { \
+ to_x: "elm.padding.right"; \
+ relative: 0 1; \
+ } \
+ align: 1 0.5; \
+ fixed: 1 1; \
+ min: SWIPE_ICON_SIZE; \
+ max: SWIPE_ICON_SIZE; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "right_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.clip"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ color_class: "F071"; \
+ } \
+ } \
+ part { name: "elm.text.swipe.right"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ rel2 { \
+ relative: 0 1; \
+ to_x: "elm.icon.swipe.right"; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "start_right" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ align: 0.5 0.5; \
+ color_class: "T025"; \
+ text { \
+ align: 0.5 0.5; \
+ min: 0 1; \
+ text_class: "T025"; \
+ text: "Call"; \
+ } \
+ } \
+ }
+
+#define PARTS_LIST_SWIPE_LEFT \
+ part { name: "drag_part"; \
+ type: RECT; \
+ scale: 1; \
+ repeat_events: 1; \
+ dragable { \
+ x: 1 1 0; \
+ y: 0 0 0; \
+ } \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1.offset: -SWIPE_OVERLAP_SIZE 0; \
+ rel2.offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ description { state: "disable" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ description { state: "left_end" 0.0; \
+ inherit: "start_left" 0.0; \
+ rel2.relative: 0 1; \
+ } \
+ description { state: "left_rollback" 0.0; \
+ inherit: "start_left" 0.0; \
+ rel2.relative: 2 1; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "drag_part_left"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ relative: -999 0; \
+ } \
+ rel2 { \
+ to_x: "drag_part"; \
+ relative: 0 1; \
+ offset: SWIPE_OVERLAP_SIZE 0; \
+ } \
+ image { \
+ normal: "b_list_swipe_left.#.png"; \
+ } \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B041P"; \
+ } \
+ } \
+ part { name: "drag_part_right"; \
+ type: IMAGE; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ rel1 { \
+ to_x: "drag_part"; \
+ relative: 1 0; \
+ offset: -SWIPE_OVERLAP_SIZE 0; \
+ } \
+ rel2 { \
+ relative: 999 1; \
+ } \
+ image { \
+ normal: "b_list_swipe_right.#.png"; \
+ } \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ color_class: "B0241"; \
+ } \
+ } \
+ part { name: "swipe_temp_disabler"; \
+ type: RECT; \
+ scale:1; \
+ repeat_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "enable" 0.0; \
+ inherit: "default"; \
+ visible: 1; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.left"; \
+ type: SWALLOW; \
+ clip_to: "elm.icon.swipe.clip"; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ rel1 { \
+ to_x: "elm.padding.left"; \
+ relative: 1 0; \
+ } \
+ rel2 { \
+ to_x: "elm.padding.right"; \
+ relative: 1 1; \
+ } \
+ align: 0 0.5; \
+ fixed: 1 1; \
+ min: SWIPE_ICON_SIZE; \
+ max: SWIPE_ICON_SIZE; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ color: 250 250 250 255; \
+ } \
+ description { state: "left_rollback" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ } \
+ part { name: "elm.icon.swipe.clip"; \
+ type: RECT; \
+ scale: 1; \
+ description { state: "default" 0.0; \
+ color_class: "F071"; \
+ } \
+ } \
+ part { name: "elm.text.swipe.left"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ rel1 { \
+ relative: 1 0; \
+ to_x: "elm.icon.swipe.left"; \
+ } \
+ visible: 0; \
+ } \
+ description { state: "start_left" 0.0; \
+ inherit: "default"; \
+ visible: 1; \
+ align: 0.5 0.5; \
+ color_class: "T025"; \
+ text { \
+ align: 0.5 0.5; \
+ min: 0 1; \
+ text_class: "T025"; \
+ } \
+ } \
+ } \
+
+#define PROGRAMS_LIST_SWIPE \
+ program { name: "drag_up"; \
+ signal: "mouse,up,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y, w, h, ww, hh; \
+ get_geometry(PART:"bg", x, y, ww, hh); \
+ get_geometry(PART:"drag_part", x, y, w, h); \
+ x = x + SWIPE_OVERLAP_SIZE; \
+ if (get_int(_state) == 1) { \
+ if (x >= (ww/2)) { \
+ set_int(_state, 3); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ run_program(PROGRAM:"end_move_right"); \
+ } else { \
+ set_int(_state, 2); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ set_state(PART:"elm.text.swipe.right", "default", 0.0); \
+ set_state(PART:"elm.text.swipe.left", "default", 0.0); \
+ run_program(PROGRAM:"end_rollback_right"); \
+ } \
+ } else if (get_int(_state) == -1) { \
+ if (-x >= (ww/2)) { \
+ set_int(_state, -3); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ run_program(PROGRAM:"end_move_left"); \
+ } else { \
+ set_int(_state, -2); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ set_state(PART:"elm.text.swipe.right", "default", 0.0); \
+ set_state(PART:"elm.text.swipe.left", "default", 0.0); \
+ run_program(PROGRAM:"end_rollback_left"); \
+ } \
+ } else cleanup(); \
+ } \
+ } \
+ program { name: "drag_down"; \
+ signal: "mouse,down,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y; \
+ get_mouse(x, y); \
+ set_int(_state, 0); \
+ set_int(x1, x); \
+ set_int(y1, y); \
+ } \
+ } \
+ program { name: "drag"; \
+ signal: "drag"; \
+ source: "drag_part"; \
+ script { \
+ new x2, y2; \
+ get_mouse(x2, y2); \
+ if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \
+ ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \
+ return; \
+ if (get_int(_state) == 0) { \
+ if ((x2 - get_int(x1)) >= SWIPE_THRESH_X) { \
+ emit("elm,swipe,start", ""); \
+ set_int(_state, 1); \
+ run_program(PROGRAM:"start_right"); \
+ } else if ((x2 - get_int(x1)) <= -SWIPE_THRESH_X) { \
+ emit("elm,swipe,start", ""); \
+ set_int(_state, -1); \
+ run_program(PROGRAM:"start_left"); \
+ } \
+ } else if (get_int(_state) == -1) { \
+ if (x2 > get_int(x1)) { \
+ set_int(_state, 1); \
+ run_program(PROGRAM:"start_right"); \
+ }\
+ } else if (get_int(_state) == 1) { \
+ if (x2 < get_int(x1)) { \
+ set_int(_state, -1); \
+ run_program(PROGRAM:"start_left"); \
+ } \
+ } \
+ } \
+ } \
+ program { name: "start_right"; \
+ action: STATE_SET "start_right" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ target: "elm.icon.swipe.left"; \
+ target: "elm.text.swipe.right"; \
+ target: "elm.text.swipe.left"; \
+ target: "drag_part"; \
+ target: "drag_part_left"; \
+ target: "drag_part_right"; \
+ } \
+ program { name: "start_left"; \
+ action: STATE_SET "start_left" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ target: "elm.icon.swipe.left"; \
+ target: "elm.text.swipe.right"; \
+ target: "elm.text.swipe.left"; \
+ target: "drag_part"; \
+ target: "drag_part_left"; \
+ target: "drag_part_right"; \
+ } \
+ program { name: "end_move_right"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "right_end" 0.0; \
+ target: "drag_part"; \
+ after: "right_ender"; \
+ } \
+ program { name: "end_move_left"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "left_end" 0.0; \
+ target: "drag_part"; \
+ after: "left_ender"; \
+ } \
+ program { name: "end_rollback_right"; \
+ action: STATE_SET "right_rollback" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ target: "elm.icon.swipe.left"; \
+ after: "end_rollback_right_transit"; \
+ } \
+ program { name: "end_rollback_right_transit"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "right_rollback" 0.0; \
+ target: "drag_part"; \
+ after: "rollback_ender"; \
+ } \
+ program { name: "end_rollback_left"; \
+ action: STATE_SET "left_rollback" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ target: "elm.icon.swipe.left"; \
+ after: "end_rollback_left_transit"; \
+ } \
+ program { name: "end_rollback_left_transit"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "left_rollback" 0.0; \
+ target: "drag_part"; \
+ after: "rollback_ender"; \
+ } \
+ program { name: "right_ender"; \
+ script { \
+ emit("elm,swipe,stop,right", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "left_ender"; \
+ script { \
+ emit("elm,swipe,stop,left", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "rollback_ender"; \
+ source: ""; \
+ script { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_revert"; \
+ signal: "elm,swipe,revert"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ }\
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_disable"; \
+ signal: "elm,swipe,disabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "disable", 0.0); \
+ } \
+ } \
+ program { name: "swipe_enable"; \
+ signal: "elm,swipe,enabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "default", 0.0); \
+ } \
+ } \
+ program { name: "swipe_default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_enable"); \
+ } \
+ } \
+ program { name: "swipe_disable_state"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_disable"); \
+ } \
+ } \
+
+#define PROGRAMS_LIST_SWIPE_RIGHT \
+ program { name: "drag_up"; \
+ signal: "mouse,up,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y, w, h, ww, hh; \
+ get_geometry(PART:"bg", x, y, ww, hh); \
+ get_geometry(PART:"drag_part", x, y, w, h); \
+ x = x + SWIPE_OVERLAP_SIZE; \
+ if (get_int(_state) == 1) { \
+ if (x >= (ww/2)) { \
+ set_int(_state, 3); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ run_program(PROGRAM:"end_move_right"); \
+ } else { \
+ set_int(_state, 2); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ set_state(PART:"elm.text.swipe.right", "default", 0.0); \
+ set_state(PART:"elm.text.swipe.left", "default", 0.0); \
+ run_program(PROGRAM:"end_rollback_right"); \
+ } \
+ } else cleanup(); \
+ } \
+ } \
+ program { name: "drag_down"; \
+ signal: "mouse,down,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y; \
+ get_mouse(x, y); \
+ set_int(_state, 0); \
+ set_int(x1, x); \
+ set_int(y1, y); \
+ } \
+ } \
+ program { name: "drag"; \
+ signal: "drag"; \
+ source: "drag_part"; \
+ script { \
+ new x2, y2; \
+ get_mouse(x2, y2); \
+ if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \
+ ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \
+ return; \
+ if (get_int(_state) == 0) { \
+ if ((x2 - get_int(x1)) >= SWIPE_THRESH_X) { \
+ emit("elm,swipe,start", ""); \
+ set_int(_state, 1); \
+ run_program(PROGRAM:"start_right"); \
+ } \
+ } \
+ } \
+ } \
+ program { name: "start_right"; \
+ action: STATE_SET "start_right" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ target: "elm.text.swipe.right"; \
+ target: "drag_part"; \
+ target: "drag_part_left"; \
+ target: "drag_part_right"; \
+ } \
+ program { name: "end_move_right"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "right_end" 0.0; \
+ target: "drag_part"; \
+ after: "right_ender"; \
+ } \
+ program { name: "end_rollback_right"; \
+ action: STATE_SET "right_rollback" 0.0; \
+ target: "elm.icon.swipe.right"; \
+ after: "end_rollback_right_transit"; \
+ } \
+ program { name: "end_rollback_right_transit"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "right_rollback" 0.0; \
+ target: "drag_part"; \
+ after: "rollback_ender"; \
+ } \
+ program { name: "right_ender"; \
+ script { \
+ emit("elm,swipe,stop,right", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "rollback_ender"; \
+ source: ""; \
+ script { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_revert"; \
+ signal: "elm,swipe,revert"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ }\
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_disable"; \
+ signal: "elm,swipe,disabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "disable", 0.0); \
+ } \
+ } \
+ program { name: "swipe_enable"; \
+ signal: "elm,swipe,enabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "default", 0.0); \
+ } \
+ } \
+ program { name: "swipe_default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_enable"); \
+ } \
+ } \
+ program { name: "swipe_disable_state"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_disable"); \
+ } \
+ } \
+
+#define PROGRAMS_LIST_SWIPE_LEFT \
+ program { name: "drag_up"; \
+ signal: "mouse,up,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y, w, h, ww, hh; \
+ get_geometry(PART:"bg", x, y, ww, hh); \
+ get_geometry(PART:"drag_part", x, y, w, h); \
+ x = x + SWIPE_OVERLAP_SIZE; \
+ if (get_int(_state) == -1) { \
+ if (-x >= (ww/2)) { \
+ set_int(_state, -3); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ run_program(PROGRAM:"end_move_left"); \
+ } else { \
+ set_int(_state, -2); \
+ set_state(PART:"swipe_temp_disabler", "enable", 0.0); \
+ set_state(PART:"elm.text.swipe.left", "default", 0.0); \
+ run_program(PROGRAM:"end_rollback_left"); \
+ } \
+ } else cleanup(); \
+ } \
+ } \
+ program { name: "drag_down"; \
+ signal: "mouse,down,1"; \
+ source: "drag_part"; \
+ script { \
+ new x, y; \
+ get_mouse(x, y); \
+ set_int(_state, 0); \
+ set_int(x1, x); \
+ set_int(y1, y); \
+ } \
+ } \
+ program { name: "drag"; \
+ signal: "drag"; \
+ source: "drag_part"; \
+ script { \
+ new x2, y2; \
+ get_mouse(x2, y2); \
+ if (((y2 - get_int(y1)) >= SWIPE_THRESH_Y) || \
+ ((y2 - get_int(y1)) <= -SWIPE_THRESH_Y)) \
+ return; \
+ if (get_int(_state) == 0) { \
+ if ((x2 - get_int(x1)) <= -SWIPE_THRESH_X) { \
+ emit("elm,swipe,start", ""); \
+ set_int(_state, -1); \
+ run_program(PROGRAM:"start_left"); \
+ } \
+ } \
+ } \
+ } \
+ program { name: "start_left"; \
+ action: STATE_SET "start_left" 0.0; \
+ target: "elm.icon.swipe.left"; \
+ target: "elm.text.swipe.left"; \
+ target: "drag_part"; \
+ target: "drag_part_left"; \
+ } \
+ program { name: "end_move_left"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "left_end" 0.0; \
+ target: "drag_part"; \
+ after: "left_ender"; \
+ } \
+ program { name: "end_rollback_left"; \
+ action: STATE_SET "left_rollback" 0.0; \
+ target: "elm.icon.swipe.left"; \
+ after: "end_rollback_left_transit"; \
+ } \
+ program { name: "end_rollback_left_transit"; \
+ transition: SWIPE_TRANSIT; \
+ action: STATE_SET "left_rollback" 0.0; \
+ target: "drag_part"; \
+ after: "rollback_ender"; \
+ } \
+ program { name: "left_ender"; \
+ script { \
+ emit("elm,swipe,stop,left", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "rollback_ender"; \
+ source: ""; \
+ script { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_revert"; \
+ signal: "elm,swipe,revert"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ }\
+ cleanup(); \
+ } \
+ } \
+ program { name: "swipe_disable"; \
+ signal: "elm,swipe,disabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "disable", 0.0); \
+ } \
+ } \
+ program { name: "swipe_enable"; \
+ signal: "elm,swipe,enabled"; \
+ source: ""; \
+ script { \
+ if (get_int(_state) != 0) { \
+ emit("elm,swipe,stop", ""); \
+ cleanup(); \
+ }\
+ set_state(PART:"drag_part", "default", 0.0); \
+ } \
+ } \
+ program { name: "swipe_default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_enable"); \
+ } \
+ } \
+ program { name: "swipe_disable_state"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ script { \
+ run_program(PROGRAM:"swipe_disable"); \
+ } \
+ } \
+
+
+
+#define SCRIPTS_LIST_SWEEP \
+ script { \
+ public dir_right; \
+ }
+
+#define PARTS_LIST_SWEEP \
+ PART(RECT, "bg.sweep",\
+ description { state: "default" 0.0;\
+ color_class: "B0232";\
+ rel1.relative: -1.0 0.0;\
+ rel2.relative: 0.0 1.0;\
+ visible: 0;\
+ }\
+ description { state: "default_r" 0.0;\
+ inherit: "default" 0.0;\
+ rel1.relative: 1.0 0.0;\
+ rel2.relative: 2.0 1.0;\
+ visible: 0;\
+ }\
+ description { state: "visible" 0.0;\
+ inherit: "default" 0.0;\
+ rel1.relative: 0.0 0.0;\
+ rel2.relative: 1.0 1.0;\
+ visible: 1;\
+ }\
+ )\
+ PART(TEXTBLOCK, "elm.text.sweep",\
+ description { state: "default" 0.0;\
+ rel1.to_x: "bg.sweep";\
+ rel2.to_x: "elm.divider.sweep.left.padding";\
+ rel2.relative: 0.0 1.0;\
+ PARAM_TEXT("list_sweep_style",)\
+ visible: 0;\
+ }\
+ description { state: "visible" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ }\
+ )\
+ PART(SPACER, "elm.divider.sweep.left.padding",\
+ DESC_R("elm.divider.sweep",\
+ min: LIST_DIVIDER_PADDING_SIZE 0;\
+ max: LIST_DIVIDER_PADDING_SIZE -1;\
+ )\
+ )\
+ PART(SWALLOW, "elm.icon.sweep",\
+ DESC_FROM_R(\
+ min: BUTTON_DIVIDER_BTN_SIZE 0;\
+ max: BUTTON_DIVIDER_BTN_SIZE -1;\
+ rel1.to: "bg.sweep";\
+ rel2.to: "bg.sweep";\
+ visible: 0;\
+ )\
+ description { state: "visible" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ }\
+ )\
+ PART(RECT, "elm.divider.sweep",\
+ DESC_R("elm.icon.sweep",\
+ visible: 0;\
+ align: 0.0 0.5;\
+ min: 1 LIST_DIVIDER_HEIGHT;\
+ max: 1 LIST_DIVIDER_HEIGHT;\
+ color_class: "B0221L2"; \
+ )\
+ description { state: "visible" 0.0;\
+ inherit: "default" 0.0;\
+ visible: 1;\
+ }\
+ )
+
+#define PROGRAMS_LIST_SWEEP \
+ program { name: "sweep_default"; \
+ signal: "elm,state,default"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0;\
+ target: "bg.sweep";\
+ target: "elm.icon.sweep";\
+ target: "elm.text.sweep";\
+ target: "elm.divider.sweep";\
+ } \
+ program { name: "sweep_right_show";\
+ signal: "elm,state,sweep,right";\
+ source: "";\
+ script {\
+ set_int(dir_right, 1);\
+ set_state(PART:"bg.sweep", "default", 0.0);\
+ run_program(PROGRAM:"sweep_show");\
+ }\
+ }\
+ program { name: "sweep_left_show";\
+ signal: "elm,state,sweep,left";\
+ source: "";\
+ script {\
+ set_int(dir_right, 0);\
+ set_state(PART:"bg.sweep", "default_r", 0.0);\
+ run_program(PROGRAM:"sweep_show");\
+ }\
+ }\
+ program { name: "sweep_show";\
+ action: STATE_SET "visible" 0.0;\
+ transition: DECELERATE 0.5;\
+ target: "bg.sweep";\
+ target: "elm.icon.sweep";\
+ target: "elm.text.sweep";\
+ target: "elm.divider.sweep";\
+ }\
+ program { name: "sweep_hide";\
+ signal: "elm,state,sweep,hide";\
+ source: "";\
+ script {\
+ if (get_int(dir_right)) {\
+ run_program(PROGRAM:"sweep_left_hide");\
+ } else {\
+ run_program(PROGRAM:"sweep_right_hide");\
+ }\
+ }\
+ }\
+ program { name: "sweep_left_hide"; \
+ action: STATE_SET "default" 0.0;\
+ transition: DECELERATE 0.5;\
+ target: "bg.sweep";\
+ target: "elm.icon.sweep";\
+ target: "elm.text.sweep";\
+ target: "elm.divider.sweep";\
+ }\
+ program { name: "sweep_right_hide"; \
+ action: STATE_SET "default_r" 0.0;\
+ transition: DECELERATE 0.5;\
+ target: "bg.sweep";\
+ target: "elm.icon.sweep";\
+ target: "elm.text.sweep";\
+ target: "elm.divider.sweep";\
+ }
diff --git a/2.3-wearable/widgets/index.edc b/2.3-wearable/widgets/index.edc
new file mode 100644
index 00000000..bc590444
--- /dev/null
+++ b/2.3-wearable/widgets/index.edc
@@ -0,0 +1,1109 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ group { name: "elm/index/base/vertical/default";
+ script {
+ public timer_id, timer_flag, timer_id_2, timer_flag_2;
+ public index_hide_timer(val) {
+ if (get_int(timer_flag) == 1)
+ run_program(PROGRAM:"index0.hide");
+ return 0;
+ }
+ }
+ images {
+ image: "b_fast_scroll_rollover_bg_line.png" COMP;
+ }
+ parts {
+ part { name: "clip";
+ scale: 1;
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ description { state: "active" 0.0;
+ visible: 1;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "clip2";
+ scale: 1;
+ type: RECT;
+ mouse_events: 0;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ description { state: "active" 0.0;
+ visible: 1;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "elm.dragable.index.1";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "elm.swallow.index.0";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: INDEX_SCROLL_DRAG_PART_SIZE;
+ rel1.to: "elm.swallow.index.0";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "elm.swallow.index.0";
+ }
+ }
+ }
+ part { name: "elm.swallow.index.1.padding.right";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ max:1 0;
+ visible: 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1.to: "elm.swallow.index.0";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "elm.swallow.index.0";
+ }
+ }
+ description { state: "active" 0.0;
+ max:1 0;
+ visible: 1;
+ color_class: "B0722";
+ }
+ }
+ part { name: "elm.swallow.index.1";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clip2";
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ align: 1.0 0.0;
+ rel1 {
+ to: "elm.dragable.index.1";
+ offset: -1 0;
+ }
+ rel2 {
+ to: "elm.dragable.index.1";
+ offset: -1 0;
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "align_bottom" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 1.0 1.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "index.bottom.padding";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "index.bottom.padding";
+ }
+ }
+ description { state: "align_top" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 1.0 0.0;
+ rel1.to: "index.top.padding";
+ rel2 {
+ relative: 0.0 0.0;
+ to: "index.top.padding";
+ }
+ }
+ }
+ part { name: "index.top.padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ align: 0.5 0.0;
+ min: 0 INDEX_SCROLL_PADDING_SIZE;
+ fixed: 0 1;
+ rel1 {
+ to_x: "elm.swallow.index.0";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.index.0";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part { name: "index.bottom.padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ align: 0.5 1.0;
+ min: 0 INDEX_SCROLL_PADDING_SIZE;
+ fixed: 0 1;
+ rel1 {
+ to_x: "elm.swallow.index.0";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_x: "elm.swallow.index.0";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "bg_index.0";
+ type: RECT;
+ clip_to: "clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "index.top.padding";
+ rel2.to: "index.bottom.padding";
+ color_class: "B0722";
+ }
+ }
+ part { name: "elm.swallow.index.0";
+ type: SWALLOW;
+ clip_to: "clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1 {
+ to_y: "index.top.padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_y: "index.bottom.padding";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part { name: "popup_bg";
+ type: RECT;
+ scale: 1;
+ clip_to: "clip2";
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color_class: "B0731";
+ min: INDEX_SCROLL_POPUP_SIZE;
+ max: INDEX_SCROLL_POPUP_SIZE;
+ rel2 {
+ relative: 0.0 1.0;
+ to: "elm.swallow.index.0";
+ }
+ }
+ }
+ part { name: "popup_bg_line";
+ scale: 1;
+ clip_to: "clip2";
+ description { state: "deafult" 0.0;
+ rel1.to: "popup_bg";
+ rel2.to: "popup_bg";
+ color_class: "B151";
+ image.normal: "b_fast_scroll_rollover_bg_line.png";
+ }
+ }
+ part {
+ name: "align_prop";
+ type: "SPACER";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip2";
+ description {
+ state: "default" 0.0;
+ min: 1 0;
+ max: 1 -1;
+ fixed: 1 0;
+ rel1 {
+ to: "popup_bg";
+ relative: 0.5 0.0;
+ }
+ rel2 {
+ to: "popup_bg";
+ relative: 0.5 1.0;
+ }
+ }
+ }
+ part {
+ name: "elm.text.1";
+ type: "TEXTBLOCK";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip2";
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ text.style: "Index_scroll_1depth_popup";
+ text.min: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ to: "popup_bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "popup_bg";
+ relative: 1.0 1.0;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ inherit: "default" 0.0;
+ text.style: "Index_scroll_1depth_popup_left_align";
+ text.min: 1 1;
+ rel1 {
+ to: "align_prop";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part {
+ name: "elm.text";
+ type: "TEXTBLOCK";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clip2";
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ text.style: "Index_scroll_bar_2depth_popup";
+ text.min: 1 1;
+ visible: 0;
+ align: 1.0 0.5;
+ rel1.to: "align_prop";
+ rel2 {
+ to: "align_prop";
+ relative: 0.0 1.0;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.event.0";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ rel1.to: "elm.swallow.index.0";
+ rel2.to: "elm.swallow.index.0";
+ }
+ }
+ part { name: "elm.swallow.event.1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ fixed: 1 1;
+ rel1.to: "elm.swallow.index.1";
+ rel2.to: "elm.swallow.index.1";
+ }
+ }
+ part {
+ name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ to: "elm.swallow.index.0";
+ offset: -3 0;
+ }
+ rel2.to: "elm.swallow.index.0";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ script {
+ run_program(PROGRAM:"initial.index0.active");
+ }
+ }
+ program { name: "drag2";
+ signal: "drag,set";
+ source: "elm.dragable.index.1";
+ script {
+ new Float:dx;
+ new Float:dy;
+ get_drag(PART:"elm.dragable.index.1", dx, dy);
+ custom_state(PART:"elm.dragable.index.1", "default", 0.0);
+ set_state_val(PART:"elm.dragable.index.1", STATE_ALIGNMENT, 0.5, dy);
+ }
+ }
+ program { name: "initial.index0.active";
+ action: STATE_SET "active" 0.0;
+ target: "clip";
+ after: "index0.inactive";
+ }
+ program { name: "index0.active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "clip";
+ after: "disable_timer";
+ }
+ program { name: "index0.inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(timer_id);
+ if (v > 0) cancel_timer(v);
+ run_program(PROGRAM:"enable_timer");
+ v = timer(2.0, "index_hide_timer", 0);
+ set_int(timer_id, v);
+ }
+ }
+ program { name: "index1.inactive";
+ signal: "elm,state,level,0";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.index.1";
+ target: "elm.text.1";
+ target: "elm.text";
+ target: "elm.swallow.index.1.padding.right";
+ }
+ program { name: "index1.active";
+ signal: "elm,state,level,1";
+ source: "elm";
+ script {
+ new x1, x2, y1, y2, w1, w2, h1, h2;
+ new Float:dx;
+ new Float:dy;
+ get_drag(PART:"elm.dragable.index.1", dx, dy);
+ get_geometry(PART:"elm.swallow.index.1", x1, y1, w1, h1);
+ get_geometry(PART:"clip", x2, y2, w2, h2);
+ if ((y1+h1) > (y2+h2)) {
+ set_state(PART:"elm.swallow.index.1", "align_bottom", 0.0);
+ }
+ else if (dy < 0.1) {
+ set_state(PART:"elm.swallow.index.1", "align_top", 0.0);
+ }
+ else {
+ set_state(PART:"elm.swallow.index.1", "active", 0.0);
+ }
+ set_state(PART:"clip2", "active", 0.0);
+ set_state(PART:"elm.swallow.index.1.padding.right", "active", 0.0);
+ }
+ }
+ program { name: "index1.text";
+ signal: "index1.text.enable";
+ source: "";
+ action: STATE_SET "active" 0.0;
+ target: "elm.text.1";
+ target: "elm.text";
+ }
+ program { name: "index0.hide";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.3;
+ target: "clip";
+ }
+ program { name: "index.active";
+ signal: "elm,indicator,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "clip2";
+ }
+ program { name: "index.inactive";
+ signal: "elm,indicator,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.3;
+ target: "clip2";
+ }
+ program { name: "event.inactive";
+ signal: "elm,priority,up";
+ source: "elm";
+ action: STATE_SET "inactive" 0.0;
+ target: "elm.swallow.event.0";
+ }
+ program { name: "index.up";
+ signal: "elm,priority,up";
+ source: "elm";
+ action: STATE_SET "up" 0.0;
+ target: "elm.swallow.index.0";
+ after: "index.go.down";
+ }
+ program { name: "index.go.down";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.3;
+ target: "elm.swallow.index.0";
+ after: "event.active";
+ }
+ program { name: "event.inactive2";
+ signal: "elm,priority,down";
+ source: "elm";
+ action: STATE_SET "inactive" 0.0;
+ target: "elm.swallow.event.0";
+ }
+ program { name: "index.down";
+ signal: "elm,priority,down";
+ source: "elm";
+ action: STATE_SET "down" 0.0;
+ target: "elm.swallow.index.0";
+ after: "index.go.up";
+ }
+ program { name: "index.go.up";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.3;
+ target: "elm.swallow.index.0";
+ after: "event.active";
+ }
+ program { name: "event.active";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.event.0";
+ }
+ program {
+ name: "access.active";
+ signal: "elm,access,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "access";
+ }
+ program {
+ name: "access.inactive";
+ signal: "elm,access,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "access";
+ }
+ program { name: "disable_timer";
+ script {
+ set_int(timer_flag, 0);
+ }
+ }
+ program { name: "enable_timer";
+ script {
+ set_int(timer_flag, 1);
+ }
+ }
+ program { name: "disable_timer_2";
+ script {
+ set_int(timer_flag_2, 0);
+ }
+ }
+ program { name: "enable_timer_2";
+ script {
+ set_int(timer_flag_2, 1);
+ }
+ }
+ }
+ }
+
+ group { name: "elm/index/item1/vertical/default";
+ alias: "elm/index/item1_odd/vertical/default";
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+ images {
+ image: "b_index_scroll_press_bg_line.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: INDEX_SCROLL_HANDLE_ITEM_WIDTH INDEX_SCROLL_HANDLE_ITEM_HEIGHT;
+ color_class: "B0722";
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B0724";
+ }
+ }
+ part { name: "bg_divider_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2 {to: "bg"; relative: 0.0 1.0;}
+ fixed: 1 0;
+ min: INDEX_SCROLL_DIVIDER_WIDTH_INC 0;
+ max: INDEX_SCROLL_DIVIDER_WIDTH_INC -1;
+ color_class: "B171";
+ align: 0.0 0.5;
+ }
+ description { state: "inactive" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "bg_press_line";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "focus.top.pad";
+ rel2.to: "focus.bottom.pad";
+ image.normal: "b_index_scroll_press_bg_line.png";
+ color_class: "B171";
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "divider";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 1.0;
+ min: 0 INDEX_DIVIDER_WIDTH_INC;
+ fixed: 1 1;
+ rel1.relative: 0.0 1.0;
+ color_class: "B0725";
+ }
+ description {
+ state: "inactive" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "focus.top.pad";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 1.0;
+ min: 0 INDEX_SCROLL_BG_LINE_WIDTH_INC;
+ fixed: 0 1;
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ part { name: "focus.bottom.pad";
+ type: SPACER;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.0;
+ min: 0 INDEX_SCROLL_BG_LINE_WIDTH_INC;
+ fixed: 0 1;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ align: 0.5 0.5;
+ state: "default" 0.0;
+ text.style: "Index_scroll_bar_unselect";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ text.style: "Index_scroll_bar_select";
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ transition: DECELERATE 0.0;
+ target: "elm.text";
+ target: "bg";
+ target: "bg_press_line";
+ after: "divider.inactive";
+ }
+ program { name: "divider.inactive";
+ action: STATE_SET "inactive" 0.0;
+ target: "divider";
+ target: "bg_divider_line";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.0;
+ target: "elm.text";
+ target: "bg";
+ target: "bg_press_line";
+ after: "divider.active";
+ }
+ program { name: "divider.active";
+ action: STATE_SET "default" 0.0;
+ target: "divider";
+ target: "bg_divider_line";
+ }
+ program {
+ signal: "elm,last,item";
+ source: "elm";
+ action: STATE_SET "inactive" 0.0;
+ target: "divider";
+ }
+ }
+ }
+
+ group { name: "elm/index/item2/vertical/default";
+ alias: "elm/index/item2_odd/vertical/default";
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: INDEX_SCROLL_HANDLE_ITEM_WIDTH INDEX_SCROLL_HANDLE_ITEM_HEIGHT;
+ color_class: "B0723";
+ rel1.to: "elm.text";
+ rel2.to: "elm.text";
+ }
+ }
+ part { name: "bg_divider_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2 {to: "bg"; relative: 0.0 1.0;}
+ fixed: 1 0;
+ min: INDEX_SCROLL_DIVIDER_WIDTH_INC 0;
+ max: INDEX_SCROLL_DIVIDER_WIDTH_INC -1;
+ color_class: "B171";
+ align: 0.0 0.5;
+ }
+ description { state: "inactive" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "divider";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ align: 0.0 1.0;
+ min: 0 INDEX_DIVIDER_WIDTH_INC;
+ fixed: 1 1;
+ rel1.relative: 0.0 1.0;
+ color_class: "B0725";
+ }
+ description {
+ state: "inactive" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ align: 0.5 0.5;
+ state: "default" 0.0;
+ text.style: "Index_scroll_bar_unselect";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ text.style: "Index_scroll_bar_2depth_focus_bar";
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ transition: DECELERATE 0.0;
+ target: "elm.text";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.0;
+ target: "elm.text";
+ }
+ program {
+ signal: "elm,last,item";
+ source: "elm";
+ action: STATE_SET "inactive" 0.0;
+ target: "divider";
+ }
+ }
+ }
+
+ group {
+ name: "elm/index/base/vertical/tab";
+ alias: "elm/index/base/horizontal/tab";
+ parts {
+ part { name: "clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.index.0";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clip";
+ description {
+ state: "default" 0.0;
+ min: 0 INDEX_TAB_HEIGHT;
+ max: -1 INDEX_TAB_HEIGHT;
+ align: 0.5 0.0;
+ fixed: 0 1;
+ }
+ }
+ part { name: "elm.swallow.event.0";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ transition: DECELERATE 0.5;
+ target: "clip";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.5;
+ target: "clip";
+ }
+ }
+ }
+ group {
+ name: "elm/index/item/vertical/tab";
+ alias: "elm/index/item_odd/vertical/tab";
+ alias: "elm/index/item/horizontal/tab";
+ alias: "elm/index/item_odd/horizontal/tab";
+ parts {
+ part { name:"bg";
+ type : RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "indicator1";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "B0514";
+ rel1 {
+ to_x: "left_padding";
+ relative: 1 0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ relative: 0 1;
+ }
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ rel1.offset: 1 0;
+ rel2.offset: -1 0;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0 0.5;
+ fixed: 1 0;
+ min: INDEX_TAB_PADDING_SIZE 0;
+ max: INDEX_TAB_PADDING_SIZE -1;
+ rel2.relative: 0 1;
+ }
+ description { state: "first" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ }
+ description { state: "last" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1 0.5;
+ fixed: 1 0;
+ min: INDEX_TAB_PADDING_SIZE 0;
+ max: INDEX_TAB_PADDING_SIZE -1;
+ rel1.relative: 1 0;
+ }
+ description { state: "first" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "last" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ }
+ }
+ part { name: "indicator2";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "B0514P1";
+ visible: 0;
+ rel1 {
+ to_x: "left_padding";
+ relative: 1 0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ relative: 0 1;
+ }
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "indicator1";
+ target: "indicator2";
+ }
+ program { name: "first";
+ signal: "elm,first,item";
+ source: "elm";
+ action: STATE_SET "first" 0.0;
+ target: "left_padding";
+ target: "right_padding";
+ }
+ program { name: "last";
+ signal: "elm,last,item";
+ source: "elm";
+ action: STATE_SET "last" 0.0;
+ target: "left_padding";
+ target: "right_padding";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "indicator1";
+ target: "indicator2";
+ }
+ }
+ }
+
+ group {
+ name: "elm/index/base/vertical/thumbnail";
+ alias: "elm/index/base/horizontal/thumbnail";
+ parts {
+ part { name: "clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.index.0";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clip";
+ description {
+ state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1.relative: 0.5 0.5;
+ rel2.relative: 0.5 0.5;
+ fixed: 1 1;
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ transition: DECELERATE 0.5;
+ target: "clip";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.5;
+ target: "clip";
+ }
+ }
+ }
+ group {
+ name: "elm/index/item/vertical/thumbnail";
+ alias: "elm/index/item_odd/vertical/thumbnail";
+ alias: "elm/index/item/horizontal/thumbnail";
+ alias: "elm/index/item_odd/horizontal/thumbnail";
+ images {
+ image: "indicator_on_normal.png" COMP;
+ image: "indicator_on_focused.png" COMP;
+ image: "indicator_on_normal_ef.png" COMP;
+ image: "indicator_on_focused_ef.png" COMP;
+ }
+ parts {
+ part { name:"bg";
+ type : RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ min: INDEX_THUMBNAIL_BG_SIZE;
+ max: INDEX_THUMBNAIL_BG_SIZE;
+ visible: 0;
+ align: 0.5 0.5;
+ }
+ }
+ part { name: "indicator1";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: INDEX_THUMBNAIL_IND_SIZE;
+ max: INDEX_THUMBNAIL_IND_SIZE;
+ image.normal: "indicator_on_normal.png";
+ color_class: "W1912";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "indicator2";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ fixed: 1 1;
+ min: INDEX_THUMBNAIL_IND_SIZE;
+ max: INDEX_THUMBNAIL_IND_SIZE;
+ image.normal: "indicator_on_focused.png";
+ color_class: "W1911";
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "indicator1_effect";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "indicator1";
+ rel2.to: "indicator1";
+ fixed: 1 1;
+ image.normal: "indicator_on_normal_ef.png";
+ color_class: "W222";
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "indicator2_effect";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "indicator2";
+ rel2.to: "indicator2";
+ fixed: 1 1;
+ image.normal: "indicator_on_focused_ef.png";
+ color_class: "W221";
+ visible: 0;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "indicator1";
+ target: "indicator2";
+ target: "indicator1_effect";
+ target: "indicator2_effect";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "indicator1";
+ target: "indicator2";
+ target: "indicator1_effect";
+ target: "indicator2_effect";
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/label.edc b/2.3-wearable/widgets/label.edc
new file mode 100644
index 00000000..816c5ce4
--- /dev/null
+++ b/2.3-wearable/widgets/label.edc
@@ -0,0 +1,888 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#define SLIDE_SPEED_WEIGHT 0.5
+#define SLIDE_TEXT_GAP 60
+
+ styles {
+ style { name: "textblock_style";
+ base: "font=Tizen:style=Regular font_size="LABEL_FONT_SIZE_INC" color=#ffffff color_class=T122 text_class=T122";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "b" "+ font_weight=Bold";
+ tag: "tab" "\t";
+ }
+ /* label doesn't use it */
+ style { name: "textblock_charwrap_style";
+base: "font=Tizen:style=Regular font_size="LABEL_FONT_SIZE_INC" color=#ffffff color_class=T122 text_class=T122";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "b" "+ font_weight=Bold";
+ tag: "tab" "\t";
+ }
+ }
+
+ group { name: "elm/label/base/default";
+ parts {
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ }
+
+ /* default label doesn't use it */
+ group { name: "elm/label/base_wrap/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ multiline: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "charwrap_mode" 0.0;
+ text {
+ style: "textblock_charwrap_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "default_on";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "charwrap_on";
+ signal: "elm,state,charwrap";
+ source: "elm";
+ action: STATE_SET "charwrap_mode" 0.0;
+ target: "elm.text";
+ }
+ } // end programs
+ } // end group
+
+ /* default label doesn't use it */
+ group { name: "elm/label/base_wrap_ellipsis/default";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ multiline: 1;
+ description { state: "default" 0.0;
+ // FIXME : fixed for multiline ellipsis.
+ // does it need to make another ellipsis style?
+ fixed: 0 1;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "charwrap_mode" 0.0;
+ // FIXME : fixed for multiline ellipsis.
+ // does it need to make another ellipsis style?
+ fixed: 0 1;
+ text {
+ style: "textblock_charwrap_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "default_on";
+ signal: "elm,state,default";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "charwrap_on";
+ signal: "elm,state,charwrap";
+ source: "elm";
+ action: STATE_SET "charwrap_mode" 0.0;
+ target: "elm.text";
+ }
+ } // end programs
+ } // end group
+
+ group { name: "elm/label/base/marker";
+ styles {
+ style { name: "textblock_style2";
+ base: "font=Tizen:style=Bold font_size=14 align=center color=#fff wrap=word text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "hilight" "+ color=#ffff";
+ tag: "b" "+ color=#ffff";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "textblock_style2";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ }
+
+ /* default label doesn't use it */
+ group { name: "elm/label/base_wrap/marker";
+ parts {
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ multiline: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "textblock_style2";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ }
+
+ /* actionbar title textblock */
+ group { name: "elm/label/base/actionbar_title";
+ images {
+ image: "tw_action_text_fadeout_left_holo_dark.png" COMP;
+ image: "tw_action_text_fadeout_right_holo_dark.png" COMP;
+ }
+ script {
+ public g_mirrored = 0; //Mirrored on/off status
+
+ public title_text_fade_out() {
+ new x, y, w, h, w2;
+ get_geometry(PART:"elm.text", x, y, w, h);
+ get_geometry(PART:"base", x, y, w2, h);
+
+ if (w > w2) {
+ if (g_mirrored)
+ set_state(PART:"title_text_fade_out_effect_right", "show_mirrored", 0.0);
+ else
+ set_state(PART:"title_text_fade_out_effect_right", "show", 0.0);
+ }
+ else
+ set_state(PART:"title_text_fade_out_effect_right", "default", 0.0);
+ }
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ text {
+ style: "action_bar_title";
+ }
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ }
+ part { name: "title_text_fade_out_effect_right";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ align: 1.0 0.5;
+ fixed: 1 0;
+ visible: 0;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 0.0 1.0; to: "base"; }
+ color_class: "B0511";
+ image.normal: "tw_action_text_fadeout_right_holo_dark.png";
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ min: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ max: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ visible: 1;
+ }
+ description { state: "show_mirrored" 0.0;
+ inherit: "default" 0.0;
+ min: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ max: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ visible: 1;
+ image.normal: "tw_action_text_fadeout_left_holo_dark.png";
+ }
+ }
+ }
+ programs {
+ program {
+ name: "mirrored_on";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 1);
+ title_text_fade_out();
+ }
+ }
+ program {
+ name: "mirrored_off";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 0);
+ title_text_fade_out();
+ }
+ }
+ }
+ }
+
+ group { name: "elm/label/base/slide_long";
+ script {
+ public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
+
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT_SET) {
+ new Float:duration;
+ duration = getfarg(2);
+ if (id == 0)
+ set_float(g_duration, duration);
+ else
+ set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
+ }
+ }
+ public slide_to_end_anim(val, Float:pos) {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
+ if (pos >= 1.0) {
+ id = timer(0.5, "slide_to_begin", 1);
+ set_int(g_timer_id, id);
+ }
+ }
+ public slide_to_end() {
+ new stopflag;
+ new id;
+ new Float:duration;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ duration = get_float(g_duration);
+ id = anim(duration, "slide_to_end_anim", 1);
+ set_int(g_anim_id, id);
+ }
+ public slide_to_begin() {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_state(PART:"elm.text", "slide_begin", 0.0);
+ id = timer(0.5, "slide_to_end", 1);
+ set_int(g_timer_id, id);
+ }
+ public start_slide() {
+ set_int(g_stopslide, 0);
+ set_state(PART:"elm.text", "slide_begin", 0.0);
+ slide_to_end();
+ }
+ public stop_slide() {
+ new id;
+ set_int(g_stopslide, 1);
+ id = get_int(g_anim_id);
+ cancel_anim(id);
+ id = get_int(g_timer_id);
+ cancel_timer(id);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+
+ parts {
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_end" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ align: 1.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "start_slide";
+ source: "elm";
+ signal: "elm,state,slide,start";
+ script {
+ start_slide();
+ }
+ }
+ program { name: "stop_slide";
+ source: "elm";
+ signal: "elm,state,slide,stop";
+ script {
+ stop_slide();
+ }
+ }
+ }
+ }
+ group { name: "elm/label/base/slide_roll";
+ script {
+ public g_duration = 0;
+ public g_stopslide = 0;
+ public g_timer_id = 0;
+ public g_anim_id = 0;
+ public g_tb_w = 0;
+ public g_tb_h = 0;
+ public org_text = 0;
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT_SET) {
+ new Float:duration;
+ duration = getfarg(2);
+ if (id == 0)
+ set_float(g_duration, duration);
+ else
+ set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
+ }
+ }
+ public get_tb_width() {
+ new x, y, w, h;
+ set_state(PART:"elm.text", "no_ellipsis", 0.0);
+ get_geometry(PART:"elm.text", x, y, w, h);
+ set_int(g_tb_w, w);
+ set_int(g_tb_h, h);
+ set_state(PART:"text_clip", "default", 0.0);
+ get_geometry(PART:"text_clip", x, y, w, h);
+ set_int(org_text, w);
+ }
+ public slide_to_end_anim(val, Float:pos) {
+ if (get_int(g_stopslide)) return;
+ set_tween_state(PART:"elm.text.slide", pos, "slide_begin", 0.0, "slide_end", 0.0);
+ set_tween_state(PART:"elm.text.slide2", pos, "slide_begin", 0.0, "slide_end", 0.0);
+ if (pos >= 1.0) {
+ set_int(g_timer_id, timer(1.5, "start_slide", 0));
+ }
+ }
+ public slide_to_end() {
+ if (get_int(g_stopslide)) return;
+ set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
+ }
+ public start_slide(val) {
+ new Float:len;
+ new buf[1024];
+ set_int(g_stopslide, 0);
+ get_tb_width();
+ if (!get_float(g_duration)) {
+ len = get_int(g_tb_w) + SLIDE_TEXT_GAP;
+ set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
+ }
+ if(get_int(g_tb_w) > get_int(org_text)) {
+ set_state(PART:"elm.text.slide", "slide_begin", 0.0);
+ set_state(PART:"elm.text.slide2", "slide_begin", 0.0);
+ get_text(PART:"elm.text", buf, 1024);
+ set_text(PART:"elm.text.slide", buf);
+ set_text(PART:"elm.text.slide2", buf);
+ set_state(PART:"text_clip", "hide", 0.0);
+ set_state(PART:"slide_text_clip", "show", 0.0);
+ slide_to_end();
+ }
+ }
+ public stop_slide() {
+ new slide_start_timer;
+ new slide_anim_id;
+ set_int(g_stopslide, 1);
+ slide_start_timer = get_int(g_timer_id);
+ if (slide_start_timer) {
+ cancel_timer(slide_start_timer);
+ set_int(g_timer_id, 0);
+ }
+ slide_anim_id = get_int(g_anim_id);
+ if (slide_anim_id) {
+ cancel_anim(slide_anim_id);
+ set_int(g_anim_id, 0);
+ }
+ set_text(PART:"elm.text.slide", "");
+ set_text(PART:"elm.text.slide2", "");
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text.slide", "default", 0.0);
+ set_state(PART:"elm.text.slide2", "default", 0.0);
+ set_state(PART:"text_clip", "default", 0.0);
+ set_state(PART:"slide_text_clip", "default", 0.0);
+ }
+ }
+ parts {
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "text_clip";
+ type: RECT;
+ mouse_events: 0;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "text_clip";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "no_ellipsis" 0.0;
+ inherit: "default" 0.0;
+ text.min: 1 1;
+ }
+ }
+ part { name: "slide_text_clip";
+ type: RECT;
+ mouse_events: 0;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "slide_text_gap";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: SLIDE_TEXT_GAP 0;
+ max: SLIDE_TEXT_GAP -1;
+ align: 1.0 0.5;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "elm.text.slide";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "slide_text_clip";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ }
+ }
+ description { state: "slide_begin" 0.0;
+ inherit: "default" 0.0;
+ text.min: 1 1;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ description { state: "slide_end" 0.0;
+ inherit: "default" 0.0;
+ align: 1.0 0.5;
+ text.min: 1 1;
+ text.align: 1.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "slide_text_gap"; }
+ rel2 { relative: 0.0 1.0; to: "slide_text_gap"; }
+ }
+ }
+ part { name: "slide_text_gap2";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ min: SLIDE_TEXT_GAP 0;
+ max: SLIDE_TEXT_GAP -1;
+ align: 0.0 0.5;
+ rel1 { relative: 1.0 0.0; to: "elm.text"; }
+ rel2 { relative: 1.0 1.0; to: "elm.text"; }
+ }
+ }
+ part { name: "elm.text.slide2";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "slide_text_clip";
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ }
+ }
+ description { state: "slide_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to: "slide_text_gap2"; }
+ rel2 { relative: 1.0 1.0; to: "slide_text_gap2"; }
+ }
+ description { state: "slide_end" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ }
+ programs {
+ program { name: "start_slide";
+ source: "elm";
+ signal: "elm,state,slide,start";
+ script {
+ run_program(PROGRAM:"stop_slide");
+ set_int(g_timer_id, timer(1.5, "start_slide", 0));
+ }
+ }
+ program { name: "stop_slide";
+ source: "elm";
+ signal: "elm,state,slide,stop";
+ script {
+ stop_slide();
+ }
+ }
+ }
+ }
+ group { name: "elm/label/base/slide_short";
+ script {
+ public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
+
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT_SET) {
+ new Float:duration;
+ duration = getfarg(2);
+ if (id == 0)
+ set_float(g_duration, duration);
+ else
+ set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
+ }
+ }
+ public slide_to_end_anim(val, Float:pos) {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
+ if (pos >= 1.0) {
+ id = timer(0.5, "slide_to_begin", 1);
+ set_int(g_timer_id, id);
+ }
+ }
+ public slide_to_end() {
+ new stopflag;
+ new id;
+ new Float:duration;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ duration = get_float(g_duration);
+ id = anim(duration, "slide_to_end_anim", 1);
+ set_int(g_anim_id, id);
+ }
+ public slide_to_begin() {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_state(PART:"elm.text", "slide_begin", 0.0);
+ id = timer(0.5, "slide_to_end", 1);
+ set_int(g_timer_id, id);
+ }
+ public start_slide() {
+ set_int(g_stopslide, 0);
+ set_state(PART:"elm.text", "slide_begin", 0.0);
+ slide_to_end();
+ }
+ public stop_slide() {
+ new id;
+ set_int(g_stopslide, 1);
+ id = get_int(g_anim_id);
+ cancel_anim(id);
+ id = get_int(g_timer_id);
+ cancel_timer(id);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+
+ parts {
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_end" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "start_slide";
+ source: "elm";
+ signal: "elm,state,slide,start";
+ script {
+ start_slide();
+ }
+ }
+ program { name: "stop_slide";
+ source: "elm";
+ signal: "elm,state,slide,stop";
+ script {
+ stop_slide();
+ }
+ }
+ }
+ }
+
+ group { name: "elm/label/base/slide_bounce";
+ script {
+ public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
+
+ public message(Msg_Type:type, id, ...) {
+ if (type == MSG_FLOAT_SET) {
+ new Float:duration;
+ duration = getfarg(2);
+ if (id == 0)
+ set_float(g_duration, duration);
+ else
+ set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
+ }
+ }
+ public slide_to_end_anim(val, Float:pos) {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
+ if (pos >= 1.0) {
+ id = timer(0.5, "slide_to_begin", 1);
+ set_int(g_timer_id, id);
+ }
+ }
+ public slide_to_end() {
+ new stopflag;
+ new id;
+ new Float:duration;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ duration = get_float(g_duration);
+ id = anim(duration, "slide_to_end_anim", 1);
+ set_int(g_anim_id, id);
+ }
+ public slide_to_begin_anim(val, Float:pos) {
+ new stopflag;
+ new id;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
+ if (pos >= 1.0) {
+ id = timer(0.5, "slide_to_end", 1);
+ set_int(g_timer_id, id);
+ }
+ }
+ public slide_to_begin() {
+ new stopflag;
+ new id;
+ new Float:duration;
+ stopflag = get_int(g_stopslide);
+ if (stopflag == 1) return;
+ duration = get_float(g_duration);
+ id = anim(duration, "slide_to_begin_anim", 1);
+ set_int(g_anim_id, id);
+ }
+ public start_slide() {
+ set_int(g_stopslide, 0);
+ set_state(PART:"elm.text", "slide_begin", 0.0);
+ slide_to_end();
+ }
+ public stop_slide() {
+ new id;
+ set_int(g_stopslide, 1);
+ id = get_int(g_anim_id);
+ cancel_anim(id);
+ id = get_int(g_timer_id);
+ cancel_timer(id);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+
+ parts {
+ part { name: "label.text.clip";
+ type: RECT;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "label.text.clip";
+ description { state: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 0 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_end" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ align: 1.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ description { state: "slide_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ align: 0.0 0.0;
+ text {
+ style: "textblock_style";
+ min: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "start_slide";
+ source: "elm";
+ signal: "elm,state,slide,start";
+ script {
+ start_slide();
+ }
+ }
+ program { name: "stop_slide";
+ source: "elm";
+ signal: "elm,state,slide,stop";
+ script {
+ stop_slide();
+ }
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/layout.edc b/2.3-wearable/widgets/layout.edc
new file mode 100644
index 00000000..8a19e6e2
--- /dev/null
+++ b/2.3-wearable/widgets/layout.edc
@@ -0,0 +1,1292 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ /*************************************************/
+ /* elm_layout -> fundamental template style */
+ /*************************************************/
+ group { name: "elm/layout/application/default";
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ }
+ }
+
+
+ /************************************************************/
+ /* elm_layout -> fundamental template style with fastscroll */
+ /************************************************************/
+ group { name: "elm/layout/application/fastscroll";
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "right.padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1.relative: 1 0;
+ min: INDEX_SCROLL_HANDLE_ITEM_WIDTH 0;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel2 {
+ to_x: "right.padding";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "hide" 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part {
+ name: "elm.swallow.fastscroll";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0; }
+ description { state: "hide" 0.0;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "hide";
+ signal: "elm,state,fastscroll,hide";
+ source: "";
+ action: STATE_SET "hide" 0.0;
+ target: "elm.swallow.content";
+ target: "elm.swallow.fastscroll";
+ }
+ program {
+ name: "show";
+ signal: "elm,state,fastscroll,show";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "elm.swallow.fastscroll";
+ }
+ }
+ }
+
+ group { name: "elm/layout/nocontents/default";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NOITEM_LR_PADDING_SIZE 0;
+ max: NOITEM_LR_PADDING_SIZE -1;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part {
+ name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NOITEM_LR_PADDING_SIZE 0;
+ max: NOITEM_LR_PADDING_SIZE -1;
+ fixed: 1 1;
+ align: 1.0 0.0;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part { name: "fake_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 (NOITEM_IMAGE_SIZE+NOITEM_IMAGE_PADDING_HEIGHT);
+ max: -1 (NOITEM_IMAGE_SIZE+NOITEM_IMAGE_PADDING_HEIGHT);
+ rel2.relative: 1.0 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "icon_clip";
+ description { state: "default" 0.0;
+ min: NOITEM_IMAGE_SIZE NOITEM_IMAGE_SIZE;
+ max: NOITEM_IMAGE_SIZE NOITEM_IMAGE_SIZE;
+ rel1.to: "image_bottom_padding";
+ rel2 {
+ to: "image_bottom_padding";
+ relative: 1.0 0.0;
+ }
+ fixed: 0 1;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color: 255 255 255 153;
+ }
+ }
+ part { name: "image_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 NOITEM_IMAGE_PADDING_HEIGHT;
+ max: -1 NOITEM_IMAGE_PADDING_HEIGHT;
+ rel1.to: "elm.text";
+ rel2 {
+ to: "elm.text";
+ relative: 1.0 0.0;
+ }
+ fixed: 0 1;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ to_x: "left_padding";
+ relative: 1.0 0.5;
+ }
+ rel2 {
+ to_x: "right_padding";
+ relative: 0.0 0.5;
+ }
+ text {
+ style: "nocontent_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "image_visible" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to_x: "left_padding";
+ to_y: "fake_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ }
+ programs {
+ program { name: "image_hidden";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "image_visible";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "image_visible" 0.0;
+ target: "elm.text";
+ }
+ }
+ }
+
+group { name: "elm/layout/nocontents_button/default";
+ inherit: "elm/layout/nocontents/default";
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part {
+ name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NOITEM_LR_PADDING_SIZE 0;
+ max: NOITEM_LR_PADDING_SIZE -1;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ }
+ }
+ part {
+ name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NOITEM_LR_PADDING_SIZE 0;
+ max: NOITEM_LR_PADDING_SIZE -1;
+ fixed: 1 1;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "fake_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 (NOITEM_IMAGE_SIZE+NOITEM_IMAGE_PADDING_HEIGHT);
+ max: -1 (NOITEM_IMAGE_SIZE+NOITEM_IMAGE_PADDING_HEIGHT);
+ rel2.relative: 1.0 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "icon_clip";
+ description { state: "default" 0.0;
+ min: NOITEM_IMAGE_SIZE NOITEM_IMAGE_SIZE;
+ max: NOITEM_IMAGE_SIZE NOITEM_IMAGE_SIZE;
+ rel1.to: "image_bottom_padding";
+ rel2 {
+ to: "image_bottom_padding";
+ relative: 1.0 0.0;
+ }
+ fixed: 0 1;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.icon";
+ rel2.to: "elm.swallow.icon";
+ color: 255 255 255 153;
+ }
+ }
+ part { name: "image_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 NOITEM_IMAGE_PADDING_HEIGHT;
+ max: -1 NOITEM_IMAGE_PADDING_HEIGHT;
+ rel1.to: "elm.text";
+ rel2 {
+ to: "elm.text";
+ relative: 1.0 0.0;
+ }
+ fixed: 0 1;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "left_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "elm.icon";
+ relative: 0.0 0.0;
+ }
+ text {
+ style: "nocontent_style";
+ min: 0 1;
+ max: 0 1;
+ }
+ }
+ description { state: "image_visible" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to_x: "left_padding";
+ to_y: "fake_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "elm.icon";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel2 {
+ to_y: "elm.icon";
+ relative: 1 0;
+ }
+ }
+ }
+ part { name: "elm.icon";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ }
+ programs {
+ program { name: "image_hidden";
+ signal: "elm,state,icon,hidden";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.text";
+ }
+ program { name: "image_visible";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ action: STATE_SET "image_visible" 0.0;
+ target: "elm.text";
+ }
+ }
+}
+
+group { name: "elm/layout/button_controller/default";
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "lt_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_PADDING_LT_SIZE;
+ max: BUTTON_CONTROLLER_PADDING_LT_SIZE;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel2.relative: 0.0 0.0;
+ }
+ }
+ part { name: "rb_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_PADDING_RB_SIZE;
+ max: BUTTON_CONTROLLER_PADDING_RB_SIZE;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ }
+ }
+ part { name: "elm.icon.center";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_CENTER_SIZE;
+ max: BUTTON_CONTROLLER_ICON_CENTER_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.icon";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_SIZE;
+ max: BUTTON_CONTROLLER_ICON_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.icon.left";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_SIZE;
+ max: BUTTON_CONTROLLER_ICON_SIZE;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ to_x: "lt_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.icon.center";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.icon.right";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_SIZE;
+ max: BUTTON_CONTROLLER_ICON_SIZE;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ to_x: "elm.icon.center";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "rb_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.icon.top";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_SIZE;
+ max: BUTTON_CONTROLLER_ICON_SIZE;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ to_y: "lt_padding";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_y: "elm.icon.center";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part { name: "elm.icon.bottom";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_CONTROLLER_ICON_SIZE;
+ max: BUTTON_CONTROLLER_ICON_SIZE;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1 {
+ to_y: "elm.icon.center";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_y: "rb_padding";
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/layout/full_toggle/default";
+ styles{
+ style { name: "full_toggle_style";
+ base: "font=Tizen:style=Regular font_size="38" align=center color=""#FFFFFF"" wrap=mixed ellipsis=1.0 text_class=tizen";
+ tag: "br" "\n";
+ tag: "hilight" "+ font_weight=Bold";
+ tag: "b" "+ font_weight=Bold";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part {
+ name: "bg";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: -1 0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 58;
+ max: -1 58;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 30 0;
+ max: 30 -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 30 0;
+ max: 30 -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1.relative: 1.0 0.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 260 0;
+ max: 260 -1;
+ fixed: 1 0;
+ rel1 {
+ to_x: "left_padding";
+ to_y: "top_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "elm.icon";
+ relative: 0.0 0.0;
+ }
+ text {
+ style: "full_toggle_style";
+ min: 0 1;
+ }
+ }
+ }
+ part { name: "elm.icon";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 168 74;
+ max: 168 74;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ rel1 {
+ to_y: "bottom_padding";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_y: "bottom_padding";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/layout/body_thumbnail/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BODY_THUMBNAIL_LAYOUT_SIZE;
+ max: BODY_THUMBNAIL_LAYOUT_SIZE;
+ color_class: "W131";
+ }
+ }
+ part { name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 0.0;
+ min: 0 BODY_THUMBNAIL_PADDING_TOP_SIZE;
+ max: -1 BODY_THUMBNAIL_PADDING_TOP_SIZE;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BODY_THUMBNAIL_PADDING_LEFT_SIZE 0;
+ max: BODY_THUMBNAIL_PADDING_LEFT_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1.to: "bg";
+ rel1.relative: 0.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BODY_THUMBNAIL_PADDING_RIGHT_SIZE 0;
+ max: BODY_THUMBNAIL_PADDING_RIGHT_SIZE -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1.to: "bg";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "bg";
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part { name: "elm.icon";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "left_padding";
+ to_y: "top_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "right_padding";
+ to_y: "top_padding";
+ relative: 0.0 1.0;
+ }
+ align: 0.5 0.0;
+ min: BODY_THUMBNAIL_SIZE;
+ max: BODY_THUMBNAIL_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "left_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ min: BODY_THUMBNAIL_LINE_SIZE 0;
+ max: BODY_THUMBNAIL_LINE_SIZE -1;
+ color_class: "W132";
+ rel1.to: "elm.icon";
+ rel2.to: "elm.icon";
+ rel2.relative: 0.0 1.0;
+ }
+ description { state: "unfocus" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W132D";
+ }
+ }
+ part { name: "right_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ min: BODY_THUMBNAIL_LINE_SIZE 0;
+ max: BODY_THUMBNAIL_LINE_SIZE -1;
+ color_class: "W132";
+ rel1.to: "elm.icon";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "elm.icon";
+ }
+ description { state: "unfocus" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W132D";
+ }
+ }
+ part { name: "top_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 BODY_THUMBNAIL_LINE_SIZE;
+ max: -1 BODY_THUMBNAIL_LINE_SIZE;
+ color_class: "W132";
+ rel1.to: "left_line";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "right_line";
+ rel2.relative: 0.0 0.0;
+ }
+ description { state: "unfocus" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W132D";
+ }
+ }
+ part { name: "bottom_line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ min: 0 BODY_THUMBNAIL_LINE_SIZE;
+ max: -1 BODY_THUMBNAIL_LINE_SIZE;
+ color_class: "W132";
+ rel1.to: "left_line";
+ rel1.relative: 1.0 1.0;
+ rel2.to: "right_line";
+ rel2.relative: 0.0 1.0;
+ }
+ description { state: "unfocus" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W132D";
+ }
+ }
+ part { name: "center_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ min: 0 BODY_THUMBNAIL_PADDING_CENTER_SIZE;
+ max: -1 BODY_THUMBNAIL_PADDING_CENTER_SIZE;
+ rel1.to: "bottom_line";
+ rel1.relative: 0.0 1.0;
+ rel2.to: "bottom_line";
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 BODY_THUMBNAIL_1LINE_TEXT_HEIGHT;
+ max: -1 BODY_THUMBNAIL_1LINE_TEXT_HEIGHT;
+ align: 0.5 0.0;
+ rel1 {
+ to_x: "bg";
+ to_y: "center_padding";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_x: "bg";
+ to_y: "center_padding";
+ relative: 1.0 1.0;
+ }
+ text {
+ style: "body_thumbnail_1line_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "focus";
+ signal: "elm,state,thumbnail,focus";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "left_line";
+ target: "right_line";
+ target: "top_line";
+ target: "bottom_line";
+ }
+ program {
+ name: "unfocus";
+ signal: "elm,state,thumbnail,unfocus";
+ source: "*";
+ action: STATE_SET "unfocus" 0.0;
+ target: "left_line";
+ target: "right_line";
+ target: "top_line";
+ target: "bottom_line";
+ }
+ }
+}
+
+ /*************************************************/
+ /* elm_layout -> searchbar style */
+ /*************************************************/
+ group { name: "elm/layout/application/searchbar_base";
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "searchbar";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_H_INC;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ rel2 {
+ relative: 1.0 0.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "searchbar";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "show_searchbar";
+ signal: "elm,state,show,searchbar";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "searchbar";
+ }
+ program { name: "show_searchbar_with_animation";
+ signal: "elm,state,show,searchbar,animation";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ transition: DECELERATE 0.3;
+ target: "searchbar";
+ }
+ program { name: "hide_searchbar";
+ signal: "elm,state,hide,searchbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "searchbar";
+ }
+ program { name: "hide_searchbar_with_animation";
+ signal: "elm,state,hide,searchbar,animation";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: ACCELERATE 0.3;
+ target: "searchbar";
+ }
+ }
+ }
+
+group { name: "elm/layout/searchbar/default";
+ script {
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "B081";
+ }
+ }
+ part { name: "inputfield_base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_BASE_HEIGHT_INC;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "top_left_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SEARCHBAR_LEFT_PADDING_INC SEARCHBAR_TOP_PADDING_INC;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "inputfield_base"; }
+ rel2 { relative: 0.0 0.0; to: "inputfield_base"; }
+ }
+ }
+ part { name: "bottom_right_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: SEARCHBAR_RIGHT_PADDING_INC SEARCHBAR_BOTTOM_PADDING_INC;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1 { relative: 1.0 1.0; to: "inputfield_base"; }
+ rel2 { relative: 1.0 1.0; to: "inputfield_base"; }
+ }
+ }
+ part { name: "inputfield_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SEARCHBAR_WIDTH_INC SEARCHBAR_HEIGHT_INC;
+ align: 0.0 0.5;
+ rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
+ rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ min: SEARCHBAR_WIDTH_INC SEARCHBAR_HEIGHT_INC;
+ rel1 {
+ relative : 0.0 0.0;
+ to: "inputfield_rect";
+ }
+ rel2 {
+ relative : 1.0 1.0;
+ to: "inputfield_rect";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "bg_clicked";
+ signal: "mouse,clicked,1";
+ source: "inputfield_rect";
+ script {
+ if (get_int(multi_down) == 0)
+ emit("elm,bg,clicked", "elm");
+ }
+ }
+ program {
+ name: "sound_play";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ script {
+ if (get_int(multi_down) == 0)
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ }
+}
+
+group { name: "elm/layout/searchbar/cancel_button";
+ script {
+ public multi_down = 0;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ color_class: "B081";
+ }
+ }
+ part { name: "inputfield_base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_BASE_HEIGHT_INC;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "top_padding_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_TOP_PADDING_INC;
+ fixed: 0 1;
+ align: 0 0;
+ rel1.to: "inputfield_base";
+ rel2.to: "inputfield_base";
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ part { name: "bottom_padding_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
+ fixed: 0 1;
+ align: 0 1;
+ rel1.to: "inputfield_base";
+ rel1.relative: 0.0 1.0;
+ rel2.to: "inputfield_base";
+ }
+ }
+ part { name: "base_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SEARCHBAR_HEIGHT_INC;
+ align: 0 0.5;
+ fixed: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "top_padding_rect";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "bottom_padding_rect";
+ }
+ }
+ }
+ part { name: "left_padding_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SEARCHBAR_LEFT_PADDING_INC 0;
+ fixed: 1 0;
+ align: 0 0;
+ rel1.to: "inputfield_base";
+ rel2.to: "inputfield_base";
+ rel2.relative: 0.0 1.0;
+ }
+ }
+ part { name: "right_padding_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SEARCHBAR_RIGHT_PADDING_INC 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1.to: "inputfield_base";
+ rel1.relative: 1.0 0.0;
+ rel2.to: "inputfield_base";
+ }
+ }
+ part { name: "inputfield_rect";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: SEARCHBAR_WIDTH_INC SEARCHBAR_HEIGHT_INC;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "left_padding_rect";
+ to_y: "base_bg";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "right_btn_padding_rect";
+ to_y: "base_bg";
+ }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "right_btn_padding_rect";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "right_padding_rect";
+ rel2.relative: 0.0 1.0;
+ rel2.to: "right_padding_rect";
+ }
+ description { state: "in" 0.0;
+ inherit: "default" 0.0;
+ min: SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 0;
+ rel1.to: "button_cancel";
+ rel2.to: "button_cancel";
+ }
+ }
+ part { name: "button_cancel";
+ type: SWALLOW;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SEARCHBAR_CANCEL_BUTTON_W_INC 0;
+ align: 1.0 0.5;
+ state: "default" 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "right_padding_rect";
+ to_y: "top_padding_rect";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "right_padding_rect";
+ to_y: "bottom_padding_rect";
+ }
+ }
+ }
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ min: SEARCHBAR_WIDTH_INC SEARCHBAR_HEIGHT_INC;
+ rel1 {
+ relative : 0.0 0.0;
+ to: "inputfield_rect";
+ }
+ rel2 {
+ relative : 1.0 1.0;
+ to: "inputfield_rect";
+ }
+ align: 0.0 0.5;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "sound_play";
+ signal: "mouse,clicked,1";
+ source: "elm.text";
+ script {
+ if (get_int(multi_down) == 0)
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program {
+ name: "bg_clicked";
+ signal: "mouse,clicked,1";
+ source: "inputfield_rect";
+ script {
+ if (get_int(multi_down) == 0)
+ emit("elm,bg,clicked", "elm");
+ }
+ }
+ program {
+ name: "multi_down";
+ signal: "elm,action,multi,down";
+ source: "elm";
+ script {
+ set_int(multi_down, 1);
+ }
+ }
+ program {
+ name: "multi_up";
+ signal: "elm,action,multi,up";
+ source: "elm";
+ script {
+ set_int(multi_down, 0);
+ }
+ }
+ program { name: "cancel_in";
+ signal: "cancel,in";
+ source: "";
+ action: STATE_SET "in" 0.0;
+ target: "right_btn_padding_rect";
+ transition: LINEAR 0.3;
+ }
+ program { name: "cancel_out";
+ signal: "cancel,out";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "right_btn_padding_rect";
+ transition: LINEAR 0.3;
+ }
+ program { name: "cancel_show";
+ signal: "cancel,show";
+ source: "";
+ action: STATE_SET "in" 0.0;
+ target: "right_btn_padding_rect";
+ }
+ program { name: "cancel_hide";
+ signal: "cancel,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "right_btn_padding_rect";
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/naviframe.edc b/2.3-wearable/widgets/naviframe.edc
new file mode 100644
index 00000000..15ed5e5c
--- /dev/null
+++ b/2.3-wearable/widgets/naviframe.edc
@@ -0,0 +1,1009 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#define NAVIFRAME_VIEW_ZOOM_TRANS_TIME 0.25 //Zoom time for push and pop
+#define NAVIFRAME_VIEW_SLIDE_TRANS_TIME 0.2 //Sliding time for push and pop
+#define NAVIFRAME_VIEW_SLIDE_TRANS_PREPARE_TIME 0.05 //Sliding prepare time for pop
+#define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
+#define NAVIFRAME_HIDDEN_BTN_TRANS_TIME 0.5 //Hidden Button transition time
+#define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
+
+group { name: "elm/naviframe/base/default";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/naviframe/item/basic/default";
+ data.item: "tizen_zoom" 1;
+ images {
+ image: "tw_action_text_fadeout_left_holo_dark.png" COMP;
+ image: "tw_action_text_fadeout_right_holo_dark.png" COMP;
+ }
+ script {
+ public g_mirrored = 0; //Mirrored on/off status
+ public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
+
+ public title_text_fade_out() {
+ new x, y, w, h, w2;
+
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+
+ get_geometry(PART:"elm.text.title", x, y, w, h);
+ get_geometry(PART:"title_text_bg", x, y, w2, h);
+
+ if (w > w2) {
+ if (get_int(g_mirrored))
+ set_state(PART:"title_text_fade_out_effect_right", "show_mirrored", 0.0);
+ else
+ set_state(PART:"title_text_fade_out_effect_right", "show", 0.0);
+ }
+ else
+ set_state(PART:"title_text_fade_out_effect_right", "default", 0.0);
+ }
+ }
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "down" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "down" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 2.0;
+ }
+ }
+ part { name: "hidden_btn";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 HIDDEN_BUTTON_HEIGHT;
+ max: -1 HIDDEN_BUTTON_HEIGHT;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ visible: 0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_clip";
+ type: RECT;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "title_bg";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 0 ACTIONBAR_HEIGHT;
+ max: -1 ACTIONBAR_HEIGHT;
+ fixed: 1 1;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ color_class: "B0511";
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 320 0;
+ max: 320 0;
+ }
+ }
+ part { name: "title_text_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to: "title_left_padding"; }
+ rel2 { relative: 0.0 1.0; to: "title_right_padding"; }
+ align: 0.0 0.0;
+ }
+ description { state: "icon_show" 0.0;
+ rel1 { relative: 1.0 1.0; to_x: "title_left_padding"; to_y: "top_padding"; }
+ rel2 { relative: 0.0 0.0; to_x: "title_right_padding"; to_y: "bottom_padding"; }
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "title_text_clip";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ rel1.to: "title_text_bg";
+ rel2.to: "title_text_bg";
+ }
+ }
+ part { name: "elm.text.title";
+ type: TEXTBLOCK;
+ scale: 1;
+ clip_to: "title_text_clip";
+ description { state: "default" 0.0;
+ text {
+ align: 0.0 0.5;
+ min: 1 1;
+ style: "action_bar_title";
+ }
+ fixed: 1 1;
+ align: 0.0 0.5;
+ rel1.to: "title_text_bg";
+ rel2.to: "title_text_bg";
+ }
+ description { state: "icon_show" 0.0;
+ inherit: "default" 0.0;
+ text.align: 0.0 0.0;
+ align: 0.0 0.0;
+ }
+ }
+ part { name: "left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: ACTIONBAR_PADDING_SIZE 0;
+ max: ACTIONBAR_PADDING_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "click_event_area";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1 { to: "title_bg"; }
+ rel2 { to: "title_bg"; }
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "access.title";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "title_bg";
+ rel2.to: "title_bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "title_color_bar";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 7 0;
+ max: 7 -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 ACTIONBAR_ICON_TEXT_TOP_PADDING_SIZE;
+ max: -1 ACTIONBAR_ICON_TEXT_TOP_PADDING_SIZE;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 0.0; to: "title_bg"; }
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 1.0;
+ min: 0 ACTIONBAR_ICON_TEXT_BOTTOM_PADDING_SIZE;
+ max: -1 ACTIONBAR_ICON_TEXT_BOTTOM_PADDING_SIZE;
+ rel1 {relative: 0.0 1.0; to: "title_bg"; }
+ rel2 {relative: 1.0 1.0; to: "title_bg"; }
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ max: ACTIONBAR_ICON_SIZE;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 {relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
+ rel2 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bottom_padding"; }
+ }
+ }
+ part { name: "title_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 { relative: 1.0 0.0; to_x: "elm.swallow.icon"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to_x: "elm.swallow.icon"; to_y: "title_bg"; }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ min: 6 0;
+ max: 6 -1;
+ }
+ }
+ part { name: "title_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 6 0;
+ max: 6 -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 { relative: 0.0 0.0; to_x: "elm.swallow.next_btn"; to_y: "title_bg"; }
+ rel2 { relative: 0.0 1.0; to_x: "elm.swallow.next_btn"; to_y: "title_bg"; }
+ }
+ }
+ part { name: "title_text_fade_out_effect_right";
+ type: IMAGE;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 -1;
+ align: 1.0 0.5;
+ fixed: 1 0;
+ visible: 0;
+ rel1 { relative: 0.0 0.0; to: "title_right_padding"; }
+ rel2 { relative: 0.0 1.0; to: "title_right_padding"; }
+ color_class: "B0511";
+ image.normal: "tw_action_text_fadeout_right_holo_dark.png";
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ min: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ max: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ visible: 1;
+ }
+ description { state: "show_mirrored" 0.0;
+ inherit: "default" 0.0;
+ min: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ max: ACTIONBAR_FADE_WIDTH ACTIONBAR_HEIGHT;
+ visible: 1;
+ image.normal: "tw_action_text_fadeout_left_holo_dark.png";
+ }
+ }
+ part { name: "elm.swallow.next_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ min: 6 0;
+ max: ACTIONBAR_NEXT_BTN_SIZE;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ rel1 { relative: 1.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "hidden_btn"; }
+ rel2 { relative: 1.0 1.0; to: "base"; }
+ }
+ }
+ /*
+ part { name: "dbg";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ text { font: "Tizen:style=Bold";
+ size: ACTIONBAR_TEXT_SIZE;
+ min: 0 1;
+ align: 0.0 0.5;
+ text_class: "tizen";
+ }
+ color: 255 0 0 255;
+ align: 1.0 0.0;
+ }
+ }*/
+ part { name: "elm.swallow.prev_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program { name: "content_new_pushed";
+ signal: "elm,state,new,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_TIME 1.7;
+ after: "show_finished";
+ }
+ program { name: "content_cur_pushed";
+ signal: "elm,state,cur,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_ZOOM_TRANS_TIME 1.7;
+ after: "pushed_finished";
+ }
+ program { name: "content_prev_popped";
+ signal: "elm,state,prev,popped,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_ZOOM_TRANS_TIME 1.7;
+ after: "show_finished";
+ }
+ program { name: "content_cur_popped";
+ signal: "elm,state,cur,popped,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_PREPARE_TIME 1.7;
+ after: "content_cur_popped2";
+ }
+ program { name: "content_cur_popped2";
+ action: STATE_SET "down" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_TIME 1.7;
+ after: "popped_finished";
+ }
+ program { name: "cur_pushed";
+ signal: "elm,state,cur,pushed";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ }
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "down" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ target: "clipper";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ }
+ }
+ program { name: "show_finished";
+ script {
+ emit("elm,action,show,finished", "");
+ }
+ }
+ program { name: "pushed_finished";
+ script {
+ emit("elm,action,pushed,finished", "");
+ }
+ }
+ program { name: "popped_finished";
+ script {
+ emit("elm,action,popped,finished", "");
+ }
+ }
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"clipper", "default", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "invisible";
+ signal: "elm,state,invisible";
+ source: "elm";
+ script {
+ set_state(PART:"clipper", "down", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title_clip", "hide", 0.0);
+ set_state(PART:"elm.swallow.next_btn", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide_trans";
+ signal: "elm,action,title,hide";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "default")) {
+ run_program(PROGRAM:"title_hide_trans2");
+ }
+ }
+ }
+ program { name: "title_hide_trans2";
+ action: STATE_SET "hide_trans" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_hide_trans3";
+ }
+ program { name: "title_hide_trans3";
+ script {
+ run_program(PROGRAM:"title_hide");
+ }
+ after: "title_trans_finished";
+ }
+ program { name: "title_trans_finished";
+ action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
+ }
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ set_state(PART:"elm.swallow.next_btn", "default", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_show_trans";
+ signal: "elm,action,title,show";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 32, vl);
+ if (!strcmp(st, "hide")) {
+ set_state(PART:"title_bg", "hide_trans", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ set_state(PART:"elm.swallow.next_btn", "default", 0.0);
+ run_program(PROGRAM:"title_show_trans2");
+ }
+ }
+ }
+ program { name: "title_show_trans2";
+ action: STATE_SET "default" 0.0;
+ target: "title_bg";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_trans_finished";
+ }
+ program { name: "title_label_show";
+ signal: "elm,state,title_label,show";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "title_label_hide";
+ signal: "elm,state,title_label,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_text_fade_out_effect_right", "default", 0.0);
+ }
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,show";
+ source: "elm";
+ script {
+ set_state(PART:"title_text_bg", "icon_show", 0.0);
+ set_state(PART:"elm.text.title", "icon_show", 0.0);
+ set_state(PART:"title_left_padding", "show", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "icon_hide";
+ signal: "elm,state,icon,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_left_padding", "default", 0.0);
+ set_state(PART:"title_text_bg", "default", 0.0);
+ set_state(PART:"elm.text.title", "default", 0.0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "next_btn_show";
+ signal: "elm,state,next_btn,show";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "next_btn_hide";
+ signal: "elm,state,next_btn,hide";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program { name: "hidden_btn_show";
+ signal: "elm,state,hidden_btn,show";
+ source: "";
+ script {
+ set_state(PART:"hidden_btn", "show", 0.0);
+ }
+ }
+ program { name: "hidden_btn_hide";
+ signal: "elm,state,hidden_btn,hide";
+ source: "";
+ script {
+ set_state(PART:"hidden_btn", "default", 0.0);
+ }
+ }
+ program { name: "hidden_btn_show_trans";
+ signal: "elm,action,hidden_btn,show";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ target: "hidden_btn";
+ transition: SIN_FAC NAVIFRAME_HIDDEN_BTN_TRANS_TIME 1.7;
+ }
+ program { name: "hidden_btn_hide_trans";
+ signal: "elm,action,hidden_btn,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "hidden_btn";
+ transition: SIN_FAC NAVIFRAME_HIDDEN_BTN_TRANS_TIME 1.7;
+ }
+ program { name: "title_clicked";
+ signal: "mouse,clicked,1";
+ source: "click_event_area";
+ action: SIGNAL_EMIT "elm,action,title,clicked" "";
+ }
+ program {
+ name: "mirrored_on";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 1);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "mirrored_off";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(g_mirrored, 0);
+ run_program(PROGRAM:"title_text_fade_out");
+ }
+ }
+ program {
+ name: "title_text_fade_out";
+ script {
+ if (get_int(g_text_fade_out_calc_timer)) {
+ cancel_timer(g_text_fade_out_calc_timer);
+ set_int(g_text_fade_out_calc_timer, 0);
+ }
+ set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
+ }
+ }
+ }
+}
+
+group { name: "elm/naviframe/item/empty/default";
+ data.item: "tizen_zoom" 1;
+ parts {
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "down" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ description { state: "down" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 2.0;
+ }
+ }
+ part { name: "hidden_btn";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 HIDDEN_BUTTON_HEIGHT;
+ max: -1 HIDDEN_BUTTON_HEIGHT;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ visible: 0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "title_clip";
+ type: RECT;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ visible: 1;
+ rel1.to: "title";
+ rel2.to: "title";
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "title_bg";
+ type: RECT;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: -1 0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1.to: "title";
+ rel2.to: "title";
+ color_class: "B0511";
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ max: -1 -1;
+ }
+ }
+ part { name: "title";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "title_clip";
+ description { state: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: -1 0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ }
+ description { state: "hide_trans" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ max: -1 -1;
+ align: 0.5 1.0;
+ }
+ description { state: "show" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ max: -1 -1;
+ }
+ }
+ part { name: "elm.swallow.next_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "hidden_btn"; }
+ rel2 { relative: 1.0 1.0; to: "base"; }
+ }
+ }
+ /*
+ part { name: "dbg";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ text { font: "Tizen:style=Bold";
+ size: ACTIONBAR_TEXT_SIZE;
+ min: 0 1;
+ align: 0.0 0.5;
+ text_class: "tizen";
+ }
+ color: 255 0 0 255;
+ align: 1.0 0.0;
+ }
+ }*/
+ part { name: "elm.swallow.prev_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program { name: "content_new_pushed";
+ signal: "elm,state,new,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_TIME 1.7;
+ after: "show_finished";
+ }
+ program { name: "content_cur_pushed";
+ signal: "elm,state,cur,pushed,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_ZOOM_TRANS_TIME 1.7;
+ after: "pushed_finished";
+ }
+ program { name: "content_prev_popped";
+ signal: "elm,state,prev,popped,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_ZOOM_TRANS_TIME 1.7;
+ after: "show_finished";
+ }
+ program { name: "content_cur_popped";
+ signal: "elm,state,cur,popped,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_PREPARE_TIME 1.7;
+ after: "content_cur_popped2";
+ }
+ program { name: "content_cur_popped2";
+ action: STATE_SET "down" 0.0;
+ target: "base";
+ transition: SIN_FAC NAVIFRAME_VIEW_SLIDE_TRANS_TIME 1.7;
+ after: "popped_finished";
+ }
+ program { name: "cur_pushed";
+ signal: "elm,state,cur,pushed";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ }
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "down" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ target: "clipper";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ }
+ }
+ program { name: "show_finished";
+ script {
+ emit("elm,action,show,finished", "");
+ }
+ }
+ program { name: "pushed_finished";
+ script {
+ emit("elm,action,pushed,finished", "");
+ }
+ }
+ program { name: "popped_finished";
+ script {
+ emit("elm,action,popped,finished", "");
+ }
+ }
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ script {
+ set_state(PART:"base", "default", 0.0);
+ set_state(PART:"clipper", "default", 0.0);
+ }
+ }
+ program { name: "invisible";
+ signal: "elm,state,invisible";
+ source: "elm";
+ script {
+ set_state(PART:"clipper", "down", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title", "default", 0.0);
+ set_state(PART:"title_bg", "default", 0.0);
+ set_state(PART:"title_clip", "hide", 0.0);
+ }
+ }
+ program { name: "title_hide_trans";
+ signal: "elm,action,title,hide";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title", st, 32, vl);
+ if (!strcmp(st, "show"))
+ run_program(PROGRAM:"title_hide_trans2");
+ }
+ }
+ program { name: "title_hide_trans2";
+ action: STATE_SET "hide_trans" 0.0;
+ target: "title";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_hide_trans3";
+ }
+ program { name: "title_hide_trans3";
+ script {
+ run_program(PROGRAM:"title_hide");
+ }
+ after: "title_trans_finished";
+ }
+ program { name: "title_trans_finished";
+ action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
+ }
+ program { name: "title_show";
+ signal: "elm,state,title,show";
+ source: "elm";
+ script {
+ set_state(PART:"title", "show", 0.0);
+ set_state(PART:"title_bg", "show", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ }
+ }
+ program { name: "title_show_trans";
+ signal: "elm,action,title,show";
+ source: "elm";
+ script {
+ new st[32];
+ new Float:vl;
+ get_state(PART:"title", st, 32, vl);
+ if (!strcmp(st, "default")) {
+ set_state(PART:"title", "hide_trans", 0.0);
+ set_state(PART:"title_bg", "show", 0.0);
+ set_state(PART:"title_clip", "default", 0.0);
+ run_program(PROGRAM:"title_show_trans2");
+ }
+ }
+ }
+ program { name: "title_show_trans2";
+ action: STATE_SET "show" 0.0;
+ target: "title";
+ transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
+ after: "title_trans_finished";
+ }
+ program { name: "hidden_btn_show";
+ signal: "elm,state,hidden_btn,show";
+ source: "";
+ script {
+ set_state(PART:"hidden_btn", "show", 0.0);
+ }
+ }
+ program { name: "hidden_btn_hide";
+ signal: "elm,state,hidden_btn,hide";
+ source: "";
+ script {
+ set_state(PART:"hidden_btn", "default", 0.0);
+ }
+ }
+ program { name: "hidden_btn_show_trans";
+ signal: "elm,action,hidden_btn,show";
+ source: "";
+ action: STATE_SET "show" 0.0;
+ target: "hidden_btn";
+ transition: SIN_FAC NAVIFRAME_HIDDEN_BTN_TRANS_TIME 1.7;
+ }
+ program { name: "hidden_btn_hide_trans";
+ signal: "elm,action,hidden_btn,hide";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "hidden_btn";
+ transition: SIN_FAC NAVIFRAME_HIDDEN_BTN_TRANS_TIME 1.7;
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/popup.edc b/2.3-wearable/widgets/popup.edc
new file mode 100644
index 00000000..318a93f4
--- /dev/null
+++ b/2.3-wearable/widgets/popup.edc
@@ -0,0 +1,963 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+group { name: "elm/notify/bottom/popup";
+ alias: "elm/notify/bottom/toast";
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ align: 0.5 0.0;
+ }
+ description { state: "end" 0.0;
+ inherit: "default" 0.0;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "block";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ visible: 1;
+ color: 0 0 0 0;
+ }
+ description { state: "end" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ action: STATE_SET "end" 0.0;
+ target: "elm.swallow.content";
+ target: "block";
+ }
+ program { name: "show";
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ target: "block";
+ }
+ program { name: "show_1";
+ signal: "show";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.content";
+ after: "end2";
+ }
+ program { name: "end2";
+ action: STATE_SET "end" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "block";
+ target: "elm.swallow.content";
+ after: "showfinished";
+ }
+ program { name: "showfinished";
+ action: SIGNAL_EMIT "elm,action,show,finished" "";
+ }
+ program { name: "hide";
+ signal: "elm,action,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ transition: SIN_FAC 0.25 1.7;
+ target: "elm.swallow.content";
+ }
+ }
+}
+
+// FIXME: block events may be not used
+group { name: "elm/notify/block_events/popup";
+ parts {
+ part { name: "block_events_color";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "transparent";
+ }
+ description { state: "show" 0.0;
+ color_class: "W1712";
+ }
+ description { state: "clicked" 0.0;
+ color_class: "W1712";
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "elm,action,show";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "block_events_color";
+ }
+ program { name: "show1";
+ signal: "show";
+ action: STATE_SET "show" 0.0;
+ transition: LINEAR 0.25;
+ target: "block_events_color";
+ }
+ program { name: "block_clicked";
+ signal: "mouse,clicked,1";
+ source: "block_events_color";
+ action: SIGNAL_EMIT "elm,action,click" "elm";
+ after: "deeper_block_color";
+ }
+ program {
+ name: "deeper_block_color";
+ action: STATE_SET "clicked" 0.0;
+ target: "block_events_color";
+ transition: LINEAR 0.25;
+ after: "default_block_color";
+ }
+ program {
+ name: "default_block_color";
+ action: STATE_SET "show" 0.0;
+ target: "block_events_color";
+ transition: LINEAR 0.25;
+ }
+ }
+}
+
+group { name: "elm/label/base/popup/default";
+ parts {
+ part { name: "top_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_LEFT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ max: POPUP_TEXT_PADDING_LEFT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part { name: "bottom_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_RIGHT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ max: POPUP_TEXT_PADDING_RIGHT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ rel1 {
+ to: "top_left_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "bottom_right_padding";
+ relative: 0.0 0.0;
+ }
+ text {
+ align: 0 0;
+ style: "popup_body_default_font_style";
+ min: 0 1;
+ }
+ }
+ }
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+}
+
+group { name: "elm/label/base/popup/no_block";
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "top_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_LEFT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ max: POPUP_TEXT_PADDING_LEFT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel2 {
+ relative: 0.0 0.0;
+ }
+ }
+ }
+ part { name: "bottom_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_RIGHT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ max: POPUP_TEXT_PADDING_RIGHT_SIZE POPUP_BODY_TEXT_PADDING_TOP_SIZE;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1 {
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ rel1 {
+ to: "top_left_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "bottom_right_padding";
+ relative: 0.0 0.0;
+ }
+ text {
+ align: 0 0;
+ style: "popup_body_default_font_style";
+ min: 0 1;
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/popup/buttons1/default";
+ data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
+ parts{
+ part{ name:"actionbtn1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0; }
+ }
+ }
+}
+
+group { name: "elm/popup/buttons2/default";
+ data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
+ parts{
+ part { name: "c_padding";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_BUTTON_CENTER_PADDING_SIZE 0;
+ max: POPUP_BUTTON_CENTER_PADDING_SIZE -1;
+ fixed: 1 0;
+ align: 0.5 0.5;
+ color_class: "B0553";
+ }
+ }
+ part{ name:"actionbtn1";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel2 {
+ to_x: "c_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part{ name:"actionbtn2";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "c_padding";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ }
+}
+
+
+group { name: "elm/popup/content/default";
+ parts{
+ part { name:"elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_CONTENT_AREA_DEFAULT_MIN_INC;
+ }
+ }
+ }
+}
+
+group { name: "elm/popup/base/default";
+ data {
+ item: "default_orient" "2"; //top:0, center:1 bottom:2
+ item: "title_height" POPUP_TITLE_AREA_HEIGHT;
+ item: "popup_outside_pad" POPUP_OUTSIDE_PADDING;
+ }
+ parts {
+ part { name: "base";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
+ max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
+ }
+ }
+ part { name: "lt_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel2.relative: 0.0 0.0;
+ }
+ }
+ part { name: "rb_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ align: 1.0 1.0;
+ rel1.relative: 1.0 1.0;
+ }
+ }
+ part { name: "text_title_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_LEFT_SIZE 0;
+ max: POPUP_TEXT_PADDING_LEFT_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1 {
+ to_x: "lt_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "lt_padding";
+ relative: 1.0 1.0;
+ }
+ }
+ }
+ part { name: "text_title_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TEXT_PADDING_RIGHT_SIZE 0;
+ max: POPUP_TEXT_PADDING_RIGHT_SIZE -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1 {
+ to_x: "rb_padding";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "rb_padding";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "lt_padding";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to: "rb_padding";
+ relative: 0.0 0.0;
+ }
+ color_class: "B061L1E";
+ }
+ }
+ part { name: "elm.bg.title";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1 {
+ to_x: "left.line";
+ to_y: "top.line";
+ relative: 1.0 1.0;
+ }
+ rel2 {
+ to_x: "right.line";
+ to_y: "top.line";
+ relative: 0.0 1.0;
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 POPUP_TITLE_HEIGHT;
+ max: -1 POPUP_TITLE_HEIGHT;
+ fixed: 0 1;
+ color_class: "B061L2";
+ }
+ }
+ part { name: "elm.text.title";
+ type: TEXTBLOCK;
+ scale:1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "text_title_left_padding";
+ to_y: "elm.bg.title";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "text_title_right_padding";
+ to_y: "elm.bg.title";
+ }
+ text {
+ style: "popup_title_style";
+ align: 0.0 0.5;
+ min: 0 0;
+ }
+ }
+ }
+ part { name: "access.title";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.bg.title";
+ rel2.to: "elm.bg.title";
+ color: 0 0 0 0;
+ }
+ }
+
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "left.line";
+ to_y: "top.line";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "right.line";
+ to_y: "elm.bg.action_area";
+ }
+ }
+ description { state: "below_title" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "left.line";
+ to_y: "elm.bg.title";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "right.line";
+ to_y: "elm.bg.action_area";
+ }
+ }
+ description { state: "below_title_show_actionarea" 0.0;
+ inherit: "below_title" 0.0;
+ }
+ description { state: "show_actionarea" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "access.body";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ fixed : 1 1;
+ rel1.to: "elm.swallow.content";
+ rel2.to: "elm.swallow.content";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "elm.bg.action_area";
+ type: SPACER;
+ scale : 1;
+ description { state: "default" 0.0;
+ fixed : 1 1;
+ align: 0.5 1.0;
+ rel1 {
+ to_x: "left.line";
+ to_y: "bottom.line";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "right.line";
+ to_y: "bottom.line";
+ }
+ min: 0 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 POPUP_BUTTON_HEIGHT;
+ max: -1 POPUP_BUTTON_HEIGHT;
+ fixed: 0 1;
+ }
+ }
+ part { name: "elm.swallow.action_area";
+ type: SWALLOW;
+ scale : 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ fixed: 1 1;
+ rel1.to: "elm.bg.action_area";
+ rel2.to: "elm.bg.action_area";
+ }
+ }
+ part { name: "top.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ min: 0 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ max: -1 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ fixed: 0 1;
+ rel1 {
+ to: "bg";
+ relative: 0.0 0.0;
+ }
+ color_class: "B061L7";
+ }
+ }
+ part { name: "left.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.5;
+ min: POPUP_LEFT_RIGHT_LINE_WIDTH 0;
+ max: POPUP_LEFT_RIGHT_LINE_WIDTH -1;
+ fixed: 1 0;
+ rel1.to: "bg";
+ rel2 {
+ to: "bg";
+ relative: 0.0 1.0;
+ }
+ color_class: "B061L7";
+ }
+ }
+ part { name: "right.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.5;
+ min: POPUP_LEFT_RIGHT_LINE_WIDTH 0;
+ max: POPUP_LEFT_RIGHT_LINE_WIDTH -1;
+ fixed: 1 0;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ color_class: "B061L7";
+ }
+ }
+ part { name: "bottom.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 1.0;
+ min: 0 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ max: -1 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color_class: "B061L7";
+ }
+ }
+ }
+ programs {
+ program { name: show_title_area;
+ signal: "elm,state,title_area,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"elm.bg.title", "visible", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "default")) {
+ set_state(PART:"elm.swallow.content", "below_title", 0.0);
+ } else if (!strcmp(st, "show_actionarea")) {
+ set_state(PART:"elm.swallow.content", "below_title_show_actionarea", 0.0);
+ }
+ }
+ }
+ program { name: hide_title_area;
+ signal: "elm,state,title_area,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"elm.bg.title", "default", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "below_title")) {
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ } else if (!strcmp(st, "below_title_show_actionarea")) {
+ set_state(PART:"elm.swallow.content", "show_actionarea", 0.0);
+ }
+ }
+ }
+ program { name: show_action_area;
+ signal: "elm,state,action_area,visible";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"elm.bg.action_area", "visible", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "default")) {
+ set_state(PART:"elm.swallow.content", "show_actionarea", 0.0);
+ } else if (!strcmp(st, "below_title")) {
+ set_state(PART:"elm.swallow.content", "below_title_show_actionarea", 0.0);
+ }
+ }
+ }
+ program { name: hide_action_area;
+ signal: "elm,state,action_area,hidden";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ set_state(PART:"elm.bg.action_area", "default", 0.0);
+ get_state(PART:"elm.swallow.content", st, 30, vl);
+ if (!strcmp(st, "show_actionarea")) {
+ set_state(PART:"elm.swallow.content", "default", 0.0);
+ } else if (!strcmp(st, "below_title_show_actionarea")) {
+ set_state(PART:"elm.swallow.content", "below_title", 0.0);
+ }
+ }
+ }
+ }
+}
+
+// FIXME: currently popup cannot resize this edje by it's min size.
+group { name: "elm/popup/base/toast";
+ data {
+ item: "default_orient" "2"; //top:0, center:1 bottom:2
+ item: "popup_outside_pad" POPUP_OUTSIDE_PADDING;
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TOAST_BG_WIDTH 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to_x: "title_left_padding";
+ to_y: "title_top_padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to_x: "title_right_padding";
+ to_y: "title_bottom_padding";
+ }
+ color_class: "B061L1E";
+ }
+ }
+ part { name: "title_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 1.0;
+ min: 0 POPUP_TOAST_PADDING_TOP_SIZE;
+ max: -1 POPUP_TOAST_PADDING_TOP_SIZE;
+ rel1 {
+ relative: 0.0 0.0;
+ to_y: "elm.text";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_y: "elm.text";
+ }
+ }
+ description { state: "icon_visible" 0.0;
+ inherit: "default" 0.0;
+ rel1.to_y: "toast,icon";
+ rel2.to_y: "toast,icon";
+ }
+ }
+ part { name: "top.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ min: 0 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ max: -1 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 1.0 0.0;
+ to: "bg";
+ }
+ color_class: "B061L7";
+ }
+ }
+ part { name: "left.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ min: POPUP_LEFT_RIGHT_LINE_WIDTH 0;
+ max: POPUP_LEFT_RIGHT_LINE_WIDTH -1;
+ fixed: 1 0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ color_class: "B061L7";
+ }
+ }
+ part { name: "right.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 1.0 0.0;
+ min: POPUP_LEFT_RIGHT_LINE_WIDTH 0;
+ max: POPUP_LEFT_RIGHT_LINE_WIDTH -1;
+ fixed: 1 0;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ color_class: "B061L7";
+ }
+ }
+ part { name: "title_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 POPUP_TOAST_TEXT_PADDING_BOTTOM_SIZE;
+ max: -1 POPUP_TOAST_TEXT_PADDING_BOTTOM_SIZE;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1 {
+ relative: 0.0 0.0;
+ to_y: "bottom_padding";
+ }
+ rel2 {
+ relative: 0.1 0.0;
+ to_y: "bottom_padding";
+ }
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 POPUP_TOAST_PADDING_BOTTOM_SIZE;
+ max: -1 POPUP_TOAST_PADDING_BOTTOM_SIZE;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1 {
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "bottom.line";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.0 1.0;
+ min: 0 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ max: -1 POPUP_TITLE_TOP_BOTTOM_LINE_HEIGHT;
+ fixed: 0 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "title_left_padding";
+ to_y: "bottom_padding";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "bg";
+ }
+ color_class: "B061L7";
+ }
+ }
+ part { name: "title_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TOAST_PADDING_LEFT_SIZE 0;
+ max: POPUP_TOAST_PADDING_LEFT_SIZE -1;
+ fixed: 1 0;
+ align: 0.5 0.5;
+ rel2 {
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part { name: "title_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: POPUP_TOAST_PADDING_RIGHT_SIZE 0;
+ max: POPUP_TOAST_PADDING_RIGHT_SIZE -1;
+ fixed: 1 0;
+ align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part { name: "toast,icon";
+ type: SWALLOW;
+ clip_to: "icon_clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to_x: "title_left_padding";
+ to_y: "icon_bottom_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "title_right_padding";
+ to_y: "icon_bottom_padding";
+ relative: 0.0 0.0;
+ }
+ align: 0.5 1.0;
+ min: 0 POPUP_TOAST_ICON_SIZE;
+ max: -1 POPUP_TOAST_ICON_SIZE;
+ }
+ }
+ part { name: "icon_clip";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "toast,icon";
+ rel2.to: "toast,icon";
+ color_class: "W173L1";
+ }
+ }
+ part { name: "icon_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2 {
+ to: "elm.text";
+ relative: 1.0 0.0;
+ }
+ align: 0.5 1.0;
+ min: 0 POPUP_TOAST_ICON_BOTTOM_PADDING_SIZE;
+ max: -1 POPUP_TOAST_ICON_BOTTOM_PADDING_SIZE;
+ fixed: 0 1;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 0.5 1.0;
+ min: POPUP_TOAST_TEXT_WIDTH 0;
+ max: POPUP_TOAST_TEXT_WIDTH POPUP_TOAST_TEXT_MAX_HEIGHT_INC;
+ rel1 {
+ to_x: "title_left_padding";
+ to_y: "title_bottom_padding";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "title_right_padding";
+ to_y: "title_bottom_padding";
+ relative: 0.0 0.0;
+ }
+ text {
+ style: "popup_toast_style";
+ min: 0 1;
+ max: 0 0;
+ }
+ }
+ description { state: "icon_visible" 0.0;
+ inherit: "default" 0.0;
+ max: POPUP_TOAST_TEXT_WIDTH POPUP_TOAST_ICON_TEXT_MAX_HEIGHT_INC;
+ }
+ }
+ part { name: "access.outline";
+ type: RECT;
+ scale: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "icon_visible";
+ signal: "elm,state,tizen,toast,icon,show";
+ source: "elm";
+ action: STATE_SET "icon_visible" 0.0;
+ target: "title_top_padding";
+ target: "elm.text";
+ }
+ program { name: "icon_invisible";
+ signal: "elm,state,tizen,toast,icon,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "title_top_padding";
+ target: "elm.text";
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/progressbar.edc b/2.3-wearable/widgets/progressbar.edc
new file mode 100644
index 00000000..30050d74
--- /dev/null
+++ b/2.3-wearable/widgets/progressbar.edc
@@ -0,0 +1,605 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+///////////////////////////////////////////////////////////////////////////////////////
+
+ group { name: "elm/progressbar/horizontal/default";
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "background";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.swallow.bar";
+ rel2.to: "elm.swallow.bar";
+ color_class: "B065L3";
+ }
+ }
+ part { name: "elm.swallow.bar";
+ mouse_events: 0;
+ scale: 1;
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ min: 1 PROGRESSBAR_HEIGHT;
+ max: -1 PROGRESSBAR_HEIGHT;
+ }
+ }
+ part { name: "drag.background";
+ mouse_events: 0;
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ rel1.to: "elm.swallow.bar";
+ rel2.to: "elm.swallow.bar";
+ }
+ }
+ part { name: "elm.progress.progressbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1.to: "elm.swallow.bar";
+ rel2 {
+ to_x: "elm.cur.progressbar";
+ to_y: "elm.swallow.bar";
+ offset: -1 -1;
+ relative: 0.5 1.0;
+ }
+ color_class: "B065L2";
+ }
+ description {
+ state: "invert" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to_y: "elm.swallow.bar";
+ to_x: "elm.cur.progressbar";
+ relative: 0.0 0.0;
+ }
+ rel2.to: "elm.swallow.bar";
+ rel2.relative: 1.0 1.0;
+ }
+ description {
+ state: "state_begin" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 0.1 1.0;
+ }
+ }
+ description {
+ state: "state_end" 0.0;
+ inherit: "default" 0.0;
+ rel1 {
+ to: "elm.swallow.bar";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.bar";
+ relative: 1.0 1.0;
+ }
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B0651L2";
+ }
+ }
+ part { name: "elm.cur.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ confine: "drag.background";
+ x: 1 1 1;
+ y: 0 0 0;
+ }
+ description { state: "default" 0.0;
+ min: 0 10;
+ fixed: 1 1;
+ visible: 0;
+ rel1.to: "drag.background";
+ rel2.to: "drag.background";
+ }
+ }
+ part { name: "progress-rect";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.to: "elm.progress.progressbar";
+ rel2.to: "elm.progress.progressbar";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "slide_to_end";
+ action: STATE_SET "state_end" 0.0;
+ transition: LINEAR 0.5;
+ target: "elm.progress.progressbar";
+ after: "slide_to_begin";
+ }
+ program { name: "slide_to_begin";
+ signal: "elm,state,slide,begin";
+ action: STATE_SET "state_begin" 0.0;
+ target: "elm.progress.progressbar";
+ transition: LINEAR 0.5;
+ after: "slide_to_end";
+ }
+ program { name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ }
+ program { name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "slide_to_begin";
+ target: "slide_to_end";
+ target: "start_pulse";
+ }
+ program { name: "state_pulse";
+ signal: "elm,state,pulse";
+ source: "elm";
+ action: STATE_SET "state_begin" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "state_fraction";
+ signal: "elm,state,fraction";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "slide_to_begin";
+ target: "slide_to_end";
+ target: "start_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "set_invert_on";
+ signal: "elm,state,inverted,on";
+ source: "elm";
+ action: STATE_SET "invert" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "set_invert_off";
+ signal: "elm,state,inverted,off";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "progressbar_disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.progress.progressbar";
+ target: "background";
+ }
+ program { name: "progressbar_enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ target: "background";
+ }
+ }
+ }
+
+ group { name: "elm/progressbar/horizontal/pending_list";
+ images {
+ image: "tw_progressbar_indeterminate1_holo_dark.png" COMP;
+ image: "tw_progressbar_indeterminate2_holo_dark.png" COMP;
+ image: "tw_progressbar_indeterminate3_holo_dark.png" COMP;
+ image: "tw_progressbar_indeterminate4_holo_dark.png" COMP;
+ image: "tw_progressbar_indeterminate5_holo_dark.png" COMP;
+ }
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "background";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: PROGRESSBAR_PENDING_SIZE;
+ max: PROGRESSBAR_PENDING_SIZE;
+ fixed: 0 1;
+ color_class: "B065L3";
+ }
+ }
+ part { name: "elm.progress.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ fixed: 1 1;
+ rel1.to: "background";
+ rel2.to: "background";
+ image {
+ normal: "tw_progressbar_indeterminate1_holo_dark.png";
+ border: 0 0 0 0;
+ }
+ color_class: "B0652L2";
+ }
+ description {
+ state: "state_begin" 0.0;
+ inherit: "default" 0.0;
+ }
+ description {
+ state: "sliding1" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_progressbar_indeterminate2_holo_dark.png";
+ color_class: "B0652L2";
+ }
+ description {
+ state: "sliding2" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_progressbar_indeterminate3_holo_dark.png";
+ color_class: "B0652L2";
+ }
+ description {
+ state: "sliding3" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_progressbar_indeterminate4_holo_dark.png";
+ color_class: "B0652L2";
+ }
+ description {
+ state: "state_end" 1.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_progressbar_indeterminate5_holo_dark.png";
+ color_class: "B0652L2";
+ }
+ }
+ }
+ script {
+ public state_end = 0;
+ }
+ programs {
+ program { name: "slide_to_begin";
+ signal: "elm,state,slide,begin";
+ in: 0.05 0.0;
+ script {
+ set_state(PART:"elm.progress.progressbar", "state_begin", 0.0);
+ set_int(state_end, 0);
+ }
+ after: "sliding1";
+ }
+ program { name: "sliding1";
+ in: 0.05 0.0;
+ script {
+ set_state(PART:"elm.progress.progressbar", "sliding1", 0.0);
+ set_int(state_end, 0);
+ }
+ after: "sliding2";
+ }
+ program { name: "sliding2";
+ in: 0.05 0.0;
+ script {
+ set_state(PART:"elm.progress.progressbar", "sliding2", 0.0);
+ set_int(state_end, 0);
+ }
+ after: "sliding3";
+ }
+ program { name: "sliding3";
+ in: 0.05 0.0;
+ script {
+ set_state(PART:"elm.progress.progressbar", "sliding3", 0.0);
+ set_int(state_end, 0);
+ }
+ after: "slide_to_end";
+ }
+ program { name: "slide_to_end";
+ in: 0.05 0.0;
+ script {
+ set_state(PART:"elm.progress.progressbar", "state_end", 0.0);
+ set_int(state_end, 1);
+ }
+ after: "slide_to_begin";
+ }
+ program { name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ after: "slide_to_end";
+ }
+ program { name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "slide_to_begin";
+ target: "sliding1";
+ target: "sliding2";
+ target: "sliding3";
+ target: "slide_to_end";
+ target: "start_pulse";
+ after: "init_pulse";
+ }
+ program { name: "init_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "elm.progress.progressbar";
+ }
+ program { name: "progressbar_disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ after: "stop_pulse";
+ }
+ program { name: "progressbar_enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ after: "start_pulse";
+ }
+ }
+ }
+
+group { name: "elm/progressbar/horizontal/process";
+ images {
+ image: "tw_widget_activity_00.png" COMP;
+ image: "tw_widget_activity_01.png" COMP;
+ image: "tw_widget_activity_02.png" COMP;
+ image: "tw_widget_activity_03.png" COMP;
+ image: "tw_widget_activity_04.png" COMP;
+ image: "tw_widget_activity_05.png" COMP;
+ image: "tw_widget_activity_06.png" COMP;
+ image: "tw_widget_activity_07.png" COMP;
+ image: "tw_widget_activity_08.png" COMP;
+ image: "tw_widget_activity_09.png" COMP;
+ image: "tw_widget_activity_10.png" COMP;
+ image: "tw_widget_activity_11.png" COMP;
+ image: "tw_widget_activity_12.png" COMP;
+ image: "tw_widget_activity_13.png" COMP;
+ image: "tw_widget_activity_14.png" COMP;
+ image: "tw_widget_activity_15.png" COMP;
+ image: "tw_widget_activity_16.png" COMP;
+ image: "tw_widget_activity_17.png" COMP;
+ image: "tw_widget_activity_18.png" COMP;
+ image: "tw_widget_activity_19.png" COMP;
+ image: "tw_widget_activity_20.png" COMP;
+ image: "tw_widget_activity_21.png" COMP;
+ image: "tw_widget_activity_22.png" COMP;
+ image: "tw_widget_activity_23.png" COMP;
+ image: "tw_widget_activity_24.png" COMP;
+ image: "tw_widget_activity_25.png" COMP;
+ image: "tw_widget_activity_26.png" COMP;
+ image: "tw_widget_activity_27.png" COMP;
+ image: "tw_widget_activity_28.png" COMP;
+ image: "tw_widget_activity_29.png" COMP;
+ }
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "elm.background.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ }
+ }
+ part { name: "bar";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "elm.background.progressbar";
+ description {
+ state: "default" 0.0;
+ min: PROGRESSBAR_ACTIVITY_IMAGE_SIZE PROGRESSBAR_ACTIVITY_IMAGE_SIZE;
+ max: PROGRESSBAR_ACTIVITY_IMAGE_SIZE PROGRESSBAR_ACTIVITY_IMAGE_SIZE;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "tw_widget_activity_00.png";
+ image.tween: "tw_widget_activity_01.png";
+ image.tween: "tw_widget_activity_02.png";
+ image.tween: "tw_widget_activity_03.png";
+ image.tween: "tw_widget_activity_04.png";
+ image.tween: "tw_widget_activity_05.png";
+ image.tween: "tw_widget_activity_06.png";
+ image.tween: "tw_widget_activity_07.png";
+ image.tween: "tw_widget_activity_08.png";
+ image.tween: "tw_widget_activity_09.png";
+ image.tween: "tw_widget_activity_10.png";
+ image.tween: "tw_widget_activity_11.png";
+ image.tween: "tw_widget_activity_12.png";
+ image.tween: "tw_widget_activity_13.png";
+ image.tween: "tw_widget_activity_14.png";
+ image.tween: "tw_widget_activity_15.png";
+ image.tween: "tw_widget_activity_16.png";
+ image.tween: "tw_widget_activity_17.png";
+ image.tween: "tw_widget_activity_18.png";
+ image.tween: "tw_widget_activity_19.png";
+ image.tween: "tw_widget_activity_20.png";
+ image.tween: "tw_widget_activity_21.png";
+ image.tween: "tw_widget_activity_22.png";
+ image.tween: "tw_widget_activity_23.png";
+ image.tween: "tw_widget_activity_24.png";
+ image.tween: "tw_widget_activity_25.png";
+ image.tween: "tw_widget_activity_26.png";
+ image.tween: "tw_widget_activity_27.png";
+ image.tween: "tw_widget_activity_28.png";
+ image.tween: "tw_widget_activity_29.png";
+ color_class: "B066L1";
+ }
+ }
+ }
+ programs {
+ program { name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ transition: LINEAR 1.8;
+ after: "start_pulse";
+ }
+ program { name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "start_pulse";
+ after: "init_pulse";
+ }
+ program { name: "init_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ }
+ }
+}
+
+group { name: "elm/progressbar/horizontal/process/groupindex";
+ images {
+ image: "tw_widget_actionbar_activity_00.png" COMP;
+ image: "tw_widget_actionbar_activity_01.png" COMP;
+ image: "tw_widget_actionbar_activity_02.png" COMP;
+ image: "tw_widget_actionbar_activity_03.png" COMP;
+ image: "tw_widget_actionbar_activity_04.png" COMP;
+ image: "tw_widget_actionbar_activity_05.png" COMP;
+ image: "tw_widget_actionbar_activity_06.png" COMP;
+ image: "tw_widget_actionbar_activity_07.png" COMP;
+ image: "tw_widget_actionbar_activity_08.png" COMP;
+ image: "tw_widget_actionbar_activity_09.png" COMP;
+ image: "tw_widget_actionbar_activity_10.png" COMP;
+ image: "tw_widget_actionbar_activity_11.png" COMP;
+ image: "tw_widget_actionbar_activity_12.png" COMP;
+ image: "tw_widget_actionbar_activity_13.png" COMP;
+ image: "tw_widget_actionbar_activity_14.png" COMP;
+ image: "tw_widget_actionbar_activity_15.png" COMP;
+ image: "tw_widget_actionbar_activity_16.png" COMP;
+ image: "tw_widget_actionbar_activity_17.png" COMP;
+ image: "tw_widget_actionbar_activity_18.png" COMP;
+ image: "tw_widget_actionbar_activity_19.png" COMP;
+ image: "tw_widget_actionbar_activity_20.png" COMP;
+ image: "tw_widget_actionbar_activity_21.png" COMP;
+ image: "tw_widget_actionbar_activity_22.png" COMP;
+ image: "tw_widget_actionbar_activity_23.png" COMP;
+ image: "tw_widget_actionbar_activity_24.png" COMP;
+ image: "tw_widget_actionbar_activity_25.png" COMP;
+ image: "tw_widget_actionbar_activity_26.png" COMP;
+ image: "tw_widget_actionbar_activity_27.png" COMP;
+ image: "tw_widget_actionbar_activity_28.png" COMP;
+ image: "tw_widget_actionbar_activity_29.png" COMP;
+ }
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "elm.background.progressbar";
+ mouse_events: 0;
+ scale: 1;
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ }
+ }
+ part { name: "bar";
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "elm.background.progressbar";
+ description {
+ state: "default" 0.0;
+ min: PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE;
+ max: PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE PROGRESSBAR_ACTIVITY_GROUPINDEX_IMAGE_SIZE;
+ aspect: 1.0 1.0;
+ aspect_preference: BOTH;
+ image.normal: "tw_widget_actionbar_activity_00.png";
+ image.tween: "tw_widget_actionbar_activity_01.png";
+ image.tween: "tw_widget_actionbar_activity_02.png";
+ image.tween: "tw_widget_actionbar_activity_03.png";
+ image.tween: "tw_widget_actionbar_activity_04.png";
+ image.tween: "tw_widget_actionbar_activity_05.png";
+ image.tween: "tw_widget_actionbar_activity_06.png";
+ image.tween: "tw_widget_actionbar_activity_07.png";
+ image.tween: "tw_widget_actionbar_activity_08.png";
+ image.tween: "tw_widget_actionbar_activity_09.png";
+ image.tween: "tw_widget_actionbar_activity_10.png";
+ image.tween: "tw_widget_actionbar_activity_11.png";
+ image.tween: "tw_widget_actionbar_activity_12.png";
+ image.tween: "tw_widget_actionbar_activity_13.png";
+ image.tween: "tw_widget_actionbar_activity_14.png";
+ image.tween: "tw_widget_actionbar_activity_15.png";
+ image.tween: "tw_widget_actionbar_activity_16.png";
+ image.tween: "tw_widget_actionbar_activity_17.png";
+ image.tween: "tw_widget_actionbar_activity_18.png";
+ image.tween: "tw_widget_actionbar_activity_19.png";
+ image.tween: "tw_widget_actionbar_activity_20.png";
+ image.tween: "tw_widget_actionbar_activity_21.png";
+ image.tween: "tw_widget_actionbar_activity_22.png";
+ image.tween: "tw_widget_actionbar_activity_23.png";
+ image.tween: "tw_widget_actionbar_activity_24.png";
+ image.tween: "tw_widget_actionbar_activity_25.png";
+ image.tween: "tw_widget_actionbar_activity_26.png";
+ image.tween: "tw_widget_actionbar_activity_27.png";
+ image.tween: "tw_widget_actionbar_activity_28.png";
+ image.tween: "tw_widget_actionbar_activity_29.png";
+ color_class: "B066L1";
+ }
+ }
+ }
+ programs {
+ program { name: "start_pulse";
+ signal: "elm,state,pulse,start";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ transition: LINEAR 1.8;
+ after: "start_pulse";
+ }
+ program { name: "stop_pulse";
+ signal: "elm,state,pulse,stop";
+ source: "elm";
+ action: ACTION_STOP;
+ target: "start_pulse";
+ after: "init_pulse";
+ }
+ program { name: "init_pulse";
+ action: STATE_SET "default" 0.0;
+ target: "bar";
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/radio.edc b/2.3-wearable/widgets/radio.edc
new file mode 100755
index 00000000..ff7914f9
--- /dev/null
+++ b/2.3-wearable/widgets/radio.edc
@@ -0,0 +1,708 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+group { name: "elm/radio/base/default";
+ images {
+ image: "tw_btn_radiobox_holo_dark.png" COMP;
+ image: "tw_btn_radio_holo_dark.png" COMP;
+ image: "tw_btn_radiobox_line.png" COMP;
+ }
+ script {
+ public radio_state;
+ public radio_disabled;
+ public radio_show;
+ public is_transition_finished = 0;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: RADIO_SIZE;
+ max: RADIO_SIZE;
+ image.normal: "tw_btn_radiobox_holo_dark.png";
+ color_class: "W013L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W013L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W013L1D";
+ }
+ }
+ part { name: "radio";
+ clip_to: "opacity_clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ max: 0 0;
+ visible: 0;
+ image.normal: "tw_btn_radio_holo_dark.png";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ max: RADIO_SIZE;
+ visible: 1;
+ color_class: "W013L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W013L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W013L2D";
+ }
+ }
+ part { name: "outline";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_radiobox_line.png";
+ color_class: "W241";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W241P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W241D";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ }
+ part { name: "opacity_clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 255 255 255 0;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "event";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "show";
+ script {
+ set_int(radio_show,1);
+ }
+ }
+ program { name: "hide";
+ signal: "hide";
+ script {
+ set_int(radio_show,0);
+ }
+ }
+ program { name: "click";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ emit("elm,action,radio,toggle", "");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ if (get_int(radio_state) == 1) {
+ if (get_int(is_transition_finished) == 1)
+ set_state(PART:"radio", "on", 0.0);
+ }
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ if (get_int(radio_state) == 1) {
+ if (get_int(is_transition_finished) == 1)
+ set_state(PART:"radio", "pressed", 0.0);
+ }
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "radio_on";
+ signal: "elm,state,radio,on";
+ source: "elm";
+ script {
+ set_int(radio_state, 1);
+ if (get_int(radio_disabled) == 1) {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_state(PART:"radio", "disabled", 0.0);
+ }
+ else {
+ if (get_int(radio_show) == 1) {
+ set_int(is_transition_finished, 0);
+ run_program(PROGRAM:"radio_show_effect");
+ run_program(PROGRAM:"radio_draw_effect");
+ }
+ else {
+ set_int(is_transition_finished, 1);
+ set_state(PART:"radio", "on", 0.0);
+ set_state(PART:"opacity_clip", "on", 0.0);
+ }
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ }
+ program { name: "radio_off";
+ signal: "elm,state,radio,off";
+ source: "elm";
+ script {
+ if (get_int(radio_disabled) == 1) {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ }
+ else {
+ if (get_int(radio_state) == 1) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"opacity_clip", "default", 0.0);
+ set_int(radio_state, 0);
+ }
+ }
+ }
+ }
+ program { name: "radio_show_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.233;
+ target: "opacity_clip";
+ }
+ program { name: "radio_draw_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.267;
+ target: "radio";
+ after: "radio_on_signal";
+ }
+ program { name: "radio_on_signal";
+ script {
+ set_int(is_transition_finished, 1);
+ emit("elm,action,show,finished", "elm");
+ }
+ }
+ program { name: "focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "outline";
+ }
+ program { name: "unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "outline";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(radio_state) == 1)
+ set_state(PART:"radio", "disabled", 0.0);
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_int(radio_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(radio_state) == 1)
+ set_state(PART:"radio", "on", 0.0);
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_int(radio_disabled, 0);
+ }
+ }
+ }
+ }
+
+group { name: "elm/radio/base/datetime/style1";
+ alias: "elm/radio/base/datetime";
+ images {
+ image: "tw_timepicker_num_bg_new_transparent.#.png" COMP;
+ }
+ script {
+ public radio_state;
+ public radio_disabled;
+ }
+ parts {
+ part { name: "base";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ }
+ }
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new_transparent.#.png";
+ color_class: "W0811";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W0812";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W262D";
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ text {
+ text_class: "T051";
+ min: 1 1;
+ fit: 1 1;
+ size_range: DATETIME_TEXT_DIGIT_SIZE_INC;
+ }
+ color_class: "T051";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T051";
+ color_class: "T051";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T051D";
+ color_class: "T051D";
+ }
+ }
+ }
+ programs {
+ program { name: "click";
+ signal: "mouse,clicked,1";
+ source: "bg";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ run_program(PROGRAM:"play_sample");
+ emit("elm,action,radio,toggle", "");
+ emit("elm,action,radio,clicked", "");
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "bg";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "bg";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"elm.text", "pressed", 0.0);
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
+ set_int(radio_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ set_int(radio_disabled, 0);
+ }
+ }
+ }
+ }
+
+group { name: "elm/radio/base/datetime/style2";
+ inherit: "elm/radio/base/datetime/style1";
+ parts {
+ part { name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ text {
+ text_class: "T052";
+ size_range: DATETIME_TEXT_STRING_SIZE_INC;
+ }
+ color_class: "T052";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T052";
+ color_class: "T052";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text.text_class: "T052D";
+ color_class: "T052D";
+ }
+ }
+ }
+}
+
+group { name: "elm/radio/base/datetime/style3";
+ inherit: "elm/radio/base/datetime/style2";
+ images {
+ image: "tw_timepicker_num_bg_new.#.png" COMP;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ image.normal: "tw_timepicker_num_bg_new.#.png";
+ color_class: "W0811";
+ min: 0 DATETIME_FIELD_HEIGHT;
+ max: -1 DATETIME_FIELD_HEIGHT;
+ fixed: 0 1;
+ rel1.to: "base";
+ rel2.to: "base";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W0812";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W262D";
+ }
+ }
+ }
+}
+// List Radio Style
+
+group { name: "elm/radio/base/list";
+ images {
+ image: "tw_btn_radiobox_holo_dark.png" COMP;
+ image: "tw_btn_radio_holo_dark.png" COMP;
+ image: "tw_btn_radiobox_line.png" COMP;
+ }
+ script {
+ public radio_state;
+ public radio_disabled;
+ public radio_show;
+ public is_transition_finished = 0;
+ }
+ parts {
+ part { name: "bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 50 50;
+ max: 50 50;
+ image.normal: "tw_btn_radiobox_holo_dark.png";
+ color_class: "W013L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W013L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W013L1D";
+ }
+ }
+ part { name: "radio";
+ clip_to: "opacity_clip";
+ scale: 1;
+ description { state: "default" 0.0;
+ max: 0 0;
+ visible: 0;
+ image.normal: "tw_btn_radio_holo_dark.png";
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ max: RADIO_SIZE;
+ visible: 1;
+ color_class: "W013L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W013L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "on" 0.0;
+ color_class: "W013L2D";
+ }
+ }
+ part { name: "outline";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_btn_radiobox_line.png";
+ color_class: "W241";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W241P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W241D";
+ }
+ description { state: "focused" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W201";
+ }
+ }
+ part { name: "opacity_clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ color: 255 255 255 0;
+ }
+ description { state: "on" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "event";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "show";
+ signal: "show";
+ script {
+ set_int(radio_show,1);
+ }
+ }
+ program { name: "hide";
+ signal: "hide";
+ script {
+ set_int(radio_show,0);
+ }
+ }
+ program { name: "click";
+ signal: "mouse,clicked,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ emit("elm,action,radio,toggle", "");
+ }
+ }
+ program { name: "unpressed";
+ signal: "mouse,up,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ if (get_int(radio_state) == 1) {
+ if (get_int(is_transition_finished) == 1)
+ set_state(PART:"radio", "on", 0.0);
+ }
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ program { name: "pressed";
+ signal: "mouse,down,1";
+ source: "event";
+ script {
+ if (get_int(radio_disabled) == 1) return;
+ if (get_int(radio_state) == 1) {
+ if (get_int(is_transition_finished) == 1)
+ set_state(PART:"radio", "pressed", 0.0);
+ }
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "pressed", 0.0);
+ set_state(PART:"outline", "pressed", 0.0);
+ }
+ }
+ program { name: "radio_on";
+ signal: "elm,state,radio,on";
+ source: "elm";
+ script {
+ set_int(radio_state, 1);
+ if (get_int(radio_disabled) == 1) {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_state(PART:"radio", "disabled", 0.0);
+ }
+ else {
+ if (get_int(radio_show) == 1) {
+ set_int(is_transition_finished, 0);
+ run_program(PROGRAM:"radio_show_effect");
+ run_program(PROGRAM:"radio_draw_effect");
+ }
+ else {
+ set_int(is_transition_finished, 1);
+ set_state(PART:"radio", "on", 0.0);
+ set_state(PART:"opacity_clip", "on", 0.0);
+ }
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ }
+ }
+ }
+ program { name: "radio_off";
+ signal: "elm,state,radio,off";
+ source: "elm";
+ script {
+ if (get_int(radio_disabled) == 1) {
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ }
+ else {
+ if (get_int(radio_state) == 1) {
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"opacity_clip", "default", 0.0);
+ set_int(radio_state, 0);
+ }
+ }
+ }
+ }
+ program { name: "radio_show_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.233;
+ target: "opacity_clip";
+ }
+ program { name: "radio_draw_effect";
+ action: STATE_SET "on" 0.0;
+ transition: LINEAR 0.267;
+ target: "radio";
+ after: "radio_on_signal";
+ }
+ program { name: "radio_on_signal";
+ script {
+ set_int(is_transition_finished, 1);
+ emit("elm,action,show,finished", "elm");
+ }
+ }
+ program { name: "focus";
+ signal: "elm,action,focus_highlight,show";
+ source: "elm";
+ action: STATE_SET "focused" 0.0;
+ target: "outline";
+ }
+ program { name: "unfocus";
+ signal: "elm,action,focus_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "outline";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ if (get_int(radio_state) == 1)
+ set_state(PART:"radio", "disabled", 0.0);
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "disabled", 0.0);
+ set_state(PART:"outline", "disabled", 0.0);
+ set_int(radio_disabled, 1);
+ }
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ if (get_int(radio_state) == 1)
+ set_state(PART:"radio", "on", 0.0);
+ else
+ set_state(PART:"radio", "default", 0.0);
+ set_state(PART:"bg", "default", 0.0);
+ set_state(PART:"outline", "default", 0.0);
+ set_int(radio_disabled, 0);
+ }
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/scroller.edc b/2.3-wearable/widgets/scroller.edc
new file mode 100644
index 00000000..88d4209d
--- /dev/null
+++ b/2.3-wearable/widgets/scroller.edc
@@ -0,0 +1,1618 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * vim:ts=3
+*/
+#define OVERSCROLL_EFFECT_IMAGES\
+ image: "bouncing_top_edge.png" COMP;\
+ image: "bouncing_top_glow.png" COMP;\
+ image: "bouncing_bottom_edge.png" COMP;\
+ image: "bouncing_bottom_glow.png" COMP;\
+ image: "bouncing_left_edge.png" COMP;\
+ image: "bouncing_left_glow.png" COMP;\
+ image: "bouncing_right_edge.png" COMP;\
+ image: "bouncing_right_glow.png" COMP;
+
+group { name: "elm/scroller/base/default";
+ alias: "elm/gengrid/base/no_effect";
+
+ data {
+ item: "focus_highlight" "on";
+ }
+
+ script {
+ public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
+ public sh_v, sh_h;
+ public top_down_x = 0, top_down_y = 0
+ public top_move_x = 0, top_move_y = 0
+ public top_diff = 0, top_prev_diff = 0
+ public effect_top_down = 0, effect_top_start = 0, effect_top_reset = 0, effect_top_anim = 0;
+ public effect_top_end = 0, effect_top_move = 0, effect_top_max = 0;
+ public bottom_down_x = 0, bottom_down_y = 0
+ public bottom_move_x = 0, bottom_move_y = 0
+ public bottom_diff = 0, bottom_prev_diff = 0
+ public effect_bottom_down = 0, effect_bottom_start = 0, effect_bottom_reset = 0, effect_bottom_anim = 0;
+ public effect_bottom_end = 0, effect_bottom_move = 0, effect_bottom_max = 0;
+ public left_down_x = 0, left_down_y = 0
+ public left_move_x = 0, left_move_y = 0
+ public left_diff = 0, left_prev_diff = 0
+ public effect_left_down = 0, effect_left_start = 0, effect_left_reset = 0, effect_left_anim = 0;
+ public effect_left_end = 0, effect_left_move = 0, effect_left_max = 0;
+ public right_down_x = 0, right_down_y = 0
+ public right_move_x = 0, right_move_y = 0
+ public right_diff = 0, right_prev_diff = 0
+ public effect_right_down = 0, effect_right_start = 0, effect_right_reset = 0, effect_right_anim = 0;
+ public effect_right_end = 0, effect_right_move = 0, effect_right_max = 0;
+ public timer0(val) {
+ new v;
+ v = get_int(sbvis_v);
+ if (v) {
+ v = get_int(sbalways_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ v = get_int(sbvis_h);
+ if (v) {
+ v = get_int(sbalways_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ set_int(sbvis_timer, 0);
+ return 0;
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "clipper";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ clip_to: "clipper";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "shadow_top";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "shadow_bottom";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "shadow_left";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "shadow_right";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+
+ part { name: "sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar_clip";
+ clip_to: "sb_vbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_vbar_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCROLLER_VBAR_PADDING_RIGHT_SIZE 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ fixed: 1 0;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "sb_vbar_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCROLLER_VBAR_PADDING_TOP_SIZE;
+ max: 0 SCROLLER_VBAR_PADDING_TOP_SIZE;
+ rel2 {
+ relative: 0.0 0.0;
+ to: "sb_vbar_right_padding";
+ }
+ fixed: 1 1;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "sb_vbar_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCROLLER_VBAR_PADDING_BOTTOM_SIZE;
+ max: 0 SCROLLER_VBAR_PADDING_BOTTOM_SIZE;
+ rel2 {
+ relative: 0.0 1.0;
+ to: "sb_vbar_right_padding";
+ }
+ fixed: 1 1;
+ align: 1.0 1.0;
+ }
+ }
+ part { name: "sb_vbar_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCROLLER_VBAR_PADDING_LEFT_SIZE 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "sb_vbar";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "sb_vbar";
+ }
+ fixed: 1 0;
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "sb_vbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ visible: 0;
+ min: SCROLLER_VBAR_MIN_SIZE;
+ align: 1.0 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "sb_vbar_top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "sb_vbar_bottom_padding";
+ }
+ }
+ }
+ part { name: "elm.dragable.vbar";
+ type: RECT;
+ clip_to: "sb_vbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ confine: "sb_vbar";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SCROLLER_VBAR_MIN_SIZE;
+ max: SCROLLER_VBAR_MAX_SIZE;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "sb_vbar";
+ }
+ color_class : "B071";
+ }
+ }
+ part { name: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar_clip";
+ clip_to: "sb_hbar_clip_master";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ description { state: "hidden" 0.0;
+ visible: 0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "sb_hbar_bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCROLLER_HBAR_PADDING_BOTTOM_SIZE;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ fixed: 1 1;
+ align: 0.0 1.0;
+ }
+ }
+ part { name: "sb_hbar_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCROLLER_HBAR_PADDING_LEFT_SIZE 0;
+ max: SCROLLER_HBAR_PADDING_LEFT_SIZE 0;
+ rel2 {
+ relative: 0.0 0.0;
+ to: "sb_hbar_bottom_padding";
+ }
+ fixed: 1 1;
+ align: 0.0 1.0;
+ }
+ }
+ part { name: "sb_hbar_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SCROLLER_HBAR_PADDING_RIGHT_SIZE 0;
+ max: SCROLLER_HBAR_PADDING_RIGHT_SIZE 0;
+ rel2 {
+ relative: 1.0 0.0;
+ to: "sb_hbar_bottom_padding";
+ }
+ fixed: 1 1;
+ align: 1.0 1.0;
+ }
+ }
+ part { name: "sb_hbar_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SCROLLER_HBAR_PADDING_TOP_SIZE;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "sb_hbar";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to: "sb_hbar";
+ }
+ fixed: 0 1;
+ align: 0.0 1.0;
+ }
+ }
+ part { name: "sb_hbar";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ visible: 0;
+ min: SCROLLER_HBAR_MIN_SIZE;
+ align: 0.0 1.0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "sb_hbar_left_padding";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "sb_hbar_right_padding";
+ }
+ }
+ }
+ part { name: "elm.dragable.hbar";
+ type: RECT;
+ clip_to: "sb_hbar_clip";
+ mouse_events: 0;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "sb_hbar";
+ }
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SCROLLER_HBAR_MIN_SIZE;
+ max: SCROLLER_HBAR_MAX_SIZE;
+ rel1 {
+ relative: 0.5 0.5;
+ to: "sb_hbar";
+ }
+ rel2 {
+ relative: 0.5 0.5;
+ to: "sb_hbar";
+ }
+ color_class: "B071";
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "clipper";
+ rel2.to: "clipper";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color: 128 128 128 128;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ signal: "load";
+ source: "";
+ script {
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ emit("reload", "elm");
+ }
+ }
+
+ program { name: "vbar_show";
+ signal: "elm,action,show,vbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_hide";
+ signal: "elm,action,hide,vbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_vbar_clip_master";
+ }
+ program { name: "vbar_show_always";
+ signal: "elm,action,show_always,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (!v) {
+ set_int(sbalways_v, 1);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ }
+ }
+ }
+ program { name: "vbar_show_notalways";
+ signal: "elm,action,show_notalways,vbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_v);
+ if (v) {
+ set_int(sbalways_v, 0);
+ v = get_int(sbvis_v);
+ if (!v) {
+ emit("do-hide-vbar", "");
+ set_int(sbvis_v, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_vbar_show";
+ signal: "do-show-vbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "sb_vbar_clip";
+ }
+ program { name: "sb_vbar_hide";
+ signal: "do-hide-vbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.2;
+ target: "sb_vbar_clip";
+ }
+
+ program { name: "hbar_show";
+ signal: "elm,action,show,hbar";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_hide";
+ signal: "elm,action,hide,hbar";
+ source: "elm";
+ action: STATE_SET "hidden" 0.0;
+ target: "sb_hbar_clip_master";
+ }
+ program { name: "hbar_show_always";
+ signal: "elm,action,show_always,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (!v) {
+ set_int(sbalways_h, 1);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ }
+ }
+ }
+ program { name: "hbar_show_notalways";
+ signal: "elm,action,show_notalways,hbar";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbalways_h);
+ if (v) {
+ set_int(sbalways_h, 0);
+ v = get_int(sbvis_h);
+ if (!v) {
+ emit("do-hide-hbar", "");
+ set_int(sbvis_h, 0);
+ }
+ }
+ }
+ }
+ program { name: "sb_hbar_show";
+ signal: "do-show-hbar";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "sb_hbar_clip";
+ }
+ program { name: "sb_hbar_hide";
+ signal: "do-hide-hbar";
+ source: "";
+ action: STATE_SET "hidden" 0.0;
+ transition: LINEAR 0.2;
+ target: "sb_hbar_clip";
+ }
+
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0.0) cancel_timer(v);
+ v = timer(0.2, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ }
+ program { name: "show";
+ signal: "show";
+ source: "";
+ script {
+ new v;
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ v = get_int(sbalways_v);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0.0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ v = get_int(sbalways_h);
+ if (!v) {
+ v = get_int(sbvis_timer);
+ if (v > 0.0) cancel_timer(v);
+ v = timer(1.0, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/scroller/base/effect";
+ alias: "elm/scroller/base/list_effect";
+ alias: "elm/gengrid/base/default";
+ inherit: "elm/scroller/base/default";
+
+ images {
+ OVERSCROLL_EFFECT_IMAGES
+ }
+
+ parts {
+ part { name: "shadow_top";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ max: -1 END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_top_edge.png";
+ }
+ color_class: "B019";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: 0 END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ rel2.offset: -1 END_EFFECT_HORIZONTAL_EDGE_SIZE-1;
+ }
+ }
+ part { name: "shadow_top_glow";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 END_EFFECT_GLOW_MAX_SIZE;
+ max: -1 END_EFFECT_GLOW_MAX_SIZE;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_top_glow.png";
+ }
+ color_class: "B018E";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: 0 END_EFFECT_GLOW_MIN_SIZE;
+ rel2.offset: -1 END_EFFECT_GLOW_MIN_SIZE-1;
+ }
+ }
+ part { name: "shadow_bottom";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ max: -1 END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_bottom_edge.png";
+ }
+ color_class: "B019";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: 0 -END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ rel2.offset: -1 -END_EFFECT_HORIZONTAL_EDGE_SIZE+1;
+ }
+ }
+ part { name: "shadow_bottom_glow";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 END_EFFECT_GLOW_MAX_SIZE;
+ max: -1 END_EFFECT_GLOW_MAX_SIZE;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -2;
+ image {
+ normal: "bouncing_bottom_glow.png";
+ }
+ color_class: "B018E";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: 0 -END_EFFECT_GLOW_MIN_SIZE;
+ rel2.offset: -1 -END_EFFECT_GLOW_MIN_SIZE+1;
+ }
+ }
+ part { name: "shadow_left";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: END_EFFECT_VERTICAL_EDGE_SIZE 0;
+ max: END_EFFECT_VERTICAL_EDGE_SIZE -1;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_left_edge.png";
+ }
+ color_class: "B019";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: END_EFFECT_VERTICAL_EDGE_SIZE 0;
+ rel2.offset: END_EFFECT_VERTICAL_EDGE_SIZE-1 -1;
+ }
+ }
+ part { name: "shadow_left_glow";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: END_EFFECT_GLOW_MAX_SIZE 0;
+ max: END_EFFECT_GLOW_MAX_SIZE -1;
+ fixed: 1 1;
+ align: 1.0 0.5;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 0.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_left_glow.png";
+ }
+ color_class: "B018E";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: END_EFFECT_GLOW_MIN_SIZE 0;
+ rel2.offset: END_EFFECT_GLOW_MIN_SIZE-1 -1;
+ }
+ }
+ part { name: "shadow_right";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: END_EFFECT_VERTICAL_EDGE_SIZE 0;
+ max: END_EFFECT_VERTICAL_EDGE_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_right_edge.png";
+ }
+ color_class: "B019";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: -END_EFFECT_VERTICAL_EDGE_SIZE 0;
+ rel2.offset: END_EFFECT_VERTICAL_EDGE_SIZE-1 -1;
+ }
+ }
+ part { name: "shadow_right_glow";
+ clip_to: "clipper";
+ type: IMAGE;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: END_EFFECT_GLOW_MAX_SIZE 0;
+ max: END_EFFECT_GLOW_MAX_SIZE -1;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 1.0 1.0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ image {
+ normal: "bouncing_right_glow.png";
+ }
+ color_class: "B019";
+ }
+ description { state: "start" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: -END_EFFECT_GLOW_MIN_SIZE 0;
+ rel2.offset: -END_EFFECT_GLOW_MIN_SIZE+1 -1;
+ }
+ }
+ }
+ programs {
+ program { name: "load";
+ script {
+ set_state(PART:"sb_hbar_clip", "hidden", 0.0);
+ set_state(PART:"sb_vbar_clip", "hidden", 0.0);
+ set_int(sbvis_h, 0);
+ set_int(sbvis_v, 0);
+ set_int(sbalways_v, 0);
+ set_int(sbalways_h, 0);
+ set_int(sbvis_timer, 0);
+ set_int(sh_v, 0);
+ emit("reload", "elm");
+ }
+ }
+ program { name: "scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ new v;
+ v = get_int(sbvis_v);
+ v |= get_int(sbalways_v);
+ if (!v) {
+ emit("do-show-vbar", "");
+ set_int(sbvis_v, 1);
+ }
+ v = get_int(sbvis_h);
+ v |= get_int(sbalways_h);
+ if (!v) {
+ emit("do-show-hbar", "");
+ set_int(sbvis_h, 1);
+ }
+ v = get_int(sbvis_timer);
+ if (v > 0.0) cancel_timer(v);
+ v = timer(0.2, "timer0", 0);
+ set_int(sbvis_timer, v);
+ }
+ }
+ program { name: "edge_top_mouse_down";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ set_int(effect_top_down, 1);
+ }
+ }
+ /* Effect Hide */
+ program { name: "edge_top_mouse_up";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ set_int(effect_top_down, 0);
+ if (get_int(effect_top_start))
+ {
+ set_int(effect_top_reset, 0);
+ if (!get_int(effect_top_anim))
+ {
+ if (!get_int(effect_top_end))
+ {
+ set_int(effect_top_end, 1);
+ run_program(PROGRAM:"edge_top_end");
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_top_scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ if (get_int(effect_top_start))
+ {
+ set_state(PART:"shadow_top", "default", 0.0);
+ set_state(PART:"shadow_top_glow", "default", 0.0);
+ set_int(effect_top_reset, 0);
+ run_program(PROGRAM:"edge_top_init");
+ }
+ }
+ }
+ program { name: "edge_top_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_top";
+ transition: SINUSOIDAL 0.1;
+ after: "edge_top_glow_end";
+ }
+ program { name: "edge_top_glow_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_top_glow";
+ transition: SINUSOIDAL 0.3;
+ after: "edge_top_init";
+ }
+ program { name: "edge_top_init";
+ script {
+ set_int(effect_top_move, 0);
+ if (!get_int(effect_top_reset))
+ set_int(effect_top_start, 0);
+ set_int(effect_top_max, 0);
+ set_int(top_prev_diff, 0);
+ set_int(effect_top_end, 0);
+ }
+ }
+ /* Effect Show */
+ program { name: "edge_top";
+ signal: "elm,edge,top";
+ source: "elm";
+ script {
+ if (!get_int(effect_top_start))
+ {
+ set_int(effect_top_start, 1);
+ set_int(effect_top_anim, 1);
+ run_program(PROGRAM:"edge_top_start");
+ }
+ }
+ }
+ program { name: "edge_top_start";
+ action: STATE_SET "start" 0.0;
+ target: "shadow_top";
+ target: "shadow_top_glow";
+ transition: SINUSOIDAL 0.2;
+ after: "edge_top_after";
+ }
+ program { name: "edge_top_after";
+ script {
+ new xx, yy;
+ get_mouse(xx, yy);
+ set_int(top_down_y, yy);
+ set_int(effect_top_anim, 0);
+ /* mouse down */
+ if (get_int(effect_top_down))
+ {
+ set_int(effect_top_move, 1);
+ }
+ /* mouse up */
+ else
+ {
+ set_int(effect_top_reset, 0);
+ if (!get_int(effect_top_end))
+ {
+ set_int(effect_top_end, 1);
+ run_program(PROGRAM:"edge_top_end");
+ }
+ }
+ }
+ }
+ program { name: "edge_top_mouse_move";
+ signal: "elm,state,mouse,move";
+ source: "elm";
+ script {
+ if (get_int(effect_top_move))
+ {
+ new xx, yy;
+ new Float:fx1, Float:fx2;
+ get_mouse(xx, yy);
+ set_int(top_move_y, yy);
+ set_int(top_diff, (get_int(top_move_y) - get_int(top_down_y)));
+ if (get_int(top_diff) < get_int(top_prev_diff))
+ {
+ set_int(top_prev_diff, 0);
+ set_int(effect_top_move, 0);
+ set_int(effect_top_reset, 1);
+ if (!get_int(effect_top_end))
+ {
+ set_int(effect_top_end, 1);
+ run_program(PROGRAM:"edge_top_end");
+ }
+ }
+ else
+ {
+ if (!get_int(effect_top_end))
+ {
+ if (get_int(top_diff) <= 90 && !get_int(effect_top_max))
+ {
+ fx1 = fx2 = sin(get_int(top_diff), DEGREES);
+ fx1 = fx1 * END_EFFECT_GLOW_MOVE_CORRECTION_VALUE + END_EFFECT_GLOW_MIN_SIZE;
+ fx2 = END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ }
+ else
+ {
+ set_int(effect_top_max, 1);
+ fx1 = END_EFFECT_GLOW_MAX_SIZE;
+ fx2 = END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ }
+ custom_state(PART:"shadow_top_glow", "default", 0.0);
+ set_state_val(PART:"shadow_top_glow", STATE_REL1_OFFSET, 0, round(fx1));
+ set_state_val(PART:"shadow_top_glow", STATE_REL2_OFFSET, -1, round(fx1) - 1);
+ set_state(PART:"shadow_top_glow", "custom", 0.0);
+
+ custom_state(PART:"shadow_top", "default", 0.0);
+ set_state_val(PART:"shadow_top", STATE_REL1_OFFSET, 0, round(fx2));
+ set_state_val(PART:"shadow_top", STATE_REL2_OFFSET, -1, round(fx2) - 1);
+ set_state(PART:"shadow_top", "custom", 0.0);
+
+ set_int(top_prev_diff, get_int(top_diff));
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_bottom_mouse_down";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ set_int(effect_bottom_down, 1);
+ }
+ }
+ /* Effect Hide */
+ program { name: "edge_bottom_mouse_up";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ set_int(effect_bottom_down, 0);
+ if (get_int(effect_bottom_start))
+ {
+ set_int(effect_bottom_reset, 0);
+ if (!get_int(effect_bottom_anim))
+ {
+ if (!get_int(effect_bottom_end))
+ {
+ set_int(effect_bottom_end, 1);
+ run_program(PROGRAM:"edge_bottom_end");
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_bottom_scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ if (get_int(effect_bottom_start))
+ {
+ set_state(PART:"shadow_bottom", "default", 0.0);
+ set_state(PART:"shadow_bottom_glow", "default", 0.0);
+ set_int(effect_bottom_reset, 0);
+ run_program(PROGRAM:"edge_bottom_init");
+ }
+ }
+ }
+ program { name: "edge_bottom_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_bottom";
+ transition: SINUSOIDAL 0.1;
+ after: "edge_bottom_glow_end";
+ }
+ program { name: "edge_bottom_glow_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_bottom_glow";
+ transition: SINUSOIDAL 0.3;
+ after: "edge_bottom_init";
+ }
+ program { name: "edge_bottom_init";
+ script {
+ set_int(effect_bottom_move, 0);
+ if (!get_int(effect_bottom_reset))
+ set_int(effect_bottom_start, 0);
+ set_int(effect_bottom_max, 0);
+ set_int(bottom_prev_diff, 0);
+ set_int(effect_bottom_end, 0);
+ }
+ }
+ /* Effect Show */
+ program { name: "edge_bottom";
+ signal: "elm,edge,bottom";
+ source: "elm";
+ script {
+ if (!get_int(effect_bottom_start))
+ {
+ set_int(effect_bottom_start, 1);
+ set_int(effect_bottom_anim, 1);
+ run_program(PROGRAM:"edge_bottom_start");
+ }
+ }
+ }
+ program { name: "edge_bottom_start";
+ action: STATE_SET "start" 0.0;
+ target: "shadow_bottom";
+ target: "shadow_bottom_glow";
+ transition: SINUSOIDAL 0.2;
+ after: "edge_bottom_after";
+ }
+ program { name: "edge_bottom_after";
+ script {
+ new xx, yy;
+ get_mouse(xx, yy);
+ set_int(effect_bottom_anim, 0);
+ set_int(bottom_down_y, yy);
+ /* mouse down */
+ if (get_int(effect_bottom_down))
+ {
+ set_int(effect_bottom_move, 1);
+ }
+ /* mouse up */
+ else
+ {
+ set_int(effect_bottom_reset, 0);
+ if (!get_int(effect_bottom_end))
+ {
+ set_int(effect_bottom_end, 1);
+ run_program(PROGRAM:"edge_bottom_end");
+ }
+ }
+ }
+ }
+ program { name: "edge_bottom_mouse_move";
+ signal: "elm,state,mouse,move";
+ source: "elm";
+ script {
+ if (get_int(effect_bottom_move))
+ {
+ new xx, yy;
+ new Float:fx1, Float:fx2;
+ get_mouse(xx, yy);
+ set_int(bottom_move_y, yy);
+ set_int(bottom_diff, (get_int(bottom_down_y) - get_int(bottom_move_y)));
+ if (get_int(bottom_diff) < get_int(bottom_prev_diff))
+ {
+ set_int(bottom_prev_diff, 0);
+ set_int(effect_bottom_move, 0);
+ set_int(effect_bottom_reset, 1);
+ if (!get_int(effect_bottom_end))
+ {
+ set_int(effect_bottom_end, 1);
+ run_program(PROGRAM:"edge_bottom_end");
+ }
+ }
+ else
+ {
+ if (!get_int(effect_bottom_end))
+ {
+ if (get_int(bottom_diff) <= 90 && !get_int(effect_bottom_max))
+ {
+ fx1 = fx2 = sin(get_int(bottom_diff), DEGREES);
+ fx1 = fx1 * END_EFFECT_GLOW_MOVE_CORRECTION_VALUE + END_EFFECT_GLOW_MIN_SIZE;
+ fx2 = END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ }
+ else
+ {
+ set_int(effect_bottom_max, 1);
+ fx1 = END_EFFECT_GLOW_MAX_SIZE;
+ fx2 = END_EFFECT_HORIZONTAL_EDGE_SIZE;
+ }
+ custom_state(PART:"shadow_bottom_glow", "default", 0.0);
+ set_state_val(PART:"shadow_bottom_glow", STATE_REL1_OFFSET, 0, round(fx1) * -1);
+ set_state_val(PART:"shadow_bottom_glow", STATE_REL2_OFFSET, -1, (round(fx1) - 1) * -1);
+ set_state(PART:"shadow_bottom_glow", "custom", 0.0);
+
+ custom_state(PART:"shadow_bottom", "default", 0.0);
+ set_state_val(PART:"shadow_bottom", STATE_REL1_OFFSET, 0, round(fx2) * -1);
+ set_state_val(PART:"shadow_bottom", STATE_REL2_OFFSET, -1, (round(fx2) - 1) * -1);
+ set_state(PART:"shadow_bottom", "custom", 0.0);
+
+ set_int(bottom_prev_diff, get_int(bottom_diff));
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_left_mouse_down";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ set_int(effect_left_down, 1);
+ }
+ }
+ /* Effect Hide */
+ program { name: "edge_left_mouse_up";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ set_int(effect_left_down, 0);
+ if (get_int(effect_left_start))
+ {
+ set_int(effect_left_reset, 0);
+ if (!get_int(effect_left_anim))
+ {
+ if (!get_int(effect_left_end))
+ {
+ set_int(effect_left_end, 1);
+ run_program(PROGRAM:"edge_left_end");
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_left_scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ if (get_int(effect_left_start))
+ {
+ set_state(PART:"shadow_left", "default", 0.0);
+ set_state(PART:"shadow_left_glow", "default", 0.0);
+ set_int(effect_left_reset, 0);
+ run_program(PROGRAM:"edge_left_init");
+ }
+ }
+ }
+ program { name: "edge_left_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_left";
+ transition: SINUSOIDAL 0.1;
+ after: "edge_left_glow_end";
+ }
+ program { name: "edge_left_glow_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_left_glow";
+ transition: SINUSOIDAL 0.3;
+ after: "edge_left_init";
+ }
+ program { name: "edge_left_init";
+ script {
+ set_int(effect_left_move, 0);
+ if (!get_int(effect_left_reset))
+ set_int(effect_left_start, 0);
+ set_int(effect_left_max, 0);
+ set_int(left_prev_diff, 0);
+ set_int(effect_left_end, 0);
+ }
+ }
+ /* Effect Show */
+ program { name: "edge_left";
+ signal: "elm,edge,left";
+ source: "elm";
+ script {
+ if (!get_int(effect_left_start))
+ {
+ set_int(effect_left_start, 1);
+ set_int(effect_left_anim, 1);
+ run_program(PROGRAM:"edge_left_start");
+ }
+ }
+ }
+ program { name: "edge_left_start";
+ action: STATE_SET "start" 0.0;
+ target: "shadow_left";
+ target: "shadow_left_glow";
+ transition: SINUSOIDAL 0.2;
+ after: "edge_left_after";
+ }
+ program { name: "edge_left_after";
+ script {
+ new xx, yy;
+ get_mouse(xx, yy);
+ set_int(left_down_x, xx);
+ set_int(effect_left_anim, 0);
+ /* mouse down */
+ if (get_int(effect_left_down))
+ {
+ set_int(effect_left_move, 1);
+ }
+ /* mouse up */
+ else
+ {
+ set_int(effect_left_reset, 0);
+ if (!get_int(effect_left_end))
+ {
+ set_int(effect_left_end, 1);
+ run_program(PROGRAM:"edge_left_end");
+ }
+ }
+ }
+ }
+ program { name: "edge_left_mouse_move";
+ signal: "elm,state,mouse,move";
+ source: "elm";
+ script {
+ if (get_int(effect_left_move))
+ {
+ new xx, yy;
+ new Float:fx1, Float:fx2;
+ get_mouse(xx, yy);
+ set_int(left_move_x, xx);
+ set_int(left_diff, (get_int(left_move_x) - get_int(left_down_x)));
+ if (get_int(left_diff) < get_int(left_prev_diff))
+ {
+ set_int(left_prev_diff, 0);
+ set_int(effect_left_move, 0);
+ set_int(effect_left_reset, 1);
+ if (!get_int(effect_left_end))
+ {
+ set_int(effect_left_end, 1);
+ run_program(PROGRAM:"edge_left_end");
+ }
+ }
+ else
+ {
+ if (!get_int(effect_left_end))
+ {
+ if (get_int(left_diff) <= 90 && !get_int(effect_left_max))
+ {
+ fx1 = sin(get_int(left_diff), DEGREES);
+ fx1 = fx1 * END_EFFECT_GLOW_MOVE_CORRECTION_VALUE + END_EFFECT_GLOW_MIN_SIZE;
+ fx2 = END_EFFECT_VERTICAL_EDGE_SIZE;
+ }
+ else
+ {
+ set_int(effect_left_max, 1);
+ fx1 = END_EFFECT_GLOW_MAX_SIZE;
+ fx2 = END_EFFECT_VERTICAL_EDGE_SIZE;
+ }
+ custom_state(PART:"shadow_left_glow", "default", 0.0);
+ set_state_val(PART:"shadow_left_glow", STATE_REL1_OFFSET, round(fx1), 0);
+ set_state_val(PART:"shadow_left_glow", STATE_REL2_OFFSET, round(fx1) - 1, -1);
+ set_state(PART:"shadow_left_glow", "custom", 0.0);
+
+ custom_state(PART:"shadow_left", "default", 0.0);
+ set_state_val(PART:"shadow_left", STATE_REL1_OFFSET, round(fx2), 0);
+ set_state_val(PART:"shadow_left", STATE_REL2_OFFSET, round(fx2) - 1, -1);
+ set_state(PART:"shadow_left", "custom", 0.0);
+
+ set_int(left_prev_diff, get_int(left_diff));
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_right_mouse_down";
+ signal: "elm,state,mouse,down";
+ source: "elm";
+ script {
+ set_int(effect_right_down, 1);
+ }
+ }
+ /* Effect Hide */
+ program { name: "edge_right_mouse_up";
+ signal: "elm,state,mouse,up";
+ source: "elm";
+ script {
+ set_int(effect_right_down, 0);
+ if (get_int(effect_right_start))
+ {
+ set_int(effect_right_reset, 0);
+ if (!get_int(effect_right_anim))
+ {
+ if (!get_int(effect_right_end))
+ {
+ set_int(effect_right_end, 1);
+ run_program(PROGRAM:"edge_right_end");
+ }
+ }
+ }
+ }
+ }
+ program { name: "edge_right_scroll";
+ signal: "elm,action,scroll";
+ source: "elm";
+ script {
+ if (get_int(effect_right_start))
+ {
+ set_state(PART:"shadow_right", "default", 0.0);
+ set_state(PART:"shadow_right_glow", "default", 0.0);
+ set_int(effect_right_reset, 0);
+ run_program(PROGRAM:"edge_right_init");
+ }
+ }
+ }
+ program { name: "edge_right_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_right";
+ transition: SINUSOIDAL 0.1;
+ after: "edge_right_glow_end";
+ }
+ program { name: "edge_right_glow_end";
+ action: STATE_SET "default" 0.0;
+ target: "shadow_right_glow";
+ transition: SINUSOIDAL 0.3;
+ after: "edge_right_init";
+ }
+ program { name: "edge_right_init";
+ script {
+ set_int(effect_right_move, 0);
+ if (!get_int(effect_right_reset))
+ set_int(effect_right_start, 0);
+ set_int(effect_right_max, 0);
+ set_int(right_prev_diff, 0);
+ set_int(effect_right_end, 0);
+ }
+ }
+ /* Effect Show */
+ program { name: "edge_right";
+ signal: "elm,edge,right";
+ source: "elm";
+ script {
+ if (!get_int(effect_right_start))
+ {
+ set_int(effect_right_start, 1);
+ set_int(effect_right_anim, 1);
+ run_program(PROGRAM:"edge_right_start");
+ }
+ }
+ }
+ program { name: "edge_right_start";
+ action: STATE_SET "start" 0.0;
+ target: "shadow_right";
+ target: "shadow_right_glow";
+ transition: SINUSOIDAL 0.2;
+ after: "edge_right_after";
+ }
+ program { name: "edge_right_after";
+ script {
+ new xx, yy;
+ get_mouse(xx, yy);
+ set_int(right_down_x, xx);
+ set_int(effect_right_anim, 0);
+ /* mouse down */
+ if (get_int(effect_right_down))
+ {
+ set_int(effect_right_move, 1);
+ }
+ /* mouse up */
+ else
+ {
+ set_int(effect_right_reset, 0);
+ if (!get_int(effect_right_end))
+ {
+ set_int(effect_right_end, 1);
+ run_program(PROGRAM:"edge_right_end");
+ }
+ }
+ }
+ }
+ program { name: "edge_right_mouse_move";
+ signal: "elm,state,mouse,move";
+ source: "elm";
+ script {
+ if (get_int(effect_right_move))
+ {
+ new xx, yy;
+ new Float:fx1, Float:fx2;
+ get_mouse(xx, yy);
+ set_int(right_move_x, xx);
+ set_int(right_diff, (get_int(right_down_x) - get_int(right_move_x)));
+ if (get_int(right_diff) < get_int(right_prev_diff))
+ {
+ set_int(right_prev_diff, 0);
+ set_int(effect_right_move, 0);
+ set_int(effect_right_reset, 1);
+ if (!get_int(effect_right_end))
+ {
+ set_int(effect_right_end, 1);
+ run_program(PROGRAM:"edge_right_end");
+ }
+ }
+ else
+ {
+ if (!get_int(effect_right_end))
+ {
+ if (get_int(right_diff) <= 90 && !get_int(effect_right_max))
+ {
+ fx1 = sin(get_int(right_diff), DEGREES);
+ fx1 = fx1 * END_EFFECT_GLOW_MOVE_CORRECTION_VALUE + END_EFFECT_GLOW_MIN_SIZE;
+ fx2 = END_EFFECT_VERTICAL_EDGE_SIZE;
+ }
+ else
+ {
+ set_int(effect_right_max, 1);
+ fx1 = END_EFFECT_GLOW_MAX_SIZE;
+ fx2 = END_EFFECT_VERTICAL_EDGE_SIZE;
+ }
+ custom_state(PART:"shadow_right_glow", "default", 0.0);
+ set_state_val(PART:"shadow_right_glow", STATE_REL1_OFFSET, round(fx1) * -1, 0);
+ set_state_val(PART:"shadow_right_glow", STATE_REL2_OFFSET, (round(fx1) - 1) * -1, -1);
+ set_state(PART:"shadow_right_glow", "custom", 0.0);
+
+ custom_state(PART:"shadow_right", "default", 0.0);
+ set_state_val(PART:"shadow_right", STATE_REL1_OFFSET, round(fx2) * -1, 0);
+ set_state_val(PART:"shadow_right", STATE_REL2_OFFSET, (round(fx2) - 1) * -1, -1);
+ set_state(PART:"shadow_right", "custom", 0.0);
+
+ set_int(right_prev_diff, get_int(right_diff));
+ }
+ }
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/scroller/contents/default";
+ parts {
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.content_r";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ }
+ }
+ part { name: "elm.swallow.content_b";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ }
+ }
+ part { name: "elm.swallow.content_rb";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 0.0;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.content";
+ }
+ }
+ }
+ }
+}
+
+group { name: "elm/genlist/base/no_effect";
+ alias: "elm/list/base/no_effect";
+ inherit: "elm/scroller/base/default";
+
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ color_class: "B011";
+ }
+ }
+ }
+}
+
+group { name: "elm/genlist/base/default";
+ alias: "elm/list/base/default";
+ inherit: "elm/scroller/base/effect";
+
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ color_class: "B011";
+ }
+ }
+ }
+}
+
+
+group { name: "elm/genlist/base/transparent";
+ alias: "elm/genlist/base/popup";
+ alias: "elm/list/base/transparent";
+ alias: "elm/list/base/popup";
+ inherit: "elm/genlist/base/default";
+
+ parts {
+ part { name: "bg";
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ }
+}
diff --git a/2.3-wearable/widgets/slider.edc b/2.3-wearable/widgets/slider.edc
new file mode 100644
index 00000000..038ef886
--- /dev/null
+++ b/2.3-wearable/widgets/slider.edc
@@ -0,0 +1,599 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+group { name: "elm/slider/horizontal/indicator/default";
+ alias: "elm/slider/horizontal/indicator/disabled";
+ alias: "elm/slider/horizontal/indicator/tap_to_drag";
+ alias: "elm/slider/horizontal/indicator/textstyle";
+ alias: "elm/slider/horizontal/indicator/numberstyle";
+ images {
+ image: "tw_scrubber_control_holo_dark_press.png" COMP;
+ image: "tw_scrubber_control_press_line.png" COMP;
+ }
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "button_events";
+ type: RECT;
+ mouse_events: 1;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 2.5*SLIDER_IND_WIDTH 2*SLIDER_IND_HEIGHT;
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "button0";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
+ max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
+ image {
+ normal: "tw_scrubber_control_holo_dark_press.png";
+ }
+ color_class: "B065L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B065L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "B065L1D";
+ }
+ }
+ part { name: "button_effect";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
+ max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
+ image.normal: "tw_scrubber_control_press_line.png";
+ color_class: "B141";
+ rel1.to: "button0";
+ rel2.to: "button0";
+ }
+ }
+ }
+ programs {
+ program { name: "slider_disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "button0";
+ target: "button_events";
+ }
+ program { name: "slider_enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "button0";
+ target: "button_events";
+ }
+ program { name: "mouse_down";
+ signal: "mouse,down,*";
+ source: "button_events";
+ action: STATE_SET "pressed" 0.0;
+ target: "button0";
+ }
+ program { name: "mouse_up";
+ signal: "mouse,up,*";
+ source: "button_events";
+ action: STATE_SET "default" 0.0;
+ target: "button0";
+ }
+ }
+ }
+
+ group { name: "elm/slider/horizontal/default";
+ alias: "elm/slider/horizontal/disabled";
+ data {
+ item: "access_highlight" on;
+ }
+ images {
+ image: "tw_timepicker_num_bg_new.#.png" COMP;
+ image: "tw_focused_effect.#png" COMP;
+ }
+ script {
+ public icon_show = 0;
+ public invert_on = 0;
+ public set_invert_on() {
+ set_state(PART:"level", "inverted", 0.0);
+ set_int(invert_on, 1);
+ }
+ public set_invert_off() {
+ set_state(PART:"level", "default", 0.0);
+ set_int(invert_on, 0);
+ }
+ public thumb_down() {
+ if(get_int(invert_on) == 0)
+ set_state(PART:"level", "pressed", 0.0);
+ }
+ public thumb_up() {
+ if(get_int(invert_on) == 0)
+ set_state(PART:"level", "default", 0.0);
+ }
+ }
+ parts {
+ part { name: "access";
+ type: RECT;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part {
+ name: "bg";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 SLIDER_BG_HEIGHT_INC;
+ max: -1 SLIDER_BG_HEIGHT_INC;
+ }
+ }
+ part {
+ name: "top_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 1.0 0.0;
+ to: "bg";
+ }
+ align: 0.5 1.0;
+ fixed: 1 1;
+ }
+ description { state: "visible";
+ inherit: "default" 0.0;
+ min: 0 SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC;
+ max: -1 SLIDER_POPUP_BOTTOM_PADDING_HEIGHT_INC;
+ }
+ }
+ part { name: "popup_bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "top_padding";
+ rel2 {
+ relative: 1.0 0.0;
+ to: "top_padding";
+ }
+ min: SLIDER_POPUP_SIZE_INC;
+ max: SLIDER_POPUP_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 1.0;
+ }
+ }
+ part { name: "popup.image";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ rel1.to: "popup_bg";
+ rel2.to: "popup_bg";
+ image.normal: "tw_timepicker_num_bg_new.#.png";
+ color_class: "W0811";
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ color_class: "W0812";
+ }
+ }
+ part { name: "elm.indicator";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ color_class: "T051";
+ rel1.to: "popup.image";
+ rel2.to: "popup.image";
+ text {
+ align: 0.5 0.5;
+ min: 1 1;
+ text_class: "T051";
+ }
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "T051P";
+ visible: 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "T051D";
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.icon";
+ type: SWALLOW;
+ clip_to: "icon_clipper";
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 {
+ relative: 0.0 0.0;
+ to: "bg";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
+ name: "icon_padding";
+ type: SPACER;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "elm.swallow.icon";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to: "elm.swallow.icon";
+ }
+ align: 0.0 0.5;
+ fixed: 1 1;
+ }
+ description { state: "visible";
+ inherit: "default" 0.0;
+ min: SLIDER_ICON_PADDING_SIZE_INC;
+ max: SLIDER_ICON_PADDING_SIZE_INC;
+ }
+ }
+ part {
+ name: "base";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "icon_padding";
+ to_y: "bg";
+ }
+ rel2.to: "bg";
+ min: 0 PROGRESSBAR_HEIGHT;
+ max: -1 PROGRESSBAR_HEIGHT;
+ fixed: 0 1;
+ color_class: "B065L3";
+ }
+ }
+ part { name: "level";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ rel1 {
+ to_x: "base";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "elm.dragable.slider";
+ relative: 0.5 1.0;
+ }
+ min: 0 PROGRESSBAR_HEIGHT;
+ max: -1 PROGRESSBAR_HEIGHT;
+ fixed: 0 1;
+ }
+ description { state: "inverted" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "rect_swallow";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 0 0;
+ rel1 {
+ to_x: "base";
+ relative: 0.0 0.0;
+ }
+ rel2 {
+ to_x: "base";
+ relative: 0.0 1.0;
+ }
+ align: 0.0 0.5;
+ }
+ }
+ part { name: "drag_base";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1.to: "rect_swallow";
+ rel1.relative: 1.0 0.0;
+ rel1.offset: -18 0; // FIXME: slider image has transparent area
+ rel2.to: "elm.swallow.bar";
+ rel2.offset: -6 0; // FIXME: slider image has transparent area
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ rel1.offset: -22 0;
+ rel2.offset: -1 0;
+ }
+ }
+ part { name: "elm.swallow.bar";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 SLIDER_IND_MAX_HEIGHT;
+ max: -1 SLIDER_IND_MAX_HEIGHT;
+ align: 1.0 0.5;
+ fixed: 0 1;
+ rel1 {
+ to_x: "base";
+ relative: 0.0 0.0;
+ offset: -22 0;
+ }
+ rel2 {
+ to_x: "base";
+ relative: 1.0 1.0;
+ offset: 22 0;
+ }
+ }
+ }
+ part { name: "elm.dragable.slider";
+ type: GROUP;
+ source: "elm/slider/horizontal/indicator/default";
+ mouse_events: 1;
+ scale: 1;
+ dragable {
+ x: 1 1 0;
+ y: 0 0 0;
+ confine: "drag_base";
+ }
+ description { state: "default" 0.0;
+ min: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
+ max: SLIDER_IND_WIDTH SLIDER_IND_HEIGHT;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ rel1.to: "elm.swallow.bar";
+ rel2.to: "elm.swallow.bar";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ min: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
+ max: SLIDER_IND_MAX_WIDTH SLIDER_IND_MAX_HEIGHT;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ color: 0 0 0 0;
+ rel1.to_x: "elm.swallow.bar";
+ rel2.to_x: "elm.swallow.bar";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "B065L2";
+ }
+ description { state: "disabled" 0.0;
+ color_class: "B0651L2";
+ }
+ }
+ part { name: "icon_clipper";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ color_class: "W173L1";
+ }
+ }
+ part { name: "access_image";
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bg";
+ rel1.offset: -14 0;
+ rel2.to: "bg";
+ rel2.offset: 14 0;
+ visible: 0;
+ fill.smooth: 0;
+ image.normal: "tw_focused_effect.#.png";
+ color_class: "W201";
+ }
+ description { state: "highlighted" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "highlighted_icon_show" 0.0;
+ inherit: "highlighted" 0.0;
+ rel1.offset: 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "invert_on";
+ signal: "elm,state,inverted,on";
+ source: "elm";
+ script {
+ set_invert_on();
+ }
+ }
+ program { name: "invert_off";
+ signal: "elm,state,inverted,off";
+ source: "elm";
+ script {
+ set_invert_off();
+ }
+ }
+ program { name: "val_show";
+ signal: "mouse,down,*";
+ source: "elm.dragable.slider";
+ script {
+ thumb_down();
+ }
+ action: STATE_SET "pressed" 0.0;
+ transition: LINEAR 0.1;
+ target: "drag_base";
+ target: "elm.dragable.slider";
+ }
+ program { name: "val_hide";
+ signal: "mouse,up,*";
+ source: "elm.dragable.slider";
+ script {
+ thumb_up();
+ }
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "drag_base";
+ target: "elm.dragable.slider";
+ }
+ program { name: "button_expand";
+ signal: "mouse,down,*";
+ source: "elm.swallow.bar";
+ action: STATE_SET "pressed" 0.0;
+ transition: LINEAR 0.1;
+ target: "drag_base";
+ target: "elm.dragable.slider";
+ }
+ program { name: "button_reduce";
+ signal: "mouse,up,*";
+ source: "elm.swallow.bar";
+ action: STATE_SET "default" 0.0;
+ transition: LINEAR 0.1;
+ target: "drag_base";
+ target: "elm.dragable.slider";
+ }
+ program { name: "popup_val_show";
+ signal: "elm,state,val,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "top_padding";
+ target: "popup.image";
+ target: "elm.indicator";
+ }
+ program { name: "popup,show";
+ signal: "popup,show";
+ source: "elm";
+ action: STATE_SET "visible" 0.0;
+ target: "top_padding";
+ target: "popup.image";
+ target: "elm.indicator";
+ }
+ program { name: "popup_hide";
+ signal: "popup,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "top_padding";
+ target: "popup.image";
+ target: "elm.indicator";
+ }
+ program { name: "icon_show";
+ signal: "elm,state,icon,visible";
+ source: "elm";
+ script {
+ set_int(icon_show, 1);
+ set_state(PART:"elm.swallow.icon", "visible", 0.0);
+ set_state(PART:"icon_padding", "visible", 0.0);
+ }
+ }
+ program { name: "slider_disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ target: "clipper";
+ }
+ program { name: "slider_enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ target: "clipper";
+ }
+ program { name: "action_highlight";
+ signal: "elm,action,access_highlight,show";
+ source: "elm";
+ script {
+ if (get_int(icon_show))
+ set_state(PART:"access_image", "highlighted_icon_show", 0.0);
+ else
+ set_state(PART:"access_image", "highlighted", 0.0);
+ }
+ }
+ program { name: "action_no_highlight";
+ signal: "elm,action,access_highlight,hide";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "access_image";
+ }
+ }
+ }
diff --git a/2.3-wearable/widgets/spinner.edc b/2.3-wearable/widgets/spinner.edc
new file mode 100644
index 00000000..04d6e1b3
--- /dev/null
+++ b/2.3-wearable/widgets/spinner.edc
@@ -0,0 +1,2215 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+group { name: "elm/spinner/base/horizontal";
+ images {
+ image: "tw_controller_module_plus.png" COMP;
+ image: "tw_controller_module_minus.png" COMP;
+ }
+ script {
+ public plus_press_timer;
+ public minus_press_timer;
+ public plus_pressed;
+ public minus_pressed;
+
+ public plus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(plus_pressed);
+ get_state(PART:"right.event", st, 30, vl);
+ if (pressed) {
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ } else if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.bg", "default", 0.0);
+ }
+ }
+
+ public minus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(minus_pressed);
+ get_state(PART:"left.event", st, 30, vl);
+ if (pressed) {
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ } else if(strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.bg", "default", 0.0);
+ }
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ max: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ color: 0 0 0 255;
+ }
+ }
+ part { name: "left.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 0;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ min: SPINNER_BG_LEFT_RIGHT_SIZE;
+ max: SPINNER_BG_LEFT_RIGHT_SIZE;
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "left.image.minus";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.bg";
+ rel2.to: "left.bg";
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_minus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "image_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "left.bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "left.bg";
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "content_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "W171L2";
+ min: SPINNER_CONTENT_BG_SIZE;
+ max: SPINNER_CONTENT_BG_SIZE;
+ rel1 {to: "image_left_padding"; relative: 1.0 0.0;}
+ rel2 {to: "image_right_padding"; relative: 0.0 1.0;}
+ }
+ }
+ part { name: "fake_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2 {to: "content_bg"; relative: 0.0 1.0;}
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ align: 0.0 0.5;
+ fixed: 1 0;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "fake_padding"; relative: 1.0 0.0;}
+ rel2 {to: "bottom_padding"; relative: 1.0 0.0;}
+ color_class: "T0621";
+ text {
+ min: 0 1;
+ max: 1 1;
+ text_class: "T0621";
+ }
+ fixed: 1 1;
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "content_bg"; relative: 0.0 1.0;}
+ rel2.to: "content_bg";
+ align: 0.5 1.0;
+ min: SPINNER_BOTTOM_PADDING_SIZE;
+ max: SPINNER_BOTTOM_PADDING_SIZE;
+ fixed: 0 1;
+ }
+ }
+ part { name: "center.image";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2 {to: "elm.text"; relative: 0.0 1.0;}
+ align: 1.0 0.5;
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "image_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.bg";
+ rel2 {to: "right.bg"; relative: 0.0 1.0;}
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "right.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ align: 1.0 0.5;
+ min: SPINNER_BG_LEFT_RIGHT_SIZE;
+ max: SPINNER_BG_LEFT_RIGHT_SIZE;
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "right.image.plus";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.bg";
+ rel2.to: "right.bg";
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_plus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "left.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.bg";
+ rel2.to: "left.bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "center.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2.to: "content_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "right.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.bg";
+ rel2.to: "right.bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ part { name: "access";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "inc_bt";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.event";
+ rel2.to: "right.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "dec_bt";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.event";
+ rel2.to: "left.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "access_text";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "center.event";
+ rel2.to: "center.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "dec_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,start" "";
+ }
+ program { name: "dec_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,stop" "";
+ }
+ program { name: "inc_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,start" "";
+ }
+ program { name: "inc_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,stop" "";
+ }
+ program { name: "inc";
+ signal: "mouse,down,1*";
+ source: "right.event";
+ script {
+ new right_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"right.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "pressed", 0.0);
+ set_state(PART:"right.bg", "pressed", 0.0);
+ right_timer = get_int(plus_press_timer);
+ if (right_timer) {
+ cancel_timer(right_timer);
+ set_int(plus_press_timer, 0);
+ }
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ set_int(plus_pressed, 1);
+ run_program(PROGRAM:"inc_start_signal_emit");
+ }
+ }
+ }
+ program { name: "inc2";
+ signal: "mouse,up,1";
+ source: "right.event";
+ script {
+ set_int(plus_pressed, 0);
+ }
+ after: "inc_stop_signal_emit";
+ }
+ program { name: "dec";
+ signal: "mouse,down,1*";
+ source: "left.event";
+ script {
+ new left_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"left.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "pressed", 0.0);
+ set_state(PART:"left.bg", "pressed", 0.0);
+ left_timer = get_int(minus_press_timer);
+ if (left_timer) {
+ cancel_timer(left_timer);
+ set_int(minus_press_timer, 0);
+ }
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ set_int(minus_pressed, 1);
+ run_program(PROGRAM:"dec_start_signal_emit");
+ }
+ }
+ }
+ program { name: "dec2";
+ signal: "mouse,up,1";
+ source: "left.event";
+ script {
+ set_int(minus_pressed, 0);
+ }
+ after: "dec_stop_signal_emit";
+ }
+ program { name: "inc_cancel";
+ signal: "elm,spinner,inc,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"right.event", st, 30, vl);
+ if (!strcmp(st, "disabled"))
+ run_program(PROGRAM:"rightbtn_disable");
+ else {
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.bg", "default", 0.0);
+ set_state(PART:"right.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "dec_cancel";
+ signal: "elm,spinner,dec,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"left.event", st, 30, vl);
+ if (!strcmp(st, "disabled"))
+ run_program(PROGRAM:"leftbtn_disable");
+ else {
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.bg", "default", 0.0);
+ set_state(PART:"left.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "rightbtn_enable";
+ signal: "elm,spinner,rightbtn,enabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"right.bg", st, 30, vl);
+ if (!strcmp(st, "pressed")) {
+ set_state(PART:"right.image.plus", "pressed", 0.0);
+ set_state(PART:"right.bg", "pressed", 0.0);
+ }
+ else {
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.bg", "default", 0.0);
+ }
+ set_state(PART:"right.event", "default", 0.0);
+ }
+ }
+ program { name: "rightbtn_disable";
+ signal: "elm,spinner,rightbtn,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "right.image.plus";
+ target: "right.bg";
+ target: "right.event";
+ }
+ program { name: "leftbtn_enable";
+ signal: "elm,spinner,leftbtn,enabled";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"left.bg", st, 30, vl);
+ if (!strcmp(st, "pressed")) {
+ set_state(PART:"left.image.minus", "pressed", 0.0);
+ set_state(PART:"left.bg", "pressed", 0.0);
+ }
+ else {
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.bg", "default", 0.0);
+ }
+ set_state(PART:"left.event", "default", 0.0);
+ }
+ }
+ program { name: "leftbtn_disable";
+ signal: "elm,spinner,leftbtn,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "left.image.minus";
+ target: "left.bg";
+ target: "left.event";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "default", 0.0);
+ run_program(PROGRAM:"rightbtn_enable");
+ run_program(PROGRAM:"leftbtn_enable");
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "disabled", 0.0);
+ run_program(PROGRAM:"rightbtn_disable");
+ run_program(PROGRAM:"leftbtn_disable");
+ }
+ }
+ program { name: "center_clicked";
+ signal: "mouse,clicked,1";
+ source: "center.event";
+ action: SIGNAL_EMIT "elm,action,clicked" "";
+ }
+ }
+}
+
+group { name: "elm/spinner/base/volumestyle";
+ alias: "elm/spinner/base/volume";
+ images {
+ image: "tw_controller_module_plus.png" COMP;
+ image: "tw_controller_module_minus.png" COMP;
+ image: "tw_number_controller_icon_ringtone_sound.png" COMP;
+ image: "tw_number_controller_icon_ringtone_mute.png" COMP;
+ image: "tw_number_controller_icon_ringtone_vibrate.png" COMP;
+ }
+ script {
+ public plus_press_timer;
+ public minus_press_timer;
+ public plus_pressed;
+ public minus_pressed;
+
+ public plus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(plus_pressed);
+ get_state(PART:"right.event", st, 30, vl);
+ if (pressed) {
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ } else if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.bg", "default", 0.0);
+ }
+ }
+
+ public minus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(minus_pressed);
+ get_state(PART:"left.event", st, 30, vl);
+ if (pressed) {
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ } else if(strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.bg", "default", 0.0);
+ }
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ max: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ color: 0 0 0 255;
+ }
+ }
+ part { name: "left.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.image.minus";
+ rel2.to: "left.image.minus";
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "left.image.minus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_minus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "image_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "left.image.minus";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "left.image.minus";
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "content_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "W171L2";
+ min: SPINNER_CONTENT_BG_SIZE;
+ max: SPINNER_CONTENT_BG_SIZE;
+ rel1 {to: "image_left_padding"; relative: 1.0 0.0;}
+ rel2 {to: "image_right_padding"; relative: 0.0 1.0;}
+ }
+ }
+ part { name: "fake_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2 {to: "content_bg"; relative: 0.0 1.0;}
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ }
+ }
+ part { name: "text_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "fake_padding"; relative: 1.0 0.0;}
+ rel2 {to_x: "content_bg"; to_y: "fake_padding"; relative: 1.0 0.0;}
+ min: 0 SPINNER_TEXT_TOP_PADDING_HEIGHT;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to_x: "fake_padding"; to_y: "text_top_padding"; relative: 1.0 1.0;}
+ rel2 {to: "bottom_padding"; relative: 1.0 0.0;}
+ color_class: "T0621";
+ text {
+ min: 0 1;
+ max: 1 1;
+ text_class: "T0621";
+ }
+ fixed: 1 1;
+ }
+ description { state: "full" 0.0;
+ inherit: "default" 0.0;
+ color_class: "T0622";
+ text.text_class: "T0622";
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "content_bg"; relative: 0.0 1.0;}
+ rel2.to: "content_bg";
+ align: 0.5 1.0;
+ min: SPINNER_BOTTOM_PADDING_SIZE;
+ max: SPINNER_BOTTOM_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "center.image";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2 {to: "elm.text"; relative: 0.0 1.0;}
+ align: 1.0 0.5;
+ color_class: "W173L1";
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ image.normal: "tw_number_controller_icon_ringtone_sound.png";
+ fixed: 1 1;
+ }
+ description { state: "full" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W172L1";
+ }
+ description { state: "zero" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_number_controller_icon_ringtone_mute.png";
+ }
+ description { state: "vibrate" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_number_controller_icon_ringtone_vibrate.png";
+ }
+ }
+ part { name: "image_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2 {to: "right.image.plus"; relative: 0.0 1.0;}
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "right.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2.to: "right.image.plus";
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "right.image.plus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ align: 1.0 0.5;
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_plus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "left.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.image.minus";
+ rel2.to: "left.image.minus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "center.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2.to: "content_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "right.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2.to: "right.image.plus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ part { name: "access";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "dec_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,start" "";
+ }
+ program { name: "dec_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,stop" "";
+ }
+ program { name: "inc_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,start" "";
+ }
+ program { name: "inc_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,stop" "";
+ }
+ program { name: "inc";
+ signal: "mouse,down,1*";
+ source: "right.event";
+ script {
+ new right_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"right.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "pressed", 0.0);
+ set_state(PART:"right.bg", "pressed", 0.0);
+ right_timer = get_int(plus_press_timer);
+ if (right_timer) {
+ cancel_timer(right_timer);
+ set_int(plus_press_timer, 0);
+ }
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ set_int(plus_pressed, 1);
+ run_program(PROGRAM:"inc_start_signal_emit");
+ }
+ }
+ }
+ program { name: "inc2";
+ signal: "mouse,up,1";
+ source: "right.event";
+ script {
+ set_int(plus_pressed, 0);
+ }
+ after: "inc_stop_signal_emit";
+ }
+ program { name: "dec";
+ signal: "mouse,down,1*";
+ source: "left.event";
+ script {
+ new left_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"left.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "pressed", 0.0);
+ set_state(PART:"left.bg", "pressed", 0.0);
+ left_timer = get_int(minus_press_timer);
+ if (left_timer) {
+ cancel_timer(left_timer);
+ set_int(minus_press_timer, 0);
+ }
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ set_int(minus_pressed, 1);
+ run_program(PROGRAM:"dec_start_signal_emit");
+ }
+ }
+ }
+ program { name: "dec2";
+ signal: "mouse,up,1";
+ source: "left.event";
+ script {
+ set_int(minus_pressed, 0);
+ }
+ after: "dec_stop_signal_emit";
+ }
+ program { name: "inc_cancel";
+ signal: "elm,spinner,inc,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"center.image", st, 30, vl);
+ if (!strcmp(st, "full")) {
+ set_state(PART:"right.bg", "disabled", 0.0);
+ set_state(PART:"right.image.plus", "disabled", 0.0);
+ set_state(PART:"right.event", "disabled", 0.0);
+ }
+ else {
+ set_state(PART:"right.bg", "default", 0.0);
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "dec_cancel";
+ signal: "elm,spinner,dec,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"center.image", st, 30, vl);
+ if (!strcmp(st, "zero") || !strcmp(st, "vibrate")) {
+ set_state(PART:"left.bg", "disabled", 0.0);
+ set_state(PART:"left.image.minus", "disabled", 0.0);
+ set_state(PART:"left.event", "disabled", 0.0);
+ }
+ else {
+ set_state(PART:"left.bg", "default", 0.0);
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "rightbtn_enable";
+ signal: "elm,spinner,rightbtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "right.image.plus";
+ target: "right.bg";
+ target: "right.event";
+ }
+ program { name: "rightbtn_disable";
+ signal: "elm,spinner,rightbtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "right.image.plus";
+ target: "right.bg";
+ target: "right.event";
+ }
+ program { name: "leftbtn_enable";
+ signal: "elm,spinner,leftbtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "left.image.minus";
+ target: "left.bg";
+ target: "left.event";
+ }
+ program { name: "leftbtn_disable";
+ signal: "elm,spinner,leftbtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "left.image.minus";
+ target: "left.bg";
+ target: "left.event";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "default", 0.0);
+ run_program(PROGRAM:"rightbtn_enable");
+ run_program(PROGRAM:"leftbtn_enable");
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "disabled", 0.0);
+ run_program(PROGRAM:"rightbtn_disable");
+ run_program(PROGRAM:"leftbtn_disable");
+ }
+ }
+ program { name: "full";
+ signal: "elm,spinner,full";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"leftbtn_enable");
+ set_state(PART:"center.image", "full", 0.0);
+ set_state(PART:"elm.text", "full", 0.0);
+ run_program(PROGRAM:"rightbtn_disable");
+ }
+ }
+ program { name: "middle";
+ signal: "elm,spinner,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"right.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"rightbtn_enable");
+ }
+ get_state(PART:"left.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"leftbtn_enable");
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"center.image", "default", 0.0);
+ }
+ }
+ program { name: "min";
+ signal: "elm,spinner,min";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"rightbtn_enable");
+ set_state(PART:"center.image", "zero", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ run_program(PROGRAM:"leftbtn_disable");
+ }
+ }
+ program { name: "vibrate";
+ signal: "elm,spinner,vibrate";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"center.image", st, 30, vl);
+ run_program(PROGRAM:"rightbtn_enable");
+ if (strcmp(st, "vibrate")) {
+ run_program(PROGRAM:"leftbtn_disable");
+ set_state(PART:"center.image", "vibrate", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ }
+ }
+ }
+ program { name: "center_clicked";
+ signal: "mouse,clicked,1";
+ source: "center.event";
+ action: SIGNAL_EMIT "elm,action,clicked" "";
+ }
+ }
+}
+
+group { name: "elm/spinner/base/brightnessstyle";
+ alias: "elm/spinner/base/brightness";
+ images {
+ image: "tw_controller_module_plus.png" COMP;
+ image: "tw_controller_module_minus.png" COMP;
+ image: "tw_number_controller_icon_brightness.png" COMP;
+ image: "tw_number_controller_icon_outdoor.png" COMP;
+ }
+ script {
+ public plus_press_timer;
+ public minus_press_timer;
+ public plus_pressed;
+ public minus_pressed;
+
+ public plus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(plus_pressed);
+ get_state(PART:"right.image.plus", st, 30, vl);
+ if (pressed) {
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ } else if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.bg", "default", 0.0);
+ }
+ }
+
+ public minus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(minus_pressed);
+ get_state(PART:"left.image.minus", st, 30, vl);
+ if (pressed) {
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ } else if(strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.bg", "default", 0.0);
+ }
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ max: SPINNER_HORIZONTAL_DEFAULT_BG_SIZE;
+ color: 0 0 0 255;
+ }
+ }
+ part { name: "left.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.image.minus";
+ rel2.to: "left.image.minus";
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "left.image.minus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ align: 0.0 0.5;
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_minus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "image_left_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {
+ to: "left.image.minus";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "left.image.minus";
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "content_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ color_class: "W171L2";
+ min: SPINNER_CONTENT_BG_SIZE;
+ max: SPINNER_CONTENT_BG_SIZE;
+ rel1 {to: "image_left_padding"; relative: 1.0 0.0;}
+ rel2 {to: "image_right_padding"; relative: 0.0 1.0;}
+ }
+ }
+ part { name: "fake_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2 {to: "content_bg"; relative: 0.0 1.0;}
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ align: 0.0 0.5;
+ fixed: 1 1;
+ }
+ }
+ part { name: "text_top_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "fake_padding"; relative: 1.0 0.0;}
+ rel2 {to_x: "content_bg"; to_y: "fake_padding"; relative: 1.0 0.0;}
+ min: 0 SPINNER_TEXT_TOP_PADDING_HEIGHT;
+ fixed: 1 1;
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to_x: "fake_padding"; to_y: "text_top_padding"; relative: 1.0 1.0;}
+ rel2 {to: "bottom_padding"; relative: 1.0 0.0;}
+ color_class: "T0621";
+ text {
+ min: 0 1;
+ max: 1 1;
+ text_class: "T0621";
+ }
+ fixed: 1 1;
+ }
+ description { state: "full" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "bottom_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 {to: "content_bg"; relative: 0.0 1.0;}
+ rel2.to: "content_bg";
+ align: 0.5 1.0;
+ min: SPINNER_BOTTOM_PADDING_SIZE;
+ max: SPINNER_BOTTOM_PADDING_SIZE;
+ fixed: 1 1;
+ }
+ }
+ part { name: "center.image";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "elm.text";
+ rel2 {to: "elm.text"; relative: 0.0 1.0;}
+ align: 1.0 0.5;
+ color_class: "W173L1";
+ min: SPINNER_CENTER_IMAGE_SIZE;
+ max: SPINNER_CENTER_IMAGE_SIZE;
+ image.normal: "tw_number_controller_icon_brightness.png";
+ fixed: 1 1;
+ }
+ description { state: "full" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_number_controller_icon_outdoor.png";
+ }
+ description { state: "zero" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "image_right_padding";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2 {to: "right.image.plus"; relative: 0.0 1.0;}
+ align: 0.0 0.5;
+ min: SPINNER_IMAGE_LEFT_RIGHT_PADDING_SIZE;
+ fixed: 1 0;
+ }
+ }
+ part { name: "right.bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2.to: "right.image.plus";
+ color_class: "W171L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W171L2D";
+ }
+ }
+ part { name: "right.image.plus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 1.0 0.0;
+ }
+ rel2.to: "bg";
+ align: 1.0 0.5;
+ min: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ max: SPINNER_ICON_LEFT_RIGHT_SIZE;
+ image.normal: "tw_controller_module_plus.png";
+ color_class: "W083L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1P";
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W083L1D";
+ }
+ }
+ part { name: "left.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "left.image.minus";
+ rel2.to: "left.image.minus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "center.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "content_bg";
+ rel2.to: "content_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "right.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "right.image.plus";
+ rel2.to: "right.image.plus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ part { name: "access";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ }
+ programs {
+ program { name: "dec_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,start" "";
+ }
+ program { name: "dec_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,stop" "";
+ }
+ program { name: "inc_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,start" "";
+ }
+ program { name: "inc_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,stop" "";
+ }
+ program { name: "inc";
+ signal: "mouse,down,1*";
+ source: "right.event";
+ script {
+ new right_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"right.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"right.image.plus", "pressed", 0.0);
+ set_state(PART:"right.bg", "pressed", 0.0);
+ right_timer = get_int(plus_press_timer);
+ if (right_timer) {
+ cancel_timer(right_timer);
+ set_int(plus_press_timer, 0);
+ }
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ set_int(plus_pressed, 1);
+ run_program(PROGRAM:"inc_start_signal_emit");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ }
+ program { name: "inc2";
+ signal: "mouse,up,1";
+ source: "right.event";
+ script {
+ set_int(plus_pressed, 0);
+ }
+ after: "inc_stop_signal_emit";
+ }
+ program { name: "dec";
+ signal: "mouse,down,1*";
+ source: "left.event";
+ script {
+ new left_timer;
+ new st[31];
+ new Float:vl;
+
+ get_state(PART:"left.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"left.image.minus", "pressed", 0.0);
+ set_state(PART:"left.bg", "pressed", 0.0);
+ left_timer = get_int(minus_press_timer);
+ if (left_timer) {
+ cancel_timer(left_timer);
+ set_int(minus_press_timer, 0);
+ }
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ set_int(minus_pressed, 1);
+ run_program(PROGRAM:"dec_start_signal_emit");
+ run_program(PROGRAM:"play_sample");
+ }
+ }
+ }
+ program {
+ name: "play_sample";
+ action: RUN_PLUGIN "touch_sound";
+ }
+ program { name: "dec2";
+ signal: "mouse,up,1";
+ source: "left.event";
+ script {
+ set_int(minus_pressed, 0);
+ }
+ after: "dec_stop_signal_emit";
+ }
+ program { name: "inc_cancel";
+ signal: "elm,spinner,inc,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"center.image", st, 30, vl);
+ if (!strcmp(st, "full")) {
+ set_state(PART:"right.bg", "disabled", 0.0);
+ set_state(PART:"right.image.plus", "disabled", 0.0);
+ set_state(PART:"right.event", "disabled", 0.0);
+ }
+ else {
+ set_state(PART:"right.bg", "default", 0.0);
+ set_state(PART:"right.image.plus", "default", 0.0);
+ set_state(PART:"right.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "dec_cancel";
+ signal: "elm,spinner,dec,cancel";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"center.image", st, 30, vl);
+ if (!strcmp(st, "zero")) {
+ set_state(PART:"left.bg", "disabled", 0.0);
+ set_state(PART:"left.image.minus", "disabled", 0.0);
+ set_state(PART:"left.event", "disabled", 0.0);
+ }
+ else {
+ set_state(PART:"left.bg", "default", 0.0);
+ set_state(PART:"left.image.minus", "default", 0.0);
+ set_state(PART:"left.event", "default", 0.0);
+ }
+ }
+ }
+ program { name: "rightbtn_enable";
+ signal: "elm,spinner,rightbtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "right.image.plus";
+ target: "right.bg";
+ target: "right.event";
+ }
+ program { name: "rightbtn_disable";
+ signal: "elm,spinner,rightbtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "right.image.plus";
+ target: "right.bg";
+ target: "right.event";
+ }
+ program { name: "leftbtn_enable";
+ signal: "elm,spinner,leftbtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "left.image.minus";
+ target: "left.bg";
+ target: "left.event";
+ }
+ program { name: "leftbtn_disable";
+ signal: "elm,spinner,leftbtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "left.image.minus";
+ target: "left.bg";
+ target: "left.event";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "default", 0.0);
+ run_program(PROGRAM:"rightbtn_enable");
+ run_program(PROGRAM:"leftbtn_enable");
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "disabled", 0.0);
+ run_program(PROGRAM:"rightbtn_disable");
+ run_program(PROGRAM:"leftbtn_disable");
+ }
+ }
+ program { name: "full";
+ signal: "elm,spinner,full";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"leftbtn_enable");
+ set_state(PART:"center.image", "full", 0.0);
+ set_state(PART:"elm.text", "full", 0.0);
+ run_program(PROGRAM:"rightbtn_disable");
+ }
+ }
+ program { name: "middle";
+ signal: "elm,spinner,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"right.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"rightbtn_enable");
+ }
+ get_state(PART:"left.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"leftbtn_enable");
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"center.image", "default", 0.0);
+ }
+ }
+ program { name: "min";
+ signal: "elm,spinner,min";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"rightbtn_enable");
+ set_state(PART:"center.image", "zero", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
+ run_program(PROGRAM:"leftbtn_disable");
+ }
+ }
+ program { name: "center_clicked";
+ signal: "mouse,clicked,1";
+ source: "center.event";
+ action: SIGNAL_EMIT "elm,action,clicked" "";
+ }
+ }
+}
+
+group { name: "elm/spinner/base/verticalstyle";
+ alias: "elm/spinner/base/volume/vertical";
+ images {
+ image: "tw_button_controller_bg_press.png" COMP;
+ image: "tw_button_controller_bg.png" COMP;
+ image: "tw_button_controller_icon_mute.png" COMP;
+ image: "tw_controller_btn_minus.png" COMP;
+ image: "tw_controller_btn_plus.png" COMP;
+ image: "tw_controller_btn_bg.png" COMP;
+ }
+ script {
+ public plus_press_timer;
+ public minus_press_timer;
+ public plus_pressed;
+ public minus_pressed;
+
+ public plus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(plus_pressed);
+ get_state(PART:"top.image.plus", st, 30, vl);
+ if (pressed) {
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ } else if (strcmp(st, "disabled")) {
+ set_state(PART:"top.image.plus", "default", 0.0);
+ }
+ }
+
+ public minus_press_timer_cb(val) {
+ new pressed;
+ new st[31];
+ new Float:vl;
+
+ pressed = get_int(minus_pressed);
+ get_state(PART:"bottom.image.minus", st, 30, vl);
+ if (pressed) {
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ } else if(strcmp(st, "disabled")) {
+ set_state(PART:"bottom.image.minus", "default", 0.0);
+ }
+ }
+ }
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_VERTICAL_DEFAULT_BG_SIZE;
+ }
+ }
+ part { name: "top.image.bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "top.image.plus";
+ rel2.to: "top.image.plus";
+ image.normal: "tw_controller_btn_bg.png";
+ color_class: "W181L2";
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "top.image.plus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2 {to: "bg"; relative: 1.0 0.0;}
+ align: 0.5 0.0;
+ min: SPINNER_ICON_TOP_BOTTOM_SIZE;
+ max: SPINNER_ICON_TOP_BOTTOM_SIZE;
+ image.normal: "tw_controller_btn_plus.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ part { name: "bottom.image.bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bottom.image.minus";
+ rel2.to: "bottom.image.minus";
+ image.normal: "tw_controller_btn_bg.png";
+ color_class: "W181L2";
+ visible: 0;
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "bottom.image.minus";
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.0 1.0;
+ to: "bg";
+ }
+ rel2.to: "bg";
+ align: 0.5 1.0;
+ min: SPINNER_ICON_TOP_BOTTOM_SIZE;
+ max: SPINNER_ICON_TOP_BOTTOM_SIZE;
+ image.normal: "tw_controller_btn_minus.png";
+ color_class: "W179L1";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color_class: "W180L1";
+ }
+ }
+ part { name: "center.image.bg";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ max: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_button_controller_bg.png";
+ color_class: "W176L2";
+ }
+ description { state: "pressed" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tw_button_controller_bg_press.png";
+ color_class: "W177L2";
+ }
+ }
+ part { name: "center.image2";
+ scale: 1;
+ clip_to: "clipper";
+ description { state: "default" 0.0;
+ min: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ max: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ image.normal: "tw_button_controller_bg.png";
+ color_class: "W178L2";
+ }
+ }
+ part { name: "elm.text";
+ type: TEXT;
+ mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "center.image.bg";
+ rel2.to: "center.image.bg";
+ color_class: "T061";
+ text {
+ min: 0 0;
+ text_class: "T061";
+ }
+ }
+ description { state: "zero" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "center.icon";
+ scale: 1;
+ description { state: "default" 0.0;
+ min: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ max: SPINNER_BUTTON_CONTROLLER_IMAGE_SIZE;
+ fixed: 1 1;
+ rel1.to: "center.image.bg";
+ rel2.to: "center.image.bg";
+ image.normal: "tw_button_controller_icon_mute.png";
+ visible: 0;
+ }
+ description { state: "zero" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.dragable.slider";
+ type: RECT;
+ dragable {
+ x: 0 0 0;
+ y: 1 1 0;
+ }
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 0 1;
+ min: SPINNER_DRAGABLE_PART_MIN_SIZE;
+ rel1 {
+ to: "center.image.bg";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to: "center.image.bg";
+ relative: 1.0 1.0;
+ }
+ align: 1.0 0.0;
+ }
+ }
+ part { name: "block.drag.events";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1.to: "elm.dragable.slider";
+ rel2.to: "elm.dragable.slider";
+ }
+ }
+ part { name: "clipper";
+ scale: 1;
+ type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "elm.dragable.slider";
+ rel2.to: "elm.dragable.slider";
+ }
+ }
+ part { name: "top.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "top.image.plus";
+ rel2.to: "top.image.plus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "bottom.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bottom.image.minus";
+ rel2.to: "bottom.image.minus";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "center.event";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1.to: "center.image.bg";
+ rel2.to: "center.image.bg";
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 1;
+ }
+ }
+ part { name: "access";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ fixed: 1 1;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ }
+ }
+ part { name: "inc_bt";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "top.event";
+ rel2.to: "top.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "dec_bt";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "bottom.event";
+ rel2.to: "bottom.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "access_text";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to: "center.event";
+ rel2.to: "center.event";
+ fixed: 1 1;
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program { name: "dec_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,start" "";
+ }
+ program { name: "dec_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,decrement,stop" "";
+ }
+ program { name: "inc_start_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,start" "";
+ }
+ program { name: "inc_stop_signal_emit";
+ action: SIGNAL_EMIT "elm,action,increment,stop" "";
+ }
+ program { name: "inc";
+ signal: "mouse,down,1*";
+ source: "top.event";
+ script {
+ new plus_timer;
+ new st[31];
+ new Float:vl;
+ get_state(PART:"top.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"top.image.plus", "pressed", 0.0);
+ set_state(PART:"top.image.bg", "pressed", 0.0);
+ plus_timer = get_int(plus_press_timer);
+ if (plus_timer) {
+ cancel_timer(plus_timer);
+ set_int(plus_press_timer, 0);
+ }
+ set_int(plus_press_timer, timer(PRESS_TIMER_VAL, "plus_press_timer_cb", 0));
+ set_int(plus_pressed, 1);
+ run_program(PROGRAM:"inc_start_signal_emit");
+ }
+ }
+ }
+ program { name: "inc2";
+ signal: "mouse,up,1";
+ source: "top.event";
+ script {
+ set_int(plus_pressed, 0);
+ }
+ after: "inc_stop_signal_emit";
+ }
+ program { name: "dec";
+ signal: "mouse,down,1*";
+ source: "bottom.event";
+ script {
+ new minus_timer;
+ new st[31];
+ new Float:vl;
+ get_state(PART:"bottom.event", st, 30, vl);
+ if (strcmp(st, "disabled")) {
+ set_state(PART:"bottom.image.minus", "pressed", 0.0);
+ set_state(PART:"bottom.image.bg", "pressed", 0.0);
+ minus_timer = get_int(minus_press_timer);
+ if (minus_timer) {
+ cancel_timer(minus_timer);
+ set_int(minus_press_timer, 0);
+ }
+ set_int(minus_press_timer, timer(PRESS_TIMER_VAL, "minus_press_timer_cb", 0));
+ set_int(minus_pressed, 1);
+ run_program(PROGRAM:"dec_start_signal_emit");
+ }
+ }
+ }
+ program { name: "dec2";
+ signal: "mouse,up,1";
+ source: "bottom.event";
+ script {
+ set_int(minus_pressed, 0);
+ }
+ after: "dec_stop_signal_emit";
+ }
+ program { name: "topbtn_enable";
+ signal: "elm,spinner,topbtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "top.image.plus";
+ target: "top.image.bg";
+ target: "top.event";
+ }
+ program { name: "topbtn_disable";
+ signal: "elm,spinner,topbtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "top.image.plus";
+ target: "top.image.bg";
+ target: "top.event";
+ }
+ program { name: "bottombtn_enable";
+ signal: "elm,spinner,bottombtn,enabled";
+ source: "*";
+ action: STATE_SET "default" 0.0;
+ target: "bottom.image.minus";
+ target: "bottom.image.bg";
+ target: "bottom.event";
+ }
+ program { name: "bottombtn_disable";
+ signal: "elm,spinner,bottombtn,disabled";
+ source: "*";
+ action: STATE_SET "disabled" 0.0;
+ target: "bottom.image.minus";
+ target: "bottom.image.bg";
+ target: "bottom.event";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "default", 0.0);
+ run_program(PROGRAM:"topbtn_enable");
+ run_program(PROGRAM:"bottombtn_enable");
+ }
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ script {
+ set_state(PART:"disabler", "disabled", 0.0);
+ run_program(PROGRAM:"topbtn_disable");
+ run_program(PROGRAM:"bottombtn_disable");
+ }
+ }
+ program { name: "full";
+ signal: "elm,spinner,full";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"bottombtn_enable");
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"center.icon", "default", 0.0);
+ run_program(PROGRAM:"topbtn_disable");
+ }
+ }
+ program { name: "min";
+ signal: "elm,spinner,min";
+ source: "elm";
+ script {
+ run_program(PROGRAM:"topbtn_enable");
+ set_state(PART:"elm.text", "zero", 0.0);
+ set_state(PART:"center.icon", "zero", 0.0);
+ run_program(PROGRAM:"bottombtn_disable");
+ }
+ }
+ program { name: "middle";
+ signal: "elm,spinner,default";
+ source: "elm";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"top.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"topbtn_enable");
+ }
+ get_state(PART:"bottom.event", st, 30, vl);
+ if(!strcmp(st, "disabled")) {
+ run_program(PROGRAM:"bottombtn_enable");
+ }
+ set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"center.icon", "default", 0.0);
+ }
+ }
+ program { name: "center_clicked";
+ signal: "mouse,clicked,1";
+ source: "center.event";
+ action: SIGNAL_EMIT "elm,action,clicked" "";
+ }
+ program { name: "center_mouse_down";
+ signal: "mouse,down,1";
+ source: "center.event";
+ action: STATE_SET "pressed" 0.0;
+ target: "center.image.bg";
+ }
+ program { name: "center_mouse_up";
+ signal: "mouse,up,1";
+ source: "center.event";
+ action: STATE_SET "default" 0.0;
+ target: "center.image.bg";
+ }
+ }
+}
+
+group { name: "elm/spinner/base/default";
+ alias: "elm/spinner/base/vertical";
+ parts {
+ part { name: "bg";
+ type: SPACER;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "access";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ color: 0 0 0 0;
+ rel1.to: "bg";
+ rel2.to: "bg";
+ visible: 1;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.text_button";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 1;
+ min: 0 SPINNER_PICKERSTYLE_FIELD_HEIGHT;
+ max: -1 SPINNER_PICKERSTYLE_FIELD_HEIGHT;
+ fixed: 0 1;
+ align: 0.5 0.5;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.inc_button";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ fixed: 1 1;
+ rel1 {
+ to: "bg";
+ relative: 0.5 0.0;
+ }
+ rel2 {
+ to: "elm.swallow.text_button";
+ relative: 0.5 0.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.dec_button";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ min: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ max: SPINNER_PICKERSTYLE_ARROW_BUTTON_SIZE;
+ fixed: 1 1;
+ rel1 {
+ to: "elm.swallow.text_button";
+ relative: 0.5 1.0;
+ }
+ rel2 {
+ to: "bg";
+ relative: 0.5 1.0;
+ }
+ }
+ }
+ part { name: "elm.swallow.entry";
+ type: SWALLOW;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1.to: "elm.swallow.text_button";
+ rel2.to: "elm.swallow.text_button";
+ min: 0 SPINNER_PICKERSTYLE_FIELD_HEIGHT;
+ max: -1 SPINNER_PICKERSTYLE_FIELD_HEIGHT;
+ fixed: 0 1;
+ }
+ description { state: "active" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "active";
+ signal: "elm,state,active";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "elm.swallow.text_button";
+ target: "elm.swallow.entry";
+ }
+ program { name: "inactive";
+ signal: "elm,state,inactive";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.swallow.text_button";
+ target: "elm.swallow.entry";
+ }
+ program { name: "access_activate";
+ signal: "elm,state,access,active";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "access";
+ }
+ program { name: "access_inactivate";
+ signal: "elm,state,access,inactive";
+ source: "elm";
+ action: STATE_SET "active" 0.0;
+ target: "access";
+ }
+ program { name: "disable";
+ signal: "elm,state,disabled";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "disabler";
+ }
+ program { name: "enable";
+ signal: "elm,state,enabled";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "disabler";
+ }
+ }
+}
+