Changeset 3741
- Timestamp:
- Jul 3, 2013, 9:10:00 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r3736 r3741 44 44 .PHONY: all test install clean distclean package distrib runtime-distrib $(TARGETS) 45 45 46 all: $(TARGETS)47 48 $(TARGETS): 49 $(MAKE) -C $@ all46 all: 47 for i in $(TARGETS) ; do \ 48 $(MAKE) -C $$i all || exit 1 ;\ 49 done 50 50 51 51 test: -
trunk/gui/scripts/drawingentry.tcl
r3671 r3741 125 125 126 126 # scan through all variables and attach notifications for changes 127 foreach cpath [$_xmlobj children -as path -type variable $_path.substitutions] { 127 set subs [$_xmlobj children -as path -type variable $_path.substitutions] 128 foreach cpath $subs { 128 129 set map "" 129 130 set name "" … … 171 172 172 173 # find all embedded controls and build a popup for each hotspot 173 foreach cpath [$_xmlobj children -type hotspot -as path $_path.components] { 174 set hotspots [$_xmlobj children -type hotspot -as path $_path.components] 175 foreach cpath $hotspots { 174 176 set listOfControls [$_xmlobj children -type controls $cpath] 175 177 if {[llength $listOfControls] > 0} { … … 190 192 } 191 193 } 192 193 194 set c $itk_component(drawing) 194 foreach cpath [$_xmlobj children -type text -as path $_path.components] { 195 set texts [$_xmlobj children -type text -as path $_path.components] 196 foreach cpath $texts { 195 197 set popup "" 196 198 set mode [XmlGetSubst $cpath.hotspot] … … 601 603 set width [expr [image width $img] / 4] 602 604 } else { 603 set width [expr [ScreenX $w] - [ScreenX 0]]605 set width [expr int([ScreenX $w] - [ScreenX 0])] 604 606 } 605 607 set h [XmlGetSubst $cpath.height] … … 607 609 set height [expr [image height $img] / 4] 608 610 } else { 609 set height [expr [ScreenY $h] - [ScreenY 0]]611 set height [expr int([ScreenY $h] - [ScreenY 0])] 610 612 } 611 613 if { $width != [image width $img] || $height != [image height $img] } { 612 614 set dst [image create photo -width $width -height $height] 613 blt::winop resample $img $dst 615 blt::winop resample $img $dst box 614 616 image delete $img 615 617 set img $dst … … 627 629 set x2 $tmp 628 630 } 629 set width [expr { $x2 - $x1 + 1}]630 set height [expr { $y2 - $y1 + 1}]631 set width [expr {int($x2 - $x1 + 1)}] 632 set height [expr {int($y2 - $y1 + 1)}] 631 633 if { $width != [image width $img] || $height != [image height $img] } { 632 634 set dst [image create photo -width $width -height $height] 633 blt::winop resample $img $dst 635 blt::winop resample $img $dst box 634 636 image delete $img 635 637 set img $dst … … 639 641 set height [expr [image height $img] / 4] 640 642 set dst [image create photo -width $width -height $height] 641 blt::winop resample $img $dst 643 blt::winop resample $img $dst box 642 644 image delete $img 643 645 set img $dst … … 971 973 972 974 if {$bad ne ""} { 973 puts "WARNING: $bad"974 puts "assuming default \"0 0 1 1\" coordinates"975 puts stderr "WARNING: $bad" 976 puts stderr "assuming default \"0 0 1 1\" coordinates" 975 977 array set xvals {1 0 2 1} 976 978 array set yvals {1 0 2 1} … … 1031 1033 } 1032 1034 default { 1033 puts "WARNING: don't understand \"$elem\" in $_path"1035 puts stderr "WARNING: don't understand \"$elem\" in $_path" 1034 1036 } 1035 1037 } … … 1042 1044 itcl::body Rappture::DrawingEntry::Invoke {cpath x y} { 1043 1045 if {![info exists _cpath2popup($cpath)]} { 1044 puts "WARNING: no controls for hotspot at $cpath"1046 puts stderr "WARNING: no controls for hotspot at $cpath" 1045 1047 return 1046 1048 } -
trunk/lang/R/Makefile.in
r3725 r3741 21 21 R = @R@ 22 22 23 coresrcdir = ${PWD}/ ../../rappture/src/core24 corelibdir = ${PWD}/../ src/core25 R_flags = --configure-args='--with-rappture-include=$( includedir)\26 --with-rappture-lib=$( libdir)'23 coresrcdir = ${PWD}/$(srcdir)/../../src/core 24 corelibdir = ${PWD}/../../src/core 25 R_flags = --configure-args='--with-rappture-include=$(coresrcdir) \ 26 --with-rappture-lib=$(corelibdir)' 27 27 28 28 RLIB = R -
trunk/lang/R/Rappture/man/Rappture-package.Rd
r2709 r3741 31 31 ~~ Literature or other references for background information ~~ 32 32 } 33 ~~ Optionally other standard keywords, one per line, from file KEYWORDS in ~~34 ~~ the R documentation directory ~~35 33 \keyword{ package } 36 34 \seealso{ -
trunk/lang/R/Rappture/src/RpLibraryRInterface.cc
r3177 r3741 24 24 rp_lib_finalizer(SEXP ptr) 25 25 { 26 RpLibrary* lib = NULL;27 26 if (!R_ExternalPtrAddr(ptr)) { 28 27 return; 29 28 } 30 lib = (RpLibrary *) R_ExternalPtrAddr(ptr); 29 #ifdef notdef 30 /* Until we figure this out, don't delete the library object. R is 31 * calling the finalizer on every method of the library object. This is a 32 * problem only if someone explicitly deletes the library object from 33 * R. */ 34 RpLibrary* lib; 35 lib = (RpLibrary *)R_ExternalPtrAddr(ptr); 31 36 if (lib != NULL) { 32 37 delete lib; 33 lib = NULL;34 } 38 } 39 #endif 35 40 R_ClearExternalPtr(ptr); 36 37 41 } 38 42 … … 92 96 SEXP path) // null terminated path 93 97 { 94 RpLibrary* lib = NULL;98 RpLibrary* lib; 95 99 SEXP ans; 96 100 int handleVal = -1; … … 123 127 124 128 lib = (RpLibrary*) getObject_Void(handleVal); 125 126 129 if (lib == NULL) { 127 130 error("invalid Rappture Library Object");
Note: See TracChangeset
for help on using the changeset viewer.