Ignore:
Timestamp:
Oct 19, 2008, 5:56:30 PM (18 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ce06505
Parents:
6d7779d
Message:

merging from NameBlock/VMatrix branch

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolmethods.tcl

    r6d7779d rc14b554  
    6363
    6464  set isphoto [expr {$fileDest ne ""}]
     65  #Tolcon_Trace "set isphoto [expr {$fileDest ne {}}]"
    6566  set Instance [::SeriesGraph::Create $top.g $sergrp \
    6667                    -photo $isphoto -fileGCF $fileGCF]
    … …  
    246247
    247248#/////////////////////////////////////////////////////////////////////////////
    248 proc Tol_SetChartMethod { title source gcfFile geometry filetosave lstNames
    249                           type lstPairs {holdon ""}} {
     249proc Tol_SetChartMethod { title source gcfFile geometry filetosave lstNames type lstPairs } {
    250250#
    251251# PURPOSE: Hook of Chart method
    … …  
    264264#   lstPairs -> when type is 0 pairs is the list of correspondence beetwen index
    265265#               columns to data columns (x-y pairs)
    266 #   holdon   -> tell if the new graph goes into a new context or an existing one
    267266#
    268267#/////////////////////////////////////////////////////////////////////////////
    … …  
    280279  }
    281280  # 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 
    295284  set top [$tl getframe]
    296285  # if source is a list is interpreted as a set name and indexes accesing a element
    … …  
    310299  set Instance [::SetGraphDialog::DrawSet $top.g $cmd $source $type $lstPairs \
    311300    $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"
    329311  }
    330312  return $tl
Note: See TracChangeset for help on using the changeset viewer.