diff --git a/data/themes/default_fileman.edc b/data/themes/default_fileman.edc index 8ee3e085d..e05f969d3 100644 --- a/data/themes/default_fileman.edc +++ b/data/themes/default_fileman.edc @@ -47,6 +47,9 @@ images { image: "e17_sb_runnerv.png" COMP; image: "e17_scrollbar_hdrag_thumb.png" COMP; image: "e17_scrollbar_vdrag_thumb.png" COMP; + image: "e17_fileman_copy.png" COMP; + image: "e17_fileman_ask.png" COMP; + image: "e17_fileman_move.png" COMP; } group { @@ -769,6 +772,1486 @@ group { } } +group { + name: "e/fileman/default/list/variable"; + parts { + part { + name: "base"; + mouse_events: 0; + description { + state: "default" 0.0; + color: 255 255 255 64; // BLAH + image { + normal: "e17_ilist_bg0.png"; + border: 3 3 3 3; + } + } + } + part { + name: "title_shadow2"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow2.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + visible: 1; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow2.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 255; + } + } + part { + name: "title_shadow1"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow1.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + visible: 1; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow1.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 255; + } + } + part { + name: "title_bar"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + image { + normal: "e17_titlebar.png"; + border: 8 8 8 8; + } + rel1 { + offset: -4 -4; + } + rel2 { + offset: 3 3; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "icon_box_shadow"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + to: "icon_box"; + relative: 0.0 0.0; + offset: -1 -1; + } + rel2 { + to: "icon_box"; + relative: 1.0 1.0; + offset: 2 2; + } + image { + normal: "e17_mini_button_shadow2.png"; + border: 6 6 6 6; + } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon_box"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + align: 0.5 0.5; + rel1 { + to: "e.swallow.icon"; + relative: 0.0 0.0; + offset: -1 -1; + } + rel2 { + to: "e.swallow.icon"; + relative: 1.0 1.0; + offset: 0 0; + } + color: 0 0 0 64; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon_box_bg"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + to: "icon_box"; + relative: 0.0 0.0; + offset: 1 1; + + } + rel2 { + to: "icon_box"; + relative: 1.0 1.0; + offset: -2 -2; + } + image { + normal: "e17_fileman_thumb_bg.png"; + } + fill { + smooth: 0; + size { + relative: 0 0; + offset: 32 32; + } + } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon0"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + align: 0.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 4 4; + } + rel2 { + relative: 0.0 1.0; + offset: 4 -5; + } + color: 0 0 0 0; + } + } + part { + name: "icon"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + align: 0.5 0.5; + aspect: 1.0 1.0; + aspect_preference: BOTH; + visible: 0; + rel1 { + to: "icon0"; + } + rel2 { + to: "icon0"; + } + color: 0 0 0 0; + } + description { + state: "min" 0.0; + inherit: "default" 0.0; + max: 0 0; + } + description { + state: "max" 0.0; + inherit: "default" 0.0; + rel1 { + to: "icon0"; + relative: 0.0 0.0; + offset: -4 -4; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: 3 3; + } + } + description { + state: "max2" 0.0; + inherit: "default" 0.0; + rel1 { + to: "icon0"; + relative: 0.0 0.0; + offset: -2 -2; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: 1 1; + } + } + } + part { + name: "e.swallow.icon"; + type: SWALLOW; + description { + state: "default" 0.0; + align: 0.5 0.5; +// fixed: 1 1; + rel1 { + to: "icon"; + } + rel2 { + to: "icon"; + } + } + } + part { + name: "e.text.label"; + type: TEXT; + effect: SHADOW; + mouse_events: 0; + description { + state: "default" 0.0; + min: 16 16; + rel1 { + to_x: "icon0"; + relative: 1.0 0.0; + offset: 4 4; + } + rel2 { + relative: 1.0 1.0; + offset: -5 -5; + } + color: 0 0 0 255; + color3: 255 255 255 128; + color_class: "ilist_item"; + text { + text: "Item Label"; + font: "Edje-Vera"; + size: 10; + min: 1 1; + align: 0.0 0.5; + text_class: "ilist_item"; + } + } + } + part { + name: "title_glint_clip"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { + offset: 3 3; + to: "title_bar"; + } + rel2 { + offset: -4 -4; + to: "title_bar"; + } + color: 255 255 255 255; + } + } + part { + name: "title_glint_1"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 0.0 0.0; + max: 34 13; + rel1 { + relative: 0.0 0.0; + offset: 2 2; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -3 -3; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint1.png"; + border: 5 0 5 0; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "title_glint_2"; + mouse_events: 0; + clip_to: "title_glint_clip"; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 1.0 0.5; + max: 0 0; + rel1 { + relative: 0.0 0.0; + offset: 3 3; + to: "title_bar"; + } + rel2 { + relative: 0.0 1.0; + offset: 3 -4; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint2.png"; + border: 0 0 5 5; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + max: 169 9999; + min: 169 8; + align: 0.5 0.5; + rel1 { + relative: 0.0 0.0; + offset: 3 3; + } + rel2 { + relative: 0.0 1.0; + offset: 3 -4; + } + } + description { + state: "active2" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 128; + max: 169 9999; + min: 169 8; + align: 0.5 0.5; + rel1 { + relative: 1.0 0.0; + offset: -4 3; + } + rel2 { + relative: 1.0 1.0; + offset: -4 -4; + } + } + description { + state: "active3" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + max: 169 9999; + min: 169 8; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: -4 3; + } + rel2 { + relative: 1.0 1.0; + offset: -4 -4; + } + } + } + part { + name: "title_glint_3"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 1.0 1.0; + max: 34 13; + rel1 { + relative: 0.0 0.0; + offset: 2 2; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -3 -3; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint3.png"; + border: 0 5 0 5; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "event"; + type: RECT; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } + } + programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } + program { + name: "go_active_pre"; + signal: "e,state,selected"; + source: "e"; + action: STATE_SET "default" 0.0; + target: "title_bar"; + target: "title_shadow1"; + target: "title_shadow2"; + after: "go_active"; + } + program { + name: "go_active"; + action: STATE_SET "active" 0.0; + target: "title_bar"; + transition: LINEAR 0.05; + after: "go_active2"; + } + program { + name: "go_active2"; + action: STATE_SET "active" 0.0; + target: "title_shadow1"; + transition: LINEAR 0.05; + after: "go_active3"; + after: "go_active3b"; + } + program { + name: "go_active3"; + action: STATE_SET "active" 0.0; + target: "title_shadow2"; + transition: LINEAR 0.05; + } + program { + name: "go_active3b"; + action: STATE_SET "active" 0.0; + target: "title_glint_1"; + target: "title_glint_2"; + transition: LINEAR 0.05; + after: "go_active4"; + after: "go_active4b"; + } + program { + name: "go_active4"; + action: STATE_SET "active2" 0.0; + target: "title_glint_2"; + transition: LINEAR 0.2; + after: "go_active5"; + after: "go_active5b"; + } + program { + name: "go_active4b"; + action: STATE_SET "active" 0.0; + target: "title_glint_3"; + transition: LINEAR 0.2; + } + program { + name: "go_active5"; + action: STATE_SET "active3" 0.0; + target: "title_glint_2"; + transition: LINEAR 0.05; + } + program { + name: "go_active5b"; + action: STATE_SET "default" 0.0; + target: "title_glint_3"; + transition: LINEAR 0.1; + after: "go_active6"; + } + program { + name: "go_active6"; + action: STATE_SET "default" 0.0; + target: "title_glint_1"; + target: "title_glint_2"; + target: "title_glint_3"; + } + + program { + name: "go_passive_pre"; + signal: "e,state,unselected"; + source: "e"; + action: STATE_SET "active" 0.0; + target: "title_bar"; + target: "title_shadow1"; + target: "title_shadow2"; + after: "go_passive"; + } + program { + name: "go_passive"; + action: STATE_SET "default" 0.0; + target: "title_shadow2"; + transition: LINEAR 0.1; + after: "go_passive2"; + } + program { + name: "go_passive2"; + action: STATE_SET "default" 0.0; + target: "title_shadow1"; + transition: LINEAR 0.1; + after: "go_passive3"; + } + program { + name: "go_passive3"; + action: STATE_SET "default" 0.0; + target: "title_bar"; + transition: LINEAR 0.1; + } + program { + name: "thumb_gen"; + signal: "e,action,thumb,gen"; + source: "e"; + action: STATE_SET "visible" 0.0; + target: "icon_box_shadow"; + target: "icon_box"; + target: "icon_box_bg"; + after: "thumb_gen2"; + } + program { + name: "thumb_gen-"; + signal: "e,action,thumb,gen,alpha"; + source: "e"; + action: STATE_SET "default" 0.0; + target: "icon_box_shadow"; + target: "icon_box"; + target: "icon_box_bg"; + after: "thumb_gen2"; + } + program { + name: "thumb_gen2"; + action: STATE_SET "min" 0.0; + target: "icon"; + after: "thumb_gen3"; + } + program { + name: "thumb_gen3"; + action: STATE_SET "max" 0.0; + target: "icon"; + transition: DECELERATE 0.2; + after: "thumb_gen4"; + } + program { + name: "thumb_gen4"; + action: STATE_SET "default" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.1; + after: "thumb_gen5"; + } + program { + name: "thumb_gen5"; + action: STATE_SET "max2" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.2; + after: "thumb_gen6"; + } + program { + name: "thumb_gen6"; + action: STATE_SET "default" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.3; + } + } +} + +group { + name: "e/fileman/default/list_odd/variable"; + parts { + part { + name: "base"; + mouse_events: 0; + description { + state: "default" 0.0; + color: 255 255 255 64; // BLAH + image { + normal: "e17_ilist_bg1.png"; + border: 3 3 3 3; + } + } + } + part { + name: "title_shadow2"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow2.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + visible: 1; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow2.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 255; + } + } + part { + name: "title_shadow1"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow1.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + visible: 1; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + to: "title_bar"; + } + image { + normal: "e17_titlebar_shadow1.png"; + border: 8 8 8 8; + } + fill { + smooth: 0; + } + color: 255 255 255 255; + } + } + part { + name: "title_bar"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + image { + normal: "e17_titlebar.png"; + border: 8 8 8 8; + } + rel1 { + offset: -4 -4; + } + rel2 { + offset: 3 3; + } + color: 255 255 255 0; + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "icon_box_shadow"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + to: "icon_box"; + relative: 0.0 0.0; + offset: -1 -1; + } + rel2 { + to: "icon_box"; + relative: 1.0 1.0; + offset: 2 2; + } + image { + normal: "e17_mini_button_shadow2.png"; + border: 6 6 6 6; + } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon_box"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + align: 0.5 0.5; + rel1 { + to: "e.swallow.icon"; + relative: 0.0 0.0; + offset: -1 -1; + } + rel2 { + to: "e.swallow.icon"; + relative: 1.0 1.0; + offset: 0 0; + } + color: 0 0 0 64; + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon_box_bg"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + rel1 { + to: "icon_box"; + relative: 0.0 0.0; + offset: 1 1; + } + rel2 { + to: "icon_box"; + relative: 1.0 1.0; + offset: -2 -2; + } + image { + normal: "e17_fileman_thumb_bg.png"; + } + fill { + smooth: 0; + size { + relative: 0 0; + offset: 32 32; + } + } + } + description { + state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { + name: "icon0"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + align: 0.0 0.5; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + visible: 0; + rel1 { + relative: 0.0 0.0; + offset: 4 4; + } + rel2 { + relative: 0.0 1.0; + offset: 4 -5; + } + color: 0 0 0 0; + } + } + part { + name: "icon"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + align: 0.5 0.5; + aspect: 1.0 1.0; + aspect_preference: BOTH; + visible: 0; + rel1 { + to: "icon0"; + } + rel2 { + to: "icon0"; + } + color: 0 0 0 0; + } + description { + state: "min" 0.0; + inherit: "default" 0.0; + max: 0 0; + } + description { + state: "max" 0.0; + inherit: "default" 0.0; + rel1 { + to: "icon0"; + relative: 0.0 0.0; + offset: -4 -4; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: 3 3; + } + } + description { + state: "max2" 0.0; + inherit: "default" 0.0; + rel1 { + to: "icon0"; + relative: 0.0 0.0; + offset: -2 -2; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: 1 1; + } + } + } + part { + name: "e.swallow.icon"; + type: SWALLOW; + description { + state: "default" 0.0; + align: 0.5 0.5; +// fixed: 1 1; + rel1 { + to: "icon"; + } + rel2 { + to: "icon"; + } + } + } + part { + name: "e.text.label"; + type: TEXT; + effect: SHADOW; + mouse_events: 0; + description { + state: "default" 0.0; + min: 16 16; + rel1 { + to_x: "icon0"; + relative: 1.0 0.0; + offset: 4 4; + } + rel2 { + relative: 1.0 1.0; + offset: -5 -5; + } + color: 0 0 0 255; + color3: 255 255 255 128; + color_class: "ilist_item_odd"; + text { + text: "Item Label"; + font: "Edje-Vera"; + size: 10; + min: 1 1; + align: 0.0 0.5; + text_class: "ilist_item"; + } + } + } + part { + name: "title_glint_clip"; + type: RECT; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { + offset: 3 3; + to: "title_bar"; + } + rel2 { + offset: -4 -4; + to: "title_bar"; + } + color: 255 255 255 255; + } + } + part { + name: "title_glint_1"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 0.0 0.0; + max: 34 13; + rel1 { + relative: 0.0 0.0; + offset: 2 2; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -3 -3; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint1.png"; + border: 5 0 5 0; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "title_glint_2"; + mouse_events: 0; + clip_to: "title_glint_clip"; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 1.0 0.5; + max: 0 0; + rel1 { + relative: 0.0 0.0; + offset: 3 3; + to: "title_bar"; + } + rel2 { + relative: 0.0 1.0; + offset: 3 -4; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint2.png"; + border: 0 0 5 5; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + max: 169 9999; + min: 169 8; + align: 0.5 0.5; + rel1 { + relative: 0.0 0.0; + offset: 3 3; + } + rel2 { + relative: 0.0 1.0; + offset: 3 -4; + } + } + description { + state: "active2" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 128; + max: 169 9999; + min: 169 8; + align: 0.5 0.5; + rel1 { + relative: 1.0 0.0; + offset: -4 3; + } + rel2 { + relative: 1.0 1.0; + offset: -4 -4; + } + } + description { + state: "active3" 0.0; + inherit: "default" 0.0; + visible: 0; + color: 255 255 255 0; + max: 169 9999; + min: 169 8; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: -4 3; + } + rel2 { + relative: 1.0 1.0; + offset: -4 -4; + } + } + } + part { + name: "title_glint_3"; + mouse_events: 0; + description { + state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + align: 1.0 1.0; + max: 34 13; + rel1 { + relative: 0.0 0.0; + offset: 2 2; + to: "title_bar"; + } + rel2 { + relative: 1.0 1.0; + offset: -3 -3; + to: "title_bar"; + } + image { + normal: "e17_titlebar_glint3.png"; + border: 0 5 0 5; + } + fill { + smooth: 0; + } + } + description { + state: "active" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + part { + name: "event"; + type: RECT; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } + } + programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } + program { + name: "go_active_pre"; + signal: "e,state,selected"; + source: "e"; + action: STATE_SET "default" 0.0; + target: "title_bar"; + target: "title_shadow1"; + target: "title_shadow2"; + after: "go_active"; + } + program { + name: "go_active"; + action: STATE_SET "active" 0.0; + target: "title_bar"; + transition: LINEAR 0.05; + after: "go_active2"; + } + program { + name: "go_active2"; + action: STATE_SET "active" 0.0; + target: "title_shadow1"; + transition: LINEAR 0.05; + after: "go_active3"; + after: "go_active3b"; + } + program { + name: "go_active3"; + action: STATE_SET "active" 0.0; + target: "title_shadow2"; + transition: LINEAR 0.05; + } + program { + name: "go_active3b"; + action: STATE_SET "active" 0.0; + target: "title_glint_1"; + target: "title_glint_2"; + transition: LINEAR 0.05; + after: "go_active4"; + after: "go_active4b"; + } + program { + name: "go_active4"; + action: STATE_SET "active2" 0.0; + target: "title_glint_2"; + transition: LINEAR 0.2; + after: "go_active5"; + after: "go_active5b"; + } + program { + name: "go_active4b"; + action: STATE_SET "active" 0.0; + target: "title_glint_3"; + transition: LINEAR 0.2; + } + program { + name: "go_active5"; + action: STATE_SET "active3" 0.0; + target: "title_glint_2"; + transition: LINEAR 0.05; + } + program { + name: "go_active5b"; + action: STATE_SET "default" 0.0; + target: "title_glint_3"; + transition: LINEAR 0.1; + after: "go_active6"; + } + program { + name: "go_active6"; + action: STATE_SET "default" 0.0; + target: "title_glint_1"; + target: "title_glint_2"; + target: "title_glint_3"; + } + + program { + name: "go_passive_pre"; + signal: "e,state,unselected"; + source: "e"; + action: STATE_SET "active" 0.0; + target: "title_bar"; + target: "title_shadow1"; + target: "title_shadow2"; + after: "go_passive"; + } + program { + name: "go_passive"; + action: STATE_SET "default" 0.0; + target: "title_shadow2"; + transition: LINEAR 0.1; + after: "go_passive2"; + } + program { + name: "go_passive2"; + action: STATE_SET "default" 0.0; + target: "title_shadow1"; + transition: LINEAR 0.1; + after: "go_passive3"; + } + program { + name: "go_passive3"; + action: STATE_SET "default" 0.0; + target: "title_bar"; + transition: LINEAR 0.1; + } + program { + name: "thumb_gen"; + signal: "e,action,thumb,gen"; + source: "e"; + action: STATE_SET "visible" 0.0; + target: "icon_box_shadow"; + target: "icon_box"; + target: "icon_box_bg"; + after: "thumb_gen2"; + } + program { + name: "thumb_gen-"; + signal: "e,action,thumb,gen,alpha"; + source: "e"; + action: STATE_SET "default" 0.0; + target: "icon_box_shadow"; + target: "icon_box"; + target: "icon_box_bg"; + after: "thumb_gen2"; + } + program { + name: "thumb_gen2"; + action: STATE_SET "min" 0.0; + target: "icon"; + after: "thumb_gen3"; + } + program { + name: "thumb_gen3"; + action: STATE_SET "max" 0.0; + target: "icon"; + transition: DECELERATE 0.2; + after: "thumb_gen4"; + } + program { + name: "thumb_gen4"; + action: STATE_SET "default" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.1; + after: "thumb_gen5"; + } + program { + name: "thumb_gen5"; + action: STATE_SET "max2" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.2; + after: "thumb_gen6"; + } + program { + name: "thumb_gen6"; + action: STATE_SET "default" 0.0; + target: "icon"; + transition: SINUSOIDAL 0.3; + } + } +} group { name: "e/fileman/default/list/fixed"; parts { @@ -1283,8 +2766,72 @@ group { color: 0 0 0 0; } } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } program { name: "go_active_pre"; signal: "e,state,selected"; @@ -1959,8 +3506,72 @@ group { color: 0 0 0 0; } } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } program { name: "go_active_pre"; signal: "e,state,selected"; @@ -2122,1359 +3733,6 @@ group { } } -/* -group { - name: "e/fileman/default/list/variable"; - parts { - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 64; // BLAH - image { - normal: "e17_ilist_bg0.png"; - border: 3 3 3 3; - } - } - } - part { - name: "title_shadow2"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow2.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - visible: 1; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow2.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 255; - } - } - part { - name: "title_shadow1"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow1.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - visible: 1; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow1.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 255; - } - } - part { - name: "title_bar"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - image { - normal: "e17_titlebar.png"; - border: 8 8 8 8; - } - rel1 { - offset: -4 -4; - } - rel2 { - offset: 3 3; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "icon_box_shadow"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - to: "icon_box"; - relative: 0.0 0.0; - offset: -1 -1; - } - rel2 { - to: "icon_box"; - relative: 1.0 1.0; - offset: 2 2; - } - image { - normal: "e17_mini_button_shadow2.png"; - border: 6 6 6 6; - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon_box"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - align: 0.5 0.5; - rel1 { - to: "e.swallow.icon"; - relative: 0.0 0.0; - offset: -1 -1; - } - rel2 { - to: "e.swallow.icon"; - relative: 1.0 1.0; - offset: 0 0; - } - color: 0 0 0 64; - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon_box_bg"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - to: "icon_box"; - relative: 0.0 0.0; - offset: 1 1; - } - rel2 { - to: "icon_box"; - relative: 1.0 1.0; - offset: -2 -2; - } - image { - normal: "e17_fileman_thumb_bg.png"; - } - fill { - smooth: 0; - size { - relative: 0 0; - offset: 32 32; - } - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon0"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - color: 0 0 0 0; - } - } - part { - name: "icon"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.5 0.5; - aspect: 1.0 1.0; - visible: 0; - rel1 { - to: "icon0"; - } - rel2 { - to: "icon0"; - } - color: 0 0 0 0; - } - description { - state: "min" 0.0; - inherit: "default" 0.0; - max: 0 0; - } - description { - state: "max" 0.0; - inherit: "default" 0.0; - rel1 { - to: "icon0"; - relative: 0.0 0.0; - offset: -4 -4; - } - rel2 { - to: "icon0"; - relative: 1.0 1.0; - offset: 3 3; - } - } - description { - state: "max2" 0.0; - inherit: "default" 0.0; - rel1 { - to: "icon0"; - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - to: "icon0"; - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { - name: "e.swallow.icon"; - type: SWALLOW; - description { - state: "default" 0.0; - align: 0.5 0.5; -// fixed: 1 1; - rel1 { - to: "icon"; - } - rel2 { - to: "icon"; - } - } - } - part { - name: "e.text.label"; - type: TEXT; - effect: SHADOW; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 16; - rel1 { - to_x: "icon0"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 255 255 255 128; - color_class: "ilist_item"; - text { - text: "Item Label"; - font: "Edje-Vera"; - size: 10; -// min: 1 1; - align: 0.0 0.5; - text_class: "ilist_item"; - } - } - } - part { - name: "title_glint_clip"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - rel1 { - offset: 3 3; - to: "title_bar"; - } - rel2 { - offset: -4 -4; - to: "title_bar"; - } - color: 255 255 255 255; - } - } - part { - name: "title_glint_1"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 0.0 0.0; - max: 34 13; - rel1 { - relative: 0.0 0.0; - offset: 2 2; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -3 -3; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint1.png"; - border: 5 0 5 0; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "title_glint_2"; - mouse_events: 0; - clip_to: "title_glint_clip"; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 1.0 0.5; - max: 0 0; - rel1 { - relative: 0.0 0.0; - offset: 3 3; - to: "title_bar"; - } - rel2 { - relative: 0.0 1.0; - offset: 3 -4; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint2.png"; - border: 0 0 5 5; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - max: 169 9999; - min: 169 8; - align: 0.5 0.5; - rel1 { - relative: 0.0 0.0; - offset: 3 3; - } - rel2 { - relative: 0.0 1.0; - offset: 3 -4; - } - } - description { - state: "active2" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 128; - max: 169 9999; - min: 169 8; - align: 0.5 0.5; - rel1 { - relative: 1.0 0.0; - offset: -4 3; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -4; - } - } - description { - state: "active3" 0.0; - inherit: "default" 0.0; - visible: 0; - color: 255 255 255 0; - max: 169 9999; - min: 169 8; - align: 0.0 0.5; - rel1 { - relative: 1.0 0.0; - offset: -4 3; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -4; - } - } - } - part { - name: "title_glint_3"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 1.0 1.0; - max: 34 13; - rel1 { - relative: 0.0 0.0; - offset: 2 2; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -3 -3; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint3.png"; - border: 0 5 0 5; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "event"; - type: RECT; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - } - programs { - program { - name: "go_active_pre"; - signal: "e,state,selected"; - source: "e"; - action: STATE_SET "default" 0.0; - target: "title_bar"; - target: "title_shadow1"; - target: "title_shadow2"; - after: "go_active"; - } - program { - name: "go_active"; - action: STATE_SET "active" 0.0; - target: "title_bar"; - transition: LINEAR 0.05; - after: "go_active2"; - } - program { - name: "go_active2"; - action: STATE_SET "active" 0.0; - target: "title_shadow1"; - transition: LINEAR 0.05; - after: "go_active3"; - after: "go_active3b"; - } - program { - name: "go_active3"; - action: STATE_SET "active" 0.0; - target: "title_shadow2"; - transition: LINEAR 0.05; - } - program { - name: "go_active3b"; - action: STATE_SET "active" 0.0; - target: "title_glint_1"; - target: "title_glint_2"; - transition: LINEAR 0.05; - after: "go_active4"; - after: "go_active4b"; - } - program { - name: "go_active4"; - action: STATE_SET "active2" 0.0; - target: "title_glint_2"; - transition: LINEAR 0.2; - after: "go_active5"; - after: "go_active5b"; - } - program { - name: "go_active4b"; - action: STATE_SET "active" 0.0; - target: "title_glint_3"; - transition: LINEAR 0.2; - } - program { - name: "go_active5"; - action: STATE_SET "active3" 0.0; - target: "title_glint_2"; - transition: LINEAR 0.05; - } - program { - name: "go_active5b"; - action: STATE_SET "default" 0.0; - target: "title_glint_3"; - transition: LINEAR 0.1; - after: "go_active6"; - } - program { - name: "go_active6"; - action: STATE_SET "default" 0.0; - target: "title_glint_1"; - target: "title_glint_2"; - target: "title_glint_3"; - } - - program { - name: "go_passive_pre"; - signal: "e,state,unselected"; - source: "e"; - action: STATE_SET "active" 0.0; - target: "title_bar"; - target: "title_shadow1"; - target: "title_shadow2"; - after: "go_passive"; - } - program { - name: "go_passive"; - action: STATE_SET "default" 0.0; - target: "title_shadow2"; - transition: LINEAR 0.1; - after: "go_passive2"; - } - program { - name: "go_passive2"; - action: STATE_SET "default" 0.0; - target: "title_shadow1"; - transition: LINEAR 0.1; - after: "go_passive3"; - } - program { - name: "go_passive3"; - action: STATE_SET "default" 0.0; - target: "title_bar"; - transition: LINEAR 0.1; - } - program { - name: "thumb_gen"; - signal: "e,action,thumb,gen"; - source: "e"; - action: STATE_SET "visible" 0.0; - target: "icon_box_shadow"; - target: "icon_box"; - target: "icon_box_bg"; - after: "thumb_gen2"; - } - program { - name: "thumb_gen-"; - signal: "e,action,thumb,gen,alpha"; - source: "e"; - action: STATE_SET "default" 0.0; - target: "icon_box_shadow"; - target: "icon_box"; - target: "icon_box_bg"; - after: "thumb_gen2"; - } - program { - name: "thumb_gen2"; - action: STATE_SET "min" 0.0; - target: "icon"; - after: "thumb_gen3"; - } - program { - name: "thumb_gen3"; - action: STATE_SET "max" 0.0; - target: "icon"; - transition: DECELERATE 0.2; - after: "thumb_gen4"; - } - program { - name: "thumb_gen4"; - action: STATE_SET "default" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.1; - after: "thumb_gen5"; - } - program { - name: "thumb_gen5"; - action: STATE_SET "max2" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.2; - after: "thumb_gen6"; - } - program { - name: "thumb_gen6"; - action: STATE_SET "default" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.3; - } - } -} - -group { - name: "e/fileman/default/list_odd/variable"; - parts { - part { - name: "base"; - mouse_events: 0; - description { - state: "default" 0.0; - color: 255 255 255 64; // BLAH - image { - normal: "e17_ilist_bg1.png"; - border: 3 3 3 3; - } - } - } - part { - name: "title_shadow2"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow2.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - visible: 1; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow2.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 255; - } - } - part { - name: "title_shadow1"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow1.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - visible: 1; - rel1 { - relative: 0.0 0.0; - offset: 0 0; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -1 -1; - to: "title_bar"; - } - image { - normal: "e17_titlebar_shadow1.png"; - border: 8 8 8 8; - } - fill { - smooth: 0; - } - color: 255 255 255 255; - } - } - part { - name: "title_bar"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - image { - normal: "e17_titlebar.png"; - border: 8 8 8 8; - } - rel1 { - offset: -4 -4; - } - rel2 { - offset: 3 3; - } - color: 255 255 255 0; - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "icon_box_shadow"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - to: "icon_box"; - relative: 0.0 0.0; - offset: -1 -1; - } - rel2 { - to: "icon_box"; - relative: 1.0 1.0; - offset: 2 2; - } - image { - normal: "e17_mini_button_shadow2.png"; - border: 6 6 6 6; - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon_box"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - align: 0.5 0.5; - rel1 { - to: "e.swallow.icon"; - relative: 0.0 0.0; - offset: -1 -1; - } - rel2 { - to: "e.swallow.icon"; - relative: 1.0 1.0; - offset: 0 0; - } - color: 0 0 0 64; - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon_box_bg"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - rel1 { - to: "icon_box"; - relative: 0.0 0.0; - offset: 1 1; - } - rel2 { - to: "icon_box"; - relative: 1.0 1.0; - offset: -2 -2; - } - image { - normal: "e17_fileman_thumb_bg.png"; - } - fill { - smooth: 0; - size { - relative: 0 0; - offset: 32 32; - } - } - } - description { - state: "visible" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } - part { - name: "icon0"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.0 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; - visible: 0; - rel1 { - relative: 0.0 0.0; - offset: 4 4; - } - rel2 { - relative: 0.0 1.0; - offset: 4 -5; - } - color: 0 0 0 0; - } - } - part { - name: "icon"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - align: 0.5 0.5; - aspect: 1.0 1.0; - aspect_preference: BOTH; - visible: 0; - rel1 { - to: "icon0"; - } - rel2 { - to: "icon0"; - } - color: 0 0 0 0; - } - description { - state: "min" 0.0; - inherit: "default" 0.0; - max: 0 0; - } - description { - state: "max" 0.0; - inherit: "default" 0.0; - rel1 { - to: "icon0"; - relative: 0.0 0.0; - offset: -4 -4; - } - rel2 { - to: "icon0"; - relative: 1.0 1.0; - offset: 3 3; - } - } - description { - state: "max2" 0.0; - inherit: "default" 0.0; - rel1 { - to: "icon0"; - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - to: "icon0"; - relative: 1.0 1.0; - offset: 1 1; - } - } - } - part { - name: "e.swallow.icon"; - type: SWALLOW; - description { - state: "default" 0.0; - align: 0.5 0.5; -// fixed: 1 1; - rel1 { - to: "icon"; - } - rel2 { - to: "icon"; - } - } - } - part { - name: "e.text.label"; - type: TEXT; - effect: SHADOW; - mouse_events: 0; - description { - state: "default" 0.0; - min: 16 16; - rel1 { - to_x: "icon0"; - relative: 1.0 0.0; - offset: 4 4; - } - rel2 { - relative: 1.0 1.0; - offset: -5 -5; - } - color: 0 0 0 255; - color3: 255 255 255 128; - color_class: "ilist_item_odd"; - text { - text: "Item Label"; - font: "Edje-Vera"; - size: 10; -// min: 1 1; - align: 0.0 0.5; - text_class: "ilist_item"; - } - } - } - part { - name: "title_glint_clip"; - type: RECT; - mouse_events: 0; - description { - state: "default" 0.0; - rel1 { - offset: 3 3; - to: "title_bar"; - } - rel2 { - offset: -4 -4; - to: "title_bar"; - } - color: 255 255 255 255; - } - } - part { - name: "title_glint_1"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 0.0 0.0; - max: 34 13; - rel1 { - relative: 0.0 0.0; - offset: 2 2; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -3 -3; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint1.png"; - border: 5 0 5 0; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "title_glint_2"; - mouse_events: 0; - clip_to: "title_glint_clip"; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 1.0 0.5; - max: 0 0; - rel1 { - relative: 0.0 0.0; - offset: 3 3; - to: "title_bar"; - } - rel2 { - relative: 0.0 1.0; - offset: 3 -4; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint2.png"; - border: 0 0 5 5; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - max: 169 9999; - min: 169 8; - align: 0.5 0.5; - rel1 { - relative: 0.0 0.0; - offset: 3 3; - } - rel2 { - relative: 0.0 1.0; - offset: 3 -4; - } - } - description { - state: "active2" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 128; - max: 169 9999; - min: 169 8; - align: 0.5 0.5; - rel1 { - relative: 1.0 0.0; - offset: -4 3; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -4; - } - } - description { - state: "active3" 0.0; - inherit: "default" 0.0; - visible: 0; - color: 255 255 255 0; - max: 169 9999; - min: 169 8; - align: 0.0 0.5; - rel1 { - relative: 1.0 0.0; - offset: -4 3; - } - rel2 { - relative: 1.0 1.0; - offset: -4 -4; - } - } - } - part { - name: "title_glint_3"; - mouse_events: 0; - description { - state: "default" 0.0; - visible: 0; - color: 255 255 255 0; - align: 1.0 1.0; - max: 34 13; - rel1 { - relative: 0.0 0.0; - offset: 2 2; - to: "title_bar"; - } - rel2 { - relative: 1.0 1.0; - offset: -3 -3; - to: "title_bar"; - } - image { - normal: "e17_titlebar_glint3.png"; - border: 0 5 0 5; - } - fill { - smooth: 0; - } - } - description { - state: "active" 0.0; - inherit: "default" 0.0; - visible: 1; - color: 255 255 255 255; - } - } - part { - name: "event"; - type: RECT; - description { - state: "default" 0.0; - color: 0 0 0 0; - } - } - } - programs { - program { - name: "go_active_pre"; - signal: "e,state,selected"; - source: "e"; - action: STATE_SET "default" 0.0; - target: "title_bar"; - target: "title_shadow1"; - target: "title_shadow2"; - after: "go_active"; - } - program { - name: "go_active"; - action: STATE_SET "active" 0.0; - target: "title_bar"; - transition: LINEAR 0.05; - after: "go_active2"; - } - program { - name: "go_active2"; - action: STATE_SET "active" 0.0; - target: "title_shadow1"; - transition: LINEAR 0.05; - after: "go_active3"; - after: "go_active3b"; - } - program { - name: "go_active3"; - action: STATE_SET "active" 0.0; - target: "title_shadow2"; - transition: LINEAR 0.05; - } - program { - name: "go_active3b"; - action: STATE_SET "active" 0.0; - target: "title_glint_1"; - target: "title_glint_2"; - transition: LINEAR 0.05; - after: "go_active4"; - after: "go_active4b"; - } - program { - name: "go_active4"; - action: STATE_SET "active2" 0.0; - target: "title_glint_2"; - transition: LINEAR 0.2; - after: "go_active5"; - after: "go_active5b"; - } - program { - name: "go_active4b"; - action: STATE_SET "active" 0.0; - target: "title_glint_3"; - transition: LINEAR 0.2; - } - program { - name: "go_active5"; - action: STATE_SET "active3" 0.0; - target: "title_glint_2"; - transition: LINEAR 0.05; - } - program { - name: "go_active5b"; - action: STATE_SET "default" 0.0; - target: "title_glint_3"; - transition: LINEAR 0.1; - after: "go_active6"; - } - program { - name: "go_active6"; - action: STATE_SET "default" 0.0; - target: "title_glint_1"; - target: "title_glint_2"; - target: "title_glint_3"; - } - - program { - name: "go_passive_pre"; - signal: "e,state,unselected"; - source: "e"; - action: STATE_SET "active" 0.0; - target: "title_bar"; - target: "title_shadow1"; - target: "title_shadow2"; - after: "go_passive"; - } - program { - name: "go_passive"; - action: STATE_SET "default" 0.0; - target: "title_shadow2"; - transition: LINEAR 0.1; - after: "go_passive2"; - } - program { - name: "go_passive2"; - action: STATE_SET "default" 0.0; - target: "title_shadow1"; - transition: LINEAR 0.1; - after: "go_passive3"; - } - program { - name: "go_passive3"; - action: STATE_SET "default" 0.0; - target: "title_bar"; - transition: LINEAR 0.1; - } - program { - name: "thumb_gen"; - signal: "e,action,thumb,gen"; - source: "e"; - action: STATE_SET "visible" 0.0; - target: "icon_box_shadow"; - target: "icon_box"; - target: "icon_box_bg"; - after: "thumb_gen2"; - } - program { - name: "thumb_gen-"; - signal: "e,action,thumb,gen,alpha"; - source: "e"; - action: STATE_SET "default" 0.0; - target: "icon_box_shadow"; - target: "icon_box"; - target: "icon_box_bg"; - after: "thumb_gen2"; - } - program { - name: "thumb_gen2"; - action: STATE_SET "min" 0.0; - target: "icon"; - after: "thumb_gen3"; - } - program { - name: "thumb_gen3"; - action: STATE_SET "max" 0.0; - target: "icon"; - transition: DECELERATE 0.2; - after: "thumb_gen4"; - } - program { - name: "thumb_gen4"; - action: STATE_SET "default" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.1; - after: "thumb_gen5"; - } - program { - name: "thumb_gen5"; - action: STATE_SET "max2" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.2; - after: "thumb_gen6"; - } - program { - name: "thumb_gen6"; - action: STATE_SET "default" 0.0; - target: "icon"; - transition: SINUSOIDAL 0.3; - } - } -} -*/ - group { name: "e/fileman/default/icon/fixed"; parts { @@ -3721,6 +3979,50 @@ group { color: 0 0 0 0; } } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + min: 24 24; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } programs { program { @@ -4041,9 +4343,75 @@ group { state: "default" 0.0; color: 0 0 0 0; } - } + } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + min: 24 24; + rel1 { + relative: 0.75 0.0; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } program { name: "active"; signal: "e,state,selected"; @@ -6962,8 +7330,74 @@ group { color: 0 0 0 0; } } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.75; + } + rel2 { + relative: 1.0 1.0; + offset: -1 -1; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } + programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } program { name: "active"; signal: "e,state,selected"; @@ -7283,8 +7717,72 @@ group { color: 0 0 0 0; } } + part { + name: "dnd_action"; + type: IMAGE; + mouse_events: 0; + repeat_events: 0; + description { + state: "default" 0.0; + color: 0 0 0 0; + } + description { + state: "visible" 0.0; + aspect: 1.0 1.0; + aspect_preference: BOTH; + align: 1.0 1.0; + rel1 { + relative: 0.75 0.75; + } + rel2 { + relative: 1.0 1.0; + } + } + description { + state: "copy" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_copy.png"; + } + } + description { + state: "ask" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_ask.png"; + } + } + description { + state: "move" 0.0; + inherit: "visible" 0.0; + image { + normal: "e17_fileman_move.png"; + } + } + } } programs { + program { + name: "ask"; + signal: "e,state,ask"; + source: "e"; + action: STATE_SET "ask" 0.0; + target: "dnd_action"; + } + program { + name: "move"; + signal: "e,state,move"; + source: "e"; + action: STATE_SET "move" 0.0; + target: "dnd_action"; + } + program { + name: "copy"; + signal: "e,state,copy"; + source: "e"; + action: STATE_SET "copy" 0.0; + target: "dnd_action"; + } program { name: "active"; signal: "e,state,selected"; diff --git a/data/themes/images/e17_fileman_ask.png b/data/themes/images/e17_fileman_ask.png new file mode 100644 index 000000000..79a202ef3 Binary files /dev/null and b/data/themes/images/e17_fileman_ask.png differ diff --git a/data/themes/images/e17_fileman_copy.png b/data/themes/images/e17_fileman_copy.png new file mode 100644 index 000000000..1569469d3 Binary files /dev/null and b/data/themes/images/e17_fileman_copy.png differ diff --git a/data/themes/images/e17_fileman_move.png b/data/themes/images/e17_fileman_move.png new file mode 100644 index 000000000..b0a65a1ee Binary files /dev/null and b/data/themes/images/e17_fileman_move.png differ diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index d24fe8c3d..9202ae7c0 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -30,6 +30,8 @@ static void _e_drag_free(E_Drag *drag); static int _e_dnd_cb_window_shape(void *data, int type, void *event); +static int _e_dnd_cb_key_down(void *data, int type, void *event); +static int _e_dnd_cb_key_up(void *data, int type, void *event); static int _e_dnd_cb_mouse_up(void *data, int type, void *event); static int _e_dnd_cb_mouse_move(void *data, int type, void *event); static int _e_dnd_cb_event_dnd_enter(void *data, int type, void *event); @@ -102,6 +104,12 @@ e_dnd_init(void) _event_handlers = evas_list_append(_event_handlers, ecore_event_handler_add(ECORE_X_EVENT_SELECTION_NOTIFY, _e_dnd_cb_event_dnd_selection, NULL)); + _event_handlers = evas_list_append(_event_handlers, + ecore_event_handler_add(ECORE_X_EVENT_KEY_DOWN, + _e_dnd_cb_key_down, NULL)); + _event_handlers = evas_list_append(_event_handlers, + ecore_event_handler_add(ECORE_X_EVENT_KEY_UP, + _e_dnd_cb_key_up, NULL)); _action = ECORE_X_ATOM_XDND_ACTION_PRIVATE; return 1; @@ -205,6 +213,9 @@ e_drag_new(E_Container *container, int x, int y, ecore_x_window_shadow_tree_flush(); _drag_win_root = drag->container->manager->root; + + drag->cb.key_down = NULL; + drag->cb.key_up = NULL; return drag; } @@ -529,6 +540,18 @@ e_drop_handler_action_get() return _action; } +EAPI void +e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_X_Event_Key_Down *e)) +{ + drag->cb.key_down = func; +} + +EAPI void +e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_X_Event_Key_Up *e)) +{ + drag->cb.key_up = func; +} + /* local subsystem functions */ static void @@ -717,6 +740,10 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action) int dx, dy, dw, dh; Ecore_X_Window win, ignore_win[2]; int responsive = 0; + static struct + { + Ecore_X_Window root, win; + } cache = {0, 0}; // double t1 = ecore_time_get(); //// if (_drag_current) @@ -726,7 +753,13 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action) /* FIXME: this is nasty. every x mouse event we go back to x and do * a whole bunch of round-trips narrowing down the toplevel window * which contains the mouse */ - win = ecore_x_window_shadow_tree_at_xy_with_skip_get(root, x, y, ignore_win, 2); + if (cache.win != root) + { + /* A little bit of caching to avoid trips to X. */ + cache.win = root; + cache.root = ecore_x_window_root_get(root); + } + win = ecore_x_window_shadow_tree_at_xy_with_skip_get(cache.root, x, y, ignore_win, 2); // win = ecore_x_window_at_xy_with_skip_get(x, y, ignore_win, 2); } else @@ -833,8 +866,6 @@ _e_drag_update(Ecore_X_Window root, int x, int y, Ecore_X_Atom action) } } - if(action == ECORE_X_ATOM_ATOM) responsive = 0; - return responsive; // double t2 = ecore_time_get() - t1; //// // printf("DND UPDATE %3.7f\n", t2); //// @@ -1048,6 +1079,38 @@ _e_dnd_cb_window_shape(void *data, int ev_type, void *ev) return 1; } +static int +_e_dnd_cb_key_down(void *data, int type, void *event) +{ + Ecore_X_Event_Key_Down *ev; + + ev = event; + if (ev->win != _drag_win) return 1; + + if (!_drag_current) return 1; + + if (_drag_current->cb.key_down) + _drag_current->cb.key_down(_drag_current, ev); + + return 1; +} + +static int +_e_dnd_cb_key_up(void *data, int type, void *event) +{ + Ecore_X_Event_Key_Up *ev; + + ev = event; + if (ev->win != _drag_win) return 1; + + if (!_drag_current) return 1; + + if (_drag_current->cb.key_up) + _drag_current->cb.key_up(_drag_current, ev); + + return 1; +} + static int _e_dnd_cb_mouse_up(void *data, int type, void *event) { @@ -1069,7 +1132,7 @@ _e_dnd_cb_mouse_move(void *data, int type, void *event) ev = event; if (ev->win != _drag_win) return 1; - _e_drag_update(_drag_win_root, ev->x, ev->y, ECORE_X_ATOM_ATOM); + if(!_xdnd) _e_drag_update(_drag_win_root, ev->x, ev->y, ECORE_X_ATOM_XDND_ACTION_PRIVATE); return 1; } diff --git a/src/bin/e_dnd.h b/src/bin/e_dnd.h index 069d0da12..84734cd4d 100644 --- a/src/bin/e_dnd.h +++ b/src/bin/e_dnd.h @@ -38,6 +38,8 @@ struct _E_Drag struct { void *(*convert)(E_Drag *drag, const char *type); void (*finished)(E_Drag *drag, int dropped); + void (*key_down)(E_Drag *drag, Ecore_X_Event_Key_Down *e); + void (*key_up)(E_Drag *drag, Ecore_X_Event_Key_Up *e); } cb; E_Container *container; @@ -120,6 +122,8 @@ EAPI void e_drag_object_set(E_Drag *drag, Evas_Object *object); EAPI void e_drag_move(E_Drag *drag, int x, int y); EAPI void e_drag_resize(E_Drag *drag, int w, int h); EAPI void e_drag_idler_before(void); +EAPI void e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_X_Event_Key_Down *e)); +EAPI void e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, Ecore_X_Event_Key_Up *e)); /* x and y are the coords where the mouse is when dragging starts */ EAPI int e_drag_start(E_Drag *drag, int x, int y); diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index 71926817f..230ca2e80 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -5248,6 +5248,47 @@ _e_fm2_cb_drag_finished(E_Drag *drag, int dropped) free(drag->data); } +void +_e_fm_drag_key_down_cb(E_Drag *drag, Ecore_X_Event_Key_Down *e) +{ + if (!strncmp(e->keyname, "Alt", 3)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_ASK); + edje_object_signal_emit(drag->object, "e,state,ask", "e"); + } + else if (!strncmp(e->keyname, "Shift", 5)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_MOVE); + edje_object_signal_emit(drag->object, "e,state,move", "e"); + } + else if (!strncmp(e->keyname, "Control", 7)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_COPY); + edje_object_signal_emit(drag->object, "e,state,copy", "e"); + } +} + +void +_e_fm_drag_key_up_cb(E_Drag *drag, Ecore_X_Event_Key_Up *e) +{ + /* Default action would be move. ;) */ + + if (!strncmp(e->keyname, "Alt", 3)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_MOVE); + } + else if (!strncmp(e->keyname, "Shift", 5)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_MOVE); + } + else if (!strncmp(e->keyname, "Control", 7)) + { + ecore_x_dnd_source_action_set(ECORE_X_ATOM_XDND_ACTION_MOVE); + } + + edje_object_signal_emit(drag->object, "e,state,move", "e"); +} + static void _e_fm2_cb_icon_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info) { @@ -5385,8 +5426,12 @@ _e_fm2_cb_icon_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_inf edje_object_signal_emit(o, "e,state,selected", "e"); edje_object_signal_emit(o2, "e,state,selected", "e"); e_drag_object_set(d, o); + edje_object_signal_emit(o, "e,state,move", "e"); e_drag_resize(d, w, h); + e_drag_key_down_cb_set(d, _e_fm_drag_key_down_cb); + e_drag_key_up_cb_set(d, _e_fm_drag_key_up_cb); + e_drag_xdnd_start(d, ic->drag.x + ic->x + ic->sd->x - ic->sd->pos.x, ic->drag.y + ic->y + ic->sd->y - ic->sd->pos.y);