Changeset 1897
- Timestamp:
- Aug 31, 2010 8:25:36 PM (14 years ago)
- Location:
- branches/blt4
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/configure.in
r1881 r1897 130 130 TCLSH="$with_tclsh/bin/tclsh" 131 131 else 132 132 if test -x "$with_tclsh" 133 133 then 134 134 echo Found tclsh in $with_tclsh 135 135 TCLSH="$with_tclsh" 136 136 else 137 AC_PATH_PROG(TCLSH, tclsh) 137 if test -x "${exec_prefix}/bin/tclsh" 138 then 139 echo Found tclsh in ${exec_prefix}/bin/tclsh 140 TCLSH="${exec_prefix}/bin/tclsh" 141 else 142 for v in 8.4 8.5 8.6 ; do 143 if test -x "${exec_prefix}/bin/tclsh${v}" 144 then 145 echo Found tclsh in ${exec_prefix}/bin/tclsh${v} 146 TCLSH="${exec_prefix}/bin/tclsh${v}" 147 break 148 fi 149 done 150 fi 138 151 fi 139 152 fi 140 fi 153 if ! test -x ${TCLSH} 154 then 155 AC_PATH_PROG(TCLSH, tclsh) 156 fi 157 fi 158 141 159 AC_MSG_RESULT([${TCLSH}]) 142 160 AC_SUBST(TCLSH) … … 187 205 do 188 206 for vtk in $path/vtk-* ; do 189 190 191 207 if test -d "${vtk}" ; then 208 VTKDIR=${vtk} 209 fi 192 210 done 193 211 if test "x${VTKDIR}" != "x" ; then 194 212 break 195 213 fi 196 214 done … … 271 289 AC_PATH_PROG(MKOCTFILE, mkoctfile) 272 290 else 273 AC_PATH_PROG(OCTAVE, octave, [], [${with_octave}/bin:${with_octave}]) 274 AC_PATH_PROG(MKOCTFILE, mkoctfile, [], 275 [${with_octave}/bin:${with_octave}]) 276 fi 277 if test "x${OCTAVE}" != "x" ; then 278 OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4` 279 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1` 280 if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then 281 OCTAVE3=$OCTAVE 282 MKOCTFILE3=$MKOCTFILE 283 fi 284 if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then 285 OCTAVE2=$OCTAVE 286 MKOCTFILE2=$MKOCTFILE 287 fi 291 MKOCTFILE=$with_octave 292 OCTAVE=$with_octave 293 fi 294 fi 295 if test "x${OCTAVE}" != "x" ; then 296 OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4` 297 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1` 298 if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then 299 OCTAVE3=$OCTAVE 300 MKOCTFILE3=$MKOCTFILE 301 fi 302 if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then 303 OCTAVE2=$OCTAVE 304 MKOCTFILE2=$MKOCTFILE 288 305 fi 289 306 fi … … 298 315 299 316 if test "$with_octave2" != "no" ; then 300 AC_MSG_CHECKING([for octave and mkoctfile]) 301 AC_PATH_PROG(octave2, octave, [], [${with_octave2}/bin:${with_octave2}]) 302 AC_PATH_PROG(mkoctfile2, mkoctfile, [], 303 [${with_octave2}/bin:${with_octave2}]) 304 if test "x${octave2}" != "x" ; then 305 version=`${octave2} -v | grep version | cut -d' ' -f4` 306 version_major=`echo ${version} | cut -d'.' -f1` 307 if test "$version_major" = "2" ; then 308 OCTAVE2=$octave2 309 MKOCTFILE2=$mkoctfile2 310 fi 311 fi 312 fi 317 if test "$with_octave2" = "yes" ; then 318 AC_MSG_CHECKING([for octave and mkoctfile]) 319 AC_PATH_PROG(octave2, octave) 320 AC_PATH_PROG(mkoctfile2, mkoctfile) 321 else 322 octave2=$with_octave2 323 mkoctfile2=`dirname $with_octave2`/mkoctfile 324 fi 325 fi 326 if test "x${octave2}" != "x" ; then 327 version=`${octave2} -v | grep version | cut -d' ' -f4` 328 version_major=`echo ${version} | cut -d'.' -f1` 329 if test "$version_major" = "2" ; then 330 OCTAVE2=$octave2 331 MKOCTFILE2=$mkoctfile2 332 fi 333 fi 334 313 335 # Check if octave3 was designated *in addition* to the installed version. 336 314 337 AC_ARG_WITH( 315 338 [octave3], … … 318 341 [with_octave3=$withval], 319 342 [with_octave3=no]) 343 344 echo with_octave3=$with_octave3 320 345 if test "$with_octave3" != "no" ; then 321 AC_MSG_CHECKING([for octave and mkoctfile]) 322 AC_PATH_PROG(octave3, octave, [], [${with_octave3}/bin:${with_octave3}]) 323 AC_PATH_PROG(mkoctfile3, mkoctfile, [], 324 [${with_octave3}/bin:${with_octave3}]) 325 if test "x${octave3}" != "x" ; then 326 version=`${octave3} -v | grep version | cut -d' ' -f4` 327 version_major=`echo ${version} | cut -d'.' -f1` 328 if test "$version_major" = "3" ; then 329 OCTAVE3=$with_octave3 330 MKOCTFILE3=$mkoctfile3 331 fi 346 if test "$with_octave3" = "yes" ; then 347 AC_MSG_CHECKING([for octave and mkoctfile]) 348 AC_PATH_PROG(octave3, octave) 349 AC_PATH_PROG(mkoctfile3, mkoctfile) 350 else 351 octave3=$with_octave3 352 mkoctfile3=`dirname $with_octave3`/mkoctfile 353 fi 354 fi 355 356 echo octave3=$octave3 357 if test "x${octave3}" != "x" ; then 358 echo version="${octave3} -v | grep version | cut -d' ' -f4" 359 version=`${octave3} -v | grep version | cut -d' ' -f4` 360 echo version=$version 361 version_major=`echo ${version} | cut -d'.' -f1` 362 echo version_major=$version_major 363 if test "$version_major" = "3" ; then 364 OCTAVE3=$with_octave3 365 MKOCTFILE3=$mkoctfile3 332 366 fi 333 367 fi … … 341 375 AC_SUBST(MKOCTFILE2) 342 376 AC_SUBST(MKOCTFILE3) 377 378 AC_ARG_WITH( 379 [perl], 380 [AS_HELP_STRING([--with-perl[=DIR]], [location of perl @<:@default=yes@:>@])], 381 [], 382 [with_perl=yes]) 343 383 344 384 PERL= … … 498 538 AC_SUBST(HAVE_PYTHON_DISTUTILS) 499 539 500 with_ruby="yes"540 rappture_with_ruby="yes" 501 541 502 542 RUBY="" … … 505 545 AC_ARG_WITH(ruby, 506 546 AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]), 507 [ with_ruby=$with_val])508 if test "${ with_ruby}" != "no" ; then509 if test "${ with_ruby}" = "yes" ; then547 [rappture_with_ruby=$with_val]) 548 if test "${rappture_with_ruby}" != "no" ; then 549 if test "${rappture_with_ruby}" = "yes" ; then 510 550 AC_PATH_PROG(RUBY, ruby) 511 551 else 512 552 AC_PATH_PROG(RUBY, ruby, [], 513 [${ with_ruby}/bin/ruby:${with_ruby}])553 [${rappture_with_ruby}/bin/ruby:${rappture_with_ruby}]) 514 554 fi 515 555 fi … … 532 572 AC_SUBST(RUBY_PLATFORM) 533 573 534 with_java="yes"574 rappture_with_java="yes" 535 575 JAVA="" 536 576 JAVAH="" … … 538 578 JAVA_DEV_PKG="no" 539 579 580 AC_ARG_WITH(java, 581 AS_HELP_STRING([--with-java=PATH], [absolute path to java executable]), 582 [rappture_with_java=$with_val]) 583 if test "${rappture_with_java}" != "no" ; then 584 if test "${rappture_with_java}" = "yes" ; then 585 AC_PATH_PROG(JAVA, java) 586 AC_PATH_PROG(JAVAC, javac) 587 AC_PATH_PROG(JAVAH, javah) 588 else 589 AC_PATH_PROG(JAVA, java, [], 590 [${rappture_with_java}/bin/java:${rappture_with_java}]) 591 AC_PATH_PROG(JAVAC, javac, [], 592 [${rappture_with_java}/bin/java:${rappture_with_java}]) 593 AC_PATH_PROG(JAVAH, javah, [], 594 [${rappture_with_java}/bin/java:${rappture_with_java}]) 595 fi 596 fi 540 597 JDK= 541 598 JAVA_HOME= … … 546 603 if test "x${JAVA}" != "x" ; then 547 604 for d in \ 548 ${with_java} \549 /usr/lib/jvm/java-6-sun \550 605 /apps/java/jdk1.6.0_01 \ 606 /usr/lib/jvm/*sun-1.6* \ 607 /opt/sun-jdk-1.6* \ 551 608 /opt/icedtea6-* \ 552 /opt/sun-jdk-1. 6* \553 / opt/sun-jdk-1.5*554 do 609 /opt/sun-jdk-1.5* \ 610 /usr/lib/jvm/*sun-1.5* 611 do 555 612 if test -r "${d}/include/jni.h" ; then 556 613 JDK=${d} … … 563 620 fi 564 621 565 AC_ARG_WITH(java,566 AS_HELP_STRING([--with-java=PATH], [absolute path to java executable]),567 [with_java=$with_val])568 if test "${with_java}" != "no" ; then569 if test "${with_java}" = "yes" ; then570 AC_PATH_PROG(JAVA, java)571 AC_PATH_PROG(JAVAC, javac)572 AC_PATH_PROG(JAVAH, javah)573 else574 AC_PATH_PROG(JAVA, java, [],575 [${with_java}/bin:${with_java}])576 AC_PATH_PROG(JAVAC, javac, [],577 [${with_java}/bin:${with_java}])578 AC_PATH_PROG(JAVAH, javah, [],579 [${with_java}/bin:${with_java}])580 fi581 fi582 583 622 AC_SUBST(JAVA) 584 623 AC_SUBST(JAVAC) … … 587 626 AC_SUBST(JAVA_INC_DIR) 588 627 AC_SUBST(JAVA_INC_SPEC) 589 590 AC_MSG_CHECKING([for OpenDX headers])591 DX_INC_DIR=""592 for dir in \593 /apps/rappture/include \594 /usr/dx/include \595 /usr/include596 do597 if test -r "${dir}/dx/dx.h" ; then598 DX_INC_DIR="$dir"599 break600 fi601 done602 603 if test "${DX_INC_DIR}" = "/usr/include" ; then604 DX_INC_SPEC=""605 else606 DX_INC_SPEC="-I{DX_INC_DIR}"607 fi608 AC_SUBST(DX_INC_SPEC)609 AC_MSG_RESULT([${DX_INC_DIR}])610 611 AC_MSG_CHECKING([for OpenDX libraries])612 DX_LIB_DIR=""613 for dir in \614 /apps/rappture/lib \615 /usr/lib/dx/lib_linux \616 /usr/dx/lib_linux \617 /usr/lib618 do619 if test -r "${dir}/libDXcallm.a" ; then620 DX_LIB_DIR="$dir"621 break622 fi623 done624 625 if test "${DX_LIB_DIR}" = "/usr" ; then626 DX_LIB_SPEC=""627 else628 DX_LIB_SPEC="-L${DX_LIB_DIR}"629 fi630 631 AC_SUBST(DX_LIB_SPEC)632 AC_MSG_RESULT([${DX_LIB_DIR}])633 628 634 629 RP_BASE=`pwd` … … 651 646 AC_SUBST(SHLIB_SUFFIX) 652 647 653 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 648 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 654 649 . ${exec_prefix}/lib/tclConfig.sh 655 650 fi 656 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 657 . ${exec_prefix}/lib/tkConfig.sh 651 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 652 . ${exec_prefix}/lib/tkConfig.sh 658 653 fi 659 654 AC_SUBST(TCL_VERSION) … … 684 679 685 680 #-------------------------------------------------------------------- 686 # Set the default compiler switches based on the --enable-symbols 681 # Set the default compiler switches based on the --enable-symbols 687 682 # option. 688 683 #-------------------------------------------------------------------- 689 684 690 685 SC_ENABLE_SYMBOLS 686 687 688 #-------------------------------------------------------------------- 689 # search for ffmpeg libraries libavcodec, libavformat, libswscale 690 #-------------------------------------------------------------------- 691 692 AC_CHECK_HEADERS(ffmpeg/avcodec.h,[],[], 693 [[#define __STDC_CONSTANT_MACROS 1 694 #ifdef HAVE_FFMPEG_AVCODEC_H 695 # include <ffmpeg/avcodec.h> 696 #endif 697 ]]) 698 699 AC_CHECK_HEADERS(libavcodec/avcodec.h,[],[], 700 [[#define __STDC_CONSTANT_MACROS 1 701 #ifdef HAVE_LIBAVCODEC_AVCODEC_H 702 # include <libavcodec/avcodec.h> 703 #endif 704 ]]) 705 706 AC_CHECK_HEADERS([ffmpeg/avformat.h],[],[], 707 [[#define __STDC_CONSTANT_MACROS 1 708 #ifdef HAVE_FFMPEG_AVFORMAT_H 709 # include <ffmpeg/avformat.h> 710 #endif 711 ]]) 712 713 AC_CHECK_HEADERS([libavformat/avformat.h],[],[], 714 [[#define __STDC_CONSTANT_MACROS 1 715 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H 716 # include <libavformat/avformat.h> 717 #endif 718 ]]) 719 720 AC_CHECK_HEADERS([ffmpeg/avutil.h],[],[], 721 [[#define __STDC_CONSTANT_MACROS 1 722 #ifdef HAVE_FFMPEG_AVUTIL_H 723 # include <ffmpeg/avutil.h> 724 #endif 725 ]]) 726 727 AC_CHECK_HEADERS([libavutil/avutil.h],[],[], 728 [[#define __STDC_CONSTANT_MACROS 1 729 #ifdef HAVE_LIBAVUTIL_AVUTIL_H 730 # include <libavutil/avutil.h> 731 #endif 732 ]]) 733 734 AC_CHECK_HEADERS([ffmpeg/swscale.h],[],[], 735 [[#define __STDC_CONSTANT_MACROS 1 736 #ifdef HAVE_FFMPEG_SWSCALE_H 737 # include <ffmpeg/swscale.h> 738 #endif 739 ]]) 740 741 AC_CHECK_HEADERS([libswscale/swscale.h],[],[], 742 [[#define __STDC_CONSTANT_MACROS 1 743 #ifdef HAVE_LIBSWSCALE_SWSCALE_H 744 # include <libswscale/swscale.h> 745 #endif 746 ]]) 747 748 HAVE_FFMPEG_LIBS="" 749 if [[ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \ 750 "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \ 751 \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \ 752 "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \ 753 \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \ 754 "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \ 755 \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \ 756 "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ]] ; then 757 HAVE_FFMPEG_LIBS="yes" 758 AC_DEFINE(BUILD_with_ffmpeg, 1, [Build rappture with ffmpeg widgets]) 759 else 760 HAVE_FFMPEG_LIBS="" 761 fi 762 763 AC_CHECK_FUNCS(img_convert) 764 AC_CHECK_FUNCS(sws_scale) 765 AC_SUBST(HAVE_FFMPEG_LIBS) 691 766 692 767 ac_configure_args="--disable-threads --enable-shared" … … 726 801 lang/matlab/Makefile 727 802 lang/octave/Makefile 728 lang/octave/RpOctaveInterface.h 803 lang/octave/octave2/Makefile 804 lang/octave/octave3/Makefile 729 805 lang/ruby/Makefile 730 806 lang/ruby/build.rb … … 754 830 examples/app-fermi/wrapper/Makefile 755 831 examples/app-fermi/wrapper/cee/Makefile 832 examples/app-fermi/wrapper/perl/Makefile 756 833 examples/app-fermi/wrapper/python/Makefile 757 834 examples/app-fermi/wrapper/tcl/Makefile … … 788 865 examples/zoo/enable/Makefile 789 866 examples/zoo/field/Makefile 790 examples/zoo/file choice/Makefile867 examples/zoo/filelist/Makefile 791 868 examples/zoo/group/Makefile 792 869 examples/zoo/image/Makefile -
branches/blt4/examples/app-fermi/wrapper/perl/Makefile.in
r1895 r1897 1 1 2 2 bindir = @bindir@ 3 datadir 4 datarootdir 3 datadir = @datadir@ 4 datarootdir = @datarootdir@ 5 5 exec_prefix = @exec_prefix@ 6 6 includedir = @includedir@ … … 8 8 mandir = @mandir@ 9 9 prefix = @prefix@ 10 srcdir 10 srcdir = @srcdir@ 11 11 12 destdir = $(prefix)/examples/app-fermi/wrapper/python12 destdir = $(prefix)/examples/app-fermi/wrapper/perl 13 13 14 INSTALL 15 MKDIR_P 14 INSTALL = @INSTALL@ 15 MKDIR_P = @MKDIR_P@ 16 16 17 FILES 18 $(srcdir)/fermi.p y\17 FILES = \ 18 $(srcdir)/fermi.pl \ 19 19 $(srcdir)/fermi.m \ 20 20 $(srcdir)/tool.xml 21 21 all: 22 22 23 install: 23 install: 24 24 $(MKDIR_P) $(destdir) 25 25 for i in $(FILES) ; do \ -
branches/blt4/examples/app-fermi/wrapper/perl/test/defaults.xml
r1895 r1897 3 3 <tool> 4 4 <about>Press Simulate to view results.</about> 5 <command>p ython @tool/fermi.py@driver</command>5 <command>perl @tool/fermi.pl @driver</command> 6 6 <name>Workspace (800x600)</name> 7 7 <version> 8 8 <rappture> 9 <language>python</language> 9 <revision>$LastChangedRevision: 1018 $</revision> 10 <modified>$LastChangedDate: 2008-06-08 21:24:34 -0400 (Sun, 08 Jun 2008) $</modified> 11 <language>tcl</language> 10 12 </rappture> 11 13 </version> … … 49 51 <output> 50 52 <log>Enter the Fermi level (eV): 51 Ef = 0 .053 Ef = 0 52 54 Enter the temperature (K): 53 T = 300.0 54 warning: fopen: default open mode is now binary</log> 55 T = 300 56 =RAPPTURE-ERROR=>warning: fopen: default open mode is now binary 57 =RAPPTURE-ERROR=> 58 </log> 55 59 <curve id="f12"> 56 60 <about> … … 65 69 </yaxis> 66 70 <component> 67 <xy>0.999944 -0.253324 71 <xy>0.99995 -0.255922 72 0.999944 -0.253324 68 73 0.999939 -0.250726 69 74 0.999932 -0.248127 … … 266 271 </component> 267 272 </curve> 273 <time>Wed Dec 10 03:01:10 EST 2008</time> 274 <status>ok</status> 275 <user>dkearney</user> 268 276 </output> 269 277 </run> 278 -
branches/blt4/examples/app-fermi/wrapper/perl/tool.xml
r1895 r1897 3 3 <tool> 4 4 <about>Press Simulate to view results.</about> 5 <command>p ython @tool/fermi.py@driver</command>5 <command>perl @tool/fermi.pl @driver</command> 6 6 </tool> 7 7 <input> -
branches/blt4/examples/demo.bash.in
r1596 r1897 47 47 ./app-fermi/cee \ 48 48 ./app-fermi/tcl \ 49 ./app-fermi/java \ 49 50 ./app-fermi/perl \ 50 51 ./app-fermi/ruby \ -
branches/blt4/gui/apps/Makefile.in
r1633 r1897 1 1 2 2 SHELL = @SHELL@ 3 3 TCLSH = @TCLSH@ 4 4 srcdir = @srcdir@ 5 5 prefix = @prefix@ -
branches/blt4/gui/apps/about.in
r1206 r1897 19 19 # ====================================================================== 20 20 #\ 21 . rappture.env \ 21 22 exec wish "$0" $* 22 23 # ---------------------------------------------------------------------- -
branches/blt4/gui/apps/encodedata.in
r1280 r1897 8 8 # ====================================================================== 9 9 #\ 10 RAPPTURE_INSTALL_DIR=@prefix@ ; \11 . $RAPPTURE_INSTALL_DIR/bin/rappture.env ; \12 10 exec wish "$0" $* 13 11 -
branches/blt4/gui/apps/flowvis-test
r1492 r1897 16 16 # ====================================================================== 17 17 #\ 18 bindir=`basename $0` ; \ 19 . $bindir/rappture.env ; \ 18 20 exec wish "$0" $* 19 21 # ---------------------------------------------------------------------- 20 22 # wish executes everything from here on... 21 23 22 lappend auto_path /usr/local/rappture/lib /usr/local/rappture/lib/vtk /usr/local/rappture/lib/vtk/tcl 24 set installdir [file root $argv0] 25 set libdir [file join $installdir "lib"] 26 27 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl 23 28 24 29 package require Itcl -
branches/blt4/gui/apps/nanovis-test
r1292 r1897 17 17 # ====================================================================== 18 18 #\ 19 exec wish "$0" $* 19 bindir=`dirname $0` ; \ 20 exec $bindir/wish "$0" $* 20 21 # ---------------------------------------------------------------------- 21 22 # wish executes everything from here on... 22 23 23 lappend auto_path /usr/local/rappture/lib /usr/local/rappture/lib/vtk /usr/local/rappture/lib/vtk/tcl 24 set installdir [file root $argv0] 25 set libdir [file join $installdir "lib"] 26 27 lappend auto_path $libdir $libdir/vtk $libdir/vtk/tcl 24 28 25 29 package require Itcl … … 171 175 set cmd $last_command 172 176 } 173 namespace eval Rappture::NanovisViewer [list $widgets(nanovis) _send $cmd]177 namespace eval Rappture::NanovisViewer [list $widgets(nanovis) SendCmd $cmd] 174 178 $widgets(command) delete 0 end 175 179 } -
branches/blt4/gui/apps/rappture-csh.env.in
r1747 r1897 24 24 set python_version=@PYTHON_VERSION@ 25 25 set tcl_version=@TCL_VERSION@ 26 set octave_version=@OCTAVE_VERSION@ 26 27 27 28 set path = ( $bindir $path ) … … 52 53 53 54 if ( $?OCTAVE_LOADPATH ) then 54 setenv OCTAVE_LOADPATH "${libdir}/octave :$OCTAVE_LOADPATH"55 setenv OCTAVE_LOADPATH "${libdir}/octave${octave_version}:$OCTAVE_LOADPATH" 55 56 else 56 setenv OCTAVE_LOADPATH "${libdir}/octave "57 setenv OCTAVE_LOADPATH "${libdir}/octave${octave_version}" 57 58 endif 58 59 … … 93 94 endif 94 95 95 # Can we do this without putting dot in the path?96 96 if ( $?CLASSPATH ) then 97 setenv CLASSPATH ".:${libdir}/java:$CLASSPATH"98 else 99 setenv CLASSPATH " .:${libdir}/java"97 setenv CLASSPATH "${libdir}/java:$CLASSPATH" 98 else 99 setenv CLASSPATH "${libdir}/java" 100 100 endif 101 102 -
branches/blt4/gui/apps/rappture.env.in
r1746 r1897 23 23 python_version=@PYTHON_VERSION@ 24 24 tcl_version=@TCL_VERSION@ 25 octave_version=@OCTAVE_VERSION_MAJOR@ 25 26 26 27 # No need to edit anything else … … 35 36 36 37 MATLABPATH=${libdir}/matlab:$MATLABPATH 37 OCTAVE_LOADPATH=:${libdir}/octave :$OCTAVE_LOADPATH38 OCTAVE_PATH=:${libdir}/octave :$OCTAVE_PATH38 OCTAVE_LOADPATH=:${libdir}/octave${octave_version}:$OCTAVE_LOADPATH 39 OCTAVE_PATH=:${libdir}/octave${octave_version}:$OCTAVE_PATH 39 40 40 41 export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH … … 52 53 export TCL_LIBRARY TK_LIBRARY TCLLIBPATH 53 54 54 # Can we do this without putting dot in the path?55 55 CLASSPATH=.:${libdir}/java:$CLASSPATH 56 export CLASSPATH 56 57 export CLASSPATH 58 -
branches/blt4/gui/apps/rappture.use.in
r1746 r1897 15 15 tcl_version=@TCL_VERSION@ 16 16 17 prepend PATH ${bindir} /bin17 prepend PATH ${bindir} 18 18 19 19 prepend LD_LIBRARY_PATH ${vtkdir} … … 34 34 prepend TK_LIBRARY ${libdir}/tk${tcl_version} 35 35 36 prepend CLASSPATH .:${libdir}/java 36 tags DEVEL -
branches/blt4/gui/apps/rerun.in
r1206 r1897 30 30 # 31 31 # 32 33 RAPPTURE_INSTALL_DIR=@prefix@ 34 35 . $RAPPTURE_INSTALL_DIR/bin/rappture.env 36 exec $RAPPTURE_INSTALL_DIR/bin/driver -nosim true -load $* 32 exec rappture -nosim true -load $* -
branches/blt4/gui/apps/simsim.in
r1612 r1897 8 8 # ====================================================================== 9 9 #\ 10 RAPPTURE_INSTALL_DIR=@prefix@ ; \ 11 . $RAPPTURE_INSTALL_DIR/bin/rappture.env ; \ 10 . rappture.env \ 12 11 exec wish "$0" $* 13 12 … … 204 203 } else { 205 204 set optList [$child children -as object -type option] 205 set optLib "" 206 206 set value "" 207 if {"random" == $valType} { 208 set optIdx [expr {int(rand()*[llength $optList])}] 209 set optLib [lindex $optList $optIdx] 210 set value [$optLib get value] 211 } elseif {"default" == $valType} { 212 set defaultVal [$child get default] 213 foreach optLib $optList { 214 set label [$optLib get about.label] 215 set valTag [$optLib get value] 216 if {($defaultVal == $label) || ($defaultVal == $valTag)} { 217 set value $valTag 218 break 207 if {[llength $optList] > 0} { 208 if {"random" == $valType} { 209 set optIdx [expr {int(rand()*[llength $optList])}] 210 set optLib [lindex $optList $optIdx] 211 set value [$optLib get value] 212 } elseif {"default" == $valType} { 213 set defaultVal [$child get default] 214 foreach optLib $optList { 215 set label [$optLib get about.label] 216 set valTag [$optLib get value] 217 if {($defaultVal == $label) || ($defaultVal == $valTag)} { 218 set value $valTag 219 break 220 } 219 221 } 220 222 } 221 } 222 223 if {"" == $value} { 224 set value [$optLib get about.label] 223 224 if {"" == $value} { 225 set optLib [lindex $optList 0] 226 set value [$optLib get value] 227 if {"" == $value} { 228 set value [$optLib get about.label] 229 } 230 } 225 231 } 226 232 $child put "current" $value -
branches/blt4/gui/apps/table
r1212 r1897 1 1 2 package require Rappture 2 3 package require RapptureGUI -
branches/blt4/gui/apps/xmldiff.in
r1206 r1897 13 13 # ====================================================================== 14 14 15 RAPPTURE_INSTALL_DIR=@prefix@ 16 17 . $RAPPTURE_INSTALL_DIR/bin/rappture.env 18 exec $RAPPTURE_INSTALL_DIR/bin/simsim --nosim --tool $1 --compare $2 15 exec simsim --nosim --tool $1 --compare $2 -
branches/blt4/gui/scripts/Makefile.in
r1879 r1897 14 14 INSTALL = @INSTALL@ 15 15 MKDIR_P = @MKDIR_P@ 16 TCL_VERSION = @TCL_VERSION@ 17 TCLSH = $(bindir)/tclsh$(TCL_VERSION) 16 TCLSH = @TCLSH@ 18 17 VPATH = $(srcdir) 19 18 PACKAGE_VERSION = @PACKAGE_VERSION@ … … 115 114 $(srcdir)/utils.tcl \ 116 115 $(srcdir)/valueresult.tcl \ 116 $(srcdir)/videoviewer.tcl \ 117 117 $(srcdir)/visviewer.tcl \ 118 118 $(srcdir)/vtkviewer.tcl \ -
branches/blt4/gui/scripts/analyzer.tcl
r1879 r1897 433 433 434 434 if {$status != 0} { 435 $itk_component(runinfo) configure -state normal 436 $itk_component(runinfo) delete 1.0 end 437 $itk_component(runinfo) insert end "Problem launching job:\n\n" text 438 _simOutput $result 439 $itk_component(runinfo) configure -state disabled 440 $itk_component(runinfo) see 1.0 441 442 # Try to create a support ticket for this error. 443 # It may be a real problem. 444 if {[Rappture::bugreport::shouldReport for jobs]} { 445 Rappture::bugreport::register "Problem launching job:\n\n$result\n== RAPPTURE INPUT ==\n[$_tool xml xml]" 446 } 435 $itk_component(runinfo) configure -state normal 436 $itk_component(runinfo) delete 1.0 end 437 $itk_component(runinfo) insert end "Problem launching job:\n\n" text 438 _simOutput $result 439 $itk_component(runinfo) configure -state disabled 440 $itk_component(runinfo) see 1.0 441 442 # Try to create a support ticket for this error. 443 # It may be a real problem. 444 if {[Rappture::bugreport::shouldReport for jobs]} { 445 set ::errorInfo "== RAPPTURE INPUT ==\n[$_tool xml xml]" 446 Rappture::bugreport::register "Problem launching job:\n$result" 447 Rappture::bugreport::send 448 } 447 449 } else { 448 450 $itk_component(notebook) current analyze -
branches/blt4/gui/scripts/balloon.tcl
r1719 r1897 217 217 # window). So for now, better to place the balloon window somewhere 218 218 # than to fail with a bad geometry. 219 #220 # Update: This answer could be that the root window (deskop) is221 # resized but XHeightOfScreen XWidthOfScreen still222 # report the initial size.223 #224 # Fixed in new BLT.225 #226 219 wm geometry $p +$px+$py 227 220 } else { -
branches/blt4/gui/scripts/bugreport.tcl
r1651 r1897 11 11 # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. 12 12 # ====================================================================== 13 option add *BugReport*Label.font {Helvetica -12} startupFile 13 14 option add *BugReport*banner*foreground white startupFile 14 15 option add *BugReport*banner*background #a9a9a9 startupFile 15 16 option add *BugReport*banner*highlightBackground #a9a9a9 startupFile 16 option add *BugReport*banner*font \ 17 -*-helvetica-bold-r-normal-*-18-* startupFile 18 option add *BugReport*Label.font \ 19 -*-helvetica-medium-r-normal-*-12-* startupFile 17 option add *BugReport*banner.title.font {Helvetica -18 bold} startupFile 20 18 option add *BugReport*xmit*wrapLength 3i startupFile 21 19 option add *BugReport*expl.width 50 startupFile 22 option add *BugReport*expl.font \ 23 -*-helvetica-medium-r-normal-*-12-* startupFile 24 option add *BugReport*expl.boldFont \ 25 -*-helvetica-bold-r-normal-*-12-* startupFile 20 option add *BugReport*expl.font {Helvetica -12} startupFile 21 option add *BugReport*expl.boldFont {Helvetica -12 bold} startupFile 22 option add *BugReport*comments.l.font {Helvetica -12 italic} startupFile 23 option add *BugReport*comments.info.text.font {Helvetica -12} startupFile 24 option add *BugReport*details*font {Courier -12} startupFile 26 25 27 26 namespace eval Rappture::bugreport { 27 # details from the current trouble report 28 variable details 29 28 30 # assume that if there's a problem launching a job, we should know it 29 31 variable reportJobFailures 1 … … 50 52 proc Rappture::bugreport::activate {err} { 51 53 global env errorInfo 54 variable details 52 55 53 56 if {"@SHOWDETAILS" == $err} { 57 pack propagate .bugreport yes 58 pack forget .bugreport.expl 54 59 pack forget .bugreport.xmit 55 pack forget .bugreport.ok 60 pack forget .bugreport.done 61 pack forget .bugreport.cntls.show 62 pack .bugreport.cntls -after .bugreport.banner -side bottom -fill x 56 63 pack .bugreport.details -after .bugreport.banner \ 57 64 -expand yes -fill both -padx 8 -pady 8 58 focus .bugreport.details.cntls.ok 65 pack .bugreport.comments -after .bugreport.details \ 66 -expand yes -fill both -padx 8 -pady {0 8} 59 67 return 60 68 } 61 69 62 # always fill in details so we can submit trouble reports later 70 # gather details so we can submit trouble reports later 71 # do this now, before we do anything with "catch" down below 72 # that might mask the errorInfo 73 register $err 74 75 pack propagate .bugreport yes 76 pack forget .bugreport.details 77 pack forget .bugreport.xmit 78 pack forget .bugreport.done 79 pack .bugreport.cntls.show -side right 80 pack .bugreport.cntls -after .bugreport.banner -side bottom -fill x 81 pack .bugreport.expl -after .bugreport.banner \ 82 -expand yes -fill both -padx 8 -pady 8 83 pack .bugreport.comments -after .bugreport.expl \ 84 -expand yes -fill both -padx 8 -pady {0 8} 85 86 .bugreport.expl configure -state normal 87 .bugreport.expl delete 1.0 end 88 89 set url [Rappture::Tool::resources -huburl] 90 if {"" != $url} { 91 .bugreport.expl insert end "Something went wrong with this tool. Help us understand what happened by submitting a trouble report, so we can fix the problem. If you continue having trouble with this tool, please close it and restart." 92 .bugreport.cntls.send configure -state normal 93 focus .bugreport.cntls.send 94 } else { 95 .bugreport.expl insert end "Something went wrong with this tool. We would ask you to submit a trouble report about the error, but we can't tell what hub it should be submitted to. If you continue having trouble with this tool, please close it and restart." 96 pack forget .bugreport.comments 97 .bugreport.cntls.send configure -state disabled 98 focus .bugreport.cntls.ok 99 } 100 fixTextHeight .bugreport.expl 101 .bugreport.expl configure -state disabled 102 63 103 .bugreport.details.info.text configure -state normal 64 104 .bugreport.details.info.text delete 1.0 end 65 .bugreport.details.info.text insert end "$err\n-----\n$errorInfo" 105 .bugreport.details.info.text insert end " USER: $details(login)\n" 106 .bugreport.details.info.text insert end "HOSTNAME: $details(hostname)\n" 107 .bugreport.details.info.text insert end " TOOL: $details(referrer)\n" 108 .bugreport.details.info.text insert end " SESSION: $details(session)\n" 109 .bugreport.details.info.text insert end "CATEGORY: $details(category)\n" 110 .bugreport.details.info.text insert end " SUMMARY: $details(summary)\n" 111 .bugreport.details.info.text insert end "---------\n" 112 .bugreport.details.info.text insert end $details(stackTrace) 66 113 .bugreport.details.info.text configure -state disabled 67 68 if {[shouldReport for oops]} {69 pack forget .bugreport.details70 pack forget .bugreport.expl71 pack .bugreport.ok -side bottom -after .bugreport.banner -pady {0 8}72 pack .bugreport.xmit -after .bugreport.ok -padx 8 -pady 873 focus .bugreport.ok74 set dosubmit 175 } else {76 pack forget .bugreport.expl77 pack forget .bugreport.xmit78 pack forget .bugreport.ok79 pack .bugreport.details -after .bugreport.banner \80 -expand yes -fill both -padx 8 -pady 881 focus .bugreport.details.cntls.ok82 set dosubmit 083 }84 114 85 115 set w [winfo reqwidth .bugreport] 86 116 set h [winfo reqheight .bugreport] 87 117 set x [expr {([winfo screenwidth .bugreport]-$w)/2}] 88 set y [expr {([winfo screenheight .bugreport]-$w)/2}] 118 if {$x < 0} {set x 0} 119 set y [expr {([winfo screenheight .bugreport]-$h)/2}] 120 if {$y < 0} {set y 0} 89 121 90 122 wm geometry .bugreport +$x+$y … … 94 126 catch {grab set .bugreport} 95 127 update 96 97 if {$dosubmit} {98 submit99 }100 128 } 101 129 … … 123 151 set info [.bugreport.details.info.text get 1.0 end] 124 152 153 pack propagate .bugreport no 125 154 pack forget .bugreport.details 126 pack .bugreport.ok -side bottom -after .bugreport.banner -pady {0 8} 127 pack .bugreport.xmit -after .bugreport.ok -padx 8 -pady 8 155 pack forget .bugreport.expl 156 pack forget .bugreport.comments 157 pack forget .bugreport.cntls 158 pack .bugreport.xmit -after .bugreport.banner -padx 8 -pady 8 128 159 .bugreport.xmit.title configure -text "Sending trouble report to [Rappture::Tool::resources -hubname]..." 129 focus .bugreport.ok130 160 131 161 # send off the trouble report... 132 162 .bugreport.xmit.icon start 133 set status [catch {register $info}result]163 set status [catch send result] 134 164 .bugreport.xmit.icon stop 135 165 166 pack propagate .bugreport yes 136 167 pack forget .bugreport.xmit 137 pack .bugreport.expl -after .bugreport. ok-padx 8 -pady 8168 pack .bugreport.expl -after .bugreport.banner -padx 8 -pady 8 138 169 .bugreport.expl configure -state normal 139 170 .bugreport.expl delete 1.0 end … … 146 177 .bugreport.details.info.text configure -state disabled 147 178 148 .bugreport.expl insert end " This tool encountered an unexpected error. We tried to submit a trouble report automatically, but that failed. If you want to report this incident, you can file your own trouble report. Look for the \"Help\" or \"Support\" links on the main navigation bar of the web site.\n\nIf you continue having trouble with this tool, please close it and launch another session."179 .bugreport.expl insert end "Oops! Ticket submission failed:\n$result\n\nIf you want to report the original problem, you can file your own trouble report by going to the web site and clicking on the \"Help\" or \"Support\" link on the main navigation bar. If you continue having trouble with this tool, please close it and restart." 149 180 } elseif {[regexp {Ticket #([0-9]*) +\((.*?)\) +([0-9]+) +times} $result match ticket extra times]} { 150 .bugreport.expl insert end "This tool encountered an unexpected error. Theproblem has been reported as " "" "Ticket #$ticket" bold " in our system." ""181 .bugreport.expl insert end "This problem has been reported as " "" "Ticket #$ticket" bold " in our system." "" 151 182 if {[string is integer $times] && $times > 1} { 152 183 .bugreport.expl insert end " This particular problem has been reported $times times." 153 184 } 154 .bugreport.expl insert end "\n\nIf you continue having trouble with this tool, please close it and launch another session."185 .bugreport.expl insert end "\n\nIf you continue having trouble with this tool, please close it and restart. Thanks for reporting the problem and helping us improve things!" 155 186 } else { 156 .bugreport.expl insert end "This tool encountered an unexpected error, and the problem was reported. Here is the response from the hub, which may contain information about your ticket:\n" "" $result bold "\n\nIf you continue having trouble with this tool, please close it and launch another session." "" 157 } 158 for {set h 1} {$h < 50} {incr h} { 159 .bugreport.expl configure -height $h 160 .bugreport.expl see 1.0 161 update idletasks 162 if {"" != [.bugreport.expl bbox end-1char]} { 163 break 164 } 165 } 187 .bugreport.expl insert end "This problem has been reported. Here is the response from the hub, which may contain information about your ticket:\n" "" $result bold "\n\nIf you continue having trouble with this tool, please close it and restart. Thanks for reporting the problem and helping us improve things!" "" 188 } 189 fixTextHeight .bugreport.expl 166 190 .bugreport.expl configure -state disabled 167 } 168 169 # ---------------------------------------------------------------------- 170 # USAGE: download 171 # 172 # Used to download the current ticket information to the user's 173 # desktop. 174 # ---------------------------------------------------------------------- 175 proc Rappture::bugreport::download {} { 176 set info [.bugreport.details.info.text get 1.0 end] 177 Rappture::filexfer::download $info bugreport.txt 178 } 179 180 # ---------------------------------------------------------------------- 181 # USAGE: register <stackTrace> 182 # 183 # Low-level function used to send bug reports back to the hub site. 184 # Error details in the <stackTrace> are posted to a URL that creates 185 # a support ticket. Returns a string of the following form, 186 # representing details about the new or existing ticket: 187 # Ticket #XX (XXXXXX) XX times 188 # ---------------------------------------------------------------------- 189 proc Rappture::bugreport::register {stackTrace} { 190 global env tcl_platform 191 192 package require http 193 package require tls 194 http::register https 443 ::tls::socket 195 191 pack .bugreport.done -side bottom -padx 8 -pady 8 192 focus .bugreport.done 193 } 194 195 # ---------------------------------------------------------------------- 196 # USAGE: register <err> 197 # 198 # Low-level function used to capture information about a bug report 199 # prior to calling "send", which actually sends the ticket. We usually 200 # let the user preview the information and decide whether or not to 201 # send the ticket. 202 # ---------------------------------------------------------------------- 203 proc Rappture::bugreport::register {err} { 204 global errorInfo tcl_platform 205 variable details 206 207 # 208 # Figure out exactly what we'll send if the bug report is 209 # submitted, so we can show the user. 210 # 211 set stackTrace "$err\n---------\n$errorInfo" 196 212 if {![regexp {^([^\n]+)\n} $stackTrace match summary]} { 197 213 if {[string length $stackTrace] == 0} { … … 246 262 } 247 263 264 set details(summary) $summary 265 set details(category) $category 266 set details(stackTrace) $stackTrace 267 set details(login) $tcl_platform(user) 268 set details(hostname) [info hostname] 269 set details(session) [Rappture::Tool::resources -session] 270 set details(referrer) "tool \"[Rappture::Tool::resources -appname]\"" 271 } 272 273 # ---------------------------------------------------------------------- 274 # USAGE: send 275 # 276 # Low-level function used to send bug reports back to the hub site. 277 # Error details gathered by a previous call to "register" are sent 278 # along as a support ticket. Returns a string of the following form, 279 # representing details about the new or existing ticket: 280 # Ticket #XX (XXXXXX) XX times 281 # ---------------------------------------------------------------------- 282 proc Rappture::bugreport::send {} { 283 variable details 284 285 package require http 286 package require tls 287 http::register https 443 ::tls::socket 288 289 set report $details(stackTrace) 290 set cmts [string trim [.bugreport.comments.info.text get 1.0 end]] 291 if {[string length $cmts] > 0} { 292 set report "$cmts\n[string repeat = 72]\n$report" 293 } 294 248 295 set query [http::formatQuery \ 249 296 option com_support \ 250 297 task create \ 251 298 no_html 1 \ 252 report $ stackTrace\253 login $ tcl_platform(user) \254 sesstoken [Rappture::Tool::resources -session]\255 hostname [info hostname]\256 category $ category\257 summary $ summary\258 referrer "tool \"[Rappture::Tool::resources -appname]\""\299 report $report \ 300 login $details(login) \ 301 sesstoken $details(session) \ 302 hostname $details(hostname) \ 303 category $details(category) \ 304 summary $details(summary) \ 305 referrer $details(referrer) \ 259 306 ] 260 307 … … 282 329 283 330 # ---------------------------------------------------------------------- 331 # USAGE: fixTextHeight <widget> 332 # 333 # Used internally to adjust the height of a text widget so it is just 334 # tall enough to show the info within it. 335 # ---------------------------------------------------------------------- 336 proc Rappture::bugreport::fixTextHeight {widget} { 337 # 338 # HACK ALERT! In Tk8.5, we can count display lines directly. 339 # But for earlier versions, we have to cook up something 340 # similar. 341 # 342 if {[catch {$widget count -displaylines 1.0 end} h] == 0 && $h > 0} { 343 $widget configure -height $h 344 } else { 345 for {set h 1} {$h < 15} {incr h} { 346 $widget configure -height $h 347 $widget see 1.0 348 update idletasks 349 if {"" != [$widget bbox end-1char]} { 350 break 351 } 352 } 353 } 354 } 355 356 # ---------------------------------------------------------------------- 284 357 # USAGE: shouldReport jobfailures <boolean> 285 358 # USAGE: shouldReport for ?oops|jobs? … … 304 377 } 305 378 for { 306 # is this a tool in production?307 if {![info exists env(RAPPTURE_VERSION)]308 || $env(RAPPTURE_VERSION) != "current"} {309 return 0310 }311 312 379 # is it being run within a workspace? 313 380 set appname [Rappture::Tool::resources -appname] … … 343 410 label .bugreport.banner.icon -image [Rappture::icon alert] 344 411 pack .bugreport.banner.icon -side left -padx 2 -pady 2 345 label .bugreport.banner.title -text "Oops! UnexpectedError"412 label .bugreport.banner.title -text "Oops! Internal Error" 346 413 pack .bugreport.banner.title -side left -padx {0 8} -pady 2 347 414 … … 352 419 Rappture::bugreport::deactivate 353 420 354 button .bugreport.ok -text "Dismiss" -command Rappture::bugreport::deactivate 355 pack .bugreport.ok -side bottom -pady {0 8} 421 set bg [.bugreport cget -background] 422 text .bugreport.expl -borderwidth 0 -highlightthickness 0 -background $bg \ 423 -height 3 -wrap word 424 .bugreport.expl tag configure bold \ 425 -font [option get .bugreport.expl boldFont Font] 426 # 427 # HACK ALERT! We have problems with fixTextHeight working correctly 428 # on Windows for Tk8.4 and earlier. To make it work properly, we 429 # add the binding below. At some point, we'll ditch 8.4 and we can 430 # use the new "count -displaylines" option in Tk8.5. 431 # 432 bind .bugreport.expl <Map> {Rappture::bugreport::fixTextHeight %W} 433 434 frame .bugreport.comments 435 label .bugreport.comments.l -text "What were you doing just before this error?" -anchor w 436 pack .bugreport.comments.l -side top -anchor w 437 Rappture::Scroller .bugreport.comments.info -xscrollmode none -yscrollmode auto 438 text .bugreport.comments.info.text -width 30 -height 3 -wrap word 439 .bugreport.comments.info contents .bugreport.comments.info.text 440 bind .bugreport.comments.info.text <ButtonPress> {focus %W} 441 pack .bugreport.comments.info -expand yes -fill both 442 443 frame .bugreport.cntls 444 pack .bugreport.cntls -side bottom -fill x 445 button .bugreport.cntls.ok -text "Ignore" -command { 446 Rappture::bugreport::deactivate 447 } 448 pack .bugreport.cntls.ok -side left -padx {4 20} -pady 8 449 button .bugreport.cntls.send -text "Send Trouble Report" -command { 450 Rappture::bugreport::submit 451 } 452 pack .bugreport.cntls.send -side right -padx 4 -pady 8 453 454 button .bugreport.cntls.show -text "Show Details..." \ 455 -command {Rappture::bugreport::activate @SHOWDETAILS} 456 pack .bugreport.cntls.show -side right 457 458 459 frame .bugreport.details 460 Rappture::Scroller .bugreport.details.info -xscrollmode auto -yscrollmode auto 461 text .bugreport.details.info.text -width 50 -height 15 -wrap none 462 .bugreport.details.info contents .bugreport.details.info.text 463 pack .bugreport.details.info -expand yes -fill both 356 464 357 465 frame .bugreport.xmit … … 364 472 pack .bugreport.xmit.title -side left -expand yes -fill x 365 473 366 text .bugreport.expl -borderwidth 0 -highlightthickness 0 -wrap word 367 .bugreport.expl tag configure bold \ 368 -font [option get .bugreport.expl boldFont Font] 369 370 bind .bugreport.expl <Control-1><Control-1><Control-3><Control-3> { 371 Rappture::bugreport::activate @SHOWDETAILS 372 } 373 374 bind .bugreport.expl <Control-1><Control-1><Control-Shift-1><Control-Shift-1> { 375 Rappture::bugreport::activate @SHOWDETAILS 376 } 377 378 frame .bugreport.details 379 frame .bugreport.details.cntls 380 pack .bugreport.details.cntls -side bottom -fill x 381 button .bugreport.details.cntls.ok -text "Dismiss" -command { 382 Rappture::bugreport::deactivate 383 } 384 pack .bugreport.details.cntls.ok -side right -padx 2 -pady 4 385 button .bugreport.details.cntls.send -text "Send Trouble Report" -command { 386 Rappture::bugreport::submit 387 } 388 pack .bugreport.details.cntls.send -side left -padx 2 -pady 4 389 button .bugreport.details.cntls.dload -text "Download" -command { 390 Rappture::bugreport::download 391 } 392 pack .bugreport.details.cntls.dload -side left -padx 2 -pady 4 393 394 set scrollset .bugreport.details.info 395 blt::scrollset $scrollset -xscrollbar $scrollset.xs -yscrollbar $scrollset.ys \ 396 -window $scrollset.text 397 blt::tk::scrollbar $scrollset.xs 398 blt::tk::scrollbar $scrollset.ys 399 text .bugreport.details.info.text -width 50 -height 15 -wrap none 400 pack .bugreport.details.info -expand yes -fill both 474 button .bugreport.done -text "Done" \ 475 -command Rappture::bugreport::deactivate 401 476 402 477 # this binding keeps the bugreport window on top -
branches/blt4/gui/scripts/combobox.tcl
r1646 r1897 134 134 $itk_component(entry) configure -state disabled 135 135 } 136 set cmd [list event generate $itk_component(hull) <<Value>>] 137 after 10 [list catch $cmd]136 137 after 10 [list catch [list event generate $itk_component(hull) <<Value>>]] 138 138 } elseif {[llength $args] != 0} { 139 139 error "wrong # args: should be \"value ?newval?\"" -
branches/blt4/gui/scripts/filexfer.tcl
r1587 r1897 338 338 /apps/bin/clientaction 339 339 /apps/xvnc/bin/clientaction 340 /usr/lib/mw/bin/clientaction 340 341 "" 341 342 } { -
branches/blt4/gui/scripts/grab.tcl
r1342 r1897 65 65 } 66 66 67 # if the window is already on the stack, then skip it 68 if {[string equal [lindex $::Rappture::grab::stack 0] $window]} { 69 return $window 70 } 71 67 72 # add the current configuration to the grab stack 68 73 set ::Rappture::grab::stack \ -
branches/blt4/gui/scripts/moleculeViewer.tcl
r1719 r1897 700 700 } 701 701 702 itcl::body Rappture:: DeviceEditor::snap { w h } {702 itcl::body Rappture::MoleculeViewer::snap { w h } { 703 703 if { $w <= 0 || $h <= 0 } { 704 704 set w [winfo width $itk_component(area)] -
branches/blt4/gui/scripts/sidebarframe.tcl
r1764 r1897 451 451 release { 452 452 set minw [winfo reqwidth $itk_component(controlbar)] 453 if { $_width != "auto" && ($_width-$minw)< 40} {453 if {$_width-$minw < 40} { 454 454 set _width "auto" 455 455 pop close -
branches/blt4/gui/scripts/textentry.tcl
r1862 r1897 231 231 # take down any existing widget 232 232 foreach win [pack slaves $itk_interior] { 233 pack forget $win 233 if { [winfo name $win] != "hints" } { 234 pack forget $win 235 } 234 236 } 235 237 -
branches/blt4/gui/scripts/utils.tcl
r1719 r1897 23 23 proc Rappture::utils::hexdump {args} { 24 24 Rappture::getopts args params { 25 25 value -lines unlimited 26 26 } 27 27 if {[llength $args] != 1} { 28 28 error "wrong # args: should be \"hexdump ?-lines num? data\"" 29 29 } 30 30 set newval [lindex $args 0] … … 34 34 35 35 if {$params(-lines) != "unlimited" && $params(-lines) <= 0} { 36 36 return $rval 37 37 } 38 38 … … 40 40 set len [string length $newval] 41 41 for {set i 0} {$i < $len} {incr i 8} { 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 42 append rval [format "%#06x: " $i] 43 set ascii "" 44 for {set j 0} {$j < 8} {incr j} { 45 if {$i+$j < $len} { 46 set char [string index $newval [expr {$i+$j}]] 47 binary scan $char c ichar 48 set hexchar [format "%02x" [expr {0xff & $ichar}]] 49 } else { 50 set char " " 51 set hexchar " " 52 } 53 append rval "$hexchar " 54 if {[regexp {[\000-\037\177-\377]} $char]} { 55 append ascii "." 56 } else { 57 append ascii $char 58 } 59 } 60 append rval " | $ascii\n" 61 61 62 63 64 65 66 67 62 if {"unlimited" != $params(-lines) && $i/8+1 >= $params(-lines)} { 63 if {$i < $len-1} { 64 append rval "more..." 65 } 66 break 67 } 68 68 } 69 69 return $rval … … 78 78 proc Rappture::utils::binsize {size} { 79 79 foreach {factor units} { 80 81 82 83 80 1073741824 GB 81 1048576 MB 82 1024 kB 83 1 bytes 84 84 } { 85 86 87 88 89 90 85 if {$size/$factor > 0} { 86 if {$factor > 1} { 87 set size [format "%.1f" [expr {double($size)/$factor}]] 88 } 89 break 90 } 91 91 } 92 92 return "$size $units" … … 127 127 return $desc 128 128 } 129 130 # ---------------------------------------------------------------------- 131 # USAGE: expandPath <path> 132 # 133 # Returns the true location of the provided path, 134 # automatically expanding links to form an absolute path. 135 # ---------------------------------------------------------------------- 136 proc Rappture::utils::expandPath {args} { 137 set path "" 138 set dirs [file split [lindex $args 0]] 139 140 while {[llength $dirs] > 0} { 141 set d [lindex $dirs 0] 142 set dirs [lrange $dirs 1 end] 143 if {[catch {file link [file join $path $d]} out] == 0} { 144 # directory d is a link, follow it 145 set outdirs [file split $out] 146 if {[string compare "/" [lindex $outdirs 0]] == 0} { 147 # directory leads back to root 148 # clear path 149 # reset dirs list 150 set path "" 151 set dirs $outdirs 152 } else { 153 # relative path for the link 154 # prepend directory to dirs list 155 set dirs [concat $outdirs $dirs] 156 } 157 } else { 158 set path [file join $path $d] 159 } 160 } 161 return $path 162 } 163 -
branches/blt4/gui/scripts/xyresult.tcl
r1804 r1897 279 279 -brightness 0 280 280 -width 1 281 -type " histogram"281 -type "line" 282 282 -raise 0 283 283 -linestyle solid -
branches/blt4/lang/perl/Makefile.in
r1148 r1897 21 21 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 22 22 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 23 CFLAGS = @CFLAGS@ 23 CFLAGS = @CFLAGS@ -fPIC 24 24 25 25 AR = ar -
branches/blt4/lang/tcl/src/Makefile.in
r1643 r1897 25 25 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 26 26 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 27 CFLAGS = @CFLAGS@ 28 TCL_VERSION 27 CFLAGS = @CFLAGS@ -fPIC 28 TCL_VERSION = @TCL_VERSION@ 29 29 TCL_LIB_SPEC = @TCL_LIB_SPEC@ 30 30 … … 35 35 -I../../../src/core \ 36 36 -I$(srcdir)/../../../src/core \ 37 -I$(srcdir)/../../../src/objects \ 37 38 -I$(includedir) 38 39 version = @PACKAGE_VERSION@ … … 68 69 endif 69 70 71 FFMPEG = @HAVE_FFMPEG_LIBS@ 72 ifeq ($(FFMPEG),yes) 73 OBJS += RpMediaPlayerTclInterface.o 74 LIBS += -L../../../src/objects -lRpObjects 75 endif 76 77 70 78 # Not using RpLibraryTclInterface.o \ 71 79 -
branches/blt4/lang/tcl/src/Rappture_Init.c
r1578 r1897 15 15 16 16 #include <tcl.h> 17 #include "config.h" 17 18 18 19 #ifdef BUILD_rappture … … 35 36 extern Tcl_AppInitProc RpEncoding_Init; 36 37 extern Tcl_AppInitProc RpUtils_Init; 38 39 #ifdef BUILD_with_ffmpeg 40 extern Tcl_AppInitProc RpMediaPlayer_Init; 41 #endif 37 42 38 43 #ifdef BUILD_Rappture … … 65 70 return TCL_ERROR; 66 71 } 72 #ifdef BUILD_with_ffmpeg 73 if (RpMediaPlayer_Init(interp) != TCL_OK) { 74 return TCL_ERROR; 75 } 76 #endif 67 77 if (RpRlimit_Init(interp) != TCL_OK) { 68 78 return TCL_ERROR; -
branches/blt4/src/core/Makefile.in
r1780 r1897 29 29 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 30 30 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 31 CFLAGS = @CFLAGS@ 31 CFLAGS = @CFLAGS@ -fPIC 32 32 DX_LIB_SPEC = @DX_LIB_SPEC@ 33 33 DX_INC_SPEC = @DX_INC_SPEC@ … … 79 79 rappture.h 80 80 81 LOCAL_HEADERS = \ 82 config.h 81 83 82 84 SCEW_HEADERS = \ … … 181 183 $(INSTALL) -m 444 $(srcdir)/$$i $(incdir) ; \ 182 184 done 185 for i in $(LOCAL_HEADERS) ; do \ 186 $(INSTALL) -m 444 $$i $(incdir) ; \ 187 done 183 188 184 189 .cc.o: -
branches/blt4/src/core/RpSimpleBuffer.h
r1560 r1897 749 749 750 750 /** 751 * Read data from the buffer into a memory location provided by caller751 * Move the internal position tracker to the beginning of the buffer. 752 752 */ 753 753 template<class T> -
branches/blt4/src/core/config.h.in
r1548 r1897 1 1 /* src/core/config.h.in. Generated from configure.in by autoheader. */ 2 3 /* Define if building universal (internal helper macro) */ 4 #undef AC_APPLE_UNIVERSAL_BUILD 5 6 /* Build rappture with ffmpeg widgets */ 7 #undef BUILD_with_ffmpeg 2 8 3 9 /* Define to 1 if you have the <algorithm> header file. */ … … 31 37 #undef HAVE_ERRNO_H 32 38 39 /* Define to 1 if you have the <ffmpeg/avcodec.h> header file. */ 40 #undef HAVE_FFMPEG_AVCODEC_H 41 42 /* Define to 1 if you have the <ffmpeg/avformat.h> header file. */ 43 #undef HAVE_FFMPEG_AVFORMAT_H 44 45 /* Define to 1 if you have the <ffmpeg/avutil.h> header file. */ 46 #undef HAVE_FFMPEG_AVUTIL_H 47 48 /* Define to 1 if you have the <ffmpeg/swscale.h> header file. */ 49 #undef HAVE_FFMPEG_SWSCALE_H 50 33 51 /* Define to 1 if you have the <float.h> header file. */ 34 52 #undef HAVE_FLOAT_H … … 36 54 /* Define to 1 if you have the <fstream> header file. */ 37 55 #undef HAVE_FSTREAM 56 57 /* Define to 1 if you have the `img_convert' function. */ 58 #undef HAVE_IMG_CONVERT 38 59 39 60 /* Define to 1 if you have the <inttypes.h> header file. */ … … 46 67 #undef HAVE_ITERATOR 47 68 69 /* Define to 1 if you have the <libavcodec/avcodec.h> header file. */ 70 #undef HAVE_LIBAVCODEC_AVCODEC_H 71 72 /* Define to 1 if you have the <libavformat/avformat.h> header file. */ 73 #undef HAVE_LIBAVFORMAT_AVFORMAT_H 74 75 /* Define to 1 if you have the <libavutil/avutil.h> header file. */ 76 #undef HAVE_LIBAVUTIL_AVUTIL_H 77 48 78 /* Define to 1 if you have the `m' library (-lm). */ 49 79 #undef HAVE_LIBM … … 51 81 /* Define to 1 if you have the `stdc++' library (-lstdc++). */ 52 82 #undef HAVE_LIBSTDC__ 83 84 /* Define to 1 if you have the <libswscale/swscale.h> header file. */ 85 #undef HAVE_LIBSWSCALE_SWSCALE_H 53 86 54 87 /* Define to 1 if you have the <limits.h> header file. */ … … 91 124 #undef HAVE_STRING_H 92 125 126 /* Define to 1 if you have the `sws_scale' function. */ 127 #undef HAVE_SWS_SCALE 128 93 129 /* Define to 1 if you have the `sysinfo' function. */ 94 130 #undef HAVE_SYSINFO … … 121 157 #undef PACKAGE_TARNAME 122 158 159 /* Define to the home page for this package. */ 160 #undef PACKAGE_URL 161 123 162 /* Define to the version of this package. */ 124 163 #undef PACKAGE_VERSION … … 139 178 #undef STDC_HEADERS 140 179 141 /* Define to 1 if your processor stores words with the most significant byte 142 first (like Motorola and SPARC, unlike Intel and VAX). */ 143 #undef WORDS_BIGENDIAN 180 /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most 181 significant byte first (like Motorola and SPARC, unlike Intel). */ 182 #if defined AC_APPLE_UNIVERSAL_BUILD 183 # if defined __BIG_ENDIAN__ 184 # define WORDS_BIGENDIAN 1 185 # endif 186 #else 187 # ifndef WORDS_BIGENDIAN 188 # undef WORDS_BIGENDIAN 189 # endif 190 #endif -
branches/blt4/src/core2/Makefile.in
r1082 r1897 37 37 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 38 38 LIB_SEARCH_DIRS = -L../core @LIB_SEARCH_DIRS@ 39 CFLAGS = @CFLAGS@ 39 CFLAGS = @CFLAGS@ -fPIC 40 40 CPP = @CPP@ 41 41 -
branches/blt4/src/objects/Makefile.in
r1581 r1897 26 26 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 27 27 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 28 CFLAGS = @CFLAGS@ 28 CFLAGS = @CFLAGS@ -fPIC 29 FFMPEG = @HAVE_FFMPEG_LIBS@ 29 30 RM = rm -f 30 31 CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) $(CFLAGS_DEBUG) … … 37 38 -I$(includedir) 38 39 LIBS = -L../core -lrappture 40 39 41 40 42 RANLIB = @RANLIB@ … … 110 112 RpObject.o 111 113 114 ifeq ($(FFMPEG),yes) 115 # since ffmpeg libraries are available, 116 # include them in compilation 117 LIBS += -lavcodec -lavformat -lswscale 118 HEADERS += RpMediaPlayer.h 119 OBJS += RpMediaPlayer.o 120 endif 121 112 122 113 123 name = RpObjects -
branches/blt4/src/objects/RpObject.cc
r1586 r1897 274 274 } 275 275 276 v = strchr nul(hint,'=');276 v = strchr(hint,'='); 277 277 *hintKey = hint; 278 if (( *v == '\0') || (*(v+1) == '\0')) {278 if ((v == NULL) || (*v == '\0') || (*(v+1) == '\0')) { 279 279 // incomplete hint string 280 280 *hintVal = NULL;
Note: See TracChangeset
for help on using the changeset viewer.