Changeset 2490d320 in tol for tolbase


Ignore:
Timestamp:
Dec 9, 2008, 9:57:12 PM (18 years ago)
Author:
Christian Paz <cpaz@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
31db565
Parents:
6019d02
Message:

First part of correction of TclChartSerie method to chart series.

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

File:
1 edited

Legend:

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

    r6019d02 r2490d320  
    4949#/////////////////////////////////////////////////////////////////////////////
    5050  # cargamos la variable GCFFile de TOL
    51   set fileGCF [TclGetVar Text GCFFile]
     51  set fileGCF [::tol::info variable [list Text GCFFile] ]
    5252  if {![file exists $fileGCF]} {
    5353    set fileGCF {}
    … …  
    9494  # GCF
    9595  if {![string length $gcfFile]} {
    96     set gcfFile [TclGetVar Text GCFFile]
     96    set gcfFile [::tol::info variable [list Text GCFFile]]
    9797    if {[string length $gcfFile]} {
    9898      eval set gcfFile $gcfFile
    … …  
    110110
    111111  # Create Group Series
    112   set nsource [lindex [TclGetVar Set $source] 0]
     112  # ::tol::info variable returns a list [Grammar VariableName [numofelements "Elementos"] ... ]
     113  # so get the index 0 of the index 2
     114  set nsource [lindex [lindex [::tol::info variable [list Set $source]] 2] 0]
    113115  set lstSerie {}
    114   for {set i 1} {$i <= $nsource} {incr i} {
     116  set i 1
     117  while {$i <= $nsource && $i <= 32 } {
    115118    lappend lstSerie "$source $i"
     119        set i [expr $i+1]
    116120  }
    117121  set sergrp tableserie[clock clicks]
     122
    118123  set tl ""
    119124  if {[llength $lstSerie]} {
    120125      # MDI
     126
    121127    set tl [::project::CreateForm \
    122128      -title $wTitle -type Graphs -iniconfig SeriesGraph -geometry $geometry]
    123129    $tl setgeometry $geometry
    124     set top [$tl getframe]
     130    set top [$tl getframe] 
    125131    eval ::tol::seriegrp create $sergrp $lstSerie
    126132    # Create
    … …  
    159165  set gramVar [GetGlobalUniqueName __tabser__]
    160166  ::tol::console eval "Text $gramVar = Grammar($source);"
    161   set namGra [string trim [TclGetVar Text $gramVar] {"}];#{"}   
     167  set namGra [string trim [::tol::info variable [list Text $gramVar] ] {"}];#{"}   
    162168  # destroy
    163169  ::tol::console stack release $gramVar   
    … …  
    167173    Serie   { set lstSerie $source }
    168174    Set     {
    169       set nsource [lindex [TclGetVar Set $source] 0]
     175      set nsource [lindex [::tol::info variable [list Set $source] ] 0]
    170176      for {set i 1} {$i <= $nsource} {incr i} {
    171177        lappend lstSerie "$source $i"
    … …  
    268274  # GCF
    269275  if {![string length $gcfFile]} {
    270     set gcfFile [TclGetVar Text GCFFile]
     276    set gcfFile [::tol::info variable [list Text GCFFile] ]
    271277  }
    272278  if {![file exists $gcfFile]} {
Note: See TracChangeset for help on using the changeset viewer.