Ignore:
Timestamp:
Jun 8, 2005, 5:37:19 PM (19 years ago)
Author:
mmc
Message:

Many improvements, including a new energy level viewer
for Huckel-IV. Added support for a new <boolean> type.
Fixed the cloud/field stuff so that when a cloud is 1D,
it reverts to BLT vectors so it will plot correctly.
Fixed the install script to work better on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mainwin.tcl

    r11 r13  
    138138        }
    139139
    140         set titleh 0
    141         set fnt [option get $itk_component(hull) titleFont Font]
    142         if {$itk_option(-title) != "" && $fnt != ""} {
    143             set titleh [expr {[font metrics $fnt -linespace]+2}]
    144         }
    145         if {$h+$titleh > $sh} {
    146             set $h [expr {$sh-$titleh}]
    147             set clip 1
    148         }
    149 
    150140        switch -- $itk_option(-anchor) {
    151141            n {
    152142                set x [expr {$sw/2}]
    153                 set y $titleh
    154                 set tx [expr {$x-$w/2}]
    155                 set ty $titleh
     143                set y 0
    156144            }
    157145            s {
    158146                set x [expr {$sw/2}]
    159147                set y $sh
    160                 set tx [expr {$x-$w/2}]
    161                 set ty [expr {$sh-$h}]
    162148            }
    163149            center {
    164150                set x [expr {$sw/2}]
    165151                set y [expr {$sh/2}]
    166                 set tx [expr {$x-$w/2}]
    167                 set ty [expr {$y-$h/2}]
    168152            }
    169153            w {
    170154                set x 0
    171155                set y [expr {$sh/2}]
    172                 set tx 0
    173                 set ty [expr {$y-$h/2}]
    174156            }
    175157            e {
    176158                set x $sw
    177159                set y [expr {$sh/2}]
    178                 set tx [expr {$sw-$w}]
    179                 set ty [expr {$y-$h/2}]
    180160            }
    181161            nw {
    182162                set x 0
    183                 set y $titleh
    184                 set tx 0
    185                 set ty $titleh
     163                set y 0
    186164            }
    187165            ne {
    188166                set x $sw
    189                 set y $titleh
    190                 set tx [expr {$sw-$w}]
    191                 set ty $titleh
     167                set y 0
    192168            }
    193169            sw {
    194170                set x 0
    195171                set y $sh
    196                 set tx 0
    197                 set ty [expr {$sh-$h}]
    198172            }
    199173            se {
    200174                set x $sw
    201175                set y $sh
    202                 set tx [expr {$sw-$w}]
    203                 set ty [expr {$sh-$h}]
    204176            }
    205177        }
     
    214186            -anchor $itk_option(-anchor) -window $itk_component(app) \
    215187            -width $w -height $h
    216 
    217         if {$itk_option(-title) != "" && $fnt != ""} {
    218             $itk_component(area) create text $tx [expr {$ty-2}] \
    219                 -anchor sw -text $itk_option(-title) -font $fnt
    220         }
    221188    }
    222189}
Note: See TracChangeset for help on using the changeset viewer.