Changeset 944
- Timestamp:
- Mar 8, 2010 11:59:02 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/expguic.html
r930 r944 66 66 <BLOCKQUOTE> 67 67 This menu contains options that determine how EXPGUI runs. 68 <DL>69 68 <a name="archive"></a> 70 <DT>archive EXP<DD>Toggles archiving of .EXP files. When on, files are 69 <DL> 70 <DT>archive EXP<DD> 71 Toggles archiving of .EXP files. When on, files are 71 72 saved before they are overwritten by EXPGUI as a file 72 73 named <I>EXPNAM</I>.Oxx where xx is a pair of hexidecimal … … 98 99 <a href="#archive">archive files</A>, but this may require more effort. 99 100 101 <a name="execprompt"></a> 102 <DT>Prompt after GSAS run<DD> 103 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 104 By default, GSAS programs are run in a separate window 105 and after the program completes, the window remains open until enter is 106 pressed in the window. Turning the "Prompt after GSAS run" option off, causes 107 the window to be closed immediately after the program completes, saving 108 some effort but obliterating any error messages or other evidence of problems. 109 100 110 <a name="Autoicon"></a> 101 111 <DT>Iconify during GSAS<DD> … … 106 116 but this is an option so that the mode can be turned off by those people 107 117 who find this behavior annoying. 108 109 <a name="execprompt"></a>110 <DT>Prompt after GSAS run<DD>111 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!">112 By default, GSAS programs are run in a separate window113 and after the program completes, the window remains open until enter is114 pressed in the window. Turning the "Prompt after GSAS run" option off, causes115 the window to be closed immediately after the program completes, saving116 some effort but obliterating any error messages or other evidence of problems.117 118 118 119 <a name="AutostartGRWND"></a> … … 180 181 always shown. 181 182 182 <DT>Save Options<DD>Save the current values for "Override backspace",183 <DT>Save Options<DD>Save the current values for "Override backspace", 183 184 <a href="#sortatoms">"Sort atoms by"</a>, 184 185 <a href="#sorthist">"Sort histograms by"</a>, … … 190 191 191 192 in file ~/.gsas_config (or c:\gsas.config on Windows). 193 <DT>Save Position<DD>Saves the current screen position of the EXPGUI 194 window as the starting point for future runs of EXPGUI in 195 in file ~/.gsas_config (or c:\gsas.config on Windows). 196 192 197 <DT>liveplot_options<DD>Used to set options for 193 198 <a HREF="liveplot.html#liveplot">LIVEPLOT</a>, 194 199 for example, the histogram to be plotted 200 <DT>Assign app to .EXP files<DD>(on Mac only) When selected, this 201 causes .EXP files to be linked (via the file resource fork) to the 202 EXPGUI applescript. This also causes the .EXP files to be displayed 203 with a GSAS icon. 204 195 205 </DL> 196 206 <img SRC="m2.gif" BORDER=3 alt="EXPGUI Screen snapshot"> -
trunk/expgui
r935 r944 305 305 catch {set ypos $expgui(ypos)} 306 306 set poscntr "nsew" 307 catch {set pos nctr $expgui(poscenter)}307 catch {set poscntr $expgui(poscenter)} 308 308 LocateWindow "." $xpos $ypos $poscntr 309 309 # windows needed this update before when using tk_getOpenFile. … … 659 659 puts $fp "set peakinfo($v) [list $peakinfo($v)]" 660 660 } 661 close $fp 662 } 663 664 # save some of the global options in ~/.gsas_config or ~/gsas.config in Windows 665 proc SavePosition {} { 666 global expgui env tcl_platform graph peakinfo 667 if {$tcl_platform(platform) == "windows"} { 668 set fp [open c:/gsas.config a] 669 } else { 670 set fp [open [file join ~ .gsas_config] a] 671 } 672 673 puts $fp "# EXPGUI saved screen position on [clock format [clock seconds]]" 674 puts $fp "set expgui(xpos) [expr {[winfo x .]*100./[winfo screenwidth .]}]" 675 puts $fp "set expgui(ypos) [expr {[winfo y .]*100./[winfo screenheight .]}]" 676 puts $fp "set expgui(poscenter) NW" 661 677 close $fp 662 678 } … … 4256 4272 $expgui(fm).option.menu add command -label "Save Options" \ 4257 4273 -command "SaveOptions" 4274 $expgui(fm).option.menu add command -label "Save Position" \ 4275 -command "SavePosition" 4258 4276 pack $expgui(fm).file $expgui(fm).option -side left -in $expgui(fm) 4259 4277 … … 4415 4433 catch {set ypos $expgui(ypos)} 4416 4434 set poscntr "nsew" 4417 catch {set pos nctr $expgui(poscenter)}4435 catch {set poscntr $expgui(poscenter)} 4418 4436 LocateWindow "." $xpos $ypos $poscntr 4419 4437 update
Note: See TracChangeset
for help on using the changeset viewer.