- Timestamp:
- Dec 4, 2009 5:04:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 2000/10/04 20:35:17 to 2000/10/12 21:40:40
- Property rcs:lines changed from +72 -53 to +97 -68
- Property rcs:rev changed from 1.36 to 1.37
r306 r323 68 68 # default for autoexec load = off 69 69 set expgui(autoexpload) 0 70 # default for show EXPTOOL output = off 71 set expgui(showexptool) 0 70 72 # save the name of the wish executable 71 73 set wishshell [info nameofexecutable] … … 107 109 set expgui(gsasdir) [file dirname $expgui(scriptdir)] 108 110 set expgui(gsasexe) [file join $expgui(gsasdir) exe] 111 set expgui(docdir) [file join $expgui(scriptdir) doc] 109 112 #---------------------------------------------------------------- 110 113 lappend auto_path $expgui(scriptdir) … … 406 409 puts $fp "set expgui(autoexpload) $expgui(autoexpload)" 407 410 } 411 puts $fp "set expgui(showexptool) $expgui(showexptool)" 408 412 close $fp 409 413 } … … 453 457 set expgui(expModifiedLast) [file mtime $expgui(expfile)] 454 458 } elseif {$ans == 2} { 455 savearchiveexp459 SaveAsFile 456 460 } 457 461 } … … 479 483 wm protocol $w WM_DELETE_WINDOW { } 480 484 wm transient $w . 485 bind $w <Key-F1> "MakeWWWHelp expguierr.html Overwrite" 486 pack [button $w.help -text Help -bg yellow \ 487 -command "MakeWWWHelp expguierr.html Overwrite"] \ 488 -side top -anchor e 481 489 frame $w.bot 482 490 pack $w.bot -side bottom … … 670 678 if {[file executable $expgui(exptool)] && \ 671 679 [llength $expmap(phaselist)]} { 672 pack [button $expgui(phaseFrame).top.ps.10 -text "Add Phase" \ 673 -padx 1.5m -command MakeAddPhaseBox] -side left 680 pack [button $expgui(phaseFrame).top.ps.10 \ 681 -text "Replace" -command MakeReplacePhaseBox \ 682 ] -side left 674 683 } 675 684 } … … 2249 2258 2250 2259 set expgui(temp) {} 2251 pack [frame $w.b] -side top 2252 pack [button $w.b.2 -text Set -command "destroy $w"] -side left 2253 pack [button $w.b.3 -text Quit \ 2254 -command "QuitEditBackground $w"] -side left 2260 pack [frame $w.b -bg beige] -fill x -expand yes -side top 2261 grid [button $w.b.2 -text Set -command "destroy $w"] -row 0 -column 1 2262 grid [button $w.b.3 -text Quit \ 2263 -command "QuitEditBackground $w"] -row 0 -column 2 2264 grid [button $w.b.help -text Help -bg yellow \ 2265 -command "MakeWWWHelp expgui3.html EditBackground"] \ 2266 -row 0 -column 4 2267 grid columnconfig $w.b 0 -weight 1 2268 grid columnconfig $w.b 3 -weight 1 2269 bind $w <Key-F1> "MakeWWWHelp expgui3.html EditBackground" 2255 2270 bind $w <Return> "destroy $w" 2256 2271 … … 2388 2403 2389 2404 2390 pack [frame $w.b ]-side top2405 pack [frame $w.b -bg beige] -fill x -expand yes -side top 2391 2406 pack [button $w.b.2 -text Set -command "destroy $w"] -side left 2392 2407 pack [button $w.b.3 -text Quit -command "set expgui(temp) {}; destroy $w"] -side left 2408 pack [button $w.b.help -text Help -bg yellow \ 2409 -command "MakeWWWHelp expgui3.html EditParm"] -side right 2410 bind $w <Key-F1> "MakeWWWHelp expgui3.html EditParm" 2393 2411 bind $w <Return> "destroy $w" 2394 2412 … … 2461 2479 if {$col > 6} {set col -1; incr row} 2462 2480 } 2463 pack [frame $w.b ]-side top2464 pack[button $w.b.2 -text Set \2481 pack [frame $w.b -bg beige] -fill x -expand yes -side top 2482 grid [button $w.b.2 -text Set \ 2465 2483 -command "SetEditProfile [list $entrylist] [list $phaselist] \ 2466 [list $histlist] $w"] -side left 2467 pack [button $w.b.3 -text Quit \ 2468 -command "QuitEditProfile $w [list $entrylist]"] -side left 2469 bind $w <Return> "destroy $w" 2484 [list $histlist] $w"] -row 0 -column 1 2485 grid [button $w.b.3 -text Quit \ 2486 -command "QuitEditProfile $w [list $entrylist]"] -row 0 -column 2 2487 grid [button $w.b.help -text Help -bg yellow \ 2488 -command "MakeWWWHelp expgui5.html GlobalEdit"] \ 2489 -row 0 -column 4 2490 grid columnconfig $w.b 0 -weight 1 2491 grid columnconfig $w.b 3 -weight 1 2492 bind $w <Key-F1> "MakeWWWHelp expgui5.html GlobalEdit" 2493 bind $w <Return> "QuitEditProfile $w [list $entrylist]" 2470 2494 2471 2495 # force the window to stay on top … … 2527 2551 pack [frame .bar -relief raised -bd 2 -bg beige] -fill x -side top -anchor n 2528 2552 2529 # Creating the notebook with 5 panes: Phase, Histogram, Scaling, Profile 2530 # & LS controls 2531 # 0 name, 2532 # 1 title 2533 # 2 create command 2534 # 3 raise command 2535 # 4 disable page in global mode (0/1) 2553 # Creating the notebook and panes 2554 2555 # create an array element describing each notebook page (used with BW only) 2556 # element 0 -- pane name 2557 # 1 -- Label on frame 2558 # 2 -- initialization command 2559 # 3 -- update command 2560 # 4 -- 0/1 Use 1 if pane should be disabled in when all histograms 2561 # are selected in global mode, 0 otherwise 2562 # 5 -- Web page for pane 2563 # 6 -- name anchor on Web page for pane 2564 set expgui(notebookpagelist) { 2565 {lsFrame "LS Controls" \ 2566 "" \ 2567 SetupExtractHist \ 2568 0 expgui1.html ""} 2569 {phaseFrame Phase \ 2570 "" \ 2571 "SelectOnePhase \$expgui(curPhase); DisplayAllAtoms noreset" \ 2572 0 expgui2.html ""} 2573 {histFrame Histogram \ 2574 MakeHistPane \ 2575 DisplayHistogram \ 2576 1 expgui3.html ""} 2577 {fracFrame Scaling \ 2578 MakeScalingPane \ 2579 DisplayFrac \ 2580 0 expgui4.html ""} 2581 {profFrame Profile \ 2582 MakeProfilePane \ 2583 DisplayProfile \ 2584 1 expgui5.html ""} 2585 {consFrame Constraints \ 2586 "source [file join $expgui(scriptdir) atomcons.tcl]; MakeConstraintsPane" \ 2587 DisplayConstraintsPane \ 2588 0 expgui6.html ""} 2589 {orientFrame "MD Pref Orient" \ 2590 MakeOrientPane \ 2591 DisplayOrient \ 2592 0 expgui7.html MD} 2593 {odfFrame "SH Pref Orient" \ 2594 "source [file join $expgui(scriptdir) odf.tcl]; MakeODFPane" \ 2595 DisplayODFPane \ 2596 0 expgui7.html ODF} 2597 } 2536 2598 2537 2599 if $expgui(haveBW) { 2538 2600 pack [NoteBook .n -bd 2] -expand yes -fill both 2539 # create an array element describing each notebook page2540 # element 0 -- pane name2541 # 1 -- Label on frame2542 # 2 -- initialization command2543 # 3 -- update command2544 # 4 -- 0/1 Use 1 if pane should be disabled in when all histograms2545 # are selected in global mode, 0 otherwise2546 set expgui(notebookpagelist) {2547 {lsFrame "LS Controls" \2548 "" \2549 SetupExtractHist \2550 0}2551 {phaseFrame Phase \2552 "" \2553 "SelectOnePhase \$expgui(curPhase); DisplayAllAtoms noreset" \2554 0}2555 {histFrame Histogram \2556 MakeHistPane \2557 DisplayHistogram \2558 1}2559 {fracFrame Scaling \2560 MakeScalingPane \2561 DisplayFrac \2562 0}2563 {profFrame Profile \2564 MakeProfilePane \2565 DisplayProfile \2566 1}2567 {consFrame Constraints \2568 "source [file join $expgui(scriptdir) atomcons.tcl]; MakeConstraintsPane" \2569 DisplayConstraintsPane \2570 0}2571 {orientFrame "MD Pref Orient" \2572 MakeOrientPane \2573 DisplayOrient \2574 0}2575 {odfFrame "SH Pref Orient" \2576 "source [file join $expgui(scriptdir) odf.tcl]; MakeODFPane" \2577 DisplayODFPane \2578 0}2579 }2580 2601 foreach item $expgui(notebookpagelist) { 2581 2602 set frm [lindex $item 0] … … 2706 2727 -column 1 -row 0 -rowspan 2 2707 2728 if [file executable $expgui(exptool)] { 2708 grid [button $ frameLatt.newp -text Replace\nPhase\2709 - command MakeReplacePhaseBox]\2710 -column 0 -row 0 -rowspan 2 -sticky w2729 grid [button $expgui(phaseFrame).frameLatt.newp \ 2730 -text "Add\nPhase" -padx 1.5m -command MakeAddPhaseBox \ 2731 ] -column 0 -row 0 -rowspan 2 -sticky w 2711 2732 } 2712 2733 grid columnconfig $frameLatt 1 -weight 1 … … 3187 3208 menu $expgui(fm).help.menu 3188 3209 $expgui(fm).help.menu add command -command showhelp -underline 0 \ 3189 -label "Help on Command" 3210 -label "Help Summary" 3211 $expgui(fm).help.menu add command -command MakeWWWHelp \ 3212 -label "Help on current pane" 3213 $expgui(fm).help.menu add command -command "MakeWWWHelp menu" \ 3214 -label "Help on menu" 3190 3215 foreach c {h H} {bind . <Alt-$c> [list showhelp]} 3216 # define help actions 3217 bind . <Key-F1> MakeWWWHelp 3191 3218 $expgui(fm).help.menu add command -label "About..." -command About 3192 3219 … … 3267 3294 -variable expgui(autoexpload) 3268 3295 } 3296 $expgui(fm).option.menu add checkbutton -label "Show EXPTOOL output" \ 3297 -variable expgui(showexptool) 3269 3298 } 3270 3299
Note: See TracChangeset
for help on using the changeset viewer.