summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2016-02-25 13:46:53 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2016-02-25 13:51:20 +0900
commitaf45e5580ef74be3ffc5a97777f1120f8d830f2f (patch)
treef103056f3f5c44fdffeb45d9628676a98448202a
parent2c3659d5cec7c9ed48a1e663062f36a4a0d6d33a (diff)
panes: add the style to fold by clicking
Some area that is split by this style panes can be folded by clicking. The styles are "left-fold", "right-fold", "up-fold", "down-fold". @feature
-rw-r--r--data/themes/edc/elm/panes.edc252
1 files changed, 252 insertions, 0 deletions
diff --git a/data/themes/edc/elm/panes.edc b/data/themes/edc/elm/panes.edc
index 45b6d4a48..9009123f9 100644
--- a/data/themes/edc/elm/panes.edc
+++ b/data/themes/edc/elm/panes.edc
@@ -743,3 +743,255 @@ group { name: "elm/panes/horizontal/flush";
743 } 743 }
744 } 744 }
745} 745}
746
747group { name: "elm/panes/vertical/left-fold";
748 inherit: "elm/panes/vertical/default";
749 images.image: "icon_arrow_left.png" COMP;
750 images.image: "icon_arrow_right.png" COMP;
751 script {
752 public open;
753 public drag_x;
754 public drag_y;
755 }
756 parts {
757 spacer { "sub_whole";
758 desc { "default";
759 rel1.offset: 3 0;
760 }
761 }
762 image { "dots";
763 desc { "default";
764 image.normal: "icon_arrow_left.png";
765 FIXED_SIZE(14, 14)
766 }
767 desc { "closed";
768 inherit: "default" 0.0;
769 image.normal: "icon_arrow_right.png";
770 }
771 }
772 rect { "event";
773 repeat;
774 desc { "default";
775 rel1.to: "dots";
776 rel2.to: "dots";
777 color: 0 0 0 0;
778 }
779 }
780 }
781 programs {
782 program { signal: "load"; source: "";
783 script {
784 set_int(open, 1);
785 }
786 }
787 program { signal: "mouse,clicked,1"; source: "event";
788 script {
789 if (get_int(open) == 1)
790 {
791 new Float: dx;
792 new Float: dy;
793 set_int(open, 0);
794 get_drag(PART:"elm.bar", dx, dy);
795 set_float(drag_x, dx);
796 set_drag(PART:"elm.bar", 0.0, 0.5);
797 set_state(PART:"dots", "closed", 0.0);
798 }
799 else if (get_int(open) == 0)
800 {
801 set_int(open, 1);
802 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
803 set_state(PART:"dots", "default", 0.0);
804 }
805 }
806 }
807 }
808}
809
810group { name: "elm/panes/vertical/right-fold";
811 inherit: "elm/panes/vertical/default";
812 images.image: "icon_arrow_left.png" COMP;
813 images.image: "icon_arrow_right.png" COMP;
814 script {
815 public open;
816 public drag_x;
817 public drag_y;
818 }
819 parts {
820 spacer { "sub_whole";
821 desc { "default";
822 rel2.offset: -4 0;
823 }
824 }
825 image { "dots";
826 desc { "default";
827 image.normal: "icon_arrow_right.png";
828 FIXED_SIZE(14, 17)
829 }
830 desc { "closed";
831 inherit: "default" 0.0;
832 image.normal: "icon_arrow_left.png";
833 }
834 }
835 rect { "event";
836 repeat;
837 desc { "default";
838 rel1.to: "dots";
839 rel2.to: "dots";
840 color: 0 0 0 0;
841 }
842 }
843 }
844 programs {
845 program { signal: "load"; source: "";
846 script {
847 set_int(open, 1);
848 }
849 }
850 program { signal: "mouse,clicked,1"; source: "event";
851 script {
852 if (get_int(open) == 1)
853 {
854 new Float: dx;
855 new Float: dy;
856 set_int(open, 0);
857 get_drag(PART:"elm.bar", dx, dy);
858 set_float(drag_x, dx);
859 set_drag(PART:"elm.bar", 1.0, 0.5);
860 set_state(PART:"dots", "closed", 0.0);
861 }
862 else if (get_int(open) == 0)
863 {
864 set_int(open, 1);
865 set_drag(PART:"elm.bar", get_float(drag_x), 0.5);
866 set_state(PART:"dots", "default", 0.0);
867 }
868 }
869 }
870 }
871}
872
873group { name: "elm/panes/horizontal/up-fold";
874 inherit: "elm/panes/horizontal/default";
875 images.image: "icon_arrow_up.png" COMP;
876 images.image: "icon_arrow_down.png" COMP;
877 script {
878 public open;
879 public drag_x;
880 public drag_y;
881 }
882 parts {
883 spacer { "sub_whole";
884 desc { "default";
885 rel1.offset: 0 3;
886 }
887 }
888 image { "dots";
889 desc { "default";
890 image.normal: "icon_arrow_up.png";
891 FIXED_SIZE(17, 14)
892 }
893 desc { "closed";
894 inherit: "default" 0.0;
895 image.normal: "icon_arrow_down.png";
896 }
897 }
898 rect { "event";
899 repeat;
900 desc { "default";
901 rel1.to: "dots";
902 rel2.to: "dots";
903 color: 0 0 0 0;
904 }
905 }
906 }
907 programs {
908 program { signal: "load"; source: "";
909 script {
910 set_int(open, 1);
911 }
912 }
913 program { signal: "mouse,clicked,1"; source: "event";
914 script {
915 if (get_int(open) == 1)
916 {
917 new Float: dx;
918 new Float: dy;
919 set_int(open, 0);
920 get_drag(PART:"elm.bar", dx, dy);
921 set_float(drag_y, dy);
922 set_drag(PART:"elm.bar", 0.5, 0.0);
923 set_state(PART:"dots", "closed", 0.0);
924 }
925 else if (get_int(open) == 0)
926 {
927 set_int(open, 1);
928 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
929 set_state(PART:"dots", "default", 0.0);
930 }
931 }
932 }
933 }
934}
935
936group { name: "elm/panes/horizontal/down-fold";
937 inherit: "elm/panes/horizontal/default";
938 images.image: "icon_arrow_up.png" COMP;
939 images.image: "icon_arrow_down.png" COMP;
940 script {
941 public open;
942 public drag_x;
943 public drag_y;
944 }
945 parts {
946 spacer { "sub_whole";
947 desc { "default";
948 rel2.offset: 0 -4;
949 }
950 }
951 image { "dots";
952 desc { "default";
953 image.normal: "icon_arrow_down.png";
954 FIXED_SIZE(17, 14)
955 }
956 desc { "closed";
957 inherit: "default" 0.0;
958 image.normal: "icon_arrow_up.png";
959 }
960 }
961 rect { "event";
962 repeat;
963 desc { "default";
964 rel1.to: "dots";
965 rel2.to: "dots";
966 color: 0 0 0 0;
967 }
968 }
969 }
970 programs {
971 program { signal: "load"; source: "";
972 script {
973 set_int(open, 1);
974 }
975 }
976 program { signal: "mouse,clicked,1"; source: "event";
977 script {
978 if (get_int(open) == 1)
979 {
980 new Float: dx;
981 new Float: dy;
982 set_int(open, 0);
983 get_drag(PART:"elm.bar", dx, dy);
984 set_float(drag_y, dy);
985 set_drag(PART:"elm.bar", 0.5, 1.0);
986 set_state(PART:"dots", "closed", 0.0);
987 }
988 else if (get_int(open) == 0)
989 {
990 set_int(open, 1);
991 set_drag(PART:"elm.bar", 0.5, get_float(drag_y));
992 set_state(PART:"dots", "default", 0.0);
993 }
994 }
995 }
996 }
997}