version 1.6, 1999/10/28 16:32:07
|
version 1.8, 1999/11/17 21:34:40
|
Line 948 proc createDateDialog { toplevel makedef
|
Line 948 proc createDateDialog { toplevel makedef
|
checkbutton $optionsFrame2.response -variable gDates(inhibitresponse) \ |
checkbutton $optionsFrame2.response -variable gDates(inhibitresponse) \ |
-text "Inhibit Correct/Incorrect response \n(normally only for exams/quizzes)" |
-text "Inhibit Correct/Incorrect response \n(normally only for exams/quizzes)" |
pack $durationFrame $optionsFrame2.view $optionsFrame2.response -side top |
pack $durationFrame $optionsFrame2.view $optionsFrame2.response -side top |
set gDates(viewbetween) 1 |
set gDates(viewbetween) 0 |
set gDates(inhibitresponse) 0 |
set gDates(inhibitresponse) 0 |
|
|
label $durationFrame.label -text "Duration" |
label $durationFrame.label -text "Duration" |
Line 3653 proc printWindow {} {
|
Line 3653 proc printWindow {} {
|
-value "printWholeClass" -variable gPrintSelection(type) |
-value "printWholeClass" -variable gPrintSelection(type) |
pack $wholeClassFrame.wholeClass -side left |
pack $wholeClassFrame.wholeClass -side left |
|
|
message $studentNumber.msg -text "Student Number: " -aspect 10000 |
i message $studentNumber.msg -text "Student Number: " -aspect 10000 |
entry $studentNumber.entry -textvariable gPrintSelection(studentNumber) -width 9 \ |
entry $studentNumber.entry -textvariable gPrintSelection(studentNumber) -width 9 \ |
-validate key -validatecommand "limitEntry %W 9 any %P" |
-validate key -validatecommand "limitEntry %W 9 any %P" |
pack $studentNumber.msg $studentNumber.entry -side left |
pack $studentNumber.msg $studentNumber.entry -side left |
Line 3791 proc createCreateDviWin {} {
|
Line 3791 proc createCreateDviWin {} {
|
# gStopPrinting - |
# gStopPrinting - |
# Files: quiztemp.ps - file containg info to print (removed) |
# Files: quiztemp.ps - file containg info to print (removed) |
########################################################### |
########################################################### |
proc printBody { lprCommand { showCompletionMessage 1 } } { |
proc printBodon(section |
|
ionMessage 1 } } { |
global gCapaConfig gStopPrinting gDonePrinting |
global gCapaConfig gStopPrinting gDonePrinting |
|
|
set errorMsg "" |
set errorMsg "" |
Line 4070 proc printSection { { lprCommand "" } }
|
Line 4071 proc printSection { { lprCommand "" } }
|
default { set type "-T" } |
default { set type "-T" } |
} |
} |
|
|
|
set prSection [string trimleft $gPrintSelection(section) 0] |
|
|
if { [set gStopPrinting [expr 2 == [runLatex \ |
if { [set gStopPrinting [expr 2 == [runLatex \ |
"echo [pwd] | $gCapaConfig(qzparse_command) \ |
"echo [pwd] | $gCapaConfig(qzparse_command) \ |
-sec $gPrintSelection(section) -set $set \ |
-sec $prSection -set $set \ |
-d [pwd] -c [pwd] $type " gCreateDviText] ] ] } { |
-d [pwd] -c [pwd] $type " gCreateDviText] ] ] } { |
for {set i $start} { $i <= $end} { incr i } { |
for {set i $start} { $i <= $end} { incr i } { |
exec rm -f section$gPrintSelection(section)-set$i.tex |
exec rm -f section$prSection-set$i.tex |
} |
} |
if {$showStopping} { |
if {$showStopping} { |
displayMessage "Printing has been stopped." |
displayMessage "Printing has been stopped." |
Line 4092 proc printSection { { lprCommand "" } }
|
Line 4095 proc printSection { { lprCommand "" } }
|
} |
} |
|
|
for { set i $start} { $i <= $end } { incr i } { |
for { set i $start} { $i <= $end } { incr i } { |
if { ! [file exists section$gPrintSelection(section)-set$i.tex] } { |
if { ! [file exists section$prSection-set$i.tex] } { |
if {$showStopping} { |
if {$showStopping} { |
displayError "The qzparse command: $gCapaConfig(qzparse_command), was unable to produce the expected output. Printing stopped" |
displayError "The qzparse command: $gCapaConfig(qzparse_command), was unable to produce the expected output. Printing stopped" |
set gStopPrinting 0 |
set gStopPrinting 0 |
Line 4101 proc printSection { { lprCommand "" } }
|
Line 4104 proc printSection { { lprCommand "" } }
|
return 2 |
return 2 |
} |
} |
|
|
exec mv section$gPrintSelection(section)-set$i.tex quiztemp.tex |
exec mv section$prSection-set$i.tex quiztemp.tex |
exec /bin/rm -f quiztemp.dvi |
exec /bin/rm -f quiztemp.dvi |
|
|
$gCreateDviText insert end "$gCapaConfig(latex_command)\n" |
$gCreateDviText insert end "$gCapaConfig(latex_command)\n" |