home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
phases.tcl
< prev
next >
Wrap
Text File
|
1997-08-26
|
2KB
|
77 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)phases.tcl /main/titanic/2
# Author: Harm Leijendeckers
# Description: Report on phases
# Usage in: ConfigVersion and higher
#
#---------------------------------------------------------------------------
# SccsId = @(#)phases.tcl /main/titanic/2 26 Aug 1997 Copyright 1995 Cadre Technologies Inc.
Class ReportPhases : {ReportBase} {
constructor
attribute printProps
method configReport
}
constructor ReportPhases {class this} {
set this [ReportBase::constructor $class $this]
if { [lsearch $Options "properties"] != -1 } {
$this printProps 1
} else {
$this printProps 0
}
$this reportName Phases
return $this
}
method ReportPhases::configReport {this} {
set phaseV [[$this configV] firstPhaseVersion]
if { [$phaseV isNil] } { return 0 }
set report [$this report]
$report header {
[$this report] print Phase 31
[$this report] print Type 21
[$this report] print Version 26
[$this report] print Status 16
[$this report] print Link line
[$this report] line
}
while { ![$phaseV isNil] } {
$report print [[$phaseV phase] name] 30
$report space
$report print [[$phaseV phase] type] 20
$report space
$report print [$phaseV versionName] 25
$report space
$report print [$phaseV status] 15
$report space
set link [[$this configV] findPhaseVersionLink -byPhaseVersion $phaseV]
$report print [$link status] 15
$report line
if [$this printProps] {
$this showProperties $phaseV
}
set phaseV [$phaseV next [$this configV]]
}
$report page
$report remove header
return 0
}
set executeMe [ReportPhases new]