home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
vbrowser.tcl
< prev
next >
Wrap
Text File
|
1997-11-25
|
3KB
|
143 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)vbrowser.tcl /main/titanic/10
# Author: voyager
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)vbrowser.tcl /main/titanic/10 25 Nov 1997 Copyright 1997 Cayenne Software Inc.
if {[info tclversion] != 7.3} {
proc fmtclock {clockval format} {
return [clock format $clockval -format $format]
}
}
OtkRegister::extGui
OtkRegister::reportWriter
source [m4_path_name tcl libocl.tcl]
global classCount
set classCount 0
global globalModuleHandler
set globalModuleHandler [ModuleHandler new]
$globalModuleHandler moduleSpecSetChanged {
set s_modules [%this selectedModuleSpecSet]
foreach file [%this getFiles tcl s_desk.tcl $s_modules] {
source $file
}
}
require platform.tcl
require "procs.tcl"
require "browserpro.tcl"
require "messagehdl.tcl"
require "versionbro.tcl"
require "vbprocs.tcl"
require "vbfilemenu.tcl"
require "vbeditmenu.tcl"
require "vbviewmenu.tcl"
require "vboptionme.tcl"
require "vbversionm.tcl"
require "vbsymb2url.tcl"
proc usage {} {
error "Usage: otk vbrowser.tcl -- \[-c caller\] -v version"
}
set argc 0
set status INITIAL
set context ""
set caller ""
set versionId ""
foreach arg $argv {
case $arg in {
{-c} {
if {$status != "INITIAL"} {
usage
}
set status CALLER
}
{-v} {
set status VERSION
}
{default} {
case $status in {
{VERSION} {
set versionId $arg
set status END
}
{CALLER} {
set caller $arg
set status CONTEXT
}
{CONTEXT} {
append context " $arg"
}
{default} {
usage
}
}
}
}
incr argc 1
}
if {$status != "END"} {
usage
}
# show more information the the default information shown
# in the browser
global BrowserProcs::infoProperties
set BrowserProcs::infoProperties \
"${BrowserProcs::infoProperties} \"Selected In\" \"Merged From\""
# be sure that the client context do NOT include the version
set currentLevel [[ClientContext::global] currentCustomLevel]
eval [$globalModuleHandler moduleSpecSetChanged]
set version [VBProcs::id2Obj $versionId]
if {$currentLevel == $version} {
[ClientContext::global] upLevel
}
set config [[ClientContext::global] currentConfig]
set phase [[ClientContext::global] currentPhase]
if ![$phase isNil] {
$phase parent $config
set system [[ClientContext::global] currentSystem]
if ![$system isNil] {
$system parent $phase
}
}
sourceOptional u_vbrowser
VersionBrowser new .main vbrowser -closed {%this stop}
if [isCommand .main.error] {
.main.error okPressed "%this delete; .main stop"
return
}
.main config \
-title "ObjectTeam VersionBrowser" \
-iconTitle "ObjectTeam VersionBrowser" \
-caller "$caller" \
-currentVersion $version \
-firstExposed {%this initialize}
if {! $win95} {
.main icon desk_64
}
.main popUp
.main ready
.main cursor DEFAULT