Changeset 2175 for trunk/gui/scripts


Ignore:
Timestamp:
Mar 30, 2011, 1:45:19 PM (14 years ago)
Author:
gah
Message:

updates to makefiles

Location:
trunk/gui/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/Makefile.in

    r2127 r2175  
    150150        @for i in $(FILES); do \
    151151            echo "Installing $$i" ; \
    152             $(INSTALL) -m 444 $$i $(destdir) ; \
     152            $(INSTALL) -m 0444 $$i $(destdir) ; \
    153153        done
    154         $(INSTALL) -m 444 tclIndex $(destdir)
     154        $(INSTALL) -m 0444 tclIndex $(destdir)
    155155
    156156install_images:
     
    158158        @for i in $(srcdir)/images/*.gif $(srcdir)/images/*.png $(srcdir)/images/*.xbm; do \
    159159            echo "Installing $$i" ; \
    160             $(INSTALL) -m 444 $$i $(destdir)/images ; \
     160            $(INSTALL) -m 0444 $$i $(destdir)/images ; \
    161161        done
    162162
  • trunk/gui/scripts/analyzer.tcl

    r1940 r2175  
    11551155#
    11561156# Used internally to determine whether pdb or lammps data represents a
    1157 # trajectory rather than a single model
     1157# trajectory rather than a single frame
    11581158# ----------------------------------------------------------------------
    11591159itcl::body Rappture::Analyzer::_isPdbTrajectory {data} {
     
    11791179#
    11801180# Used internally to determine whether pdb or lammps data represents a
    1181 # trajectory rather than a single model
     1181# trajectory rather than a single frame
    11821182# ----------------------------------------------------------------------
    11831183itcl::body Rappture::Analyzer::_isLammpsTrajectory { data } {
     
    12191219    $xmlobj put ${sequence}.about.label $seqLabel
    12201220    $xmlobj put ${sequence}.about.description $descr
    1221     $xmlobj put ${sequence}.index.label "Model"
    1222 
    1223     set modelNum 1
     1221    $xmlobj put ${sequence}.index.label "Frame"
     1222
     1223    set frameNum 0
    12241224    set numLines [llength $data]
    12251225    for { set i 0 } { $i < $numLines } { incr i } {
     
    12401240                append contents $line\n
    12411241            }
    1242             set model ${sequence}.element($modelNum)
    1243             $xmlobj put ${model}.index $modelNum
     1242            set frame ${sequence}.element($frameNum)
     1243            $xmlobj put ${frame}.index $frameNum
    12441244           
    1245             set molecule ${model}.structure.components.molecule
     1245            set molecule ${frame}.structure.components.molecule
    12461246            $xmlobj put ${molecule}.pdb $contents
    12471247            $xmlobj put ${molecule}.formula $formula
    1248             incr modelNum
     1248            incr frameNum
    12491249        }
    12501250    }
     
    12711271    $xmlobj put ${sequence}.about.label $seqLabel
    12721272    $xmlobj put ${sequence}.about.description $descr
    1273     $xmlobj put ${sequence}.index.label "Model"
    1274 
    1275     set modelNum 1
    1276     set modelContents ""
     1273    $xmlobj put ${sequence}.index.label "Frame"
     1274
     1275    set frameNum 0
     1276    set frameContents ""
    12771277    set inModel 0
    12781278    foreach line $data {
     
    12821282        }
    12831283        if {[regexp {^[\t ]*ITEM:[ \t]+ATOMS} $line] } {
    1284             if { $inModel && $modelContents != "" } {
    1285                 set model ${sequence}.element($modelNum)
    1286                 $xmlobj put ${model}.index $modelNum
     1284            if { $inModel && $frameContents != "" } {
     1285                set frame ${sequence}.element($frameNum)
     1286                $xmlobj put ${frame}.index $frameNum
    12871287               
    1288                 set molecule ${model}.structure.components.molecule
    1289                 $xmlobj put ${molecule}.lammps $modelContents
     1288                set molecule ${frame}.structure.components.molecule
     1289                $xmlobj put ${molecule}.lammps $frameContents
    12901290                $xmlobj put ${molecule}.lammpstypemap $typemap
    12911291               
    1292                 incr modelNum
    1293                 set modelContents ""
     1292                incr frameNum
     1293                set frameContents ""
    12941294            }
    12951295            set inModel 1
     
    12991299                set inModel 1
    13001300            }
    1301             append modelContents $line\n
    1302         }
    1303     }
    1304     if { $modelContents != "" } {
    1305         set model ${sequence}.element($modelNum)
    1306         $xmlobj put ${model}.index $modelNum
     1301            append frameContents $line\n
     1302        }
     1303    }
     1304    if { $frameContents != "" } {
     1305        set frame ${sequence}.element($frameNum)
     1306        $xmlobj put ${frame}.index $frameNum
    13071307       
    1308         set molecule ${model}.structure.components.molecule
    1309         $xmlobj put ${molecule}.lammps $modelContents
     1308        set molecule ${frame}.structure.components.molecule
     1309        $xmlobj put ${molecule}.lammps $frameContents
    13101310        $xmlobj put ${molecule}.lammpstypemap $typemap
    13111311    }
  • trunk/gui/scripts/controls.tcl

    r2159 r2175  
    184184        }
    185185    }
     186
     187    #
     188    # If this element has an <enable> expression, then register
     189    # its controlling widget here.
     190    #
     191    set notify [string trim [$_owner xml get $path.about.notify]]
    186192
    187193    #
Note: See TracChangeset for help on using the changeset viewer.