X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=lib%2Fredact%2Fprogram.rb;h=4a17120c1464a558ca521ae065572743db41261a;hb=dc00882e6139ccbee72bad4f96cabe950ba0c338;hp=bde0c030b43fc8b4682ad559382d463e8d67842a;hpb=b8a58959d74214164dfe0477fe36ff839728557a;p=redact.git diff --git a/lib/redact/program.rb b/lib/redact/program.rb index bde0c03..4a17120 100644 --- a/lib/redact/program.rb +++ b/lib/redact/program.rb @@ -1,5 +1,5 @@ #-- -# $Id: program.rb 25 2005-04-14 19:42:06Z tilman $ +# $Id: program.rb 33 2005-04-24 15:54:39Z tilman $ # # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de) # @@ -84,6 +84,7 @@ module Redact @in_range = v end + protected def to_eet_name "Edje_Program" end @@ -139,6 +140,7 @@ module Redact @time = v end + protected def to_eet_properties mode = case @mode when :linear: 1 @@ -166,6 +168,7 @@ module Redact @targets = ProgramArgs.new(collection) end + protected def to_eet_properties super.merge!({"targets" => [@targets]}) end @@ -178,8 +181,8 @@ module Redact super @type = TYPE_EMIT_SIGNAL - @emission_signal = nil - @emission_source = nil + @emission_signal = "" + @emission_source = "" end def emission_signal=(v) @@ -190,6 +193,7 @@ module Redact @emission_source = v.to_str.dup end + protected def to_eet_properties super.merge!( {"state" => [@emission_signal], @@ -236,18 +240,21 @@ module Redact @id = v.id end + protected def to_eet_properties {"id" => [@id]} end end class ProgramAfter < ProgramArg + protected def to_eet_name "Edje_Program_After" end end class ProgramTarget < ProgramArg + protected def to_eet_name "Edje_Program_Target" end