Changeset 2175 for trunk/gui/scripts
- Timestamp:
- Mar 30, 2011, 1:45:19 PM (14 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/Makefile.in
r2127 r2175 150 150 @for i in $(FILES); do \ 151 151 echo "Installing $$i" ; \ 152 $(INSTALL) -m 444 $$i $(destdir) ; \152 $(INSTALL) -m 0444 $$i $(destdir) ; \ 153 153 done 154 $(INSTALL) -m 444 tclIndex $(destdir)154 $(INSTALL) -m 0444 tclIndex $(destdir) 155 155 156 156 install_images: … … 158 158 @for i in $(srcdir)/images/*.gif $(srcdir)/images/*.png $(srcdir)/images/*.xbm; do \ 159 159 echo "Installing $$i" ; \ 160 $(INSTALL) -m 444 $$i $(destdir)/images ; \160 $(INSTALL) -m 0444 $$i $(destdir)/images ; \ 161 161 done 162 162 -
trunk/gui/scripts/analyzer.tcl
r1940 r2175 1155 1155 # 1156 1156 # Used internally to determine whether pdb or lammps data represents a 1157 # trajectory rather than a single model1157 # trajectory rather than a single frame 1158 1158 # ---------------------------------------------------------------------- 1159 1159 itcl::body Rappture::Analyzer::_isPdbTrajectory {data} { … … 1179 1179 # 1180 1180 # Used internally to determine whether pdb or lammps data represents a 1181 # trajectory rather than a single model1181 # trajectory rather than a single frame 1182 1182 # ---------------------------------------------------------------------- 1183 1183 itcl::body Rappture::Analyzer::_isLammpsTrajectory { data } { … … 1219 1219 $xmlobj put ${sequence}.about.label $seqLabel 1220 1220 $xmlobj put ${sequence}.about.description $descr 1221 $xmlobj put ${sequence}.index.label " Model"1222 1223 set modelNum 11221 $xmlobj put ${sequence}.index.label "Frame" 1222 1223 set frameNum 0 1224 1224 set numLines [llength $data] 1225 1225 for { set i 0 } { $i < $numLines } { incr i } { … … 1240 1240 append contents $line\n 1241 1241 } 1242 set model ${sequence}.element($modelNum)1243 $xmlobj put ${ model}.index $modelNum1242 set frame ${sequence}.element($frameNum) 1243 $xmlobj put ${frame}.index $frameNum 1244 1244 1245 set molecule ${ model}.structure.components.molecule1245 set molecule ${frame}.structure.components.molecule 1246 1246 $xmlobj put ${molecule}.pdb $contents 1247 1247 $xmlobj put ${molecule}.formula $formula 1248 incr modelNum1248 incr frameNum 1249 1249 } 1250 1250 } … … 1271 1271 $xmlobj put ${sequence}.about.label $seqLabel 1272 1272 $xmlobj put ${sequence}.about.description $descr 1273 $xmlobj put ${sequence}.index.label " Model"1274 1275 set modelNum 11276 set modelContents ""1273 $xmlobj put ${sequence}.index.label "Frame" 1274 1275 set frameNum 0 1276 set frameContents "" 1277 1277 set inModel 0 1278 1278 foreach line $data { … … 1282 1282 } 1283 1283 if {[regexp {^[\t ]*ITEM:[ \t]+ATOMS} $line] } { 1284 if { $inModel && $ modelContents != "" } {1285 set model ${sequence}.element($modelNum)1286 $xmlobj put ${ model}.index $modelNum1284 if { $inModel && $frameContents != "" } { 1285 set frame ${sequence}.element($frameNum) 1286 $xmlobj put ${frame}.index $frameNum 1287 1287 1288 set molecule ${ model}.structure.components.molecule1289 $xmlobj put ${molecule}.lammps $ modelContents1288 set molecule ${frame}.structure.components.molecule 1289 $xmlobj put ${molecule}.lammps $frameContents 1290 1290 $xmlobj put ${molecule}.lammpstypemap $typemap 1291 1291 1292 incr modelNum1293 set modelContents ""1292 incr frameNum 1293 set frameContents "" 1294 1294 } 1295 1295 set inModel 1 … … 1299 1299 set inModel 1 1300 1300 } 1301 append modelContents $line\n1302 } 1303 } 1304 if { $ modelContents != "" } {1305 set model ${sequence}.element($modelNum)1306 $xmlobj put ${ model}.index $modelNum1301 append frameContents $line\n 1302 } 1303 } 1304 if { $frameContents != "" } { 1305 set frame ${sequence}.element($frameNum) 1306 $xmlobj put ${frame}.index $frameNum 1307 1307 1308 set molecule ${ model}.structure.components.molecule1309 $xmlobj put ${molecule}.lammps $ modelContents1308 set molecule ${frame}.structure.components.molecule 1309 $xmlobj put ${molecule}.lammps $frameContents 1310 1310 $xmlobj put ${molecule}.lammpstypemap $typemap 1311 1311 } -
trunk/gui/scripts/controls.tcl
r2159 r2175 184 184 } 185 185 } 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]] 186 192 187 193 #
Note: See TracChangeset
for help on using the changeset viewer.