ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/trad.wsh
(Generate patch)

Comparing ray/src/util/trad.wsh (file contents):
Revision 2.6 by greg, Sat Nov 5 09:43:29 1994 UTC vs.
Revision 2.8 by greg, Mon Nov 28 12:15:18 1994 UTC

# Line 46 | Line 46 | Do you wish to save it now?"
46                          2 { return 0 }
47                  }
48                  if $readonly {
49                        .file invoke
49                          set curmess {Rename file or uncheck read-only to save.}
50 +                        .file invoke
51                          return 0
52 <                } else {
53 <                        catch {unset oldradvar}
54 <                        save_vars $rifname
55 <                }
52 >                } elseif {[save_vars $rifname]} {
53 >                        gotfile 1
54 >                        return 1
55 >                } else { return 0 }
56          } else { return 1 }
57   }
58  
# Line 159 | Line 159 | proc gotfile {{o 1}} {         # set file possession state
159                  }
160          } else {
161                  set mode disabled
162 +                .file invoke
163          }
164          foreach b {scene zone views options action results} {
165                  .$b configure -state $mode
# Line 168 | Line 169 | proc gotfile {{o 1}} {         # set file possession state
169   # Decide where to go and start
170  
171   if {[llength $argv] == 0} {
171        gotfile 0
172          set curmess "Choose a Radiance project file."
173 <        .file invoke
173 >        gotfile 0
174   } elseif {[llength $argv] == 1} {
175          cd [file dirname $argv]
176          set curfile [file tail $argv]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines