Changeset c14b554 in tol for tolbase/lib/toltk/tolmethods.tcl
- Timestamp:
- Oct 19, 2008, 5:56:30 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- ce06505
- Parents:
- 6d7779d
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolmethods.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolmethods.tcl
r6d7779d rc14b554 63 63 64 64 set isphoto [expr {$fileDest ne ""}] 65 #Tolcon_Trace "set isphoto [expr {$fileDest ne {}}]" 65 66 set Instance [::SeriesGraph::Create $top.g $sergrp \ 66 67 -photo $isphoto -fileGCF $fileGCF] … … 246 247 247 248 #///////////////////////////////////////////////////////////////////////////// 248 proc Tol_SetChartMethod { title source gcfFile geometry filetosave lstNames 249 type lstPairs {holdon ""}} { 249 proc Tol_SetChartMethod { title source gcfFile geometry filetosave lstNames type lstPairs } { 250 250 # 251 251 # PURPOSE: Hook of Chart method … … 264 264 # lstPairs -> when type is 0 pairs is the list of correspondence beetwen index 265 265 # columns to data columns (x-y pairs) 266 # holdon -> tell if the new graph goes into a new context or an existing one267 266 # 268 267 #///////////////////////////////////////////////////////////////////////////// … … 280 279 } 281 280 # MDI 282 if {$holdon ne "" && (![winfo exists $holdon] || [winfo class $holdon] ne "Mdidoc")} { 283 Tol_HciWriter "<W>[mc {Graphic requested to be drawn on %s but that graphic context does not exist or is not a valid grafic windows} $holdon]</W>" 284 set holdon "" 285 } 286 if {[winfo exists $holdon]} { 287 set tl $holdon 288 } else { 289 puts "no existe '$holdon' por eso ... ::project::CreateForm" 290 291 set tl [::project::CreateForm \ 292 -title $wTitle -type Graphs -iniconfig SetGraph -geometry $geometry] 293 $tl setgeometry $geometry 294 } 281 set tl [::project::CreateForm \ 282 -title $wTitle -type Graphs -iniconfig SetGraph -geometry $geometry] 283 $tl setgeometry $geometry 295 284 set top [$tl getframe] 296 285 # if source is a list is interpreted as a set name and indexes accesing a element … … 310 299 set Instance [::SetGraphDialog::DrawSet $top.g $cmd $source $type $lstPairs \ 311 300 $lstNames $gcfFile [list $title]] 312 if {$holdon ne ""} { 313 ::tol::tableset destroy $cmd 314 if { [llength $source] > 1} { 315 ::tol::stack release $source 316 } 317 } else { 318 bind $top.g <Destroy> +[list ::tol::tableset destroy $cmd] 319 if { [llength $source] > 1} { 320 bind $top.g <Destroy> +[list ::tol::stack release $source] 321 } 322 pack $top.g -fill both -expand yes 323 update 324 ::bayesGraph::GrapOptApplyAxisTicks $Instance ${Instance}::options gr,0 325 if { [string length $filetosave] } { 326 ::bayesGraph::TakePhoto $Instance $filetosave 327 after idle "destroy $tl" 328 } 301 bind $top.g <Destroy> +[list ::tol::tableset destroy $cmd] 302 if { [llength $source] > 1} { 303 bind $top.g <Destroy> +[list ::tol::stack release $source] 304 } 305 pack $top.g -fill both -expand yes 306 update 307 ::bayesGraph::GrapOptApplyAxisTicks $Instance ${Instance}::options gr,0 308 if { [string length $filetosave] } { 309 ::bayesGraph::TakePhoto $Instance $filetosave 310 after idle "destroy $tl" 329 311 } 330 312 return $tl
Note: See TracChangeset
for help on using the changeset viewer.
