From 410ce217aa1d7c0343966b76680a8f0ef3f9b95b Mon Sep 17 00:00:00 2001 From: Jung Chanwook Date: Thu, 8 Mar 2012 14:50:29 +0900 Subject: [PATCH] [genlist, gen, gen_common] merge upstream except for elm_genlist.c --- data/themes/widgets/genlist.edc | 9366 --------------------------------- doc/widgets/widget_preview_genlist1.c | 17 - src/edje_externals/elm_genlist.c | 74 - src/examples/genlist_example_01.c | 19 - src/examples/genlist_example_02.c | 72 - src/examples/genlist_example_03.c | 33 - src/examples/genlist_example_04.c | 216 - src/examples/genlist_example_05.c | 219 - src/lib/elm_gen.h | 87 - src/lib/elm_gen_common.h | 151 - src/lib/elm_genlist.h | 1150 +--- 11 files changed, 126 insertions(+), 11278 deletions(-) diff --git a/data/themes/widgets/genlist.edc b/data/themes/widgets/genlist.edc index 8aaf255..ac2ee06 100644 --- a/data/themes/widgets/genlist.edc +++ b/data/themes/widgets/genlist.edc @@ -1,9368 +1,3 @@ -<<<<<<< HEAD - group { name: "elm/genlist/item/default/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_2.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { name: "reorder_bg"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -7 -7; - } - rel2 { - relative: 1.0 1.0; - offset: 9 9; - } - image { - normal: "bt_bases.png"; - border: 6 6 6 6; - } - } - description { state: "enabled" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "default" 1.0; - inherit: "default" 0.0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - description { - state: "selected" 1.0; - inherit: "selected" 0.0; - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: -1.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - description { - state: "selected" 1.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - description { - state: "selected" 1.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base", st, 30, vl); - set_state(PART:"bg", "selected", vl); - set_state(PART:"fg1", "selected", vl); - set_state(PART:"fg2", "selected", vl); - set_state(PART:"elm.text", "selected", vl); - } - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base", st, 30, vl); - set_state(PART:"bg", "default", vl); - set_state(PART:"fg1", "default", vl); - set_state(PART:"fg2", "default", vl); - set_state(PART:"elm.text", "default", vl); - } - } - 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"; - } - program { - name: "go_reorder_disabled"; - signal: "elm,state,reorder,disabled"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "reorder_bg"; - transition: DECELERATE 0.5; - } - program { - name: "go_reorder_enabled"; - signal: "elm,state,reorder,enabled"; - source: "elm"; - action: STATE_SET "enabled" 0.0; - target: "reorder_bg"; - transition: DECELERATE 0.5; - } - } - } - group { name: "elm/genlist/item/group_index/default"; - alias: "elm/genlist/item_compress/group_index/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "group_index.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 0; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "group_index.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: -1.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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_compress/message/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.title.1 elm.title.2 elm.text"; -// data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_2.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - styles { - style { name: "genlist_textblock_style"; - base: "font=Sans font_size=10 color=#000 wrap=char text_class=list_item"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "tab" "\t"; - } - style { name: "genlist_textblock_style2"; - base: "font=Sans font_size=10 color=#fff wrap=char text_class=list_item"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "tab" "\t"; - } - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.title.1"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - fixed: 0 1; -// min: 16 16; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.0; - offset: -5 4; - } - color: 0 0 0 255; - color3: 0 0 0 0; - align: 0.0 0.0; - text { - font: "Sans"; - size: 10; - min: 0 1; -// min: 1 1; - align: 0.0 0.0; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.title.2"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - fixed: 0 1; -// min: 16 16; - rel1 { - to_y: "elm.title.1"; - relative: 0.0 1.0; - offset: 4 0; - } - rel2 { - to_y: "elm.title.1"; - relative: 1.0 1.0; - offset: -5 0; - } - color: 0 0 0 255; - color3: 0 0 0 0; - align: 0.0 0.0; - text { - font: "Sans"; - size: 10; - min: 0 1; -// min: 1 1; - align: 0.0 0.0; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// fixed: 0 1; -// min: 16 16; - rel1 { - to_y: "elm.title.2"; - relative: 0.0 1.0; - offset: 4 0; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - align: 0.0 0.0; - text { - style: "genlist_textblock_style"; - min: 0 1; -// min: 1 1; - align: 0.0 0.0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "genlist_textblock_style2"; - } - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "selected" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.title.1"; - target: "elm.title.2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.title.1"; - target: "elm.title.2"; - 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_compress/default/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_2.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; -// min: 1 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "selected" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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/tree/default/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_2.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_left.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "default" 0.1; - inherit: "default" 0.0; - image.normal: "icon_arrow_left.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - description { state: "active" 0.1; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: -1.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "selected" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - set_state(PART:"arrow", "active", vl); - } - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - set_state(PART:"arrow", "default", vl); - } - } - program { name: "to_rtl"; - signal: "edje,state,rtl"; - source: "edje"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - if (vl == 0.0) { - set_state(PART:"arrow", st, 0.1); - } - } - } - program { name: "to_ltr"; - signal: "edje,state,ltr"; - source: "edje"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - if (vl == 0.1) { - set_state(PART:"arrow", st, 0.0); - } - } - } - } - } - group { name: "elm/genlist/tree_compress/default/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_left.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "default" 0.1; - inherit: "default" 0.0; - image.normal: "icon_arrow_left.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - description { state: "active" 0.1; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "selected" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - set_state(PART:"arrow", "active", vl); - } - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - set_state(PART:"arrow", "default", vl); - } - } - program { name: "to_rtl"; - signal: "edje,state,rtl"; - source: "edje"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - if (vl == 0.0) { - set_state(PART:"arrow", st, 0.1); - } - } - } - program { name: "to_ltr"; - signal: "edje,state,ltr"; - source: "edje"; - script { - new st[31]; - new Float:vl; - get_state(PART:"arrow", st, 30, vl); - if (vl == 0.1) { - set_state(PART:"arrow", st, 0.0); - } - } - } - } - } - group { name: "elm/genlist/item/default_style/default"; - styles - { - style { name: "genlist_style"; - base: "font=Sans font_size=10 align=left valign=0.5 color=#000 text_class=list_item"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - style { name: "genlist_selected_style"; - base: "font=Sans font_size=10 align=left valign=0.5 color=#fff text_class=list_item"; - tag: "br" "\n"; - tag: "ps" "ps"; - tag: "hilight" "+ font_weight=Bold"; - tag: "b" "+ font_weight=Bold"; - tag: "tab" "\t"; - } - } - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 28; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - align: 0.0 0.5; - fixed: 0 1; - rel1 { - to_x: "elm.swallow.icon"; - to_y: "base"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - to_y: "base"; - relative: 0.0 0.5; - offset: -1 -5; - } - text { - style: "genlist_style"; - min: 1 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "genlist_selected_style"; - } - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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_odd/default_style/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 28; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXTBLOCK; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - align: 0.0 0.5; - fixed: 0 1; - rel1 { - to_x: "elm.swallow.icon"; - to_y: "base"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - to_y: "base"; - relative: 0.0 0.5; - offset: -1 -5; - } - text { - style: "genlist_style"; - min: 1 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "genlist_selected_style"; - } - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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/tree/default_style/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 28; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXTBLOCK; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - align: 0.0 0.5; - fixed: 0 1; - rel1 { - to_x: "elm.swallow.icon"; - to_y: "base"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - to_y: "base"; - relative: 0.0 0.5; - offset: -1 -5; - } - text { - style: "genlist_style"; - min: 1 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "genlist_selected_style"; - } - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - group { name: "elm/genlist/tree_odd/default_style/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 28; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXTBLOCK; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - align: 0.0 0.5; - fixed: 0 1; - rel1 { - to_x: "elm.swallow.icon"; - to_y: "base"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - to_y: "base"; - relative: 0.0 0.5; - offset: -1 -5; - } - text { - style: "genlist_style"; - min: 1 1; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - text { - style: "genlist_selected_style"; - } - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - - - group { name: "elm/genlist/item/double_label/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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_compress/double_label/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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_odd/double_label/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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_compress_odd/double_label/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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/tree/double_label/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - group { name: "elm/genlist/tree_compress/double_label/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - group { name: "elm/genlist/tree_odd/double_label/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 1 1; -// min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - - group { name: "elm/genlist/item/icon_top_text_bottom/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.5 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 0.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_y: "elm.swallow.icon"; - relative: 0.0 1.0; - offset: 0 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.5 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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_odd/icon_top_text_bottom/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -5; - } - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.5 0.5; - rel1 { - to_x: "elm.swallow.pad"; - relative: 0.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_y: "elm.swallow.icon"; - relative: 0.0 1.0; - offset: 0 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.5 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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/tree/icon_top_text_bottom/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.5 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_y: "elm.swallow.icon"; - relative: 0.0 1.0; - offset: 0 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.5 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - group { name: "elm/genlist/tree_odd/icon_top_text_bottom/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text"; - data.item: "contents" "elm.swallow.icon"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.5 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_y: "elm.swallow.icon"; - relative: 0.0 1.0; - offset: 0 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; -// min: 0 1; - align: 0.5 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - - -/////////////////////////////////////////////////////////////////////////////// - group { name: "elm/genlist/tree_compress_odd/double_label/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text elm.text.sub"; - data.item: "contents" "elm.swallow.icon elm.swallow.end"; - data.item: "treesize" "20"; -// data.item: "states" ""; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - image: "icon_arrow_right.png" COMP; - image: "icon_arrow_down.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "arrow"; - clip_to: "disclip"; - ignore_flags: ON_HOLD; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - aspect: 1.0 1.0; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - image.normal: "icon_arrow_right.png"; - } - description { state: "active" 0.0; - inherit: "default" 0.0; - image.normal: "icon_arrow_down.png"; - } - } - part { name: "elm.swallow.icon"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - to_x: "arrow"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - to_x: "arrow"; - relative: 1.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.end"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 1.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - rel1 { - relative: 1.0 0.0; - offset: -5 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - } - } - part { name: "elm.text"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.0; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.sub"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; -// min: 16 16; - rel1 { - to_x: "elm.swallow.icon"; - relative: 1.0 0.5; - offset: 0 4; - } - rel2 { - to_x: "elm.swallow.end"; - relative: 0.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; -// min: 1 1; - min: 0 1; - align: 0.0 0.5; - text_class: "list_item"; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text"; - target: "elm.text.sub"; - 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"; - } - program { - name: "expand"; - signal: "mouse,up,1"; - source: "arrow"; - action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; - } - program { - name: "go_expanded"; - signal: "elm,state,expanded"; - source: "elm"; - action: STATE_SET "active" 0.0; - target: "arrow"; - } - program { - name: "go_contracted"; - signal: "elm,state,contracted"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "arrow"; - } - } - } - - group { name: "elm/genlist/item_compress/media/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.album-artist"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.album-artist"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.album-artist"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.album-artist"; - 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_compress_odd/media/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.album-artist"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.album-artist"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.album-artist"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.album-artist"; - 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_compress/media-album/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.trackno elm.text.length"; - data.item: "states" "elm.state.trackno"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - script { - public dot_visible; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { - name: "elm.text.trackno"; - type: TEXT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 255; - align: 0.0 0.0; - fixed: 1 0; - rel1 { - to_y: "elm.text.title"; - relative: 0.0 0.0; - offset: 5 0; - } - rel2 { - to_y: "elm.text.title"; - relative: 0.0 1.0; - offset: 20 0; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: 1.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { - name: "dot"; - type: TEXT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 255; - visible: 0; - fixed: 1 1; - align: 0.0 0.0; - rel1 { - to_x: "elm.text.trackno"; - to_y: "elm.text.title"; - relative: 1.0 0.0; - offset: 1 0; - } - rel2 { - to_x: "elm.text.trackno"; - to_y: "elm.text.title"; - relative: 1.0 1.0; - offset: 1 0; - - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: 0.0 0.5; - text: "."; - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - visible: 1; - } - } - programs { - program { - signal: "elm,state,elm.state.trackno,active"; - source: "elm"; - script { - set_state(PART:"dot", "visible", 0.0); - set_int(dot_visible, 1); - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "dot"; - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.length"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.trackno"; - target: "elm.text.length"; - after: "dot_active"; - } - program { - name: "dot_active"; - script { - if (get_int(dot_visible) == 1) - set_state(PART:"dot", "selected", 0.0); - } - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.length"; - target: "elm.text.trackno"; - transition: LINEAR 0.1; - after: "dot_passive"; - } - program { - name: "dot_passive"; - script { - if (get_int(dot_visible) == 1) - set_state(PART:"dot", "visible", 0.0); - } - } - 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_compress_odd/media-album/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.trackno elm.text.length"; - data.item: "states" "elm.state.trackno"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - script { - public dot_visible; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { - name: "elm.text.trackno"; - type: TEXT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 255; - align: 0.0 0.0; - fixed: 1 0; - rel1 { - to_y: "elm.text.title"; - relative: 0.0 0.0; - offset: 5 0; - } - rel2 { - to_y: "elm.text.title"; - relative: 0.0 1.0; - offset: 20 0; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: 1.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { - name: "dot"; - type: TEXT; - scale: 1; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 255; - visible: 0; - fixed: 1 1; - align: 0.0 0.0; - rel1 { - to_x: "elm.text.trackno"; - to_y: "elm.text.title"; - relative: 1.0 0.0; - offset: 1 0; - } - rel2 { - to_x: "elm.text.trackno"; - to_y: "elm.text.title"; - relative: 1.0 1.0; - offset: 1 0; - - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: 0.0 0.5; - text: "."; - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - visible: 1; - } - } - programs { - program { - signal: "elm,state,elm.state.trackno,active"; - source: "elm"; - script { - set_state(PART:"dot", "visible", 0.0); - set_int(dot_visible, 1); - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "dot"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.length"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - relative: 0.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.length"; - target: "elm.text.trackno"; - after: "dot_active"; - } - program { - name: "dot_active"; - script { - if (get_int(dot_visible) == 1) - set_state(PART:"dot", "selected", 0.0); - } - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.length"; - target: "elm.text.trackno"; - transition: LINEAR 0.1; - after: "dot_passive"; - } - program { - name: "dot_passive"; - script { - if (get_int(dot_visible) == 1) - set_state(PART:"dot", "visible", 0.0); - } - } - 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_compress/media-preview/default"; - data.item: "stacking" "above"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.artist"; - data.item: "contents" "elm.swallow.preview"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.preview"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - min: 68 68; - max: 68 68; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "elm.swallow.preview"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.artist"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "elm.swallow.preview"; - relative: 1.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.artist"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.artist"; - 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_compress_odd/media-preview/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.title elm.text.artist"; - data.item: "contents" "elm.swallow.preview"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - parts { - part { name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.swallow.pad"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - } - } - part { name: "elm.swallow.preview"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - min: 68 68; - max: 68 68; - rel1 { - to_x: "elm.swallow.pad"; - relative: 1.0 0.0; - offset: -1 4; - } - rel2 { - to_x: "elm.swallow.pad"; - relative: 1.0 1.0; - offset: -1 -5; - } - } - } - part { name: "elm.text.title"; - clip_to: "disclip"; - type: TEXT; - effect: SOFT_SHADOW; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "elm.swallow.preview"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 0.5; - offset: -1 -5; - } - color: 0 0 0 255; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 10; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; - } - } - part { name: "elm.text.artist"; - clip_to: "disclip"; - type: TEXT; - mouse_events: 0; - scale: 1; - description { - state: "default" 0.0; - rel1 { - to_x: "elm.swallow.preview"; - relative: 1.0 0.5; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -5; - } - color: 0 0 0 128; - color3: 0 0 0 0; - text { - font: "Sans"; - size: 8; - min: 0 1; - align: 0.0 0.5; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - color: 128 128 128 255; - color3: 0 0 0 32; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - 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"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.artist"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - target: "elm.text.title"; - target: "elm.text.artist"; - 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/mode/default"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.mode"; - data.item: "contents" "elm.swallow.mode"; - data.item: "mode_part" "elm.swallow.origin"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_1.png" COMP; - image: "ilist_2.png" COMP; - image: "ilist_item_shadow.png" COMP; - } - - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base_sh"; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.0; - min: 0 10; - fixed: 1 1; - rel1 { - to: "base"; - relative: 0.0 1.0; - offset: 0 0; - } - rel2 { - to: "base"; - relative: 1.0 1.0; - offset: -1 0; - } - image { - normal: "ilist_item_shadow.png"; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_1.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - description { - state: "default" 1.0; - inherit: "default" 0.0; - image.normal: "ilist_2.png"; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "default" 0.1; - inherit: "default" 0.0; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - description { - state: "selected" 1.0; - inherit: "selected" 0.0; - } - } - part { name: "elm.text.mode"; - clip_to: "disclip"; - type: TEXT; - scale: 1; - description { state: "default" 0.0; - rel2.relative: 0.5 1.0; - color: 0 0 0 255; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: -1.0 0.5; - text_class: "list_item"; - } - } - } - part { name: "elm.swallow.mode"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - rel1.relative: 0.5 0.0; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - description { - state: "selected" 1.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - description { - state: "selected" 1.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - // Transparent part between base parts and slidable parts - part { name: "event_block_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; - } - } - part { name: "pers"; - clip_to: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.relative: 0.0 1.0; - } - } - part { name: "elm.swallow.origin"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - } - description { state: "slide" 0.0; - inherit: "default" 0.0; - rel1.relative: 1 0; - rel2.relative: 2 1; - } - description { state: "rotate" 0.0; - inherit: "default" 0.0; - map { - perspective: "pers"; - on: 1; - smooth: 1; - perspective_on: 1; - backface_cull: 1; - rotation { - center: "pers"; - x: 0.0; - y: 0.0; - z: 0.0; - } - } - } - description { state: "rotate" 1.0; - inherit: "default" 0.0; - map { - perspective: "pers"; - on: 1; - smooth: 1; - perspective_on: 1; - backface_cull: 1; - rotation { - center: "pers"; - x: 90.0; - y: 0.0; - z: 0.0; - } - } - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - programs { - program { - name: "odd"; - signal: "elm,state,odd"; - source: "elm"; - action: STATE_SET "default" 1.0; - target: "base_sh"; - target: "base"; - } - program { - name: "even"; - signal: "elm,state,even"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "base_sh"; - target: "base"; - } - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base", st, 30, vl); - set_state(PART:"bg", "selected", vl); - set_state(PART:"fg1", "selected", vl); - set_state(PART:"fg2", "selected", vl); - } - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - script { - new st[31]; - new Float:vl; - get_state(PART:"base", st, 30, vl); - set_state(PART:"bg", "default", vl); - set_state(PART:"fg1", "default", vl); - set_state(PART:"fg2", "default", vl); - } - } - 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"; - } - program { - name: "slide_right"; - signal: "elm,state,slide,active"; - source: "elm"; - action: STATE_SET "slide" 0.0; - target: "elm.swallow.origin"; - transition: ACCELERATE 0.5; - after: "unblock_event"; - } - program { - name: "unblock_event"; - action: STATE_SET "repeat_events" 0.0; - target: "event_block_layer"; - } - program { - name: "slide_left"; - signal: "elm,state,slide,passive"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "event_block_layer"; - after: "slide_left2"; - } - program { - name: "slide_left2"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.origin"; - transition: DECELERATE 0.5; - after: "slide_left_finished"; - } - program { - name: "slide_left_finished"; - action: SIGNAL_EMIT "elm,state,slide,passive,finished" "elm"; - } - program { - name: "rotate_on"; - signal: "elm,state,rotate,active"; - source: "elm"; - action: STATE_SET "rotate" 0.0; - target: "elm.swallow.origin"; - after: "rotate_on2"; - } - program { - name: "rotate_on2"; - action: STATE_SET "rotate" 1.0; - target: "elm.swallow.origin"; - transition: LINEAR 0.5; - after: "unblock_event"; - } - program { - name: "rotate_off"; - signal: "elm,state,rotate,passive"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "event_block_layer"; - after: "rotate_off2"; - } - program { - name: "rotate_off2"; - action: STATE_SET "rotate" 0.0; - transition: LINEAR 0.5; - target: "elm.swallow.origin"; - after: "rotate_off3"; - } - program { - name: "rotate_off3"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.origin"; - after: "rotate_off_finished"; - } - program { - name: "rotate_off_finished"; - action: SIGNAL_EMIT "elm,state,rotate,passive,finished" "elm"; - } - } - } - - group { name: "elm/genlist/item_odd/mode/default"; - data.item: "stacking" "below"; - data.item: "selectraise" "on"; - data.item: "texts" "elm.text.mode"; - data.item: "contents" "elm.swallow.mode"; - data.item: "mode_part" "elm.swallow.origin"; - data.item: "treesize" "20"; - images { - image: "bt_sm_base1.png" COMP; - image: "bt_sm_shine.png" COMP; - image: "bt_sm_hilight.png" COMP; - image: "ilist_2.png" COMP; - } - - parts { - part { - name: "event"; - type: RECT; - repeat_events: 1; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - image { - normal: "ilist_2.png"; - border: 2 2 2 2; - } - fill.smooth: 0; - } - } - part { name: "bg"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } - image { - normal: "bt_sm_base1.png"; - border: 6 6 6 6; - } - image.middle: SOLID; - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { name: "elm.text.mode"; - clip_to: "disclip"; - type: TEXT; - scale: 1; - description { state: "default" 0.0; - rel2.relative: 0.5 1.0; - color: 0 0 0 255; - text { - font: "Sans"; - size: 10; - min: 1 1; - align: 0.5 0.5; - text_class: "list_item"; - } - } - } - part { name: "elm.swallow.mode"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - rel1.relative: 0.5 0.0; - } - } - part { name: "fg1"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.relative: 1.0 0.5; - rel2.to: "bg"; - image { - normal: "bt_sm_hilight.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { name: "fg2"; - clip_to: "disclip"; - mouse_events: 0; - description { state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - rel1.to: "bg"; - rel2.to: "bg"; - image { - normal: "bt_sm_shine.png"; - border: 6 6 6 0; - } - } - description { state: "selected" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - // Transparent part between base parts and slidable parts - part { name: "event_block_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; - } - } - part { name: "pers"; - clip_to: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.relative: 0.0 1.0; - } - } - part { name: "elm.swallow.origin"; - clip_to: "disclip"; - type: SWALLOW; - description { state: "default" 0.0; - fixed: 1 0; - align: 0.0 0.5; - } - description { state: "slide" 0.0; - inherit: "default" 0.0; - rel1.relative: 1 0; - rel2.relative: 2 1; - } - description { state: "rotate" 0.0; - inherit: "default" 0.0; - map { - perspective: "pers"; - on: 1; - smooth: 1; - perspective_on: 1; - backface_cull: 1; - rotation { - center: "pers"; - x: 0.0; - y: 0.0; - z: 0.0; - } - } - } - description { state: "rotate" 1.0; - inherit: "default" 0.0; - map { - perspective: "pers"; - on: 1; - smooth: 1; - perspective_on: 1; - backface_cull: 1; - rotation { - center: "pers"; - x: 90.0; - y: 0.0; - z: 0.0; - } - } - } - } - part { name: "disclip"; - type: RECT; - description { state: "default" 0.0; - rel1.to: "bg"; - rel2.to: "bg"; - } - description { state: "disabled" 0.0; - inherit: "default" 0.0; - color: 255 255 255 64; - } - } - } - programs { - program { - name: "go_active"; - signal: "elm,state,selected"; - source: "elm"; - action: STATE_SET "selected" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - } - program { - name: "go_passive"; - signal: "elm,state,unselected"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "bg"; - target: "fg1"; - target: "fg2"; - 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"; - } - program { - name: "slide_right"; - signal: "elm,state,slide,active"; - source: "elm"; - action: STATE_SET "slide" 0.0; - target: "elm.swallow.origin"; - transition: ACCELERATE 0.5; - after: "unblock_event"; - } - program { - name: "unblock_event"; - action: STATE_SET "repeat_events" 0.0; - target: "event_block_layer"; - } - program { - name: "slide_left"; - signal: "elm,state,slide,passive"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "event_block_layer"; - after: "slide_left2"; - } - program { - name: "slide_left2"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.origin"; - transition: DECELERATE 0.5; - after: "slide_left_finished"; - } - program { - name: "slide_left_finished"; - action: SIGNAL_EMIT "elm,state,slide,passive,finished" "elm"; - } - program { - name: "rotate_on"; - signal: "elm,state,rotate,active"; - source: "elm"; - action: STATE_SET "rotate" 0.0; - target: "elm.swallow.origin"; - after: "rotate_on2"; - } - program { - name: "rotate_on2"; - action: STATE_SET "rotate" 1.0; - target: "elm.swallow.origin"; - transition: LINEAR 0.5; - after: "unblock_event"; - } - program { - name: "rotate_off"; - signal: "elm,state,rotate,passive"; - source: "elm"; - action: STATE_SET "default" 0.0; - target: "event_block_layer"; - after: "rotate_off2"; - } - program { - name: "rotate_off2"; - action: STATE_SET "rotate" 0.0; - transition: LINEAR 0.5; - target: "elm.swallow.origin"; - after: "rotate_off3"; - } - program { - name: "rotate_off3"; - action: STATE_SET "default" 0.0; - target: "elm.swallow.origin"; - after: "rotate_off_finished"; - } - program { - name: "rotate_off_finished"; - action: SIGNAL_EMIT "elm,state,rotate,passive,finished" "elm"; - } - } - } - -======= group { name: "elm/genlist/item/default/default"; data.item: "selectraise" "on"; data.item: "texts" "elm.text"; @@ -19555,4 +10190,3 @@ group { name: "elm/genlist/tree/tree_effect/default"; } } } ->>>>>>> remotes/origin/upstream diff --git a/doc/widgets/widget_preview_genlist1.c b/doc/widgets/widget_preview_genlist1.c index c82e98a..3edb65d 100644 --- a/doc/widgets/widget_preview_genlist1.c +++ b/doc/widgets/widget_preview_genlist1.c @@ -34,11 +34,7 @@ elm_win_resize_object_add(win, genlist); evas_object_show(genlist); Elm_Genlist_Item_Class gic; -<<<<<<< HEAD -Elm_Object_Item *it, *top; -======= Elm_Object_Item *glit, *glit_top; ->>>>>>> remotes/origin/upstream gic.item_style = "default"; gic.func.text_get = _text_get; gic.func.content_get = _content_get; @@ -47,18 +43,6 @@ gic.func.del = NULL; elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); -<<<<<<< HEAD -it = elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); -top = it; -elm_genlist_item_expanded_set(it, EINA_TRUE); -elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL); -it = elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL); -elm_genlist_item_append(genlist, &gic, NULL, it, ELM_GENLIST_ITEM_NONE, NULL, NULL); -elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); -elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); - -elm_genlist_item_top_show(top); -======= glit = elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); glit_top = glit; elm_genlist_item_expanded_set(glit, EINA_TRUE); @@ -69,6 +53,5 @@ elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, elm_genlist_item_append(genlist, &gic, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL); elm_genlist_item_show(glit_top, ELM_GENLIST_ITEM_SCROLLTO_TOP); ->>>>>>> remotes/origin/upstream #include "widget_preview_tmpl_foot.c" diff --git a/src/edje_externals/elm_genlist.c b/src/edje_externals/elm_genlist.c index 0a4e68c..2ef2b96 100644 --- a/src/edje_externals/elm_genlist.c +++ b/src/edje_externals/elm_genlist.c @@ -12,10 +12,6 @@ typedef struct _Elm_Params_Genlist Eina_Bool always_select_exists:1; Eina_Bool no_select:1; Eina_Bool no_select_exists:1; -<<<<<<< HEAD - Eina_Bool compress:1; -======= ->>>>>>> remotes/origin/upstream Eina_Bool compress_exists:1; Eina_Bool homogeneous:1; Eina_Bool homogeneous_exists:1; @@ -56,18 +52,6 @@ external_genlist_state_set(void *data __UNUSED__, Evas_Object *obj, const void * Elm_List_Mode set = _list_horizontal_setting_get(p->horizontal); if (set != ELM_LIST_LAST) -<<<<<<< HEAD - elm_genlist_horizontal_mode_set(obj, set); - } - if (p->multi_exists) - elm_genlist_multi_select_set(obj, p->multi); - if (p->always_select_exists) - elm_genlist_always_select_mode_set(obj, p->always_select); - if (p->no_select_exists) - elm_genlist_no_select_mode_set(obj, p->no_select); - if (p->compress_exists) - elm_genlist_compress_mode_set(obj, p->compress); -======= elm_genlist_mode_set(obj, set); } if (p->multi_exists) @@ -86,7 +70,6 @@ external_genlist_state_set(void *data __UNUSED__, Evas_Object *obj, const void * else elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT); } ->>>>>>> remotes/origin/upstream if (p->homogeneous_exists) elm_genlist_homogeneous_set(obj, p->homogeneous); if ((p->h_bounce_exists) && (p->v_bounce_exists)) @@ -113,11 +96,7 @@ external_genlist_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E Elm_List_Mode set = _list_horizontal_setting_get(param->s); if (set == ELM_LIST_LAST) return EINA_FALSE; -<<<<<<< HEAD - elm_genlist_horizontal_mode_set(obj, set); -======= elm_genlist_mode_set(obj, set); ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -133,14 +112,10 @@ external_genlist_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) { -<<<<<<< HEAD - elm_genlist_always_select_mode_set(obj, param->i); -======= if (param->i) elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_ALWAYS); else elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT); ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -148,22 +123,10 @@ external_genlist_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_E { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) { -<<<<<<< HEAD - elm_genlist_no_select_mode_set(obj, param->i); - return EINA_TRUE; - } - } - else if (!strcmp(param->name, "compress")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - elm_genlist_compress_mode_set(obj, param->i); -======= if (param->i) elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_NONE); else elm_genlist_select_mode_set (obj, ELM_OBJECT_SELECT_MODE_DEFAULT); ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -209,21 +172,12 @@ external_genlist_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_CHOICE) { -<<<<<<< HEAD - Elm_List_Mode list_horizontal_mode_set = elm_genlist_horizontal_mode_get(obj); - - if (list_horizontal_mode_set == ELM_LIST_LAST) - return EINA_FALSE; - - param->s = list_horizontal_choices[list_horizontal_mode_set]; -======= Elm_List_Mode list_horizontal_set = elm_genlist_mode_get(obj); if (list_horizontal_set == ELM_LIST_LAST) return EINA_FALSE; param->s = list_horizontal_choices[list_horizontal_set]; ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -239,15 +193,11 @@ external_genlist_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) { -<<<<<<< HEAD - param->i = elm_genlist_always_select_mode_get(obj); -======= if (elm_genlist_select_mode_get (obj) == ELM_OBJECT_SELECT_MODE_ALWAYS) param->i = EINA_TRUE; else param->i = EINA_FALSE; ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -255,23 +205,11 @@ external_genlist_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_E { if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) { -<<<<<<< HEAD - param->i = elm_genlist_no_select_mode_get(obj); - return EINA_TRUE; - } - } - else if (!strcmp(param->name, "compress")) - { - if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL) - { - param->i = elm_genlist_compress_mode_get(obj); -======= if (elm_genlist_select_mode_get (obj) == ELM_OBJECT_SELECT_MODE_NONE) param->i = EINA_TRUE; else param->i = EINA_FALSE; ->>>>>>> remotes/origin/upstream return EINA_TRUE; } } @@ -340,14 +278,6 @@ external_genlist_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__ mem->no_select = !!param->i; mem->no_select_exists = EINA_TRUE; } -<<<<<<< HEAD - else if (!strcmp(param->name, "compress")) - { - mem->compress = !!param->i; - mem->compress_exists = EINA_TRUE; - } -======= ->>>>>>> remotes/origin/upstream else if (!strcmp(param->name, "homogeneous")) { mem->homogeneous = !!param->i; @@ -392,10 +322,6 @@ static Edje_External_Param_Info external_genlist_params[] = { EDJE_EXTERNAL_PARAM_INFO_BOOL("multi select"), EDJE_EXTERNAL_PARAM_INFO_BOOL("always select"), EDJE_EXTERNAL_PARAM_INFO_BOOL("no select"), -<<<<<<< HEAD - EDJE_EXTERNAL_PARAM_INFO_BOOL("compress"), -======= ->>>>>>> remotes/origin/upstream EDJE_EXTERNAL_PARAM_INFO_BOOL("homogeneous"), EDJE_EXTERNAL_PARAM_INFO_BOOL("height bounce"), EDJE_EXTERNAL_PARAM_INFO_BOOL("width bounce"), diff --git a/src/examples/genlist_example_01.c b/src/examples/genlist_example_01.c index 5e7a8bc..da5d9ad 100644 --- a/src/examples/genlist_example_01.c +++ b/src/examples/genlist_example_01.c @@ -10,17 +10,10 @@ #define N_ITEMS 30 -<<<<<<< HEAD -static Elm_Genlist_Item_Class _itc; - -static char * -_item_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) -======= static Elm_Genlist_Item_Class *_itc = NULL; static char * _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) ->>>>>>> remotes/origin/upstream { char buf[256]; snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data); @@ -64,13 +57,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) elm_win_resize_object_add(win, bg); evas_object_show(bg); -<<<<<<< HEAD - _itc.item_style = "default"; - _itc.func.text_get = _item_text_get; - _itc.func.content_get = _item_content_get; - _itc.func.state_get = NULL; - _itc.func.del = NULL; -======= if (!_itc) { _itc = elm_genlist_item_class_new(); @@ -80,17 +66,12 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) _itc->func.state_get = NULL; _itc->func.del = NULL; } ->>>>>>> remotes/origin/upstream list = elm_genlist_add(win); for (i = 0; i < N_ITEMS; i++) { -<<<<<<< HEAD - elm_genlist_item_append(list, &_itc, -======= elm_genlist_item_append(list, _itc, ->>>>>>> remotes/origin/upstream (void *)(long)i, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); diff --git a/src/examples/genlist_example_02.c b/src/examples/genlist_example_02.c index 6899962..fe6847c 100644 --- a/src/examples/genlist_example_02.c +++ b/src/examples/genlist_example_02.c @@ -11,17 +11,10 @@ #define N_ITEMS 300 -<<<<<<< HEAD -static Elm_Genlist_Item_Class _itc; - -static char * -_item_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) -======= static Elm_Genlist_Item_Class *_itc = NULL; static char * _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) ->>>>>>> remotes/origin/upstream { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -62,17 +55,6 @@ _show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED { Evas_Object *list = data; Evas_Coord x, y, w, h, mx, my; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - - const Eina_List *selected, *l, *realized; - printf("\nfirst selected item: %p\n", it); - - selected = elm_genlist_selected_items_get(list); - printf("all selected items (%d): ", eina_list_count(selected)); - EINA_LIST_FOREACH(selected, l, it) - printf("%p ", it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); const Eina_List *selected, *l, *realized; @@ -82,35 +64,21 @@ _show_status_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED printf("all selected items (%d): ", eina_list_count(selected)); EINA_LIST_FOREACH(selected, l, glit) printf("%p ", glit); ->>>>>>> remotes/origin/upstream printf("\n"); realized = elm_genlist_realized_items_get(list); printf("realized items (%d): ", eina_list_count(realized)); -<<<<<<< HEAD - EINA_LIST_FOREACH(realized, l, it) - printf("%p ", it); - printf("\n"); - printf("genlist mode: %s\n", elm_genlist_mode_get(list)); - printf("mode item: %p\n", elm_genlist_mode_item_get(list)); -======= EINA_LIST_FOREACH(realized, l, glit) printf("%p ", glit); printf("\n"); printf("genlist mode: %s\n", elm_genlist_decorate_mode_get(list)); printf("mode item: %p\n", elm_genlist_decorated_item_get(list)); ->>>>>>> remotes/origin/upstream evas_object_geometry_get(list, &x, &y, &w, &h); mx = w / 2 + x; my = h / 2 + y; -<<<<<<< HEAD - it = elm_genlist_at_xy_item_get(list, mx, my, NULL); - printf("item in the middle of the screen: %p\n", it); -======= glit = elm_genlist_at_xy_item_get(list, mx, my, NULL); printf("item in the middle of the screen: %p\n", glit); ->>>>>>> remotes/origin/upstream } static void @@ -146,30 +114,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) list = elm_genlist_add(win); -<<<<<<< HEAD - _itc.item_style = "default"; - _itc.func.text_get = _item_text_get; - _itc.func.content_get = _item_content_get; - _itc.func.state_get = NULL; - _itc.func.del = NULL; - - Eina_Bool hbounce, vbounce; - Elm_Scroller_Policy hp, vp; - - printf("default values:\n"); - printf("always select: %d\n", elm_genlist_always_select_mode_get(list)); - elm_genlist_bounce_get(list, &hbounce, &vbounce); - printf("bounce - horizontal: %d, vertical: %d\n", hbounce, vbounce); - printf("compress mode: %d\n", elm_genlist_compress_mode_get(list)); - printf("homogeneous: %d\n", elm_genlist_homogeneous_get(list)); - printf("horizontal mode: %d\n", elm_genlist_horizontal_mode_get(list)); - printf("longpress timeout: %0.3f\n", - elm_genlist_longpress_timeout_get(list)); - printf("multi selection: %d\n", elm_genlist_multi_select_get(list)); - printf("no selection mode: %d\n", elm_genlist_no_select_mode_get(list)); - printf("height for width enabled: %d\n", - elm_genlist_height_for_width_mode_get(list)); -======= if (!_itc) { _itc = elm_genlist_item_class_new(); @@ -201,39 +145,23 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) elm_genlist_longpress_timeout_get(list)); printf("multi selection: %d\n", elm_genlist_multi_select_get(list)); printf("no selection mode: %d\n", no_sel); ->>>>>>> remotes/origin/upstream elm_genlist_scroller_policy_get(list, &hp, &vp); printf("scroller policy - horizontal: %d, vertical: %d\n", hp, vp); printf("block count: %d\n", elm_genlist_block_count_get(list)); printf("\n"); -<<<<<<< HEAD - elm_genlist_always_select_mode_set(list, EINA_FALSE); - elm_genlist_bounce_set(list, EINA_FALSE, EINA_FALSE); - elm_genlist_compress_mode_set(list, EINA_TRUE); - elm_genlist_homogeneous_set(list, EINA_FALSE); - elm_genlist_horizontal_mode_set(list, ELM_LIST_LIMIT); - elm_genlist_multi_select_set(list, EINA_TRUE); - elm_genlist_no_select_mode_set(list, EINA_FALSE); - elm_genlist_height_for_width_mode_set(list, EINA_FALSE); -======= elm_genlist_bounce_set(list, EINA_FALSE, EINA_FALSE); elm_genlist_homogeneous_set(list, EINA_FALSE); elm_genlist_mode_set(list, ELM_LIST_LIMIT); elm_genlist_multi_select_set(list, EINA_TRUE); elm_genlist_select_mode_set(list, ELM_OBJECT_SELECT_MODE_DEFAULT); ->>>>>>> remotes/origin/upstream elm_genlist_scroller_policy_set(list, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_ON); elm_genlist_longpress_timeout_set(list, 0.5); elm_genlist_block_count_set(list, 16); for (i = 0; i < N_ITEMS; i++) { -<<<<<<< HEAD - elm_genlist_item_append(list, &_itc, -======= elm_genlist_item_append(list, _itc, ->>>>>>> remotes/origin/upstream (void *)(long)i, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); diff --git a/src/examples/genlist_example_03.c b/src/examples/genlist_example_03.c index 0635dfe..ec25ced 100644 --- a/src/examples/genlist_example_03.c +++ b/src/examples/genlist_example_03.c @@ -10,17 +10,10 @@ #define N_ITEMS 30 -<<<<<<< HEAD -static Elm_Genlist_Item_Class _itc; - -static char * -_item_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part) -======= static Elm_Genlist_Item_Class *_itc = NULL; static char * _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) ->>>>>>> remotes/origin/upstream { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -78,11 +71,7 @@ _genlist_fill(Evas_Object *list) for (i = 0; i < N_ITEMS; i++) { -<<<<<<< HEAD - elm_genlist_item_append(list, &_itc, -======= elm_genlist_item_append(list, _itc, ->>>>>>> remotes/origin/upstream (void *)(long)i, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); @@ -113,27 +102,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) elm_win_resize_object_add(win, box); evas_object_show(box); -<<<<<<< HEAD - _itc.item_style = "double_label"; - _itc.func.text_get = _item_text_get; - _itc.func.content_get = _item_content_get; - _itc.func.state_get = NULL; - _itc.func.del = NULL; - - list = _genlist_add(box); - _genlist_fill(list); - - list = _genlist_add(box); - elm_genlist_horizontal_mode_set(list, ELM_LIST_LIMIT); - _genlist_fill(list); - - list = _genlist_add(box); - elm_genlist_compress_mode_set(list, EINA_TRUE); - _genlist_fill(list); - - list = _genlist_add(box); - elm_genlist_height_for_width_mode_set(list, EINA_TRUE); -======= if (!_itc) { _itc = elm_genlist_item_class_new(); @@ -153,7 +121,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) list = _genlist_add(box); elm_genlist_mode_set(list, ELM_LIST_COMPRESS); ->>>>>>> remotes/origin/upstream _genlist_fill(list); evas_object_size_hint_min_set(bg, 800, 160); diff --git a/src/examples/genlist_example_04.c b/src/examples/genlist_example_04.c index b6ae078..4f3a362 100644 --- a/src/examples/genlist_example_04.c +++ b/src/examples/genlist_example_04.c @@ -10,21 +10,12 @@ #define N_ITEMS 300 -<<<<<<< HEAD -static Elm_Genlist_Item_Class _itc; -static Elm_Genlist_Item_Class _itc_group; -static int nitems = 0; - -static char * -_item_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part) -======= static Elm_Genlist_Item_Class *_itc = NULL; static Elm_Genlist_Item_Class *_itc_group = NULL; static int nitems = 0; static char * _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) ->>>>>>> remotes/origin/upstream { time_t t = (time_t)ecore_time_unix_get(); char buf[256]; @@ -34,17 +25,10 @@ _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) snprintf(buf, sizeof(buf), "Item # %i", i); else { -<<<<<<< HEAD - int n; - snprintf(buf, sizeof(buf), "realized at %s", ctime(&t)); - n = strlen(buf); - buf[n - 1] = '\0'; -======= int n; snprintf(buf, sizeof(buf), "realized at %s", ctime(&t)); n = strlen(buf); buf[n - 1] = '\0'; ->>>>>>> remotes/origin/upstream } return strdup(buf); @@ -66,19 +50,11 @@ static void _item_sel_cb(void *data, Evas_Object *obj, void *event_info) { printf("sel item data [%p] on genlist obj [%p], item pointer [%p]\n", -<<<<<<< HEAD - data, obj, event_info); -} - -static char * -_group_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) -======= data, obj, event_info); } static char * _group_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) ->>>>>>> remotes/origin/upstream { char buf[256]; int i = (int)(long)data; @@ -105,17 +81,10 @@ _append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - elm_genlist_item_append(list, &_itc, - (void *)(long)nitems++, NULL, - ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); -======= elm_genlist_item_append(list, _itc, (void *)(long)nitems++, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); ->>>>>>> remotes/origin/upstream } @@ -124,17 +93,10 @@ _prepend_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - elm_genlist_item_prepend(list, &_itc, - (void *)(long)nitems++, NULL, - ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); -======= elm_genlist_item_prepend(list, _itc, (void *)(long)nitems++, NULL, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); ->>>>>>> remotes/origin/upstream } @@ -142,17 +104,6 @@ static void _insert_before_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - - if (!it) - return; - - elm_genlist_item_insert_before(list, &_itc, - (void *)(long)nitems++, NULL, - it, ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (!glit) return; @@ -162,24 +113,12 @@ _insert_before_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUS glit, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); ->>>>>>> remotes/origin/upstream } static void _insert_after_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - - if (!it) - return; - - elm_genlist_item_insert_after(list, &_itc, - (void *)(long)nitems++, NULL, - it, ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (!glit) return; @@ -189,26 +128,12 @@ _insert_after_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSE glit, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); ->>>>>>> remotes/origin/upstream } static void _next_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it; - - it = elm_genlist_selected_item_get(list); - if (it) - it = elm_genlist_item_next_get(it); - - if (!it) - it = elm_genlist_first_item_get(list); - - elm_genlist_item_selected_set(it, EINA_TRUE); - elm_genlist_item_show(it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (glit) glit = elm_genlist_item_next_get(glit); @@ -216,26 +141,12 @@ _next_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) elm_genlist_item_selected_set(glit, EINA_TRUE); elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_IN); ->>>>>>> remotes/origin/upstream } static void _prev_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it; - - it = elm_genlist_selected_item_get(list); - if (it) - it = elm_genlist_item_prev_get(it); - - if (!it) - it = elm_genlist_last_item_get(list); - - elm_genlist_item_selected_set(it, EINA_TRUE); - elm_genlist_item_show(it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (glit) glit = elm_genlist_item_prev_get(glit); @@ -243,134 +154,70 @@ _prev_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) elm_genlist_item_selected_set(glit, EINA_TRUE); elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_IN); ->>>>>>> remotes/origin/upstream } static void _bring_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_bring_in(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_IN); ->>>>>>> remotes/origin/upstream } static void _show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_show(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_IN); ->>>>>>> remotes/origin/upstream } static void _middle_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_middle_bring_in(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); ->>>>>>> remotes/origin/upstream } static void _middle_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_middle_show(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); ->>>>>>> remotes/origin/upstream } static void _top_in_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_top_bring_in(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_bring_in(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP); ->>>>>>> remotes/origin/upstream } static void _top_show_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { -<<<<<<< HEAD - Elm_Object_Item *it = data; - - if (!it) - return; - - elm_genlist_item_top_show(it); -======= Elm_Object_Item *glit = data; if (!glit) return; elm_genlist_item_show(glit, ELM_GENLIST_ITEM_SCROLLTO_TOP); ->>>>>>> remotes/origin/upstream } static void _realize_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - - if (!it) - return; - - elm_genlist_item_update(it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (!glit) return; elm_genlist_item_update(glit); ->>>>>>> remotes/origin/upstream } static Evas_Object * @@ -416,20 +263,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) elm_win_resize_object_add(win, box); evas_object_show(box); -<<<<<<< HEAD - _itc.item_style = "double_label"; - _itc.func.text_get = _item_text_get; - _itc.func.content_get = _item_content_get; - _itc.func.state_get = NULL; - _itc.func.del = NULL; - - _itc_group.item_style = "group_index"; - _itc_group.func.text_get = _group_text_get; - _itc_group.func.content_get = _group_content_get; - _itc_group.func.state_get = NULL; - _itc_group.func.del = NULL; - -======= if (!_itc) { _itc = elm_genlist_item_class_new(); @@ -449,7 +282,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) _itc_group->func.state_get = NULL; _itc_group->func.del = NULL; } ->>>>>>> remotes/origin/upstream list = elm_genlist_add(win); evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); @@ -459,11 +291,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) fbox = elm_box_add(win); elm_box_layout_set(fbox, evas_object_box_layout_flow_horizontal, -<<<<<<< HEAD - NULL, NULL); -======= NULL, NULL); ->>>>>>> remotes/origin/upstream evas_object_size_hint_weight_set(fbox, EVAS_HINT_EXPAND, 0); evas_object_size_hint_align_set(fbox, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_box_pack_end(box, fbox); @@ -485,49 +313,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) for (i = 0; i < N_ITEMS; i++) { -<<<<<<< HEAD - Elm_Object_Item *gli, *glg; - - if (i % 7 == 0) - { - glg = gli = elm_genlist_item_append(list, &_itc_group, - (void *)(long)nitems++, NULL, - ELM_GENLIST_ITEM_GROUP, - _item_sel_cb, NULL); - elm_genlist_item_display_only_set(glg, EINA_TRUE); - } - else - { - gli = elm_genlist_item_append(list, &_itc, - (void *)(long)nitems++, glg, - ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); - } - - switch (i) - { - case 3: - elm_genlist_item_disabled_set(gli, EINA_TRUE); - break; - case 50: - evas_object_smart_callback_add( - bt_bring_in, "clicked", _bring_in_cb, gli); - evas_object_smart_callback_add( - bt_show, "clicked", _show_cb, gli); - break; - case 200: - evas_object_smart_callback_add( - bt_middle_in, "clicked", _middle_in_cb, gli); - evas_object_smart_callback_add( - bt_middle_show, "clicked", _middle_show_cb, gli); - break; - case 250: - evas_object_smart_callback_add( - bt_top_in, "clicked", _top_in_cb, gli); - evas_object_smart_callback_add( - bt_top_show, "clicked", _top_show_cb, gli); - } -======= Elm_Object_Item *gli, *glg; if (i % 7 == 0) @@ -569,7 +354,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) evas_object_smart_callback_add( bt_top_show, "clicked", _top_show_cb, gli); } ->>>>>>> remotes/origin/upstream } evas_object_size_hint_min_set(bg, 160, 160); diff --git a/src/examples/genlist_example_05.c b/src/examples/genlist_example_05.c index de70a69..bd607e3 100644 --- a/src/examples/genlist_example_05.c +++ b/src/examples/genlist_example_05.c @@ -17,15 +17,6 @@ typedef struct _Node_Data { Eina_Bool favorite; } Node_Data; -<<<<<<< HEAD -static Elm_Genlist_Item_Class _itc; -static Elm_Genlist_Item_Class _itp; -static Elm_Genlist_Item_Class _itfav; -static int nitems = 0; - -static char * -_item_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part) -======= static Elm_Genlist_Item_Class *_itc = NULL; static Elm_Genlist_Item_Class *_itp = NULL; static Elm_Genlist_Item_Class *_itfav = NULL; @@ -33,7 +24,6 @@ static int nitems = 0; static char * _item_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) ->>>>>>> remotes/origin/upstream { char buf[256]; Node_Data *d = data; @@ -64,11 +54,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info) } static char * -<<<<<<< HEAD -_parent_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) -======= _parent_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__) ->>>>>>> remotes/origin/upstream { char buf[256]; Node_Data *d = data; @@ -92,11 +78,7 @@ _parent_content_get(void *data __UNUSED__, Evas_Object *obj, const char *part __ } static char * -<<<<<<< HEAD -_favorite_text_get(void *data, Evas_Object *obj __UNUSED__, const char *part) -======= _favorite_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part) ->>>>>>> remotes/origin/upstream { char buf[256]; Node_Data *d = data; @@ -123,28 +105,13 @@ static void _append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it, *parent = NULL; -======= Elm_Object_Item *glit, *parent = NULL; ->>>>>>> remotes/origin/upstream Node_Data *pdata, *d = malloc(sizeof(*d)); d->children = NULL; d->value = nitems++; d->favorite = EINA_FALSE; -<<<<<<< HEAD - it = elm_genlist_selected_item_get(list); - if (it) - parent = elm_genlist_item_parent_get(it); - - if (parent) - { - d->level = elm_genlist_item_expanded_depth_get(parent) + 1; - pdata = elm_genlist_item_data_get(parent); - pdata->children = eina_list_append(pdata->children, d); -======= glit = elm_genlist_selected_item_get(list); if (glit) parent = elm_genlist_item_parent_get(glit); @@ -154,48 +121,20 @@ _append_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) d->level = elm_genlist_item_expanded_depth_get(parent) + 1; pdata = elm_object_item_data_get(parent); pdata->children = eina_list_append(pdata->children, d); ->>>>>>> remotes/origin/upstream } else d->level = 0; -<<<<<<< HEAD - elm_genlist_item_append(list, &_itc, - d, parent, - ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); -======= elm_genlist_item_append(list, _itc, d, parent, ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); ->>>>>>> remotes/origin/upstream } static void _favorite_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - - if (!it) - return; - - Node_Data *d = elm_genlist_item_data_get(it); - d->favorite = !d->favorite; - if (d->favorite) - elm_genlist_item_item_class_update(it, &_itfav); - else - { - if (d->children) - elm_genlist_item_item_class_update(it, &_itp); - else - elm_genlist_item_item_class_update(it, &_itc); - } - - elm_genlist_item_update(it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); if (!glit) return; @@ -213,24 +152,12 @@ _favorite_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) } elm_genlist_item_update(glit); ->>>>>>> remotes/origin/upstream } static void _add_child_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - Elm_Object_Item *prev, *parent; - - if (!it) - return; - - Node_Data *d = elm_genlist_item_data_get(it); - prev = elm_genlist_item_prev_get(it); - parent = elm_genlist_item_parent_get(it); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); Elm_Object_Item *glit_prev, *glit_parent; @@ -239,7 +166,6 @@ _add_child_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__ Node_Data *d = elm_object_item_data_get(glit); glit_prev = elm_genlist_item_prev_get(glit); glit_parent = elm_genlist_item_parent_get(glit); ->>>>>>> remotes/origin/upstream Eina_Bool change_item = !d->children; @@ -248,38 +174,12 @@ _add_child_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__ ndata->value = nitems++; ndata->children = NULL; ndata->favorite = EINA_FALSE; -<<<<<<< HEAD - ndata->level = elm_genlist_item_expanded_depth_get(it) + 1; -======= ndata->level = elm_genlist_item_expanded_depth_get(glit) + 1; ->>>>>>> remotes/origin/upstream d->children = eina_list_append(d->children, ndata); // Changing leaf item to parent item if (change_item) { -<<<<<<< HEAD - elm_genlist_item_del(it); - - if (prev != parent) - it = elm_genlist_item_insert_after(list, &_itp, d, parent, prev, - ELM_GENLIST_ITEM_SUBITEMS, - _item_sel_cb, NULL); - else - it = elm_genlist_item_prepend(list, &_itp, d, parent, - ELM_GENLIST_ITEM_SUBITEMS, - _item_sel_cb, NULL); - elm_genlist_item_expanded_set(it, EINA_FALSE); - elm_genlist_item_selected_set(it, EINA_TRUE); - } - else if (elm_genlist_item_expanded_get(it)) - { - elm_genlist_item_append(list, &_itc, ndata, it, - ELM_GENLIST_ITEM_NONE, _item_sel_cb, NULL); - } - - elm_genlist_item_update(it); -======= elm_object_item_del(glit); if (glit_prev != glit_parent) @@ -302,7 +202,6 @@ _add_child_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__ elm_genlist_item_update(glit); ->>>>>>> remotes/origin/upstream } static void @@ -319,27 +218,6 @@ static void _del_item_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) { Evas_Object *list = data; -<<<<<<< HEAD - Elm_Object_Item *it = elm_genlist_selected_item_get(list); - Elm_Object_Item *parent = NULL; - - if (!it) - return; - - Node_Data *pdata, *d = elm_genlist_item_data_get(it); - parent = elm_genlist_item_parent_get(it); - elm_genlist_item_subitems_clear(it); - elm_genlist_item_del(it); - - _clear_list(d); - - if (!parent) - return; - - pdata = elm_genlist_item_data_get(parent); - pdata->children = eina_list_remove(pdata->children, d); - elm_genlist_item_update(parent); -======= Elm_Object_Item *glit = elm_genlist_selected_item_get(list); Elm_Object_Item *glit_parent = NULL; @@ -357,73 +235,36 @@ _del_item_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__) pdata = elm_object_item_data_get(glit_parent); pdata->children = eina_list_remove(pdata->children, d); elm_genlist_item_update(glit_parent); ->>>>>>> remotes/origin/upstream } static void _expand_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) { -<<<<<<< HEAD - Elm_Object_Item *it = event_info; - printf("expand request on item: %p\n", event_info); - elm_genlist_item_expanded_set(it, EINA_TRUE); -======= Elm_Object_Item *glit = event_info; printf("expand request on item: %p\n", event_info); elm_genlist_item_expanded_set(glit, EINA_TRUE); ->>>>>>> remotes/origin/upstream } static void _contract_request_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) { -<<<<<<< HEAD - Elm_Object_Item *it = event_info; - printf("contract request on item: %p\n", event_info); - elm_genlist_item_expanded_set(it, EINA_FALSE); -======= Elm_Object_Item *glit = event_info; printf("contract request on item: %p\n", event_info); elm_genlist_item_expanded_set(glit, EINA_FALSE); ->>>>>>> remotes/origin/upstream } static void _expanded_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) { Eina_List *l; -<<<<<<< HEAD - Elm_Object_Item *it = event_info; - Node_Data *it_data, *d = elm_genlist_item_data_get(it); - Evas_Object *list = elm_genlist_item_genlist_get(it); -======= Elm_Object_Item *glit = event_info; Node_Data *it_data, *d = elm_object_item_data_get(glit); Evas_Object *list = elm_object_item_widget_get(glit); ->>>>>>> remotes/origin/upstream Elm_Genlist_Item_Class *ic; EINA_LIST_FOREACH(d->children, l, it_data) { -<<<<<<< HEAD - Elm_Object_Item *nitem; - Elm_Genlist_Item_Flags flags = ELM_GENLIST_ITEM_NONE; - printf("expanding item: #%d from parent #%d\n", it_data->value, d->value); - if (it_data->favorite) - ic = &_itfav; - else if (it_data->children) - { - ic = &_itp; - flags = ELM_GENLIST_ITEM_SUBITEMS; - } - else - ic = &_itc; - - nitem = elm_genlist_item_append(list, ic, it_data, it, - flags, _item_sel_cb, NULL); - elm_genlist_item_expanded_set(nitem, EINA_FALSE); -======= Elm_Object_Item *nitem; Elm_Genlist_Item_Type type = ELM_GENLIST_ITEM_NONE; printf("expanding item: #%d from parent #%d\n", it_data->value, d->value); @@ -440,20 +281,14 @@ _expanded_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) nitem = elm_genlist_item_append(list, ic, it_data, glit, type, _item_sel_cb, NULL); elm_genlist_item_expanded_set(nitem, EINA_FALSE); ->>>>>>> remotes/origin/upstream } } static void _contracted_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info) { -<<<<<<< HEAD - Elm_Object_Item *it = event_info; - elm_genlist_item_subitems_clear(it); -======= Elm_Object_Item *glit = event_info; elm_genlist_item_subitems_clear(glit); ->>>>>>> remotes/origin/upstream } static Evas_Object * @@ -496,25 +331,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) elm_win_resize_object_add(win, box); evas_object_show(box); -<<<<<<< HEAD - _itc.item_style = "default"; - _itc.func.text_get = _item_text_get; - _itc.func.content_get = _item_content_get; - _itc.func.state_get = NULL; - _itc.func.del = NULL; - - _itp.item_style = "default"; - _itp.func.text_get = _parent_text_get; - _itp.func.content_get = _parent_content_get; - _itp.func.state_get = NULL; - _itp.func.del = NULL; - - _itfav.item_style = "default"; - _itfav.func.text_get = _favorite_text_get; - _itfav.func.content_get = _favorite_content_get; - _itfav.func.state_get = NULL; - _itfav.func.del = NULL; -======= if (!_itc) { _itc = elm_genlist_item_class_new(); @@ -544,7 +360,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) _itfav->func.state_get = NULL; _itfav->func.del = NULL; } ->>>>>>> remotes/origin/upstream list = elm_genlist_add(win); @@ -555,11 +370,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) fbox = elm_box_add(win); elm_box_layout_set(fbox, evas_object_box_layout_flow_horizontal, -<<<<<<< HEAD - NULL, NULL); -======= NULL, NULL); ->>>>>>> remotes/origin/upstream evas_object_size_hint_weight_set(fbox, EVAS_HINT_EXPAND, 0); evas_object_size_hint_align_set(fbox, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_box_pack_end(box, fbox); @@ -572,35 +383,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) for (i = 0; i < N_ITEMS; i++) { -<<<<<<< HEAD - Elm_Object_Item *gli, *glg; - Node_Data *data = malloc(sizeof(*data)); // data for this item - data->children = NULL; - data->value = i; - data->favorite = EINA_FALSE; - nitems++; - - Node_Data *pdata; // data for the parent of the group - - printf("creating item: #%d\n", data->value); - if (i % 3 == 0) - { - glg = gli = elm_genlist_item_append(list, &_itp, data, NULL, - ELM_GENLIST_ITEM_SUBITEMS, - _item_sel_cb, NULL); - elm_genlist_item_expanded_set(glg, EINA_TRUE); - pdata = data; - data->level = 0; - } - else - { - gli = elm_genlist_item_append(list, &_itc, data, glg, - ELM_GENLIST_ITEM_NONE, - _item_sel_cb, NULL); - pdata->children = eina_list_append(pdata->children, data); - data->level = 1; - } -======= Elm_Object_Item *gli, *glg; Node_Data *data = malloc(sizeof(*data)); // data for this item data->children = NULL; @@ -628,7 +410,6 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__) pdata->children = eina_list_append(pdata->children, data); data->level = 1; } ->>>>>>> remotes/origin/upstream } evas_object_smart_callback_add(list, "expand,request", _expand_request_cb, list); diff --git a/src/lib/elm_gen.h b/src/lib/elm_gen.h index 5121cd8..44305ae 100644 --- a/src/lib/elm_gen.h +++ b/src/lib/elm_gen.h @@ -1,89 +1,3 @@ -<<<<<<< HEAD -#include -#include -#include "elm_priv.h" - -#define ELM_GEN_ITEM_FROM_INLIST(it) \ - ((it) ? EINA_INLIST_CONTAINER_GET(it, Elm_Gen_Item) : NULL) - -typedef struct Elm_Gen_Item_Type Elm_Gen_Item_Type; -typedef struct Elm_Gen_Item_Tooltip Elm_Gen_Item_Tooltip; -typedef struct _Widget_Data Widget_Data; -typedef struct _Pan Pan; - -struct Elm_Gen_Item_Tooltip -{ - const void *data; - Elm_Tooltip_Item_Content_Cb content_cb; - Evas_Smart_Cb del_cb; - const char *style; - Eina_Bool free_size : 1; -}; - -struct _Pan -{ - Evas_Object_Smart_Clipped_Data __clipped_data; - Widget_Data *wd; - Ecore_Job *resize_job; -}; - -struct Elm_Gen_Item -{ - ELM_WIDGET_ITEM; - EINA_INLIST; - Widget_Data *wd; - Elm_Gen_Item_Type *item; - const Elm_Gen_Item_Class *itc; - Evas_Coord x, y, dx, dy; - Evas_Object *spacer; - Elm_Gen_Item *parent; - Eina_List *labels, *contents, *states, *content_objs; - Ecore_Timer *long_timer; - int relcount; - int walking; - const char *mouse_cursor; - - struct - { - Evas_Smart_Cb func; - const void *data; - } func; - - Elm_Gen_Item_Tooltip tooltip; - Ecore_Cb del_cb, sel_cb, highlight_cb; - Ecore_Cb unsel_cb, unhighlight_cb, unrealize_cb; - - Eina_Bool want_unrealize : 1; - Eina_Bool display_only : 1; - Eina_Bool realized : 1; - Eina_Bool selected : 1; - Eina_Bool highlighted : 1; - Eina_Bool disabled : 1; - Eina_Bool dragging : 1; - Eina_Bool delete_me : 1; - Eina_Bool down : 1; - Eina_Bool group : 1; - Eina_Bool reorder : 1; - Eina_Bool mode_set : 1; /* item uses style mode for highlight/select */ -}; - -Elm_Gen_Item * -elm_gen_item_new(Widget_Data *wd, - const Elm_Gen_Item_Class *itc, - const void *data, - Elm_Gen_Item *parent, - Evas_Smart_Cb func, - const void *func_data); - -void -elm_gen_item_unrealize(Elm_Gen_Item *it, - Eina_Bool calc); -void -elm_gen_item_del_serious(Elm_Gen_Item *it); - -void -elm_gen_item_del_notserious(Elm_Gen_Item *it); -======= typedef struct Elm_Gen_Item Elm_Gen_Item; /** @@ -146,4 +60,3 @@ struct _Elm_Gen_Item_Class #define ELM_GEN_ITEM_CLASS_VERSION 2 #define ELM_GEN_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_VERSION, 0, 0 ->>>>>>> remotes/origin/upstream diff --git a/src/lib/elm_gen_common.h b/src/lib/elm_gen_common.h index 8dbf22f..f885a3b 100644 --- a/src/lib/elm_gen_common.h +++ b/src/lib/elm_gen_common.h @@ -9,27 +9,11 @@ ((it) ? EINA_INLIST_CONTAINER_GET(it, Elm_Gen_Item) : NULL) #define SWIPE_MOVES 12 -<<<<<<< HEAD -struct Elm_Genlist_Item; -struct Elm_Genlist_Item_Class; -======= ->>>>>>> remotes/origin/upstream typedef struct Elm_Gen_Item_Type Elm_Gen_Item_Type; typedef struct Elm_Gen_Item_Tooltip Elm_Gen_Item_Tooltip; typedef struct _Widget_Data Widget_Data; -<<<<<<< HEAD -typedef enum -{ - ELM_GENLIST_ITEM_SCROLLTO_NONE = 0, /**< no scrollto */ - ELM_GENLIST_ITEM_SCROLLTO_IN = (1 << 0), /**< show, bring in */ - ELM_GENLIST_ITEM_SCROLLTO_TOP = (1 << 1), /**< top show, top bring in */ - ELM_GENLIST_ITEM_SCROLLTO_MIDDLE = (1 << 2) /**< middle show, middle bring in */ -} Elm_Genlist_Item_Scrollto_Type; - -======= ->>>>>>> remotes/origin/upstream struct Elm_Gen_Item_Tooltip { const void *data; @@ -47,26 +31,12 @@ struct Elm_Gen_Item Elm_Gen_Item_Type *item; const Elm_Gen_Item_Class *itc; Evas_Coord x, y, dx, dy; -<<<<<<< HEAD - Evas_Object *spacer; -======= Evas_Object *spacer, *edit_obj; ->>>>>>> remotes/origin/upstream Elm_Gen_Item *parent; Eina_List *texts, *contents, *states, *content_objs; Ecore_Timer *long_timer; int relcount; int walking; -<<<<<<< HEAD - int generation; /* a generation of an item. when the item is created, this value is set to the value of genlist generation. this value will be decreased when the item is going to be deleted */ - const char *mouse_cursor; - - struct - { - Evas_Smart_Cb func; - const void *data; - } func; -======= int generation; /**< a generation of an item. when the item is created, this value is set to the value of genlist generation. this value will be decreased when the item is going to be deleted */ const char *mouse_cursor; @@ -75,28 +45,12 @@ struct Elm_Gen_Item Evas_Smart_Cb func; const void *data; } func; ->>>>>>> remotes/origin/upstream Elm_Gen_Item_Tooltip tooltip; Ecore_Cb del_cb, sel_cb, highlight_cb; Ecore_Cb unsel_cb, unhighlight_cb, unrealize_cb; int position; -<<<<<<< HEAD - - Eina_Bool position_update : 1; - Eina_Bool want_unrealize : 1; - Eina_Bool display_only : 1; - Eina_Bool realized : 1; - Eina_Bool selected : 1; - Eina_Bool highlighted : 1; - Eina_Bool disabled : 1; - Eina_Bool dragging : 1; - Eina_Bool down : 1; - Eina_Bool group : 1; - Eina_Bool reorder : 1; - Eina_Bool mode_set : 1; /* item uses style mode for highlight/select */ -======= Elm_Object_Select_Mode select_mode; Eina_Bool position_update : 1; @@ -110,7 +64,6 @@ struct Elm_Gen_Item Eina_Bool reorder : 1; Eina_Bool mode_set : 1; /**< item uses style mode for highlight/select */ Eina_Bool flipped : 1; /**< a flag that shows the flip status of the item. */ ->>>>>>> remotes/origin/upstream }; typedef struct _Pan Pan; @@ -124,17 +77,6 @@ struct _Pan struct _Widget_Data { Eina_Inlist_Sorted_State *state; -<<<<<<< HEAD - Evas_Object *obj; /* the genlist object */ - Evas_Object *scr; /* a smart scroller object which is used internally in genlist */ - Evas_Object *pan_smart; /* "elm_genlist_pan" evas smart object. this is an extern pan of smart scroller(scr). */ - Eina_List *selected; - Eina_List *group_items; /* list of groups index items */ - Eina_Inlist *items; /* inlist of all items */ - Elm_Gen_Item *reorder_it; /* item currently being repositioned */ - Elm_Gen_Item *last_selected_item; - Pan *pan; /* pan_smart object's smart data */ -======= Evas_Object *obj; /**< the genlist object */ Evas_Object *scr; /**< a smart scroller object which is used internally in genlist */ Evas_Object *pan_smart; /**< "elm_genlist_pan" evas smart object. this is an extern pan of smart scroller(scr). */ @@ -144,23 +86,11 @@ struct _Widget_Data Elm_Gen_Item *reorder_it; /**< item currently being repositioned */ Elm_Object_Item *last_selected_item; Pan *pan; /**< pan_smart object's smart data */ ->>>>>>> remotes/origin/upstream Ecore_Job *calc_job; int walking; int item_width, item_height; int group_item_width, group_item_height; int minw, minh; -<<<<<<< HEAD - long count; - Evas_Coord pan_x, pan_y; - Eina_Bool reorder_mode : 1; /* a flag for reorder mode enable/disable */ - Eina_Bool on_hold : 1; - Eina_Bool multi : 1; /* a flag for item multi selection */ - Eina_Bool no_select : 1; - Eina_Bool wasselected : 1; - Eina_Bool always_select : 1; - Eina_Bool clear_me : 1; /* a flag whether genlist is marked as to be cleared or not. if this flag is true, genlist clear was already deferred. */ -======= unsigned int item_count; Evas_Coord pan_x, pan_y; Elm_Object_Select_Mode select_mode; @@ -170,42 +100,26 @@ struct _Widget_Data Eina_Bool wasselected : 1; Eina_Bool no_highlight : 1; Eina_Bool clear_me : 1; /**< a flag whether genlist is marked as to be cleared or not. if this flag is true, genlist clear was already deferred. */ ->>>>>>> remotes/origin/upstream Eina_Bool h_bounce : 1; Eina_Bool v_bounce : 1; Ecore_Cb del_cb, calc_cb, sizing_cb; Ecore_Cb clear_cb; //////////////////////////////////// -<<<<<<< HEAD - Eina_Inlist *blocks; /* inlist of all blocks. a block consists of a certain number of items. maximum number of items in a block is 'max_items_per_block'. */ -======= Eina_Inlist *blocks; /**< an inlist of all blocks. a block consists of a certain number of items. maximum number of items in a block is 'max_items_per_block'. */ ->>>>>>> remotes/origin/upstream Evas_Coord reorder_old_pan_y, w, h, realminw, prev_viewport_w; Ecore_Job *update_job; Ecore_Idle_Enterer *queue_idle_enterer; Ecore_Idler *must_recalc_idler; Eina_List *queue; Elm_Gen_Item *show_item, *anchor_item, *mode_item, *reorder_rel, *expanded_item; -<<<<<<< HEAD - Eina_Inlist *item_cache; /* an inlist of edje object it cache. */ - Evas_Coord anchor_y; - Evas_Coord reorder_start_y; /* reorder it's initial y coordinate in the pan. */ -======= Eina_Inlist *item_cache; /**< an inlist of edje object it cache. */ Evas_Coord anchor_y; Evas_Coord reorder_start_y; /**< reorder it's initial y coordinate in the pan. */ ->>>>>>> remotes/origin/upstream Elm_List_Mode mode; Ecore_Timer *multi_timer, *scr_hold_timer; Ecore_Animator *reorder_move_animator; const char *mode_type; -<<<<<<< HEAD - const char *mode_item_style; - unsigned int start_time; -======= double start_time; ->>>>>>> remotes/origin/upstream Evas_Coord prev_x, prev_y, prev_mx, prev_my; Evas_Coord cur_x, cur_y, cur_mx, cur_my; Eina_Bool mouse_down : 1; @@ -213,32 +127,6 @@ struct _Widget_Data Eina_Bool multi_timeout : 1; Eina_Bool multitouched : 1; Eina_Bool longpressed : 1; -<<<<<<< HEAD - Eina_Bool bring_in : 1; /* a flag to describe the scroll animation. (show, bring in) */ - Eina_Bool compress : 1; - Eina_Bool height_for_width : 1; - Eina_Bool homogeneous : 1; - Eina_Bool swipe : 1; - Eina_Bool reorder_pan_move : 1; - Eina_Bool auto_scroll_enabled : 1; - Eina_Bool pan_changed : 1; - Eina_Bool requeued : 1; /* this is set to EINA_TRUE when the item is re-queued. this happens when the item is un-queued but the rel item is still in the queue. this item will be processed later. */ - Eina_Bool check_scroll : 1; /* this flag means genlist is supposed to be scrolled. if this flag is set to EINA_TRUE, genlist checks whether it's ok to scroll genlist now or not. */ - struct - { - Evas_Coord x, y; - } history[SWIPE_MOVES]; - int multi_device; - int item_cache_count; - int item_cache_max; /* maximum number of cached items */ - int movements; - int max_items_per_block; /* maximum number of items per block */ - double longpress_timeout; /* longpress timeout. this value comes from _elm_config by default. this can be changed by elm_genlist_longpress_timeout_set() */ - int generation; /* a generation of genlist. when genlist is cleared, this value will be increased and a new generation will start */ - Eina_Compare_Cb item_compare_cb; - Eina_Compare_Cb item_compare_data_cb; - Elm_Genlist_Item_Scrollto_Type scrollto_type; /* a scrollto type which remembers where to scroll ex) in, top, middle */ -======= Eina_Bool bring_in : 1; /**< a flag to describe the scroll animation. (show, bring in) */ Eina_Bool height_for_width : 1; Eina_Bool homogeneous : 1; @@ -269,7 +157,6 @@ struct _Widget_Data Elm_Gen_Item *expanded_next_item; Ecore_Animator *item_moving_effect_timer; /**< tree effect */ Elm_Genlist_Item_Move_Effect_Mode move_effect_mode; ->>>>>>> remotes/origin/upstream /* The stuff below directly come from gengrid without any thinking */ unsigned int nmax; @@ -284,15 +171,9 @@ struct _Widget_Data Eina_Bool filled : 1; }; -<<<<<<< HEAD -Elm_Genlist_Item *_elm_genlist_item_new(Widget_Data *wd, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Genlist_Item *parent, Evas_Smart_Cb func, const void *func_data); - -Evas_Object *_elm_genlist_item_widget_get(const Elm_Genlist_Item *it); -======= Elm_Gen_Item *_elm_genlist_item_new(Widget_Data *wd, const Elm_Gen_Item_Class *itc, const void *data, Elm_Gen_Item *parent, Evas_Smart_Cb func, const void *func_data); Evas_Object *_elm_genlist_item_widget_get(const Elm_Gen_Item *it); ->>>>>>> remotes/origin/upstream void _elm_genlist_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); @@ -308,41 +189,9 @@ void _elm_genlist_page_show(const Evas_Object *obj, int h_pagenumber, i void _elm_genlist_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); -<<<<<<< HEAD -void _elm_genlist_item_unrealize(Elm_Genlist_Item *it, Eina_Bool calc); -void _elm_genlist_item_del_serious(Elm_Genlist_Item *it); - -void _elm_genlist_item_del_notserious(Elm_Genlist_Item *it); - -#if 1 -Elm_Gen_Item *_elm_gengrid_item_new(Widget_Data *wd, const Elm_Gen_Item_Class *itc, const void *data, Elm_Gen_Item *parent, Evas_Smart_Cb func, const void *func_data); - -Evas_Object *_elm_gengrid_item_widget_get(const Elm_Gen_Item *it); - -void _elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel); - -void _elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel); - -void _elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize); - -void _elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); - -void _elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber); - -void _elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); - -void _elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber); - -void _elm_gengrid_item_unrealize(Elm_Gen_Item *it, Eina_Bool calc); -void _elm_gengrid_item_del_serious(Elm_Gen_Item *it); - -void _elm_gengrid_item_del_notserious(Elm_Gen_Item *it); -#endif -======= void _elm_genlist_item_unrealize(Elm_Gen_Item *it, Eina_Bool calc); void _elm_genlist_item_del_serious(Elm_Gen_Item *it); void _elm_genlist_item_del_notserious(Elm_Gen_Item *it); ->>>>>>> remotes/origin/upstream #endif diff --git a/src/lib/elm_genlist.h b/src/lib/elm_genlist.h index 997d569..31000d7 100644 --- a/src/lib/elm_genlist.h +++ b/src/lib/elm_genlist.h @@ -31,16 +31,12 @@ * - @c item_style - This is a constant string and simply defines the name * of the item style. It @b must be specified and the default should be @c * "default". -<<<<<<< HEAD - * -======= * - @c mode_item_style - This is a constant string and simply defines the name * of the mode item style. It is used to specify mode item style. It can be * used to set sweep mode. * - @c edit_item_style - This is a constant string and simply defines the name * of the edit item style. It is used to specify edit item style. It can be * used to set selection, checking and deletion mode. ->>>>>>> remotes/origin/upstream * - @c func - A struct with pointers to functions that will be called when * an item is going to be actually created. All of them receive a @c data * parameter that will point to the same data passed to @@ -64,15 +60,9 @@ * - @c func.state_get - The @c part parameter is the name string of one of * the state parts in the Edje group implementing the item's theme. Return * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will -<<<<<<< HEAD - * emit a signal to its theming Edje object with @c "elm,state,XXX,active" - * and @c "elm" as "emission" and "source" arguments, respectively, when - * the state is true (the default is false), where @c XXX is the name of -======= * emit a signal to its theming Edje object with @c "elm,state,xxx,active" * and @c "elm" as "emission" and "source" arguments, respectively, when * the state is true (the default is false), where @c xxx is the name of ->>>>>>> remotes/origin/upstream * the (state) part. See #Elm_Genlist_Item_State_Get_Cb. * - @c func.del - This is intended for use when genlist items are deleted, * so any data attached to the item (e.g. its data parameter on creation) @@ -125,21 +115,12 @@ * Items can be added by several calls. All of them return a @ref * Elm_Object_Item handle that is an internal member inside the genlist. * They all take a data parameter that is meant to be used for a handle to -<<<<<<< HEAD - * the applications internal data (eg the struct with the original item - * data). The parent parameter is the parent genlist item this belongs to if - * it is a tree or an indexed group, and NULL if there is no parent. The - * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE, - * #ELM_GENLIST_ITEM_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If - * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item -======= * the applications internal data (eg. the struct with the original item * data). The parent parameter is the parent genlist item this belongs to if * it is a tree or an indexed group, and NULL if there is no parent. The * flags can be a bitmask of #ELM_GENLIST_ITEM_NONE, * #ELM_GENLIST_ITEM_TREE and #ELM_GENLIST_ITEM_GROUP. If * #ELM_GENLIST_ITEM_TREE is set then this item is displayed as an item ->>>>>>> remotes/origin/upstream * that is able to expand and have child items. If ELM_GENLIST_ITEM_GROUP * is set then this item is group index item that is displayed at the top * until the next group comes. The func parameter is a convenience callback @@ -169,11 +150,7 @@ * let you know which item is the parent (and thus know how to skip them if * wanted). * -<<<<<<< HEAD - * @section Genlist_Muti_Selection Multi-selection -======= * @section Genlist_Multi_Selection Multi-selection ->>>>>>> remotes/origin/upstream * * If the application wants multiple items to be able to be selected, * elm_genlist_multi_select_set() can enable this. If the list is @@ -185,11 +162,7 @@ * * @section Genlist_Usage_Hints Usage hints * -<<<<<<< HEAD - * There are also convenience functions. elm_genlist_item_genlist_get() will -======= * There are also convenience functions. elm_object_item_widget_get() will ->>>>>>> remotes/origin/upstream * return the genlist object the item belongs to. elm_genlist_item_show() * will make the scroller scroll to show that specific item so its visible. * elm_object_item_data_get() returns the data pointer set by the item @@ -209,11 +182,7 @@ * elm_object_item_disabled_get() to get the disabled state. * * In general to indicate how the genlist should expand items horizontally to -<<<<<<< HEAD - * fill the list area, use elm_genlist_horizontal_set(). Valid modes are -======= * fill the list area, use elm_genlist_mode_set(). Valid modes are ->>>>>>> remotes/origin/upstream * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This * mode means that if items are too wide to fit, the scroller will scroll * horizontally. Otherwise items are expanded to fill the width of the @@ -224,19 +193,11 @@ * * Items will only call their selection func and callback when first becoming * selected. Any further clicks will do nothing, unless you enable always -<<<<<<< HEAD - * select with elm_genlist_always_select_mode_set(). This means even if - * selected, every click will make the selected callbacks be called. - * elm_genlist_no_select_mode_set() will turn off the ability to select - * items entirely and they will neither appear selected nor call selected - * callback functions. -======= * select with elm_genlist_select_mode_set() as ELM_OBJECT_SELECT_MODE_ALWAYS. * This means even if selected, every click will make the selected callbacks * be called. elm_genlist_select_mode_set() as ELM_OBJECT_SELECT_MODE_NONE will * turn off the ability to select items entirely and they will neither * appear selected nor call selected callback functions. ->>>>>>> remotes/origin/upstream * * Remember that you can create new styles and add your own theme augmentation * per application with elm_theme_extension_add(). If you absolutely must @@ -306,13 +267,7 @@ * event_info parameter is the genlist item that was indicated to contract. * - @c "realized" - This is called when the item in the list is created as a * real evas object. event_info parameter is the genlist item that was -<<<<<<< HEAD - * created. The object may be deleted at any time, so it is up to the - * caller to not use the object pointer from elm_genlist_item_object_get() - * in a way where it may point to freed objects. -======= * created. ->>>>>>> remotes/origin/upstream * - @c "unrealized" - This is called just before an item is unrealized. * After this call content objects provided will be deleted and the item * object itself delete or be put into a floating cache. @@ -328,12 +283,8 @@ * being dragged. * - @c "drag" - This is called when the item in the list is being dragged. * - @c "longpressed" - This is called when the item is pressed for a certain -<<<<<<< HEAD - * amount of time. By default it's 1 second. -======= * amount of time. By default it's 1 second. The event_info parameter is the * longpressed genlist item. ->>>>>>> remotes/origin/upstream * - @c "scroll,anim,start" - This is called when scrolling animation has * started. * - @c "scroll,anim,stop" - This is called when scrolling animation has @@ -365,10 +316,7 @@ * - @c "moved" - This is called when a genlist item is moved. * - @c "language,changed" - This is called when the program's language is * changed. -<<<<<<< HEAD -======= * - @c "tree,effect,finished" - This is called when a genlist tree effect is finished. ->>>>>>> remotes/origin/upstream * * Supported elm_object common APIs * @li elm_object_signal_emit() @@ -398,69 +346,15 @@ * @{ */ -<<<<<<< HEAD -======= #define ELM_GENLIST_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION #define ELM_GENLIST_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER ->>>>>>> remotes/origin/upstream /** * Defines if the item is of any special type (has subitems or it's the * index of a group), or is just a simple item. * * @ingroup Genlist */ -<<<<<<< HEAD -typedef enum _Elm_Genlist_Item_Flags -{ - ELM_GENLIST_ITEM_NONE = 0, /**< simple item */ - ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */ - ELM_GENLIST_ITEM_GROUP = (1 << 1), /**< index of a group of items */ - - ELM_GENLIST_ITEM_MAX = (1 << 2) -} Elm_Genlist_Item_Flags; - - typedef enum _Elm_Genlist_Item_Field_Flags - { - ELM_GENLIST_ITEM_FIELD_ALL = 0, - ELM_GENLIST_ITEM_FIELD_TEXT = (1 << 0), - ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1), - ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2) - } Elm_Genlist_Item_Field_Flags; - typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class; /**< Genlist item class definition structs */ - typedef struct _Elm_Genlist_Item Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */ - typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func; - typedef char *(*GenlistItemTextGetFunc) (void *data, Evas_Object *obj, const char *part); - typedef Evas_Object *(*GenlistItemContentGetFunc) (void *data, Evas_Object *obj, const char *part); - typedef Eina_Bool (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part); - typedef void (*GenlistItemDelFunc) (void *data, Evas_Object *obj); - typedef void (*GenlistItemMovedFunc) ( Evas_Object *genlist, Elm_Object_Item *item, Elm_Object_Item *rel_item, Eina_Bool move_after); - - /** - * @struct _Elm_Genlist_Item_Class - * - * Genlist item class definition structs. - * - * This struct contains the style and fetching functions that will define the - * contents of each item. - * - * @see @ref Genlist_Item_Class - */ - struct _Elm_Genlist_Item_Class - { - const char *item_style; - struct { - GenlistItemTextGetFunc text_get; - GenlistItemContentGetFunc content_get; - GenlistItemStateGetFunc state_get; - GenlistItemDelFunc del; - GenlistItemMovedFunc moved; - } func; - const char *edit_item_style; - const char *mode_item_style; - }; -#define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func -======= typedef enum { ELM_GENLIST_ITEM_NONE = 0, /**< simple item */ @@ -530,7 +424,6 @@ typedef Elm_Gen_Item_State_Get_Cb Elm_Genlist_Item_State_Get_Cb; */ typedef Elm_Gen_Item_Del_Cb Elm_Genlist_Item_Del_Cb; ->>>>>>> remotes/origin/upstream /** * Add a new genlist widget to the given parent Elementary * (container) object @@ -598,18 +491,11 @@ EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Objec * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT). * * This sets the mode used for sizing items horizontally. Valid modes -<<<<<<< HEAD - * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is -======= * are #ELM_LIST_LIMIT, #ELM_LIST_SCROLL, and #ELM_LIST_COMPRESS. The default is ->>>>>>> remotes/origin/upstream * ELM_LIST_SCROLL. This mode means that if items are too wide to fit, * the scroller will scroll horizontally. Otherwise items are expanded * to fill the width of the viewport of the scroller. If it is * ELM_LIST_LIMIT, items will be expanded to the viewport width and -<<<<<<< HEAD - * limited to that size. -======= * limited to that size. If it is ELM_LIST_COMPRESS, the item width will be * fixed (restricted to a minimum of) to the list width when calculating its * size in order to allow the height to be calculated based on it. This allows, @@ -621,7 +507,6 @@ EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Objec * @note When ELM_LIST_COMPRESS mode is enabled, it also enables * compress mode (see elm_genlist_compress_mode_set()) and * disables homogeneous (see elm_genlist_homogeneous_set()). ->>>>>>> remotes/origin/upstream * * @see elm_genlist_mode_get() * @@ -636,149 +521,13 @@ EAPI void elm_genlist_mode_set(Evas_Object *obj, Elm_Li * @return The mode to use * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL) * -<<<<<<< HEAD - * @see elm_genlist_horizontal_set() -======= * @see elm_genlist_mode_set() ->>>>>>> remotes/origin/upstream * * @ingroup Genlist */ EAPI Elm_List_Mode elm_genlist_mode_get(const Evas_Object *obj); /** -<<<<<<< HEAD - * Set the always select mode. - * - * @param obj The genlist object - * @param always_select The always select mode (@c EINA_TRUE = on, @c - * EINA_FALSE = off). Default is @c EINA_FALSE. - * - * Items will only call their selection func and callback when first - * becoming selected. Any further clicks will do nothing, unless you - * enable always select with elm_genlist_always_select_mode_set(). - * This means that, even if selected, every click will make the selected - * callbacks be called. - * - * @see elm_genlist_always_select_mode_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select); - -/** - * Get the always select mode. - * - * @param obj The genlist object - * @return The always select mode - * (@c EINA_TRUE = on, @c EINA_FALSE = off) - * - * @see elm_genlist_always_select_mode_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj); - -/** - * Enable/disable the no select mode. - * - * @param obj The genlist object - * @param no_select The no select mode - * (EINA_TRUE = on, EINA_FALSE = off) - * - * This will turn off the ability to select items entirely and they - * will neither appear selected nor call selected callback functions. - * - * @see elm_genlist_no_select_mode_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select); - -/** - * Gets whether the no select mode is enabled. - * - * @param obj The genlist object - * @return The no select mode - * (@c EINA_TRUE = on, @c EINA_FALSE = off) - * - * @see elm_genlist_no_select_mode_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj); - -/** - * Enable/disable compress mode. - * - * @param obj The genlist object - * @param compress The compress mode - * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE. - * - * This will enable the compress mode where items are "compressed" - * horizontally to fit the genlist scrollable viewport width. This is - * special for genlist. Do not rely on - * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to - * work as genlist needs to handle it specially. - * - * @see elm_genlist_compress_mode_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress); - -/** - * Get whether the compress mode is enabled. - * - * @param obj The genlist object - * @return The compress mode - * (@c EINA_TRUE = on, @c EINA_FALSE = off) - * - * @see elm_genlist_compress_mode_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj); - -/** - * Enable/disable height-for-width mode. - * - * @param obj The genlist object - * @param setting The height-for-width mode (@c EINA_TRUE = on, - * @c EINA_FALSE = off). Default is @c EINA_FALSE. - * - * With height-for-width mode the item width will be fixed (restricted - * to a minimum of) to the list width when calculating its size in - * order to allow the height to be calculated based on it. This allows, - * for instance, text block to wrap lines if the Edje part is - * configured with "text.min: 0 1". - * - * @note This mode will make list resize slower as it will have to - * recalculate every item height again whenever the list width - * changes! - * - * @note When height-for-width mode is enabled, it also enables - * compress mode (see elm_genlist_compress_mode_set()) and - * disables homogeneous (see elm_genlist_homogeneous_set()). - * - * @ingroup Genlist - */ -EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width); - -/** - * Get whether the height-for-width mode is enabled. - * - * @param obj The genlist object - * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE = - * off) - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj); - -/** -======= ->>>>>>> remotes/origin/upstream * Enable/disable horizontal and vertical bouncing effect. * * @param obj The genlist object @@ -813,118 +562,13 @@ EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce); /** -<<<<<<< HEAD - * Enable/disable homogeneous mode. - * - * @param obj The genlist object - * @param homogeneous Assume the items within the genlist are of the - * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c - * EINA_FALSE. - * - * This will enable the homogeneous mode where items are of the same - * height and width so that genlist may do the lazy-loading at its - * maximum (which increases the performance for scrolling the list). This - * implies 'compressed' mode. - * - * @see elm_genlist_compress_mode_set() - * @see elm_genlist_homogeneous_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous); - -/** - * Get whether the homogeneous mode is enabled. - * - * @param obj The genlist object - * @return Assume the items within the genlist are of the same height - * and width (EINA_TRUE = on, EINA_FALSE = off) - * - * @see elm_genlist_homogeneous_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj); - -/** - * Set the maximum number of items within an item block - * - * @param obj The genlist object - * @param n Maximum number of items within an item block. Default is 32. - * - * This will configure the block count to tune to the target with - * particular performance matrix. - * - * A block of objects will be used to reduce the number of operations due to - * many objects in the screen. It can determine the visibility, or if the - * object has changed, it theme needs to be updated, etc. doing this kind of - * calculation to the entire block, instead of per object. - * - * The default value for the block count is enough for most lists, so unless - * you know you will have a lot of objects visible in the screen at the same - * time, don't try to change this. - * - * @see elm_genlist_block_count_get() - * @see @ref Genlist_Implementation - * - * @ingroup Genlist - */ -EAPI void elm_genlist_block_count_set(Evas_Object *obj, int n); - -/** - * Get the maximum number of items within an item block - * - * @param obj The genlist object - * @return Maximum number of items within an item block - * - * @see elm_genlist_block_count_set() - * - * @ingroup Genlist - */ -EAPI int elm_genlist_block_count_get(const Evas_Object *obj); - -/** - * Set the timeout in seconds for the longpress event. - * - * @param obj The genlist object - * @param timeout timeout in seconds. Default is 1. - * - * This option will change how long it takes to send an event "longpressed" - * after the mouse down signal is sent to the list. If this event occurs, no - * "clicked" event will be sent. - * - * @see elm_genlist_longpress_timeout_set() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout); - -/** - * Get the timeout in seconds for the longpress event. - * - * @param obj The genlist object - * @return timeout in seconds - * - * @see elm_genlist_longpress_timeout_get() - * - * @ingroup Genlist - */ -EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj); - -/** -======= ->>>>>>> remotes/origin/upstream * Append a new item in a given genlist widget. * * @param obj The genlist object * @param itc The item class for the item * @param data The item data * @param parent The parent item, or NULL if none -<<<<<<< HEAD - * @param flags Item flags -======= * @param type Item type ->>>>>>> remotes/origin/upstream * @param func Convenience function called when the item is selected * @param func_data Data passed to @p func above. * @return A handle to the item added or @c NULL if not possible @@ -939,11 +583,7 @@ EAPI double elm_genlist_longpress_timeout_get(const Evas_ * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data); -======= EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data); ->>>>>>> remotes/origin/upstream /** * Prepend a new item in a given genlist widget. @@ -952,11 +592,7 @@ EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, cons * @param itc The item class for the item * @param data The item data * @param parent The parent item, or NULL if none -<<<<<<< HEAD - * @param flags Item flags -======= * @param type Item type ->>>>>>> remotes/origin/upstream * @param func Convenience function called when the item is selected * @param func_data Data passed to @p func above. * @return A handle to the item added or NULL if not possible @@ -971,11 +607,7 @@ EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, cons * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI Elm_Object_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data); -======= EAPI Elm_Object_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data); ->>>>>>> remotes/origin/upstream /** * Insert an item before another in a genlist widget @@ -983,14 +615,9 @@ EAPI Elm_Object_Item *elm_genlist_item_prepend(Evas_Object *obj, con * @param obj The genlist object * @param itc The item class for the item * @param data The item data -<<<<<<< HEAD - * @param before The item to place this new one before. - * @param flags Item flags -======= * @param parent The parent item, or NULL if none * @param before The item to place this new one before. * @param type Item type ->>>>>>> remotes/origin/upstream * @param func Convenience function called when the item is selected * @param func_data Data passed to @p func above. * @return A handle to the item added or @c NULL if not possible @@ -1005,11 +632,7 @@ EAPI Elm_Object_Item *elm_genlist_item_prepend(Evas_Object *obj, con * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI Elm_Object_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data); -======= EAPI Elm_Object_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data); ->>>>>>> remotes/origin/upstream /** * Insert an item after another in a genlist widget @@ -1017,14 +640,9 @@ EAPI Elm_Object_Item *elm_genlist_item_insert_before(Evas_Object *ob * @param obj The genlist object * @param itc The item class for the item * @param data The item data -<<<<<<< HEAD - * @param after The item to place this new one after. - * @param flags Item flags -======= * @param parent The parent item, or NULL if none * @param after The item to place this new one after. * @param type Item type ->>>>>>> remotes/origin/upstream * @param func Convenience function called when the item is selected * @param func_data Data passed to @p func above. * @return A handle to the item added or @c NULL if not possible @@ -1039,11 +657,7 @@ EAPI Elm_Object_Item *elm_genlist_item_insert_before(Evas_Object *ob * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI Elm_Object_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data); -======= EAPI Elm_Object_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data); ->>>>>>> remotes/origin/upstream /** * Insert a new item into the sorted genlist object @@ -1052,630 +666,229 @@ EAPI Elm_Object_Item *elm_genlist_item_insert_after(Evas_Object *obj * @param itc The item class for the item * @param data The item data * @param parent The parent item, or NULL if none -<<<<<<< HEAD - * @param flags Item flags -======= * @param type Item type ->>>>>>> remotes/origin/upstream * @param comp The function called for the sort * @param func Convenience function called when item selected - * @param func_data Data passed to @p func above. - * @return A handle to the item added or NULL if not possible - * -<<<<<<< HEAD - * @ingroup Genlist - */ -// XXX: deprecate elm_genlist_item_sorted_insert() and rename -// elm_genlist_item_direct_sorted_insert() -EAPI Elm_Object_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); -EAPI Elm_Object_Item *elm_genlist_item_direct_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); -======= - * This inserts an item in the genlist based on user defined comparison - * function. The two arguments passed to the function @p func are genlist item - * handles to compare. - * - * @see elm_genlist_item_append() - * @see elm_genlist_item_prepend() - * @see elm_genlist_item_insert_after() - * @see elm_object_item_del() - - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); ->>>>>>> remotes/origin/upstream - -/* operations to retrieve existing items */ -/** - * Get the selected item in the genlist. - * - * @param obj The genlist object - * @return The selected item, or NULL if none is selected. - * - * This gets the selected item in the list (if multi-selection is enabled, only - * the item that was first selected in the list is returned - which is not very - * useful, so see elm_genlist_selected_items_get() for when multi-selection is - * used). - * - * If no item is selected, NULL is returned. - * - * @see elm_genlist_selected_items_get() - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_selected_item_get(const Evas_Object *obj); - -/** - * Get a list of selected items in the genlist. - * - * @param obj The genlist object - * @return The list of selected items, or NULL if none are selected. - * - * It returns a list of the selected items. This list pointer is only valid so - * long as the selection doesn't change (no items are selected or unselected, or - * unselected implicitly by deletion). The list contains genlist items - * pointers. The order of the items in this list is the order which they were - * selected, i.e. the first item in this list is the first item that was - * selected, and so on. - * - * @note If not in multi-select mode, consider using function - * elm_genlist_selected_item_get() instead. - * - * @see elm_genlist_multi_select_set() - * @see elm_genlist_selected_item_get() - * - * @ingroup Genlist - */ -EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj); - -/** -<<<<<<< HEAD - * Get the mode item style of items in the genlist - * @param obj The genlist object - * @return The mode item style string, or NULL if none is specified - * - * This is a constant string and simply defines the name of the - * style that will be used for mode animations. It can be - * @c NULL if you don't plan to use Genlist mode. See - * elm_genlist_item_mode_set() for more info. - * - * @ingroup Genlist - */ -EAPI const char *elm_genlist_mode_item_style_get(const Evas_Object *obj); - -/** - * Set the mode item style of items in the genlist - * @param obj The genlist object - * @param style The mode item style string, or NULL if none is desired - * - * This is a constant string and simply defines the name of the - * style that will be used for mode animations. It can be - * @c NULL if you don't plan to use Genlist mode. See - * elm_genlist_item_mode_set() for more info. - * - * @ingroup Genlist - */ -EAPI void elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style); - -/** -======= ->>>>>>> remotes/origin/upstream - * Get a list of realized items in genlist - * - * @param obj The genlist object - * @return The list of realized items, nor NULL if none are realized. - * - * This returns a list of the realized items in the genlist. The list - * contains genlist item pointers. The list must be freed by the - * caller when done with eina_list_free(). The item pointers in the - * list are only valid so long as those items are not deleted or the - * genlist is not deleted. - * - * @see elm_genlist_realized_items_update() - * - * @ingroup Genlist - */ -EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj); - -/** -<<<<<<< HEAD - * Get the item that is at the x, y canvas coords. - * - * @param obj The genlist object. - * @param x The input x coordinate - * @param y The input y coordinate - * @param posret The position relative to the item returned here - * @return The item at the coordinates or NULL if none - * - * This returns the item at the given coordinates (which are canvas - * relative, not object-relative). If an item is at that coordinate, - * that item handle is returned, and if @p posret is not NULL, the - * integer pointed to is set to a value of -1, 0 or 1, depending if - * the coordinate is on the upper portion of that item (-1), on the - * middle section (0) or on the lower part (1). If NULL is returned as - * an item (no item found there), then posret may indicate -1 or 1 - * based if the coordinate is above or below all items respectively in - * the genlist. - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret); - -/** -======= ->>>>>>> remotes/origin/upstream - * Get the first item in the genlist - * - * This returns the first item in the list. - * - * @param obj The genlist object - * @return The first item, or NULL if none - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_first_item_get(const Evas_Object *obj); - -/** - * Get the last item in the genlist - * - * This returns the last item in the list. - * - * @return The last item, or NULL if none - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_last_item_get(const Evas_Object *obj); - -/** - * Set the scrollbar policy - * - * @param obj The genlist object - * @param policy_h Horizontal scrollbar policy. - * @param policy_v Vertical scrollbar policy. - * - * This sets the scrollbar visibility policy for the given genlist - * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is - * made visible if it is needed, and otherwise kept hidden. - * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and - * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies - * respectively for the horizontal and vertical scrollbars. Default is - * #ELM_SMART_SCROLLER_POLICY_AUTO - * - * @see elm_genlist_scroller_policy_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v); - -/** - * Get the scrollbar policy - * - * @param obj The genlist object - * @param policy_h Pointer to store the horizontal scrollbar policy. - * @param policy_v Pointer to store the vertical scrollbar policy. - * - * @see elm_genlist_scroller_policy_set() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v); - -/** - * Get the @b next item in a genlist widget's internal list of items, - * given a handle to one of those items. - * - * @param it The genlist item to fetch next from - * @return The item after @p item, or @c NULL if there's none (and - * on errors) - * - * This returns the item placed after the @p item, on the container - * genlist. - * - * @see elm_genlist_item_prev_get() - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_item_next_get(const Elm_Object_Item *it); - -/** - * Get the @b previous item in a genlist widget's internal list of items, - * given a handle to one of those items. - * - * @param it The genlist item to fetch previous from - * @return The item before @p item, or @c NULL if there's none (and - * on errors) - * - * This returns the item placed before the @p item, on the container - * genlist. - * - * @see elm_genlist_item_next_get() - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_item_prev_get(const Elm_Object_Item *it); - -/** -<<<<<<< HEAD - * Get the parent item of the given item - * - * @param it The item - * @return The parent of the item or @c NULL if it has no parent. - * - * This returns the item that was specified as parent of the item @p it on - * elm_genlist_item_append() and insertion related functions. - * - * @ingroup Genlist - */ -EAPI Elm_Object_Item *elm_genlist_item_parent_get(const Elm_Object_Item *it); - -/** - * Remove all sub-items (children) of the given item - * - * @param it The item - * - * This removes all items that are children (and their descendants) of the - * given item @p it. - * - * @see elm_genlist_clear() - * @see elm_object_item_del() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_subitems_clear(Elm_Object_Item *it); - -/** - * Set whether a given genlist item is selected or not - * - * @param it The item - * @param selected Use @c EINA_TRUE, to make it selected, @c - * EINA_FALSE to make it unselected -======= - * Set whether a given genlist item is selected or not - * - * @param it The item - * @param selected Use @c EINA_TRUE, to make it selected, @c - * EINA_FALSE to make it unselected ->>>>>>> remotes/origin/upstream - * - * This sets the selected state of an item. If multi selection is - * not enabled on the containing genlist and @p selected is @c - * EINA_TRUE, any other previously selected items will get - * unselected in favor of this new one. - * - * @see elm_genlist_item_selected_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); - -/** - * Get whether a given genlist item is selected or not - * - * @param it The item - * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise - * - * @see elm_genlist_item_selected_set() for more details - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Object_Item *it); - -/** -<<<<<<< HEAD - * Sets the expanded state of an item. - * - * @param it The item - * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded). - * - * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as - * expanded or not. - * - * The theme will respond to this change visually, and a signal "expanded" or - * "contracted" will be sent from the genlist with a pointer to the item that - * has been expanded/contracted. - * - * Calling this function won't show or hide any child of this item (if it is - * a parent). You must manually delete and create them on the callbacks of - * the "expanded" or "contracted" signals. - * - * @see elm_genlist_item_expanded_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_expanded_set(Elm_Object_Item *it, Eina_Bool expanded); - -/** - * Get the expanded state of an item - * - * @param it The item - * @return The expanded state - * - * This gets the expanded state of an item. - * - * @see elm_genlist_item_expanded_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Object_Item *it); - -/** - * Get the depth of expanded item - * - * @param it The genlist item object - * @return The depth of expanded item - * - * @ingroup Genlist - */ -EAPI int elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it); - - -/** - * Sets the display only state of an item. - * - * @param it The item - * @param display_only @c EINA_TRUE if the item is display only, @c - * EINA_FALSE otherwise. - * - * A display only item cannot be selected or unselected. It is for - * display only and not selecting or otherwise clicking, dragging - * etc. by the user, thus finger size rules will not be applied to - * this item. - * - * It's good to set group index items to display only state. - * - * @see elm_genlist_item_display_only_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool display_only); - -/** - * Get the display only state of an item - * - * @param it The item - * @return @c EINA_TRUE if the item is display only, @c - * EINA_FALSE otherwise. - * - * @see elm_genlist_item_display_only_set() - * - * @ingroup Genlist - */ -EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Object_Item *it); - -/** -======= ->>>>>>> remotes/origin/upstream - * Show the portion of a genlist's internal list containing a given - * item, immediately. - * - * @param it The item to display -<<<<<<< HEAD - * - * This causes genlist to jump to the given item @p it and show it (by - * immediately scrolling to that position), if it is not fully visible. - * - * @see elm_genlist_item_bring_in() - * @see elm_genlist_item_top_show() - * @see elm_genlist_item_middle_show() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_show(Elm_Object_Item *it); -======= - * @param type The position to bring in, the given item to. - * @ref Elm_Genlist_Item_Scrollto_Type - * - * This causes genlist to jump to the given item @p it and show it (by - * jumping to that position), if it is not fully visible. + * @param func_data Data passed to @p func above. + * @return A handle to the item added or NULL if not possible * - * @see elm_genlist_item_bring_in() + * This inserts an item in the genlist based on user defined comparison + * function. The two arguments passed to the function @p func are genlist item + * handles to compare. * + * @see elm_genlist_item_append() + * @see elm_genlist_item_prepend() + * @see elm_genlist_item_insert_after() + * @see elm_object_item_del() + * @ingroup Genlist */ -EAPI void elm_genlist_item_show(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type); ->>>>>>> remotes/origin/upstream +EAPI Elm_Object_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data); +/* operations to retrieve existing items */ /** - * Animatedly bring in, to the visible are of a genlist, a given - * item on it. + * Get the selected item in the genlist. * - * @param it The item to display -<<<<<<< HEAD + * @param obj The genlist object + * @return The selected item, or NULL if none is selected. * - * This causes genlist to jump to the given item @p it and show it (by - * animatedly scrolling), if it is not fully visible. This may use animation - * to do so and take a period of time + * This gets the selected item in the list (if multi-selection is enabled, only + * the item that was first selected in the list is returned - which is not very + * useful, so see elm_genlist_selected_items_get() for when multi-selection is + * used). * - * @see elm_genlist_item_show() - * @see elm_genlist_item_top_bring_in() - * @see elm_genlist_item_middle_bring_in() + * If no item is selected, NULL is returned. + * + * @see elm_genlist_selected_items_get() * * @ingroup Genlist */ -EAPI void elm_genlist_item_bring_in(Elm_Object_Item *it); +EAPI Elm_Object_Item *elm_genlist_selected_item_get(const Evas_Object *obj); /** - * Show the portion of a genlist's internal list containing a given - * item, immediately. + * Get a list of selected items in the genlist. * - * @param it The item to display + * @param obj The genlist object + * @return The list of selected items, or NULL if none are selected. * - * This causes genlist to jump to the given item @p it and show it (by - * immediately scrolling to that position), if it is not fully visible. + * It returns a list of the selected items. This list pointer is only valid so + * long as the selection doesn't change (no items are selected or unselected, or + * unselected implicitly by deletion). The list contains genlist items + * pointers. The order of the items in this list is the order which they were + * selected, i.e. the first item in this list is the first item that was + * selected, and so on. * - * The item will be positioned at the top of the genlist viewport. + * @note If not in multi-select mode, consider using function + * elm_genlist_selected_item_get() instead. * - * @see elm_genlist_item_show() - * @see elm_genlist_item_top_bring_in() + * @see elm_genlist_multi_select_set() + * @see elm_genlist_selected_item_get() * * @ingroup Genlist */ -EAPI void elm_genlist_item_top_show(Elm_Object_Item *it); +EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj); /** - * Animatedly bring in, to the visible are of a genlist, a given - * item on it. - * - * @param it The item + * Get a list of realized items in genlist * - * This causes genlist to jump to the given item @p it and show it (by - * animatedly scrolling), if it is not fully visible. This may use animation - * to do so and take a period of time + * @param obj The genlist object + * @return The list of realized items, nor NULL if none are realized. * - * The item will be positioned at the top of the genlist viewport. + * This returns a list of the realized items in the genlist. The list + * contains genlist item pointers. The list must be freed by the + * caller when done with eina_list_free(). The item pointers in the + * list are only valid so long as those items are not deleted or the + * genlist is not deleted. * - * @see elm_genlist_item_bring_in() - * @see elm_genlist_item_top_show() + * @see elm_genlist_realized_items_update() * * @ingroup Genlist */ -EAPI void elm_genlist_item_top_bring_in(Elm_Object_Item *it); +EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj); /** - * Show the portion of a genlist's internal list containing a given - * item, immediately. + * Get the first item in the genlist * - * @param it The item to display + * This returns the first item in the list. * - * This causes genlist to jump to the given item @p it and show it (by - * immediately scrolling to that position), if it is not fully visible. + * @param obj The genlist object + * @return The first item, or NULL if none * - * The item will be positioned at the middle of the genlist viewport. + * @ingroup Genlist + */ +EAPI Elm_Object_Item *elm_genlist_first_item_get(const Evas_Object *obj); + +/** + * Get the last item in the genlist * - * @see elm_genlist_item_show() - * @see elm_genlist_item_middle_bring_in() + * This returns the last item in the list. + * + * @return The last item, or NULL if none * * @ingroup Genlist */ -EAPI void elm_genlist_item_middle_show(Elm_Object_Item *it); +EAPI Elm_Object_Item *elm_genlist_last_item_get(const Evas_Object *obj); /** - * Animatedly bring in, to the visible are of a genlist, a given - * item on it. - * - * @param it The item + * Set the scrollbar policy * - * This causes genlist to jump to the given item @p it and show it (by - * animatedly scrolling), if it is not fully visible. This may use animation - * to do so and take a period of time + * @param obj The genlist object + * @param policy_h Horizontal scrollbar policy. + * @param policy_v Vertical scrollbar policy. * - * The item will be positioned at the middle of the genlist viewport. + * This sets the scrollbar visibility policy for the given genlist + * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is + * made visible if it is needed, and otherwise kept hidden. + * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and + * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies + * respectively for the horizontal and vertical scrollbars. Default is + * #ELM_SMART_SCROLLER_POLICY_AUTO * - * @see elm_genlist_item_bring_in() - * @see elm_genlist_item_middle_show() + * @see elm_genlist_scroller_policy_get() * * @ingroup Genlist */ -EAPI void elm_genlist_item_middle_bring_in(Elm_Object_Item *it); +EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v); /** - * Tells genlist to "orphan" contents fetched by the item class + * Get the scrollbar policy * - * @param it The item + * @param obj The genlist object + * @param policy_h Pointer to store the horizontal scrollbar policy. + * @param policy_v Pointer to store the vertical scrollbar policy. * - * This instructs genlist to release references to contents in the item, - * meaning that they will no longer be managed by genlist and are - * floating "orphans" that can be re-used elsewhere if the user wants - * to. + * @see elm_genlist_scroller_policy_set() * * @ingroup Genlist */ -EAPI void elm_genlist_item_contents_orphan(Elm_Object_Item *it); +EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v); /** - * Get the real Evas object created to implement the view of a - * given genlist item + * Get the @b next item in a genlist widget's internal list of items, + * given a handle to one of those items. * - * @param it The genlist item. - * @return the Evas object implementing this item's view. + * @param it The genlist item to fetch next from + * @return The item after @p item, or @c NULL if there's none (and + * on errors) * - * This returns the actual Evas object used to implement the - * specified genlist item's view. This may be @c NULL, as it may - * not have been created or may have been deleted, at any time, by - * the genlist. Do not modify this object (move, resize, - * show, hide, etc.), as the genlist is controlling it. This - * function is for querying, emitting custom signals or hooking - * lower level callbacks for events on that object. Do not delete - * this object under any circumstances. + * This returns the item placed after the @p item, on the container + * genlist. * - * @see elm_object_item_data_get() + * @see elm_genlist_item_prev_get() * * @ingroup Genlist */ -EAPI const Evas_Object *elm_genlist_item_object_get(const Elm_Object_Item *it); +EAPI Elm_Object_Item *elm_genlist_item_next_get(const Elm_Object_Item *it); /** - * Update the contents of an item - * - * @param it The item + * Get the @b previous item in a genlist widget's internal list of items, + * given a handle to one of those items. * - * This updates an item by calling all the item class functions again - * to get the contents, texts and states. Use this when the original - * item data has changed and the changes are desired to be reflected. + * @param it The genlist item to fetch previous from + * @return The item before @p item, or @c NULL if there's none (and + * on errors) * - * Use elm_genlist_realized_items_update() to update all already realized - * items. + * This returns the item placed before the @p item, on the container + * genlist. * - * @see elm_genlist_realized_items_update() + * @see elm_genlist_item_next_get() * * @ingroup Genlist */ -EAPI void elm_genlist_item_update(Elm_Object_Item *it); +EAPI Elm_Object_Item *elm_genlist_item_prev_get(const Elm_Object_Item *it); /** - * Promote an item to the top of the list + * Set whether a given genlist item is selected or not * * @param it The item + * @param selected Use @c EINA_TRUE, to make it selected, @c + * EINA_FALSE to make it unselected + * + * This sets the selected state of an item. If multi selection is + * not enabled on the containing genlist and @p selected is @c + * EINA_TRUE, any other previously selected items will get + * unselected in favor of this new one. + * + * @see elm_genlist_item_selected_get() * * @ingroup Genlist */ -EAPI void elm_genlist_item_promote(Elm_Object_Item *it); +EAPI void elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected); /** - * Demote an item to the end of the list + * Get whether a given genlist item is selected or not * * @param it The item + * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise + * + * @see elm_genlist_item_selected_set() for more details * * @ingroup Genlist */ -EAPI void elm_genlist_item_demote(Elm_Object_Item *it); +EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Object_Item *it); /** - * Update the part of an item - * - * @param it The item - * @param parts The name of item's part - * @param itf The flags of item's part type + * Show the portion of a genlist's internal list containing a given + * item, immediately. * - * This updates an item's part by calling item's fetching functions again - * to get the contents, texts and states. Use this when the original - * item data has changed and the changes are desired to be reflected. - * Second parts argument is used for globbing to match '*', '?', and '.' - * It can be used at updating multi fields. + * @param it The item to display + * @param type The position to bring in, the given item to. + * @ref Elm_Genlist_Item_Scrollto_Type * - * Use elm_genlist_realized_items_update() to update an item's all - * property. + * This causes genlist to jump to the given item @p it and show it (by + * jumping to that position), if it is not fully visible. * - * @see elm_genlist_item_update() + * @see elm_genlist_item_bring_in() * * @ingroup Genlist */ -EAPI void elm_genlist_item_fields_update(Elm_Object_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf); +EAPI void elm_genlist_item_show(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type); /** - * Update the item class of an item - * - * @param it The item - * @param itc The item class for the item - * - * This sets another class of the item, changing the way that it is - * displayed. After changing the item class, elm_genlist_item_update() is - * called on the item @p it. + * Animatedly bring in, to the visible are of a genlist, a given + * item on it. * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_item_class_update(Elm_Object_Item *it, const Elm_Genlist_Item_Class *itc); -EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Object_Item *it); -======= + * @param it The item to display * @param type The position to bring in, the given item to. * @ref Elm_Genlist_Item_Scrollto_Type * @@ -1835,7 +1048,6 @@ EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc); * @ingroup Genlist */ EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc); ->>>>>>> remotes/origin/upstream /** * Set the text to be shown in a given genlist item's tooltips. @@ -2093,59 +1305,6 @@ EAPI void elm_genlist_item_cursor_engine_only_set(Elm_O EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it); /** -<<<<<<< HEAD - * Get the index of the item. It is only valid once displayed. - * - * @param item a genlist item - * @return the position inside the list of item. - * - * @ingroup Genlist - */ -EAPI int elm_genlist_item_index_get(Elm_Object_Item *it); - -/** - * Update the contents of all realized items. - * - * @param obj The genlist object. - * - * This updates all realized items by calling all the item class functions again - * to get the contents, texts and states. Use this when the original - * item data has changed and the changes are desired to be reflected. - * - * To update just one item, use elm_genlist_item_update(). - * - * @see elm_genlist_realized_items_get() - * @see elm_genlist_item_update() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_realized_items_update(Evas_Object *obj); - -/** - * Activate a genlist mode on an item - * - * @param item The genlist item - * @param mode Mode name - * @param mode_set Boolean to define set or unset mode. - * - * A genlist mode is a different way of selecting an item. Once a mode is - * activated on an item, any other selected item is immediately unselected. - * This feature provides an easy way of implementing a new kind of animation - * for selecting an item, without having to entirely rewrite the item style - * theme. However, the elm_genlist_selected_* API can't be used to get what - * item is activate for a mode. - * - * The current item style will still be used, but applying a genlist mode to - * an item will select it using a different kind of animation. - * - * The current active item for a mode can be found by - * elm_genlist_mode_item_get(). - * - * The characteristics of genlist mode are: - * - Only one mode can be active at any time, and for only one item. - * - Genlist handles deactivating other items when one item is activated. - * - A mode is defined in the genlist theme (edc), and more modes can easily -======= * Enable/disable homogeneous mode. * * @param obj The genlist object @@ -2424,7 +1583,6 @@ EAPI void elm_genlist_item_fields_update(Elm_Object_Ite * - Only one mode can be active at any time, and for only one item. * - Genlist handles deactivating other items when one item is activated. * - A mode is defined in the genlist theme (edc), and more modes can easily ->>>>>>> remotes/origin/upstream * be added. * - A mode style and the genlist item style are different things. They * can be combined to provide a default style to the item, with some kind @@ -2437,19 +1595,11 @@ EAPI void elm_genlist_item_fields_update(Elm_Object_Ite * destroyed after the mode is totally deactivated from that item. * * @see elm_genlist_mode_get() -<<<<<<< HEAD - * @see elm_genlist_mode_item_get() - * - * @ingroup Genlist - */ -EAPI void elm_genlist_item_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set); -======= * @see elm_genlist_decorated_item_get() * * @ingroup Genlist */ EAPI void elm_genlist_item_decorate_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set); ->>>>>>> remotes/origin/upstream /** * Get the last (or current) genlist mode used. @@ -2459,21 +1609,12 @@ EAPI void elm_genlist_item_decorate_mode_set(Elm_Object * This function just returns the name of the last used genlist mode. It will * be the current mode if it's still active. * -<<<<<<< HEAD - * @see elm_genlist_item_mode_set() - * @see elm_genlist_mode_item_get() - * - * @ingroup Genlist - */ -EAPI const char *elm_genlist_mode_type_get(const Evas_Object *obj); -======= * @see elm_genlist_item_decorate_mode_set() * @see elm_genlist_decorated_item_get() * * @ingroup Genlist */ EAPI const char *elm_genlist_item_decorate_mode_get(const Evas_Object *obj); ->>>>>>> remotes/origin/upstream /** * Get active genlist mode item @@ -2483,24 +1624,14 @@ EAPI const char *elm_genlist_item_decorate_mode_get(const Evas * activated with any mode. * * This function returns the item that was activated with a mode, by the -<<<<<<< HEAD - * function elm_genlist_item_mode_set(). - * - * @see elm_genlist_item_mode_set() -======= * function elm_genlist_item_decorate_mode_set(). * * @see elm_genlist_item_decorate_mode_set() ->>>>>>> remotes/origin/upstream * @see elm_genlist_mode_get() * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI const Elm_Object_Item *elm_genlist_mode_item_get(const Evas_Object *obj); -======= EAPI const Elm_Object_Item *elm_genlist_decorated_item_get(const Evas_Object *obj); ->>>>>>> remotes/origin/upstream /** * Set reorder mode @@ -2525,44 +1656,16 @@ EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj); /** -<<<<<<< HEAD - * Get the Item's Flags - * - * @param item The genlist item - * @return The item flags. -======= * Get the Item's Type * * @param it The genlist item * @return The item type. ->>>>>>> remotes/origin/upstream * * This function returns the item's type. Normally the item's type. * If it failed, return value is ELM_GENLIST_ITEM_MAX * * @ingroup Genlist */ -<<<<<<< HEAD -EAPI Elm_Genlist_Item_Flags elm_genlist_item_flags_get(const Elm_Object_Item *it); - - EAPI void elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode) EINA_ARG_NONNULL(1); - EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); - EAPI void elm_genlist_item_rename_mode_set(Elm_Object_Item *it, Eina_Bool renamed) EINA_ARG_NONNULL(1); - EAPI Eina_Bool elm_genlist_item_rename_mode_get(Elm_Object_Item *item) EINA_ARG_NONNULL(1); - EAPI void elm_genlist_item_move_after(Elm_Object_Item *it, Elm_Object_Item *after ) EINA_ARG_NONNULL(1, 2); - EAPI void elm_genlist_item_move_before(Elm_Object_Item *it, Elm_Object_Item *before) EINA_ARG_NONNULL(1, 2); - EAPI void elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1); - EAPI void elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1); - EAPI void elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1); - EAPI Eina_Bool elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1); - - EAPI void elm_genlist_item_no_select_mode_set(Elm_Object_Item *it, Eina_Bool no_select) EINA_ARG_NONNULL(1); - EAPI Eina_Bool elm_genlist_item_no_select_mode_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1); - - /** - * @} - */ -======= EAPI Elm_Genlist_Item_Type elm_genlist_item_type_get(const Elm_Object_Item *it); /** @@ -2759,4 +1862,3 @@ elm_genlist_item_select_mode_get(const Elm_Object_Item *it); /** * @} */ ->>>>>>> remotes/origin/upstream -- 2.7.4