home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)clxtool.tcl /main/hindenburg/4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)clxtool.tcl /main/hindenburg/4 9 Sep 1996 Copyright 1996 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "exetool.tcl"
-
- # Definition of the Xtool class.
- # The Xtool is an interactive exetool. Input/Output
- # from host commands is requested/displayed in the
- # associated window.
-
- Class ClXtool : {InOutTerm Exetool} {
- method destructor
- constructor
- method execute
- method toolName
- }
-
- method ClXtool::destructor {this} {
- # Start destructor user section
- m4_var save
- # End destructor user section
- $this Exetool::destructor
- }
-
- constructor ClXtool {class this name dispatcher cmd {dir ""}} {
- set this [InOutTerm::constructor $class $this]
- Exetool::constructor $class $this $$this $dispatcher
-
- # Act as if we can name this object ourselves.
- global $name
- set $name $this
-
- $this config \
- -title "ObjectTeam Execution Window" \
- -iconTitle "ObjectTeam Execution Window" \
- -finished {
- set exitStatusList [%this exitStatusList]
- lappend exitStatusList [%this exitStatus]
- %this exitStatusList $exitStatusList
- } \
- -stopped {%this notifyFinished} \
- -ready {%this notifyFinished} \
- -reusable [m4_var get M4_reuse_tool -context xtool] \
- -reusableChanged {
- %this handleReusableChanged
- m4_var set M4_reuse_tool [%this reusable] -context xtool
- } \
- -exitPressed {%this stop}
-
- send -async $dispatcher \
- ClDispatcher::xtoolStarted [list [get_comm_name]] $cmd [list $dir]
- return $this
- }
-
- method ClXtool::execute {this} {
- $this commandLine [$this cmdLine]
- $this InOutTerm::execute
- }
-
- method ClXtool::toolName {this} {
- return xtool
- }
-
- # Do not delete this line -- regeneration end marker
-
-