home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)newvsfiled.tcl /main/hindenburg/3
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)newvsfiled.tcl /main/hindenburg/3 18 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "newextfvdi.tcl"
-
- # General dialog for creation of vs files.
-
- Class NewVSFileDialog : {NewExtFVDialog} {
- constructor
- method destructor
- method checkcreateExtFile
- attribute busy
- }
-
- constructor NewVSFileDialog {class this name} {
- set this [NewExtFVDialog::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method NewVSFileDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this NewExtFVDialog::destructor
- }
-
-
- # This method is redefined to check and create
- # vs Files.
- #
- method NewVSFileDialog::checkcreateExtFile {this} {
- busy {
- set type [$this.DC.ExtFVtypeTL selectedSet]
- set name [$this.DC.ExtFVnameSLT text]
-
- # of type makefile, maketemplate, library/executable
- # only one instance per system is allowed
- case $type in {
- {makefile maketemplate executable library} {
- set sysV [[ClientContext::global] currentSystem]
- foreach vsFile [$sysV vsFiles] {
- if {[$vsFile type] == $type} {
- wmtkerror "$type already exists."
- return ""
- }
- }
-
- if {$type == "executable" || $type == "library"} {
- set tmpType executable
- if {$type == "executable"} {
- set tmpType library
- }
- foreach vsFile [$sysV vsFiles] {
- if {[$vsFile type] == $tmpType} {
- wmtkerror "$tmpType already exists."
- return ""
- }
- }
- }
- if {$type == "makefile" || $type == "maketemplate"} {
- return [$this createVSFile $type $type]
- }
- }
- }
- }
- return [$this createVSFile $name $type]
- }
-
- # Do not delete this line -- regeneration end marker
-
-