- Timestamp:
- Dec 4, 2009 5:02:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 2000/06/01 02:48:14 to 2000/06/09 03:45:28
- Property rcs:lines changed from +3 -2 to +51 -19
- Property rcs:rev changed from 1.26 to 1.27
r181 r199 43 43 set expgui(expfile) {} 44 44 } 45 46 set expgui(curhist) {} 47 set expmap(powderlist) {} 45 48 46 49 set expgui(debug) 0 … … 131 134 # commands for constraints 132 135 source [file join $expgui(scriptdir) atomcons.tcl] 136 # commands for preferred orientation 137 source [file join $expgui(scriptdir) orient.tcl] 133 138 #--------------------------------------------------------------------------- 134 139 # override options with locally defined values … … 218 223 set expgui(last_History) [string range [string trim [lindex [exphistory last] 1]] 0 50 ] 219 224 # set the window/icon title 220 wm title . $expfile225 wm title . "EXPGUI $expfile" 221 226 set expgui(titleunchanged) 1 222 227 wm iconname . [file tail $expfile] … … 494 499 append msg ".\n" 495 500 } 496 append msg "Do you want to load the newer version or lose the modification by editing the current version?" 501 append msg "Do you want to use the newer (modified) version or continue with the older (previous) version of the file?" 502 497 503 set w .ask 498 504 catch {destroy $w} … … 516 522 -default active -command "set expgui(dialogbutton) 0" \ 517 523 ] -side left -expand 1 -padx 3m -pady 2m 518 pack [button $w.bot.2 -text "Continue editing" \524 pack [button $w.bot.2 -text "Continue with old" \ 519 525 -command "set expgui(dialogbutton) 1"] \ 520 526 -side left -expand 1 -padx 3m -pady 2m … … 950 956 set flist {} 951 957 set count 0 952 foreach num [lsort -integer $numberList] { 953 set next [expr $lastnum+1] 954 if {$num != $next} { 955 if {$count == 0 && $flist != ""} { 956 append flist ",$num" 957 } elseif {$count == 1 && $flist != ""} { 958 append flist ",$lastnum,$num" 959 } elseif {$flist != ""} { 960 append flist "-$lastnum,$num" 958 if [catch {set sortlist [lsort -integer $numberList]}] {return $numberList} 959 foreach num $sortlist { 960 set next [expr $lastnum+1] 961 if {$num != $next} { 962 if {$count == 0 && $flist != ""} { 963 append flist ",$num" 964 } elseif {$count == 1 && $flist != ""} { 965 append flist ",$lastnum,$num" 966 } elseif {$flist != ""} { 967 append flist "-$lastnum,$num" 961 968 } else { 962 969 append flist "$num" … … 2447 2454 -createcmd MakeConstraintsPane] 2448 2455 lappend expgui(frameactionlist) "consFrame DisplayConstraintsPane" 2456 2457 set expgui(orientFrame) [\ 2458 .n insert end prefPane -text "MD Pref Orient" \ 2459 -raisecmd "set expgui(pagenow) orientFrame; DisplayOrient"\ 2460 -createcmd MakeOrientPane] 2461 lappend expgui(frameactionlist) "orientFrame DisplayOrient" 2449 2462 } else { 2450 2463 Notebook:create .n -pages {lsFrame phaseFrame histFrame fracFrame profFrame} 2451 2464 pack .n -anchor w -fill both -expand yes 2452 foreach item {lsFrame phaseFrame histFrame fracFrame profFrame} \ 2453 page {"LS Controls" Phase Histogram Scaling Profile } { 2465 foreach item {lsFrame phaseFrame histFrame fracFrame profFrame \ 2466 orientFrame} \ 2467 page {"LS Controls" Phase Histogram Scaling Profile \ 2468 "MD Pref Orient"} { 2454 2469 set expgui($item) [Notebook:frame .n $item] 2455 2470 Notebook:pageconfig .n $item -command "InitPage $item" -title $page … … 2460 2475 lappend expgui(frameactionlist) "fracFrame DisplayFrac" 2461 2476 lappend expgui(frameactionlist) "profFrame DisplayProfile" 2477 lappend expgui(frameactionlist) "orientFrame DisplayOrient" 2462 2478 set expgui(GlobalModeAllDisable) {} 2463 2479 lappend expgui(GlobalModeAllDisable) "histFrame {Notebook:pageconfig .n histFrame}" … … 2562 2578 grid columnconfig $frameLatt 0 -weight 1 2563 2579 #-------------- Begin Atom Coordinates Box ------------------------------ 2564 grid [listbox $fbig.title -height 1 -relief flat] \ 2580 grid [listbox $fbig.title -height 1 -relief flat \ 2581 -exportselection 0] \ 2565 2582 -row 0 -column 0 -sticky ew 2566 2583 set expgui(atomtitle) $fbig.title 2567 2584 $expgui(atomtitle) configure -font $expgui(coordfont) -selectmode extended 2568 2585 grid [listbox $fbig.lbox -height 10 \ 2586 -exportselection 0 \ 2569 2587 -xscrollcommand " $fbig.bscr set"\ 2570 2588 -yscrollcommand " $fbig.rscr set"\ … … 2682 2700 } 2683 2701 } 2684 # make the phase pane2685 MakePhasePane2686 2702 #----------------------------------------------------------------------------- 2687 2703 proc MakeHistPane {} { … … 2695 2711 grid rowconfigure $expgui(histFrame) 3 -weight 1 2696 2712 grid [listbox $expgui(histFrame).hs.title -height 1 -relief flat \ 2713 -exportselection 0 \ 2697 2714 -font $expgui(histfont) ] -row 0 -column 0 -sticky ew 2698 2715 grid [listbox $expgui(histFrame).hs.lbox -height 10 -width 25 \ 2716 -exportselection 0 \ 2699 2717 -font $expgui(histfont) \ 2700 2718 -xscrollcommand "$expgui(histFrame).hs.x set" \ … … 2783 2801 pack [frame $expgui(fracFrame).hs] -side left -expand y -fill both 2784 2802 grid [listbox $expgui(fracFrame).hs.title -height 1 -relief flat \ 2803 -exportselection 0 \ 2785 2804 -font $expgui(histfont) ] -row 0 -column 0 -sticky ew 2786 2805 grid [listbox $expgui(fracFrame).hs.lbox -height 10 -width 25 \ 2806 -exportselection 0 \ 2787 2807 -font $expgui(histfont) \ 2788 2808 -xscrollcommand "$expgui(fracFrame).hs.x set" \ … … 2879 2899 pack [frame $expgui(profFrame).hs] -side left -expand y -fill both 2880 2900 grid [listbox $expgui(profFrame).hs.title -height 1 -relief flat \ 2901 -exportselection 0 \ 2881 2902 -font $expgui(histfont) ] -row 0 -column 0 -sticky ew 2882 2903 grid [listbox $expgui(profFrame).hs.lbox -height 10 -width 25 \ 2904 -exportselection 0 \ 2883 2905 -font $expgui(histfont) \ 2884 2906 -xscrollcommand "$expgui(profFrame).hs.x set" \ … … 2944 2966 pack [frame $expgui(lsFrame).hs] -side left -expand y -fill both 2945 2967 grid [listbox $expgui(lsFrame).hs.title -height 1 -relief flat \ 2968 -exportselection 0 \ 2946 2969 -font $expgui(histfont) ] -row 0 -column 0 -sticky ew 2947 2970 grid [listbox $expgui(lsFrame).hs.lbox -height 10 -width 25 \ 2971 -exportselection 0 \ 2948 2972 -font $expgui(histfont) \ 2949 2973 -xscrollcommand "$expgui(lsFrame).hs.x set" \ … … 3227 3251 #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF MENU DEFINITION ^^^^^^^^^^^^^^^^^^^ 3228 3252 3253 # make the phase pane 3254 MakePhasePane 3255 # and the rest of the windows w/o BWidget 3256 if !$expgui(haveBW) { 3257 MakeHistPane 3258 MakeScalingPane 3259 MakeProfilePane 3260 } 3229 3261 3230 3262 # handle indirect exits
Note: See TracChangeset
for help on using the changeset viewer.