Beruflich Dokumente
Kultur Dokumente
set row 1
set sButton [button $p.sButton \
-bg yellow \
-activebackground yellow \
-command "${ns}selectSystem" \
-text "Orientation system" \
-font [hwt::AppFont]]
grid $sButton -row $row -column 0 -padx 2 -pady 4 -sticky we -columnspan
$colHalf
if {[info exist pArr(sys)]==0} {
set pArr(sys) 0
} else {
if {[hm_entityinfo exist systems $pArr(sys)]==0} {
set pArr(sys) 0
}
}
selSysTxt
set sLabel [label $p.sLabel \
-textvariable ${ns}pArr(sysTxt) \
-font [hwt::AppFont]]
grid $sLabel -row $row -column $colHalf -padx 2 -pady 4 -sticky we -colu
mnspan $colHalf
incr row
set col 0
set ctr 0
foreach item {leftside rightside bottom top rear front reverse iso1 cw
ccw} \
txt {left right bottom top rear front reverse iso clockwi
se counterclockwise} {
set ${item}Button [button $p.${item}Button \
-command "${ns}viewStandard $item" \
-text "$txt" \
-font [hwt::AppFont]]
grid [set ${item}Button] -row [expr $row + $ctr / 2] -column [expr $col
+ $colHalf * ($ctr % 2)] -padx 4 -pady 1 -sticky we -columnspan $colHalf
incr ctr
}
set row [expr $row+($ctr-1)/2]
set lSButton [button $p.lSButton \
-command "${ns}snapAxisLocal" \
-text "Snap local axis" \
-font [hwt::AppFont]]
grid $lSButton -row [incr row] -column 0 -padx 4 -pady 4 -sticky we -colu
mnspan $colHalf
set gSButton [button $p.gSButton \
-command "${ns}snapAxisGlobal" \
-text "Snap global axis" \
-font [hwt::AppFont]]
grid $gSButton -row $row -column $colHalf -padx 4 -pady 4 -sticky we -col
umnspan $colHalf
if {$pArr(debug)} {
foreach c [list "source $thisScript" \
"arrayVis ${ns}pArr" \
"arrayVis ${ns}dirArr" \
"arrayVis ${ns}axisArr" \
"${ns}getArrayFromView vArr ; arrayVis vArr" \
"${ns}accessView"] \
l {"Restart" \
"pArr" \
"dirArr" \
"axisArr" \
"viewArr" \
"accessView" \
} {
grid [button $p.r${row}c1 \
-command $c -text $l -font [hwt::AppFont]] -row [incr row] -column
$colHalf -padx 4 -pady 1 -sticky we -columnspan $colHalf
incr row
}
}
}