From ca861ba7b3f14b22fe5b53131c93399a87e68e90 Mon Sep 17 00:00:00 2001 From: Kim Kibum Date: Fri, 8 Jun 2012 14:53:52 +0900 Subject: [PATCH] apply FSL(Flora Software License) --- CMakeLists.txt | 297 ++ INSTALL | 33 + LICENSE | 75 + debian/changelog | 9 + debian/compat | 1 + debian/control | 19 + debian/dirs | 2 + debian/docs | 0 debian/org.tizen.browser.install.in | 9 + debian/org.tizen.browser.postinst | 217 ++ debian/rules | 145 + edc/browser-bookmark-view.edc | 456 +++ edc/browser-define.edc | 871 ++++++ edc/browser-macro.edc | 1487 ++++++++++ edc/browser-multi-window.edc | 641 ++++ edc/browser-naviframe.edc | 2129 ++++++++++++++ edc/browser-picker-layout.edc | 53 + edc/browser-predictive-history.edc | 448 +++ edc/browser-settings.edc | 178 ++ edc/browser-view-control-bar.edc | 1755 +++++++++++ edc/browser-view-find-word-layout.edc | 1400 +++++++++ edc/browser-view-main.edc | 706 +++++ edc/browser-view-progressbar.edc | 604 ++++ edc/browser-view-url-layout.edc | 1099 +++++++ html/54_bg.jpg | Bin 0 -> 14577 bytes html/54_bg.png | Bin 0 -> 134691 bytes html/EmbedInHtml.html | 25 + html/default_page.html | 14 + html/logo.png | Bin 0 -> 56118 bytes html/notFoundPage.html | 32 + images/bookmarks/I01_Nocontents_Bookmarks.png | Bin 0 -> 8539 bytes .../00_winset_control_top_arrow.png | Bin 0 -> 262 bytes images/browser-view-images/00_zoom_in.png | Bin 0 -> 4520 bytes images/browser-view-images/00_zoom_in_disable.png | Bin 0 -> 996 bytes images/browser-view-images/00_zoom_in_press.png | Bin 0 -> 4930 bytes images/browser-view-images/00_zoom_out.png | Bin 0 -> 4183 bytes images/browser-view-images/00_zoom_out_disable.png | Bin 0 -> 930 bytes images/browser-view-images/00_zoom_out_press.png | Bin 0 -> 4750 bytes .../browser-view-images/41_browser_new_win_bg.png | Bin 0 -> 2867 bytes images/browser-view-images/I01_btn_back.png | Bin 0 -> 3225 bytes images/browser-view-images/I01_btn_prev.png | Bin 0 -> 3040 bytes images/browser-view-images/I01_btn_prev_press.png | Bin 0 -> 232 bytes .../browser-view-images/I01_control_top_arrow.png | Bin 0 -> 197 bytes images/browser-view-images/I01_title_bg.png | Bin 0 -> 2798 bytes .../controlbar/00_winset_tabbar_press.png | Bin 0 -> 77 bytes .../controlbar/00_winset_tabbar_press_left.png | Bin 0 -> 2794 bytes .../controlbar/00_winset_tabbar_press_right.png | Bin 0 -> 2791 bytes .../controlbar/I01_bookmark_tabbar_focus.png | Bin 0 -> 77 bytes .../controlbar/I01_bookmark_tabbar_focus_left.png | Bin 0 -> 77 bytes .../controlbar/I01_bookmark_tabbar_focus_right.png | Bin 0 -> 78 bytes .../controlbar/I01_control_toolbar_press.png | Bin 0 -> 2878 bytes .../controlbar/I01_tabbar_bg.png | Bin 0 -> 2804 bytes .../controlbar/I01_tabbar_focus.png | Bin 0 -> 117 bytes .../controlbar/I01_toolbar_bg.png | Bin 0 -> 2798 bytes .../controlbar/I01_toolbar_press.png | Bin 0 -> 2886 bytes .../most-visited/41_browser_favicon_box_press.png | Bin 0 -> 3036 bytes .../most-visited/I01_Btn_delete.png | Bin 0 -> 324 bytes .../most-visited/I01_favicon_bg.png | Bin 0 -> 134 bytes .../most-visited/I01_favicon_box.png | Bin 0 -> 287 bytes .../browser-view-images/naviframe_optionheader.png | Bin 0 -> 73 bytes .../naviframe_optionheader_arrow.png | Bin 0 -> 294 bytes .../00_search_input_field_bg_progress.png | Bin 0 -> 2880 bytes .../progressbar/processing_ani00.png | Bin 0 -> 3868 bytes .../progressbar/processing_ani01.png | Bin 0 -> 3906 bytes .../progressbar/processing_ani02.png | Bin 0 -> 3865 bytes .../progressbar/processing_ani03.png | Bin 0 -> 3847 bytes .../progressbar/processing_ani04.png | Bin 0 -> 3799 bytes .../progressbar/processing_ani05.png | Bin 0 -> 3828 bytes .../progressbar/processing_ani06.png | Bin 0 -> 3822 bytes .../progressbar/processing_ani07.png | Bin 0 -> 3820 bytes .../progressbar/progressbar.png | Bin 0 -> 437 bytes images/browser-view-images/reader/I01_popup_bg.png | Bin 0 -> 3635 bytes .../reader/I01_popup_bottom_bg.png | Bin 0 -> 2830 bytes .../url-layout/00_EditField_clear.png | Bin 0 -> 3272 bytes .../url-layout/00_search_input_field_bg.png | Bin 0 -> 3044 bytes .../url-layout/00_search_input_field_bg_black.png | Bin 0 -> 314 bytes .../url-layout/41_browser_search_icon.png | Bin 0 -> 3182 bytes .../url-layout/41_browser_search_icon_refresh.png | Bin 0 -> 3244 bytes .../url-layout/I01_Icons_RSS.png | Bin 0 -> 3505 bytes .../url-layout/I01_Icons_http.png | Bin 0 -> 2202 bytes .../url-layout/I01_control_top_bg.png | Bin 0 -> 124 bytes .../url-layout/I01_icon_find_word.png | Bin 0 -> 3561 bytes .../browser-view-images/url-layout/icon_stop.png | Bin 0 -> 1352 bytes .../url-layout/naviframe_optionheader.png | Bin 0 -> 75 bytes images/browser-view-images/url-layout/rss.png | Bin 0 -> 3143 bytes images/favicons/WebpageIcons.db | Bin 0 -> 138240 bytes images/favicons/WebpageIcons.db-journal | Bin 0 -> 4640 bytes images/icon/00_close_icon.png | Bin 0 -> 3100 bytes images/icon/I01_Back_btn_normal.png | Bin 0 -> 3166 bytes images/icon/I01_Back_btn_press.png | Bin 0 -> 3192 bytes images/icon/I01_Option_header_bt.png | Bin 0 -> 298 bytes images/icon/I01_Option_header_bt_dim.png | Bin 0 -> 288 bytes images/icon/I01_Option_header_bt_press.png | Bin 0 -> 299 bytes images/icon/I01_btn_back.png | Bin 0 -> 3225 bytes images/icon/I01_btn_normal.png | Bin 0 -> 4797 bytes images/icon/I01_btn_press.png | Bin 0 -> 4371 bytes images/icon/I01_button_04_press.png | Bin 0 -> 2902 bytes images/icon/I01_control_btn_normal.png | Bin 0 -> 2963 bytes images/icon/I01_controlbar_icon_favorite.png | Bin 0 -> 526 bytes images/icon/I01_controlbar_icon_multiview.png | Bin 0 -> 359 bytes images/icon/I01_fit_screen.png | Bin 0 -> 3740 bytes images/icon/I01_picker_arrow_left.png | Bin 0 -> 3340 bytes images/icon/I01_picker_arrow_right.png | Bin 0 -> 3323 bytes images/icon/I01_title_btn.png | Bin 0 -> 3169 bytes images/icon/I01_title_btn_press.png | Bin 0 -> 3100 bytes images/icon/I01_title_icon_multiview.png | Bin 0 -> 690 bytes images/icon/I01_title_icon_multiview_press.png | Bin 0 -> 3149 bytes images/icon/backward_1.png | Bin 0 -> 8499 bytes images/icon/backward_2.png | Bin 0 -> 7036 bytes images/install/00_brightness_left.png | Bin 0 -> 230 bytes images/install/00_brightness_right.png | Bin 0 -> 327 bytes images/install/01_controlbar_icon_back.png | Bin 0 -> 3261 bytes images/install/01_controlbar_icon_compose.png | Bin 0 -> 1359 bytes .../install/01_controlbar_icon_create_folder.png | Bin 0 -> 892 bytes images/install/01_controlbar_icon_delete.png | Bin 0 -> 899 bytes images/install/01_controlbar_icon_expand.png | Bin 0 -> 372 bytes images/install/01_controlbar_icon_multiview.png | Bin 0 -> 690 bytes images/install/01_controlbar_icon_multiview_02.png | Bin 0 -> 1020 bytes images/install/01_controlbar_icon_multiview_03.png | Bin 0 -> 1075 bytes images/install/01_controlbar_icon_multiview_04.png | Bin 0 -> 955 bytes images/install/01_controlbar_icon_multiview_05.png | Bin 0 -> 1017 bytes images/install/01_controlbar_icon_multiview_06.png | Bin 0 -> 1061 bytes images/install/01_controlbar_icon_multiview_07.png | Bin 0 -> 940 bytes images/install/01_controlbar_icon_multiview_08.png | Bin 0 -> 1067 bytes images/install/01_controlbar_icon_multiview_09.png | Bin 0 -> 1053 bytes images/install/01_controlbar_icon_send.png | Bin 0 -> 3979 bytes images/install/01_controllbar_icon_close.png | Bin 0 -> 1076 bytes images/install/01_header_icon_add.png | Bin 0 -> 2999 bytes images/install/01_header_icon_cancel.png | Bin 0 -> 2980 bytes images/install/01_header_icon_delete.png | Bin 0 -> 281 bytes images/install/01_header_icon_done.png | Bin 0 -> 3007 bytes images/install/01_header_icon_edit.png | Bin 0 -> 3049 bytes images/install/01_header_icon_others.png | Bin 0 -> 2934 bytes images/install/41_browser_search_icon.png | Bin 0 -> 3182 bytes images/install/I01_Icons_http.png | Bin 0 -> 2202 bytes images/install/I01_controlbar_icon_Play.png | Bin 0 -> 834 bytes images/install/I01_controlbar_icon_backward.png | Bin 0 -> 834 bytes images/install/I01_controlbar_icon_bookmark.png | Bin 0 -> 3427 bytes images/install/I01_controlbar_icon_create.png | Bin 0 -> 742 bytes images/install/I01_controlbar_icon_more.png | Bin 0 -> 3097 bytes images/install/I01_icon_upper_folder.png | Bin 0 -> 3134 bytes images/install/I01_icon_upper_folder_press.png | Bin 0 -> 3426 bytes images/install/T01_CallerID_hold.png | Bin 0 -> 2881 bytes images/install/T01_CallerID_line_W.png | Bin 0 -> 2802 bytes images/install/T01_CallerID_line_W_press.png | Bin 0 -> 2808 bytes images/install/T01_CallerID_line_h.png | Bin 0 -> 2807 bytes images/install/T01_CallerID_line_h_press.png | Bin 0 -> 2807 bytes images/install/T01_CallerID_normal.png | Bin 0 -> 2879 bytes images/install/T01_CallerID_press.png | Bin 0 -> 2845 bytes images/install/T01_btn_apps_close.png | Bin 0 -> 3262 bytes images/install/T01_btn_optiontray.png | Bin 0 -> 3151 bytes images/install/T01_control_icon_apps.png | Bin 0 -> 1232 bytes images/install/download_invert.png | Bin 0 -> 3885 bytes images/install/faviconDefault.png | Bin 0 -> 5793 bytes images/install/folder.png | Bin 0 -> 2834 bytes images/install/globe.png | Bin 0 -> 2776 bytes images/install/lock.png | Bin 0 -> 3025 bytes images/install/reader_invert.png | Bin 0 -> 1585 bytes images/install/rss_invert.png | Bin 0 -> 2160 bytes images/install/upOneLevel.png | Bin 0 -> 5214 bytes images/multi-window/I01_Btn_delete_01.png | Bin 0 -> 5134 bytes images/multi-window/I01_Btn_delete_01_press.png | Bin 0 -> 5153 bytes packaging/org.tizen.browser.spec | 307 ++ po/CMakeLists.txt | 24 + po/POTFILES.in | 6 + po/de_DE.po | 621 ++++ po/el_GR.po | 621 ++++ po/en.po | 621 ++++ po/es_ES.po | 621 ++++ po/fr_FR.po | 621 ++++ po/it_IT.po | 621 ++++ po/ja_JP.po | 621 ++++ po/ko_KR.po | 621 ++++ po/nl_NL.po | 621 ++++ po/pt_PT.po | 621 ++++ po/ru_RU.po | 621 ++++ po/tr_TR.po | 621 ++++ po/update-po.sh | 57 + po/zh_CN.po | 621 ++++ po/zh_HK.po | 621 ++++ po/zh_TW.po | 621 ++++ resource/default_0 | Bin 0 -> 13719 bytes resource/default_1 | Bin 0 -> 4503 bytes resource/default_2 | Bin 0 -> 15223 bytes resource/default_3 | Bin 0 -> 16191 bytes resource/org.tizen.browser.desktop.in | 29 + resource/org.tizen.browser.png | Bin 0 -> 30312 bytes .../browser-add-to-bookmark-view.cpp | 539 ++++ .../browser-add-to-bookmark-view.h | 87 + src/browser-bookmark/browser-bookmark-view.cpp | 2128 ++++++++++++++ src/browser-bookmark/browser-bookmark-view.h | 153 + src/browser-bookmark/browser-new-folder-view.cpp | 297 ++ src/browser-bookmark/browser-new-folder-view.h | 56 + .../browser-select-folder-view.cpp | 285 ++ src/browser-bookmark/browser-select-folder-view.h | 55 + src/browser-class.cpp | 991 +++++++ src/browser-class.h | 84 + src/browser-common-view.cpp | 419 +++ src/browser-common-view.h | 81 + src/browser-data-manager.cpp | 327 +++ src/browser-data-manager.h | 114 + src/browser-extension/browser-download-manager.cpp | 358 +++ src/browser-extension/browser-download-manager.h | 65 + src/browser-extension/browser-exscheme-handler.cpp | 225 ++ src/browser-extension/browser-exscheme-handler.h | 58 + src/browser-extension/browser-find-word.cpp | 298 ++ src/browser-extension/browser-find-word.h | 69 + .../browser-notification-manager.cpp | 483 +++ .../browser-notification-manager.h | 61 + src/browser-extension/browser-picker-handler.cpp | 517 ++++ src/browser-extension/browser-picker-handler.h | 77 + src/browser-history/browser-history-layout.cpp | 1397 +++++++++ src/browser-history/browser-history-layout.h | 122 + src/browser-main.cpp | 459 +++ .../browser-multi-window-view.cpp | 1925 ++++++++++++ .../browser-multi-window-view.h | 130 + .../browser-authentication-manager.cpp | 174 ++ .../browser-authentication-manager.h | 44 + .../browser-certificate-manager.cpp | 263 ++ src/browser-security/browser-certificate-manager.h | 62 + .../browser-personal-data-manager.cpp | 180 ++ .../browser-personal-data-manager.h | 60 + .../browser-settings-accelerated-composition.cpp | 259 ++ .../browser-settings-accelerated-composition.h | 71 + src/browser-settings/browser-settings-class.cpp | 50 + src/browser-settings/browser-settings-class.h | 35 + .../browser-settings-clear-data-view.cpp | 508 ++++ .../browser-settings-clear-data-view.h | 96 + .../browser-settings-edit-homepage-view.cpp | 184 ++ .../browser-settings-edit-homepage-view.h | 48 + .../browser-settings-main-view.cpp | 1299 +++++++++ src/browser-settings/browser-settings-main-view.h | 201 ++ .../browser-settings-plugin-view.cpp | 184 ++ .../browser-settings-plugin-view.h | 66 + .../browser-settings-user-agent-view.cpp | 273 ++ .../browser-settings-user-agent-view.h | 69 + src/browser-utility.cpp | 300 ++ src/browser-utility.h | 51 + src/browser-view/browser-context-menu.cpp | 567 ++++ src/browser-view/browser-context-menu.h | 68 + src/browser-view/browser-predictive-history.cpp | 210 ++ src/browser-view/browser-predictive-history.h | 67 + src/browser-view/browser-view.cpp | 3067 ++++++++++++++++++++ src/browser-view/browser-view.h | 288 ++ src/browser-window.cpp | 46 + src/browser-window.h | 47 + src/data-network/browser-network-manager.cpp | 121 + src/data-network/browser-network-manager.h | 36 + src/database/browser-bookmark-db.cpp | 901 ++++++ src/database/browser-bookmark-db.h | 80 + src/database/browser-history-db.cpp | 482 +++ src/database/browser-history-db.h | 64 + src/database/browser-notification-db.cpp | 312 ++ src/database/browser-notification-db.h | 50 + src/database/browser-personal-data-db.cpp | 241 ++ src/database/browser-personal-data-db.h | 56 + src/database/browser-user-agent-db.cpp | 101 + src/database/browser-user-agent-db.h | 44 + src/include/browser-config.h | 233 ++ src/include/browser-dlog.h | 76 + src/include/browser-string.h | 226 ++ 261 files changed, 46163 insertions(+) create mode 100755 CMakeLists.txt create mode 100755 INSTALL create mode 100755 LICENSE create mode 100755 debian/changelog create mode 100755 debian/compat create mode 100755 debian/control create mode 100755 debian/dirs create mode 100755 debian/docs create mode 100755 debian/org.tizen.browser.install.in create mode 100755 debian/org.tizen.browser.postinst create mode 100755 debian/rules create mode 100755 edc/browser-bookmark-view.edc create mode 100755 edc/browser-define.edc create mode 100755 edc/browser-macro.edc create mode 100755 edc/browser-multi-window.edc create mode 100755 edc/browser-naviframe.edc create mode 100755 edc/browser-picker-layout.edc create mode 100755 edc/browser-predictive-history.edc create mode 100755 edc/browser-settings.edc create mode 100755 edc/browser-view-control-bar.edc create mode 100755 edc/browser-view-find-word-layout.edc create mode 100755 edc/browser-view-main.edc create mode 100755 edc/browser-view-progressbar.edc create mode 100755 edc/browser-view-url-layout.edc create mode 100755 html/54_bg.jpg create mode 100755 html/54_bg.png create mode 100755 html/EmbedInHtml.html create mode 100755 html/default_page.html create mode 100755 html/logo.png create mode 100755 html/notFoundPage.html create mode 100755 images/bookmarks/I01_Nocontents_Bookmarks.png create mode 100755 images/browser-view-images/00_winset_control_top_arrow.png create mode 100755 images/browser-view-images/00_zoom_in.png create mode 100755 images/browser-view-images/00_zoom_in_disable.png create mode 100755 images/browser-view-images/00_zoom_in_press.png create mode 100755 images/browser-view-images/00_zoom_out.png create mode 100755 images/browser-view-images/00_zoom_out_disable.png create mode 100755 images/browser-view-images/00_zoom_out_press.png create mode 100755 images/browser-view-images/41_browser_new_win_bg.png create mode 100755 images/browser-view-images/I01_btn_back.png create mode 100755 images/browser-view-images/I01_btn_prev.png create mode 100755 images/browser-view-images/I01_btn_prev_press.png create mode 100755 images/browser-view-images/I01_control_top_arrow.png create mode 100755 images/browser-view-images/I01_title_bg.png create mode 100755 images/browser-view-images/controlbar/00_winset_tabbar_press.png create mode 100755 images/browser-view-images/controlbar/00_winset_tabbar_press_left.png create mode 100755 images/browser-view-images/controlbar/00_winset_tabbar_press_right.png create mode 100755 images/browser-view-images/controlbar/I01_bookmark_tabbar_focus.png create mode 100755 images/browser-view-images/controlbar/I01_bookmark_tabbar_focus_left.png create mode 100755 images/browser-view-images/controlbar/I01_bookmark_tabbar_focus_right.png create mode 100755 images/browser-view-images/controlbar/I01_control_toolbar_press.png create mode 100755 images/browser-view-images/controlbar/I01_tabbar_bg.png create mode 100755 images/browser-view-images/controlbar/I01_tabbar_focus.png create mode 100755 images/browser-view-images/controlbar/I01_toolbar_bg.png create mode 100755 images/browser-view-images/controlbar/I01_toolbar_press.png create mode 100755 images/browser-view-images/most-visited/41_browser_favicon_box_press.png create mode 100755 images/browser-view-images/most-visited/I01_Btn_delete.png create mode 100755 images/browser-view-images/most-visited/I01_favicon_bg.png create mode 100755 images/browser-view-images/most-visited/I01_favicon_box.png create mode 100755 images/browser-view-images/naviframe_optionheader.png create mode 100755 images/browser-view-images/naviframe_optionheader_arrow.png create mode 100755 images/browser-view-images/progressbar/00_search_input_field_bg_progress.png create mode 100755 images/browser-view-images/progressbar/processing_ani00.png create mode 100755 images/browser-view-images/progressbar/processing_ani01.png create mode 100755 images/browser-view-images/progressbar/processing_ani02.png create mode 100755 images/browser-view-images/progressbar/processing_ani03.png create mode 100755 images/browser-view-images/progressbar/processing_ani04.png create mode 100755 images/browser-view-images/progressbar/processing_ani05.png create mode 100755 images/browser-view-images/progressbar/processing_ani06.png create mode 100755 images/browser-view-images/progressbar/processing_ani07.png create mode 100755 images/browser-view-images/progressbar/progressbar.png create mode 100755 images/browser-view-images/reader/I01_popup_bg.png create mode 100755 images/browser-view-images/reader/I01_popup_bottom_bg.png create mode 100755 images/browser-view-images/url-layout/00_EditField_clear.png create mode 100755 images/browser-view-images/url-layout/00_search_input_field_bg.png create mode 100755 images/browser-view-images/url-layout/00_search_input_field_bg_black.png create mode 100755 images/browser-view-images/url-layout/41_browser_search_icon.png create mode 100755 images/browser-view-images/url-layout/41_browser_search_icon_refresh.png create mode 100755 images/browser-view-images/url-layout/I01_Icons_RSS.png create mode 100755 images/browser-view-images/url-layout/I01_Icons_http.png create mode 100755 images/browser-view-images/url-layout/I01_control_top_bg.png create mode 100755 images/browser-view-images/url-layout/I01_icon_find_word.png create mode 100755 images/browser-view-images/url-layout/icon_stop.png create mode 100755 images/browser-view-images/url-layout/naviframe_optionheader.png create mode 100755 images/browser-view-images/url-layout/rss.png create mode 100755 images/favicons/WebpageIcons.db create mode 100755 images/favicons/WebpageIcons.db-journal create mode 100755 images/icon/00_close_icon.png create mode 100755 images/icon/I01_Back_btn_normal.png create mode 100755 images/icon/I01_Back_btn_press.png create mode 100755 images/icon/I01_Option_header_bt.png create mode 100755 images/icon/I01_Option_header_bt_dim.png create mode 100755 images/icon/I01_Option_header_bt_press.png create mode 100755 images/icon/I01_btn_back.png create mode 100755 images/icon/I01_btn_normal.png create mode 100755 images/icon/I01_btn_press.png create mode 100755 images/icon/I01_button_04_press.png create mode 100755 images/icon/I01_control_btn_normal.png create mode 100755 images/icon/I01_controlbar_icon_favorite.png create mode 100755 images/icon/I01_controlbar_icon_multiview.png create mode 100755 images/icon/I01_fit_screen.png create mode 100755 images/icon/I01_picker_arrow_left.png create mode 100755 images/icon/I01_picker_arrow_right.png create mode 100755 images/icon/I01_title_btn.png create mode 100755 images/icon/I01_title_btn_press.png create mode 100755 images/icon/I01_title_icon_multiview.png create mode 100755 images/icon/I01_title_icon_multiview_press.png create mode 100755 images/icon/backward_1.png create mode 100755 images/icon/backward_2.png create mode 100755 images/install/00_brightness_left.png create mode 100755 images/install/00_brightness_right.png create mode 100755 images/install/01_controlbar_icon_back.png create mode 100755 images/install/01_controlbar_icon_compose.png create mode 100755 images/install/01_controlbar_icon_create_folder.png create mode 100755 images/install/01_controlbar_icon_delete.png create mode 100755 images/install/01_controlbar_icon_expand.png create mode 100755 images/install/01_controlbar_icon_multiview.png create mode 100755 images/install/01_controlbar_icon_multiview_02.png create mode 100755 images/install/01_controlbar_icon_multiview_03.png create mode 100755 images/install/01_controlbar_icon_multiview_04.png create mode 100755 images/install/01_controlbar_icon_multiview_05.png create mode 100755 images/install/01_controlbar_icon_multiview_06.png create mode 100755 images/install/01_controlbar_icon_multiview_07.png create mode 100755 images/install/01_controlbar_icon_multiview_08.png create mode 100755 images/install/01_controlbar_icon_multiview_09.png create mode 100755 images/install/01_controlbar_icon_send.png create mode 100755 images/install/01_controllbar_icon_close.png create mode 100755 images/install/01_header_icon_add.png create mode 100755 images/install/01_header_icon_cancel.png create mode 100755 images/install/01_header_icon_delete.png create mode 100755 images/install/01_header_icon_done.png create mode 100755 images/install/01_header_icon_edit.png create mode 100755 images/install/01_header_icon_others.png create mode 100755 images/install/41_browser_search_icon.png create mode 100755 images/install/I01_Icons_http.png create mode 100755 images/install/I01_controlbar_icon_Play.png create mode 100755 images/install/I01_controlbar_icon_backward.png create mode 100755 images/install/I01_controlbar_icon_bookmark.png create mode 100755 images/install/I01_controlbar_icon_create.png create mode 100755 images/install/I01_controlbar_icon_more.png create mode 100755 images/install/I01_icon_upper_folder.png create mode 100755 images/install/I01_icon_upper_folder_press.png create mode 100755 images/install/T01_CallerID_hold.png create mode 100755 images/install/T01_CallerID_line_W.png create mode 100755 images/install/T01_CallerID_line_W_press.png create mode 100755 images/install/T01_CallerID_line_h.png create mode 100755 images/install/T01_CallerID_line_h_press.png create mode 100755 images/install/T01_CallerID_normal.png create mode 100755 images/install/T01_CallerID_press.png create mode 100755 images/install/T01_btn_apps_close.png create mode 100755 images/install/T01_btn_optiontray.png create mode 100755 images/install/T01_control_icon_apps.png create mode 100755 images/install/download_invert.png create mode 100755 images/install/faviconDefault.png create mode 100755 images/install/folder.png create mode 100755 images/install/globe.png create mode 100755 images/install/lock.png create mode 100755 images/install/reader_invert.png create mode 100755 images/install/rss_invert.png create mode 100755 images/install/upOneLevel.png create mode 100755 images/multi-window/I01_Btn_delete_01.png create mode 100755 images/multi-window/I01_Btn_delete_01_press.png create mode 100644 packaging/org.tizen.browser.spec create mode 100755 po/CMakeLists.txt create mode 100755 po/POTFILES.in create mode 100755 po/de_DE.po create mode 100755 po/el_GR.po create mode 100755 po/en.po create mode 100755 po/es_ES.po create mode 100755 po/fr_FR.po create mode 100755 po/it_IT.po create mode 100755 po/ja_JP.po create mode 100755 po/ko_KR.po create mode 100755 po/nl_NL.po create mode 100755 po/pt_PT.po create mode 100755 po/ru_RU.po create mode 100755 po/tr_TR.po create mode 100755 po/update-po.sh create mode 100755 po/zh_CN.po create mode 100755 po/zh_HK.po create mode 100755 po/zh_TW.po create mode 100755 resource/default_0 create mode 100755 resource/default_1 create mode 100755 resource/default_2 create mode 100755 resource/default_3 create mode 100755 resource/org.tizen.browser.desktop.in create mode 100755 resource/org.tizen.browser.png create mode 100755 src/browser-bookmark/browser-add-to-bookmark-view.cpp create mode 100755 src/browser-bookmark/browser-add-to-bookmark-view.h create mode 100755 src/browser-bookmark/browser-bookmark-view.cpp create mode 100755 src/browser-bookmark/browser-bookmark-view.h create mode 100755 src/browser-bookmark/browser-new-folder-view.cpp create mode 100755 src/browser-bookmark/browser-new-folder-view.h create mode 100755 src/browser-bookmark/browser-select-folder-view.cpp create mode 100755 src/browser-bookmark/browser-select-folder-view.h create mode 100755 src/browser-class.cpp create mode 100755 src/browser-class.h create mode 100755 src/browser-common-view.cpp create mode 100755 src/browser-common-view.h create mode 100755 src/browser-data-manager.cpp create mode 100755 src/browser-data-manager.h create mode 100755 src/browser-extension/browser-download-manager.cpp create mode 100755 src/browser-extension/browser-download-manager.h create mode 100755 src/browser-extension/browser-exscheme-handler.cpp create mode 100755 src/browser-extension/browser-exscheme-handler.h create mode 100755 src/browser-extension/browser-find-word.cpp create mode 100755 src/browser-extension/browser-find-word.h create mode 100755 src/browser-extension/browser-notification-manager.cpp create mode 100755 src/browser-extension/browser-notification-manager.h create mode 100755 src/browser-extension/browser-picker-handler.cpp create mode 100755 src/browser-extension/browser-picker-handler.h create mode 100755 src/browser-history/browser-history-layout.cpp create mode 100755 src/browser-history/browser-history-layout.h create mode 100755 src/browser-main.cpp create mode 100755 src/browser-multi-window/browser-multi-window-view.cpp create mode 100755 src/browser-multi-window/browser-multi-window-view.h create mode 100755 src/browser-security/browser-authentication-manager.cpp create mode 100755 src/browser-security/browser-authentication-manager.h create mode 100755 src/browser-security/browser-certificate-manager.cpp create mode 100755 src/browser-security/browser-certificate-manager.h create mode 100755 src/browser-security/browser-personal-data-manager.cpp create mode 100755 src/browser-security/browser-personal-data-manager.h create mode 100755 src/browser-settings/browser-settings-accelerated-composition.cpp create mode 100755 src/browser-settings/browser-settings-accelerated-composition.h create mode 100755 src/browser-settings/browser-settings-class.cpp create mode 100755 src/browser-settings/browser-settings-class.h create mode 100755 src/browser-settings/browser-settings-clear-data-view.cpp create mode 100755 src/browser-settings/browser-settings-clear-data-view.h create mode 100755 src/browser-settings/browser-settings-edit-homepage-view.cpp create mode 100755 src/browser-settings/browser-settings-edit-homepage-view.h create mode 100755 src/browser-settings/browser-settings-main-view.cpp create mode 100755 src/browser-settings/browser-settings-main-view.h create mode 100755 src/browser-settings/browser-settings-plugin-view.cpp create mode 100755 src/browser-settings/browser-settings-plugin-view.h create mode 100755 src/browser-settings/browser-settings-user-agent-view.cpp create mode 100755 src/browser-settings/browser-settings-user-agent-view.h create mode 100755 src/browser-utility.cpp create mode 100755 src/browser-utility.h create mode 100755 src/browser-view/browser-context-menu.cpp create mode 100755 src/browser-view/browser-context-menu.h create mode 100755 src/browser-view/browser-predictive-history.cpp create mode 100755 src/browser-view/browser-predictive-history.h create mode 100755 src/browser-view/browser-view.cpp create mode 100755 src/browser-view/browser-view.h create mode 100755 src/browser-window.cpp create mode 100755 src/browser-window.h create mode 100755 src/data-network/browser-network-manager.cpp create mode 100755 src/data-network/browser-network-manager.h create mode 100755 src/database/browser-bookmark-db.cpp create mode 100755 src/database/browser-bookmark-db.h create mode 100755 src/database/browser-history-db.cpp create mode 100755 src/database/browser-history-db.h create mode 100755 src/database/browser-notification-db.cpp create mode 100755 src/database/browser-notification-db.h create mode 100755 src/database/browser-personal-data-db.cpp create mode 100755 src/database/browser-personal-data-db.h create mode 100755 src/database/browser-user-agent-db.cpp create mode 100755 src/database/browser-user-agent-db.h create mode 100755 src/include/browser-config.h create mode 100755 src/include/browser-dlog.h create mode 100755 src/include/browser-string.h diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100755 index 0000000..d1418c5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,297 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(browser CXX) + +SET(SRCS + src/browser-class.cpp + src/browser-window.cpp + src/browser-main.cpp + src/browser-common-view.cpp + src/browser-data-manager.cpp + src/browser-utility.cpp + src/browser-extension/browser-find-word.cpp + src/browser-extension/browser-download-manager.cpp + src/browser-extension/browser-exscheme-handler.cpp + src/browser-extension/browser-picker-handler.cpp + src/browser-extension/browser-notification-manager.cpp + src/browser-security/browser-personal-data-manager.cpp + src/browser-security/browser-authentication-manager.cpp + src/browser-security/browser-certificate-manager.cpp + src/browser-view/browser-view.cpp + src/browser-view/browser-predictive-history.cpp + src/browser-view/browser-context-menu.cpp + src/browser-multi-window/browser-multi-window-view.cpp + src/data-network/browser-network-manager.cpp + src/browser-bookmark/browser-bookmark-view.cpp + src/browser-bookmark/browser-add-to-bookmark-view.cpp + src/browser-bookmark/browser-new-folder-view.cpp + src/browser-bookmark/browser-select-folder-view.cpp + src/browser-history/browser-history-layout.cpp + src/database/browser-bookmark-db.cpp + src/database/browser-user-agent-db.cpp + src/database/browser-history-db.cpp + src/database/browser-personal-data-db.cpp + src/database/browser-notification-db.cpp + src/browser-settings/browser-settings-class.cpp + src/browser-settings/browser-settings-main-view.cpp + src/browser-settings/browser-settings-edit-homepage-view.cpp + src/browser-settings/browser-settings-clear-data-view.cpp + src/browser-settings/browser-settings-plugin-view.cpp + src/browser-settings/browser-settings-user-agent-view.cpp + src/browser-settings/browser-settings-accelerated-composition.cpp +) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/include) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/database) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/data-network) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-bookmark) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-view) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-multi-window) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-history) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-settings) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-extension) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src/browser-security) + +# set pkg-config modules +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED + eina ecore evas ecore-evas edbus elementary + appcore-efl dlog db-util utilX ui-gadget tapi sensor + secure-storage libsoup-2.4 libxml-2.0 libssl elm-webview notification + ecore-input ecore-imf edje cairo ecore-x ewebkit appsvc devman + capi-appfw-app-manager capi-appfw-application capi-web-url-download devman_haptic +) + +FIND_LIBRARY(LIB_GNUTLS gnutls) +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + +# set extra defines +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(BINDIR "${PREFIX}/bin") +SET(RESDIR "${PREFIX}/res") +SET(DATADIR "${PREFIX}/data") +# res (read-only) +SET(EDJE_DIR "${RESDIR}/edje/") +SET(LOCALE_DIR "${RESDIR}/locale/") +SET(IMAGES_DIR "${RESDIR}/images/") +SET(HTML_DIR "${RESDIR}/html/") +SET(ICON_DIR "${RESDIR}/icons/default/small/") +# data +SET(XML_DIR "${DATADIR}/xml/") +SET(OPML_DIR "${DATADIR}/opml/") +SET(DATABASE_DIR "${DATADIR}/db/") +SET(SCREENSHOTS_DIR "${DATADIR}/screenshots/") +SET(CERTIFICATES_TMP_FILE "${DATADIR}/certificates.crt") +SET(WEBKIT_SOUP_CACHE_DIR "${DATADIR}/cache/") +# other defines +SET(CERTIFICATES_DIR "/opt/etc/ssl/certs/") +SET(DATABASENAME ".browser.db") +SET(HISTORY_DATABASENAME ".browser-history.db") +SET(CREDENTIAL_DATABASENAME ".browser-credential.db") +SET(SPEEDDIAL_DATABASENAME ".browser-speeddial.db") +SET(COOKIES_DATABASENAME ".browser-cookies.db") +SET(DESKTOP_DIR "/opt/share/applications") +ADD_DEFINITIONS( + -DPROJECT_NAME=\"${PROJECT_NAME}\" + -DDATABASENAME=\"${DATABASENAME}\" + -DHISTORY_DATABASENAME=\"${HISTORY_DATABASENAME}\" + -DCREDENTIAL_DATABASENAME=\"${CREDENTIAL_DATABASENAME}\" + -DSPEEDDIAL_DATABASENAME=\"${SPEEDDIAL_DATABASENAME}\" + -DCOOKIES_DATABASENAME=\"${COOKIES_DATABASENAME}\" + -DEDJE_DIR=\"${EDJE_DIR}\" + -DLOCALEDIR=\"${LOCALE_DIR}\" + -DIMAGES_DIR=\"${IMAGES_DIR}\" + -DSCREENSHOTS_DIR=\"${SCREENSHOTS_DIR}\" + -DHTML_DIR=\"${HTML_DIR}\" + -DXML_DIR=\"${XML_DIR}\" + -DOPML_DIR=\"${OPML_DIR}\" + -DCERTIFICATES_DIR=\"${CERTIFICATES_DIR}\" + -DCERTIFICATES_TMP_FILE=\"${CERTIFICATES_TMP_FILE}\" + -DDATABASE_DIR=\"${DATABASE_DIR}\" + -DWEBKIT_SOUP_CACHE_DIR=\"${WEBKIT_SOUP_CACHE_DIR}\" + -DLOG_TAG=\"org.tizen.browser\" + -D__BUILD__ +) + +# set flags +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g") +SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-D_TARGET") + MESSAGE("add -D_TARGET") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpie") + #SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mabi=aapcs-linux -march=armv7-a -msoft-float") + SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp") + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") +ENDIF("${ARCH}" STREQUAL "arm") + +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -Wl,--hash-style=both") + +# real make?? +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ${LIB_GNUTLS}) +#TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} ewebkit) + +# browser-define.edj +ADD_CUSTOM_TARGET(browser-define.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-define.edc + ${CMAKE_BINARY_DIR}/edc/browser-define.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-define.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-define.edj) + +# browser-view-progressbar.edj +ADD_CUSTOM_TARGET(browser-view-progressbar.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-view-progressbar.edc + ${CMAKE_BINARY_DIR}/edc/browser-view-progressbar.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-progressbar.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-progressbar.edj) + +# browser-naviframe.edj +ADD_CUSTOM_TARGET(browser-naviframe.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-naviframe.edc + ${CMAKE_BINARY_DIR}/edc/browser-naviframe.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-naviframe.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-naviframe.edj) + +# browser-view-main.edj +ADD_CUSTOM_TARGET(browser-view-main.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-view-main.edc + ${CMAKE_BINARY_DIR}/edc/browser-view-main.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-main.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-main.edj) + +# browser-view-url-layout.edj +ADD_CUSTOM_TARGET(browser-view-url-layout.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-view-url-layout.edc + ${CMAKE_BINARY_DIR}/edc/browser-view-url-layout.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-url-layout.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-url-layout.edj) + +# browser-view-find-word-layout.edj +ADD_CUSTOM_TARGET(browser-view-find-word-layout.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-view-find-word-layout.edc + ${CMAKE_BINARY_DIR}/edc/browser-view-find-word-layout.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-find-word-layout.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-find-word-layout.edj) + +# browser-view-control-bar.edj +ADD_CUSTOM_TARGET(browser-view-control-bar.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-view-control-bar.edc + ${CMAKE_BINARY_DIR}/edc/browser-view-control-bar.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-view-control-bar.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-view-control-bar.edj) + +# browser-bookmark-view.edj +ADD_CUSTOM_TARGET(browser-bookmark-view.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-bookmark-view.edc + ${CMAKE_BINARY_DIR}/edc/browser-bookmark-view.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-bookmark-view.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-bookmark-view.edj) + +# browser-multi-window.edj +ADD_CUSTOM_TARGET(browser-multi-window.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-multi-window.edc + ${CMAKE_BINARY_DIR}/edc/browser-multi-window.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-multi-window.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-multi-window.edj) + +# browser-predictive-history.edj +ADD_CUSTOM_TARGET(browser-predictive-history.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-predictive-history.edc + ${CMAKE_BINARY_DIR}/edc/browser-predictive-history.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-predictive-history.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-predictive-history.edj) + +# browser-settings.edj +ADD_CUSTOM_TARGET(browser-settings.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-settings.edc + ${CMAKE_BINARY_DIR}/edc/browser-settings.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-settings.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-settings.edj) + +# browser-picker-layout.edj +ADD_CUSTOM_TARGET(browser-picker-layout.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edc/browser-picker-layout.edc + ${CMAKE_BINARY_DIR}/edc/browser-picker-layout.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edc/browser-picker-layout.edc + ) +ADD_DEPENDENCIES(${PROJECT_NAME} browser-picker-layout.edj) + +# install browser +INSTALL(PROGRAMS ${PROJECT_NAME} DESTINATION bin) +# install edj +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-define.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-naviframe.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-main.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-progressbar.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-url-layout.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-find-word-layout.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-view-control-bar.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-bookmark-view.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-multi-window.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-predictive-history.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-settings.edj DESTINATION ${EDJE_DIR}) +INSTALL(FILES ${CMAKE_BINARY_DIR}/edc/browser-picker-layout.edj DESTINATION ${EDJE_DIR}) + +# install images +INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/images/install/ DESTINATION ${IMAGES_DIR} + FILES_MATCHING + PATTERN "*.png" +) +# install html files +INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/html/ DESTINATION ${HTML_DIR} + FILES_MATCHING PATTERN "*.html" + PATTERN "*.png" +) +# install empty directories +INSTALL(DIRECTORY DESTINATION ${DATABASE_DIR}) +INSTALL(DIRECTORY DESTINATION ${XML_DIR}) +INSTALL(DIRECTORY DESTINATION ${OPML_DIR}) +INSTALL(DIRECTORY DESTINATION ${SCREENSHOTS_DIR}) +INSTALL(DIRECTORY DESTINATION ${WEBKIT_SOUP_CACHE_DIR}) + +# install desktop file & icon +CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/resource/org.tizen.${PROJECT_NAME}.desktop.in org.tizen.${PROJECT_NAME}.desktop) +INSTALL(FILES ${CMAKE_BINARY_DIR}/org.tizen.${PROJECT_NAME}.desktop DESTINATION ${DESKTOP_DIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/org.tizen.${PROJECT_NAME}.png DESTINATION ${ICON_DIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_0 DESTINATION ${SCREENSHOTS_DIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_1 DESTINATION ${SCREENSHOTS_DIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_2 DESTINATION ${SCREENSHOTS_DIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/resource/default_3 DESTINATION ${SCREENSHOTS_DIR}) + +# i18n +ADD_SUBDIRECTORY(po) diff --git a/INSTALL b/INSTALL new file mode 100755 index 0000000..906443a --- /dev/null +++ b/INSTALL @@ -0,0 +1,33 @@ +1. make the build directory + + ex) + + $ mkdir build + + +2. change the working directory to the build directory + + ex) + + $ cd build + + +3. run 'cmake' + + $ cmake ${SOURCE_DIR} -DCMAKE_INSTALL_PREFIX=/opt/apps/@@PKGNAME@@ + + ex) + + $ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/apps/org.tizen.browser + + or + + $ cmake .. + + +4. make & make install + + ex) + + $ make -j 2 && make install + diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..7ccb5b5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,75 @@ +Flora License + +Version 1.0, May, 2012 + +http://www.tizenopensource.org/license + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +"Tizen Certified Platform" shall mean a software platform that complies with the standards set forth in the Compatibility Definition Document and passes the Compatibility Test Suite as defined from time to time by the Tizen Technical Steering Group and certified by the Tizen Association or its designated agent. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work solely as incorporated into a Tizen Certified Platform, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work solely as incorporated into a Tizen Certified Platform to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof pursuant to the copyright license above, in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and + + 2. You must cause any modified files to carry prominent notices stating that You changed the files; and + + 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + 4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Flora License to your work + +To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Flora License, Version 1.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.tizenopensource.org/license + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/debian/changelog b/debian/changelog new file mode 100755 index 0000000..e6d7359 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,9 @@ +browser (0.1.14-0) unstable; urgency=low + + * Git : slp/plgs/b/browser + * Tag : browser_0.1.14-0 + + * Replace icon of browser(internet) + * update spec file + + -- Junghwan Kang Sat, 21 Apr 2012 20:05:28 +0900 diff --git a/debian/compat b/debian/compat new file mode 100755 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100755 index 0000000..46b6608 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: browser +Section: misc +Priority: extra +Maintainer: JungHwan Kang , Sangpyo Kim , Hyerim Bae , Inbum Chang +Uploaders: JungHwan Kang , Sangpyo Kim , Hyerim Bae , Inbum Chang +Build-Depends: debhelper (>= 5), libelm-webview-dev, libeina-dev(>=0.0.1), libwebkit-engine-dev, libappcore-common-dev, libappcore-efl-dev, libecore-dev(>=0.9), libevas-dev(>=0.1), libcairo2-dev, dlog-dev, libvconf-dev, libslp-db-util-dev, libaul-1-dev, libui-gadget-dev, libssl-dev, libss-client-dev, libxml2-dev, libbundle-dev, libsoup2.4-dev, libgnutls-dev, libedje-dev, libslp-tapi-dev, libslp-sensor-dev, libslp-utilx-dev, libappsvc-dev, libdevman-dev, libnotification-dev, capi-appfw-application, capi-appfw-app-manager-dev, capi-web-url-download-dev, libdevman-haptic-dev +Standards-Version: 0.1.0 + +Package: org.tizen.browser +Section: misc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: webkit browser with EFL + +Package: org.tizen.browser-dbg +Section: debug +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, org.tizen.browser (= ${Source-Version}) +Description: webkit browser with EFL (unstripped) diff --git a/debian/dirs b/debian/dirs new file mode 100755 index 0000000..ca882bb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100755 index 0000000..e69de29 diff --git a/debian/org.tizen.browser.install.in b/debian/org.tizen.browser.install.in new file mode 100755 index 0000000..971fab7 --- /dev/null +++ b/debian/org.tizen.browser.install.in @@ -0,0 +1,9 @@ +@PREFIX@/bin/* +@PREFIX@/res/* +@PREFIX@/res/locale/* +@PREFIX@/res/edje/* +@PREFIX@/res/icons/* +@PREFIX@/res/html/* +@PREFIX@/res/images/* +@PREFIX@/data/* +opt/share/applications/* diff --git a/debian/org.tizen.browser.postinst b/debian/org.tizen.browser.postinst new file mode 100755 index 0000000..5e3947d --- /dev/null +++ b/debian/org.tizen.browser.postinst @@ -0,0 +1,217 @@ +#!/bin/sh +if [ ${USER} == "root" ] +then + # Change file owner + chown -R 5000:5000 /opt/apps/org.tizen.browser/data +fi + +### Bookmark ### +if [ ! -f /opt/dbspace/.internet_bookmark.db ]; +then + sqlite3 /opt/dbspace/.internet_bookmark.db 'PRAGMA journal_mode=PERSIST; + CREATE TABLE bookmarks(id INTEGER PRIMARY KEY AUTOINCREMENT, type INTEGER, parent INTEGER, address, title, creationdate, sequence INTEGER, updatedate, editable INTEGER, accesscount INTEGER, favicon BLOB, favicon_length INTEGER, favicon_w INTEGER, favicon_h INTEGER); + create index idx_bookmarks_on_parent_type on bookmarks(parent, type); + + insert into bookmarks (type, parent, title, creationdate, editable, sequence, accesscount) values(1, 0, "Bookmarks", DATETIME("now"), 0, 1, 0);' +fi + +##### History ###### +if [ ! -f /opt/dbspace/.browser-history.db ]; +then + sqlite3 /opt/dbspace/.browser-history.db 'PRAGMA journal_mode=PERSIST; + CREATE TABLE history(id INTEGER PRIMARY KEY AUTOINCREMENT, address, title, counter INTEGER, visitdate DATETIME, favicon BLOB, favicon_length INTEGER, favicon_w INTEGER, favicon_h INTEGER);' +fi + +##### Notification ##### +if [ ! -f /opt/apps/org.tizen.browser/data/db/.browser-notification.db ]; +then + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser-notification.db 'PRAGMA journal_mode=PERSIST; + CREATE TABLE notification_table(id INTEGER PRIMARY KEY AUTOINCREMENT, notification INTEGER, title, body, url, iconURL, iconValidity INTEGER); + CREATE TABLE notification_permitted_domains(domain PRIMARY KEY);' +fi + +##### Password ###### +if [ ! -f /opt/apps/org.tizen.browser/data/db/.browser-credential.db ]; +then + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser-credential.db 'PRAGMA journal_mode=PERSIST; + create table passwords(id integer primary key autoincrement, address, login, password)' +fi + +#### USER AGENTS ##### +#initDB +#rm /opt/apps/org.tizen.browser/data/db/.browser.db +# create db +#FILE = /opt/apps/org.tizen.browser/data/db/.browser.db +if [ ! -f /opt/apps/org.tizen.browser/data/db/.browser.db ]; +then + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser.db 'PRAGMA journal_mode=PERSIST; + create table user_agents(name primary key, value)' + # mobile + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser.db 'PRAGMA journal_mode=PERSIST; + insert into user_agents values("Galaxy S", "Mozilla/5.0 (Linux; U; Android 2.3.7; en-gb; GT-I9000 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); + insert into user_agents values("Galaxy S II", "Mozilla/5.0 (Linux; U; Android 2.3.5; en-gb; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); + insert into user_agents values("SLP Galaxy", "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; GT-I9500 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); + insert into user_agents values("Tizen", "Mozilla/5.0 (Linux; U; Tizen 1.0; en-us) AppleWebKit/534.46 (KHTML, like Gecko) Mobile Tizen Browser/1.0"); + insert into user_agents values("Galaxy Nexus", "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; Galaxy Nexus Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) Mobile Safari/535.7"); + insert into user_agents values("Samsung", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-I9200/1.0; U; Linux/SLP/2.0; ko-kr) AppleWebKit/534.4 (KHTML, like Gecko) Dolfin/2.0 Mobile"); + insert into user_agents values("Samsung Dolfin", "SAMSUNG-GT-S8500/S8500XXJD2 SHP/VPP/R5 Dolfin/2.0 Nextreaming SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1"); + insert into user_agents values("Apple iPhone 3", "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/1A542a Safari/419.3"); + insert into user_agents values("Apple iPhone 4", "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8C148 Safari/6533.18.5"); + insert into user_agents values("Apple iOS 5", "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.0.2 Mobile/9A5259f Safari/6533.18.5"); + insert into user_agents values("Android 2.3 (Nexus One)", "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Nexus One Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); + insert into user_agents values("Opera Mobi", "Opera/9.80 (Windows NT 6.1; U; Edition IBIS; en) Presto/2.6.30 Version/10.63"); + insert into user_agents values("Samsung Bada", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/1.0; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B"); + insert into user_agents values("Orange TV", "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 OrangeAppliTV/2.3.9"); + insert into user_agents values("Chrome Browser for android", "Mozilla/5.0 (Linux; U; Android 4.0.1; ko-kr; Galaxy Nexus Build/ITL41F) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7"); + insert into user_agents values("MANGO(Nokia 800C)", "Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Nokia; 800C)"); + insert into user_agents values("System user agent", ""); + insert into user_agents values("Samsung Bada 2.0", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/1.0; U; Bada/2.0; en-us) AppleWebKit/534.20 (KHTML, like Gecko) Mobile WVGA SMM-MMS/1.2.0 OPN-B Dolfin/3.0")' + + # desktop + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser.db 'PRAGMA journal_mode=PERSIST; + insert into user_agents values("Samsung Desktop", "Mozilla/5.0 (U; Linux/SLP/2.0; ko-kr) AppleWebKit/533.1 (KHTML, like Gecko)"); + insert into user_agents values("Firefox 5", "Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"); + insert into user_agents values("Firefox 5 Fennec(Mobile)", "Mozilla/5.0 (Android; Linux armv7l; rv:5.0) Gecko/20110615 Firefox/5.0 Fennec/5.0"); + insert into user_agents values("Safari 5.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7"); + insert into user_agents values("Google Chrome 18.0", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.16 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.16"); + insert into user_agents values("Internet Explorer 9", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"); + insert into user_agents values("Galaxy Tab 10.1", "Mozilla/5.0 (Linux; U; Android 3.0.1; en-us; GT-P7100 Build/HRI83) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13"); + insert into user_agents values("iPad 2", "Mozilla/5.0 (iPad; U; CPU OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5")' +fi + +#init cookies DB +#rm /optpps/org.tizen.browser/data/db/dbspace/.browser-cookies.db +# create cookies db +#FILE = /opt/apps/org.tizen.browser/data/db/.browser-cookies.db + +if [ ! -f /opt/apps/org.tizen.browser/data/db/.browser-cookies.db ]; +then + sqlite3 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db 'CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, name TEXT, value TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEGER, isSecure INTEGER, isHttpOnly INTEGER);' + #test cookie + #sqlite3 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db 'INSERT INTO moz_cookies values(NULL, "cookies_name_test", "cookies_value_test", "www.cookies_test.com", "cookies_path_test", 2011, NULL, 1, 0);' +fi + +# Change db file owner & permission +if [ ${USER} == "root" ] +then + #chown root:root /opt/apps/org.tizen.browser/data/db + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser.db + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser.db-journal + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db-journal + chown :6002 /opt/dbspace/.browser-history.db + chown :6002 /opt/dbspace/.browser-history.db-journal + chown :6002 /opt/dbspace/.internet_bookmark.db + chown :6002 /opt/dbspace/.internet_bookmark.db-journal + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-credential.db + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-credential.db-journal + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-notification.db + chown :6002 /opt/apps/org.tizen.browser/data/db/.browser-notification.db-journal + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser.db + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser.db-journal + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-cookies.db-journal + chmod 666 /opt/dbspace/.browser-history.db + chmod 666 /opt/dbspace/.browser-history.db-journal + chmod 660 /opt/dbspace/.internet_bookmark.db + chmod 660 /opt/dbspace/.internet_bookmark.db-journal + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-credential.db + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-credential.db-journal + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-notification.db + chmod 660 /opt/apps/org.tizen.browser/data/db/.browser-notification.db-journal +fi + +################################################## +# set default vconf values +################################################## +if [ ${USER} == "root" ] +then + vconftool set -t bool db/browser/ShowMySitesGuide 1 -g 6514 + vconftool set -t string db/browser/Last/Url "" -g 6514 + vconftool set -t string db/browsersetting/LastVisitedUrl "" -g 6514 + vconftool set -t int db/browser/BrowserBrightnessLevel -1 -g 6514 +# Browser settings vconf values +# Set vconf values with -g/-u options + vconftool set -t string db/browsersetting/Homepage "Most visited sites" -g 6514 # "Most visited sites", "user set site", "Empty page" + vconftool set -t string db/browsersetting/HomepageMode "MOST_VISITED_SITES" -g 6514 + vconftool set -t string db/browsersetting/UserAgent "Tizen" -g 6514 + vconftool set -t string db/browsersetting/UserHomepage "www.tizen.org" -g 6514 # default site is www.tizen.org + vconftool set -t string db/browsersetting/DefaultViewLevel "Readable" -g 6514 # "Readable", "Fit to width" + vconftool set -t bool db/browsersetting/EnableLandscape 1 -g 6514 + vconftool set -t bool db/browsersetting/RunJavaScript 1 -g 6514 + vconftool set -t bool db/browsersetting/DisplayImages 1 -g 6514 + vconftool set -t bool db/browsersetting/BlockPopup 1 -g 6514 + vconftool set -t string db/browsersetting/AutoSaveIDPassword "Always ask" -g 6514 # "On", "Off" + vconftool set -t string db/browsersetting/SaveIDPassword "ALWAYS_ASK" -g 6514 # "On", "Off" + vconftool set -t string db/browsersetting/CustomUserAgent "" -g 6514 + # set default vconf value for reader + vconftool set -t bool db/browsersetting/RunReader 1 -g 6514 + vconftool set -t int db/browsersetting/FontSize 16 -g 6514 + # set default vconf value for plugins + vconftool set -t bool db/browsersetting/RunPlugins 1 -g 6514 + vconftool set -t bool db/browsersetting/RunFlash 0 -g 6514 + vconftool set -t bool db/browsersetting/PauseFlash 1 -g 6514 + # set search vconf + vconftool set -t string db/browsersetting/SearchEngine "Google" -g 6514 # "Google", "Yahoo", "Bing" + vconftool set -t string db/browsersetting/SearchUrl "http://www.google.com/m/search?q=" -g 6514 + vconftool set -t bool db/browsersetting/SearchCaseSensitive 0 -g 6514 + # privacy + vconftool set -t string db/browsersetting/CookieOption "Accept all" -g 6514 + vconftool set -t bool db/browsersetting/CookieOptionInt 1 -g 6514 + # performance + vconftool set -t bool db/browsersetting/FastRendering 1 -g 6514 + vconftool set -t bool db/browsersetting/LargeRenderingBuffer 1 -g 6514 + vconftool set -t bool db/browsersetting/AcceleratedComposition 1 -g 6514 + vconftool set -t bool db/browsersetting/SamsungAppsInstall 0 -g 6514 + vconftool set -t bool db/browsersetting/ExternalVideoPlayer 0 -g 6514 # if the AcceleratedComposition is 0, this must be 0 + vconftool set -t bool db/browsersetting/CompositedRenderLayerBorders 0 -g 6514 # if the AcceleratedComposition is 0, this must be 0 + vconftool set -t bool db/browsersetting/PhysicsEngine 0 -g 6514 + vconftool set -t bool db/browsersetting/RecordingSurface 0 -g 6514 + vconftool set -t bool db/browsersetting/RemoteWebInspector 0 -g 6514 + vconftool set -t bool db/browsersetting/DemoSetting 0 -g 6514 + vconftool set -t bool db/browsersetting/DemoMode 0 -g 6514 +else + vconftool set -t bool db/browser/ShowMySitesGuide 1 + vconftool set -t string db/browser/Last/Url "" + vconftool set -t string db/browsersetting/LastVisitedUrl "" + vconftool set -t int db/browser/BrowserBrightnessLevel -1 +# Browser settings vconf values +# Set without -g, -u options + vconftool set -t string db/browsersetting/Homepage "Recently visited site" # "Recently visited site", "user set site", "Empty page" + vconftool set -t string db/browsersetting/HomepageMode "MOST_VISITED_SITES" + vconftool set -t string db/browsersetting/UserHomepage "www.tizen.org" # default site is www.tizen.org + vconftool set -t string db/browsersetting/UserAgent "Tizen" + vconftool set -t string db/browsersetting/DefaultViewLevel "Readable" # "Readable", "Fit to width" + vconftool set -t bool db/browsersetting/EnableLandscape 1 + vconftool set -t bool db/browsersetting/RunJavaScript 1 + vconftool set -t bool db/browsersetting/DisplayImages 1 + vconftool set -t bool db/browsersetting/BlockPopup 1 + vconftool set -t string db/browsersetting/AutoSaveIDPassword "Always ask" # "On", "Off" + vconftool set -t string db/browsersetting/SaveIDPassword "ALWAYS_ASK" + vconftool set -t string db/browsersetting/CustomUserAgent "" + # set default vconf value for reader + vconftool set -t bool db/browsersetting/RunReader 1 + vconftool set -t int db/browsersetting/FontSize 16 + # set default vconf value for plugins + vconftool set -t bool db/browsersetting/RunPlugins 1 + vconftool set -t bool db/browsersetting/RunFlash 0 + # set search vconf + vconftool set -t string db/browsersetting/SearchEngine "Google" # "Google", "Yahoo", "Bing" + vconftool set -t string db/browsersetting/SearchUrl "http://www.google.com/m/search?q=" + vconftool set -t bool db/browsersetting/SearchCaseSensitive 0 + # privacy + vconftool set -t string db/browsersetting/CookieOption "Accept all" + vconftool set -t bool db/browsersetting/CookieOptionInt 1 + # performance + vconftool set -t bool db/browsersetting/FastRendering 1 + vconftool set -t bool db/browsersetting/LargeRenderingBuffer 1 + vconftool set -t bool db/browsersetting/AcceleratedComposition 1 + vconftool set -t bool db/browsersetting/SamsungAppsInstall 0 + vconftool set -t bool db/browsersetting/ExternalVideoPlayer 0 # if the AcceleratedComposition is 0, this must be 0 + vconftool set -t bool db/browsersetting/CompositedRenderLayerBorders 0 # if the AcceleratedComposition is 0, this must be 0 + vconftool set -t bool db/browsersetting/PhysicsEngine 0 + vconftool set -t bool db/browsersetting/RecordingSurface 0 + vconftool set -t bool db/browsersetting/RemoteWebInspector 0 + vconftool set -t bool db/browsersetting/DemoMode 0 + vconftool set -t bool db/browsersetting/DemoSetting 0 +fi diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ba9c4b8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,145 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS ?= -Wall +CXXFLAGS ?= -Wall +LDFLAGS ?= +PREFIX ?= /opt/apps/org.tizen.browser +RESDIR ?= /opt/apps/org.tizen.browser/res +DATADIR ?= /opt/apps/org.tizen.browser/data + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +CFLAGS += -fPIC +CXXFLAGS += -fPIC +LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DENABLE_GEOLOCATION_DIALOG=ON + + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/ncurses.sgml > ncurses.1 + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + cat $$f > $${f%.in}; \ + sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \ + sed -i -e "s#@RESDIR@#$(RESDIR)#g" $${f%.in}; \ + sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ + done + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -rf CMakeCache.txt + rm -rf CMakeFiles + rm -rf cmake_install.cmake + rm -rf Makefile + rm -rf install_manifest.txt + + rm -rf po/CMakeCache.txt + rm -rf po/CMakeFiles + rm -rf po/cmake_install.cmake + rm -rf po/Makefile + rm -rf po/install_manifest.txt + + rm -rf browser.edj + rm -rf browser_theme.edj + rm -rf ug_effect.edj + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + rm -f $${f%.in}; \ + done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ncurses. + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --list-missing --sourcedir=debian/tmp +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip --dbg-package=org.tizen.browser-dbg + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/edc/browser-bookmark-view.edc b/edc/browser-bookmark-view.edc new file mode 100755 index 0000000..75f011c --- /dev/null +++ b/edc/browser-bookmark-view.edc @@ -0,0 +1,456 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { + name: "bookmark/content_layout"; + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 255 255 255 255; + } + } + part { name: "elm.swallow.upperlist"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 0; + max: 0 0; + rel1 { relative: 0.0 0.0; to: bg; } + rel2 { relative: 1.0 0.0; to: bg; } + } + description { + state: "show_upper_folder" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 0 115; + max: 999999 115; + fixed: 0 1; + align: 0.0 0.0; + } + } + part { name: "upper_list_bottom_line"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + rel1 { relative: 0.0 1.0; to: "elm.swallow.upperlist"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.upperlist"; } + color: 200 200 200 255; + } + } + part { name: "elm.swallow.content_box"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 1.0; to_x: bg; to_y: "upper_list_bottom_line"; } + rel2 { relative: 1.0 1.0; to: bg; } + color: 0 255 0 255; + } + description { + state: "empty" 0.0; + inherit: "default" 0.0; + visible: 0; + min: 0 0; + max: 0 0; + } + } + part { name: "elm.swallow.no_content"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 1.0; to_x: bg; to_y: "upper_list_bottom_line"; } + rel2 { relative: 1.0 1.0; to: bg; } + color: 0 0 255 255; + } + description { + state: "empty" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { name: "hide,upper_folder"; + signal: "hide,upper_folder,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.upperlist"; + target: "upper_list_bottom_line"; + } + program { name: "show,upper_folder"; + signal: "show,upper_folder,signal"; + action: STATE_SET "show_upper_folder" 0.0; + target: "elm.swallow.upperlist"; + target: "upper_list_bottom_line"; + } + program { name: "show,content_box"; + signal: "show,content_box,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content_box"; + target: "elm.swallow.no_content"; + } + program { name: "hide,content_box"; + signal: "hide,content_box,signal"; + action: STATE_SET "empty" 0.0; + target: "elm.swallow.content_box"; + target: "elm.swallow.no_content"; + } + } + } + group { + name: "bookmark/main_layout"; + parts { + part { name: "elm.swallow.tabbar"; + mouse_events: 1; + repeat_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 117; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.0; } + } + } + part { name: "elm.swallow.content"; + mouse_events: 1; + repeat_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 1.0; to: "elm.swallow.tabbar"; } + rel2 { relative: 1.0 1.0; } + } + description { + state: "unvisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.swallow.content1"; + mouse_events: 1; + repeat_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; } + } + description { + state: "unvisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + } + programs { + program { name: "show,content0"; + signal: "show,content0,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content"; + after: "hide,content1"; + } + program { name: "hide,content1"; + action: STATE_SET "unvisible" 0.0; + target: "elm.swallow.content1"; + } + program { name: "show,content1"; + signal: "show,content1,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.content1"; + after: "hide,content0"; + } + program { name: "hide,content0"; + action: STATE_SET "unvisible" 0.0; + target: "elm.swallow.content"; + } + } + } + + group { + name: "bookmark/bookmark-folder-view-layout"; + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 100 100 100 255; + } + } + part { name: "elm.swallow.folderlist"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; to: bg; } + rel2 { relative: 1.0 0.0; to_x: bg; to_y: elm.swallow.controlbar; } + } + } + part { name: "elm.swallow.controlbar"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 96; + max: 800 96; + fixed: 0 1; + align: 0.0 1.0; + rel1 { relative: 0.0 1.0; to_x: bg; to_y: bg; } + rel2 { relative: 1.0 1.0; to_x: bg; to_y: bg; } + } + } + } + } + + group { name: "browser/popup_center_progressview"; + parts{ + part { name: "elm.title"; + type: TEXT; + scale : 1; + description { state: "default" 0.0; + max: 240 24; + text { + font: "SLP:style=Medium"; + size: 33; + min: 0 0; + align: 0.5 0.0; + } + color: 108 108 108 255; + align: 0.5 0.0; + rel1 { + relative: 0.0 0.0; + to: "elm.swallow.content"; + } + rel2 { + relative: 1.0 0.0; + to: "elm.swallow.content"; + } + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; + min: 0 105; + align: 0.5 0.8; + fixed: 1 0; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + part { name: "elm.text.left"; + type: TEXT; + scale : 1; + description { state: "default" 0.0; + max: 225 24; + text { + font: "SLP:style=Medium"; + size: 24; + min: 0 0; + align: 0.0 1.0; + } + color: 108 108 108 255; + align: 0.0 1.0; + rel1 { + relative: 0.0 0.0; + to: "elm.swallow.content"; + } + rel2 { + relative: 1.0 1.0; + to: "elm.swallow.content"; + } + } + } + part { name: "elm.text.right"; + type: TEXT; + scale : 1; + description { state: "default" 0.0; + max: 225 24; + text { + font: "SLP:style=Medium"; + size: 24; + min: 0 0; + align: 1.0 1.0; + } + color: 108 108 108 255; + align: 1.0 1.0; + rel1 { + relative: 0.0 0.0; + to: "elm.swallow.content"; + } + rel2 { + relative: 1.0 1.0; + to: "elm.swallow.content"; + } + } + } + } + } + +#define NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC 81 78 76 255 +#define NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC 42 +#define NOCONTENT_MIDDLE_PADDING_INC 54 +#define NOCONTENT_BASE_SEARCH_PADDING_INC 40 +#define NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC 0.282 0.294 +#define NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC 0.718 0.54 +#define NOCONTENT_BG_COLOR_INC 0 0 0 255 +#define NOCONTENT_TEXT_STYLE_BG_MIN_INC 0 120 + +group { + name: "elm/layout/no_bookmark/full"; + alias: "elm/no_bookmark/base/full"; + alias: "elm/no_bookmark/base/default"; + styles{ + style { name: "nocontent_style"; + base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0"; + tag: "br" "\n"; + tag: "hilight" "+ font=SLP:style=Bold"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "tab" "\t"; + } + } + images { + image: "bookmarks/I01_Nocontents_Bookmarks.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 200 200; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: NOCONTENT_BG_COLOR_INC; + } + } + part { name: "nocontents.image"; + description { state: "default" 0.0; + visible: 1; + align: 0.5 0.0; + rel1 { + relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; + to: "bg"; + } + rel2 { + relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; + to: "bg"; + } + image { + normal: "bookmarks/I01_Nocontents_Bookmarks.png"; + border: 1 1 1 1; + border_scale: 1; + } + aspect: 1.0 1.0; + aspect_preference: BOTH; + } + } + part { name: "middle.padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: 1 NOCONTENT_MIDDLE_PADDING_INC; + max: 1 NOCONTENT_MIDDLE_PADDING_INC; + align: 0.5 0.0; + rel1 { + relative: 0.0 1.0; + to_y: "nocontents.image"; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; + fixed: 0 1; + align: 0.5 0.5; + visible: 1; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + style: "nocontent_style"; + align: 0.5 0.5; + min: 0 0; + max: 0 1; + } + } + } + } +} + +} + diff --git a/edc/browser-define.edc b/edc/browser-define.edc new file mode 100755 index 0000000..bafc8f2 --- /dev/null +++ b/edc/browser-define.edc @@ -0,0 +1,871 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +/* define of buttons & icons */ + +collections { + group { + name: "elm/icon/browser_control_bar_multi_window/default"; + min: 56 56; + images.image: "icon/I01_title_icon_multiview.png" COMP; + images.image: "icon/I01_title_icon_multiview_press.png" COMP; + parts { + part { + name: "base"; + scale: 1; + description { + state: "default" 0.0; + min: 56 56; + max: 56 56; + fixed: 1 1; + aspect: 1.0 1.0; + aspect_preference: BOTH; + image.normal: "icon/I01_title_icon_multiview.png"; + } + description { + state: "pressed" 0.0; + min: 56 56; + max: 56 56; + fixed: 1 1; + aspect: 1.0 1.0; + aspect_preference: BOTH; + image.normal: "icon/I01_title_icon_multiview_press.png"; + } + } + part { name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; to: "base"; } + rel2 { relative: 1.0 1.0; to: "base"; } + align: 0.4 0.5; + color: 57 57 57 255; + text { + font: "SLP:style=Medium"; + size: 25; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "1" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "1"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "2" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "2"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "3" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "3"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "4" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "4"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "5" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "5"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "6" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "6"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "7" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "7"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "8" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "8"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + description { state: "9" 0.0; + inherit: "default" 0.0; + visible: 1; + text { + font: "SLP:style=Medium"; + size: 25; + text: "9"; + min: 0 0; + align: 0.5 0.4; + max: 1 0; + } + } + } + programs { + program { name: "hide,multi_window_text"; + signal: "hide,multi_window_text,signal"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_1"; + signal: "show,multi_window_1,signal"; + action: STATE_SET "1" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_2"; + signal: "show,multi_window_2,signal"; + action: STATE_SET "2" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_3"; + signal: "show,multi_window_3,signal"; + action: STATE_SET "3" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_4"; + signal: "show,multi_window_4,signal"; + action: STATE_SET "4" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_5"; + signal: "show,multi_window_5,signal"; + action: STATE_SET "5" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_6"; + signal: "show,multi_window_6,signal"; + action: STATE_SET "6" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_7"; + signal: "show,multi_window_7,signal"; + action: STATE_SET "7" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_8"; + signal: "show,multi_window_8,signal"; + action: STATE_SET "8" 0.0; + target: "elm.text"; + } + program { name: "show,multi_window_9"; + signal: "show,multi_window_9,signal"; + action: STATE_SET "9" 0.0; + target: "elm.text"; + } + program { name: "multi_window,pressed"; + signal: "mouse,down,1"; + source: "base"; + action: STATE_SET "pressed" 0.0; + target: "base"; + } + program { name: "multi_window,default"; + signal: "mouse,up,1"; + source: "base"; + action: STATE_SET "default" 0.0; + target: "base"; + } + } + } + } + +BUTTON_WITH_BG(title_back, "icon/I01_title_btn.png", + "icon/I01_title_btn_press.png", "icon/I01_btn_back.png", 6, 6, 6, 6, 124, 74, 56, 56); + +BUTTON_WITH_BG(bookmark_controlbar_back, "icon/I01_Back_btn_normal.png", + "icon/I01_Back_btn_press.png", "icon/I01_btn_back.png", 7, 7, 7, 7, 112, 82, 56, 56); + +BUTTON_WITH_BG(find_word_prev, "icon/I01_btn_normal.png", + "icon/I01_btn_press.png", "icon/I01_picker_arrow_left.png", 0, 0, 0, 0, 74, 74, 74, 74); + +BUTTON_WITH_BG(find_word_next, "icon/I01_btn_normal.png", + "icon/I01_btn_press.png", "icon/I01_picker_arrow_right.png", 0, 0, 0, 0, 74, 74, 74, 74); + +BUTTON_WITH_BG(reader_icon, "icon/I01_btn_normal.png", + "icon/I01_btn_press.png", "icon/I01_fit_screen.png", 0, 0, 0, 0, 74, 74, 74, 74); + +TITLE_BUTTON(title_button, "icon/I01_title_btn.png", + "icon/I01_title_btn_press.png", 6, 6, 6, 6); + +TITLE_BUTTON(close_button, "icon/I01_Option_header_bt.png", + "icon/I01_Option_header_bt_press.png", 4, 4, 4, 4); + +/* ifdef ZOOM_BUTTON */ +ZOOM_BUTTON(zoom_out, "browser-view-images/00_zoom_out.png", + "browser-view-images/00_zoom_out_press.png", "browser-view-images/00_zoom_out_disable.png", 0, 0, 0, 0); +ZOOM_BUTTON(zoom_in, "browser-view-images/00_zoom_in.png", + "browser-view-images/00_zoom_in_press.png", "browser-view-images/00_zoom_in_disable.png", 0, 0, 0, 0); +/* endif ZOOM_BUTTON */ + +#define BUTTON_STATE_ENABLED 0 +#define BUTTON_STATE_DISABLED 1 + group { name: "elm/button/base/browser/navigationbar_control/button"; + script { + public button_state = BUTTON_STATE_ENABLED; + } + images.image: "icon/I01_Option_header_bt.png" COMP; + images.image: "icon/I01_Option_header_bt_dim.png" COMP; + images.image: "icon/I01_Option_header_bt_press.png" COMP; + parts { + part { name: "button_image"; + type: IMAGE; + mouse_events: 1; + scale: 1; + description { state: "default" 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 20 50; +#else + min: 30 75; +#endif + color: 0 0 0 0; +#ifdef WVGA_NBEAT // 480 * 800 + rel1.offset: 5 5; + rel2.offset: -6 -6; +#else +// rel1.offset: 7 7; +// rel2.offset: -9 -9; + rel1.offset: 7 12; + rel2.offset: -9 -4; +#endif + image.normal: "icon/I01_Option_header_bt.png"; + image.border: 4 4 4 4; + color: 255 255 255 255; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + image.normal: "icon/I01_Option_header_bt_dim.png"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + image.normal: "icon/I01_Option_header_bt_press.png"; + } + } + part { + name: "padding_left_top"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 0.0 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 10 5; +#else + min: 15 7; +#endif + fixed: 1 1; + visible: 0; + } + } + part { + name: "padding_right_bottom"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + rel2.relative: 1.0 1.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 10 5; +#else + min: 15 7; +#endif + fixed: 1 1; + visible: 0; + } + } + part { + name: "icon_rect"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + visible: 1; + min: 0 0; + fixed: 1 0; + 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"; } + align: 0.0 0.5; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + visible: 1; +#ifdef WVGA_NBEAT // 480 * 800 + min: 22 22; +#else + min: 33 33; +#endif + fixed: 1 0; + 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"; } + align: 0.0 0.5; + color: 0 0 0 0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { + name: "padding_after_icon"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + align: 0.0 0.0; + rel1 { relative: 1.0 0.0; to: "icon_rect"; } + rel2 { relative: 1.0 1.0; to: "icon_rect"; } + fixed: 1 0; + min: 0 0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 1.0 0.0; to: "icon_rect"; } + rel2 { relative: 1.0 1.0; to: "icon_rect"; } + fixed: 1 0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 6 0; +#else + min: 9 0; +#endif + color: 0 0 0 0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { + name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + 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"; } + fixed: 1 0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 6 0; +#else + min: 9 0; +#endif + color: 0 0 0 0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + clip_to: "disabler"; + 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 0; + visible: 1; +#ifdef WVGA_NBEAT // 480 * 800 + min: 22 22; + max: 22 22; +#else + min: 33 33; + max: 33 33; +#endif + align: 1.0 0.5; + rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; } + rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + } + description { state: "icononly" 0.0; + visible: 1; +#ifdef WVGA_NBEAT // 480 * 800 + min: 30 30; + max: 30 30; +#else + min: 45 45; + max: 45 45; +#endif + rel1 { relative: 1.0 1.0; to: "padding_left_top"; } + rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; } + align: 0.5 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + } + } + part { name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + clip_to: "disabler"; + description { state: "default" 0.0; + visible: 0; + rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; } + rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; } + align: 0.5 0.5; + color: 255 255 255 255; + text { + font: "SLP:style=Medium"; +#ifdef WVGA_NBEAT // 480 * 800 + size: 20; +#else + size: 30; +#endif + min: 0 0; +// align: 0.5 0.5; + align: 0.5 0.6; + max: 1 0; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 0 0; + color2: 0 0 0 102; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 0 0; + color: 255 255 255 255; + color2: 0 0 0 102; + } + } + part { name: "over2"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "over3"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "disabled" 0.0; + color: 255 255 255 127; + } + } + } + programs { + program { name: "button_click"; + signal: "mouse,down,1"; + source: "over2"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program { name: "button_click_anim"; + action: STATE_SET "clicked" 0.0; + target: "button_image"; + after: "text_clicked"; + } + program { name: "text_clicked"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + set_state(PART:"elm.text", "clicked", 0.0); + } + } + program { name: "button_unpress"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + } + program { name: "button_mouseout_clicked"; + signal: "mouse,up,1"; + source: "over3"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.content", st, 30, vl); + if (strcmp(st, "icononly")) + { + emit("elm,action,default,text,set", ""); + set_state(PART:"elm.text", "visible", 0.0); + } + if(get_int(button_state) != BUTTON_STATE_DISABLED) + set_state(PART:"button_image", "default", 0.0); + } + after: button_unpress; + } + program { name: "button_click2"; + signal: "mouse,down,1"; + source: "over3"; + action: STATE_SET "clicked" 0.0; + target: "over3"; + } + program { name: "button_unclick2"; + signal: "mouse,clicked,1"; + source: "over3"; + action: STATE_SET "default" 0.0; + target: "over3"; + } + program { name: "button_unclick3"; + signal: "mouse,clicked,1"; + source: "over2"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + 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); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + set_state(PART:"elm.text", "visible", 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", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + set_state(PART:"elm.text", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,icon,visible"; + source: "elm"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.swallow.content", "visible", 0.0); + set_state(PART:"icon_rect", "visible", 0.0); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + else + { + set_state(PART:"elm.swallow.content", "icononly", 0.0); + set_state(PART:"icon_rect", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + } + } + 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: "button_image"; + target: "over2"; + target: "disabler"; + after: "disable_text"; + } + program { name: "disable_text"; + script { + set_int(button_state, BUTTON_STATE_DISABLED); + set_state(PART:"elm.text", "visible", 0.0); + } + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "button_image"; + target: "over2"; + target: "disabler"; + after: "enable_text"; + } + program { name: "enable_text"; + script { + set_int(button_state, BUTTON_STATE_ENABLED); + set_state(PART:"elm.text", "visible", 0.0); + } + } + program { name: "focused"; + action: STATE_SET "focused" 0.0; + target: "button_image"; + target: "elm.text"; + } + program { name: "unfocused"; + action: STATE_SET "default" 0.0; + target: "button_image"; + after: "unfocus_text"; + } + program { name: "unfocus_text"; + action: STATE_SET "visible" 0.0; + target: "elm.text"; + } + } + } + +#ifdef WVGA_NBEAT // 480 * 800 + +#define BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC 67 40 +#define BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC 22 20 + +#else + +#define BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC 100 60 +#define BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC 33 30 + +#endif + +#define NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC 84 93 110 255 +#define NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC 35 45 61 255 + + group { name: "elm/button/base/naviframe/back_btn/browser/default"; + alias: "elm/button/base/naviframe_end_btn/browser/default"; + //TODO: Remove this alias later + alias: "elm/button/base/navigationbar_prev_btn/browser/default"; + alias: "elm/button/base/navigationbar_backbutton/browser/default"; + alias: "elm/button/base/navigationbar_end_btn/browser/default"; + images { + image: "browser-view-images/I01_btn_prev.png" COMP; + image: "browser-view-images/I01_btn_prev_press.png" COMP; + } + parts { + part { name: "button_image"; + type: RECT; + mouse_events: 1; + scale: 1; + description { state: "default" 0.0; + min: BUTTON_NAVIBAR_BACK_BUTTON_BUTTON_IMAGE_MIN_INC; + color: 0 0 0 0; + } + description { + state: "clicked" 0.0; + inherit: "default" 0.0; + } + description { + state: "disabled" 0.0; + inherit: "default" 0.0; + } + } + part {name: "padding_right"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + align: 1 0; + min: 1 0; + rel1 { relative: 1 0.2; } + rel2 { relative: 1 0.8; } + fixed: 1 0; + color: NAVIBAR_TITLE_RIGHT_SEPARATOR_COLOR_INC; + } + } + part {name: "padding_before_right"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + align: 1 0; + min: 1 0; + rel1 { relative: 0 0; to: "padding_right"; } + rel2 { relative: 0 1; to: "padding_right"; } + fixed: 1 0; + color: NAVIBAR_TITLE_LEFT_SEPARATOR_COLOR_INC; + } + } + part { name: "button_center_part"; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + min: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC; + max: BUTTON_NAVIBAR_BACK_BUTTON_BG_MIN_MAX_INC; + align: 0.5 0.5; + rel2 { relative: 0 1; to_x: "padding_before_right"; } + image { + normal: "browser-view-images/I01_btn_prev.png"; + } + } + description { + state: "clicked" 0.0; + inherit: "default" 0.0; + image.normal: "browser-view-images/I01_btn_prev_press.png"; + } + } + part { name: "over1"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "over2"; + mouse_events: 1; + 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: "over1"; + action: SIGNAL_EMIT "elm,action,press" ""; + after: "button_click_anim"; + } + program { name: "button_click_anim"; + action: STATE_SET "clicked" 0.0; + target: "button_image"; + target: "button_center_part"; + } + program { name: "button_unclick"; + signal: "mouse,up,1"; + source: "over2"; + action: SIGNAL_EMIT "elm,action,unpress" ""; + after: "button_unclick_anim"; + } + program { name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + target: "button_image"; + target: "button_center_part"; + } + program { name: "button_unclick2"; + signal: "mouse,clicked,1"; + source: "over1"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disabler"; + target: "button_image"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disabler"; + target: "button_image"; + } + } + } +} diff --git a/edc/browser-macro.edc b/edc/browser-macro.edc new file mode 100755 index 0000000..e8c72de --- /dev/null +++ b/edc/browser-macro.edc @@ -0,0 +1,1487 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#define GENLIST_PART_BOTTOM_LINE_INC 199 199 199 255 +#define GENLIST_PART_BG_COLOR_INC 249 249 249 255 +#define GENLIST_PART_BG_SELECTED_COLOR_INC 50 65 74 180 +#define GENLIST_PART_TEXT_SELECTED_COLOR_INC 255 255 255 255 +#define GENLIST_PART_TEXT_COLOR_INC 0 0 0 255 + +#define FONT_BLD HelveticaNeueBld +#define FONT_MED HelveticaNeueMed +#define FONT_ROM HelveticaNeueRom +#define FONT_LIG HelveticaNeueLig + +#define PADDING(title, w, h, fixed_w, fixed_h, align_w, align_h, l, t, r, b, rel1_to, rel2_to) \ + part { name: title; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + visible: 0; \ + min: w h; \ + max: w h; \ + fixed: fixed_w fixed_h; \ + align: align_w align_h; \ + rel1 { relative: l t; to: rel1_to; } \ + rel2 { relative: r b; to: rel2_to; } \ + } \ + } + + +#define BUTTON(button_name, normal_image, press_image, l, r, t, b) \ + group { name: "elm/button/base/browser/"#button_name; \ + images { \ + image: normal_image COMP; \ + image: press_image COMP; \ + } \ + styles { \ + style { name: #button_name"btn_textblock_style"; \ + base: "font=FONT_CONTENT font_size=30 align=center color=#4E4945 wrap=char"; \ + tag: "br" "\n"; \ + tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "b" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "tab" "\t"; \ + } \ + } \ + parts { \ + part { name: "button_image"; \ + scale: 1; \ + mouse_events: 1; \ + effect: SOFT_SHADOW; \ + description { state: "default" 0.0; \ + image { \ + normal: normal_image; \ + border: l r t b; \ + } \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + image.normal: press_image; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + image.normal: normal_image; \ + } \ + } \ + part { name: "elm.text"; \ + type: TEXTBLOCK; \ + effect: SHADOW; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + visible: 0; \ + fixed: 1 1; \ + align: 0.5 0.5; \ + rel1 { relative: 0.1 0; to: "button_image"; } \ + rel2 { relative: 0.9 1; to: "button_image"; } \ + color: 255 255 255 255; \ + text { \ + style: #button_name"btn_textblock_style"; \ + min: 0 0; \ + max: 0 1; \ + } \ + } \ + description { state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + } \ + description { state: "disabled_visible" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + visible: 1; \ + min: 1 1; \ + } \ + } \ + part { name: "over1"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2.relative: 1.0 0.5; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + } \ + } \ + part { name: "over2"; \ + mouse_events: 1; \ + repeat_events: 1; \ + ignore_flags: ON_HOLD; \ + description { state: "default" 0.0; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + part { name: "over3"; \ + mouse_events: 1; \ + repeat_events: 1; \ + description { state: "default" 0.0; \ + color: 255 255 255 0; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 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"; \ + action: SIGNAL_EMIT "elm,action,press" ""; \ + after: "button_click_anim"; \ + } \ + program { name: "button_click_anim"; \ + action: STATE_SET "clicked" 0.0; \ + target: "button_image"; \ + target: "elm.text"; \ + } \ + program { name: "button_unclick"; \ + signal: "mouse,up,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,unpress" ""; \ + after: "button_unclick_anim"; \ + } \ + program { name: "button_unclick_anim"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "button_mouseout_clicked"; \ + signal: "mouse,out"; \ + source: "over2"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "clicked")) \ + { \ + set_state(PART:"elm.text", "visible", 0.0); \ + set_state(PART:"button_image", "visible", 0.0); \ + } \ + } \ + } \ + program { name: "button_click2"; \ + signal: "mouse,down,1"; \ + source: "over3"; \ + action: STATE_SET "clicked" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick2"; \ + signal: "mouse,clicked,1"; \ + source: "over3"; \ + action: STATE_SET "default" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick3"; \ + signal: "mouse,clicked,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,click" ""; \ + } \ + program { name: "text_show"; \ + signal: "elm,state,text,visible"; \ + source: "elm"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "text_hide"; \ + signal: "elm,state,text,hidden"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "disable"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "disable_text"; \ + } \ + program { name: "disable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "visible")) \ + set_state(PART:"elm.text", "disabled_visible", 0.0); \ + else \ + set_state(PART:"elm.text", "disabled", 0.0); \ + } \ + } \ + program { name: "enable"; \ + signal: "elm,state,enabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "enable_text"; \ + } \ + program { name: "enable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "disabled_visible")) \ + set_state(PART:"elm.text", "visible", 0.0); \ + else \ + set_state(PART:"elm.text", "default", 0.0); \ + } \ + } \ + } \ + } + +#define ZOOM_BUTTON(button_name, normal_image, press_image, disable_image, l, r, t, b) \ + group { name: "elm/button/base/browser/"#button_name; \ + images { \ + image: normal_image COMP; \ + image: press_image COMP; \ + image: disable_image COMP; \ + } \ + styles { \ + style { name: #button_name"btn_textblock_style"; \ + base: "font=FONT_CONTENT font_size=30 align=center color=#4E4945 wrap=char"; \ + tag: "br" "\n"; \ + tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "b" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "tab" "\t"; \ + } \ + } \ + parts { \ + part { name: "button_image"; \ + scale: 1; \ + mouse_events: 1; \ + effect: SOFT_SHADOW; \ + description { state: "default" 0.0; \ + image { \ + normal: normal_image; \ + border: l r t b; \ + } \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + image.normal: press_image; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + image.normal: disable_image; \ + } \ + } \ + part { name: "elm.text"; \ + type: TEXTBLOCK; \ + effect: SHADOW; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + visible: 0; \ + fixed: 1 1; \ + align: 0.5 0.5; \ + rel1 { relative: 0.1 0; to: "button_image"; } \ + rel2 { relative: 0.9 1; to: "button_image"; } \ + color: 255 255 255 255; \ + text { \ + style: #button_name"btn_textblock_style"; \ + min: 0 0; \ + max: 0 1; \ + } \ + } \ + description { state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + } \ + description { state: "disabled_visible" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + visible: 1; \ + min: 1 1; \ + } \ + } \ + part { name: "over1"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2.relative: 1.0 0.5; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + } \ + } \ + part { name: "over2"; \ + mouse_events: 1; \ + repeat_events: 1; \ + ignore_flags: ON_HOLD; \ + description { state: "default" 0.0; \ + fixed: 1 1; \ + rel1 { relative: 0.0 0.0; to: "button_image"; } \ + rel2 { relative: 1.0 1.0; to: "button_image"; } \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + part { name: "over3"; \ + mouse_events: 1; \ + repeat_events: 1; \ + description { state: "default" 0.0; \ + color: 255 255 255 0; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 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"; \ + action: SIGNAL_EMIT "elm,action,press" ""; \ + after: "button_click_anim"; \ + } \ + program { name: "button_click_anim"; \ + action: STATE_SET "clicked" 0.0; \ + target: "button_image"; \ + target: "elm.text"; \ + } \ + program { name: "button_unclick"; \ + signal: "mouse,up,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,unpress" ""; \ + after: "button_unclick_anim"; \ + } \ + program { name: "button_unclick_anim"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "button_mouseout_clicked"; \ + signal: "mouse,out"; \ + source: "over2"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "clicked")) \ + { \ + set_state(PART:"elm.text", "visible", 0.0); \ + set_state(PART:"button_image", "visible", 0.0); \ + } \ + } \ + } \ + program { name: "button_click2"; \ + signal: "mouse,down,1"; \ + source: "over3"; \ + action: STATE_SET "clicked" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick2"; \ + signal: "mouse,clicked,1"; \ + source: "over3"; \ + action: STATE_SET "default" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick3"; \ + signal: "mouse,clicked,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,click" ""; \ + } \ + program { name: "text_show"; \ + signal: "elm,state,text,visible"; \ + source: "elm"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "text_hide"; \ + signal: "elm,state,text,hidden"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "disable"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "disable_text"; \ + } \ + program { name: "disable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "visible")) \ + set_state(PART:"elm.text", "disabled_visible", 0.0); \ + else \ + set_state(PART:"elm.text", "disabled", 0.0); \ + } \ + } \ + program { name: "enable"; \ + signal: "elm,state,enabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "enable_text"; \ + } \ + program { name: "enable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "disabled_visible")) \ + set_state(PART:"elm.text", "visible", 0.0); \ + else \ + set_state(PART:"elm.text", "default", 0.0); \ + } \ + } \ + } \ + } + +#define TITLE_BUTTON(button_name, normal_image, press_image, l, r, t, b) \ + group { name: "elm/button/base/browser/"#button_name; \ + images { \ + image: normal_image COMP; \ + image: press_image COMP; \ + } \ + styles { \ + style { name: #button_name"btn_textblock_style"; \ + base: "font=FONT_CONTENT font_size=30 align=center color=#FFFFFF wrap=char"; \ + tag: "br" "\n"; \ + tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "b" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "tab" "\t"; \ + } \ + } \ + parts { \ + part { name: "button_image"; \ + scale: 1; \ + mouse_events: 1; \ + effect: SOFT_SHADOW; \ + description { state: "default" 0.0; \ + image { \ + normal: normal_image; \ + border: l r t b; \ + } \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + image.normal: press_image; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + image.normal: normal_image; \ + } \ + } \ + part { name: "elm.text"; \ + type: TEXTBLOCK; \ + effect: SHADOW; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + visible: 0; \ + fixed: 1 1; \ + align: 0.5 0.5; \ + rel1 { relative: 0.1 0; to: "button_image"; } \ + rel2 { relative: 0.9 1; to: "button_image"; } \ + color: 255 255 255 255; \ + text { \ + style: #button_name"btn_textblock_style"; \ + min: 0 0; \ + max: 0 1; \ + } \ + } \ + description { state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + } \ + description { state: "disabled_visible" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + visible: 1; \ + min: 1 1; \ + } \ + } \ + part { name: "over1"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2.relative: 1.0 0.5; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + } \ + } \ + part { name: "over2"; \ + mouse_events: 1; \ + repeat_events: 1; \ + ignore_flags: ON_HOLD; \ + description { state: "default" 0.0; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + part { name: "over3"; \ + mouse_events: 1; \ + repeat_events: 1; \ + description { state: "default" 0.0; \ + color: 255 255 255 0; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 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"; \ + action: SIGNAL_EMIT "elm,action,press" ""; \ + after: "button_click_anim"; \ + } \ + program { name: "button_click_anim"; \ + action: STATE_SET "clicked" 0.0; \ + target: "button_image"; \ + target: "elm.text"; \ + } \ + program { name: "button_unclick"; \ + signal: "mouse,up,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,unpress" ""; \ + after: "button_unclick_anim"; \ + } \ + program { name: "button_unclick_anim"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "button_mouseout_clicked"; \ + signal: "mouse,out"; \ + source: "over2"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "clicked")) \ + { \ + set_state(PART:"elm.text", "visible", 0.0); \ + set_state(PART:"button_image", "visible", 0.0); \ + } \ + } \ + } \ + program { name: "button_click2"; \ + signal: "mouse,down,1"; \ + source: "over3"; \ + action: STATE_SET "clicked" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick2"; \ + signal: "mouse,clicked,1"; \ + source: "over3"; \ + action: STATE_SET "default" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick3"; \ + signal: "mouse,clicked,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,click" ""; \ + } \ + program { name: "text_show"; \ + signal: "elm,state,text,visible"; \ + source: "elm"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "text_hide"; \ + signal: "elm,state,text,hidden"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "disable"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "disable_text"; \ + } \ + program { name: "disable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "visible")) \ + set_state(PART:"elm.text", "disabled_visible", 0.0); \ + else \ + set_state(PART:"elm.text", "disabled", 0.0); \ + } \ + } \ + program { name: "enable"; \ + signal: "elm,state,enabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "enable_text"; \ + } \ + program { name: "enable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "disabled_visible")) \ + set_state(PART:"elm.text", "visible", 0.0); \ + else \ + set_state(PART:"elm.text", "default", 0.0); \ + } \ + } \ + } \ + } + +#define BUTTON_WITH_BG(button_name, normal_image, press_image, main_image, l, r, t, b, bg_w, bg_h, main_image_w, main_image_h) \ + group { name: "elm/button/base/browser/"#button_name; \ + images { \ + image: normal_image COMP; \ + image: press_image COMP; \ + image: main_image COMP; \ + } \ + styles { \ + style { name: #button_name"btn_textblock_style"; \ + base: "font=FONT_CONTENT font_size=21 align=center color=#000000 wrap=char"; \ + tag: "br" "\n"; \ + tag: "hilight" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "b" "+ font=FONT_CONTENT:style=Bold"; \ + tag: "tab" "\t"; \ + } \ + } \ + parts { \ + part { name: "button_image"; \ + mouse_events: 1; \ + scale: 1; \ + effect: SOFT_SHADOW; \ + description { state: "default" 0.0; \ + align: 0.0 0.5; \ + min: bg_w bg_h; \ + max: bg_w bg_h; \ + fixed: 1 1; \ + image { \ + normal: normal_image; \ + border: l r t b; \ + } \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + image.normal: press_image; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + image.normal: normal_image; \ + } \ + } \ + part { name: "main_image"; \ + mouse_events: 1; \ + scale: 1; \ + repeat_events: 1; \ + effect: SOFT_SHADOW; \ + description { state: "default" 0.0; \ + min: main_image_w main_image_h; \ + max: main_image_w main_image_h; \ + fixed: 1 1; \ + align: 0.5 0.5; \ + rel1 { relative: 0.0 0.0; to: "button_image"; } \ + rel2 { relative: 1.0 1.0; to: "button_image"; } \ + image { \ + normal: main_image; \ + } \ + } \ + } \ + part { name: "elm.text"; \ + type: TEXTBLOCK; \ + effect: SHADOW; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + visible: 0; \ + fixed: 1 1; \ + align: 0.5 0.5; \ + rel1 { relative: 0.1 0; to: "button_image"; } \ + rel2 { relative: 0.9 1; to: "button_image"; } \ + color: 0 0 0 255; \ + text { \ + style: #button_name"btn_textblock_style"; \ + min: 0 0; \ + max: 0 1; \ + } \ + } \ + description { state: "visible" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + min: 1 1; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + } \ + description { state: "disabled_visible" 0.0; \ + inherit: "default" 0.0; \ + color: 0 0 0 128; \ + color3: 0 0 0 0; \ + visible: 1; \ + min: 1 1; \ + } \ + } \ + part { name: "over1"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + rel2.relative: 1.0 0.5; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + } \ + } \ + part { name: "over2"; \ + mouse_events: 1; \ + repeat_events: 1; \ + ignore_flags: ON_HOLD; \ + description { state: "default" 0.0; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } \ + part { name: "over3"; \ + mouse_events: 1; \ + repeat_events: 1; \ + description { state: "default" 0.0; \ + color: 255 255 255 0; \ + } \ + description { state: "clicked" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + color: 255 255 255 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"; \ + action: SIGNAL_EMIT "elm,action,press" ""; \ + after: "button_click_anim"; \ + } \ + program { name: "button_click_anim"; \ + action: STATE_SET "clicked" 0.0; \ + target: "button_image"; \ + target: "elm.text"; \ + } \ + program { name: "button_unclick"; \ + signal: "mouse,up,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,unpress" ""; \ + after: "button_unclick_anim"; \ + } \ + program { name: "button_unclick_anim"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "button_mouseout_clicked"; \ + signal: "mouse,out"; \ + source: "over2"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "clicked")) \ + { \ + set_state(PART:"elm.text", "visible", 0.0); \ + set_state(PART:"button_image", "visible", 0.0); \ + } \ + } \ + } \ + program { name: "button_click2"; \ + signal: "mouse,down,1"; \ + source: "over3"; \ + action: STATE_SET "clicked" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick2"; \ + signal: "mouse,clicked,1"; \ + source: "over3"; \ + action: STATE_SET "default" 0.0; \ + target: "over3"; \ + } \ + program { name: "button_unclick3"; \ + signal: "mouse,clicked,1"; \ + source: "over2"; \ + action: SIGNAL_EMIT "elm,action,click" ""; \ + } \ + program { name: "text_show"; \ + signal: "elm,state,text,visible"; \ + source: "elm"; \ + action: STATE_SET "visible" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "text_hide"; \ + signal: "elm,state,text,hidden"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "elm.text"; \ + } \ + program { name: "disable"; \ + signal: "elm,state,disabled"; \ + source: "elm"; \ + action: STATE_SET "disabled" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "disable_text"; \ + } \ + program { name: "disable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "visible")) \ + set_state(PART:"elm.text", "disabled_visible", 0.0); \ + else \ + set_state(PART:"elm.text", "disabled", 0.0); \ + } \ + } \ + program { name: "enable"; \ + signal: "elm,state,enabled"; \ + source: "elm"; \ + action: STATE_SET "default" 0.0; \ + target: "button_image"; \ + target: "over1"; \ + target: "over2"; \ + target: "disabler"; \ + after: "enable_text"; \ + } \ + program { name: "enable_text"; \ + script { \ + new st[31]; \ + new Float:vl; \ + get_state(PART:"elm.text", st, 30, vl); \ + if (!strcmp(st, "disabled_visible")) \ + set_state(PART:"elm.text", "visible", 0.0); \ + else \ + set_state(PART:"elm.text", "default", 0.0); \ + } \ + } \ + } \ + } + +#define BROWSER_GENLIST_PART_DISCLIP \ + part { name: "disclip"; \ + type: RECT; \ + description { state: "default" 0.0; \ + rel1.to: "base"; \ + rel2.to: "base"; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 64; \ + } \ + } + +#define BROWSER_GENLIST_TRANSPARENT_PART \ + part { name: "elm.between.layer"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 1; \ + description { state: "default" 0.0; \ + rel1.to: "base"; \ + rel2.to: "base"; \ + color: 0 0 0 0; \ + } \ + description { state: "repeat_events" 0.0; \ + inherit: "default" 0.0; \ + visible: 0; \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_BASE( param_item_height ) \ + part { name: "base"; \ + clip_to: "disclip"; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + image.normal: "theme/00_sweep_list_bg.png"; \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_BOTTOM_LINE \ + part { name: "bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: 212 212 212 255; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + to: "base"; \ + } \ + rel2.to: "base"; \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_PADDING_LEFT( param_padding_size ) \ + part { name: "base.padding.left"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.to: "base"; \ + rel2 { \ + relative: 0 1; \ + to: "base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_PADDING_RIGHT( param_padding_size ) \ + part { name: "base.padding.right"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1 { \ + relative: 1 0; \ + to: "base"; \ + } \ + rel2.to: "base"; \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_PADDING_BOTTOM( param_padding_size ) \ + part { name: "base.padding.bottom"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + align: 0.5 1; \ + rel1 { \ + relative: 0 1; \ + to: "base"; \ + } \ + rel2 { \ + relative: 1 1; \ + to: "base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_TEXT \ + part { name: "elm.base.text"; \ + type: TEXT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + /* \ + min: 0 36; \ + */ \ + min: 0 54; \ + fixed: 0 1; \ + align: 0.5 0; \ + rel1 { \ + relative: 1 0; \ + to_x: "base.padding.left"; \ + to_y: "base"; \ + } \ + rel2 { \ + relative: 0 0; \ + to_x: "base.padding.right"; \ + to_y: "base"; \ + } \ + color: 255 255 255 255; \ + text { \ + font: "SLP:style=Roman"; \ + /* \ + size: 22; \ + */ \ + size: 33; \ + min: 0 1; \ + align: 0.5 0.5; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_PADDING_CENTER_VERTICAL( param_padding_size ) \ + part { name: "base.padding.center.vertical"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + align: 0.5 0.5; \ + rel1 { \ + relative: 0.5 0; \ + to: "base"; \ + } \ + rel2 { \ + relative: 0.5 1; \ + to: "base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_PADDING_CENTER_HORIZONTAL( param_padding_size ) \ + part { name: "base.padding.center.horizontal"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 0 1; \ + visible: 0; \ + align: 0.5 0.5; \ + rel1 { \ + relative: 0 0.5; \ + to: "base"; \ + } \ + rel2 { \ + relative: 1 0.5; \ + to: "base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_BUTTON_1 \ + part { name: "elm.base.swallow.button1"; \ + type: SWALLOW; \ + clip_to: "disclip"; \ + description { state: "default" 0.0; \ + rel1 { \ + relative: 1 1; \ + to_x: "base.padding.left"; \ + to_y: "base.padding.center.horizontal"; \ + } \ + rel2 { \ + relative: 0 0; \ + to_x: "base.padding.center.vertical"; \ + to_y: "base.padding.bottom"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_BASE_PART_BUTTON_2 \ + part { name: "elm.base.swallow.button2"; \ + type: SWALLOW; \ + clip_to: "disclip"; \ + description { state: "default" 0.0; \ + rel1 { \ + relative: 1 1; \ + to_x: "base.padding.center.vertical"; \ + to_y: "base.padding.center.horizontal"; \ + } \ + rel2 { \ + relative: 0 0; \ + to_x: "base.padding.right"; \ + to_y: "base.padding.bottom"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_BASE( param_item_height ) \ + part { name: "slide_base"; \ + clip_to: "disclip"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: 246 245 237 255; \ + rel1.to: "base"; \ + rel2.to: "base"; \ + } \ + description { state: "hide" 0.0; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.025 0.0; } \ + rel2 { relative: 1.025 1.0; } \ + } \ + description { state: "hide" 0.1; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.13 0.0; } \ + rel2 { relative: 1.13 1.0; } \ + } \ + description { state: "hide" 0.2; \ + inherit: "default" 0.0; \ + rel1 { relative: 0.5 0.0; } \ + rel2 { relative: 1.5 1.0; } \ + } \ + description { state: "hide" 0.3; \ + inherit: "default" 0.0; \ + rel1 { relative: 1.0 0.0; } \ + rel2 { relative: 2.0 1.0; } \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_BOTTOM_LINE \ + part { name: "slide_bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: 212 212 212 255; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + to: "slide_base"; \ + } \ + rel2.to: "slide_base"; \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_PADDING_TOP( param_padding_size ) \ + part { name: "slide_base.padding.top"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + align: 0.5 0.0; \ + rel1 { \ + relative: 0 0; \ + to: "slide_base"; \ + } \ + rel2 { \ + relative: 1 0; \ + to: "slide_base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_PADDING_BOTTOM( param_padding_size ) \ + part { name: "slide_base.padding.bottom"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + align: 0.5 1; \ + rel1 { \ + relative: 0 1; \ + to: "slide_base"; \ + } \ + rel2 { \ + relative: 1 1; \ + to: "slide_base"; \ + } \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_PADDING_LEFT( param_padding_size ) \ + part { name: "slide_base.padding.left"; \ + type: RECT; \ + scale: 1; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.to: "slide_base"; \ + rel2 { \ + relative: 0 1; \ + to: "slide_base"; \ + } \ + align: 0.0 0.0; \ + } \ + } + +#define BROWSER_GENLIST_SLIDE_PART_PADDING_RIGHT( param_padding_size ) \ + part { name: "slide_base.padding.right"; \ + type: RECT; \ + scale: 1; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1 { \ + relative: 1 0; \ + to: "slide_base"; \ + } \ + rel2.to: "slide_base"; \ + align: 1.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_BASE( param_item_height ) \ + part { name: "base"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: GENLIST_PART_BG_COLOR_INC; \ + } \ + } + +#define BEAT_GENLIST_PART_BG_IMAGE \ + part { name: "bg_image"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + color: GENLIST_PART_BG_SELECTED_COLOR_INC; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + } \ + } + +#define BEAT_GENLIST_PART_BOTTOM_LINE \ + part { name: "bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: GENLIST_PART_BOTTOM_LINE_INC; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + } \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_TOP( param_padding_size ) \ + part { name: "elm.padding.top"; \ + type: RECT; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + rel2.relative: 1.0 0.0; \ + align: 0.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \ + part { name: "elm.padding.bottom"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_padding_size; \ + fixed: 0 1; \ + visible: 0; \ + rel1.relative: 0.0 1.0; \ + align: 0.0 1.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \ + part { name: "elm.padding.left"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel2.relative: 0.0 1.0; \ + align: 0.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \ + part { name: "elm.padding.right"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.relative: 1.0 0.0; \ + align: 1.0 0.0; \ + } \ + } + +#define BEAT_GENLIST_PART_DISCLIP \ + part { name: "disclip"; \ + type: RECT; \ + description { state: "default" 0.0; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 64; \ + } \ + } + +#define BEAT_GENLIST_SELECT_ALL_PART_DISCLIP \ + part { name: "disclip"; \ + type: RECT; \ + description { state: "default" 0.0; \ + rel1.to: "base"; \ + rel2.to: "base"; \ + } \ + description { state: "disabled" 0.0; \ + inherit: "default" 0.0; \ + color: 255 255 255 64; \ + } \ + } + diff --git a/edc/browser-multi-window.edc b/edc/browser-multi-window.edc new file mode 100755 index 0000000..1638f49 --- /dev/null +++ b/edc/browser-multi-window.edc @@ -0,0 +1,641 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { + name: "browser/browser-multi-window"; + images { + + } + parts { + /* For view change effect. */ + part { name: "rect.bg_clipper"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + } + description { + state: "visible" 0.0; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + } + } + part { name: "bg2"; + mouse_events: 1; + repeat_events: 0; + type: RECT; + scale: 1; + /* For view change effect. */ + clip_to: "rect.bg_clipper"; + description { + state: "default" 0.0; + align: 0.0 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 180; + } + } + part { name: "bg"; + mouse_events: 1; + repeat_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 0; + } + } + /* For view change effect. */ + part { name: "rect.scroller_clipper"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; to: "elm.swallow.scroller"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.scroller"; } + } + description { + state: "invisible" 0.0; + color: 255 255 255 0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.scroller"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.scroller"; } + } + } + part { + name: "elm.swallow.scroller"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + /* For view change effect. */ + clip_to: "rect.scroller_clipper"; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.15; } + rel2 { relative: 1.0 0.85; } + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + /* For view change effect. */ + part { name: "rect.gengrid_clipper"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.gengrid"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.gengrid"; } + } + description { + state: "visible" 0.0; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; to: "elm.swallow.gengrid"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.gengrid"; } + } + } + part { + name: "elm.swallow.gengrid"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + /* For view change effect. */ + clip_to: "rect.gengrid_clipper"; + description { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 0.85; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.close_multi_window_button"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 210 69; + max: 210 69; + fixed: 1 1; + align: 1.0 1.0; + rel1 { relative: -0.05 0.98; to_x: "elm.swallow.view_change_button"; } + rel2 { relative: -0.05 0.98; to_x: "elm.swallow.view_change_button"; } + } + } + part { + name: "elm.swallow.view_change_button"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 210 69; + max: 210 69; + fixed: 1 1; + align: 0.5 1.0; + rel1 { relative: 0.5 0.98; } + rel2 { relative: 0.5 0.98; } + } + } + part { + name: "elm.swallow.new_window_button"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 210 69; + max: 210 69; + fixed: 1 1; + align: 0.0 1.0; + rel1 { relative: 1.05 0.98; to_x: "elm.swallow.view_change_button"; } + rel2 { relative: 1.05 0.98; to_x: "elm.swallow.view_change_button"; } + } + } + part { + name: "elm.title"; + type: TEXT; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 60; + fixed: 0 1; + align: 0.5 1.0; + rel1 { relative: 0.0 0.0; to_x: "bg"; to_y: "elm.swallow.scroller"; } + rel2 { relative: 1.0 0.0; to_x: "bg"; to_y: "elm.swallow.scroller"; } + text { + font: FONT_ROM; + size: 33; + min: 0 0; + align: 0.5 1.0; + } + color: 255 255 255 255; + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.url"; + type: TEXT; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 50; + fixed: 0 1; + align: 0.5 0.0; + rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "elm.title"; } + rel2 { relative: 1.0 1.0; to_x: "bg"; to_y: "elm.title"; } + text { + font: FONT_ROM; + size: 30; + min: 0 0; + align: 0.5 1.0; + } + color: 255 255 255 255; + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.swallow.page_control"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.5 0.6; + fixed: 0 1; + rel1 { relative: 0.0 0.0; to_x: "bg"; to_y: "bg"; } + rel2 { relative: 1.0 0.0; to_x: "bg"; to_y: "elm.title"; } + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + } + + programs { + program { name: "show,multi_window"; + signal: "show,multi_window,signal"; + action: STATE_SET "visible" 0.0; + target: "bg"; + } + program { name: "show,bg"; + signal: "show,bg,signal"; + transition: LINEAR 0.8; + action: STATE_SET "visible" 0.0; + target: "bg2"; + target: "rect.bg_clipper"; + } + program { name: "hide,multi_window"; + signal: "hide,multi_window,signal"; + transition: LINEAR 0.2; + action: STATE_SET "default" 0.0; + target: "bg"; + } + program { name: "show,grid_mode"; + signal: "show,grid_mode,signal"; + action: STATE_SET "invisible" 0.0; + transition: ACCELERATE 0.3; + target: "elm.swallow.scroller"; + target: "elm.title"; + target: "elm.url"; + target: "elm.swallow.page_control"; + target: "rect.scroller_clipper"; + } + program { name: "show,grid_mode,gengrid"; + signal: "show,grid_mode,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.gengrid"; + } + program { name: "show,grid_mode,clipper"; + signal: "show,grid_mode,signal"; + action: STATE_SET "visible" 0.0; + transition: ACCELERATE 0.3; + target: "rect.gengrid_clipper"; + } + + program { name: "show,normal_mode"; + signal: "show,normal_mode,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.scroller"; + target: "elm.title"; + target: "elm.url"; + target: "elm.swallow.page_control"; + } + program { name: "show,normal_mode,clipper"; + signal: "show,normal_mode,signal"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "rect.scroller_clipper"; + } + program { name: "hide,grid_mode,clipper"; + signal: "show,normal_mode,signal"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.3; + target: "rect.gengrid_clipper"; + target: "elm.swallow.gengrid"; + after: "delete,gengrid"; + } + /* Send "delete,gengrid,signal" + * to delete gengrid after view change effect */ + program { name: "delete,gengrid"; + source: "elm.swallow.gengrid"; + action: SIGNAL_EMIT "delete,gengrid,signal" ""; + } + } + } + + group { + name: "browser/multi-window/item"; + images{ + image: "multi-window/I01_Btn_delete_01.png" COMP; + image: "multi-window/I01_Btn_delete_01_press.png" COMP; + } + parts { + part { name: "bg"; + mouse_events: 0; + scale: 1; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { name: "rect.clipper"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 255; + rel1 { relative: 1.0 0.0; to_x: "padding,snapshot_left"; } + rel2 { relative: 0.0 1.0; to_x: "padding,snapshot_right"; } + } + description { + state: "grey" 0.0; + color: 255 255 255 125; + rel1 { relative: 1.0 0.0; to_x: "padding,snapshot_left"; } + rel2 { relative: 0.0 1.0; to_x: "padding,snapshot_right"; } + } + } + part { name: "elm.swallow.snapshot"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 1; + scale: 1; + clip_to: "rect.clipper"; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: "padding,snapshot_left"; } + rel2 { relative: 0.0 1.0; to_x: "padding,snapshot_right"; } + } + } + part { name: "padding,snapshot_left"; + type: RECT; + mouse_events: 0; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + min: 22 0; + fixed: 1 0; + visible: 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 0.0 1.0; to: "bg"; } + } + } + part { name: "padding,snapshot_right"; + type: RECT; + mouse_events: 0; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + min: 22 0; + fixed: 1 0; + visible: 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + } + } + part { name: "elm.image.delete_window"; + type: IMAGE; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 75 75; + max: 75 75; + fixed: 1 1; + align: 0.6 0.4; + rel1 { relative: 1.0 0.0; to: "elm.swallow.snapshot"; } + rel2 { relative: 1.0 0.0; to: "elm.swallow.snapshot"; } + image.normal: "multi-window/I01_Btn_delete_01.png"; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + visible: 1; + image.normal: "multi-window/I01_Btn_delete_01_press.png"; + } + } + } + programs { + program { name: "grey,snapshot"; + signal: "grey,snapshot,signal"; + action: STATE_SET "grey" 0.0; + transition: ACCELERATE 0.3; + target: "rect.clipper"; + } + program { name: "non_grey,snapshot"; + signal: "non_grey,snapshot,signal"; + action: STATE_SET "default" 0.0; + target: "rect.clipper"; + } + program { name: "show,delete_window_icon"; + signal: "show,delete_window_icon,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.image.delete_window"; + } + program { name: "hide,delete_window_icon"; + signal: "hide,delete_window_icon,signal"; + action: STATE_SET "default" 0.0; + target: "elm.image.delete_window"; + } + program { + name: "delete_button_press"; + signal: "mouse,down,1"; + source: "elm.image.delete_window"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.image.delete_window", st, 30, vl); + + new st_1[31]; + new Float:vl_1; + get_state(PART:"rect.clipper", st_1, 30, vl_1); + + if (!strcmp(st, "visible") && !strcmp(st_1, "default")) + set_state(PART:"elm.image.delete_window", "pressed", 0.0); + } + } + program { + name: "delete_button_release"; + signal: "mouse,up,1"; + source: "elm.image.delete_window"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.image.delete_window", st, 30, vl); + + new st_1[31]; + new Float:vl_1; + get_state(PART:"rect.clipper", st_1, 30, vl_1); + + if (!strcmp(st, "pressed") && !strcmp(st_1, "default")) + set_state(PART:"elm.image.delete_window", "visible", 0.0); + } + } + } + } + group { + name: "browser/multi-window/grid_item"; + images{ + image: "multi-window/I01_Btn_delete_01.png" COMP; + image: "multi-window/I01_Btn_delete_01_press.png" COMP; + } + parts { + part { name: "bg"; + mouse_events: 1; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { name: "elm.swallow.snapshot"; + type: SWALLOW; + scale: 1; + mouse_events: 1; + repeat_events: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: bg; } + rel2 { relative: 1.0 1.0; to: bg; } + } + } + part { name: "delete_icon"; + type: IMAGE; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 48 48; + max: 48 48; + fixed: 1 1; + align: 0.7 0.3; + rel1 { relative: 1.0 0.0; to: "elm.swallow.snapshot"; } + rel2 { relative: 1.0 0.0; to: "elm.swallow.snapshot"; } + image.normal: "multi-window/I01_Btn_delete_01.png"; + } + description { + state: "pressed" 0.0; + inherit: "default" 0.0; + visible: 1; + image.normal: "multi-window/I01_Btn_delete_01_press.png"; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "delete_icon_click_area"; + type: RECT; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: -0.3 -0.3; to: "delete_icon"; } + rel2 { relative: 1.3 1.3; to: "delete_icon"; } + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + programs{ + program { name: "show,delete_icon"; + signal: "show,delete_icon,signal"; + action: STATE_SET "visible" 0.0; + target: "delete_icon"; + target: "delete_icon_click_area"; + } + program { name: "hide,delete_icon"; + signal: "hide,delete_icon,signal"; + action: STATE_SET "default" 0.0; + target: "delete_icon"; + target: "delete_icon_click_area"; + } + program { + name: "delete_button_press"; + signal: "mouse,down,1"; + source: "delete_icon_click_area"; + script { + new st[31]; + new Float:vl; + get_state(PART:"delete_icon", st, 30, vl); + if (!strcmp(st, "visible")) + set_state(PART:"delete_icon", "pressed", 0.0); + } + } + program { + name: "delete_button_release"; + signal: "mouse,up,1"; + source: "delete_icon_click_area"; + script { + new st[31]; + new Float:vl; + get_state(PART:"delete_icon", st, 30, vl); + if (!strcmp(st, "pressed")) + set_state(PART:"delete_icon", "visible", 0.0); + } + } + } + } + } +} diff --git a/edc/browser-naviframe.edc b/edc/browser-naviframe.edc new file mode 100755 index 0000000..5106f86 --- /dev/null +++ b/edc/browser-naviframe.edc @@ -0,0 +1,2129 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Apply new naviframe + +#define NAVIFRAME_TITLE_H_INC 0 + +#define NAVIFRAME_SEGMENT_TITLE_H_INC 136 + +#define NAVIFRAME_OH_OPENED_H_INC 150 + +#define NAVIFRAME_OH_CONTENT_H_INC 74 +#define NAVIFRAME_OH_PADDING_INC 16 +#define NAVIFRAME_OH_ARROW_SIZE_INC 19 12 +#define NAVIFRAME_OH_OPENED_DOUBLE_H_INC 196 +#define NAVIFRAME_PREV_BTN_W_INC 124 +#define NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 10 +#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 124 80 +#define NAVIFRAME_TEXT_PADDING_INC 144 +#define NAVIFRAME_TEXT_PADDING_MORE_BUTTON_INC 278 +#define NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 52 +#define NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 186 +#define NAVIFRAME_TITLE_SEGMENT_H_INC 74 +#define NAVIFRAME_TITLE_SEGMENT_FONT_SIZE_INC 28 +#define NAVIFRAME_TITLE_SEGMENT_TEXT_H_INC 50 +#define NAVIFRAME_TITLE_FONT_SIZE_INC 36 +#define NAVIFRAME_ICON_SIZE_INC 32 32 +#define NAVIFRAME_ICON_PADDING_INC 16 0 +#define NAVIFRAME_CONTROLBAR_PADDING_INC 5 +//#define NAVIFRAME_CONTROLBAR_BG_COLOR_INC 37 48 54 255 // naviframe default +#define NAVIFRAME_CONTROLBAR_BG_COLOR_INC 31 31 31 255 // browser customize + +#define NAVIFRAME_TITLE_TEXT_COLOR_INC 249 249 249 255 // browser customize +#define NAVIFRAME_TITLE_BG_COLOR_INC 91 109 138 255 // browser customize + +//#define CONTROLBAR_SMALL_HEIGHT_INC 102 // naviframe default +#define CONTROLBAR_SMALL_HEIGHT_INC 114 // browser customize +#define NAVIFRAME_VIEW_TRANS_TIME 0.3 + +#define NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 144 + +collections { + group { name:"elm/naviframe/base/browser"; + parts { + part { name: "base"; + description { state: "default" 0.0; + } + } + } + } + group { name:"elm/naviframe/item/basic/browser"; + alias:"elm/naviframe/item/1line/browser"; + images { + image: "browser-view-images/naviframe_optionheader.png" COMP; // browser customize + image: "browser-view-images/naviframe_optionheader_arrow.png" COMP; // browser customize + } + script { + public oh_show = 0; //optionheader show/hide + public oh_close = 0; //optionheader close/open + public cbar_bg = 0; //Controlbar BG Show call count + public left_btn_visible = 0; //whether left btn is shown + public icon_visible = 0; //whether icon is shown + public right_btn_visible = 0; //whether right btn is shown + public more_btn_visible = 0; //whether more btn is shown + public large_padded_center_align = 0; //large padding based on button size for center align for 1/2 buttons. + } + parts { + part { name: "base"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + part { name: "title_bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 1 NAVIFRAME_TITLE_H_INC; + align: 0.0 0.0; + fixed: 0 1; + rel1 { relative: 0.0 0.0; to: "base"; } + rel2 { relative: 1.0 0.0; to: "base"; } + color: NAVIFRAME_TITLE_BG_COLOR_INC; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "title_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + // browser customize, change the visible order of content + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + repeat_events: 0; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; +// rel1.relative: 0.0 1.0; // default naviframe + rel1.relative: 0.0 0.0; // browser customize + rel1.to_x: "base"; + rel1.to_y: "optionheader_bg"; + rel2.relative: 1.0 0.0; // default naviframe + rel2.to_x: "base"; + rel2.to_y: "controlbar_bg"; // default naviframe + } + } + part { name: "optionheader_bg"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 1 0; + align: 0.5 0; + fixed: 0 1; + rel1.to: "title_bg"; + rel1.relative: 0 1; + rel2.to: "title_bg"; + visible: 0; + image { normal: "browser-view-images/naviframe_optionheader.png"; + border: 0 0 4 0; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 1 NAVIFRAME_OH_OPENED_H_INC; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "optionheader_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "optionheader_bg"; } + rel2 { to: "optionheader_bg"; } + } + } + part { name: "optionheader_top_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 1 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader"; + type: SWALLOW; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; +// min: 1 NAVIFRAME_OH_CONTENT_H_INC; // naviframe default + min: 1 NAVIFRAME_OH_OPENED_H_INC; // browser customize +// rel1 { relative: 0.0 1.0; to: "optionheader_top_padding"; } // naviframe default +// rel2 { relative: 1.0 1.0; to: "optionheader_top_padding"; } // naviframe default + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } // browser customize + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } // browser customize + fixed: 0 1; + align: 0.0 0.0; + } + } + part { name: "optionheader_bottom_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 1 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 1.0; to: "optionheader"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } + part { name: "padding_before_left_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + 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"; } + visible: 0; + } + } + part { name: "padding_after_left_btn"; + type: RECT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 0 0.5; + rel1 { relative: 1.0 0.0; to: "title_left_btn"; } + rel2 { relative: 1.0 1.0; to: "title_left_btn"; } + visible: 0; + } + } + part { name: "padding_before_more_btn"; + type: RECT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_more_btn"; } + rel2 { relative: 0.0 1.0; to: "title_more_btn"; } + visible: 0; + } + } + part { name: "padding_after_right_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + visible: 0; + } + } + part { name: "padding_before_right_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + visible: 0; + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; to_y: "title_bg"; } + rel2 { relative: 0.0 1.0; to_x: "elm.text.title"; to_y: "title_bg"; } + fixed: 1 0; + min: NAVIFRAME_ICON_PADDING_INC; + visible: 0; + } + } + part { name: "padding_center_text1"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "title_bg"; } + rel2 { relative: 0.0 1.0; to: "title_bg"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; + } + description { state: "icon" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 0; + } + description { state: "icon_left_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 0; + } + } + part { name: "padding_center_text2"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_TITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.5 0.5; + fixed: 1 0; + rel1 { relative: 1.0 0.0; to: "padding_center_text1"; } + rel2 { relative: 0.0 1.0; to: "padding_center_text2"; } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 0.0; to: "padding_after_left_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_before_more_btn"; } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_ICON_SIZE_INC; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_before_text"; } + rel2 { relative: 0.0 1.0; to: "padding_before_text"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 1.0 0.5; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + repeat_events: 1; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "title_left_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 0 0.5; + rel1 { relative: 1.0 0.0; to: "padding_before_left_btn"; } + rel2 { relative: 1.0 1.0; to: "padding_before_left_btn"; } + } + } + part { name: "title_right_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + align: 1 0.5; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_after_right_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_after_right_btn"; } + } + } + part { name: "title_more_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "padding_before_right_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_before_right_btn"; } + } + } + part { name: "optionheader_arrow"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: NAVIFRAME_OH_ARROW_SIZE_INC; + max: NAVIFRAME_OH_ARROW_SIZE_INC; + fixed: 1 1; +// align: 0.5 0; // naviframe default + align: 0.5 1.0; // browser customize +// rel1.to: "title_more_btn"; // naviframe default + rel1.to: "title_bg"; // browser customize + rel1.relative: 0 1; +// rel2.to: "title_more_btn"; // naviframe default + rel2.to: "title_bg"; // browser customize + rel2.relative: 1 1; + image { + normal: "browser-view-images/naviframe_optionheader_arrow.png"; + } + visible: 0; // naviframe default +// visible: 1; // browser customize + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "controlbar_bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + align: 0.0 1.0; + visible: 0; + rel1 { to: "base"; } + rel2 { to: "base"; } + color: NAVIFRAME_CONTROLBAR_BG_COLOR_INC; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + visible: 1; + } + } + part { name: "controlbar_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2.to: "controlbar_bg"; + } + } + part { name: "elm.prev_btn_bg"; + type: RECT; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.0; + rel1 { relative: 1.0 0.0; to: "controlbar_bg"; } + rel2.to: "controlbar_bg"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 0; + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + align: 0.5 0.5; + rel1.to: "elm.prev_btn_bg"; + rel2.to: "elm.prev_btn_bg"; + } + } + part { name: "controlbar"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to: "controlbar_bg"; + rel2 { relative: 0.0 1.0; to: "elm.prev_btn_bg"; } + } + } + } + programs { + program { name: "content_new_pushed"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_pushed"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"base", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"base", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + program { name: "title_show"; + signal: "elm,state,title,show"; + source: "elm"; + script { + set_state(PART:"title_bg", "default", 0.0); + if (get_int(oh_show) == 1) { + if (get_int(oh_close) == 1) { + emit("elm,state,optionheader,instant_close", ""); + }else { + emit("elm,state,optionheader,instant_open", ""); + } + } + else + set_state(PART:"optionheader_bg", "default", 0.0); + } + } + program { name: "title_hide"; + signal: "elm,state,title,hide"; + source: "elm"; + action: STATE_SET "hide" 0.0; + target: "title_bg"; + target: "optionheader_bg"; + } + program { name: "prev_btn_show"; + signal: "elm,state,prev_btn,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + set_state(PART:"elm.prev_btn_bg", "visible", 0.0); + } + } + program { name: "prev_btn_hide"; + signal: "elm,state,prev_btn,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + set_state(PART:"elm.prev_btn_bg", "default", 0.0); + } + } + program { name: "left_btn_show"; + signal: "elm,state,title_left_btn,show"; + source: "elm"; + script { + set_int(left_btn_visible, 1); + if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "visible", 0.0); + if ((get_int(more_btn_visible) == 1) && (get_int(right_btn_visible) == 1)) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + } + } + program { name: "left_btn_hide"; + signal: "elm,state,title_left_btn,hide"; + source: "elm"; + script { + set_int(left_btn_visible, 0); + if ((get_int(more_btn_visible) == 0) && (get_int(right_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_show"; + signal: "elm,state,title_right_btn,show"; + source: "elm"; + script { + set_int(right_btn_visible, 1); + if (get_int(more_btn_visible) == 1) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_hide"; + signal: "elm,state,title_right_btn,hide"; + source: "elm"; + script { + set_int(right_btn_visible, 0); + set_state(PART:"padding_before_right_btn", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_show"; + signal: "elm,state,title_more_btn,show"; + source: "elm"; + script { + set_int(more_btn_visible, 1); + if (get_int(right_btn_visible) == 1) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_hide"; + signal: "elm,state,title_more_btn,hide"; + source: "elm"; + script { + set_int(more_btn_visible, 0); + set_state(PART:"padding_before_right_btn", "default", 0.0); + if ((get_int(right_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,elm.swallow.icon,show"; + source: "elm"; + script { + set_int(icon_visible, 1); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "icon", 0.0); + } + } + program { name: "icon_hide"; + signal: "elm,state,elm.swallow.icon,hide"; + source: "elm"; + script { + set_int(icon_visible, 0); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "controlbar_show"; + signal: "elm,state,controlbar,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + } + } + program { name: "controlbar_hide"; + signal: "elm,state,controlbar,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + } + } + program { name: "controlbar_bg_show"; + signal: "elm,state,controlbar_bg,show"; + source: "elm"; + script { + set_state(PART:"controlbar_bg", "show", 0.0); + set_int(cbar_bg, get_int(cbar_bg) + 1); + } + } + program { name: "controlbar_bg_hide"; + signal: "elm,state,controlbar_bg,hide"; + source: "elm"; + script { + set_int(cbar_bg, get_int(cbar_bg) - 1); + if (get_int(cbar_bg) <= 0) + set_state(PART:"controlbar_bg", "default", 0.0); + } + } + program { name: "optionheader_show"; + signal: "elm,state,optionheader,show"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "show", 0.0); + set_state(PART:"optionheader_arrow", "show", 0.0); + set_int(oh_show, 1); + } + } + program { name: "optionheader_hide"; + signal: "elm,state,optionheader,hide"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "default", 0.0); + set_state(PART:"optionheader_arrow", "default", 0.0); + set_int(oh_show, 0); + } + } + program { name: "optionheader_open"; + signal: "elm,state,optionheader,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_open_set"; + } + program { name: "optionheader_close"; + signal: "elm,state,optionheader,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_close_set"; + } + program { name: "optionheader_instant_open"; + signal: "elm,state,optionheader,instant_open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_open_set"; + } + program { name: "optionheader_instant_close"; + signal: "elm,state,optionheader,instant_close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_close_set"; + } + program { name: "optionheader_close_set"; + signal: "elm,state,optionheader,close_set"; + source: ""; + script { + set_int(oh_close, 1); + } + } + program { name: "optionheader_open_set"; + signal: "elm,state,optionheader,open_set"; + source: ""; + script { + set_int(oh_close, 0); + } + } + program { name: "controlbar_open"; + signal: "elm,state,controlbar,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_close"; + signal: "elm,state,controlbar,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_instant_open"; + signal: "elm,state,controlbar,instant_open"; + source: ""; + script { + emit("elm,state,prev_btn,show", "elm"); + emit("elm,state,controlbar,show", "elm"); + } + } + program { name: "controlbar_instant_close"; + signal: "elm,state,controlbar,instant_close"; + source: ""; + script { + emit("elm,state,prev_btn,hide", "elm"); + emit("elm,state,controlbar,hide", "elm"); + } + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + program { + name: "title_clicked"; + signal: "mouse,clicked,1"; + source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,title,clicked" ""; + } + } + } + + group { name:"elm/naviframe/item/browser_titlebar/default"; + alias:"elm/naviframe/item/1line/browser_titlebar"; + images { + image: "browser-view-images/naviframe_optionheader.png" COMP; // browser customize + image: "browser-view-images/naviframe_optionheader_arrow.png" COMP; // browser customize + } + script { + public oh_show = 0; //optionheader show/hide + public oh_close = 0; //optionheader close/open + public cbar_bg = 0; //Controlbar BG Show call count + public left_btn_visible = 0; //whether left btn is shown + public icon_visible = 0; //whether icon is shown + public right_btn_visible = 0; //whether right btn is shown + public more_btn_visible = 0; //whether more btn is shown + public large_padded_center_align = 0; //large padding based on button size for center align for 1/2 buttons. + } + parts { + part { name: "base"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + part { name: "title_bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 1 100; + align: 0.0 0.0; + fixed: 0 1; + rel1 { relative: 0.0 0.0; to: "base"; } + rel2 { relative: 1.0 0.0; to: "base"; } + color: NAVIFRAME_TITLE_BG_COLOR_INC; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "title_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + // browser customize, change the visible order of content + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + repeat_events: 0; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; +// rel1.relative: 0.0 1.0; // default naviframe + rel1.relative: 0.0 0.0; // browser customize + rel1.to_x: "base"; + rel1.to_y: "optionheader_bg"; + rel2.relative: 1.0 0.0; // default naviframe + rel2.to_x: "base"; + rel2.to_y: "controlbar_bg"; // default naviframe + } + } + part { name: "optionheader_bg"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 1 0; + align: 0.5 0; + fixed: 0 1; + rel1.to: "title_bg"; + rel1.relative: 0 1; + rel2.to: "title_bg"; + visible: 0; + image { normal: "browser-view-images/naviframe_optionheader.png"; + border: 0 0 4 0; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 1 NAVIFRAME_OH_OPENED_H_INC; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "optionheader_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "optionheader_bg"; } + rel2 { to: "optionheader_bg"; } + } + } + part { name: "optionheader_top_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 1 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader"; + type: SWALLOW; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; +// min: 1 NAVIFRAME_OH_CONTENT_H_INC; // naviframe default + min: 1 NAVIFRAME_OH_OPENED_H_INC; // browser customize +// rel1 { relative: 0.0 1.0; to: "optionheader_top_padding"; } // naviframe default +// rel2 { relative: 1.0 1.0; to: "optionheader_top_padding"; } // naviframe default + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } // browser customize + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } // browser customize + fixed: 0 1; + align: 0.0 0.0; + } + } + part { name: "optionheader.mid.padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 1.0; to: "optionheader"; } + rel2 { relative: 1.0 1.0; to: "optionheader"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader2"; + type: SWALLOW; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_CONTENT_H_INC; + rel1 { relative: 0.0 1.0; to: "optionheader.mid.padding";} + rel2 { relative: 1.0 1.0; to: "optionheader.mid.padding";} + fixed: 0 1; + align: 0.0 0.0; + } + } + part { name: "optionheader.bottom.padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 1.0; to: "optionheader2"; } + rel2 { relative: 1.0 1.0; to: "optionheader2"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } + part { name: "padding_before_left_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + 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"; } + visible: 0; + } + } + part { name: "padding_after_left_btn"; + type: RECT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 0 0.5; + rel1 { relative: 1.0 0.0; to: "title_left_btn"; } + rel2 { relative: 1.0 1.0; to: "title_left_btn"; } + visible: 0; + } + } + part { name: "padding_before_more_btn"; + type: RECT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_more_btn"; } + rel2 { relative: 0.0 1.0; to: "title_more_btn"; } + visible: 0; + } + } + part { name: "padding_after_right_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + visible: 0; + } + } + part { name: "padding_before_right_btn"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + visible: 0; + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; to_y: "title_bg"; } + rel2 { relative: 0.0 1.0; to_x: "elm.text.title"; to_y: "title_bg"; } + fixed: 1 0; + min: NAVIFRAME_ICON_PADDING_INC; + visible: 0; + } + } + part { name: "padding_center_text1"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "title_bg"; } + rel2 { relative: 0.0 1.0; to: "title_bg"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; + } + description { state: "icon" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 0; + } + description { state: "icon_left_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 0; + } + } + part { name: "padding_center_text2"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_TITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.5 0.5; + fixed: 1 0; + rel1 { relative: 1.0 0.0; to: "padding_center_text1"; } + rel2 { relative: 0.0 1.0; to: "padding_center_text2"; } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 0.0; to: "padding_after_left_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_before_more_btn"; } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_ICON_SIZE_INC; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_before_text"; } + rel2 { relative: 0.0 1.0; to: "padding_before_text"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 1.0 0.5; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + repeat_events: 1; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "title_left_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 0 0.5; + rel1 { relative: 1.0 0.0; to: "padding_before_left_btn"; } + rel2 { relative: 1.0 1.0; to: "padding_before_left_btn"; } + } + } + part { name: "title_right_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + align: 1 0.5; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_after_right_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_after_right_btn"; } + } + } + part { name: "title_more_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 0; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "padding_before_right_btn"; } + rel2 { relative: 0.0 1.0; to: "padding_before_right_btn"; } + } + } + part { name: "optionheader_arrow"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: NAVIFRAME_OH_ARROW_SIZE_INC; + max: NAVIFRAME_OH_ARROW_SIZE_INC; + fixed: 1 1; +// align: 0.5 0; // naviframe default + align: 0.5 1.0; // browser customize +// rel1.to: "elm.swallow.more_btn"; // naviframe default + rel1.to: "title_bg"; // browser customize + rel1.relative: 0 1; +// rel2.to: "elm.swallow.more_btn"; // naviframe default + rel2.to: "title_bg"; // browser customize + rel2.relative: 1 1; + image { + normal: "browser-view-images/naviframe_optionheader_arrow.png"; + } + visible: 0; // naviframe default +// visible: 1; // browser customize + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "controlbar_bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + align: 0.0 1.0; + visible: 0; + rel1 { to: "base"; } + rel2 { to: "base"; } + color: NAVIFRAME_CONTROLBAR_BG_COLOR_INC; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + visible: 1; + } + } + part { name: "controlbar_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "controlbar_bg"; } + rel2 { to: "controlbar_bg"; } + } + } + part { name: "elm.prev_btn_bg"; + type: RECT; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.0; + rel1 { relative: 1.0 0.0; to: "controlbar_bg"; } + rel2.to: "controlbar_bg"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 0; + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + align: 0.5 0.5; + rel1.to: "elm.prev_btn_bg"; + rel2.to: "elm.prev_btn_bg"; + } + } + part { name: "controlbar"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2 { relative: 0.0 1.0; to: "elm.prev_btn_bg"; } + } + } + } + programs { + program { name: "content_new_pushed"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_pushed"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"base", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"base", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + program { name: "title_show"; + signal: "elm,state,title,show"; + source: "elm"; + script { + set_state(PART:"title_bg", "default", 0.0); + if (get_int(oh_show) == 1) { + if (get_int(oh_close) == 1) { + emit("elm,state,optionheader,instant_close", ""); + }else { + emit("elm,state,optionheader,instant_open", ""); + } + } + else + set_state(PART:"optionheader_bg", "default", 0.0); + } + } + program { name: "title_hide"; + signal: "elm,state,title,hide"; + source: "elm"; + action: STATE_SET "hide" 0.0; + target: "title_bg"; + target: "optionheader_bg"; + } + program { name: "prev_btn_show"; + signal: "elm,state,prev_btn,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + set_state(PART:"elm.prev_btn_bg", "visible", 0.0); + } + } + program { name: "prev_btn_hide"; + signal: "elm,state,prev_btn,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + set_state(PART:"elm.prev_btn_bg", "default", 0.0); + } + } + program { name: "left_btn_show"; + signal: "elm,state,title_left_btn,show"; + source: "elm"; + script { + set_int(left_btn_visible, 1); + if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "visible", 0.0); + if ((get_int(more_btn_visible) == 1) && (get_int(right_btn_visible) == 1)) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + } + } + program { name: "left_btn_hide"; + signal: "elm,state,title_left_btn,hide"; + source: "elm"; + script { + set_int(left_btn_visible, 0); + if ((get_int(more_btn_visible) == 0) && (get_int(right_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_show"; + signal: "elm,state,title_right_btn,show"; + source: "elm"; + script { + set_int(right_btn_visible, 1); + if (get_int(more_btn_visible) == 1) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_hide"; + signal: "elm,state,title_right_btn,hide"; + source: "elm"; + script { + set_int(right_btn_visible, 0); + set_state(PART:"padding_before_right_btn", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_show"; + signal: "elm,state,title_more_btn,show"; + source: "elm"; + script { + set_int(more_btn_visible, 1); + if (get_int(right_btn_visible) == 1) { + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_hide"; + signal: "elm,state,title_more_btn,hide"; + source: "elm"; + script { + set_int(more_btn_visible, 0); + set_state(PART:"padding_before_right_btn", "default", 0.0); + if ((get_int(right_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,elm.swallow.icon,show"; + source: "elm"; + script { + set_int(icon_visible, 1); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "icon", 0.0); + } + } + program { name: "icon_hide"; + signal: "elm,state,elm.swallow.icon,hide"; + source: "elm"; + script { + set_int(icon_visible, 0); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "controlbar_show"; + signal: "elm,state,controlbar,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + } + } + program { name: "controlbar_hide"; + signal: "elm,state,controlbar,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + } + } + program { name: "controlbar_bg_show"; + signal: "elm,state,controlbar_bg,show"; + source: "elm"; + script { + set_state(PART:"controlbar_bg", "show", 0.0); + set_int(cbar_bg, get_int(cbar_bg) + 1); + } + } + program { name: "controlbar_bg_hide"; + signal: "elm,state,controlbar_bg,hide"; + source: "elm"; + script { + set_int(cbar_bg, get_int(cbar_bg) - 1); + if (get_int(cbar_bg) <= 0) + set_state(PART:"controlbar_bg", "default", 0.0); + } + } + program { name: "optionheader_show"; + signal: "elm,state,optionheader,show"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "show", 0.0); + set_state(PART:"optionheader_arrow", "show", 0.0); + set_int(oh_show, 1); + } + } + program { name: "optionheader_hide"; + signal: "elm,state,optionheader,hide"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "default", 0.0); + set_state(PART:"optionheader_arrow", "default", 0.0); + set_int(oh_show, 0); + } + } + program { name: "optionheader_open"; + signal: "elm,state,optionheader,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_open_set"; + } + program { name: "optionheader_close"; + signal: "elm,state,optionheader,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_close_set"; + } + program { name: "optionheader_instant_open"; + signal: "elm,state,optionheader,instant_open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_open_set"; + } + program { name: "optionheader_instant_close"; + signal: "elm,state,optionheader,instant_close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_close_set"; + } + program { name: "optionheader_close_set"; + signal: "elm,state,optionheader,close_set"; + source: ""; + script { + set_int(oh_close, 1); + } + } + program { name: "optionheader_open_set"; + signal: "elm,state,optionheader,open_set"; + source: ""; + script { + set_int(oh_close, 0); + } + } + program { name: "controlbar_open"; + signal: "elm,state,controlbar,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_close"; + signal: "elm,state,controlbar,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_instant_open"; + signal: "elm,state,controlbar,instant_open"; + source: ""; + script { + emit("elm,state,prev_btn,show", "elm"); + emit("elm,state,controlbar,show", "elm"); + } + } + program { name: "controlbar_instant_close"; + signal: "elm,state,controlbar,instant_close"; + source: ""; + script { + emit("elm,state,prev_btn,hide", "elm"); + emit("elm,state,controlbar,hide", "elm"); + } + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + program { + name: "title_clicked"; + signal: "mouse,clicked,1"; + source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,title,clicked" ""; + } + } + } + + group { name: "elm/naviframe/item/browser/tabbar/default"; + script { + public cbar_bg = 0; //Controlbar BG Show call count + } + parts { + part { name: "base"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + repeat_events: 0; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1.relative: 0.0 0.0; + rel1.to: "base"; + rel2.relative: 1.0 0.0; + rel2.to_x: "base"; + rel2.to_y: "controlbar_bg"; + } + } + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } + part { name: "controlbar_bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + align: 0.0 1.0; + visible: 0; + rel1 { to: "base"; } + rel2 { to: "base"; } + color: NAVIFRAME_CONTROLBAR_BG_COLOR_INC; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + visible: 1; + } + } + part { name: "controlbar_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "controlbar_bg"; } + rel2 { to: "controlbar_bg"; } + } + } + part { name: "elm.prev_btn_bg"; + type: RECT; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.0; + rel1 { relative: 1.0 0.0; to: "controlbar_bg"; } + rel2.to: "controlbar_bg"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 0; + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + align: 0.5 0.5; + rel1.to: "elm.prev_btn_bg"; + rel2.to: "elm.prev_btn_bg"; + } + } + part { name: "controlbar"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2 { relative: 0.0 1.0; to: "elm.prev_btn_bg"; } + } + } + } + programs { + program { name: "content_new_pushed"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_pushed"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"base", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"base", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + program { name: "prev_btn_show"; + signal: "elm,state,prev_btn,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + set_state(PART:"elm.prev_btn_bg", "visible", 0.0); + } + } + program { name: "prev_btn_hide"; + signal: "elm,state,prev_btn,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + set_state(PART:"elm.prev_btn_bg", "default", 0.0); + } + } + program { name: "controlbar_show"; + signal: "elm,state,controlbar,show"; + source: "elm"; + action: STATE_SET "show" 0.0; + script { + emit("elm,state,controlbar_bg,show", "elm"); + } + } + program { name: "controlbar_hide"; + signal: "elm,state,controlbar,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + } + } + program { name: "controlbar_bg_show"; + signal: "elm,state,controlbar_bg,show"; + source: "elm"; + script { + set_state(PART:"controlbar_bg", "show", 0.0); + set_int(cbar_bg, get_int(cbar_bg) + 1); + } + } + program { name: "controlbar_bg_hide"; + signal: "elm,state,controlbar_bg,hide"; + source: "elm"; + script { + set_int(cbar_bg, get_int(cbar_bg) - 1); + if (get_int(cbar_bg) <= 0) + set_state(PART:"controlbar_bg", "default", 0.0); + } + } + program { name: "controlbar_open"; + signal: "elm,state,controlbar,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_close"; + signal: "elm,state,controlbar,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_instant_open"; + signal: "elm,state,controlbar,instant_open"; + source: ""; + script { + emit("elm,state,prev_btn,show", "elm"); + emit("elm,state,controlbar,show", "elm"); + } + } + program { name: "controlbar_instant_close"; + signal: "elm,state,controlbar,instant_close"; + source: ""; + script { + emit("elm,state,prev_btn,hide", "elm"); + emit("elm,state,controlbar,hide", "elm"); + } + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + program { + name: "title_clicked"; + signal: "mouse,clicked,1"; + source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,title,clicked" ""; + } + } + } +} + diff --git a/edc/browser-picker-layout.edc b/edc/browser-picker-layout.edc new file mode 100755 index 0000000..0a0c231 --- /dev/null +++ b/edc/browser-picker-layout.edc @@ -0,0 +1,53 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { + name: "picker_layout"; + parts { + part { + name: "bg"; + mouse_events: 1; + repeat_events: 1; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { + name: "elm.swallow.picker"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.5; to: bg; } + rel2 { relative: 1.0 1.0; to: bg; } + } + } + } + } +} + diff --git a/edc/browser-predictive-history.edc b/edc/browser-predictive-history.edc new file mode 100755 index 0000000..c9c2ee2 --- /dev/null +++ b/edc/browser-predictive-history.edc @@ -0,0 +1,448 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { + name: "browser/predictive-history"; + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 255; + } + } + part { name: "elm.swallow.predictive_history_genlist"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + } + } + } + + +#define GENLIST_PART_TEXT_SELECTED_COLOR_INC 255 255 255 255 + +#define BEAT_GENLIST_PART_BASE( param_item_height ) \ + part { name: "base"; \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: 0 param_item_height; \ + color: 0 0 0 255; \ + } \ + } +#define BEAT_GENLIST_PART_BG_IMAGE \ + part { name: "bg_image"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + visible: 0; \ + color: GENLIST_PART_BG_SELECTED_COLOR_INC; \ + } \ + description { state: "selected" 0.0; \ + inherit: "default" 0.0; \ + visible: 1; \ + } \ + } +#define BEAT_GENLIST_PART_BOTTOM_LINE \ + part { name: "bottom_line"; \ + type: RECT; \ + clip_to: "disclip"; \ + mouse_events: 0; \ + description { state: "default" 0.0; \ + min: 0 1; \ + fixed: 0 1; \ + visible: 1; \ + color: 80 80 80 255; \ + rel1 { \ + relative: 0.0 1.0; \ + offset: 0 -1; \ + } \ + } \ + } +#define BEAT_GENLIST_PART_PADDING_LEFT( param_padding_size ) \ + part { name: "elm.padding.left"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel2.relative: 0.0 1.0; \ + align: 0.0 0.0; \ + } \ + } +#define BEAT_GENLIST_PART_PADDING_RIGHT( param_padding_size ) \ + part { name: "elm.padding.right"; \ + type: RECT; \ + scale: 1; \ + description { state: "default" 0.0; \ + min: param_padding_size 0; \ + fixed: 1 0; \ + visible: 0; \ + rel1.relative: 1.0 0.0; \ + align: 1.0 0.0; \ + } \ + } + + group { name: "elm/genlist/item/browser/1text/default"; + alias: "elm/genlist/item_odd/browser/1text/default"; + alias: "elm/genlist/item/browser/1line_textonly/default"; + alias: "elm/genlist/item_odd/browser/1line_textonly/default"; + alias: "elm/genlist/item_compress/browser/1line_textonly/default"; + alias: "elm/genlist/item_compress_odd/browser/1line_textonly/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + styles { + style { name: "text_style"; + base: "font=SLP:style=Roman font_size=40 color=#F9F9F9 wrap=char ellipsis=1.0"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "tab" "\t"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "match" "+ color=#008CD2FF"; + } + } + parts { + BEAT_GENLIST_PART_BASE( 90 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_LEFT( 15 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 15 ) + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + rel1 { + relative: 1.0 0.2; + offset: 0 0; + to_x: "elm.padding.left"; + to_y: "base"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "base"; + } + text { + style: "text_style"; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } + + group { name: "elm/genlist/item/browser/1text.1icon/default"; + alias: "elm/genlist/item_odd/browser/1text.1icon/default"; + alias: "elm/genlist/item_compress/browser/1text.1icon/default"; + alias: "elm/genlist/item_compress_odd/browser/1text.1icon/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + data.item: "contents" "elm.icon"; + data.item: "renames" "elm.edit.rename"; + + parts { + BEAT_GENLIST_PART_BASE( 90 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_LEFT( 15 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 15 ) + part { name: "elm.icon"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + min: 60 60; + max: 60 60; + rel1.to_x: "elm.padding.left"; + rel1.offset: 10 0; + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.left"; + } + align: 0.0 0.5; + } + } + part { name: "elm.padding.icon.left"; + clip_to: "disclip"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + rel1.to_x: "elm.icon"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon"; + } + align: 1.0 0.0; + visible: 0; + } + } + + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + offset: 0 0; + to_x: "elm.icon"; + to_y: "base"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "base"; + } + text { + style: "text_style"; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } + + group { name: "elm/genlist/item/browser/1text.1icon.2/default"; + alias: "elm/genlist/item_odd/browser/1text.1icon.2/default"; + alias: "elm/genlist/item_compress/browser/1text.1icon.2/default"; + alias: "elm/genlist/item_compress_odd/browser/1text.1icon.2/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + data.item: "contents" "elm.icon"; + data.item: "renames" "elm.edit.rename"; + + parts { + BEAT_GENLIST_PART_BASE( 90 ) + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_LEFT( 15 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 15 ) + part { name: "elm.icon"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + min: 40 40; + max: 40 40; + rel1.to_x: "elm.padding.left"; + rel1.offset: 10 0; + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.left"; + } + align: 0.0 0.5; + } + } + part { name: "elm.padding.icon.left"; + clip_to: "disclip"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 10 0; + fixed: 1 0; + rel1.to_x: "elm.icon"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.icon"; + } + align: 1.0 0.0; + visible: 0; + } + } + /* Customize, the globe icon is more smaller than search icon. */ + part { name: "elm.padding.text.left"; + clip_to: "disclip"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 20 0; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 1.0 0.0; to: "elm.icon"; } + rel2 { relative: 1.0 0.0; to: "elm.icon"; } + visible: 0; + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + offset: 0 0; + /* Customize, the globe icon is more smaller than search icon. */ + to_x: "elm.padding.text.left"; + to_y: "base"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to_x: "elm.padding.right"; + to_y: "base"; + } + text { + style: "text_style"; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: GENLIST_PART_TEXT_SELECTED_COLOR_INC; + } + } + BEAT_GENLIST_PART_DISCLIP + } + programs { + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } +} diff --git a/edc/browser-settings.edc b/edc/browser-settings.edc new file mode 100755 index 0000000..1af3ee8 --- /dev/null +++ b/edc/browser-settings.edc @@ -0,0 +1,178 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { + name: "edit_homepage_view"; + + parts { + part { + name: "bg"; + mouse_events: 0; + type: RECT; + description + { + state: "default" 0.0; + visible: 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { + name: "elm.swallow.entry"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 80; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: bg; offset: 20 0; } + rel2 { relative: 1.0 0.0; to: bg; offset: -20 0; } + } + } + } + } + + group { name: "elm/genlist/item/browser-settings/select_all/default"; + alias: "elm/genlist/item_odd/browser-settings/select_all/default"; + alias: "elm/genlist/item_compress/browser-settings/select_all/default"; + alias: "elm/genlist/item_compress_odd/browser-settings/select_all/default"; + + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + data.item: "contents" "elm.swallow.icon elm.swallow.end"; + parts { + BEAT_GENLIST_PART_BASE( 120 ) + + part { name: "bg"; + type: RECT; + clip_to: "disclip"; + mouse_events: 0; + description { state: "default" 0.0; + color: 52 74 85 255; + } + } + + BEAT_GENLIST_PART_BG_IMAGE + BEAT_GENLIST_PART_BOTTOM_LINE + BEAT_GENLIST_PART_PADDING_LEFT( 15 ) + BEAT_GENLIST_PART_PADDING_RIGHT( 22 ) + part { name: "elm.swallow.end"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + align: 1.0 0.5; + rel1.to_x: "elm.padding.right"; + rel2 { + relative: 0.0 1.0; + to_x: "elm.padding.right"; + } + } + } + part { name: "elm.text"; + clip_to: "disclip"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1 { + relative: 1.0 0.0; + offset: 30 0; + to_x: "elm.swallow.icon"; + } + rel2 { + to_x: "elm.swallow.end"; + relative: 0.0 1.0; + offset: 30 0; + } + color: 255 255 255 255; + text { + font: "SLP:style=Roman"; + size: 48; + min: 0 1; + align: 0.0 0.5; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.icon"; + clip_to: "disclip"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + align: 0.0 0.5; + fixed: 1 1; + visible:1; + min: 63 63; + max: 63 63; + rel1 { + relative: 1.0 0.0; + to_x: "elm.padding.left"; + } + rel2.to_x: "elm.padding.left"; + } + } + + BEAT_GENLIST_SELECT_ALL_PART_DISCLIP + } + programs { + // signal: elm,state,%s,active + // a "check" item named %s went active + // signal: elm,state,%s,passive + // a "check" item named %s went passive + // default is passive + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg_image"; + target: "elm.text"; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg_image"; + target: "elm.text"; + transition: LINEAR 0.1; + } + program { name: "go_disabled"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disclip"; + } + program { name: "go_enabled"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disclip"; + } + } + } +} + diff --git a/edc/browser-view-control-bar.edc b/edc/browser-view-control-bar.edc new file mode 100755 index 0000000..37015f0 --- /dev/null +++ b/edc/browser-view-control-bar.edc @@ -0,0 +1,1755 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { +//////////////////////////////////////////////////////////////////////////////////////// +// controlbar +/////////////////////////////////////////////////////////////////////////////////////// + + +#define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC 28 +#define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC "#f9f9f9" +#define BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC 56 56 +#define BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC 249 249 249 255 +#define BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC 249 249 249 255 + +#define ITEM_STATE_ENABLED 0 +#define ITEM_STATE_DISABLED 1 + +group { name: "elm/toolbar/base/browser/default"; + images { + image: "browser-view-images/controlbar/I01_toolbar_bg.png" COMP; + } + parts { + part { name: "base"; + mouse_events: 1; + description { state: "default" 0.0; + image.normal: "browser-view-images/controlbar/I01_toolbar_bg.png"; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { + to: "base"; + offset: 2 2; + } + rel2 { + to: "base"; + offset: -3 -3; + } + } + } + part { name: "elm.swallow.content"; + clip_to: "clipper"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + } + } + part { name: "event"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + } +} + +group { name: "elm/toolbar/item/browser/default"; + images { + image: "browser-view-images/controlbar/I01_toolbar_press.png" COMP; + } + styles{ + style { name: "toolbar_style"; + base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "hilight" "+ font=SLP:style=Bold"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "tab" "\t"; + } + } + + data.item: "transition_animation_on" "1"; + script { + public item_state = ITEM_STATE_ENABLED; + } + parts { + part { name: "bg"; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + image { + normal: "browser-view-images/controlbar/I01_toolbar_press.png"; + border: 3 3 3 3; + } + image.middle: SOLID; + fill.smooth: 0; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "padding_left_top"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 0.0 0.0; + rel2.relative: 0.0 0.0; + min: 10 8; + fixed: 1 1; + visible: 1; + color: 0 0 0 0; + } + } + part { name: "padding_right_bottom"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + min: 10 5; + fixed: 1 1; + visible: 1; + color: 0 0 0 0; + } + } + part { + name: "icon_rect"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + min: 0 0; + fixed: 0 1; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + align: 0.5 0.0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + fixed: 0 1; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + align: 0.5 0.0; + color: 0 0 0 0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { name: "padding_after_icon"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + align: 0.0 0.0; + rel1 { + relative: 0.0 1.0; + to: "icon_rect"; + } + rel2.to: "icon_rect"; + fixed: 0 1; + min: 0 0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + align: 0.5 1.0; + rel1 { + relative: 1.0 0.0; + to_x: "padding_left_top"; + to_y: "elm.text"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "elm.text"; + } + fixed: 0 1; + min: 0 0; + color: 0 0 0 0; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "elm.icon.clipper"; + description { state: "default" 0.0; + visible: 0; + align: 0.5 0.0; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + fixed: 0 1; + } + description { state: "visible" 0.0; + fixed: 0 1; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "padding_before_text"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + description { state: "icononly" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + } + part { name: "elm.swallow.icon_new"; + type: SWALLOW; + scale: 1; + clip_to: "elm.icon_new.clipper"; + description { state: "default" 0.0; + visible: 0; + align: 0.5 0.0; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + fixed: 0 1; + } + description { state: "visible" 0.0; + fixed: 0 1; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "padding_before_text"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + description { state: "icononly" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + clip_to: "elm.text.clipper"; + description { state: "default" 0.0; + visible: 1; + rel1 { + relative: 1.0 1.0; + to_x: "padding_left_top"; + to_y: "padding_after_icon"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC; + fixed: 1 1; + text { + style: "toolbar_style"; + min: 0 1; + max: 0 1; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text_new"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + clip_to: "elm.text_new.clipper"; + description { state: "default" 0.0; + visible: 1; + rel1 { + relative: 1.0 1.0; + to_x: "padding_left_top"; + to_y: "padding_after_icon"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC; + fixed: 1 1; + text { + style: "toolbar_style"; + min: 0 1; + max: 0 1; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "animation" 0.0; + color: 255 255 255 0; + } + description { state: "disabled" 0.0; + color: 255 255 255 153; + } + } + part { name: "elm.text_new.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "animation" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.icon.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "animation" 0.0; + color: 255 255 255 0; + } + description { state: "disabled" 0.0; + color: 255 255 255 153; + } + } + part { name: "elm.icon_new.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "animation" 0.0; + color: 255 255 255 255; + } + } + part { name: "event"; + type: RECT; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "event2"; + type: RECT; + mouse_events: 1; + 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(item_state) != ITEM_STATE_DISABLED) + set_state(PART:"bg", "selected", 0.0); + } + transition: LINEAR 0.2; + } + program { name: "unpressed"; + signal: "mouse,up,1"; + source: "event2"; + action: STATE_SET "default" 0.0; + target: "bg"; + transition: LINEAR 0.1; + } + program { name: "go"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" "elm"; + } + program { name: "mouse,in"; + signal: "mouse,in"; + source: "event"; + action: SIGNAL_EMIT "elm,mouse,in" "elm"; + } + program { name: "mouse,out"; + signal: "mouse,out"; + source: "event"; + action: SIGNAL_EMIT "elm,mouse,out" "elm"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "bg"; + after: "disable_text"; + } + program { name: "disable_text"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.text", "disabled_visible", 0.0); + set_state(PART:"elm.text_new", "disabled_visible", 0.0); + } + else + { + set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text_new", "disabled", 0.0); + } + set_state(PART:"elm.text.clipper", "disabled", 0.0); + set_state(PART:"elm.icon.clipper", "disabled", 0.0); + set_int(item_state, ITEM_STATE_DISABLED); + } + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + after: "enable_text"; + } + program { name: "enable_text"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "disabled_visible")) + { + set_state(PART:"elm.text", "visible", 0.0); + set_state(PART:"elm.text_new", "visible", 0.0); + } + else + { + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text_new", "default", 0.0); + } + set_state(PART:"elm.text.clipper", "default", 0.0); + set_state(PART:"elm.icon.clipper", "default", 0.0); + set_int(item_state, ITEM_STATE_ENABLED); + } + } + program { name: "label_set,animation,forward"; + signal: "elm,state,label_set,forward"; + source: "elm"; + after: "label_set,animation"; + } + program { name: "label_set,animation,backward"; + signal: "elm,state,label_set,backward"; + source: "elm"; + after: "label_set,animation"; + } + program { name: "label_set,animation"; + signal: "elm,state,label_set"; + source: "elm"; + action: STATE_SET "animation" 0.0; + target: "elm.text.clipper"; + target: "elm.text_new.clipper"; + transition: LINEAR 0.2; + after: "label_set,animation,done"; + } + program { name: "label_set,animation,done"; + action: SIGNAL_EMIT "elm,state,label_set,done" "elm"; + } + program { name: "label,reset"; + signal: "elm,state,label,reset"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text.clipper"; + target: "elm.text_new.clipper"; + } + program { name: "icon_set,animation,forward"; + signal: "elm,state,icon_set,forward"; + source: "elm"; + after: "icon_set,animation"; + } + program { name: "icon_set,animation,backward"; + signal: "elm,state,icon_set,backward"; + source: "elm"; + after: "icon_set,animation"; + } + program { name: "icon_set,animation"; + signal: "elm,state,icon_set"; + source: "elm"; + action: STATE_SET "animation" 0.0; + target: "elm.icon.clipper"; + target: "elm.icon_new.clipper"; + transition: LINEAR 0.2; + after: "icon_set,animation,done"; + } + program { name: "icon_set,animation,done"; + action: SIGNAL_EMIT "elm,state,icon_set,done" "elm"; + } + program { name: "icon,reset"; + signal: "elm,state,icon,reset"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.icon.clipper"; + target: "elm.icon_new.clipper"; + } + program { name: "text_show"; + signal: "elm,state,text,visible"; + source: "elm"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.icon", st, 30, vl); + if (!strcmp(st, "icononly")) + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"icon_rect", "visible", 0.0); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + set_state(PART:"elm.text", "visible", 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.icon", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.swallow.icon", "icononly", 0.0); + set_state(PART:"icon_rect", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + set_state(PART:"elm.text", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,icon,visible"; + source: "elm"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"icon_rect", "visible", 0.0); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + else + { + set_state(PART:"elm.swallow.icon", "icononly", 0.0); + set_state(PART:"icon_rect", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + } + } + } +} + +group { name: "elm/toolbar/item/browser/item_horizontal"; + inherit: "elm/toolbar/item/browser/default"; + script { + public item_state = ITEM_STATE_ENABLED; + } + parts { + part { name: "icon_rect"; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + } + description { state: "visible" 0.0; + fixed: 1 0; + rel2 { + relative: 1.0 0.0; + to_x: "padding_left_top"; + to_y: "padding_right_bottom"; + } + align: 0.0 0.5; + } + } + part { name: "padding_after_icon"; + description { state: "default" 0.0; //when only icon or no icon is there + rel1.relative: 1.0 0.0; + fixed: 1 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 6 0; + } + } + part { name: "padding_before_text"; + description { state: "default" 0.0; //when only icon or no icon is there + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "elm.text"; + to_y: "padding_left_top"; + } + rel2 { + to_x: "elm.text"; + to_y: "padding_right_bottom"; + } + fixed: 1 0; + min: 6 0; + } + } + part { name: "elm.swallow.icon"; + description { state: "default" 0.0; + align: 0.0 0.5; + 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 0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "padding_before_text"; + to_y: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_before_text"; + to_y: "padding_right_bottom"; + } + aspect_preference: VERTICAL; + } + description { state: "icononly" 0.0; + aspect_preference: VERTICAL; + } + } + part { name: "elm.swallow.icon_new"; + description { state: "default" 0.0; + align: 0.0 0.5; + 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 0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "padding_before_text"; + to_y: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_before_text"; + to_y: "padding_right_bottom"; + } + aspect_preference: VERTICAL; + } + description { state: "icononly" 0.0; + aspect_preference: VERTICAL; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_after_icon"; + to_y: "padding_left_top"; + } + text { + style: "toolbar_style"; + min: 1 0; + max: 1 0; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text_new"; + type: TEXTBLOCK; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_after_icon"; + to_y: "padding_left_top"; + } + text { + style: "toolbar_style"; + min: 1 0; + max: 1 0; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + } +} + +group { name: "elm/toolbar/separator/browser/default"; + images { +// image: "separator_v.png" COMP; + } + parts { + part { name: "separator"; // separator group + description { state: "default" 0.0; +// min: 2 2; +// max: 2 9999; + min: 0 2; // browser customize + max: 0 9999; // browser customize + rel1.offset: 4 4; + rel2.offset: -5 -5; + image { +// normal: "separator_v.png"; + } + fill { + smooth: 0; + } + } + } + } +} + +group { name: "elm/toolbar/object/browser/default"; + parts { + part { name: "elm.swallow.object"; // object group + type: SWALLOW; + description { + state: "default" 0.0; + } + } + } +} + +group { name: "elm/toolbar/base/browser/tabbar"; + images { + image: "browser-view-images/controlbar/I01_tabbar_bg.png" COMP; + } + + parts { + part { name: "base"; + mouse_events: 1; + description { state: "default" 0.0; + image.normal: "browser-view-images/controlbar/I01_tabbar_bg.png"; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { + to: "base"; + offset: 2 2; + } + rel2 { + to: "base"; + offset: -3 -3; + } + } + } + part { name: "elm.swallow.content"; + clip_to: "clipper"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + } + } + part { name: "event"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + } +} + +group { name: "elm/toolbar/item/browser/tabbar"; + alias: "elm/toolbar/item/tabbar/browser/item_horizontal"; + images { + image: "browser-view-images/controlbar/I01_tabbar_focus.png" COMP; + } + + data.item: "transition_animation_on" "1"; + parts { + part { name: "bg"; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + image { + normal: "browser-view-images/controlbar/I01_tabbar_focus.png"; + } + image.middle: SOLID; + fill.smooth: 0; + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "padding_left_top"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 0.0 0.0; + rel2.relative: 0.0 0.0; + min: 10 8; + fixed: 1 1; + visible: 1; + color: 0 0 0 0; + } + } + part { name: "padding_right_bottom"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + min: 10 5; + fixed: 1 1; + visible: 1; + color: 0 0 0 0; + } + } + part { + name: "icon_rect"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + min: 0 0; + fixed: 0 1; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + align: 0.5 0.0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + fixed: 0 1; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + align: 0.5 0.0; + color: 0 0 0 0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { name: "padding_after_icon"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + align: 0.0 0.0; + rel1 { + relative: 0.0 1.0; + to: "icon_rect"; + } + rel2.to: "icon_rect"; + fixed: 0 1; + min: 0 0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + align: 0.0 0.0; + rel1 { + relative: 0.0 1.0; + to: "icon_rect"; + } + rel2.to: "icon_rect"; + fixed: 0 1; + min: 0 0; + color: 0 0 0 0; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; //when only icon or no icon is there + align: 0.5 1.0; + rel1 { + relative: 1.0 0.0; + to_x: "padding_left_top"; + to_y: "elm.text"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "elm.text"; + } + fixed: 0 1; + min: 0 0; + color: 0 0 0 0; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "elm.icon.clipper"; + description { state: "default" 0.0; + visible: 0; + align: 0.5 0.0; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + fixed: 0 1; + } + description { state: "visible" 0.0; + fixed: 0 1; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "padding_before_text"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + description { state: "icononly" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + } + part { name: "elm.swallow.icon_new"; + type: SWALLOW; + scale: 1; + clip_to: "elm.icon_new.clipper"; + description { state: "default" 0.0; + visible: 0; + align: 0.5 0.0; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_right_bottom"; + to_y: "padding_left_top"; + } + fixed: 0 1; + } + description { state: "visible" 0.0; + fixed: 0 1; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_right_bottom"; + to_y: "padding_before_text"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + description { state: "icononly" 0.0; + min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC; + rel1 { + relative: 1.0 1.0; + to: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + clip_to: "elm.text.clipper"; + description { state: "default" 0.0; + visible: 1; + rel1 { + relative: 1.0 1.0; + to_x: "padding_left_top"; + to_y: "padding_after_icon"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC; + fixed: 1 1; + text { + style: "toolbar_style"; + min: 0 1; + max: 0 1; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text_new"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + clip_to: "elm.text_new.clipper"; + description { state: "default" 0.0; + visible: 1; + rel1 { + relative: 1.0 1.0; + to_x: "padding_left_top"; + to_y: "padding_after_icon"; + } + rel2 { + relative: 0.0 0.0; + to: "padding_right_bottom"; + } + color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC; + fixed: 1 1; + text { + style: "toolbar_style"; + min: 0 1; + max: 0 1; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "animation" 0.0; + color: 255 255 255 0; + } + description { state: "disabled" 0.0; + color: 255 255 255 153; + } + } + part { name: "elm.text_new.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "animation" 0.0; + color: 255 255 255 255; + } + } + part { name: "elm.icon.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "animation" 0.0; + color: 255 255 255 0; + } + description { state: "disabled" 0.0; + color: 255 255 255 153; + } + } + part { name: "elm.icon_new.clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "animation" 0.0; + color: 255 255 255 255; + } + } + part { name: "event"; + type: RECT; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + } + programs { + program { name: "go_active"; + signal: "elm,state,selected"; + source: "elm"; + action: STATE_SET "selected" 0.0; + target: "bg"; + transition: LINEAR 0.2; + } + program { name: "go_passive"; + signal: "elm,state,unselected"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + transition: LINEAR 0.1; + }/* + program { name: "pressed"; + signal: "mouse,down,1"; + source: "event"; + action: STATE_SET "selected" 0.0; + target: "bg"; + target: "elm.text"; + target: "elm.text_new"; + transition: LINEAR 0.2; + } + program { name: "unpressed"; + signal: "mouse,up,1"; + source: "event"; + action: STATE_SET "default" 0.0; + target: "bg"; + target: "elm.text"; + target: "elm.text_new"; + transition: LINEAR 0.1; + }*/ + program { name: "go"; + signal: "mouse,up,1"; + source: "event"; + action: SIGNAL_EMIT "elm,action,click" "elm"; + } + program { name: "mouse,in"; + signal: "mouse,in"; + source: "event"; + action: SIGNAL_EMIT "elm,mouse,in" "elm"; + } + program { name: "mouse,out"; + signal: "mouse,out"; + source: "event"; + action: SIGNAL_EMIT "elm,mouse,out" "elm"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "bg"; + after: "disable_text"; + } + program { name: "disable_text"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.text", "disabled_visible", 0.0); + set_state(PART:"elm.text_new", "disabled_visible", 0.0); + } + else + { + set_state(PART:"elm.text", "disabled", 0.0); + set_state(PART:"elm.text_new", "disabled", 0.0); + } + set_state(PART:"elm.text.clipper", "disabled", 0.0); + set_state(PART:"elm.icon.clipper", "disabled", 0.0); + } + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "bg"; + after: "enable_text"; + } + program { name: "enable_text"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "disabled_visible")) + { + set_state(PART:"elm.text", "visible", 0.0); + set_state(PART:"elm.text_new", "visible", 0.0); + } + else + { + set_state(PART:"elm.text", "default", 0.0); + set_state(PART:"elm.text_new", "default", 0.0); + } + set_state(PART:"elm.text.clipper", "default", 0.0); + set_state(PART:"elm.icon.clipper", "default", 0.0); + } + } + program { name: "label_set,animation,forward"; + signal: "elm,state,label_set,forward"; + source: "elm"; + after: "label_set,animation"; + } + program { name: "label_set,animation,backward"; + signal: "elm,state,label_set,backward"; + source: "elm"; + after: "label_set,animation"; + } + program { name: "label_set,animation"; + signal: "elm,state,label_set"; + source: "elm"; + action: STATE_SET "animation" 0.0; + target: "elm.text.clipper"; + target: "elm.text_new.clipper"; + transition: LINEAR 0.2; + after: "label_set,animation,done"; + } + program { name: "label_set,animation,done"; + action: SIGNAL_EMIT "elm,state,label_set,done" "elm"; + } + program { name: "label,reset"; + signal: "elm,state,label,reset"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text.clipper"; + target: "elm.text_new.clipper"; + } + program { name: "icon_set,animation,forward"; + signal: "elm,state,icon_set,forward"; + source: "elm"; + after: "icon_set,animation"; + } + program { name: "icon_set,animation,backward"; + signal: "elm,state,icon_set,backward"; + source: "elm"; + after: "icon_set,animation"; + } + program { name: "icon_set,animation"; + signal: "elm,state,icon_set"; + source: "elm"; + action: STATE_SET "animation" 0.0; + target: "elm.icon.clipper"; + target: "elm.icon_new.clipper"; + transition: LINEAR 0.2; + after: "icon_set,animation,done"; + } + program { name: "icon_set,animation,done"; + action: SIGNAL_EMIT "elm,state,icon_set,done" "elm"; + } + program { name: "icon,reset"; + signal: "elm,state,icon,reset"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.icon.clipper"; + target: "elm.icon_new.clipper"; + } + program { name: "text_show"; + signal: "elm,state,text,visible"; + source: "elm"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.icon", st, 30, vl); + if (!strcmp(st, "icononly")) + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"icon_rect", "visible", 0.0); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + set_state(PART:"elm.text", "visible", 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.icon", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.swallow.icon", "icononly", 0.0); + set_state(PART:"icon_rect", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + set_state(PART:"elm.text", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,icon,visible"; + source: "elm"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.text", st, 30, vl); + if (!strcmp(st, "visible")) + { + set_state(PART:"elm.swallow.icon", "visible", 0.0); + set_state(PART:"icon_rect", "visible", 0.0); + set_state(PART:"padding_after_icon", "visible", 0.0); + } + else + { + set_state(PART:"elm.swallow.icon", "icononly", 0.0); + set_state(PART:"icon_rect", "icononly", 0.0); + set_state(PART:"padding_after_icon", "icononly", 0.0); + } + } + } + } +} + +group { name: "elm/toolbar/item/tabbar/browser/item_horizontal"; + inherit: "elm/toolbar/item/browser/tabbar"; + script { + public item_state = ITEM_STATE_ENABLED; + } + parts { + part { name: "icon_rect"; + description { state: "default" 0.0; + fixed: 1 0; + align: 0.0 0.5; + } + description { state: "visible" 0.0; + fixed: 1 0; + rel2 { + relative: 1.0 0.0; + to_x: "padding_left_top"; + to_y: "padding_right_bottom"; + } + align: 0.0 0.5; + } + } + part { name: "padding_after_icon"; + description { state: "default" 0.0; //when only icon or no icon is there + rel1.relative: 1.0 0.0; + fixed: 1 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 6 0; + } + } + part { name: "padding_before_text"; + description { state: "default" 0.0; //when only icon or no icon is there + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "elm.text"; + to_y: "padding_left_top"; + } + rel2 { + to_x: "elm.text"; + to_y: "padding_right_bottom"; + } + fixed: 1 0; + min: 6 0; + } + } + part { name: "elm.swallow.icon"; + description { state: "default" 0.0; + align: 0.0 0.5; + 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 0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "padding_before_text"; + to_y: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_before_text"; + to_y: "padding_right_bottom"; + } + aspect_preference: VERTICAL; + } + description { state: "icononly" 0.0; + aspect_preference: VERTICAL; + } + } + part { name: "elm.swallow.icon_new"; + description { state: "default" 0.0; + align: 0.0 0.5; + 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 0; + align: 1.0 0.5; + rel1 { + relative: 0.0 1.0; + to_x: "padding_before_text"; + to_y: "padding_left_top"; + } + rel2 { + relative: 0.0 0.0; + to_x: "padding_before_text"; + to_y: "padding_right_bottom"; + } + aspect_preference: VERTICAL; + } + description { state: "icononly" 0.0; + aspect_preference: VERTICAL; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_after_icon"; + to_y: "padding_left_top"; + } + text { + style: "toolbar_style"; + min: 1 0; + max: 1 0; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + part { name: "elm.text_new"; + type: TEXTBLOCK; + description { state: "default" 0.0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_after_icon"; + to_y: "padding_left_top"; + } + text { + style: "toolbar_style"; + min: 1 0; + max: 1 0; + } + } + description { state: "selected" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC; + } + } + } +} + +group { name: "elm/toolbar/base/browser/naviframe"; + parts { + part { name: "base"; + mouse_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { + to: "base"; + offset: 2 2; + } + rel2 { + to: "base"; + offset: -3 -3; + } + } + } + part { name: "elm.swallow.content"; + clip_to: "clipper"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + } + } + part { name: "event"; + type: RECT; + mouse_events: 1; + repeat_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + } + } +} + +group { name: "elm/toolbar/object/browser/naviframe"; + parts { + part { name: "elm.swallow.object"; // object group + type: SWALLOW; + description { + state: "default" 0.0; + rel1.offset: 5 0; + rel2.offset: -6 -1; + } + } + } +} + +} diff --git a/edc/browser-view-find-word-layout.edc b/edc/browser-view-find-word-layout.edc new file mode 100755 index 0000000..c3a822d --- /dev/null +++ b/edc/browser-view-find-word-layout.edc @@ -0,0 +1,1400 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { +//////////////////////////////////////////////////////////////////////////////////////// +// editfield +//////////////////////////////////////////////////////////////////////////////////////// +#define EDITFIELD_TITLE_SIZE_INC 32 +//#define EDITFIELD_DEFAULT_MINH_INC 112 +// Customize - edit field height +#define EDITFIELD_DEFAULT_MINH_INC 72 +//#define EDITFIELD_DEFAULT_TOP1_SINGLE_INC 20 +// Customize - entry top margin +// Strangely - (Edit field entry is aligned to top a little, so make the top margin more then bottom) +#define EDITFIELD_DEFAULT_TOP1_SINGLE_INC 5 +#define EDITFIELD_DEFAULT_TOP1_MULTI_INC 45 +#define EDITFIELD_DEFAULT_TOP2_INC 6 +#define EDITFIELD_DEFAULT_LEFT1_INC 0 +#define EDITFIELD_DEFAULT_LEFT2_INC 0 +#define EDITFIELD_DEFAULT_LEFT3_INC 1 + +//#define EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 72 // browser customize +#define EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 150 // browser customize + +#define EDITFIELD_DEFAULT_RIGHT2_INC 10 // browser customize +//#define EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC 20 +// Customize - entry bottom margin +#define EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC 0 +#define EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC 5 +#define EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC 32 +#define EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC 6 +#define EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC 85 +#define EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC 60 +#define EDITFIELD_TITLE_COLOR_INC 168 168 168 255 +#define EDITFIELD_GUIDE_TEXT_COLOR_INC 70 70 70 255 +#define ENTRY_TEXT_SIZE_INC 44 +// Customize - text color +//#define ENTRY_TEXT_COLOR_INC "#FFFFFF" +#define ENTRY_TEXT_COLOR_WHITE_INC "#FFFFFF" +#define ENTRY_TEXT_COLOR_BLACK_INC "#000000" + +#define EDITFIELD_DEFAULT_ERASER_MINW_INC 48 +#define EDITFIELD_DEFAULT_ERASER_MINH_INC 48 + + group { name: "elm/editfield/base/browser/find_word_entry/white-text"; + images { + image: "browser-view-images/url-layout/00_EditField_clear.png" COMP; + } + styles { + style { name: "editfield_content_singleline_white_text_style"; + base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_WHITE_INC" wrap=mixed ellipsis=1"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "tab" "\t"; + tag: "em" "+ font=SLP:style=Oblique"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font=SLP:style=Bold"; + } + } + script { + public single_line = 0; + public set_single_line() { + set_int(single_line, 1); + } + public no_edit() { + if(get_int(single_line) == 1) { + set_state(PART:"elm.content.single", "no_edit", 0.0); + set_state(PART:"elm.swallow.content", "no_edit", 0.0); + } + else if(get_int(single_line) == 0) { + set_state(PART:"elm.content.single", "default", 0.0); + } + set_state(PART:"over", "default", 0.0); + set_state(PART:"top2", "default", 0.0); + } + } + parts { + part { + name: "base"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_MINH_INC; + color: 0 0 0 0; + } + } + part { + name: "top1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC; + } + } + part { + name: "top2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP2_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + } + } + part { + name: "left1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT1_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "left2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT2_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "right1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + } + part { + name: "right2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT2_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + } + part { + name: "bottom1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC; + fixed: 1 1; + align: 0 1; + rel1.relative: 0.0 1.0; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC; + } + } + part { + name: "bottom2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC; + } + } + part { + name: "bottom3"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC; + } + } + part { + name: "elm.text"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + min: 0 34; + fixed: 1 1; + rel1 { + relative: 1.0 1.0; + to_x: "left2"; + to_y: "top2"; + } + rel2 { + relative: 1.0 1.0; + to_x: "left2"; + to_y: "top2"; + } + color: EDITFIELD_TITLE_COLOR_INC; + text { + font: "SLP:style=Medium"; + size: EDITFIELD_TITLE_SIZE_INC; + min: 1 1; + align: 0.0 0.0; + } + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.guidetext"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + color: EDITFIELD_GUIDE_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: ENTRY_TEXT_SIZE_INC; + min: 0 0; + align: 0.0 0.5; + } + } + description { + state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.content.single"; + type: TEXTBLOCK; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { + to: "elm.swallow.content"; + offset: EDITFIELD_DEFAULT_LEFT3_INC 0; + } + rel2.to: "elm.swallow.content"; + text { + style: "editfield_content_singleline_white_text_style"; + min: 0 0; + max: 0 1; + } + } + description { + state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 40; + rel1 { + relative : 1.0 1.0; + to_x: "left1"; + to_y: "top1"; + } + rel2 { + relative : 0.0 0.0; + to_x: "right1"; + to_y: "bottom1"; + } + align: 0.0 0.5; + } + description { + state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "over"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + color: 0 0 0 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "eraser_image"; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; + max: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; // browser customize + fixed: 1 1; + align: 1.0 0.5; // browser customize + rel1 { + relative: 0.0 0.0; + to_x : "right2"; +// to_y : "bottom2"; // browser customize + } + rel2 { + relative: 0.0 1.0; + to_x : "right2"; +// to_y : "bottom2"; // browser customize + } + image { + normal: "browser-view-images/url-layout/00_EditField_clear.png"; + border: 10 10 10 10; + border_scale: 1; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "eraser"; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to_x : "eraser_image"; + to_y : "bottom3"; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "guidetext_show"; + signal: "elm,state,guidetext,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guidetext"; + } + program { + name: "guidetext_hide"; + signal: "elm,state,guidetext,hidden"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guidetext"; + } + program { + name: "eraser_show"; + signal: "elm,state,eraser,show"; + source: "elm"; + action: STATE_SET "elm.eraser.show" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "eraser_hide"; + signal: "elm,state,eraser,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "singleline_set"; + signal: "elm,state,text,singleline"; + source: "elm"; + script { + set_single_line(); + } + } + program { + name: "editing"; + signal: "elm,state,over,hide"; + source: "elm"; + action: STATE_SET "edit" 0.0; + target: "elm.swallow.content"; + target: "elm.content.single"; + target: "over"; + target: "top2"; + } + program { + name: "no_editing"; + signal: "elm,state,over,show"; + source: "elm"; + script { + no_edit(); + } + } + program { + name: "label_show"; + signal: "elm,state,text,visible"; + source: "elm"; + action: STATE_SET "elm.text.show" 0.0; + target: "elm.text"; + target: "top1"; + target: "bottom1"; + target: "bottom2"; + target: "bottom3"; + } + program { + name: "label_hide"; + signal: "elm,state,text,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + target: "top1"; + target: "bottom1"; + target: "bottom2"; + target: "bottom3"; + } + program { + name: "entry_show"; + signal: "elm,state,entry,show"; + source: "elm"; + action: STATE_SET "edit" 0.0; + target: "elm.swallow.content"; + } + } + } + + group { name: "elm/editfield/base/browser/find_word_entry/black-text"; + images { + image: "browser-view-images/url-layout/00_EditField_clear.png" COMP; + } + styles { + style { name: "editfield_content_singleline_black_text_style"; + base: "font=SLP:style=Roman font_size="ENTRY_TEXT_SIZE_INC" color="ENTRY_TEXT_COLOR_BLACK_INC" wrap=mixed ellipsis=1"; + tag: "br" "\n"; + tag: "ps" "ps"; + tag: "tab" "\t"; + tag: "em" "+ font=SLP:style=Oblique"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font=SLP:style=Bold"; + } + } + script { + public single_line = 0; + public set_single_line() { + set_int(single_line, 1); + } + public no_edit() { + if(get_int(single_line) == 1) { + set_state(PART:"elm.content.single", "no_edit", 0.0); + set_state(PART:"elm.swallow.content", "no_edit", 0.0); + } + else if(get_int(single_line) == 0) { + set_state(PART:"elm.content.single", "default", 0.0); + } + set_state(PART:"over", "default", 0.0); + set_state(PART:"top2", "default", 0.0); + } + } + parts { + part { + name: "base"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_MINH_INC; + color: 0 0 0 0; + } + } + part { + name: "top1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC; + } + } + part { + name: "top2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP2_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + } + } + part { + name: "left1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT1_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "left2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT2_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "right1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + } + part { + name: "right2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT2_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + } + part { + name: "bottom1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC; + fixed: 1 1; + align: 0 1; + rel1.relative: 0.0 1.0; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC; + } + } + part { + name: "bottom2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC; + } + } + part { + name: "bottom3"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC; + } + } + part { + name: "elm.text"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + min: 0 34; + fixed: 1 1; + rel1 { + relative: 1.0 1.0; + to_x: "left2"; + to_y: "top2"; + } + rel2 { + relative: 1.0 1.0; + to_x: "left2"; + to_y: "top2"; + } + color: EDITFIELD_TITLE_COLOR_INC; + text { + font: "SLP:style=Medium"; + size: EDITFIELD_TITLE_SIZE_INC; + min: 1 1; + align: 0.0 0.0; + } + } + description { + state: "elm.text.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.guidetext"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + color: EDITFIELD_GUIDE_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: ENTRY_TEXT_SIZE_INC; + min: 0 0; + align: 0.0 0.5; + } + } + description { + state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.content.single"; + type: TEXTBLOCK; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + fixed: 1 1; + rel1 { + to: "elm.swallow.content"; + offset: EDITFIELD_DEFAULT_LEFT3_INC 0; + } + rel2.to: "elm.swallow.content"; + text { + style: "editfield_content_singleline_black_text_style"; + min: 0 0; + max: 0 1; + } + } + description { + state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 40; + rel1 { + relative : 1.0 1.0; + to_x: "left1"; + to_y: "top1"; + } + rel2 { + relative : 0.0 0.0; + to_x: "right1"; + to_y: "bottom1"; + } + align: 0.0 0.5; + } + description { + state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "over"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + color: 0 0 0 0; + } + description { + state: "edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "eraser_image"; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; + max: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; // browser customize + fixed: 1 1; + align: 1.0 0.5; // browser customize + rel1 { + relative: 0.0 0.0; + to_x : "right2"; + // to_y : "bottom2"; // browser customize + } + rel2 { + relative: 0.0 1.0; + to_x : "right2"; + // to_y : "bottom2"; // browser customize + } + image { + normal: "browser-view-images/url-layout/00_EditField_clear.png"; + border: 10 10 10 10; + border_scale: 1; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "eraser"; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to_x : "eraser_image"; + to_y : "bottom3"; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "guidetext_show"; + signal: "elm,state,guidetext,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guidetext"; + } + program { + name: "guidetext_hide"; + signal: "elm,state,guidetext,hidden"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guidetext"; + } + program { + name: "eraser_show"; + signal: "elm,state,eraser,show"; + source: "elm"; + action: STATE_SET "elm.eraser.show" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "eraser_hide"; + signal: "elm,state,eraser,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "singleline_set"; + signal: "elm,state,text,singleline"; + source: "elm"; + script { + set_single_line(); + } + } + program { + name: "editing"; + signal: "elm,state,over,hide"; + source: "elm"; + action: STATE_SET "edit" 0.0; + target: "elm.swallow.content"; + target: "elm.content.single"; + target: "over"; + target: "top2"; + } + program { + name: "no_editing"; + signal: "elm,state,over,show"; + source: "elm"; + script { + no_edit(); + } + } + program { + name: "label_show"; + signal: "elm,state,text,visible"; + source: "elm"; + action: STATE_SET "elm.text.show" 0.0; + target: "elm.text"; + target: "top1"; + target: "bottom1"; + target: "bottom2"; + target: "bottom3"; + } + program { + name: "label_hide"; + signal: "elm,state,text,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + target: "top1"; + target: "bottom1"; + target: "bottom2"; + target: "bottom3"; + } + program { + name: "entry_show"; + signal: "elm,state,entry,show"; + source: "elm"; + action: STATE_SET "edit" 0.0; + target: "elm.swallow.content"; + } + } + } + +//////////////////////////////////////////////////////////////////////////////////////// +// url layout +//////////////////////////////////////////////////////////////////////////////////////// + group { + name: "browser-view/find_word_layout"; + images { + image: "browser-view-images/url-layout/naviframe_optionheader.png" COMP; + } + parts { + part { name: "backgournd"; + mouse_events: 1; + repeat_events: 0; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 150; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + image { + normal: "browser-view-images/url-layout/naviframe_optionheader.png"; + border: 1 1 2 1; + border_scale: 1; + } + } + } + part { name: "bg"; + mouse_events: 1; + repeat_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 106; + align: 0.0 0.0; + rel1 { relative: 0.0 1.0; to: "title_text"; } + rel2 { relative: 1.0 1.0; } + color: 255 255 255 255; // white + } + } + part { + name: "navigationbar_bg"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: bg; } + rel2 { relative: 1.0 1.0; to: bg; } + image { + normal: "browser-view-images/url-layout/naviframe_optionheader.png"; + border: 1 1 2 1; + border_scale: 1; + } + } + } + part { + name: "title_text"; + type: TEXT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 1; + fixed: 0 1; + min: 0 44; + align: 0.5 0.0; + rel1 {relative: 0.0 0.0;} + rel2 {relative: 1.0 0.0;} + text { font: FONT_ROM; + size: 34; + min: 0 0; + align: 0.5 1.0; + } + color: 255 255 255 255; + } + } + part { name: "padding,url,top"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 16; + fixed: 0 1; + align: 0.5 0.0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 0.0; to: "bg"; } + } + } + part { name: "padding,url,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 0.0 1.0; to: "bg"; } + } + } + part { name: "padding,url,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 10 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "elm.swallow.find_word_prev"; } + rel2 { relative: 0.0 1.0; to: "elm.swallow.find_word_prev"; } + } + } + part { + name: "elm.swallow.url"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 74; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 1.0 1.0; to_x: "padding,url,left"; to_y: "padding,url,top"; } + rel2 { relative: 0.0 1.0; to_x: "padding,url,right"; to_y: "padding,url,top"; } + } + } + part { name: "padding,index_text,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 60 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "elm.swallow.url"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.url"; } + } + } + part { + name: "elm.index_text"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 1; + min: 100 0; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,index_text,right"; to_y: "elm.swallow.url"; } + rel2 { relative: 0.0 1.0; to_x: "padding,index_text,right"; to_y: "elm.swallow.url"; } + color: 120 120 120 255; + text { + font: "SLP:style=Roman"; + size: 38; + min: 0 0; + align: 1.0 0.5; + } + } + } + part { + name: "elm.swallow.find_word_prev"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 74 74; + max: 74 74; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,find_word_next,left"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding,find_word_next,left"; to_y: "navigationbar_bg"; } + } + } + part { name: "padding,find_word_next,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 10 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.swallow.find_word_next"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "elm.swallow.find_word_next"; to_y: "navigationbar_bg"; } + } + } + part { + name: "elm.swallow.find_word_next"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 74 74; + max: 74 74; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,cancel,left"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding,cancel,left"; to_y: "navigationbar_bg"; } + } + } + part { name: "padding,cancel,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 10 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.swallow.cancel"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "elm.swallow.cancel"; to_y: "navigationbar_bg"; } + } + } + part { name: "padding,cancel,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "navigationbar_bg"; } + rel2 { relative: 1.0 1.0; to: "navigationbar_bg"; } + } + } + part { + name: "elm.swallow.cancel"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 134 72; + max: 134 72; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + } + } + } + } + + group { + name: "browser-view/find_word_editfield_layout"; + images { + image: "browser-view-images/url-layout/00_search_input_field_bg.png" COMP; + image: "browser-view-images/url-layout/00_search_input_field_bg_black.png" COMP; + image: "browser-view-images/url-layout/I01_icon_find_word.png" COMP; + } + + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 0 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { + name: "bg_image"; + type: IMAGE; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + fixed: 0 1; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 1.0; } + image.normal: "browser-view-images/url-layout/00_search_input_field_bg.png"; + image.border: 5 5 5 5; + } + description { + state: "black" 0.0; + inherit: "default" 0.0; + image.normal: "browser-view-images/url-layout/00_search_input_field_bg_black.png"; + image.border: 5 5 5 5; + } + } + part { name: "padding,find_word_image,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "bg_image"; } + rel2 { relative: 0.0 1.0; to: "bg_image"; } + } + } + part { name: "elm.image.find_word"; + mouse_events: 0; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 42 42; + max: 42 42; + fixed: 1 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: "padding,find_word_image,left"; to_y: bg; } + rel2 { relative: 1.0 1.0; to_x: "padding,find_word_image,left"; to_y: bg; } + image.normal: "browser-view-images/url-layout/I01_icon_find_word.png"; + } + } + part { name: "padding,find_word_image,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: "elm.image.find_word"; to_y: bg; } + rel2 { relative: 1.0 1.0; to_x: "elm.image.find_word"; to_y: bg; } + } + } + part { name: "elm.swallow.entry"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: "padding,find_word_image,right"; to_y: bg; } + rel2 { relative: 1.0 1.0; to_x: "bg_image"; to_y: bg; } + } + } + } + programs { + program { name: "black_theme"; + signal: "black_theme,signal"; + action: STATE_SET "black" 0.0; + target: "bg_image"; + } + } + } +} diff --git a/edc/browser-view-main.edc b/edc/browser-view-main.edc new file mode 100755 index 0000000..4391152 --- /dev/null +++ b/edc/browser-view-main.edc @@ -0,0 +1,706 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* color define */ +#define BROWSER_COLOR_WHITE 255 255 255 255 + +/* image define */ +// grey bg color +#define BROWSER_IMAGE_CONTENT_BG "browser-view-images/41_browser_new_win_bg.png" + +#define BROWSER_WAITING_PROGRESS_SIZE 90 90 +#define BROWSER_FLOATING_BACKWARD_BUTTON_SIZE 120 124 +#define BROWSER_CONTROL_BAR_HEIGHT 114 + +collections { + group { + name: "browser/browser-view-main"; + images { + image: BROWSER_IMAGE_CONTENT_BG COMP; + } + parts { + part { name: "bg"; + mouse_events: 0; + scale: 1; + type: RECT; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: BROWSER_COLOR_WHITE; + } + } + part { + name: "contents_bg"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + image.normal: BROWSER_IMAGE_CONTENT_BG; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "contents_bg"; } + rel2 { relative: 1.0 0.0; to: "elm.swallow.control_bar"; } + } + } + part { + name: "elm.swallow.scissorbox"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + /* ifdef ZOOM_BUTTON */ + part { + name: "elm.swallow.zoom_out_button"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 56 56; + max: 56 56; + fixed: 1 1; + align: 1.0 1.0; + rel1 { relative: 0.4 -0.5; to_y: "elm.swallow.control_bar"; } + rel2 { relative: 0.4 -0.5; to_y: "elm.swallow.control_bar"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.zoom_in_button"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 56 56; + max: 56 56; + fixed: 1 1; + align: 0.0 1.0; + rel1 { relative: 0.6 -0.5; to_y: "elm.swallow.control_bar"; } + rel2 { relative: 0.6 -0.5; to_y: "elm.swallow.control_bar"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + /* endif ZOOM_BUTTON */ + part { + name: "padding,url_layout"; // padding + type: RECT; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 150; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "contents_bg"; } + rel2 { relative: 1.0 0.0; to: "contents_bg"; } + color: 0 0 0 0; + } + } + part { + name: "elm.swallow.waiting_progress"; + type: SWALLOW; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.5 0.5; + min: BROWSER_WAITING_PROGRESS_SIZE; + max: BROWSER_WAITING_PROGRESS_SIZE; + rel1 { relative: 0.0 0.0; to_x: contents_bg; to_y: "padding,url_layout"; } + rel2 { relative: 1.0 1.0; to: contents_bg; } + } + description { + state: "unvisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "most_visited_sites_bg"; + type: RECT; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.most_visited_sites"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.most_visited_sites"; } + color: 255 255 255 255; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "padding,most_visited_sites_bottom"; + type: RECT; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 BROWSER_CONTROL_BAR_HEIGHT; + align: 0.5 1.0; + rel1 { relative: 0.0 1.0; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: "elm.swallow.most_visited_sites"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.rect.content_dim"; } + rel2 { relative: 1.0 0.0; to: "padding,most_visited_sites_bottom"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.rect.content_dim"; + type: RECT; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 1.0; to_y: "padding,url_layout"; } + rel2 { relative: 1.0 1.0; } + color: 20 20 20 170; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.most_visited"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.rect.content_dim"; } + rel2 { relative: 1.0 0.0; to: "elm.rect.content_dim"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.control_bar"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 BROWSER_CONTROL_BAR_HEIGHT; + fixed: 0 1; + align: 0.5 1.0; + rel1 { relative: 0.0 1.0; } + rel2 { relative: 1.0 1.0; } + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + align: 0.5 0.0; + rel1 { relative: 0.0 1.0; } + rel2 { relative: 1.0 1.0; } + } + } + part { + name: "elm.swallow.multi_window"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "contents_bg"; } + rel2 { relative: 1.0 1.0; to: "contents_bg"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + /* For change effect. */ + part { name: "rect.reader_layout"; + type: RECT; + mouse_events: 0; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.reader"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.reader"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { + name: "elm.swallow.reader"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + /* For change effect. */ + clip_to: "rect.reader_layout"; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "contents_bg"; } + rel2 { relative: 1.0 1.0; to: "contents_bg"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "elm.swallow.predictive_history"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.most_visited"; } + rel2 { relative: 1.0 1.0; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + /* In case of my sites guide text, dim the background of screen. */ + name: "elm.rect.screen_dim"; + type: RECT; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.multi_window"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.multi_window"; } + color: 20 20 20 170; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "elm.swallow.mysites_guide"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 660 375; + max: 660 600; + fixed: 1 0; + align: 0.5 0.6; + rel1 { relative: 0.0 0.0; to: "elm.rect.screen_dim"; } + rel2 { relative: 1.0 1.0; to: "elm.rect.screen_dim"; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + ///////////////////////////// + // show / hide scissor box + ///////////////////////////// + program { name: "show,scissorbox"; + signal: "show,scissorbox,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.scissorbox"; + } + program { name: "hide,scissorbox"; + signal: "hide,scissorbox,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.scissorbox"; + } + + /* ifdef ZOOM_BUTTON */ + ///////////////////////////// + // show / hide zoom buttons + ///////////////////////////// + program { name: "show,zoom_buttons"; + signal: "show,zoom_buttons,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.zoom_out_button"; + target: "elm.swallow.zoom_in_button"; + } + program { name: "hide,zoom_buttons"; + signal: "hide,zoom_buttons,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.zoom_out_button"; + target: "elm.swallow.zoom_in_button"; + } + /* endif ZOOM_BUTTON */ + + ///////////////////////////// + // show / hide reader + ///////////////////////////// + program { name: "show,reader"; + signal: "show,reader,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.reader"; + } + program { name: "show,reader,clipper"; + signal: "show,reader,signal"; + transition: ACCELERATE 0.5; + action: STATE_SET "visible" 0.0; + target: "rect.reader_layout"; + } + program { name: "hide,reader"; + signal: "hide,reader,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.reader"; + target: "rect.reader_layout"; + } + + ///////////////////////////// + // show / hide most visited sites + ///////////////////////////// + program { name: "show,most_visited_sites"; + signal: "show,most_visited_sites,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.most_visited_sites"; + target: "most_visited_sites_bg"; + } + program { name: "hide,most_visited_sites"; + signal: "hide,most_visited_sites,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.most_visited_sites"; + target: "most_visited_sites_bg"; + } + + ///////////////////////////////////// + // show / hide most visited sites guide text + ///////////////////////////////////// + program { name: "show,most_visited_sites_guide_text"; + signal: "show,most_visited_sites_guide_text,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.rect.screen_dim"; + target: "elm.swallow.mysites_guide"; + } + program { name: "hide,most_visited_sites_guide_text"; + signal: "hide,most_visited_sites_guide_text,signal"; + action: STATE_SET "default" 0.0; + target: "elm.rect.screen_dim"; + target: "elm.swallow.mysites_guide"; + } + + ///////////////////////////// + // url edit mode on/off + ///////////////////////////// + program { name: "edit,url,on"; + signal: "edit,url,on,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.rect.content_dim"; + after: "show,most_visited"; + } + program { name: "edit,url,off"; + signal: "edit,url,off,signal"; + action: STATE_SET "default" 0.0; + target: "elm.rect.content_dim"; + after: "hide,most_visited"; + } + + ///////////////////////////// + // show / hide background dim + ///////////////////////////// + program { name: "dim,bg"; + signal: "dim,bg,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.rect.content_dim"; + } + program { name: "undim,bg"; + signal: "undim,bg,signal"; + action: STATE_SET "default" 0.0; + target: "elm.rect.content_dim"; + } + + //////////////////////////////////// + // show / hide most visited swallow + //////////////////////////////////// + program { name: "show,most_visited"; + signal: "show,most_visited,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.most_visited"; + } + program { name: "hide,most_visited"; + signal: "hide,most_visited,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.most_visited"; + } + + //////////////////////////////////// + // show / hide multiwindow swallow + //////////////////////////////////// + program { name: "show,multi_window"; + signal: "show,multi_window,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.multi_window"; + } + program { name: "hide,multi_window"; + signal: "hide,multi_window,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.multi_window"; + } + + ///////////////////////////// + // control bar show / hide + ///////////////////////////// + program { name: "show,control_bar"; + signal: "show,control_bar,signal"; + transition: LINEAR 0.2; + action: STATE_SET "default" 0.0; + target: "elm.swallow.control_bar"; + } + program { name: "hide,control_bar"; + signal: "hide,control_bar,signal"; + transition: LINEAR 0.2; + action: STATE_SET "invisible" 0.0; + target: "elm.swallow.control_bar"; + } + program { name: "hide,control_bar,no_animation"; + signal: "hide,control_bar,no_animation,signal"; + action: STATE_SET "invisible" 0.0; + target: "elm.swallow.control_bar"; + } + program { name: "show,control_bar,no_animation"; + signal: "show,control_bar,no_animation,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.control_bar"; + } + ///////////////////////////////////////////////////// + // hide waiting progress bar / show grey background + ///////////////////////////////////////////////////// + program { name: "hide,waiting_progressbar"; + signal: "hide,waiting_progressbar,signal"; + action: STATE_SET "unvisible" 0.0; + target: "elm.swallow.waiting_progress"; + } + program { name: "show,grey_background"; + signal: "show,grey_background,signal"; + action: STATE_SET "visible" 0.0; + target: "contents_bg"; + } + program { name: "hide,grey_background"; + signal: "hide,grey_background,signal"; + action: STATE_SET "default" 0.0; + target: "contents_bg"; + } + + //////////////////////////////////// + // show / hide predictive history + //////////////////////////////////// + program { name: "hide,predictive_history"; + signal: "hide,predictive_history,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.predictive_history"; + } + program { name: "show,predictive_history"; + signal: "show,predictive_history,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.predictive_history"; + } + } + } + + group { + name: "browser/browser-view-webview"; + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + /* The height of url bar layout is 65. */ + /* The webview size is content height + 65. */ + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { + name: "elm.swallow.webview"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + } + } + } + } + + group { name: "brightness_popup"; + parts{ + part { name: "elm.title"; + type: TEXT; + scale : 1; + description { state: "default" 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + max: 80 16; +#else + max: 120 24; +#endif + text { + font: "SLP:style=Medium"; +#ifdef WVGA_NBEAT // 480 * 800 + size: 16; +#else + size: 24; +#endif + min: 0 0; + align: 0.5 0.0; + } + color: 108 108 108 255; + align: 0.5 0.0; + rel1 { + relative: 0.0 0.0; + to: "elm.swallow.content"; + } + rel2 { + relative: 1.0 0.0; + to: "elm.swallow.content"; + } + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 0 70; +#else + min: 0 105; +#endif + align: 0.5 0.5; + fixed: 1 0; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + } + } +} diff --git a/edc/browser-view-progressbar.edc b/edc/browser-view-progressbar.edc new file mode 100755 index 0000000..7d7d787 --- /dev/null +++ b/edc/browser-view-progressbar.edc @@ -0,0 +1,604 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { + group { name: "elm/progressbar/horizontal/browser/loading"; + images { + image: "browser-view-images/progressbar/00_search_input_field_bg_progress.png" COMP; + image: "browser-view-images/progressbar/progressbar.png" COMP; + } + parts { + part { name: "elm.padding.left"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 0; + fixed: 1 0; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + } + color: 0 0 0 0; + align: 0.0 0.0; + } + } + part { name: "elm.padding.right"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + min: 0 0; + fixed: 1 0; + rel1 { + relative: 1.0 0.0; + offset: 0 0; + } + rel2 { + relative: 1.0 1.0; + offset: 0 0; + } + color: 0 0 0 0; + align: 1.0 0.0; + } + } + part { name: "elm.background.progressbar"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1 { + to_x: "elm.padding.left"; + relative: 1.0 0.0; + offset: 0 0; + } + rel2 { + to_x: "elm.padding.right"; + relative: 0.0 1.0; + offset: -1 -1; + } + } + } + part { name: "elm.swallow.bar"; + mouse_events: 0; + scale: 1; + type: SWALLOW; + description { + min: 48 0; + fixed: 1 0; + state: "default" 0.0; + rel1 { + to: "elm.background.progressbar"; + relative: 0.0 0.0; + } + rel2 { + to: "elm.background.progressbar"; + relative: 1.0 1.0; + } + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + visible: 0; + align: 0.0 0.5; + rel1 { + offset: 0 0; + to_y: "elm.background.progressbar"; + } + rel2 { + offset: 0 -1; + relative: 0.0 1.0; + to_y: "elm.background.progressbar"; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; +#ifdef WVGA_NBEAT // 480 * 800 + rel2.offset: 4 -1; +#else + rel2.offset: 6 -1; +#endif + } + } + part { name: "elm.text"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + visible: 0; + fixed: 1 1; + align: 0.0 0.5; + rel1.to_x: "elm.swallow.content"; + rel1.relative: 1.0 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + rel1.offset: -1 4; +#else + rel1.offset: -1 6; +#endif + rel2.to_x: "elm.swallow.content"; + rel2.relative: 1.0 1.0; + rel2.offset: -1 -5; + color: 0 0 0 255; + text { + font: "SLP:style=Medium"; +#ifdef WVGA_NBEAT // 480 * 800 + size: 10; +#else + size: 15; +#endif + min: 0 0; + align: 0.0 0.5; + } + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 0; + text.min: 1 1; +#ifdef WVGA_NBEAT // 480 * 800 + rel1.offset: 0 4; + rel2.offset: 0 -5; +#else + rel1.offset: 0 6; + rel2.offset: 0 -7; +#endif + } + } + + part { name: "background"; + mouse_events: 0; + scale: 1; + clip_to: "elm.background.progressbar"; + description { + state: "default" 0.0; + rel1 { + to: "elm.swallow.bar"; + relative: 0.0 0.0; + } + rel2 { + to: "elm.swallow.bar"; + relative: 1.0 1.0; + offset: -1 -1; + } + } + } + + part { name: "elm.text.status"; + type: TEXT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + rel1 { + to: "background"; + relative: 0.5 0.5; + } + rel2 { + to: "background"; + relative: 0.5 0.5; + } + text { + font: "SLP:style=Medium"; +#ifdef WVGA_NBEAT // 480 * 800 + size: 10; +#else + size: 15; +#endif + min: 0 0; + align: 0.5 0.0; + } + color: 0 0 0 255; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 0; + text.min: 1 1; + } + } + + part { name: "elm.progress.progressbar"; + mouse_events: 0; + scale: 1; + clip_to: "elm.background.progressbar"; + description { + state: "default" 0.0; + min: 0 0; + fixed: 1 1; + rel1 { + to: "elm.swallow.bar"; + relative: 0.0 0.0; + } + rel2 { + to_y: "elm.swallow.bar"; + to_x: "elm.cur.progressbar"; + offset: -1 -1; + } + image { + normal: "browser-view-images/progressbar/progressbar.png"; + border: 5 5 5 5; + } + } + description { + state: "invert" 0.0; + inherit: "default" 0.0; + rel1 { + to_y: "elm.swallow.bar"; + to_x: "elm.cur.progressbar"; + } + rel2 { + to: "elm.swallow.bar"; + 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.9 0.0; + } + rel2 { + to: "elm.swallow.bar"; + relative: 1.0 1.0; + } + } + } + part { name: "text-bar"; + type: TEXT; + mouse_events: 0; + scale: 1; + clip_to: "progress-rect"; + effect: SOFT_SHADOW; + scale: 0; + description { state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + visible: 0; + rel1.to: "elm.text.status"; + rel1.offset: -1 -1; + rel2.to: "elm.text.status"; + text { + text_source: "elm.text.status"; + font: "SLP:style=Medium"; +#ifdef WVGA_NBEAT // 480 * 800 + size: 10; +#else + size: 15; +#endif + min: 0 0; + align: 0.0 0.0; + } + color: 224 224 224 255; + color3: 0 0 0 64; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + visible: 0; + text.min: 1 1; + } + } + part { name: "elm.cur.progressbar"; + mouse_events: 0; + scale: 1; + dragable { + confine: "background"; + x: 1 1 1; + y: 0 0 0; + } + description { state: "default" 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 0 28; +#else + min: 0 42; +#endif + fixed: 1 1; + visible: 0; + rel1 { + to: "background"; + relative: 0 0; + } + rel2.to: "background"; + } + } + part { name: "progress-rect"; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + rel1.to: "elm.progress.progressbar"; + rel2.to: "elm.progress.progressbar"; + } + } + } + programs { + program { name: "label_show"; + signal: "elm,state,text,visible"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.text"; + } + program { name: "label_hide"; + signal: "elm,state,text,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.text"; + } + 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: "units_show"; + signal: "elm,state,units,visible"; + source: "elm"; + action: STATE_SET "show" 0.0; + target: "text-bar"; + target: "elm.text.status"; + } + program { name: "units_hide"; + signal: "elm,state,units,hidden"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "text-bar"; + target: "elm.text.status"; + } + 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"; + after: "slide_to_end"; + } + 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"; + after: "state_pulse"; + } + program { name: "state_pulse"; + signal: "elm,state,pulse"; + source: "elm"; + action: STATE_SET "state_begin" 0.0; + target: "elm.progress.progressbar"; + after: "units_hide"; + } + 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"; + } + } + } + +/* The cpu consumption depends on the time delay of progress bar */ +#define PROGRESSING_DELAY 0.14 + group { name: "elm/progressbar/horizontal/browser/loading_wheel"; + images { + image: "browser-view-images/progressbar/processing_ani00.png" COMP; + image: "browser-view-images/progressbar/processing_ani01.png" COMP; + image: "browser-view-images/progressbar/processing_ani02.png" COMP; + image: "browser-view-images/progressbar/processing_ani03.png" COMP; + image: "browser-view-images/progressbar/processing_ani04.png" COMP; + image: "browser-view-images/progressbar/processing_ani05.png" COMP; + image: "browser-view-images/progressbar/processing_ani06.png" COMP; + image: "browser-view-images/progressbar/processing_ani07.png" COMP; + } + parts { + part { name: "elm.background.progressbar"; + mouse_events: 0; + scale: 1; + type: RECT; + description { + state: "default" 0.0; + } + } + part { name: "elm.swallow.bar"; + mouse_events: 0; + scale: 1; + type: SWALLOW; + description { state: "default" 0.0; + min: 0 0; + max: 0 0; + visible: 0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 0 0; + visible: 0; + } + } + part { name: "background"; + mouse_events: 0; + scale: 1; + clip_to: "elm.background.progressbar"; + description { + state: "default" 0.0; +#ifdef WVGA_NBEAT // 480 * 800 + min: 40 40; + max: 60 60; +#else + min: 60 60; + max: 90 90; +#endif + visible: 1; + aspect: 1.0 1.0; + aspect_preference: BOTH; + image { + normal: "browser-view-images/progressbar/processing_ani00.png"; + } + } + description { state: "pulse" 0.0; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani00.png"; + } + } + description { state: "pulse" 0.01; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani01.png"; + } + } + description { state: "pulse" 0.02; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani02.png"; + } + } + description { state: "pulse" 0.03; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani03.png"; + } + } + description { state: "pulse" 0.04; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani04.png"; + } + } + description { state: "pulse" 0.05; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani05.png"; + } + } + description { state: "pulse" 0.06; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani06.png"; + } + } + description { state: "pulse" 0.07; + inherit: "default" 0.0; + image { + normal: "browser-view-images/progressbar/processing_ani07.png"; + } + } + } + } + script { + public pulse_state; + } + programs { + program { name: "continue_pulse"; + script { + new Float:state; + state = get_float(pulse_state); + set_state(PART:"background", "pulse", state); + state += 0.01; + if( state > 0.07 ) + state = 0.00; + set_float(pulse_state, state); + } + after: "delay"; + } + program { name: "delay"; + action: STATE_SET "pulse" 0.10; + target: "background"; + in: PROGRESSING_DELAY 0.0; + after: "continue_pulse"; + } + program { name: "start_pulse"; + signal: "elm,state,pulse,start"; + source: "elm"; + script { + set_float(pulse_state, 0.0); + } + after: "continue_pulse"; + } + program { name: "stop_pulse"; + signal: "elm,state,pulse,stop"; + source: "elm"; + action: ACTION_STOP; + target: "continue_pulse"; + target: "delay"; + target: "start_pulse"; + after: "init_pulse"; + } + program { name: "init_pulse"; + action: STATE_SET "default" 0.0; + target: "background"; + } + } + } +} + diff --git a/edc/browser-view-url-layout.edc b/edc/browser-view-url-layout.edc new file mode 100755 index 0000000..f89a6d1 --- /dev/null +++ b/edc/browser-view-url-layout.edc @@ -0,0 +1,1099 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "browser-macro.edc" + +collections { +//////////////////////////////////////////////////////////////////////////////////////// +// editfield +//////////////////////////////////////////////////////////////////////////////////////// +#define EDITFIELD_TITLE_SIZE_INC 32 +//#define EDITFIELD_DEFAULT_MINH_INC 112 +// Customize - edit field height +#define EDITFIELD_DEFAULT_MINH_INC 72 +//#define EDITFIELD_DEFAULT_TOP1_SINGLE_INC 20 +// Customize - entry top margin +// Strangely - (Edit field entry is aligned to top a little, so make the top margin more then bottom) +#define EDITFIELD_DEFAULT_TOP1_SINGLE_INC 5 +#define EDITFIELD_DEFAULT_TOP1_MULTI_INC 45 +#define EDITFIELD_DEFAULT_TOP2_INC 6 +#define EDITFIELD_DEFAULT_LEFT1_INC 0 +#define EDITFIELD_DEFAULT_LEFT2_INC 0 +#define EDITFIELD_DEFAULT_LEFT3_INC 1 + +#define EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0 // browser customize + +// width of erase icon width and string witdh of "xx/xx" +#define EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC_FOR_FIND_WORD (EDITFIELD_DEFAULT_ERASER_MINW_INC + 80) + +#define EDITFIELD_DEFAULT_RIGHT2_INC 10 // browser customize +//#define EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC 20 +// Customize - entry bottom margin +#define EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC 0 +#define EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC 5 +#define EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC 38 +#define EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC 6 +#define EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC 85 +#define EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC 60 +#define EDITFIELD_TITLE_COLOR_INC 168 168 168 255 +#define EDITFIELD_GUIDE_TEXT_COLOR_INC 70 70 70 255 +#define ENTRY_TEXT_SIZE_INC 44 +// Customize - text color +//#define ENTRY_TEXT_COLOR_INC "#FFFFFF" +#define ENTRY_TEXT_COLOR_WHITE_INC "#FFFFFF" +#define ENTRY_TEXT_COLOR_BLACK_INC "#000000" + +#define EDITFIELD_DEFAULT_ERASER_MINW_INC 40 +#define EDITFIELD_DEFAULT_ERASER_MINH_INC 40 + +group { name: "elm/layout/browser-editfield/default"; + images { + image: "browser-view-images/url-layout/00_EditField_clear.png" COMP; + } + parts { + part { + name: "base"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 EDITFIELD_DEFAULT_MINH_INC; + color: 0 0 0 0; + } + } + part { + name: "top1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + } + part { + name: "top2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_TOP2_INC; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + align: 0.5 0; + } + } + part { + name: "left1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT1_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "left2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_LEFT2_INC 0; + fixed: 1 1; + align: 0 0; + rel1.relative : 0.0 0.0; + rel2.relative : 0.0 1.0; + } + } + part { + name: "right1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + description { + state: "find_word" 0.0; + inherit: "default" 0.0; + min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC_FOR_FIND_WORD 0; + } + } + part { + name: "right2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_RIGHT2_INC 0; + fixed: 1 1; + align: 1 0; + rel1.relative : 1.0 0.0; + rel2.relative : 1.0 1.0; + } + } + part { + name: "bottom1"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC; + fixed: 1 1; + align: 0 1; + rel1.relative: 0.0 1.0; + } + } + part { + name: "bottom2"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + } + part { + name: "bottom3"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_SINGLE_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + } + part { + name: "elm.guidetext"; + type: TEXT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + color: EDITFIELD_GUIDE_TEXT_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: ENTRY_TEXT_SIZE_INC; + min: 0 0; + align: 0.0 0.5; + } + } + description { + state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { + name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + min: 0 40; + rel1 { + relative : 1.0 1.0; + to_x: "left1"; + to_y: "top1"; + } + rel2 { + relative : 0.0 0.0; + to_x: "right1"; + to_y: "bottom1"; + } + align: 0.0 0.5; + } + } + part { + name: "eraser_image"; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + rel2 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + image { + normal: "browser-view-images/url-layout/00_EditField_clear.png"; + border: 10 10 10 10; + border_scale: 1; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "eraser"; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to_x : "eraser_image"; + to_y : "bottom3"; + } + } + description { + state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "find_word_editfield"; + signal: "find_word,signal"; + source: "elm"; + action: STATE_SET "find_word" 0.0; + target: "right1"; + } + program { + name: "guidetext_show"; + signal: "elm,state,guidetext,show"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guidetext"; + } + program { + name: "guidetext_hide"; + signal: "elm,state,guidetext,hide"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guidetext"; + } + program { + name: "eraser_show"; + signal: "elm,state,eraser,show"; + source: "elm"; + action: STATE_SET "elm.eraser.show" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "eraser_hide"; + signal: "elm,state,eraser,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "eraser_image"; + target: "eraser"; + } + program { + name: "eraser_clicked"; + signal: "mouse,clicked,1"; + source: "eraser"; + action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; + } + } +} + +//////////////////////////////////////////////////////////////////////////////////////// +// url layout +//////////////////////////////////////////////////////////////////////////////////////// + group { + name: "browser/url_layout"; + images { + image: "browser-view-images/url-layout/naviframe_optionheader.png" COMP; + image: "browser-view-images/url-layout/I01_Icons_http.png" COMP; + } + parts { + part { name: "backgournd"; + mouse_events: 1; + repeat_events: 0; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 150; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + image { + normal: "browser-view-images/url-layout/naviframe_optionheader.png"; + border: 1 1 2 1; + border_scale: 1; + } + } + } + part { name: "bg"; + mouse_events: 1; + repeat_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 106; + align: 0.0 0.0; + rel1 { relative: 0.0 1.0; to_y: "title_text"; } + rel2 { relative: 1.0 1.0; } + color: 255 255 255 255; // white + } + } + part { + name: "navigationbar_bg"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: bg; } + rel2 { relative: 1.0 1.0; to: bg; } + image { + normal: "browser-view-images/url-layout/naviframe_optionheader.png"; + border: 1 1 2 1; + border_scale: 1; + } + } + } + part { + name: "secure_icon"; + type: IMAGE; + mouse_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 0; + max: 0 0; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_text"; } + rel2 { relative: 0.0 1.0; to: "title_text"; } + image { + normal: "browser-view-images/url-layout/I01_Icons_http.png"; + } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 30 30; + max: 30 30; + } + } + part { name: "padding,title_text,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 30 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to_y: "title_text"; } + rel2 { relative: 0.0 1.0; to_y: "title_text"; } + } + } + part { name: "padding,title_text,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 30 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to_y: "title_text"; } + rel2 { relative: 1.0 1.0; to_y: "title_text"; } + } + } + part { + name: "title_text"; + type: TEXT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 1; + fixed: 0 1; + min: 0 44; + max: 999999 44; + align: 0.5 0.0; + text { font: FONT_ROM; + size: 34; + min: 0 0; + max: 1 0; + align: 0.5 1.0; + } + color: 255 255 255 255; + rel1 { relative: 1.0 0.0; to_x: "padding,title_text,left"; } + rel2 { relative: 0.0 1.0; to_x: "padding,title_text,right"; } + } + } + part { name: "padding,cancel,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 15 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "elm.swallow.cancel"; } + rel2 { relative: 0.0 1.0; to: "elm.swallow.cancel"; } + } + } + part { name: "padding,url,top"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 16; + fixed: 0 1; + align: 0.5 0.0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 0.0; to: "bg"; } + } + } + part { name: "padding,url,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 0.0 1.0; to: "bg"; } + } + } + part { + name: "elm.swallow.url"; + type: SWALLOW; + mouse_events: 1; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 0 74; + fixed: 0 1; + align: 0.0 0.0; + rel1 { relative: 1.0 1.0; to_x: "padding,url,left"; to_y: "padding,url,top"; } + rel2 { relative: 0.0 1.0; to_x: "padding,reader_icon,left"; to_y: "padding,url,top"; } + } + description { + state: "edit_mode_state" 0.0; + inherit: "default" 0.0; + rel1 { relative: 1.0 1.0; to_x: "padding,url,left"; to_y: "padding,url,top"; } + rel2 { relative: 0.0 1.0; to_x: "padding,cancel,left"; to_y: "padding,url,top"; } + } + } + part { name: "padding,reader_icon,left"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "elm.swallow.reader_icon"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "elm.swallow.reader_icon"; to_y: "navigationbar_bg"; } + } + } + part { + name: "elm.swallow.reader_icon"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 74 74; + max: 74 74; + fixed: 1 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to: "navigationbar_bg"; } + rel2 { relative: 1.0 1.0; to: "navigationbar_bg"; } + } + description { + state: "show_reader_icon" 0.0; + inherit: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + } + } + part { name: "padding,cancel,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 16 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "navigationbar_bg"; } + rel2 { relative: 1.0 1.0; to: "navigationbar_bg"; } + } + } + part { + name: "elm.swallow.cancel"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 165 72; + max: 165 72; + fixed: 1 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: navigationbar_bg; to_y: "navigationbar_bg"; } + rel2 { relative: 1.0 1.0; to_x: navigationbar_bg; to_y: "navigationbar_bg"; } + } + description { + state: "edit_mode_state" 0.0; + inherit: "default" 0.0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding,cancel,right"; to_y: "navigationbar_bg"; } + } + } + } + programs { + program { name: "show,secure_icon"; + signal: "show,secure_icon,signal"; + action: STATE_SET "visible" 0.0; + target: "secure_icon"; + } + program { name: "hide,secure_icon"; + signal: "hide,secure_icon,signal"; + action: STATE_SET "default" 0.0; + target: "secure_icon"; + } + program { name: "edit,url,on"; + signal: "edit,url,on,signal"; + action: STATE_SET "edit_mode_state" 0.0; + target: "elm.swallow.url"; + after: "cancel_button,show"; + } + program { name: "cancel_button,show"; + action: STATE_SET "edit_mode_state" 0.0; + transition: DECELERATE 0.5; + target: "elm.swallow.cancel"; + } + program { name: "show,reader_icon"; + signal: "show,reader_icon,signal"; + action: STATE_SET "show_reader_icon" 0.0; + transition: DECELERATE 0.5; + target: "elm.swallow.reader_icon"; + } + program { name: "hide,reader_icon"; + signal: "hide,reader_icon,signal"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "elm.swallow.reader_icon"; + } + program { name: "hide,reader_icon_no_ani"; + signal: "hide,reader_icon_no_ani,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.reader_icon"; + } + program { name: "edit,url,off"; + signal: "edit,url,off,signal"; + action: STATE_SET "default" 0.0; + transition: ACCELERATE 0.5; + target: "elm.swallow.url"; + target: "elm.swallow.cancel"; + } + } + } + + group { + name: "elm/browser/urlentry/default"; + images { + image: "browser-view-images/url-layout/00_search_input_field_bg.png" COMP; + image: "browser-view-images/url-layout/00_search_input_field_bg_black.png" COMP; + image: "browser-view-images/url-layout/41_browser_search_icon_refresh.png" COMP; + image: "browser-view-images/url-layout/icon_stop.png" COMP; + image: "icon/00_close_icon.png" COMP; + image: "browser-view-images/url-layout/I01_Icons_RSS.png" COMP; + } + + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + fixed: 0 1; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 0 0 0 0; + } + } + part { + name: "bg_image"; + type: IMAGE; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + fixed: 0 1; + rel1 {relative: 0.0 0.0; offset: 0 0; } + rel2 {relative: 1.0 1.0; offset: 0 0; } + image.normal: "browser-view-images/url-layout/00_search_input_field_bg.png"; + image.border: 5 5 5 5; + } + description { + state: "black" 0.0; + inherit: "default" 0.0; + image.normal: "browser-view-images/url-layout/00_search_input_field_bg_black.png"; + image.border: 5 5 5 5; + } + } + part { + name: "elm.swallow.progressbar"; + type: SWALLOW; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "loading_on" 0.0; + visible: 1; + rel1 {relative: 0.0 0.0; offset: 0 0; } + rel2 {relative: 1.0 1.0; offset: 0 0; } + } + } + PADDING("padding.favicon.left", 9, 0, 1, 0, 0.0, 0.5, + 0.0, 0.0, 0.0, 1.0, bg, bg) + PADDING("padding.favicon.right", 9, 0, 1, 0, 0.0, 0.5, + 1.0, 0.0, 1.0, 1.0, elm.swallow.favicon, elm.swallow.favicon) + part { name: "elm.swallow.favicon"; + mouse_events: 0; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 45; + max: 0 45; + fixed: 1 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: padding.favicon.left; to_y: bg; } + rel2 { relative: 1.0 1.0; to_x: padding.favicon.left; to_y: bg; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 45 45; + max: 45 45; + } + } + part { name: "elm.swallow.rss_icon"; + mouse_events: 0; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 0 45; + max: 0 45; + fixed: 1 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to: "elm.swallow.favicon"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.favicon"; } + image.normal: "browser-view-images/url-layout/I01_Icons_RSS.png"; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + min: 45 45; + max: 45 45; + } + } + PADDING("padding.progress.left", 9, 0, 1, 0, 1.0, 0.5, + 0.0, 0.0, 0.0, 1.0, elm.swallow.progress, elm.swallow.progress) + part { name: "elm.swallow.progress"; + mouse_events: 0; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + } + description { + state: "loading_on" 0.0; + visible: 1; + min: 60 60; + max: 60 60; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: elm.image.refresh_stop; to_y: bg; } + rel2 { relative: 0.0 1.0; to_x: elm.image.refresh_stop; to_y: bg; } + } + } + PADDING("padding.refreshstop.left", 9, 0, 1, 0, 1.0, 0.5, + 0.0, 0.0, 0.0, 1.0, elm.image.refresh_stop, elm.image.refresh_stop) + PADDING("padding.refreshstop.right", 9, 0, 1, 0, 1.0, 0.5, + 1.0, 0.0, 1.0, 1.0, bg, bg) + part { name: "elm.rect.refresh_stop"; + mouse_events: 1; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 75 60; + max: 75 60; + fixed: 1 1; + align: 0.5 0.5; + rel1 { relative: 0.0 0.0; to: "elm.image.refresh_stop"; } + rel2 { relative: 1.0 1.0; to: "elm.image.refresh_stop"; } + color: 0 0 0 0; + } + } + part { name: "elm.image.refresh_stop"; + mouse_events: 0; + type: IMAGE; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + min: 45 45; + max: 45 45; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to_x: padding.refreshstop.right; to_y: bg; } + rel2 { relative: 0.0 1.0; to_x: padding.refreshstop.right; to_y: bg; } + image.normal: "browser-view-images/url-layout/41_browser_search_icon_refresh.png"; + } + description { + state: "loading_on" 0.0; + inherit: "default" 0.0; + image.normal: "browser-view-images/url-layout/icon_stop.png"; + } + description { + state: "edit_url" 0.0; + inherit: "default" 0.0; + image.normal: "icon/00_close_icon.png"; + } + } + part { name: "padding,rss_icon,right"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 7 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to: "elm.swallow.rss_icon"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.rss_icon"; } + } + } + part { name: "elm.swallow.entry"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to_x: "padding,rss_icon,right"; to_y: bg; } + rel2 { relative: 0.0 1.0; to_x: padding.refreshstop.left; to_y: bg; } + } + description { + state: "loading_on" 0.0; + visible: 1; + rel1 { relative: 1.0 0.0; to_x: "padding,rss_icon,right"; to_y: bg; } + rel2 { relative: 0.0 1.0; to_x: padding.progress.left; to_y: bg; } + } + } + part { name: "block_entry"; + mouse_events: 1; + repeat_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.entry"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.entry"; } + color: 0 0 0 0; + } + description { + state: "block" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "padding,rss_icon,left_margin"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 45 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "elm.swallow.rss_icon"; } + rel2 { relative: 0.0 1.0; to: "elm.swallow.rss_icon"; } + } + } + part { name: "padding,rss_icon,right_margin"; + mouse_events: 0; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0; + min: 45 0; + fixed: 1 0; + align: 0.0 0.5; + rel1 { relative: 1.0 0.0; to: "elm.swallow.rss_icon"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.rss_icon"; } + } + } + } + programs { + program { name: "disable_entry"; + signal: "disable_entry,signal"; + action: STATE_SET "block" 0.0; + target: "block_entry"; + } + program { name: "black_theme"; + signal: "black_theme,signal"; + action: STATE_SET "black" 0.0; + target: "bg_image"; + } + program { name: "rss_on"; + signal: "rss,on,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.rss_icon"; + } + program { name: "rss_off"; + signal: "rss,off,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.rss_icon"; + } + program { name: "loading_on"; + signal: "loading,on,signal"; + action: STATE_SET "loading_on" 0.0; + target: "elm.swallow.progress"; + target: "elm.swallow.progressbar"; + target: "elm.image.refresh_stop"; + target: "elm.swallow.entry"; + } + program { name: "loading_off"; + signal: "loading,off,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.progress"; + target: "elm.swallow.progressbar"; + target: "elm.image.refresh_stop"; + target: "elm.swallow.entry"; + } + program { name: "refresh_stop"; + source: "elm.rect.refresh_stop"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "refresh_stop" "EDJ"; + } + program { name: "hide_progress"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.progress"; + target: "elm.swallow.progressbar"; + target: "elm.swallow.entry"; + } + program { name: "edit,url,on"; + signal: "edit,url,on,signal"; + action: STATE_SET "edit_url" 0.0; + target: "elm.image.refresh_stop"; + after: "hide_progress"; + } + program { name: "edit,url,off"; + signal: "edit,url,off,signal"; + script { + new st[31]; + new Float:vl; + get_state(PART:"elm.swallow.progress", st, 30, vl); + if (!strcmp(st, "loading_on")) + set_state(PART:"elm.image.refresh_stop", "loading_on", 0.0); + else + set_state(PART:"elm.image.refresh_stop", "default", 0.0); + } + } + program { name: "show,favicon"; + signal: "show,favicon,signal"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.favicon"; + } + program { name: "hide,favicon"; + signal: "hide,favicon,signal"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.favicon"; + } + } + } + + group { + name: "browser-view/option_header"; + parts { + part { name: "elm.swallow.url_layout"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + description { + state: "invisible" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + /* For change effect. */ + part { name: "rect.find_word_layout"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 255 255 255 0; + rel1 { relative: 0.0 0.0; to: "elm.swallow.find_word_layout"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.find_word_layout"; } + } + description { + state: "visible" 0.0; + color: 255 255 255 255; + rel1 { relative: 0.0 0.0; to: "elm.swallow.find_word_layout"; } + rel2 { relative: 1.0 1.0; to: "elm.swallow.find_word_layout"; } + } + } + part { name: "elm.swallow.find_word_layout"; + mouse_events: 1; + repeat_events: 0; + type: SWALLOW; + scale: 1; + /* For change effect. */ + clip_to: "rect.find_word_layout"; + description { + state: "default" 0.0; + visible: 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { name: "show,find_word_layout,clipper"; + signal: "show,find_word_layout,signal"; + transition: ACCELERATE 0.3; + action: STATE_SET "visible" 0.0; + target: "rect.find_word_layout"; + target: "elm.swallow.find_word_layout"; + } + program { name: "hide,find_word_layout,clipper"; + signal: "hide,find_word_layout,signal"; + transition: ACCELERATE 0.3; + action: STATE_SET "default" 0.0; + target: "rect.find_word_layout"; + target: "elm.swallow.find_word_layout"; + } + } + } +} diff --git a/html/54_bg.jpg b/html/54_bg.jpg new file mode 100755 index 0000000000000000000000000000000000000000..ac83a6ab5bc2650173c150a0e2734ba809169f62 GIT binary patch literal 14577 zcmbVz2UJs8+wMLmg(S3)geq!?A%DvV_qhhc1p%00|{>-*-vcm20**4pPeyS{aoH;2Ws#YsSPc64$C5Cj1> z@&^`Q%K19k+3j%SxjH(zI3N`O$gy1_V&h;U05P#iiM-9WRNt+BRGC2l13bV26958( zcg1r(96bS&oE+?^yO2gp_+JSbj1yLPB>1 zBRCbo(aA~iOXaf&rUXSTVHmxH6A=OtthR)A{*CqjYV$W{E#Z)u*bt=663y`;F(FI1 z2f^ukc84Mu<$~a}JrSYF2p&Z+J$iRc1cJXHm=Y5jxC;QZ+){Z`XmB`!jS(!D=*hD~ z@Ol7nay$QlgZ_b&LiZwc0$>*xzb`RjXLu5o8LUG!v9`9NvO|-jLz9vW+yaB60uw{1 zc5yNBfwB7l_?zdYUVyYDTPh-C3lnP#3j^@fxDxVs7pc(j*E`lok-mk9~c}; zHTa*6`2V}(KgjwA9s0b`u+YTNSY#@1#L6OKcOvSJ4T(sKh>N90#Qt|0{{QUu4;q%> z-*$}va`g{D*CSZ?NQfJ}Y1UZTAR9>i^3BO9r1p zUg2F4JE=>>c05mN@b1JtOBnHqr3?cIKoL-YI#>Z#0VXg2roa-c11#VGoPjIw1Y5y& z5DdaW3`hjY;2;o!G>`>EAP*FSGEfcbK@+$LI=~fh1Kb98zz}!{#=#_*2ET$?@Chs+ z3z-Zg50N2tXeFc#=|QHD6|@m@fLtIRv=!n*JE2%;H*^p>3S~iJs2Hk%>Y*0s5_ALV zhaNyrpcl|vXb$=cqhL9h0xyRdun}wp+rS*y6W#{zgcIQXa4LKfE`%%Lb8tI+1HJ=4 zgeT!&;g2YQl0~VYv`_{pE0i6|73GHtLnWdPqcTzXs7h25steVN8bM8>W>E8JESij_ zq7BgN&}_69IvAaRK8!wrE=Jd(+tEGf5%df6EcypV9;1oT!>q+PVSF(=G0B)TOg^Rt z(}uZ)d5D?De8OU}D%jOnODr3^6&r~?fIWddi@kuAVjo~%VL!^q$f(Qc$!w5ul?jwd zl1Y;(k~t@HU1nHjTILH*7Pk^-igU#I;bL(qxO`j#?iy|w_Zqi=C*rm7Yw@o55d1#; zDSS1)3x6L!jb9)r5mpm65IhNy1R~QqD=SNrwU%|4jgS?{7Rolu_Q}4G zotGoY>B`y31<37|J1JKyCzX35_ouwPJVTx(?T-UvY+rCo+h3#6aR4Z{)Qoqt0k_?GKav+6}Qb|>$o1|A{6nPcdjvP!rO0Fi~B2QDWl+_d`N+czVa-K3s znN=n!n<;xM?^P~QzN$Q_f>L3qIH^RdoKm@{@<`>Y>T*>Z)lk(8)h5+p)z50n)L3ev zYME*m)E=sRRi~;us7I;isCTIUtbx|h)o|BH)+p7ur7^RNvTWV5;ANT1E-rhj32W+V z@-z=6U!UGnS97C{}J(C#?FcG1j)$N35?{&#$#uo3!@g z+TYh1tczOLu-ozy{)lrqHUY)XS=m_hwP;GDErO!nf8MYBnK~tVuxprG{>EejgGUM%{L#| zEM;TZ9Ci--vD0#=V5fSgS!YY}kTeP>tZs~9Z zu1>C}U4M34?Uvwn*&XZd=3e6d3(tgikk{)$_SoUk;PJ`R*7KC-xEIrFw^z5fqIZCI zz4vDydmpjSq_2_hA>TV&HMT}=Yb@MzoWZF{%%Z`ar! zz5VJA#T|h=e&S>JKKus$w?Nmx%D|67PC;jaW`pg53xa1R@)BkfIf*s9pk3Q`btX}e!_?i~%-zR!zu2>JPsyGy$==C7?N!a*!54>Y4pkh64hJ3XKCXB)|W19iXP=`%Bd48iT8_No#viy&!y&O=6=ZAk=LJZ zmS0vtDA-*vS?E&OSwt@q6@4oXFMe2JTXNxy=9!E$pU;Mz9WG^+HkBkd6rdI9NGi~Iy%yy`KU;AuFc*kVt z*3Ji)oG*2Et?O#LY3egu z$GvCp7Ux#qZO7X;du@8J_igCA(!aL<(ty=K#~q71?RU-Zw%s$o*EVP|*nZ#ge&>+& zP}hU?53UVw8on`NKXQB2Y4py+Ee{_&@_ID(INpZ_OX)$^Ah5d`WFFjt4zY2c!>(s8PZ_}y2$p4c6dgbf-H>Pi{ymfp# z^v?g?^sn*1F3hC;ru5sH_ssXLzq5Y7JL@|;{YT;-i*qObRR6Q~gV~4fk8U5IeTwsVN;ni1nnXb~04qT#C1|k+Ig|j@(lzKG34&2*98zUK1Tcg` zp1Yu6aEUM+ki$7=&$fmYDq`3+*%zqgNIW56RxvJ9tQlSKC zEj|Tu$e^$iN(pQNbAA7q|KCt1M~b8JNx8_4!wr=owR`*#0$+XY2&|3y%xM6=?!&#F zqzDr3OE+(Vbik`J!P~#y2XKeFMJQMPzsLDM0vy1pq03R*H_M?>sq$3Z0d%a@NdOZM zOONsuP#@$C>Hv6g6{>+ByW*@nUo>Yg0ymYezTyS#%~~q0`{Bb=8>ecj48Bqfo>yue z>U(7NN$DreL{-`5(0I#|JKJH+IkzeoY`Fk~erGx;HQ7Tx8b81w~=hGMkVx_JtI zHo*P&M8a5DC_n?N{bLbEGw9R&f}CF_p)5X16Ug)_z?KkN`6TN8{W&;mD*otiy+pWU z#f^m7O_zSyQK>U&kh9f_jnd64S4x8gsuRciUYCjPQ<WoBirTNd_PH_$k^;`v% z)bUNL0A+j=Z9%l#+|$0sOCUP-U0Jp$`$p3upt=}#pY*v{RW_#eoo~P4+9ttd=e3Qf zn=q(zRhnGIXMD@F(38wiRm)#b9k$*0oy7^r7%T69NSMv=DJr9u-nEAbm&+#i8=e)g zQ_ILVFCu1jWfA%*8-Dxb(cPlP7D&uvf2 zXdXNQX&waSTnaVgJFAZDM#-pW=DK+aQqE{eI^XsHEHPj&ZUJIpbUx|$Vn#Y2qwYV^ z*e-Qq56`V!l`SnU;AI?^8LIKS!~%#46tJf?IG1s5R?lvpB-uHGT(O3$eO00uohzsk z&GI~st#aN22lI7R&QUh9a(WeiPf4+I!nkry7=N5;y-YpKN}o~c?VaT%K8p!#>y=jS z-!aN49{->tIa#7Wx+O?|fnI;;J0~l4_4;OpRZy5nfpwSK-uVT`vX5pORl9w{m0cn` zt%!rker*w{jh`!m4*_kddmblZ5a+>*O$_1J?gt_9MAw{uHKr|9