lib/reports/ReportTableLegend.rb in taskjuggler-0.0.8 vs lib/reports/ReportTableLegend.rb in taskjuggler-0.0.9
- old
+ new
@@ -1,11 +1,12 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = ReportTableLegend.rb -- The TaskJuggler III Project Management Software
#
-# Copyright (c) 2006, 2007, 2008, 2009, 2010 by Chris Schlaeger <cs@kde.org>
+# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011
+# by Chris Schlaeger <chris@linux.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
@@ -52,15 +53,14 @@
legend << headlineToHTML('Gantt Chart Symbols:')
# Generate the Gantt chart symbols
if @showGanttItems
legend << (row = XMLElement.new('tr', 'class' => 'tj_legend_row'))
- row << ganttItemToHTML(GanttContainer.new(nil, 0, 15, 10, 35, 0),
+ row << ganttItemToHTML(GanttContainer.new(15, 10, 35, 0),
'Container Task', 40)
- row << ganttItemToHTML(GanttTaskBar.new(nil, 0, 15, 5, 35, 0),
+ row << ganttItemToHTML(GanttTaskBar.new(nil, 15, 5, 35, 0),
'Normal Task', 40)
- row << ganttItemToHTML(GanttMilestone.new(nil, 15, 10, 0),
- 'Milestone', 20)
+ row << ganttItemToHTML(GanttMilestone.new(15, 10, 0), 'Milestone', 20)
row << XMLElement.new('td', 'class' => 'tj_legend_spacer')
end
legend << itemsToHTML(@ganttItems)