Changeset 1104 for branches/sandbox
- Timestamp:
- Dec 22, 2010 4:24:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/sandbox/expgui
r1036 r1104 408 408 } 409 409 410 411 410 # [re]load all screens with current state of EXPGUI file 412 411 proc PaintEXPGUIpages {} { … … 532 531 if {$newexpfile == ""} return 533 532 534 # switch to the 1st page535 RaisePage lsFrame536 533 set expgui(globalmode) 0 537 534 loadexp $newexpfile 535 536 # switch to the appropriate 1st page 537 #StageTabUse 538 SetStartPanel 538 539 539 540 # reset the phase selection … … 1036 1037 DisplayRefFlags 0 0 1037 1038 $expgui(atomlistbox) delete 0 end 1039 $expgui(AddAtomBut) config -state disabled 1038 1040 return 1039 1041 } … … 1064 1066 DisplayRefFlags 0 0 1065 1067 $expgui(EditingAtoms) config -text "" 1068 $expgui(AddAtomBut) config -state normal 1066 1069 1067 1070 DisplayAllAtoms $crsPhase … … 3329 3332 } 3330 3333 } 3334 3335 set expgui(startpanel) 2 3331 3336 # procedure to disable tabs when phases or histograms are not defined 3332 3337 proc StageTabUse {args} { 3333 3338 global expgui 3339 set expgui(startpanel) 2 3334 3340 # reset everything 3335 3341 foreach item [lrange $::expgui(notebookpagelist) 0 end] { … … 3356 3362 .n itemconfigure $frm -state disabled 3357 3363 } 3364 set expgui(startpanel) 0 3358 3365 return 3359 3366 } … … 3374 3381 .n itemconfigure $frm -state disabled 3375 3382 } 3383 set expgui(startpanel) 0 3376 3384 return 3377 3385 } … … 3383 3391 .n itemconfigure $frm -state disabled 3384 3392 } 3393 set expgui(startpanel) 1 3385 3394 return 3386 3395 } … … 3396 3405 .n see $nextpage 3397 3406 .n raise $nextpage 3407 } 3408 3409 proc SetStartPanel {} { 3410 global expgui 3411 if {$expgui(startpanel) == 0} { 3412 RaisePage phaseFrame 3413 } elseif {$expgui(startpanel) == 1} { 3414 RaisePage histFrame 3415 } else { 3416 RaisePage lsFrame 3417 } 3398 3418 } 3399 3419 … … 4484 4504 LocateWindow "." $xpos $ypos $poscntr 4485 4505 update 4486 RaisePage lsFrame 4506 SetStartPanel 4487 4507 if {[CountHistory] > 200} { 4488 4508 DeleteHistoryRecords "This .EXP file has [CountHistory] history records\nErasing most will speed EXPGUI"
Note: See TracChangeset
for help on using the changeset viewer.