summaryrefslogtreecommitdiff
path: root/legacy/elementary/data
diff options
context:
space:
mode:
authorchanwook jung <jchanwook@gmail.com>2012-03-07 12:15:36 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-03-07 12:15:36 +0000
commit2fe90bc9977ece58033dd43ac92f0d372a40f207 (patch)
tree5fad6dbc244c1b0049ffe59b16ec2fccb05f0c64 /legacy/elementary/data
parent6d5e63d7bfeeb0bb0f0b29ef9f3e9b99feb68d0f (diff)
From: chanwook jung <jchanwook@gmail.com>
Subject: [E-devel] [Patch] elm_genlist : Add tree effect APIs I made a patch for Tree Effect in elm_genlist. This feature shows the flip effect when expand/contract the expandable list. External APIs : +EAPI void elm_genlist_tree_effect_enabled_set(Evas_Object *obj, Eina_Bool enabled); - Set Genlist tree effect +EAPI Eina_Bool elm_genlist_tree_effect_enabled_get(const Evas_Object *obj); - Get Genlist tree effect status You can test it. "Genlist Tree Effect". SVN revision: 68934
Diffstat (limited to 'legacy/elementary/data')
-rw-r--r--legacy/elementary/data/themes/widgets/genlist.edc629
1 files changed, 629 insertions, 0 deletions
diff --git a/legacy/elementary/data/themes/widgets/genlist.edc b/legacy/elementary/data/themes/widgets/genlist.edc
index b2acb97..ac2ee06 100644
--- a/legacy/elementary/data/themes/widgets/genlist.edc
+++ b/legacy/elementary/data/themes/widgets/genlist.edc
@@ -9561,3 +9561,632 @@ group { name: "elm/genlist/item/edit/default";
9561 } 9561 }
9562 } 9562 }
9563} 9563}
9564
9565#define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
9566description { state: "map_transition" 0.0; \
9567 inherit: "default" 0.0; \
9568 color: 50 50 50 100; \
9569 map { \
9570 perspective: "point"; \
9571 on: 1; \
9572 smooth: 1; \
9573 perspective_on: 1; \
9574 backface_cull: 1; \
9575 rotation { \
9576 center: "point"; \
9577 x: param_x; \
9578 y: param_y; \
9579 z: param_z; \
9580 } \
9581 } \
9582} \
9583description { \
9584 state: "hide" 0.0; \
9585 inherit: "default" 0.0; \
9586 visible: 0; \
9587}
9588
9589#define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
9590description { \
9591 state: "map_rotate" 0.0; \
9592 inherit: "default" 0.0; \
9593 map { \
9594 perspective: "point"; \
9595 on: 1; \
9596 smooth: 1; \
9597 perspective_on: 1; \
9598 backface_cull: 1; \
9599 rotation { \
9600 center: "point"; \
9601 x: param_x; \
9602 y: param_y; \
9603 z: param_z; \
9604 } \
9605 } \
9606}
9607
9608group { name: "elm/genlist/tree/tree_effect/default";
9609 data.item: "selectraise" "on";
9610 data.item: "texts" "elm.text";
9611 data.item: "contents" "elm.swallow.icon elm.swallow.end";
9612 data.item: "treesize" "20";
9613 images {
9614 image: "bt_sm_base1.png" COMP;
9615 image: "bt_sm_shine.png" COMP;
9616 image: "bt_sm_hilight.png" COMP;
9617 image: "ilist_1.png" COMP;
9618 image: "ilist_2.png" COMP;
9619 image: "ilist_item_shadow.png" COMP;
9620 image: "icon_arrow_left.png" COMP;
9621 image: "icon_arrow_right.png" COMP;
9622 image: "icon_arrow_down.png" COMP;
9623 }
9624 parts {
9625 part { name: "point";
9626 type: RECT;
9627 scale: 1;
9628 description {
9629 state: "default" 0.0;
9630 color: 0 0 0 0;
9631 rel1 { relative: 0.0 0.0; }
9632 rel2 { relative: 1.0 0.0; }
9633 }
9634 }
9635 part {
9636 name: "event";
9637 type: RECT;
9638 repeat_events: 1;
9639 description {
9640 state: "default" 0.0;
9641 color: 0 0 0 0;
9642 }
9643 }
9644 part { name: "reorder_bg";
9645 mouse_events: 0;
9646 description { state: "default" 0.0;
9647 visible: 0;
9648 color: 255 255 255 0;
9649 rel1 {
9650 relative: 0.0 0.0;
9651 offset: -7 -7;
9652 }
9653 rel2 {
9654 relative: 1.0 1.0;
9655 offset: 9 9;
9656 }
9657 image {
9658 normal: "bt_bases.png";
9659 border: 6 6 6 6;
9660 }
9661 }
9662 description { state: "enabled" 0.0;
9663 inherit: "default" 0.0;
9664 visible: 1;
9665 color: 255 255 255 255;
9666 }
9667 }
9668 part {
9669 name: "base_sh";
9670 mouse_events: 0;
9671 description {
9672 state: "default" 0.0;
9673 align: 0.0 0.0;
9674 min: 0 10;
9675 fixed: 1 1;
9676 rel1 {
9677 to: "base";
9678 relative: 0.0 1.0;
9679 offset: 0 0;
9680 }
9681 rel2 {
9682 to: "base";
9683 relative: 1.0 1.0;
9684 offset: -1 0;
9685 }
9686 image {
9687 normal: "ilist_item_shadow.png";
9688 }
9689 fill.smooth: 0;
9690 }
9691 description {
9692 state: "default" 1.0;
9693 inherit: "default" 0.0;
9694 visible: 0;
9695 }
9696 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9697 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9698 }
9699 part {
9700 name: "base";
9701 mouse_events: 0;
9702 description {
9703 state: "default" 0.0;
9704 image {
9705 normal: "ilist_1.png";
9706 border: 2 2 2 2;
9707 }
9708 fill.smooth: 0;
9709 }
9710 description {
9711 state: "default" 1.0;
9712 inherit: "default" 0.0;
9713 image.normal: "ilist_2.png";
9714 }
9715 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9716 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9717 }
9718 part { name: "bg";
9719 clip_to: "disclip";
9720 mouse_events: 0;
9721 description { state: "default" 0.0;
9722 visible: 0;
9723 color: 255 255 255 0;
9724 rel1 {
9725 relative: 0.0 0.0;
9726 offset: -5 -5;
9727 }
9728 rel2 {
9729 relative: 1.0 1.0;
9730 offset: 4 4;
9731 }
9732 image {
9733 normal: "bt_sm_base1.png";
9734 border: 6 6 6 6;
9735 }
9736 image.middle: SOLID;
9737 }
9738 description { state: "selected" 0.0;
9739 inherit: "default" 0.0;
9740 visible: 1;
9741 color: 255 255 255 255;
9742 rel1 {
9743 relative: 0.0 0.0;
9744 offset: -2 -2;
9745 }
9746 rel2 {
9747 relative: 1.0 1.0;
9748 offset: 1 1;
9749 }
9750 }
9751 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9752 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9753 }
9754 part { name: "elm.swallow.pad";
9755 type: SWALLOW;
9756 description { state: "default" 0.0;
9757 fixed: 1 0;
9758 align: 0.0 0.5;
9759 rel1 {
9760 relative: 0.0 0.0;
9761 offset: 4 4;
9762 }
9763 rel2 {
9764 relative: 0.0 1.0;
9765 offset: 4 -5;
9766 }
9767 }
9768 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9769 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9770 }
9771 part { name: "arrow";
9772 clip_to: "disclip";
9773 ignore_flags: ON_HOLD;
9774 description { state: "default" 0.0;
9775 fixed: 1 0;
9776 align: 0.0 0.5;
9777 aspect: 1.0 1.0;
9778 rel1 {
9779 to_x: "elm.swallow.pad";
9780 relative: 1.0 0.0;
9781 offset: -1 4;
9782 }
9783 rel2 {
9784 to_x: "elm.swallow.pad";
9785 relative: 1.0 1.0;
9786 offset: -1 -5;
9787 }
9788 image.normal: "icon_arrow_right.png";
9789 }
9790 description { state: "default" 0.1;
9791 inherit: "default" 0.0;
9792 image.normal: "icon_arrow_left.png";
9793 }
9794 description { state: "active" 0.0;
9795 inherit: "default" 0.0;
9796 image.normal: "icon_arrow_down.png";
9797 }
9798 description { state: "active" 0.1;
9799 inherit: "default" 0.0;
9800 image.normal: "icon_arrow_down.png";
9801 }
9802 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9803 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9804 }
9805 part { name: "elm.swallow.icon";
9806 clip_to: "disclip";
9807 type: SWALLOW;
9808 description { state: "default" 0.0;
9809 fixed: 1 0;
9810 align: 0.0 0.5;
9811 rel1 {
9812 to_x: "arrow";
9813 relative: 1.0 0.0;
9814 offset: 4 4;
9815 }
9816 rel2 {
9817 to_x: "arrow";
9818 relative: 1.0 1.0;
9819 offset: 4 -5;
9820 }
9821 }
9822 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9823 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9824 }
9825 part { name: "elm.swallow.end";
9826 clip_to: "disclip";
9827 type: SWALLOW;
9828 description { state: "default" 0.0;
9829 fixed: 1 0;
9830 align: 1.0 0.5;
9831 aspect: 1.0 1.0;
9832 aspect_preference: VERTICAL;
9833 rel1 {
9834 relative: 1.0 0.0;
9835 offset: -5 4;
9836 }
9837 rel2 {
9838 relative: 1.0 1.0;
9839 offset: -5 -5;
9840 }
9841 }
9842 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9843 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9844 }
9845 part { name: "elm.text";
9846 clip_to: "disclip";
9847 type: TEXT;
9848 effect: SOFT_SHADOW;
9849 mouse_events: 0;
9850 scale: 1;
9851 description {
9852 state: "default" 0.0;
9853 rel1 {
9854 to_x: "elm.swallow.icon";
9855 relative: 1.0 0.0;
9856 offset: 0 4;
9857 }
9858 rel2 {
9859 to_x: "elm.swallow.end";
9860 relative: 0.0 1.0;
9861 offset: -1 -5;
9862 }
9863 color: 0 0 0 255;
9864 color3: 0 0 0 0;
9865 text {
9866 font: "Sans";
9867 size: 10;
9868 min: 1 1;
9869 align: -1.0 0.5;
9870 text_class: "list_item";
9871 }
9872 }
9873 description { state: "selected" 0.0;
9874 inherit: "default" 0.0;
9875 color: 224 224 224 255;
9876 color3: 0 0 0 64;
9877 }
9878 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9879 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9880 }
9881 part { name: "fg1";
9882 clip_to: "disclip";
9883 mouse_events: 0;
9884 description { state: "default" 0.0;
9885 visible: 0;
9886 color: 255 255 255 0;
9887 rel1.to: "bg";
9888 rel2.relative: 1.0 0.5;
9889 rel2.to: "bg";
9890 image {
9891 normal: "bt_sm_hilight.png";
9892 border: 6 6 6 0;
9893 }
9894 }
9895 description { state: "selected" 0.0;
9896 inherit: "default" 0.0;
9897 visible: 1;
9898 color: 255 255 255 255;
9899 }
9900 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9901 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9902 }
9903 part { name: "fg2";
9904 clip_to: "disclip";
9905 mouse_events: 0;
9906 description { state: "default" 0.0;
9907 visible: 0;
9908 color: 255 255 255 0;
9909 rel1.to: "bg";
9910 rel2.to: "bg";
9911 image {
9912 normal: "bt_sm_shine.png";
9913 border: 6 6 6 0;
9914 }
9915 }
9916 description { state: "selected" 0.0;
9917 inherit: "default" 0.0;
9918 visible: 1;
9919 color: 255 255 255 255;
9920 }
9921 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0)
9922 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0)
9923 }
9924 part { name: "disclip";
9925 type: RECT;
9926 description { state: "default" 0.0;
9927 rel1.to: "bg";
9928 rel2.to: "bg";
9929 }
9930 description { state: "disabled" 0.0;
9931 inherit: "default" 0.0;
9932 color: 255 255 255 64;
9933 }
9934 }
9935 }
9936 programs {
9937 // signal: elm,state,%s,active
9938 // a "check" item named %s went active
9939 // signal: elm,state,%s,passive
9940 // a "check" item named %s went passive
9941 // default is passive
9942 program {
9943 name: "odd";
9944 signal: "elm,state,odd";
9945 source: "elm";
9946 action: STATE_SET "default" 1.0;
9947 target: "base_sh";
9948 target: "base";
9949 }
9950 program {
9951 name: "even";
9952 signal: "elm,state,even";
9953 source: "elm";
9954 action: STATE_SET "default" 0.0;
9955 target: "base_sh";
9956 target: "base";
9957 }
9958 program {
9959 name: "go_active";
9960 signal: "elm,state,selected";
9961 source: "elm";
9962 action: STATE_SET "selected" 0.0;
9963 target: "bg";
9964 target: "fg1";
9965 target: "fg2";
9966 target: "elm.text";
9967 }
9968 program {
9969 name: "go_passive";
9970 signal: "elm,state,unselected";
9971 source: "elm";
9972 action: STATE_SET "default" 0.0;
9973 target: "bg";
9974 target: "fg1";
9975 target: "fg2";
9976 target: "elm.text";
9977 transition: LINEAR 0.1;
9978 }
9979 program {
9980 name: "go_disabled";
9981 signal: "elm,state,disabled";
9982 source: "elm";
9983 action: STATE_SET "disabled" 0.0;
9984 target: "disclip";
9985 }
9986 program {
9987 name: "go_enabled";
9988 signal: "elm,state,enabled";
9989 source: "elm";
9990 action: STATE_SET "default" 0.0;
9991 target: "disclip";
9992 }
9993 program {
9994 name: "go_reorder_disabled";
9995 signal: "elm,state,reorder,disabled";
9996 source: "elm";
9997 action: STATE_SET "default" 0.0;
9998 target: "reorder_bg";
9999 transition: DECELERATE 0.5;
10000 }
10001 program {
10002 name: "go_reorder_enabled";
10003 signal: "elm,state,reorder,enabled";
10004 source: "elm";
10005 action: STATE_SET "enabled" 0.0;
10006 target: "reorder_bg";
10007 transition: DECELERATE 0.5;
10008 }
10009 program {
10010 name: "expand";
10011 signal: "mouse,up,1";
10012 source: "arrow";
10013 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
10014 }
10015 program {
10016 name: "go_expanded";
10017 signal: "elm,state,expanded";
10018 source: "elm";
10019 script {
10020 new st[31];
10021 new Float:vl;
10022 get_state(PART:"arrow", st, 30, vl);
10023 set_state(PART:"arrow", "active", vl);
10024 }
10025 }
10026 program {
10027 name: "go_contracted";
10028 signal: "elm,state,contracted";
10029 source: "elm";
10030 script {
10031 new st[31];
10032 new Float:vl;
10033 get_state(PART:"arrow", st, 30, vl);
10034 set_state(PART:"arrow", "default", vl);
10035 }
10036 }
10037 program { name: "to_rtl";
10038 signal: "edje,state,rtl";
10039 source: "edje";
10040 script {
10041 new st[31];
10042 new Float:vl;
10043 get_state(PART:"arrow", st, 30, vl);
10044 if (vl == 0.0) {
10045 set_state(PART:"arrow", st, 0.1);
10046 }
10047 }
10048 }
10049 program { name: "to_ltr";
10050 signal: "edje,state,ltr";
10051 source: "edje";
10052 script {
10053 new st[31];
10054 new Float:vl;
10055 get_state(PART:"arrow", st, 30, vl);
10056 if (vl == 0.1) {
10057 set_state(PART:"arrow", st, 0.0);
10058 }
10059 }
10060 }
10061 program {
10062 name: "rotaion_transition";
10063 signal: "flip_item";
10064 action: STATE_SET "map_transition" 0.0;
10065 after: "rotation";
10066 target: "reorder_bg";
10067 target: "base_sh";
10068 target: "base";
10069 target: "bg";
10070 target: "arrow";
10071 target: "elm.swallow.pad";
10072 target: "elm.swallow.icon";
10073 target: "elm.swallow.end";
10074 target: "elm.text";
10075 target: "fg1";
10076 target: "fg2";
10077 }
10078 program {
10079 name: "rotation";
10080 action: STATE_SET "map_rotate" 0.0;
10081 transition: LINEAR 0.2;
10082 after: "rotation_end";
10083 target: "reorder_bg";
10084 target: "base_sh";
10085 target: "base";
10086 target: "bg";
10087 target: "arrow";
10088 target: "elm.swallow.pad";
10089 target: "elm.swallow.icon";
10090 target: "elm.swallow.end";
10091 target: "elm.text";
10092 target: "fg1";
10093 target: "fg2";
10094 }
10095 program {
10096 name: "rotation_end";
10097 action: STATE_SET "default" 0.0;
10098 target: "reorder_bg";
10099 target: "base_sh";
10100 target: "base";
10101 target: "bg";
10102 target: "arrow";
10103 target: "elm.swallow.pad";
10104 target: "elm.swallow.icon";
10105 target: "elm.swallow.end";
10106 target: "elm.text";
10107 target: "fg1";
10108 target: "fg2";
10109 }
10110 program {
10111 name: "rotation_transition2";
10112 signal: "elm,state,contract_flip";
10113 action: STATE_SET "map_rotate" 0.0;
10114 after: "rotation2";
10115 target: "reorder_bg";
10116 target: "base_sh";
10117 target: "base";
10118 target: "bg";
10119 target: "arrow";
10120 target: "elm.swallow.pad";
10121 target: "elm.swallow.icon";
10122 target: "elm.swallow.end";
10123 target: "elm.text";
10124 target: "fg1";
10125 target: "fg2";
10126 }
10127 program {
10128 name: "rotation2";
10129 action: STATE_SET "map_transition" 0.0;
10130 transition: LINEAR 0.5;
10131 after: "rotation3";
10132 target: "reorder_bg";
10133 target: "base_sh";
10134 target: "base";
10135 target: "bg";
10136 target: "arrow";
10137 target: "elm.swallow.pad";
10138 target: "elm.swallow.icon";
10139 target: "elm.swallow.end";
10140 target: "elm.text";
10141 target: "fg1";
10142 target: "fg2";
10143 }
10144 program {
10145 name: "rotation3";
10146 action: STATE_SET "hide" 0.0;
10147 target: "reorder_bg";
10148 target: "base_sh";
10149 target: "base";
10150 target: "bg";
10151 target: "arrow";
10152 target: "elm.swallow.pad";
10153 target: "elm.swallow.icon";
10154 target: "elm.swallow.end";
10155 target: "elm.text";
10156 target: "fg1";
10157 target: "fg2";
10158 }
10159 program {
10160 name: "show";
10161 signal: "elm,state,show";
10162 action: STATE_SET "default" 0.0;
10163 target: "reorder_bg";
10164 target: "base_sh";
10165 target: "base";
10166 target: "bg";
10167 target: "arrow";
10168 target: "elm.swallow.pad";
10169 target: "elm.swallow.icon";
10170 target: "elm.swallow.end";
10171 target: "elm.text";
10172 target: "fg1";
10173 target: "fg2";
10174 }
10175 program {
10176 name: "hide";
10177 signal: "elm,state,hide";
10178 action: STATE_SET "hide" 0.0;
10179 target: "reorder_bg";
10180 target: "base_sh";
10181 target: "base";
10182 target: "bg";
10183 target: "arrow";
10184 target: "elm.swallow.pad";
10185 target: "elm.swallow.icon";
10186 target: "elm.swallow.end";
10187 target: "elm.text";
10188 target: "fg1";
10189 target: "fg2";
10190 }
10191 }
10192}