--
-$Id: ChangeLog 27 2005-04-14 19:47:06Z tilman $
+$Id: ChangeLog 28 2005-04-14 19:53:45Z tilman $
++
2005-04-14 Tilman Sauerbeck (tilman at code-monkey de)
* lib/part.rb: Code cleanup
* lib/part.rb: Fixed the regular expression that checks
whether a font name is actually a filename
+ * lib/{redact,part,program}.rb: Added a few missing "protected"
+ statements
2005-04-09 Tilman Sauerbeck (tilman at code-monkey de)
* test/crossfade.rb: Updated for recent tween mode fixes
#--
-# $Id: part.rb 27 2005-04-14 19:47:06Z tilman $
+# $Id: part.rb 28 2005-04-14 19:53:45Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@id = image.id
end
+ protected
def to_eet_name
"Edje_Part_Image_Id"
end
@border = [r, r, t, b]
end
+ protected
def to_eet_properties
super.merge!(
{"image.id" => [@image.nil? ? -1 : @image.id],
@shadow_color = parse_hex_color(c)
end
+ protected
def to_eet_properties
super.merge!(
{"color2.r" => [@outline_color[0], :char],
#--
-# $Id: program.rb 25 2005-04-14 19:42:06Z tilman $
+# $Id: program.rb 28 2005-04-14 19:53:45Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@in_range = v
end
+ protected
def to_eet_name
"Edje_Program"
end
@time = v
end
+ protected
def to_eet_properties
mode = case @mode
when :linear: 1
@targets = ProgramArgs.new(collection)
end
+ protected
def to_eet_properties
super.merge!({"targets" => [@targets]})
end
@emission_source = v.to_str.dup
end
+ protected
def to_eet_properties
super.merge!(
{"state" => [@emission_signal],
@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
#--
-# $Id: redact.rb 25 2005-04-14 19:42:06Z tilman $
+# $Id: redact.rb 28 2005-04-14 19:53:45Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
block_given? ? (yield c) : c
end
+ protected
def to_eet_name
"Edje_File"
end
@value = value.to_str.dup.freeze
end
+ protected
def to_eet_name
"Edje_Data"
end
end
class FontDirectory < Array # :nodoc:
+ protected
def to_eet_name
"Edje_Font_Directory"
end
@filename = filename.to_str.dup.freeze
end
+ protected
def to_eet_name
"Edje_Font_Directory_Entry"
end
entry.id = size - 1
end
+ protected
def to_eet_name
"Edje_Image_Directory"
end
end
end
+ protected
def to_eet_name
"Edje_Image_Directory_Entry"
end
end
class CollectionDirectory < Array # :nodoc:
+ protected
def to_eet_name
"Edje_Part_Collection_Directory"
end
@id = col.id
end
+ protected
def to_eet_name
"Edje_Part_Collection_Directory_Entry"
end
end
end
+ protected
def to_eet_name
"Edje_Part_Collection"
end