taskjuggler 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/benchmarks/depends.tjp +2 -1
- data/benchmarks/htmltaskreport.tjp +2 -1
- data/doc/classes/AppConfig.html +124 -120
- data/doc/classes/Arguments.html +10 -6
- data/doc/classes/Object.html +229 -0
- data/doc/classes/String.html +35 -31
- data/doc/classes/TaskJuggler/Account.html +18 -18
- data/doc/classes/TaskJuggler/AccountAttribute.html +261 -0
- data/doc/classes/TaskJuggler/AccountScenario.html +12 -12
- data/doc/classes/TaskJuggler/Allocation.html +34 -30
- data/doc/classes/TaskJuggler/AllocationAttribute.html +70 -70
- data/doc/classes/TaskJuggler/AttributeBase.html +131 -147
- data/doc/classes/TaskJuggler/AttributeDefinition.html +38 -21
- data/doc/classes/TaskJuggler/BatchProcessor.html +313 -0
- data/doc/classes/TaskJuggler/Booking.html +22 -18
- data/doc/classes/TaskJuggler/BookingListAttribute.html +42 -42
- data/doc/classes/TaskJuggler/BooleanAttribute.html +40 -40
- data/doc/classes/TaskJuggler/CSVFile.html +28 -24
- data/doc/classes/TaskJuggler/Charge.html +22 -18
- data/doc/classes/TaskJuggler/ChargeListAttribute.html +30 -30
- data/doc/classes/TaskJuggler/ChargeSet.html +41 -37
- data/doc/classes/TaskJuggler/ChargeSetListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/ColumnListAttribute.html +231 -0
- data/doc/classes/TaskJuggler/ColumnTable.html +23 -21
- data/doc/classes/TaskJuggler/DateAttribute.html +20 -20
- data/doc/classes/TaskJuggler/DefinitionListAttribute.html +162 -0
- data/doc/classes/TaskJuggler/DependencyListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/DurationAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FixnumAttribute.html +20 -20
- data/doc/classes/TaskJuggler/FlagListAttribute.html +42 -42
- data/doc/classes/TaskJuggler/FloatAttribute.html +30 -30
- data/doc/classes/TaskJuggler/FormatListAttribute.html +197 -0
- data/doc/classes/TaskJuggler/GanttChart.html +236 -207
- data/doc/classes/TaskJuggler/GanttContainer.html +46 -42
- data/doc/classes/TaskJuggler/GanttHeader.html +16 -12
- data/doc/classes/TaskJuggler/GanttHeaderScaleItem.html +16 -12
- data/doc/classes/TaskJuggler/GanttLine.html +28 -24
- data/doc/classes/TaskJuggler/GanttLoadStack.html +22 -18
- data/doc/classes/TaskJuggler/GanttMilestone.html +46 -42
- data/doc/classes/TaskJuggler/GanttRouter.html +104 -98
- data/doc/classes/TaskJuggler/GanttTaskBar.html +46 -42
- data/doc/classes/TaskJuggler/HTMLDocument.html +12 -12
- data/doc/classes/TaskJuggler/HTMLGraphics.html +12 -12
- data/doc/classes/TaskJuggler/Interval.html +126 -120
- data/doc/classes/TaskJuggler/IntervalListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/JobInfo.html +284 -0
- data/doc/classes/TaskJuggler/Journal.html +197 -0
- data/doc/classes/TaskJuggler/JournalEntry.html +218 -0
- data/doc/classes/TaskJuggler/KeywordArray.html +179 -0
- data/doc/classes/TaskJuggler/KeywordDocumentation.html +445 -396
- data/doc/classes/TaskJuggler/Limits/Limit.html +34 -30
- data/doc/classes/TaskJuggler/Limits.html +68 -62
- data/doc/classes/TaskJuggler/LimitsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ListAttributeBase.html +207 -0
- data/doc/classes/TaskJuggler/Log.html +72 -68
- data/doc/classes/TaskJuggler/LogicalAttribute.html +38 -34
- data/doc/classes/TaskJuggler/LogicalExpression.html +16 -12
- data/doc/classes/TaskJuggler/LogicalExpressionAttribute.html +194 -0
- data/doc/classes/TaskJuggler/LogicalFlag.html +32 -32
- data/doc/classes/TaskJuggler/LogicalFunction.html +28 -24
- data/doc/classes/TaskJuggler/LogicalOperation.html +17 -13
- data/doc/classes/TaskJuggler/Macro.html +10 -6
- data/doc/classes/TaskJuggler/MacroParser.html +36 -36
- data/doc/classes/TaskJuggler/MacroTable.html +40 -36
- data/doc/classes/TaskJuggler/Message.html +16 -12
- data/doc/classes/TaskJuggler/MessageHandler.html +16 -12
- data/doc/classes/TaskJuggler/Navigator.html +249 -0
- data/doc/classes/TaskJuggler/OnShiftCache.html +316 -0
- data/doc/classes/TaskJuggler/Project.html +1064 -678
- data/doc/classes/TaskJuggler/ProjectFileParser.html +90 -85
- data/doc/classes/TaskJuggler/PropertyAttribute.html +194 -0
- data/doc/classes/TaskJuggler/PropertyList.html +114 -113
- data/doc/classes/TaskJuggler/PropertySet.html +355 -312
- data/doc/classes/TaskJuggler/PropertyTreeNode.html +527 -474
- data/doc/classes/TaskJuggler/Query.html +90 -85
- data/doc/classes/TaskJuggler/RTPNavigator.html +292 -0
- data/doc/classes/TaskJuggler/RTPReport.html +301 -0
- data/doc/classes/TaskJuggler/RealFormat.html +114 -57
- data/doc/classes/TaskJuggler/RealFormatAttribute.html +162 -0
- data/doc/classes/TaskJuggler/ReferenceAttribute.html +87 -20
- data/doc/classes/TaskJuggler/Report.html +82 -291
- data/doc/classes/TaskJuggler/ReportBase.html +448 -0
- data/doc/classes/TaskJuggler/ReportContext.html +243 -0
- data/doc/classes/TaskJuggler/ReportTable.html +158 -129
- data/doc/classes/TaskJuggler/ReportTableCell.html +30 -26
- data/doc/classes/TaskJuggler/ReportTableColumn.html +29 -25
- data/doc/classes/TaskJuggler/ReportTableLegend.html +28 -24
- data/doc/classes/TaskJuggler/ReportTableLine.html +34 -30
- data/doc/classes/TaskJuggler/Resource.html +12 -12
- data/doc/classes/TaskJuggler/ResourceListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/ResourceListRE.html +49 -57
- data/doc/classes/TaskJuggler/ResourceScenario.html +126 -126
- data/doc/classes/TaskJuggler/RichText.html +52 -48
- data/doc/classes/TaskJuggler/RichTextAttribute.html +30 -30
- data/doc/classes/TaskJuggler/RichTextDocument.html +41 -37
- data/doc/classes/TaskJuggler/RichTextElement.html +274 -264
- data/doc/classes/TaskJuggler/RichTextException.html +13 -13
- data/doc/classes/TaskJuggler/RichTextParser.html +48 -47
- data/doc/classes/TaskJuggler/RichTextProtocolExample.html +52 -55
- data/doc/classes/TaskJuggler/RichTextProtocolHandler.html +55 -10
- data/doc/classes/TaskJuggler/RichTextScanner.html +106 -245
- data/doc/classes/TaskJuggler/RichTextSnip.html +28 -24
- data/doc/classes/TaskJuggler/RichTextSyntaxRules.html +381 -301
- data/doc/classes/TaskJuggler/Scenario.html +6 -6
- data/doc/classes/TaskJuggler/ScenarioData.html +40 -36
- data/doc/classes/TaskJuggler/ScenarioListAttribute.html +229 -0
- data/doc/classes/TaskJuggler/Scoreboard.html +70 -66
- data/doc/classes/TaskJuggler/Shift.html +18 -18
- data/doc/classes/TaskJuggler/ShiftAssignment.html +58 -54
- data/doc/classes/TaskJuggler/ShiftAssignments.html +82 -78
- data/doc/classes/TaskJuggler/ShiftAssignmentsAttribute.html +40 -40
- data/doc/classes/TaskJuggler/ShiftScenario.html +24 -24
- data/doc/classes/TaskJuggler/SortListAttribute.html +196 -0
- data/doc/classes/TaskJuggler/SourceFileInfo.html +16 -12
- data/doc/classes/TaskJuggler/StringAttribute.html +30 -30
- data/doc/classes/TaskJuggler/SymbolAttribute.html +20 -20
- data/doc/classes/TaskJuggler/SyntaxReference.html +46 -42
- data/doc/classes/TaskJuggler/TOCEntry.html +16 -12
- data/doc/classes/TaskJuggler/TableColumnDefinition.html +48 -33
- data/doc/classes/TaskJuggler/TableOfContents.html +22 -18
- data/doc/classes/TaskJuggler/TableReport.html +1036 -0
- data/doc/classes/TaskJuggler/Task.html +12 -12
- data/doc/classes/TaskJuggler/TaskDependency.html +16 -12
- data/doc/classes/TaskJuggler/TaskListAttribute.html +46 -46
- data/doc/classes/TaskJuggler/TaskListRE.html +49 -58
- data/doc/classes/TaskJuggler/TaskScenario.html +1270 -1180
- data/doc/classes/TaskJuggler/TextParser/Pattern.html +100 -96
- data/doc/classes/TaskJuggler/TextParser/Rule.html +88 -84
- data/doc/classes/TaskJuggler/TextParser/StackElement.html +16 -12
- data/doc/classes/TaskJuggler/TextParser/TextParserResultArray.html +12 -12
- data/doc/classes/TaskJuggler/TextParser/TokenDoc.html +10 -6
- data/doc/classes/TaskJuggler/TextParser.html +203 -140
- data/doc/classes/TaskJuggler/TextReport.html +364 -0
- data/doc/classes/TaskJuggler/TextScanner/BufferStreamHandle.html +70 -70
- data/doc/classes/TaskJuggler/TextScanner/FileStreamHandle.html +50 -42
- data/doc/classes/TaskJuggler/TextScanner/StreamHandle.html +16 -12
- data/doc/classes/TaskJuggler/TextScanner.html +334 -240
- data/doc/classes/TaskJuggler/TjException.html +6 -6
- data/doc/classes/TaskJuggler/TjTime.html +547 -497
- data/doc/classes/TaskJuggler/TjpExample.html +29 -25
- data/doc/classes/TaskJuggler/TjpExportRE.html +77 -97
- data/doc/classes/TaskJuggler/TjpSyntaxRules.html +3911 -3886
- data/doc/classes/TaskJuggler/UserManual.html +54 -54
- data/doc/classes/TaskJuggler/WorkingHours.html +53 -49
- data/doc/classes/TaskJuggler/WorkingHoursAttribute.html +53 -85
- data/doc/classes/TaskJuggler/XMLBlob.html +21 -21
- data/doc/classes/TaskJuggler/XMLComment.html +21 -21
- data/doc/classes/TaskJuggler/XMLDocument.html +28 -24
- data/doc/classes/TaskJuggler/XMLElement.html +70 -58
- data/doc/classes/TaskJuggler/XMLNamedText.html +11 -11
- data/doc/classes/TaskJuggler/XMLText.html +36 -36
- data/doc/classes/TaskJuggler.html +266 -183
- data/doc/files/COPYING.html +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/AccountScenario_rb.html +1 -1
- data/doc/files/lib/Account_rb.html +1 -1
- data/doc/files/lib/Allocation_rb.html +1 -1
- data/doc/files/lib/AppConfig_rb.html +1 -1
- data/doc/files/lib/AttributeBase_rb.html +11 -1
- data/doc/files/lib/AttributeDefinition_rb.html +1 -1
- data/doc/files/lib/Attributes_rb.html +1 -1
- data/doc/files/lib/{LogicalFlag_rb.html → BatchProcessor_rb.html} +8 -6
- data/doc/files/lib/Booking_rb.html +1 -1
- data/doc/files/lib/ChargeSet_rb.html +1 -1
- data/doc/files/lib/Charge_rb.html +1 -1
- data/doc/files/lib/HTMLDocument_rb.html +1 -1
- data/doc/files/lib/Interval_rb.html +1 -1
- data/doc/files/lib/Journal_rb.html +106 -0
- data/doc/files/lib/KeywordArray_rb.html +106 -0
- data/doc/files/lib/KeywordDocumentation_rb.html +1 -1
- data/doc/files/lib/Limits_rb.html +1 -1
- data/doc/files/lib/Log_rb.html +1 -1
- data/doc/files/lib/LogicalExpression_rb.html +1 -3
- data/doc/files/lib/LogicalFunction_rb.html +1 -1
- data/doc/files/lib/LogicalOperation_rb.html +1 -1
- data/doc/files/lib/MacroParser_rb.html +1 -1
- data/doc/files/lib/MacroTable_rb.html +1 -1
- data/doc/files/lib/MessageHandler_rb.html +1 -1
- data/doc/files/lib/Message_rb.html +1 -1
- data/doc/files/lib/ProjectFileParser_rb.html +5 -1
- data/doc/files/lib/Project_rb.html +5 -1
- data/doc/files/lib/PropertyList_rb.html +1 -1
- data/doc/files/lib/PropertySet_rb.html +1 -1
- data/doc/files/lib/PropertyTreeNode_rb.html +1 -1
- data/doc/files/lib/Query_rb.html +1 -1
- data/doc/files/lib/RTPNavigator_rb.html +120 -0
- data/doc/files/lib/RTPReport_rb.html +118 -0
- data/doc/files/lib/RealFormat_rb.html +1 -1
- data/doc/files/lib/ResourceScenario_rb.html +1 -1
- data/doc/files/lib/Resource_rb.html +1 -1
- data/doc/files/lib/RichTextDocument_rb.html +1 -1
- data/doc/files/lib/RichTextElement_rb.html +1 -1
- data/doc/files/lib/RichTextParser_rb.html +1 -1
- data/doc/files/lib/RichTextProtocolExample_rb.html +1 -1
- data/doc/files/lib/RichTextProtocolHandler_rb.html +1 -1
- data/doc/files/lib/RichTextScanner_rb.html +1 -1
- data/doc/files/lib/RichTextSnip_rb.html +1 -1
- data/doc/files/lib/RichTextSyntaxRules_rb.html +1 -1
- data/doc/files/lib/RichText_rb.html +1 -1
- data/doc/files/lib/ScenarioData_rb.html +1 -1
- data/doc/files/lib/Scenario_rb.html +1 -1
- data/doc/files/lib/Scoreboard_rb.html +1 -1
- data/doc/files/lib/ShiftAssignments_rb.html +1 -1
- data/doc/files/lib/ShiftScenario_rb.html +1 -1
- data/doc/files/lib/Shift_rb.html +1 -1
- data/doc/files/lib/SourceFileInfo_rb.html +1 -1
- data/doc/files/lib/SyntaxReference_rb.html +1 -1
- data/doc/files/lib/TOCEntry_rb.html +1 -1
- data/doc/files/lib/TableColumnDefinition_rb.html +1 -1
- data/doc/files/lib/TableOfContents_rb.html +1 -1
- data/doc/files/lib/TaskDependency_rb.html +1 -1
- data/doc/files/lib/TaskJuggler_rb.html +1 -1
- data/doc/files/lib/TaskScenario_rb.html +1 -1
- data/doc/files/lib/Task_rb.html +1 -1
- data/doc/files/lib/TextParser/Pattern_rb.html +1 -1
- data/doc/files/lib/TextParser/Rule_rb.html +1 -1
- data/doc/files/lib/TextParser/StackElement_rb.html +1 -1
- data/doc/files/lib/TextParser/TokenDoc_rb.html +1 -1
- data/doc/files/lib/TextParser_rb.html +1 -1
- data/doc/files/lib/TextScanner_rb.html +1 -1
- data/doc/files/lib/Tj3Config_rb.html +1 -1
- data/doc/files/lib/TjException_rb.html +1 -1
- data/doc/files/lib/TjTime_rb.html +1 -1
- data/doc/files/lib/TjpExample_rb.html +1 -1
- data/doc/files/lib/TjpSyntaxRules_rb.html +1 -1
- data/doc/files/lib/UTF8String_rb.html +1 -1
- data/doc/files/lib/UserManual_rb.html +1 -1
- data/doc/files/lib/WorkingHours_rb.html +1 -1
- data/doc/files/lib/XMLDocument_rb.html +1 -1
- data/doc/files/lib/XMLElement_rb.html +1 -1
- data/doc/files/lib/deep_copy_rb.html +106 -0
- data/doc/files/lib/ms_test_rb.html +90 -0
- data/doc/files/lib/reports/CSVFile_rb.html +1 -1
- data/doc/files/lib/reports/ColumnTable_rb.html +1 -1
- data/doc/files/lib/reports/GanttChart_rb.html +1 -1
- data/doc/files/lib/reports/GanttContainer_rb.html +1 -1
- data/doc/files/lib/reports/GanttHeaderScaleItem_rb.html +1 -1
- data/doc/files/lib/reports/GanttHeader_rb.html +1 -1
- data/doc/files/lib/reports/GanttLine_rb.html +1 -1
- data/doc/files/lib/reports/GanttLoadStack_rb.html +1 -1
- data/doc/files/lib/reports/GanttMilestone_rb.html +1 -1
- data/doc/files/lib/reports/GanttRouter_rb.html +1 -1
- data/doc/files/lib/reports/GanttTaskBar_rb.html +1 -1
- data/doc/files/lib/reports/HTMLGraphics_rb.html +1 -1
- data/doc/files/lib/reports/{ReportElement_rb.html → Navigator_rb.html} +6 -8
- data/doc/files/lib/reports/ReportBase_rb.html +106 -0
- data/doc/files/lib/reports/ReportContext_rb.html +106 -0
- data/doc/files/lib/reports/ReportTableCell_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableColumn_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableLegend_rb.html +1 -1
- data/doc/files/lib/reports/ReportTableLine_rb.html +1 -1
- data/doc/files/lib/reports/ReportTable_rb.html +1 -1
- data/doc/files/lib/reports/Report_rb.html +8 -2
- data/doc/files/lib/reports/ResourceListRE_rb.html +2 -2
- data/doc/files/lib/reports/{ReportTableElement_rb.html → TableReport_rb.html} +7 -5
- data/doc/files/lib/reports/TaskListRE_rb.html +2 -2
- data/doc/files/lib/reports/TextReport_rb.html +116 -0
- data/doc/files/lib/reports/TjpExportRE_rb.html +2 -2
- data/doc/files/lib/taskjuggler3_rb.html +61 -56
- data/doc/files/lib/tj3man_rb.html +1 -1
- data/doc/fr_class_index.html +41 -3
- data/doc/fr_file_index.html +21 -5
- data/doc/fr_method_index.html +1069 -959
- data/examples/ContactList.html +1467 -0
- data/examples/Deliveries.html +485 -0
- data/examples/Development.html +2525 -0
- data/examples/Overview.html +747 -0
- data/examples/Resource Graph.html +616 -0
- data/examples/tutorial.tjp +63 -67
- data/lib/AttributeBase.rb +27 -31
- data/lib/AttributeDefinition.rb +12 -7
- data/lib/Attributes.rb +134 -34
- data/lib/Interval.rb +2 -0
- data/lib/Journal.rb +44 -0
- data/lib/{LogicalFlag.rb → KeywordArray.rb} +5 -13
- data/lib/KeywordDocumentation.rb +84 -47
- data/lib/Limits.rb +7 -5
- data/lib/LogicalExpression.rb +1 -1
- data/lib/LogicalOperation.rb +33 -0
- data/lib/Project.rb +313 -99
- data/lib/ProjectFileParser.rb +88 -11
- data/lib/PropertyList.rb +2 -1
- data/lib/PropertySet.rb +13 -4
- data/lib/PropertyTreeNode.rb +34 -15
- data/lib/Query.rb +2 -1
- data/lib/RTPNavigator.rb +53 -0
- data/lib/RTPReport.rb +62 -0
- data/lib/RealFormat.rb +28 -10
- data/lib/RichTextElement.rb +18 -12
- data/lib/RichTextParser.rb +1 -0
- data/lib/RichTextProtocolExample.rb +8 -11
- data/lib/RichTextProtocolHandler.rb +11 -1
- data/lib/RichTextScanner.rb +308 -164
- data/lib/RichTextSyntaxRules.rb +24 -0
- data/lib/TableColumnDefinition.rb +5 -1
- data/lib/TaskJuggler.rb +3 -2
- data/lib/TaskScenario.rb +123 -31
- data/lib/TextParser.rb +14 -3
- data/lib/TextScanner.rb +210 -34
- data/lib/Tj3Config.rb +1 -1
- data/lib/TjTime.rb +15 -0
- data/lib/TjpExample.rb +1 -1
- data/lib/TjpSyntaxRules.rb +674 -473
- data/lib/WorkingHours.rb +1 -1
- data/lib/XMLElement.rb +11 -3
- data/lib/deep_copy.rb +72 -0
- data/lib/ms_test.rb +27 -0
- data/lib/reports/ColumnTable.rb +7 -5
- data/lib/reports/GanttChart.rb +60 -34
- data/lib/reports/GanttHeader.rb +1 -1
- data/lib/reports/GanttRouter.rb +7 -5
- data/lib/reports/Navigator.rb +72 -0
- data/lib/reports/Report.rb +58 -73
- data/lib/reports/ReportBase.rb +241 -0
- data/lib/reports/ReportContext.rb +41 -0
- data/lib/reports/ReportTable.rb +7 -2
- data/lib/reports/ReportTableCell.rb +3 -3
- data/lib/reports/ResourceListRE.rb +19 -26
- data/lib/reports/{ReportTableElement.rb → TableReport.rb} +297 -97
- data/lib/reports/TaskListRE.rb +16 -24
- data/lib/reports/TextReport.rb +87 -0
- data/lib/reports/TjpExportRE.rb +55 -50
- data/lib/taskjuggler3.rb +6 -1
- data/manual/Getting_Started +57 -6
- data/manual/How_To_Contribute +2 -4
- data/manual/Intro +2 -2
- data/manual/Reporting_Bugs +9 -2
- data/manual/Rich_Text_Attributes +41 -0
- data/manual/Tutorial +219 -173
- data/tasks/test.rake +3 -0
- data/test/TestSuite/CSV-Reports/celltext.tjp +2 -1
- data/test/TestSuite/CSV-Reports/resourcereport.tjp +2 -1
- data/test/TestSuite/CSV-Reports/resourcereport_with_tasks.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortByTree.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_duration.down.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_effort.up.tjp +2 -1
- data/test/TestSuite/CSV-Reports/sortBy_plan.start.down.tjp +2 -1
- data/test/TestSuite/CSV-Reports/taskreport.tjp +2 -1
- data/test/TestSuite/CSV-Reports/taskreport_with_resources.tjp +2 -1
- data/test/TestSuite/HTML-Reports/depArrows.tjp +72 -0
- data/test/TestSuite/HTML-Reports/reference-export.html +187 -0
- data/test/TestSuite/HTML-Reports/reference.tjp +21 -0
- data/test/TestSuite/Scheduler/Correct/Allocate.tjp +2 -1
- data/test/TestSuite/Scheduler/Correct/AutomaticMilestones.tjp +3 -3
- data/test/TestSuite/Scheduler/Correct/Booking.tjp +3 -3
- data/test/TestSuite/Scheduler/Correct/Container-2.tjp +37 -0
- data/test/TestSuite/Scheduler/Correct/Container.tjp +40 -0
- data/test/TestSuite/Scheduler/Correct/Depends.tjp +9 -14
- data/test/TestSuite/Scheduler/Correct/Duration.tjp +2 -1
- data/test/TestSuite/Scheduler/Correct/InheritStartEnd.tjp +20 -29
- data/test/TestSuite/Scheduler/Correct/Limits.tjp +11 -13
- data/test/TestSuite/Scheduler/Correct/Optimize-1.tjp +6 -5
- data/test/TestSuite/Scheduler/Correct/Optimize-2.tjp +10 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-3.tjp +9 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-4.tjp +9 -6
- data/test/TestSuite/Scheduler/Correct/Optimize-5.tjp +13 -10
- data/test/TestSuite/Scheduler/Correct/Precedes.tjp +9 -14
- data/test/TestSuite/Scheduler/Correct/Shift.tjp +9 -8
- data/test/TestSuite/Scheduler/Correct/checks.tji +4 -0
- data/test/TestSuite/Scheduler/Errors/weak_end_dep.tjp +16 -0
- data/test/TestSuite/Scheduler/Errors/weak_start_dep.tjp +16 -0
- data/test/TestSuite/Syntax/Correct/Account.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/AutoID.tjp +21 -0
- data/test/TestSuite/Syntax/Correct/AutoMacros.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/Caption.tjp +7 -6
- data/test/TestSuite/Syntax/Correct/Celltext.tjp +7 -4
- data/test/TestSuite/Syntax/Correct/Comments.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/CompletedWork.tji +11 -19
- data/test/TestSuite/Syntax/Correct/CriticalPath.tjp +4 -3
- data/test/TestSuite/Syntax/Correct/Export.tjp +3 -1
- data/test/TestSuite/Syntax/Correct/Flags.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/HtmlTaskReport.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/Journal.tjp +18 -0
- data/test/TestSuite/Syntax/Correct/LoadUnits.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/LogicalExpression.tjp +16 -0
- data/test/TestSuite/Syntax/Correct/Period.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/RawHTML.tjp +4 -2
- data/test/TestSuite/Syntax/Correct/Reports.tjp +4 -2
- data/test/TestSuite/Syntax/Correct/ResourcePrefix.tji +2 -0
- data/test/TestSuite/Syntax/Correct/ResourcePrefix.tjp +23 -0
- data/test/TestSuite/Syntax/Correct/Responsible.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/Simple.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/String.tjp +1 -1
- data/test/TestSuite/Syntax/Correct/TaskRoot.tjp +2 -1
- data/test/TestSuite/Syntax/Correct/tutorial.tjp +92 -70
- data/test/TestSuite/Syntax/Errors/bad_comment.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/bad_include.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/bad_time_zone.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/bad_timing_res.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/chargeset_master.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/container_attribute.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/cost_acct_no_top.tjp +3 -2
- data/test/TestSuite/Syntax/Errors/cost_rev_same.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/eof_in_istring1.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring2.tjp +5 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring3.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring4.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/eof_in_istring5.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/include_recursion.tji +1 -0
- data/test/TestSuite/Syntax/Errors/include_recursion.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/junk_after_cut.tjp +6 -0
- data/test/TestSuite/Syntax/Errors/navigator_exists.tjp +10 -0
- data/test/TestSuite/Syntax/Errors/operand_unkn_flag.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/report_end.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/report_exists.tjp +10 -0
- data/test/TestSuite/Syntax/Errors/report_start.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/rev_acct_no_top.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sort_direction.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sort_unknown_scen.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_crit_exptd1.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_crit_exptd2.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/sorting_wbs.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/too_large_timing_res.tjp +7 -0
- data/test/TestSuite/Syntax/Errors/unknown_scenario_idx.tjp +1 -1
- data/test/TestSuite/Syntax/Errors/unknown_task.tjp +1 -1
- data/test/all.rb +1 -16
- data/test/test_CSV-Reports.rb +8 -5
- data/test/test_Query.rb +2 -2
- data/test/test_RichText.rb +95 -0
- data/test/test_Scheduler.rb +8 -4
- data/test/test_Syntax.rb +8 -4
- data/test/test_deep_copy.rb +83 -0
- metadata +549 -487
- data/benchmarks/UTF-8-Strings.rb +0 -58
- data/doc/classes/TaskJuggler/ReportElement.html +0 -1070
- data/doc/classes/TaskJuggler/ReportTableElement.html +0 -644
- data/lib/reports/ReportElement.rb +0 -427
- data/test/TestSuite/Syntax/Correct/csvtest +0 -16
- data/test/TestSuite/Syntax/Errors/no_csv_suffix.tjp +0 -10
- data/test/TestSuite/Syntax/Errors/no_html_suffix.tjp +0 -10
- data/test/TestSuite/Syntax/Errors/report_redifinition.tjp +0 -10
@@ -1,1070 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<title>Class: TaskJuggler::ReportElement [TaskJuggler III API documentation]</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
-
<script type="text/javascript">
|
10
|
-
// <![CDATA[
|
11
|
-
|
12
|
-
function popupCode( url ) {
|
13
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
-
}
|
15
|
-
|
16
|
-
function toggleCode( id ) {
|
17
|
-
if ( document.getElementById )
|
18
|
-
elem = document.getElementById( id );
|
19
|
-
else if ( document.all )
|
20
|
-
elem = eval( "document.all." + id );
|
21
|
-
else
|
22
|
-
return false;
|
23
|
-
|
24
|
-
elemStyle = elem.style;
|
25
|
-
|
26
|
-
if ( elemStyle.display != "block" ) {
|
27
|
-
elemStyle.display = "block"
|
28
|
-
} else {
|
29
|
-
elemStyle.display = "none"
|
30
|
-
}
|
31
|
-
|
32
|
-
return true;
|
33
|
-
}
|
34
|
-
|
35
|
-
// Make codeblocks hidden by default
|
36
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
-
|
38
|
-
// ]]>
|
39
|
-
</script>
|
40
|
-
|
41
|
-
</head>
|
42
|
-
<body>
|
43
|
-
|
44
|
-
|
45
|
-
<div id="classHeader">
|
46
|
-
<table class="header-table">
|
47
|
-
<tr class="top-aligned-row">
|
48
|
-
<td><strong>Class</strong></td>
|
49
|
-
<td class="class-name-in-header">TaskJuggler::ReportElement</td>
|
50
|
-
</tr>
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>In:</strong></td>
|
53
|
-
<td>
|
54
|
-
|
55
|
-
|
56
|
-
<a href="../../files/lib/reports/ReportElement_rb.html">
|
57
|
-
|
58
|
-
lib/reports/ReportElement.rb
|
59
|
-
|
60
|
-
</a>
|
61
|
-
|
62
|
-
|
63
|
-
<br />
|
64
|
-
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
|
68
|
-
|
69
|
-
<tr class="top-aligned-row">
|
70
|
-
<td><strong>Parent:</strong></td>
|
71
|
-
<td>
|
72
|
-
|
73
|
-
Object
|
74
|
-
|
75
|
-
</td>
|
76
|
-
</tr>
|
77
|
-
|
78
|
-
</table>
|
79
|
-
</div>
|
80
|
-
<!-- banner header -->
|
81
|
-
|
82
|
-
<div id="bodyContent">
|
83
|
-
|
84
|
-
<div id="contextContent">
|
85
|
-
|
86
|
-
<div id="description">
|
87
|
-
<p>
|
88
|
-
A report can be composed of multiple report elements. The <a
|
89
|
-
href="ReportElement.html">ReportElement</a> class is the base class for all
|
90
|
-
types of report elements. It holds a number of attributes that may or may
|
91
|
-
not be used by the derived classes to modify the output or filter the
|
92
|
-
displayed data. The class also provides functions that are used by many
|
93
|
-
reports.
|
94
|
-
</p>
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
</div>
|
99
|
-
|
100
|
-
|
101
|
-
<div id="method-list">
|
102
|
-
<h3 class="section-bar">Methods</h3>
|
103
|
-
|
104
|
-
<div class="name-list">
|
105
|
-
|
106
|
-
<a href="#M000344">adjustReportPeriod</a>
|
107
|
-
|
108
|
-
<a href="#M000341">alignment</a>
|
109
|
-
|
110
|
-
<a href="#M000338">calculated?</a>
|
111
|
-
|
112
|
-
<a href="#M000337">cellText</a>
|
113
|
-
|
114
|
-
<a href="#M000342">defaultColumnTitle</a>
|
115
|
-
|
116
|
-
<a href="#M000334">end</a>
|
117
|
-
|
118
|
-
<a href="#M000336">filterResourceList</a>
|
119
|
-
|
120
|
-
<a href="#M000335">filterTaskList</a>
|
121
|
-
|
122
|
-
<a href="#M000340">indent</a>
|
123
|
-
|
124
|
-
<a href="#M000332">new</a>
|
125
|
-
|
126
|
-
<a href="#M000339">scenarioSpecific?</a>
|
127
|
-
|
128
|
-
<a href="#M000333">start=</a>
|
129
|
-
|
130
|
-
<a href="#M000343">supportedColumns</a>
|
131
|
-
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<!-- if includes -->
|
138
|
-
|
139
|
-
<div id="section">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<div id="attribute-list">
|
144
|
-
<h3 class="section-bar">Attributes</h3>
|
145
|
-
|
146
|
-
<div class="name-list">
|
147
|
-
<table>
|
148
|
-
|
149
|
-
<tr class="top-aligned-row context-row">
|
150
|
-
<td class="context-item-name">caption</td>
|
151
|
-
|
152
|
-
<td class="context-item-value"> [RW] </td>
|
153
|
-
|
154
|
-
<td class="context-item-desc"></td>
|
155
|
-
</tr>
|
156
|
-
|
157
|
-
<tr class="top-aligned-row context-row">
|
158
|
-
<td class="context-item-name">columns</td>
|
159
|
-
|
160
|
-
<td class="context-item-value"> [RW] </td>
|
161
|
-
|
162
|
-
<td class="context-item-desc"></td>
|
163
|
-
</tr>
|
164
|
-
|
165
|
-
<tr class="top-aligned-row context-row">
|
166
|
-
<td class="context-item-name">costAccount</td>
|
167
|
-
|
168
|
-
<td class="context-item-value"> [RW] </td>
|
169
|
-
|
170
|
-
<td class="context-item-desc"></td>
|
171
|
-
</tr>
|
172
|
-
|
173
|
-
<tr class="top-aligned-row context-row">
|
174
|
-
<td class="context-item-name">currencyFormat</td>
|
175
|
-
|
176
|
-
<td class="context-item-value"> [RW] </td>
|
177
|
-
|
178
|
-
<td class="context-item-desc"></td>
|
179
|
-
</tr>
|
180
|
-
|
181
|
-
<tr class="top-aligned-row context-row">
|
182
|
-
<td class="context-item-name">end</td>
|
183
|
-
|
184
|
-
<td class="context-item-value"> [R] </td>
|
185
|
-
|
186
|
-
<td class="context-item-desc"></td>
|
187
|
-
</tr>
|
188
|
-
|
189
|
-
<tr class="top-aligned-row context-row">
|
190
|
-
<td class="context-item-name">epilog</td>
|
191
|
-
|
192
|
-
<td class="context-item-value"> [RW] </td>
|
193
|
-
|
194
|
-
<td class="context-item-desc"></td>
|
195
|
-
</tr>
|
196
|
-
|
197
|
-
<tr class="top-aligned-row context-row">
|
198
|
-
<td class="context-item-name">ganttBars</td>
|
199
|
-
|
200
|
-
<td class="context-item-value"> [RW] </td>
|
201
|
-
|
202
|
-
<td class="context-item-desc"></td>
|
203
|
-
</tr>
|
204
|
-
|
205
|
-
<tr class="top-aligned-row context-row">
|
206
|
-
<td class="context-item-name">headline</td>
|
207
|
-
|
208
|
-
<td class="context-item-value"> [RW] </td>
|
209
|
-
|
210
|
-
<td class="context-item-desc"></td>
|
211
|
-
</tr>
|
212
|
-
|
213
|
-
<tr class="top-aligned-row context-row">
|
214
|
-
<td class="context-item-name">hideResource</td>
|
215
|
-
|
216
|
-
<td class="context-item-value"> [RW] </td>
|
217
|
-
|
218
|
-
<td class="context-item-desc"></td>
|
219
|
-
</tr>
|
220
|
-
|
221
|
-
<tr class="top-aligned-row context-row">
|
222
|
-
<td class="context-item-name">hideTask</td>
|
223
|
-
|
224
|
-
<td class="context-item-value"> [RW] </td>
|
225
|
-
|
226
|
-
<td class="context-item-desc"></td>
|
227
|
-
</tr>
|
228
|
-
|
229
|
-
<tr class="top-aligned-row context-row">
|
230
|
-
<td class="context-item-name">loadUnit</td>
|
231
|
-
|
232
|
-
<td class="context-item-value"> [RW] </td>
|
233
|
-
|
234
|
-
<td class="context-item-desc"></td>
|
235
|
-
</tr>
|
236
|
-
|
237
|
-
<tr class="top-aligned-row context-row">
|
238
|
-
<td class="context-item-name">now</td>
|
239
|
-
|
240
|
-
<td class="context-item-value"> [RW] </td>
|
241
|
-
|
242
|
-
<td class="context-item-desc"></td>
|
243
|
-
</tr>
|
244
|
-
|
245
|
-
<tr class="top-aligned-row context-row">
|
246
|
-
<td class="context-item-name">numberFormat</td>
|
247
|
-
|
248
|
-
<td class="context-item-value"> [RW] </td>
|
249
|
-
|
250
|
-
<td class="context-item-desc"></td>
|
251
|
-
</tr>
|
252
|
-
|
253
|
-
<tr class="top-aligned-row context-row">
|
254
|
-
<td class="context-item-name">prolog</td>
|
255
|
-
|
256
|
-
<td class="context-item-value"> [RW] </td>
|
257
|
-
|
258
|
-
<td class="context-item-desc"></td>
|
259
|
-
</tr>
|
260
|
-
|
261
|
-
<tr class="top-aligned-row context-row">
|
262
|
-
<td class="context-item-name">propertiesById</td>
|
263
|
-
|
264
|
-
<td class="context-item-value"> [RW] </td>
|
265
|
-
|
266
|
-
<td class="context-item-desc"></td>
|
267
|
-
</tr>
|
268
|
-
|
269
|
-
<tr class="top-aligned-row context-row">
|
270
|
-
<td class="context-item-name">propertiesByType</td>
|
271
|
-
|
272
|
-
<td class="context-item-value"> [RW] </td>
|
273
|
-
|
274
|
-
<td class="context-item-desc"></td>
|
275
|
-
</tr>
|
276
|
-
|
277
|
-
<tr class="top-aligned-row context-row">
|
278
|
-
<td class="context-item-name">rawHead</td>
|
279
|
-
|
280
|
-
<td class="context-item-value"> [RW] </td>
|
281
|
-
|
282
|
-
<td class="context-item-desc"></td>
|
283
|
-
</tr>
|
284
|
-
|
285
|
-
<tr class="top-aligned-row context-row">
|
286
|
-
<td class="context-item-name">rawTail</td>
|
287
|
-
|
288
|
-
<td class="context-item-value"> [RW] </td>
|
289
|
-
|
290
|
-
<td class="context-item-desc"></td>
|
291
|
-
</tr>
|
292
|
-
|
293
|
-
<tr class="top-aligned-row context-row">
|
294
|
-
<td class="context-item-name">resourceRoot</td>
|
295
|
-
|
296
|
-
<td class="context-item-value"> [RW] </td>
|
297
|
-
|
298
|
-
<td class="context-item-desc"></td>
|
299
|
-
</tr>
|
300
|
-
|
301
|
-
<tr class="top-aligned-row context-row">
|
302
|
-
<td class="context-item-name">revenueAccount</td>
|
303
|
-
|
304
|
-
<td class="context-item-value"> [RW] </td>
|
305
|
-
|
306
|
-
<td class="context-item-desc"></td>
|
307
|
-
</tr>
|
308
|
-
|
309
|
-
<tr class="top-aligned-row context-row">
|
310
|
-
<td class="context-item-name">rollupResource</td>
|
311
|
-
|
312
|
-
<td class="context-item-value"> [RW] </td>
|
313
|
-
|
314
|
-
<td class="context-item-desc"></td>
|
315
|
-
</tr>
|
316
|
-
|
317
|
-
<tr class="top-aligned-row context-row">
|
318
|
-
<td class="context-item-name">rollupTask</td>
|
319
|
-
|
320
|
-
<td class="context-item-value"> [RW] </td>
|
321
|
-
|
322
|
-
<td class="context-item-desc"></td>
|
323
|
-
</tr>
|
324
|
-
|
325
|
-
<tr class="top-aligned-row context-row">
|
326
|
-
<td class="context-item-name">scenarios</td>
|
327
|
-
|
328
|
-
<td class="context-item-value"> [RW] </td>
|
329
|
-
|
330
|
-
<td class="context-item-desc"></td>
|
331
|
-
</tr>
|
332
|
-
|
333
|
-
<tr class="top-aligned-row context-row">
|
334
|
-
<td class="context-item-name">sortResources</td>
|
335
|
-
|
336
|
-
<td class="context-item-value"> [RW] </td>
|
337
|
-
|
338
|
-
<td class="context-item-desc"></td>
|
339
|
-
</tr>
|
340
|
-
|
341
|
-
<tr class="top-aligned-row context-row">
|
342
|
-
<td class="context-item-name">sortTasks</td>
|
343
|
-
|
344
|
-
<td class="context-item-value"> [RW] </td>
|
345
|
-
|
346
|
-
<td class="context-item-desc"></td>
|
347
|
-
</tr>
|
348
|
-
|
349
|
-
<tr class="top-aligned-row context-row">
|
350
|
-
<td class="context-item-name">start</td>
|
351
|
-
|
352
|
-
<td class="context-item-value"> [R] </td>
|
353
|
-
|
354
|
-
<td class="context-item-desc"></td>
|
355
|
-
</tr>
|
356
|
-
|
357
|
-
<tr class="top-aligned-row context-row">
|
358
|
-
<td class="context-item-name">taskRoot</td>
|
359
|
-
|
360
|
-
<td class="context-item-value"> [RW] </td>
|
361
|
-
|
362
|
-
<td class="context-item-desc"></td>
|
363
|
-
</tr>
|
364
|
-
|
365
|
-
<tr class="top-aligned-row context-row">
|
366
|
-
<td class="context-item-name">timeFormat</td>
|
367
|
-
|
368
|
-
<td class="context-item-value"> [RW] </td>
|
369
|
-
|
370
|
-
<td class="context-item-desc"></td>
|
371
|
-
</tr>
|
372
|
-
|
373
|
-
<tr class="top-aligned-row context-row">
|
374
|
-
<td class="context-item-name">userDefinedPeriod</td>
|
375
|
-
|
376
|
-
<td class="context-item-value"> [R] </td>
|
377
|
-
|
378
|
-
<td class="context-item-desc"></td>
|
379
|
-
</tr>
|
380
|
-
|
381
|
-
<tr class="top-aligned-row context-row">
|
382
|
-
<td class="context-item-name">weekStartsMonday</td>
|
383
|
-
|
384
|
-
<td class="context-item-value"> [RW] </td>
|
385
|
-
|
386
|
-
<td class="context-item-desc"></td>
|
387
|
-
</tr>
|
388
|
-
|
389
|
-
</table>
|
390
|
-
</div>
|
391
|
-
</div>
|
392
|
-
|
393
|
-
|
394
|
-
<!-- if method_list -->
|
395
|
-
|
396
|
-
<div id="methods">
|
397
|
-
|
398
|
-
<h3 class="section-bar">Public Class methods</h3>
|
399
|
-
|
400
|
-
|
401
|
-
<div id="method-M000332" class="method-detail">
|
402
|
-
<a name="M000332"></a>
|
403
|
-
|
404
|
-
<div class="method-heading">
|
405
|
-
|
406
|
-
<a href="#M000332" class="method-signature">
|
407
|
-
|
408
|
-
<span class="method-name">new</span><span class="method-args">(report)</span>
|
409
|
-
|
410
|
-
</a>
|
411
|
-
|
412
|
-
</div>
|
413
|
-
|
414
|
-
<div class="method-description">
|
415
|
-
|
416
|
-
<p><a class="source-toggle" href="#"
|
417
|
-
onclick="toggleCode('M000332-source');return false;">[Source]</a></p>
|
418
|
-
<div class="method-source-code" id="M000332-source">
|
419
|
-
<pre>
|
420
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 37</span>
|
421
|
-
37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">report</span>)
|
422
|
-
38: <span class="ruby-ivar">@report</span> = <span class="ruby-identifier">report</span>
|
423
|
-
39: <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">addElement</span>(<span class="ruby-keyword kw">self</span>)
|
424
|
-
40: <span class="ruby-ivar">@project</span> = <span class="ruby-identifier">report</span>.<span class="ruby-identifier">project</span>
|
425
|
-
41:
|
426
|
-
42: <span class="ruby-comment cmt"># The following attributes affect the report content and look.</span>
|
427
|
-
43: <span class="ruby-ivar">@caption</span> = <span class="ruby-keyword kw">nil</span>
|
428
|
-
44: <span class="ruby-ivar">@columns</span> = []
|
429
|
-
45: <span class="ruby-ivar">@costAccount</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">costAccount</span>
|
430
|
-
46: <span class="ruby-ivar">@currencyFormat</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">currencyformat</span>
|
431
|
-
47: <span class="ruby-ivar">@end</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">end</span>
|
432
|
-
48: <span class="ruby-ivar">@epilog</span> = <span class="ruby-keyword kw">nil</span>
|
433
|
-
49: <span class="ruby-ivar">@ganttBars</span> = <span class="ruby-keyword kw">true</span>
|
434
|
-
50: <span class="ruby-ivar">@headline</span> = <span class="ruby-keyword kw">nil</span>
|
435
|
-
51: <span class="ruby-ivar">@hideResource</span> = <span class="ruby-keyword kw">nil</span>
|
436
|
-
52: <span class="ruby-ivar">@hideTask</span> = <span class="ruby-keyword kw">nil</span>
|
437
|
-
53: <span class="ruby-ivar">@loadUnit</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">loadUnit</span>
|
438
|
-
54: <span class="ruby-ivar">@now</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">now</span>
|
439
|
-
55: <span class="ruby-ivar">@numberFormat</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">numberformat</span>
|
440
|
-
56: <span class="ruby-ivar">@prolog</span> = <span class="ruby-keyword kw">nil</span>
|
441
|
-
57: <span class="ruby-ivar">@rawHead</span> = <span class="ruby-keyword kw">nil</span>
|
442
|
-
58: <span class="ruby-ivar">@rawTail</span> = <span class="ruby-keyword kw">nil</span>
|
443
|
-
59: <span class="ruby-ivar">@resourceRoot</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">resourceRoot</span>
|
444
|
-
60: <span class="ruby-ivar">@revenueAccount</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">revenueAccount</span>
|
445
|
-
61: <span class="ruby-ivar">@rollupResource</span> = <span class="ruby-keyword kw">nil</span>
|
446
|
-
62: <span class="ruby-ivar">@rollupTask</span> = <span class="ruby-keyword kw">nil</span>
|
447
|
-
63: <span class="ruby-ivar">@scenarios</span> = [ <span class="ruby-value">0</span> ]
|
448
|
-
64: <span class="ruby-ivar">@shorttimeformat</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">shorttimeformat</span>
|
449
|
-
65: <span class="ruby-ivar">@sortResources</span> = [[ <span class="ruby-value str">'seqno'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value">-1</span> ]]
|
450
|
-
66: <span class="ruby-ivar">@sortTasks</span> = [[ <span class="ruby-value str">'seqno'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value">-1</span> ]]
|
451
|
-
67: <span class="ruby-ivar">@start</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">start</span>
|
452
|
-
68: <span class="ruby-ivar">@taskRoot</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">taskRoot</span>
|
453
|
-
69: <span class="ruby-ivar">@timeFormat</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">timeformat</span>
|
454
|
-
70: <span class="ruby-ivar">@timezone</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">timezone</span>
|
455
|
-
71: <span class="ruby-ivar">@userDefinedPeriod</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">userDefinedPeriod</span>
|
456
|
-
72: <span class="ruby-ivar">@weekStartsMonday</span> = <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">weekstartsmonday</span>
|
457
|
-
73:
|
458
|
-
74: <span class="ruby-ivar">@propertiesById</span> = {
|
459
|
-
75: <span class="ruby-comment cmt"># ID Header Indent Align Calced. Scen Spec.</span>
|
460
|
-
76: <span class="ruby-value str">'complete'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Completion'</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
461
|
-
77: <span class="ruby-value str">'cost'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Cost'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
462
|
-
78: <span class="ruby-value str">'duration'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Duration'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
463
|
-
79: <span class="ruby-value str">'effort'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Effort'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
464
|
-
80: <span class="ruby-value str">'id'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Id'</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:left</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span> ],
|
465
|
-
81: <span class="ruby-value str">'line'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Line No.'</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span> ],
|
466
|
-
82: <span class="ruby-value str">'name'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Name'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:left</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">false</span> ],
|
467
|
-
83: <span class="ruby-value str">'no'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'No.'</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span> ],
|
468
|
-
84: <span class="ruby-value str">'rate'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Rate'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
469
|
-
85: <span class="ruby-value str">'revenue'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'Revenue'</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:right</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span> ],
|
470
|
-
86: <span class="ruby-value str">'wbs'</span> =<span class="ruby-operator">></span> [ <span class="ruby-value str">'WBS'</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:left</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span> ]
|
471
|
-
87: }
|
472
|
-
88: <span class="ruby-ivar">@propertiesByType</span> = {
|
473
|
-
89: <span class="ruby-comment cmt"># Type Indent Align</span>
|
474
|
-
90: <span class="ruby-constant">DateAttribute</span> =<span class="ruby-operator">></span> [ <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:left</span> ],
|
475
|
-
91: <span class="ruby-constant">FixnumAttribute</span> =<span class="ruby-operator">></span> [ <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:right</span> ],
|
476
|
-
92: <span class="ruby-constant">FloatAttribute</span> =<span class="ruby-operator">></span> [ <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:right</span> ],
|
477
|
-
93: <span class="ruby-constant">RichTextAttribute</span> =<span class="ruby-operator">></span> [ <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:left</span> ],
|
478
|
-
94: <span class="ruby-constant">StringAttribute</span> =<span class="ruby-operator">></span> [ <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:left</span> ]
|
479
|
-
95: }
|
480
|
-
96: <span class="ruby-keyword kw">end</span>
|
481
|
-
</pre>
|
482
|
-
</div>
|
483
|
-
|
484
|
-
</div>
|
485
|
-
</div>
|
486
|
-
|
487
|
-
|
488
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
489
|
-
|
490
|
-
|
491
|
-
<div id="method-M000341" class="method-detail">
|
492
|
-
<a name="M000341"></a>
|
493
|
-
|
494
|
-
<div class="method-heading">
|
495
|
-
|
496
|
-
<a href="#M000341" class="method-signature">
|
497
|
-
|
498
|
-
<span class="method-name">alignment</span><span class="method-args">(colId, propertyType)</span>
|
499
|
-
|
500
|
-
</a>
|
501
|
-
|
502
|
-
</div>
|
503
|
-
|
504
|
-
<div class="method-description">
|
505
|
-
|
506
|
-
<p>
|
507
|
-
Return the alignment of the column based on the <em>colId</em> or the
|
508
|
-
<em>propertyType</em>.
|
509
|
-
</p>
|
510
|
-
|
511
|
-
<p><a class="source-toggle" href="#"
|
512
|
-
onclick="toggleCode('M000341-source');return false;">[Source]</a></p>
|
513
|
-
<div class="method-source-code" id="M000341-source">
|
514
|
-
<pre>
|
515
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 262</span>
|
516
|
-
262: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alignment</span>(<span class="ruby-identifier">colId</span>, <span class="ruby-identifier">propertyType</span>)
|
517
|
-
263: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">colId</span>)
|
518
|
-
264: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesById</span>[<span class="ruby-identifier">colId</span>][<span class="ruby-value">2</span>]
|
519
|
-
265: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@propertiesByType</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">propertyType</span>)
|
520
|
-
266: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesByType</span>[<span class="ruby-identifier">propertyType</span>][<span class="ruby-value">1</span>]
|
521
|
-
267: <span class="ruby-keyword kw">else</span>
|
522
|
-
268: <span class="ruby-identifier">:center</span>
|
523
|
-
269: <span class="ruby-keyword kw">end</span>
|
524
|
-
270: <span class="ruby-keyword kw">end</span>
|
525
|
-
</pre>
|
526
|
-
</div>
|
527
|
-
|
528
|
-
</div>
|
529
|
-
</div>
|
530
|
-
|
531
|
-
|
532
|
-
<div id="method-M000338" class="method-detail">
|
533
|
-
<a name="M000338"></a>
|
534
|
-
|
535
|
-
<div class="method-heading">
|
536
|
-
|
537
|
-
<a href="#M000338" class="method-signature">
|
538
|
-
|
539
|
-
<span class="method-name">calculated?</span><span class="method-args">(colId)</span>
|
540
|
-
|
541
|
-
</a>
|
542
|
-
|
543
|
-
</div>
|
544
|
-
|
545
|
-
<div class="method-description">
|
546
|
-
|
547
|
-
<p>
|
548
|
-
This function returns true if the values for the <em>colId</em> column need
|
549
|
-
to be calculated.
|
550
|
-
</p>
|
551
|
-
|
552
|
-
<p><a class="source-toggle" href="#"
|
553
|
-
onclick="toggleCode('M000338-source');return false;">[Source]</a></p>
|
554
|
-
<div class="method-source-code" id="M000338-source">
|
555
|
-
<pre>
|
556
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 232</span>
|
557
|
-
232: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">calculated?</span>(<span class="ruby-identifier">colId</span>)
|
558
|
-
233: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">colId</span>)
|
559
|
-
234: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesById</span>[<span class="ruby-identifier">colId</span>][<span class="ruby-value">3</span>]
|
560
|
-
235: <span class="ruby-keyword kw">end</span>
|
561
|
-
236: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
562
|
-
237: <span class="ruby-keyword kw">end</span>
|
563
|
-
</pre>
|
564
|
-
</div>
|
565
|
-
|
566
|
-
</div>
|
567
|
-
</div>
|
568
|
-
|
569
|
-
|
570
|
-
<div id="method-M000337" class="method-detail">
|
571
|
-
<a name="M000337"></a>
|
572
|
-
|
573
|
-
<div class="method-heading">
|
574
|
-
|
575
|
-
<a href="#M000337" class="method-signature">
|
576
|
-
|
577
|
-
<span class="method-name">cellText</span><span class="method-args">(property, scenarioIdx, colId)</span>
|
578
|
-
|
579
|
-
</a>
|
580
|
-
|
581
|
-
</div>
|
582
|
-
|
583
|
-
<div class="method-description">
|
584
|
-
|
585
|
-
<p>
|
586
|
-
This is the default attribute value to text converter. It is used whenever
|
587
|
-
we need no special treatment.
|
588
|
-
</p>
|
589
|
-
|
590
|
-
<p><a class="source-toggle" href="#"
|
591
|
-
onclick="toggleCode('M000337-source');return false;">[Source]</a></p>
|
592
|
-
<div class="method-source-code" id="M000337-source">
|
593
|
-
<pre>
|
594
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 191</span>
|
595
|
-
191: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cellText</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">scenarioIdx</span>, <span class="ruby-identifier">colId</span>)
|
596
|
-
192: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Resource</span>)
|
597
|
-
193: <span class="ruby-identifier">propertyList</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">resources</span>
|
598
|
-
194: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">property</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Task</span>)
|
599
|
-
195: <span class="ruby-identifier">propertyList</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">tasks</span>
|
600
|
-
196: <span class="ruby-keyword kw">else</span>
|
601
|
-
197: <span class="ruby-identifier">raise</span> <span class="ruby-node">"Fatal Error: Unknown property #{property.class}"</span>
|
602
|
-
198: <span class="ruby-keyword kw">end</span>
|
603
|
-
199:
|
604
|
-
200: <span class="ruby-keyword kw">begin</span>
|
605
|
-
201: <span class="ruby-comment cmt"># Get the value no matter if it's scenario specific or not.</span>
|
606
|
-
202: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">propertyList</span>.<span class="ruby-identifier">scenarioSpecific?</span>(<span class="ruby-identifier">colId</span>)
|
607
|
-
203: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">property</span>[<span class="ruby-identifier">colId</span>, <span class="ruby-identifier">scenarioIdx</span>]
|
608
|
-
204: <span class="ruby-keyword kw">else</span>
|
609
|
-
205: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">property</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">colId</span>)
|
610
|
-
206: <span class="ruby-keyword kw">end</span>
|
611
|
-
207:
|
612
|
-
208: <span class="ruby-identifier">type</span> = <span class="ruby-identifier">propertyList</span>.<span class="ruby-identifier">attributeType</span>(<span class="ruby-identifier">colId</span>)
|
613
|
-
209: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span>
|
614
|
-
210: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">TaskJuggler</span><span class="ruby-operator">::</span><span class="ruby-constant">DateAttribute</span>
|
615
|
-
211: <span class="ruby-keyword kw">nil</span>
|
616
|
-
212: <span class="ruby-keyword kw">else</span>
|
617
|
-
213: <span class="ruby-value str">''</span>
|
618
|
-
214: <span class="ruby-keyword kw">end</span>
|
619
|
-
215: <span class="ruby-keyword kw">else</span>
|
620
|
-
216: <span class="ruby-comment cmt"># Certain attribute types need special treatment.</span>
|
621
|
-
217: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">TaskJuggler</span><span class="ruby-operator">::</span><span class="ruby-constant">DateAttribute</span>
|
622
|
-
218: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_s</span>(<span class="ruby-identifier">timeFormat</span>)
|
623
|
-
219: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">TaskJuggler</span><span class="ruby-operator">::</span><span class="ruby-constant">RichTextAttribute</span>
|
624
|
-
220: <span class="ruby-identifier">value</span>
|
625
|
-
221: <span class="ruby-keyword kw">else</span>
|
626
|
-
222: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_s</span>
|
627
|
-
223: <span class="ruby-keyword kw">end</span>
|
628
|
-
224: <span class="ruby-keyword kw">end</span>
|
629
|
-
225: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">TjException</span>
|
630
|
-
226: <span class="ruby-value str">''</span>
|
631
|
-
227: <span class="ruby-keyword kw">end</span>
|
632
|
-
228: <span class="ruby-keyword kw">end</span>
|
633
|
-
</pre>
|
634
|
-
</div>
|
635
|
-
|
636
|
-
</div>
|
637
|
-
</div>
|
638
|
-
|
639
|
-
|
640
|
-
<div id="method-M000342" class="method-detail">
|
641
|
-
<a name="M000342"></a>
|
642
|
-
|
643
|
-
<div class="method-heading">
|
644
|
-
|
645
|
-
<a href="#M000342" class="method-signature">
|
646
|
-
|
647
|
-
<span class="method-name">defaultColumnTitle</span><span class="method-args">(id)</span>
|
648
|
-
|
649
|
-
</a>
|
650
|
-
|
651
|
-
</div>
|
652
|
-
|
653
|
-
<div class="method-description">
|
654
|
-
|
655
|
-
<p>
|
656
|
-
Returns the default column title for the columns <em>id</em>.
|
657
|
-
</p>
|
658
|
-
|
659
|
-
<p><a class="source-toggle" href="#"
|
660
|
-
onclick="toggleCode('M000342-source');return false;">[Source]</a></p>
|
661
|
-
<div class="method-source-code" id="M000342-source">
|
662
|
-
<pre>
|
663
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 273</span>
|
664
|
-
273: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">defaultColumnTitle</span>(<span class="ruby-identifier">id</span>)
|
665
|
-
274: <span class="ruby-comment cmt"># Return an empty string for some special columns that don't have a fixed</span>
|
666
|
-
275: <span class="ruby-comment cmt"># title.</span>
|
667
|
-
276: <span class="ruby-identifier">specials</span> = <span class="ruby-node">%w( chart hourly daily weekly monthly quarterly yearly)</span>
|
668
|
-
277: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">specials</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">id</span>)
|
669
|
-
278:
|
670
|
-
279: <span class="ruby-comment cmt"># Return the title for build-in hardwired columns.</span>
|
671
|
-
280: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesById</span>[<span class="ruby-identifier">id</span>][<span class="ruby-value">0</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">id</span>)
|
672
|
-
281:
|
673
|
-
282: <span class="ruby-comment cmt"># Otherwise we have to see if the column id is a task or resource</span>
|
674
|
-
283: <span class="ruby-comment cmt"># attribute and return it's value.</span>
|
675
|
-
284: (<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">tasks</span>.<span class="ruby-identifier">attributeName</span>(<span class="ruby-identifier">id</span>)).<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span>
|
676
|
-
285: (<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@project</span>.<span class="ruby-identifier">resources</span>.<span class="ruby-identifier">attributeName</span>(<span class="ruby-identifier">id</span>)).<span class="ruby-identifier">nil?</span>
|
677
|
-
286: <span class="ruby-identifier">name</span>
|
678
|
-
287: <span class="ruby-keyword kw">end</span>
|
679
|
-
</pre>
|
680
|
-
</div>
|
681
|
-
|
682
|
-
</div>
|
683
|
-
</div>
|
684
|
-
|
685
|
-
|
686
|
-
<div id="method-M000334" class="method-detail">
|
687
|
-
<a name="M000334"></a>
|
688
|
-
|
689
|
-
<div class="method-heading">
|
690
|
-
|
691
|
-
<a href="#M000334" class="method-signature">
|
692
|
-
|
693
|
-
<span class="method-name">end</span><span class="method-args">(=(date))</span>
|
694
|
-
|
695
|
-
</a>
|
696
|
-
|
697
|
-
</div>
|
698
|
-
|
699
|
-
<div class="method-description">
|
700
|
-
|
701
|
-
<p>
|
702
|
-
Set the end <em>date</em> of the report period and mark it as user defined.
|
703
|
-
</p>
|
704
|
-
|
705
|
-
<p><a class="source-toggle" href="#"
|
706
|
-
onclick="toggleCode('M000334-source');return false;">[Source]</a></p>
|
707
|
-
<div class="method-source-code" id="M000334-source">
|
708
|
-
<pre>
|
709
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 105</span>
|
710
|
-
105: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">end</span>=(<span class="ruby-identifier">date</span>)
|
711
|
-
106: <span class="ruby-ivar">@end</span> = <span class="ruby-identifier">date</span>
|
712
|
-
107: <span class="ruby-ivar">@userDefinedPeriod</span> = <span class="ruby-keyword kw">true</span>
|
713
|
-
108: <span class="ruby-keyword kw">end</span>
|
714
|
-
</pre>
|
715
|
-
</div>
|
716
|
-
|
717
|
-
</div>
|
718
|
-
</div>
|
719
|
-
|
720
|
-
|
721
|
-
<div id="method-M000336" class="method-detail">
|
722
|
-
<a name="M000336"></a>
|
723
|
-
|
724
|
-
<div class="method-heading">
|
725
|
-
|
726
|
-
<a href="#M000336" class="method-signature">
|
727
|
-
|
728
|
-
<span class="method-name">filterResourceList</span><span class="method-args">(list_, task, hideExpr, rollupExpr)</span>
|
729
|
-
|
730
|
-
</a>
|
731
|
-
|
732
|
-
</div>
|
733
|
-
|
734
|
-
<div class="method-description">
|
735
|
-
|
736
|
-
<p>
|
737
|
-
Take the complete resource list and remove all resources that are matching
|
738
|
-
the hide expression, the rollup Expression or are not a descendent of
|
739
|
-
@resourceRoot. In case task is not nil, a resource is only included if it
|
740
|
-
is assigned to the task in any of the reported scenarios.
|
741
|
-
</p>
|
742
|
-
|
743
|
-
<p><a class="source-toggle" href="#"
|
744
|
-
onclick="toggleCode('M000336-source');return false;">[Source]</a></p>
|
745
|
-
<div class="method-source-code" id="M000336-source">
|
746
|
-
<pre>
|
747
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 163</span>
|
748
|
-
163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filterResourceList</span>(<span class="ruby-identifier">list_</span>, <span class="ruby-identifier">task</span>, <span class="ruby-identifier">hideExpr</span>, <span class="ruby-identifier">rollupExpr</span>)
|
749
|
-
164: <span class="ruby-identifier">list</span> = <span class="ruby-constant">TaskJuggler</span><span class="ruby-operator">::</span><span class="ruby-constant">PropertyList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">list_</span>)
|
750
|
-
165: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@resourceRoot</span>
|
751
|
-
166: <span class="ruby-comment cmt"># Remove all resources that are not descendents of the @resourceRoot.</span>
|
752
|
-
167: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">resource</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">resource</span>.<span class="ruby-identifier">isChildOf?</span>(<span class="ruby-ivar">@resourceRoot</span>) }
|
753
|
-
168: <span class="ruby-keyword kw">end</span>
|
754
|
-
169:
|
755
|
-
170: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">task</span>
|
756
|
-
171: <span class="ruby-comment cmt"># If we have a task we need to check that the resources are assigned</span>
|
757
|
-
172: <span class="ruby-comment cmt"># to the task in any of the reported scenarios.</span>
|
758
|
-
173: <span class="ruby-identifier">iv</span> = <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@start</span>, <span class="ruby-ivar">@end</span>)
|
759
|
-
174: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">delete_if</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">resource</span><span class="ruby-operator">|</span>
|
760
|
-
175: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">true</span>
|
761
|
-
176: <span class="ruby-identifier">scenarios</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
762
|
-
177: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resource</span>.<span class="ruby-identifier">allocated?</span>(<span class="ruby-identifier">scenarioIdx</span>, <span class="ruby-identifier">iv</span>, <span class="ruby-identifier">task</span>)
|
763
|
-
178: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">false</span>
|
764
|
-
179: <span class="ruby-keyword kw">break</span>;
|
765
|
-
180: <span class="ruby-keyword kw">end</span>
|
766
|
-
181: <span class="ruby-keyword kw">end</span>
|
767
|
-
182: <span class="ruby-identifier">delete</span>
|
768
|
-
183: <span class="ruby-keyword kw">end</span>
|
769
|
-
184: <span class="ruby-keyword kw">end</span>
|
770
|
-
185:
|
771
|
-
186: <span class="ruby-identifier">standardFilterOps</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">hideExpr</span>, <span class="ruby-identifier">rollupExpr</span>, <span class="ruby-identifier">task</span>, <span class="ruby-identifier">resourceRoot</span>)
|
772
|
-
187: <span class="ruby-keyword kw">end</span>
|
773
|
-
</pre>
|
774
|
-
</div>
|
775
|
-
|
776
|
-
</div>
|
777
|
-
</div>
|
778
|
-
|
779
|
-
|
780
|
-
<div id="method-M000335" class="method-detail">
|
781
|
-
<a name="M000335"></a>
|
782
|
-
|
783
|
-
<div class="method-heading">
|
784
|
-
|
785
|
-
<a href="#M000335" class="method-signature">
|
786
|
-
|
787
|
-
<span class="method-name">filterTaskList</span><span class="method-args">(list_, resource, hideExpr, rollupExpr)</span>
|
788
|
-
|
789
|
-
</a>
|
790
|
-
|
791
|
-
</div>
|
792
|
-
|
793
|
-
<div class="method-description">
|
794
|
-
|
795
|
-
<p>
|
796
|
-
Take the complete task list and remove all tasks that are matching the hide
|
797
|
-
expression, the rollup Expression or are not a descendent of @taskRoot. In
|
798
|
-
case resource is not nil, a task is only included if the resource is
|
799
|
-
allocated to it in any of the reported scenarios.
|
800
|
-
</p>
|
801
|
-
|
802
|
-
<p><a class="source-toggle" href="#"
|
803
|
-
onclick="toggleCode('M000335-source');return false;">[Source]</a></p>
|
804
|
-
<div class="method-source-code" id="M000335-source">
|
805
|
-
<pre>
|
806
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 114</span>
|
807
|
-
114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filterTaskList</span>(<span class="ruby-identifier">list_</span>, <span class="ruby-identifier">resource</span>, <span class="ruby-identifier">hideExpr</span>, <span class="ruby-identifier">rollupExpr</span>)
|
808
|
-
115: <span class="ruby-identifier">list</span> = <span class="ruby-constant">TaskJuggler</span><span class="ruby-operator">::</span><span class="ruby-constant">PropertyList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">list_</span>)
|
809
|
-
116: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@taskRoot</span>
|
810
|
-
117: <span class="ruby-comment cmt"># Remove all tasks that are not descendents of the @taskRoot.</span>
|
811
|
-
118: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">task</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">task</span>.<span class="ruby-identifier">isChildOf?</span>(<span class="ruby-ivar">@taskRoot</span>) }
|
812
|
-
119: <span class="ruby-keyword kw">end</span>
|
813
|
-
120:
|
814
|
-
121: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resource</span>
|
815
|
-
122: <span class="ruby-comment cmt"># If we have a resource we need to check that the resource is allocated</span>
|
816
|
-
123: <span class="ruby-comment cmt"># to the tasks in any of the reported scenarios.</span>
|
817
|
-
124: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">delete_if</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">task</span><span class="ruby-operator">|</span>
|
818
|
-
125: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">true</span>
|
819
|
-
126: <span class="ruby-identifier">scenarios</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
820
|
-
127: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">task</span>[<span class="ruby-value str">'assignedresources'</span>, <span class="ruby-identifier">scenarioIdx</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">resource</span>)
|
821
|
-
128: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">false</span>
|
822
|
-
129: <span class="ruby-keyword kw">break</span>;
|
823
|
-
130: <span class="ruby-keyword kw">end</span>
|
824
|
-
131: <span class="ruby-keyword kw">end</span>
|
825
|
-
132: <span class="ruby-identifier">delete</span>
|
826
|
-
133: <span class="ruby-keyword kw">end</span>
|
827
|
-
134: <span class="ruby-keyword kw">end</span>
|
828
|
-
135:
|
829
|
-
136: <span class="ruby-comment cmt"># Remove all tasks that don't overlap with the reported interval.</span>
|
830
|
-
137: <span class="ruby-identifier">list</span>.<span class="ruby-identifier">delete_if</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">task</span><span class="ruby-operator">|</span>
|
831
|
-
138: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">true</span>
|
832
|
-
139: <span class="ruby-identifier">scenarios</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
833
|
-
140: <span class="ruby-identifier">iv</span> = <span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">task</span>[<span class="ruby-value str">'start'</span>, <span class="ruby-identifier">scenarioIdx</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">?
|
834
|
-
141: </span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'start'</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">task</span>[<span class="ruby-value str">'start'</span>, <span class="ruby-identifier">scenarioIdx</span>],
|
835
|
-
142: <span class="ruby-identifier">task</span>[<span class="ruby-value str">'end'</span>, <span class="ruby-identifier">scenarioIdx</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">?
|
836
|
-
143: </span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'end'</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">task</span>[<span class="ruby-value str">'end'</span>, <span class="ruby-identifier">scenarioIdx</span>])
|
837
|
-
144: <span class="ruby-comment cmt"># Special case to include milestones at the report end.</span>
|
838
|
-
145: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">start</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">end</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@end</span>
|
839
|
-
146: <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">start</span> = <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">end</span> = <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">start</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
840
|
-
147: <span class="ruby-keyword kw">end</span>
|
841
|
-
148: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">overlaps?</span>(<span class="ruby-constant">Interval</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@start</span>, <span class="ruby-ivar">@end</span>))
|
842
|
-
149: <span class="ruby-identifier">delete</span> = <span class="ruby-keyword kw">false</span>
|
843
|
-
150: <span class="ruby-keyword kw">break</span>;
|
844
|
-
151: <span class="ruby-keyword kw">end</span>
|
845
|
-
152: <span class="ruby-keyword kw">end</span>
|
846
|
-
153: <span class="ruby-identifier">delete</span>
|
847
|
-
154: <span class="ruby-keyword kw">end</span>
|
848
|
-
155:
|
849
|
-
156: <span class="ruby-identifier">standardFilterOps</span>(<span class="ruby-identifier">list</span>, <span class="ruby-identifier">hideExpr</span>, <span class="ruby-identifier">rollupExpr</span>, <span class="ruby-identifier">resource</span>, <span class="ruby-identifier">taskRoot</span>)
|
850
|
-
157: <span class="ruby-keyword kw">end</span>
|
851
|
-
</pre>
|
852
|
-
</div>
|
853
|
-
|
854
|
-
</div>
|
855
|
-
</div>
|
856
|
-
|
857
|
-
|
858
|
-
<div id="method-M000340" class="method-detail">
|
859
|
-
<a name="M000340"></a>
|
860
|
-
|
861
|
-
<div class="method-heading">
|
862
|
-
|
863
|
-
<a href="#M000340" class="method-signature">
|
864
|
-
|
865
|
-
<span class="method-name">indent</span><span class="method-args">(colId, propertyType)</span>
|
866
|
-
|
867
|
-
</a>
|
868
|
-
|
869
|
-
</div>
|
870
|
-
|
871
|
-
<div class="method-description">
|
872
|
-
|
873
|
-
<p>
|
874
|
-
Return if the column values should be indented based on the <em>colId</em>
|
875
|
-
or the <em>propertyType</em>.
|
876
|
-
</p>
|
877
|
-
|
878
|
-
<p><a class="source-toggle" href="#"
|
879
|
-
onclick="toggleCode('M000340-source');return false;">[Source]</a></p>
|
880
|
-
<div class="method-source-code" id="M000340-source">
|
881
|
-
<pre>
|
882
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 250</span>
|
883
|
-
250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">colId</span>, <span class="ruby-identifier">propertyType</span>)
|
884
|
-
251: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">colId</span>)
|
885
|
-
252: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesById</span>[<span class="ruby-identifier">colId</span>][<span class="ruby-value">1</span>]
|
886
|
-
253: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@propertiesByType</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">propertyType</span>)
|
887
|
-
254: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesByType</span>[<span class="ruby-identifier">propertyType</span>][<span class="ruby-value">0</span>]
|
888
|
-
255: <span class="ruby-keyword kw">else</span>
|
889
|
-
256: <span class="ruby-keyword kw">false</span>
|
890
|
-
257: <span class="ruby-keyword kw">end</span>
|
891
|
-
258: <span class="ruby-keyword kw">end</span>
|
892
|
-
</pre>
|
893
|
-
</div>
|
894
|
-
|
895
|
-
</div>
|
896
|
-
</div>
|
897
|
-
|
898
|
-
|
899
|
-
<div id="method-M000339" class="method-detail">
|
900
|
-
<a name="M000339"></a>
|
901
|
-
|
902
|
-
<div class="method-heading">
|
903
|
-
|
904
|
-
<a href="#M000339" class="method-signature">
|
905
|
-
|
906
|
-
<span class="method-name">scenarioSpecific?</span><span class="method-args">(colId)</span>
|
907
|
-
|
908
|
-
</a>
|
909
|
-
|
910
|
-
</div>
|
911
|
-
|
912
|
-
<div class="method-description">
|
913
|
-
|
914
|
-
<p>
|
915
|
-
This functions returns true if the values for the <em>col_id</em> column
|
916
|
-
are scenario specific.
|
917
|
-
</p>
|
918
|
-
|
919
|
-
<p><a class="source-toggle" href="#"
|
920
|
-
onclick="toggleCode('M000339-source');return false;">[Source]</a></p>
|
921
|
-
<div class="method-source-code" id="M000339-source">
|
922
|
-
<pre>
|
923
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 241</span>
|
924
|
-
241: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenarioSpecific?</span>(<span class="ruby-identifier">colId</span>)
|
925
|
-
242: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">colId</span>)
|
926
|
-
243: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@propertiesById</span>[<span class="ruby-identifier">colId</span>][<span class="ruby-value">4</span>]
|
927
|
-
244: <span class="ruby-keyword kw">end</span>
|
928
|
-
245: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
929
|
-
246: <span class="ruby-keyword kw">end</span>
|
930
|
-
</pre>
|
931
|
-
</div>
|
932
|
-
|
933
|
-
</div>
|
934
|
-
</div>
|
935
|
-
|
936
|
-
|
937
|
-
<div id="method-M000333" class="method-detail">
|
938
|
-
<a name="M000333"></a>
|
939
|
-
|
940
|
-
<div class="method-heading">
|
941
|
-
|
942
|
-
<a href="#M000333" class="method-signature">
|
943
|
-
|
944
|
-
<span class="method-name">start=</span><span class="method-args">(date)</span>
|
945
|
-
|
946
|
-
</a>
|
947
|
-
|
948
|
-
</div>
|
949
|
-
|
950
|
-
<div class="method-description">
|
951
|
-
|
952
|
-
<p>
|
953
|
-
Set the start <em>date</em> of the report period and mark it as user
|
954
|
-
defined.
|
955
|
-
</p>
|
956
|
-
|
957
|
-
<p><a class="source-toggle" href="#"
|
958
|
-
onclick="toggleCode('M000333-source');return false;">[Source]</a></p>
|
959
|
-
<div class="method-source-code" id="M000333-source">
|
960
|
-
<pre>
|
961
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 99</span>
|
962
|
-
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start=</span>(<span class="ruby-identifier">date</span>)
|
963
|
-
100: <span class="ruby-ivar">@start</span> = <span class="ruby-identifier">date</span>
|
964
|
-
101: <span class="ruby-ivar">@userDefinedPeriod</span> = <span class="ruby-keyword kw">true</span>
|
965
|
-
102: <span class="ruby-keyword kw">end</span>
|
966
|
-
</pre>
|
967
|
-
</div>
|
968
|
-
|
969
|
-
</div>
|
970
|
-
</div>
|
971
|
-
|
972
|
-
|
973
|
-
<div id="method-M000343" class="method-detail">
|
974
|
-
<a name="M000343"></a>
|
975
|
-
|
976
|
-
<div class="method-heading">
|
977
|
-
|
978
|
-
<a href="#M000343" class="method-signature">
|
979
|
-
|
980
|
-
<span class="method-name">supportedColumns</span><span class="method-args">()</span>
|
981
|
-
|
982
|
-
</a>
|
983
|
-
|
984
|
-
</div>
|
985
|
-
|
986
|
-
<div class="method-description">
|
987
|
-
|
988
|
-
<p><a class="source-toggle" href="#"
|
989
|
-
onclick="toggleCode('M000343-source');return false;">[Source]</a></p>
|
990
|
-
<div class="method-source-code" id="M000343-source">
|
991
|
-
<pre>
|
992
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 289</span>
|
993
|
-
289: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supportedColumns</span>
|
994
|
-
290: <span class="ruby-ivar">@propertiesById</span>.<span class="ruby-identifier">keys</span>
|
995
|
-
291: <span class="ruby-keyword kw">end</span>
|
996
|
-
</pre>
|
997
|
-
</div>
|
998
|
-
|
999
|
-
</div>
|
1000
|
-
</div>
|
1001
|
-
|
1002
|
-
|
1003
|
-
<h3 class="section-bar">Protected Instance methods</h3>
|
1004
|
-
|
1005
|
-
|
1006
|
-
<div id="method-M000344" class="method-detail">
|
1007
|
-
<a name="M000344"></a>
|
1008
|
-
|
1009
|
-
<div class="method-heading">
|
1010
|
-
|
1011
|
-
<a href="#M000344" class="method-signature">
|
1012
|
-
|
1013
|
-
<span class="method-name">adjustReportPeriod</span><span class="method-args">(tasks, scenarios)</span>
|
1014
|
-
|
1015
|
-
</a>
|
1016
|
-
|
1017
|
-
</div>
|
1018
|
-
|
1019
|
-
<div class="method-description">
|
1020
|
-
|
1021
|
-
<p>
|
1022
|
-
In case the user has not specified the report period, we try to fit all the
|
1023
|
-
<em>tasks</em> in and add an extra 5% time at both ends. <em>scenarios</em>
|
1024
|
-
is a list of scenario indexes.
|
1025
|
-
</p>
|
1026
|
-
|
1027
|
-
<p><a class="source-toggle" href="#"
|
1028
|
-
onclick="toggleCode('M000344-source');return false;">[Source]</a></p>
|
1029
|
-
<div class="method-source-code" id="M000344-source">
|
1030
|
-
<pre>
|
1031
|
-
<span class="ruby-comment cmt"># File lib/reports/ReportElement.rb, line 298</span>
|
1032
|
-
298: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">adjustReportPeriod</span>(<span class="ruby-identifier">tasks</span>, <span class="ruby-identifier">scenarios</span>)
|
1033
|
-
299: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">tasks</span>.<span class="ruby-identifier">empty?</span>
|
1034
|
-
300:
|
1035
|
-
301: <span class="ruby-ivar">@start</span> = <span class="ruby-ivar">@end</span> = <span class="ruby-keyword kw">nil</span>
|
1036
|
-
302: <span class="ruby-identifier">scenarios</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">scenarioIdx</span><span class="ruby-operator">|</span>
|
1037
|
-
303: <span class="ruby-identifier">tasks</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">task</span><span class="ruby-operator">|</span>
|
1038
|
-
304: <span class="ruby-identifier">date</span> = <span class="ruby-identifier">task</span>[<span class="ruby-value str">'start'</span>, <span class="ruby-identifier">scenarioIdx</span>] <span class="ruby-operator">||</span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'start'</span>]
|
1039
|
-
305: <span class="ruby-ivar">@start</span> = <span class="ruby-identifier">date</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@start</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">date</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@start</span>
|
1040
|
-
306: <span class="ruby-identifier">date</span> = <span class="ruby-identifier">task</span>[<span class="ruby-value str">'end'</span>, <span class="ruby-identifier">scenarioIdx</span>] <span class="ruby-operator">||</span> <span class="ruby-ivar">@project</span>[<span class="ruby-value str">'end'</span>]
|
1041
|
-
307: <span class="ruby-ivar">@end</span> = <span class="ruby-identifier">date</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@end</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">date</span> <span class="ruby-operator">></span> <span class="ruby-ivar">@end</span>
|
1042
|
-
308: <span class="ruby-keyword kw">end</span>
|
1043
|
-
309: <span class="ruby-keyword kw">end</span>
|
1044
|
-
310: <span class="ruby-comment cmt"># Make sure we have a minimum width of 1 day</span>
|
1045
|
-
311: <span class="ruby-ivar">@end</span> = <span class="ruby-ivar">@start</span> <span class="ruby-operator">+</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">24</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@end</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@start</span> <span class="ruby-operator">+</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">24</span>
|
1046
|
-
312: <span class="ruby-identifier">padding</span> = ((<span class="ruby-ivar">@end</span> <span class="ruby-operator">-</span> <span class="ruby-ivar">@start</span>) <span class="ruby-operator">*</span> <span class="ruby-value">0</span><span class="ruby-value">.10</span>).<span class="ruby-identifier">to_i</span>
|
1047
|
-
313: <span class="ruby-ivar">@start</span> <span class="ruby-operator">-=</span> <span class="ruby-identifier">padding</span>
|
1048
|
-
314: <span class="ruby-ivar">@end</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">padding</span>
|
1049
|
-
315: <span class="ruby-keyword kw">end</span>
|
1050
|
-
</pre>
|
1051
|
-
</div>
|
1052
|
-
|
1053
|
-
</div>
|
1054
|
-
</div>
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
</div>
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
</div>
|
1064
|
-
|
1065
|
-
<div id="validator-badges">
|
1066
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
1067
|
-
</div>
|
1068
|
-
|
1069
|
-
</body>
|
1070
|
-
</html>
|