1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
12 "#<#{self.class.name}:#{@name}>"
19 def initialize(name, &blk)
32 def initialize(name, length, before, animation, after = nil)
35 @animation = animation
47 i = (t - @start).to_f / @length
61 def initialize(interval, timer_class = Qt::Timer)
63 @timer = timer_class.every(interval) {|t| tick(t) }
69 @actions.reject! do |action|