home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
mtmerge.tcl
< prev
next >
Wrap
Text File
|
1997-11-24
|
2KB
|
117 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)mtmerge.tcl /main/titanic/12
# Author: voyager
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)mtmerge.tcl /main/titanic/12 24 Nov 1997 Copyright 1997 Cayenne Software Inc.
OtkRegister::extGui
OtkRegister::reportWriter
source [m4_path_name tcl libocl.tcl]
global classCount
set classCount 0
require platform.tcl
require "procs.tcl"
require "browserpro.tcl"
require "messagehdl.tcl"
require "mergetool.tcl"
require "mtprocs.tcl"
require "mtfilemenu.tcl"
require "mteditmenu.tcl"
require "mtoptionme.tcl"
require "mtviewmenu.tcl"
require "mtversionm.tcl"
require "mtsymb2url.tcl"
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
}
}
proc usage {} {
error "Usage: otk mtmerge.tcl -- \
\[-c caller\] -fc fromVersionPath -tc toVersionPath"
}
set argc 0
set status INITIAL
set context ""
set caller ""
set fromContext ""
set toContext ""
foreach arg $argv {
case $arg in {
{-c} {
if {$status != "INITIAL"} {
usage
}
set status CALLER
}
{-fc} {
set status FROMCONTEXT
}
{-tc} {
set status TOCONTEXT
}
{default} {
case $status in {
{CALLER} {
set caller $arg
set status FROMCONTEXT
}
{FROMCONTEXT} {
set fromContext $arg
set status TOCONTEXT
}
{TOCONTEXT} {
set toContext $arg
set status END
}
{default} {
usage
}
}
}
}
incr argc 1
}
if {$status != "END"} {
usage
}
sourceOptional u_mergetool
MergeTool new .main mergetool -closed {%this stop}
if [isCommand .main.error] {
.main.error okPressed "%this delete; .main stop"
return
}
.main config \
-title "ObjectTeam Merge" \
-iconTitle "ObjectTeam Merge" \
-caller "$caller" \
-fromContext $fromContext \
-toContext $toContext \
-firstExposed {%this initialize}
if {! $win95} {
.main icon desk_64
}
.main popUp
.main ready
.main cursor DEFAULT