X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fplaylist_item.rb;h=39e0de9f6a3abf890bdcad7a8ba81bdad47c8237;hb=6e1698fc4a15633e9cb27ed2a4fba0e5f6094ddf;hp=ed7762410c262aa793b52ced9d7c305f1c4b7267;hpb=6ae229da7767d20220936fc939648d871a923f56;p=multipass-eu.git diff --git a/src/playlist_item.rb b/src/playlist_item.rb index ed77624..39e0de9 100644 --- a/src/playlist_item.rb +++ b/src/playlist_item.rb @@ -1,4 +1,4 @@ -# $Id: playlist_item.rb 9 2005-04-24 15:44:54Z tilman $ +# $Id: playlist_item.rb 12 2005-04-24 19:51:18Z tilman $ TEXT_COLOR_HILIGHT = "#f0fafd" @@ -25,7 +25,18 @@ EDJE.collection("playlist_item") do |c| end ["default", "selected"].each do |state| + c.part("title").description(state) do |d| + d.rel[1].set_to(c.part("length"), nil) + d.rel[1].set_rel(0.0, 1.0) + + #d.rel[0].set_offset(0, 0) + d.rel[1].set_offset(5, 0) + end + c.part("length").description(state) do |d| + d.rel[0].set_rel(1.0, 0.0) + d.rel[0].set_offset(-35, 0) + d.text = "04:11" d.set_text_align(1.0) end @@ -33,7 +44,7 @@ EDJE.collection("playlist_item") do |c| ["selected", "unselected"].each do |state| c.program("playlist_item.#{state}", :set_state) do |p| - p.signal = "PLAYLIST_ITEM_#{state.upcase}" + p.signal = "playlist_item.#{state}" p.state = state == "unselected" ? "default" : state p.mode = state == "selected" ? :accelerate : :decelerate p.time = 0.5 @@ -41,4 +52,10 @@ EDJE.collection("playlist_item") do |c| p.targets << ProgramTarget.new(c.part("length")) end end + + c.program("playlist_item.doubleclick", :emit_signal) do |p| + p.signal = "mouse,down,1,double" + p.source = "*" + p.emission_signal = "playlist_item.play" + end end