pax_global_header00006660000000000000000000000064141712225270014515gustar00rootroot0000000000000052 comment=d16bd8dd0cf3b05ef88ecbf31b5009e3dda7fc74 carmetal-4.3/000077500000000000000000000000001417122252700131535ustar00rootroot00000000000000carmetal-4.3/build-before-profiler.xml000066400000000000000000000064171417122252700200640ustar00rootroot00000000000000 Builds, tests, and runs the project CaRMetal. carmetal-4.3/build.xml000066400000000000000000000065061417122252700150030ustar00rootroot00000000000000 Builds, tests, and runs the project CaRMetal. carmetal-4.3/manifest.mf000066400000000000000000000001221417122252700153000ustar00rootroot00000000000000Manifest-Version: 1.0 X-COMMENT: Main-Class will be added automatically by build carmetal-4.3/nbproject/000077500000000000000000000000001417122252700151415ustar00rootroot00000000000000carmetal-4.3/nbproject/.DS_Store000066400000000000000000000140041417122252700166230ustar00rootroot00000000000000Bud1†igsdsclboconfigsdsclboolprivatedsclbool  @€ @€ @€ @ E†DSDB `À @€ @€ @carmetal-4.3/nbproject/.cvsignore000066400000000000000000000000221417122252700171330ustar00rootroot00000000000000.DS_Store private carmetal-4.3/nbproject/Icon000066400000000000000000000000001417122252700157420ustar00rootroot00000000000000carmetal-4.3/nbproject/build-impl.xml000066400000000000000000001227521417122252700177320ustar00rootroot00000000000000 Must set src.dir Must set test.src.dir Must set build.dir Must set dist.dir Must set build.classes.dir Must set dist.javadoc.dir Must set build.test.classes.dir Must set build.test.results.dir Must set build.classes.excludes Must set dist.jar Must set javac.includes Must select some files in the IDE or set javac.includes To run this application from the command line without Ant, try: java -cp "${run.classpath.with.dist.jar}" ${main.class} To run this application from the command line without Ant, try: java -jar "${dist.jar.resolved}" Must select one file in the IDE or set run.class Must select one file in the IDE or set run.class Must select one file in the IDE or set debug.class Must select one file in the IDE or set debug.class Must set fix.includes Must select some files in the IDE or set javac.includes Some tests failed; see details above. Must select some files in the IDE or set test.includes Some tests failed; see details above. Must select one file in the IDE or set test.class Must select one file in the IDE or set applet.url Must select one file in the IDE or set applet.url carmetal-4.3/nbproject/build-jaws-impl.xml000066400000000000000000000036361417122252700206730ustar00rootroot00000000000000 carmetal-4.3/nbproject/configs/000077500000000000000000000000001417122252700165715ustar00rootroot00000000000000carmetal-4.3/nbproject/configs/JWS_generated.properties000066400000000000000000000001531417122252700233670ustar00rootroot00000000000000$label=Web Start $target.debug=jws-debug $target.run=jws-run compile.on.save.unsupported.javawebstart=true carmetal-4.3/nbproject/genfiles.properties000066400000000000000000000014211417122252700210510ustar00rootroot00000000000000build.xml.data.CRC32=c19867a0 build.xml.script.CRC32=6a01bd09 build.xml.stylesheet.CRC32=240b97a2 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=e95a2ea9 nbproject/build-impl.xml.script.CRC32=735bb1c3 nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45 nbproject/build-jaws-impl.xml.data.CRC32=c19867a0 nbproject/build-jaws-impl.xml.script.CRC32=eead23c2 nbproject/build-jaws-impl.xml.stylesheet.CRC32=235a0393 nbproject/profiler-build-impl.xml.data.CRC32=c19867a0 nbproject/profiler-build-impl.xml.script.CRC32=abda56ed nbproject/profiler-build-impl.xml.stylesheet.CRC32=a5b6598e carmetal-4.3/nbproject/jnlp-impl.xml000066400000000000000000000322711417122252700175720ustar00rootroot00000000000000 carmetal-4.3/nbproject/private/000077500000000000000000000000001417122252700166135ustar00rootroot00000000000000carmetal-4.3/nbproject/private/.DS_Store000066400000000000000000000140041417122252700202750ustar00rootroot00000000000000Bud1†ilerdsclprofilerdsclbool  @€ @€ @€ @ E†DSDB `À @€ @€ @carmetal-4.3/nbproject/private/config.properties000066400000000000000000000000001417122252700221640ustar00rootroot00000000000000carmetal-4.3/nbproject/private/private.properties000066400000000000000000000022341417122252700224040ustar00rootroot00000000000000application.args= compile.on.save=false disable.compile.on.save=false do.depend=false do.jar=true file.reference.atp.jar=/Users/erichake/Documents/Programmes/NetBeans_Projects/CaRMetal/atp.jar file.reference.atp.jar-1=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaRMetal/atp.jar file.reference.atp.jar-2=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaR2/atp.jar file.reference.BrowserLauncher2.jar=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaRMetal/BrowserLauncher2.jar file.reference.colorchooser.jar=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaRMetal/colorchooser.jar file.reference.edu.jar=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaRMetal/edu.jar file.reference.ReusableComponents.jar=/Users/erichake/Documents/Programmes/NetBeansPorjects/ReusableComponents/dist/ReusableComponents.jar file.reference.src-atp=/Users/erichake/Documents/Programmes/NetBeansPorjects/CaR2/src/atp javac.debug=true javadoc.preview=true jaxbwiz.endorsed.dirs=/Volumes/Macintosh HD/Applications/NetBeans/NetBeans 6.8.app/Contents/Resources/NetBeans/ide12/modules/ext/jaxb/api user.properties.file=/Users/erichake/.netbeans/6.8/build.properties carmetal-4.3/nbproject/private/private.xml000066400000000000000000000025361417122252700210150ustar00rootroot00000000000000 src/rene/zirkel/ZirkelFrame.java 858 1371 src/rene/zirkel/construction/Construction.java 506 src/eric/bar/JProperties.java 3808 src/rene/zirkel/ZirkelCanvas.java 3356 3736 src/eric/JSprogram/JSRun.java 1030 src/eric/GUI/palette/PaletteManager.java 271 src/eric/JGeneralMenuBar.java 1107 src/eric/GUI/window/LeftPanel.java 85 143 src/rene/gui/Global.java 572 carmetal-4.3/nbproject/private/profiler/000077500000000000000000000000001417122252700204355ustar00rootroot00000000000000carmetal-4.3/nbproject/private/profiler/configurations.xml000066400000000000000000000175031417122252700242170ustar00rootroot00000000000000 1000 false profiler.simple.filter false 8 true false 0 false 1 false false false profiler.simple.filter 32 false 1 true 3 10 1 true Analyze Memory false 1 true 10 0 profiler.simple.filter 0 false true 1 false false true false false 32 Quick filter... 0 false 0 {$project.classes.only} 10 0 true true true 10 1000 0 profiler.simple.filter false Analyze Performance 1 0 0 false profiler.simple.filter Quick filter... true false 0 2 32 0 false Profile only project classes 0 0 profiler.simple.filter true 1 false 10 false 10 false true true false Quick filter... 0 false 2 Monitor Application 1000 true true carmetal-4.3/nbproject/private/profiler/presets.xml000066400000000000000000000005061417122252700226450ustar00rootroot00000000000000 0 carmetal-4.3/nbproject/profiler-build-impl.xml000066400000000000000000000125461417122252700215510ustar00rootroot00000000000000 Must set JVM to use for profiling in profiler.info.jvm Must set profiler agent JVM arguments in profiler.info.jvmargs.agent Must select one file in the IDE or set profile.class carmetal-4.3/nbproject/project.properties000066400000000000000000000062611417122252700207320ustar00rootroot00000000000000ant.customtasks.libs=JWSAntTasks application.args= application.title=CaRMetal application.vendor=erichake auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=default build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build build.generated.dir=${build.dir}/generated build.generated.sources.dir=${build.dir}/generated-sources # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results conf.jnlp=CaRMetal.jnlp debug.classpath=\ ${run.classpath} debug.test.classpath=\ ${run.test.classpath} # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/CaRMetal.jar dist.javadoc.dir=${dist.dir}/javadoc dist.war=${dist.dir}/CaRMetal.war endorsed.classpath= excludes= file.reference.atp.jar=atp.jar file.reference.atp.jar-1=atp.jar file.reference.atp.jar-2=../CaR2/atp.jar file.reference.BrowserLauncher2.jar=BrowserLauncher2.jar file.reference.colorchooser.jar=colorchooser.jar file.reference.com.apple.eawt.jar=../com.apple.eawt/dist/com.apple.eawt.jar file.reference.edu.jar=edu.jar file.reference.ReusableComponents.jar=../ReusableComponents/dist/ReusableComponents.jar file.reference.Rhino.jar=../Rhino/dist/Rhino.jar file.reference.src-atp=../CaR2/src/atp includes=** j2ee.platform=1.4 j2ee.server.type=Tomcat55 jar.compress=true javac.classpath= # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=true javac.source=1.5 javac.target=1.5 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ ${libs.junit.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding= javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=false javadoc.splitindex=false javadoc.use=true javadoc.version=false javadoc.windowtitle= jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api" jnlp.applet.class=eric.GUI.pipe_Applet jnlp.applet.height=300 jnlp.applet.width=300 jnlp.codebase.type=local jnlp.codebase.url=file:/Users/erichake/Documents/Programmes/NetBeans_Projects/CaRMetal/dist/ jnlp.descriptor=application jnlp.enabled=false jnlp.offline-allowed=false jnlp.signed=false # Property libs.swing-layout.classpath is set here just to make sharing of project simpler. # The library definition has always preference over this property. libs.swing-layout.classpath=../../../../../../Applications/NetBeans/NetBeans 6.0.app/Contents/Resources/NetBeans/platform7/modules/ext/swing-layout-1.0.3.jar main.class=Main manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF platform.active=default_platform run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs=-Xmx256m run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} source.encoding=UTF-8 src.dir=src test.src.dir=test web.dir=web carmetal-4.3/nbproject/project.xml000066400000000000000000000015741417122252700173400ustar00rootroot00000000000000 org.netbeans.modules.java.j2seproject CaRMetal 1.6.5 carmetal-4.3/src/000077500000000000000000000000001417122252700137425ustar00rootroot00000000000000carmetal-4.3/src/.#Zirkel.java.1.11000066400000000000000000000034301417122252700165450ustar00rootroot00000000000000 /* Copyright 2006 Rene Grothmann, modified by Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ public class Zirkel { static public void main(final String[] args) { final int PORT = 32145; int i = 0; String filename = ""; final String v = System.getProperty("java.version"); if ((v.startsWith("1.1")) || (v.startsWith("1.2")) || (v.startsWith("1.3")) || (v.startsWith("1.4"))) { new eric.JOldJavaVersionDialog(); } else { while (i < args.length) { if (args[i].startsWith("-l") && i < args.length - 1) { i += 2; } else if (args[i].startsWith("-h") && i < args.length - 1) { i += 2; } else if (args[i].startsWith("-s")) { i++; } else if (args[i].startsWith("-r")) { i++; } else if (args[i].startsWith("-d")) { i++; } else { filename += args[i] + System.getProperty("path.separator"); i++; } } final String FILES = filename; final eric.JUniqueInstance uniqueInstance = new eric.JUniqueInstance( PORT, FILES); if (uniqueInstance.launch()) { if (System.getProperty("mrj.version") != null) { new eric.JMacOShandler(); } rene.zirkel.Zirkel.main(args); } } } } carmetal-4.3/src/.DS_Store000066400000000000000000000300041417122252700154220ustar00rootroot00000000000000Bud1bwspblob¯ericbwspblob¯bplist00Ö  \WindowBounds[ShowSidebar]ShowStatusBar[ShowPathbar[ShowToolbar\SidebarWidth_{{554, 283}, {916, 591}}  À".94‚F¤Þn‘lùð©@ÿåAä¬éLÉÒs™.z^°¥Ú˜Ï’Š¢SXÝj(·sª§@Ãú1d³Î ¦­X®k"œ=º ï|bµ$F(â^)ãm¿áÛ/¾ûàçŠfmÖk'²ˆZƒð|ÀDªd¤ø(nôo¹˜QD,kïxêZèªëp\ çd¦)#رµ«Ñ2íºƒÆ¥N)ßµo…=»‡œTHb˜oÃF穳¼G£û.úÝ8L¦Ã8д•ê˜+}Uri®¯TÖì॥f¶´s>Þh±Æ\¶Ó3·Lµ1gÀª¯X  4Ò9ßœˆLÆ%"ÍvÛ‚nôÞRÃŒ^ß)ßúÚÅ`DÌÕ³`·²úÿœ-L2„o.ˆä*Íy?:M6ÓMïÀl¦‹õÞEOþ‘Ÿo h±/;¢­kèºïNbÕ¹çÖ[Xh¢^f4Y#2½àÅéÐø(ì0¼OO}õJ…©è wÚYÔV¹áÏ^“°Ün˼ªõê32¤Ä3œ³ž&Oó0avϬêX¿ö{´¼«ÀÉ{î[ŸúÂU±·%&xÍ«›þ.×®Ü €…ÙÚø†S@½Y-fÊ•?/½*hîbܵ×*˹g‰£Bȸ–Ÿôu tÕyo¨»AA,´“á–PÃçÍk‡¾ka±ŒÓ©&‰q8\šm…ÂYY,ƒï;Š¯×ŒýÿÁPN,üI¯H’ùËet™˜ØÄ4~ƒ\Œ( 2?Àq°":ÄVã䕨°Qe;ÝÔÈ@.uË!¨°†Æ™hl&GPÊI—Ù|ñÂ: ùÆ– /€¾âøŒ¸Håpk’±Qœýv”ÀDŽ‹|/Šâ%_Ù¢Ÿ5‘Žû]ùʵÁüQG>ô‹ã×K|(/tOÌ¡ùµKXf@YP”](ÈHS”ÒkДVâê·¦¿5ÅuTT¦QŽçÊB%*œö \ì ¶”Q~²›ñZÅZ8ºjˆ„œÞ¬§=%«O%3:U ¥Æ¹*”õ0ÿî‰Ð„Vñ_ )dFJwKJ¢ÎÿŒ¶h}ì¸ÌA¥š í¨G3êÐ ’Q˜[“h gGLJ”o0œ#çÉÒÊ4UêY Á¨È: ³[4q)ÊFÌ~Ïœæ&‰'¶\¤k ½£;Qª5^]qvME :hÔ‘¾Œ.åü“8]­ ,3S†è‰¶µÅÔ“i°iI vL^º¯§÷"i\‹ô8¤ó+ñ¼Ž*AŸ¥*’ðãfágfЧ¯C+Ô º;²86²-«e§gÍ,™´FlÛ›íÀ)ÍR°²1LT\kê÷5ÍÁNµzÝlbuºšÝO±k*u(wM6/˜ŒÂcû9Y³N1eº¬qG*ãòJƒ;ÿ¼g< Çû’ƒ+É/!TÙ´*{hœs¹ë[´Åì§’˜;R­vÍ’f³åqß ßøî(Xw‹¨¡)®t¶Ésm%9¸[2ž·U)ê^Ë[È$‹¼REܶ‚9ÄìÆh¨•o=ÙcC kx¦´¤0dE‡ÕnŒVÈÃÉR®9‘ºWNÛ=ßBc&á¡`0›¬KÁ'5 ½1ÂÕ •“Ù¹*Ù6 Wˆ.21©‚SºZëXn=ç¤ ]êŽ×¿?ìåP©Ê©%¹Á”‰#QL(ÝFIyu‡ qksÌœZħ° òZE`ÊgF®3úò'â™~sR2šµ]9*PÆNÓÿ]ÉÄÞmtµJKâs—ûÚ= zÅ[Í2€5\¥þ5„“2î²;‹Z¸¹âh|Ô\FÆ.“0¡£ƒ¡è‹ÆÚ;[D„5…N"šµ‹ñ™²ÝyŠ´¾´¢ˆü¤êÌy-[j©á܌ْÂsÓ£®vKÅÚPØæŒcÀ9*'³Gi~µºWÐJ˜mdÅL;IÁñËp±‰ø´¯N‰Cƒ(³Ãuàš½pƒE<™¾émíÞYºß¼Cp{üOiÑysì0xjÍŸŸ•˜Üóž(³diÞ“ÆËxõu]½³T½J<°÷õ¼¨pø*©Å)où|‹[ bF7£©£€1'<>•âl­¶ ÿ ól'º2ǽëEGzìA+»›úb—¶ûa]'Å¿˜ýs«jœå÷öæØˆüö‚S—µ³”â'ïüÿüŸfëËËu«£[x·á7Ã7QÒ¬wizAzh§g7ñ-™çTÄåuúWdˆ!Äcÿ§hü×5/–bÊðoþ"s'&vBe|ÁfÇA{ ZBå]:¢}±—rUWƒÈƒÕæ êW|è%(ó`O%UÑÇ[¯¶Bø‡€Ì‡)<µE8„rÁ!t)¨]ê׃׆oL¸…_XptGcOÉAÜö_#çDwbíRRb·‚’{UHQ‡t†ƒ†,è„\èxʦ…`ˆ8joH?“¢Tqè&/èt÷ÃHЧK¿%yOöy‡l¿Ðd8²ebA³—.x(ç2T•puÿøˆXr]GH/±TÂnT‚§ÈˆˆŠØfq‡$kVö&¦ó‡Lg%ÜÃg;HtŽ–fX‹?ƒukˆ*”ó‡\èU]u„ÃÈqihz•¦^ë'ŒÇøŒ÷æBÙÇkl˜\yt”¥V‚È>î÷~Òt¯Ädä;}ôaÊÆ‡ž‰™õeF‡+ÆXŒñhyæ\ÌånD£†Å`}pc÷È7P7s:wD le…°ŽÑ¡|¼r$õÌa}hƒiŽK×vXöu xbàç‘ü‚ÝŒ,~ï§„%ó’9"DfŽ÷d“7ya:¤“§·rkhWXØ‘óXK ”0€÷)3©’{ÿ§h)É€ÕˆEP hÎ(K鉢E€ ‰ŠÐ'‚I§‚7–b RTy=÷Ÿ966\B‚[˜6€±pá¶^Ry-vYh‰—"5Ä @¨Òè‹Czö¸`¹‡u#=´òŠÀÃŽj=銅™‹’¹>ãh™ÕS·lD‘BfYALy[ôèS©‰‘(„[&”xZ¡§”ÂRPs;”·–X”‘(¨&XA5§)O<…Œ ÄzÝuEš±MI@U f;iÙ‘ œp!œUƒqRôHS–“@˜@7pÛøx ‰0}R’—ôš™ižç‰žœùVvkšR`æf5÷V†‰‚Sdÿ×Z¦_b’„å ,èØ5͈•Yy1'š&`¼I: 4uzFØih!i_WcI´QR` ¹€ÙžØH—±’õBŸ­.Ë—˜¯µ’k¦q˜>¦ÄI„·Žéi=½G£7Š£*×H²Åoo’l+*giÖ¬–[!:‰$˜[Ú9‘÷„^#@ZŠÅ©ÚPi‡z†Išq<:ž|Ufafc¦x…Êx¤¾šÊè’ª¢UcV'lŒå™¥€> |à©*DJ›]Êu=æ,þ™£t²¡J¨…Z6×§¸Br ¥ˆÉ'R‘[£œlÚ=þÓs9rùD4šúŸ—ˆM†7 œÿ0f+q‰¶}‰jk=úw«$?ƒ©‘Þ ™Rj82Üyfºš’Ò£ÉsQþD’î¨pÏgArÕh:¸xJ¬DJ§‡w”¥Çy|z}w©¸é…$6¨Öf£›êšÎypEe¨áÚ“?è—j(î8¬ ê¤éçLë:Í8DÆ£E¢…€z[xªMšv‘OéëЉ|ê™Úéæ–d9–Àz~&Ià J¦Ê­gœŒV¯­¨ŠÉ•%ÃjѦ¦\·8'øuä´0zªw h¹šÙ*®î²²-ë²Ïæ£HÔ[5éRI¶肳™¬€Ù>BU­w×­ÅS± $‰1h/$ë6œÿ§bBIJ‡ˆ*Éú™„W`ÒJ¥Hõž†ty”¨šñv…S€ÿå­©¢Ú9¶5´–‚RHX‰æ:%¦¶¯AÚ’a„œ3´—"*m‹€P*’œŠÇJðú²…k¸¾4·' 5Ëž5ˤ$}Yù•`ס$RŽ™³¸HPqg² :~·úndبðaJc¥ªyÕméU¹'W· J¹Û; WNx'g¶7p`˘8—׺S)ꡜ»¬°Ëº¼{¥_Ûº‡:’Uf¼ü†»Ú¸ªÂ4ºh¯ž{¼ëw¢‡{YH7§›³í§1éÚ´þ³œgT½ˆš‰Óøœÿºm„H‡¶è¥òš¸l Kÿ´ºTºcŠˆø9F³-½¢ t+³Õ·o׫lê‹],áK±6À´K¯ç+¹‘(­¾@T=‚‹½ ¤ÁìÁœ¦8#¨*%ý%ü›Xðû 4 º‹h³^é¼¾{—&ë¤pj‘G•TÛNåúÍ[Áâ¬Íïs·zÈïZš#Ú Ögg¼¹ËV¤]ÒœÏöÜqº¬™õWˆ·íDÇ|À˜mÙÓMÝÕ­\7;kY¨ÚÕ¹)ª©ÏWj»Q=ÂÍuÓ¥§Ò{‘Ôh—ÚÀ{±›š‡ÊÛC]­‚Ê÷ýÒÑ‚>,)]»%V*n`GËÉ'Ðß$ßV,ÒMy‡SíÕ ¶ÔœFÜ[µH8$ÜæÎÖmáþQu>ÊÆqêDz]eáMp-ÕídšÅ¥z›’G,ïÍIþmƒ+þ&>á9Óäâ¦J7…ÈJÆ‚²vƒ[Ø€,¼øÛá—\à%œÃ þß\l×[xD'áæ=ÏÓ]ánåWîGîá»)¸f(6L© T‘q놤|9ô=77m¬¬X†8\Å]²¸„ËG!¸^v¼Ù|}•É›ÉH6¹Ê‘Âæ:‡ë?Ͷž§ç!œ4;8äyš·'Žå€eæ äN镎½;carmetal-4.3/src/atp/Fonts12.gif000066400000000000000000000156711417122252700164630ustar00rootroot00000000000000GIF89aJñÿÿÿØÐÈ,Jþb†)ícš¡NsS¨. J—‚…ൌêʬéjn¬?ê[Öò|\:ÅÒA¯”PDñàGÒâsD¡Ñ‰‡5ˆJl£ {˜Â-šÅýˆÁ*ûM®n“a_¹óÔÊæžÅ3w°Ôf’4b¡·F7â–6ÁØóHȵX ÖYv5¹Ç—È)wèÅVxvXŠˆƒ²é÷•f4ëéXÙá š+Gµ':ú(vŒ|¬õ–j·ÊÑû{ÂU' L˜¼)ÙL:™çÚ;æl›"Ü Tügi*ìõÊÊŽ-f=¥÷\¯mŒzïY¶ZkÌŒ—î ¾Ií‚ÜbH‰Ÿ¾y‚CÈãÅ6þCáÌiÖÙÅiGvJh#Ć>X4Û·p"´”",´5C Nnÿñ ©ì浄 ¬<ü ˆe¤œc.Ñ×1Í ÔÅlʨˆB š’Mµbë£EËreªj(»VBIJmkÝJ«åˆ‚¬ƒg½[e‰‰+ÉEZ§Ñ¾†ê’÷`鯓©øä¸'P#MjpUÇCäÍ„Ku&å¿™¥ð,Í8ì`Ô8ɲNV![Šƒ~;wg¿ät]é{]>Î`?Ónm;¸òåÌãò¾Ý|ÐæO F¿Ž=ûëçÚC›Šlº:éîäË—WMܼfÏkÕ»ýxøÛĦ?æ+Kþô[îJYþ H jìAW`‚ žd‚gyöQm½ ^&¶5dT5ã&„¸X8ˆé!¤H—ÆWEö8øà'Ρ¤”0FÈ 7 : ^ÝØ”ÉD}ݢȉ¥Ð¨ÒEÁ±^޵C!ÖmЇ«8yßn0Vi…G®dj8È´W:[2´žL1Ê8—‘Ê7¢ T²heRXJ'åŽè]–E˜j2öäO/±ä&5{2øeDSö[rÂÕÙ’^Šô—`pÖDB’fÆ(ƒBéÄjg½™hš"ΖG}ÖOVÕl©Ë¤N-Éã¦nÚŠýͪ\rº☓UX¤ ¨^á+©R¤ þ¨¬.ÍÉ¡q!ª«¢z¶+V)i|l*Õd¼&û´"Ò#‘ Ž ì¹É7ª°á*¹‹N¨î°.Ö»¨†sn—fº¿‰:/µøÆIëÀw–븞òÃèÁ×0épÄøö*qÅ_ÜbÃoÌñÄv rÈçÎ&rÉ&ŸŒrÊ*¯ÌrË.¿ sÌÝb'¼5[œÆaþ¹ìRÞâéS´ ‹lGâ¢QM7‹¹´«Þµ÷ã®›-#Š¿ÿBt×ÑÓ¶J/IZKæWÓÄ6ýb§N[ÉslLx{6®ý‘pÀ\ º1‡|ö#]ý$7z4ƒF™‹æg@-õe×à ˜3_€RwYÒÝöcCõ8 eÛ3Ö¶ú&³ Èx¶šè1 ɈHl¢‚ˆèÄ(q[R¬âþ¯dÅ,¾Œ?:Ó¢Av /*g8r) ô€P8&f¬uJÌ’( 8^ ‚XI\Õ’>ëÝð0fˆ]ÕÂFýáíÑSS…œ¢*tsÔšZÀ¶Ýh€’¹¤â$6 ãWØà…Æ'( †E'í2# 5èˆÙI+0Tñî•ÉJíh4”Ì_ñQ¢=Ò‰¡2ÜüQ¬½õDûúäwËÔµäÔ-?%ÌC>Onwl‘)EçC†è£•R A@÷eZ¢™;A$‰ÂIÀ H^Ô¥tçGˆp“–d!&½ar>†–­|§9¦£%¶¯ˆj¬ *5·xn³˜ÝÌÈ(þÅB>%&€ÆÄVEˆÂvVÓ äà ¹(;]òm¬±Ö5¯â®D^/’ž|‰4Ý9ʃŠ•î",ʧÇg.G|3ôÊKè6RÃ>!k–'¢ÂìðÔ=(\ó§H‰™”„bLg «ŠÕ55«\íØV» Ö°Šu¬d-«YÏŠÖ´ªu­lm«¡N•ž4cHý8ûöÊ+Y §„Ùá^ÞrŠ=ª Õ&(™¯Æôhu³|e*&R™u ±ÎÔ)‹ËPµ†ôÐ\ ËH~öS#eÛ$çiØ™,öŸnjÍzÔ<Ùk´S¬d;ÛXÇ~‰¨Ð‹åjSÚ»È^pz"…ìa¿þJÍ&pšC­'`×R iê·‚íÝúVIÜß*ŽŽA Ÿ^{+@¼B7{»-ŒtW¥QË–ê3Q{Šw9ëZ†Åukqü]xÅ{©†¼É.·)³*MÉô0ù¤¬½Ô›3äê)zÓ'®JûCè ·’þµëû&­áB·—oÅ`æ|4uZhëFÖÒuÀ™b§ˆËÆ>âiϤ|ý\˜%rþI:ÊVOdVðœÝ7Þ²£yÝóCp¼dTÂÏ¢hiT¡óéàr2º¢ñM0UWœ½øí÷ùµ²“=$àÞº+íLÌÜ8}ÚÏg‚Ê'axWå&øÔrE'F»Ü¤){‰Å¹Éh KÃ[ÿ·Êr(îfƒëë²*/º4´y.:-ò¶©E‡Ú5_@c;³ÀÞ%±­ýbvйÑ>á²{îX?ì±ÿjb[ÙæppÝznÉû¢í¤YOZЗøŽÝvîp_¤ü®µ¿Á÷îÙ˜úÃû³›¥“”ï–»4ïÀÏŒ$­M£Záÿ‚íÅóƒnËsãûá3ÈñÐá:ÛãŒ8ËߊÞþøL÷d‘>xÃoj×~jYÞp.)ÀHò¢ÛtÐBNºÒõsô§KÀ:žºÕ¯Žõ¬k}ë\/™^i{¦s$Ï&š~q±½NtÖhÓq`¯¼`|?ºÏ¥é» ,^,šýìœHÇW+ôòÚº1÷°&D™v]ËÊî‡(qžíÙSdÛ³[F¶°¯9œòš”ÚòtÇ£ŠAÍtº¶êñ¸¥9Kº”L{§²`¦wúe]ïÐÆ[ña—ï„óUú+ ©vj=ø‡I<芧õŸAÿyóWH“ß»~k¡¤n;í»>I&ÙâËÕ<܃ãúõ—’o~ï—]?àS\}7ð}'«ýñãþFx*ë?¯LG¬“ó ærïÙÛÞle'P™·}Ãwõxá‡p|×w•'p“Frv} 9ˆu#ež§€”·| RÁ3s÷{¨~…W{x¤vÔéÆenbs4Vx™Ò}„)×Áj®ÆUe6%Rd78t>ØuŸãv,r„²Å–ƒEx5ÇW€2†Ô§ÏÇdoF„O¨}Ø÷VxsNø`U†cH†eh†gˆ†gh^4?'„Õ÷~˜×Fky³çK?˜i±‚`¶G­€ª³„n"…3v¹õcõ¦68Ò‚x²‡¯àSõ‡VõjŸa@£âäˆ8þA8pÚW}‰'$KޏiÆ…‰Ú'ˆAA$mDómJÕ)T¸TÂ:ÒW.§˜‰ ¦Š‹g9_1w¯ˆ‡6ô…´sy0ØGH‘<ÁxY"{û“qÆŠ²±r¬çy.@‹“s‡|x¾ÅŒ•˜h¦Ø‹=Gt¯Ç%Ѝ6 8‡OLKÓŒF¶nf"Žo¸Š›È‰$Œ×Eú¶ŽÍÕŽ ËȆ½èOÑè}û˜Jî…Ž‡¨Ž˜OùÈ~dÂ*Ö¨„©WÅ8€Õt¹IɸIð4‘9ôl¨¨C.çsôñTÇã‘,Ù|ʈ9f‘ò„‹j¶’08ˆ¼ƒLĶu7‰49Ù‘™†þþ”ädEé0G©”Mé”O •Q)•SI•õÒ~gFeb°ÖzPX’¶•[ö†Î†auö’SøŒE’@çµ!¶“AyÈL4–ç€ö¸H^I0o™8—H‰8ü÷?ZiQfÂ[Âçx¹Àlþ8‚µ\ERz˜p&’’™{`æ—²˜z¯µ9×~oWQ‚V6¶àõ@Pr–º·a3㊠eɚѴh|YwðeciémÎ&:á7)IŠŽtFZšliKRX› 6$ÉGðÂïw—l œP5O±I‘¤õ\Ç™o(á›!UÙÕ=l!4ù¥rô¶•õsŒ|8™(e›†Gœþ°I”ÍÉ›JÅÕžLhžèžxˆHx‘ÏVšçŸ6Xiô]Ô…œü˜Ÿ“«ÖPE€ÐD˜š_Cvè“eYl—xŠq[v€Ð"‡š?c¡á|ê ;8^'¢Õ–)Cx„PÉ0*ž¤'9r*ju7Z˜ü/2t…r8¡UФKʤMê¤O ¥Q*VIH™,öŸúczŠj|‘)zsc-ºB ¡K¸£7˜ˆ6> ¤°ù‹Œ`aZ¤—oÙg`ô•  v)Z Žï®³WJiÐÉ£ ž$‘°¸™j™”9\…‚iMÉG?÷U¨Á)þœ,H‹¿9¨›Gš1Ù¦jZ•µ²ÓŒ%ÅSœg¦izXžÊ§@ª)ºž—§FÈœ.ÄRV¦¦úŽ‹Ô¨Éù¨®‡ƒ£)§—úSÊ©žd{¤i€¯¬å¨dÄ JÚd¹#¦pyŸ H¶ô¬ÈÊ™U¬Úb­s*£¥šŽÜ ˆf¹š’I­+j©×Šdµ©ôº¦[*¬Czî*¯¼¨›üH¥òå¥ì «/Ú¯]‰¦ý˜n=ö­5ª„Ýõ©lj°äʆkŒ‰jE2› ­ÎÔ ð:°¢ Ù3Û£´—¯9õ±J©m·²X§®û²§°6š²É9³*Y³Rʳ=ë³?Ë“?þ´N8­!›@¥6W‚*š`©¬I«æÊ'éQy™ZT›6$ènÀkþ 2È‘9e¯ž6«:Sc™«Úa©Ç}šf´µ¥z¼:£¦Ñ²âw³¾»º\çS­ãYÖʶ÷¹,M‹*„*‚›ÆZ´x»^ÙB~Ĉj,”´[[qº0m°’•g  ~*µxisã&²|«ž6U+BaÐ ¸í‰íŠ³ïš®1K¡™ú·¨Ë-qµÏÙYèg¥öª9LÆ» (¹¡¶JëŸçµaknÙ«8j÷vš„»¯ÃÊm5)¡×)°s[Ê;±ˆ‹¨‡Š–ÿº”ÁKŸ$ûVÒ걬’EþÄ»›¼K³ym–‹Uì«*Š{0`‡RI¿Z´¼@ûE7v«þ»2Z)ÀlÀŒÀ ¬À Œrdj$ʶ…˯²›­µÁ×Ë”rÛ¶æH› ù]‰¾k„"5Ô}’äÀvˆ·J{FÖ+½»RD!LkÛÕ&Ä §_›\fû‰±[ª!äšBÛNö«|ãJ˪\N›H ·9 ½Ú«8§Úr@üku;ÄC²«ÑGºSÈœ¦…~–{Ã='=²©rR¼œT|•ljFÜyH,J¬…i{•I.xA±ÊêÆÕÛ {W"W¼µŒ8Š ³…¸»}ºÛ¾.¬¯ û.¾+W0ÜÄ\BB\}wÜ¥ þ®…Œ±/ŒÈáiÆGÃE<š_ü¼"ÉšçŤв>ìÁŒ<Å+Â`Œl,°£|´ß—œÈûºäÛd±Â§œ½­8bøª”½¯"Çi6èÛ…üÊû‹Á¶,3e«Ì=èÌ€ô˜üKÆOi² ÍíÀÍß Îá,ÎãLÎ匰¢º§MΩ¸¹cÇöÉ5,Èy{É Ê¸r#Ë| ”Áƒ½½Ü‡’úœs‹Å9w(bœB‰yÎX’É+Ìt™€üQ}|/A½€žuÌc‹9¯Å·ÐºŽóÐ9ŒÂ} Ò€j»’Ä$ª5h—°äÒ;#lv$а6‰ý¶öl‰nú¿þt§"T»ŽS`锞ÃÂ3‰½~»ÌÛ…ZÅ|}k ¢Y,—÷õ9m|¾<˜G-Ô¸ÜraÈn Í®ÓÅŠY‡—‡ÂÇp—à—Ô1Ê“*ÝÔýlƒP-¨»y«þ%t‹(Ï%̽887£7.ù<×G¶Ôaýzé'‡ÆËk1§ešaÆ„ÍT¿êm e¤ y½Œ¾ šBê¢,ÑÎÖŠ<ÍßüÁ²šÌZìÈæÌÃ#£Í¬ݭٔ¦3½FN-Û?ÜŸZ;š7Û"#¨€ùÛÀÍiP<Ü2ÐÿxÜÚŒÛW³“b7Q ÙÜUlØS…£‚]AvÆ]ÛtÖZÖÓ-Øúç˜ß½OR±Nþ2L)Gª×ê s˜Ö×úÕpˆ‚ê{ž¨Ë*ܾªŠrr‚ck„™)‹œÐ‡Y§Ã ÇÈâ~`Z¢¸‰ ÆË¸*à mAví½LÁ¾·ãÄ¡¶u¼!*qo}ÏNp&JÖ„u%¸Çª… ýÍÊ»àÍŒá JÍ;Æsâ¶ÒÔNÝ1kT ®¾ÖtÍ´· ¿@­áAʳéánÝÙ?>ÉP[µ(í¼Þ h¾p¬,n¿=~’1‹Ð\5GZ­ŸIµ½:åýÞ¬ã¨JÞ5®Êº]a|æb+ws„¥ãEÍÙü­QKeVNPR~"B•¡ÀaþÓËMÜBjè<§È‰^TžËè3æþè.é“NéhÈ…ül¥WzR|}¹iîaÊðx55º(«) Ì¢î“æ|½@œîǃ®,ˆM=¢¾ˆ«ÜÀRé8C¼þbÃÝë“…ë!å†<žäåIÐ"u×äh½sÄÅS;‘ÝýÌ-þéЮd¶nì™nI8½ÅîV=ç'€ÍâTŽÇï}[·7åygß#2»w'ë²óÏE={!êéL8~×þëñLó¼¸Í^a)ýî ^Ȧ®¢ÌláÜîÁ%ëÛð]¶Ãõëç§‹êÇ.Ñ]ÇòÞäþ®—ÿ»³ŽñåYÏUN¤bô¿pïš(²®ÎC³x°'¯n4ËÚ(×1Šæàâþ®-x79ëE_1óÞþÆ`ž2@/U<ôWµÍ•îôOõQ/õSo•bIQz¬@ÿC+¬×¼½Ú.Û†Ç+ô÷Úˆ y;öɦ¦[¿Æ¬hÛTA¦S¼©ÇÄÛ^Môøéä7¢S#äY*ãP#œ¤˜Ú-žLÆ]&y¯ÁÒÎÁ€ºïFŒîO%i¼¡…ùž§Ûñ‹[[®ødOîß~9ûú |bE\ùð »+ÃhŒø/‚ÊÛÞ´ê=ùõZy~–üÏ]‘„ŸòO·Œ/ßÖçùC>üx‰ûeßû™n¦åœéz£SloÂÍoú‚Ÿ›/·” öõžËÀïžþ®{ÆZÿumÏÅ{}ú8ÿ„šP† áâ/ˆ‡Ûè¤ýL òu}ð/ß½!ïùîKò1u¹`AÖèN Ts€ÁP4´ÒªBɳÆÖ}áŠ[?ؾqR>Y°S=9aÂDã ‘I¥Â²é-¡ÂåÛ\!WgôV2¹a±OfŸE*êÝüÖ÷œ^·3³ñê=ÜÁÆù‡òôä—x¾!#%')+-/13579;=?ACE;ÙrNœ ºüP/^¦LZÓ´fSmôT×pg)L³vµj}k §8tË&‚[ÔšS‰]_¥]&~·l•·«§)¾Ž‡—{Õ‚´³­}±ÏӢəþ©ãG®iÔ]gölõéïJá0Ë ‚k½;Õ­ÞœxqãÇ‘'W¾œysçÏ¡3>†'þJ)S‘èéXWdÑêQ9ÝS*v±h'ÍõK4)«ëî‹}ôþ^ø¾à%'^ªXj¿rÛFrD=ÅÆŠ)tª<Çò¯>ûtÀOA= ±f´Êô¦sª/2Ä©Aµ„0B×hñĵ& ­Ã Ý ±®ý8|±ÁÍdlh»ëJœ¯ÃT¤ì”°H¼eF^BRÃñÅÔ8z2F‚H)½²°J+J1É—drB'Y[`®ì’¡î$­¶ R$"×¢Þ Ò©zjölg Z–,þ¾‘ZwªŽÀbzžñR&­0Œÿvº‘¤°^Ùy´7‘×BŒ?Ì)c8Qxàé»È1c‰>;òÁ4ôÉÖÏÓ eâÅ—ÇNåÎ=¡H0T vG÷Ù´¸äªÎ/|¦$4›Á_Q á´¡ô`N¬¿dÎlVv¬¸4kJ4YnãÖ9h™ÒÀ6©ª¡¸_Ûþ€¨Ögº'H F•kaÝQwÕºF_rùH²ÃÍx;#Ü) ”Yy¡ N«ªbéÉ´)ÇàluX`Ñû×þ]ùæ\Æ«C^˜âÄ2ÐÓ“±ýûpÂÜúî] yòëÐß)ö´½NËa+•w÷!ÛüyôIQ'^ÔX剅èÖ§[;Ûþ»à¼õÿ>ÝŸÿu%ÜÖõ ˜©'`ƒþµq‰ƒg­%a^íå§`uºígŽ{~b Æx"Xü•Ù… Ѝ‚ÜÅd ‰(ÎHcj¸"ÒÔG|<ÚdB®—ƒ fTŒ~6d“N>yŽ/B œg Q‰e–Z.'å–ú梗bŽ d4ÕÙ9á¹tšn¾é ¸ÁIgU’ò\dkJ6ažÃ‰”^™Ù%g7~°[Ž,úÅ!£sê]kDg¦V S—Dw :¨mTÀöè9VfŦQSb×ZjoѤCã †¹Ù”)0›J¹•]d¬Jêi±úyÄm§šÈß°ìµH€²ÿ«dN{6M­,ÕPYAÂé8©% ìeÕ$ùh¶Â@ŠKOrŒ´ç²Êg²¸vš­2ÛºØ-¸‚›b—ÖIO?öéè¡®HË+»f†­[TÍ ¦¬W|«¨‚ÅŽËï6æZm@êâKª¨›z•°.œ(8v,,¥ïë°J…F,1,òajp´ÔflíK ,ž…N Šò*Ì»²ºC÷øóÑÊÜ«ÿ«2~¹Æ"¬Ò\"JoÐÎD­¯ÑcJ³1Ì3:‡pÂRC-0Óý¦¥¸%Œ%ÎOÌñd#¬+Ù§» ÄV/ê¶wpÛɵ̈́³+‰TÞ+öeE6~uˇ7MëäèÿvH®ŽgCx×ÿm¹ãN‡Nº“BgÞ,꥓¤óꮿ.ºê°ÏN{í³Vl{îºÏÞÑî¾ÿ®;˜ÀOüëÂ|òÊ/Ï|óÎ?}ôÒOO=ðŒÀÅ6x²(à “ÆC ñíÍÑåsR^¬ÕŒƒ.E@`/tlˆ!n»éƒ†°u›†TÙ³,ˆé¬-~‹ñƒÖ'¿í%Æpô“Ú#4q:#E}"û´–¥@ ìJ‚KÚöøAÉ5-Vö{WI4S¤Âª\œ¨2X“ rNƒœ!OZ¨µîyO‡y+K&HÁ»Qð† dÙ q·“q°Eõ áèœhÃ¥¡íR9ËÙ=„˜@|ÿD‘ˆ[k›Eˆ”/±ƒã‹H"¯j«9ñÚ O” ¾Ðg<‹!w•Šã#edaµ¶?ôM'ß“Î9¥ 9,‹]— •“G$:Žƒì û¶H6ÒE“&Äß!±F%ýª’ñ›Ê‰GxÌO>‰‚_#Ù‘Iiµ«ìEþˆ€Á(Žãˆt|e¤"È¡\ê’Œ¤¥sÈP…òP…¬Zø¨1K3*£˜¬»¤aü–Ê‘‰|Û1†ù«›mÒK’Цå08Lþq¤iT„ZAIžg}|•$ÇÍigYzì›H¶éj~ÈJõ´(‡h¯=!TBª,ß}²E©)ÿU¦³ÖB‰ÄÄçÅèž‹ZDõ>ªÑÇR€ -éð„¸M©™t¥Å{\JÏÄÒ˜úÎ¥2­©Mc‡Ÿ›êÔ¦4Ý©OWZ)’þt¨Ð{ ‰*ÎÛ «Ÿçì‚ùΗ¢f¦°‡ðXê7_ÚšÆ̈2B_å¢ÄÔV•‘¾¤œTï¦ÁU˜ï#”*dŸ’)°wp`å(dè¡°O›4E¶&Õ6n¶•oáÚ'éyÔΙ“vdYYh.¸«Š×ÚBæ˜ÈOuh°j{ £&Ì”Vf©µWQú°Ë~¶cgí !T»Úr%M* û+cë3½pm•²¥ý¾ØËQÚ°“¯x­Lb)Gжd„ÿ%ËWIËœÀòÖ¬¥epÉʘáדÙe8å7[ÉN¶¹ß@ÅE+“ÎÿÈ5·ËœÕ‡[䎲ÿ´,:ƒZôhvœõc×õ[KÕµ«Ôm/±ÞÛˉ7v­í_ ñ›Þò®¤ ê,3—Gö7±­.—ŒÌ]j×J™ë’ƒß%ÖÒÀ¶‘/<¹˜Þ9ÒÄ ‹½Û›ö~†¼±#!ÚÖ¬*m«Ò|"k^]vÁÄ¥t€OÊ­ˆÚ q­,^½"O,>Fê•™< éªsÁH—½œd)£yÍ¥s0›ß¼<7ÃyÎÄ“3ïŒç<ëyÏ|ÿ è@ zЄÝÿˆìÕqP$¿ä/-ËЫîõ@kz¨?wÞô”#ŽÙ]@[ž ü²Óýj0Á47X B;l£$=×ßnlx>÷$ŠuãÑ‹³VC’^™¤jâ´z»C>¨šqI²Úb’ÎÜ47³©P^›úÔÂpÐÜ`í û÷Ú4¦ÚÅ Gdb!z®2Nª³ìCeùhÄÈAÐCÉk±+!®::Þñ²/|Ó-×½¢ÊB'JßÊ>ÛÑÞTͤ‰ÝÔ'g¯#5X\)—ÿøVj¸K·NÙ2`7[¢áw+·ÖÍŽxA˜mðŠ÷Ú(M#,uqn]ûÉ­™ó+:§Ÿ6yÇ=ÿi§?ñd7Öb>™£ŠÃ8^õÎ=mÛÏ‘ZÜ¿h•VÞWg.VOIñŠ-køÁ”|áNݸÝYv ý¯N®÷‡»~ðR™J«?!¿¡dëa6Œéu¢'¬~m¸G<êýß%Zò}vÊ ØÖ&²§=D$–ç<ämÿÎ¨Ž‡'¶q®XÂzô¸¤Iz!…,õ¬×Ü+ZûØË~ö´¯½íoûÜë~÷¼Ï¬dñA´[£º2¤oyh»*ýš—N4óßÏøÌö6ê½a"ý¹^ùÖQœªë.Ìs¯gŠWs båö@=ýv^óƒ¿vrjêúí5¸e#õÿlW8ú…tø=L†Æw|(„MTnƒ7€áGzxØm¦wl®vvD£OO…0á/ WAˆ¤€È?‘~=Älâ5§% èç&”~¾²~K#~7‚m8‚©…N¨[äT‡•n(w¦EM$y hô¦wx`he[ÒJ˜|QK/¸9¢•wÅfJ1f~Æ„;è„a…™!U:8Baù¦7ýÆp/¶…5Ö…Bõ$6qƒ¡·}RH†Pä}EØs¡¢DdU‚pø_–÷%Z”iCüAÁâªR_Ŧ7¸uY’}q[bâ"yèG ¸8b‰h‰M˜‚œÖ†öÿ!ÏWJöWe¶Ð‰‰¨z7ŠD²Aͳx©hMöŠ"w·Ø{eba›Š»H:ËWf^ŒÁØ‹3õ‹Å89¦§ ÊèŒÏÑ(ÓHÕhŘ>¬9³pÙåƒî‡†¾†¥ÈaOø[ÍÇ€¦ÈLòD/%[«÷´¶ ßxx-&†ãX íÖer¨ƒ=†…¢Lìh ÕF`s í0‡oƒx€  Öh é†ÀÄZùpJÉ¡FÇx;¯·Žé)˜¸O,ˆ( ‚šÒä‡*8@šÈ\ÔW}IuÜ‚6vXÏ’’{q %i+'ébÚg„Õ´ˆ<é’tU)“ì§„9w iZÿà+ÏÕo(y? #)·DàèU’–M:¡^Iio¡†PkÇ'Ìè[.CW7¹‡ÎeŽB)ž’ã'Œ/©Í–#’:£O)•þD„h©o4÷XÃaXœ„Mê³ê5”=„tF#ŽÈ “g‰2o©‡iIk9qÝf —+†˜ð÷weˆ¨ñ˜.—p'x… '™c–˜9y2ÈcÆ¢’ZØ—“yBIˆž¨š«i xùAYd‚8ˆS‚ i Ÿiu¤˜îÈcç—ê¨_NÎYz\IƒLøyº˜TÖ7C*†­iZ E}'ó‰ÂY#.Ñyj ~m•Ó™ž×ȇ#鈚9_«y$‡ÿ Ÿ˜V”f·Ÿ†øžù™6ôi”ÒIuyŸÅ… ÊFňÀ‰œ úŸ J¡j¡Š¡ª¡J8äh|^ù’€8~¥Ðœ’/àI›9‘›=YXõ¨y`å1ˆ‘ ŠOµy>s‰ÄÉšSuçE.F_fŸ¨6‡Îyp2O‡ˆûÈ]0eðµ ¬2¤öT¤Ø–L”¤íH¥X‡‚GxJX›Rú¢>“šY1ó•Óg~{XÃVèæì©dZ¦Ê¦!±jݳ9l*k´¢Öe.—³^ç@W‰GfQCssÙtÓš•{‰¦[Ê’—zxЙ†ñ†^Û™§­ÿlj’Ö¦-‰ {·E^ú¥MZ1ñÅ¢3y…Ç)¨.*“úm¤ú€ª"¢Õi ¬ãªË”O¥ªŸÉèzX¶pßT3§Zd©Zy¯rwÉ•£Ì !ǘ£*ªÈ*›ù}±ªšÎÊ©ÐÚ«²ªuÔ:Pª"¤v¦ÝJš®´«o3®Ôq¡˜8<ºŒUZ kº¯’ªC‹*K™jnó§x·Q˜é&>GJÕ¯ÆÆk;°ÑZ&H«€¦°˜p¥‰´žj©3w ;ŒÖ°óÊ¡«#²Oò'‹ŒØš%+˲è­1K³5k³7‹³9«³;;TªžŽ:¥q÷=×J©“DIIŽÊç‚ÿ!WLí¹‘ƒZcE×^\vf¬JrH(Æ3^‡køjKHäR76¥ku‚ù°~Kµž†Š¬Õrú,Â6‚Oª½ƒ|Erúª1B˜uU‚EvË‹¡µ,1f2xjELK[éoTš–¦ª"zj“>9§MC"ö®éx:I×®ÝhœiVˆXy„¯™™5¦CL­†–º™§mÞùÇÕ¥&ú°ž»•¦‡iêzðÁº˜A…a+6¯É¸{™ÖyB±‹,’Gª[msK»®k1„¡¸ÛÕh¸i–È‹»ì©Hkµë.ÏktþЧK{4xK¶£™`ºùuÞêX–)H0ÛŠâ{pÂÿ„A´¹¶Wã׋¹ƒa²€y!|¹Q–ö¹6©p»@±޾)«¼É¿.vChk+J )jŸâDµ0ê-¥¾dží‹Zd9˜>ù¿‚¤W{°Œ& Áâ©«íD õ%ÌPf¦ÂEÕÁTT5ƒÇŠŽ:ËÂsÔƒÍU…ýp×Ò+^µA8£>·ä! D¥\ÖõM‹EÿãBÂUm¤'‹f›êç$l¬©è@—lÛS–<Ù¹_Û£á“.×ä#±ŽÍ-⊰®Îè°nÙäèãEêqeê¯^¬ÀWŸÜT­N‰Ê^`ÄØÊ³þÚôUÞñ¼hX-2í}Ýí\ÁÌiëÂM•åæîáJ=Åž.ã%œ´G«ã~Ô\^9ΘÖn®^^ê„~êD;ãSÙ‘z\Tn£ÜÎEdF®°zµŽÌ·¾í—N”°\ëͪè]-íìÔ¹‹é ïðî­í„ðJ}rš.ñ ϬÙê¹dSÎë¸î|Í€åºDÍà½þ¾ÏÍÜ+?ê©NƒÿæŸîïÏ|Ǿð8ÿÿ•›Û‰*ì»M¼»CòÁKl _ã@¥Û&ŽžÕ'_R•ôU­õÌ'Ÿm¾d\ßÖ^-Öÿγc­çmïöo÷q/÷sO÷€mô‰VÏ*÷YYãA†Z=õÂJ¥vñH^‹žLóáý†·¬ß1žŽ€ø×.ÈR*棰‹êu«5IÚ/‘Elß NÍx⨕oð Úv^[õþ†‰[©ÜñBüãû€â_Ÿhx$ôÄcïÇ[ä …á,é‚¿]¶_ð§»9ÈÊÓ{-/·æïx÷b ± öüý.úVŽÝ@ ûkœŽîÜÞ}þÇÚŸÙÑßeéï)Ñ_•N]xï<ÉÿþýHée9½…B0„ˆ«nvn¥žvMò1u9Â{!ÊÚ0’›÷Œ§­¾òèÆŽ35¢Þ‡ý¬:$gFµw™US=ÜoÛäÉÒÍÕl*OÀ ÊtB(á1g]a[©Ñ,ØN¿&éÖWv¿‘7ñ ¼3z”ÖHnÖ²ãœðܘ憰ØÐ¨ˆþ¶ú!u\¦öÚ"ûô\.7 Ë yÿfz¹8UAcÖW+a!=ÓX›öRFIE9PSi‡‰‚Ɉó<‘™“‹îëØB-i€¦›³µ·¹»»Dvx§+FL½ÓÕ×Ù9Ãq§'£—ÞåÛñóõ÷AÀUÄåÝ1ç?ƒÿr³÷©Ê8 éYãqæUB‹1b×c -;Õ2†9’d /v–•T¹’åȉ(´”9“æ¾gqæX“gOŸ?WÊ‹øí<“/Æ@‹%ôV=¡KoB«øM& :Ñ$Ã)"&«X!Nýŵj•˜Ä»6¥5¶[¡^ý§Ö(À¢ÂLéŒ*ßI{qï™Uö·a«§ß¶í(—¡É¬p6âý1ç¯ý.(Hg¥¢cÚF\½’‰>~µÓ¯õùÍ\˜©VŠ|]c®ë4,0ţɚzîêÈŸsOviÚo[»½ 8XS‰† ªMÊXÚI«½_g½]s:´;>ÿ5|¬îå Èúf¯Æpåß¿¦|¿>ƒ+òìÌ{½ÀÔûˆ?uä#7·¶SnÁëòƒì¸%Ið¿u¼/¹Íˆòhƒ|3äÀþêk°;/ô[ï ¹z¯<÷t)°VÌBAOBa ëΰq”Pˆo¾«ÓP<;¤¦F…BD½ÓŽÌ-ýht± «ÄF%IdŠBßQÍ&mÑŒ4 ¯ÔM™ûrDo Ô25ˆŒË.Ü(#ÿø¼sƵæì¦N84PmsÀ/ ±·1ªÔE …RAK9íÔS»®øTÔQIe4­RQMÕÓ»TmÕÕž |UÖYUŠ•Ö[qÿÍU×]yíÕ×_ 6¾E“Ë“:1Û«îÉNÒ|$*ˆ¾C‹Rü°*®Ã­¦õrPb—4öÑDÊ¡ïF!¨²3r‰6Ôïâ6 Y²E°Q0k6g³²6s¼]Hy‘¶ð2uÀ»?ç-¸[sõeÒÓ£¯ßîÐuwKЩBz–Þd†©ýÀŽÃz|8—e%ÒEá ÛÝX)„·}yË—â•$±j3õºlŸ‰QÈŠm†oF‹û’å(Ì´hØ¢Mø(e­MY~³jG¤+ĘÝCm 9QŽ„ÄÙ8œWL…©xk¨Éôºl¥‘v²cr綗͵ÛÛ·˜¬%|;g£çÿÛÔvëJÏ1ü]´ñ†™I”4„p¿^hqa5wœÙqE[Òo‰+wúòÍÉœ·é`›ÔÛÕ¶ï.|ð›#f½\ØeÅÝMÙUÝö'ÁüU9H~1xÏ ¾ú÷&'ݧ ‹O[çYüù^§ž§Rb—ûlß—/VlN¹§Ù{PÓdDK-÷óÕ_þùé¯ßþûñÏ_ÿýùïßÿÿUA–éiOAÐ~•½ƒõMóôò½‘9p";¹Œ‡PWÀ¥ÅMYRS@=˜º!å„Xª‹ T'A‡M«‚ç¹ *¢—:iÏT“RÃ41Y7”žžf¨B‚!æ,׃EsbøÿÁ¢®†Bq”xŒÁ>’â‡a ã&–l…QµDÇi‰Ò~†X/ºUñb>Üœ x@-ËIB‘nÀØ‚L”Ñg?+ÆÎ°Õº9²‘pW$äß6…>Äyq‰¦ƒá—è¹µ¥KmdYÉÁ7Qo[ì"ð6Gª(A¼×„º—2{Å3’ƒ8ÊñŽnU³¢,·H 10’4\Û“ÅK"Pl¯üÑRš‡<‚ó+KÈ.K™H -3•ª ¡ç¸+ºÑˆ—ʦ-iW–’òD¦œ&1« ¹k&o‘Ì4Ù1ï˜CpÒ3£´](ÓÍ Èsž]ã& h ªÿ†lÃ%<_×Î~jÒBœaä\ƒŠY‘QŸµjàB±iÈ\°Ž¡ÃŸ=€©ª‹bÔ§9a<‰v²ûmr£,é\ú>U¶”V,­hIT ÑUtrÔä<Ú©f’†¤>MèL¥ø<~ÎÒ¨MuêS¡U©N•ªUµª¶hú¸|‰ƒ„I]ØKÍâÇSjSOAÍâIH€r´+‘p…º^y/E„Tr.TS?(Ö:¤t­à«/øá Mh!6â¦eL“òTë¤A2ÛŠ¾:KZÈ‘Wetº¾ú%,¥´^Φ3VÇ’²’\àÙf˜IymPm¼ LµÒÁ$†öœ£mã5†W£iñÿTÅìbá×4tV6œ-Ý«[=¾±ÈT®a5§ZA±ÖJqt.Äš»1ðœ :\].lK¹ñX×xYýÜA±dõò²“:X庺,kš¥¤Hãš7#ÉU±±Éž]äËú')tÕ¸2Kþ" ¼ß¢L£ìÅYx‘±H€P¢¯fVeø´Vä΄0à*n=Œ¥ÒQÇDME[aSŒÍ …XG½q*gacg£Ä9Þñd!™ÈE6ò‘‘œd%/™ÉMvò“¡<ÑI>ɲZ“nf³‰e )ËÀ½"k7É.,¾p¸(é™â:ìÚÞ™Ìè­Æ€ Ç6ÛÀÇZÿ­ÂH3W’ѹ¥jΛ'¼\~.¶¿SÃn íl×h*ú‚SN忺i…K¯’â™Í¨)#XdŒ¾®§ãéhD¢%cä=%QëVKDs1J•æ[Y·WPûÖÑÖl©©Û'TÏY¡oÞKAYiVÞl¼Änô”ÿvgL({Í».Ú7W}ŠïrY¥â:¬¯\^d“ŽÙ« ®hƒ¡éÏú¿ä†-‰›VuX&š­3Ó²Mmž¦z¤¾V5»q ØQ¸,×?q÷MWq Ÿ7§˜†³E¤5²¶ŠÏç¨Ày T‹uÑ·)|-„wŠ”~‡ñÕþ«£Â1.ÔÓšNyý“éª éÞ(îÜú3æÿÊ5ÕãÜɓ¤ùÍ[ÛSœïœç=÷ùÏt¡èE7zÍß©‰ ›øÏŒ¬–ί®¢\Ð].Rié=TåJ ß±Ò­ÏŽ•0šq¹Ï‘Y¾šZ×öa{§Íð—Ôy•M× ÙgŒwN3°sš>4¯Ë¼8³ÑÌnû~® ujîõZ8í焯¡[Mï<Ǻ‡ç±?ÞþÇt—-ܵ5¶¼%íx»ºäR—6Üü»ü²bàmçÙƒ?O•,Aò×Q·Zµ)L§‡ê1¹p-ÏÎÎ#3ðx¿¯Gr›Ÿõ×»'èÌ›Q¦Þëqï~vØ+úãCÝÁScK›Õ‹-çeÌž¬wßÿhÛ[»ø¢¯~]ëúÄKŒh)û–ýiÎcדMZ${ë«lÐnþrÍŽÿ«“º.--ÇÚÅ%ädLÕhmòÍjÊÒïá«f¸:Ð¥¤­ðW+ùTîèÌ.öú¢ãâÄé‚ÏM°½2ÏlùtðÉx°0…p‰°ð‘0 •P©fŒÆppÎè&&Ž`rÞÞ!Z²KÅœhEpËÊ¥ôÍø®‘ð¸N§ˆ°p_ªÐú¡ý åÎÿô«å–€ÃÊÞÎ!Àº( óÆ’¼jî< óDÐmÊN‘ð±0ìÔ¨DÖÏ`èPÝêN 6­¨¢ ¡hÖ¸+=‹Pê†QLjÂ:ÉÊ*ñ“‰ ÁáýZ«Ûž©ð„ÈѦBÀËŒÉq‰Æ(oÏ_vD=°q Õ9 Ö ®„Vú>,î†Aú OvÆÖ"ñ…M:zÉ aÉÙòâ@n£±ˆ<©²„Ñ›®‘Z@ñÙ¤ë .º1 ˆjÙœ‘ãC™àåU¯vø.ig¼Ä C4á²õ²ãV~ý‘žà±¥êãzâÐ°É ’ç&d wL¦o ©êå8ò#A2$Er$I²$Mò$Q2%Ur%Y²%Q¥;carmetal-4.3/src/atp/Fonts18.gif000066400000000000000000000310531417122252700164610ustar00rootroot00000000000000GIF89aþDñÿÿÿØÐÈ,þDþ„c™¨ £œ4¶2»¦úlÚæ|æùp—Ö .ÄeêL×`“öý»ÝóÔd´ è‡Ñ%Œ>…RÅ4-žÄeTªU/× !mº®ƒD¦ÄžÈöÍI¹£S­ý.Kãh[Ž>åE÷óg±°Örˆ¸r7¨÷õµUÅX‘3eŨØùV§ÕI8‰WÊ9#7sèÙ§i”dhYè¨`Ù‡ç÷'ÙWy+1$öÊëé z\›ËòKÆÇ²ZÜéÊÜœ¹skœKÌê¨Ëeí;ܘÅÖý½˜ ýÌÍ$>–– ‰ßêzå]ƒ­:à¬9³³ •9[èpq"·‰ »w{@É H/‰<þj<º¨C˜_?ÿbŒh²WATAä·p%JuûÊ™º‰³” Ðel÷‘¡4q.±ÌySæ €Ef9sbÔ)QU/‡ÆìˆNXÍ£H»æÜ¹”¨Ÿƒ*}1µèÙ½n)öd¸D“è®Õ!G¬ëšlè°VHƒ{'Ê2Yxž¶²kî m;în™c…áÆÓÉW¤_¿$L*ÅfABj̲§a$É\%–ËV£½Ò–½Òî{Í^R¦B£&*J·ç"]Í,õaÕÔ¤WσZ5YÕf‘ùÜÛ7–ܨÇm:Ó—¤Û6m[_œ0<Áݧt>hÇë­“6&¯¸ö#þ°e»þ}îwnú{j¦ pÌ5_5?Ì·\}ŒE·àR—}•¡hܵçáwÕÌ4Z‰YmˆÓ~B4øŸgùŒ8W€2„…øih†-þtàŽ»Õ¸ÎnþUè^‰£ÈR*^¢z)ç “R®'ÌE>âx¡lKƒ"hWN颈â&¢cR¹H_ÈÔšÊè&˜M8d‡\樥+&IDšúÄ)'suÞh„Í!Ég]jh‘mnÙ(zòÕù£{¥¦—Ÿ—F Ø£ ÂEOzzi¡2Êétž¢šê“>Si›©JŸ•µ¦]°áš”DòJ&‹ËŸóźþÑ[ K(±Î>Ëfcò@û¦¡QRë*O ;Û°T>#¶âŽËäGÓ’«ª˜ÞŽ»LbÜæcf¡-‡n½öÞ+å‹áââH×bIÝ}ëòKpÁsªï˜§ãï’:ê¸pÄO lŸJlGïVÇ*Å r‚ÌŽŠïjÑD0Ä!¯ÌrË R²«Ë©¶ÄÆŸ2ߌ³Ìa š3®Q¢KÏB1tãÑK4˜?ÇtÒN?Í.žCMuÕ‘šûë²¼eñ/ÊŠÍyÀÀ¤ú:£ðR#¸;ú5‰´/¢ÍU€i¢†½B×/{iwXžV¶-¾b“¶ ¡ú÷‡×ç–ØOâÝlÚ1Õþ-·–ëí]Š$[¸ÙßÞAÞ©díµågÀj æ‹‡Øøæå¦<å{}®ÞïÑFÛîúÓ8®{çr~ºÙ·sùØ5Û˜ø3'» gî^ÜÍûžFG;ÀÇ^­7}ú»´Äµ.<äCÏùõ1ï°Ü«:ß»ÂÃQûÒ7Mò¿®¬Òi}ßÕÃ.6è­¯zÒò ×<¶oj6˜çç­±g{ù‹Ô‚>øÅ €ÿËùödÀâôj€Ì#Ý\°QÁŽE‚ÚCÔì<·5 úAW¥º›ä°7ôÙïjæD–Ã9i0zéß·³»ûõ3J,ß ÊV@¢ˆŽ‡ÃþgP*剰„ÖúáØÜ# ©„ŠÏsa²CÆ;Í.‹ '>1m1Xâšn²˜¾\¬‰mÛ^’$âÇ< zÌÅ?#†ÏŠÄS"×–º<‚„4aÈ S¿‡àìl‰TÜ“¬$¾J ’GZ$bè6% “ÙÈ&9¼ÇY©3­|Û(BhÊ$q:·ÍÐx¿I™òYºÄ`7bIΙ1’;T* §J«]Í Ãtàb9¸m]²‹Ü›ä33™Liªp‚7»&èN¹¡]L]¾ó&;ùqÂP—ò¬§ãhC=Rœ^´'WéÏ€ê̇Gl#š<€"t¡ÒþØN†Jt¢åU+ŠÑŒjtžêܨG? ÒJE4¤$-iIóÔD“ªt¥õœb5Y Ó˜Êt¦4­©MoŠÓœêt§<í©O Ô ¾nÉ™eôhXPyTkOìO^ÕÏ/ ¹h-4Òr=qŽøˆLÓÞ8`ñ ºg?DjÚÎHí.SZÕ>ðí c)ÊM¿©£õKÓK«ÚTc=Õ¡uå'>ÝzWª¢S%Ë[á §r%¬{#ÜN÷W*Ö©»œ!!ŠOÅ0±ÎT›e±ôX6F6^“¥ge—J«n’ÕƒÓ9ñÚȤfŽ´ú¤¥„BZÚÕbb½Èg þÄ×j·¨›ÍMgn YF•M-íh†$¨!â«*.e‡“\¦²IL$XÊVF"V’ã¼îXåE Õ²S²"Ôro^¶Ñ7Lååßyw8]í%Ü/W•kºÓ"ÑPw.€½ëZð*X¿ãÍ•&r+èÊ7~v¹/35ÙÛéÉQñbbåË]½¾/TfK‹/LÛ>2ÀKñ«®ÜZ{Ó?Ø£°˜LLÜ3Çx”m§˜Òâ»{ˆÔæ&l\ÇçÕîⱓ鸙;X9fo9\™/$‡Y®œíl-ÂM°Æ‘ÈÉó24“•Õ%ÆqÌ rxN,V0;©AIVr?âcþ [Ñ 0ÓÕz›©OY¥ËŠñ–ËÚ«Âôò„zžíwúÜ\:Ú·˜Õ-¡ lhòòl[®RSæéb¥v’˜I5]æN»Ú`‚ô¬{XhÜZÇuæºà•_ ­zœ4†‘Y¬ÑØë ´¬£K·¶Ššoå‘XÈÈí›etéƒ5´Z?Åk¼2s*älµ·ŽZ/­SE 9Î .v»Ñ…Õ­û{¢µ(ªû½Ð&ÃV™Ù†«P5ŠÔdûólVæEñˆÇUɬ>ŸÄ/oÓ»X¡½7Æ?Žp3{¨78ÈOŽP‚šå,—¸ÊÞò˜ÿ8—¹ÍoÞþº=ç<ï9£ø@t ›#iüÂ.+öŠó_æ¡Ãw1|ª5‡ü€eŸã¾{d,Í'Ä‹B¶NcÑ#TÚƒ:úLÃúÚ~ìäþ¯ü”Ú_<Éåý¢€ÝBÞFýÍÿoe£1ÀlìWi7¤{'$sÇ fXt¦BbÇjí'eî%}€ðq)Q+ØwKhd—zƒt£Ç`ð–=Ø5|ö×Fèt'ØBo<þoû•cîå~ ×XðÅ{+mâN¿©Ç<å'y0x€âÅ|Wç|1iª÷J÷~uÇ}é4âmCX}UF„d„/h XyKho ×/ÿgƒÁby[ÇpW Y¸{AW„]˜I_¸kå×{ui7r‘6oO(‚ hzÊwgv&9 „wÛ§‡²whÒ—‡vGW‚m·(9Øq“x;xF†¸þ‰Våc,¸`Œåqeô{…ðˆÁ·‡—§ˆl¥‚~è%ó73y‚õÕ?‰ŠUC£¨Fó!~¢”Šr·ŠíÕŠ4‰>¸[Jb‹}Š?6mÝsU£rG×løg‚Âwˆ6Sûƒ‚Òh/K—3ShÜ(Ž>#,ãhŽç税—ŽëèŽ>ÕŽï(óHõh÷ˆù¨ûÈýèÿ)7'-¹ÅC¢ŒeÔdMÆ~2Ô\•xvöq*¤Ö|TdK#Ä3‰ÖA¦vjb&ŒãV‡˜ ðX 8‘xSni($I&ˆX9b0+‘FuºvU&„pB’V4[LJҵAºxc.þøy#˜EYmE™Kù?ƒ¨“Zèv—Åa BkøgÅi”V&ÆX>0™”hãBP6‹‚2cãk–H{šˆ²p‘X['† d-Ôp”‚H‹5d• É‹M¹LØvi_Gqˆý÷F¼8K^‰Z"éw)7X‘ã§]Îä–8 ˜†bÍóh.I‹d¨HŨ˜õæ'`g“HùRt„nDN—p™- ÉEï´™gð–°ç™Zu§У饉—m6/©Y]¹÷?®IJÀ$…|°…¤âˆµù‹Kf@˜°’‰Ðj(v‰˜HŠL‡ÅtÝEœ·³ÇYɹÆIJs‹p‰aŠVL•Å›þQ‰€¿ÉLnÉz´ Ÿ$r=tøzP’™×éHuš:„’F%”èW±(Ÿa9Œ{e+è‹ Zé‘^O´2êÙ. yDéQh%G…Zuan%‹ŠÅJ—yŸh%úFêY3·W.ø¡XFžX_%ÚuÊh°é‹2¹n-Z¢Ýi4Êx8¨‹²t‘Œ¯f¡eN™ÙTÙ9—9•G¡±) ?únrÈmÀHžÔ·¤5¤cº’Q˜ 9¹œsVÏØ*i9}ªwRzÁ¡SêlºBïˆGúI0ƧâD§Q§ÿ¦1P—¥‰¨O“u™¨ê4ᨑêK)©•Ú2jþ©™ª©›Ê©ê©Ÿ ª¡*ª£Jª¥jª§ŠªÕ${VŽÕ¨Mʜ؟3‚8œô^;j£¼¤:ð4JØÆQF2fÖ誶)‘Ú±ª' :µÊ"²ú–g¨T‡¥«YújL‹ß¬•”’¥×‚áù¬¸7ù”åXß:<Ñ*Šçf†£Õh™;ÖIÈš¬Û¦çÚ@•9¨f7НR¨vE¤x±(ÁÊŒV× #ÅŸ¬ ¤îŽ¡–c#Š®øjz8ÿšdš¢g‚X)±w¦³*€ÞÖ°¡D—“g®4›×W±º“ÅF°]Ô3Š7f·©$³¢ùtƒz¹¯ÒwŠW–µÁ²xþTŠ/‹U1Ëe K³ž´4­¦€gy²q´{Áµ²Ë#¦â®­úJ[9¬3(²þ‰³yÙ†¸§=«³1xFT+)»‚{I.¦°-ʰ^k4M¶Ok™ÿô]Óº®ÇêªÙºMB´\‹y7K²9+Š)•týz¸f‹·{›«P¹®±ÈA»Ÿõ #»V%»¸ˆÛæ©*nI¹KT“ £Uè·ZÚmh ‰–;¸7ë¹ÔÕy Š¢z ˜nÔš‰¥Ëx§ÛPài’o ‘áz¯>Y²«¤”²%¸b¸Û¶X[Nêw­Ä´¬ú‰>ú:áW‰XJ±œ«šlJ-ïz©Hn¢¢k½Ì+¹ö`±þ½Ø¾]*µ=5yaú½Ú¢ºé°¾“н¡[2‘—ª9—1õ¾ÿ‹QOGŒÎKÀeÀr*¬ ìQ ,SìÀÁŒÀ¬ªKËbÌÁ‰gÞÛÁ!,Â#LÂ%lÂ'ŒÂ)¬ÂøÉ¯h EÖGÎ ¦[ ®a«Ø¹@‘éG5ËA½êwè{Lry:˜§¿Q‰¿;xܱÐiÃìÁ˜2xmƒ§œ‡¡ÜëR_Á”¦ùi4'ÃDÃ5¼ TjTŒÌ¯fœ‹\ÊBr@º„øÀ±ThEBz’¯ÆbܺTв¨b9:”=\¬º+oy¼>œ.'Z¹ãq¿»Ë»©“´eh³ŒÄþÇùü»Œ„õŸW¤”}å­KÌ–‹L©R6ÖÀZŸ‘ŒÇN =t kR\ ®Ü½„ÜÀyü¸zˆ©^Ch,*j ¹àJ:Û|ôËš€~H¿¸8§qü-ŠLÊ)ª‘ÖbË´:€ÄªÈÌ™j²¼¹Ê¬»™˜ÅC<#‰,Í, ;°8é×qÃlÉFúRi,ÈZ´ÍÅG½’ZZ\Î’˜;|¥ ‹~4ØÎúÉhJ»V©«¡ 8æ|ÐÀõÏÜ©ÊÊZ•\Ðïɶ 9¶ÄLϦŒ,vyÈE ÀdF2úÅ è†ûë™cÜšW\ ° ÈЊÌe+¶ÙöÆ:zÒþg*ÍtZ+˜&ƒ]SÕyVY¢_Ü ý0+[¾¢ÌÓ¯¹G4fé‰Tõ,Õzܺ¸SÆ¥Õ˜¤š‹Ûå…Üè‘ÎM…¤LÐûW€—ëRéÌÙ)‰ôžByëLÊBÚÑnêÕ ì«ÇtNìšî±’®Ð^j茌L=œìNÆ^êMÞʶ÷×K¹ ^ìq¨í¨èíož@PŽËèï„êáG6™?»Ñ;Õ¦½¢¯Í,"Ôzžá?Uû¾ëÍí0È•.¾ÙNåi»;µÝ•—-OÒ¾yfçïB=á´àîñn= ÙÔÇPŸLþò¶ó±EõµV÷îö'þ®©.ï0ßó8MñsÄ?òšòÉóŽŒñÙ5ó馨àÄüÞUKóM/õ0•ô-cmY¿S[Ï2]ïõ9ö+#öcSeökÏömïöo÷q/÷sO÷%lç›ëUMêB¾Ìg-›½Á¢4Èï¬iñù¶—ÎñýÆÈil¡¾ø(͆×)+ºeôplÅ£ã^¾Òžø1æ5_Z²W™)–î£ìÛÔ”Wå7öÇø¬ø„_ø_ë¥ ùÑlDk)J~øàþðÏŒ£5úrZ.ºWŽø gjLá´¹¼ºúѵA†ÜêÖ&ڙ̘x:2£ ívjÅ"¹lïÌoÛWûþ¶¯ëænÓ¾ü¢=¼ïµÜ»k7ë¶ìKÙ ã|OþÞÀþÿ@ˇJEÁ! Qüa”Ó1{Ój”wÿÁP°,³ÄÑÖƒu·”3i²ddˆ¬±¼»n«Àç‹2F·d%ÇKrÖ¢¨YmµE{mu0iôY½ t‰Žmm/5Ö|¾Në§û^.’÷èÌИÞòSM˜òºl0ÖÀøŽ¾þÚøê„æœ6‰q#ú&ƒØC3y UE_P]áÄ.‡"k']ZOmÑVO KL?yM`HùŠ}v +ƒ¡y’«õŽYs%QYºi©4ÕÄÇÅ‘-/S—=¥[ý’Ùþ µ•d×ÛÕǨ­ù•±kšmÓêÆäŽ£áëWiÿ ÂËw¢G5yVÖkxï>‡ýú]Td,â=|Yv½3”ÐGËzSyR”Èl+EØ‹ƒ%ºt ­ÙüGr£O‰=™ ù–ÒO]0‘ÈTz´¦ÐiÂòkn2§5~y¾+õÊj9ymúç ·1Àà¹îøqå©öýïºS×åà>´=vá1ù^e;?ÿöò}£]`Ó{¼½ÌqÿÅw=¢Ñ/|ä_þ(®ÿ¹r ŒØtlç@ zNsÙÓgºNƒ§ª ½„&À Ng4¡˜'{Ãcá Aâ*oþœá q˜Cî‡= @ò‚)h½oeø2ÚØ¬„‘Úmüƒ  72QwN¢ów¶"‘B”3[Ê ….2b‹Ï*ÒúÄèü±K¤Xÿؘ ð‘Oƒ^ä"ÉlhFoQŒcCÒ8°0¦q#Ëå¦HE>v¯‹ŷٽ󕑴ãÊ‚–@’€à*ä@¸-JêQDÔã1f‡¹«¤R:¥¥À,™G"}&yœDã± J–‚>ž<ãêê3I 6§v``í°¸<9öÈPżšÞÉÌfJ-”IIá5Š7ǽIfiÀûÚ¹^2“xPµœæ§†ñÊQÌRš\œþÆœÊiNBê%’A“JÇŽnž#ekÑÕOCÚ3–²DÒ%±yÅ*zòs7¨æþ¢ØH®‹7 ØèöеÀ‚‰jœ¾)¥:'ðÑ•J šwƒ%%ZD&ó9F¬hH[ŠÓ,^D¦ÏûÕ5ØQù U©`§OôT]ZL§›j_+åÐK᫦3seD!´Çz¦ô£¶Ä‘/žzT¡vW7%*)ÃZÕùy«¬’Ô€1$U¹æyå,S_jÅ[¦ Ž\;+-ªÖƒâò¬ ¬]‹›žóŸS™¬@ßJÙ_bulÍ,þ1É6*”]N‡›麔ÒWÍ51J&Á(õ,iRYq‡®eec‹V…G¯e¨|øÃ«r¶®ªI.q…[æ•é®ÉUáb£ºÌçÚV¬Öõ.O—ûÚï:Æ¥yýåxÑ›^ÿP´z‰Uï{á;›ê²ñµï}¹jÚ â—¿ýE¢0ëë_x®¨t#œàyª4º vp|¯³ÓO8ÁY$…1œa o˜Ã dÅoÍfD÷¥6‘!/BAÌF‘.™Gõ­pÃ{^Ô‘PÂ(Þc0Í{⨑øÂ°}Suw,Ç­¹_5_–>;@;r–ãmÝ6¾“ÖÆ.Ïf[›§ Æ{L²þþ´X\¤‚µŒLjg*1ÖPÌA¾q–§ìÕvÖOcùÌæjE¥9ýÖ×:] 1´v)b8·¸™¥$'’Ý»Þ0wù›5vó|- eR¹ÀM㪠aO¹ÍàåfüÈEØÓJ§b¹+æãT®fò˜1}äã~¹Ô@]+?s ;›x¿MFl§Óúa&vvÖ­þÑ«s:êÓJtÖ´öµ“›jœƒù1ÑJæô²­ /¨V™·}Ö¤™‹KÃZȃ¦ô6svëŒþõ7Φãµ{-iNÉÖT´rš“ègÞÛÌ<òœÈclÛÁ´îÞ+¼CÝäÜVÛÆ…D3ökl678Ûÿ÷¹Iþid:Ï-ÞÌbŠ·Fz/øÌêÞqÄìj`úܙÖ8Ç^\ºÊîxÅIíS:\ÇèFùŸGKê¿ù Ífx­í*/ï:ÖŽõlwÿ›ë‡øçûŽ4¾ypyÛ¡/:„Ò£©[ÇtqGa:ñ¯'{É+/j¾õMrŒ.y4×Íǧ.Zé¹ýE*§øCï<2Ìò¹“Óœèßå;]yƱ¼&ïp¶:p„çÝ1gᪧ$ùÕùñØŒüÍÏ`€³uî¢Ï:¿žÉ_ç?^;‚5ÆúÔƒgõ[ŽûìÙÞvÄã¾rØåýïyˆRàŸøÅ7þñ‘Ÿ|å/ŸùÍwþó¡þ}éOŸúÕ{cû-R­@p»Çy6UM¤­žt–~Byq©Tѽ¶Ú—qØÀ½}IEO÷”ÿ¶yûvlЧ»ð˜l¶± Ç>„WØÛþÄþàfñÈM­ÂïÌòOí@¯¨â/ÜäÃèZ-qÁîP îlmû®¯ÏdOáòãjËΊ‹ÆsÎÏ”J½ÀaŸh "0o@N#PÏ‚Ú P6ÍéOkø.­&KméIæ20ã 2I×..ù#«é¸zð±P.Í7(ë… âõ¸ãâÇ Í ™B KÌ Ðm.Gâ0«äâ 5Ðã ¦ñ†âÐ>Oþ þLçpP ×0¯« Çhÿ‰¶ôNࢠ“P 7°¤@M*ú°èØ ‘J¥ÌeÐñª?¨ß41êχÍCd$žÙøÏàHêü¼pÚtK…Þÿ(ë°Í¸!EíÓ¶bÝ.=‘åjÓîçòï™Páqñ+§*W|q 9qM¦çfŠ up©«ëüþ˜q…ˆžr±Ê’îòòpkðô ±ÐÕ ³¤oÆ‘1œÑß‘åD ‡ ÆÐ‡îoã±[ÏÀȽÁ'DÓüñ²O„ у U'þŠ®²(²ÖÀOÊ2zîqÛH¯}¢Þþv±#K„i°m0"=U2Ø&²ºnÿÊòÑ$ÉÑ—&ò…žÑgÌ• ѺžAÑš@¡ÞÔ(%«#‹–ÆÏ‡Ð© ±.±¢ð.(ÆÞÏúä±ò,\êolÎ ÁòÁ 0)SBpîH°Ò2ù€Ð*}r±þö1.o.ÑÒ#­‰$?P°ŠR/‰/‘íÙìòðJKªè0óâ˜dä¢F0!ñ1Ó2%´1÷¤1g,³3³&(¡­2=s4[æÿD“4Qs¡¸n&S³5å²ÿäNûÀJù.ýÀÑ÷æÉL|±å<¨î­û~£mþÄz@Ï\òR¨ h8Ñ ó*×"o·žlþ#a2à ³8•sÕNS¹†3ó¬Sø€ËwÆðæ¼1žzp;­:§“ °ŒüRpÌ+ÚæR3C / *3qáJ>»ÞH%:w’H2! 30>f>ýR‘âWôAð`sPDNó °TE T'GDzzO>ñ“-OÜ Aƒ 몟$´‹ ï/=uÑï;KŠ</Ó#…ÃTŽ,ÕÚQ$äQÿú“HK‡Côö8ÊH±IÓ“ÓMôëFÁîtÒEñ¬/ñÍôû¸t?½4;ÿBLSêÞôû4þ´ùrMs9ì"Oéjw¶’N¿¢í פÔ%C¦J ÓO”°PPdzyÀªí¦Åµ@ =cOÿmS¯2µŠ´ÎÊïóO5‹ÆN­€REaBù´ü˜…ó6ô@;”>ãô-‹%S‹éOM§ûUa5{¬ÈVÇjRs5A±ÏR”.n øMî,Ô¯T隇ў¦T·R•œŒEÛt•Ø4ôðS¼Í›®Í@ ËPµP¯U;XmÎ\EU}¶5KÉ“]iï,}5^ƒ0Xåˆ^#U9Ð)A\Ó^×òEC‹¶a ™6b—ê-$¶bUoé,6cÃõ.4¶c%c=6d¶[þE¶dIƒdM6eÅU¶e]öeaÖçËûêo ŠÀZNg‰ NÂÍÈ7y´*Y“`wf9Íf3EçrVöeO¨k›‘‚¬th™³hknº€6H'Ð:ª0r3GÅgÿàYƒNj¡e„Ôji kïNñ–µÒ@Õ¬Ïàjo ÉÖrÄqj¯Ý!o•Œ8ÃrZ]µ-µé#÷i)hoVý¶X©hFÝEÍ3OuµkE=–nö6Ñ'†^²ÒmÉUM')õ5ñ.7nƒlnëÇ—9×Õ&s¿­6w¢Ôö%»@iG7³³f«ÃèÆ”vk÷ŸÒtÑþV Ÿ¨vm_ôŠ@¤°–Èv÷sqÖ6{™—ò÷{3åNS¡zéëzµ7WˆlÓvÇ%|ÏP¥Ðv´z×E§—yä÷mKWßUOµ×}¹—Ÿx„_äÀûj|ï·jówW^3Óð ÷‹86wu }mJÓ´:[‹+eg‚ ­‚G7¥-ƒ-÷—8˜=øˆ7 I¸.M˜LQa…Ù79ÇuÀ^˜é¼“j¸Cšwk3„g¯„i»‚ÎußM£÷Cq/Wk$Bö—U˜ŠíyoBÇ´+oW‹/ö:ÉI]¸%‰¸ï`€w5X‡Ë¸uÅÎøêW„¢Äþ8 &¹ÖˆS¯‡{KY®øcUXi’;Ï?˜e5x¯ø‡8a•8Y„c–¿ô¯’19“5y“9¹“=ù“A9”64¯•/[5ûæjà v 0a!k†¯Òg—´’‰âØ[i·¡ hA0öDh•)ÙCç¸s•à'ä5:X)YÐ(ÓÎÂÎyésÏ"C YYWŸ4˜‹øôšù;ÏÆj:5™íò•#¤t…Sœpo¤[·ªÀOVKÒ\¾ØZ$3är œ±Ò,­¸5[âĹԙ—ê[çí\…žñ™¦Î¹KíÆžÝñ Gë÷¹Aû™¦¹n£MZâÚò–³J“:Iþçe–ý‹N½ìŽwÙî*µ9}Œ Õ¯+6!žEbž×c/”'k9~O_MõS¥Ž"½8_ßy¿1¦Ú!¹dó¡ W¦‘U™òù¤Û•Çpw¥•P§8Z™î‹át¤}t©k‡¼¤Ž¡{١퇢}eÔŸ…£“é¬uè´,ŧétŸZ™óÖ‹ÿwU­Z¥•¥‘Ä·IäNùáÚ~9µ›{§šéZ®š½–ug.«³7²ƒôšCpi†ž—Áz:Én(°!­Á ›áԳ׬´M»¦?ºýd»¯£Œª÷õ²…ÚÀ*K°7۵ɶyñžûWÞF»þ_!²I…S"Ú®›úž‚ó3š‹µÃœ 94f©)u4‚ÁLû€›Á¶z†n›¹%У³»3ôIªÓ»%«M×Dªû¸Ï;¹{ïb0«‹õÁ°Õ±®›•«í;Yó°£x8{„üû¿ÕBxeY¹Ëëfõ;Áé¸"uÚ«¸½`y–;½)|±-üYò‚7 9\¾=üÃg$}͘ÃH\·EäÄQ\FÆSÄE9í8·²'<Ó±Æ}µ}]œ´«Ó¼y|ȉ¼ÈüÈ‘<ÉÑKp÷­¶NX;Ò]I ’7§‰XA)Ñ€ ˜<óÉÉÇRÂ×– š:É&ª³¢Ê¿<èîŽmcL¹.X _ïþ˜ÛÊrxub¼ÍL%̼•ÑÇ…»`Ìy*t|Ù•"æíc(r¸ ÂüŠý ‰{çt–ÿü^Lt&³Ç•¡ÎÅÑWV·¥ÆËen¤a˜ð§Ë±Òýïã@(±§9faKGÓÖin*¿ú°<Ùz·v¸¾¤ÕÿzgmëÇŸ8¾iÝ«18ÆñÍñ¼áú<ÍUýºw”t]]&`Øÿ¶ª÷Ù¥:ÂÌO0qWÛÝP…<Íø›œ@PÔ¿[ÓÔ{]+½¢o lÛoÜp\kåÜ›zf‰ù¾'¼¹«nß3ʹ°1l{Üx£»×cÒ6ÏØ÷•Ý3`ÍÚ¦ÃÖÔÿ=£Ýçþð]=7¾[ £û‚o}YX©=æ¨3žÒ~¸;þ`±W¤UQ`G-í‚|—Ä“±T5æõ,>ĨmÎyX¤bÝe%¼hµ™Û)ÌÑgQÉ+™Í7íá>îå~îé¾îíþîñ>ïõ~ïù¾ïýþï?ðü}x.á¼ë!S[}wíJAñØ(Bí_·Ù\ÍÉj{)Ûm×xÖ¿šÐà,êQr…Ff»#J\ßÌÔzà4+—XÌÖP‹ñgëÀqQY@¯«ÓR¿»}ìcGgwƒ{¿þlû½Ø½…Ŭ¾„cfRæ2 !.æÙº}¸­@4ÝîCö#%$ˆF;®|ÿ•„õ˜ž}ú¥¿ú9&×ì× šÑ’çæQÍ…\®åWÛì‰âOö}o:öÙ?  ¢,·?Œ/!C/rËŒ§pãè‘«`ºËQÖœÆw™Ðzªá?08y1?^åd®*‡%óvÙ£WOe¢¨Zk«h׸ pY>£Ûn1Ü'užè"÷„ŧÍU´KÖS  `\™SÊ!_Žädå\âËÈŽ%ƒR›§Cˆ¡bé_T‘iæé*cc§N(èŨîÈk&ç^å¤ÜþnX©àãVÍlsî2+¬±®Zu1Ÿ­Ròõt·w°ä÷ø±‰)·yÑ¢X¹¥õ-%v’ïû}7OJ'¾q» +ÛA‹¦¬;*^jÕsð!CI´ F4(ªà1ì,Σ$[¼ˆÎ¤y,IH “zuL—a A•2e4Äu³.$gòä¥oaϘ‚5Y-YÅ;‹2-7°©Ë^P§¾C9ˆ*Ö¬Z¯°Üêž¾_Ç’ Ê¥™Î›eײmë¶-KtoçÒ­k·dÜ»z÷òíK­«ßÀ‚.lø0âÄŠ3nìø1äÈ’'S®lù2æÌš7sîìù3èТ)†})Uλ¥=þëÕYç\Ÿl÷L¨,·kh$·lÚdë™R vÍÅã¯dÅõò¥ÀÕ©ý]È–šü ¯¾=žð±Ü³%5´ZéozXZÇÖ-c ÷ß±Ówÿœy¡­ìöž‘'xáÝçÐJ…XðÜtÙiuÞÍ—La4›M þ €^õWSE#çß²VM{î9È[|ò]¨àO1ñFá$¨sWoOì¦ÞŒ±¨bT5rW¢‰¢(Ð6ÍöZ…DžCi<Šçã&ùŸˆ51]n?d†+¾Dá–°A#‰åX×—.ªGŸÐ¡… ­i‰Ê›ö­©#&GBœ¸gþyFéVšNŠ”ŽVªÙœœvIƒî©Mz &Ò§l¾Ù䦠m>é_~ÀXχŠº]£sNЍë-Ú#žuÚY›oŠ\§4fj•Y>jݨWê×)r@¢·$°DH¸ª*´úiÚ¦Ó ªk6Ä¢yÝ«¸-–ØþÊB³")Õ˜0»§0o Ô\Ð k)¥çv»c«}ÛÇ‘/š[á¼ÜÒ¥ »êº{ª—_î“î;Þ )âjˆawÝæÊ›zºkÓöjðG5K¥ÆÆ±ÖxŽ^l›·Žs—•×Ë%ƒ·2Í x2S0g218×ü3c:Zã¶T}tdgÕ))þÒM;•ÐOK=uSQS}5ÖFå›5×]{ý5Øa‹=6Ùe›}6Úi«½6Ûm»ý6ÜqË]µÒ?(«µiJôD6sIŸu©סÏn²ä0MÕ[òµ?|§˜¯Õê…BF_RˆÌ ƒgŽŽŒsl¸v+|‹r ö-ð$)•ùI‚ aá,Gê­å>MÉù(a}Î3æ¢÷쯔£žNhÏ€Š|éÛ82Ðà°ò &›7ߪçßIaª>wÇïâ Orñ÷Ëgò7ë/åû›~ìæ¹ûõ²†.r¡ø;ßžÿ„xÛ=L°·0®€ÎTÙbûÚ7‡÷Yo= ³GÌÀ«àäþ{1Û_íàE¾Up6Ó‹^ÉÈ”Á ¤nxb _ v@l„+!²œ7”òé¦hu˜P!¸Àưu4Œ í¶CÓñï+Jû_˜f Ø1=÷É‚h‡ ž°ˆ¨Ʋ°Ñ1fôjuc³t¸¾í¥Å‚L˜…ø‰)wÀÛ wH†-rQ9SÜâü'ÇËííˆ]ÄWÕ@èÕÂe}!£ ]AGk4®YS¢ßF6®çÁD+ñ Æ~gFÉAŒCãñ$9IÖ%+´³#B¸—Â4Z1pPDÍâ‚ÊOÈ“‘è]€,©º¬csëIÃ^éÉ_’†Ã$&2©–º&³™6R“È»œ)ͦµ(šÓ¼&6³©Ímr³›Þü&8Ã)Îq’³œæ<':Ó©Îu²³î|'<ã)Ïi;carmetal-4.3/src/atp/Fonts8.gif000066400000000000000000000073211417122252700164010ustar00rootroot00000000000000GIF89aÒñÿÿÿØÐÈ,ÒþD` Ë툂„Ê5#Oµ–NÎAE’B”•àYBëâQ/\Žo$ϰv茘±­08 µ™áZL²5 “!QîÖÒ`GÔè¡g¦Û¢ÏJ>K×lg‚ë-—J”ðÆþ q|&v“æ7Æ×¤Â7a"§ÈW'e¸WSÙ¡ç÷xØÖuQZ¥˜¹HFâØ—É¥…·Fzq‰ùÖ9Û‘ç™Ihj4|ëÁµ÷jûÐFÜ<·Kû-š·3M#ÜLœ5x› ­9µ=üœk8¡‹½ÆNž½Úú}­¤NŸîoùüΈߡn³žÁêwL Â…ñP1,vça±nÈêa1'1£ÆþŒî6.4¨Ì£È‘‰Ì# Ê•,š ÙÒ M1KŠc÷ä`?˜®þ³(«`Ž]Ü J“x$’¦Sθ§>íôšº$*¤™HPÊ%ëO^ÀÄš˜ \Zn¬R¥‰äk랊â&ŵtì2§ÁTäµ+p·àbËšPª•SxþÓ´öÓ”ivÞáKI8ÎiD¹Z!xbâ+›  íÒêU0†û*UŒîo×hz?ŠÓú+²HwnwÄY'o³5-.NUÒnÐÂ1:F^n*ô¥C—ß={ºöíÜŸwÿ>< ÜâË›?>½úÒ¦›Ævoœ©% µÜðE«<¯üÜ£þaëŽ5jÁSÕeɹ¥…1ÍiãÞeçÛ{¡aÏuH'«…ÕQ_ &aRÒè…y=QØ j^ÕF‹ƒe–`@¾qs§ŒH©”"N§*¹1X4ªaá‹ùUd"=(‚è"!*:YT;‚dˆU0—ãˆ.IH’^`È¢@4Ny‚•5ŠéŸ–-~8aY[¥š+–ÉÏ™W¦›Ë„EÝ~ª˜åUÖ\¥°^£1uh– ŽNª¤”^ŠéŸfÊ)z/ùÔ)~QB$élNäWœM4Ç”‚v[“Gài©c² Uj„§ŠrÉ$²Zˆ«µÊ•ªˆÉ(þ[mÃÎY¤=¯HErÆI‰°Òç¬,xIÔ¦iJ7É“ƒN´½úÆí…Ô†[ì–ÚZ›¨·Ë–‚cµ&A› 亯°ØzGÕ­ã=(‹Vð¹¹¾nˆ'³ûÓ°ZéfËè@ó·é§?:¹ˆÀÉ^K ¨ŽšƒG)J–<â½jÞ€À!jÌéÍ+sÍ6ߌsÎ:ïÌsÏ-åD¢œ}Å$šŸv\Ãáüqñx!ëÐM]B–£¡ó9„LÓÔdf˜¸[62ÄåæúÃK*¶w‘dzbͬÁ¿ÊÒÒ8 (d¹«zö½$6ëîÝÍ‹¹õuîdì­ÁMÍ÷Õ–‰Ñ´Ë3Âþ(×=Õ«$„ˆW«´¨¥ZþàæÛ¡¡u ¥×푎d“º±íŽ>⺉cžµá6…Õ‹¾ÖÕg ÄÒLøL‹!Ä&Wׯêj‡h<ê&EþkWÒ&LvlôíeÙ%H¥òŠ~CEnå)ÑêHXË$–eïŠÔ‘·ºÕœ v‘:?]Ä”ªÕ 'x3'^¢"o‰½r—ÜëNÖ¸'j­V )_™öö¼½T$±‚XÅ÷ªêKÈeÝ6 Tƒ'¤ß»çO(Ô¾JöŸÞ°‡? âw méc°(c‹Ácý’Ÿ‚‚œ-œb2N™ñ³•{·bÝR/ö§3 ŠÇ½Êö¶ìdfPÌ„&ýÖ¦&leÖÇQRæzìN} ™±,,®¦¬â(Çø¹ióqÔhÇÆDZ·:rƒá±ä2gÙb^Nî{Úf‰‰ÎVÁr“C7þçæžÌnFp4üå?×ñ›¦çØ;ÔBÚaå­ó¥H|—;¿Ù™›þ'øMêòS÷„?7€0¸…w{×hU¦~Äò„ÖÅx58…ë)—ë GèLiXi­Vƒ=X2hæm|è…ÞƒF8ƒ‚¹å‡­D‡)ÆjMÈqù·Bp8‚&è‘8:RG‰‰7‰—èy©–þh8S‡–˜d¤‡ÑÙ—„i‹Àéá)žãIžåyQÁtçlP¨ù þÐù&¥P^ @4¹Qk¥_Ø&)îI#òY“béIöùšº•ûu„ùÉZ§Œ9˜;º\ÊaÀw]rSd&m÷éŸ[9|ø¨žññŒáÈ]v[ ž 6•ê8„–$}:©D %€iWÒ9>•v–ne£% ‹éxøvè(Îr•gž½#Gª¤Kʤ ’ù}<¨MU¦7UÓ¢ÛØìˆd@ÈœÔÆ]oÆŸ`%£Nâ_)špww>µK?•j ªÎx˜†äUŽHš)q—\êQûˆ˜@W…÷ e[Š•PêfVeoÚ¸z¦åh3Ê];:TÅù%O >¸ ìygEˆ¸F‚ Žê‚¶·¢#å8¡kéE«–'‚#·¤FÚ¤÷˜¤­ «±*«„Øi¬úh´ð‰|[H&îùª‚@D&‘´%~•UX,¥EÏ §`ب&y’kʧE%_Æ‚º V „=z”}ÃÔGrh— /¡A­hG¤õ³ˆ÷ôŽ/Ã…¥óé:JÅ•T´ˆòR›šB ¡ü©æZ§åZœš)•é¤Êog °äYŸ·J£³Ê° ë° ±“R;carmetal-4.3/src/atp/a.java000066400000000000000000000035271417122252700156200ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; import java.awt.Color; import java.awt.image.RGBImageFilter; class a extends RGBImageFilter { Color a; boolean _fldif; a(final Color color) { _fldif = false; a = color; _fldif = false; super.canFilterIndexColorModel = true; } a(final Color color, final boolean flag) { _fldif = false; a = color; _fldif = flag; super.canFilterIndexColorModel = true; } @Override public int filterRGB(final int i, final int j, final int k) { if (_fldif) { return 0x1fff0000; } final int l = k & 0xffffff; if (l == 0xffffff) { return l; } else { return 0xff000000 | a.getRGB(); } } } carmetal-4.3/src/atp/b.java000066400000000000000000000577461417122252700156350ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; import java.util.Vector; // Referenced classes of package atp: // e class b { private String _fldelse; private int _fldcase; private int _flddo; private boolean _fldbyte; private final Vector _fldfor; private boolean _fldchar; private boolean a; private int _fldnew; private int _fldint; private StringBuffer _fldif; public static char TranslationC[] = { '\u03B1', '\u0391', '\u03B2', '\u0392', '\u03B3', '\u0393', '\u03B4', '\u0394', '\u03B5', '\u0395', '\u03D5', '\u03A6', '\u03C6', '\u03B3', '\u0393', '\u03B7', '\u0397', '\u03B9', '\u0399', '\u03BA', '\u039A', '\u03BB', '\u039B', '\u03BC', '\u039C', '\u03BD', '\u039D', '\u03BF', '\u03A9', '\u03C0', '\u03A0', '\u03C7', '\u03A7', '\u03C1', '\u03A1', '\u03C3', '\u03A3', '\u03C4', '\u03A4', '\u03C5', '\u03A5', '\u03C8', '\u03A8', '\u03C9', '\u03A9', '\u03BE', '\u039E', '\u03C7', '\u03A7', '\u03B6', '\u0396', '\u03B8', '\u0398', '$', '%', '&', 'ß', '\u00A9', '\u00AE', '\u2030', '\u00BD', '\u2153', '\u00BC', '\u00BE', '\u2154', '\u00B1', '\u2202', '\u2206', '\u221E', }; public String TranslationS[] = { "alpha", "Alpha", "beta", "Beta", "gamma", "Gamma", "delta", "Delta", "epsilon", "Epsilon", "phi", "Phi", "varphi", "gamma", "Gamma", "eta", "Eta", "iota", "I", "kappa", "Kappa", "lambda", "Lambda", "mu", "Mu", "nu", "Nu", "omikron", "Omikron", "pi", "Pi", "chi", "Chi", "rho", "Rho", "sigma", "Sigma", "tau", "Tau", "uu", "Uu", "psi", "Psi", "omega", "Omega", "chi", "Chi", "ypsilon", "Ypsilon", "zeta", "Zeta", "theta", "Theta", "dollar", "percent", "ampersand", "paragraph", "copyright", "trademark", "promille", "half", "third", "quarter", "threequarters", "twothirds", "pm", "partial", "deltaop", "infty", }; public b(final String s) { _fldbyte = false; _fldfor = new Vector(50, 50); _fldchar = false; a = false; _fldnew = 0; _fldint = 0; _fldif = new StringBuffer(""); new e(99); a(s); } public String a(final int i, final int j) { _fldnew = Math.min(i, j); _fldint = Math.max(i, j); _fldchar = true; _fldif = new StringBuffer(""); a(_fldelse); _fldchar = false; return _fldif.toString(); } public void a(final String s) { _fldelse = s; int i = 0; _fldbyte = false; _flddo = -1; _fldcase = -1; _fldfor.removeAllElements(); a(); while (!_fldbyte) { _flddo++; if (_fldchar && _flddo == _fldnew) { a = true; } _fldfor.addElement(_mthtry()); if (_fldchar && _flddo == _fldint) { a = false; } } _flddo = -1; for (; i < _fldfor.size(); i++) { if (((e) _fldfor.elementAt(i)).y == 114) { int k = i - 1; int j1 = 0; for (; k > 0; k--) { if (((e) _fldfor.elementAt(k)).y == 4) { j1--; } else if (((e) _fldfor.elementAt(k)).y == 3) { j1++; } if (j1 == 1) { break; } } int i2 = i + 1; j1 = 0; for (; i2 < _fldfor.size(); i2++) { if (((e) _fldfor.elementAt(i2)).y == 4) { j1++; } else if (((e) _fldfor.elementAt(i2)).y == 3) { j1--; } if (j1 == 1) { break; } } if (j1 == 1 && k >= 0) { _fldfor.insertElementAt(new e(109, ")"), i2 + 1); _fldfor.insertElementAt(new e(17), i2 + 1); _fldfor.setElementAt(new e(4), i); _fldfor.insertElementAt(new e(3), i + 1); _fldfor.insertElementAt(new e(115), k); _fldfor.insertElementAt(new e(109, "("), k); _fldfor.insertElementAt(new e(16), k); i += 4; } } else if (((e) _fldfor.elementAt(i)).y == 115) { int l = i - 1; int k1 = 0; for (; l > 0; l--) { if (((e) _fldfor.elementAt(l)).y == 4) { k1--; } else if (((e) _fldfor.elementAt(l)).y == 3) { k1++; } if (k1 == 1) { break; } } if (l >= 0) { _fldfor.setElementAt(new e(4), i); _fldfor.insertElementAt(new e(3), i + 1); _fldfor.insertElementAt(new e(115), l); i += 2; } } } for (int j = 0; j < _fldfor.size() - 2; j++) { if (((e) _fldfor.elementAt(j)).y == 13 && ((e) _fldfor.elementAt(j + 1)).y == 109) { int i1 = j + 2; int l1 = 0; int j2 = 1; for (; i1 < _fldfor.size(); i1++) { if (((e) _fldfor.elementAt(i1)).y == 4) { l1--; } else if (((e) _fldfor.elementAt(i1)).y == 3) { l1++; } if (l1 != 0) { continue; } if (((e) _fldfor.elementAt(i1)).w.equals("[")) { j2++; } else if (((e) _fldfor.elementAt(i1)).w.equals("]")) { j2--; } if (j2 != 0) { continue; } _fldfor.setElementAt(new e(4), i1); break; } j++; } } } public void _mthdo() { _flddo = -1; } public int _mthif() { return _flddo; } public void a(final int i) { _flddo = i; } public e _mthint() { _flddo++; if (_flddo >= _fldfor.size()) { _flddo = _fldfor.size() - 1; return new e(99); } else { return (e) _fldfor.elementAt(_flddo); } } public boolean _mthnew() { return _flddo == _fldfor.size() - 1; } private char _mthfor() { return _fldelse.charAt(_fldcase); } private void a() { if (a) { _fldif.append(_fldelse.charAt(_fldcase)); } if (_fldcase < _fldelse.length() - 1) { _fldcase++; _fldbyte = false; } else { _fldcase = _fldelse.length(); _fldbyte = true; } } private e _mthtry() { final StringBuffer stringbuffer = new StringBuffer(""); new String(""); new e(); while (!_fldbyte) { char c = _mthfor(); switch (c) { case 9: // '\t' case 10: // '\n' case 13: // '\r' a(); break; case 32: // ' ' a(); return new e(25, new String(" ")); case 33: // '!' case 35: // '#' case 42: // '*' case 43: // '+' case 44: // ',' case 45: // '-' case 47: // '/' case 58: // ':' case 59: // ';' case 60: // '<' case 61: // '=' case 62: // '>' case 126: // '~' a(); return new e(108, String.valueOf(c)); case 123: // '{' a(); return new e(3); case 125: // '}' a(); return new e(4); case 40: // '(' case 41: // ')' case 91: // '[' case 93: // ']' case 124: // '|' a(); return new e(109, String.valueOf(c)); case 38: // '&' a(); return new e(7); case 39: // '\'' case 64: // '@' case 913: case 914: case 915: case 916: case 917: case 918: case 919: case 920: case 921: case 922: case 923: case 924: case 925: case 926: case 927: case 928: case 929: case 930: case 931: case 932: case 933: case 934: case 935: case 936: case 937: case 945: case 946: case 947: case 948: case 949: case 950: case 951: case 952: case 953: case 954: case 955: case 956: case 957: case 958: case 959: case 960: case 961: case 962: case 963: case 964: case 965: case 966: case 967: case 968: case 969:// GreekLetters (unicode) case 65: // 'A' case 66: // 'B' case 67: // 'C' case 68: // 'D' case 69: // 'E' case 70: // 'F' case 71: // 'G' case 72: // 'H' case 73: // 'I' case 74: // 'J' case 75: // 'K' case 76: // 'L' case 77: // 'M' case 78: // 'N' case 79: // 'O' case 80: // 'P' case 81: // 'Q' case 82: // 'R' case 83: // 'S' case 84: // 'T' case 85: // 'U' case 86: // 'V' case 87: // 'W' case 88: // 'X' case 89: // 'Y' case 90: // 'Z' case 97: // 'a' case 98: // 'b' case 99: // 'c' case 100: // 'd' case 101: // 'e' case 102: // 'f' case 103: // 'g' case 104: // 'h' case 105: // 'i' case 106: // 'j' case 107: // 'k' case 108: // 'l' case 109: // 'm' case 110: // 'n' case 111: // 'o' case 112: // 'p' case 113: // 'q' case 114: // 'r' case 115: // 's' case 116: // 't' case 117: // 'u' case 118: // 'v' case 119: // 'w' case 120: // 'x' case 121: // 'y' case 122: // 'z' case 37: // '%' stringbuffer.append(c); a(); for (boolean flag1 = false; !_fldbyte && !flag1;) { c = _mthfor(); switch (c) { case 39: // '\'' case 64: // '@' case 913: case 914: case 915: case 916: case 917: case 918: case 919: case 920: case 921: case 922: case 923: case 924: case 925: case 926: case 927: case 928: case 929: case 930: case 931: case 932: case 933: case 934: case 935: case 936: case 937: case 945: case 946: case 947: case 948: case 949: case 950: case 951: case 952: case 953: case 954: case 955: case 956: case 957: case 958: case 959: case 960: case 961: case 962: case 963: case 964: case 965: case 966: case 967: case 968: case 969:// GreekLetters (unicode) case 65: // 'A' case 66: // 'B' case 67: // 'C' case 68: // 'D' case 69: // 'E' case 70: // 'F' case 71: // 'G' case 72: // 'H' case 73: // 'I' case 74: // 'J' case 75: // 'K' case 76: // 'L' case 77: // 'M' case 78: // 'N' case 79: // 'O' case 80: // 'P' case 81: // 'Q' case 82: // 'R' case 83: // 'S' case 84: // 'T' case 85: // 'U' case 86: // 'V' case 87: // 'W' case 88: // 'X' case 89: // 'Y' case 90: // 'Z' case 97: // 'a' case 98: // 'b' case 99: // 'c' case 100: // 'd' case 101: // 'e' case 102: // 'f' case 103: // 'g' case 104: // 'h' case 105: // 'i' case 106: // 'j' case 107: // 'k' case 108: // 'l' case 109: // 'm' case 110: // 'n' case 111: // 'o' case 112: // 'p' case 113: // 'q' case 114: // 'r' case 115: // 's' case 116: // 't' case 117: // 'u' case 118: // 'v' case 119: // 'w' case 120: // 'x' case 121: // 'y' case 122: // 'z' stringbuffer.append(c); a(); break; case 40: // '(' case 41: // ')' case 42: // '*' case 43: // '+' case 44: // ',' case 45: // '-' case 46: // '.' case 47: // '/' case 48: // '0' case 49: // '1' case 50: // '2' case 51: // '3' case 52: // '4' case 53: // '5' case 54: // '6' case 55: // '7' case 56: // '8' case 57: // '9' case 58: // ':' case 59: // ';' case 60: // '<' case 61: // '=' case 62: // '>' case 63: // '?' case 91: // '[' case 92: // '\\' case 93: // ']' case 94: // '^' case 95: // '_' case 96: // '`' default: flag1 = true; break; } } return new e(1, stringbuffer.toString()); case 46: // '.' case 48: // '0' case 49: // '1' case 50: // '2' case 51: // '3' case 52: // '4' case 53: // '5' case 54: // '6' case 55: // '7' case 56: // '8' case 57: // '9' stringbuffer.append(c); a(); for (boolean flag2 = false; !_fldbyte && !flag2;) { c = _mthfor(); switch (c) { case 46: // '.' case 48: // '0' case 49: // '1' case 50: // '2' case 51: // '3' case 52: // '4' case 53: // '5' case 54: // '6' case 55: // '7' case 56: // '8' case 57: // '9' stringbuffer.append(c); a(); break; case 47: // '/' default: flag2 = true; break; } } return new e(2, stringbuffer.toString()); case 92: // '\\' a(); if (_fldbyte) { break; } c = _mthfor(); switch (c) { case 92: // '\\' a(); return new e(8); case 123: // '{' a(); return new e(109, String.valueOf(c)); case 124: // '|' a(); return new e(109, "||"); case 125: // '}' a(); return new e(109, String.valueOf(c)); case 44: // ',' a(); return new e(113, "3"); case 58: // ':' a(); return new e(113, "4"); case 59: // ';' a(); return new e(113, "5"); case 33: // '!' a(); return new e(113, "-3"); case 913: case 914: case 915: case 916: case 917: case 918: case 919: case 920: case 921: case 922: case 923: case 924: case 925: case 926: case 927: case 928: case 929: case 930: case 931: case 932: case 933: case 934: case 935: case 936: case 937: case 945: case 946: case 947: case 948: case 949: case 950: case 951: case 952: case 953: case 954: case 955: case 956: case 957: case 958: case 959: case 960: case 961: case 962: case 963: case 964: case 965: case 966: case 967: case 968: case 969:// GreekLetters (unicode) case 65: // 'A' case 66: // 'B' case 67: // 'C' case 68: // 'D' case 69: // 'E' case 70: // 'F' case 71: // 'G' case 72: // 'H' case 73: // 'I' case 74: // 'J' case 75: // 'K' case 76: // 'L' case 77: // 'M' case 78: // 'N' case 79: // 'O' case 80: // 'P' case 81: // 'Q' case 82: // 'R' case 83: // 'S' case 84: // 'T' case 85: // 'U' case 86: // 'V' case 87: // 'W' case 88: // 'X' case 89: // 'Y' case 90: // 'Z' case 97: // 'a' case 98: // 'b' case 99: // 'c' case 100: // 'd' case 101: // 'e' case 102: // 'f' case 103: // 'g' case 104: // 'h' case 105: // 'i' case 106: // 'j' case 107: // 'k' case 108: // 'l' case 109: // 'm' case 110: // 'n' case 111: // 'o' case 112: // 'p' case 113: // 'q' case 114: // 'r' case 115: // 's' case 116: // 't' case 117: // 'u' case 118: // 'v' case 119: // 'w' case 120: // 'x' case 121: // 'y' case 122: // 'z' stringbuffer.append(c); a(); for (boolean flag4 = false; !_fldbyte && !flag4;) { c = _mthfor(); switch (c) { case 913: case 914: case 915: case 916: case 917: case 918: case 919: case 920: case 921: case 922: case 923: case 924: case 925: case 926: case 927: case 928: case 929: case 930: case 931: case 932: case 933: case 934: case 935: case 936: case 937: case 945: case 946: case 947: case 948: case 949: case 950: case 951: case 952: case 953: case 954: case 955: case 956: case 957: case 958: case 959: case 960: case 961: case 962: case 963: case 964: case 965: case 966: case 967: case 968: case 969:// GreekLetters (unicode) case 65: // 'A' case 66: // 'B' case 67: // 'C' case 68: // 'D' case 69: // 'E' case 70: // 'F' case 71: // 'G' case 72: // 'H' case 73: // 'I' case 74: // 'J' case 75: // 'K' case 76: // 'L' case 77: // 'M' case 78: // 'N' case 79: // 'O' case 80: // 'P' case 81: // 'Q' case 82: // 'R' case 83: // 'S' case 84: // 'T' case 85: // 'U' case 86: // 'V' case 87: // 'W' case 88: // 'X' case 89: // 'Y' case 90: // 'Z' case 97: // 'a' case 98: // 'b' case 99: // 'c' case 100: // 'd' case 101: // 'e' case 102: // 'f' case 103: // 'g' case 104: // 'h' case 105: // 'i' case 106: // 'j' case 107: // 'k' case 108: // 'l' case 109: // 'm' case 110: // 'n' case 111: // 'o' case 112: // 'p' case 113: // 'q' case 114: // 'r' case 115: // 's' case 116: // 't' case 117: // 'u' case 118: // 'v' case 119: // 'w' case 120: // 'x' case 121: // 'y' case 122: // 'z' stringbuffer.append(c); a(); break; case 91: // '[' case 92: // '\\' case 93: // ']' case 94: // '^' case 95: // '_' case 96: // '`' default: flag4 = true; break; } } final String s1 = stringbuffer.toString(); if (s1.equals("acute")) { return new e(22, "\264"); } if (s1.equals("array")) { return new e(15); } if (s1.equals("bar")) { return new e(14, "bar"); } if (s1.equals("ddot")) { return new e(22, ".."); } if (s1.equals("dot")) { return new e(22, "."); } if (s1.equals("frac")) { return new e(12); } if (s1.equals("dfrac")) { return new e(1001); } if (s1.equals("grave")) { return new e(22, "`"); } if (s1.equals("hat")) { return new e(22, "^"); } if (s1.equals("int")) { return new e(20, "int"); } if (s1.equals("oint")) { return new e(20, "oint"); } if (s1.equals("left")) { return new e(16); } if (s1.equals("limsup")) { return new e(24, "lim sup"); } if (s1.equals("liminf")) { return new e(24, "lim inf"); } if (s1.equals("prod")) { return new e(20, "prod"); } if (s1.equals("right")) { return new e(17); } if (s1.equals("sqrt")) { return new e(13); } if (s1.equals("sum")) { return new e(20, "sum"); } if (s1.equals("tilde")) { return new e(22, "~"); } if (s1.equals("vec")) { return new e(14); } if (s1.equals("widehat")) { return new e(14, "widehat"); } if (s1.equals("widetilde")) { return new e(14, "widetilde"); } if (s1.equals("quad")) { return new e(113, "18"); } if (s1.equals("qquad")) { return new e(113, "36"); } if (s1.equals("backslash")) { return new e(2, "\\"); } if (s1.equals("langle")) { return new e(5, "<"); } if (s1.equals("rangle")) { return new e(5, ">"); } if (s1.equals("not")) { return new e(110); } if (s1.equals("atop")) { return new e(115); } if (s1.equals("choose")) { return new e(114); } if (s1.equals("overline")) { return new e(116); } if (s1.equals("underline")) { return new e(117); } if (s1.equals("overbrace")) { return new e(118); } if (s1.equals("underbrace")) { return new e(119); } if (s1.equals("stackrel")) { return new e(120); } if (s1.equals("begin")) { return new e(50); } if (s1.equals("end")) { return new e(51); } if (s1.equals("fgcolor")) { return new e(121); } if (s1.equals("bgcolor")) { return new e(122); } if (s1.equals("fbox")) { return new e(123); } if (s1.equals("mbox")) { return new e(124); } if ((" arccos arcsin arctan arg cos cosh cot coth csc def deg dim exp hom ker lg ln lo" + "g sec sin sinh tan tanh ").indexOf(" " + s1 + " ") >= 0) { return new e(9, s1); } if (" det gcd inf lim max min Pr sup ".indexOf(" " + s1 + " ") >= 0) { return new e(24, s1); } { boolean found = false; for (int i = 0; i < TranslationS.length; i++) { if (s1.equals(TranslationS[i])) { found = true; c = TranslationC[i]; break; } } if (found) { stringbuffer.append(c); return new e(2, "" + c); } } if ((" alpha delta epsilon iota kappa lambda nu omega pi sigma theta tau upsilon varep" + "silon varpi vartheta pm mp times div cdot cdots ldots ast star amalg cap cup upl" + "us sqcap sqcup vee wedge wr circ bullet diamond lhd rhd oslash odot Box bigtrian" + "gleup triangleleft triangleright oplus ominus otimes ll subset sqsubset in vdash" + " models gg supset sqsupset ni dashv perp neq doteq approx cong equiv propto prec" + " sim simeq asymp smile frown bowtie succ aleph forall hbar exists imath neg flat" + " ell Re angle Im backslash mho Box prime emptyset triangle nabla partial top bot" + " Join infty vdash dashv Fourier Laplace leftarrow gets hookrightarrow leftharpoo" + "ndown rightarrow to rightharpoondown leadsto leftrightarrow mapsto hookleftarrow" + " leftharpoonup rightharpoonup rightleftharpoons longleftarrow longrightarrow lon" + "gleftrightarrow longmapsto ").indexOf(" " + s1 + " ") >= 0) { return new e(18, s1); } if ((" beta chi eta gamma mu psi phi rho varrho varsigma varphi xi zeta le leq ge geq " + "vdots ddots natural jmath bigtriangledown sharp uparrow downarrow updownarrow ne" + "arrow searrow swarrow nwarrow succeq mid preceq parallel subseteq sqsubseteq sup" + "seteq sqsupseteq clubsuit diamondsuit heartsuit spadesuit wp dagger ddagger setm" + "inus unlhd unrhd bigcirc ").indexOf(" " + s1 + " ") >= 0) { return new e(19, s1); } if ((" Delta Gamma Lambda Omega Pi Phi Psi Sigma Theta Upsilon Xi Leftarrow Rightarrow" + " Leftrightarrow Longleftarrow Longrightarrow Longleftrightarrow Diamond ") .indexOf(" " + s1 + " ") >= 0) { return new e(18, s1 + "Big"); } if (" Uparrow Downarrow Updownarrow ".indexOf(" " + s1 + " ") >= 0) { return new e(19, s1 + "Big"); } // fall through case 34: // '"' case 35: // '#' case 36: // '$' // case 37: // '%' case 38: // '&' case 39: // '\'' case 40: // '(' case 41: // ')' case 42: // '*' case 43: // '+' case 45: // '-' case 46: // '.' case 47: // '/' case 48: // '0' case 49: // '1' case 50: // '2' case 51: // '3' case 52: // '4' case 53: // '5' case 54: // '6' case 55: // '7' case 56: // '8' case 57: // '9' case 60: // '<' case 61: // '=' case 62: // '>' case 63: // '?' case 64: // '@' case 91: // '[' case 93: // ']' case 94: // '^' case 95: // '_' case 96: // '`' default: a(); // System.out.println("Scanner invalid tag: \\" + // stringbuffer.toString()); return new e(100); } case 94: // '^' a(); return new e(10); case 95: // '_' a(); return new e(11); case 11: // '\013' case 12: // '\f' case 14: // '\016' case 15: // '\017' case 16: // '\020' case 17: // '\021' case 18: // '\022' case 19: // '\023' case 20: // '\024' case 21: // '\025' case 22: // '\026' case 23: // '\027' case 24: // '\030' case 25: // '\031' case 26: // '\032' case 27: // '\033' case 28: // '\034' case 29: // '\035' case 30: // '\036' case 31: // '\037' case 34: // '"' case 36: // '$' // case 37: // '%' case 63: // '?' case 96: // '`' default: a(); // System.out.println("Scanner invalid character: " + c); return new e(100); } } return new e(99); } } carmetal-4.3/src/atp/c.java000066400000000000000000000027051417122252700156170ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; class c { public int _flddo; public int _fldif; public int a; public c(final int i, final int j, final int k) { _flddo = i; _fldif = j; a = k; } public c() { _flddo = 0; _fldif = 0; a = 0; } }carmetal-4.3/src/atp/d.java000066400000000000000000000127341417122252700156230ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; import java.applet.Applet; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.image.CropImageFilter; import java.awt.image.FilteredImageSource; import java.awt.image.ImageProducer; import java.io.BufferedInputStream; import java.io.InputStream; import java.io.ObjectInputStream; import java.net.URL; import java.util.Hashtable; import java.util.StringTokenizer; // Referenced classes of package atp: // a class d { private final ImageProducer _flddo[] = { null, null, null, null, null }; private final String _fldif[] = { "8", "10", "12", "14", "18" }; private final Hashtable _fldfor; private static boolean a = true; public d() { _fldfor = new Hashtable(189); } public Image a(final boolean flag, final boolean flag1, final String s, final Graphics2D g, final Applet applet) { final StringTokenizer stringtokenizer = new StringTokenizer(s, "/"); String s1 = stringtokenizer.nextToken(); s1 = stringtokenizer.nextToken().substring(5); final String s2 = stringtokenizer.nextToken(); int i = -1; boolean flag2 = true; while (flag2) { if (_fldif[++i].equals(s1)) { flag2 = false; } if (i == 4) { flag2 = false; } } if (_flddo[i] == null) { _flddo[i] = a(flag, flag1, "Fonts" + s1 + ".gif", applet); final String s3 = "Des" + s1 + ".gif"; BufferedInputStream bufferedinputstream = null; try { if (a) { getClass().getResourceAsStream(s3); bufferedinputstream = new BufferedInputStream(getClass() .getResourceAsStream(s3)); } else if ((!flag) & (!flag1)) { bufferedinputstream = new BufferedInputStream((new URL(s3)) .openStream()); } else if (flag) { bufferedinputstream = new BufferedInputStream((new URL( applet.getCodeBase(), s3)).openStream()); } else { try { bufferedinputstream = new BufferedInputStream( getClass().getResource(s3).openStream()); } catch (final Exception exception) { } } final ObjectInputStream objectinputstream = new ObjectInputStream( bufferedinputstream); final int j = objectinputstream.readInt(); for (int k = 0; k < j; k++) { final String s4 = (String) objectinputstream.readObject(); _fldfor.put(s1 + s4, new Rectangle( (Rectangle) objectinputstream.readObject())); } bufferedinputstream.close(); } catch (final Exception exception1) { // System.out.println(exception1.toString()); _flddo[i] = null; } } Image image = null; if (_flddo[i] != null) { final Rectangle rectangle = (Rectangle) _fldfor.get(s1 + s2); image = Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(new FilteredImageSource(_flddo[i], new CropImageFilter(rectangle.x, rectangle.y, rectangle.width, rectangle.height)), new a( g.getColor()))); } return image; } public ImageProducer a(final boolean flag, final boolean flag1, final String s, final Applet applet) { ImageProducer imageproducer = null; if (a) { imageproducer = a(s); } if (imageproducer == null) { a = false; if ((!flag) & (!flag1)) { imageproducer = Toolkit.getDefaultToolkit().getImage(s) .getSource(); } else if (flag) { imageproducer = applet.getImage(applet.getCodeBase(), s) .getSource(); } else { try { final URL url = getClass().getResource(s); imageproducer = (ImageProducer) url.getContent(); } catch (final Exception exception) { } } } return imageproducer; } ImageProducer a(final String s) { ImageProducer imageproducer = null; try { final InputStream inputstream = getClass().getResourceAsStream(s); int i = inputstream.available(); byte abyte0[] = new byte[i]; int j = 0; for (int k = 0; k != -1;) { k = inputstream.read(abyte0, j, i); if (k != -1) { j += k; i = inputstream.available(); final int l = j + i; if (l > abyte0.length) { final byte abyte1[] = (byte[]) abyte0.clone(); abyte0 = new byte[l]; System.arraycopy(abyte1, 0, abyte0, 0, j); } } if (i == 0) { break; } } imageproducer = Toolkit.getDefaultToolkit().createImage(abyte0) .getSource(); } catch (final Exception exception) { } return imageproducer; } } carmetal-4.3/src/atp/e.java000066400000000000000000000032411417122252700156150ustar00rootroot00000000000000package atp; class e { public int y; public String w; public static final int k = 0; public static final int _fldbyte = 1; public static final int o = 2; public static final int r = 3; public static final int _fldlong = 4; public static final int j = 5; public static final int _fldelse = 7; public static final int _fldfor = 8; public static final int q = 9; public static final int s = 10; public static final int B = 11; public static final int _fldvoid = 12; public static final int _flddo = 13; public static final int t = 14; public static final int _fldchar = 15; public static final int i = 16; public static final int A = 17; public static final int u = 18; public static final int _fldcase = 19; public static final int C = 20; public static final int d = 22; public static final int m = 24; public static final int g = 25; public static final int f = 50; public static final int v = 51; public static final int _fldint = 99; public static final int p = 100; public static final int _fldif = 108; public static final int n = 109; public static final int _fldnull = 110; public static final int a = 113; public static final int b = 114; public static final int c = 115; public static final int D = 116; public static final int l = 117; public static final int h = 118; public static final int z = 119; public static final int x = 120; public static final int _fldnew = 121; public static final int _fldtry = 122; public static final int e = 123; public static final int _fldgoto = 124; public e(final int i1, final String s1) { y = i1; w = s1; } public e(final int i1) { y = i1; w = ""; } public e() { y = 0; w = ""; } } carmetal-4.3/src/atp/f.java000066400000000000000000000104031417122252700156140ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.image.CropImageFilter; import java.awt.image.FilteredImageSource; import java.awt.image.ImageProducer; import java.io.BufferedInputStream; import java.io.InputStream; import java.io.ObjectInputStream; import java.util.Hashtable; import java.util.StringTokenizer; // Referenced classes of package atp: // a class f { private final ImageProducer _flddo[] = { null, null, null, null, null }; private final String _fldif[] = { "8", "10", "12", "14", "18" }; private final Hashtable _fldfor; public f() { _fldfor = new Hashtable(189); } @SuppressWarnings("unchecked") public Image a(final String s, final Graphics2D g) { final StringTokenizer stringtokenizer = new StringTokenizer(s, "/"); String s1 = stringtokenizer.nextToken(); s1 = stringtokenizer.nextToken().substring(5); final String s2 = stringtokenizer.nextToken(); int i = -1; boolean flag2 = true; while (flag2) { if (_fldif[++i].equals(s1)) { flag2 = false; } if (i == 4) { flag2 = false; } } if (_flddo[i] == null) { _flddo[i] = a("Fonts" + s1 + ".gif"); final String s3 = "Des" + s1 + ".gif"; BufferedInputStream bufferedinputstream = null; try { getClass().getResourceAsStream(s3); bufferedinputstream = new BufferedInputStream(getClass() .getResourceAsStream(s3)); final ObjectInputStream objectinputstream = new ObjectInputStream( bufferedinputstream); final int j = objectinputstream.readInt(); for (int k = 0; k < j; k++) { final String s4 = (String) objectinputstream.readObject(); _fldfor.put(s1 + s4, new Rectangle( (Rectangle) objectinputstream.readObject())); } bufferedinputstream.close(); } catch (final Exception exception1) { // System.out.println(exception1.toString()); _flddo[i] = null; } } Image image = null; if (_flddo[i] != null) { final Rectangle rectangle = (Rectangle) _fldfor.get(s1 + s2); image = Toolkit.getDefaultToolkit().createImage( new FilteredImageSource(new FilteredImageSource(_flddo[i], new CropImageFilter(rectangle.x, rectangle.y, rectangle.width, rectangle.height)), new a( g.getColor()))); } return image; } ImageProducer a(final String s) { ImageProducer imageproducer = null; try { final InputStream inputstream = getClass().getResourceAsStream(s); int i = inputstream.available(); byte abyte0[] = new byte[i]; int j = 0; for (int k = 0; k != -1;) { k = inputstream.read(abyte0, j, i); if (k != -1) { j += k; i = inputstream.available(); final int l = j + i; if (l > abyte0.length) { final byte abyte1[] = (byte[]) abyte0.clone(); abyte0 = new byte[l]; System.arraycopy(abyte1, 0, abyte0, 0, j); } } if (i == 0) { break; } } imageproducer = Toolkit.getDefaultToolkit().createImage(abyte0) .getSource(); } catch (final Exception exception) { } return imageproducer; } } carmetal-4.3/src/atp/sHotEqn.java000066400000000000000000001332111417122252700167530ustar00rootroot00000000000000/***************************************************************************** * * * HotEqn Equation Viewer Basic Applet * * * ****************************************************************************** * Java Applet to view mathematical Equations provided in the LaTeX language * ****************************************************************************** Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann This file is part of the HotEqn package. HotEqn is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; HotEqn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package atp; import java.awt.BasicStroke; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.MediaTracker; import java.awt.event.ActionListener; import java.util.Hashtable; import javax.swing.JComponent; public class sHotEqn { JComponent PC; // container panel private int width; private int height; private String _fldcase; private String _fldint; ActionListener G; private final b S; private e D; private Font d; private Font b; private Font _fldnull; private Font _fldlong; private final int j[] = { 14, 12, 10, 8 }; private final int _fldfor[] = { 3, 3, 3, 3 }; private Image s; private boolean Q; private int f; private int H; private final boolean K; private int g; private String z; private String E; private final f _flddo; private final MediaTracker B; private final Hashtable w; public boolean r; public boolean L; public boolean q; private boolean A; private boolean t; private int _fldelse; private int _fldchar; private int J; private int I; private int a; private int m; private int R; private int l; private int F; private boolean c; private int p; private int o; public sHotEqn(final JComponent PC) { width = 0; height = 0; _fldcase = null; _fldint = "Helvetica"; Q = false; f = 0; H = 0; K = false; g = 0; z = "left"; E = "top"; w = new Hashtable(13); r = false; L = false; q = true; A = false; t = true; _fldelse = 0; _fldchar = 0; J = 0; I = 0; a = 0; m = 0; R = 0; l = 0; F = 5; c = false; p = 0; o = 0; _flddo = new f(); B = new MediaTracker(PC); S = new b(""); } public void setEquation(final String s1) { _fldcase = s1; S.a(s1); Q = false; } public String getEquation() { return _fldcase; } public String Status; public void printStatus(final String s1) { Status = s1; } private void a(final String s1) { Status = s1; } public Image getImage() { if (Q) { return s; } else { return null; } } public void setDebug(final boolean flag) { q = flag; } public boolean isDebug() { return q; } public void setFontname(final String s1) { _fldint = s1; } public String getFontname() { return _fldint; } int i10, j10, k10, l10; boolean bold0, fonts = false; public void setHAlign(final String s1) { z = s1; Q = false; } public String getHAlign() { return z; } public void setVAlign(final String s1) { E = s1; Q = false; } public String getVAlign() { return E; } public void setEditable(final boolean flag) { t = flag; } public boolean isEditable() { return t; } public String getSelectedArea() { return S.a(p, o); } public Dimension getPreferredSize() { if ((width == 0) & (height == 0)) { final Graphics2D g1 = (Graphics2D) PC.getGraphics(); if (g1 != null) { g1.setFont(d); S._mthdo(); final c c1 = _mthnew(0, 150, false, g1, 1); if (K) { g = 5; } else { g = 0; } f = 1 + c1._flddo + 2 * g; H = 1 + c1._fldif + c1.a + 2 * g; } } width = f; height = H; if (f <= 1) { return new Dimension(100, 100); } else { return new Dimension(f, H); } } final int ff1 = 8, ff2 = 6; public Dimension getSizeof(final String s1, final Graphics2D g1) { if (d != g1.getFont()) { d = g1.getFont(); final int fs = d.getSize(); b = new Font(d.getFamily(), d.getStyle(), fs * ff1 / 10); _fldnull = _fldlong = new Font(d.getFamily(), d.getStyle(), fs * ff2 / 10); } S.a(s1); final c c1 = _mthnew(0, 150, false, g1, 1); byte byte0; if (K) { byte0 = 5; } else { byte0 = 0; } return new Dimension(1 + c1._flddo + 2 * byte0, 1 + c1._fldif + c1.a + 2 * byte0); } public int getAscent(final String s1, final Graphics2D g1) { if (d != g1.getFont()) { d = g1.getFont(); final int fs = d.getSize(); b = new Font(d.getFamily(), d.getStyle(), fs * ff1 / 10); _fldnull = _fldlong = new Font(d.getFamily(), d.getStyle(), fs * ff2 / 10); } S.a(s1); final c c1 = _mthnew(0, 150, false, g1, 1); byte byte0; if (K) { byte0 = 5; } else { byte0 = 0; } return c1._fldif + byte0; } public Dimension getMinimumSize() { return getPreferredSize(); } public synchronized int paint(final int cc, final int rr, final Graphics2D g2) { // g2.setStroke(new BasicStroke(1.0f)); if (d != g2.getFont()) { d = g2.getFont(); final int fs = d.getSize(); b = new Font(d.getFamily(), d.getStyle(), fs * ff1 / 10); _fldnull = _fldlong = new Font(d.getFamily(), d.getStyle(), fs * ff2 / 10); } c c1 = new c(); g2.setFont(d); g = 0; S._mthdo(); c1 = _mthnew(cc, rr, false, g2, 1); final int hh = c1._fldif; c1 = new c(); S._mthdo(); c1 = _mthnew(cc, rr + hh, true, g2, 1); a(" "); if (z.equals("center")) { } else if (z.equals("right")) { } if (E.equals("middle")) { } else if (E.equals("bottom")) { } f = 1 + c1._flddo + 2 * g; H = 1 + c1._fldif + c1.a + 2 * g; if (f > width) { } if (H > height) { } Q = true; notify(); return c1._fldif + c1.a; } private c _mthnew(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { return _mthtry(i1, j1, flag, g1, k1, true); } private c _mthtry(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1, final boolean flag1) { c c1 = new c(); final c c2 = new c(); boolean flag2 = true; boolean flag5 = false; int l1 = 0; while (!S._mthnew() && flag2) { D = S._mthint(); if (A && flag) { l1 = S._mthif(); } boolean flag4 = false; final int i2 = l1; final int j2 = D.y; switch (D.y) { case 4: // '\004' case 7: // '\007' case 8: // '\b' case 17: // '\021' case 51: // '3' if (c && flag) { if (l1 > o) { o = l1; } if (l1 < p) { p = l1; } } return c2; case 22: // '\026' c1 = _mthbyte(i1 + c2._flddo, j1, flag, g1, k1); break; case 5: // '\005' c1 = a(i1 + c2._flddo, j1, flag, g1); break; case 15: // '\017' if (c && flag) { flag5 = true; } c1 = _mthif(i1 + c2._flddo, j1, flag, g1, k1); break; case 50: // '2' if (c && flag) { flag5 = true; } c1 = _mthgoto(i1 + c2._flddo, j1, flag, g1, k1); break; case 3: // '\003' c1 = _mthtry(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 123: // '{' if (c && flag) { flag5 = true; } c1 = _mthelse(i1 + c2._flddo, j1, flag, g1, k1); break; case 1: // '\001' c1 = _mthnew(i1 + c2._flddo, j1, flag, g1); break; case 110: // 'n' c1 = _mthtry(i1 + c2._flddo, j1, flag, g1, k1); break; case 108: // 'l' c1 = _mthint(i1 + c2._flddo, j1, flag, g1); break; case 12: // '\f' c1 = _mthfor(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 1001: // '\f' c1 = _mthfor(i1 + c2._flddo, j1, flag, g1, k1 - 1, true); break; case 115: // 's' c1 = _mthfor(i1 + c2._flddo, j1, flag, g1, k1, false); break; case 2: // '\002' case 9: // '\t' c1 = _mthif(i1 + c2._flddo, j1, flag, g1); break; case 18: // '\022' c1 = _mthif(i1 + c2._flddo, j1, flag, g1, k1, false); break; case 19: // '\023' c1 = _mthif(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 16: // '\020' if (c && flag) { flag5 = true; } c1 = _mthnull(i1 + c2._flddo, j1, flag, g1, k1); break; case 24: // '\030' c1 = _mthfor(i1 + c2._flddo, j1, flag, g1, k1); break; case 124: // '|' c1 = _mthdo(i1 + c2._flddo, j1, flag, g1); break; case 118: // 'v' c1 = a(i1 + c2._flddo, j1, flag, g1, k1); break; case 119: // 'w' c1 = _mthlong(i1 + c2._flddo, j1, flag, g1, k1); break; case 116: // 't' c1 = a(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 117: // 'u' c1 = a(i1 + c2._flddo, j1, flag, g1, k1, false); break; case 109: // 'm' c1 = _mthtry(i1 + c2._flddo, j1, flag, g1); break; case 113: // 'q' c1 = _mthfor(i1 + c2._flddo, j1, flag, g1); break; case 13: // '\r' if (c && flag) { flag5 = true; } c1 = _mthcase(i1 + c2._flddo, j1, flag, g1, k1); break; case 120: // 'x' c1 = _mthchar(i1 + c2._flddo, j1, flag, g1, k1); break; case 10: // '\n' c1 = _mthint(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 11: // '\013' c1 = _mthdo(i1 + c2._flddo, j1, flag, g1, k1, true); break; case 20: // '\024' c1 = _mthdo(i1 + c2._flddo, j1, flag, g1, k1); break; case 14: // '\016' c1 = _mthint(i1 + c2._flddo, j1, flag, g1, k1); break; case 25: // '\031' c1 = new c(0, 0, 0); flag4 = true; break; case 99: // 'c' case 100: // 'd' c1 = new c(0, 0, 0); break; case 6: // '\006' case 21: // '\025' case 23: // '\027' case 26: // '\032' case 27: // '\033' case 28: // '\034' case 29: // '\035' case 30: // '\036' case 31: // '\037' case 32: // ' ' case 33: // '!' case 34: // '"' case 35: // '#' case 36: // '$' case 37: // '%' case 38: // '&' case 39: // '\'' case 40: // '(' case 41: // ')' case 42: // '*' case 43: // '+' case 44: // ',' case 45: // '-' case 46: // '.' case 47: // '/' case 48: // '0' case 49: // '1' case 52: // '4' case 53: // '5' case 54: // '6' case 55: // '7' case 56: // '8' case 57: // '9' case 58: // ':' case 59: // ';' case 60: // '<' case 61: // '=' case 62: // '>' case 63: // '?' case 64: // '@' case 913: case 914: case 915: case 916: case 917: case 918: case 919: case 920: case 921: case 922: case 923: case 924: case 925: case 926: case 927: case 928: case 929: case 930: case 931: case 932: case 933: case 934: case 935: case 936: case 937: case 945: case 946: case 947: case 948: case 949: case 950: case 951: case 952: case 953: case 954: case 955: case 956: case 957: case 958: case 959: case 960: case 961: case 962: case 963: case 964: case 965: case 966: case 967: case 968: case 969:// GreekLetters (unicode) case 65: // 'A' case 66: // 'B' case 67: // 'C' case 68: // 'D' case 69: // 'E' case 70: // 'F' case 71: // 'G' case 72: // 'H' case 73: // 'I' case 74: // 'J' case 75: // 'K' case 76: // 'L' case 77: // 'M' case 78: // 'N' case 79: // 'O' case 80: // 'P' case 81: // 'Q' case 82: // 'R' case 83: // 'S' case 84: // 'T' case 85: // 'U' case 86: // 'V' case 87: // 'W' case 88: // 'X' case 89: // 'Y' case 90: // 'Z' case 91: // '[' case 92: // '\\' case 93: // ']' case 94: // '^' case 95: // '_' case 96: // '`' case 97: // 'a' case 98: // 'b' case 101:// 'e' case 102: // 'f' case 103: // 'g' case 104: // 'h' case 105: // 'i' case 106: // 'j' case 107: // 'k' case 111: // 'o' case 112: // 'p' case 114: // 'r' default: printStatus("Parser: unknown token: " + D.y + " " + D.w); break; } if (flag) { if (A) { if (!c && i1 + c2._flddo <= _fldelse && _fldelse <= i1 + c2._flddo + c1._flddo && j1 - c1._fldif <= _fldchar && _fldchar <= j1 + c1.a) { m = l = _fldelse; a = R = _fldchar; c = true; p = l1; o = l1; } if (!c && i1 + c2._flddo <= J && J <= i1 + c2._flddo + c1._flddo && j1 - c1._fldif <= I && I <= j1 + c1.a) { m = l = J; a = R = I; c = true; p = l1; o = l1; final int k2 = J; final int l2 = I; J = _fldelse; I = _fldchar; _fldelse = k2; _fldchar = l2; } if (c) { m = Math.min(m, i1 + c2._flddo); l = Math.max(l, i1 + c2._flddo + c1._flddo); a = Math.min(a, j1 - c1._fldif); R = Math.max(R, j1 + c1.a); if (F > k1) { F = k1; } switch (j2) { case 13: // '\r' case 15: // '\017' case 16: // '\020' case 50: // '2' case 123: // '{' case 124: // '|' flag5 = true; if (i2 > o) { o = i2; } if (i2 < p) { p = i2; } l1 = S._mthif(); break; } if (l1 > o) { o = l1; } if (l1 < p) { p = l1; } if (i1 + c2._flddo <= J && J <= i1 + c2._flddo + c1._flddo && j1 - c1._fldif <= I && I <= j1 + c1.a && F == k1) { A = false; c = false; } } } if (flag5) { m = Math.min(m, i1 + c2._flddo); l = Math.max(l, i1 + c2._flddo + c1._flddo); a = Math.min(a, j1 - c1._fldif); R = Math.max(R, j1 + c1.a); switch (j2) { case 13: // '\r' case 15: // '\017' case 16: // '\020' case 50: // '2' case 123: // '{' case 124: // '|' if (i2 > o) { o = i2; } if (i2 < p) { p = i2; } l1 = S._mthif(); break; } if (l1 > o) { o = l1; } if (l1 < p) { p = l1; } flag5 = false; } } c2._flddo += c1._flddo; c2._fldif = Math.max(c2._fldif, c1._fldif); c2.a = Math.max(c2.a, c1.a); if (!flag1 && !flag4) { flag2 = false; } } return c2; } private c _mthbyte(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); int l1 = 0; final FontMetrics fontmetrics = g1.getFontMetrics(); final String s1 = D.w; if (flag) { l1 = S._mthif(); } c1 = _mthtry(i1, j1, false, g1, k1, false); final int i2 = Math.max(c1._flddo, fontmetrics.stringWidth(s1)); final int j2 = c1._fldif + fontmetrics.getAscent() / 2; final int k2 = c1.a; if (flag) { S.a(l1); _mthtry(i1, j1, true, g1, k1, false); final int l2 = 3 * ((i2 - fontmetrics.stringWidth(s1)) / 4); if (s1.equals(".") | s1.equals("..")) { g1.drawString(s1, i1 + l2, j1 - fontmetrics.getAscent()); } else if (s1.equals("\264") | s1.equals("`")) { g1.drawString(s1, i1 + l2, j1 - fontmetrics.getAscent() / 3); } else { g1.drawString(s1, i1 + l2, j1 - (fontmetrics.getAscent() * 2) / 3); } } return new c(i2, j2, k2); } private c a(final int i1, final int j1, final boolean flag, final Graphics2D g1) { new c(); final FontMetrics fontmetrics = g1.getFontMetrics(); final int k1 = g1.getFont().getSize() / 2; final int l1 = fontmetrics.getHeight() - fontmetrics.getDescent(); final int i2 = fontmetrics.getDescent(); if (flag) { final int j2 = (j1 - l1) + 1; final int k2 = (j1 + i2) - 1; final int l2 = (j2 + k2) / 2; if (D.w.equals("<")) { g1.drawLine(i1 + k1, j2, i1, l2); g1.drawLine(i1, l2, i1 + k1, k2); } else { g1.drawLine(i1, j2, i1 + k1, l2); g1.drawLine(i1 + k1, l2, i1, k2); } } return new c(k1, l1, i2); } private c _mthif(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int l2 = 0; final int ai[] = new int[100]; final int ai1[] = new int[100]; final int ai2[] = new int[100]; new c(); int i3 = 0; final FontMetrics fontmetrics = g1.getFontMetrics(); final int j3 = g1.getFont().getSize(); if (flag) { i3 = S._mthif(); } if (!a(3, "ARRAY: BeginSym")) { return new c(0, 0, 0); } for (int k3 = 0; k3 < 99; k3++) { int i2 = 0; int k2 = 0; for (int l3 = 0; l3 < 99; l3++) { final c c2 = _mthnew(i1, j1, false, g1, k1); i2 = Math.max(i2, c2._fldif); k2 = Math.max(k2, c2.a); ai[l3] = Math.max(ai[l3], c2._flddo + j3); if (D.y == 8 || D.y == 4) { break; } } ai1[k3] = Math.max(ai1[k3], i2); ai2[k3] = Math.max(ai2[k3], k2); l2 += i2 + k2; if (D.y == 4) { break; } } int i4 = 0; for (int j4 = 0; j4 < 99; j4++) { i4 += ai[j4]; } if (flag) { S.a(i3); a(3, "ARRAY: Begin"); int j2 = 0; for (int k4 = 0; k4 < 99; k4++) { int l1 = 0; if (k4 == 0) { j2 = ai1[k4]; } else { j2 += ai2[k4 - 1] + ai1[k4]; } for (int l4 = 0; l4 < 99; l4++) { _mthnew(i1 + l1, (j1 - l2 / 2 - fontmetrics.getDescent()) + j2, true, g1, k1); l1 += ai[l4]; if (D.y == 8 || D.y == 4) { break; } } if (D.y == 4) { break; } } } return new c(i4 - j3, l2 / 2 + fontmetrics.getDescent(), l2 / 2 - fontmetrics.getDescent()); } private c _mthgoto(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int i2 = 0; int j3 = 0; final int ai[] = new int[100]; final int ai1[] = new int[100]; final int ai2[] = new int[100]; final int ai3[] = new int[100]; final int ai4[] = new int[100]; int k3 = 0; int l3 = 0; int i4 = 0; new c(); int j4 = 0; final FontMetrics fontmetrics = g1.getFontMetrics(); final int k5 = g1.getFont().getSize(); int l5 = 0; boolean flag3 = false; boolean flag4 = true; boolean flag5 = true; if (!a(3)) { return new c(0, 0, 0); } if (S._mthint().w.equals("eqnarray")) { flag5 = false; } if (!a(4, "BEGIN: EndSym")) { return new c(0, 0, 0); } if (flag5) { j4 = S._mthif(); if (!a(3)) { flag4 = false; S.a(j4); } } if (flag5 && flag4) { new e(); for (e e2 = S._mthint(); e2.y != 4; e2 = S._mthint()) { final StringBuffer stringbuffer = new StringBuffer(e2.w); for (int i7 = 0; i7 < stringbuffer.length(); i7++) { switch (stringbuffer.charAt(i7)) { case 108: // 'l' ai3[l5] = 1; if (l5 < 99) { l5++; } break; case 99: // 'c' ai3[l5] = 2; if (l5 < 99) { l5++; } break; case 114: // 'r' ai3[l5] = 3; if (l5 < 99) { l5++; } break; case 64: // '@' ai3[l5] = 4; ai4[l5] = S._mthif(); final c c2 = _mthtry(i1, j1, false, g1, k1, false); k3 += c2._flddo; l3 = Math.max(l3, c2._fldif); i4 = Math.max(i4, c2.a); if (l5 < 99) { l5++; } break; case 42: // '*' a(3, "Begin *{"); int j6; try { j6 = Integer.parseInt(S._mthint().w); } catch (final NumberFormatException numberformatexception) { j6 = 0; } a(4, 3, "Begin }{"); final int l7 = S._mthif(); for (int j8 = 0; j8 < j6; j8++) { S.a(l7); for (e2 = S._mthint(); e2.y != 4; e2 = S._mthint()) { final StringBuffer stringbuffer1 = new StringBuffer( e2.w); for (int l8 = 0; l8 < stringbuffer1.length(); l8++) { switch (stringbuffer1.charAt(l8)) { case 108: // 'l' ai3[l5] = 1; if (l5 < 99) { l5++; } break; case 99: // 'c' ai3[l5] = 2; if (l5 < 99) { l5++; } break; case 114: // 'r' ai3[l5] = 3; if (l5 < 99) { l5++; } break; case 64: // '@' ai3[l5] = 4; ai4[l5] = S._mthif(); final c c3 = _mthtry(i1, j1, false, g1, k1, false); k3 += c3._flddo; l3 = Math.max(l3, c3._fldif); i4 = Math.max(i4, c3.a); if (l5 < 99) { l5++; } break; default: printStatus("P: begin: illegal format 2"); break; } } } } break; default: printStatus("P: begin: illegal format 1"); break; } } } } if (!flag5) { ai3[0] = 3; ai3[1] = 2; ai3[2] = 1; l5 = 3; } for (int k6 = 0; k6 < l5 - 1; k6++) { if (ai3[k6] != 4 && ai3[k6 + 1] != 4) { i2 += k5 / 2; } } if (flag) { j4 = S._mthif(); } for (int l6 = 0; l6 < 99; l6++) { int j2 = 0; int l2 = 0; for (int j7 = 0; j7 < 99; j7++) { final c c4 = _mthnew(i1, j1, false, g1, k1); j2 = Math.max(j2, c4._fldif); l2 = Math.max(l2, c4.a); ai[j7] = Math.max(ai[j7], c4._flddo); if (D.y == 8 || D.y == 51) { break; } } j2 = Math.max(j2, l3); l2 = Math.max(l2, i4); ai1[l6] = j2; ai2[l6] = l2; j3 += j2 + l2; if (D.y == 51) { break; } } for (int i6 = 0; i6 < 99; i6++) { i2 += ai[i6]; } i2 += (2 * k5) / 2; if (flag) { S.a(j4); int k2 = 0; final int i3 = j3 / 2 + fontmetrics.getDescent(); for (int k7 = 0; k7 < 99; k7++) { int l1 = k5 / 2; if (k7 == 0) { k2 = ai1[k7]; } else { k2 += ai2[k7 - 1] + ai1[k7]; } int i8 = 0; for (int k8 = 0; k8 < 99; k8++) { while (ai3[i8] == 4) { final int k4 = S._mthif(); S.a(ai4[i8]); final c c5 = _mthtry(i1 + l1, (j1 - i3) + k2, true, g1, k1, false); l1 += c5._flddo; S.a(k4); i8++; } switch (ai3[i8]) { case 0: // '\0' case 1: // '\001' _mthnew(i1 + l1, (j1 - i3) + k2, true, g1, k1); i8++; break; case 2: // '\002' final int l4 = S._mthif(); c c7 = _mthnew(i1, j1, false, g1, k1); S.a(l4); c7 = _mthnew(i1 + l1 + (ai[k8] - c7._flddo) / 2, (j1 - i3) + k2, true, g1, k1); i8++; break; case 3: // '\003' final int i5 = S._mthif(); c c8 = _mthnew(i1, j1, false, g1, k1); S.a(i5); c8 = _mthnew((i1 + l1 + ai[k8]) - c8._flddo, (j1 - i3) + k2, true, g1, k1); i8++; break; } if (ai3[i8] != 4) { l1 += k5 / 2; } l1 += ai[k8]; boolean flag2 = false; flag3 = false; if (D.y == 8) { flag2 = true; } else if (D.y == 51) { flag2 = true; flag3 = true; } for (; ai3[i8] == 4; i8++) { final int j5 = S._mthif(); S.a(ai4[i8]); final c c9 = _mthtry(i1 + l1, (j1 - i3) + k2, true, g1, k1, false); l1 += c9._flddo; S.a(j5); } if (flag2) { break; } } if (flag3) { break; } } } if (!a(3, "BEGIN 2: begin")) { return new c(0, 0, 0); } S._mthint(); if (!a(4, "BEGIN 2: end")) { return new c(0, 0, 0); } else { return new c(i2 + k3, j3 / 2 + fontmetrics.getDescent(), j3 / 2 - fontmetrics.getDescent()); } } private c _mthelse(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); final int l1 = g1.getFont().getSize() / 2; c1 = _mthtry(i1 + l1, j1, flag, g1, k1, false); if (flag) { g1.drawRect(i1 + l1 / 2, j1 - c1._fldif - l1 / 2, c1._flddo + l1, c1._fldif + c1.a + l1); } return new c(c1._flddo + l1 + l1, c1._fldif + l1, c1.a + l1); } private c _mthfor(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1, final boolean flag1) { int l1 = 0; new c(); c c3 = new c(); c c4 = new c(); int i2 = 0; final Font font = g1.getFont(); font.getSize(); a(g1, k1 + 1); final FontMetrics fontmetrics = g1.getFontMetrics(); if (flag) { i2 = S._mthif(); } c3 = _mthtry(i1, j1, false, g1, k1 + 1, false); int k2 = c3._fldif + c3.a; c4 = _mthtry(i1, j1, false, g1, k1 + 1, false); int l2 = Math.max(c3._flddo, c4._flddo); int i3 = c4._fldif + c4.a; final Font font1 = g1.getFont(); final int j3 = (3 * font1.getSize()) / 18; l2 += 2 * j3; if (fontmetrics.getAscent() < i3) { l1 = fontmetrics.getAscent() / 2; } k2 += 2 + l1; i3 += 1 - l1; if (flag) { S.a(i2); if (flag1) { g1.drawLine(i1 + j3, j1 - l1, (i1 + l2) - j3, j1 - l1); } _mthtry(i1 + (l2 - c3._flddo) / 2, j1 - 2 - c3.a - l1, true, g1, k1 + 1, false); if (c && k1 < F) { F = k1; } _mthtry(i1 + (l2 - c4._flddo) / 2, (j1 + 1 + c4._fldif) - l1, true, g1, k1 + 1, false); } a(g1, k1); return new c(l2, k2, i3); } private c _mthnew(final int i1, final int j1, final boolean flag, final Graphics2D g1) { final FontMetrics fontmetrics = g1.getFontMetrics(); if (flag) { g1.drawString(D.w, i1, j1); // System.out.println(g1.getFont()); // System.out.println("5: "+D.w); } final int k1 = fontmetrics.stringWidth(D.w); final int l1 = fontmetrics.getHeight() - fontmetrics.getDescent(); final int i2 = fontmetrics.getDescent(); return new c(k1, l1, i2); } private void a(final Graphics2D g1, final int i1, final int j1, final int k1, final int l1, final int i2) { g1.drawArc(i1 - k1, j1 - k1, 2 * k1, 2 * k1, l1, i2); } private void a(final Graphics2D g1, final String s1, final int i1, final int j1, final int k1, final int l1, final int i2, final int j2) { final int k2 = j1 / 2; final int l2 = i1 + k2; final int i3 = i1 + j1; final int j3 = i1 + k2 / 2; final int k3 = l2 + k2 / 2; final int l3 = (k1 + l1) / 2; final int i4 = (int) ((double) k2 * 0.86602540378444004D); final int j4 = k1 + i4; final int k4 = l1 - i4; if (s1.equals("[")) { g1.drawLine(j3, k1, j3, l1); g1.drawLine(j3, l1, k3, l1); g1.drawLine(j3, k1, k3, k1); } else if (s1.equals("]")) { g1.drawLine(k3, k1, k3, l1); g1.drawLine(j3, l1, k3, l1); g1.drawLine(j3, k1, k3, k1); } else if (s1.equals("|")) { g1.drawLine(l2, k1, l2, l1); } else if (s1.equals("||")) { final int l4 = l2 + i2 / 4; g1.drawLine(l2, k1, l2, l1); g1.drawLine(l4, k1, l4, l1); } else if (s1.equals("(")) { for (int i5 = j2; i5 < 2 + j2; i5++) { final int i6 = j3 + i5; a(g1, k3 + i5, j4, k2, 180, -60); g1.drawLine(i6, j4, i6, k4); a(g1, k3 + i5, k4, k2, 180, 60); } } else if (s1.equals(")")) { for (int j5 = j2; j5 < 2 + j2; j5++) { final int j6 = k3 + j5; a(g1, j3 + j5, j4, k2, 0, 60); g1.drawLine(j6, j4, j6, k4); a(g1, j3 + j5, k4, k2, 0, -60); } } else if (s1.equals("<")) { g1.drawLine(j3, l3, k3, k1); g1.drawLine(j3, l3, k3, l1); } else if (s1.equals(">")) { g1.drawLine(k3, l3, j3, k1); g1.drawLine(k3, l3, j3, l1); } else if (s1.equals("{")) { for (int k5 = j2; k5 < 2 + j2; k5++) { final int k6 = l2 + k5; a(g1, i3 + k5, j4, k2, 180, -60); g1.drawLine(k6, j4, k6, l3 - k2); a(g1, i1 + k5, l3 - k2, k2, 0, -90); a(g1, i1 + k5, l3 + k2, k2, 0, 90); g1.drawLine(k6, l3 + k2, k6, k4); a(g1, i3 + k5, k4, k2, 180, 60); } } else if (s1.equals("}")) { for (int l5 = j2; l5 < 2 + j2; l5++) { final int l6 = l2 + l5; a(g1, i1 + l5, j4, k2, 0, 60); g1.drawLine(l6, j4, l6, l3 - k2); a(g1, i3 + l5, l3 - k2, k2, -180, 90); a(g1, i3 + l5, l3 + k2, k2, 180, -90); g1.drawLine(l6, l3 + k2, l6, k4); a(g1, i1 + l5, k4, k2, 0, -60); } } } private c _mthnull(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int l1 = 0; int i2 = 0; c c1 = new c(); int j2 = 0; final Font font = g1.getFont(); final int k2 = font.getSize(); final int l2 = (int) (2.0F * (float) k2); int i3 = k2 / 9; if (flag) { j2 = S._mthif(); } final String s1 = S._mthint().w; c1 = _mthnew(i1, j1, false, g1, k1); final int j3 = c1._flddo; int k3 = c1._fldif; int l3 = c1.a; final int i4 = (j1 - k3) + 1; final int j4 = (j1 + l3) - 1; final String s3 = S._mthint().w; final int k4 = (k3 + l3) - 2; final Font font1 = new Font(font.getFamily(), font.getStyle(), k4); g1.setFont(font1); final FontMetrics fontmetrics = g1.getFontMetrics(); if (s1.equals("<") || s1.equals(">")) { l1 = k2; } else if (k4 < l2) { l1 = fontmetrics.stringWidth(s1); if ("([{)]}".indexOf(s1) >= 0) { l1 += i3; } } else { l1 = k2; } if (s3.equals("<") || s3.equals(">")) { i2 = k2; } else if (k4 < l2) { i2 = fontmetrics.stringWidth(s3); if ("([{)]}".indexOf(s3) >= 0) { i2 += i3; } } else { i2 = k2; } g1.setFont(font); final int l4 = S._mthif(); int j5 = 0; int k5 = 0; if (S._mthint().y == 11) { final c c2 = _mthdo(i1, j1, false, g1, k1, false); j5 = c2._flddo; k5 = (j4 + c2._fldif) - (c2._fldif + c2.a) / 2; l3 += (c2._fldif + c2.a) / 2; } else { S.a(l4); } final int l5 = S._mthif(); int j6 = 0; int k6 = 0; if (S._mthint().y == 10) { final c c3 = _mthint(i1, j1, false, g1, k1, false); j6 = c3._flddo; k6 = (i4 + c3._fldif) - (c3._fldif + c3.a) / 2; k3 += (c3._fldif + c3.a) / 2; } else { S.a(l5); } j5 = Math.max(j5, j6); if (flag) { S.a(j2); final String s2 = S._mthint().w; if (!s2.equals(".")) { if (k4 < l2 && !s2.equals("<") && !s2.equals(">")) { g1.setFont(font1); g1.drawString(s2, i1, j4 - fontmetrics.getDescent() - fontmetrics.getLeading() / 2); g1.setFont(font); } else { a(g1, s2, i1, l1, i4, j4, k2, 0); } } _mthnew(i1 + l1, j1, true, g1, k1); final String s4 = S._mthint().w; if (!s4.equals(".")) { if (k4 < l2 && !s4.equals("<") && !s4.equals(">")) { g1.setFont(font1); if ("([{)]}".indexOf(s4) < 0) { i3 = 0; } g1.drawString(s4, i1 + j3 + l1 + i3, j4 - fontmetrics.getDescent() - fontmetrics.getLeading() / 2); // System.out.println("2: "+s4); g1.setFont(font); } else { a(g1, s4, i1 + j3 + l1, i2, i4, j4, -k2, -1); } } final int i5 = S._mthif(); if (a(11)) { _mthdo(i1 + j3 + l1 + i2, k5, true, g1, k1, false); } else { S.a(i5); } final int i6 = S._mthif(); if (a(10)) { _mthint(i1 + j3 + l1 + i2, k6, true, g1, k1, false); } else { S.a(i6); } } return new c(j3 + l1 + i2 + j5, k3 + 2, l3 + 2); } private c _mthfor(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int l1 = 0; new c(); int i2 = 0; int j2 = 0; final FontMetrics fontmetrics = g1.getFontMetrics(); final String s1 = D.w; final int k2 = S._mthif(); final int l2 = l1 = fontmetrics.stringWidth(s1); final int i3 = fontmetrics.getHeight() - fontmetrics.getDescent(); int j3 = fontmetrics.getDescent(); if (a(11)) { final c c2 = _mthdo(i1, j1, false, g1, k1, false); i2 = c2._flddo; l1 = Math.max(l1, c2._flddo); j2 = c2._fldif; j3 = c2._fldif + c2.a; } else { S.a(k2); } if (flag) { S.a(k2); g1.drawString(s1, i1 + (l1 - l2) / 2, j1); if (a(11)) { _mthdo(i1 + (l1 - i2) / 2, j1 + j2, true, g1, k1, false); } else { S.a(k2); } } return new c(l1, i3, j3); } private c _mthdo(final int i1, final int j1, final boolean flag, final Graphics2D g1) { int k1 = 0; int l1 = 0; int i2 = 0; new c(); if (!a(3)) { return new c(0, 0, 0); } while (!S._mthnew()) { D = S._mthint(); if (D.y == 4) { break; } final c c2 = _mthif(i1 + k1, j1, flag, g1); k1 += c2._flddo; l1 = Math.max(l1, c2._fldif); i2 = Math.max(i2, c2.a); } return new c(k1, l1, i2); } private c _mthtry(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); c1 = _mthtry(i1, j1, flag, g1, k1, false); if (flag) { g1.drawLine(i1 + c1._flddo / 4, j1 + c1.a, i1 + (c1._flddo * 3) / 4, j1 - c1._fldif); } return c1; } private c _mthint(final int i1, final int j1, final boolean flag, final Graphics2D g1) { final FontMetrics fontmetrics = g1.getFontMetrics(); if (flag) { g1.drawString(D.w, i1 + 1, j1); // System.out.println("3: "+D.w); } return new c(fontmetrics.stringWidth(D.w) + 2, fontmetrics.getHeight() - fontmetrics.getDescent(), fontmetrics.getDescent()); } private c a(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int l1 = 0; c c1 = new c(); final int i2 = g1.getFont().getSize() / 4; final int j2 = i2 / 2; int k2 = 0; int l2 = 0; int i3 = 0; if (flag) { l1 = S._mthif(); } c1 = _mthtry(i1, j1, false, g1, k1, false); int j3 = c1._flddo; final int k3 = j3 / 2; int l3 = k3; int i4 = c1._fldif; final int j4 = c1.a; final int k4 = S._mthif(); if (a(10)) { final c c2 = _mthint(i1, j1, false, g1, k1, false); k2 = c2._flddo; l3 = Math.max(l3, k2 / 2); l2 = i4 + c2.a; i3 = c2._fldif + c2.a; } else { S.a(k4); } if (flag) { S.a(l1); final int i5 = (i1 + l3) - k3; _mthtry(i5, j1, true, g1, k1, false); final int j5 = (int) ((double) i2 * 0.86602540378444004D); for (int k5 = 0; k5 < 2; k5++) { final int l5 = (j1 - i4 - j2) + k5; a(g1, i5 + j5, l5 + i2, i2, 90, 60); g1.drawLine(i5 + j5, l5, (i5 + k3) - i2, l5); a(g1, (i5 + k3) - i2, l5 - i2, i2, 0, -90); a(g1, i5 + k3 + i2, l5 - i2, i2, -90, -90); g1.drawLine(i5 + k3 + i2, l5, (i5 + j3) - j5, l5); a(g1, (i5 + j3) - j5, l5 + i2, i2, 90, -60); } final int l4 = S._mthif(); if (a(10)) { _mthint((i1 + l3) - k2 / 2, j1 - l2 - i2 - j2, true, g1, k1, false); } else { S.a(l4); } } i4 += i3 + i2 + j2; j3 = Math.max(j3, k2); return new c(j3, i4, j4); } private c _mthlong(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { int l1 = 0; c c1 = new c(); final int i2 = g1.getFont().getSize() / 4; final int j2 = i2 / 2; int k2 = 0; int l2 = 0; int i3 = 0; if (flag) { l1 = S._mthif(); } c1 = _mthtry(i1, j1, false, g1, k1, false); int j3 = c1._flddo; final int k3 = j3 / 2; int l3 = k3; final int i4 = c1._fldif; int j4 = c1.a; final int k4 = S._mthif(); if (a(11)) { final c c2 = _mthdo(i1, j1, false, g1, k1, false); k2 = c2._flddo; l3 = Math.max(l3, k2 / 2); l2 = j4 + c2._fldif; i3 = c2._fldif + c2.a; } else { S.a(k4); } if (flag) { S.a(l1); final int i5 = (i1 + l3) - k3; _mthtry(i5, j1, true, g1, k1, false); final int j5 = (int) ((double) i2 * 0.86602540378444004D); for (int k5 = 0; k5 < 2; k5++) { final int l5 = (j1 + j4 + j2) - k5; a(g1, i5 + j5, l5 - i2, i2, -90, -60); g1.drawLine(i5 + j5, l5, (i5 + k3) - i2, l5); a(g1, (i5 + k3) - i2, l5 + i2, i2, 90, -90); a(g1, i5 + k3 + i2, l5 + i2, i2, 90, 90); g1.drawLine(i5 + k3 + i2, l5, (i5 + j3) - j5, l5); a(g1, (i5 + j3) - j5, l5 - i2, i2, -90, 60); } final int l4 = S._mthif(); if (S._mthint().y == 11) { _mthdo((i1 + l3) - k2 / 2, j1 + l2 + i2 + j2, true, g1, k1, false); } else { S.a(l4); } } j4 += i3 + i2 + j2; j3 = Math.max(j3, k2); return new c(j3, i4, j4); } private c a(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1, final boolean flag1) { int l1 = 0; c c1 = new c(); if (flag) { l1 = S._mthif(); } c1 = _mthtry(i1, j1, false, g1, k1, false); if (flag1) { c1._fldif += 2; } else { c1.a += 2; } final int i2 = c1._fldif; final int j2 = c1.a; if (flag) { S.a(l1); if (flag1) { g1.drawLine(i1 + 1, (j1 - i2) + 2, (i1 + c1._flddo) - 1, (j1 - i2) + 2); } else { g1.drawLine(i1, (j1 + j2) - 2, i1 + c1._flddo, (j1 + j2) - 2); } c1 = _mthtry(i1, j1, true, g1, k1, false); } return new c(c1._flddo, i2, j2); } private c _mthtry(int i1, final int j1, final boolean flag, final Graphics2D g1) { final FontMetrics fontmetrics = g1.getFontMetrics(); final int k1 = g1.getFont().getSize() / 9; int l1 = fontmetrics.stringWidth(D.w); final int i2 = "([{)]}".indexOf(D.w); if (i2 >= 0) { l1 += k1; if (i2 > 2) { i1 += k1; } } if (flag) { g1.drawString(D.w, i1, j1); // System.out.println("2: "+D.w); } return new c(l1, fontmetrics.getHeight() - fontmetrics.getDescent(), fontmetrics.getDescent()); } private c _mthif(final int i1, final int j1, final boolean flag, final Graphics2D g1) { final FontMetrics fontmetrics = g1.getFontMetrics(); if (flag) { g1.drawString(D.w, i1, j1); // System.out.println(g1.getFont()); // System.out.println("1: "+D.w); } return new c(fontmetrics.stringWidth(D.w), fontmetrics.getHeight() - fontmetrics.getDescent(), fontmetrics.getDescent()); } private c _mthfor(final int i1, final int j1, final boolean flag, final Graphics2D g1) { int k1 = 0; final Font font = g1.getFont(); try { k1 = Integer.parseInt(D.w); } catch (final NumberFormatException numberformatexception) { k1 = 0; } k1 = (k1 * font.getSize()) / 18; return new c(k1, 0, 0); } private c _mthcase(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); int l1 = 0; final FontMetrics fontmetrics = g1.getFontMetrics(); int i2 = 0; int k2 = 0; int l2 = 0; boolean flag2 = false; if (flag) { l1 = S._mthif(); } final int i3 = fontmetrics.stringWidth("A"); final int j3 = i3 / 2; final int k3 = S._mthif(); e e1 = new e(); e1 = S._mthint(); if (e1.w.equals("[")) { a(g1, k1 + 1); c1 = _mthtry(i1, j1, false, g1, k1 + 1, true); a(g1, k1); i2 = c1._flddo; final int j2 = c1._fldif; k2 = c1.a; l2 = k2 + j2; flag2 = true; } else { S.a(k3); } c1 = _mthtry(i1, j1, false, g1, k1, false); int l3 = c1._flddo + i3; int i4 = c1._fldif + 2; final int j4 = c1.a; if (flag2 & (i2 > j3)) { l3 += i2 - j3; } if (flag) { S.a(l1); int k4 = 0; if (flag2 & (i2 > j3)) { k4 = i2 - j3; } g1.drawLine(i1 + k4 + 1, j1 - i4 / 2, i1 + k4 + j3, (j1 + j4) - 1); g1.drawLine(i1 + k4 + j3, (j1 + j4) - 1, (i1 + k4 + i3) - 2, (j1 - i4) + 2); g1.drawLine((i1 + k4 + i3) - 2, (j1 - i4) + 2, i1 + l3, (j1 - i4) + 2); if (flag2) { S._mthint(); a(g1, k1 + 1); if (i2 >= j3) { g1.drawLine(i1 + 1, j1 - i4 / 2, i1 + k4 + 1, j1 - i4 / 2); _mthtry(i1 + 1, j1 - i4 / 2 - k2 - 1, true, g1, k1 + 1, true); } else { _mthtry(i1 + 1 + (j3 - i2), j1 - i4 / 2 - k2 - 1, true, g1, k1 + 1, true); } a(g1, k1); } _mthtry(i1 + k4 + i3, j1, true, g1, k1, false); } if (flag2 & (i4 / 2 < l2)) { i4 = i4 / 2 + l2; } return new c(l3, i4, j4); } private c _mthchar(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); int l1 = 0; final int i2 = g1.getFontMetrics().getLeading(); if (flag) { l1 = S._mthif(); } c1 = _mthint(i1, j1, false, g1, k1, true); int j2 = c1._flddo; final int k2 = c1._flddo; int l2 = (c1._fldif + c1.a) - i2; int i3 = c1.a - i2; c1 = _mthtry(i1, j1, false, g1, k1, false); j2 = Math.max(j2, c1._flddo); final int j3 = j2 / 2; final int k3 = c1._flddo; l2 += c1._fldif; final int l3 = c1.a; i3 += c1._fldif; if (flag) { S.a(l1); _mthint((i1 + j3) - k2 / 2, j1 - i3, true, g1, k1, false); _mthtry((i1 + j3) - k3 / 2, j1, true, g1, k1, false); } return new c(j2, l2, l3); } private c _mthdo(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1, final boolean flag1) { int l1 = 0; int i2 = 0; c c1 = new c(); int j2 = 0; final int l2 = g1.getFontMetrics().getAscent() / 2; if (flag) { j2 = S._mthif(); } a(g1, k1 + 1); c1 = _mthtry(i1, j1, false, g1, k1 + 1, false); int i3 = c1._flddo; if (flag1) { l1 = l2 - 1; i2 = (c1._fldif + c1.a) - l1; } else { i2 = c1._fldif + c1.a; } if (flag) { S.a(j2); if (flag1) { c1 = _mthtry(i1, (j1 + c1._fldif) - l1, true, g1, k1 + 1, false); } else { c1 = _mthtry(i1, j1 + c1._fldif, true, g1, k1 + 1, false); } } a(g1, k1); if (flag1) { final int k2 = S._mthif(); if (a(10)) { final c c2 = _mthint(i1, j1, flag, g1, k1, true); i3 = Math.max(i3, c2._flddo); l1 = Math.max(l1, c2._fldif); } else { S.a(k2); } } return new c(i3, l1, i2); } private c _mthint(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1, final boolean flag1) { int l1 = 0; int i2 = 0; c c1 = new c(); int j2 = 0; final int l2 = g1.getFontMetrics().getAscent() / 2; if (flag) { j2 = S._mthif(); } a(g1, k1 + 1); c1 = _mthtry(i1, j1, false, g1, k1 + 1, false); int i3 = c1._flddo; if (flag1) { i2 = -l2 - 1; l1 = (c1._fldif + c1.a) - i2; } else { l1 = c1._fldif + c1.a; } if (flag) { S.a(j2); if (flag1) { c1 = _mthtry(i1, (j1 - c1.a) + i2, true, g1, k1 + 1, false); } else { c1 = _mthtry(i1, j1 - c1.a, true, g1, k1 + 1, false); } } a(g1, k1); if (flag1) { final int k2 = S._mthif(); if (a(11)) { final c c2 = _mthdo(i1, j1, flag, g1, k1, true); i3 = Math.max(i3, c2._flddo); i2 = Math.max(i2, c2.a); } else { S.a(k2); } } return new c(i3, l1, i2); } private Image _mthif(final Graphics2D g1, final int i1) { final String s1 = D.w + j[i1 - 1] + g1.getColor().getRGB(); if (!w.containsKey(s1)) { final String s2 = "Fonts/Greek" + j[i1 - 1] + "/" + D.w + ".gif"; final Image image = _flddo.a(s2, g1); final int j1 = S._mthif(); B.addImage(image, j1); a("Loading " + D.w); try { B.waitForID(j1, 10000L); } catch (final InterruptedException interruptedexception) { } if (B.isErrorID(j1)) { a("Error loading " + D.w); } else { w.put(s1, image); } return image; } else { return (Image) w.get(s1); } } private c _mthif(final int i1, final int j1, final boolean flag, final Graphics2D g1, int k1, final boolean flag1) { final FontMetrics fontmetrics = g1.getFontMetrics(); k1 = Math.min(k1, j.length); final Image image = _mthif(g1, k1); int l1 = image.getWidth(PC); if (l1 < 0) { l1 = fontmetrics.getMaxAdvance(); } if (flag) { int i2 = 0; if (flag1) { i2 = _fldfor[k1 - 1]; } g1.drawImage(image, i1, (j1 - image.getHeight(PC)) + i2, PC); } return new c(l1, fontmetrics.getHeight() - fontmetrics.getDescent(), fontmetrics.getDescent()); } private c _mthdo(final int i1, final int j1, final boolean flag, final Graphics2D g1, int k1) { int l1 = 0; new c(); int i2 = 0; int j2 = 0; int k2 = 0; int l2 = 0; int i3 = 0; final int j3 = g1.getFontMetrics().getAscent(); k1 = Math.min(k1, j.length); final Image image = _mthif(g1, k1); int k3 = l1 = image.getWidth(PC); int l3 = image.getHeight(PC); if (l3 < 0) { l3 = 2 * j3; k3 = l1 = j3; } int i4 = (int) ((double) (l3 / 2) - 0.40000000000000002D * (double) j3); int j4 = i3 = l3 - i4; final int k4 = S._mthif(); if (a(11)) { final c c2 = _mthdo(i1, j1, false, g1, k1, false); k2 = c2._flddo; l1 = Math.max(l1, c2._flddo); i2 = i4 + c2._fldif; i4 += c2._fldif + c2.a; } else { S.a(k4); } final int l4 = S._mthif(); if (a(10)) { final c c3 = _mthint(i1, j1, false, g1, k1, false); l2 = c3._flddo; l1 = Math.max(l1, c3._flddo); j2 = j4 + c3.a; j4 += c3._fldif + c3.a; } else { S.a(l4); } if (flag) { S.a(k4); g1.drawImage(image, i1 + (l1 - k3) / 2, j1 - i3, PC); if (a(11)) { _mthdo(i1 + (l1 - k2) / 2, j1 + i2, true, g1, k1, false); } else { S.a(k4); } final int i5 = S._mthif(); if (a(10)) { _mthint(i1 + (l1 - l2) / 2, j1 - j2, true, g1, k1, false); } else { S.a(i5); } } return new c(l1, j4, i4); } private c _mthint(final int i1, final int j1, final boolean flag, final Graphics2D g1, final int k1) { c c1 = new c(); final int l1 = g1.getFont().getSize(); final String s1 = D.w; c1 = _mthtry(i1, j1, flag, g1, k1, false); final int i2 = c1._flddo; final int j2 = i2 / 2; final int k2 = l1 / 4; final int l2 = c1._fldif + k2; final int i3 = c1.a; if (flag) { final int j3 = (j1 - l2) + k2; final int k3 = l1 / 8; final int l3 = i1 + i2; final int i4 = i1 + j2; if (s1.equals("")) { g1.drawLine(i1, j3, l3, j3); g1.drawLine(i1 + (int) ((double) i2 * 0.80000000000000004D), j3 - k3, l3, j3); g1.drawLine(i1 + (int) ((double) i2 * 0.80000000000000004D), j3 + k3, l3, j3); } else if (s1.equals("bar")) { g1.drawLine(i1, j3, l3, j3); } else if (s1.equals("widehat")) { g1.drawLine(i1, j3, i4, j3 - k2); g1.drawLine(i4, j3 - k2, l3, j3); } else if (s1.equals("widetilde")) { int k4 = 0; for (int l4 = 1; l4 < j2; l4++) { final int j4 = k4; k4 = (int) ((double) k3 * Math .sin((4.0840704496667311D * (double) l4) / (double) j2)); g1.drawLine((i4 + l4) - 1, j3 + j4, i4 + l4, j3 + k4); g1.drawLine((i4 - l4) + 1, j3 - j4, i4 - l4, j3 - k4); } } } return new c(i2, l2 + 2, i3); } private boolean a(final int i1) { return a(i1, ""); } private boolean a(final int i1, final String s1) { int j1; while ((j1 = S._mthint().y) == 25) { } if (j1 == i1) { return true; } if (!s1.equals("")) { printStatus("Parser: " + s1 + " not found"); } return false; } private boolean a(final int i1, final int j1, final String s1) { int k1; while ((k1 = S._mthint().y) == 25) { } boolean flag = k1 == i1; while ((k1 = S._mthint().y) == 25) { } flag = k1 == j1; if (!flag && !s1.equals("")) { printStatus("Parser: " + s1 + " not found"); } return flag; } private void a(final Graphics2D g1, final int i1) { if (i1 <= 1) { g1.setFont(d); } else if (i1 == 2) { g1.setFont(b); } else if (i1 == 3) { g1.setFont(_fldnull); } else { g1.setFont(_fldlong); } } } carmetal-4.3/src/base3D-es.zir000066400000000000000000000451241417122252700162040ustar00rootroot00000000000000 carmetal-4.3/src/base3D-fr-modifs.zir000066400000000000000000000251051417122252700174600ustar00rootroot00000000000000 carmetal-4.3/src/base3D-fr.zir000066400000000000000000000451141417122252700162030ustar00rootroot00000000000000 carmetal-4.3/src/base3D.zir000066400000000000000000000451131417122252700155750ustar00rootroot00000000000000 carmetal-4.3/src/baseDP.zir000066400000000000000000000017061417122252700156320ustar00rootroot00000000000000 carmetal-4.3/src/builtin.mcr000066400000000000000000010105221417122252700161140ustar00rootroot00000000000000 =O =X =Y =Z A Point Point Point Point Point Expression "1" à 7.67962, 0.46849 Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Segment de P5 à P4 Segment de P5 à P19 Segment de P5 à P13 Segment de P19 à P3 Segment de P3 à P16 Segment de P16 à P4 Segment de P19 à P10 Segment de P10 à P11 Segment de P11 à P13 Segment de P11 à P17 Segment de P4 à P12 Segment de P13 à P21 Segment de P10 à P18 Segment de P3 à P2 Segment de P18 à P2 Segment de P18 à P6 Segment de P2 à P15 Segment de P16 à P9 Segment de P6 à P17 Segment de P21 à P12 Segment de P21 à P1 Segment de P15 à P7 Segment de P6 à P7 Segment de P15 à P9 Segment de P9 à P8 Segment de P7 à P14 Segment de P12 à P8 Segment de P8 à P14 Segment de P14 à P1 Segment de P17 à P1 =O =X =Y =Z A Point Point Point Point Point Expression "1" à 1.58512, 1.00354 Point Point Point Point Segment de P3 à P2 Segment de P1 à P2 Segment de P5 à P2 Segment de P1 à P5 Segment de P1 à P3 Segment de P3 à P5 D E F B Point à 57.39831, 21.2484 Point à 57.39831, 25.15035 Point à 55.04322, 25.86185 Point à 60.6315, 25.66861 Segment de E à B =O =X =Y =Z A Point Point Point Point Point Expression "1" à 7.63134, 0.50283 Point Point Point Point Point Point Point Point Segment de P4 à P9 Segment de P7 à P3 Segment de P6 à P2 Segment de P5 à P1 Segment de P1 à P9 Segment de P9 à P3 Segment de P3 à P2 Segment de P2 à P1 Segment de P7 à P6 Segment de P6 à P5 Segment de P5 à P4 Segment de P4 à P7 =O =X =Y =Z A Point Point Point Point Point Expression "1" à -10.46236, 0.03579 Point Point Point Point Point Point Segment de P7 à P4 Segment de P3 à P4 Segment de P2 à P4 Segment de P1 à P4 Segment de P1 à P5 Segment de P7 à P5 Segment de P3 à P5 Segment de P2 à P5 Segment de P2 à P3 Segment de P3 à P7 Segment de P1 à P2 Segment de P7 à P1 =O =X =Y =Z A Point Point Point Point Point Expression "1" à 4.00164, 0.41236 Point Point Point Point Point Point Point Point Point Point Point Point Segment de P13 à P4 Segment de P3 à P4 Segment de P13 à P11 Segment de P13 à P5 Segment de P13 à P3 Segment de P8 à P4 Segment de P8 à P7 Segment de P8 à P11 Segment de P4 à P7 Segment de P4 à P9 Segment de P9 à P3 Segment de P7 à P9 Segment de P1 à P8 Segment de P1 à P7 Segment de P2 à P7 Segment de P13 à P8 Segment de P1 à P2 Segment de P2 à P9 Segment de P9 à P10 Segment de P10 à P3 Segment de P3 à P5 Segment de P11 à P5 Segment de P11 à P1 Segment de P5 à P6 Segment de P11 à P6 Segment de P1 à P6 Segment de P10 à P5 Segment de P2 à P10 Segment de P10 à P6 Segment de P2 à P6 =O =X =Y =Z p Point à 1.03933, 0.46474 Point à "x(p)", "y(p)" Point à 1.01578, 1.45964 Point à 2.00625, 0.46247 Point à 0.78533, 0.36384 O M Point à -2.57, 4.13 Point à -0.67, 2.7 Point à "2*x(O)-x(M)", "2*y(O)-y(M)" =O =X =Y =Z B A Point Point Point Point Point Point Point l1 A Point à 1.20702, 2.09123 ??? Intersection entre perp1 et c1 =O =X =Y =Z P1 P2 P3 M Point Point Point Point Point Point Point Point Point =O =X =Y =Z P1 P2 P3 M Point Point Point Point Point Point Point Point Point A B M Point à -3.98502, 1.73034 Point à -2.41199, 2.26966 Point à -1.87266, 1.16105 Point à "x(C)+x(B)-x(A)", "y(C)+y(B)-y(A)" =O =X =Y =Z A B C Point Point Point Point Point Point Point Point =O =X =Y =Z l1 C Point Point Point Point Point Point Point Droite passant par P et P1 Point Conique passant par C, P13, P14, P15, P16 =O =X =Y =Z l1 P E2 Expression "2" à 0.0, 0.0 Point Point Point Point Point Point Point Droite passant par T et P1 Conique passant par P11, P7, P10, P9, P8 =O =X =Y =Z A B C Point Point Point Point Point Point Point Intersection entre l1 et l2 Conique passant par A, P8, B, P7, C =O =X =Y =Z A B C l2 Point Point Point Point Point Point Point Point Point Droite passant par G et P1 Point =O =X =Y =Z A B C D E F Point Point Point Point Point Point Point Point Point Point Droite passant par P6 et P5 =O =X =Y =Z A Point Point Point Point Point Sphère de centre A de rayon 1 Conique passant par P5, P6, P9, P8, P7 =O =X =Y =Z A B Point Point Point Point Point Point Sphère de centre A de rayon d3D(A,B) Conique passant par P5, P6, P9, P8, P7 =O =X =Y =Z c1 l1 Point Point Point Point Point ??? Point Point Droite passant par P1 et P2 Point Point =O =X =Y =Z c1 B C D Point Point Point Point Point ??? Point Point Point Point Conique passant par P11, P7, P10, P9, P8 =O =X =Y =Z c1 c2 Point Point Point Point Point Point ??? ??? Conique passant par P12, P8, P11, P10, P9 A B Point à 3.92161, -13.62031 Point à -4.98046, 17.29785 Droite passant par I1 et I2 A B C Point à -0.3038, 2.25823 Point à -2.47089, 0.61772 Point à 3.28101, 0.21266 Demi-droite d'origine B vers E A B C Point à -5.89698, 0.72469 Point à -3.7087, 2.54352 Point à -0.12789, -0.49734 Point à "(x(A)^2*y(P4)-x(A)^2*y(P5)+y(P4)^2*y(P5)-y(P4)^2*y(A)-y(P4)*y(P5)^2+y(P4)*y(A)^2-y(P4)*x(P5)^2+y(P5)^2*y(A)-y(P5)*y(A)^2+y(P5)*x(P4)^2+y(A)*x(P5)^2-y(A)*x(P4)^2)/(2*x(A)*y(P4)+(-(2*x(A)))*y(P5)+(-(2*y(P4)))*x(P5)+2*y(P5)*x(P4)+2*y(A)*x(P5)+(-(2*y(A)))*x(P4))", "(-x(A)^2*x(P4)+x(A)^2*x(P5)+x(A)*x(P4)^2-x(A)*x(P5)^2+x(A)*y(P4)^2-x(A)*y(P5)^2-x(P4)^2*x(P5)+x(P4)*x(P5)^2+x(P4)*y(P5)^2-x(P4)*y(A)^2-x(P5)*y(P4)^2+x(P5)*y(A)^2)/(2*x(A)*y(P4)+(-(2*x(A)))*y(P5)+2*x(P4)*y(P5)+(-(2*x(P4)))*y(A)+(-(2*x(P5)))*y(P4)+2*x(P5)*y(A))" Cercle de centre P10 passant par P7 M N P Point à -6.74, 2.9 Point à -5.50775, 4.13336 Point à -4.56, 3.86 Cercle de centre P6 passant par P4 M a b P4 Point à -1.0, 2.0 Point à 2.0, 2.0 Point à 4.0, 2.0 Point à "(windoww/(windoww-d(windoww)))*(x(P4)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P4)-windowcy)+windowcy+d(windowcy)" Les points sont alignés Les points ne sont pas alignés l1 l2 P5 ??? ??? Point à "(windoww/(windoww-d(windoww)))*(x(P5)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P5)-windowcy)+windowcy+d(windowcy)" Les objets ne sont pas parallèles Les objets sont parallèles l1 l2 P5 ??? ??? Point à "(windoww/(windoww-d(windoww)))*(x(P5)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P5)-windowcy)+windowcy+d(windowcy)" Les objets ne sont pas perpendiculaires Les objets sont perpendiculaires o a b P5 Point à 1.0, -1.0 Point à 1.0, 3.0 Point à 5.0, 0.0 Point à "(windoww/(windoww-d(windoww)))*(x(P5)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P5)-windowcy)+windowcy+d(windowcy)" Les points ne sont pas équidistants Les points sont équidistants P13 l4 P14 ??? Point à 5.0, 0.0 Point à "(windoww/(windoww-d(windoww)))*(x(P14)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P14)-windowcy)+windowcy+d(windowcy)" Le point est sur l'objet Le point n'est pas sur l'objet M A P3 Point à 3.0, 2.0 Point à 3.0, 2.0 Point à "(windoww/(windoww-d(windoww)))*(x(P3)-windowcx)+windowcx+d(windowcx)", "(windoww/(windoww-d(windoww)))*(y(P3)-windowcy)+windowcy+d(windowcy)" Les points sont confondus Les points ne sont pas confondus A f1(x)=0 =Hz A B Point Point Point ??? Cercle de centre P5 passant par P3 =Hz Premier point Second point Point ??? Point Point Cercle de centre P1 passant par A =Hz Origine de la demi droite Point de la demi droite Point Point Point ??? Cercle de centre P8 passant par P5 =Hz La droite Le point Point ??? Point ??? Point Cercle de centre P5 passant par P3 =Hz A B Point ??? Point Point Cercle de centre P5 passant par P2 =Hz A O (sommet) B Point ??? Point Point Point Cercle de centre P13 passant par P11 =Hz A B Point Point Point ??? Intersection entre c3 et c2 =Hz Axe de la symétrie M Point ??? ??? Point Point à "x(P1)+c1^2/d(P1,A)^2*(x(A)-x(P1))", "y(P1)+c1^2/d(P1,A)^2*(y(A)-y(P1))" =Hz Le centre Un point Point Point ??? Point Point à "x(P1)+c1^2/d(P1,A)^2*(x(A)-x(P1))", "y(P1)+c1^2/d(P1,A)^2*(y(A)-y(P1))" =Hz Centre du cycle Point du cycle

Si le centre du cercle est sur l'horizon (à l'infini) alors le cercle devient un horicycle

Point Point Point ??? Cercle de centre P2 passant par A
=Hz Premier point Origine de l'angle Dernier point

Renvoie la mesure en degré de l'angle AOB

Point ??? Point Point Point Angle P3 - O - P4
=Hz Premier point du rayon Second point du rayon Centre Point ??? Point Point Point Cercle de centre P13 passant par P11 =Hz A B Point ??? Point Point Point Point Cercle de centre P7 passant par P5 =Hz droite hyperbolique droite hyperbolique Point ??? Point ??? Point ??? Cercle de centre P5 passant par P4 =Hz A B P2 Point Point Point Point ??? Expression "Argcosh(((Hz^2+x(A)^2+y(A)^2)*(Hz^2+x(B)^2+y(B)^2)-4*Hz^2*(x(A)*x(B)+y(A)*y(B)))/((Hz^2-x(A)^2-y(A)^2)*(Hz^2-x(B)^2-y(B)^2)))" à -0.80377, 1.37092 =Hz A B P2 Point Point Point Point ??? =Hz A B

Les centres des horicycles sont orientés par rapport à A et B (pour maintenir une continuité des constructions)

Point Point Point ??? Point Point Cercle de centre P10 passant par P7 Cercle de centre P10 passant par P7
=Hz la droite hyperbolique un point Point ??? Point ??? Point Cercle de centre P6 passant par P4 =Hz Origine Point de direction Valeur de l'angle

la valeur de l'angle est une expression

Point Expression "48" à 0.0, 0.0 Point Point ??? Cercle de centre P14 passant par P12
=Hz A B C

Etant donnés trois points, construire le cercleou l'équidistante passant par ces trois points.

Point Point Point ??? Cercle de centre P10 passant par P7 Cercle de centre P5 passant par P3 Cercle de centre P9 passant par P6
=Hz droite 1 droite 2 Point

Construit la droite du pinceau défini par les deux droites et passant par le point donné

Point ??? Point ??? Point ??? Point Cercle de centre P8 passant par P6
=Hz Droite 1 du pinceau Droite 2 du pinceau Droite 3 du pinceau

Attention le produit n'est pas commutatif. Ne s'applique a priori que sur trois droites dont on sait qu'elles sont en pinceau

Point ??? Point ??? Point ??? Point ??? Cercle de centre P10 passant par P9
=Hz Pinceau 1 - droite 1 Pinceau 1 - droite 2 Pinceau 2 - droite 1 Pinceau 2 - droite 2

L'intersection de deux pinceaux peut, dans certains cas, ne pas exister. Existe toujours si un pinceau est à centre.

Point ??? Point ??? Point ??? Point ??? Point ??? Cercle de centre P9 passant par P7
=Hz Droite 1 du pinceau Droite 2 du pinceau Droite orthogonale au pinceau

La hauteur d'un pinceau peut, dans des cas particuliers, ne pas exister. Elle existe toujours si le pinceau est à centre.

Point ??? Point Point Point ??? ??? ??? Cercle de centre P9 passant par P7
=Hz Droite 1 du pinceau Droite 2 du pinceau A

Construit le cycle (cercle ou équidistante) défini par un pinceau (2 droites) et un point.

Point Point ??? Point Point ??? ??? Cercle de centre P10 passant par P7 Cercle de centre P27 passant par P25 Cercle de centre P30 passant par P28
=Hz Droite 1 Pt idéal 1 de Drte 1 Pt idéal 2 de Drte 1 Droite 2 Pt idéal 1 de Drte 2 Pt idéal 2 de Drte 2

Attention cette macro ne s'applique QUE sur des droites orientées (pour l'orientation des points idéaux)

Point ??? Point Point ??? Point Point ??? Point Point Cercle de centre P13 passant par P11
Hz A B E1 Point Expression "1" à 0.0, 0.0 ??? Point Point Point Point Intersection entre a1 et c6 Intersection entre a2 et c6 Intersection entre a3 et c6 Intersection entre a4 et c6 Intersection entre a5 et c6 Intersection entre a6 et c6 Intersection entre a7 et c6 Intersection entre a8 et c6 Intersection entre a9 et c6 Cercle de centre P26 passant par P24 Hz A B Point ??? Point Point Point
carmetal-4.3/src/com/000077500000000000000000000000001417122252700145205ustar00rootroot00000000000000carmetal-4.3/src/com/apple/000077500000000000000000000000001417122252700156215ustar00rootroot00000000000000carmetal-4.3/src/com/apple/eawt/000077500000000000000000000000001417122252700165615ustar00rootroot00000000000000carmetal-4.3/src/com/apple/eawt/Application.java000066400000000000000000000026331417122252700216730ustar00rootroot00000000000000/* * Application.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public class Application { public Application() { } public void addApplicationListener(final ApplicationListener listenToMe) { // I don't feel like listening today!! } public boolean getEnabledPreferencesMenu() { return false; } public void removeApplicationListener( final ApplicationListener dontListenToMe) { // don't worry I haven't been } public void setEneablePreferencesMenu(final boolean enable) { // yeah, like, what-ever! } public static java.awt.Point getMouseLocationOnScreen() { return null; } } carmetal-4.3/src/com/apple/eawt/ApplicationAdapter.java000066400000000000000000000026711417122252700231760ustar00rootroot00000000000000/* * ApplicationAdapter.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public class ApplicationAdapter implements ApplicationListener { public ApplicationAdapter() { } public void handleAbout(final ApplicationEvent event) { } public void handleOpenApplication(final ApplicationEvent event) { } public void handleOpenFile(final ApplicationEvent event) { } public void handlePreferences(final ApplicationEvent event) { } public void handlePrintFile(final ApplicationEvent event) { } public void handleQuit(final ApplicationEvent event) { } public void handleReOpenApplication(ApplicationEvent event) { } } carmetal-4.3/src/com/apple/eawt/ApplicationBeanInfo.java000066400000000000000000000021641417122252700232740ustar00rootroot00000000000000/* * ApplicationBeanInfo.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public class ApplicationBeanInfo extends java.beans.SimpleBeanInfo { public ApplicationBeanInfo() { } /** * * @param iconKind * @return */ @Override public java.awt.Image getIcon(final int iconKind) { return null; } } carmetal-4.3/src/com/apple/eawt/ApplicationEvent.java000066400000000000000000000021071417122252700226710ustar00rootroot00000000000000/* * ApplicationEvent.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public class ApplicationEvent { public java.lang.String getFilename() { return null; } public boolean isHandled() { return false; } public void setHandled(final boolean state) { } } carmetal-4.3/src/com/apple/eawt/ApplicationListener.java000066400000000000000000000024301417122252700233740ustar00rootroot00000000000000/* * ApplicationListener.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public interface ApplicationListener extends java.util.EventListener { public void handleAbout(ApplicationEvent event); public void handleOpenApplication(ApplicationEvent event); public void handleOpenFile(ApplicationEvent event); public void handlePreferences(ApplicationEvent event); public void handlePrintFile(ApplicationEvent event); public void handleQuit(ApplicationEvent event); } carmetal-4.3/src/com/apple/eawt/CocoaComponent.java000066400000000000000000000026341417122252700223400ustar00rootroot00000000000000/* * CocoaComponent.java * allusionsApp * * Created by Matthieu Cormier on Fri Jun 20 2003. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.apple.eawt; // This is a stub interface for non Mac OS X java 1.4 environments public abstract class CocoaComponent extends java.awt.Canvas { /** * */ private static final long serialVersionUID = 1L; public CocoaComponent() { } public abstract int createNSView(); @Override public abstract java.awt.Dimension getMaximumSize(); /** * * @return */ @Override public abstract java.awt.Dimension getMinimumSize(); /** * * @return */ @Override public abstract java.awt.Dimension getPreferredSize(); public void sendMessage(final int messageID, final java.lang.Object message) { } } carmetal-4.3/src/de/000077500000000000000000000000001417122252700143325ustar00rootroot00000000000000carmetal-4.3/src/de/erichseifert/000077500000000000000000000000001417122252700170065ustar00rootroot00000000000000carmetal-4.3/src/de/erichseifert/vectorgraphics2d/000077500000000000000000000000001417122252700222575ustar00rootroot00000000000000carmetal-4.3/src/de/erichseifert/vectorgraphics2d/DataUtils.java000066400000000000000000000057751417122252700250320ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.util.HashMap; import java.util.Map; /** * Abstract class that contains utility functions for working with data * collections like maps or lists. */ public abstract class DataUtils { /** * Default constructor that prevents creation of class. */ protected DataUtils() { throw new UnsupportedOperationException(); } /** * Creates a mapping from two arrays, one with keys, one with values. * @param Data type of the keys. * @param Data type of the values. * @param keys Array containing the keys. * @param values Array containing the values. * @return Map with keys and values from the specified arrays. */ public static Map map(K[] keys, V[] values) { // Check for valid parameters if (keys.length != values.length) { throw new IllegalArgumentException( "Number of keys and values is different. " + "Cannot create map."); } // Fill map with keys and values Map map = new HashMap(); for (int i = 0; i < keys.length; i++) { K key = keys[i]; V value = values[i]; map.put(key, value); } return map; } /** * Returns a string with all float values divided by a specified separator. * @param separator Separator string. * @param elements Float array. * @return Joined string. */ public static String join(String separator, float... elements) { if (elements == null || elements.length == 0) { return ""; } StringBuffer sb = new StringBuffer(elements.length*3); for (int i = 0; i < elements.length; i++) { if (i > 0) { sb.append(separator); } sb.append(elements[i]); } return sb.toString(); } /** * Returns a string with all float values divided by a specified separator. * @param separator Separator string. * @param elements Double array. * @return Joined string. */ public static String join(String separator, double... elements) { if (elements == null || elements.length == 0) { return ""; } StringBuffer sb = new StringBuffer(elements.length*3); for (int i = 0; i < elements.length; i++) { if (i > 0) { sb.append(separator); } sb.append(elements[i]); } return sb.toString(); } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/EPSGraphics2D.java000066400000000000000000000326261417122252700254310ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Image; import java.awt.Shape; import java.awt.Stroke; import java.awt.geom.AffineTransform; import java.awt.geom.Arc2D; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.awt.geom.PathIterator; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.UnsupportedEncodingException; import java.util.Arrays; import java.util.Map; /** * Graphics2D implementation that saves all operations to a string * in the Encapsulated PostScript® (EPS) format. */ public class EPSGraphics2D extends VectorGraphics2D { /** Constant to convert values from millimeters to PostScript® units (1/72th inch). */ // protected static final double MM_IN_UNITS = 72.0 / 25.4; protected static final double MM_IN_UNITS = 1.0; /** Mapping of stroke endcap values from Java to PostScript®. */ private static final Map STROKE_ENDCAPS = DataUtils.map( new Integer[] { BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE }, new Integer[] { 0, 1, 2 } ); /** Mapping of line join values for path drawing from Java to PostScript®. */ private static final Map STROKE_LINEJOIN = DataUtils.map( new Integer[] { BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL }, new Integer[] { 0, 1, 2 } ); /** * Constructor that initializes a new EPSGraphics2D instance. * The document dimension must be specified as parameters. */ public EPSGraphics2D(double x, double y, double width, double height) { super(x, y, width, height); writeHeader(); } @Override protected void writeString(String str, double x, double y) { // Escape string str = str.replaceAll("\\\\", "\\\\\\\\").replaceAll("\t", "\\\\t") .replaceAll("\b", "\\\\b").replaceAll("\f", "\\\\f") .replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)"); //float fontSize = getFont().getSize2D(); //float leading = getFont().getLineMetrics("", getFontRenderContext()) // .getLeading(); write("gsave 1 -1 scale "); /* // Extract lines String[] lines = str.replaceAll("\r\n", "\n").replaceAll("\r", "\n") .split("\n"); // Output lines for (int i = 0; i < lines.length; i++) { String line = lines[i]; write(x, " -", y + i*fontSize + ((i>0) ? leading : 0f), " M (", line, ") show "); } */ str = str.replaceAll("[\r\n]", ""); write(x, " -", y, " M (", str, ") show "); writeln("grestore"); } @Override public void setStroke(Stroke s) { BasicStroke bsPrev; if (getStroke() instanceof BasicStroke) { bsPrev = (BasicStroke) getStroke(); } else { bsPrev = new BasicStroke(); } super.setStroke(s); if (s instanceof BasicStroke) { BasicStroke bs = (BasicStroke) s; if (bs.getLineWidth() != bsPrev.getLineWidth()) { writeln(bs.getLineWidth(), " setlinewidth"); } if (bs.getLineJoin() != bsPrev.getLineJoin()) { writeln(STROKE_LINEJOIN.get(bs.getLineJoin()), " setlinejoin"); } if (bs.getEndCap() != bsPrev.getEndCap()) { writeln(STROKE_ENDCAPS.get(bs.getEndCap()), " setlinecap"); } if ((!Arrays.equals(bs.getDashArray(), bsPrev.getDashArray())) || (bs.getDashPhase() != bsPrev.getDashPhase())) { writeln("[", DataUtils.join(" ", bs.getDashArray()), "] ", bs.getDashPhase(), " setdash"); } } } @Override protected void writeImage(Image img, int imgWidth, int imgHeight, double x, double y, double width, double height) { BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); String imgData = getEps(bufferedImg); int bands = bufferedImg.getSampleModel().getNumBands(); int bitsPerPixel = (int) Math.ceil( bufferedImg.getColorModel().getPixelSize() / 8.0) * 8; int bitsPerSample = bitsPerPixel / bands; if (bands > 3) { bands = 3; } writeln("gsave"); writeln(x, " ", y, " ", width, " ", height, " ", imgWidth, " ", imgHeight, " ", bitsPerSample, " img false ", bands, " colorimage" ); writeln(imgData, ">"); writeln("grestore"); } @Override public void setColor(Color c) { Color color = getColor(); if (c != null) { super.setColor(c); // TODO Add transparency hints for PDF conversion? /*if (color.getAlpha() != c.getAlpha()) { double a = c.getAlpha()/255.0; writeln("[ /ca ", a, " /SetTransparency pdfmark"); }*/ if (color.getRed() != c.getRed() || color.getGreen() != c.getGreen() || color.getBlue() != c.getBlue()) { double r = c.getRed()/255.0; double g = c.getGreen()/255.0; double b = c.getBlue()/255.0; writeln(r, " ", g, " ", b, " rgb"); } } } @Override public void setFont(Font font) { if (!getFont().equals(font)) { super.setFont(font); writeln("/", font.getPSName(), " ", font.getSize2D(), " selectfont"); } } @Override public void setClip(Shape clip) { if (getClip() != null) { writeln("cliprestore"); } super.setClip(clip); if (getClip() != null) { writeShape(getClip()); writeln(" clip"); } } @Override public void setTransform(AffineTransform tx) { if (getTransform().equals(tx)) { return; } super.setTransform(tx); double[] matrix = new double[6]; getTransform().getMatrix(matrix); writeln("basematrix setmatrix [", DataUtils.join(" ", matrix), "] concat"); } @Override public void translate(double tx, double ty) { super.translate(tx, ty); if ((tx != 0.0) || (ty != 0.0)) { writeln(tx, " ", ty, " translate"); } } @Override public void scale(double sx, double sy) { super.scale(sx, sy); if ((sx != 1.0) || (sy != 1.0)) { writeln(sx, " ", sy, " scale"); } } @Override public void rotate(double theta) { super.rotate(theta); if (theta != 0.0) { writeln(theta/Math.PI*180.0, " rotate"); } } @Override public void rotate(double theta, double x, double y) { super.rotate(theta, x, y); if (theta != 0.0) { writeln(x, " ", y, " translate ", theta/Math.PI*180.0, " rotate ", -x, " ", -y, " translate"); } } @Override public void shear(double sx, double sy) { super.shear(sx, sy); if ((sx != 0.0) || (sy != 0.0)) { setTransform(getTransform()); } } @Override protected void writeHeader() { Rectangle2D bounds = getBounds(); double x = bounds.getX() * MM_IN_UNITS; double y = bounds.getY() * MM_IN_UNITS; double w = bounds.getWidth() * MM_IN_UNITS; double h = bounds.getHeight() * MM_IN_UNITS; writeln("%!PS-Adobe-3.0 EPSF-3.0"); writeln("%%BoundingBox: ", (int) Math.floor(x), " ", (int) Math.floor(y), " ", (int) Math.ceil(x + w), " ", (int) Math.ceil(y + h)); writeln("%%HiResBoundingBox: ", x, " ", y, " ", x + w, " ", y + h); writeln("%%LanguageLevel: 3"); writeln("%%Pages: 1"); writeln("%%Page: 1 1"); // Utility functions writeln("/M /moveto load def"); writeln("/L /lineto load def"); writeln("/C /curveto load def"); writeln("/Z /closepath load def"); writeln("/RL /rlineto load def"); writeln("/rgb /setrgbcolor load def"); writeln("/rect { ", "/height exch def /width exch def /y exch def /x exch def ", "x y M width 0 RL 0 height RL width neg 0 RL ", "} bind def"); writeln("/ellipse { ", "/endangle exch def /startangle exch def ", "/ry exch def /rx exch def /y exch def /x exch def ", "/savematrix matrix currentmatrix def ", "x y translate rx ry scale 0 0 1 startangle endangle arcn ", "savematrix setmatrix ", "} bind def"); writeln("/img { ", "/bits exch def /imgheight exch def /imgwidth exch def ", "/height exch def /width exch def /y exch def /x exch def ", "x y translate width height scale ", "imgwidth imgheight bits [imgwidth 0 0 imgheight 0 0] currentfile ", "/ASCIIHexDecode filter ", "} bind def"); // Set default font writeln("/", getFont().getPSName(), " ", getFont().getSize2D(), " selectfont"); //writeln("<< /AllowTransparency true >> setdistillerparams"); // TODO // Save state writeln("gsave"); // Save state writeln("clipsave"); // Settings writeln("/DeviceRGB setcolorspace"); // Adjust page size and page origin writeln("0 ", h, " translate"); writeln(MM_IN_UNITS, " -", MM_IN_UNITS, " scale"); writeln("/basematrix matrix currentmatrix def"); } /** * Utility method for writing a tag closing fragment for drawing operations. */ @Override protected void writeClosingDraw(Shape s) { writeln(" stroke"); } /** * Utility method for writing a tag closing fragment for filling operations. */ @Override protected void writeClosingFill(Shape s) { // TODO Omit fill operation if paint isn't a Color object writeln(" fill"); if (!(getPaint() instanceof Color)) { super.writeClosingFill(s); } } /** * Utility method for writing an arbitrary shape to. * It tries to translate Java2D shapes to the corresponding EPS shape * commands. */ @Override protected void writeShape(Shape s) { write("newpath "); if (s instanceof Line2D) { Line2D l = (Line2D) s; double x1 = l.getX1(); double y1 = l.getY1(); double x2 = l.getX2(); double y2 = l.getY2(); write(x1, " ", y1, " M ", x2, " ", y2, " L"); return; } else if (s instanceof Rectangle2D) { Rectangle2D r = (Rectangle2D) s; double x = r.getX(); double y = r.getY(); double width = r.getWidth(); double height = r.getHeight(); write(x, " ", y, " ", width, " ", height, " rect Z"); return; } else if (s instanceof Ellipse2D) { Ellipse2D e = (Ellipse2D) s; double x = e.getX() + e.getWidth()/2.0; double y = e.getY() + e.getHeight()/2.0; double rx = e.getWidth()/2.0; double ry = e.getHeight()/2.0; write(x, " ", y, " ", rx, " ", ry, " ", 360.0, " ", 0.0, " ellipse Z"); return; } else if (s instanceof Arc2D) { Arc2D e = (Arc2D) s; double x = (e.getX() + e.getWidth()/2.0); double y = (e.getY() + e.getHeight()/2.0); double rx = e.getWidth()/2.0; double ry = e.getHeight()/2.0; double startAngle = -e.getAngleStart(); double endAngle = -(e.getAngleStart() + e.getAngleExtent()); write(x, " ", y, " ", rx, " ", ry, " ", startAngle, " ", endAngle, " ellipse"); if (e.getArcType() == Arc2D.CHORD) { write(" Z"); } else if (e.getArcType() == Arc2D.PIE) { write(" ", x, " ", y, " L Z"); } return; } else { PathIterator segments = s.getPathIterator(null); double[] coordsCur = new double[6]; double[] pointPrev = new double[2]; for (int i = 0; !segments.isDone(); i++, segments.next()) { if (i > 0) { write(" "); } int segmentType = segments.currentSegment(coordsCur); switch (segmentType) { case PathIterator.SEG_MOVETO: write(coordsCur[0], " ", coordsCur[1], " M"); pointPrev[0] = coordsCur[0]; pointPrev[1] = coordsCur[1]; break; case PathIterator.SEG_LINETO: write(coordsCur[0], " ", coordsCur[1], " L"); pointPrev[0] = coordsCur[0]; pointPrev[1] = coordsCur[1]; break; case PathIterator.SEG_CUBICTO: write(coordsCur[0], " ", coordsCur[1], " ", coordsCur[2], " ", coordsCur[3], " ", coordsCur[4], " ", coordsCur[5], " C"); pointPrev[0] = coordsCur[4]; pointPrev[1] = coordsCur[5]; break; case PathIterator.SEG_QUADTO: double x1 = pointPrev[0] + 2.0/3.0*(coordsCur[0] - pointPrev[0]); double y1 = pointPrev[1] + 2.0/3.0*(coordsCur[1] - pointPrev[1]); double x2 = coordsCur[0] + 1.0/3.0*(coordsCur[2] - coordsCur[0]); double y2 = coordsCur[1] + 1.0/3.0*(coordsCur[3] - coordsCur[1]); double x3 = coordsCur[2]; double y3 = coordsCur[3]; write(x1, " ", y1, " ", x2, " ", y2, " ", x3, " ", y3, " C"); pointPrev[0] = x3; pointPrev[1] = y3; break; case PathIterator.SEG_CLOSE: write("Z"); break; default: throw new IllegalStateException("Unknown path operation."); } } } } public static String getEps(BufferedImage bufferedImg) { int width = bufferedImg.getWidth(); int height = bufferedImg.getHeight(); int bands = bufferedImg.getSampleModel().getNumBands(); StringBuffer str = new StringBuffer(width*height*bands*2); for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { int pixel = bufferedImg.getRGB(x, y) & 0xffffff; if (bands >= 3) { String hex = String.format("%06x", pixel); str.append(hex); } else if (bands == 1) { str.append(String.format("%02x", pixel)); } } str.append("\n"); } return str.toString(); } @Override protected String getFooter() { return "grestore % Restore state\n%%EOF\n"; } @Override public byte[] getBytes() { try { return toString().getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException e) { return super.getBytes(); } } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/GraphicsUtils.java000066400000000000000000000102641417122252700257060ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.awt.Graphics; import java.awt.GraphicsConfiguration; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.HeadlessException; import java.awt.Image; import java.awt.Transparency; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.PixelGrabber; import javax.swing.ImageIcon; /** * Abstract class that contains utility functions for working with graphics. * For example, this includes font handling. */ public abstract class GraphicsUtils { /** * Default constructor that prevents creation of class. */ protected GraphicsUtils() { throw new UnsupportedOperationException(); } /** * This method returns true if the specified image * has transparent pixels. * Taken from http://www.exampledepot.com/egs/java.awt.image/HasAlpha.html * @param image * @return true if the specified image has transparent pixels, * false otherwise */ public static boolean hasAlpha(Image image) { // If buffered image, the color model is readily available if (image instanceof BufferedImage) { BufferedImage bimage = (BufferedImage) image; return bimage.getColorModel().hasAlpha(); } // Use a pixel grabber to retrieve the image's color model; // grabbing a single pixel is usually sufficient PixelGrabber pg = new PixelGrabber(image, 0, 0, 1, 1, false); try { pg.grabPixels(); } catch (InterruptedException e) { } // Get the image's color model ColorModel cm = pg.getColorModel(); return cm.hasAlpha(); } /** * This method returns a buffered image with the contents of an image. * Taken from http://www.exampledepot.com/egs/java.awt.image/Image2Buf.html * @param image Image ot be converted * @return a buffered image with the contents of the specified image */ public static BufferedImage toBufferedImage(Image image) { if (image instanceof BufferedImage) { return (BufferedImage) image; } // This code ensures that all the pixels in the image are loaded image = new ImageIcon(image).getImage(); // Determine if the image has transparent pixels boolean hasAlpha = hasAlpha(image); // Create a buffered image with a format that's compatible with the // screen BufferedImage bimage = null; GraphicsEnvironment ge = GraphicsEnvironment .getLocalGraphicsEnvironment(); try { // Determine the type of transparency of the new buffered image int transparency = Transparency.OPAQUE; if (hasAlpha) { transparency = Transparency.BITMASK; } // Create the buffered image GraphicsDevice gs = ge.getDefaultScreenDevice(); GraphicsConfiguration gc = gs.getDefaultConfiguration(); bimage = gc.createCompatibleImage( image.getWidth(null), image.getHeight(null), transparency); } catch (HeadlessException e) { // The system does not have a screen bimage = null; } if (bimage == null) { // Create a buffered image using the default color model int type = BufferedImage.TYPE_INT_RGB; if (hasAlpha) { type = BufferedImage.TYPE_INT_ARGB; } bimage = new BufferedImage( image.getWidth(null), image.getHeight(null), type); } // Copy image to buffered image Graphics g = bimage.createGraphics(); // Paint the image onto the buffered image g.drawImage(image, 0, 0, null); g.dispose(); return bimage; } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/PDFGraphics2D.java000066400000000000000000000453631417122252700254150ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.Image; import java.awt.Shape; import java.awt.Stroke; import java.awt.geom.AffineTransform; import java.awt.geom.Line2D; import java.awt.geom.PathIterator; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.UnsupportedEncodingException; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.Map; import java.util.TreeMap; import rene.zirkel.objects.AngleObject; /** * Graphics2D implementation that saves all operations to a string * in the Portable Document Format (PDF). */ public class PDFGraphics2D extends VectorGraphics2D { /** Prefix string for PDF font resource ids. */ protected static final String FONT_RESOURCE_PREFIX = "F"; /** Prefix string for PDF image resource ids. */ protected static final String IMAGE_RESOURCE_PREFIX = "Im"; /** Prefix string for PDF transparency resource ids. */ protected static final String TRANSPARENCY_RESOURCE_PREFIX = "T"; /** Constant to convert values from millimeters to PostScript®/PDF units (1/72th inch). */ protected static final double MM_IN_UNITS = 72.0 / 25.4; /** Mapping of stroke endcap values from Java to PDF. */ private static final Map STROKE_ENDCAPS = DataUtils.map( new Integer[] { BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE }, new Integer[] { 0, 1, 2 } ); /** Mapping of line join values for path drawing from Java to PDF. */ private static final Map STROKE_LINEJOIN = DataUtils.map( new Integer[] { BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL }, new Integer[] { 0, 1, 2 } ); /** Id of the current PDF object. */ private int curObjId; /** Mapping from objects to file positions. */ private final Map objPositions; /** Mapping from transparency levels to transparency resource ids. */ private final Map transpResources; /** Mapping from image data to image resource ids. */ private final Map imageResources; /** Mapping from font objects to font resource ids. */ private final Map fontResources; /** File position of the actual content. */ private int contentStart; /** * Constructor that initializes a new PDFGraphics2D instance. * The document dimension must be specified as parameters. */ public PDFGraphics2D(double x, double y, double width, double height) { super(x, y, width, height); curObjId = 1; objPositions = new TreeMap(); transpResources = new TreeMap(); imageResources = new LinkedHashMap(); fontResources = new LinkedHashMap(); writeHeader(); } @Override protected void writeString(String str, double x, double y) { // Escape string str = str.replaceAll("\\\\", "\\\\\\\\") .replaceAll("\t", "\\\\t").replaceAll("\b", "\\\\b").replaceAll("\f", "\\\\f") .replaceAll("\\(", "\\\\(").replaceAll("\\)", "\\\\)"); x+=getTransform().getTranslateX(); y+=getTransform().getTranslateY(); float fontSize = getFont().getSize2D(); //float leading = getFont().getLineMetrics("", getFontRenderContext()).getLeading(); // Start text and save current graphics state writeln("q BT"); String fontResourceId = getFontResource(getFont()); writeln("/", fontResourceId, " ", fontSize, " Tf"); // Set leading //writeln(fontSize + leading, " TL"); // Undo swapping of y axis for text writeln("1 0 0 -1 ", x, " ", y, " cm"); /* // Extract lines String[] lines = str.replaceAll("\r\n", "\n").replaceAll("\r", "\n").split("\n"); // Paint lines for (int i = 0; i < lines.length; i++) { writeln("(", lines[i], ") ", (i == 0) ? "Tj" : "'"); }*/ str = str.replaceAll("[\r\n]", ""); writeln("(", str, ") Tj"); // End text and restore previous graphics state writeln("ET Q"); } @Override public void setStroke(Stroke s) { BasicStroke bsPrev; if (getStroke() instanceof BasicStroke) { bsPrev = (BasicStroke) getStroke(); } else { bsPrev = new BasicStroke(); } super.setStroke(s); if (s instanceof BasicStroke) { BasicStroke bs = (BasicStroke) s; if (bs.getLineWidth() != bsPrev.getLineWidth()) { writeln(bs.getLineWidth(), " w"); } if (bs.getLineJoin() != bsPrev.getLineJoin()) { writeln(STROKE_LINEJOIN.get(bs.getLineJoin()), " j"); } if (bs.getEndCap() != bsPrev.getEndCap()) { writeln(STROKE_ENDCAPS.get(bs.getEndCap()), " J"); } if ((!Arrays.equals(bs.getDashArray(), bsPrev.getDashArray())) || (bs.getDashPhase() != bsPrev.getDashPhase())) { writeln("[", DataUtils.join(" ", bs.getDashArray()), "] ", bs.getDashPhase(), " d"); } } } @Override protected void writeImage(Image img, int imgWidth, int imgHeight, double x, double y, double width, double height) { BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); String imageResourceId = getImageResource(bufferedImg); // Save graphics state write("q "); // Take current transformations into account AffineTransform txCurrent = getTransform(); if (!txCurrent.isIdentity()) { double[] matrix = new double[6]; txCurrent.getMatrix(matrix); write(DataUtils.join(" ", matrix), " cm "); } // Move image to correct position and scale it to (width, height) write(width, " 0 0 ", height, " ", x, " ", y, " cm "); // Swap y axis write("1 0 0 -1 0 1 cm "); // Draw image write("/", imageResourceId, " Do "); // Restore old graphics state writeln("Q"); } @Override public void setColor(Color c) { Color color = getColor(); if (c != null) { super.setColor(c); if (color.getAlpha() != c.getAlpha()) { // Add a new graphics state to resources double a = c.getAlpha()/255.0; String transpResourceId = getTransparencyResource(a); writeln("/", transpResourceId, " gs"); } if (color.getRed() != c.getRed() || color.getGreen() != c.getGreen() || color.getBlue() != c.getBlue()) { double r = c.getRed()/255.0; double g = c.getGreen()/255.0; double b = c.getBlue()/255.0; write(r, " ", g, " ", b, " rg "); writeln(r, " ", g, " ", b, " RG"); } } } @Override public void setClip(Shape clip) { if (getClip() != null) { writeln("Q"); } super.setClip(clip); if (getClip() != null) { writeln("q"); writeShape(getClip()); writeln(" W n"); } } // TODO Correct transformations /* @Override protected void setAffineTransform(AffineTransform tx) { if (getTransform().equals(tx)) { return; } // Undo previous transforms if (isTransformed()) { writeln("Q"); } // Set new transform super.setAffineTransform(tx); // Write transform to document if (isTransformed()) { writeln("q"); double[] matrix = new double[6]; getTransform().getMatrix(matrix); writeln(DataUtils.join(" ", matrix), " cm"); } } //*/ @Override protected void writeHeader() { Rectangle2D bounds = getBounds(); int x = (int) Math.floor(bounds.getX() * MM_IN_UNITS); int y = (int) Math.floor(bounds.getY() * MM_IN_UNITS); int w = (int) Math.ceil(bounds.getWidth() * MM_IN_UNITS); int h = (int) Math.ceil(bounds.getHeight() * MM_IN_UNITS); writeln("%PDF-1.4"); // Object 1 writeObj( "Type", "/Catalog", "Pages", "2 0 R" ); // Object 2 writeObj( "Type", "/Pages", "Kids", "[3 0 R]", "Count", "1" ); // Object 3 writeObj( "Type", "/Page", "Parent", "2 0 R", "MediaBox", String.format("[%d %d %d %d]", x, y, w, h), "Contents", "4 0 R", "Resources", "6 0 R" ); // Object 5 writeln(nextObjId(size()), " 0 obj"); writeDict("Length", "5 0 R"); writeln("stream"); contentStart = size(); writeln("q"); // Adjust page size and page origin writeln(MM_IN_UNITS, " 0 0 ", -MM_IN_UNITS, " 0 ", h, " cm"); } /** * Write a PDF dictionary from the specified collection of objects. * The passed objects are converted to strings. Every object with odd * position is used as key, every object with even position is used * as value. * @param strs Objects to be written to dictionary */ protected void writeDict(Object... strs) { writeln("<<"); for (int i = 0; i < strs.length; i += 2) { writeln("/", strs[i], " ", strs[i + 1]); } writeln(">>"); } /** * Write a collection of elements to the document stream as PDF object. * The passed objects are converted to strings. * @param strs Objects to be written to the document stream. * @return Id of the PDF object that was written. */ protected int writeObj(Object... strs) { int objId = nextObjId(size()); writeln(objId, " 0 obj"); writeDict(strs); writeln("endobj"); return objId; } /** * Returns the next PDF object id without incrementing. * @return Next PDF object id. */ protected int peekObjId() { return curObjId + 1; } /** * Returns a new PDF object id with every call. * @param position File position of the object. * @return A new PDF object id. */ private int nextObjId(int position) { objPositions.put(curObjId, position); return curObjId++; } /** * Returns the resource for the specified transparency level. * @param a Transparency level. * @return A new PDF object id. */ protected String getTransparencyResource(double a) { String name = transpResources.get(a); if (name == null) { name = String.format("%s%d", TRANSPARENCY_RESOURCE_PREFIX, transpResources.size() + 1); transpResources.put(a, name); } return name; } /** * Returns the resource for the specified image data. * @param bufferedImg Image object with data. * @return A new PDF object id. */ protected String getImageResource(BufferedImage bufferedImg) { String name = imageResources.get(bufferedImg); if (name == null) { name = String.format("%s%d", IMAGE_RESOURCE_PREFIX, imageResources.size() + 1); imageResources.put(bufferedImg, name); } return name; } /** * Returns the resource describing the specified font. * @param font Font to be described. * @return A new PDF object id. */ protected String getFontResource(Font font) { String name = fontResources.get(font); if (name == null) { name = String.format("%s%d", FONT_RESOURCE_PREFIX, fontResources.size() + 1); fontResources.put(font, name); } return name; } /** * Utility method for writing a tag closing fragment for drawing * operations. */ @Override protected void writeClosingDraw(Shape s) { writeln(" S"); } /** * Utility method for writing a tag closing fragment for filling * operations. */ @Override protected void writeClosingFill(Shape s) { writeln(" f"); if (!(getPaint() instanceof Color)) { super.writeClosingFill(s); } } /** * Utility method for writing an arbitrary shape to. * It tries to translate Java2D shapes to the corresponding PDF shape * commands. */ @Override protected void writeShape(Shape s) { // TODO Correct transformations // if (s instanceof Line2D) { // Line2D l = (Line2D) s; // double x1 = l.getX1(); // double y1 = l.getY1(); // double x2 = l.getX2(); // double y2 = l.getY2(); // write(x1, " ", y1, " m ", x2, " ", y2, " l"); // } else if (s instanceof Rectangle2D) { // Rectangle2D r = (Rectangle2D) s; // double x = r.getX(); // double y = r.getY(); // double width = r.getWidth(); // double height = r.getHeight(); // write(x, " ", y, " ", width, " ", height, " re"); // } else { s = getTransform().createTransformedShape(s); PathIterator segments = s.getPathIterator(null); double[] coordsCur = new double[6]; double[] pointPrev = new double[2]; for (int i = 0; !segments.isDone(); i++, segments.next()) { if (i > 0) { write(" "); } int segmentType = segments.currentSegment(coordsCur); switch (segmentType) { case PathIterator.SEG_MOVETO: write(coordsCur[0], " ", coordsCur[1], " m"); pointPrev[0] = coordsCur[0]; pointPrev[1] = coordsCur[1]; break; case PathIterator.SEG_LINETO: write(coordsCur[0], " ", coordsCur[1], " l"); pointPrev[0] = coordsCur[0]; pointPrev[1] = coordsCur[1]; break; case PathIterator.SEG_CUBICTO: write(coordsCur[0], " ", coordsCur[1], " ", coordsCur[2], " ", coordsCur[3], " ", coordsCur[4], " ", coordsCur[5], " c"); pointPrev[0] = coordsCur[4]; pointPrev[1] = coordsCur[5]; break; case PathIterator.SEG_QUADTO: double x1 = pointPrev[0] + 2.0/3.0*(coordsCur[0] - pointPrev[0]); double y1 = pointPrev[1] + 2.0/3.0*(coordsCur[1] - pointPrev[1]); double x2 = coordsCur[0] + 1.0/3.0*(coordsCur[2] - coordsCur[0]); double y2 = coordsCur[1] + 1.0/3.0*(coordsCur[3] - coordsCur[1]); double x3 = coordsCur[2]; double y3 = coordsCur[3]; write(x1, " ", y1, " ", x2, " ", y2, " ", x3, " ", y3, " c"); pointPrev[0] = x3; pointPrev[1] = y3; break; case PathIterator.SEG_CLOSE: write("h"); break; default: throw new IllegalStateException("Unknown path operation."); } } } } /** * Returns a string which represents the data of the specified image. * @param bufferedImg Image to convert. * @return String with image data. */ private String getPdf(BufferedImage bufferedImg) { int width = bufferedImg.getWidth(); int height = bufferedImg.getHeight(); int bands = bufferedImg.getSampleModel().getNumBands(); StringBuffer str = new StringBuffer(width*height*bands*2); for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { int pixel = bufferedImg.getRGB(x, y) & 0xffffff; if (bands >= 3) { String hex = String.format("%06x", pixel); str.append(hex); } else if (bands == 1) { str.append(String.format("%02x", pixel)); } } str.append('\n'); } return str.append('>').toString(); } @Override protected String getFooter() { StringBuffer footer = new StringBuffer(); // TODO Correct transformations /*if (isTransformed()) { footer.append("Q\n"); }*/ if (getClip() != null) { footer.append("Q\n"); } footer.append("Q"); int contentEnd = size() + footer.length(); footer.append('\n'); footer.append("endstream\n"); footer.append("endobj\n"); int lenObjId = nextObjId(size() + footer.length()); footer.append(lenObjId).append(" 0 obj\n"); footer.append(contentEnd - contentStart).append('\n'); footer.append("endobj\n"); int resourcesObjId = nextObjId(size() + footer.length()); footer.append(resourcesObjId).append(" 0 obj\n"); footer.append("<<\n"); footer.append(" /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n"); // Add resources for fonts if (!fontResources.isEmpty()) { footer.append(" /Font <<\n"); for (Map.Entry entry : fontResources.entrySet()) { Font font = entry.getKey(); String resourceId = entry.getValue(); footer.append(" /").append(resourceId) .append(" << /Type /Font") .append(" /Subtype /").append("TrueType") .append(" /BaseFont /").append(font.getPSName()) .append(" /Encoding /").append("WinAnsiEncoding") .append(" >>\n"); } footer.append(" >>\n"); } // Add resources for images if (!imageResources.isEmpty()) { footer.append(" /XObject <<\n"); int objIdOffset = 0; for (Map.Entry entry : imageResources.entrySet()) { String resourceId = entry.getValue(); footer.append(" /").append(resourceId).append(' ') .append(curObjId + objIdOffset).append(" 0 R\n"); objIdOffset++; } footer.append(" >>\n"); } // Add resources for transparency levels if (!transpResources.isEmpty()) { footer.append(" /ExtGState <<\n"); for (Map.Entry entry : transpResources.entrySet()) { Double alpha = entry.getKey(); String resourceId = entry.getValue(); footer.append(" /").append(resourceId) .append(" << /Type /ExtGState") .append(" /ca ").append(alpha).append(" /CA ").append(alpha) .append(" >>\n"); } footer.append(" >>\n"); } footer.append(">>\n"); footer.append("endobj\n"); // Add data of images for (BufferedImage image : imageResources.keySet()) { int imageObjId = nextObjId(size() + footer.length()); footer.append(imageObjId).append(" 0 obj\n"); footer.append("<<\n"); String imageData = getPdf(image); footer.append("/Type /XObject\n") .append("/Subtype /Image\n") .append("/Width ").append(image.getWidth()).append('\n') .append("/Height ").append(image.getHeight()).append('\n') .append("/ColorSpace /DeviceRGB\n") .append("/BitsPerComponent 8\n") .append("/Length ").append(imageData.length()).append('\n') .append("/Filter /ASCIIHexDecode\n") .append(">>\n") .append("stream\n") .append(imageData) .append("\nendstream\n") .append("endobj\n"); } int objs = objPositions.size() + 1; int xrefPos = size() + footer.length(); footer.append("xref\n"); footer.append("0 ").append(objs).append('\n'); // lines of xref entries must must be exactly 20 bytes long // (including line break) and thus end with footer.append(String.format("%010d %05d", 0, 65535)).append(" f \n"); for (int pos : objPositions.values()) { footer.append(String.format("%010d %05d", pos, 0)).append(" n \n"); } footer.append("trailer\n"); footer.append("<<\n"); footer.append("/Size ").append(objs).append('\n'); footer.append("/Root 1 0 R\n"); footer.append(">>\n"); footer.append("startxref\n"); footer.append(xrefPos).append('\n'); footer.append("%%EOF\n"); return footer.toString(); } @Override public String toString() { String doc = super.toString(); //doc = doc.replaceAll("q\n[0-9]+\\.?[0-9]* [0-9]+\\.?[0-9]* [0-9]+\\.?[0-9]* [0-9]+\\.?[0-9]* [0-9]+\\.?[0-9]* [0-9]+\\.?[0-9]* cm\nQ\n", ""); return doc; } @Override public byte[] getBytes() { try { return toString().getBytes("ISO-8859-1"); } catch (UnsupportedEncodingException e) { return super.getBytes(); } } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/SVGGraphics2D.java000066400000000000000000000261741417122252700254420ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Image; import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.awt.geom.Path2D; import java.awt.geom.PathIterator; import java.awt.geom.Rectangle2D; import java.awt.geom.RoundRectangle2D; import java.awt.image.BufferedImage; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Map; import javax.imageio.ImageIO; import javax.xml.bind.DatatypeConverter; /** * Graphics2D implementation that saves all operations to a string * in the Scaled Vector Graphics (SVG) format. */ public class SVGGraphics2D extends VectorGraphics2D { /** Mapping of stroke endcap values from Java to SVG. */ private static final Map STROKE_ENDCAPS = DataUtils.map( new Integer[] { BasicStroke.CAP_BUTT, BasicStroke.CAP_ROUND, BasicStroke.CAP_SQUARE }, new String[] { "butt", "round", "square" } ); /** Mapping of line join values for path drawing from Java to SVG. */ private static final Map STROKE_LINEJOIN = DataUtils.map( new Integer[] { BasicStroke.JOIN_MITER, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL }, new String[] { "miter", "round", "bevel" } ); /** Prefix string for ids of clipping paths. */ private static final String CLIP_PATH_ID = "clip"; /** Number of the current clipping path. */ private long clipCounter; /** * Constructor that initializes a new SVGGraphics2D instance. * The document dimension must be specified as parameters. */ public SVGGraphics2D(double x, double y, double width, double height) { super(x, y, width, height); writeHeader(); } @Override protected void writeString(String str, double x, double y) { // Escape string str = str.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">"); float fontSize = getFont().getSize2D(); //float leading = getFont().getLineMetrics("", getFontRenderContext()).getLeading(); /* // Extract lines String[] lines = str.replaceAll("\r\n", "\n").replaceAll("\r", "\n").split("\n"); // Output lines writeln(""); for (int i = 0; i < lines.length; i++) { String line = lines[i]; writeln(" 0) ? leading : 0f), "\">", line, ""); } writeln(""); */ str = str.replaceAll("[\r\n]", ""); writeln("", str, ""); } @Override protected void writeImage(Image img, int imgWidth, int imgHeight, double x, double y, double width, double height) { BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); String imgData = getSvg(bufferedImg); write(""); } @Override public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) { Path2D s = new Path2D.Double(Path2D.WIND_NON_ZERO, xPoints.length); write(""); writeShape(getClip()); writeln("/>"); writeln(""); } } @Override protected void setAffineTransform(AffineTransform tx) { if (getTransform().equals(tx)) { return; } // Close previous transformation group if (isTransformed()) { writeln(""); } // Set transformation matrix super.setAffineTransform(tx); // Begin new transformation group if (isTransformed()) { double[] matrix = new double[6]; getTransform().getMatrix(matrix); write(""); } } @Override protected void writeHeader() { Rectangle2D bounds = getBounds(); double x = bounds.getX(); double y = bounds.getY(); double w = bounds.getWidth(); double h = bounds.getHeight(); writeln(""); writeln(""); writeln(""); writeln(""); } @Override protected void writeClosingDraw(Shape s) { write("style=\"fill:none;stroke:", getSvg(getColor())); if (getStroke() instanceof BasicStroke) { BasicStroke stroke = (BasicStroke) getStroke(); if (stroke.getLineWidth() != 1f) { write(";stroke-width:", stroke.getLineWidth()); } if (stroke.getEndCap() != BasicStroke.CAP_BUTT) { write(";stroke-linecap:", STROKE_ENDCAPS.get(stroke.getEndCap())); } if (stroke.getLineJoin() != BasicStroke.JOIN_MITER) { write(";stroke-linejoin:", STROKE_LINEJOIN.get(stroke.getLineJoin())); } //write(";stroke-miterlimit:", s.getMiterLimit()); if (stroke.getDashArray() != null && stroke.getDashArray().length > 0) { write(";stroke-dasharray:", DataUtils.join(",", stroke.getDashArray())); write(";stroke-dashoffset:", stroke.getDashPhase()); } } if (getClip() != null) { write("\" clip-path=\"url(#", CLIP_PATH_ID, clipCounter, ")"); } writeln("\" />"); } @Override protected void writeClosingFill(Shape s) { if (getPaint() instanceof Color) { write("style=\"fill:", getSvg(getColor()), ";stroke:none"); if (getClip() != null) { write("\" clip-path=\"url(#", CLIP_PATH_ID, clipCounter, ")"); } writeln("\" />"); } else { write("style=\"stroke:none\" />"); super.writeClosingFill(s); } } @Override protected void writeShape(Shape s) { if (s instanceof Line2D) { Line2D l = (Line2D) s; double x1 = l.getX1(); double y1 = l.getY1(); double x2 = l.getX2(); double y2 = l.getY2(); write(" 0) { write(" "); } int segmentType = segments.currentSegment(coords); switch (segmentType) { case PathIterator.SEG_MOVETO: write("M", coords[0], ",", coords[1]); break; case PathIterator.SEG_LINETO: write("L", coords[0], ",", coords[1]); break; case PathIterator.SEG_CUBICTO: write("C", coords[0], ",", coords[1], " ", coords[2], ",", coords[3], " ", coords[4], ",", coords[5]); break; case PathIterator.SEG_QUADTO: write("Q", coords[0], ",", coords[1], " ", coords[2], ",", coords[3]); break; case PathIterator.SEG_CLOSE: write("Z"); break; default: throw new IllegalStateException("Unknown path operation."); } } write("\" "); } } private static String getSvg(Color c) { String color = "rgb(" + c.getRed() + "," + c.getGreen() + "," + c.getBlue() + ")"; if (c.getAlpha() < 255) { double opacity = c.getAlpha()/255.0; color += ";opacity:" + opacity; } return color; } private static String getSvg(BufferedImage bufferedImg) { ByteArrayOutputStream data = new ByteArrayOutputStream(); try { ImageIO.write(bufferedImg, "png", data); } catch (IOException e) { return ""; } String dataBase64 = DatatypeConverter .printBase64Binary(data.toByteArray()); return "data:image/png;base64," + dataBase64; } @Override protected String getFooter() { String footer = ""; // Close any previous transformation groups if (isTransformed()) { footer += "\n"; } footer += "\n"; return footer; } @Override public String toString() { String doc = super.toString(); doc = doc.replaceAll("\n", ""); return doc; } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/VectorGraphics2D.java000066400000000000000000000621401417122252700262360ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ package de.erichseifert.vectorgraphics2d; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Composite; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GraphicsConfiguration; import java.awt.Image; import java.awt.MultipleGradientPaint; import java.awt.Paint; import java.awt.Rectangle; import java.awt.RenderingHints; import java.awt.Shape; import java.awt.Stroke; import java.awt.font.FontRenderContext; import java.awt.font.GlyphVector; import java.awt.font.TextLayout; import java.awt.geom.AffineTransform; import java.awt.geom.Arc2D; import java.awt.geom.Area; import java.awt.geom.Ellipse2D; import java.awt.geom.Line2D; import java.awt.geom.Path2D; import java.awt.geom.Rectangle2D; import java.awt.geom.RoundRectangle2D; import java.awt.image.AffineTransformOp; import java.awt.image.BufferedImage; import java.awt.image.BufferedImageOp; import java.awt.image.ImageObserver; import java.awt.image.RenderedImage; import java.awt.image.renderable.RenderableImage; import java.io.UnsupportedEncodingException; import java.text.AttributedCharacterIterator; import java.util.HashMap; import java.util.Locale; import java.util.Map; /** * Base for classed that want to implement vector export. * @author Erich Seifert */ public abstract class VectorGraphics2D extends Graphics2D { /** Constants to define how fonts are rendered. */ public static enum FontRendering { /** Constant indicating that fonts should be rendered as text objects. */ TEXT, /** Constant indicating that fonts should be converted to vectors. */ VECTORS } /** Maximal resolution for image rastering. */ private static final int DEFAULT_PAINT_IMAGE_SIZE_MAXIMUM = 128; /** Document contents. */ private final StringBuffer document; /** Rectangular bounds of the documents. */ private final Rectangle2D bounds; /** Resolution in dots per inch that is used to raster paints. */ private double resolution; /** Maximal size of images that are used to raster paints. */ private int rasteredImageSizeMaximum; /** Font rendering mode. */ private FontRendering fontRendering; /** Flag that stores whether affine transformations have been applied. */ private boolean transformed; /** Rendering hints. */ private final RenderingHints hints; /** Current background color. */ private Color background; /** Current foreground color. */ private Color color; /** Shape used for clipping paint operations. */ private Shape clip; /** Method used for compositing. */ private Composite composite; /** Device configuration settings. */ private final GraphicsConfiguration deviceConfig; /** Current font. */ private Font font; /** Context settings used to render fonts. */ private final FontRenderContext fontRenderContext; /** Paint used to fill shapes. */ private Paint paint; /** Stroke used for drawing shapes. */ private Stroke stroke; /** Current transformation matrix. */ private final AffineTransform transform; /** XOR mode used for rendering. */ private Color xorMode; /** * Constructor to initialize a new {@code VectorGraphics2D} document. * The dimensions of the document must be passed. * @param x Horizontal position of document origin. * @param y Vertical position of document origin. * @param width Width of document. * @param height Height of document. */ public VectorGraphics2D(double x, double y, double width, double height) { hints = new RenderingHints(new HashMap()); document = new StringBuffer(); bounds = new Rectangle2D.Double(x, y, width, height); fontRendering = FontRendering.TEXT; resolution = 72.0; rasteredImageSizeMaximum = DEFAULT_PAINT_IMAGE_SIZE_MAXIMUM; background = Color.WHITE; color = Color.BLACK; composite = AlphaComposite.getInstance(AlphaComposite.CLEAR); deviceConfig = null; font = Font.decode(null); fontRenderContext = new FontRenderContext(null, false, true); paint = color; stroke = new BasicStroke(1f); transform = new AffineTransform(); transformed = false; xorMode = Color.BLACK; } @Override public void addRenderingHints(Map hints) { this.hints.putAll(hints); } @Override public void clip(Shape s) { if ((getClip() != null) && (s != null)) { Area clipAreaOld = new Area(getClip()); Area clipAreaNew = new Area(s); clipAreaNew.intersect(clipAreaOld); s = clipAreaNew; } setClip(s); } @Override public void draw(Shape s) { writeShape(s); writeClosingDraw(s); } @Override public void drawGlyphVector(GlyphVector g, float x, float y) { draw(g.getOutline(x, y)); } @Override public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) { BufferedImage bimg = getTransformedImage(img, xform); drawImage(bimg, null, bimg.getMinX(), bimg.getMinY()); return true; } @Override public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y) { if (op != null) { img = op.filter(img, null); } drawImage(img, x, y, img.getWidth(), img.getHeight(), null); } @Override public void drawRenderableImage(RenderableImage img, AffineTransform xform) { drawRenderedImage(img.createDefaultRendering(), xform); } @Override public void drawRenderedImage(RenderedImage img, AffineTransform xform) { // TODO Implement //throw new UnsupportedOperationException("Rendered images aren't supported."); } @Override public void drawString(String str, int x, int y) { drawString(str, (float) x, (float) y); } @Override public void drawString(String str, float x, float y) { if (str != null && str.trim().isEmpty()) { return; } switch (getFontRendering()) { case VECTORS: TextLayout layout = new TextLayout(str, getFont(), getFontRenderContext()); Shape s = layout.getOutline( AffineTransform.getTranslateInstance(x, y)); fill(s); break; case TEXT: writeString(str, x, y); break; default: throw new IllegalStateException("Unknown font rendering mode."); } } @Override public void drawString(AttributedCharacterIterator iterator, int x, int y) { drawString(iterator, (float) x, (float) y); } @Override public void drawString(AttributedCharacterIterator iterator, float x, float y) { // TODO Take text formatting into account StringBuffer buf = new StringBuffer(); for (char c = iterator.first(); c != AttributedCharacterIterator.DONE; c = iterator.next()) { buf.append(c); } drawString(buf.toString(), x, y); } @Override public void fill(Shape s) { writeShape(s); writeClosingFill(s); } @Override public Color getBackground() { return background; } @Override public Composite getComposite() { return composite; } @Override public GraphicsConfiguration getDeviceConfiguration() { return deviceConfig; } @Override public FontRenderContext getFontRenderContext() { return fontRenderContext; } @Override public Paint getPaint() { return paint; } @Override public Object getRenderingHint(RenderingHints.Key hintKey) { if (RenderingHints.KEY_ANTIALIASING.equals(hintKey)) { return RenderingHints.VALUE_ANTIALIAS_OFF; } else if (RenderingHints.KEY_TEXT_ANTIALIASING.equals(hintKey)) { return RenderingHints.VALUE_TEXT_ANTIALIAS_OFF; } else if (RenderingHints.KEY_FRACTIONALMETRICS.equals(hintKey)) { return RenderingHints.VALUE_FRACTIONALMETRICS_ON; } return hints.get(hintKey); } @Override public RenderingHints getRenderingHints() { return hints; } @Override public Stroke getStroke() { return stroke; } @Override public boolean hit(Rectangle rect, Shape s, boolean onStroke) { if (onStroke) { Shape sStroke = getStroke().createStrokedShape(s); return sStroke.intersects(rect); } else { return s.intersects(rect); } } @Override public void setBackground(Color color) { background = color; } @Override public void setComposite(Composite comp) { composite = comp; } @Override public void setPaint(Paint paint) { if (paint != null) { this.paint = paint; if (paint instanceof Color) { setColor((Color) paint); } else if (paint instanceof MultipleGradientPaint) { // Set brightest or least opaque color for gradients Color[] colors = ((MultipleGradientPaint) paint).getColors(); if (colors.length == 1) { setColor(colors[0]); } else if (colors.length > 1) { Color colLight = colors[0]; float brightness = getBrightness(colLight); int alpha = colLight.getAlpha(); for (int i = 1; i < colors.length; i++) { Color c = colors[i]; float b = getBrightness(c); int a = c.getAlpha(); if (b < brightness || a < alpha) { colLight = c; brightness = b; } } setColor(colLight); } } } } /** * Utility method to get the brightness of a specified color. * @param c Color. * @return Brightness value between 0f (black) and 1f (white). */ private static float getBrightness(Color c) { return Color.RGBtoHSB(c.getRed(), c.getGreen(), c.getBlue(), null)[2]; } @Override public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue) { hints.put(hintKey, hintValue); } @Override public void setRenderingHints(Map hints) { this.hints.putAll(hints); } @Override public void setStroke(Stroke s) { stroke = s; } @Override public AffineTransform getTransform() { return new AffineTransform(transform); } @Override public void setTransform(AffineTransform tx) { setAffineTransform(tx); } /** * Sets the current transformation. * @param tx Current transformation */ protected void setAffineTransform(AffineTransform tx) { if (!transform.equals(tx)) { transform.setTransform(tx); transformed = true; } } @Override public void shear(double shx, double shy) { AffineTransform transform = getTransform(); transform.shear(shx, shy); setAffineTransform(transform); } @Override public void transform(AffineTransform tx) { AffineTransform transform = getTransform(); transform.concatenate(tx); setAffineTransform(transform); } @Override public void translate(int x, int y) { translate((double) x, (double) y); } @Override public void translate(double tx, double ty) { AffineTransform transform = getTransform(); transform.translate(tx, ty); setAffineTransform(transform); } @Override public void rotate(double theta) { AffineTransform transform = getTransform(); transform.rotate(theta); setAffineTransform(transform); } @Override public void rotate(double theta, double x, double y) { AffineTransform transform = getTransform(); transform.rotate(theta, x, y); setAffineTransform(transform); } @Override public void scale(double sx, double sy) { AffineTransform transform = getTransform(); transform.scale(sx, sy); setAffineTransform(transform); } @Override public void clearRect(int x, int y, int width, int height) { // TODO Implement //throw new UnsupportedOperationException("clearRect() isn't supported by VectorGraphics2D."); } @Override public void clipRect(int x, int y, int width, int height) { clip(new Rectangle(x, y, width, height)); } @Override public void copyArea(int x, int y, int width, int height, int dx, int dy) { // TODO Implement //throw new UnsupportedOperationException("copyArea() isn't supported by VectorGraphics2D."); } @Override public Graphics create() { // TODO Implement return this; } @Override public void dispose() { // TODO Implement } @Override public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { draw(new Arc2D.Double(x, y, width, height, startAngle, arcAngle, Arc2D.OPEN)); } @Override public boolean drawImage(Image img, int x, int y, ImageObserver observer) { return drawImage(img, x, y, img.getWidth(observer), img.getHeight(observer), observer); } @Override public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) { return drawImage(img, x, y, img.getWidth(observer), img.getHeight(observer), observer); } @Override public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) { int imgWidth = img.getWidth(observer); int imgHeight = img.getHeight(observer); writeImage(img, imgWidth, imgHeight, x, y, width, height); return true; // TODO Return only true if image data was complete } @Override public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) { return drawImage(img, x, y, width, height, observer); } @Override public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) { if (img == null) { return true; } int sx = Math.min(sx1, sx2); int sy = Math.min(sy1, sy2); int sw = Math.abs(sx2 - sx1); int sh = Math.abs(sy2 - sy1); int dx = Math.min(dx1, dx2); int dy = Math.min(dy1, dy2); int dw = Math.abs(dx2 - dx1); int dh = Math.abs(dy2 - dy1); // Draw image BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); Image cropped = bufferedImg.getSubimage(sx, sy, sw, sh); return drawImage(cropped, dx, dy, dw, dh, observer); } @Override public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) { if (img == null) { return true; } int sx = Math.min(sx1, sx2); int sy = Math.min(sy1, sy2); int sw = Math.abs(sx2 - sx1); int sh = Math.abs(sy2 - sy1); int dx = Math.min(dx1, dx2); int dy = Math.min(dy1, dy2); int dw = Math.abs(dx2 - dx1); int dh = Math.abs(dy2 - dy1); // Fill Rectangle with bgcolor Color bgcolorOld = getColor(); setColor(bgcolor); fill(new Rectangle(dx, dy, dw, dh)); setColor(bgcolorOld); // Draw image on rectangle BufferedImage bufferedImg = GraphicsUtils.toBufferedImage(img); Image cropped = bufferedImg.getSubimage(sx, sy, sw, sh); return drawImage(cropped, dx, dy, dw, dh, observer); } @Override public void drawLine(int x1, int y1, int x2, int y2) { draw(new Line2D.Double(x1, y1, x2, y2)); } @Override public void drawOval(int x, int y, int width, int height) { draw(new Ellipse2D.Double(x, y, width, height)); } @Override public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) { Path2D p = new Path2D.Float(); for (int i = 0; i < nPoints; i++) { if (i > 0) { p.lineTo(xPoints[i], yPoints[i]); } else { p.moveTo(xPoints[i], yPoints[i]); } } p.closePath(); draw(p); } @Override public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) { Path2D p = new Path2D.Float(); for (int i = 0; i < nPoints; i++) { if (i > 0) { p.lineTo(xPoints[i], yPoints[i]); } else { p.moveTo(xPoints[i], yPoints[i]); } } draw(p); } @Override public void drawRect(int x, int y, int width, int height) { draw(new Rectangle2D.Double(x, y, width, height)); } @Override public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { draw(new RoundRectangle2D.Double(x, y, width, height, arcWidth, arcHeight)); } @Override public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) { fill(new Arc2D.Double(x, y, width, height, startAngle, arcAngle, Arc2D.PIE)); } @Override public void fillOval(int x, int y, int width, int height) { fill(new Ellipse2D.Double(x, y, width, height)); } @Override public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { Path2D p = new Path2D.Float(); for (int i = 0; i < nPoints; i++) { if (i > 0) { p.lineTo(xPoints[i], yPoints[i]); } else { p.moveTo(xPoints[i], yPoints[i]); } } p.closePath(); fill(p); } @Override public void fillRect(int x, int y, int width, int height) { fill(new Rectangle2D.Double(x, y, width, height)); } @Override public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { fill(new RoundRectangle2D.Double(x, y, width, height, arcWidth, arcHeight)); } @Override public Shape getClip() { return clip; } @Override public Rectangle getClipBounds() { if (clip == null) { return null; } return clip.getBounds(); } @Override public Color getColor() { return color; } @Override public Font getFont() { return font; } @Override public FontMetrics getFontMetrics(Font f) { // TODO Find a better way for creating a new FontMetrics instance BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB_PRE); Graphics g = bi.getGraphics(); FontMetrics fontMetrics = g.getFontMetrics(font); g.dispose(); bi = null; return fontMetrics; } @Override public void setClip(Shape clip) { this.clip = clip; } @Override public void setClip(int x, int y, int width, int height) { setClip(new Rectangle(x, y, width, height)); } @Override public void setColor(Color c) { color = c; } @Override public void setFont(Font font) { if (!this.font.equals(font)) { this.font = font; } } @Override public void setPaintMode() { // TODO Implement //throw new UnsupportedOperationException("setPaintMode() isn't supported."); } @Override public void setXORMode(Color c1) { xorMode = c1; } /** * Utility method for writing multiple objects to the SVG document. * @param strs Objects to be written */ protected void write(Object... strs) { for (Object o : strs) { String str = o.toString(); if ((o instanceof Double) || (o instanceof Float)) { str = String.format(Locale.ENGLISH, "%.7f", o) .replaceAll("\\.?0+$", ""); } document.append(str); } } /** * Utility method for writing a line of multiple objects to the * SVG document. * @param strs Objects to be written */ protected void writeln(Object... strs) { write(strs); write("\n"); } /** * Write the specified shape to the document. This does not necessarily * contain the actual command to paint the shape. * @param s Shape to be written. */ protected abstract void writeShape(Shape s); /** * Write the specified image to the document. A number of dimensions will * specify how the image will be placed in the document. * @param img Image to be rendered. * @param imgWidth Number of pixels in horizontal direction. * @param imgHeight Number of pixels in vertical direction * @param x Horizontal position in document units where the * upper left corner of the image should be placed. * @param y Vertical position in document units where the * upper left corner of the image should be placed. * @param width Width of the image in document units. * @param height Height of the image in document units. */ protected abstract void writeImage(Image img, int imgWidth, int imgHeight, double x, double y, double width, double height); /** * Write a text string to the document at a specified position. * @param str Text to be rendered. * @param x Horizontal position in document units. * @param y Vertical position in document units. */ protected abstract void writeString(String str, double x, double y); /** * Write a command to draw the outline of a previously inserted shape. * @param s Shape that should be drawn. */ protected abstract void writeClosingDraw(Shape s); /** * Write a command to fill the outline of a previously inserted shape. * @param s Shape that should be filled. */ protected void writeClosingFill(Shape s) { Rectangle2D shapeBounds = s.getBounds2D(); // Calculate dimensions of shape with current transformations int wImage = (int) Math.ceil(shapeBounds.getWidth()*getResolution()); int hImage = (int) Math.ceil(shapeBounds.getHeight()*getResolution()); // Limit the size of images wImage = Math.min(wImage, rasteredImageSizeMaximum); hImage = Math.min(hImage, rasteredImageSizeMaximum); // Create image to paint draw gradient with current transformations BufferedImage paintImage = new BufferedImage( wImage, hImage, BufferedImage.TYPE_INT_ARGB); // Paint shape Graphics2D g = (Graphics2D) paintImage.getGraphics(); g.scale(wImage/shapeBounds.getWidth(), hImage/shapeBounds.getHeight()); g.translate(-shapeBounds.getX(), -shapeBounds.getY()); g.setPaint(getPaint()); g.fill(s); // Free resources g.dispose(); // Output image of gradient writeImage(paintImage, wImage, hImage, shapeBounds.getX(), shapeBounds.getY(), shapeBounds.getWidth(), shapeBounds.getHeight()); } /** * Write the header to start a new document. */ protected abstract void writeHeader(); /** * Returns a string of the footer to end a document. */ protected abstract String getFooter(); /** * Returns a transformed version of an image. * @param image Image to be transformed * @param xform Affine transform to be applied * @return Image with transformed content */ private BufferedImage getTransformedImage(Image image, AffineTransform xform) { Integer interpolationType = (Integer) hints.get(RenderingHints.KEY_INTERPOLATION); if (RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR .equals(interpolationType)) { interpolationType = AffineTransformOp.TYPE_NEAREST_NEIGHBOR; } else if (RenderingHints.VALUE_INTERPOLATION_BILINEAR .equals(interpolationType)) { interpolationType = AffineTransformOp.TYPE_BILINEAR; } else { interpolationType = AffineTransformOp.TYPE_BICUBIC; } AffineTransformOp op = new AffineTransformOp(xform, interpolationType); BufferedImage bufferedImage = GraphicsUtils.toBufferedImage(image); return op.filter(bufferedImage, null); } /** * Returns whether a distorting transformation has been applied to the * document. * @return true if the document is distorted, * otherwise false. */ protected boolean isDistorted() { if (!isTransformed()) { return false; } int type = transform.getType(); int otherButTranslatedOrScaled = ~(AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_MASK_SCALE); return (type & otherButTranslatedOrScaled) != 0; } @Override public String toString() { return document.toString() + getFooter(); } /** * Encodes the painted data into a sequence of bytes. * @return A byte array containing the data in the current file format. */ public byte[] getBytes() { try { return toString().getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { return toString().getBytes(); } } /** * Returns the dimensions of the document. * @return dimensions of the document. */ public Rectangle2D getBounds() { Rectangle2D b = new Rectangle2D.Double(); b.setFrame(bounds); return b; } /** * Returns the number of bytes of the document. * @return size of the document in bytes. */ protected int size() { return document.length(); } /** * Returns how fonts should be rendered. * @return Font rendering mode. */ public FontRendering getFontRendering() { return fontRendering; } /** * Sets how fonts should be rendered. For example, they can be converted * to vector shapes. * @param mode New font rendering mode. */ public void setFontRendering(FontRendering mode) { fontRendering = mode; } /** * Returns whether an affine transformation like translation, scaling, * rotation or shearing has been applied to this graphics instance. * @return true if the instance has been transformed, * false otherwise */ protected boolean isTransformed() { return transformed; } /** * Returns the resolution in pixels per inch. * @return Resolution in pixels per inch. */ public double getResolution() { return resolution; } /** * Sets the resolution in pixels per inch. * @param resolution New resolution in pixels per inch. */ public void setResolution(double resolution) { if (resolution <= 0.0) { throw new IllegalArgumentException( "Only positive non-zero values allowed"); } this.resolution = resolution; } /** * Returns the maximal size of images which are used to raster paints * like e.g. gradients, or patterns. The default value is 128. * @return Current maximal image size in pixels. */ public int getRasteredImageSizeMaximum() { return rasteredImageSizeMaximum; } /** * Sets the maximal size of images which are used to raster paints * like e.g. gradients, or patterns. * @param paintImageSizeMaximum New maximal image size in pixels. */ public void setRasteredImageSizeMaximum(int paintImageSizeMaximum) { this.rasteredImageSizeMaximum = paintImageSizeMaximum; } } carmetal-4.3/src/de/erichseifert/vectorgraphics2d/package-info.java000066400000000000000000000016651417122252700254560ustar00rootroot00000000000000/* * VectorGraphics2D: Vector export for Java(R) Graphics2D * * (C) Copyright 2010 Erich Seifert * * This file is part of VectorGraphics2D. * * VectorGraphics2D is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VectorGraphics2D is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with VectorGraphics2D. If not, see . */ /** * Main classes. */ package de.erichseifert.vectorgraphics2d; carmetal-4.3/src/default.mcr000066400000000000000000000077201417122252700160770ustar00rootroot00000000000000 Point on first leg of angle Vertex of angle Point on second leg of angle

Angle bisector of angle P1P2P3 as ray.

Point à -4.1, 4.26 Point à -0.53, -2.69 Point à 3.43, 2.79 Strahl von P2 in Richtung M1
Line to project to Projected point

Projects P to the line g.

??? Point à 1.68, 2.47 Schnitt zwischen g1 und l1
Point on first leg of angle Vertex of angle Point on second leg of angle Rotation center Rotating point

Rotate a point P around Q with angle ABC.

Point à 2.85, -3.27 Point à -3.69, -3.32 Point à 2.35, -0.91 Point à -3.94, 0.61 Point à 1.2, 2.71 Intersection w1 and k1
Center of rotation Rotating point

Rotates a point P around Q with a given angle.

Point à -4.22, -0.48 Point à 2.24, 0.46 Intersection of w1 and k1
carmetal-4.3/src/eric/000077500000000000000000000000001417122252700146645ustar00rootroot00000000000000carmetal-4.3/src/eric/.DS_Store000066400000000000000000000340041417122252700163500ustar00rootroot00000000000000Bud100 ‡ 6lobalPJGlobalPreferences.javaIlocblobä˜ÿÿÿÿÿÿF(ÿÿÿÿÿÿbarIlocblob  @€ @€ @€ @JGlobalPreferencesColor.javaIlocblobj˜ÿÿÿÿÿÿJGlobalPreferencesCursor.javaIlocblobð˜ÿÿÿÿÿÿJGlobalPreferencesDlog.formIlocblobv˜ÿÿÿÿÿÿJGlobalPreferencesDlog.javaIlocblobFÿÿÿÿÿÿJHelpPanel.javaIlocblobÌÿÿÿÿÿÿ JLicence.javaIlocblobRÿÿÿÿÿÿJLogoWindow.javaIlocblobØÿÿÿÿÿÿJMacOShandler.javaIlocblob^ÿÿÿÿÿÿJMacroPrompt.javaIlocblobäÿÿÿÿÿÿjobsIlocblobjÿÿÿÿÿÿJPointName.javaIlocblobðÿÿÿÿÿÿJSelectPopup.javaIlocblobvÿÿÿÿÿÿ JSprogramIlocblobFxÿÿ JSprogrambwspblobøbplist00Ù  ]ShowStatusBar[ShowSidebar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds\SidebarWidth_PreviewPaneVisibility  _{{63, 88}, {1188, 930}}ˆ)5AMYp}Š¢£¤¥¦§¨ÂÄÅ JSprogramicvpblob¾bplist00ß _backgroundColorBlue[gridSpacingXtextSize_backgroundColorRed^backgroundType_backgroundColorGreen[gridOffsetX_scrollPositionY[gridOffsetY\showItemInfo_viewOptionsVersion_scrollPositionXYarrangeBy]labelOnBottomXiconSize_showIconPreview#?ð#@K#@(##@O€Tnone #@P +AMVkz‘¯»ÈÝïù"+4=?HIKTYZcd JSprogramlsvPblobPbplist00Ø A C_viewOptionsVersion_showIconPreview_calculateAllSizesWcolumnsXtextSizeZsortColumn_useRelativeDatesXiconSize ª $).38=Ô ZidentifierUwidthYascendingWvisibleTnameÕ Ô \dateModifiedµ Ô [dateCreatedÔ ! Tsizea Ô%& Tkinds Ô*+ Ulabeld Ô/0 WversionK Ô45 Xcomments, Ô9: ^dateLastOpenedÈÔ  @YdateAdded#@( #@0.@T\epƒŒŽ›¤¯µ¿ÇÌÎÏÐÙæèéêóÿ !#$%.4678AIKLMV_bcdm|~€‰Š‹•žŸD¨ JSprogramlsvpblobVbplist00Ø E G_viewOptionsVersion_showIconPreview_calculateAllSizesWcolumnsXtextSizeZsortColumn_useRelativeDatesXiconSize Ù $).38=BXcommentsTname[dateCreatedTsizeUlabelTkindWversion^dateLastOpened\dateModifiedÔ UindexUwidthYascendingWvisible, Ô ! Õ Ô%& µÔ*+ a Ô/0 d Ô45 s Ô9: K Ô>? ÈÔ &  #@( #@0.@T\epƒŒŽ£¬±½ÂÈÍÕäñú(*,-.79;<=FHJKLUWYZ[dfhijsuwxy‚„†‡ˆ‘’“œH¦ JSprogramvSrnlongJUniqueInstance.javaIlocblobÌxÿÿÿÿÿÿJZirkelCanvas.javaIlocblobRxÿÿÿÿÿÿmacrosIlocblobØxÿÿÿÿÿÿ Media.javaIlocblob^xÿÿÿÿÿÿmonkeyIlocblobäxÿÿÿÿÿÿOS.javaIlocblobjxÿÿÿÿÿÿProgress_Bar.javaIlocblobðxÿÿÿÿÿÿrestrictIlocblobvxÿÿÿÿÿÿtextfieldpopupIlocblobFèÿÿÿÿÿÿzirkelIlocblobÌèÿÿÿÿÿÿ .DS_StoreIlocblobRèÿÿÿÿÿÿ animationsIlocblobF(ÿÿÿÿÿÿbarIlocblobÌ(ÿÿbarbwspblob¯bplist00Ö  \WindowBounds[ShowSidebar]ShowStatusBar[ShowPathbar[ShowToolbar\SidebarWidth_{{100, 39}, {1508, 989}}  ˆ".? ÈÔ &  #@( #@0.@T\epƒŒŽ£¬±½ÂÈÍÕäñú(*,-.79;<=FHJKLUWYZ[dfhijsuwxy‚„†‡ˆ‘’“œH¦ JSprogramvSrnlongJUniqueInstance.javaIlocblobÌxÿÿÿÿÿÿJZirkelCanvas.javaIlocblobRxÿÿÿÿÿÿmacrosIlocblobØxÿÿÿÿÿÿ Media.javaIlocblob^xÿÿÿÿÿÿmonkeyIlocblobäxÿÿÿÿÿÿOS.javaIlocblobjxÿÿÿÿÿÿProgress_Bar.javaIlocblobðxÿÿÿÿÿÿrestrictIlocblobvxÿÿÿÿÿÿtextfieldpopupIlocblobFèÿÿÿÿÿÿzirkelIlocblobÌèÿÿÿÿÿÿ0 E ‡ DSDB `8@€ @€ @dColorGreen[gridOffsetX[gridOffsetY_scrollPositionY\showItemInfo_viewOptionsVersion_scrollPositionXYarrangeBy]labelOnBottomXiconSize[gridSpacing#?ð #@(#Tnone #@P#@K+AS\q€—£¯ÁÎãõÿ "+,57@ACHIR[GUIvSrnlongiconsIlocblobj(ÿÿÿÿÿÿJBrowserLauncher.javaIlocblobð(ÿÿÿÿÿÿJCharacterPalette.javaIlocblobv(ÿÿÿÿÿÿJColorPicker.javaIlocblobF˜ÿÿÿÿÿÿ JColors.javaIlocblob̘ÿÿÿÿÿÿJEricPanel.javaIlocblobR˜ÿÿÿÿÿÿJFileFilter.javaIlocblobؘÿÿÿÿÿÿJGeneralMcarmetal-4.3/src/eric/FileTools.java000066400000000000000000001241131417122252700174310ustar00rootroot00000000000000 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric; import de.erichseifert.vectorgraphics2d.EPSGraphics2D; import de.erichseifert.vectorgraphics2d.PDFGraphics2D; import de.erichseifert.vectorgraphics2d.SVGGraphics2D; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.window.LeftPanel; import eric.GUI.window.MainWindow; import eric.GUI.window.Open_left_panel_btn; import eric.GUI.window.Open_middle_panel_btn; import eric.GUI.window.Open_right_panel_btn; import eric.GUI.window.RightPanel; import eric.GUI.window.tab_btn; import eric.GUI.window.tab_main_panel; import eric.bar.JPropertiesBar; import eric.jobs.Base64Coder; import java.awt.Color; import java.awt.FileDialog; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; import java.awt.geom.AffineTransform; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.zip.GZIPOutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import java.util.zip.ZipOutputStream; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.SwingUtilities; import rene.dialogs.Warning; import rene.gui.Global; import rene.util.FileName; import rene.util.ImageSelection; import rene.util.PngEncoder; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.construction.Construction; import rene.zirkel.graphics.MainGraphics; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.tools.SelectTool; /** * * @author erichake */ public class FileTools { static private int dlogW=500; static private int dlogH=400; static private ArrayList StartupFiles=new ArrayList(); static private boolean isStartup=true; static private ConstructionObject thekTortue, thekTortue3D; //Dibs public static void addStartupFile(String filename) { StartupFiles.add(filename); } public static boolean isStartup() { return isStartup; } public static String getCurrentFileSource() throws Exception { return JZirkelCanvas.getCurrentZC().getFileSource(); } public static void setCurrentFileSource(String s) throws Exception { JZirkelCanvas.getCurrentZC().setFileSource(s); } /********************************************* * Simple file part : open and save zir files *********************************************/ public static void copyAppletTag() { String tag=""; tag+="\n"; tag+="\n"; tag=tag.replace("@width@", ""+(pipe_tools.getWindowSize().width-2*themes.getVerticalBorderWidth())); tag=tag.replace("@height@", ""+(pipe_tools.getWindowSize().height-themes.getMenuBarHeight()-themes.getTitleBarHeight())); tag=tag.replace("@file_content@", getWorkBookSource()); Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); StringSelection myclip = new StringSelection(tag); clipboard.setContents(myclip, null); } public static void HTMLWorkBookExport() { String str; String content=""; if (!JZirkelCanvas.isWorkBook()) { saveWorkBookAs(); } ; if (JZirkelCanvas.isWorkBook()) { saveWorkBook(JZirkelCanvas.getWorkBookFileName()); String targetpath=FileName.path(JZirkelCanvas.getWorkBookFileName()); String sep=System.getProperty("file.separator"); BufferedReader in; try { InputStream input=FileTools.class.getResourceAsStream("/eric/docs/applet.html"); in=new BufferedReader(new InputStreamReader(input)); while ((str=in.readLine())!=null) { content+=str+"\n"; } in.close(); } catch (final Exception e) { return; } content=content.replace("@width@", ""+(pipe_tools.getWindowSize().width-2*themes.getVerticalBorderWidth())); content=content.replace("@height@", ""+(pipe_tools.getWindowSize().height-themes.getMenuBarHeight()-themes.getTitleBarHeight())); content=content.replace("@file@", FileName.filename(JZirkelCanvas.getWorkBookFileName())); content=content.replace("@workbook@", FileName.filename(JZirkelCanvas.getWorkBookFileName())); try { File aFile=new File(targetpath+sep+"index.html"); Writer output=new BufferedWriter(new FileWriter(aFile)); output.write(content); output.close(); } catch (Exception e) { } } } public static void HTMLWorkBookExtExport() { String str; String content=""; if (!JZirkelCanvas.isWorkBook()) { saveWorkBookAs(); } ; if (JZirkelCanvas.isWorkBook()) { // saveWorkBook(JZirkelCanvas.getWorkBookFileName()); String targetpath=FileName.path(JZirkelCanvas.getWorkBookFileName()); String sep=System.getProperty("file.separator"); BufferedReader in; try { InputStream input=FileTools.class.getResourceAsStream("/eric/docs/applet_ext.html"); in=new BufferedReader(new InputStreamReader(input)); while ((str=in.readLine())!=null) { content+=str+"\n"; } in.close(); } catch (final Exception e) { return; } content=content.replace("@width@", ""+(pipe_tools.getWindowSize().width-2*themes.getVerticalBorderWidth())); content=content.replace("@height@", ""+(pipe_tools.getWindowSize().height-themes.getMenuBarHeight()-themes.getTitleBarHeight())); content=content.replace("@file_content@", getWorkBookSource()); try { File aFile=new File(targetpath+sep+"index.html"); Writer output=new BufferedWriter(new FileWriter(aFile)); output.write(content); output.close(); } catch (Exception e) { } } } public static void SaveJarAndLaunchBrowser() { JZirkelCanvas jzc=JZirkelCanvas.getCurrentJZF(); if (jzc==null) { return; } if (JZirkelCanvas.getFileName()==null) { return; } String targetpath=FileName.path(JZirkelCanvas.getFileName()); String targetfile="index.html"; final String sep=System.getProperty("file.separator"); final String mypath=Global.AppPath(); if (new File(mypath+"CaRMetal.jar").exists()) { try { final InputStream in=new FileInputStream(mypath+"CaRMetal.jar"); final OutputStream out=new FileOutputStream(targetpath+sep+"CaRMetal.jar"); final byte[] buf=new byte[1024]; int len; while ((len=in.read(buf))>0) { out.write(buf, 0, len); out.flush(); } out.close(); in.close(); JBrowserLauncher.openURL(targetpath+sep+targetfile); } catch (final Exception ex) { } } } public static String getSwingOpenFile() { String name=null; final JFileChooser jfc=new JFileChooser(Global.getOpenSaveDirectory()); jfc.setDialogType(javax.swing.JFileChooser.OPEN_DIALOG); jfc.setAcceptAllFileFilterUsed(false); JFileFilter filter=new JFileFilter(Global.Loc("filedialog.js"), ".js"); jfc.addChoosableFileFilter(filter); jfc.setFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.job"), ".job"); jfc.addChoosableFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.macrofilefilter"), ".mcr"); jfc.addChoosableFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.compressedfilefilter"), ".zirz"); jfc.addChoosableFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.workbook"), ".zirs"); jfc.addChoosableFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.filefilter"), ".zir"); jfc.addChoosableFileFilter(filter); filter=new JFileFilter(Global.Loc("filedialog.allfiles"), ".zirs,.zir,.zirz,.mcr,.job,.js"); jfc.addChoosableFileFilter(filter); final int rep=jfc.showOpenDialog(pipe_tools.getFrame()); if (rep==JFileChooser.APPROVE_OPTION) { name=jfc.getSelectedFile().getAbsolutePath(); Global.setOpenSaveDirectory(FileName.path(name)); } return name; } public static String getAWTOpenFile() { String name=""; FileDialog fd=new FileDialog(pipe_tools.getFrame(), Global.Loc("filedialog.open"), FileDialog.LOAD); fd.setFilenameFilter(new FilenameFilter() { public boolean accept(File dir, String name) { return (name.endsWith(".js")||name.endsWith(".mcr")||name.endsWith(".zir")||name.endsWith(".zirs")||name.endsWith(".zirz")||name.endsWith(".job")||name.endsWith(".jobz")); } }); fd.setDirectory(Global.getOpenSaveDirectory()); fd.setSize(dlogW, dlogH); fd.pack(); fd.setVisible(true); if (fd.getFile()!=null) { Global.setOpenSaveDirectory(fd.getDirectory()); } return canonicFileName(fd); } public static String getOpenFile() { if (OS.isUnix()) { return getSwingOpenFile(); } else { return getAWTOpenFile(); } } public static String getSwingSaveFile(boolean export) { String name=null; final JFileChooser jfc=new JFileChooser(Global.getOpenSaveDirectory()); jfc.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG); jfc.setAcceptAllFileFilterUsed(false); JFileFilter filter; if (export) { filter=new JFileFilter(Global.Loc("filedialog.allexportfiles"), ".pdf,.eps,.svg,.png"); } else { filter=new JFileFilter(Global.Loc("filedialog.allfiles"), ".zirs,.zir,.zirz,.mcr,.job"); } jfc.addChoosableFileFilter(filter); jfc.setFileFilter(filter); final int rep=jfc.showSaveDialog(pipe_tools.getFrame()); System.out.println(jfc.getFileFilter().toString()); if (rep==JFileChooser.APPROVE_OPTION) { name=jfc.getSelectedFile().getAbsolutePath(); Global.setOpenSaveDirectory(FileName.path(name)); } return name; } public static String getAWTSaveFile(boolean export) { String name=""; FileDialog fd=new FileDialog(pipe_tools.getFrame(), Global.Loc("filedialog.save"), FileDialog.SAVE); if (export) { fd.setFilenameFilter(new FilenameFilter() { public boolean accept(File dir, String name) { return (name.endsWith(".pdf")||name.endsWith(".eps")||name.endsWith(".svg")||name.endsWith(".png")); } }); } else { fd.setFilenameFilter(new FilenameFilter() { public boolean accept(File dir, String name) { return (name.endsWith(".js")||name.endsWith(".mcr")||name.endsWith(".zir")||name.endsWith(".zirs")||name.endsWith(".zirz")||name.endsWith(".job")||name.endsWith(".jobz")); } }); } fd.setDirectory(Global.getOpenSaveDirectory()); fd.setSize(dlogW, dlogH); fd.pack(); fd.setVisible(true); if (fd.getFile()!=null) { Global.setOpenSaveDirectory(fd.getDirectory()); } return canonicFileName(fd); } public static String getSaveFile(boolean export) { if (OS.isUnix()) { return getSwingSaveFile(export); } else { return getAWTSaveFile(export); } } public static String canonicFileName(FileDialog fd) { if (fd.getFile()==null) { return null; } String path=(fd.getDirectory().endsWith(System.getProperty("file.separator")))?fd.getDirectory():fd.getDirectory()+System.getProperty("file.separator"); path+=fd.getFile(); return path; } public static boolean validPreferencesFileName(String name) { return name.endsWith("preferences.txt"); } public static boolean validZirkelFileName(String name) { String nme=name.toLowerCase(); return (nme.endsWith(".zir")||nme.endsWith(".zirz")||nme.endsWith(".job")||nme.endsWith(".jobz")); } public static boolean validImageFileName(String name) { String nme=name.toLowerCase(); return (nme.endsWith(".tif")||nme.endsWith(".tiff")||nme.endsWith(".gif")||nme.endsWith(".png")||nme.endsWith(".jpg")||nme.endsWith(".jpeg")); } public static void openFile() { final String filename=getOpenFile(); if (filename!=null) { if (filename.endsWith(".zirs")) { openWorkBook(filename); } else if (filename.endsWith(".mcr")) { openMacro(filename); } else if (filename.endsWith(".zir")) { openFile(filename, null, 0); } else { openScript(filename); } } } public static void doLoad(final String filename, final InputStream in, final int mode) { JZirkelCanvas JZF=JZirkelCanvas.getCurrentJZF(); ZirkelFrame ZF=JZirkelCanvas.getCurrentZF(); final ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); if (ZC!=null) { ZC.setMode(mode); ZF.setinfo("save"); ZC.getConstruction().BackgroundFile=null; ZF.Background=""; ZC.grab(false); rene.zirkel.construction.Count.resetAll(); ZF.doload(filename, in); PaletteManager.initPaletteConsideringMode(); // PaletteManager.fixDPpalette(); ZC.getLocalPreferences(); rene.zirkel.construction.Count.resetAll(); pipe_tools.setWindowComponents(); SwingUtilities.invokeLater(new Runnable() { public void run() { ZC.JCM.readXmlTags(); PaletteManager.refresh(); PaletteManager.setSelected_with_clic("move", true); ZC.runOnLoadScripts(); } }); } } public static void doLoadNew3D(final String filename, final InputStream in, final int mode) { JZirkelCanvas JZF=JZirkelCanvas.getCurrentJZF(); ZirkelFrame ZF=JZirkelCanvas.getCurrentZF(); final ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); if (ZC!=null) { ZC.setMode(mode); ZF.setinfo("save"); ZC.getConstruction().BackgroundFile=null; ZF.Background=""; ZC.grab(false); rene.zirkel.construction.Count.resetAll(); ZF.doload(filename, in); PaletteManager.initPaletteConsideringMode(); // PaletteManager.fixDPpalette(); ZC.getLocalPreferences(); rene.zirkel.construction.Count.resetAll(); pipe_tools.setWindowComponents(); SwingUtilities.invokeLater(new Runnable() { public void run() { ZC.JCM.readXmlTags(); PaletteManager.refresh(); PaletteManager.setSelected_with_clic("bi_3Dcoords", true); ZC.runOnLoadScripts(); } }); } } public static void openMacro(final String filename) { try { FileInputStream o=new FileInputStream(filename); JZirkelCanvas.getCurrentZC().load(o, false, true); o.close(); } catch (Exception ex) { } JZirkelCanvas.ActualiseMacroPanel(); } private static void openScript(String filename) { ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); if (ZC==null) { return; } if (filename==null) { return; } ZC.openScriptFile(filename, true); } public static void openFile(final String filename, final InputStream in, final int mode) { ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); if (ZC==null) { return; } if (filename==null) { return; } if ((filename.endsWith(".zir"))||(filename.endsWith(".zirz"))) { if (ZC.isEmpty()) { tab_main_panel.setCurrentTabName(FileName.filename(filename), filename); } else { tab_main_panel.createTabAndCanvas(FileName.filename(filename), filename); } } doLoad(filename, in, mode); JZirkelCanvas.getCurrentJZF().setComments(); JZirkelCanvas.ActualiseMacroPanel(); } public static void New3DWindow() { InputStream o; String Filename; if (System.getProperty("user.language").equals("fr")) { o=FileTools.class.getResourceAsStream("/base3D-fr.zir"); Filename="base3D-fr.zir"; } else if (System.getProperty("user.language").equals("es")) { o=FileTools.class.getResourceAsStream("/base3D-es.zir"); Filename="base3D-es.zir"; } else { o=FileTools.class.getResourceAsStream("/base3D.zir"); Filename="base3D.zir"; } final ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (!zc.isEmpty()) { tab_main_panel.newTabBtn(); } doLoadNew3D(Filename, o, Construction.MODE_3D); ZirkelFrame zf=JZirkelCanvas.getCurrentZF(); if (zf!=null) { zf.Filename=""; } SwingUtilities.invokeLater(new Runnable() { @Override public void run() { if (zc!=null) { zc.JCM.fix3Dcomments(); } } }); } public static void NewDPWindow() { final InputStream o=FileTools.class.getResourceAsStream("/baseDP.zir"); final String Filename="baseDP.zir"; final ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (!zc.isEmpty()) { tab_main_panel.newTabBtn(); } doLoad(Filename, o, Construction.MODE_DP); ZirkelFrame zf=JZirkelCanvas.getCurrentZF(); if (zf!=null) { zf.Filename=""; } // SwingUtilities.invokeLater(new Runnable() { // // public void run() { //// if (zc!=null) { //// zc.JCM.fixDPcomments(); //// } // } // }); } public static void saveFileAs() { //if (Media.getMedias().size()>0) { if (Media.checkMedia()>0) { JOptionPane.showMessageDialog(JZirkelCanvas.getCurrentZC(), Global.Loc("media.saveas")); saveWorkBookAs(); } else { String filename=getSaveFile(false); if (filename!=null) { saveFile(filename, false, ".zir", false); } } } public static void saveFile() { if (JZirkelCanvas.isWorkBook()) { saveWorkBook(JZirkelCanvas.getWorkBookFileName()); //} else if (Media.getMedias().size()>0) { } else if (Media.checkMedia()>0) { JOptionPane.showMessageDialog(JZirkelCanvas.getCurrentZC(), Global.Loc("media.saveas")); saveWorkBookAs(); } else { if (JZirkelCanvas.getCurrentZC()==null) { return; } ZirkelFrame ZF=JZirkelCanvas.getCurrentZF(); ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); String filename=(ZF.haveFile())?ZF.Filename:getSaveFile(false); if (filename!=null) { saveFile(filename, false, ".zir", !ZF.haveFile()); } } } private static boolean ICanSave(final String Fname, final boolean ask) { if (!ask) { return true; } if (!new File(Fname).exists()) { return true; } return (JOptionPane.showConfirmDialog(null, Global.Loc("filedialog.savemessage1")+Fname+Global.Loc("filedialog.savemessage2"), "", JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION); } private static void doSave(ZirkelCanvas zc, String Filename, OutputStream o) { try { if (o==null) { o=new FileOutputStream(Filename); if (ZirkelFrame.isCompressed(Filename)) { o=new GZIPOutputStream(o, 10000); } } zc.save(o, true, true, false, true, zc.getMacros(), ""); o.close(); } catch (Exception e) { } } private static void saveFile(String Filename, final boolean restrict, final String ext, final boolean ask) { if (JZirkelCanvas.getCurrentZC()==null) { return; } if (Filename==null) { return; } ZirkelFrame ZF=JZirkelCanvas.getCurrentZF(); ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); thekTortue=ZC.getConstruction().find("kTortue"); // Dibs if (thekTortue!=null) { ZC.delete(thekTortue); } thekTortue3D=ZC.getConstruction().find("kTortue3D"); // Dibs if (thekTortue3D!=null) { ZC.delete(thekTortue3D); } if ((!Filename.endsWith(".zirz"))&&(!Filename.endsWith(".zir"))) { Filename+=ext; } if (ICanSave(Filename, ask)) { // SetMacrosProtectionForSaveProcess(macrostree.JML.MacroTreeTopNode); OutputStream o; try { ZF.ZC.getConstruction().BackgroundFile=ZF.Background; ZF.ZC.getConstruction().ResizeBackground=Global.getParameter( "background.usesize", false); doSave(ZF.ZC, Filename, null); ZF.Filename=Filename; if(!JZirkelCanvas.isWorkBook()) tab_main_panel.setCurrentTabName(FileName.filename(Filename), Filename); } catch (final Exception e) { final Warning w=new Warning(pipe_tools.getFrame(), Global.Loc("warning.save"), FileName.chop(32, e.toString(), 64), Global.Loc("warning"), true); w.center(null); w.setVisible(true); } // ResetMacrosProtection(macrostree.JML.MacroTreeTopNode); } pipe_tools.TabHaveChanged(false); } /********************************************* * Workbooks part : open and save zirs files *********************************************/ public static String getConstruction(ZirkelCanvas zc) { try { final ByteArrayOutputStream out=new ByteArrayOutputStream(); doSave(zc, null, out); return out.toString("utf-8"); } catch (Exception ex) { return "Error"; } } public static void saveWorkBookAs() { final String filename=getSaveFile(false); if (filename!=null) { saveWorkBook(filename); } } public static String getWorkBookSource() { String backup=""; try { ByteArrayOutputStream bout=new ByteArrayOutputStream(); // save the workbook into a byteArray stream : saveWorkBook(bout); // then save it into base64 format : backup=new String(Base64Coder.encode(bout.toByteArray())); // Make the base64 encoding url safe : backup=backup.replace("+", "-"); backup=backup.replace("/", "_"); // remove base64 paddings : backup=backup.replace("=", ""); } catch (Exception ex) { } return backup; } public static void setWorkBookSource(String s) { try { // base64 encoding is url safe. This restore the // "official" syntax of the string : s=s.replace("-", "+"); s=s.replace("_", "/"); // restore base64 paddings : int reste=s.length()%4; if (reste==2) { s+="=="; } else if (reste==3) { s+="="; } byte[] b=Base64Coder.decode(s); ByteArrayInputStream bin=new ByteArrayInputStream(b); openWorkBook(null, bin); } catch (Exception ex) { } } public static void saveWorkBook(String filename) { ZirkelCanvas ZC=JZirkelCanvas.getCurrentZC(); // Dibs thekTortue=ZC.getConstruction().find("kTortue"); if (thekTortue!=null) { ZC.delete(thekTortue); } thekTortue3D=ZC.getConstruction().find("kTortue3D"); // Dibs if (thekTortue3D!=null) { ZC.delete(thekTortue3D); } if (filename==null) { return; } if (!filename.endsWith(".zirs")) { filename+=".zirs"; } try { saveWorkBook(new FileOutputStream(filename)); // set workbook mode : JZirkelCanvas.setWorkBookFileName(filename, true); } catch (Exception ex) { } } public static void saveWorkBook(OutputStream output) { try { // Create the ZIP file ZipOutputStream out=new ZipOutputStream(output); // Save the workbook : Progress_Bar.create(Global.Loc("progressbar.workbooksavemessage"), 0, tab_main_panel.getBTNSsize()-1); for (int i=0; i1)+"\n"; file+="showstatus="+(tab_main_panel.getBTNSsize()>1)+"\n"; file+="currenttab="+(tab_main_panel.getActiveBtnPos()+1); file+="\n\n\n"; file+="** APPLICATION SPECIFIC PART :\n"; file+="\n"; file+="window_width="+pipe_tools.getWindowSize().width+"\n"; file+="window_height="+pipe_tools.getWindowSize().height+"\n"; file+="\n"; return file.getBytes(); } public static void openWorkBook() { final String filename=getOpenFile(); if (filename!=null) { openWorkBook(filename); } } public static void openWorkBook(String filename) { try { openWorkBook(filename, new FileInputStream(filename)); } catch (Exception ex) { } } // OpenWork book from Application : public static void openWorkBook(String filename, InputStream in) { try { ZipInputStream zpf=new ZipInputStream(new BufferedInputStream(in)); String prefsFileContent=null; // remember last tab button : tab_btn lastbtn=tab_main_panel.getLastBtn(); // remember last tab position before adding new ones : int last_tab_pos=tab_main_panel.getBTNSsize()-1; ZipEntry entry; while ((entry=zpf.getNextEntry())!=null) { int size; byte[] buffer=new byte[2048]; ByteArrayOutputStream bos=new ByteArrayOutputStream(); while ((size=zpf.read(buffer, 0, buffer.length))!=-1) { bos.write(buffer, 0, size); } bos.flush(); bos.close(); if (validZirkelFileName(entry.getName())) { tab_btn curbtn=tab_main_panel.addBtn(entry.getName()); curbtn.getPanel().setInputFile(bos.toByteArray()); } else if (validImageFileName(entry.getName())) { Media.createMedia(entry.getName(), bos.toByteArray()); } else if (validPreferencesFileName(entry.getName())) { prefsFileContent=bos.toString("UTF-8"); } } // set workbook mode : if (filename!=null) { JZirkelCanvas.setWorkBookFileName(filename, false); } if (prefsFileContent!=null) { applyWorkBookPreferences(prefsFileContent, last_tab_pos); } else { tab_main_panel.setActiveBtn(1); tab_main_panel.showActiveBtn(); } // if last tab canvas is empty, then remove it : if ((lastbtn.getPanel().getZC().isEmpty())&&(lastbtn.getPanel().getByteArrayInputFile()==null)) { tab_main_panel.removeBtn(lastbtn); } // I know, this is weird, but it work's (for palette display) : pipe_tools.setWindowComponents(); pipe_tools.setWindowComponents(); Open_left_panel_btn.setmode(); Open_middle_panel_btn.setmode(); Open_right_panel_btn.setmode(); JGeneralMenuBar.initToggleItems(); tab_main_panel.initToggleItems(); } catch (Exception e) { return; } } /** * inside the workbook zirs archive, "preferences.txt" contains properties with * following structure : = * @param prefs : content of the "preferences.txt" file * @param property : the property we want to read * @return the value of the property */ public static String getPref(String prefs, String property) { Matcher m=Pattern.compile("\\Q"+property+"=\\E(\\w+)\\W", Pattern.MULTILINE).matcher(prefs); if (m.find()) { return m.group(1); } return null; } /** * Read and apply workbook preferences : "preferences.txt" inside the "zirs" archive * @param prefs : content of the "preferences.txt" file * @param last_tab_pos : last tab position before adding the zirs */ public static void applyWorkBookPreferences(final String prefs, int last_tab_pos) { int tabnum=last_tab_pos; try { tabnum+=Integer.parseInt(getPref(prefs, "currenttab")); } catch (Exception e) { tabnum=last_tab_pos; } tab_main_panel.setActiveBtn(tabnum); tab_main_panel.showActiveBtn(); Global.setParameter("comment", "true".equals(getPref(prefs, "showcomments"))); RightPanel.showPanel("true".equals(getPref(prefs, "showpalette"))); LeftPanel.showPanel("true".equals(getPref(prefs, "showleftpanel"))); if (pipe_tools.isApplet()) { themes.setShowTabs("true".equals(getPref(prefs, "showtabs"))); themes.setShowStatus("true".equals(getPref(prefs, "showstatus"))); } else { themes.setShowTabs(true); themes.setShowStatus(true); } try { int w=Integer.parseInt(getPref(prefs, "window_width")); int h=Integer.parseInt(getPref(prefs, "window_height")); pipe_tools.setAndCheckWindowSize(w, h); } catch (Exception e) { } } public static byte[] copyToByteArray(InputStream in) { int BUFFER_SIZE=4096; ByteArrayOutputStream out=new ByteArrayOutputStream(BUFFER_SIZE); try { int byteCount=0; byte[] buffer=new byte[BUFFER_SIZE]; int bytesRead=-1; while ((bytesRead=in.read(buffer))!=-1) { out.write(buffer, 0, bytesRead); byteCount+=bytesRead; } out.flush(); in.close(); out.close(); } catch (IOException e) { } return out.toByteArray(); } public static void open(String filename) { if ((filename.endsWith(".mcr"))) { openMacro(filename); } else if ((filename.endsWith(".zirs"))) { openWorkBook(filename); } else { openFile(filename, null, 0); } } public static void OpenStartupFiles() { for (int i=0; i=zc.getWidth()){ me.setLocation(zc.getWidth()-NOT_EXIT, me.getLocation().y); } if(me.getLocation().y<=0){ me.setLocation(me.getLocation().x, 0); } if(me.getLocation().y+NOT_EXIT>=zc.getHeight()){ me.setLocation(me.getLocation().x, zc.getHeight()-NOT_EXIT); } /* * end of code */ } } }); addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { if (isTitleVisible()) { origin=MouseInfo.getPointerInfo().getLocation(); winloc=me.getLocation(); } } }); } } public void send(String msg) { } } carmetal-4.3/src/eric/GUI/ZDialog/ZLabel.java000066400000000000000000000006421417122252700206570ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import java.awt.Graphics; import javax.swing.JLabel; /** * * @author erichake */ public class ZLabel extends JLabel { public void paint(Graphics g) { super.paintComponent(g); } public ZLabel(String s) { super(s); setFont(ZTools.ZLabelFont); } } carmetal-4.3/src/eric/GUI/ZDialog/ZMessageDialog.java000066400000000000000000000011231417122252700223370ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import eric.JZirkelCanvas; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class ZMessageDialog extends ZDialog { public ZMessageDialog() { super("essai", 0, 0, 400, 300, true, false); } public static void showMessage() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { ZMessageDialog zmd=new ZMessageDialog(); zc.add(zmd); zmd.init(); } } } carmetal-4.3/src/eric/GUI/ZDialog/ZSep.java000066400000000000000000000020651417122252700203700ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import java.awt.Dimension; import java.awt.Graphics; import eric.JEricPanel; /** * * @author erichake */ public class ZSep extends JEricPanel { int percent=100; public void paint(Graphics g) { Dimension d=getSize(); int margin=d.width*(100-percent)/200; g.setColor(ZTools.backTitleColor); g.fillRect(margin, 0, d.width-2*margin, d.height); // Dimension d=getSize(); // g.setColor(ZTools.B_TextField); // g.fillRect(0, 0, d.width, d.height); // paintChildren(g); // g.setColor(ZTools.Bord_TextField); // g.drawRect(0, 0, d.width, d.height); // if (withback) { // Dimension d=getSize(); // g.setColor(ZTools.backTitleColor); // g.fillRect(0, 0, d.width, d.height); // paintChildren(g); // } // super.paintComponent(g); } public ZSep(int prop) { super(); percent=prop; } } carmetal-4.3/src/eric/GUI/ZDialog/ZTextField.java000066400000000000000000000057371417122252700215420ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import eric.JEricPanel; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Insets; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.BoxLayout; import javax.swing.JTextField; /** * * @author erichake */ public class ZTextField extends JEricPanel { JTextField field; @Override public void paint(Graphics g) { Dimension d=getSize(); g.setColor(ZTools.B_TextField); g.fillRect(0, 0, d.width, d.height); paintChildren(g); g.setColor(ZTools.Bord_TextField); g.drawRect(0, 0, d.width, d.height); } public ZTextField(String s) { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setOpaque(false); field=new JTextField(s){ @Override public void paintBorder(Graphics g){ } }; field.setMargin(new Insets(0, 0, 0, 0)); field.setOpaque(false); field.setFont(ZTools.ZTextFieldFont); field.setForeground(ZTools.C_TextField); field.setBackground(ZTools.B_TextField); field.addKeyListener(new KeyAdapter() { @Override public void keyReleased(final KeyEvent e) { actionKey(e); } }); field.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { actionMouse(); } }); field.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { focusOn(); } @Override public void focusLost(FocusEvent e) { focusOff(); } }); JEricPanel panel=new JEricPanel(); Dimension d=new Dimension(1, 1); panel.setOpaque(false); panel.setPreferredSize(d); panel.setMinimumSize(d); panel.setMaximumSize(d); panel.setSize(d); add(panel); add(field); } public void actionMouse() { } public void actionKey(KeyEvent k) { } public void focusOn(){ } public void focusOff(){ } public void setEditable(boolean b){ if (field!=null) { field.setEditable(b); } } public void setHorizontalAlignment(int align){ field.setHorizontalAlignment(align); } public String getText(){ return field.getText(); } public void setText(String s){ field.setText(s); } public void selectAll(){ field.selectAll(); } @Override public void setForeground(Color c){ if (field!=null) { field.setForeground(c); } } } carmetal-4.3/src/eric/GUI/ZDialog/ZTextFieldAndLabel.java000066400000000000000000000061161417122252700231150ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import eric.JEricPanel; import java.awt.Color; import java.awt.Graphics; import javax.swing.BoxLayout; import javax.swing.SwingConstants; /** * * @author erichake */ public class ZTextFieldAndLabel extends JEricPanel { private ZTextFieldAndLabel me; private myTextField field=null; private ZLabel label=null; private String InitValue=""; private int labelWidth=100; private int labelHeight=20; @Override public void paint(Graphics g) { paintChildren(g); } public ZTextFieldAndLabel(String lbl, String value, int labelwidth,int labelheight) { super(); me=this; labelWidth=labelwidth; setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setOpaque(false); if (labelWidth==0) { InitValue="<"+lbl+">"; if ("".equals(value)) { add(field=new myTextField(InitValue)); field.setForeground(ZTools.C_TextField_OFF); } else { add(field=new myTextField(value)); } field.setHorizontalAlignment(SwingConstants.CENTER); } else { add(label=new ZLabel(lbl)); add(field=new myTextField(value)); ZTools.fixsize(label, labelWidth, labelheight); } } public void actionMouse() { } public void actionKey(java.awt.event.KeyEvent k){ } public void focusLost(){ } public void focusGained(){ } public String getText() { if (InitValue.equals(field.getText())) { return ""; } else { return field.getText(); } } public void setText(String txt) { if ("".equals(txt)) { txt=InitValue; field.setForeground(ZTools.C_TextField_OFF); } else { field.setForeground(ZTools.C_TextField); } field.setText(txt); } @Override public void setForeground(Color c){ if(field!=null){ field.setForeground(c); } } public void setEditable(boolean b){ if (field!=null){ field.setEditable(b); } } private class myTextField extends ZTextField { public myTextField(String s) { super(s); } @Override public void actionMouse() { me.actionMouse(); } @Override public void actionKey(java.awt.event.KeyEvent k){ me.actionKey(k); } @Override public void focusOn() { if ((field.getText().equals(InitValue))) { field.setText(""); field.setForeground(ZTools.C_TextField); } field.selectAll(); me.focusGained(); } @Override public void focusOff() { if ((field.getText().equals(""))) { field.setText(InitValue); field.setForeground(ZTools.C_TextField_OFF); } me.focusLost(); } } } carmetal-4.3/src/eric/GUI/ZDialog/ZTools.java000066400000000000000000000027551417122252700207470ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.ZDialog; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import javax.swing.JComponent; import rene.gui.Global; /** * * @author erichake */ public class ZTools { public static final Color backMainColor=new Color(100, 100, 100, 50); public static final Color backTitleColor=new Color(0, 0, 0, 200); public static final Color TitleTextColor=new Color(255, 255, 255); public static final Color C_TextField=new Color(50, 50, 50); // Text color of ZTextFields public static final Color C_TextField_OFF=new Color(150, 150, 150); // Disable Text color of ZTextFields public static final Color B_TextField=new Color(245, 246, 255); // ZTextFields background color public static final Color Bord_TextField=new Color(50, 50, 50); // ZTextFields line border color public static final Font ZLabelFont=new Font(Global.GlobalFont, 0, 11); public static final Font ZCheckBoxFont=new Font(Global.GlobalFont, 0, 11); public static final Font ZTextFieldFont=new Font(Global.GlobalFont, 0, 11); public static final Font ZDialogTitleFont=new Font(Global.GlobalFont, 1, 12); public static void fixsize(JComponent jc, int w, int h) { Dimension d=new Dimension(w, h); jc.setSize(d); jc.setMaximumSize(d); jc.setMinimumSize(d); jc.setPreferredSize(d); } } carmetal-4.3/src/eric/GUI/icons/000077500000000000000000000000001417122252700164235ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/.DS_Store000066400000000000000000000240041417122252700201060ustar00rootroot00000000000000Bud1   StoreIl  @€ @€ @€ @ .DS_StoreIlocblobF(ÿÿÿÿÿÿbarIlocblobÌ(ÿÿÿÿÿÿjswindowIlocblobR(ÿÿÿÿÿÿjswindowbwspblob°bplist00Ö  \WindowBounds[ShowSidebar]ShowStatusBar[ShowPathbar[ShowToolbar\SidebarWidth_{{184, 133}, {1473, 895}}  ˆ".È^dateLastOpenedÔ@AB  EWvisibleUwidthYascendingYdateAdded#@®^#@(##@00BV^py‹–Ÿ´µ¶·ÂËÓÙãîïòóø)2356;DEGHMVWYZ`ijlmu~‚ƒŒ•–˜™¨±¹¿ÉÊËÕÞçðùKûpalettelsvpblob™bplist00Ú HIJKG_useRelativeDates_showIconPreview_calculateAllSizesWcolumns_scrollPositionYXtextSize_scrollPositionXZsortColumnXiconSize_viewOptionsVersion Ù!&+05:?DXcomments^dateLastOpened[dateCreatedTsizeUlabelTkindWversionTname\dateModifiedÔ  WvisibleUwidthYascendingUindex, Ô # %ÈÔ ( *µÔ - / aÔ 2 4d Ô 7 9 s Ô < >K Ô A C { Ô ( G #@®^#@(##@00BV^py‹–Ÿ´µ¶·ÊÓâîóùþ !)/9?@CDFOPRSU^_abdmnpqs|}€‚‹ŒŽ‘š›ž ©ª­®°¹º»½ÆÏØLápalettevSrnlongthemesIlocblob^(ÿÿÿÿÿÿ E DSDB `€(0@€ @€ @b±bplist00Ú FGHIJ_useRelativeDates_showIconPreview_calculateAllSizesWcolumns_scrollPositionYXtextSize_scrollPositionXZsortColumnXiconSize_viewOptionsVersion ª!&+05:?Ô  WvisibleUwidthYascendingZidentifier { TnameÔ   µ\dateModifiedÔ  [dateCreatedÔ # % aTsizeÔ ( * s TkindÔ - /d UlabelÔ 2 4K WversionÔ 7 9, XcommentsÔ < >È^dateLastOpenedÔ@AB  EWvisibleUwidthYascendingYdateAdded#@®^#@(##@00BV^py‹–Ÿ´µ¶·ÂËÓÙãîïòóø)2356;DEGHMVWYZ`ijlmu~‚ƒŒ•–˜™¨±¹¿ÉÊËÕÞçðùKûpalettelsvpblob™bplist00Ú HIJKG_useRelativeDatecarmetal-4.3/src/eric/GUI/icons/bar/000077500000000000000000000000001417122252700171675ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/bar/aimant.png000066400000000000000000000015371417122252700211540ustar00rootroot00000000000000‰PNG  IHDR î^€PLTE3_‹O€#m¹8víB€×YÅ-qØ1sìkÒ¡¡¢I|ö'qáb‡ý˜˜™]Š\þP{ýmÊ`‹êz˜ÄNwýWyüRzþ³´´mŒê‹‹Œ’’±²²$vÓb…þK|ùpÝK|û…™äFtëe»^ƒý`…ëMu稨^†«b†ûEyóiÉiº@‚åTdnŒCvë+X†¨©©,têW|ù_ý/tÑ¢¦©eÊ4R":\ŠžºvŽë`¨©©©›¢!sáfŒõ“••K{ü&oåPܽ¿À»ºº…†ˆ`ÊD{ýyš¿:„ÃHxû^‚þJ‰Ê¶¶·»º·››œO|þEwù(qâEzøG{úÊÆÁ£¨¬R}ÿ·¸¹@w÷Az÷/yÜ/tèXþm’ú [× eÎfÕT}ÿ/tí3ví¹º¹7xñ^‚ü´µ¶X„õsÛ#rÙi×M|üiÊmÕ$pà#ièa†ð²³´ZÿkÙ7vò=xò4tí[ÿÌî»LtRNS3 v[™èÞÏÌP%üùÅRÒÞývañøúúý¨91©'.ÐÅá¶•N êªEûö–}”æSêY2^&’ùckqûúüb£óòBIDAT(Ïc` +à³âÃ#éjhèÊ…SZ_#4ÔÄMЀÏÊ[ÂtÍΖA“v5”’’†0½³++Ð¥Mb*% 62ZF‡h Ynå—g ±‘IÓ/HVÝAqy^PuÓÓ‹ØÐœæµÑ¡ º€Ír?ÿ!V0SE¶,‚‡UšßÚ'ÍZÌ´JJJÒC3]'­$*¦›•Ug.†*Ï\ZZdµ(§¶ÆHUÚØ¹ ŒGâsÓøxmeTi[žˆ5ˆ´Bx”¼šÛ-2“Ê] öD`H3gÕÕpÛzÖ…±a‚âhÒê5µñ:llþùª¢è1m”î[žZí‘RŸ, Ž‘Ôµ£¢ŠÃŠó«êÍÄ0Š2wqXFr}r` ™¶„$j¦]•›+§Ê«…=¡‰©ñº¸Øk1 2G@”Ö?IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/aimantON.png000066400000000000000000000020511417122252700214010ustar00rootroot00000000000000‰PNG  IHDR î^€PLTE§HB6ÎWB‡{ ’/1 …'& ÎzbÂ80 ¡5<‹&!º+'n'*‡‡‡ooo’ZJdef%¿\EÔ_Fœ¡~")~4&V0.½"Ÿ U°:.¯yMCZ[[³%%ÉaHY(a)0ÃY@a ¤¥¥?.2Š)/¸¸¹="²]bÌ@2Ä0'ÓN;×`G°±²± ——˜¾*!µ¶µÝrUØXAÛjM·Ë<0³³´ÔS=ÚkPÙeLÐG6¦§©ÛsUÚx^ÂÀ¼Á,#¶ÛoR¹Ø[C¦÷»ctRNS V"’j s¡êÍk 0H3Q-e&]òþ~ñ9Òób,ì}»(8D™™=ƒ”‰ûèg\Àýî²Aæô.·¾Ð9FO4ox¸(÷ Z¸ù$‚q÷YõIDAT(Ͻ“mSÚ@…w ï "J-DÚ*„BAabÁˆR%­£´µM‹DH@­–¿Þ@gê¦Õ¯=ï™=ÏÞ³ü#µ‚g z¢bŴϹĹÇc bPˆk4ZeËWÆ¸É Õ‰ëKß­Ê62*®f|N bãÖ°Ëwl"4€¥//ÏælGç:Ä®"›ï3[nQì7Œ14= …Š5£gaj·ZóIÒDîZtŠô9qP ïD:u²µ„À _û­³„-îÆÀ‡(ÇQs5œ¥û-±¸Q]ÑCàm·ï?ªá»›w⨘̸*Z`ÆŸ$×x€[“öÌŽéºËÔ2ŸìÂ틽vû a; ë@ýP~#çj3Пô/÷’Bü —y>«€ÐÕv$Iò+3‚ßhäß7dµ2Ãtò)‡².,Sƒ†=g‹£ðú¡ P‰Z5VÑ—™I7=£¼²,d“dܳâ•&ÍtV 2 ¶…çoòæw¤qç Ó¦½Ÿ]A± ö›ÆÀŸËe¹µaﺴº^T5b{Ðív…Ÿîöêaì­Æ\Õ²‚}2i›×S7úÒsªn€Ë¥á°w¥˜·Ñ±SÝß]†ìöë‡ñx\²¼uØMße-Š.œ :üÉ ôÙ€a³Fÿýï©eåth•IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/angle0.png000066400000000000000000000021401417122252700210400ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆ€PLTE      ! $',/7+2:%=&@%7<?G F# O$U'L(]-"U/f3#_7p9)}B&ˆH*rL-‘N)–U2†X4¢[2ž^,œ`0a;¥cB±e6™e;™d8½f+¶f2©g3Äg$Êi³m7Ïo"×w&à‚.ȉVãŠ9ÔRç•KÛ–[ê›Ræ\ä^„Sŧ€tRNS  "#&)+.0459=EP\k…Ž–™–Š|xssvwòwïîïwsoèhëéZêRèOëæç>çíIñxfGóúOUúúˆúù˜øøò®ïºæÇáØÑ¾èÞÝIDAT8ËuÓïoš@ð{Í»»{‘ Ü‹©ŠtÄé²­Éœëj¢5íªb7+±ÓÙ­Öló_ßÔ©Ã{Eø|¹<ÏÃr„!ÓgçX$2Á @,OW‘®à#î“?‹.Ó¤üÀÆ;/Š&É d^ó#wˆIê~™©y5@D¢uâG—rºÈü%wƒ ÿç‘­¿s÷óÙw‰ÿš]6|w€3Lׯë™[òÖ€°$‰|¬Üµåìò•ï¹».q:1MU1÷˜{ußP_ÿ^ÝÛÔÔ,îƒZեʮ š/«;×]Æ·‹î¡ @¡×ÝÑâñ‰ûëÑ MÕ}ÑÙI­;øös6lÍû‹°l0·:ޝF?ž®Î©ö|R¶sÀD·ïãðÍÇÞàëlÙTÝ‹‰Ú4ßAÐê F³‡È¡š,¢“ÄÊ„ûé©ïW«­öça¼üâP]³Z’S÷+.cŽ[©µ{ý8¾+RC‘pò N<ð˶!+*µyäCçê6×™YHŠâÍÆ5 cLT‹¹å ùé¢o˜Åë’ÞÊ%;=@e¯yöãù5Ó À‹ÙTË„X*˜¬XòÞŸ…aؤ*à/4U‘¶m%Å N©Ò8 ß9àÛŠxxüêÉ:uNʵÀ6@ò „‡·‰²F™Í¬BÞåÝDx½šV Çi„/ôtÍ`ÿ`@IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/angle1.png000066400000000000000000000021661417122252700210510ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆ€PLTE      "%),6'6!7&8*809<#6A"AE;H"L"R&P'H(\+Z-O-h2"d4k9q9)o=€B*hD*~G †G/‚K(yP/R+’S7‘U-¢W,“X4–X/—Y0•Y1“Z4™\5•^8¨]2a;•c=µc0•d<²f8½g+Äm-Óx/àˆ:â“Mâ™Yßžhå^g•w€tRNS  "%'*,/258>JWfŒ—š˜‘ŒxtrpliëäòõÖbÎõZôÃóLºôôµCö«<ô¨¢õ£ò4¡ò¡6žòšõv—Žmˆ`÷>MüDûûùôéÞÚÏÛŸ³4%IDAT8Ëu“ßoÚ0€ýì—ØQ~@"C! ¢06MLêh¥jiÝFŒ F7‹2 TDBAá_Ÿ“Ò¶pOV¾/ÖÝùp !BÂø ’8æEIÄ ––›ž*ã#BÄ·Á ¯ÉãwÛ ]5‰˜(D ƒ'"ú¿ £puõrŸï ÏœU€wœ0ŽGî83#=q ,›Ù=Î~±$$-ñ8æßüÉà€s`n7‹‚F” ã ÷Wð½·Ï™ð;¸_oæ–5ó?ºÎÜïw÷9ä“î`Èœ^¾v¢6¶zDU/Výà~uÓr33·,‘¼åÜÒþdµžu‹Ú‚6ÑAìyT}N½úyg¬§£½x¦]'¯,|¯îºn«3œøÓñ;M‘xôÜI,/Ø;çC§?¦tnhªÌ ãŽméºaÙµö—kJÿ˜‘=Àw4âå‘äô‰n•_œ7û”ÞörDŽ’|׫W²®c1eJõ¬y9¦³^>“1Ô³j¹¨ÇS™¼Yª4šÞ5½éæT`9«ëš²0± “œY²ï=Ï{«¥û ¤eᩬE3Šö«7§ìZãƒæ±Õ“T¦”kU€èÿÝÄKЦô¬œ´¼ ËWQdñ˜+,Ð_Ã’ëRÞâIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/angle2.png000066400000000000000000000021261417122252700210460ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆ€PLTE             #$#! %&%#',$/28*466 9'9)39#=%@$G N$ X)!a.$i4'q:/v>/{E:|F9~H2€I5J3†N+’\9Çb ÈcÉc ÉfœhE·m2Ìm#ŸmJÍp(Âr?¯rA´r;ªrG·uT½u<ÂvGÆ‚XɃK̇[щPÖŽUÝ”ZÝ—`|óñ€tRNS !$&)-22321 .,('›–œ‹˜—€%2/Žm*5,`8'XRA‹"”÷­ºÆèîžÙö÷õõöôõñîçۻȤŠløøøù]~ùQùùXfS÷’÷ï¦éºÃÙμ_”hIDAT8Ëu”ÍoÚ0‡sÞÉŽeÅù’LÊlÓªNâ0©•XXÆT:X¡d°”¦”¨&Vþõ9 l"99ïó(¶~áÅѰ G±ˆ0‚ Px¹qe ‹€£§0 )ï¼*)ç[Îm³@(ᵪE¥£kHømÿÔ±MÛ@îv~5>O&GrHøâ{<öü!áq¿ÜMƒœ ;îÔ‚pêæU@„Ä$V€HÊ+¥‡Å4Ø âr©(!"¿Wýœ«x=çŸÜíÓæÁТfœi,ãak/܇ábó‹1ÎORÎÚŒº¹€57˜†‹?›Uï­ã”õ4Àõ€dÊÞÞ.âñG§ZRÓ Fñe.@¬PV¹ñÓùã}‹é$é”hÕßçlÌVÞ›OƒÑÝã:24 Áhõí@IĹã8ÍÎp¯g¦Æ Þñj¥rÞŒâÉ9ó;âóa=s›Qj2»Ñ½ºö'“^]ÁÙy|>¯þÒ± cI3˜}Ú¾øþØÕð¨Ï8¯ZáoI*eÖë¶×ó.U%xg5«ld ”)¥rãÝ׋kÿgK—ÏA¥†Fò+z©l7¿xž×Ö%ˆ„÷ ²SL®Ô½SáÛ„¼ÀW˚ɬFÍP„‚Ë+b¢Qƒª¸@ÈÖKF…Bò €‚¿A‹µ=D¤IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/angle3.png000066400000000000000000000021441417122252700210470ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆ€PLTE          ! #* ! /36:'7<!9;<"=?!/B I"2#M%=(V+]2O8P8*c9"jB)`F3hK*pL0qR5uT4tU8tU7tX:v^=|b>†c8ÃdŠeTxdPoeSÅfffSÆgÂg!—h8žh3Éi™iRaiUÂj&½j-©k3ŸlQ®l.¹m7¥mO·m(Ín®oE¨pLÁp&µo.Ío±oAÄr$Ís!Ðt Ñu!rt]ˆr­›|¼§†Ë³’ʽšËáÐÊ©ËÊ©Ú~X‡€tRNS "$',/110/•†˜–-‹j…Y(‰ò¥á±ÀæÌñKòí$ë<çÝ#5ÕÊ/!»)#&ª¥™Ž‡ïø÷ùõøìøzäø÷øúvû{úû‡ÚûýÎüš¦¿´ú÷ðêåòöýþÛ¿dˆIDAT8Ëu”mÒ@…û˜´Sè›LÛ”VØ ÙÄ ‹5è&¨,/Y6T–mƒEÆWiÔºBøëNéM,÷Ó¤çÉ3çΔ)䀮˜\™…R$ÐYõDþàL0¾ÛºÍ²Àå>ÔUM•`.0Á›ý~ƒÇUÌï€ñžÆF¹˜ëdiH·¸!ÈÉpÃ859ƒyA®?¼c|»t¿þ÷.ŽÞ>3+ªü83Žc“X'Äa¢k2IÒe8’T‚l¢£:(üþ4 -˜^¯¤H‚ä/ˆnjr2ç¡Û¡Àðñór¹ 4Ý_´‰®ËéÖîK ðò‹¦;ýµZ{ísËÔàO¯E("ý¢9p£è¶a™šD¼«ìP,ëæÄ»v¿Dß;º"¤7Å™·³|Ï>{Þu?F?úH.%Èȳ+û̲¬Æë®ŽoTÒ…uþx'ÑMÓ¬˜Vwà}˜©7~´Œ2D¯UCHÕ‹W×oj”¤YÝ2 $B¾$#ݨ]¾ñ¢ín·‚Ä ÃöíúS¢ y šQG;RQ(!`8±Q5t”^ ‚¥²¦À¼óD„ àe„Ç¡ó’ŸnáÙ—J‰!„Ôˆ“šlÙçªHŽ Ø¿/‘"£ ïûF­ŠDæÄãe¡  „dþúž¿RŠA“sØ §IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/bold.png000066400000000000000000000011401417122252700206110ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2êPLTEwww‘‘‘666```|||>>>PPPRRR[[[<<<333~~~eeeiii‰‰‰DDDTTTZZZ000lll...ppp ‡‡‡LLLFFFØË~ý/tRNS  3), 25 #8 A(7'6>+.!<1:;=uÈæIDAT8Ëí’YS1„™Ìd7É. ,Ê­‚"xßž¨œóÿÿŽKñæ&¾[e¿öWIÏd2ÿú!O"ÏêJªb>+,€À›¯ë—Ao=ËIŸ,˜×ûçþúáö#ígÓ¯zš¬*å%3ïìæÓÎ?¯ËAr>¤”w£e»¾ñ9>*Ú€1oUq$¬Þ·~[g@9œòÞeÐ9nÚrÁ|ìwÏ= LÒëñ©v5Iaœ×ZƵ R›.¹– FGµHp%]j pž`ÕT¼ßóýy}à‘îàÄì7IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/carbtn.png000066400000000000000000000012741417122252700211520ustar00rootroot00000000000000‰PNG  IHDRþˆÕ6YPLTEÿÿÿÿÿÿB–*S²+U±,V°ÿÿÿ(R³ÃÌäÿÿÿ7Y¦8Z¢'M¥)R²:]««¹×Yv¶xÃ&P¯€”Ä(Kž$U¶$Iª&P³1W¯F¡)S³5V¢,S®lƒ¹'N¨ÿÿÿ(S³ÿÿÿ8>eÁZƒÔÄÓðQzÌ*S®WÒýþÿVÒgÛÀÏïRzÌHnËh’ÛHpƃ£à`‰×`‰Ö=eÂ2Z¶¿ÎîR{ÍOxÐJqÍY‚ÕÃÒïfÛLtÎõøü7`ºT{ÑDkÉHqÆ3Z¶`ŠÖy˜ÛRzÍWÓþÿÿ+S®$K§KtÊõ÷üKsÊ$L§8_ºGoËNxÊLuÎS|Ñ‹¡šQê¢[‘R™*r–¿Ÿs$„°rXL“™&i,1M!ÏZÃHN±ö^¥´dݪKyóÖpOÝYäά{r{“J—¶ßÛR:µ±Ãv£?ܽí†ý†}?è&:ã—q'¡Çø™ÿŠW¾ÆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cblack.png000066400000000000000000000001661417122252700211170ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTEª««¦yëËtRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cblue.png000066400000000000000000000001661417122252700207720ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTE«¬â²v!itRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cbrown.png000066400000000000000000000001661417122252700211720ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTEØÉ«–dûn ÍtRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/ccyan.png000066400000000000000000000001661417122252700207750ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTE’ÅÅ%ŽŽ"-¸þtRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cgreen.png000066400000000000000000000001661417122252700211430ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTEªÐ«|«ñ ïtRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/chidden.png000066400000000000000000000011441417122252700212730ustar00rootroot00000000000000‰PNG  IHDRÓFgGPLTE(*4BBB,.8)+5 ‚‚‚+-8999###!!!JJJ ,.9 *-7%%% iiissswww¶Áî111;;;58Epolzyv‡‡‡äää>BRDHXQQN___ÃÃÃÄÄĦ¦¦6:Gêêê±±±#HHGŽŽŽ––•ŠŠŠa_]gfc½½½¿¿¿‹‹‹gfd¥¥¥§§§«¶àjifLLL8;I?DUPPPXXX³³³µÀìÓÓÓÕÕÕ‘‘‘·Ãð¹ÄòÏÏÏÒÒÒÅÅÅËË˯¯¯ÇÇǨ¨¨¾¾¾CCCæææëëë;?O­·â ªÑÿÿÿªµÞàÖªÓ,tRNSôõ¦¡)! ûõÇ|S »n_ã׿Ïô0ôåàÔõ¼øéæô’Óõ᪦ZÀåe IDATÓc`  É211)hˆ‹"Ä´¥²ÀSÇQ.Æ#è–žfîeh“&cã2‹MŠOÐKµMӄбJš&úÙ%[¦DDzK@ĤխŒ}<œC¼RtµØ!‚b–ÁN®É¾¡ÌüPÝJÑ™@coâ’ʳ†3' üÜ ÔDàîáÏý en$Ï(ª2Œ /éBÌ9ÿÏîIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cnormal.png000066400000000000000000000011151417122252700213260ustar00rootroot00000000000000‰PNG  IHDRÓFgöPLTEŽ@+_+Újÿ˜6ÿ¶pÿÀ…>, I!ÿªZÔ@æùHtRNSXq8.`v W1) 6 p4‹-L%G?tP0nTS< UQ5^Jc=:&lŠ/wO7!+r3Àj4¾IDATÓµÎ×VÂ@…á3-ŒMH/ iT@{,T•öþ/ĵÄ'à»Ù—û8b(蟧(˜8\éiÌŒuýTÒ¨zŽ€où»=øùi8Vç‹ÍÁjÝ ï€#zU·Z£ôöí4zþLLÐâéË­å?Fb&„¸ZõÀ•M²nã²Ý÷O §· •²úšgAR­~I÷ï¹<2PÅk5×eŒQJYíZ&aüW_ÚC²B0Æ„ì§@¾O¨ÖöþIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod0.png000066400000000000000000000003441417122252700205230ustar00rootroot00000000000000‰PNG  IHDRÄd®NPLTE ÿÁ†ÿ½ÿË !ÿÉ–ÿÊ; ÓŒ`{:ÿ‚ ÿ¨UY%6  Çm4&­QÌzFÒ‰\;$!Êt>`v½%tRNS3ÌÌ´3ÌÌ$$´´Ì´Yê™5IDATÓc`Ì€…ƒ `æãKs‹‰JbB"<`i~qa ,@P€,ÍÉÆˆp1 aÝ%ÇÈL?IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod1.png000066400000000000000000000005571417122252700205320ustar00rootroot00000000000000‰PNG  IHDRÄd®“PLTE ÿÁ† Y%6 !;ÿËÿ‚ ÿÊӌ` ÿ¨Uô¹€Ó o{:ÿÉ–ÿ½Çm4 &V1;$]5ÌzFÒ‰\ ­Q !Êt>m› #tRNS3ÌNQ$´?ÒfWÕú3$ÆÌ´±´¹‘ÌÀÎÓÞH´9ÌÌr [hIDATÓc` °°â•–ãᇝ4—(¦˜€¢0HóÊÀ˜LJ’B`i-MÐPƒ3•uåÁÒìêªú0 ¢­cê鈥ùù@\ÁfÃtˆ‚,3^Ç ²à•æ–Â+ÍÌÊ@5០']ÊôcIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod2.png000066400000000000000000000005651417122252700205320ustar00rootroot00000000000000‰PNG  IHDRÄd®“PLTE ÿÁ† ô¹€Ó oÿ½ÿÉ–ÿËÿÊӌ`Y%6ÿ‚  {: ;!ÿ¨U&Ò‰\ ÌzF;$Çm4­Q]5V1  !Êt>®Œ2•#tRNS3ÌQNÀúÒÞÆHΑfÓ±?9WÕ¹ÌÌÌ´´´´$$3Ìåë×ónIDATÓ­ÎÇ‚DQ¦"U¬€ôªÿÿu&3q¡ÉK\x’»šÍ(ʯ \‹I"Ÿ v{ö)=W°1=DÉý‚ùT5OF]Ã|nËÍÓ‚`©¯˜óB}‹·Œ²ï­!‰c0A¸fMgÿñ»C þ¿£@IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod3.png000066400000000000000000000005731417122252700205320ustar00rootroot00000000000000‰PNG  IHDRÄd®“PLTE ÿÁ†Ó o ô¹€ÿ¨Uÿ½ÿÊ Y%6ÿË!ÿÉ– ;{:ÓŒ`ÿ‚ Ò‰\ÌzF;$& Çm4­Q ]5V1 !Êt>œÄ$#tRNS3ÌNQÞ?‘HÓúfÕÆ9ÒÀÎW¹±ÌÌÌ´´3Ì$$´´žOÐ&tIDATÓc` °°"0À)€ÀØ/;c<¢Œ ¤e%˜€@ˆ› ŽA@\L ,­¨¬b:º š `i)U5}ÐÒÖƒc ÐS—KËË0B€ƒ€ª#øÙ˜áàcA`,@X±fV¦€Ÿ Õ“)SïIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod4.png000066400000000000000000000005721417122252700205320ustar00rootroot00000000000000‰PNG  IHDRÄd®“PLTE ÿÁ†ô¹€ Ó o Y%6ÿÉ–!ÿ‚ ÿËÿÊ {:ÓŒ`;ÿ¨Uÿ½­Q ;$&Ò‰\ÌzFÇm4 ]5V1 !Êt>†çf²#tRNS3ÌNQ±WÒ9ÎHúÕÓÀfÆÞ?‘¹´´Ì3Ì$´´$ÌÌÓsA*sIDATÓ¥ÎÉ‚0DQ’€¨ ‚‚2ƒ€"Éÿe6ÐoE•·ê¬zÓ†±&a!’³E4ï„HÁÍåIÁùÞõçí5Ósýx*¥Þ¤^]¥çËí.¥Æ È©?ë¹IÙ¯8BŒ•Ë »£ h¡@$û€H¦…þï Nœ ¬)¬ wIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod5.png000066400000000000000000000006311417122252700205270ustar00rootroot00000000000000‰PNG  IHDRÄd®–PLTE ÿÁ†aI3S?,ÿÉ–Y%6ÿ½ !ÿ‚ ; ÿ¨UÿÊӌ`ÿË{:Çm4Ò‰\ÌzF­Q &;$ Ào; Êt>!Ýå Ì%tRNS3Ì ÞE<“¢Ø©éŠœ­N-áìBrÌ´Ì$3$´ÌÌ´´Rþ;IDATÓ­Ž×Â0 EÝ&éÞZ(›:àÿ%JúPÉœ‡«kÉ2ÀÏ”„')8<Ѧ›$®‰]·2B2k³¼í.ºÄÏs_õê|úúlß’ygÕÝ]èýkøH–iZÖÞŸ„nš"ö¼x´zóEÁ(eö8e€Á(¢ígh#:xF)ü‹/ms ·°ŸÕIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cod6.png000066400000000000000000000005571417122252700205370ustar00rootroot00000000000000‰PNG  IHDRÄd®PLTE ÿÁ†'Ç—i;ÿÉ–ÓŒ`!ÿ‚ ÿ½ÿÊ ÿ¨UÿË{: Y%6­Q;$ÌzF &Ò‰\Çm4Åq= !Êt>»"1átRNS3Ì<ÃŽqÐ/\(¥öùÕ$Ì´3ÌÌ$Ì´´´ …'IDATÓc` 0³²ó³³2ãådaãàá`cáÄ®—… Ls±`ÕÏÊe°±¢ˆK ‰3¯ð‚)1IQ°´°²‚¨ªkA€º*˜R‘“KËÊ+iš†&h¨)E °´ #pó1B7”!A‚Ë ø›P¨QM‘ v÷gIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color0.png000066400000000000000000000011711417122252700210730ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2´PLTE ¡¢¢UUU‰‰‰qqqª««ÏgÛ5tRNS  3 , %²`Ùó1õÝZgÛŸ#.®á·Óp@¢¼NrtÂÒaƒi»×/IDAT8ËÕRÇrÂ0´UÝ+®ôÞk‚1èÿÿ+2C°%˜I.9doš·ÚWvå¿AHƒPC@}_FX7‰aSÇH}óŽâñ)Ë–›o¹PVQÞEìEŸXbü‘²'º+‡` À]U¿”EQ^*Fì°)F\ÿ|½Ýq=3¶õ¨‹8æßuÎàƒoáZèc®{‚w™…T¯§@扱²&”Œ¥^Ǭ{h$c¬¨ cíAAVæRIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color1.png000066400000000000000000000012221417122252700210710ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ÃPLTEx{zowYcAy_uK\ti+tzqkmyuhtvnTTr ‚ ‰À‰U¦Uq´q¡Ë¢ªÐ«|Ž žp:tRNS    3%1Ý,óõ`²`.@p,ÓZÙ#rt·²ÛÙ¼®ÂÒág¢ŸNƒa|¨Õ84IDAT8ËÕRÇrÂ0Īî°±!ô^B/ £ÿÿ*ä Á–ðLrÉ!{Ó¼Õ¾²[*ý7(ij(Åe„ •è:Q Œ”‚ß°Û8l¢¨¿ßÍ-Ê* ÀÇ7öÀt@M,1þ|gOÔ:Á@€Ç´~‰“$¾¤Œ¦c¼êrýóõö…ë™±eÚ('€üÛ£Îü1 ,œIãÀõoOð.+ÙHÝ0g„˜±aXV³‰K2BÂXݯíI€ú+Á­ê0GèË-A#{yșЩ;yÍ“0$0æSñPë¶°¦‚­A-êí¸%ª„lÚ©efm?Ü‘pjn–é4—ßõõØõ$³¸ÝÄéMVÃz}1;µ[#Ùî40& ¼Ðw]?ô‚×À¤‘³-Z®T«•2-ˆÜÏ¡ýEìÿ wÌF¥ûYT;IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color2.png000066400000000000000000000012211417122252700210710ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ÃPLTE¬±¯Ÿ«€Ž^(­‰¯k„¦—=¨§¢š®¨•¦©žyy£ µ‰ŠÙUVÊqrÒ¢£ß«¬â²«éÞá:tRNS    3%1Ý,óõ`²`.@p,ÓZÙ#rt·²ÙÛ¼®ÂÒág¢ŸNƒaýš¤Þ3IDAT8ËÕRÇrÂ0Īî Û´Ð ½×ƒÑÿr†Ø–`&¹ä½iÞj_Ù-•þ€45”×e„ •è:Q Œ”¿a·qØÔjýýnfÙPVQ>¾±&jb‰ðç;ËPé8AÓú%N’ø’2šŽ ‹¨ËõÏ×Û®gÆ–=j£‚nðo:gðÇ8²p.Œ׿eà]V5ò)ºa,Î 1cóª¯æ=4Rc,É cõ°L´Œõg‚è°@èË-A#{yȩЩ;yÍ“0$0fñPë¶°¦‚­A¥xêí¨%ª„lÚ©äfm?Ü¡pjn–é4—ßõõÈõ$³¸ÝÄéWóz}1=µ[CÙî40&¼jèºaÕ‹ž“Fζ¨_‚²O_DîçÐþ"ö…; 6F¥¨ûn#IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color3.png000066400000000000000000000012211417122252700210720ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ÃPLTE•c‘`”b†Yˆ[Ž_‚WoJ„XŒ]’bŒ]’aO5Ž_^Ž_“b"…Y`4#wP}T[<sMlHUfDfDŠ\›k ·–U˵‰Â§qÔâØÉ«–d9ƒu›:tRNS  3 %óÝõ1,`#¼Ÿ®t¢ҷÓÙÛáÙ.,@N²pgrZ`²ƒaLÝô3IDAT8ËÕRÇrÂ0Īî ÛôÞC ŒÑÿr†`Kx&¹ä½iÞj_Ù-•þu„t”â2ĆJ4¨†JÁo4n´åò¨¿];’U€WïìážÚXbüùÆž6.Á@@«´~‰“$¾¤Œƒk£¼sýóõö…ë™±Ö‚Z0'€üÛ£ÎüÑ­88“F›ëßžà]:5²) :`,Î1c“Z]Ízè¤ÌX’ÆÂÈ'ú“€´W‚YÕPŽ0’[L‚NúòG¡T·òš'aH`¬‡â¡zKaM;û êÙn.ª-º 2³ffS857Ëv­ïzogz’YÜnâ.ºIN§å¼)ÛƦ¯™fTó*¯I#g9´îW«~DîçÐþ"ö…;ÇkF¥Ïl¯IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color4.png000066400000000000000000000012211417122252700210730ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ÃPLTE$‰‰%$ŒŒ!#††ff!}}$ŠŠ$‹‹ 11$‹‹mm VViixxKKwwqq!~~ {{$ˆˆ#……#‡‡#……#……"#††````"‚‚/““¥ÎÏh°°~»¼’ÅŬÒÓ%ŽŽZ÷œ:tRNS    3%Ý1,óõ`á`ÂÓÙÒ.Z,#rt²@gpN®²¢ŸÛ·¼Ùƒa H%¸eå¹ÅN ¨d#9Z@m!¯y†Fw/ª=ÖT°=ðó§nŽû¡JСK?3«ùᎄSs³L«uø®·Ç®'™Åí&Öp²>Öë»éiÞÉv§1iäU× *^ô˜4rŽM«µr¹V¥‘û9´¿ˆý_áíïF¥kIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/color5.png000066400000000000000000000012211417122252700210740ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ÃPLTE®³±¡­_)¯Š°m…¨˜>ª©¤œŸ°ª–¨« zz¥· ׉‰ÉUUÐqqÝ¡¡ßªª´÷¤Ä:tRNS    3%1Ý,óõ`²`.@p,ÓZÙ#rt·²ÙÛ¼®ÂÒág¢ŸNƒaýš¤Þ3IDAT8ËÕRÇrÂ0Īî Û´Ð ½×ƒÑÿr†Ø–`&¹ä½iÞj_Ù-•þ€45”×e„ •è:Q Œ”¿a·qØÔjýýnfÙPVQ>¾±&jb‰ðç;ËPé8AÓú%N’ø’2šŽ ‹¨ËõÏ×Û®gÆ–=j£‚nðo:gðÇ8²p.Œ׿eà]V5ò)ºa,Î 1cóª¯æ=4Rc,É cõ°L´Œõg‚è°@èË-A#{yȩЩ;yÍ“0$0fñPë¶°¦‚­A¥xêí¨%ª„lÚ©äfm?Ü¡pjn–é4—ßõõÈõ$³¸ÝÄéWóz}1=µ[CÙî40&¼jèºaÕ‹ž“Fζ¨_‚²O_DîçÐþ"ö…; 6F¥¨ûn#IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cred.png000066400000000000000000000001661417122252700206150ustar00rootroot00000000000000‰PNG  IHDR™öÆ PLTEߪª´ºo tRNS@æØfIDAT×c`@\«V­Z#CCC‰$‘t!ܶ@1UrÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cshowname.png000066400000000000000000000010611417122252700216570ustar00rootroot00000000000000‰PNG  IHDRÓFgÿPLTE@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@:Wu9Sq#3C#3D8Ts?\z 7Rm ?\y.DZ7Qm  ( /DY1G_ 7Pj@@@5Ni5Nh 7Ql 6Rn@@@:Vt9Uu:Wu¼ÐçC_|ZtÑåùZuVpXrŽÐäùVpŒe~™A_|Oi†Òåú³Éß´Éà¬ÁÙešOj†VqËßôMh…B_|@@@æ´s´>tRNS@PÏ Ÿ0ßï¯p Ç¿XWógå caº"! VS^`³³ºå€½óÈçÎØ£IDATÓ¥ÎEÂPЉ!!ÁÝÝÝÝ]Bæþg!ùl¨bEÑ›žz›€ŸÂPÂ7òˆ 9Âíl¬Ó}£Q1+Ÿ]‰¾ŠÈ„æ‹ýÃ(ç Êè°¡¢s5ÛžIÌ D‡Òä¶<éëAÊÂ:Z‘@o.úõÙðXÈ"MQ2ÒÕšqß=nÕ4²dÌÑJ/Ò x¹Ïo‹…––ªœþÌ æ\žßaIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cshowvalue.png000066400000000000000000000003201417122252700220500ustar00rootroot00000000000000‰PNG  IHDR¶òf-PLTE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!ÙaÌtRNSŸ¿¯`ÏP@ï0߯£»DIDAT×c` 4«20«‚XÜO–0°=Zb2>=ÇÀ)P f>c``zgê €˜¯3Îx.6áÜm>‘wI³÷ˆV‘A©IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/csolid.png000066400000000000000000000014321417122252700211520ustar00rootroot00000000000000‰PNG  IHDRÓFg€PLTE    ! %%*+2.9#2>(4B-7F2=F5CJ=LKDWMMa_SRjTIqUE}V:ˆY4–[,£`*­a#»h$Åj ËmÐnÔpÕpØrÛtáyâyãzázå{ä|æ~ë€í„ ì…#å…)ì‡%äˆ/áˆ3Þ‰9ÚŒ@Ø‘LÒ•YÈ™nÁœ~²ž˜™Ÿ¿¡ ³§ «˜ Ã™¡Å ªÐŸªÏŸªÐŸ©Ïž¨Î§Íš£ÈPUhPUhPUgPUhPUhRUeQUfPUhPUhWT[TT`[SVNPd“hXltRNS "&*/5;@IPW`ekpx}‰Ž˜œ¢¨°´¹¿ÅÊÖàåîñóõððìëíòôüþþþþüüúûúûøøõòíèßÔϽ¸¾·³Ä®«ž©¤¤§ª¶¿ÌÕåûõîþþú¼KÝIDATÓMÎ;oƒ0†a\MÜ'q[ZªÆ ª¢&4©Ä–‰(e¨TuAl ³ÎAD⛬缃ÉõZyÔ6áÈùSžcÁ›+Þ#«Êò·ò\ËäJ«î¼žÊKÅèDiOÝG¾yq®ç±n<`J( ÄìïTäºi[½’˜›2_Ì¢/´¶ÑKL‰iÑÑX&AºÆ”†åˆ¸·>4u·.¥ˆ|`˜Žm@øßpÛ©8‰—›4M?pÛ]–çÐõe½½ã*َ߀sùˆ{z_ŸYvkƒ7ÞóHžCIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/csuperhidden.png000066400000000000000000000010271417122252700223520ustar00rootroot00000000000000‰PNG  IHDRÓFgPLTEWWW»»»%%%{{{ ···kkkqqq£££¦¦¦XXX€€€CCC©©©žžžKKKÀÀÀ>>>VVV111+++)))ººº&&&]]]666 <<<„„„ˆˆˆ÷÷÷‰‰‰ííí ²²²ŸŸŸâââ¶¶¶˜˜˜ÔÔÔÅÅŧ§§ƒƒƒššš³³³ÊÊÊòòòÿÿÿààà ªÑÓq9_tRNSÄ«a¯rn’ÎÆ³±`Iß:¡ Õ°?˜-l*,æ§IDATÓeÐÕA @Ñ.îîîîã2üÿ§0 ;$,çñ&M›¨¢ RôyBÜhÅ9»ÚL;ñFˆ»Â}š…¯=ˆ/°ì'êÇÅ+‘›$I"Q7«_ˆN2±ÇÞ12¬œ‰j7{ÀJ.¦W>½¥'KA–e¡ípÐóÐôˆ‰}3FO )в^á7n·ùX415ÊØ@› +üEƒ›~ÂÿÝîõÑöê¡;êŸQ¶IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/cthick.png000066400000000000000000000012661417122252700211470ustar00rootroot00000000000000‰PNG  IHDRÓFg5PLTEæp% k3 E:%ÿ¢I鯄ähÿÀ…ÿÍ«l[T&Œ?+Ñcÿ´m ݆Dn2"ŸŒ©uTtRNS   ­<•.f E(“29c®I£”}%/§t)‰0a#!`~S@‘z^[+&p ONV–;'ygÀ73=8nRd ÔлÜIDATÓc` 0B˜ÉÉ#$Ä ¬²²¬vLìœ@1nQa96 ätgef`àdI†ƒÈ~6]nÛ¨èT8H ³÷ea`à2ˆKHƒƒøÐ@EmF&ñðˆ8HJR5Ñ Z+j™)q€€·‚‚¦“y:#;¯…»Ž„„Š ŸŸ§±ˆ˜+£†¯ƒ¥¾ŒL°ˆ‡ˆ‘£?Ð"&yC+Iii^S?ÞIq/g ãy¸X…•夤X€@@Y˜•äaNnf.vv&&&Q&&.fnH '$óI!ÿªZ¼@¶zCtRNS 40#=&' !%?*<K-C P73YUJ F. )(>+G6;$M1QTbf8ô%.ZÊIDATÓµÎUrA…áÛÞ=n0†{$A"XdfÿëaHQ•ä9çø‡h‰ ¿8!˜ÆŠ<Šä ?E„iR)#P”Ÿöy[°<ŒåÇïÀ6Aaçð“EšeF³™wY Ùúx{7w?Zõ(ú|J *Æ‹×ê˺÷ÜíÖj÷ëþëF' ;_Þ™H©ëré½ùmè™NÕ]…Óª¶FènqTB=ΘÅËܲL‹ Á Æ…ž\»ù =Ä”bŒ)ýk4VwÄjQˆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/filled.png000066400000000000000000000017571417122252700211460ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE   "###$%%%&&),0$%48= B!E $L"&Q%)W',\).`+0e,2h.4m06q18t29w5;|6<7>‚8?…:Aˆ;CŒ=E‘>F“?G•MTŸSZ¢V]¤Za¦_e¨biªek¬jp®ms°rx³sy²tz²y³{²|°„°€…¯€…®‚†¯„ˆ°ˆŒ³Œ¶‘•»—š¿™Ä›ŸÄ›ŸÇœ ÇHOœFN›CLšCK™AJ˜AI˜@I˜@H˜@H˜@H—@H—@H—@H–?G”?G”?G•?F”>F’>F’v"ˆ¬mtRNS !#$&'+* 0 8F!Wcv}©±¾ÆÎ!Øßêòò÷ø÷ø÷÷øôóôòöù÷õôóðìéèèëôõþþþýýüüûú÷óäÖ¹¦“‡ƒ€€„‹›§Í½éÞËœí¡IDAT8Ë­ÓÏOÂ0ðíÛòR4ô"‰ùeLœÄ¡Ìñ0P†3QŒÆ d»-Fö¯ÛÁÆØ&áâ»~?íÛÚWncMqÿ â¯x„Px©(Ƀ*È’è™`quøI)5Ÿ5‰Ä§‡_,íÝ®at_A}ÁùùÑ;¥}bÙÖHoë·à Î_ÿAÍû‘eÏÊšŒÖŽ/æ õFÍÎÄ^”åh7Ò@B-š³r»XXcÉíïf}‹5™¾JMÝŠ[Só³-8¯Ãö&±ÜvÕâ&¤æ =4ï¬$(gAœ±ovì$Ø'XâÐN‚ór^þÚY)ƒ‡pšJqÒ5£ÿH÷BÉ/>R€çv윜ëã ~sƒ—jz8®ªì’à XèO§Îr^WJ$Gˆdžv6ö"Æ™LcHŽýâá¬x8ëŸÞªú²j½p£ÌSIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/fnct.png000066400000000000000000000023651417122252700206350ustar00rootroot00000000000000‰PNG  IHDR szzôbKGDÿÿÿ ½§“ pHYs  šœtIMEÝ :8ÚÖCòiTXtCommentCreated with GIMPd.eYIDATXÃÍWßOW=wYg»LåG¨uA¢‘˜(¦\^XÒh•‡.¾˜¨ €&õÁ§b"m̾PÃKCuø±Ë.nH A5¤Z’Vù °ˆ+–´˜Ó‡aØÙa–¥ Mû%“;3wîwÏwî™ï»WD¢&„Àe'BACã³™Yð›Ø±˜0ö‘d,6 w¨P-$ó ÿ/òÛ¥x ¬›E%I†B³lk{ƒ……%¸\.pžY R`¬ÿøÒ˜Óßww¿£ÇÓKYn¥ÅÒÂ}û:èõŽQQÂùÆ1úË’h´bÙTŠk“¯_A08Ip8lèïŸCMÍkH’¥O­— 1 E¤E¥(ÓLO÷3#ã!››§vUTôhdYÙÊu …‘‰ Óü°Íí~L ‰7oŽP>Uû|EÅÅ]´Û¼zu˜$„z|$®•»wÇ 4ñàÁ.ŠCÿ]uõ?î!Дc¦SAÅ‹^£ðÚòò: øY_?Ià;»FµÚ¾,(è¤ÓÙÆû÷§h6GÂ"T8²FGça·[qúôó=äù?–Gµý¦«´t;&'? ½}f%…¬¡ -"#‘>%éâÅW^¹2DÀk‹î¯´¨m° °°“™™!vt¼¡©TTŠ]QÂù@¥uíåÐÖ?¸C–[¹uk €#cÕööí1 }úÕïoßþÙìý<ÞQg«­=^XXDEÅ.u6Àð#ò&3ÓŽ´4áð"„hÈ6­†Áà,nÜÆ‹_O™}âdÛ½{’päÈ6ãK&Y±ãÇ»w:ô¦§@Òû]•õ ÆÆæðàÁ„hHÕ­U Øv÷ö¾GV–Œ²²GÙ@åGuZõÛÕ{÷áòò8yr€¢@ê×cÿþv>†B3Œ-ÂïSª«‡ øxêÔsFÄf®}ÆŒ¼SÇD‰$.]zI«5Àsç~!P¿Ý\ý~gvv;­Öf¡ñrˆ€ñ9*””d %e :;ßúµ×èõû‹&&&~CAA:ÈÒ°¾?ÞžA¿qYÑ€þ#§7;7WÆàà<îÜùâ'ÀèØ—ÓØ8 IJ‰ÎuWM, °‘ªªAÚí~––>%à?é¯ÙRW7N ™ùùÔ$›­ïZÅË´ _ Ìw¹º4òÚµ!Fú[óÜî>^¾üб6& ¶Hš:½Þ×üÌËë`}}˜@Kñ… /)I-,*ê" Æ‹rÝV;‚Éåå?h¢Óù#ÝîÊr€G·niÑ[4.õ¹)çèÑ'>¦¦>dUÕEÒö› j[®þ\)§B4–œ9³÷ñÜÜ\®4œ=ûk.éÕÿ–±Î:˜¨h…§!°9HÏÐz›À˜0Œ…f³Xãe/ãa3VÅûWφkú_N7b¬,kÒgô)IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/hide.png000066400000000000000000000016061417122252700206110ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTEKKK666111))) €€€CCC¦¦¦„„„»»»÷÷÷VVVqqq ]]]žžž£££WWW>>>©©©&&&+++<<ù 8N G=#K‘4M’,Ï@¼á¹ÎxIjg 3É¿ÈÜä'8’Áµ^ßž)~È3{b‹‹Ç´¾/yò)³–,§Ób/ǵ'ZS«ï2Wû÷¥RIl³Rµ ‰àöî›Ìæõú£„8­ H~äôðUfeAx’¸Œt8í°:¿?v¾ü\álþ¢,BùxÔ;8cT>‰3ÍÊúböA¢¸÷X8J§¬‰Å/±P(Üeãf«À”CAVÈå¶R ÙfPPªÀÍÎRpÀ¢ñ U¹£¡ž(G׿×O›õ ;i½Ú#О¨nuû)­G0"ì¶t5Uð…¢&Ëh=‚>ì·™‡ÉÍMx]}™PöJ‘ä&éacÙªUü­‹›o k÷ä§ãeIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/large.png000066400000000000000000000012171417122252700207700ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2íPLTE000iii,,,+++RRRmmm---999TTT(((===AAA !!!CCC<<<WWW555HHH%%%VVV2Wñ‡0tRNS '(&- +$) */ 4"1., 0#!%5!êZ×IDAT8ËÕ“ÇvÂ@ E‘¦ÙãF1˜Ø@ Þ{éTëÿ?'>9ÉÆö°NÞV÷¼ÑHO•Ê¿’Åc˜‰1Á­’º@ekȤíz£Ê Ç·«÷—“ë›×©Š¡NRÊ4KS’-UÍ¿ÂìåóÎ ˆ·?'’ÐÈ[0}±ìúÙÛrˆÚ^]ä„ϧÀ_«ÁzxHänجÌ£ƒDw÷Z=¢X6‹ÀòüÇ ·w¢Éx‘Õ£ÒîéW‘_ò „3:ÞÜï;®ë´Ëæ€0¥íÀJ)“ÒI"<Òw“¦] \RÜ©uÛD˜‘#q@ ÕÓDG‰ffÀ&z¶ ”0U³©›3+ØhÄ„µ*Õ™¬?yp_fo!“Ê}r­IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/obtuse.png000066400000000000000000000016311417122252700211770ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE > 3+ç€)€qžªÉä‡<ÿ«\·ª²ƒ?Qhž¢Nú¶wøºƒl4 &:9û‘0Ë·°–L8 „•¾@<_m3-äm /=] 8+!1ø¾‹þÄH,ô¨g"+C^-÷“- e17C_Ëb ûÀŠ“hvܤÿŠB ¢suÉa°|s&1J>Ox)=­T ©´ÎUl¥2@b#-DBT€áy%ËbLb”¢N Ëg€º÷z ¸V|‘ÃT&ß•_^Wy\u²)5Rù–>z½_(^x´€”Åó~\-SI]I]Ž¡¯Ôåo ²U s5“¥Îqˆ¾QhžFZ‰;KrV%-=Nwˆ›È†™È’H ‡gÊPWtRNS'( "2#ó Ø¢xq$ûÄ€é#êӫdžœ¬lFv gH…SkSÈ û†¼CX%X ¼°ܧœûC û‚ñ†°wiÉMaIDAT8Ëc`iÀÜBYIFFFI]Ê «¼›LbI}}\Lbžº!6y¥¼äjÕuͦiš¯ÕzH•R ÷ÀBži­5Hº#˜–eˆ¨=°(à£7Æ ªªùš4¸•eÉ®ë úÅ3œ¬µ×$I6OèãœÎ¯ñ_ØUʹ/.},IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/partial.png000066400000000000000000000021251417122252700213310ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE*œR"÷¬eÔŠO ( b/R-9Èž‹ ,«RS* fNS -'Ý®‹Ã^E #6 Z2K+íªr‡p3#ß®Äg Ê‚Wªq^賃-ö¨a;' ›ƒ‘ ”}‰„_jW4j|]ƒ  ¡‹¥\RZ  Òp@H P'ð±yʘ涊%ó©dòˆ$XE`£n^˜‚š]- à®~ $-ßm3FC ^¹Zh1e.<"Îdöˆ#T":bFwp50÷yÊq3`8^»¡É‰qtRNS   —)"Eþ´Ìo$•, ·Wƒ&È-ü: ò*C‚ïjþô€w<þHåÁ' c\*LúþªQ6쫸¬âaõþý{êE\UKó~Çʽ/3mìÕ—MöÈ_ÅJþß~(IDAT8Ë•“ûSQŽϽû^Þ ÃŒ@’à‚Úh¦£”ÏMLÁ˜RÉ,S0eĽE`›iýžûÝÏ=çÜ‘‘ÿú€ë1$\–#ÐJ÷­x,0¬æø0};ÿBÀp¸r‡k¿ª ‡…âJzn=ý1\(;ÕòÇ+3ñ)_)úýþµ£ãeÍÉÁaøþëóxüòüvî“,ö­èâ_Ï7›{ áÓé×.¾ï¢&~ÚÄ?i¾šIèÑ¥€Ü/@•£ËõÜj¡U^õ„’š*ˆö:Èr¼šóè'­¯+^Ux‘ãRØtüQÀ¿Yʇ|™–Ûg“(B(;ñvTÍLî· ,Ȳª…¯6ò*3ÏÁìçN8¦0Jéßà ÁŒñÊs÷3[×EÈ&:§^M1Œï¬k‰Y„vÊ.Y¢æ ȦƒÞÝÆ¢ÛÁH¼“ab"P)UØ×w7ï¶Êš@{ì"”šçªQØ72wµŸ­G`þ ”ý˜1ê©Í/Û?·f£yž¦‚êÛívéæì,2¶2e³÷ç†Ø{÷dm±tÙIè>ÍŽû“GXIë›ÈLâË”ËÉ 4rRìþXB©<ì7@ãFc»6{à ´â~EªdâëÁ¤bQ]$NFö‚Cð»ýÎHÆñ”ÙŠÄ!ëçG±ˆ)ÿ|ßOÆ¿4M7¨Ò!\IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/plines.png000066400000000000000000000017171417122252700211750ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTEÞ}*()Χ‘Ôtë³…t^|? (ÚŠFݘg K!$* <> 1&#—sƒ  a/äªz" 1k3  &Ÿ„‹žL% ¥…“á§tw8 ‘v‰ ìµ…Æ¢˜zkq e0 õ’;n  µ”f1'ãw 8 $΋K§ž  Â_H#±–—fTMדg+8G"+ Ì£’V;KeŒ( ?†?ÚˆL…@T#5R/dÒe ^7d[*L˜}˜™F")öœK>Rú¯kÞkí‡.¢aS.ßiÀmtRNS   ' Ž$÷"# ƒ"%ÝX.×$Ý7ý*úßäLº+Ô€”“+T&Fþ yêUùSg+­«*:÷îäY 5Ç8ê[y?Ò¦#U×Ü(^üëÐÍ-6„ë+IDAT8˵SÇRQä½ o9KÅ”€" E,ÄP1ÌŠ`@%(úë.åq‡›öuzzz’Bño@¨ˆÂ -£>a†cù»ƒ]žƒh<=Sþ윙EŽ‚Ô q©ÓétC6‹ƒš5~u•¨UdÀ4ïŸxMsÝ4ÐfO‹§‘ÉÌC —¾Êä}¾éˆJÇb¨ÀÖÕcYk?ÖŒêô8,·¦ÎmV%ÏA>(Ä\޷ƪ&IƘ’­C28ÿ=¹0¤V²!ù¶&Îoo0žs9Yn˜»hzóñ OË“‹û4MæRÞ²6©åîκõb1õr¤µ­8¨»lóÁø^ªÚU:œâ²Í@àmÌóÛ0?ânÖ×Á»0Ø#°îZãã:ìIº@"«z»ÝÇLàfëË¥õ½ ZÙ‡ ÄNL¾¨6g‘f0Ù6[Uš‘0à%+¤_Ð󢞪Ϸô¾ Zð_àF5åF¡IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/showname.png000066400000000000000000000013571417122252700215240ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2PLTE9RmYv>Zw*=Q/E[>YvYv„œµÊÞó³Èß>ZwL K‚UtRNS  %& ŒÜÈpƒàÛ”"9ä«»ò9+ZIâ!B30ÀØYá‹)Ö *×Ö†K4–QÐ&"ïqÖ…€}d`§O)ˆ›HœIDAT8ËÅ“Gr1Eé–49Ñ`08çœÎ9géþ×ðx¼ /ùÛ~õ~•º•Ë %ƒÇ‘ `ã9ŸêD zµ0]¥]‡VhªÄb±YÓ ÀTPw ®©RÁij؉kJÌŸ‹ÉãiñôèR™è«ÈRnV˜LAØš¸^]i‹eÛˆ$ <›^ìy[âÅd8{2svjÛÛó£ˆ4·TrÝ`ê!ìL«Þ¬¿ï…yªSŸùBïœsþýùõÆtBPO7Ú+¨òN’|ðBV.Ù79àI·›ðºÃä‹Âý? h©^ùö·¢Ã*€\ò,-UЋB½ØhÙU‚i8–å&‚ê\)Ó4FÔÿ់V~ò6&,ê†í‰IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/showvalue.png000066400000000000000000000020431417122252700217110ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE     &""%"'+$'$+1(,0+17415.38.4:6:>]TCcUDAVYBX[BY\WZJC[hC[kS[O[FE\gE\bF\]F]ZF]b‹^IH_\I_bK__˜gQŸq[©yb±†m¹‘y»•~¸›‰±ŸŽ¬¢—¥©Ÿ§±©¤¸²­ÅÁ¯ÈƲËζÏеÎÎRaT¸BPs}tRNS "'.7CNV_mqw{}wt°´³º¼ÁÌÚâêïîîíì¬ëj¦Ÿê–_ä~áOÙlFÒY>É9H9½?:²¨œúýü›¦­þôýþôúãÑÁìðØþþéÞÙÍËÀÌÕßéðøýþþœDúÅIDAT8˽“ÏkÛ0Ç{<#С–#Ù’bwNø’0t_+t9 KKñ =Ëm2´‰6¢‰Høºþ6jaaПêúç÷»û>ź‹…!²SïnÞìM®ºÄï«j¯tê‡4MWëív½Ò­Iâ›.Zõ¶S§m*­5ö«öÍÃáðÐÜßÞ¼»nU•Ȉ÷Ñ5ŠVÍáùùÐ|½ÎÚo9Áu`ô¥Õlª«ÔüVG+džŸ3ƒó†Sµè`reäŸjð_ª K@Ï®=ö9J”j·…œÃ$Îê—/­¦„ü›·ù AY‡ĵ"IIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/solid.png000066400000000000000000000017501417122252700210120ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE‹pFHZHNbNK^KâtöŸNH9HHZH hVb )PdPQeQMaM‰B-J]Jãs  ! !M`M°TTgQ='PdP1$GXG HZHPdPRfRU1`ML_L¸d0Oñ²u BSBL`L=L=à‘H$ 3:œU;J;MaM'CTC4'K^K jM(C%U0=0€›€†¢† À ¹Ý¹ð‚ž‚š­Î­uŽuÃb® /„ „¤Å¤i€i‘¯‘:K³Õ³FB^u^›º›çp{•{PGG¼à¼ssd|d‹§‹ªÊªŸ¾Ÿï‘@½á½ShSae]_tRNS    ±ž›ØŒ&lõÖÜÁM’mjÜc– óå0¬#y+o0€‰ë&EJçY–,.£wJ,Ô5-E;~UÍ"[¾ARŽôЍIDAT8Ë“gOA†Ýr·×èÅ‚b v±Ecï슽7ìØÞüuÄpwÑù´É<™÷™’’Bc„¬LJ‡‡- DÇ+v^Ä–7ÿùÚÝÎd M¯uN¿Í²‘GÏ:–2‡ò=*µh%ÛmaJ‚µÄØ/í+Z §c¤?Ô P[¤ˆð®ÀÕ^E²‘‚˜¤ïWs‰º:sÉûãÌ#@·À´ûN>'Ówªª^CÄ©¶sUßq5)8tËD÷üݩ…È@hÈ'éAÁr€—„èºÂé{$|+@â'˜vðTïfvHç[˜ÜñŠè÷,™8ÏåOVejð3¡à(«1e}nÉ84„Eyà"žÕX=ë²sžµ@æÞ«—&@VK³F\ÂûÖ‚ÓCÍ–†HÞ ÍÓÁ§p£""ÓÅ´)½­zÚjóñÔ|u™§ÙÝ3øž3/¡‰!Lðí?,¶µHÔb{1'LÝ„]úiô2}Í®K¿Er'f^ëÑ,“;Ϩõc"2Ž¢¿.=÷üØ!i±‰\ë!IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/thickness0.png000066400000000000000000000004311417122252700217460ustar00rootroot00000000000000‰PNG  IHDR @ÞkWPLTEÚjÿ¶pÿ˜6Ž@+, >_+ÿÀ…ÿªZI!çóñqtRNS'  %&”¼^IDAT(ÏÕÏ9€ @Q@„Ü—ûŸÓl¨,|mþLB~Cp @K’‹s.)*ÍJZ!•¹à°öÛÛÐ1ž3.ûÛo}ŸŒ˜³‘œ¶¥®Ã¨±Å ªÀzˆ§|Ѝ𤼠'6et™»ÂÒN]$–Š$tRNS "7-4 #ñÈ GÇIDAT8ËíÑÉVÂ@ÐTéîÌ ("Π8Š€ š±ÿÿ<ºMåä°Æ·}wQƒaüg瘂„0ab=©8¥”+ òÓ~ãëã;+ìD09ÈŸ/“8+Ž#[²2 êbþ¶NÆ®¯øòe“ÄGÝεp=û¼yz<˜]iÇ¢€öùän‘j] Ö÷­æ«®„ߎNV¿½Æg ª÷žþõß‚I;r=Çq<¿ƒ€Ðö˲¿dí/j¿¹×ùr‰"ÞspIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/type1.png000066400000000000000000000011051417122252700207340ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2ùPLTE“ž·&’·Wh`p–¾ÅÔix›½ÄÔ”Ÿ¸UfŽ$2ÂÈ×O_„+%3­¶É|‰¨‰•±¼ÃÓ9E_VTd‹³»Í1;R¬´Èr¢ƒ­µ¼Î,5It‚£Žš´p~ BOmBPn$   tRNS  %#3-B1>4¥k†DÕIDAT8Ëå’Å1DÉ.›¬/îîîîîšÿÿ²!3E__×ÔôôX,ÿ(ÞÔÎ! ı9€ ]†€crë¦2%+ÃAxï8ÌTî <l×ÏþªBuÎÙPâ¶ 9xÓ­]ÿ²ÞW“¦*Aô’–¾ˆçr¸–îãÆ^Q¯M?_—åYñ4Ç;\ºö6A×ZaJ0vÚ(”Ô[þ”$ÜnPv0Sʶkr73§ ÄÈ|Ca_JP±ÃƺäÓ!‰.vÏ6åOm~ÿ‡ïõ«zÓäÕgH$IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/type2.png000066400000000000000000000015361417122252700207450ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTECQp9E]  ,¥¬Àkx˜6>S ¶½ÍJLSUeŒµ¼ÎÀÆÕ$„‘® 7@V$¥­¼iu”‚Žª– ¸)1D#v{„=He ¥²‚‰™$,<*)1E¾ÃÒfuš-6K¨°ÅJX{#04>V¶½Ï“ž·5?Xr€¡UeN]‚5?WKZ|ª³Ç)1D¿ÆÕŠ–²o~  &5L[CQp`p–aq–¿ÅÔixœYi‘|Ѝ‰•±ºÁÑ·¾Ï¸¿Ð«´ÈXhGUv£­Âzˆ§@Mkdt˜?Li¯·Êt‚£Rbˆ›µ„‘®˜£»2]¿—Ò Ì ¨çW7ü|T4„ÐÏTÕÁ´½)Ù@\é+oÿÀT¸XG»Åâ‹Kî¬àÌ0Ó©œ`çIEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/type4.png000066400000000000000000000013661417122252700207500ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2PPLTE;Hc“›®•¥w–(…‹˜„‘¬Ÿ¨¾&qv\ak#1"amˆcq•')1D&.@!'7bgt–­—¬)Ÿ©¿'Xi[l“¢¬ÂJXzScŠ*2F>Kh1;R%ANmHVw|Ѝl{m{žq¡§°Åª³Çs¢¬´È„‘®6AZ@Mk&-?)1D¦¯Ä"/>Jgt‚£&.?.7M_o•gvš9E_Td‹VgŽ%,>Žš´’·©²Æ‡“°$Í­ðEtRNS   "*A )'É376%=Õ)ÒÚÍ0-98Õ!=&ÈQ#510 ÒÌ9) +<9EHÒhZIDAT8Ëå“ÅrA D=žÙ5$ŽŽÃÌŒ333vþÿ–”O©Ù]ÿ€uU—úI]ŠD*²B庀c8\‚²«-#i%B¸¹X¸v‡ú lk½)\Ä].‚ýå=WùóÞªl„VÚÝþï³1¡“QBmT ]OÅËüëÏÉñÁK½äÌÁ¤ÍónOϾïÞæ«k”O0ö±½µ·û•;2Ætÿq`ËB9ºnzü.gÖS 3£þ À¸ì˜\{6©¦åx§ŸaJ¢ÉýM3U«eÀ¥f—æ2ƒ íÝ¡T‚O,kióý?FÚ‘§š&¦Š(Z.o €*ðQ~É¡½Ú£o'IEND®B`‚carmetal-4.3/src/eric/GUI/icons/bar/type5.png000066400000000000000000000016411417122252700207450ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆgAMAÖØÔOX2€PLTE>CN•Ÿ¶Ž˜¯$+< &5'&.?nu…  ªÀ ƒ¬7B[!-Ž™´!'7kuŽ‘›³–ž³ ,Ž™´# &5LTf†’® \l‘}†œ  '6™¯W^n}‡Ÿ/8N"'6 ƒŽ¥)1D"/ €‰ž‚¬QVa”ž·OUb;@K”ž´"/=CQ~Š© — ¸)ˆ”°")9"(0C  -‹”©bj}$$2~‰£|„˜ ,v“09PIXzCQp!'69D_›¥½ -kzcr—#*:1:Q%3KY|y‡¦ž¨¿CPokyGUvM[€œ¦¾hwšeu™ NÞjtRNS  #ÓÎ"eJ奢þ=Pû¡ú÷¶úÏ3ã"$wÒêw8(D ñÏ„+úƒ'q úO*Y/þDzå+ï@? o™úNЫì+! ü`43x •Ñ^ƒîmÅ¥’VIDAT8Ëc`q€iti&ã8&FF¦$cf& %ŒÌÜ~Nì¬,lÒN*Ql*Ù´dmxí¤=Ì}øØÙÐ0ù†TÔ eFz&†U•)Äš°2¡+°ÕͯL·+Ì.Q”âä`FWÀjcáUQ«kZ˜¤†©€‘‹?]UI¾ª¦DB&B‡à FfN!ùºš<å˜xÍ`v _íp—¯/ËsIÕ‹OácÅô&‹´µi}N–dniªž¥3†7U¬Mër\äÄ3J‹•E¹¸™Ð H ,ª”ÕO+¶óVçaF÷„ye´œŒs„·¿U¶·;º–p{ Ñ5~~aWE7CNt ÌêÞj:œ\\Ž–Âü˜áÀÄmÇgÀÉËÎÍÆÃe—À%ØxØ9X ‚™••›… K‚ab§`’aš¤†0ù3„·IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/000077500000000000000000000000001417122252700202675ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/jswindow/.DS_Store000066400000000000000000000140041417122252700217510ustar00rootroot00000000000000Bud1 ent.pn comment.pngIlocblobF(ÿÿÿÿÿÿ error.pngIlocblobÌ(ÿÿÿÿÿÿ format.pngIlocblobR(ÿÿÿÿÿÿhelp.pngIlocblobØ(ÿÿÿÿÿÿjs.pngIlocblobä(ÿÿjs2.pngIlocblob^( ÿÿ restore.pngIlocblobj(ÿÿÿÿÿÿrun.pngIlocblobð(ÿÿÿÿÿÿ  @€ @€ @€ @ E DSDB `€ @€ @€ @carmetal-4.3/src/eric/GUI/icons/jswindow/comment.png000066400000000000000000000036401417122252700224420ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<BIDATxÚìW[lWþÎÜvgÖ»Þ]{½¾¤n;¾6vÒÖNƒ‡"`¥ÊMå P‘  m‘å¥R)/t†øÜ =a»d£§h *0‹6ÊLáB#È}Œ£_•Ñ"˨• - 1ËÆœ0B3Ï0YË[`ª X&„Í!»40…ž‰w_5»@¥Ë l™¢J–ÐkxÜŸ­® ùCáΪ@°J3|ª¤H¨”M›™x´Œ.N¯$ÏæJo¨w(^’m4·_ܦQ´öÕ„k¾Õܽý`SÏCÕ5÷w@«î*@V×P g²ŠÂŠj&ç{“3{ç'Þþö¿/Lü9žÈ¼ÂÁ^'¥ `4»P‚[QسÛvï}jËà¡s7 é”Ž"x!å@¼™&&A’$¨¡Í5¶#´}ȵåÊØ¡Ëÿ8öéó£g_Îåñ#Ù…Ô]8éʸÑVïúñç¿ö…ÃmC1èD)M•ŽS,ª+!dL¾ùÂ*?Ài€¸Ã ´,sÁ»uv4µºáß}çÌŸ^«ÍZö¯[[”î `AÞ쇿ùXßS-Ÿ¦åmðÌüjZh—Ä&vC@·™XÙÔýnÒ-a& )6x’Œ¯Œ?–::ž{v>Ã2_¬$C‹2J*8´?h©_’Db’âÇ!©%H¬H›ÍÓBJ5‘CP;O#ûÁ`" IÜøœ£wHÅ(MM£yà¶íÚùD†˜^¶+g ’æÆW·+O~¬Ýíƒ5ûêKHZaL£R+2<þü›ÚÁ<-«I 0N‚Ò)’/ÉÍ_+#ëTŒè 0*_Lv£íÁ~¹gË•á¿^‰ÿ…Þʯàs£ew û¤ËG%u¹ˆäE¼ÿÏ)\žâèî!Á §OÛèê‡NA­Ýîß[^œ±¸)03cºÎ™å Øhhˆ´”½@½íᇪNÅk(Üìºlª–Û›kr`‰rÉeÉ€î5HupfÀå1På÷R@Òì_‘£…QCÀë)A“²Xš]Ê2¨Ò3XŒ¤I8 DHH‰>ƒ\2­˜TT£©Tj™¢“ň®¨AÂÛÑã M 2 ÓD.{ˆkSKÇÀ²ãX˜K"ºD\aâÑ"ç‹ä‚6ÑX¹V\’3&\9- »H;q`q æàèèf8;Â17ÇÑÚ!a! \§Ô:@˜Bõ•ÜÄÞ% õ7d®× vø¡ùa‘gdãB· ÒD$ÀVfOæ3¦`ùŠÒ"r-ÎÒî•$NÈeÔ5ý{$"”€/ì”ÉÙh¾¬8H Hó6ÙfSýüÞE¸Ü24EA_« DrH9^¶kF=¿ˆóyK,VÈó©ãùاdƒªÃ¢:ÛD†`ˆ‚Ðݦ¨ÕÄj Î?0ÀµúÉ0ü2ñƒ|À1%2,ÝËÊ“l“\ÒV H~ã׬ ²‹xEôÞìëÖ±/OiìnPåòÉE3l§Žù¨€}—ƒËfZ¯ìÖŽ|EÊÂõ%X+¶=ªkŒÿ7',MÇùÑŸ°ö¶Ýï®ësÃÖ´UB'Ê Øz«€Äù’¶*QæXÁÄôå4’:ÿ•¯‰ŸpGÅ£«Gßµ^ ü&xÁ­î©ë« 6ÂÖìXÐM|8¸¸-¶£aÁÊõG¦ˆ™É8&"Åßvw¹‘ü.§! áÌ˧Ígb¹ÄsßœìlT¤zb ¢SimÇbÕûn" n„•¦g³HfšÀäÙåÜØTò—ž:ûEFìÖàwìh‰w~Î>29û‰±Â—Ý¿²£ëdŽP]eâ×Öví"¦“éX‹ \½¸$FÆ£'f“…_è {#@æ øúœÝÚ–;Çl…KS%tµ7²¡Á.eïÃÝFw{«ï¾º:¨ó"ØÑJ%"P”îÄ¥÷qò‰Kç.äO.¤Ìãõ¼EF »²c ïãOÿ”ã­3‰¤ØXKæÓäxozYŒOž0_ùõÉÔ¦†`ª¹Ú@ãÎfiø¹ïf¶ì„Q›D}¤„¼œz5£à'E*‚§Ji¾ÜYÝH=µi(•6Ø’ÝÚ!)r9Ó1êOcÔs¼7E-ÂØ4qi—ôç«õýµ{†ÑØ‚¾Î ûöŒ¾D½ârŽ ëÍ×è#;×}«Æ¿©èÚú¿•  €Î#¬d÷s:e2-:nÓùrÓ;ðäé…îªï߆…‘«ˆ&GŸñÞgýœQᨘ¯ñÕ¦ÝëD2I»íÿ €&¸cx'¾wä‰†Ï ô†kÏŠÀÓ»¼ËS+F9¯œÕ­ƒöÆKpçú”»ç±?Œàéw§#|t`yàsƒš{Y̱v—¿žì£?§÷À]q3ð ù¨IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/error.png000066400000000000000000000066741417122252700221430ustar00rootroot00000000000000‰PNG  IHDRóÿa pHYs  d_‘ OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-ÛgAMA±Ž|ûQ“ cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅF×IDATxÚ”’]h•uÇ?ÿÿs¶ó’ÇNg/¬ÜÐL ëd8Ý®éEc“.¤¤Ð ª›X1ˆT""(ôBA‹¡]y'za‹Ê™¶]L¥“zÆÆæQwèìå9;Ïyžçkâ›Fhá"«åæÎ}Â2avš¤v‰'b¨½± Ñû_ëé'öói¸q %as’µ[ vȉ¬È-ÍO1S×%m•H]<‹lÿÛ³ˆþ·‘“×áè§ BBhx¡@È/—ŒæFåC¹Žƒ¨.’úk<‘mA(C‡ XF!ð"¨‡v “J¹˜ `Uˆ—j×.¼=4Z €ý‡ÐÿÌâ_ÅÑ`yPSx²C«‚y·dcWñV5³°ïs‚–50_¸ö‘°þEÄw¿CW7‹¨ùP™\y¸FñÏ[w†±«øíÒO»}ƒÕ_¼Câ£×àòy"€ü*ÓÌ»P ˆ®*~y°ÐÕÀ63']½óImxW‡¯¶êèyt}Ú~9«kôêÙ\BdÐëÐ;%çìÃ|À[ öëàx“@:1% ¼:,Y0€Âuò߇¼ŒË‚¿CÆ/V¹™…-iMÖó ê‚é‚éÁŒ?TçÂéˆO–ÿÕ` m’×7ô<.Xc+¼IÅÌuůU¸,ð?HÉÿ ÜíÓUK¸]@~IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/format.png000066400000000000000000000024661417122252700222750ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÈIDATxÚìW[LUþföŠB¹h€E$¤BkÀ4/K¨é ‰·ÄXÒ>y0ñÅT4&M_lBÒ_‹ñͤmˆ¢´¥¶MZ|(M)°[. XX–]v½ {™™ÝÏ™]v€ íÖËòçœóŸ³çÿþë™edYÆIÌ.€]„÷Î'\ü/è£ÖöÉYVë W÷ôô|X^^¾ßb±XY«e:YùEfÆP—Ñ-&u—¬š oX#«ëÔÀ¨rY‘W>Wù6YšÇÓ¨6SMMMkii©ÕÕÝ…o^{ó]E‚˜€ëR#~øø2ŠB‚ÈDœºú&Ž|ùNý~„ÈDˆ  "§{t™“;DežPFUy2Û%ÔzNA°Ô~_ùm2>ûÖ»)„7£øô#ã¿ÉšyEvgÜ…ÊOt¸sy ÂaáQBÀ^:yòxGǯ .WøªÝÞD0*:T´ŸFÑÝ˨h|OD(5?5AâxU4½ô<5ÅÐ?—žÈl„.²¦›É°ÿر³3/bqqqcvÖJ(®¢ÇÙ}/b¨°ú2‹âB;ӌݴ‘±Aq/½õø+g02j#cªLÁ «H˜TÖ¤s‰’$Ihkkkί¨(»¶w/†œÎðwssS ›Í®Å¹äIq†ªå52®e$"ó‘µ/K¶E#|~âxë²× ¶püFãOD¼ªhiiùGê;ž#æPÅ}m¼Ï` Ûåü¹÷zÙò°Ù?Šp!xW#ˆE8mñY8Ù!0z¯F®×ë Φ8ÏÃ=;‰X,ZòŠrC7ôë÷¡õ‰ƒvûyrl‚0§öLÀ7Ò…ÀìmÍ…¶Pç:ÿ€ùÖ€F^_‡e 3î°ÆtFà`2ðЛó°NÎÄ>ÝWàqàÆ˜{hxÉ×G­'à’¬Ö"b«N≠F‘Ù¡¿d£FþpzS“@XÕô: Š8S ¯Ç çd/*Ù ¤ŠÆ†xþ«[ß‘SÓ„céP} É5à©©«ƒ,%Ç_@Ù Lކ`§{ÎøãsÄúhºÁápäœt’D/ñ§,¥Ö<Ƀã ª‹BàcpLЏþ xž(÷¦­Ï¨¯¯¬,—3éN#)e:M<¿ß ó#±n#÷‚˜7À…»=#[öcÄæò¬mL$è]f/ Á³ÈŸŸF0Ŝψ¢£JÞRšÞü$jž%ÁOJ©7Fiër/<í¤uÁ~!SV ê°Yy&¹uR:ðÔÄ012@b8΃¾!ë è#OKz>íñÙD¬2q ‹æƒp&¬ˆ7U£¼¬ ÌŒ¢ä–;r1žfþ–ç.âFÄ;ÑPˆ©è3hhhÀª¡*³3fsfÑòò2bá5D¢<®LÉxùU+ªªªvöâcgÿvàHHÚ¿íÄ÷ö8¬M‡Q[[ –Õ¨9Ò]hÕ*÷󥤴=0rÈl6£µµ%%%¨««ýÒ¢tí·£Gß'\¤~¯mipY=‡ý‹}jLAúV»Ý6E8GÀŠÙè'yaÝ6ÞN_žž3ãŒn‡rD9·ûÏèàO/ÄTøóÁ·XIEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/french.png000066400000000000000000000007371417122252700222510ustar00rootroot00000000000000‰PNG  IHDR µBtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbüÿÿ?=ãÈ´PÆwÊ׿ÿX™þøÿýgøþã7ÃÍUi "üHº¾9Äð<1Š‘…Ùf Þ¥vë±7ºÙ,8ÂÌÈÀÀŠ*ôh># ªÁ L@W1‚ìÆb6ƒ™è F-µpð[ˆ5þ‡bt1œà?°| ²ÄÂj!#ãÞÿ<ýR¢€8L ÿþýcøõëJIóçï?†̬ ŒÌ(F ³Dm …«Ùô¶,ˆŽ)R>“ûØ—ÙTM¥@‹òT+T=!)Ð{ å@¤ Ë<Û’kˆ+HYˆ0dY M 9[`@W3Ê Pu©VÒ€ b}41yRB€ÔD2xšØ À"N Á)è«z¤ „Åñª[ŒŸ…@êÈbhЂ-Š7Ò²¶h€á(@Óê 蛃Ðx[N(U’-°Äå¨å 4±–PÐÄÐ ªú° `øwf Ïg¡Úþ©P.IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/french2.png000066400000000000000000000005441417122252700223270ustar00rootroot00000000000000‰PNG  IHDR µBtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbüÿÿ?=Ý-dÁ&(ã;åëßÿ ¬LŒ ÿ@ü¿ÿþ3|ÿñ›áæª4~„BFF†oG1#T@PÏBKœ€qØ÷ž гAd› ŽrIEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/help.png000066400000000000000000000030521417122252700217250ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÌIDATxÚìWÏoUþæÇ^û^[i --mi)jC(&F‰‰¸R7Æ{×&®L ÿYÔ&n †ÄD#h""­DÅ´¤”–¶ðÚ×¾7¿î;ã9wúš¶´¼Çª‡Ü ïÎÌ=ßù¾ïœ{k$I‚í¼Llóµíìï~òÅãl&S×±»Ë„eY4L˜¦ 'cæ»mz†‰Œ¾“¡ÿÛŽ­ßËð°-Ø4,ÃÔß··6«æÆü‡{ÛZ/>ÀäÌ\îÓÞϾsêŠeý“*B'PJAÑ=ŽcºÇˆ"…<¯ÎG4d¡â­˜ž!‰QX(ÂÅØýT”AÅ “³01= Ë´­Á‹Ñâ¼ðF㆓1#TLϵÏi)Q(»åá¡§K QS6¼`ƶ @j*)¦¸n‡›hçwøŠˆ!#x¡ÐÁ+ópBb+BFÕ=Àx£M²`ZŸËçÐÕ¶ ùú,vXÛDgGÁƒ…â2îÍÌk9˜ ÊRù~ ¿ç÷ªà ñš+z×gw`°¯ ¹ºì‹0#¹?=ƒÌî8”_(Bø@‘âMÚþ¦t©­ù­K‹Xé9t݇øôwìÁ¡þ®uß•\###º²Ù:” ¤]‚‘î 5tBÎZ­ÔûÆZ·ŒTž&òÃÞÎuÏGGGqþü×( …‡_%&$B ÌHb€“à2®¡ ¨|T¬36¶Ú@¨½ÞŸÀRáÑ*¸ï.\€ÕØ‚á£/kóKemB¦@B T­ [ÈÁ†ôE„©É{˜š×Ácʬ¡½ íݽ¤µ‚KD¤}HwWp uKfj’ Òxqf#YÓ”\cáÌ›¯#ã¼µ òâOWðp¡D`#ªwjL$…Ï’¤ô[F´OÔbBÝ÷¹·8¨ð4³Ë:`å«©±[X¶QŸoЕr`ß×U½qÕZ¼£Å[P´3rY13¼å®£yePöÜr @À&dÚIÁ’p%¡F›]ZŽ(íù¹lv]ðŠ ‚Zm"ÒžÏîçÀRH FÅ$ƒzFü:ï†z'Œ8sZPÆ:ÀÍÛwÈ„ÿbzf÷&ïcöqM}CžK Iߣöë“„–!Þ¤´« ‚äÀ*=`¸zGSD}„ûóqíÚUçB9õ0ëZ)x".7/m<>õ}–*àFÄ !MË|v58/DtÒ‰†²º¬r-í°óÍ4ê9׉©J)t7dIø;EóÌ€™8µ0ô!ƒ´Œ¤¦]çŒ<¦”-Óú–AºÏ{tçì}j:\ëiÖé,¹J©ÏÍù|S } m·L£çÑv¦4ú4< »ÍùtºáL¹Ã1Åa‘èçB7¢Æ|=ú:÷ sOW×WUp¹0×(õeræl(.?Y‘$ ’žŸ;WÐ×Õ!ûº±¿»39ÿýåzK¯½t$þñ·?.U°wWs}B˜V>R±Ö¼3>Žó igS#Ê®ª$=2Ћá¡çqáÊÕ³ K¥_twàø øæ‡Ÿ—™!^¯¦íø½7N~výÖØi:’Ÿ (8o©ÜJªûÖŽv ìàæØÄÙ¾}8uô ão|{ù׋|€eP69]©´Ttµ?ýžÐÝÖòyç+ÞƒG‹ÇØHÇ÷ãÆ?w?öE8~ g/J[p=õI¤MXiD žå2þÿãt»ü'À,÷G´¿á-IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/js.png000066400000000000000000000014271417122252700214150ustar00rootroot00000000000000‰PNG  IHDR0 TÔûtEXtSoftwareAdobe ImageReadyqÉe<¹IDATxÚìXËmÛ@Ý£¬BW`ú”ÜÂ"“ ]© " €|4ÙÁú˜“™ Bw w@W Ì(o„— )Y”cXœÙÙ}óÛY0X­Vƒ>ÓÈ^Þ~ùôJ!>—ß¿-ôåÍç¯å1&Rdmt„÷¼3 ñO”'ß÷XSuîiJ÷„þ†TßðÞß?¤¹‰ '#ÕI¢ôü¹Œ |.ãF 5¾|¿ÇüFMõøS¬ek–0ʾ§¤?§ý| KÑ{÷WȺsxAº?þÌ&|?n‰°˜o‘]Ôȋѫξ­3@½{%ψ<¢ ßBª†Ä*WðÞÊRÂYaMŸÔ£‰È²ÙTøR9'lgÀælâ°Áscª‡&yE©‘Qzø4‡Çö•ùy)XkÀN¼… åS!á]€ZB*8ðe³GeØ/÷x§p^ÜT–B±j“BTLNxcœ8Ñï¥H§¢A–y2K¡×È_îG  Щ(^à¢Æ«!墣ˆ1Ø ó(ÕþX^NiÓ÷륨ÃØyA¯˜áµQ–ðÞ¡)¢™UˆÚ ç¾EÃwGÈŽÏ1"W"çm° pB…F[Èq¤&(6ÍáØº.ñ"ë¾Óü¡X1EÔ1c« 48Ç'å¼}¨Ñ¡®ßþ.´'MPH– KÕÌãô;¡"-ñ~ë"+Ù8çOœ %Œ‰éÝîWÖ9åÿï›FVsuxR·M¡”ž,CÚ„ˆŠŽ¼Ìn§¸‚äбˆE/.£ÃAÏiô‹Dֽ੗²²¸^ÜvÊ€O÷IÝ®ðû2u½vDêjOCÿi#ë 8p4àhÀЉ½s~ׯ‘NPz·Ôm´|N‚¾ÿî} ü`PÒÙz´IEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/js2.png000066400000000000000000000015641417122252700215010ustar00rootroot00000000000000‰PNG  IHDR0 TÔûtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÜXËmÛ@%Ý­¬,Wàõ)¹™„>ÆAºKX@€ä²易é Bu w@W Ìoˆ—eE"åH`Ajvgw>ofV W«UpÌšo?}8‘ÇüåÏ/_ŸôåÍÇ›3yŒH¦”¹gÌ52Â{ïB×@fLüSåÉïöT™Qé™oHå=êóMï­Mdä2¦ºH„îÁŸËHÁ×1VÅe|WC/¿ßa}£b}'~Œ½lÏFÙï˜äçtž¯ÃRä®L页î^ÐnÁO…?³EP~?¿a30{aîºe.±ÈÕ:À±êìm¨wïäéÈ#JNøR5$ÒyUžÂ[$<%+ìé“z4‘¹´e.¾”3Òíºå¶p°Æs#ʇuóA#%xø4‡Ç¶óÉyl5` 'ÞÆ…ò F…EHx·0 •… øs³5ŽJq^æñÎá¼h]„"O©B”L¹ðF¨8nƒ÷¦€S±f.õæ Bç(‡~™‚”žŠà5)\´xuBXÌ)b¬lŠõOµ?ö„—§t†ÉûùR´éÓô0 ª5zïb€„÷MéͬBÔf¨û¼jDV>Gˆ\‰H\îbÀ ƒ*4¢ÈBŽ’š ÙÑu]âçTEê¾³­òL] °drÔ1#Ë 4¸œ+aÞ’~¢Ñ¡®¿5 w”#‘ KRÞµ¬cøR’–]¼ß%Vrp(Ï_¨ %Œ‰èÝîWÖ9sÂÿïM#k¹:ì5¦ô4ÅRÀf‚¨èpà¥v;Å$ƒŒEÌu*G¯ýŸÀ½¿¹—qÕµŒê¯L¢øgÀfÜëš.L”:ÙâR¦ë–Å·º¤vndÞ›P^ü Å}EtØ'<Ä«áè̱nÑ×™ƒ}`\Æ™Ç;Ý2BÿÎ*­þmrÔÂ?Hê #^¿#èØu£«Î^ËhK.¤0&8 ,q=žó>¤¥wK 6|­ëÂÿæëô±Òo!]“L%x8ŒIEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/restore.png000066400000000000000000000032711417122252700224630ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÙܲÚpIDATxœí–klWÇÿsgfgvf_^ï®ÖŽ×Žk;¤Æ v 2Žê:!IëT$T*¤ ª•*@ð>T|¨‰G©X *RAˆ4mB”"¹ª¥±ÿwcþ×=ù\G¸|çŇÅiõú\lø`w÷Yeí8· €](à³Í øÎ7ä‹MÎãÅ—:ßÍ'¤ÐÂ_8òÜÁ#O÷{Û€Ìk“3‹xñ¥Îw'†úöç T ãة㵵þ¬ºª²’ãùÀù3¿üÑV±6Ã ëÆ “â—¯èóñø+[‰›oðп}èñ¶}¿zúèªÆG*¡›\«ÏèÈÝ›ýckë­«ŽÖœh|¤ Ô²8„ÃA.£›D ¿7¶-€ÏµmGÃîú_Z×\[­9ñ©ú ˜ÔBÖ  –“Zn·hff¾„8Kº¦'zW6êm:¡bÿ³--{÷—• é&4ÝÄÒr„a–y‡s_MÍaacŽeÙÐt“ œþË%3±˜z[V@KËÞý¡bÿ³­À¾ƒ_‰ÔFwý¼í±GC¼ƒƒI)–S*οùö•«ÿúÆ¥s¯t&“£ë6;Z×\[QYyBxüéÕ¿ß¼óý´JÛwì(‘ÂÀ¤¢( vo¶Dt]˜H­Í_w=R =ZW»ÛéÑ @ÿànßîõò¿»ï À¤§ÿüæÍØPo{w÷YÅ!HÍeå‘46TœNѺÚݱñ‰v§·ÜIv·EÈèT-‹…ä zzúæ”TêÌVâµì¡¡¡‰€’Jééé›[H®@Õ²Èè"H²»ecþ:Á)î‘d'4Ý€¦˜žM`f:ÞõÖÅÎ[[h¦:<98pmd¨ï§—Îÿþ 亶¼m>€@`b´w)>ëËfôLfEZ”õšY Ë´a[€Emº‰ÌŠŽTRAbvcw¦z®Ÿ½Ú}þý=ïŒp"wÛ,t£X¾3 p¯ºó#•”W”ïlØ G¼¾`¥$»Š9‡ ›Y=­¦•Ååû‰‰ù¹©þÉXÿùøä=™5¾²êúv°Jì È\«P®Õg'r?3sU$ @YRVŸU€ìj>±MöoõnÔ‘A¹rãIEND®B`‚carmetal-4.3/src/eric/GUI/icons/jswindow/run.png000066400000000000000000000100721417122252700216010ustar00rootroot00000000000000‰PNG  IHDR ^¸8 pHYs  šœ OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-Û cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅFeIDATxÚ´–ß‹]WÇ?{Ÿ÷Ü;¿2ÓLcl~¶)Ф$ZÔÆÆ…H­ >¤)íC_ú$Hó þâ›à ís}Ђ¢` Šùa¢(I©1µ1)H:I2™{ïÌýuî9g¯½—3S$v¦B,Øpûs¾ë»ö>˨*2,8âõ…1ÆÒ4}4Š¢øîW…®«5sÏ^Æ9בkÀm]/ª²¶Nâ8þÖ™³çÞ(ËJCÐÿ¤ÞžÕ••NwffæGÀ€d}_³2ÆdI’œèõ‹×_{õUNœxï=CVKH4PS!`¨LL¥†ª¬°‘¥Õlrev–Ç/:ô™ãÀU-îöÀ ¯¼òœsUâȲrýŸ\þÞw9äKüùØ1Þýé)Wš$µ'Âôô4/½ôÝnGlm¯¬CÄæçç±ÖbŒÁçÞ›™áq/Œ,Z§×§Ì2úgÏb¦¦À{òV‹|ß~º+jÞB@Dî ¸óñç„¡WÚG¿Ìâò2ƒåeºí6‹!Ð}ú(U¯ÈªbïýˆàE>t=NkÔŸy–ËÀøÕwñYFñù/²ÿÈÓhUá­%„€sòñI’°ÿSŸfòÀãôE±&bËD¡€sUÅû-œsˆÈÚ©5Äq̾ÉmŒ,Ü æ¤äÙcôž¦Ý^^€lEêªQSCŒ1LŒ6˜|ç-F¯þœ¨Z@MB}ü ö‰ÉÙE§Õ"21Q­}Ø&&—eÉÙ3@|ÀyÁJ9ý¢'Gáø·1ß§Þof²þåü¥‹/¿ðòSñH…«OReÛÙ³í“äÕ2N À’¥ F’)jò©"zl‚½#ÝoõæE ÝØ˜ÿ5GkYö\½‘M«úØX¬FjŒ F-ƬMvŠÁ££«(>ª|¿'N~\WÕòn@ìv£@ô1ÇP¬óÀ¢ªº»¨­åÿ;{ œª† €ÿ§ÎkÒN·àfIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/000077500000000000000000000000001417122252700200615ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/palette/.DS_Store000066400000000000000000000540041417122252700215470ustar00rootroot00000000000000Bud1PP  0 þ_t_con bi_t_conf.pngIlocblobäXÿÿÿÿÿÿ js_min.pngIlocblobØHÿÿÿÿÿÿmove.pngIlocblobðÿÿÿÿÿÿ.pngIlocblobðHÿÿÿÿÿÿ js_sin.pngIlocblobF  @€ @€ @€ @G Mvalid.pngIlocblobFxÿÿÿÿÿÿnail.pngIlocblobÌxÿÿÿÿÿÿnew.pngIlocblobRxÿÿÿÿÿÿ newmacro.pngIlocblobØxÿÿÿÿÿÿ nextbreak.pngIlocblob^xÿÿÿÿÿÿnull.gifIlocblobäxÿÿÿÿÿÿnull.pngIlocblobjxÿÿÿÿÿÿ numgrid.pngIlocblobðxÿÿÿÿÿÿobjecttracker.pngIlocblobFèÿÿÿÿÿÿ obtuse.pngIlocblobÌèÿÿÿÿÿÿ oneback.pngIlocblobRèÿÿÿÿÿÿoneforward.pngIlocblobØèÿÿÿÿÿÿ onepix.pngIlocblob^èÿÿÿÿÿÿ orienter.pngIlocblobvøÿÿÿÿÿÿpalbackgroundpx.gifIlocblobäèÿÿÿÿÿÿpalettetitlebar.gifIlocblobjèÿÿÿÿÿÿPaletteTriangleBas.pngIlocblobðèÿÿÿÿÿÿPaletteTriangleDroite.pngIlocblobF Xÿÿÿÿÿÿ parallel.pngIlocblobÌ Xÿÿÿÿÿÿparametricfunction.pngIlocblobR Xÿÿÿÿÿÿ partial.pngIlocblobØ Xÿÿÿÿÿÿ pivoterB.pngIlocblobvèÿÿÿÿÿÿ pivoterD.pngIlocblobv Xÿÿÿÿÿÿ pivoterG.pngIlocblobv Èÿÿÿÿÿÿ pivoterH.pngIlocblobv 8ÿÿÿÿÿÿ plines.pngIlocblob^ Xÿÿÿÿÿÿ plumb.pngIlocblobä Xÿÿÿÿÿÿ point.pngIlocblobj Xÿÿÿÿÿÿproperties_panel.pngIlocblobð Xÿÿÿÿÿÿ quadric.pngIlocblobF Èÿÿÿÿÿÿray.pngIlocblobÌ È)ÿÿ ray3D.pngIlocblobØ ˆMÿÿ reculer.pngIlocblobvhÿÿÿÿÿÿ reculer2.pngIlocblobvØÿÿÿÿÿÿ reculer3.pngIlocblobvHÿÿÿÿÿÿ reculer4.pngIlocblobv¸ÿÿÿÿÿÿ rename.pngIlocblobR Èÿÿÿÿÿÿsave.pngIlocblobØ Èÿÿÿÿÿÿ savedis.pngIlocblob^ Èÿÿÿÿÿÿ segment.pngIlocblobä È-ÿÿ segment3D.pngIlocblobä ˆIÿÿ select.pngIlocblobj Èÿÿÿÿÿÿ selmark.pngIlocblobð Èÿÿÿÿÿÿ setbreak.pngIlocblobF 8ÿÿÿÿÿÿ showname.pngIlocblobÌ 8ÿÿÿÿÿÿ showvalue.pngIlocblobR 8ÿÿÿÿÿÿ solid.pngIlocblobØ 8ÿÿÿÿÿÿtext.pngIlocblob^ 8ÿÿÿÿÿÿ thickness.pngIlocblobä 8ÿÿÿÿÿÿthickness0.pngIlocblobj 8ÿÿÿÿÿÿthickness1.pngIlocblobð 8ÿÿÿÿÿÿthickness2.pngIlocblobF ¨ÿÿÿÿÿÿ tortue.pngIlocblobvÿÿÿÿÿÿ tournerD.pngIlocblobv(ÿÿÿÿÿÿtournerD3D.pngIlocblobv ¨ÿÿÿÿÿÿ tournerG.pngIlocblobv˜ÿÿÿÿÿÿtournerG3D.pngIlocblobv ÿÿÿÿÿÿ tracker.pngIlocblobÌ ¨ÿÿÿÿÿÿtype.pngIlocblobR ¨ÿÿÿÿÿÿ type0.pngIlocblobØ ¨ÿÿÿÿÿÿ type1.pngIlocblob^ ¨ÿÿÿÿÿÿ type2.pngIlocblobä ¨ÿÿÿÿÿÿ type3.pngIlocblobj ¨ÿÿÿÿÿÿ type4.pngIlocblobð ¨ÿÿÿÿÿÿ type5.pngIlocblobF ÿÿÿÿÿÿundo.pngIlocblobÌ ÿÿÿÿÿÿ vector.pngIlocblobR #ÿÿ vector3D.pngIlocblobF ˆ$ÿÿ viser.pngIlocblobvÿÿÿÿÿÿ vitesse.pngIlocblobvxÿÿÿÿÿÿzoom.pngIlocblobØ ÿÿÿÿÿÿD .DS_StoreIlocblobv(ÿÿÿÿÿÿ acolor0.pngIlocblobF(ÿÿÿÿÿÿ acolor1.pngIlocblobÌ(ÿÿÿÿÿÿ acolor2.pngIlocblobR(ÿÿÿÿÿÿ acolor3.pngIlocblobØ(ÿÿÿÿÿÿ acolor4.pngIlocblob^(ÿÿÿÿÿÿ acolor5.pngIlocblobä(ÿÿÿÿÿÿ allback.pngIlocblobj(ÿÿÿÿÿÿallforward.pngIlocblobð(ÿÿÿÿÿÿ angle.pngIlocblobF˜Xÿÿ angle0.gifIlocblob̘ÿÿÿÿÿÿ angle1.gifIlocblobR˜ÿÿÿÿÿÿ angle2.gifIlocblobؘÿÿÿÿÿÿ angle3.gifIlocblob^˜ÿÿÿÿÿÿ angle3D.pngIlocblobØ øYÿÿ animate.pngIlocblobä˜ÿÿÿÿÿÿarea.pngIlocblobj˜'ÿÿ area3D.pngIlocblobR ˆ(ÿÿathickness0.pngIlocblobð˜ÿÿÿÿÿÿathickness1.pngIlocblobFÿÿÿÿÿÿathickness2.pngIlocblobÌÿÿÿÿÿÿ avancer.pngIlocblobvxÿÿÿÿÿÿ avancer2.pngIlocblobvèÿÿÿÿÿÿ avancer3.pngIlocblobvXÿÿÿÿÿÿ avancer4.pngIlocblobvÈÿÿÿÿÿÿback.pngIlocblobRÿÿÿÿÿÿbackground.pngIlocblobØÿÿÿÿÿÿbi_3Darete.pngIlocblob^kÿÿbi_3Dcircle1.pngIlocblobj ˆaÿÿbi_3Dcircle2.pngIlocblobð ˆbÿÿbi_3Dcircle3pts.pngIlocblobF øcÿÿbi_3Dcoords.pngIlocblobähÿÿ bi_3Dcube.pngIlocblobjiÿÿ bi_3Ddode.pngIlocblobðjÿÿ bi_3Disoc.pngIlocblobÌ h]ÿÿ bi_3Docta.pngIlocblobR h\ÿÿbi_3Dplandroite.pngIlocblobÌ ø^ÿÿbi_3Dplanplan.pngIlocblobR ø>ÿÿ bi_3Dproj.pngIlocblobj mÿÿbi_3Dspheredroite.pngIlocblobä øeÿÿbi_3Dsphereplan.pngIlocblobj øfÿÿbi_3Dspherepoint.pngIlocblob^ ø`ÿÿbi_3Dsphererayon.pngIlocblobR ø_ÿÿbi_3Dspheresphere.pngIlocblobð øgÿÿ bi_3Dsymc.pngIlocblob^ Lÿÿ bi_3Dsymp.pngIlocblobÌ ˆdÿÿbi_3Dtetra.pngIlocblobFxlÿÿbi_3Dtrans.pngIlocblobä  ÿÿ bi_arc.pngIlocblobÌxÿÿÿÿÿÿ bi_biss.pngIlocblobRxÿÿÿÿÿÿ bi_circ.pngIlocblobØxÿÿÿÿÿÿbi_distance.pngIlocblob^xÿÿÿÿÿÿbi_equidistante.pngIlocblobäxÿÿÿÿÿÿbi_function_u.pngIlocblobjxÿÿÿÿÿÿbi_horocycle.pngIlocblobðxÿÿÿÿÿÿ bi_lineIP.pngIlocblobFèÿÿÿÿÿÿ bi_med.pngIlocblobÌèÿÿÿÿÿÿbi_perp_common.pngIlocblobRèÿÿÿÿÿÿbi_pinceau1.pngIlocblobØèÿÿÿÿÿÿbi_pinceau3.pngIlocblob^èÿÿÿÿÿÿbi_pinceaubiss.pngIlocblobäèÿÿÿÿÿÿbi_pinceaucycle.pngIlocblobjèÿÿÿÿÿÿbi_pinceauhauteur.pngIlocblobðèÿÿÿÿÿÿbi_pinceauinter.pngIlocblobFXÿÿÿÿÿÿ bi_syma.pngIlocblobÌXÿÿÿÿÿÿ bi_symc.pngIlocblobRXÿÿÿÿÿÿbi_t_align.pngIlocblobØXÿÿÿÿÿÿ bi_t_app.pngIlocblob^XÿÿÿÿÿÿI bi_t_equi.pngIlocblobjXÿÿÿÿÿÿ bi_t_para.pngIlocblobðXÿÿÿÿÿÿ bi_t_perp.pngIlocblobFÈÿÿÿÿÿÿ bi_trans.pngIlocblobÌÈÿÿ blank.pngIlocblobRÈÿÿÿÿÿÿbold.pngIlocblobØÈÿÿÿÿÿÿboundedpoint.pngIlocblob^Èÿÿÿÿÿÿ cacher.pngIlocblobv8ÿÿÿÿÿÿ chaine.pngIlocblobäÈÿÿÿÿÿÿ chaineOFF.pngIlocblobjÈÿÿÿÿÿÿ circle.pngIlocblobðÈÿÿÿÿÿÿ circle3.pngIlocblobF8ÿÿÿÿÿÿ color.pngIlocblobÌ8ÿÿÿÿÿÿ color0.pngIlocblobR8ÿÿÿÿÿÿ color1.pngIlocblobØ8ÿÿÿÿÿÿ color2.pngIlocblob^8ÿÿÿÿÿÿ color3.pngIlocblobä8ÿÿÿÿÿÿ color4.pngIlocblobj8ÿÿÿÿÿÿ color5.pngIlocblobð8ÿÿÿÿÿÿcopy.pngIlocblobF¨ÿÿÿÿÿÿ crayonB.pngIlocblobv¨ÿÿÿÿÿÿ crayonH.pngIlocblobvÿÿÿÿÿÿctrl_button.pngIlocblob̨ÿÿÿÿÿÿctrl_chkbox.pngIlocblobR¨ÿÿÿÿÿÿ ctrl_edit.pngIlocblobبÿÿÿÿÿÿctrl_popup.pngIlocblob^¨ÿÿÿÿÿÿctrl_resize.pngIlocblobä¨ÿÿÿÿÿÿctrl_slider.pngIlocblobj¨ÿÿÿÿÿÿctrl_txtfield.pngIlocblobð¨ÿÿÿÿÿÿ delete.pngIlocblobFÿÿÿÿÿÿdice.pngIlocblobÌÿÿÿÿÿÿdottedgrid.pngIlocblobRÿÿÿÿÿÿedit.pngIlocblobØÿÿÿÿÿÿequationxy.pngIlocblob^nÿÿ exporteps.pngIlocblobäÿÿÿÿÿÿ exportpdf.pngIlocblobjÿÿÿÿÿÿ exportpng.pngIlocblobðÿÿÿÿÿÿ exportsvg.pngIlocblobFˆÿÿÿÿÿÿexpression.pngIlocblob̈ÿÿÿÿÿÿ fastback.pngIlocblobRˆÿÿÿÿÿÿfastforward.pngIlocblob؈ÿÿÿÿÿÿ filled.pngIlocblob^ˆÿÿÿÿÿÿfixedangle.pngIlocblobäˆÿÿÿÿÿÿfixedcircle.pngIlocblobjˆÿÿÿÿÿÿfixedsegment.pngIlocblobðˆÿÿÿÿÿÿ forbidden.pngIlocblobFøÿÿÿÿÿÿ function.pngIlocblobÌøÿÿÿÿÿÿgrid.pngIlocblobRøÿÿÿÿÿÿhelp_panel.pngIlocblobØøÿÿÿÿÿÿ hidden.pngIlocblob^øÿÿÿÿÿÿhide.pngIlocblobäøÿÿÿÿÿÿhistory_panel.pngIlocblobjøÿÿÿÿÿÿhour.pngIlocblobðøÿÿÿÿÿÿ image3.pngIlocblobFhÿÿÿÿÿÿ imcenter.pngIlocblobÌhÿÿÿÿÿÿ imstretch.pngIlocblobRhÿÿÿÿÿÿ imtile.pngIlocblobØhÿÿÿÿÿÿ inter3D.pngIlocblobv˜ÿÿÿÿÿÿinteractiveinput.pngIlocblob^hÿÿÿÿÿÿintersection.pngIlocblobähÿÿÿÿÿÿ js_abs.pngIlocblobjhÿÿÿÿÿÿ js_acos.pngIlocblobðhÿÿÿÿÿÿ js_and.pngIlocblobFØÿÿÿÿÿÿ js_array.pngIlocblobÌØÿÿÿÿÿÿ js_asin.pngIlocblobRØÿÿÿÿÿÿ js_atan.pngIlocblobØØÿÿÿÿÿÿ js_ceil.pngIlocblob^Øÿÿÿÿÿÿ js_cos.pngIlocblobäØÿÿÿÿÿÿjs_e.pngIlocblobjØÿÿÿÿÿÿ js_ex.pngIlocblobðØÿÿÿÿÿÿ js_floor.pngIlocblobFHÿÿÿÿÿÿ js_ln.pngIlocblobÌHÿÿÿÿÿÿ js_max.pngIlocblobRHÿÿÿÿÿÿ' js_no.pngIlocblob^Hÿÿÿÿÿÿ js_or.pngIlocblobäHÿÿÿÿÿÿ js_pi.pngIlocblobjHÿÿÿÿÿÿ js_round.pngIlocblobðHÿÿÿÿÿÿ js_sin.pngIlocblobF¸ÿÿÿÿÿÿ js_sqrt.pngIlocblob̸ÿÿÿÿÿÿ js_tan.pngIlocblobR¸ÿÿÿÿÿÿ js_xn.pngIlocblobظÿÿÿÿÿÿ large.pngIlocblob^¸ÿÿÿÿÿÿ lg_ar_TN.pngIlocblobä¸ÿÿÿÿÿÿ lg_de.pngIlocblobj¸ÿÿÿÿÿÿ lg_en.pngIlocblobð¸ÿÿÿÿÿÿ lg_es.pngIlocblobF(ÿÿÿÿÿÿ lg_fr.pngIlocblobÌ(ÿÿÿÿÿÿ lg_gl.pngIlocblobR(ÿÿÿÿÿÿ lg_it.pngIlocblobØ(ÿÿÿÿÿÿ lg_nl.pngIlocblob^(ÿÿÿÿÿÿ lg_no.pngIlocblobä(ÿÿÿÿÿÿ lg_pl.pngIlocblobj(ÿÿÿÿÿÿ lg_pt.pngIlocblobF˜ÿÿÿÿÿÿ lg_pt_BR.pngIlocblobð(ÿÿÿÿÿÿ lg_ru_RU.pngIlocblob̘ÿÿÿÿÿÿ lg_sl.pngIlocblobR˜ÿÿÿÿÿÿ lg_sv.pngIlocblobؘÿÿÿÿÿÿ lg_zh_TW.pngIlocblob^˜ÿÿÿÿÿÿline.pngIlocblobä˜+ÿÿ line3D.pngIlocblob^ ˆ,ÿÿload.pngIlocblobj˜ÿÿÿÿÿÿloadmacros.pngIlocblobð˜ÿÿÿÿÿÿ locus.pngIlocblobFÿÿÿÿÿÿ longnames.pngIlocblobÌÿÿÿÿÿÿ macro.pngIlocblobØ h[ÿÿmanage_macros.pngIlocblobRÿÿÿÿÿÿmask.gifIlocblobØÿÿÿÿÿÿ Mcancel.pngIlocblob^ÿÿÿÿÿÿ midpoint.pngIlocblobä!ÿÿmidpoint3D.pngIlocblobð Nÿÿ moins.gifIlocblobjÿÿÿÿÿÿ montrer.pngIlocblobvˆÿÿÿÿÿÿÿÿÿÿÿÿ exportsvg.pngIlocblobFˆÿÿÿÿÿÿexpression.pngIlocblob̈ÿÿÿÿÿÿ fastback.pngIlocblobRˆÿÿÿÿÿÿfastforward.pngIlocblob؈ÿÿÿÿÿÿ filled.pngIlocblob^ˆÿÿÿÿÿÿfixedangle.pngIlocblobäˆÿÿÿÿÿÿfixedcircle.pngIlocblobjˆÿÿÿÿÿÿfixedsegment.pngIlocblobðˆÿÿÿÿÿÿ forbidden.pngIlocblobFøÿÿÿÿÿÿ function.pngIlocblobÌøÿÿÿÿÿÿgrid.pngIlocblobRøÿÿÿÿÿÿhelp_panel.pngIlocblobØøÿÿÿÿÿÿ hidden.pngIlocblob^øÿÿÿÿÿÿhide.pngIlocblobäøÿÿÿÿÿÿhistory_panel.pngIlocblobjøÿÿÿÿÿÿhour.pngIlocblobðøÿÿÿÿÿÿ image3.pngIlocblobFhÿÿÿÿÿÿ imcenter.pngIlocblobÌhÿÿÿÿÿÿ imstretch.pngIlocblobRhÿÿÿÿÿÿ imtile.pngIlocblobØhÿÿÿÿÿÿ inter3D.pngIlocblobv˜ÿÿÿÿÿÿinteractiveinput.pngIlocblob^hÿÿÿÿÿÿintersection.pngIlocblobähÿÿÿÿÿÿ js_abs.pngIlocblobjhÿÿÿÿÿÿ js_acos.pngIlocblobðhÿÿÿÿÿÿ js_and.pngIlocblobFØÿÿÿÿÿÿ js_array.pngIlocblobÌØÿÿÿÿÿÿ js_asin.pngIlocblobRØÿÿÿÿÿÿ js_atan.pngIlocblobØØÿÿÿÿÿÿ js_ceil.pngIlocblob^Øÿÿÿÿÿÿ js_cos.pngIlocblobäØÿÿÿÿÿÿjs_e.pngIlocblobjØÿÿÿÿÿÿ js_ex.pngIlocblobðØÿÿÿÿÿÿ js_floor.pngIlocblobFHÿÿÿÿÿÿ js_ln.pngIlocblobÌHÿÿÿÿÿÿ js_max.pngIlocblobRHÿÿÿÿÿÿP E  0 @ DSDB `€X`€ @€ @locblob^˜ÿÿÿÿÿÿline.pngIlocblobä˜+ÿÿ line3D.pngIlocblob^ ˆ,ÿÿload.pngIlocblobj˜ÿÿÿÿÿÿloadmacros.pngIlocblobð˜ÿÿÿÿÿÿ locus.pngIlocblobFÿÿÿÿÿÿ longnames.pngIlocblobÌÿÿÿÿÿÿ macro.pngIlocblobØ h[ÿÿmanage_macros.pngIlocblobRÿÿÿÿÿÿmask.gifIlocblobØÿÿÿÿÿÿ Mcancel.pngIlocblob^ÿÿÿÿÿÿ midpoint.pngIlocblobä!ÿÿmidpoint3D.pngIlocblobð Nÿÿ moins.gifIlocblobjÿÿÿÿÿÿ montrer.pngIlocblobvˆÿÿÿÿÿÿcarmetal-4.3/src/eric/GUI/icons/palette/Mcancel.png000066400000000000000000000014531417122252700221340ustar00rootroot00000000000000‰PNG  IHDRóÿatEXtSoftwareAdobe ImageReadyqÉe<ÍIDATxÚ\SÏoa},»@(…%•ª‘K)i‹^ìU‰ÛKÿ/Æ£ÿOž=y÷bBbÒhÒC½ØK­Ñ(¦ (IK»,ìØòcß·ŠÁnòewç›÷fæÍŒ gžx<®¶Ûí%~^ „Íår•ùúéõzwŠÅ¢1ê/þÄb±Õh4º¾¼¼|?‰Dý~¿[Ø-Ëê麮moo¿&ùÆáááæã?L§ÓO2™Ìz( (Š" ïÄw0 ¤R©yf1S©T\FcïÁ÷§ffç%ÃD·Ñ@³×sÀÝnt†B{½QGtr2æv»£¦i–hÏK¢f²¯&‰…^³‰´[ÁŠä*:êõ:,®##{°&)è“lzzz$·Vêt:·’Éäª$I.ÓîbK×0¡(X½0ŽŽœ³6FHV°eTqbÛ¾SSSwVJ‡Ãá8ÅqR. úx§áNô<¤AcF<<ýñ ¾° /}„¯ªª u¨ªâ€i9ç½i ¦x0«†1 `W¯ÀVdÑNœžž‚õƒ] :"j“µçr9°m  €¦? úü·* eÙuô‘ÄT‘EjBñ¥Š“±_­ W9ÆÍK—"‘¸gýN–#°/öÿ‘âÁÜ5ä4 Ï>ìáÅ×/ø^Õñ<½‚Y;½ÿl_`ÝL«lÛvœ“w=¤(ò£™9Ílü* FzŒ¨[T yuâ>³,¢U*•²,ý¥»ÕjµY;ydUñû“{Œü±V…Ö³ÅBb´ãNÅú >ÕtÔ¨O­V{C!³š¦åœIÅ—J€í ŒÅ²HLvêÖl1›f¿ß"øíÁÁÁ&;÷ê¿]³M ŒjµZöù|6É|<AÀ˼ßÍçóYÃ0²C°³©g×™C"Xçø™u.²Üf`Žúÿ`q®ÓNIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/Mvalid.png000066400000000000000000000013751417122252700220110ustar00rootroot00000000000000‰PNG  IHDRóÿatEXtSoftwareAdobe ImageReadyqÉe<ŸIDATxÚ|“ßkÓPÇ¿IÚ®¦?·Ù­Ý”EdR…!nŽ©eÈdÌ= ÅG_}õÅÿI˜ˆ²‡ù C(èžœLf›mìÏ´M›¤iZÏ ´Ô ^8ä&9Ÿï½çÜï02E‰Z–u‹¦s½^/ÎßAPéq266–Îf³Úp¾gø%‘HlÆb±­ÕÕÕ‡“““1Y–%þÞjµœr¹\ÜÛÛ{MâoóùünŸ‘†à§kkk/666¶"‘HÐëõŠý<‡ÃÁ………eÚŵR©$躾? øþÊÊÊóÅÅÅeÇq𿘞žN«Õj§$òCâšÀ“T*õˆj:Î?m «ÃnÁ±LLLÌü¢ç¾Øn·ï&“ÉMQNä0Mý¹a¨T*ð]1õ Ýl€sççç×™õp§ÇÇÇNôÏ‘ 8+#ÿ©Û耤F¯0ë PWý>ŸÏ…ºÝ.¯ÇÛ¶aËm(7fÑÖm>V@å‚òA§vj6› š¿:…àŒŒÖoúq ¢,àöã%´4_^¢~ª» ‘MBJª$IhÛf–âPî]„ªª˜[¿€Z¡ŽÓý3”3U68ƒf]ªóoY;n ”)Ãôâγ›ˆÄCpÚ]œ¥UÐù`f\êò‡B¡¦ºMNʼ;9‡Ë©KœàðÍDGb3 `Mf˜•èÈ,²,mÀ%·%…ž€ïïaJGhGuæÆöƒ¸CFÚ.‹_]'²£è%‘N(R|^Ÿ§ñ³‰fΟ¯Ê “l¼“Ëåvé$^þuØÛÔÔU¿ßß¡rüAÉj£ÑøœÉd¶5MÛîÃîM5™*B|•‘뜥rÓÕjµ6œÿG€j"|ªÊèIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/PaletteTriangleBas.png000066400000000000000000000002701417122252700243000ustar00rootroot00000000000000‰PNG  IHDR rëä|gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<JIDATxÚbüÿÿ?©€‰ @?M,0†²²2AÏݽ{—Ŧ{÷î1âÓ€,Ï„KŸ8!X Ŷ¸RRRúK-ã0Œ\€û'0’͵IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/PaletteTriangleDroite.png000066400000000000000000000002751417122252700250260ustar00rootroot00000000000000‰PNG  IHDR rëä|gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<OIDATxÚ¼ÒË Pê(°ÿJ¬RãÍTð`Ž/|HJ5M"3#™+ÕIUù4Þ^wŠ`ê+L!wG ­àŠ"pD;0‚ooÔ‡´o‡IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor0.png000066400000000000000000000010101417122252700221160ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<šIDATxÚì–_Nƒ@Æ»°Ð¨ÕMS/À)<†'ðÆÛx¯â³\A•²-µ°Î$ßš ýÃk²›L? dçÇ7Ë,Bk=:†ŒŽdxâA  ×JSáÂç¹Õw`'ž-€;\_#)'ÿ„fÈSØ 7/à„„ر$1n°ǘ{‰‡Ì ªíõuÞаC˼ À44ÛÓnË-¾²æSx˜/$ïlñ.7=³à H¸Õ¦w[Íq+À!vß^F®Ù*i«#þãÙƒüokÀr8 IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor1.png000066400000000000000000000010101417122252700221170ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<šIDATxÚì–YNÃ0†í,­€ÂÁ]8'àˆ÷<æ«ðÌ5¨¤I›Ò$Ì„ßÈdë7É–Æ“Mž/ÿLÆ‘EQˆCŽ8aA,ˆ± }‡Ç“”ÒÄZ²ây?ˆ" àŠ@däÇd#˜‹8r­"FAx")}(.h^‘-ás¨SSHò¦g(58"×_wBqEó¢ HH¼‘„Œk¥lᔜÌKí‰ â ¿ËA>‘ â–²ªÜ5BqIóœ<íëýAû8Ez2¯VñÃ(qK3ô1IUjX Ù9Ù5üdG•ܲpñØpOóŒì SXäi/Cñpø8÷wØ2|‚xª<`혃’½Ã'¸þ“šf8µ®¸ +ñ¬Üáú A9ø|„8©Ràá9”H!·LÉ7(Ä1Ö^à%#ø¤íó5ßо ÑÕÔˆ›TCÓQí6ëÑâsm½/ó‰à-Þ䦧 >űƒ€mzûѽ:nØÇîÛëÇÈ´"mUÄþ<[ÿò%À§ø¬ePÖJÅIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor2.png000066400000000000000000000010021417122252700221210ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<”IDATxÚì–]Rƒ0Ç Ðvü|Ðqê<…wàÅxÇÛxŸ¹…Ï^Ã¥ÐR qWþq"4ôƒ€u&™ÙlKiöÇ7„”Ò;„á{2ˆq ¤ëyBØXKÔ<Yóƒ(ÂçÅù Ù ŽØ¨ˆ]qVùè’¦Ù¾„: …z–RB#yûýS4¥iѤ@žH@ÆR@8%'dçóڼФ@|äw9Ìi) ’Uåv¨]Ñ4g PÛ=ã?hgHO6+~%îhâ‚>†"ymûF74]“]î©RPnü´à¦Y[áÊ-P<\'#|íqdÐâçÀ#ÖNɲwø ×RSâ‚¢Mµ®¸ +ñ¢Üãú A9ø|‚8¹"qóJd€;¦©ŒnQˆ¬½ÀC&ð™iûöÐо 1ÐÔHר†¦+¢ÚmѡŗÚzæÁ[[¼ÍCO|ŽÏ>nuèõ¢{õÙÐÇéÛéÅȶ"[5*â^žÈù`ÏΤØðbñúIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor3.png000066400000000000000000000010111417122252700221220ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<›IDATxÚì–MNÃ0…ãÄI wᜉÄe ÀUXs €4nSš˜éY&Iâ†"ÙÒô%iäùòÆGh­£]q´##€@úÉ?Bs GyhGq„’ûë¨"QdˆyÄRG|‚ðÁ(Ö›Çè„dA1‡Öpç—C‚7=O¥‘p`@^í?èŒdÖd@žHÀÆ¥V¶€pI(޿Ž¡ ȀĨï|ˆ7¤ È€pm3SÛ¡’LHZoOöíã婤»ârâ’„ô>)MiØ1Å1Å9t¼¡Kü@’ÊüÐpK2¡xÈ"—Vç«°xx¤8O7Ø2R‚xrî0wÁI)>  ×JSãÂç…Õ×`'ž-€+\_ )'ÿ„æÈSÚ 7Oá„„X³$.°G˜{†‡Ì¡ªíõõÞаË¢ À44ÛÓn«-¾¶æSx˜/$ïlñ>7=³àKÇH¸Ò¦· [Íq+À6vß^F¾Y)i«#áã9€üoùµç%“ètIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor4.png000066400000000000000000000010131417122252700221250ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì–ßMÃ0ÆëÄI@v`Æ`&@¼u„ŽÀ¬Â3b €4nSš˜;é3²L’þ‰ŠdK×/I#ß/ß9ç­õ`F4Ø“@H ]‡ä!„¹„£<´£½8ÂñÕdR’)RDŒAø€`ëËx|F²¤X@+¸óË!Á›ž§ÒH8p@ ¯ötA2o2 O$`ãJ+@¸$G'óìÞÐd@"ÔwÑÇRd@¸¶©©m_ƒ€ÎIf $­·'ýƒöqŒò”Ò]ñ=9qC úަ4ìÆˆâ”â:ÚÒ%~ Ie~¨¸#™R¼ä ‘I«ó•X<¼Nœ'[l A<:÷˜;ç¤P…ë?¥©paŠóÜꊛ@°OÀ-®/‘”“B3ä)l›gpBBlX’×XˆCÌ=ÇCfPÕôúzohXˆ±åF^`šíˆi·e‡_Yó)<Ì’·¶xŸ›žYðŽ#$\kÓÛˆ­æ¸`»o§#ߎ¬•´Ñ‘ðñ@þÈ· 7¿¦›j‘aIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/acolor5.png000066400000000000000000000010021417122252700221240ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<”IDATxÚì–MNÃ0…íÄIÅï„àœ‚+°ãœqŽÀ¸k®ÁBܦ413âY&Iâ†"ÙÒô¥id~3WcÄ.ŒDìȈ $‚D¡Cñ‡”2Ä\ÒSÆÓQa€ôIˆštB‘#R¬#—:„/F³^ qJ² ˜C¸óË!ɇ^ Ô(8°G ¯îtN2ë² ;’°q©• œ’Šc‚yñè² ò;ã i² œÛÜæv¬A@g$SRÎÛ“ÿAû8BzjåWüHN܈ï‚Þ‡#•ò¸$¹ 8¡8ÜÐ%Þ¢4?´Ü‘|ôõ®ÜÅÃu’á{¶Á‘‘Ä£p¹KŠ‚â ªqÿ'5 nXÚÒéŠë@°ÏÀ-î/°(/þ-°Nå‚<<…rÍ”ä¸B!N0÷ ›, ºëõ ÞÐPˆ©ãFÙ`šëˆm·õ€ß8óilæ‹÷¶ø‡ž-ø × \éÐÛˆ«öº`§ï ?F¡YiÑNGâŸçò@¾Ñ¤Ô š»vIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/allback.png000066400000000000000000000023771417122252700221710ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<‘IDATxÚÌWMhU>÷Í{MûbkF‚-ØŠt¡Y¸ÒÛ.Ü­Y"B\$+7ER ES)tQ4šZj!tQÌ*`[¥âÕÖæ¯Éû™÷;ÿ?÷Çs_îěɛ¼×‚Ö ‡y¹sïœï|çÜïž!BxWð•O~Bþsç’ýÿ©‹hw¡ ´{¿é¶&Ÿ1Qš¡Y²˜iÖ’ B¤‚ÈdÀ˜™»ñQDÅ fÃ%Kë-róNiñòô›¯ã³PÍa=Èô掾ñþ¾âðÓ/=ùêWj W&vbÀÀªÙ?8üÔù?îTÂÿ/ ÅÊ6YÈeÈÅ%aÌÀõc¨5]°k+{p|m—––®k¥ó÷NN?yèðsW\ŸŽ6ꕎµµ=kÀ"úpÄ´œVœfIŽ ”’‘ïüÇÓ³Ïï?xq¥d”k.´ª‹r €¢EúÚÌ]àúñpj£åƒ‹<§JÔü,çÈÏ|yùù‘Çœ¯4½!³éY^«¶œ×¢Ïõ¥„AÄÀCúmDúĽh?÷íü‘Çü.¤|¨ŽÀWJ-h–o!{ëy |_:ÐQ)Î¥qœí´ÍäK 3—Æù,ŠY¡m‡°V± ²¾ V}"¿M2˜Ëf@?£ˆüË‘nùî8Ÿ»:ŽÎ?(+Ønåš ‹kMh›‹àÛ5)óìe3@ÈV=$$—VI9`|3w}ê¡}CSAH;;ÆÄs£oškà[&Ä¡ ªpÓëw°åBç9bìIïóé™…SœìoÙ>DX3m'„F¿^µÁ³ª¡s!Ø}Ûø ô’‰ã³“ ›[^(ãX´$ýõ––Õ‚(°Óè¾£m¡EÒIÎ×§?8}dìgv _‘‚£É»D²èÐyŒkx·ºé“Ã(ü£¶€oy™(/ýž9qlâű…â[ŒÅ (Ǽ{¸{(ôÓmeI1!v'ÛqCµ¤ŽeII4îíåÅßõÚÕXV|è¶€F€Ñ4÷Ô’íÔ šûËügëk¿M`Ñù²ê% ó¯é¹çž0 zÃïö8à£Ù·®_¸T]¾qŒÆ¾IãÈBœø/f˜ ĪvüÏÁŠv ³·_\¯„³úû÷×J·x™Ñð6gl'íÍ@å´RwÀ®ßíŠ:ͺu7\rLÖÃÍå_¯å<¾¶‰™lÎ}¨ãIV3MÔòð:ô¨‰„‰·U*­ÿ¹ðªØE%åL=ß"—Ud•†ƒZ¾$;!-—H»µbÛ˜À´ÕË]4òŸb$ã4 "K¸e. y˜xVEnÅ®i«~fÑ©µiQR¨X˜Ç}bô0þöÔøVuJÄBû01TóPT=à cê%¶º‡Zwܽ¯Ü0鄟°È¥ï|F ˜Öý†€X£Rô¨ ¦ÝI—ñÌè{œk=\2NûhÉõºà)ОBOR¢Ï/£ž_Qùrû¯_ 0@x£ØêHlÚIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/allforward.png000066400000000000000000000023561417122252700227320ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<€IDATxÚÌWKˆEþ«»gfgv³"(PpEQX–¬¨DŒ¼$xJŠJ.‘x2ä ö‚'%‡ ¢.ø@E=xð$äa0&›5;›yõLwOO¿»«ü«©Ù-&ÝÛ306Ó]ÓUß÷õ¿š0Æàn^ ÜåKÝBþsp®þÿGœ‹Ë2­“éW–•I{±"dl6¶¬S¥12"‘Æ -geå“__ýíçÕo¿:·2Äg:6v" ~ñýÅó®-´t[Y¿eÂÕë¿ÿøé›ïà¡x/Þ) R÷ÌUêÏ>ÿÊ/=ù >Wq”a¥€€F²¤¨êRLÉ¢i‡‹v¯ñÎω=Tùhò6SKš¢ÎÍÍ,¨¿ø]ý¥ãâÜ,ŽŠD‚ä)E´† Ýz†}¯© JT`‰R)k0[«>´\?üõòÁãûÇH éZ/ˆÁñC0m£ Π3/­›H%Bý|­RRa¦R¾ïáÅç>_|æØÓBÊ¥%ˆãIJè™.8V <[W²ÀwÌ„~$ ²(#‰R©4ÿÂsK_?$‘È<Ž J €Àµ ‰|È9²|Qœ ‰’„‚¦)) U-UïÝ÷øÇˇN$ªYJð G)F)Þ'»«ˆ;"‰0¦é†œ„¢¦—æ÷î[ÙÿÂ[ÇrŽƒLSßò´ Ì­‘·fäc”Æ…žR*Ïž~¢þÚIœÜ#…éÔ©=bràIp_à#Ƴ ݸƒØý ¼ÁÛ O~_DÇVž@ï­Ý1 Äp¤JÇ º+R¤@úÂЋ÷4{Êþ'è›—G>ÑóSÞ°AÛœ§ºHXψˆ¢ÔË.T g:Ðiµ wë DþgµuÇlžÂÐ[“,wx,ú„T~?ŒÕ¡¦!Î­Ál¯¡ô˜’?0üÞM¢@—,çà¾å€ØÔZ¸Þî7Àµ»»"À°Š1´˜;ÞªÕ½ñMbnÊP€{øm­Z·ï€¡7SrÈNJ€oF}Ç`žk|h´þþHÌÂjWòø¬öŒµu¬î:p¤=“¬Þ2Oêší÷n^úiMœ+ #gËçóVgíª¶SöÒ¼|\Û?ú4“BG šÔùP±8–,ÉlåDçSEª&æ-¶¬`Zes¬q¹…¦’³íPÂR’þ¨¯‘„B…¤è˜Ô:“±¹¢ Ã$0šñ]OB`ÀL‰D€Mã„wôÍ9 ñzÈ‚Ïf¾IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/angle.png000066400000000000000000000032501417122252700216550ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<:IDATxÚ´WkLW¾3;ûf€…嵊B‘(* øD‰Ú(5õ‡¶icÛ«±Q›Øþ¨‰6iMM¶UÑØú£ÆÔ6ö!R¢Xê –ñÁË.Ëc_ìîÌìtîx‡ÛÝbnr2wîÜ{Ϲß9÷;g005 2Æv¸Ñ. ¦@±(8zBm~$\à| ÚÞ=>¹¨üà Ç¿Ëy‘…@eÂHO )¯žø(+QÍ”=6Þ,tû°]ü˜€3b".ÀŠÞ-JR¨[1 [σ‹‘r¼ÆÞh»xL÷q%¨¼a抑:ØD”«´ªÎ`¯^6Þ~âÜì¢Á ÿêäÅÅ‹öY NB“Ãçü%óAjzª0ö¨õ¸S{`™¹÷]mU, <)žÔ ÄØù•S:JÑmDXÚ›Að³Á”OÄú|œ9RÌN¶˜Õ,{Q„}°P؇Í>`¿ŽŠ²/¢¼hÉ|펼œœâúFÁçP¤-Åjt]KJØó €s+åyYéª;Þ?å«¿²ÔU]3<Ðc=OûèN^ÌÉ®®ö-ž« ]éÉ/L–Å£ûOr?£ò¤Ï&!HCßÔ÷Î?S¶£ˆ[BÙõù~,‡—\^òw-¤¶Õ~˜j)YÎmŸ§>È%óBA‚ ån8ˆ”|²¦íȺ9|_•  ‰QåT9ñuÇÍê'.ÖyzÝ[úÜtt9/V^z¿¹1xÅæS_ޤI˧E$ZK„B—ØoPD*˜b*‰2Œ_Ta4 ]ðÕƒ[iùkbt†´÷d„|Œø ½f¨éz]nIyµ§ÑêØÞëò¹¸yñ"]ÃxYT¢á­•+çåh^ç0sI‚쿸€x-Ñ¡é¯8raÈ 6éÔ`evlÊÊ–ý‹›¶5geJÐbõ€ Ú}Ê=.Ï]tÇG ïüµ±¦tçš:’ÐpÍUÄÁX>ømRåžÂdüØ=¾%]׾ɪ‹”¯*\ ²3_&66µ€?«j@Ì«ËftYND0„#‰z˜ kЪ£ çJG'™Œp‘.«L~ë¡ÛÌá}ÕÌÒŠ‘Ì~ø*×Çê Q‘T!Š€Ö²}¶ß#kâ"“yÒ'¦‹q†Œ„,:„qÄâôÛiL9ê.’„?2ƒ‚K.I·¢¶×N?d•:àcåqÅIÐtÌ!Dæ’G)ñ–!¤@Ø¥.€mý˜\±:û<Íá¥wÛû¾ý²¼¹U’rázü®ÉÜ›0;¸i«»ÛÞëm®r1»8ÀùPP‰$Ãät™$ø†¼# &'`ùÌ2‹œßiëq¢½0Ma#“­¡ªk9Íß ”‘¢ñäxVúLÉL‰#äĵV 4 ð¸=‚ ,à3yUQYof&eÄÑÖcïuˆE‹4Š÷ MéñÊ)i å®ÈiH5<6Éø{³QåœM‘€á|¬‹q{`¿óD—”N@¢Ì/97NÙ%ðH]e‰eØ ½A¿U¡T¬å݈;5­õ­¥–§–n’ˆ3¨ñðwx„ײÝ#rÀXÀÆÜÿ¨”ÄŸ1¥+Ð;&qPã:=ù­4ç†îyÑÿ‚ÿ2B cnœä€´ˆÀTücA*ª@:Ü<Ù<ïŸó¨›ÿ`Ëc£ iLz”IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/angle0.gif000066400000000000000000000007331417122252700217210ustar00rootroot00000000000000GIF89a""ÄÞœfóôóëêâÿÿÿúº€ùùùçåÚ›j[ÓÇÆæÁ¨Øk¯—‹ñðí®SmYdßÕÎŽvŠ\-'øø÷ïîèsR8Z>Q12ÿöî3Fýúøö÷øüýýÁ¯³ŒF!ÊzBãßá!ù,""ÿà Ždižhª®lë¾äE\°++@ÍÞǦ«‚‚"ù¥‚ÃŒ•I ¬tJ­nšCuËÝœ‘O·Z(›Ïè„'bØ ßðxA£Ž<äp~Ïß#Ö}‚ƒƒtˆŽ’Š–žž 8 ˜ ŒŸ®±  Š  ±¿ÀÁ¿³   ÃÏ¿ÒÒµÓßàáÓÖÆÎãÒäðòñõõ Š 8<°G° =|Èç`BB„©:${ð°âCK 18 $Fˆp`A+¯2X:xIB€ FR€€¥'Ž0Th¤£ÏŸôXЭ:€ÎÑÀHž78TÐ逃€Uÿöî3FéŒ=ýúøüýýö÷øâÞß„?%!ù,""ÿ Ždižhª®lë¾$6`°+'DÍÞǦ«›A¢"ù¥‚CŸñÄV,ŽtJ­r6Š!ÅÊír ÙŠáêÎè´: ñt8ê¸|>@tygÏïóv~‡|ˆv ˆ•™——  ¨©—£ žž ª¸» ®»ÇÌÍ»ÆÌ¾ ËÇÎÜ߯ß¿ ß àïðñ  ÁàÜ Hp …ƒˆp!‡ ðé8ÁÁ…€ñH”8° ‰¸ 00ñÉ C20Aƒ‘ÅìsHð€Á DN|VÒA­T hBð°2…“Îhš¤4 Tp!§3 >h°@«Ô«X% *y¡‚A²Fê°€Ö¡7VD°0ÕÁz=´À†»8ÌÝÛæY» ø ~cÀìàÁ‰+^̸ñà;carmetal-4.3/src/eric/GUI/icons/palette/angle3.gif000066400000000000000000000010421417122252700217160ustar00rootroot00000000000000GIF89a""Ä¢rQ“Ÿÿÿÿëêâóôóï¯tÍ«’æäÛUeVâìùùùÓjï×òԲØÏËœMñðì°rX/%ðíèy7-ƒSPÞˆE1Ds|oö÷øüýýùøöïðï°²«~:"!ù,""ÿ  Ždižhª®lë¾$Wp°ÚyYæ‹Q£„pàl~¥h4ò”A8ˆÌæ8=nª×F–{ÚšÏèí²ùŒ*Ò𸙠òbÏïû 9 o~‹Œ{ { ›œœ –ž¨ªª–¯½»«²»ÆÁ  ÇÇ<— »Ã«ÍÆØß ÚÑßèéßêïéÚèòúñßû8À .%ˆG A #¶r@¡>\2Àà„*Hœ@’äŠ&Ÿ@€ð°žJN0X€L’+!L8‰!CΕ±(HøÀ€ DðïçJc<<…p ©Ð–غuÕfQkëf3€ E$ wêX*$Ô‚EI¥» 6Øš€ƒGìâÍK«Q£¥}ÿve´É0#¶jÉYÀ@AãË påŠCÌ '(`‚‚@ƒÞȲÕ°cËžM›Q;carmetal-4.3/src/eric/GUI/icons/palette/angle3D.png000066400000000000000000000032501417122252700220440ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<:IDATxÚ´WkLW¾3;ûf€…嵊B‘(* øD‰Ú(5õ‡¶icÛ«±Q›Øþ¨‰6iMM¶UÑØú£ÆÔ6ö!R¢Xê –ñÁË.Ëc_ìîÌìtîx‡ÛÝbnr2wîÜ{Ϲß9÷;g005 2Æv¸Ñ. ¦@±(8zBm~$\à| ÚÞ=>¹¨üà Ç¿Ëy‘…@eÂHO )¯žø(+QÍ”=6Þ,tû°]ü˜€3b".ÀŠÞ-JR¨[1 [σ‹‘r¼ÆÞh»xL÷q%¨¼a抑:ØD”«´ªÎ`¯^6Þ~âÜì¢Á ÿêäÅÅ‹öY NB“Ãçü%óAjzª0ö¨õ¸S{`™¹÷]mU, <)žÔ ÄØù•S:JÑmDXÚ›Að³Á”OÄú|œ9RÌN¶˜Õ,{Q„}°P؇Í>`¿ŽŠ²/¢¼hÉ|펼œœâúFÁçP¤-Åjt]KJØó €s+åyYéª;Þ?å«¿²ÔU]3<Ðc=OûèN^ÌÉ®®ö-ž« ]éÉ/L–Å£ûOr?£ò¤Ï&!HCßÔ÷Î?S¶£ˆ[BÙõù~,‡—\^òw-¤¶Õ~˜j)YÎmŸ§>È%óBA‚ ån8ˆ”|²¦íȺ9|_•  ‰QåT9ñuÇÍê'.ÖyzÝ[úÜtt9/V^z¿¹1xÅæS_ޤI˧E$ZK„B—ØoPD*˜b*‰2Œ_Ta4 ]ðÕƒ[iùkbt†´÷d„|Œø ½f¨éz]nIyµ§ÑêØÞëò¹¸yñ"]ÃxYT¢á­•+çåh^ç0sI‚쿸€x-Ñ¡é¯8raÈ 6éÔ`evlÊÊ–ý‹›¶5geJÐbõ€ Ú}Ê=.Ï]tÇG ïüµ±¦tçš:’ÐpÍUÄÁX>ømRåžÂdüØ=¾%]׾ɪ‹”¯*\ ²3_&66µ€?«j@Ì«ËftYND0„#‰z˜ kЪ£ çJG'™Œp‘.«L~ë¡ÛÌá}ÕÌÒŠ‘Ì~ø*×Çê Q‘T!Š€Ö²}¶ß#kâ"“yÒ'¦‹q†Œ„,:„qÄâôÛiL9ê.’„?2ƒ‚K.I·¢¶×N?d•:àcåqÅIÐtÌ!Dæ’G)ñ–!¤@Ø¥.€mý˜\±:û<Íá¥wÛû¾ý²¼¹U’rázü®ÉÜ›0;¸i«»ÛÞëm®r1»8ÀùPP‰$Ãät™$ø†¼# &'`ùÌ2‹œßiëq¢½0Ma#“­¡ªk9Íß ”‘¢ñäxVúLÉL‰#äĵV 4 ð¸=‚ ,à3yUQYof&eÄÑÖcïuˆE‹4Š÷ MéñÊ)i å®ÈiH5<6Éø{³QåœM‘€á|¬‹q{`¿óD—”N@¢Ì/97NÙ%ðH]e‰eØ ½A¿U¡T¬å݈;5­õ­¥–§–n’ˆ3¨ñðwx„ײÝ#rÀXÀÆÜÿ¨”ÄŸ1¥+Ð;&qPã:=ù­4ç†îyÑÿ‚ÿ2B cnœä€´ˆÀTücA*ª@:Ü<Ù<ïŸó¨›ÿ`Ëc£ iLz”IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/animate.png000066400000000000000000000013201417122252700222010ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<bIDATxÚìWÁŽA­žE ˜¼ šÀŽ“x^Âà?8qæ?äâ½n¢‰bàJ¬²C÷X=éJ*“YºÝÀ;©T33]ýº^UQ-â8†sÎ<þÈ¥!Å„@Š;اSfN{¹ŒE´©gÞ{L„˜˜iÅdÏæñ­`nŽèéÇFï¹ çOQB”Y¯×ƒb±hÝ©Z­Â`0€étúîšÍæ—ÙlV`Ÿ¨ƒ1ÀÜ­G%ГZ­¯^¿±øöù„¡Æ ôa6› Ùñ™miË‚„c<ñwTS=÷}¤Š­ây”J%èt:ïqÙU¹\KÂ% )úa»Ý¾@u‘|ˆ†¥TVÑY¤©šL&—¸¬khóa£ щ»¢(‚h¯¬H)aµZ×j¹\B:𜠢ÿŠê#Q Ø„Qð—}0¸"> :‚¯´aãñXSðçã,×߉‚›H‚¤$r1iWÒ¯}œ*¡V©×ëq·Û‘‚ä7Ö­[:“Ý€ïëLA¿ß‡'Ï/­xpý †Ãá©(°Ç@þ”Y cÀ&çÏ‚Ü ³@¹"ñ"Ï‚cüüÜ]Ò4Éßq¡ðÞù‡ ]¦¡‰ðdGeQ!Ò÷<õÛV«ëõ7.@»Ý†J¥bAB×b±€ù|FF£Ñ3må7£}³ø@h2 dâ¯Ùz½9õŽÉµÑ€<Ô”’zÁ¯Œõ¶‘nDIv¬'´Æ€b ¢#wÅÎHŸä^`+DéL¸¿›Ñ}ß–Ï~7ü#ÀNWæZóŸIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/area.png000066400000000000000000000025111417122252700214760ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÛIDATxÚìWKlEž}Øûpì|çéêsÍúÆýõµ5}½º Ö¯7%‚‚G -z«;ë OÌÖªG¾üá§KòOF«Ð­nÅøùÇï½íþ™•ê¼]«V@m­ MÌlËY¿{bnl|t™Q®\ûvv8ÄX?<6:# œOl€{± ^= °wjáê¬}ùJEŠª/–‡yt¢båóBª€ J™Ò7´¿áÈ&¡Óò¹wÓŘØñ·¨Aа«Ë+`râðW£Ã#+šª Ó4˜aÜÐWåw& àrßüæJmd}iåÐäÈPá·ùJ`¨I-ìz¶((`B€bðœi2×±h_ÑJ—ôö¸¤àØtÿ} ¦•c¦ÕãÜ7“‡Ý¶c&{î7rœqÐãüx厧Û¦®s#˦¶¼çÚVä” U;o*'(eÃî <ÿÔô0ãDaœ ºÎó9“Å€¹–G ¡VJ×,+X„'K®K«°+í-XÞW:!¬i±ßPą׎xZHZ£k(TŒœ)É(Æ Ç<"êfC¦†¡ 2]ÓýVÕJ ÙúK1 Û±·¯¸äJòNgÙ3 PAªr‡`誎[ ÿñ¶ÛvKIr± …ÞbÅ‘x„ï•6˜)p× ¨”Á@zÄÀq´xt¨WabÃ`yδòB‡"wú‰‡Ží´2€B pB¥fØ>’rCåfâÔª¬‹¼mùn©X+XèÉé'’:ж³!û=Àh?à ˜º¦¥gœ)„Üâ†Q !1¦¸}” (Qø`ªo"€²PïAri–ã„„ˆ%`µ-{|Æ0Æ•ø¨ |ÏÅ!6·[ýBpE•H„íO<<õÑgß\HÙÀÛ‡Sæ«)Ð)ÙÐ,+ ¶6zÃö6s€[0®cßë%84¨Ø,Šäm h‚ ÀrÝõ¦z‹Ågd® ÛtM™ ÈÕ· Ž€7?{T&ÀHT…!&À“Ÿ^S íiMY9|qÌ&|çéêsÍúÆýõµ5}½º Ö¯7%‚‚G -z«;ë OÌÖªG¾üá§KòOF«Ð­nÅøùÇï½íþ™•ê¼]«V@m­ MÌlËY¿{bnl|t™Q®\ûvv8ÄX?<6:# œOl€{± ^= °wjáê¬}ùJEŠª/–‡yt¢båóBª€ J™Ò7´¿áÈ&¡Óò¹wÓŘØñ·¨Aа«Ë+`râðW£Ã#+šª Ó4˜aÜÐWåw& àrßüæJmd}iåÐäÈPá·ùJ`¨I-ìz¶((`B€bðœi2×±h_ÑJ—ôö¸¤àØtÿ} ¦•c¦ÕãÜ7“‡Ý¶c&{î7rœqÐãüx厧Û¦®s#˦¶¼çÚVä” U;o*'(eÃî <ÿÔô0ãDaœ ºÎó9“Å€¹–G ¡VJ×,+X„'K®K«°+í-XÞW:!¬i±ßPą׎xZHZ£k(TŒœ)É(Æ Ç<"êfC¦†¡ 2]ÓýVÕJ ÙúK1 Û±·¯¸äJòNgÙ3 PAªr‡`誎[ ÿñ¶ÛvKIr± …ÞbÅ‘x„ï•6˜)p× ¨”Á@zÄÀq´xt¨WabÃ`yδòB‡"wú‰‡Ží´2€B pB¥fØ>’rCåfâÔª¬‹¼mùn©X+XèÉé'’:ж³!û=Àh?à ˜º¦¥gœ)„Üâ†Q !1¦¸}” (Qø`ªo"€²PïAri–ã„„ˆ%`µ-{|Æ0Æ•ø¨ |ÏÅ!6·[ýBpE•H„íO<<õÑgß\HÙÀÛ‡Sæ«)Ð)ÙÐ,+ ¶6zÃö6s€[0®cßë%84¨Ø,Šäm h‚ ÀrÝõ¦z‹Ågd® ÛtM™ ÈÕ· Ž€7?{T&ÀHT…!&À“Ÿ^S íiMY9|qÌ&J@@R¼QP©é¾OŃIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/avancer.png000066400000000000000000000007461417122252700222150ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ˆIDATxÚbüÿÿ?!°ÒV—”*sñ þ‹.~ø A³™(Î@\Ä*ä@©t€8ˆÂ–@lĬ@l>pb](äz:@ ˆM˜Ê¥oz:ÀˆíøÌ@lHNb$×Ö@̇&fÄ~ôpÈçXÄ9¡c§µ<ðµ.4AÒÌrPß³âWâZ: ˆMðȳBÓ‚-2܈y ¨Õ´pÈgzPö] > Ä üË@¼ˆ¿17;áP’PMs8 ˆWño¨Üu ®„Š‚RD… ‘–‹ñ ®âY@ü ˆAu4Rô<†ª¹­ Ä©éèâhi¹1jüâKP¬JM¼&£¼¸MöÅ`Ô”8àR"d„bº:€©N•¿èíehÖ·@ü…ÞøÄþ2ЉiDæFl’ •ûß‘ØtwÀvhýÏ­‚É FbzÇ´î€~$>ƒëwz³IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/avancer2.png000066400000000000000000000013431417122252700222710ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<…IDATxÚì–ÍkÔ@Æ3“IÒµÛ]EÙê­jm«-¢Ðú…"èÁ«"ˆ= ^Ä›÷þ‚±ö¢7/zAQéIü(ÒK¡ T ¥`?v“ݘ̌ÏÀk {°›ÝD/}áÇfg˜äÉ3oÞw˜ÖÚú[Líkâ  øæÀ X¿ÙÙùV+!¬taƒK`ô 0 ®ƒOI­O)à x`.4Ó÷•­nâ÷)þwÀÞ”÷K%` ¸`\c»”k7û¾MÖKµó\ò{?Nç)`'ãŠÏÔ‹þc¿¼ºÍŽÅXaæ^€Œ–—€¬Áò¢’S÷4W1Ö vP>ùy:ð<ƒL³qØ>Ê#q„)vcWAÞ¦M´_Á+8ð^DâZÏòÖŸ²*p}¦c˜ÝÆü›´l(€éÄ–j6+Et%vã ;¶ÚRT¤Paì6îbvD™  ?b·Âî`É/WŸ; Ççø¥-]éDïàBlµ Xé]jvdoL:rUZRÁŸ.9©0Ÿyri')À…a {€m1o¾ ´ã@ÚJØF)ã×3ƒ~÷ƒRžÌv ‚ dÔÁ!r"7æÁ'© 5GLÅÈô//{@?u@Öû]ê¹°+Ep˜úÿ˜5о€T†(yÖú©ÛMIð’X ‰ÏÔ+Y–b—"OÀk° †iü÷=‰¯à89“™EG®é¦uɦãQrhMfbÚïV#ȳe›Ú ‰ÆÒž³°©Š’.üתf}5í90 :ñPµùt¢ƒµì 0‡ÏGt=׉€_ b%¿%På'ÔIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/avancer3.png000066400000000000000000000017161417122252700222760ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<pIDATxÚÄ—KhAÇgfŸy?j«U±/,âã mŪEQ¼žõ.âŃ'O‚g±x± ‚O¢(^<½ø>h¥‚Z…Š-múJ“l6Ùÿh¡I›d'ü²Iv6óŸÿ÷Í·³TAʵCÛI…v$Á0¹f‡—“d½ÆHím8 zêøšì›Á&Ðõ?í §ØÙLI5ëÈ*š)@ξB Ä›!@ ª§* [ju¡Z½ M]WZ¿Ò‰V°è ûž¶´Ô„rB ÛÑH2Æ»€¹bö¥VPa9¨Äø.@:‚eÎ{J€Ìp#à˜Š1¯ B†§¿ØûtªÊ'?[JU¡ÐUM`ê8¸FˆÊ¶d­´½Oå o•€NUŠ?ïÊþ^•²Pý®àVUÈì>ƹæ€{‚‰_‚ t0Ëå¿­îŒrR'•Su;`¨¸bïMx>þyŒ8¡lÆÓ¼ %4H1 ÇLa.©L|qŠ ö}ºý SèÝÐBT„"„qí¨VÐÏBP?Ĉ –‘‡NAïãm W¼pÂÙŸ8ºu €µÆé\0&‘¹Á GA¹—ÃŒ‡Ðu¡ØM^š7“‹.Oúâ€éXD/$šJRO/Êu~ ìu΄kåÿ`0ûmê€K˜¿fælâ‹€äß68‹®e¿ã`ãìbý"’D°.ÝvŸ‘yfÚ¹À0\8G9»‘˜n-øRÙƒ—’q@-à 2 "H6«hòn(÷ß?â\t tøÊ}¿x+ÊòêJ'¨,@1Õ‡7¢ËŒUÇ‹”SySrác¸FÀÊá”,B)U€|­„¥{þø kûB‹‘v$ß„gx9Ó1ÏCDâŸÁùáNù*€¨ÏpÕp­ÓzÁlÁ yÌÕB@æñûð°Úý@µ;˜1­¨_ÎFÒìïC¦ÙzAe¸æˆy­6©þ ewUQÄ+Kg¢Kï8¨õ"ZŒ>¶3Á§¨5íŠ+ ÈÆ–Wÿ€ÔZN,Ê¥iPA]¹ÔPh&ž.-W,µÌ­áŠF`½¼ÎÂg˵óz>˜«ùÉhheµ)Ndiù~¾'a©=_TùQϳ!­ôxÞŒöO€ ;hñm6PIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/avancer4.png000066400000000000000000000020531417122252700222720ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÍIDATxÚ´—_hGÇgv÷vïn/—»äŒšøÓ-‚-(¢Æà¿â©}Ph•¾-(Ú‡>©ˆ>)‚àƒ¨EúPATb¡Q1˜&´é%Í¿»Üíí^v§ßÙKðá.Ü,|˜ßÍÌíü~¿ùý~3Kc¤–çýÒëVEëÎø¤ÿIMïUÈüž}à.øSðØ5ŸiuÎ7Á5°Nÿ ¡Ô/à{`×úÂz=piÎây0ù}œ¯ç…õ(°|+ä"8¨0ås°òPcGÁr ì‰ÈgFoŽš“ã£æÔeô*ú.Ds— ÚgÿĔǓ‰éo&ý-ädX~_dn§ ª¡@ iH‰GH·GÙª©x™PFr‘¹– žEä“i;™a”íæ$«z £äxdü‰Œ4äyߺ`uw³eötŽ/T)¡^ºb€"]bÞ+ðH†<òƒ‡Œ0]eê§í…VÀSÐCX8ç»HF4n T¦ÕSž‚øù»XÐÈüÇ Œm/Aã+áˆ9é·­ú¨/Í õ.›N\ƒëI9fÛhl²=ª§úJu6Z>¤[h1ßiª/—ü.FShv «§Þ³ ¾-¶¡ E¨¸5—ÁÈÜýõlÁ|NïÀ‘–q/BŘœÓУ^XfÀé½½‚ ñŸ ^A0~Fƒ>Öpš+)‚@sSv¼7m›$Ÿšhw/ׂû;•²¤`”{§õ ‰Æ{`Ùè’°‰×ŸKW’ÑÆH`î …Ð/2Vê'xᵤ-ð½ºËÝG›Õ³–Â3ºK=¾ÿkÀVð‡ŒJØ$n<,zà”Ç’Å>+§ënÌ€õ ðó:X[ëTOlãwÍ ÂØó–üÅ¿²ù!08Í_ˆX½¬—‘†›DÑ!•˜sº¨[š«ÅArÚ°ÞÚšsFù|›e( K¡KÝ!¬eˆå˜Gx °¡ÈÜ´ †ƒˆgûÝ­zÔB`2F=¦yª£»ê†HòÈPඈxbÌÄN-œÎî…Ë«(ÏÕ¶éÌ7Pêgd ÿH¹'# ^‚_Á×°<×QÈíÌ•šy¤SÃÅÝ R‘¯e(^¹yªmæÆ&fôD¸-"þx8&å4äÆÀÜ€Z1§ÏÒlÇŠqœwè;‚±Ý  È(ÅeÝgÌ,^1'¸õÄð¶Röjk©iöÎÐpÞ´ ú ð@ãû +È×±ñwÓäßÔxPžið±ØØ³€¯.ÎZ~1ÁsKÜüoDU¸]œ5?ÿ 07çpÖÌW-IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/back.png000066400000000000000000000021571417122252700214740ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚìWMle~ægwÛn·ÛZ´Ð6lCAM41ž¸jL@£!„£xñ¦’x‡¼<E‘b™:bÿ6¡"t¿êP›©Ýé™.\¾…c‡Úqôý¯Ï.6Wõò›Ç/þröûÎ_šÇÙÏ/O9¸w@ÐÍ_¯Ì ·õƱgp=®ü^qs[ < ,™“í{N‘—38üÝ ÛÚ m¬²x*¤'²âƒ¯&1z•ý`çWë\ñ9B–£0´%ŠÖˆŠÉ›e|5r)E×Zƒ¨¦âäéåÃý¢¨Øÿî§? ¿·“Þ–9 ÷y5Ëp*Ǩ™øñ×Yv©¥NÉ,-¥ñÒ M+£¢WP5j䓞! Ñî¯Ê#Qå`Äk™œ ™Ò )øí6»Œ?Ü­³ÇNO}­›öž?·”ܱC+‚ÛÙb ß]0п9‚*#[rÊ_ñXz] ˆä K\`"2<ß%NÂrØgߌ-$báå‡Sf—þ!&ûyLLÁFuö¶§ñ˜üuüz[Ÿ‰Qþ-H›øÔ:Í%RÂÔ~Ýhª÷3&vôwâÏ{´µ¨(WjM€Ç±Ì'+ùÌ××2e–µ¨ULd)¬w”W@ ÙåÌŠ&âía(Š„ÞMQd‹::ÛLŒ¯ÕLøÊîõ°,ÓiÑѰÓIû6µÁcÅöjDÀÑÃÞûºh³Nøñ鉫‰Žlé“ñe½á„ "ž`ºóÌü£ ~2ʸ‹À惼/(â¹~ÑJ5 ó‡‡9"<Â÷в0ªY›ˆšž²…»þ`Þo ¶½j°=ÓqU00{-Dèí'’èìÕò¬ôŸ”4.¯Õú[€ÜÄÀ¬ÛéñIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/background.png000066400000000000000000000046001417122252700227060ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe< IDATxÚÌXÙo\wþî:ûêeÆKoñØÎ‚S'4[C\@ê •JA„¾Tˆ§¨ðÂc#ÄÀõ…xˆT±* %vÖ&±cR/Iìñ¾{ìñ,×÷Þ¹wîÆ¹f*Üb·q)#}É(sïï|çœï,¿0ŽãàÿáÃ~ÉçÕÞ ;è‹üiøá<¡pv£XnžÊ£%áGç¡Ðqú·ñÿ‘á4ááÂËÏ—eßàT÷'òx<%ˆ€³-üôÍv´×ù¾-ÂszÎv_v>GŸE¤‰ppÑ5¬êV÷ø‚ŒÓ%ÜK1œ^GÙpÀ0 0ðò jB"baE͆iš¯Ò{¿$”†Ëå‹ùUV*_y¶´Ée#3EŒÎKÐ ÖúT¹¡ékð†‚䯟Ä}ŽÌA‰\ùÉ{ãÐÊ6<¯€úêò cÈ8ЉûƒX˜AoOê:Žašs[vGw@Ò‚Í ;]•Ó58† “"6úŒC﹦ TQ…ùQð¡t´@”÷%fKpèT—ÌÜÊ:N´tãîÒH¢ \æ)žÍ,£¥{ áH "©ÚS6 k:|å<|ù l¬e°k‡b˜0ˆÐ”®àçoýïþâ7˜Ï™hi/ µ®õñiŠB îM$ÂÉÐ)~/…P^ÃÑx"Ñ*T_ø.ŒÒrë‹èHßÁñÎ(Ò[¡ò-âxiöÚ”™È©¯#l¦ôØ$f éå,‘ÅÐó)Lf¶ p"|š’q¼ûƒoíMDÙ.’¢-¨TÂ3‹j€¨K`ªë`w¿‚ðì•ÄZ—þŠâT«žz,–×ÞC8¿„‹­1Ì'B˜õÇ(e6|ކåõ,zRÍøhœ¥`[*bEÒ°¶@qßÈVQ…Wt'eÔÙ±¸¶†¤?‡§Ö¡9ÄŠ ³¥ (fÁ®ÐÅ(mÁª“‚'_D˜Î¾QÑÕaú©3S] ¥ œìNázÿC”K&UçNI²#ìßâçÇÿŽÅ™IdÖ‹XZ\ãáa$#<2«PZ¼5~›ÁLµõ ”ŒÐîDï‰S8ó½ïC>t·úñšçjTt6…©Ž4\ºp(giÚÁST<<9êeöëÒä "ÕëôPº*ã–WÆ•_Åoo!HŠZ¬j ‘fßÒˆVÅÌû¿CŠò]wé$F•2 ê9¹\žÌóprÊÖý‰l©]+—©,.,¢«©§Ú’HÆb0æ‹Ð'&ˆˆAÞš¨ª®&›` §'‘ yÔs®›¹EŸ®¦À ·µ‰£©NܸwŸvšJm¾”ߟˆaÒB#m»»|^/d9‹Ì*Þè=LÇYÈ 55!–%D<tEAû…^š O–t³¶Šß÷#ö¢ãTúÝã`mu_í9Š®¿½@M'’ÑÈþD$‰#O¼´o0ŽN^Ix4HåÚýlf7¨ÉR_ö!e·ÐulSãZEiu -~ŒŽ-¡°±PìÐh8 “0yrÐÄé—NB—òÔ‰9ˆöÿþbå¨ÉpÔÞÝ}À¡Ô°ôehð> ¯0 nO0€Ã½')…,2“i, Þ@ˆÂ7ß:†ãgXLç³ð´ùQÓ) ¥·³‘yÌq3˜ž™C{{;Yá%G¡8ê'ûF$ä§AgYäÍ jB, ’'‹Uãéø$5 ¡.œD óÀ=úaJ~ªÝc/…§6†Öfd‹›P- G¼)ØÔÍY"/Òôõx¼ÔÔ8ÿZÄ=‰ÌMeöܞܥF’UJOŽ„¤Â¦CíH+4ó-ˆhº„YOG:SqØ%$5¶ ÑXp8‚þþ~¼såœ?©T Ñhôö™¹éY–õçëüñõ…>Y[K3ÑÁ* “F 7ÔÒÐ#ñq~2\‡ººŠ`æææä¡¡¡"mh¹Ít:=KG=%< ¤ÉnþÀ÷zéNWg×ëãOÿ±3þi›@êH7š›ÛvÒF7ÇÆÆ¶oÞ¼»uëÖÖ7¶Eqç<õj)´éÖ ›•õÐú´Šˆ®ë†¡Oʲ„x¼…BAyüø±t÷îÝÂÍ›7³äy¡b´\ÙØKã®Q™P¬X%,rdW?0÷sçΓDàâÕ«WÙ‘‘÷òUSY¸wu±]1,U¾+•ßå]ÐÉ®õ…ˆÐî«\²S„6w}!˜ƒÅŠÑ݆]è”+÷׸µ×õó DøÊÅDUå®bì2\Úe´\!iV®½Ÿkä D˜JÝû*3C5öóö…Î?È{2ì® ™ã|IÿÓóO¿U/ºépIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Darete.png000066400000000000000000000011111417122252700225220ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ëIDATxÚbüÿÿ?Ã@&†£`Á&h]a¤2Ø ˆoñôƒK;6k()úÑ!TóI,j“†Ì#Òr¢õc Ë|Üt4Ô=}ΰhù˜ø<"€$ýØÒ(ØÀšøô´5`â&ŒŒŒ „0>ýÄ&› ärxöü%Lü ‘I€$ýØ¢`:»Bƒ >¿{±Û_?ºq@TNC?Ô\Â!L(ëT"Ÿ‚ =øüöùôó;úÙ6ì·¹~dcîûç÷Ûõq9ÐÜ6¢rŠ$$Ná†ñj ]Xâû =›Å÷l~“â#0M„ŠzÊ ¡¡ªRB ü,Œ$.ÄnNúò÷]|èƒl9-JÂ#Þ†à Õ·rbðˆLc0wñK„Ùk='ÕrRC Dø¹´A´¤¼ ƒ'‹½êp6{ÿú˜óñí+R³)ñ!€--*õgÓ“{6ad3rÚ$‡@\÷&P6Múûïÿ9älo#'Ém³(?zÔ/0Ú ¡ :ÿßß?ù¿~`çâÝCjƒ…"PÚ`¡¸ ¢Bƒ…b 48@_ƒƒf%! ŠCkƒWƒƒê!€­Á‚¯ÁA³’p´k6l`’D×Hgå5IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dcircle1.png000066400000000000000000000044371417122252700227620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÁIDATxÚ´Wil\W~Û¬oöÝãmìxßâ¸ÙZǨ¤©’¢¤ªlúñ£¡ Ô”Š !R«¢Š¶€A[HÕlM YšÄvo±=ŽÇËlöÌx-å =šè]† 6‚ª"L¨0Õbáÿ4@CksyŽÊ’$fÖ“g`.¢ñ‘dåŠQZvÇ-*cp• ~ôðÊZ¾¯g÷àüMÛžbÒ©ŽÍOn:Ô](ÆIzj-_²:Ý;q‚ЂP8 ¾Íf™[𽣤Ú`³_åŠßa{KOÿq£Él‡Ó/æ™ÌÒWT[K©}BÞ®öþÈâp=HÓ4¯ÓäT"Ùjs¸n^{)Ǥ¯Á:¯‚³©ŒŒ)£¨ÑhLV[§ ”°àÄÍ–øâ¼jÝ=A¨iýmßjlï~¦»w{ö‰¯}¤4¤éò¥ ¦óïþÓ¢e9ëF!¬×P\±$¤7ò…è*“›‰¦™‘t®y¡¨Aþ·ÃZL6{S*ý+2œC߃€b€Ùêp h(|àèa/Nç<Ù\‚¬Å"wœXøvÚÚäwÕºõL§¥Ê–—D ËrYgÆn‡×ÎM…ãgŽgm×îTb´ÈŠñÂUû=ÊÕ(¿I’ s1Àc‹&6Gc’DHCcÓ×å|”?;3û–F”cfƒÎá4›½s·×jjï¬õìmñºöî ø¿;’cB¸µ£åÎìÉåàäÑáJÈ=X5ʰQîò›¸>œK›F/_‘ùöšÕdOÎMM³ó·æ !'Å&æÃ¿ƒµKˆ’z`‰Ëc¦ÛZ|®ý­^Ça‚ÖwP®ö~ Îð½±ÒYÅ5äi31•Ï´{Z¾¿³Îw˜%qlfž /LÏÅ¦ÆÆø gNS|‘Ç—æ¦~L¸ŽN#¢ Ù|‘¬¤6nLDVoau­˜ÞìÔ'°íêð{!NÂL¡¸ŒtU7@¯¥Z¿°»çE£–2 O.ü9ňS޵ģQ‘Íe# üÕD4üo ÕôSP¤ê[:žõÖ4ò¹ôÚÜÌëµSS“×ÙÐ]ï=°ßÈN âæ< ×;l;=“#’ÎDÇçÃ/‹òJ<Ò› àÁäg–“o"ôùržÏŠ)I’0›ÑÐsËEê#ØÁ`³ÓDo?°½íL:9výý³_¾úÈv‹ÈðŠêô»·f2¼>o2訣;»Oè4T}%û*0jÁBKÀÿeXàœXŠãJŠ*Ðîz´±ý›ŸÝu©Ñm?h6èµË®6·­]K…Hš¹² ½ÊÜüjêf[ëP£Ëàø’J¤ßSÖ”YP(•X…ËõN«?[äó¡µõ³ªˆ½;oà˜¢zc5½ã²ÐÍ8‹¼ DÀèu€öB•â¤ì‹’”ÎKrO½ï€Ýdh Eÿ.O‘(Sa¢…º-tÛärü}Ø0Š`’TéZ/(; ².œHý×jÐÕC+ü`ü P~©ÍT†P©,»ÖQë>â³™}Ë©iˆ‡áJ?@Ád`}¸Áek´õ­ã+ñÓ¨êI*ÊjtãŽ}ûÿáôÕ>Ž.ýmƒaG’Ù|PESi‹ø! ( €Zw«Ï՗ʱ«Áxò ð’,¯½},Sพßà¡ím?Ci¨t70¬ÛºúNŒ´™$pM8‘¹0Yý‹Š9Ò}º¤²ž5&]¸¡N9àQ„…ØFöâÛÃÓ'fìá®æ§öµýÞÛPo§ñ76?ãö×B•ãfÇGž—!ŽR9ÊÞ•;…ò:ÇôqBå£ò&c‹Ñ7‰ßJðæ‘Þ–§ŸÜÓûŠŽ"ë®»©³÷P€°¥¹éW ÃyÁþI”W\¨Sb ”cJ?¡š¬¹’ÊÜÈrÅb³ÇùP£ÛÑpÛ$™\tm=·\ä¸ÔâìäqÄq®Z«]¥5/•`R·Õ²Jy%Ò Õ¥CÞ´·¸©²~¢Ûq¥ã!Um+¾Ü û¾Iê u«:%9<ß'IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dcircle2.png000066400000000000000000000042561417122252700227620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<PIDATxÚ¼Wilgž{Ùûô^¾RÇŽíÄNÛrPì&…¤i“&4Ú‚DùQ!QÊÒ”$TµE¨´–¢ ú£‚´%J!¤&MØNߎíõ:{³÷Ξ3³ÃûmgÍ`šº?¬Œôjwæ›™÷ùÞãyÞ!±Ï?0 L’Ï•ÿ7å 6X' ’´êæ.I’ ÉXä¢ @ÄîÓAèMæG{—ZºznÂy˜jSl´Î%c‰hdÚâp6™lŽýòîñû@’ŠÅ•ÕeÿÓ©äå2Õxjf.¹¼Š~€üòûDEÄ>7å0"ç«f¶û*¾^ﲟ ZµµéŒ k¤ïb6œÂò¢ÊñB¼(I‰ãŒN­²YµEKÓ˜X,b·cÉ¥«Ó‹oÍ/Ÿ{ÂrTx%ü3œÓEîÎ*¿ó¥úêgF½#šà°áTb5A×8“ÜÂD`xüÇ^¸Å‹bí $H‰™ÕTz̆]Û<Î {Ë0؈?øÉ_ÆNq¹jå¼\?ÒzkÎ+Œú½GÚ›N7¸ìÛSù<6<ûlÿÜÒ;áL¾ÐÖý•3EQ*]¹p°(×m)) EÏTi3=üHKý‹gÓT04}æòµ§²~Ö²`V³ÒùV—ý›Oïyð ŸÅ軾t§ï¾±çç¯úÙ¢(išñ:<¾vI ù|n @$KÊ…¦,61‘ÉÍ߬\¶°ší;*Ý­°b™Y ÿMÑA%kÎk–“Ïô´ýA«b4çG¦^}whüùT.?&?€Œ£ÆnuTR©Ù§«Óá©ÜÍçslš»£ä²(ÎÔ­Pt²Ùë<âµ›Fƒïå!(ƒ]«rʤUïzzO[¯A£Ò½;8þ«+Ó ?ëiEáˆVç«kÞùCŠf<--ššÚ-¹l6kЛ­Ý—·Eri+äse %'¼ Fu*U]³¯¢u)[I¤ú”mXêó‡›ë^p› ¶ c3ê›õ¿$ç¨ÚÒáôV=¦Òê¼Ymli­eu:{0XéýÝ+&š¦¿f ¬?3˜ÌØÈÕKX>›)(½çnŠ›GL¬Æ·žŠq›žmo­v=ˆÄW>¼9÷KE¥–œã8ŽÑŒ 3Xl•ƒïÜÓ£(*×CÍ­;1·×ËCAø$‹S¨»å`ƒÛ±+Ž/ÜþUöó鄳&RõZÞ‹ å³¢²3Z¬#ö_‡B«ßCyG·¨dhyñMpþÅÎJ"¦Ö0tã¡·½H“öñôâëbQ )™ÂÉô<(æ±wMÞ½¥P»ÒñÈ],þÉ%Ìêta6—÷¬(ðC.ÕýoÐVAôH-ÁRrús9rwË«[œ–Ú«3þ]_ ¾­Ð…ÿÖU§ÝûÓû…Žì5ê„\ž|ˆ ÓÖÖýå…==!A‹îƒsüœÖeÒ}n×ôoŸ9,}»»m˜ÂñV¸n7½öÞ=†T4én©rw¹Ì†ö[«‘ë 2!9‡¸"dÊ­I £zÀá©jK'SéT<ò!«bê@?~t¬cûiáìŸ \zÿÆôoH†Õ0UDL‚ºŠ•粜38v "Ñ ”ÙQï¶?^à¤5$‹œÜËJ•\‹ rËçrE<ö·zœÇ¶7ŸîØâÝ—xñƒÑé—ÏN²¹«ŸhîÜýŠÃí;é©­{à©xô*ò+tŸ¤IÒ{`ÇÖŸwÕU=©UÑX _½µ¹ˆ$Â\z.W8UôŸR3kaµ5vÛbcµM>›©Í¤×âYèã‰åÕóW¦~JrȉPUßøèDZñÁ¾oX+܇ªëO t±ƼJÁÛHkðÜÈä÷Ç+çºê*Ÿ‚HìëiÜrÖNÀ† `"& dH÷At°ÅPd¢ovix|yõÏÑtæßðLRRIÿEQÌgRÉkÀ‘ª­ÛN©X¶¦ @)%ÁtœûÀ¬Õ u8º­À–•Z5c…Áƒ§…Lž@Twé@0–\À Ö]‡owZº‹rŠÁGiÕÛ\žoÙ=¾£|¡NÅÂhmýH&ÊóÊ5ËdûcKÙA9M”rDS°%ºÆT:}yj«;òÙÄñùɱ‹ .!$@Ì¨Õæ¦öݯÁ®ý7û?>äÒ½Æòr4xäiõy\ÞaVÖ 8ZöŸAJ»<´lS’hŠÇüþ鉷H’dù|>Rîª ¿ “­r×ÊóÐ\6scvläS£Cß!þ?QÅ1 @þÙÉÓ…B>ÚÐÖÙ ‡&m‚ؤï *0/'£á¿BÎsÊɱ,IR èÍòÔÈÀs@émÕ M¿›ú¡{¯ÑžRkÙf½ÉòbHÄ–Zƒ¡Ûdµ?º¢½/¸ëþÓʯïÿ0‰í;íêtOIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dcircle3pts.png000066400000000000000000000042661417122252700235130ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<XIDATxÚÄWmlg¿wû|öÙŽ;v‚í4v“¶i“tm€ÒŽvm¢¤›†6uBãCBHô|@BÄІÄ4!¾LhÓÒXyÙ¤®ÕÒ.mú²¤&Mš:iÇoç·‹Ï÷æ{ã¹ô\Ž4Ù:ÚIùî|ÏóÿýÏÿùýÿlôY^ðï ÿé–ýߘŽQ`80Úz€µ€©À`†mœñ¿°îŰ®žÞÔ³tGð1óYä¹¥læÎYYï‚gÙagF³=ÿ Üt¾cï~BwFiÚ+ãU+e‡ØlnߘxY…Y‹ÕfºåذÀ´2> ó—ˆöö}7¾}׋{†÷rO?ÿ-Ü@t÷ù÷ιÇß?GS|½æZeÅQQªUNX.°tå¦8Q^ãù Ì›€xf£ßíõG‚€œ|²[ÅÙ (Éý‡âÐò¬Š‚g›‡Žû\NÈcëˆMƒXAjdËìµùBùÂLŽùkS’l)’W·X3ì`ë—ÔuĨf¯¤dHBôABµœd¢ÑÒÃÒ*ÏÕ§oÝ|Õ…cœ—t†:½îîz¤ËKŒôF%"Gsü™ÉLöW3+o²R hoŠòÐQUQøµZeZSÕ¬å¯Ìà8ŠtÅie$rä•‹h_êLž¦|Õ/^‹+’¯4&VÊõ×Á·u+'°Ž ‡êÛÑ:¾'9õ¹€7yb¨ÿ{ÉP`ì2·vtÅ#0Š:`6´–¼œ™™~¥Q«\²‚o=X{`Ž©ØÏìèýÁ]HUJ’5޲§C/æs„(4s³×¯ü”çÓÖ@öD¤{GOè«%¢ßF:<;Wa òuog‡_Ṧxõò¸ƒ[[«¤¯|ðcIÒ`Œd²¾çÁš&O¾Dâ˜ëâµÙ—˜*? ¶£ZfØz¹4™ùçÔ¯E¾™¶e~;ã<ƒ‹gÖšS3…ê }1öúž~á²o×vßÈÞC"#üüܬ_×4 ,Çd{œ…ñyv‡h*°\aïæË¯AP™)­f†uC×9[2©›ì$ÝÒó? Ç¢* å`dŸê$ãl=ã”åF2Þ·-ƒ¡˜ì ɰ%t²ßð¹ÉaØZæ>Ïk€ˆJÀ9îE €Ýy›zØš n3¢*­ Š!Rq%ׄE*ãôó¦b·ç/ô*j‹y¾öð.0î¿€áu@víßJL´ÑTì _ËdcÍc€•–\¬• ãNuêÕW~+Ž.*·’™É AÈ¡Jiuj£Àõ¦È(ªÜT „0îSÚÚâı ËIƒnjoÄOï¾¹˜û“¦ëM+©ÌïÕ廳¯a8A©­Ö—ççæÈÐó¯Ò7„´Ò8|eA8o±¯™T:ZªŠÅ£ß ЮðlŽoJ­ÌVp '4öÜ—†Þò»]{|nWtg´ó™ƒ‰Ö©Páø4t?#¥S¸Ñ¨WÓÏÍ— ¹÷¡z#¿¯;< xûo-Þi©ZÙüÔ€©šÎw¸ÉþþHh„à Þ±(ݸ hC˜™léÝL±:9‹œ˜ZÊŸ]djÿÈ×·„–R´Æ˜ì‰-I\l6Ø)Ih.0,7³-x"ôǘ_ÌÕ¦Àh{æ†(óÉȳ€ÖäSŸ«óâív’ÚA¨º.šŽ@Ä ÀS+UöP¿_weë;ÝV%í0 Ó{b‘#š¡ãÓË…?›@ÛP@{Ñër&“áàÎÏ= >8œ­Ù’rcAÑ—˜Úx‘å>t67)Í‹ÚR4c8=Mày}aõ M7j¨½”.•ëÓ‰NÿÑÞPG2D»Gfó̇ڿA´Ël{ B êp^„Ži}œnä¾¾žÓN§oÞËÿARÔB{Û­+x±ôæÄ­3¥5®º;Ö5úüÁ‘ß»Ž]Ön¡Ì‚Ì ,Ìeþµ†À$lDpëÊä@[ßAT ÈÌöhçW@Â$â!ÿ‘,PH°DlG(z,Þ¿ó;ážÄI_ 8äšSd™±­ýVÎMD<è?v`{b¬Är÷&æ— è&²Šp’|/S¬Üy={Àrô÷ýcpгßí? Gººc±”pôÂуb“«€:qoíå2ÙÃŽ|cÿ®_‚$_¾³töS;×Ö‡TΜ D¼”Îß´uy|îݲǙðÅ}þÓ/žÑí¤퉉s3i§ÓåN•óÙë@¶í,Ç+rCÈØþ]/$º¯r<÷öõ™ɪV0%Ý"c×u$ 7_¨Œ7XÐðR;Ÿxò0ë {9‘ öôõ“åBÉÈgWé:ÃܼdcÀtN‘Þ;í3#BwHj©ú[“é®V×Þm×l í†Áœ°Æ6дGðï'¤ÃٔĪ٘ïtà…NÊÅÇ÷nû¹ÎËÏÉšV*¨â(êñ¹Èx—ß3hVYÀôbéïSw~q'_~Ór¾>?ö Ùk.‡Ò\«Þ ”põÂ8;п› ù‡<éÛ×½MÏù½8îLù]©@™"p2ë™yÚÒ€‰²­TØY ½o_]Ⱦ.+ê¢M)õ­NF/“ÎPrpøû¡îÄ ÚK+þ@@/äVqQàåÌÍ¿¼T ÐT§‹ÀÝ cЦ‹ Qb@ƒ2Wnð3`ÿ—ÛÅÇZ^íãŽf›uÎÑ@woj¬#Ôõypï…Ÿ-,/þ­Æ/Y=CË61¼¡=×·jÕáG<;`VïhÞ»%@kÅ[‡Øv Ù¬[2>N¨àOqŠB6œxàOhZíhöYÏÿ%ÀØ7?ª‡,(ÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dcoords.png000066400000000000000000000064321417122252700227260ustar00rootroot00000000000000‰PNG  IHDR szzô pHYs  šœ OiCCPPhotoshop ICC profilexÚSgTSé=÷ÞôBKˆ€”KoR RB‹€‘&*! Jˆ!¡ÙQÁEEÈ ˆŽŽ€ŒQ, Š Øä!¢Žƒ£ˆŠÊûá{£kÖ¼÷æÍþµ×>ç¬ó³ÏÀ –H3Q5€ ©BàƒÇÄÆáä.@ $p³d!sý#ø~<<+"À¾xÓ ÀM›À0‡ÿêB™\€„Àt‘8K€@zŽB¦@F€˜&S `ËcbãP-`'æÓ€ø™{[”! ‘ eˆDh;¬ÏVŠEX0fKÄ9Ø-0IWfH°·ÀÎ ² 0Qˆ…){`È##x„™FòW<ñ+®ç*x™²<¹$9E[-qWW.(ÎI+6aaš@.Ây™24àóÌ ‘àƒóýxήÎÎ6޶_-ê¿ÿ"bbãþåÏ«p@át~Ñþ,/³€;€mþ¢%îh^  u÷‹f²@µ éÚWópø~<ß5°j>{‘-¨]cöK'XtÀâ÷ò»oÁÔ(€hƒáÏwÿï?ýG %€fI’q^D$.Tʳ?ÇD *°AôÁ,ÀÁÜÁ ü`6„B$ÄÂBB d€r`)¬‚B(†Í°*`/Ô@4ÀQh†“p.ÂU¸=púažÁ(¼ AÈa!ÚˆbŠX#Ž™…ø!ÁH‹$ ɈQ"K‘5H1RŠT UHò=r9‡\Fº‘;È2‚ü†¼G1”²Q=Ô µC¹¨7„F¢ Ðdt1š ›Ðr´=Œ6¡çЫhÚ>CÇ0Àè3Äl0.ÆÃB±8, “c˱"¬ «Æ°V¬»‰õcϱwEÀ 6wB aAHXLXNØH¨ $4Ú 7 „QÂ'"“¨K´&ºùÄb21‡XH,#Ö/{ˆCÄ7$‰C2'¹I±¤TÒÒFÒnR#é,©›4H#“ÉÚdk²9”, +È…ääÃä3ää!ò[ b@q¤øSâ(RÊjJåå4åe˜2AU£šRݨ¡T5ZB­¡¶R¯Q‡¨4uš9̓IK¥­¢•Óhh÷i¯ètºÝ•N—ÐWÒËéGè—èôw †ƒÇˆg(›gw¯˜L¦Ó‹ÇT071ë˜ç™™oUX*¶*|‘Ê •J•&•*/T©ª¦ªÞª UóUËT©^S}®FU3Sã© Ô–«UªPëSSg©;¨‡ªg¨oT?¤~Yý‰YÃLÃOC¤Q ±_ã¼Æ c³x,!k «†u5Ä&±ÍÙ|v*»˜ý»‹=ª©¡9C3J3W³Ró”f?ã˜qøœtN ç(§—ó~ŠÞï)â)¦4L¹1e\kª–—–X«H«Q«Gë½6®í§¦½E»YûAÇJ'\'GgÎçSÙSݧ §M=:õ®.ªk¥¡»Dw¿n§î˜ž¾^€žLo§Þy½çú}/ýTýmú§õG X³ $Û Î<Å5qo</ÇÛñQC]Ã@C¥a•a—á„‘¹Ñ<£ÕFFŒiÆ\ã$ãmÆmÆ£&&!&KMêMîšRM¹¦)¦;L;LÇÍÌÍ¢ÍÖ™5›=1×2ç›ç›×›ß·`ZxZ,¶¨¶¸eI²äZ¦Yî¶¼n…Z9Y¥XUZ]³F­­%Ö»­»§§¹N“N«žÖgðñ¶É¶©·°åØÛ®¶m¶}agbg·Å®Ã“}º}ý= ‡Ù«Z~s´r:V:ޚΜî?}Åô–é/gXÏÏØ3ã¶Ë)ÄiS›ÓGgg¹sƒóˆ‹‰K‚Ë.—>.›ÆÝȽäJtõq]ázÒõ›³›Âí¨Û¯î6îiî‡ÜŸÌ4Ÿ)žY3sÐÃÈCàQåÑ? Ÿ•0k߬~OCOgµç#/c/‘W­×°·¥wª÷aï>ö>rŸã>ã<7Þ2ÞY_Ì7À·È·ËOÃož_…ßC#ÿdÿzÿѧ€%g‰A[ûøz|!¿Ž?:Ûeö²ÙíAŒ ¹AA‚­‚åÁ­!hÈì­!÷ç˜Î‘Îi…P~èÖÐaæa‹Ã~ '…‡…W†?ŽpˆXÑ1—5wÑÜCsßDúD–DÞ›g1O9¯-J5*>ª.j<Ú7º4º?Æ.fYÌÕXXIlK9.*®6nl¾ßüíó‡ââ ã{˜/È]py¡ÎÂô…§©.,:–@LˆN8”ðA*¨Œ%òw%Ž yÂÂg"/Ñ6шØC\*NòH*Mz’쑼5y$Å3¥,幄'©¼L LÝ›:žšv m2=:½1ƒ’‘qBª!M“¶gêgæfvˬe…²þÅn‹·/•Ék³¬Y- ¶B¦èTZ(×*²geWf¿Í‰Ê9–«ž+Íí̳ÊÛ7œïŸÿíÂá’¶¥†KW-X潬j9²‰Š®Û—Ø(Üxå‡oÊ¿™Ü”´©«Ä¹dÏfÒféæÞ-ž[–ª—æ—n ÙÚ´ ßV´íõöEÛ/—Í(Û»ƒ¶C¹£¿<¸¼e§ÉÎÍ;?T¤TôTúT6îÒݵa×ønÑî{¼ö4ìÕÛ[¼÷ý>ɾÛUUMÕfÕeûIû³÷?®‰ªéø–ûm]­NmqíÇÒý#¶×¹ÔÕÒ=TRÖ+ëGǾþïw- 6 UœÆâ#pDyäé÷ ß÷ :ÚvŒ{¬áÓvg/jBšòšF›Sšû[b[ºOÌ>ÑÖêÞzüGÛœ499â?rýéü§CÏdÏ&žþ¢þË®/~øÕë×Îјѡ—ò—“¿m|¥ýêÀë¯ÛÆÂƾÉx31^ôVûíÁwÜwï£ßOä| (ÿhù±õSЧû“““ÿ˜óüc3-Û cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅFEIDATxÚì–¿kSQÇ?÷šÖ"¯]Ìb ty.bAhŠ¢ƒCê"…J‰T‘ Rºˆƒ‹C!‚VZÚ Ué¢ÿAš¥nú&§A0¶’j~<—óÂõ‘ØóÒ,=p¹s÷|ßùñ½G»®K/—¦Çr 0€Çó7øuJ©¨R*.;²ºP|ûþµÞâè ð° Èoå{餂E,ðÃØí w·åpêêYÕ@pe%Ûù¹@FéùIÝóÜš9§›ðœ»F 4@„FDNö)­Ž69²wÀÀŠÀ8ðH¹;¨U´:£•ûkfzÔY~ù¾jäxØô™A»ëŸÆ¦îÙ@êXÿ‰ºnUöjÓÀF˜D¤|Õl:? |hr4›[Og„ˆ’ÀI` ÈiI9‰ÐG ¸|‘‘Ø0…]–Ö^{úŒØ8BD’û¨QXì4Fbà Z 6ˆ-fØ8â8+ËçãR Qñg€ÂÎ.åòž§/ûì`NB_lÇù~xÄ%ì~½_ViÉb(¯an=½Ü>DTMmArÞý.0eiñÚèöö—S¥RåMfyë·ñ›fqÉÞ| BÐM‰5¼{¬¯TªÔV¶êFì)q\× €®ñ—s‘¼A»–"ÒÁ$„Äÿ*N´soC©7†ÙÀuiÅ›ŠýÎW»2¿H]R-Žf½éGòïeÙPyàYò|¤ð³¤ŽôWï¾Ê¹NDÝ”C=ðg–õzÖp åIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dcube.png000066400000000000000000000035121417122252700223470ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ìIDATxÚäWklTÇž™ûÚ7Ëlƒ1ÄcCŒ ØØ%©€< 8ABU[ˆ’Tii+µQ«¨m$”DMiÓV­Ò´¢ê„´ 4Aé¤6 ‡GìµÁöâ5{ׯ}°~ìëî½w¦gv½é®í]S©j+õ®ŽîÎsæ|sîùΜ‹cè¿yáÿãÿ´_v[E&ËË>Wa5K÷2C³Pƒ‘” †J/ƒ0Í2bL(JHe¦TJ©NUöøÎOģ𛲠ÁT ×TW¬j}hËÓN›ô‘¡5…U(À¥àa§¦î4 †0‚,"‹ÅN+‹œ.ÙP5¤†"è'Žèò}z-ã#¶~]å÷Ý»î[T?€±DG‡û‹§/Þüæ$Ø9¾0ëU¥e›ÝØt@4ð¶DBC‘DLÏV"yŒYãæš÷´T¾h¶è_ïqžÅñ-Õ%݇¿û ß0èA©oñÖ–—/y¨¡þI]SnFLªÀM¥y45­[²c[ÝËåË÷ºo¶:çþž(o–.vŒÞn–mm¨¯ÛÕÒxh±ÝÚ<ðû°·ëuƒª"I9r^Õj&5k+îjÝÕü´sÚÛÑ~åý÷NvÿàGOÜÓ ÓO‚´ƒLÍã[l¨­®°±î É MÝowx®¿ä u“,iŠ$ y”,]´bÏž¦¯:øÛþÀpøRçõóšÎœœ{äk¯_zÑ3¶ûbßè`é §³?ñÓ<`„ùÀQ¼ç¶ÇbÁàÖ îëoíí{Áº5 Rj5ËXrS'€Å*lµÛ“Ïtw÷iãá˜íîÚ’[W›Ia†(⺆»î®¯W ÌY@qêÎi)b‰™+ OŽy‘ÇëÿMÛU÷¯‡B㨂ˆgÑ=$­ÝçÖ^ãB«¦~PˆFûwÔ~õœ¹|ÛæÎ!Q6!BDNNmÍ\·{ËúÃuõ OzrhšÉ4d‚ª&“·Â± 0džþþÙ‡ùí·ÕË}iwËš+/þ'YABžö`O=ŠÅãX”Ѝ‰ `Bå0aiùˆ¦$ °(‘ #]Ú«#Çàíð–5+jôZøk>ˆ]`2ìíýš #³I‘ì™f$[À›"ŒD‚?£§ÅQ„Jª7¥æÂºõ‰ƒeõ‘Dè~ÊØ½câ°ï•¯ÿük±É`7ÐÀ˹+;+ `æUV݈–¯kAGC ¬Xæ¿TdÁ!Jb ,Diµ¦%W'ãÑ"CK>&ýi74_m,œxFe¢†Ž ]ç¡qÁð1MÓ„µk*QS}²Û­¨ïúMôþ©®ëÛaþÝ €|å•¿ŒXaxî°9A¶ëšn®XV†ª*W"Y–¶VtêÌy¤%Ù0¿¬P¨ó9 3çyÀs› éó!“Ù„v É¢˜y„RóÙÚ³vÐ|4ÌEDÎs‰s}V8 e|_O_¿Àwo³Y×7Œàµp*†@ý§ë÷·}æcš¾©ë©ŸœÐà çLÃ…_›i|ý!R{‹Rã²$mìu{Vt^é1ó~BjR”ˆËŽßÙ³Á‘å ;6–W °Hݪť|ÌW˜ŒªÒ®–ªÅP†EF)›' gÇïËK»°ÎˆéM_Õ%Iü Èœ¥|×<ùíýW-TrÝ[“ñC¼rÞUVT3}€µšñÏlªR’Q¤Dj<6Bgà•計i«bq| ›mÏ€4‚lÙ òò9mó SÏåÒµ±Y$ìx›û/|üÓ£—-ªæòP•¬ ¾5OväÏ–jc²Ÿ¬¹äç göñÓ >wÜ;˜­ÄËñiÿ Іýh‰ËÁ[1˜ˆE~vôbå¾í Ï[È£Ÿô¿ûÁeÏ«þ‰HORŒ‘LÄ @~ò+ײõFû;ó÷a˜f‹mZ]V·ziñ¾e.ëÎö.÷_Û®¼Ð3¸ *F^d½E2¡çö7o㉠rˆÿ_é·5Ã0®{›×>åŸý»çd»Ûûl÷ ß=g÷’›„ñ„%.Û¡îÇ_9þ oŸJf sÖ:^5™°âXС©ÊkC¡c}¾»‡‚îé|£$bªZ$aSÏDÌYæ²¾óê7¶c‘(õí0¼›g4;g¦½3Ät¢xBSFü“Ò§cã:×ë}e îÉXðˈ8­ÊªÊW3 ¼ á;Å3iÉR=Hs2IÃ)žÔt#Q§¢Ií’"êÖ)MÌy.füfÀù‹ø¿ÿšàÿöëø œ ãIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Ddode.png000066400000000000000000000054011417122252700223430ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe< £IDATxÚÄWYl\åþï>sgó,ÞÏŒ=±3±/±ã8d!JÒ„RD£(l¢H}¨ÔªHU…úTDU©B¥-­HZ‘¶@š²'qBâx={f<û~÷µÿ8ãlMõ…;:ºwîrÎ÷Ÿs¾sÎ躾Éßð¯_¼û»ߺ)‹*  0Pd¨² é p0Ó5l¹Ü­ b‡*©”®F×Ñ0@‰U‹Éy÷ÔÇÑщkkz~þìKàÔåQ06sã«|HAjQ­Ó¹ƒcËû†Xίˆ Œ#0bÇÈ Åëm5W¼M!’ ‹$Nä%EÎBêÿ €„Òóä0ŠaOæ³)_6S(çJÜ™t¶ô¾ ÊYš¤ZfK¯…2vX)ãávŸñ‘ÁaÅðqMR?UUõ} A¬åšþµ æÂPôYaŸÉgãR"žŽ-„V?š[ˆMÆ3Å„¬ªy]Óè™8ŠžE”vZÌö® î Ý^ßH½«~Qôžƒ[†ZQUûõá… ¨¹Ä}@ô@’¸çx&û_.Y³™˜E>¿>¾š*Äá+±*2¥¢<Ç0fjp:E3I|Õà¤é#[Z¼él¹´¼œM±Õ÷ïÆzí¬iò¦œ{q>’ÃáÔqoKÝ^³Éàw9¬íІ.SQªs8H‚À MÕPÈdt3—&5»œ.§£ÆÍ0%ñ‹¥¥“­Žº½^—ëiÖÛ±çØ“ŒÀ4]×î`-J¨®im›ûi*·]™ÿÍõ©Õc÷a™¡ž¶çÂþy~æ-‡½FïëÜð=ŠÑUOÇCxRˆiZAŽÁ…Ó1¤ÌòÙ’À&qŒŠæÒÇ–2É&_]ã‘þV÷Ñ©Ør˜Zχ[P#eUx¨\N=gÎΟä \…B¢,«qE (|<™SBÑì?‘tD”TÇÖÂ(‚þ Í=ýmž}&µMÕôc±|>L%Nlq»½ÅôÔîÿìØâ|:Q,$ïò€$ñ»$‘{5“ÎåÇ®,}°-LªªVI®|ÅA8aèä¥XúßçÇïp¢‚÷sëé…ª¤ ôÎ.O‹©¶Æ|d Ý½qz96=Y¹`£µƒïo;†ç±q sÏ?À2üplµôæô\rFäJœ8Ç8wKêr˜X–Uò%á¼hÕl7o‚®…R€’„^Ì ¨­Æ?ÛÖá;¼§»sWªPž]NgF?žjóLR$Ö iëï_][Ø­ÔDy9•.]ÃPD¨Ò¥dµÐÈk/=QkÀø £c FÁžž½ÎfßÚR³AQ ,TcðÝ“m9uéô‰Ì¥éÙÉÝþ5fS?M^ølÔl4"„‘H ðBýÎêâô`Ð1èLµÊó …a z~§. Ö ‹§òzƒÏÑèyÖþ§XŽó–¦N„ý=¿„«xŠj]¤Œøy³÷××XÚ*)©§ 6=ªÁ\1V’»"wxd ¯óµNS'£sÞÖZýÐ#ׇKy&§bf”°8öPFSÃÆ>ÐæñÀ…ƒåhŒž iE‘)âR†‘ÎþùôèñLJû^ÙìÛˆ&|Žç(# p ½¹úµÜ¿Í¼` ÉŒËN×é7Ù!;ífpèÀ€l4’Ê\PG Íd¶îå ô‚ûvÇöï;·Ê=MÓ»¡'ûYQÑǦ‚—%;ëokݼ£kãAos*iú"#V‚ÀìÕ’ŒÞòIL0› Àb1Â²Ž¤È%U×vönl=ÜÒXŸãD^5`ˆE‘šjòâ·ÀvÊc(®º\.w_·ÇÙÞÖ2¸µ·ý ÃòÂ~ÌÞd2)…WÃú¦x2 <îVØ7PJg@e²*1<Ø¿£?ùÀá>PôÇÙlò[±xÜŒd¸ÝaÞ¦£  ‰-ÁM•0Ü®„ªšFt3ˆ‘‘FmÀM…LLÉæ™U‘“Ƭld›Óê\rq¶ ƒÓg/‚«7f‰£ Ì°@QT jØß0%[Ò/ŠÙøË¥R9ý÷±‰7REf~Ðçîñ4†½U…¬¸MCD#ˆ®/È¢ø0¦kÄù±ÀX8š¿(ËÚ²ªÉÓlߺ­«qwoµÙBåÁreg¦Qª(a¸ÉHæm&ãèn7²ÔJŸ^ZI÷Í#Ëè‡ãÁ•(›i’”éL ÄóóФ s Àç—‚I“¿àm¶=ɲbif>s|.”>Y}QY^-œ*”ø‡¶nâžõ»k·ÔR6ƒ¶ÑižŒ@/@I‰.~DÈÆ<¦W.O…“ï\[ˆÍÛ,¦ôÞÞŽÁ¡Ž Å3yq6’ük¶Ì^ªÎ£öú믯xâð Jx%_èõ7ØìãnHE5›ççJŒX)·<ìR$Qœš_Î]¶[i¥†PÛüõ˜ÙïÒÏ´¹k^céåøêjÓØÔÊŸF§Âo¢pˆ„ß=º½9´½çU†V3œ\ü¸È K•* …½k-^Îÿ¾»£nxgëÁb‘_„FR-•¾ Ê|äÄ¿&ÿ8ØÙ|~g¯ö|“Ãö0Ë+šæÏ]½}}1~Žá¥J!«”òh£Ãü#—Ùpä|paâÜLè8#ˆñª®rå|×X)§œþ<4]-þŠÄÐÌîÏ÷¿½Çÿxõ±ÖánÐŒô°Ð+¡ñÙè™É`ü0ƒÅbÙqunåÄ•@t´È aUÓ*…,úüwöîò5½ ¯€k‹«o‡Ùˆ¬jŪqá®$¬Š¢ÕTIüôÒÒI ú‡»Z~øèvßÏxN&e ½Ú»É»¬(ºÆ&õ2'I‚Š6Ö7L3\ló…©•asŠŽtx.«Ùj²_ûÑr±`½0¹ðÞÄRâô0¨g«uàþ3ád0% ü˜™$7ÔÚè§ž~¤çEš¶$¿x#4ån°ç`÷gº|KkCƒÎŒMõƒîÚ'ì÷Ô9ö¦“‰-3sA}6šyïz8u"ÇpJÕð]s!²¾5[ŸoÏ‡ÙØììyr禣0!°› }6š2ÂrÍö6‡Ôp KÀ]Ì.®TØ•È3gàˆÞµØ¡±¥Hº|z:’úl*’3¼XÖoæÄZB¯¯þKܬލÑe¥ÝðQ ¼vøkÜ#-]N³©ÑL\ð›vm%VNœD%p-œ¸J’¬Â(Éi^RJw¬œ»w“ò¥î™žQ8ã9ݵVÇZ(k‚}½UÕ€A€•5%Ë•gdMKU¿Ñª£;_mñÚ½Š¿¤*ÄÿÑ;6¶DuE­Wõ;Œ*ÕxkÿSù×ôÀ½;j¬j_÷Nµ½®3rõZû*eÿ`ÄÞw:!a `IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Disoc.png000066400000000000000000000054171417122252700223740ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe< ±IDATxÚÄW pUÕ>w}ûž—¼ì ÙwCÄ$$)‰” ¥" ˌZ[mE´Z-Ú:ަ–R†6mÑ @ j4Ft"[’`€„ìy¼¼¼%y¼¼}¿Ëé S™:j‰Ng<3wæÝ3÷óóÿ÷?!?äÀ¼Z,øê$z ‰»ù"ƒJµ}–~²Ï×FX˜Qìs=‚á7ÿ3ù])ÕñäWãVQÈÅy^+áÀá¸UÈqY4E %* i ¸õ©^_ì÷Àa˜+•€[ ȯ Ì&0 •2a‚ÃðOà6`N|´pz!Ïía˜þÖuÛŸ²Mí[ŒkFÊ×rܮ߯ñ`>!éJžDšŒëû4ÚX™ÓíøØÑfC/ëó§i «5¥BŽ9ˆXŽ`ø± å«vÄ•WOë‡^ðK<·yX¡Ës»ÞüN.«Ôʬ¤4WÀë p³3¢ÂÊÕ› ¢ãH’¤jåöžînOomnD·QÊ$ïåx|&––uíºz&Ê\âuï˜Ãq·„gQØzò]Ž‘E  üƒ.1]œ«‰ÍyóÝ¿|ÖÒôbsy\Z‘4J×ÀVϬñÖ%y%–ÌÒ?I¤$-ŒO Hó<‰$õO–ãPñ#%,Nžòìq´lî7í…Ó¤€g%h¦òJȪ¸ÔU,Ç{{ŒzÃç—: ;—gÍy¹bÙ-…ù‡•]ŠP$‘\#©½!ޝãQZ%/[XœØRL8ð<Ä0û¸\ñÙ¢ â<ÎStH©Õäy>Mœx^¹D*Œ"Ç {lªç$èüóóL ¶Ñ´@N O’$^,)(m¨¬¿):~P®¼3±Í$ÏåÊ{o €æ¹G’jË”Wq㕉£×*{,LÓ“>œÜí‰ÀÏIŽÛf ñ¹óó–cçgÆë<ÎkÑúîÞ·Ô2‰éҩήáÑqPR¾2®zífVù'+bs˜•‹yn=âCÚ·r`AP«]j]òËš¨ØÚž3­´ àÞ3ê†ÏxüÁb•„¬íqU‹ °—– –å&7Ížî*9ßiê3xî+7Xúö7¿ßˆ¾-3=•,/Î>¥Õý&wûÎÍ…ÓWm?þ¶Än=‹ö)-p9f¿v$äw¢Tógº¡¡¾3¾+g?<àƒø¡þ1çþaS`Üî ëüŒHQ“]PZ÷~×dÒG}–Ì£½s-ã ¦ûÚ££ÈÖ N°ûøG“Åj:r©¤è¶Ÿ7ÜóX‹"1½OÄFÎ}¹'±k×.ÐÕôûë/šz‘§Í tsžùebê'á×cgM€ãX MCoåÅÚn±HÀN¦ß‹°œe@z(Ì´Ú¼Ì>\¦å¥ÌHVb÷+ÄäÇò¢”/h3ä%BðpHªp§å–\vkÉT$˜¤ …NÝÁBÙ€b$^`­A,¶ê2 Ïnl¸ëÞ—ÜoÐgà…J-!çØªóìe¡2¶°¨~󜢓ؠ·íe“ÕÖn‰ËáÿD, rTôö(!V*•ÇÛw#’Š)Š–ÉUQâ%QqÏõ1pß _cx›^.¿ˆÔprVa“…erã´ê‘âüì$(R* »eDËáâk¹Uw*¯¨ÊÎÎH½ëp’Ì›8ûî“L$ü:Aƒ/ĺYš(ú@JaR#Σò6«ŠItÄ¥fUÛ¹)¸Èÿ/ ”Dˆhž‡ã+² WGé’â]ÏÜ]«~–U.[»ñÁõ¹Âý )™€Ë–RÒ²²·l¼Èå–œfffbqŒãát¯ +%ä#…±‚ý{&锜yçã¹ë¶ÝÊ Å'î5_›ÛWèó„®“‡|Íq1€ ¼õ…嫳nÿ `˜H Ža·;Hꦿ½½Ïëõƒ,4É…D ç‡øüѱœ.`Yp,аÒ•`ýmÉ¢W.šBÏ8¦œ¯ÒTË’R¶fííVã¤ý‹“-ƒãŸÜHC‚áög,­ g•ÑyK7G8¶7ìrlQä¥P6,×3Fà ó]IJ²>0}Õªèéi: ,Óª•Àh¶‚YÃè™ Ç1©KPʼn üÕ© _ò¤ á²áîú`À?~²åàr¤’>wG£ý?m±Û­ÓOçø«‚Òª@’ITÎÛî®Ù¹«±‡ƒp¸N–ïn}Éï¶oÈ4~×ÜÌ€Ópi.NC­¥Øð}£¶ÐC<'ÐÒ a5«µ:yJFÁZçéÖO½ÖéñÑ…t€½ ßãÚ8)“Ms¦¬ÁYÓŽ1_‹qÚîY¹á~€Q‚‹—†'dr¹,™ ^ªú¥6+á „>ž8³ ïP#£…©Ò×&g¼œ—¢MˆÓNg,H1€¹lëC*Öœ:ð§çúØH…ƒNÔE \a€ Êd\d„!È}¨ ¬² ¿=ðQ2庎÷Z‡æüðÚ·ђƒ\*RddfT]šèˆ–‚M9Zj×%£ç·ž”brŽ]ðsf¦§¥”—FN:¥7^¼Zõ;d` èôö¯IñÂ$Ò‚ìMózS*Šenû©e¹ «WïØæbÎYlŽn§Ÿãܾ±b‰L/“JEWìL#)" ä’2 KFGi’• ùXŒ6*¶­å˜>äqúü%Òu`/üOS:&W£x®,‡á«žxX8¶úÓƒ¯ÿ}ËÍØOø¸3È™¸K!"<ÎÍ×Ü·eSæÖkn¹|yˆ1™gÇãu¶²’‚†»åXX}$ăÝBÈ¿•îñäÜÔëŠNžö†¥ÕëãïØZÇM ¶9q$‰uÙÞDf4S 'x„B£“ÅÒ…f›”Ê*—UuCœH,‰5[çrrÙ˜¾½­oöÓÃ`T­ú+*åÙ aÉp»kojHÐG•àKZ/v<5~¹§G[ßPRiL±;ëPq:2G ;Â,oVðŒYœ Ÿ2ñžƒÍŸÕÏÙftö÷]ÍßAÅ#?}eƒ\‡tÈÑ­†ö‹E»â N<+a"»§'.ÛòŠÊ•B‘lÏ Z-EÆdƒ#J+%*—H©3íÓ¥ú!ëÔØŠÍ{&"AÿçòƒiËö•,ÿqmv݆†Zß©@UÖ•ïv -r²ï w$³}ñ’¹le…Ùt$(fܪ„4Wñ¦‡A@®¬ÈÇq‘$àK?79 ¤f3Ö¨ëhŸ2t´õéÅå¯$'¤$Œ™ÛÝý÷—)š3ó–VÄåÜRyîݦnuFþ³k¶íqت¦G.¨æ­Æ|ä uhaa zÜèú§Y ëBÚrbø…Ѩ<~[›¶(ÈX’É*µOªÒ2Æiý<ÏDx´™Åð1ÔAu£>F¾ßø}šÓEõ†EN‹ÂËng&:Œ¥Àçóý_»ãrü[€Q_8±êÿ×IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Docta.png000066400000000000000000000037611417122252700223650ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<“IDATxÚ¼W P”×>÷¿ÿkwÑ•åáEÁ$«6â#A£ip¢6Bm“Ú´i¦Ñ̤ÖNjÚŽÍL3m´M&3muê¨I©ÑÄÑÄ (`@yˆ¢òöÁ²¯ÿu{Mkg:] ¦wæÎþÿ½ç~ßwïž{Îù c l¯¯6ÃhÛ Y´cbL@½;Ú5?¿ìÿ·wÆÙ<Ñ*)z‡¨7ÝQâäñâŒK€Û"Ú$Uï(¨<rHëÀ±¸ÿ‹$š&êF-‡GàéS!ž¦!/ªzCxîk€‰‚n\ƒY¸x’O©Á>èQ2‡çÂ6_‹€û;/5ieqéÙùÕÜD¿ú<¾w.ñ9ÚN~¨€H^¡ò!z½ ÉJqçÝÚh„¼ƒ`ÎG•a?y(î“¡qä"#PJRÃ;¦x})O@ÆŽXê!4çq8|:Å(¢×Z#áóÈ­H^‰ä%HºÓ'ó7ŽüƤAÀ•[*ø4ÏÀÆ!3!yc¥ Ç-&þ€"ˆ1OK³€rU¯ÃÝ”#ùsCfáo°Ø z¼mÈ€ÏÚU¸í1Fl[ غÀ ³ôP{¿E,Bâ³– ö |ŸÐdî˜þ$7‰!­wî°˜ï2 v)¤¯añ÷‹…uý=í°jÝv§9&®Éâ# ÐõN‹£øš}eî’¾ ¼f ÄúÕ?^¯ª€ƒ§ºß9JãS–m<úĆM¢ PvñÜé/‹?XohJÉ©ÏJ©A}¹¥ó.&Š“½×êÿìËÜòJkã•O1€%D€FŠÏÕÏ)ªR °]að„`08tø8ÔöéaEž·Ç¾,S|qdz K„‚!z£®ì5oÿ­5aƒ>¯‚˜E$Ov»EþÎ@GËK!çyŒ#s"  $8ØsËsùä[«¦-xìË„ÉÉ- …@y÷ÎzGlp§7½Þ!èé» &Y·Çƒc!7N‰aÀ ‘³ æ=š"¶7Uïs|rôµÈ—r„ˆ£‰ÃD×s^WÜÂÕ›~Ÿ0'k°¡²8g¦^//£A¯ów5ŧòë¤Qž‡¦ª‹ý~W6*|+—OÁ>7 äø™ÛfS±¯±â\  ¾lP®f4 þéŽOÿV¤efÇ]/?Ѻ ßN“àXV!#ÐÛæHï½Ùš„³€ê=vìûTòâh­*†X¦_îºpêÖ„!ß¹€H½˜GFvBƒ¹ ñoüº¹µò`—«c"ÂɼK(ä.Ø]·F ¼{3Ô`1í¹ÂaÓ¬”y4ƒ±× ßö)ÎA¿!óA¢31d€Q¡ÜoT ¶R†ñGâs†µPÌã_˜³±¢¶£¥¦ê3¦Š_!T#’IñÈJˆOH™_öÉû͆Ļ(·(£Ü³`âàO:Æñ&ª‡â…¨ñ‰©õÓf¥½’ž¶êÀõ’3Ðß\ŠÈáé“{Ž‹·„ê Ò–BÒÚ<=%éUðû´›lÐãé;€Iói…r™ˆÝ2êt¬RÎŽóz\=…mE…Цkµ–Ädºtë!uc>˜LQ úµ‘~NË.€E[^„ 1SD]Uª[¯œ…Þáý˜ŸŸGòuÿ‰ü¿fÃp ÅØm°Ö«uš—?=#ë¹a^½4gÙ†Î)óAûå³è<ÌY¶¢¬q0¬«É’h^Þ__q¬ê‹sûƾ§4±šÆU„ë=±„WtGåÕŽJ 3Þ‹™:+Yø;ÍQÑðHöwîù¦ƒ¢ÊòÜþ;í]¥¥Ý‹uÄ÷C&¯ùŸ*"pj"ÍÐ}¾Ìò3ïo øRÂrà§Àq½õgޤ9ö̤€Z6V¼1 7,Á[<¿¡£©úËèm‹5 •Œk\FD„´ºÛ·Ãùßd i5ãÅù‡ØÆžŸÓ¹š†IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dplandroite.png000066400000000000000000000030321417122252700235670ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<¼IDATxÚìW{LSWÿÚÛ7¥´òŠ<µ…"0ßÊPCæ"™É Îc2.5KL¶lKܳEÑiâ{Ó9æ+ŽétLЂ"†`EJ[ÚR¡¥¯{oï¾[ 뜢Žþñ„Ó{r^ßïü¾ßù¾‡aÍÂ…Q.¯Œ:€çHøÛœÑ`€+’ΊŒ‰ûÛÁ/׿)k(/˜Èárã±Í÷÷SA²4MÆômaQÑ+_†ËXz¹¡(=1%ý`BòÄB#£ó)Šdœv[Žyv[‹P$ž,Š•V“¡„í¡MNÀá€$.iâÞìÅK®^·A4.>An2Yè´w1Huá¸Ãbì®Dã]c""sœv-ö¹ü j„ð³èÛôIF /6\³Iµš/ª]övoR>iž’½(ÒÒÓ A­‚êŠËÄ›ùŸÆÅÇç9KŸÕÒg³Ùg÷ÙÙfV% nx\XœN—Ûírã×C‘$þ‘ÈžÅKÓ6Üœö³Å MÔ¼v4c朹ɩ©ÐPw nþQ•ÞÙv§Çx½fÜAûçëáãÕIÐz»zôzxwmaÊÌù¯§ r <$ô»áàÎ"+ë׬ß1q* iŠv¸léq“n—˃`œn§Ó€œ.¶ép:ívGË­f©ö~çì•kÖB’Z êäÐ?è\Ú­mßÅÒÖß}¯íã‹gÚßX_‹ë!kælPi40`³‡óÈeÒ `È]’û‹öÀ‰Ó»a^˜¢RTDÌŒUÎ2øÃÎ}T¹m\¯½ vîÚ‹K iÙÍúŽãq»ÚMÝ~ÖiÛ¯(•ʾŸlÍäóC |NÄvˆ\Ví%¨©ÕÝT Ʋrp¡$¢§äI“@S”¯¢ý$éñ}CBäÐÖrj«ªÀ¨7À¥ß.ÀÝæÆV“ñ;Þ hpa‡ÃÖßq³¦ÚÐgíÍ)cÁ‡^¯ˆú ”ˆÁs Ü)-ƒ¨·k 6|:”ç_€%AR`½rñ×ÊkOY,Vu}ue,Þ°³¾ë+fÞãq¡¿ïáÝÊÒóU+Þ[·Ø€-eÂㆅÊ0 ¤4 †€t÷â18C†Å Î¥ ìì™êo¿Ù~ ±®¦‡¬X=½ïÀ´ÿÆx,¬jm¥%§K=h(Ð(8PÊS`ÜŒ,èmm‡pK4Ô7CDz*ÄE-Š!A$–Æ ¤º¢±pY^ᆂeËÑø \nd¯{¿ñA[O ­¾Ÿv¼¼æÜødMJûŸ¨Å!ÀM¹ õä— ¿ÕáAõΗGúÎÓP{µõð®¯÷]>ö N×ûPÃE%Þú(ÒM¶W•—Vh&M^îÀ2/'š¡2 ¶×KƒP(BE4ݬ»ÿÃþ=Å¿œ,>Žºù ÷ Nú\añ?9"-sêŠ#ç/Å ‚ƼƒÊò}ønm[«ùÈî¢â’^p98ÄVç‹„kâiýfƒÁ•¤ÉõäY¡°x|>Hƒe`Ðu=<\ôÕ±Ï6½¿¥þjÕ)e„ͱ*ͳAW‚á»ÿEï)ýŒlLèüÓÅÇÂÄ) Kù+WA¢Zí8~hï¹#»wì3 ~aѶ‡½UʸÄ< s…ÎÏìÿíâIÕ™óZ¾Ø÷=S~ë³ùóí̼ÅKíqãU«pXáO×D@V“¡[¦JCäùbÚˆÓ¶$X–›»¬€¹ÖeeÚì SÖÔÁdå¼÷’;}ÝeÌÉiK6«œbD/"Ìtf“ÑvåR˜zLP]ù; µF.º‡¡vàÞ¦­òÐðL©,$k¤AX¤òtƒ>ç­|zÒ¬l­LšÏö?ãF)ÄÒàÀ"ž÷ùÆîv<~¼@(‹Y¶ ¯£n0(>ƒQoÀ÷Ù^ýkö Àhø[€•¾—d] IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dplanplan.png000066400000000000000000000042501417122252700232360ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<JIDATxÚÌW PSÙþsïÍ;!$á•„ðÐD¥("X°ÕÊÔJ×ZWG«ë:Œ®;­m§¶cgºÛÖuw§g}·¬Zªu\_ë»j]p- "ÊCä!" „òº¹Inÿ›…àcÆéöΜ™{ι÷ü¯ïÿ¿ÿðX–…ÿ÷‡xjÎ{‡“/!œEr¥*Ÿ I ã£ïãšÿéE)øæµ+@*Ô‘oMLÏ*šš=3_­Yì£iÙÐ#GñãJèM©‰…þÞî×ë{œ6½ysáöf¿—ýüò56;ï,=2òX*ƒìyù`JI{•0¾x#¤AÈ"‘*iœ d"!DÅÄ€V¯u”6·UbY˜RÓ!ˆ@&)ê‰_qž¨PE¬)Ââ\9–¬ç†3dˆ¢$©,Á³x1¾*uLŸ1 ròæÏþvîÜ)S3¿¯WN ü:ôаïA·¡½n‰<,'yJÆçÖ´Œ•Ѻ¸Eˆó€Ã^Œç9áU=^)YH³ `Âã2¤ YÖò‚µÆ7—.Ñ4 Ô°ÅðÜn7égr¥z®{p u릒RŠÄ’ð$³$˜jI&3ð1¦ë6~ð¡)Ù‚u‡ö¸RRy ´äœ;ùÌ_ô#ˆ‰Š‚p•j*Ê-XâÇq ô 8®Ùûì e—‹¥.§S¼ì".!- p1 ‹ãó×çEl:ÄÎ[Œ½ê=×.€Ò"Uä”PH’[OH¤RžV§Ÿ†êòòPx£5Z¸^UU¥W†ºïµm "E¯Ãöà(æéaƒ1A³lí:ëˆ;G{A¤B9ÄeåCx,mÅ_Áç€äÛ!jâLòÅp¯½"ÐZ¹B$ª¦º›®‹çN“·jj4Ô×ÖP»É9ðèô3äáÊEÎ_9¤Yü‚R BJÍ]' aóè¼z rfÀ„_l€¡.XRS¡¾¶Æ¿çÖS%ÿ:µዤ2Çålôºœe8§y£¤¥q㟶_Z²ª Þåz)ÒPbŒ¿níÛµEAb4€8ÿ'®ÚÒª‹§Žü}7ãusÂÜOÑ8'‹ <~À:gÁ›©/Û-0„BDOš¼D=s¹¨°ÑVQ\×éô²_ ¾,±ý¶^bÆœ¼b ñÏÎ3Úšï@óí:ˆO™ýDGÕ±¢3¹IÑë ñ…:¤—‹@Ê' ßü˜ ±9b ß:=;j,pôË««£*K¯€©ÙlQš8~pߥ3_–¬¶FÊ«b¤‚Jƒ\”dTˆòM*é }˜  K¸áõǤcÛåÖgå|' _BÙ@ðˆè¸—`2øhîjú`ýÚß ÇúW®ûé·X,Ú— Žý³hç½–¦JÅkÖ‡‰Û˜@ðÇÈ-°l›J$¨1«¥!-ze,:¨£5ë§çÎÛ„ùOš,V˜;ÄâÀ….œ8~ÿ®­{šëkâ·MB±ÄºëðéòÉÓ2dÍßË™†)VÍ49Z³ J$,ÈC£«pÉ¢_”ŒU¨Ñ¤cƒ9%Ñ’òëñÉRg4©Ç€ Á˜˜Ø¿oÇ–¢›eÃÏZ‡QMÒwÇþ¿îh¨®¼šÞÛÝ5ˆifYözïK¢‘ÚÏÐþàc €ž]™B™k¶¦(V¬yÄBˆ%ØöÑ&[]eér`ƒ# éÈiM\ÂÆ e fPø¸‰“wÞ¹Y½û†NVuï ÂD`Äá*³FU àgƒC`·Ù°tjBeÕçõô pÎ…O Û­8l»V-y{5Fn.tvÜçýñw¿Öu·%»çÏB2O4÷A˜ˆ ½¿HÞ Ã~²ñÆõ¥[?Ùœ©Bjm¨½áéëêØŽ{ƒ£öÎA‰D¢P\¹îˆ*®>pÎr‡çÙ{ÃX $¹KvµóHНv >*øV [ÿtA¡t ã·LÉžõ.Gµí­­PñUqCãõ«yXCî ÷3c—ó笳/±6ìž2R«_#‘+2°ëìëîØî£½õ#xû_Þ#_ùÞÈû¦oÇÄ7}õþ¯|Œ–G× I8IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dproj.png000066400000000000000000000006361417122252700224070ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆtEXtSoftwareAdobe ImageReadyqÉe<$PLTE–©¸ñïëÇÐ×µÒÚn†Œ&SVζ¡ÞãçÔÆ¹¦}XÐÙßÿÿÿvY9Q tRNSÿÿÿÿÿÿÿÿÿÿÿßÎÎøIDATxÚÄSÙrÄ “/ïÿÿomØnCéc™ „‘d¯? ë'A ti>tÀTà&REõ0k$búpD x 9êN²~« ™º‘¹Q·6êV@ª#_Ô­³BÑLÇ+¦:@ˆhuªfìL¥—²!γ;õQ›a ªGåù/¿wàÜ÷ÞµÒû…ï0Æ~t’pÂÓÜ ™€Ö{‰Í-LOsñÃ0*ïï%ù|ÌEBcåƒem¥4ŠÅ07£ƒ÷ Â¥‚µft0c–> 7¯¼f}¢ƒ9ˆ5f×è`³×%:ØÅì×,î1{øõþð%À“Ì!?ØŒ;ÂIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dspheredroite.png000066400000000000000000000044711417122252700241330ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÛIDATxÚÄWipS×~ûÓ. ɲ$[€¼aK&¥BJ'qK‹[ê&À@Ê4Ó$M§%-Ði‡&Ò$“0)…$SZ†Be&Êâ6`(àEز‘,clYò“ôÞÓÛz®‘ÛÈ,¿zÇÇÒ»ºïžs¿sÎwÎÅ5MÃþŸƒBÿpÐ÷F¿ ¥žñÔ÷‘y|eXaqÙKŠ,Ï%µ0%e4à>©ÍѧÄŒš¢ !Dê56)‚WwªªúgE–”Œ#Üd$ bËräÏš· ¤bîÃ^wÑ«m’!IÇcr¨«3ÑÒØª¯;íokn¸ ë»ÊçV6Ûìs¾O{ µØévÍ‹‚\Œâ6É‚–kJ**⥠e³!c$H"€”"BÃ0Ødg–›—oëé½EÓJ¦4Ôÿ±¥<‚€ÁhµÓ,;Ýëó™V)£ÒÑ Huƒ,/ðDÍúçzeIÂáœbÉÛ®I¡„>S{)@fx_oo¡9ËVχÐÜH0:]vÑ4Ÿ"Hùn©—¦^´ñÇïïž¼ïƒ÷&‹‚@(Š‚NÏŒœ!&µüžïr{Ò™0‚**|"¡`Ž.©‹ø2D[öÄʃÁ€ÒS“{•TÒTxL‘d%mÀ¬N—€Ôëé½qƒ€@Ä'ªú`{›þß¼YPRVŸ9g.w?ÊQ¼À:ª£½Óét½w ÀE£±Üüü®ãƒ~W~A­75`Ä7IPST¬¸æ7@Të%Y" Xð» …—…èë aý7ox‹Kz‘ïO£€cˆ^¨¯;úÆÒå¾IŽlq’ÝÑÚ‹Ä ÿ|ÛÛqäx‹k¤ sgœKL­þIŒ"ÃÜ€kĤ¨@°%ažwqf³…Ëu:yHGDçÔµ¦Fùz«¿5eÀW<;uìÈk7o-á@$¼¬ÌFÎÿQ½Á›mJ§yÔh,Ÿ;‘Ö¹ö†ófÕôJ2OâPøád*°¤l4›eP¦ÀwT7q8ØE TÔé ô¿Žíàc\ð ÑÚtõâÉãG—V­^“§—Ñ’˜À±ÂgÈóhP_1G–Y³˜ ªÃå. ‹jœ‚u(/1 ØbfX)9šK}÷…BÄß>ýSòxÚb»…ö¼õÛS·nÝ‚D 1ESp«Á&Ø =ƒþ– ŽÆð@Gˆàø¤¦Ÿî‹H²@AJ‘Pñª¬à`ž‰t:=ûÉž÷Û;×êRMÉ I9ÐxåÄî7ÙHÑŒ D웞üV7žçì«»Ú¦ú"âôêª&WáªIÉûi©Á-乓'„½»wýûÓþÏÔ’ WE uDÛw¾°ñ¥m9‡þuê½ûzuÇŽÏ)+Ÿd‡š¥³ ²š$5ìÞ—£ÉLú›ˆ­5ÕŸuµ·ß–MÔbIMyñõ7ÖÌ©\øx[‹ßº¢êÙ 4E+érÍ=‰Po2ÑëêÔ×6¯;ØÑâÿLóã/'µåhÊSvÍâ+í›^~µ´ÀSHCo-bR»Ûu1d™H$˜ƒû÷†vÿú#·Î§..òxš6€fر Öx§½î,šºý̱C•öì\¶ºö¹o>¾êÛë¥ •TG¦¦øJ0 ÷• ôc_ž>þì£÷þ}áÌÉ/àçPJ©<áÅdþÒãÛâJÁx®3àÿ}{Ó•­©;‚ÅbsøfΛ_Q1ûkn¸eÙ Šã1N uwq-Wû.Ö¹lõ£Z#Ívw+nÃ,|âéñÍÆˆu-M‚ÄÇ]FÉÔEÖZ@LUã©ÜæSJÕ{)Ó”jê–?ÀìhÄQL9r‰‹¦õƒà£óúAÇÿd‰wDÉ“IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dsphereplan.png000066400000000000000000000042371417122252700235770ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<AIDATxÚÔWklSç~||·cDZã$NH€„\HÀ’´”–ÒÐÊViˆ]:µ*ë&m¥E*ÚX§íÇVu¬»P•MÕ6èX‹ ¥el´¥Œ6$m®NbÇIÇ·Äñõø~|öU`I›þ@Õ^éèœóÝÞçûÞç½|"žçñEŠè pý­Òèô‹¥²26<—I§,·A#è(4¢õ'§=®\6;)UÖÔÿ¾õÞ¶—”•¡óòû“Ý—ßû^&•ì¥>ñ<€gßxó·ôÏ—Uh6Üݶõ÷oÝ&w8pîı7í–îíF,®©ªmxlç“O¡¦¦šqŸ¨¢¦¶îØW7µÔùUIò[^ôËåx> Çåò †‰¥€T.'ül$Y¸¸ºVòíÛyû„[ÔÛyåÇP¹„8O§’QŸÛ­.ÐhD>÷$V¶´Öß×f E×7vMÂÁ ¦½>Ä" x{^CbÈ Q6 õ*3Šš†ª@ SÅ"èôEPü°‹D Âá0.žÿ'®ôô‰ì4/4ås\@L£"É8uŒ®í¸|I¥+*Ý¿å!H¤Rdiñl&ƒËb°¯cvd 9&Nü¬Õ ó¶aZÙÇé³0=¸Ò\!®Ú1åóB¥Vçgh~&“Fåâ%°Û†Ò‡þôÒxWûe˘Ͳ'“JÙ>±™bÝ3¿~áø×w|×$‘Hò;„EÑßÝNú¦hß·9:”Ö½JªC4yç¹í¨\»õül2 »u>ææ; ÕAF¦™òù¸§ùæ3]GiÙ=ɼÞÈNÝl4êÐé ×”ÓC¦AßÇÁT¾-kïFÇþ#å~~r‰©l”þ3ËeÈ&SȤ3yÛ7šW¡vy#zin2‘‰bïÛGÊÿJÝÞÊ‘ÌbkÜjéí¥c_'Ø'ûÛ`()ÅŠ¦5è~ýY„&\ؼÿ ±Ž—ã„S#œ9$‚!˜Œùvž¦S)TTVAàPÏG8õ÷ƒî¼ôîoÿ㛳FmVk4Î/<å÷!‘ˆÃ¼ª6÷y žy ?Û .Í#  "2‚Ó;‚X €XI™+œçè:U-ƈÍ:váì©WßÄè¹x\N‹ßíæw›CM]ƒàU~éÊÖ~ZÆŒq"Ç]s4¹\…øÀ›k4(Õ4"‹ ˜†ŸHè÷z0ØÛã¾ïk[-«[ׯ™'FÜ ÁÆc£v’l/°_.U£çüïÀNO¡åñç¡7jÁÞ£fPT¤‡F£ƒ·½KïZ ½¡£eå0OH2b&¬T©woÚÜDË>ÉŒ}pÀ‘N¤";JeRL]jGÓ– VèáØðá¿!;~F‰a÷iÌ8'PÖö¤3lÞæ¢àv:3Äß°Ò,U(”5Å%¥+eJUåBD‡‡,}‘p} B™°SÓ(Ûø)ˆÂ¨©EËsû¡©Þš7ëÐQ,n¥Ý«Êò¤3b¸Çdz •Ò§+Ò§²é ¯),äšÌ««Ô­i!0:lŒPÔAŠÈ¿ÞGéòzhFr7.fË4õPÊ4ðXaft µ;ö"Ë% ¦Øáq»rŒDì7––ÅgeY£ÅfA<Îñ¡ÐÌ4'óëêAyKsÞ½®§ƒkþJÁ¦L±ú;Û¡Uò«Ly½G$ñ¹]œËåÄ©d,Ë$âñ@±±ÄKÉ* à  Ñ;91fX¢3¥)ºU/½bNŠ$›@Šå`=ú4¦) µþâLO¹‰†È}'¦Ê*ùÝ.W*Ç籄U¨TQ}eq’8 éélR à\(Öé齫mÓÎí,;…*m3bŠ :^Ü…ð¸ö½µL‹P8Ê¢#UK«û 4Ú”T*åˆ 9:~!1пǣ¸xî¬P[ €±XLÅ‹a¯ª‚åùgámhÀøí(ZR…/¼A.©%Ä0íó9«ëêz uE)aIÞîÇåRªÔâ³'އlýÝæ-“æjtOŒÛ’‰(·òÑ_"¬Pƒ§tÚºëûøÊO“¨L±p _õ—”|\X¨K Œ¿®üQˆº®´Ëøã)Ê+#ó˜ë„ˆhömܼ¥<yêÂBT˜W •IP°áà°uz}‡¾Ø˜¸U1NØ9céíVüjÏ®óþIçÛŸZ(ÎÓ>3<`J¬åÍ…|¸ôÞù|–#·Š¨ :¥¥ìjMP*0T„P Â(Ξ|C´çñGN^íë:DcRŸ@2O{Ü6Ð×O5Â:…\ókòÆñã”'>ܼíI>Ç+¥rY¾(¤@#šñû™ÞîÄ['Žõ]|ûÌ™t"Þ-”ŸU*Ï€·Zº®\ºÈhµ¢eõ Bnˆyyÿ~÷d÷©#*k–Ué‹K ”9™ÐÌLÈ5æp¹ÆF¬\&m£ùéÏ{/¸IÈ*kšV¿Ú`nÞÉfа¼1yúõûG¬ƒ/ϱæó(\ÐåáéGwïåÛþĺù/ÝÓ¡ææÛq3š“„D$¥Qh´Zht:r)\"•Ý–;Üœˆ…‚Ç?x÷ßߢX¾:B%ÚÈ`ÿ+ÙLzèvÞ çâA¹J«ÛDY,†…HÆÎUÓýßߎÿ+ÀšmÇÊXIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dspherepoint.png000066400000000000000000000042711417122252700237740ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<[IDATxÚ¬WklW¾÷ÎcgfŸ³kïï8‰8!„DI~P m‰‡¿ª©"~ó›•@Bð !Q!~´á¡ªAU’”&jP"W%©c±Ä±×»vvíÝ}Ìì<îåÜÙeãØi‹zäëÝÙ½{Ï9ß9ß9çŠèqÁ}‹ ë®~vسu}¨ˆ;( ¢8Î(µ(¥ExöøðEt8,Ž'ÔÑLDI¨’ Öh;vѰ6ïWÍ•RÛ[½,Ú]O4Fܪ\)G'¦^ ÇâŸåfyuõ5§´ü—§Æ§÷ç& éºQ%I!„ëG”2lÙ.+-ûƒ•réâüÚ­¬Tß3)ÊwŒÙî¬ãÁ©#Ç_ŸœþôÉ/žú2Ú,—Ð¥¿^@‡„{7ÏîIÎ%ãaÛcÔ…ŒbÖõ c~F!X"XtW˜}°nüúÚâÕËyã2l©t ñÐ6±ì½¯OMøáÙ€ž9sMæ(ÚXˆn?˜L©d^“ ï€'ÿ ìBåx`wt .?³/7¥:~³P-8 Uû¶ö„ô#1Q‰  p4ЍÇÀ# ï#¨êyØeˆ0úb; ÇÇt\O%ë…/|jòÇ_:øbBÂûº ;! ÚŽíªª~f£TÑ“)ݺq½ñÚëè°Ò¸<¡ÜÕ‰âdÂÿ ÃÝéèˆ*ì»r¯tžþ|x$!Ì’_ŸÐöW¼rî­·®«üsÆ›TŠËgRò{é°Ò‚>ޏ”ySÃÉ8qÚ™kùÚ|dF}¡PŸ;”ûö¹éqÝSš…cQûÎSIåv6¢ZŠ,P B‡V~vÞcþŠ1G‡?#1ëÚ3¾tfÙ¹å‡V¾a/ô hH²š8uöÄÄ¡hD5Ç%‘íJP££bϨÔl¹’ÇX4Ip®È†«bAb1æñºm‘[° ˆ9¢ €nŒ=’pXqΜøüûoÜ|ßf>Eý:ÀQP¾:™>92-¶fB«íF<†ã’,k!U‘`>†Ÿ‚4°cÈäys]—9¶ã¶ÚVÛ3­&PÓP©éxÔ9º'«ÍE\+Ô ACÏîšà*†9@D9I$µ°¦ÐÚ+­\ü˜z5Í6Ym˜!ÇôÂr;®…(˜He‰ƒ£ÎI¶ãDÍVºÑhÔ±i–ÓqÍ<=‘™Þïë|›ÔÕ‘‘d8YnØ}0hªOk(:0¼¬4,ñÏùÍáK¥æ£Q2«Ö¿1¢¯ìÕ#­,2ܱÓ7ŒB©Dé‰xÌ0±’Q­LévT$Cu—Îóä£c1eˆòžáá!®œ+¥[£N¡ÁÜó?å7F.¢C_9ó]ùùï|_\rvëçlìÞlµE^†¶RDÐWh"¡él6¥)òäPXêõ‚”ËdÒLHs;ÅýÞ¯7,ùÝR-õô©o¢ç¿wΧOLO _þügÑûu3<Vj¶ÿ=„N–%w8—M¥TiÕlæW°"E!vAˆŸPY8 ·a©ªê+‡g¤iaŸŒí0òIÂU É$"K‘€†>5*5Ëé:æ¼Ó¡× M¶Å#µ‹.¤s¤§’èü˯¢L¼jG³M`Ɏʱ!åJµ tm"ŸÏü¿@*V£¾ Hꤛ€ÛÀ"jˆ~m8‘wòkä·¿úEÒÄŒæ·F“+ƒÅá{¶7žðŠk]d[y‡áz`[3¬z,,o” £ž7Í\"‘Ð4€(5Èÿëy ‰„%ÂÖ !ñîRÚÔŠÈ®h¶5¨)”Š^v ¢_ºUJjõ­U«†"°‚( îZÃê€æËõ†ic=6ڶݨ–K±M"$!ÎaUSÅ,óä—Yˆƒ‚„B²ä Dµ:7 æ¿sv+#æq†fˆÛm“µZ¦Ó¶ÌºˆéfL‘ZHÆ ù]1ÚÅ€ønÕ¼w­Z?¼7§‚"/«@ªÕn…j­† 1R! ,Ú5èx(1÷°S…}ªÁ¨â‹ ”³¡Ÿ[À=S–3¡Iv7ðI7–7–ë.[íõ‹¢âßç‹‹GöftØÆÅHSC6xÕ^<€’z®@D\تqgˆ„æ PðdS"J°ÀxàˆÀï #G°m;ÂÛ‹ë¼#6ƒRÌQtÞœ_Ÿyî¸qx Ãëÿ€NL1‚ØÁ«àM.àëu=¿IúÉÞ­Ý$bH„™;ÅÚLÁ¸ ¬$(™…–ûŸó3‹·EÄBø MŸ+ð ƒE;ž‘๫|[áyb¶,éåë‹W¡®ó@0’ñ‡Ö+· o^ýw¾¢I‚ˆ>Aá)V~?³¸ðîªß„Ü­ GÃàX›[­ÔO ǧÓzTpyíý”ƒCòÛ·–6ryáð¾Ð5€mÉüPTm¯xc¹\ÿl6v(—Љ0NÑÿW9‡./¡wf—ª?úÛíWk.[è»'<6öFæ²å®^¿·^VÅÝ{3ñP³ìãAËsœÐ®ÝYzéòßòùî,èí4oA‚/-<\¬Õêá] -“Šª!(jwÜŠ <`Ø5‡ÊÿzðÐúé…Ù+¿™-þÑîÜœàŠ·ÓÍè±3»…JÉ(ÂÄ©½ƒÇžžÌìß—K&`ú$Ÿ’ºÏg˜ÀÐF½åÌå7Ëç‹sW–6gzÐ…ÛÛéŽøaC6îC f48•GöèZ.Ut¸)iœêp9mÀå´|·ÒZ:sŠmô%Ú/§uÊÇ}¯AÁtŒäîgí.Ärl§ËèVù¯f$H!й«eIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dsphererayon.png000066400000000000000000000040361417122252700237720ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÀIDATxÚ¬W[lÕ>—¹íÎ^½ö®w½¹ØML ¡HJ Ák<ô¥%ð†êcûЗ>´L¶»ˆ”* eÏ“{3Çž™,N)eóùt<SdLÈÆvÆ8ê;.¯wLë£jsõÜ'Ë×/TšSC‹@ؽ áÌ>]N?}úøÄÉ‡Ç iE‘}qÏœ£ã0 ‰"™`Éq\zùÆjûWÓŸ]þü7O<¨ªªcy¾jÝ9®€F“)u,GùÝÔìÜO?¸ñûžÏç¼q›¥[ÿK™ÜÿÆs‡O¿p|rÌÇÄr@7ºÇáùŒJ½cãù‘ƒ)õK7Ö–úŒ7’õ „õ$–¿ñìá—O2=æ0~ϺoQözù“¥¡ÄxB9ôÞ|}Þå¨=È’AÂõ™ïœØÿ­OLîå6ÿ?”ßæ ƈ”â9Å‹•ÖÇðÊŠBAcr,ùìwŸ;ú„pû åS~k†Ô‚ï<´‹_Œ|k¢õ·åÅ®UêöÍŽ=yAŠ(§`Tzù±‰'´˜êöà{Ôõ|ÅgH hWXÐ8PŒ¸!€yðÒvÚ„ W¢Ô•%êì3FbªâSÕË36C ‘Û… zb,õ豉bÎñ™ÁÆåê.ã)"ÉIMÓÕ˜ªRY’0¡øOµgTX+Üÿó¹ëzܶm¿oÙNϲz@Ͷ¦È¦C˜óÈøhæñ±ôcç+mQ#˜Z‘<5Y¼_U$g¹id•F©l<ר"Ë‹ySqkÙwðR¯¯Y>#…˜bgâš/ËW%Š4UE©„NaqÀèfßéu;fÏ2꣙„qêPñ>Qm€%%’;THë«”È ¥“ GÐu{íVwL‡¾»´^úóJkÄó³t"Þ0¿QZ<œKvˆ €ñf•âJ§bêž¡¯µ[íÉ\ÒMˤØvYGø’uyXW•Ã…Ñál:%3¡x+ à/¶,Ÿ¯5ògoÆËO=ù’zú•×%Sûjê­…õ‰å^_õ·2„,! cùÑѬ×&AçX”hH£¥b!ŸÓTÅv=†AnY¶|i¥=|ôá“èôk¯"H4´gÿ>ôÃï}_»Ö2Såt܂𼭠ß÷ä‘W-ds1¹ŒZ6VÆd)¡@º²‰8lÄ’Bƒ’+¶P>ï¢&zÙBФoÒP"Øì´;¦–HPÁ˜ípM0/­)Þ׆“w¦>Ôß~óM´ï+èÌ[@©äª}(3Ú¡„ÜåŒj m¶ZVxdã€ÃQûÎÂRµVÌçóªà.wñ/ à*ÃOÒ«†ß”Ξ}{„;œ”“Ýþ·÷/”1›ÜÁýÞû>£Õå—8ýšÐ¹  Ú±Z˜à®Š}£º´XЃ©TBðžoxo&¤L NÆÜ÷ÑÊ×sV½BKñb?§«žXNĨzžOZ6ëu:͸Bj€ÆíðÙ©/5 û}y ²»`µZ¯“UT- G±ªi…â¼ç¢ ‰pOëš)˜Öq* Úl;Ŧí@1¢ˆ5Óqµ ¹¾X÷»v5b6}¾re©Q}pþÀæÉ@07 ˆHV×ÒzíV È#TR% ¶P E…Å!Õo¹/˜ ás ,öEn)2µbºâ‘ÂB(FÊ¿+EÃçµ( …o¿}º|õùGÆï#`)È )É”+Šdˆ„aœï™ïa¨µ|-ƒ   D ẨB!2x„ðÈ#𠆄÷ú–CþúiíºÐ)ÂKBøÃZ÷ò¥ÙÚª&n¡ §&¬PÐ$J>”m¦«ªŠ+žÅ;ØÊIÐ(â`ØËND!{j¶¶>]íÎD k”² ÊÏò/§çÿÙí™àd²C£!,‹&ß|¾kk 2{†)ÿbzþ‚‹P-lÏ6û€æUíˮ3öøÑ’43_ÎzDJ´ŸŸ¿zõ³kgàUkCp®Ô:•1LÙ3œíÔ—¡<.SåìÌÜêߟÿ ¶ZÏ·ÀáK÷ý›ëŸ|àH97Ùïý¯}¡¥F°öÎÌÜÊÎ}òë>CŸomÏévW+Ñ8^˜_ŸuÍþȃ¥,8 "¾kA­€ªdš–ò³÷>¾ú“‹ó¿å7á“ÅþNn\@“™Zçú¿n¬tSåË™xF×Á~‘Ø/¬v¢‰.Ižh•Û•ÿq­²ö£¿üçÝ3skYõPùŽ“­W³à†ùG ‰‡ž9X8òPy¨TÊêº.ÆÑÀ°Vkæ•ÅFíÜÜÊGÓµÞ h[ ½zÇ;ân/§Ñˆk ue¤ «#IUJ ]Ûë®öjÍpêàêFXdüÝÜ’ñ=æ*öÊáoäÞÁ+ü®2æ¿ ¼øõѬ«IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dspheresphere.png000066400000000000000000000037071417122252700241340ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<iIDATxÚìW[lמ33;·]Ï®×ë ¾lÅ„:ÐP\‘–ŠÊ ¹T¤mhÒªªDxiûš¦ }¨T¥J¥jÓ´J‰HƒÕ––BD'q¬†`ÀfmX¯íµ—õÎÌÎìܧÿY›Ö DQ¢<4#íì9gÿóïÿþË¢ ˆÏò!‰Ïøùúl´„¥Øºx²¦™e9ÑqlRS”EeñZÚµ­ó°>ó© BÌÖÛ·öÞ·ý}õ6õ”55EQ^IU˜Âµ¼0=5%žz›|ýÕ³ÙÉñ#ð“Ñ C€áÀ($)t~aË÷=ºSï]_O‹‘HÎs]ßó<2ð}ÇTå¢Ë±m!35ÙÒäpõ±ÿpØÐ”—`ÙÃ[n K$w®ß´ùöÕ]k嘧lÓô/¾ÎPGÏ´60Ÿ½ú+˜.(–ïÜý‡¿{ïÞ‡œÖ¶ö,Ãr:Øs•¼J¿ö»Ÿìærská†z|Ëo®Ùq`€h¸lpS&P@üÓ'þÑ{ð§Nr³Oýו+7ÆSußìégÜ÷£GGäx<ãÂ㸡ôî;gVçOýrχcÝíÅK~¥GèڢѡPá8-ß|åXAEe¹©µ- qw½óÆéÙÀ÷&?”Ü÷óCÏíÙÙ·{ lè>œM#T±à_˜’Œì©Éu£ë¿¶B’Ú­ì@*Ü]MXZ˜$)TH š¾)Ðéù>ªPƒ·ó@ ÍÍzzlt[f"}޵¯çÔ·¸ïŽ]}C†^ªüT€A¤C׿óõaÃL„S5ªãxÈ*»—-btB®’“mj±¸Ñ÷ý°³ x_åÚv£Y6ViªRë²®jœÀªäøì7ïÛ#†Xþ«øàŠ€ê›Ûî¹ï¾E]Sí’¦EÁx+ZSU.Q“j)žW#l*ië%­>İHª«Ezn^¬NÖ<ÂJÒ4­°àŠJmAˆ¬îØ>B8–å륒lº6tO·vvm{oøo˜fóW¶w‡E±‡·€‘”Æ`ð¢$Ñ4E b$,”á5·µr"Áˆ‘Ž6ÔF¡È™¦ÎQÁ4Ë&‘‡_+vÏ •«xŽãêBð´´¯ÁlI@¢uMgŠ„bƯ`¯X |³\f)ŠPàS¾ö,«„l·Lr1Ñ ö–¦è°ešâÍ*kŃaÙ YSËÔ75'`:IˆŒÖ5¬âX–ÅÝP<ߣYŽ¥|×#1á_>þëX¬½É² À €5\Ã~” 7#X–qãÕI¾Š M"Ðuôbà¤V&Œ\à™eÓ]ž­ ªí{JbÛ.3d;•½°Ù–å‘å~”ΟQ.—±¸-Œ‡)FIS\Û™×R ~@°±ÆðîÂ(#Èó|I§jÛ-̦j”)¾eZ‰HkH"–s‚ðD%]w-ËTµbQ‚éE¬ÒùsÃCÚÿgð øeò°? h`ÆpíÀbxÞ)Nç,FžÕi:D*3 ÌÙ ™ø¥¬ˆ®×ßq Hf>„´,ê B"&rårZ…-9 À<}ò­‰ô¥-ííïƒ!æ y!PüBfb†e%±(鎜¨žõ\Ÿ4 ‹F’tÃЭ¹™¬&IÑ•Pü%!V$ŒÅŒýdÓÀÏóVtNö._ë9; ëfEt׿fú_|î74"È(Î\8«!ŠD€”¨®I™œÀÎY «³9‘"i^ ôÙ—êX]„ðÓ!rFb²|")+„ÃÓa1’HÒ DÕ EˆDLp#ÆEB†eμzBÎÏfO®ìˆŠÇþôûg^þãóÝ|8ÂuýºA\d}cý‚Àe&¯Hn`’º¥„Œ|>l6­3 ¹\2U;>€­-‹ÛÆ.ÁeUl‘¤3z~díñ¿¼ô6¬]ø@-€Ô›x½Èðá»×mÜTÊT©¾ÃYßwªÔñ׎®o¼Mð”ñ¡hvl<’Ú°{P®–Ç!ÉxÄ-*"s¡Q©úÉŸ%FÞ|¦´ª!äïñ7O¸piôâV1k—åŒø(O–¾èÿö…mêÄ]·÷[ýÍMwŒqÓÃq$+B>_ûÌ/ÑùÏ£‡‡éô­D3ìmk7·¬é¨UÉ"®nWÓ3™‹ƒzï}»¾·ïñ¡ª¤œÃ…Ó|ƒ­¥Àƒ²J_9×ùü¡§¤Ó?ö$€þ8=!³üY‰uŠa·}ñÎÞGvÞ{Õ†=3ñd2°À˜,! ‡òô•©:\âø+GþL? +ÙO²+€¥ÞÆÖÕ[Û:ºšR <¨ŸÂ¨,¼«“—µñ çÇ Ãuÿ½O³-ÇOtypË 'îùq>¹åÿ‚Ïÿþßø ”ÅQlÓIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dsymc.png000066400000000000000000000005641417122252700224100ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbüÿÿ?Ã@&†£`¡¥á‹ ý¤€T‡B…Vñ¬¸þMÏ`ji•¡–?Å!- s-CäsMS+iEu°ÀÓû7®Ÿ>“k u;Èr>Aa0†9)J†w.X öOïß‚1ˆ,Gë40 ˆëAqwt9ÚæšfÃäL¬¯™;ý©f‘ì¨å8ó7©Ž`!7›ZÙ2¨¨k€îܼÁpúØa”üMË\vå‚Â"` srþÖµájX°¿ûŒAlôüMË4Îß 8‡Æ;ÖüM³\@ólHMÃIvµó89i€ªyœœ\@Õ<>$˪æqrÒUóøÐˆ£]³é€›¤D+s‰IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dsymp.png000066400000000000000000000006371417122252700224260ustar00rootroot00000000000000‰PNG  IHDR D¤ŠÆtEXtSoftwareAdobe ImageReadyqÉe<$PLTE–©·ñïìµÒÙƒ‚x'TWÐÙß§·ÁÇÐ××»£ÜãçÕÜáÿÿÿCæH¶ tRNSÿÿÿÿÿÿÿÿÿÿÿßÎÎùIDATxÚ„S[„ KIyˆ÷¿ï¶ Ž ¸aäBÓGÄþ˜TÈš JU¥, Pض$¨† A9ÄI' ‚ ³ »D' (Oaц)I6aêUæ6•Ù…,‹FYôäÂo”#IµÀšc’¼µzƒ¿Ž†œ¶—Y¤´Å ¨û£Q9ÞpÏ·"‚S:¦Ú c€– ÉÖ0´ÖàÁ¸¦ ¯Ñɵ}ª¤:×à€/´ï˜*šŠ†”C6lÕVŸj“x8à°Þ1Uì÷º“»y1;@ K]=]ذvu{oÛ’@Ú}!?"ˆÈ7Á4¾$þ&ée²|ü¼üÉx¢5¯OIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dtetra.png000066400000000000000000000047271417122252700225610ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe< yIDATxÚÄWylåÿæžÝõîÚ{Ø»ëuÖŽïœ$(§iP %$ˆ£TU¡R•^( DU‹ÔV-´U+@­¨‚PQ*T¥­€)i0IìĆķ½ë]Û{ßëûè7ëuIF!´£ýfVšoæýÞ{¿÷{o]×ÁÿóÀÓË¿ùñ-m6À¢( L4Œr‰œäeË¥™×ß9% MÝô¶žBžïFý‚ ZLt×|AþPht´º®>íþ:àqô9{Øm¥@×¾È[㇬\QㄘI|Šãù}l¹œEÑìsZ¿½kc§™¢ˆWñTAQÕ/'×¶näzº Ò®)úW«»»˜Ë/ŠåQMÕv³¥»ËïyŒ"Ž@±áD:ʋ⭠dT#@U4 I Ðe@ã»%AúA±P¸’É”–8^±@£NA( щ›ÇHœ }y,5 ÝY‹kuZÁ…bXQ¥{Ê¥|àôൿH²:»¡ÝWƒ…tEÎå‹ìøƒ{·š:}îÇaÊì8Š=?YdE¹|¡@ë:Bëšü­R¹xÇ\4qrtrñAà‘ ×ÕÞaqú9QÔ¦4™µM½‡{ÍR8Ίý×ôb|¶Ê ·_0 ¸®ký"_~$º”ÇCÉ?A:”%I¹Ò<$&ÝÖÜè‡éÒÇBg/L̼ÈòlØïl82°±çáž€Ï Ë†Z«Dñ›Õfu+ $ «J‘ûe‘}F„äB¢pz.’®(²jä¶Ž,Ík;ºãA_£ÖÞl7‡“ÅâÈt䬢hú}wn”×¹O(½ëÝ8Š>7:7/ÊŠºPý&ÅÓ4觪y5E<ÈU—ï¼r-r|l*~’d¥Áå—ik“¿Á„ïQ3F1t £çA–̦£ÇC' åöôu=ÝãuÝCaX†úÍñ…ØD…ã?€vó ãš"cªÊ¬V–÷&’¹‹ç‡B—Ó96E[šÚ6ìZgó÷ X õ>Md©Ú`in'Ú}r1>3qîêì9臸sÏ“-vëá}{Œ¨UFæ")YUe½Þ„°gŸ}\=ux ž€OWùŸF¢q×…‘È áh>JZÝZpóžv›»õgBRÄj;x ¢Iˆ¬¢v˜ú¬î6Œ¢ÍÑRj!Ÿ_fs,/ƒž&²Éj~ÀBÓNhõ£t±,©š¦ßÄ1ª]ÉŽŽ€"sO³•ef>šù`|&5©¨Ú²ÍÞtzï‚øìv«ÙçöZ8h2O§KÀË4¶<¬ð˳P Â/½·ú£çOƒ$ä÷ô­gÖy; ¡ ’ô÷¹Dz¢Â ÈMU@wv2ª"~…­ %‡f#ù7تd4Ž$ÉŒ¤öK’ |^7Ø7°lß¹tu´‡y¥ž%ª²¸k•Ê/ûšðáD肪¯kºšñØ™cÝ~Ï6»Ål³”JLòâww.>õRI€M.{á|¡`žY8Í/Â×0† Rnpª ˜KVUÇEAÙÁ)Òp&Ç¿;« žœŒÿÉAù³¥*,çÌÖŽ?Ë"ÿšªéƒŠÛý4÷‹h]&·þí»èÎë)‰Éçò[3å?L/eBe–§êÎð«„®øãÃï4˜©ò¶ ¾ ~·u}ïºÆ'×û?ì 6M¥ô¬§É~é¹—O„¹€ï|ã!m¹8¢»< 4ÍŽ-ͳÌöÖ8NÊ»8È-8 ºîÝÒq°µÑÒûñÜRäý+Óƒé[ÒW*¨ZT>U«ÓCC¼¨nóº˜]N›i/Ìÿúþ «¿ÁÂØò%~Ëö.ϼ×aŠ@1ZØâEcg/OUrK35@I·R‘ÑΔÉL·vš[œŒåŽ «áp2WŠNFß^È”Òu¥ë¼¿¡¤À¯L$¦á5Bø?Ú[ìŽMž­]­M÷Ø-ôûw}4eŠÀfó¾ðAI'>Á14W“„‹!Ý Õiߦޭ¹LÁšÊ–üçÇ#oN-eÏÂ=ƒpõr¾¡'#FSB|:|ÕAÝ`¡\šðRÞ¼­»%°9ØtÛ˜€™¦¹r•Ï”¸ËJ]*ñÊ[6 +Çñ[a[æÙ‰X¾2|n<ú^4[š¨5·â´µýºqDaÏÌ–8*QبÙÂ2ïˆÄŠýN+½ƒ1‘[ún¿ßÓg6YZy¶+W¬0Å|Ñ"’=‘«€ 3Kgâ…JÌø˜2$·N¾›>®ÀÍXýŠ×Dëõ5z[\ŒigcÞ ßÑ\âÄr¶Ì-ŽFS'/…âïºQ7nx/¯ïËølzj (³ÂÊi„ãVc‹Íâélvt9­–þ+‘ääx,{¡*Ê%¸ÏàHi-ï¿ €Ï‚Á®K[m°i±[¼NÆÜÍ•óAJÖ#µ\ÀšŸJ·àú«/c^ 단äëKú¼Ð¯ÿ`ao½ªìÕRIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_3Dtrans.png000066400000000000000000000016421417122252700225620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<DIDATxÚbüÿÿ?Ã@&†,”`]!¤Ò€8*´ˆg\ÚñŒýŒ”DÔò§8¤¥‰q¥!ò9ƒ›“ƒ¾ŽXàâ•k »ö‚É5Ð: €ƒd¹¸˜Ã‚%ƒ;R䀿~o„ûËWoÀÄFJŒ´K„ŒŒŒìÜ|ëÍý3(I„LdZJ`{~ýÔ²ˆAô5Æï¹™o%Ör0…±8x>ßb-tùÔÔÔp ^AŠ™Q€«`9´¬“H¯âË@œÔ÷#O¦¥ A'9kÖ¬¿$'B¤‚¥äC(±Ÿ²sñžÒÓG`³€–¾R€Ø˜Ü¢gÁ¢ë¶êô–9Sˆ0s7;ñ)r€R°ÀØ pñ‹Ø2lN¡·´>»+ãÿ¼E¥~±ÀZóíçŸÙYSv<…¦·ÿ4+ˆ@–³±0?áeþÇÁô— }ÀÜRÇÍÁú¸=ÑQdÏHÈ«É)X@³23£OÓØŠÁ%$ŒAlæãL‡†6†#У`(Ñ‚Z¡ Ëá+ÀÑ'­¨ÎÀ'( Tg¸~ö 3c0ÓŠ þ‡3 …¼`aeú÷ƒéï" Füe Øv fFW‹QC-U£ À| rõG`ö"Tª1>yý阬(ŸæÓû7Á>›áý—;¡–3t–,UÄÔ¥ö­;ÒŸî rFÛNß]Mn]pˆu!Á‰#ñq1¨h.x÷ù‡Ó¾‹uß~ú>éן¿÷¾ÿþûìÁ믫fo¿à¾ïƒ' ÊÿÿIª €eûv öÆR/€Âù*¯bP1Í¥%€X”! X*SÈ·.@/šy˜-úñEÿϦWHõ‚ž Ê1@ýS Y‹ ¥lH ŽêóŸ@ü ˆÿ€B¹@Âé| Γ¦?úùíSPïYä²êf¤Ç ö¿°(@/ YÈipšx'/;²ªï,ZTþºáÔÂ?H©ý?,ÞI-Šq68™YÙüp´-`äÓ¿Pü&8ä¥dÕ $7ïÈI„$µùÈ ôzŠ©i9Å}Cj€–î w›IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_arc.png000066400000000000000000000022351417122252700220100ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<?IDATxÚìWmlSU>÷£ííÚ­kÙÙº]hY \œAD!¢A EC4ñƒP%1ƨ‰‰‰`ñ凅œšÀ¦Mã¦cŒ8غ¹Qúµî£®t]¿ï=žs½ïÊí,˜¹?;É“Ûóù>ïóÞ÷Ü·$„Ì'H0Ïm-èÓý”£Ç »Ä¡/ìÏ~tzä¿ ð‹0Ñx@isèzŒÝôì¨Ø…Y²g~ ähØs°ò®õ bY0pÿú»;@ãì¾Í–†0ãK§¹¾D,Ú Ž­¶éCË8>‹ÐmdÇÆ‹Œ‹Ä¡À¥~·ª»Í¡Zn+î1“+óÚ…&÷øáÆ“½®‘c[ ¸dDø[%€ãAÐ¥Ëpœâ‚Éø¶ó/-Ò5U¾®~IWÃCVªz)˾QS¢­ÿõUöpC³÷ZšÎ S~<_lô¸‡(ïhH{.…·ðt²Õ†nŒ £àû«“€½ò'¹}Ãèðc›—1[‹UúâÖ§ŠÉ‡¿c)„L¾È®£oZødêõO§h,‚äòöS÷sôHH„ç\§9Ê !¿»¾<³–!è½o­/ô蘒çg#€¥'Õ´ö¹ çÅíŽÀðP<ؼ}ãÖ¤×nC‰#±T[»Óì».W@v(!ž§:Þû±X£F ,׫µ[L ù SMY/%Ì•†dë¯Õ5dË/§NZ>sN4÷†bGÄ )Ñã„׌ÌR"€À`4Ý[¹ÏjÔ¾ì ǽÝc±ç[¯]Dãqq/¯¤€à=ÏÑ÷û\–Ÿ}‰¡PŒûVf|Z< )3.W@"ç¸Î‘ô7…Œi[Š#–€»õIs’ J! "‘̺Áˈr¿O'ý⦄h<®`Èb{#å.ëªÃZuzÊ ñ%À¶®êÃAŸ} ý´[$¡¬@$ j]“L%á%ñ0Iúä,Æ¥4Ãs™º­O› ¥æ cÿÌéÕØÊØU6MA‘µç‡ã%ˆÕ›všÏ_'-Ã+ÑÍwǦ½¥É8ô:?ñô8&ÿÅø E%å»qçÆ nõ*a¢§× Μs½qñÔ}û¦¯áݾXaª°^” è©RW2zÃ+Uµ Ýk6?Yš‡ñ$‚Ü`ã‹ËJHD(Š~\1 5º¢=¹XÊ*±GïÌi=€XïÌÅš¤è'òôÈ>Ù‚ãÁ ø·ð¦òÜWÒYôÖv„w±z3¾!ñ¨]"0³"‚0'kø7ë¼›ãć#<—1£3ßCÝ~ t=¿Ÿˆ†Ùó§Ž +$ví3ÓjƯt ¸Ñ‹aR;W¶ÌT £åPÉS…¼mBÌ0b‘kKEÖð6Bs gI&]©„^i㜥Y·ÙMrÍyUüœõXøk¶@`>Ú_ Åq´Ô4ªQIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_biss.png000066400000000000000000000024651417122252700222100ustar00rootroot00000000000000‰PNG  IHDR szzôgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<ÇIDATxÚÄWÝkU¿ó±3Ùn›nDIM¶›¬‰ Mc*(¥>]­)­(ñAðED|ÐúyЗ>ù¦X[±±h AcšnM¶íæÃm³Ýìl6›™;3ž;Ü)×ÉÌ$›¼p˜{ïܹ÷œß9¿sÏp–e¡ÿ³‰ì€ã¸ìÁ1O§oQqúÈÏP~Œ ‡ æGh\û ]@M0‘9F¡í!Ànš|3ÙÄ ü  ò²mi}W.•‡ÎŸ>¿ÈXg‘~[èÓ0:lZèÏ/™Àk æu*Í ®ÿõþfAáðO`ÜI„ã¹#µ‘}ɾVª8G¿eQ8¹”)òãûðfMõ„B¡Aòì}¢ÅŒÛssWæÐø¯ã¨¶¡ö-~¢‘ùw•ê-+ôBFCSú˜Úb€¨ÛñŸ'`íK¤Cohl°ÅQDÅ©…¶ŸŸï¨yµ¬…"7KâÔWcZ–ÅR±œ#àÙ< ‚ÉPâåk`ëdV?G¶(&+~ûy"€u|Æ}5·j é“VRJ¿ÀC‘N==TÑCÝJ%Tþâ÷õŸé¡NðaW°n?²™ì7-ñ–÷‰Ï‰°mvrvÄ À¦½‘ãŠÊ£•2þi¾ oЃµž¾žèøwÄx,€Aö“c…‰(îêíêhŽ5†#ág`)¯ä•ßRS©aP.ïo·ÕÕXŸ>~ÿðIýéÕ7NÏ®Ì€Ý ¹³§s(¼ ö\6wðâðÅê";Yy!@`Ä—Ç/_ùú_SŸ“F¬,+:[ž-ªr½f˜spø ¹Úšh= Al3¨½³=ˆAØ/,ú²R¹òÒWÈ{í=®T$t5oœ¥ßMuyÜχÈá º“#ü2¡A74éS`бž‹u´WôšÇ*:ÒÏ]›»@¶ Öû¥†AÓ•¾N…ôñ~¹q@Q%!»ŽF3kJ‘nFÖêXÃ#Ä÷ ’Ø{Â6RMf^Ø/×J¿¦c¥‹¹†z¶UË×—¿uÅÞ `? =±éÖëŽ~º¤Ê÷™–¹4¾’šdÒ®ÀÔèÔ‚º¡>âનÃo|²–­€aDN¬›*áâ÷ØÄNŒ¨L²¤8nt«¹÷Û"‡+ºÜ Q®Í—Òg™8q‚ʱŒ£ R©Ï]³AÙ…ðª `ù+j ‹ù¿ôéµE#—Ó27è5fS?t ¦}´)º\`×’,-ÐtŠ0ÆÈÐ ¤U 43ñçÑåkË7hbZ£Ö®w•i¦;"ÀÖmím(†R3)4qiÅŽ'ASÌÅcnÁ ªkÂÿÔÑ{¢(zo%JŒ†öÕî;J0XHýAÚK‚¸S/sA@pÃ!(×Xˆ-—åUµ@œº`>5‡ ·WQ!_@é¿Óˆ¤ÛRÑÎj‚«¯¾¤ÂБ§Ž„º`ÖëñÇ’Ké¥ièæišÖ·rAµ l§.¸åJ.»ªOK/RåÖƒÔyd5’lÊ4˜;Q (ÝuÁ–Yí®ÿ ½ê‚:1fH\ÄZѧ•­²Ún¡ûÇSp¡cVCÁ¸À½1¾¾ûµ¦ºŒÑªòn•IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_circ.png000066400000000000000000000031131417122252700221570ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<íIDATxÚÄWkLTGžûäîreySY\""¢‘"ZÒ¦H¡bÄØ”6µ¶&µj“jýÑGbJ£¦M¬1ýcû¬±$5Új# µ€ˆlAÅU‘‡°‹ÂòÞ÷Þ{§sofÉ˲ôOòefçÎsÎ7çÎ7KAÁ³4 A §éŽÊ}i´äþØÑ|2ÿÓ‹CMf›RÑaWêÁã'”¶®Ï[R# %êäq§÷bÍîªê–'*;- ¤;xF~ÿÅEÞ¼˜j÷ᢈ¾ýµÞDQ*¡Ш#ømžNsɱ+Cý×­J…eXiÀÏýµ7{z¡~9±(…×㾿áÿ=IÏBã%ÙÀsÅ) è­x˱cH h P׎îÊ’&FÞ¾ÖØ êIg-Ãr~A¥Ñ…à 0‰AŽ¹Ê¯ºk:‡Á/™C‘1¯ïÌÑgõ@ÍV„ZöhÖkcÝ÷Òª»äð"á܉8q /†MÍ©ïSÎŽy…NŽâS–-DcøË˜*È —§\èÛö]ã« 3×—¦g¥ÇbnŒ@AɘV÷%üL›wüæä=»$6ê9øe63Àbf2Pº­ÔÝÝ6é[>Æè-Ñ ~”ýrv}NAN4ÎT"örºAüL °2è×ÿ¥è“€¢ÐËpö³3ÀñÜvµÍ{%lÞ¾YƒÚWÍ´Ôôî΃áïqзý\,pKl2Μ!ëà©Ð9 ©[zf:ˆ‰Ñ öUcXfSÎgÁGÆJ¨“>jªÆHÂ# Ó9(xg2P… %d¦`ô¸kŒBý vJâi O«m§¥ŒÚG5¨}ÕdY>¶sU®)ê U4½ZØNÅ)¯,Õ˜‘›RŽ]בQ‘Ÿ›ëÍ@iv›½b.eæÉõº¢½r…6Ðv»\®­ÆÌ¼·¬÷[Îz]:uÉ:Ð;!{*·ìg\2­“Í–VKnÃ…†¡pä5pKR'%ÆkÂëÅâ³…Áj6V7ö£ö“’EùѼ¸›…’q¡W¿êð|eÅÌdŒ Gq zý]CUNׯ?ÂkÚñÆêðIƆ`‚BÅw:@û“A»µ¯šäuŸW×&˜.ÇþF„ÈŒ+Š£xÃÞ>6'5Ãd¢"ªÆ<£§NÖTÞ r&P•G~\êRÀ®ŸZnï–z¿Å¼ª«µö!>U5‚Ýh|ZéÄýÒB#~ÅÅ­IMI¦ ã}C¼ø''°M -µ :&Ä%®d&ß1îzµ¥®=óz»(©†ƒ)§Æís;«{îTôܪˆé A/$xD¤{n‰Àˆe¥Ûɯ𢨰ìùÅ aa,`}®àNk'v÷__¯Gvž÷CÏ9Ÿâ²ag,R‘gÛR#¼çêvèÕVd3iŠÉ§Ztç£ÊP~›e r› }׽У ;• (§L^HB^ÉpÁñ8]9…Aä|ª±C7nçu%D[?ˆ#…"æCbžpì'iŸOä ™Y.ÈMwz áX™žù|þ)Ógp¡ Û"®ÂiÏPµisÂþkö·i µ ªkþrIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_distance.png000066400000000000000000000023521417122252700230350ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<|IDATxÚì—]L[eÇßsúźVm;:7‡Ë"AÅeQ› B ÉœÛLÄ]h2/ŒÞí I¼PãÉïŒÑ,¢Þˆ3IÀ0 n‡Cèø(l­ÃAé íiK{z|žúòòî´©I“]èI~éùxû>ÿç}>Þs$MÓØí° ¼¼ABš Lc%b×w8]5õF.„'ê/í ™ xêg¨`/PMã³à$­àpDHLì²£êÞWñ¢õI/kسûecÖ?x†Uºï>—ï JK}è2xñÏt½D‡ONc²X­qßævæ'Às`¶Ø0d˜ú7u¹,ÝÊd{PkÕÔé{tË›‡š}îæŽ·Óu×E“Üd.´‰p"TA€î¥Þˆä¶}Úw¶µTUÚ[’‘§3C–_–R4æj’pÙùà‘N,÷nF\ÛËïhÜÚw¢ËçÞb?À’±g–gÇ7ÇFظˆ¤Î-*ÙSiGÝxݾŽ#'g†ð^›úmr4¾ÿåýwY7XÁé ùdȪß·ç?;?pþ:é~¯ë1Ï[Ii¥=zyúÎé ~6r#Ʀ£ñÑÅäjßÍtæ»X:»@ù!mßÙè©ÞõÈ‹6ûfΗJÄæ¦Gºç¦.`’¯¬ ÐWl¬)nöì9é±Ù[#¡pUÐïg—––Ø•ØÍ`$•êKd2½±ÕôUÊ• ]Ž„ÈܶŽ÷2¨#±.Ðsümz¢‰í¨ß‘¿œ2ÿÏ~vfè×£ó£a6—\ºK+½i5óýòª2%Ñ·bÉà]!Y~ÙѸÃé`ú9 H¸ä•á…ËÇ•¬rŽÔgÃÁ{~ÄönØŠ‹îZ&«) ƧN˜Äå<—]+å•lÝn¨ªê7ú²G£yðx,~~ !$PXlª@N+ñƒƒOBÙÛî­uU»‚F‡OûB“¡IÌ\’ù7ž–"C`ÙÛ²·Öéq¾f±Yžƒé%%® Gƒ_Íf±l⺷èe9^ËEz‡Ãw¿ ®tT½l(Ö9­Lßt·4"®fùÝ-Çg¶VÆÊR[ñZÙheþš•þó_Ç 0¶IT ¸¢,IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_equidistante.png000066400000000000000000000033451417122252700237450ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ # 4ÆOÆeIDATXÃWklUþîìÌ–Ýn)U¤`¤‰XA*¨X!üÑÄøü¡ÁÔ 1YÊ‚« „@@ `‚BbëRhKéÚV@[–¾Ùn;»3³3w®?¸S†í´]<ÉÍLfîÜsÏwÎýÎ7„1†TŒ2àœPÀ·¸¡Í<5Çgt¿Z÷&“Ùœ ©8NÅ9·y#²ÈrQÝb4€åô¾ÅDëfüÐ „:d„¾<{s‹ä)x0#¦ÉÊyPúÁ­Å99óçèÑHACiÉ„5'Ïå…eU³!q÷#ÆX¯C_9€÷s‹äË9µÆúeK¼SÆçNMW”4¹¶þÛÕÜ<*\SšÚZÔG¢èJèsK›ZKhŒ1µIvÀ|—œñ!ÝýÕÓéÏ+0h¾ÒyýJøF¡S_Œ*½®D#ªrI7Í q]?×­k7¸9÷RÀ£'iÜÄYnIšm¨úœöpë¨úŠZÔÕס9ÞŽŽDç-EWÏŒþ7” Ý4”e¯ºsßz^ZõÔòØ»<×:•d @œ1¦$§€YcߎýÓÝ¢T ˜ŸÉ㇠j./©AU°mj "‰Ž¨¬Ë—(3.j¦V¦Qµ-9ª]'ÕÌuãÎt >TŽ„î„€P\ôåÛ™Yƒ·77´e•Ÿ¿Šü¼2¨4†o~6ƒ†© –*T¾ÀesÈø£<·ýÌ tÖêøç6ç:Ÿ;X#Î4k´;«ÓhlTÌ®sÙZÓªBsÁæ±%6¾pqXííd£PLºÐj;ÿޤ&2Æ!D¸+ "NѦ.ÞËàÞøŽï>O·9µX-Á!ó{ÝJ£$’ãöðÈsœ$é|Nù½‹sîÚø.” Ï/íƒzEùe#ñj-kO"oÛ?¨l¹—~+Vd ‡;€xÓ R€)u‚Ôn?l|̘4 ›ý0æá׊ͫPYS‡Ó7€ü‘*[î¡h!DµÁ+0ÒDrxˆ|  «?§Û€L¯7ÓàRÚ᛿ƶÉýk`ò0´ÇÂÝ=¯\=TìØí »[ý¾û£†e!ÍeBT£0Úê Õ_ÀÅQœo¤¨n5Ñû=,·H&}Pø †ØgX¬‡ü dû‹=’‰* wn!^ö*ëëq®AGU«&ÙD\ghŠ™={¿ øòzŠ›_M0Æà¤ *o¿‹BÒðçgbÁX/&scìC†z„þôß Àf.^¾ ¡W Êv~_f&”¶[訾ˆ+ XPco®£¤;a"–0–õ”ú³Ck'6î1Ø5ûq¬žö^ÌÉÄYŒÌHC(à+ç‹=°…>f?\äH½j`Wy Ò\¡ÙöTrjÏ)郲uU{²·G3НéÑÈÂdqÒk7:cN þÄ™­¸g‚½›®_¶$sÊøÜY·{¶ª/TeuHÕù_{ÄÉÈŒÁÓ²ZÚÿ1t€’)bkH–sÝýÕôtç%KœÜ®­GÝ• \ÞÁöM(X!œI'2€¸˜"¤‚ÉØ•’Þi/¬‰W¤*N4j¦ŒkÂÊÂÙêþ'%‹q€< |2ѨçLzæÈåGö|±ÄIÉÙ³ýŠ Æ6Ï…Y]ù;Nભ‰¨èàÔªXaߎýϺE©€&ÌçªÚkfŽñÄ·»¦,N¬.Z~ž^4]òØ’$Nhr 8Š“¦H:õVœÞÆÔ¥îÀƒˆë øs‹ä¡É?*NpMȘW ÑîS–8¡Lêf¼òØjñ E›”ï¹Ã¾ÄI¯ëåé«D椥±uü;Ö—,ï%N,ÚD¸PaŸÎlƒZŒ—&öÈñûd¹ïT÷‰ÌÿzÚØ…ÓĵO.‹ÍO‚ÒîÚ"dé§NbòÅ,¹ÕÅÿõ:‹i¿»Ð#+=9:ù;ëP±W·æ~)Ó©yqI¶óÊlëÕöÇð?͉ í G’I Ö±ÿô(Í ´³IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_function_u.png000066400000000000000000000014541417122252700234160ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<¾IDATxÚì—»kTAÆwf¯oE´“ø@0!DE…U°ÐA«¢Ø)Xˆ•…؉+A¬|v*"‰,„øD-´XŒŠï˜¸÷ŽßÈ7áÛÉÜUb`›ø±{gΙ9gæœ3÷ç\¥ÍVÚÜ:t è0% ÛtÈ™T!¢RPŒ'ˆœ‹&‰ô›ôbYÛbñ*˜ºÀ,0“Ï›ÀZQ¿ÉKÑߺ)7!;É[oBA¿Ð1ð€œ‹À.>óh˜NnDÿ$¸ Vƒ¹”­†]Ø„÷¾oØÉî[à ÜϾk²+'¯S§̦QÕx²øÀP“¾;àØ –‚{àè9ø žóŒ{©3†À°œo@áŸq“Ê‚5`Ÿ<ÛH…Gà=Ù N€3`Ø N‘…tnˆ:[¸Y¼¦MOÜ™+ô°‹Ïï)w;ãÛQ°‡ÿ}ÿ[ùš}=‰Xi6@Ò£Îó íx óù1·ò+8ξå 4/w‘óúù^r|¾hµU:!4Î y.„Wྌݤ§&1MÕ–T ÄŠa±Ð–Èø:°QÆúémiáû[)v\L h0êGÄÃ…Ž°ï!sÀ^9ç•ÿVREKïõxœ Ëy{½ƒr¡/ýÖŽ°»y«B‚î“ä{ˆÞA¦]=DÙà™—»+ÿ{¥pÕy”Ec6¾ÖÄïùùÉßs\¼&±1ÆóÿNFÙ·s P®!F”_Ç%W±ånù#YÏ…^ˆ¹xe(Û-Ũ CžÖ,Z¾ˆ!š>záX.ª¨¬•‹Ieÿ쀾de «B´%—@šT#‚,Mçã´Ýü`j}Ô´iO"IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_horocycle.png000066400000000000000000000032771417122252700232410ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ  %„ÿZO?IDATXÃÅWklTE=s_{»Ýîv·/Û-­-¥TB­ÐT¥R5„PЀ’€¨?˜¨‰Ä5!j¢þ(h£‚‚PBMZJéÒò²°ØµÚݺeûÜ÷½ãŸÙæ¶lÛÅGœdroîÌï|gÎÌ™!”RüŸ…Ãÿ\„¿óÓÞ—WgxÀöé{_lyÿëNÇ"Ú) „ÌùÞ—*38gh¶>õÁa×Éa™ãžâaÍYpv]ÃÕÖ&PJwØ ’ý·4@p·êÞ+ÔIâ³`ÍY£9 FsÒ$Yävt|ôø}$<ŸüSœë—ê\ï©OvèøA™Ófê(sá´y&á÷îò]õ/ä5@îÀ Ö¾»Ü$‘ݰ׾~zï;¹—ì]CÚG=Cõ ÁÙu àêí¹õgóñy¬wgašðqÛ ™ÍÅÆl"äU/—©÷­°­¦ôíã7û®«“Sš7¯¸_4Ä?ÿÖ²9…ºK—eñk›/Yƒ‚Áæè­^¶×[  @E„Ü•=/çraß‹ã-ß”¾vt°ÙæRk®¸Õ Ü ªp¹|eÉüõfƒ¼F&GëÎwí¯m½1 U¥Ü‰Wž~`^ Ä¬#Uï-×õî¬thD©Î€à :i«ßa[±ûÄ`ßY§ZcRY{¨þBwOý…îwTk%l<ñËó¡_Óôµ&¨&I¬ÈLà¶j˜jjT 3ŸV#‚R­*{³6߯®¹Ã†&½(#¤ÅŒ±p;•[+­‰É‰]Ç‚÷ óqàdÙd0ž/z¨¨aIÙ’D–iX3—Ó emá+7Cúsª> ªÊ-dÙÏÌ€(‰Û äálÚ¾ ›¶oBÉÃ%€¬YOÎ<ˆP÷8÷{H´À2Xæ¼VSB6@^AÌÉf˜“ÍÈ+Èð¿&†àÓAø¥x‹ÓOãºÇ‚dRcZb6#B18ÊžØi¥KAH‡PŸ£åÇx‚,¨¶Ne€ªôpØð¸=ð¸=pØEQÄ\!Í”„‚Šªu²Éš_lÒ&2…ï¸÷«xcü¶l ¶)»]îš¹œ€áÇ——Ѣŋ ô͵'A¿5·Äïü£ÕÍ„xûFtlß1gO¾2â¯á}Jˆ÷*Pœc-ö6{qã‘ÆÁXì5’aÑâEHKM6~÷þgŸë“Ò1b*¸!é N@i4 Цڦ>¯¬˜W:š(ª¶¦ô÷µ×Yu1úÈ„W×mët XÒs²à¿+ãs¨ŠO3ÿj´(¢ÞPçèàþþ ï‰@HgM²díX·tõ*¶“ ³0A@é÷XõúÙA×€%#7eÛ66ø4ðy51h4;&lÊâóU%ÓKfɲ$;?Ë)uû‡ýž}ßÔí¹eO {>úzWÅsß¶þ^5z®Dàw·µSHLØà\ŸÝF;Ûê¡O£8&’8†Lý‚ò8Þ°Í(&-ËÎÌFV¾õS²á¤( Í*¾(ÇÉ4%)u±Àó¥ã#ÞGZO].8{Ù*p¡„ ¯ò¢¸%蛸t³»v_jв®Ît ‰° 1ñ&ñ®ù2oX/’¸Uñ‚%Ë(¤`á½9HI·€ç9xÜ£hos`È׋[ÁÞ¿2q8Dý‡‚ª·@÷t³›m ´Á³9—èÈ>µ€#|)WÄ>ଔ*TAÈ¥RÅN¡\Thðl@ïdF¸4ÓÄk40÷‘Œ Nb@â¢Ø)bç“Bf®èaïЬ ˜îT³^#vb€D¡MªédŽé£D[ºsÐ^0ÍŠQNºÓ†ÙS‰–ù^͈F@ü´g4Úç¬&«ÒißæjÓúÄ|5û ìØ¾j¹jIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_lineIP.png000066400000000000000000000020721417122252700224220ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ #$Ú9EºIDATXÃíWkhWþff'ÙM4‰ÍC#õ´bKhE¡(RZi)Š"öŸ£PhE¶¢TÍÕÁ6J@iŒ‹%mS6‰à“h MtM|$l›©ëŽ»;;³sOÿÜÙN6»Ù<¶ä‡½p`™îùçž3W "Ìæ1Ëë³Àñ_n.‚è9Ù*_HÇ)à‰& ¦õ›ˆÈ‘ÆäWT 5ß¶¼`®3G×uñÕÌ@IVÿõ9—:Â?qƒ¢Hz,¨ùô-çî_‘\¹ïÚ³l!€À¢@Ðx®ãâÃ𓪨 `<Æ*IJ”«¢¶#ºa‰ëûE…›AÒ_€L b¸×ƒêö(n÷‹µ£a&sÒF˜&@Wë'Eµ9™Ž­D D ÃA4Üõƒ#z¹IPDÄÒa…ZRŠW·w?Ú,@ÊÒM%Œ{^ J?˜Ó.=÷‘‡Ü{åÈþ%Fµ_uz|sÑ9”6/ „߀j4qÙ ^€l¦} Vù'>Û:ooyÙy±»iËw ·P×Åj–¸äe:ÞëùÛ€jàG“è9€ƒ`±^@D±˜Br @Ƶš/ßT~=vðÐRÚ³Z®È+¬Ê“ 7½žS6’'爂¸À Ìá¤+§cÌEòu'Þ/\>™Wu+øô/Û7 ²>ÌoøBÌ?l2×bFŠ’”ýOÅ\îrŸ®GzŽ´4\’j;ÔÖ¿Qԙ糵 ˆðÿL;€ÉXc½w{yþŸõgÝ×¾ÚI« éµyÎj+,°@€\.u6,NÞ€D{>"J©€UlŽóÇ-+]¼ð²§é§Òº¶ÎÐ}E­PµÎV¶±dñóÇÞÿã'Ó8ØÍoÈ&y¦ûÌ™šNzvðí5TZßûŠÓù!/¬Åò¸,–qàc)ž}B¨ùð¿òîñ¬†š Ÿûû¼U¿Ô»¥¶¡Þ£Ú‹Óðs_5væI½Ldó8þo?Š=h¦]u]7;v5þþžúÏ)ÿI.yÄ–\·5— ÏrJí»‹Ç½±Ã TçW“øµ·Ö©Ó+¹ã^ y·kLíæó[³…5ÓÙŒ‰…êèú²¤ ¾¾Ó¾Èv–'å÷”h˜°  “´Üh"¹kSnö p/Ãþ=7d“: >&Ç4’™°MY„qÉ^Ž‹‰ðÒߎÿ÷~[ŒZ™IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_med.png000066400000000000000000000023401417122252700220050ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<‚IDATxÚäW{LSW?·/AhuÂ`Ê–•e"à 6Çd!]bØââY¢!sYÔmÙâ\Â"™ ³ÄeKñ4Û@|ÅaD¶¬UŠ‘ŠL­q6Zhi‹m¡ímoï½»·9§9v}ØÆÉû’/½=çæü~ßû\‚eY0—Büï ̹¥·1½o1ª(ÖU-á~>át-\jáô@oSÍD" öÓÕù2ëà›â´µÜ†S)Üe;çHðg fÎïy'}Æð³£·.Uy(>lCÜ: •Å8€·¼¾RŠž/. ÿqœ9׋ö¾‰>{~÷·’É+ÛΩ›ÁA¡ºdbG¹u1´ž'bºÏÎÊèXƒ€@µsÓ‚²¹ÇØÕêZÕÝz Ô\™dà>@á=ì$3¨jò2%þÓní¾¥_wYýF¶â†•€–ÓðÝPí bØ‚Ün™²•Æ÷Â]>Ö¾wµÔ7}Yß¼s醿)}·YÃÂ}ZÀ$•„›¥Ýo”7\ëÂÁê«éñáïζûu^µÞØ6ãg}ÌÏ)É©—S~B$*ÃX½w½lðå ‘ÛDÑà¥üý.{ë®­²âeOq]Ó¼ÛØÙ~3xöܰQ wiî…ü8xÜ>.Çß^(™/&´ò…ÂÒ .²ŠŠÏ¤¥0jŽ-¯ë3¸uòó»ÿ<7­ÅÁiWôÓÈÅ¡:ΨÁ]—±ÞF:ö†Õ7k²´hÕ+‚åEêh“‘ˆD@Éå‡w’§SOµí.î»ÙçžòZ«œ”ó,GõM¢d–$;9Ãg±{ëŠéIoÃŽ¦bõ°fÜä1—sàZ¸OÁ,wsê •A¬Á''¯ˆv™‰(¸ˆ×ò×ewž¼Ti¾÷Wöy§×C;¶PŒoîû1«Iè šË3æÕ÷¿Jz„޾ɶH,ÿ˜³èKe­c#À,GÀ¡æ‚e9ŸpÛy·ã!ˆ29£&!göç˜×·XIN@IH®N¨«ð~Ž—9$ñ¯ l"eH@‹…˜¢Nc“,$‰~ÔD#@`½šÀˆ u&Ò{X¢5£ˆÿÕ—Ñ#ŠG`Îäç?î_Ô€>IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_perp_common.png000066400000000000000000000026621417122252700235650ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ 6ÕÂNy2IDATXÃÅWklUþîìì¶] e µÖk% ÁƒåQ(› I&‚þX4¢!FbÔÄ4T¢Qƒ1&šEA0Ó6R:mº-,°-´Ún·í¶Û}ÍÎìÎã^8ÛL‡éCñ$'3¹3¹ß9ß9ç›;„1†ÿÓ8üÏÆOõ’@À|5Î#pาéŽ3@!ðôm§€16Á§2_“Yß¿UçfœÉþØRë:w§K@¬å0ÖÈ™˜©è±Å3Æn{f:†„1¦÷Ò–Z×󷽦η>'Œ1jZk°%÷þ­út äFÐl*««?ˆÚ<7úTtF´Ð H%•µ ¦©_T˜lš0f4³  m¸@±ËÒáÿao¥ÛÅW;™²†¦¢kÓ} _nAS(DM¸¨”pHœmÒ_•éˆ)«Üôè†k¸bxÆpÅZ€»ðÉöͳ‹ŠöÊ}W<½—þD{_íÃ\‹)BJ¡BZ¡Â€¨6•ó_À¨LÇ p3`4wµ»§˜µHóÉCCiÅs!œêïO)  QYí4j¦Õ1cÇçßMÞ2¨Ô<  À> `.°œ¦0“¶LèÀyÿÜY…y²èJTLpËÙÑú܇ÿd“~M”Æ7? `·G?ܹpá=%^5«îk>·äíú†åb&k;=ñ´ `¶™*;ZU ³ P.J¨Ð uï½¶­hÅÃU¸\똒õ&‡†Ê:OÁå`ݱÌ)\9 fšaþÄ 8ŒŒó#CL]<ÖÍùgœ<¾8X¯ÝõãþÏ{©îïßxÑ~ ¸dy8Ø®v?®'ÆÐ/&±ŒÜªRÚ$©jCJÍöHÖÆ%Ô4¯ÌDÿ8­ŸÕ}°ðÞ’Rï©_}û×W~þ+äé:Ð;Æ@z Q9%duMP¨*$Ùª€$€ôdcÈYÆŠìØúzѲÅK«\Nç:-£zG"eÝþ Ò³¿Co°Ýa=$«™Fé-’&ûUªÍH ì Cû¾­tñÎj]¡kÑäÚž@:…KÉ #¦D¢*¶nX“*çy–:zFõÝŒØI1·óå7y ÷ÛÞ¶Æ‹Œõ!®FÖâ‚FUAcŠ ëb€#&:¼óKÈ›7«v 8–Ìy²:«§Nŵþ~™&t¦ *•:t¦ÚѪûjœ­_ŸP—Ú€š¯f=ï%»œn®¸~QZœV h/<Á!웟µZSöššŸpÖ»!c gZoêàÉhÕl²´ªÞŒͨ±YÖV&Ñ‚Iitº˜)Ý¢3¢õ¿˜ÝyÀ¬Äæ€ÊnÐjÿ‰Ý¡•[Û ŸIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_pinceau1.png000066400000000000000000000022741417122252700227530ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<^IDATxÚìVmL[U>ímK[hQ‘ñQØÈ`JøÙ@`hÄ„ ? Qã7e~f&Fc4‘ùÁþC̲ùuS£PgDY"KÇZ¾V --¥ÐB?.½··½½_ž3o l€Ód.1=É“{òÞ{Îó¼ÏyÏ9W"¸Mp»ÜT39yÉŒ›o¹sË®X<<½eUÒ‰XLŽ%&ÎæX:ÞZ“ýÆv“V·½’ ‡!Cç N}Õ¹ Ÿ„¹ÁI×4Xé.2Ì*Š>uöâ‹3,§[ ±5†Ñ+x_ϧ?ݹ âMˆ"¨ï:úÔ“•æÏžm|PÞ]­zÓlpÀ¶|U.“5ó‚PáxQ'Q<eø6käâC~¯{þo\Eã@Cm5(Ù[ôçNNƒþ!P¢OÎrÿ .ÏB6<´Àuop µêÒ1om'ˆ4H~âÄ™‘,ÓtÜݩô,;ûÔI)kײh©B-B "ò;Óu×ò­‘u]–éçûùïÎ[„ôý 5p¬µìÇw>¿Ô«Ö¤4‡Â‘®“§'¨c†E‘£ƒç¿ˆ®#Eã_¾ý½wë3šåàà[x‹ÜÜšPy .® vƒn”›l³¡ýÏEX¶`òf§Ëã!iŽÍlìñºF¤º¥®JûDS]}zŠæ °µôêâÎÕ^pÁ渴€¥×l_¿¨QAÿ ªsäb—lµGŽÓžœªû0+MŸ¶(½¦¾÷4VØý€ •ûl3rûØ(0®ÁŒŸ –C´…b8—˜æ¾§áñ×6›Ó66¸ñêe;Ê•‚d“õDÕ/ßWº_ûHÛÓ†mBnáá%k©Ýhæ¹Y0‡ã`‘. 3fY3ÉD­â„hb2-ë.E^Iu½J“Z#‘HxŽe¾Ç= O÷:à{‚‡b„¿~ôX^Á®ü‡U²„F.LWºfíêÉ߯± –(?í‹æ(ÏN†Yú*Ãs‘‚ D"Bâ;íb´ßEŽݘiÇ᎗ÕêÄNë„LMN•ˆ„dQ†S)å˜Z°Ä¤EÇøoïÁtbD„XL1RD`בnÄNÄ=šû1<Ýí.LÒ<5›±+7š]TÚjžó©vdÊ”ZŽ ¸O//œÚ"Kv«,·k±ÓNŠ3«œñôP~™Ñù²ƒT, _¶ýÌ죄9M˜*¥X™œþ éž³ŠPbÆÜ?%޵ØAijB8Ä ‘%Ø·ï޳Ϛ™ŸC¬Â/üⵌ|¢Âg"<¦äÚNÑjöß’n&@­ôA8ËêZv;ý‘BÒïž$²~d9EQ/½.?¹â¨Wç•?vˮއ^Òf×>s2©øAA¡ËwÃÕ©/o“¦æþ7?XÆ^Ÿ4E_ÿ%‹ ˆ øß øC€ o6áÓ†‚<IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_pinceau3.png000066400000000000000000000021021417122252700227430ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<äIDATxÚìWoLeþ]ÛkÇ(½eP`nlŽe˜fLüàÌ>˜ˆg&ÑÄ%û`²€,ÙÂöi¡N![ð‹hâÄ™ ¸¹á2·uÌ$cŒC ôO(cŒ -]ÿq×Þ½w××÷j™YiCŒ¼É“»{îÞß=÷üÞÁÅ‚u*òêo¾”·õ­Ûý· Ä´[t9l4¨µRΣF`?9o]kYÆ@ž @ ´À§N P†’&A„ÀO0»5'žË2ÿ¥·¼ãC–î}±Ìë›Õ†ýÓf¬5”gç>¶3¿x7ö¹ï\Zj~þ$”^óJ ”ÄR’dNYÉløK>4}qéð¸7òn×å+ðàîà{±ÐL“6ÛP§h@l ]ÇÜCXÕÊä|╚¨³ëLÍ#;ñ¤ù5JŠKÍø¸ãÇJÛØÔ™ÎÎN˜»ÿë;|ÀsZá¥8…‘,ƒ–)dŒv_Лö±\ŒÿV¥Ñ6¼¾è)fAÑÜû3©«@“I\¢ÉÛKæês. ]õ»¾Ï4ß5ÿdC2;aƒxx†+ý·kPkFkþ÷~`hcIë*’‘IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_pinceaubiss.png000066400000000000000000000024431417122252700235510ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÅIDATxÚìW[hUþçºsÛ\Í¥vM²uklkZK¡RÚ ˆ•"ˆ‚Ð ˆí‹ T‚íƒo¶ŠŠŠH±âë/´šÒÔ4š¤u’m%i.›nwÛdgw»·ììÎÌ™ñL˜À$ÝM›lkA<ðÍafÎ9ßw¾óÿç̦i½,ä¿E42[PÜxilÆLçá¯Ï~›¨[üž¾¤£‘KRäË:"÷%h½08 g=.ó‚èëxú-ù® šLHEí)hÄ>9£¯îû£ºþ<˜ŒÏ!âÓ¡sg”»â@ÿ¥k5$I½®¨Æk¡X¾¦¯çœëþ! dSñýgQ©¾e èöO¬‚ìLÏj¯Œ†SÒ¹žpiàTÒÔ×ý?ÞÎ+ðKï¥Vœ½rJÙí¹Î^ì; Stiœñÿ¾œ±–%àø)ÿMG‘hêÅ3&!4t¢S¿¦HòHd"à_ÉdnKÀ±Ÿz·çU}ÿøUù™®?‡!>Ö¯fä+Ç,b942ZÎ2.)àè·§ŸËæòû‡ÇÂÛºzÎC.<œUÓÑOHLœšžˆÜ‰^ Gì\}øè÷»udt µu÷öƒ½œ0 ©÷I‚|WI\M8Û–SæŽë2ù²éù7LâÁ§L²Æ¦Ü ûèŠUR™\D”žÇÆ@jØCˆuì ˆ¬íÁà0,ᕵ=onÞŽë* ƒšP<Âkç”&{8´÷ÙÆm4û«Å67G=,0ÐÂQf3ŸožúÎê³#Š‘Â@· BÂ1#ÚADupïúUÕîµÏú$Žö ¹ž½‰Ì'+ôdô±IÈÎá| ÁHÜ€Ñ8‚H†Ág€v?îomdzKeÁœ…{^ØYûø¦uê«+6ó ½†c(/KÂÚÐ}…¤ ¹P¦#“0‹ÃTJ…+iff5#¦ ð¬†¢ŠfFU„ous:¥¢0v;e›j8Í%œkoG¶ë䆴|¡>C"r ¢Á Ds9ˆ*9ˆ+ $ ù´¢ë3 Ò£2"šaÈ*Bré1ÛZ £€¡:ê4Æ { 2Ös‹»˜qGC{öºr’êjªqd 2‘¬›zX3´Ã4ò¸î ÊÛ$j‰û‚ãyÁîg” ¹é¦'2zÈza}@¸D…E3+™©fC·ÝpbAl—ÀÙ©c‘‹vL8‰œ˜ØIf”N ›7¢b¬Hgí™Sö`ú"²y³Ü°XoôÍ.]GÁL&3þÎWSå-¹sq:¼gâ“aËÐ*CÓÞåšæ8W„縀(ð ‘çFyŽuìÚ*—ãQ쿀𶟀\¬º(VÎ] bU=x<Àº5hñ4BCmT¸%p‹‚_…„ÀóA,tœs±2Ë2š¢¦}õDä¶(Ú@ª¯ÁÎx)ŠñÑ [ǰ®6Ç7rœ°Z¥6wU-[×視Vð>´š›Zà¾jª%8–›ª"ijxr±cÙnU<¾MÓ­.×Ä bÀ‹[°À,ÎË ’OtWV2 ¹Ù,|ùñ!⎇LJ³¸òÛ¸©<ºµÝʨ6/4®h þ3ÿ†ÿ (Uþ`C^>e 9ÚIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_pinceaucycle.png000066400000000000000000000031121417122252700237020ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ìIDATxÚÔW{LSg?½íí(´å)* H†F…-C1Â4º,3qÝHf¢1{D÷ÈÆÈ¢ãã¦q3šŒaÛê6ÃÇ&F`NtÊtQ*NJÁÚ}ßÞÞöÞ}_ýº\¡…jLÌnòãÞ{zîw~çñó!Eå%û_¨X^5ÝÞDx™ˆ ìnÝ»eð¡Éd1Ë_]Äøy¢~ßÖû&m+îC{Ï,(‡™Ó‹Â‚Ž+Wáø)=þ÷Ñë6GàÈ]kQ*NãXïü€ge¦‡!’ŸÁ¬›ÖšÅë¬èu*Ž–Ë‡a¼ˆ6/•~<–’Ùj‡¦=Û!Ð^üWó/ò?,½‰Ä…ñQŒa<1жË-˜¯®I}0'vi ðe´8Ÿk¯.aw<™­‡Ê" |»¶¡Ü@â;úR¤‚ëÃàž–ÑŠñ6oò.ÏŽ´CËíDÏ^•i§þð2›±ËU™o?¡¨]\@ÁSy*0Ú¼0«Ž+Gò[Rc!ö^å3þ_½ ›Ï«\B²ó{á±’ù3’µY¥@Q!T| VÃu2nBú4B&Ps!ø|͘ô÷ë\ ËËÃeB ³#гˆ@ê½¹þ#ñúj8?Æ?l@X0a BZ”¼Fê%èÌ»øš:¼ÆþTx%DÎHmS±¼÷˜oÃ×í<üÞÇ#ïaˆ„°‡äsˆx$ͧ@dCD§§äkg¹/8TJœpAŽ'i¢FÛtWÝZkÿŸ¿B›1¤pŒ¶(†Ã—Á&*oZÄOOw !¢ƒuC^ä2ÅÀ'ÚZôžBÒ“cï7@s§þèÝKŠÇÕz±W­`ºMÜ/˵t xªöéjCDŒsíZð£©L@¥aò„ ÐHÓ­i·›»?üŒÿš1ZÚ¬´’SwZÑni`ÔÁ²¢tÃUƒs™Óí­»ÒçT×»c ÷zÇrIJ<ø[A \¨ˆáDi¢ üBBX'Haë>àØ…Ù¹ù…9©Údæó“ú†Ím¿ÙgÏ_j)Wužo±KÖÂQ`C ™h½ø]NŒS£6"–W€?(,À÷/7T.Z´òãT—Ÿ_bÊXáðO»-ϱ€ö#(èq³Ò§¯{o{CóΗ´J¢ÀKÖ ÅÕ 9”3%5n„ü·=›ìjŽ$œiï™}ë|£ÌiêÅÓñTªÎœœ«™_EÉU3¯1u«ÍŽ|¤ÕEo9Q¥nje p)#a«ÚQð¯Žk/vžiï›:${×g3x’²òå~õE¦Þ«‹…P`™ÏÒ—-)rš°³B$#gò°F”¶¾l¡¸®tXY0 _"ŽI™µTd²§¹)ã+㜢ÌÏÛvŠ”Ì 5éx­·æ’f³ñ[ÛN”¸|2… 2 T®öCrÎç.ºL?Å9ÂU¦~+œ4Á ‡u#é>R[1ûVr8‘%&ó9¥÷6§¡;Nïé½[v[ÿh< ·#²¥-d*r£7ý='Ëü(wŒ,Ë&¤ÅqÈøo&ÜtÀeÛ½–jiC“F ZFˆÉâa¦”°rÎ5¹9°é»êr²¸‹èH'EŠUuT×hí¾Üõ{À€Ïiçx>˜ÈwÂX犜d¦NNšvŽ‘'@&“Ås§C²F›uëËH‡d%ÞпèšQ'ì‡CupËÛ nÞNÞZMæH'fCØö¨’{ #{âmLÃB`8føT“Ÿxÿ1yõAàQ\ÿ 0AÏ+WIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_pinceauhauteur.png000066400000000000000000000022201417122252700242570ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<2IDATxÚÄWklSUÿßsî£Û:ä¥Îm*pKÜø2$jF4 (ðA‘3446a™$øHLHHÔ8‚îƒl²…`‚”„‡B‚Æ…-.EaÅÇ:íº®Ôvm×uíí}Ïíî | ®kWNòËɹ÷<~ç÷œsB<ÌÂÎdÃ0ÿÛgºc³ o°À&Œ¢™ÈHR”zñsŸ7G¬8´j”Ѷ•‚Ë‹ Ì êø;\àr±oŽ˜Š (™¨¼p1")(¥íùÆ·¬°ík{ª¼dÁëºN@ÕtÀ˲Àš5GñãÉ.†‹$ñ L"¨YùÚºò¥Ëªk^¨½ûleÕ„ Xˆ£?œî˲tfA#b)¢Ì^[…åøÛ婾vËÛ‰%@”àxž§À"˜°Xe%‰€XK7Kü£àÃPPP@ûÐ~tŒ@ûóOmÃÂ@ß%P$Ѿ¶jýƒ t9z¼ µ"1Œ.B0¢ µ¡B˜þS-É¿+ëœ]gpéâh‘õ‘1Iß¶à±òÖûûS’dRÍŠªåtñõ÷Çk¦0ËÂÞ/_!ß­±’bži¤íU%S8ݹ²qBT ²–ÕYÐØ4 L~SñTI©ˆ*€) òíCQ€a„„DIð˜ù„6WS<‘éœ(;XHQ3Ü›öÚŽÿŽóF@T¨üŠb“>°mûι/Õ¾ìèè×ëò£€b8á¤-Z¼¤èývÛ=ÁTÍ/ÇÛw¶ßÎçÜ ÿºǪF¦Ž^º{œŽ‚â9ó, {ö}ãò‹•'Û\£ÿ ¯îù゜sˆ®|Œ@užûÓ_6€Å[¶à‰(•‡š>u»ú^uvÿÈy6ŸêåYŒ>,Ø Z;8Öñ}âÌÑ´‘$yºÓÞúߊ†ü#³’l—É[›—ëšÚTúÌsõOÎçd@¦aè½Ñóݹјˆ…³š~n²MØ4ì¤ÄšëƒÞTBfh6Ä.U–¢yID­§ºù²……»úûoZD‰¤3!²ÌYQûæŽö u{^œU?uðôcÝN׆˿…5M&ûÝÁ¡‘‘\ùÞןߺךsØÛrÓ[Ñ‘ Ý×6övž%ƒÞMÒR|^Ö1ÄýƒûeU­ Ý}a¶žÁ\ˆù"§Îw:ëo{†7'‡®ÄÔÄè:92ŽbŸ¢NnµË’ØÆ Ö†øÂ¯r®ÀÕ«=­Zl¤BŸÕbþ+Æ…dØQ•þ; ä¨ï&­6er+ž6ñú#ûíºçe¤ßñ»I\¤ëßòyPC’»N"±Rh>ÚŽ›o‚ÌŽô™Cñ—„øÃ¨Á ¶² "¥¥ÐuÛ탖n»°»Ýîsvg³³ó¼3Î4[Ò D¢…þ“|¹w&çÞósÏ=÷^DE0•¢S, <ö€˜ÑïõSF@£Bêy„~îˆ}0%’·Ûî +iøÂþ‚€É†õ6¹e¼os¦bqªâü™¯ñÛƒÝæ{u'=×ná'xžk¼ÐzSþ–úõ®@Üêkh¹ð#+ýRKÐJPɘt=ŽÙ>q‚üô’ÍWÄ;®]n˜ßÓÐûíþWˆ¯ž7¿»V¹HRÍ•‰('›€ùÔgýÆEët)^QEÉ-n§³` èÁì(«Íÿ±s ãÊœ;¸¨n»%u™dûò|ªªªõºÛw¶Vèyå  ošAS—œsÀ°#*´E(Ñ"E›¤ë¹/[~AŽÎÜE û•uÕß~«¼b~ɾ\$µuYóíÖVpÆÎKX‹aÑØiRb@BB@‚[nUgê4ËŒ 9Q€Z *9Ú›û…¶ê'Oß§†¨6V­È~¿¾öÅüLõ늘·*üÛ1pr ZýB’É_•@óD8Si5n${\Ò˜ÈPw ù¹C4Ç?s}˜®Y]†&Y–_ˆCÐxêxßßyûÍá‹ËgïÉ€ô¶èMwÑÒ.$ø~Œ²ÅxcYõö—<þxô´L/š»Á0oÍ^%šÓäíouHãI ²£üsVÜà‘oHkÄ =.²†bØõ}C`°ÏruÜÛgM+³÷¿¶ýeÝ4mðVö5üÚœ>` %üaŠ¹Óœ……B¬tþÔäÌŒGnÅ¢î›ûÕÙ†E4çÞx´xù¦Õ^Ûù”4ߨ=`ŒÀæ§ôØÁÏ›7h´Wfg¯…<úkŠáöZÛ@È7b=úч¦²YÆz„¦¶zºzsÍ °aëI]Çu,+{E¥×_ºæ¹u–áH%c? s‰XÍr׸$¾H©¶QÒ931¤we÷#óu†âßg—Ì`i PCí‘•Åy®èh ¢ëâp3èw˜7ÁÒ× –¶BQˆKà r‹KˆææQ›÷uYÚ¯êØ°«‚Å]r¶‹ÓJW/„Ép9>{oO\[Í¡ƒG·êõ…Ç2“ µ½£tvZ‹ð2:ÖIAæ §¤—J{MŽ¥‰Py¦]5D; ±Ánˆ»–ÿÓ¾[‚]›öd™V™êPÝëw—6~yŒ’N@h€æéã‘Ȇ%1ù\IÃÓÆé„¢%p²§ÌßH¬@}ÐÂJ ç–éVÝöøœyaÖ•Êž©W"Ù9ZA„Éé…Æ,Õö´œ}›Œ‡½épé(ÈFàxBý+ÅQ2¤J@b†mh¡¶¹d™©:àsÆBîwМ‚5¨n–±`Ί¹¢('£¡´×²ÇÂ-ãuÙ®cR[T¹¢º6Õ€NQ oŽb£=<¢näYªR™¡ûDÒyu2k÷8>V˜YXúÄP¿pP¸$}û#Îî ÍÙÀăßDñÞú´ŒïUž©Î‘Y²RÔæ—.y·¥‰Ç±œHÔäúxs‹ˆò”Š<ôW òøeô˜ÀÿžÀŸ $S„I/ÂIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_syma.png000066400000000000000000000021611417122252700222120ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÌW{LSW?§¥L ¢ јÀ£Æ—ñ‡ÙüÇ-Ë2‰Q³ŒL£!1шƒàL0úWƒ‰•øØH‹T*¢ "¨øÄ鯖¼-}ÜöÞÛë¹7ç&×BÔÆz’_Úž¯=¿ß÷8ß× 9Ž‘\2áq_0B\\P27çÏE/Û²ðV%BiS¹rp¤päjAzœéÑ÷Š­ Åè³ ø0Ï B¶l¬ñè±cÄE²©$Fý dþ¦hŸÅðDù9€÷¬[› 2–,6:Ÿ½õ·›DÛ@ä¶Æ¢ƒÑCmûnשÀY=Ô<àzо{Ï þaçÉgÏâ{, Ë™æpÎôo—§\æžjÖkZت—@Ù6Äý…í<'#¦?*ÌE 2uV´ûª½áø‚ý7Œäƒ~n×s“§{Îz¡¿>P)†Ý8lÀ¿—Ú¼CÞ«=¶~šk´µKuxA¶j¸ë&áÙ€Èa;‹=g$…ÂQ„yÝŸl_ç¡[5WÀ½³®k„Ù7ææ\˜Ì@!8ø=Zñ±×PVu$/neÚü2ëcÝO—jï‚ë„ãès3]Š£Ëbr'à–’L#òÝV~<5NÎVõë./.i&ìz#µ³›t·`;ƒ½•’³RòP!×W–®ãHã?ÕeñeOÌa¡víô>œñ ¹HÎIÉCõ\Þ®*+hTæ1ù«’¹ô„©õSò ´ŸŽŠ‚„0!ß4Y8f,ÎÏ]½tÑÙÿ[ïo¬¾¡­†Ño­öSÁæ;TB¾kN—$OS(ÔúõRu‡Þþ†´ì1Øw'È·r&y0òkç.¬e,V•îRy|CÑk°ÛrH—³7ù†Š­öü¿» ¯{”5UòvSÏÊ–K±´{G‹älú:᫤øl¹ þ,½²¿iC wÄ.[˜qê齎_®Õ×nkÿi3EóÊ7ONnù&áˤݾš–?Q…üü‘sÉSä1W´n®l~Ñlvšò-´å&óM‰Å–2gz6ÿã…+Ö€y)iÂA=¯ÀËö'ç8Ey'3G‡œÚ¿Õ‰ÿuöYi2ÇÁØl§'h© „pƒà*"‹Ÿ‰¿š& È Vü.}sbmÅÃ\û·‰ƒÔë&Kî¡=.¶»%^S8bg y}]W¹9A‘¼ @ø»•6•pÀ#óòœò&’‚+äÃÎ{.¦ÀÇäôY„Ïì/¦`ˆç’4—q÷ûâÞüNNEè- ‹ˆöúë$v5Æ×ýÆ"ÆMÎÉ\Cˆ=–KàÁ`ÑoŸNâ”÷=á˜b“mFP‚OòÄò)Ÿ>¯‡Ó÷ ÑÍ´=)Aa0†9)J†w.X öOïß‚1ˆ,Gë40 ˆëAqwt9Ú†4•Kq#_ƒâFä@v6 É Áš¿×L_óŒT³HvÔrœù›TG°›¿MmMT4TÀwnÜa8}ø4Jþ¦e.;ÈrAA0†99ëÚp5,Øß¿yÆ 6zþ¦eçoPœCãkþ¦Y@S9ÖüM•lHÍ@Ì ú; tÄb ¶®Ri@ Z ij.íx†bzZ$Õ[ 4Ì1‹€êïiùSÒÒÈŽÀÚPËö-»Šä( |ˆ{ÀÍÉŽA_G ,pñÊ5†]ûÁäð%³ Ë¡4ÈrcŒ¡rψŒp°ƒ,c˜C¢{@Û´è9b31ÁOílèµ|5Ðò³$˜»ì/_½cYg"DK ßÿªYDН ìä´-Ï“ 9T¼ªyO¬å@=@ê0Ä #ø¿„²!(Îqbhü§áSƒ¦^ˆA9§ŽX=T+Š>R»€x+Ðà&ªÅ@ƒfSÊýýýk7¿Ç¯õ”Q­. ¶”cfeÓ2óÏ1½©ZQZÊѪ:&º”íÒðÿÿbK9¢r©M2.~ᕦ>©aÄ”rT`^ŸùýÓ;Ù¯Ÿ(¹@| Šɱg`kÍœÙ:WòÛÇ7 jÙ¨ç#Õ 0tàkͼ¸wYûæñ­×hÝ&Ä™Ï%”tÃHÍç䤪æó!Y¬¦f>'9’Òš¡IÜ¿pðÜ·Oo¨•Ï©^ŽˆDHW`~Jt±W DIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_t_app.png000066400000000000000000000020301417122252700223370ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ºIDATxÚÌWKLAžÝ–ŠhÀcŒñIТ‚1€L¼è‰Ä‹ãÅèQ$z#Á“F &ÆçÁøˆˆ,¤ ý§ù'ëVÚÄM¾ü³3ÿî÷ýÿü3³+†Aóþk‚ lÄæøIÿLos°»(ù;ðmZp@îS…·OÐ21·À€÷/©¼˜ƒþDZ«PÿæNÍw«öƒ)¼`›õqä£ Þ½.v“¾6Þ9|7öÅ¿0–©òCÅd×ö­±ŽŽÎnòüU#»4—1¾ƒ’ZœŽ³jǧŸ¥’¯]³*&„›’”3À_¥8÷ @Þµ«@œcœF>ðò–vïÉh››}À>~³ñù(¹Ta]Ô'òÉË/)Ó”»µÐè½ S>µ`4ð©¶TT@*€kà¶W|€ìTßÃ`· 9ð"§ûÄà¼hÜò2°|ú‡^ÀI€ÃJ¬Ø'€¡!¿€ KÞ†{ ï+S ›ôÕÎq…)ðÄî›Õ6dgUdD½eö¾GÛ ®txIÆT+¤¸öiÀm$ŽEvïÊ)gÑÎ%¡t‰.6üžõZÛSÒÒÓO^ê¤0ÇVØáÕš-}I.à1€›’~¼[S”µÔQj7äBÈWþD&z[ÈkBÚÆ•À€_o•T£ÉÑÇ‚ú7x&'-€Kë ÀýËg*«,ÜëŒrC ì }sNu7÷¸½òÅ/»feÝŒ•.œsJFSÌB  !;/ÄkÎ9ó·l.IÅ2Q‰MŒçz{>’¾þ~Ò59K<id**¿júDi—TMâÎJBwI¡Äˆ°Ù ‹Ôö°îF‘Ãn/3Tõ€4(þÞ×O>»ÛÉ×ÀÎü©UÑô÷!Un *ò«l|%Ô*’ˈBþE’‹×ÏלÈ\‘U;1âuv¾o'C¾Qâ•|d::ã’u º‚J¨ —“ÀEÉ2RfÍÚº™ÛgE™¤Ÿù¢#Ã!u¶Q'ª+ª…;TC1K+OOÊ[&NG¿­–!®Î{^H£…’Aw9$6K«™U9RÝœŒ„§!H,,Ç6«àDiUM¢4ÏHú8fS€§ãç˜çYO6­F ›‹i¢ˆ4$¹ùN*­ûcÂ7”tZçóßP0øïuÑÿŽ 0¡¤mˆ®®~IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_t_conf.png000066400000000000000000000014651417122252700225170ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<×IDATxÚÄWKhQ™üšJ´ÑÚYù¡ñ.Ú…hQ("EE1ØU—JºqU]Š ¸q«R]\d¡V܈[AH‹¤bH¬Ñ-jÚšdÇ=ùZìN“°–€0çÅD-¸Wöµ’GÏÜty¼Ç—á*\ƒ)áÞq[I@œc0Äó.`è±û÷*¸x†“S¿ø ÜÇç›ù6üÍ–šÔI`bNÞf (U\Û@¤YV Ön£uû¨1 ó1äÀݺ~X”€!ÇüX´úMˆäo?ÒëqIa\Œ”ËŠ{ûɇb:‰Í$©¢¹¬•º òëg‡å5mž´ÑþlæÇÖ+÷¦Òœ˜Š–CÐæu«]qGÿ>AÞT×2s„÷ñiAîŒáò2'f±U J’xJ}«€|mg· MˆÏã ‘F>ØkúಢHüÝà¶[Ú–=°´R|¨¹}1¿ ‚æ4æóžÃPtÙõ€åHÌåîìÝ._ ˜ôcòõì¤Ó¶Z$ÔÚìèÛî ø‡ñ;)ýmqúñ›©¹"ü¢¦„½b½P¨|@;ЬÓÿiaâŸÀ_`Ï,×; —×-s̵wB÷ŠZCjD+.1Y™­K·^d”ò. Î†0:’ºlWX”£Vü_€¹‰í\²¹fIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_t_equi.png000066400000000000000000000013151417122252700225270ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<oIDATxÚbüÿÿ?Ã@&†,ø$• ÌçÀúN7-ÖR>@Ì ú; tÄšGÐ"A¨å °ŠAÀ)Dhš´¡>ùø*ƒØP9)zDÁYdèkcŒ¡bÏì£+@ŽHâP¤PšupiÇ3rÀˆ/B£# "›í¢ÊŸé§8”K“ãBÙÐjùj CÏBÃàædÇPš—Æ 6¤Ñ¢…À=h:`€»¾Žƒ¸˜ƒØÈrT-€`¿È’ÐÍgà,yñÊ5†—¯Þ€1ˆ,Gí@³€¸~×¾C Œ ^?º±œê¹eC eËøEetØ8y^‚|~fë\ÉoßÈ 0 yI2äR1lâ$>3oâi$›E¦^±š(»žâ"$1]höÔ¢š€@Z;¢‹Kq2¥S þÄ·x)E€¯?Ühj@EõhÔLâw@ìHŒ‡ˆÉ@¼X,ï€æ3¤ú–Ž@|¤"| ;ßbËàÜ•lÜøê ¢rÐ@~  Ä™@¬Ä ¸¨÷#®œBlÁBdNY4èPð~E ?òår±h×°¢T`AË\¹mBi–iU Þ‡CÑu ±…ÈåV!ù©ÿüâò€U3(>×Ó¼UŒŸõ,lRÀÄJõ 1¨6@tALŸÄÔP9’ú$· ©T05ñ5(nÄÖjba €ZÔ€#„H ª·H*ˆH)ThÖ vSœ¢ɰë¡5"™ÇBÏÜIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_t_para.png000066400000000000000000000023201417122252700225040ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<rIDATxÚÄVKoU>3~4qJŒÐR‰<Ê•T]¤›’4É¢IECWUH!¤.`Ó„@"€l*RaA*Á’cB’I»MRÙnâGüŠc_óºs‡;áN4Ɖóì•>ÝëyøûÎwî9sMÓàižòpît“a˜³t™!N Ç&€÷‘éA;½$kÁ#O!òQr}Ü¡ÐǨɑ#Ý}4r=âúšÞ;s)X4Ï$j]ÌEzmý°0;•!MÇëÔ‘»äÙÅc­=ï”üMÅÑU‰vk¶8¢;7“Ï—¿”’bÓl@3¡¥èãë=’`—nßìé9í÷H¹1gdª¯ÿ“ÇýáHä"ÀÎÃØÈ¦’füð5ßà…Þ›mÓ~¦üO7¾?áÕ(ü¸ü"{)œÃ³ôe» ö[³­[¤ú`Àëqº5iÈ!l «é0”£³ðë# §0)i ‚Á†HWµ5òN A 9÷ckð›w{ºŸ÷Ÿpà«N‘D…OŒá8ÓI–ó˜+IW!X+ã*TT¢igÿkæÀ¶Þž¸á»tþ¥‘v;êR¿º™ênÄ ‹A ¡À½»îõuNfßâô}È”PVòPGeK‘&s‚Z;”^`'ÀÑ÷̵1I­þRFɤ€+US87Âd¶³µ•^€,w{/Ù pyØç:ÆÙ[W3éÈBˆMÂÿ(5 Øg/@»t½–dØTŠ,Ý4v½ ©­»‘î&`§^Ð’­9”j¦H0ÞìLK¶îeü+À=÷öÈà/žIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_t_perp.png000066400000000000000000000026241417122252700225360ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<6IDATxÚÄW]L[U?÷J[ -eê`DÇD!fB˜Œ%Ñib¢11ÆGf4ÆôÑd/{Ðh²>,&ú ‹1Žìe›°Á(b-RÛòÕB¡ímoÛûu®çÿ]®¤|tw’_Î=÷þ~çÿÿŸÿ9—Ñu=Ì¢‡\øÝ†y W‰¥²ÛƘ|ïèš”߸‘Tç¬Ð•%}ÃäÛw òûºK^ìlî@á‘#¥çoOº1å'C¸|rÓrjÚî"c+äÛ:홫ÇÎk×u1'íŸT€¸ïh„•ÓÏRÐgóïÕ¿w5"/ ‡â‘E×'ÌiÒg#(&àvrÏ~LÜ€šZ„Ši±ø8¿¶¾©#ÙŠØn`¡þÓ. ÁF}MkpÇû´î§æ7ù—[Ã#l©¹­\›I_ÈîÚkb¸ã áÜ®õÒpÊ+‘a·•}¶¾‚uƒ ¨ºòĹЈÇýsédLÐ&œ–"ôü‘¢VÒW`÷{  ±ÐŸo»CÄ+K­(-EØøN ç!˜å‚×w@wĹ‹·Ö+–è„ã_!m·Is ©˜X¶‡Ta‚ ‚×Ât2Ç‹Uv sâ°¥ Èyà ¦BÛt‹òPo‰ï¿ÎÓÝKpà]P熨·8Š­gžpÉÓQiÁ ÔRÌÔ·}uuUŽ^›íæÿ¼ÚØüi°y&Š$êFþ>΂!5¡„z»Öî>ã´H'Iû‡žÖ§ª.¼órw]µ£Óޤ=:ªM^CÞ¹y4ĨÍõÍDµÑ-‹z«Uj‰àp¼ÔPÓøfKýÀÔ_AéÔ«g}ÕVÜb‰/ 10‰†4Q’8žÈªúx­¦ñßä½4AfßLb¬§½ùÒ…óo9)×›IÄÚÃã>Ç| „u……ZL)S„Л‘ñØrZñA¼Q2jú @ ò{Ê~þÑ® ÇO[8®KHlãDá²ÿú 4ë÷£™5ÕTz2Õ\©mx%q×»*~¥`¼NOQ¶%u™m ¶±Æï²Rî—/¿9YÌóݺªžÊ&’¾Á䟚F ÉMJ%Õ¤””4<–Vr³/”zº¶öѾòhÂ¥à(†€L6‘Sä ÿ߀œýâËo—;Ÿý1µìòL£ðÆ2Šf7PBÆe¬ŒËšò[ZÍ”¹^ ²yÃa_sí“ÈÊ•6Ø‹ŠyQ‘)¦Î‚jãçsóÝå_#YœvmHK‹¢šÂH—´ÌŒª+YSîÐa…[¦Œ‰)-š|¬noòØÜÏ'Wý&cž‘Æ;C>ìïÉÉq’"žµUÁtÎÄ |ÈX †±ì†(yKxgS_ÞDnq?ÃÊs5ß•-o&Ìàu™/™V˜ƒÕ¤’ ‚8`Ó@$¾UTîF”Su¤a®Ýt0íx<ç»’ÑB͵uË2ƒp·+÷V`®f‚7còJkÂ1 eLÁ?&û½ßÓyÔÇÔ1Ù,玾‘Ò–çA”nJá… (°Aš´Ð(\PÍ[U?hºiˇ†àTÿÈDhlMÝ”´V€) RÖô›¶c,ý#ÀlhÉ@"Œt&IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bi_trans.png000066400000000000000000000016421417122252700223730ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<DIDATxÚbüÿÿ?Ã@&†,”`]!¤Ò€8*´ˆg\ÚñŒýŒ”DÔò§8¤¥‰q¥!ò9ƒ›“ƒ¾ŽXàâ•k »ö‚É5Ð: €ƒd¹¸˜Ã‚%ƒ;R䀿~o„ûËWoÀÄFJŒ´K„ŒŒŒìÜ|ëÍý3(I„LdZJ`{~ýÔ²ˆAô5Æï¹™o%Ör0…±8x>ßb-tùÔÔÔp ^AŠ™Q€«`9´¬“H¯âË@œÔ÷#O¦¥ A'9kÖ¬¿$'B¤‚¥äC(±Ÿ²sñžÒÓG`³€–¾R€Ø˜Ü¢gÁ¢ë¶êô–9Sˆ0s7;ñ)r€R°ÀØ pñ‹Ø2lN¡·´>»+ãÿ¼E¥~±ÀZóíçŸÙYSv<…¦·ÿ4+ˆ@–³±0?áeþÇÁô— }ÀÜRÇÍÁú¸=ÑQdÏHÈ«É)X@³23£OÓØŠÁ%$ŒAlæãL‡†6†#У`(Ñ‚Z¡ Ëá+ÀÑ'­¨ÎÀ'( Tg¸~ö 3c0ÓŠ þ‡3 …¼`aeú÷ƒéï" Füe Øv fFW‹QC-U£ À| rõG`ö"Tª1>yý阬(ŸæÓû7Á>›áý—;¡–3t–,UÄÔ¥ö­;ÒŸî rFÛNß]Mn]pˆu!Á‰#ñq1¨h.x÷ù‡Ó¾‹uß~ú>éן¿÷¾ÿþûìÁ믫fo¿à¾ïƒ' ÊÿÿIª €eûv öÆR/€Âù*¯bP1Í¥%€X”! X*SÈ·.@/šy˜-úñEÿϦWHõ‚ž Ê1@ýS Y‹ ¥lH ŽêóŸ@ü ˆÿ€B¹@Âé| Γ¦?úùíSPïYä²êf¤Ç ö¿°(@/ YÈipšx'/;²ªï,ZTþºáÔÂ?H©ý?,ÞI-Šq68™YÙüp´-`äÓ¿Pü&8ä¥dÕ $7ïÈI„$µùÈ ôzŠ©i9Å}Cj€–î w›IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/blank.png000066400000000000000000000001761417122252700216620ustar00rootroot00000000000000‰PNG  IHDRĉgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbúÿÿ?@€ ø‡dIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/bold.png000066400000000000000000000010371417122252700215100ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<±IDATxÚìWQjÂ@ÝÕPhè_{)ýî ½‹èûã  Q1iÒ$» oa Z“&êG3ðˆ»ÌúÞÎÎÌ&ÚZ«niucëôz^]GMÆÀ ×xºfbðÛÚš Æk@ΤC¬ñ0– 3h‰! ¦«0Ñp<§q«ív«v»]‰(ŠÏ- 5NÉ/%|3X÷9MxI’”„›ÍF­×kµßïÏ1xLž1Ö¥$â×ãð$«Çä¼û0 Õd2yEÈ ß÷?—Ë¥ó Ï<‘#­ª`À!çݳˆ/s€ÈGß{ÂrFwQ†eöóîy§³ÙLáÏ]"~Tü‡•$m_†l|æ«ÕJ!Üï'Ü^ê„þOD²²ªà •PœÑHÁ|>wÃ712qHP)ÆÝ `rQQH"!"—}€á\Gl$ 9td1BžÊNòÎ:¡=JwÖ1]ì.ÍANêŒø²KÞ†.´>áërçGÄu.ÀŠ 7h2F°×PˆÒÒb®h#@×ý0©¼$§mñu£û/£^À¿ð#Àº‡d÷¶VIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/boundedpoint.png000066400000000000000000000020541417122252700232620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÎIDATxÚìWkhWþf7»IM £b­"**©´´Åê[A”ˆÁ@~Ô(‚Pû£ElÕÕ_i ´M£1$1_Ñ%ÚÒt³Æ˜Ä}&ûÈ6ûÎÎ>fŸnÆ;³³Ñ$ÝØX4>Îì¹÷žóÝ;çœ;K±,‹÷)"¼g™"0E ë]8ýõØÖO‰:LPD !¨ÜF~-Ý\êmÊ¢¨qÇ~9º… þ0ÍÐB¢ê_À¨À¾=§]gûxõâÙ(ü¢³ç/‚×eÇC…‰TMæ+àvúÉhã‚‚é¼æ‚OËËç!ÈêÉNB£ O ÎyäH³øãçvΉÏãLÍ·Nvúm!P¥Œ¹9’ˆjŽýU©üOÊ$Z#Q¥“‰à8±ŸJ»€«‚L1J.rË…äz+2.CyÝ…œD,ú¼ˆ…#¨®oÅý¶NìÛVŒõŸ­• “†H• Å=“–deC"ÍKÆi»´ÍQv¼á÷Ê å@sýùÜCºNXÌ„ÂqØìÉ$3ôõA%³)Ù-–`Æ´<‚\2&‚׉M, ¯7ÊòCAÚgP« ëDù™»¼ùækh?cÝîrì*9øZúÛµè¸QšN’Ì”À&ÙL&èu´*Ì>>¸Q¯Á“ö6 ~ÎeD"1>_WŒ‚9óÆøðtþ‡²þ0ƒP,z¬Q©ªÌ¨ß”Ëfý»^óceßßâí~Ú‹E…¼Nɼù q厉t„Æô}-WÐóL‹k𻺶ö“•á-¹l.ðØ¹›¬‘áàœäOŸÃ#ý9ùã˜àa«¦ÖZhôZô{eé‚§%p»ùìGÁ€Ëš Ç¡o›Ç,Ú±§‹—­äŸ×…5ë7Ž: °Ü«N§Ùå¾tõïöŠqï—W_AKóÙ…A¿»W¯í€ÅÆ¢ôDøù¡éî@YÉfÔ¶(ñaÁœa{Ìm‚YQEÆŸAouÕ\þCUòÚ .EàîõsKc‘ºßÔ «#me¿½±< Ú,Z²|øwœþýŠŸ îßÕTÓªÚþÆ–#ÐTsb…TúAWÀçcŦónÁ‰€VÅ%h{º 6;Õ Õ†Œ¿ˆB´¾x~¯‘èTÕ{‘—?Ri.D”ˆ¯]ÒZÀ7›—š:_8@Ãd±‘cw?¨V<Þ)qží€ÝÍ`À@,–@–X ‰Ø±ˆJb…öeÀTê°,GŒE4úœt¹øÓº?»ÖLè#gêŸÑÿ= &c^PxIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/cacher.png000066400000000000000000000043351417122252700220210ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚäWkl\Gþfîcwïîz×ë]?R×Î;1M"’%MB£¶T}$‘@ -ªªª âB*ñPÕ¨T"‰§xªRE%‚D›hÚR’4MBó0mÓØÎcmÇv¼ÞÇ}Ì gæîºN›–ŸùÁ*£õÌœùÎwÎù΄)¥p=?×ùsÝØG]÷AëŒÆ<—ãüÉ àg§l8–„/9v,ØÜ­:hÝú,Ÿ9pÁå 6cøÊ*‰RJ!’è¥õ‘÷3¾ö‡þ' iüšlÚGǹ6héCG*6Š}s4à÷›âpYü÷ZÈpvšÁb裟¿§‘ü@Xsò>©¸‹ Ý6ÑÀÖ7¦ù>ÇÂ=б»S˜#"­i€U|fÝDÓ`ì ÙÛ÷ê8;¼¶„{iþQ²û ²ó‡–Áwç¼ÝY¨Í.LL'Fœì˜?åh|žÓ|ÂgN‡ø–ea­æ ¢½^„ QžrDjqŠu«2$€;l\ª±§«>’u¡ðU²ó ©CÒЖfæŽ-¡GÂÍCŸ±ƒÖ{4í½5ПUkõ\ô,`U[d€h€k‹ÂœÑk´‡/ÉËO¶¹èñ-:ÉniñœËøH&"ÄОë!%ƒ—á%ŒÕ)Ñ„ZÚ¡IÑ…Ý”T’~ÑF®’Íß4º=…¤õ½}™9±¥[©æ³>\G˜»4ï)CNn§={_Gîp™o¶é”Tñh†*%X]p8ÙãÆ1Æèö„cPï D|>§«â¯CÖòFŠÙ`öâÙ˜3ŸGÞ|Ñs vÞ­/¸bE–<óš4oégXÔA¥–àhÏ„È'}8,.T—@|v…D¥šJY–Wä±¢Œ÷XRb¶SÎ{“t¢NãGÍo°‹?]Þ cõ/=IÚ1½¾ä‘ç*ªq2Æã˜P6!$O´ÇœÞï0â„ÇÞi­³):›°`ìifh­ ‹Æåî]§®b®E†xw} E‹“’\ˆBi~0ÛB“3¢P@›w©þnVRc²¥p¨jüˆAÌ)EÛ±Tl„aäø¨³çßcöÖÅ(“%ŒÞ;Sc89.dÒXò¡"x$à ]SÒdžr\„ý=¨VCœ>QF_R /Ç SúìÛ4†*ÄÐ-}þžž´¬éd6¾0oǧø?+¾Ò­;Il,iÙ%ê¥Äp¢gåR¼YJÁš©£ûÌ$‰…#Æ¥ÂRÈN eáé3è°(Lšþ—Ïqì¿À5€ÌÁ÷ç‹ó¢®ô‘û À‰ 9WwdHSuüÒ× e‘@IÜ4ÃdÑ`Q W²âöi‹ê°àbéò4ºì<’Ã#pI•4Ï¡¤tL©Ê3jëÅ ~ÓÒ^;í†M%¤æ!K[e¢šê¨G$#”²ËpóºÈ ‡±óÇ1vâ$•`Dë‚-‹­¿Æ=ŒÏŒà¹')㇌‘¹Ò«§Ž­pKÌæ—̶›"’¢Šõ‚¤KV.¸ž{‡^y 7¯^†Õ¾ÆjqŽÅ~÷wù‹—áî»·aqïzœ÷Ð^$åþÓÁ†—^6pµ2$l­Óª)H”Á™<&®Tá7êFñrž=ûd´iº.L"··Ì«)¬Ï;Zu9‘J½‚ÚýžÓEÌDö×·÷ÙÇm"_£Æú)+=þ“vGlgì% Iã«>Cž‰jãÔ‰•”Ý\§KÔº‰¾4E3ˆÃ!Ä$uZN‡+¤öyê ibR¿ t_p¹ŒXd}¯~9÷¸©‚â uÐþó™¼½·*­í­÷ijÅt0Œtì’¤x?òÄ<åµrí¶DÒLîr×EäG&èž~þ‡šC-ßd0¯÷í'íT¬?v¶KÆr oç¯&oŒ› mð+èú­Gt zÔºŠ(ue‘fäÑ‘$>”–¤*™^³•j€r¹‚î±2ú£*%†Èø7!ǃ­÷‚eëkc&üÙTŒD(vˆÞy÷ê¹F̨Œ²n<·È›b ƒÒñӓH†>îä:ûãxU„À+GË$*.Š}Et%#å U˜¤Jpt1SÂ1súwE±è?-…²MsŒißk[j1M"]¢V´:°Îä\½òØ‚ÞÚü…ÛÕtu‰ýZ¹› M,µÛ¤-V­™ÖN:¯³(ü“7<µ…0ïI«™©œö‘t'¾–ƒ­^Ë-jzp›œUø2%Þê´›J*øc«KHJ¨Ü… Ç“/}'ä|Kñòøí–u}½¤áúáüå±u>ØÇso½ýKojjL5…HÛèVþäfêi« Ô3­;ßý"‚Vè$äÉ[éáÒÁÂ/D¸êù”í|ëM´!;Z®(-ü­Ç‚R^çà™š7>Žô䄜iÒ6æ£1LQ|ñ%äuê ¼÷I¦/ï í›Ø DÜOfeœóŽOÊrY_ ßò?ÖÊÚ1®·´BrSÏÏ}oR_ˆ2lçèÈÜ û¿ÿßñ4·Î¦ŒIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/chaine.png000066400000000000000000000010161417122252700220140ustar00rootroot00000000000000‰PNG  IHDRÊ;õ/tEXtSoftwareAdobe ImageReadyqÉe<°IDATxÚä•=AA†ßY×G_ˆD($ "ôVT Î*QˆÎà(4 QêýJ«òy˜c7»6ëK²ÅN2÷æÎ½ç™÷=gf® "<Û4yBè’Î ½÷oxAÓôfº§ð¥Jþ3¤\.S  ¿ßO¡PˆÚí6'^è-¶êÈêU«UZ¯×H$p¹\p»Ý˜L&H§ÓüÁÍ.ã/ B0¤^¯G•J…¢Ñ(5 Z,”L&IÙÎñxd³Ù õz£Ñ6›»2äl6› Z­ÖÕ˜2$³E“É„ñxÌÁûý©TJ‹ÅÐív±Ûí`µZq8Ðl6‘Íf³‰D.NÓ`4áóùx\2NQ*•`6›±Ýna±XP«Õ¸ÌÊÕjÅyv …WKªY.—êƒÁ»ÝΠó×ëe+RÙC‰õx<Èçó‡Èår q:ê˾Óé (‹¬J¶~¿p8¬‘÷Á`@óùœ«ãp8Éd¤2qüøyT~‡Ü= TÏÓ›gÿ¾ÝñçÿNìW;÷f½©ä7?Úyt`uÅÅ@ PTIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/chaineOFF.png000066400000000000000000000007131417122252700223520ustar00rootroot00000000000000‰PNG  IHDRÊ;õ/tEXtSoftwareAdobe ImageReadyqÉe<mIDATxÚ씯ªAÆ¿¹®®¸¢à®aÑ Aví‚Å*&Û šÄ 6@_À`1ÈF»¯`1YMþYwN»mäÞtñƒaàüø¾s#ˆ¿Õþ@È¿ôz=Êår”ÍfɶmšN§¼dBuÙúý>].T«U¤R)˜¦‰ÝnÇq Q9ù|ž‹yžG¥R‰F£GªÕj¤çù|²ƒý~ápˆÍfÃ0ø(C„\p½^1™L~¼)C*• ÇŠD"Øn·\üxîF¦Èâfº’ 4pºçýíkŠ,tW44¾v¡{qzšëK¥yW‚ÍŒ§~ÈU­›[å(½©õ3ø]¯¶WåÑî5& s?|ܧ¬™ùEaHvªgÿö5V¼æóœ]~q,⟠&zýÁøÕDÊBG,™,ǹô5òR1" û¼‘ã¤J{«J¬ó—´\·K64æÙ"JNzzÖS4勜?7ÔÚ7rÑ`s(6í Å“}zdèuÄH@ÙûÉÏç2ÉÌ÷Å&pV•<¸eÊ»µ”Šv¬+&¡Ìˆ§h‹ýËÉjïÎnz“/x ãìÑþ1ÿ(zG,¤ÐÏÀùɃ² +7›mŽÊ'_}bÕ½ðw¡‘9TC’R0»›íÝù`±*¼ñ¸cÁè w(ÖkȪr^OˆšMræ•M·Þ5oné›Å´„¦Mþ¤@~÷·;|èÃÃ'‡ ”ã™TÞ³í©¦FGõF"Øäw;û=¡¿†Sü:äý ÕˆRLÔš#½Èh6gv>¼b³¢ä™Ò"˪«æâ "a>•Ì*g‚ÑäÙ£^Š¢ÔµËÚëê`¨Áw–"ß!L…šGý0ˆž»ÿü—ËàçÚ¹vvg¶gvΞééN¿áÍÖs%­¢|UÿtÏ»þïýßÿþÿoBQðu6|͆?„ÚÐ l  ÜD3eÞÿ½ûKYžÝA’äCª.BNËM‚_x½ít›KO«"ß,Py™F§¿Þ Çæ©îø°Ã¡¾J7  O_j×ׂªEU™Î±¡1ÐÙÞ LE&8ö,¢BþúÏSw= ¿Jš¾@åÆPˆÜœŠu)E.)­ F£‰ËN·§õÿ<Õ‡hLAŸRõA:3¥¡ÃQ4µš§¶ˆ˜~ëd/ø5|UED4P/øqUÙ‚¢H‰Ä7ƒ¾‰rÁáp¤Ä4 úºžbÍzVkÖë õU Š·=ÒÔc±§£nœ„@СbÃ*òŠò,׳@oGïš‘î‘Qõ5ŠÐ“G_Ü·QË1O >Ïf§Ã ¼S¡±P(~1It 3±aJe¦Ð`¨ÎÓç,›¯ËYeäõU<§’$7ON9ÚúA3: "AìêûVß r®¨ ÑÄÖ~k£ªÜ†)—¾üÓãq ¯óºÞài§gúÌ ÍkG×5u8è*kªo«X\\R_˜;ï=«)I%Ó]¿ÿÐ_η@ „@ŽDcÎD¡ Ò)T®<ÿóÇ*ËËòç²lîíw^²:üÇ.tY[·I4O }™mëÖÞWžŸÿ(Osµ3±XK—ÍþôG½ÃêXœD¼JHYñAï"BTÜRôýдk³Õæu۳ʡâ¶JÉlß›çΟ™ŠÌ¼F1„[«aî©(ÌߊnK¢»©`^ŠKFùo=q{:ûŽÛí.Õìç.Ï*b`ã·)ôQôÈÙæ3 9}Šç çÙºMK–,…§á\õàã% Çï Hê! ÅRSXð½Þ}¶Ñ )™?O·1ò”OLÎŒÙ]ÓgØÚ<€f“[&ܹ½fÿïÿ:„Á#¾‰µ•å[´ ú¶|ƒ~½Ú×OªÊÕ< W•?­v,V£Ì"’föòK-‹×Õßšñ Bº3ôƒÐLìbÿÈ„m˜À):þÊ_ìÜþàB€ÞøÍÏv™tÌ•Ÿ|{Óölƒk[Ú‡Ž>¯åÀsÔrè4<9Ý|ï]`ÙÒšÌÌî¾ðQ󀡠 ŽýJN%—Ä""˜‰ˆÝH!Nh|eÿs,MíY¹¬ú[Gžêt*<¹Ûj·g@ÈCΚJÊr§^§ù!ÃPÕкdÆìjƒÊ ò2’B³š:è,J:Y’% ±a´‘”MPðôŸ\îùs<±Hb´’ƒ»ãv0`÷~§ùòqxJDKÆÏüáH/«aaG1ì§!çà„b&7í¸ƒx*Ðó ðÆ0µuí*bŠ¡@’¥€H ’x À¤&×XRçE㢠hÅ”ƒ,XŽcR](_Ëm rÍŽS ʼnÔÛº¢¼üZÃò-¢g¼j8¬ï:ña_vÝ ôß^Ú³KŠV;lã YÆ{W˜_ÕóŽm=€gÄ…Å5 8 $9åÉXz»êpû çP>SŒtAJé”2dÔqUE&Ý2õÿ»èT?¼wkò´Xœ wÌwxÀâk½{EÕ«‰„Kˆ©x¶ É'ÏÕNNÄ@<™„t*”ÏÚÕÍ+xSuÆ$A’Š, blæ­ñþŽ'ÝC°InZµ¨8WÃÜ-K’Vͧ¬n!õ³çú5 ^çDðRSKß±`$–eù}§/ø×Ôº-p.qhç#‹LZj·Óå6Y}“#žÀ§ðФÚßu Âã—sB141árO¶+‹¶çéùª;ÌEõÿ¾dEüfBï¡cmGÞžá¼ÇâÐúlPÊdwsÙ‚†¸ÛbžBãBø"œCaÕ‹ŒEÃ$¶X¹pÕØòÊ=C­ÖTIu™ÉÝ1è¶¡52¶_›ÄrñöÁ=ušTx÷˜Õ‘;ìñ7~Üg{Z'г‹Ed²–ˆ2ruÐy\¥fË–,-Î{ô¹‡7lÁ*³˜ˆ'1è+'_Ø[g¤ROLÙm¥£^Û˜oút,ñÿêLTzAÓòÏ~wí¦[L¹{µ,»‚¡iw(Iœºjóxñ_íÃX6œu¸?îú‘Ù\VÜ@Fƒ»í–Ò+ö‰OûÜþ—>t\È&±@`µ¿¿nÕÆRcÎc {Oφӊ$w>’R:=ÁH/E3JeqaM®VSK¦Ä»’S^óˆ×ú<¶±Iá³×”'² Œ¸‘J+@¡¹5 +«ÍKŠL[çñšºŽ]hä9 *4Ç«\Àè$‚H4Ü¡(°‚ãŽéð{CªÙ»œ“¤<6[Üh©@à… ß°¢zi±A·^KÓË9šªV¯h±ZŒ‚¸$y¢ÉÔp ïv ‘‹íV÷æñÏ”d_@¶æ§O°XÉÍ`¥ûÜï‚ôœú ‰%2…ø²;È$„ÆsÈ S<[–_åk ³‰)þ"øSÁ¿þ+À*ß Æg rIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/color.png000066400000000000000000000013751417122252700217130ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÌ—1oA…÷ì`0ˆ""¥$ʸÁM š :7ˆ†Â%%=¿€Ú?À ¢ ("4F)#ŠH‚¤9`ûŽ7Ök¼œïÖ`åéÓÉç½›·³»o÷¢$I\‘QrGáæì(ŠŽ-±ýÿUÀˆRv*…™ ˆX±²wµb0ð®É¿ Ð^J³`¬‚p‰mvÀ&xžƒ}ð ô)drEd2(½ž·Á³ ¥¶¼wÀ"¨òY[©±¼y4ù=ð1 ¹² € àŒñ‡€¹œÒKÙ×ÀCpUÿh4®V«¹‹KKÃß{»»®Óé¸v»­M.ƒûà;+2qrF¶çžHòsà ÇÝU«U×l6Ýõz=Uñû ×jµ\·ÛÕ[¯Y‰=pÀy1ñíýº&—ÈJ.!ÿI7XÁ ‡¡ìÏ…RÎ’[µeÏJnEH[òÐIp"m2æU`EoȘ‡†×öX €©+ ë|4áBÂk»l’OUYîL%“% ¦·CLFÖy^HcH@oÒæ”%`Àå¥Þ“É¡Fdâ-xŽŒˆ 'Œ8sÅ@nG´×P+–ø ƒWàwÈŸ’ŒòflFe X¤nO±}¢hñ‘+|G…ïË›µD% ¦·CLFÖy^HcH@oÒæ”%`Àå¥Þ“É¡Fdâ-xŽŒˆ 'Œ8sÅ@nG´×P+–ø ƒWàwÈŸ’ŒòflFe X¤nO±}¢hñ‘+|G…ïË›µDlµ_[øH$ná6îÓèµ:?%_¾5Y=¯ü, ¸i:ŸŸ™GéP ùI5þ^û†òzËï—£$¾àQxB£šA"°ÍWí9‡]œ† X8¶€Å“é±iÕŠ£E,½YBµQå™§1‹(¢ŒŠJÌ–‘¤ñ: «÷TÂ{Þ͹ þmBä1‡Ó”; eC<§Ì(DúÈq¶asn’`ÛÁ/å¨e;Žm"O5ï¹-"¶#8B¿ÃBÀKCÀ Ï9¡p6ˆØf) ¶§Š€³Ç5Çí6o|1b…ðQ³EĶõ~ª¡.*,¯>綈ØÖðAŽŸo++¾Òv‹ÌËÊZ¢s¶‰Ò^ÓoÓÐk-UXXÛ,2q$ø?¶ ñ›fx†ç¢‚mVJ¨#ÀU­D…e’””nñÕ"*3•d)®ã+‰ñCüÀO)JÍnˆ«ž¨W—HRÇqEÉ« Øù'ÜÅ"üR±Ðõ AþZ銑‘<ÎSQbmgy‡WþH…~SZÏbdWŽ5‰’”q¥í,¯¬pZdôQãlç„ã=×ag§Õ¾ËñŽ ‰ÞŽœ–œ!¯n¨zŸë²çw}!Ùq%Û&’íW¥¶)­í¸ÿ+Ùn.¥í>éRê¤ý6Üëk¹³ÿq:hÿíÍJ9÷&…˜IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/color2.png000066400000000000000000000015071417122252700217720ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÙIDATxÚÌW?haÿ]Ò6iµŠ…(¡ŽvÊ"âbÁŽºXœÔÍÅEÇ‚ƒƒPqQè`E—N*nRìAÐIJ¬ h[bÛ$Íï}zß—»/6ô|ðîøî^ò~ßûó{ß9žç!MÉ eI@Ÿ¹pgÏëÔÿ_°'BŦ"´§±lènpIÛ¡»·[z—äðÊ0pv:ôŸ¦GÇ¥ÉöÐøü~<{ ,¬ÓÃ&¿P@:FÄ1y ¢µs:{ØÈMÆã­¿–ç€[oh±e €Ð~“d¤ó¹Ë@á6íxÌ.[Ío@õpó)-6H „Û ½ó àà=ÓùÅKG0>~££b½²ÒD¥²†Ï„@|¾L¿¢Å„gè‹')Î9‡]:/²¸vý(Êå‘€a©4(´XÌãñ£eÔëœö½™NV€¯íPq&2¡*:.8?çQÎMáwlãËÈ9`ŠjƒŒHuŽc #«Ý{œsÛúr¸L—`†(õØ I¯6ÂÎ?=îÎs®©yÐÔTÜÅ0$B ¦'$·3½Æ ‡wþC¿®´ã0²ÇÄ –C’Û™^™áɨVãjç‚㜋°³ÓúnÆqè@"Ò‘Wƒ%oЫ.dW幡r¾is I:’élû!œl†èƨm)µ:’Ùœ ÍS®vÒØËCiˆÄŸ¦r,G¤÷&i|)§þiöW€¬7C #³ÅIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/color3.png000066400000000000000000000015611417122252700217730ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÌWMhQþ6»Íiƒ’ª(AI z³Š B^ÒCЋ1G½éYïâA¥xГÞ,âÁKP°Eô VOÑ^„*bü¡6U¤MC4Ýl²ñÍò¼„Íî‹ ]†Í{;ÙùvfÞ7³Z»ÝFBÀ8C^hš¶iŽEêÿ¯(Šæ¢ÎK¹è@h¿}Øâã2®ÜžÅ [þ–@´e^5¢œSØ…ó¡È0ö?™c†#£GãÛRø0w–YÃL*‰|f'Š¥NÈÅéË„NÑQÁÉ9ws. Ý#!,r'rãȲŸ1¦a~r4U!ªv9ì^Îed+$9úS”Øulý#@GMlPÎUE¶Žâ »D8€þ" Î9‰(8‘mÃ:R’ó¾"0ÈÎ’œ+€`8ñ›ŽšªÈ¶fKÿ28¬Eô*6蜫Šl[­c?Û’½ØÄíbƒHæg鵯s²‘ ©¼Š7ÄK½š“€5âv±I$ã‚î‘•^>*âgAKjL¾ÝЉuµ‰˜Þ“Ä11Ü»ç7‘^]ô¥âu ßQX®`…7%Ë-^½@çì¿t ùÝ[q‘@¨Ô9ÿ÷îì~Îy`ËD»C]×vp઱8sQámåxü&"Àp`÷„%œˆð¶ä/s·ŠÀ(+“Ä9€ñg¸j¢ÂÛÚº¾ÿ/ý€ÃZ@¯lð¶Ýfs‡^?Ë‹’ýXÀílHfûà` s°á ©S«} ƒÑ¯8ù0¡°·³E ?ðlþîþääíQ¡ð†² Á&±@UƒÂ´ ‹Àp·Ñ«Jí7Hïv…gXƒw`ã¥vûËéîîV§^?¦EÉðŠ€_-){ů,--D&&½Šä8oíí=ý±¾¾E¦?‰þ¢õ Ã¨X¸Q‰gsÀí@¯~Î!ì°óúæ&„¾Aµo1*ÇDŒ–4p;Ð+0%çªA¶CÂÁ™Ó°ƒÓßg)Ç= =••£W–G=gž¹&Ò jÉØØ˜Ô‰æ¢WÄ•ZƒªPK&Òò].s¢ŸgSÚà ôOiËÝý‡I_Êšý`I-¤,*²ÎIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/color5.png000066400000000000000000000015101417122252700217670ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÚIDATxÚìW=hAþööþÌÅÓ&á@NEKÓ$ ‚–© ؘÒÂFìD‹+R¦‘ˆDHceÄNEÒœ?`‘N4¢õrî®ïÛ› “ånwö¸&†ÉξìûæÍ{ß7çA€aZC¶}CMûŽ§È æ,«;›203æFf€/Ãã,îáœ$›bÇî5 |¸2œËgA•>ÿ€Ïmàýðæ ðìДå-¾R@úfĉhÏ>.®@àð| xt x!5~ ’0ÅÙÇÀÕp[ÒuÊæ¸$â§/ÀÜM`QËh„Äò­¨Ýsç—ÌàcÓÓ(OL ?>Þ ¸¾Žf½ŽïKK;@|îÝ–åqÓØÖ@†gδëàîè(ŽÎÎâÐääÇbµŽB¥‚oóóðZ-äã'€™Ó@}µ[˜žQ¤ñ< vï²àÌ3ïÜ4¾£6ÉÜ…©ùó€Œ<¿©¾HDa˱ÚÍ´Ç7AÐWÛ`ŠI’‘‹´m"—­¦xæ¶fú–327 €Œîsš.83}%rÅž*ÎkN¦×wcň ·ÝVÒj¶fú }D CA!½êö¹­™¾?€UÕ~¾!VV|r»^ ÉüZYI N“„–ßÊÔ1xÀ€Ga!·ëE’L¾£Ï6hàõðR± aÅ„a¨j—EXN ’ÙÈpZ íF#‘ŠEÖÞOÀ†¥N¯ Äi«Ø«TJ=Ü ›`ðÀÂ} ?™¥[ÏK%FŠDJwE”Èí¤×¸àL;w>×M}S¾bd%Ç ÄˆË¹ôJ†S$¶«Ç3Wißì^”ãè…DGQ KÑ W]Ⱦ:ç¶:ó?»¾D¯d\„^aHmG xð+Ùn.¥zNº”:iîõµÜÙÿq:lÿIVK*¶LaÆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/copy.png000066400000000000000000000015431417122252700215440ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<õIDATxÚäW=hTAÞ˽‹g"þ¤9"D,±ð§ H°Ôø‡ˆ±Q;1…Q±H±°±1þDB‚ ;Å"GTÐb’&&î^^îÞ[wöfþ½}·û.+æí¾Ùofög6A)%õ¤Rgª;ÇV1Á²žPÔD>ü¦Ôc'†q0šÄ1¶uä00 ÁF#†’¿GŸzºŸÙÉl¨ÝýðE òà21zÞÄP™ ®K=Ï õ ߿ƙé·2ÞÉxãDL7·c™oÐK«z[Ói­Sç ‚˜e‘h“Òäé"áXæ»ì™òDKž b†Ø'©T€p¢ò}µ§"ßߦ&8ËtéÞHȰ&Ó Š ÖwGBÝ%ì'x¾…ȼÝsädgÔãß1yª}‚>ú”\$g¯ö©Æ‰´¥C:¹Hd`‚ÆG&Tõ_FÞTs Ÿ´AøAO¤C¦ 7_€Ž’ö¶20`"ոɰUÜ¿ßkHLjóëÉ/»øââÓ³U.¾Ž.VèzÍeggÇæ8tlAj-õm Û-ÂÂ\ )È„Z‹þ”øô‘©T9Y¦àgƨs õ+I5íæßccã:«¤ FæqróŠãeý \<§¤s¤+.!„@(D¶$À"寠áULÉ&8 j¤ȣѢ(R¥u@ªÖx}n‡ZÛI Ã>zêJð°_[ªG¥ „È J'€’n¾ðâ–å'ò$©{ˆ±AT¸µ°îábù Šëe”øï_Çÿ|XZ÷ØIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/crayonB.png000066400000000000000000000036371417122252700221750ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<AIDATxÚ¬WklÕ=÷ÎÌ>fwmo»‰­Ø8¦ ¤N“´P—„4ˆª•BP©ZU(*áÑ6jU!ªª*H­HhKic„@´J7D„„D~„>H[P Ú´q^Nâ·×kÏîÎÌ}ô»³vº`'v–Žt=³ã™{Îw¾ó}÷{÷ÑGñÿ88cNܶ—„BœÖ`ŒÍùÎÊ{êc3Ë‚eÛÍ‹êêzlÎ×ìÏó~„áY>‰¯•J°Ó›6Õ ®)ÒR.dzñøo½ ø¼ïûH'wf[ZnAðÉbñwséÀþtøpíá;zèþ¡Cùñ8bF ºmSäÙLÉxüÙ±|~‡Rª<[J¾Úß®%G­_\tï}¿°ººœA@Â܆ Œ{Þ] õõv“É›Z³*pêíkË=4óuòB¼c-ãbÞîn„CCH¦Ó°(b¢©² ®Nj)wNzÞ䄬V€‰£?­‘¾/ÃÂî1™F¡~ X¶^î(ŽíÚ…þƒ‘ Äl;J‰1#y" ×ÑÏNÏq°¥¶k_¯Uù(›ø „ºé5_ÁÂç^@®{7>Øû$Jž‡x*‘˜,—™œQ¾5€»ZÏÈp$)ƒa„!ÍY: –ûôûßä$>õà.|aß>¤V­B1Ÿ•$B)qœ¦G Hx-vÊ`¤Sƒƒ(é‘,*Iuö)°wïÀxîâ×®Ã؇¶íÛ!c±¿œ?ìSJªG4£dç•0Ø(ñC¢|ž…~?d0DÏ ³ã¦1 –lã1Œ87a,{72 YOþû6Q,¾bÌZ}\¿e l­å|›mJ«â’ž‰`$ç<­e˜yœxx¬ ô &^÷Ž` ø“Ýö¢e¯r6;Žy0ÒûOSÎ;…?á_ È-jÃIröðÁ-v²•2T¤)Cê2Á[¯–'÷ßïùÆüþ,ó~r>¨â¡îRáè×MÔ‚¤×0ѶÀ˜PË¢iʈ¥Úa*_’Ši%%¯ûöBïy,Äs• fߥ@ÍE`±“?3²‡H@ÌmH(7ÃI¶ÁrTE) è=õ ý9§É#†à¥R@]>zí?!Ãá&3¹‰Þ‰/¦Õ/ƒÐ?Oàt]GÆ»š®'§À)zì§—ŸþP /Eàò&Ô÷RÉÝn¤7€œÅ(úå0%h"7ï&2×UÔ0FŒ¤Ž1°í`ókp¤€¸”ë¯W²ðë 8Õ{8ŽÔÂÍ**àb‚"¿ Ü®*€ E¤î!ðÂ|ëÚV³ÈCw\- {D0œˆJŽ$ê×ÁŠe–ÎPÍO’ëÓ”ûVHQ `’^†Ü^Æí·.oiEV ÿGÀ×Í3bìVŽþÏÊà8öÂI,#©W“(ï‹LϬŒ¤×ÓÒkÿ_$ýf—žEÀ jçÂ0*Û±9Ju­™g¸V9`N–ª™Á­[µ\)*®¹WSpI™‹®§~¬î¦®ø¡ÅFOÙÏ À©pÎ7`B5áŠòöGÛãã%ŒÑë‰VÄ—î€ú  G)ú<•[¥¢1*GjNSч&ò¿ÍÈ/«H=*:+‰ÎËÉÈ‚‚ò/)`Ï–‚sŸñJ2µœžtÁGÁŽÚ¯i½A%÷*8H]qoµ•¨Á´Þ¼hÉòF „+¡4'B¥™&dÜš%a|1³:ôbÂ2°3Ddœ”9LU`T÷GI§û(WrÚ`&jO.‰RúüN’>¥ÀºÔZJ¹½—Rš5fßgÔ‰HØÑäÔì©/n†å.¡¥·:ýcv¯I—MΈáxq#N•×£¬Ò°ÍüË—á×߆Mk3·¬é­vÃ⦠׵#™J£è°Q;ÑdžYxãçBÄÓϪ÷ùÍ´ÁúÃvô–>ƒÁà*ø"Ç_øúúúP ]¬CÛl"Ðd[Üí\ÙŠßÜŠÛ¶ÜŸ¼¤ ËѤÆ-®~i'ëß)±úJ«(âuŸ¨ìÔYùж8Vw÷\sMΜ>E¦’H§\³ËýƉÓýèyùÍèËgãë%·ý¶ã|Kjöx¾P>æ\ï]XBàŸ†¯hßGîæL]øêÕ«amݺhooG.—ƒ”r¥äV‹3s7ÿzäð-›»îLe²ýçôèÙ÷>À±ãý87P¢¦’© ¸š@TƒårÍÍÍØ¶mzzz– ÑÞ~éÒ¥o´µµ=±bÅŠ—{/hœ8‰P˜ò";PïplSw÷˜n)úªihmmMlذ!M¿Ÿ$v¿w]—‘'n÷ý€›/ÇŽšV w–¹Ì& o6Uk°qbaêžW5 S#ú(0vÑø2)ѲvíÚ¤eY®âWô;E÷ã•æ=g8UÄ«9EBUí@Ä 9›6Míƒ4Ì‚õâÿG¤ft•cIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/crayonH.png000066400000000000000000000036401417122252700221750ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<BIDATxÚÄWkl\ÅþfæÞ»ïµ×^œ‡†Ç!mêPHI#D›ŠHýASQ-F­T‰µ‘¨P+A Uÿ„"…¶¤mDh¢&HùaT­*" UDCBBZ…ÒÔ%ÅKýˆ1^¯w½»÷9Ó3wÚkìà8?z¥sï>îœóÍ÷sf†)¥pøðá€T4-œ:uª•>¯_»ví;ñxÜ ÿÿá8®Ò×}÷u)ÌqÑxAÕÕÕ%ñ ½Ëô“Þ }±)°, ƒƒƒèîîÞ˜ÏçßÈf³jkkûU{{ûK«;ÚÁ¸ ÏÀi8çŒáŠ.>¹¾ÑÌ144„ƒbll¬‘‘÷Í/¿|ôÅÝ»Ÿ:±r»mó­×ᳫ[ÐÔz¾‚TWzú–ËåpèÐ! ˜¦9äz&JexŽ‹?úön^×þgÅÄï2-O¯¾~ÉÅr€üȇÈõö¢à-ƒ‚`þ¢„´®¸ÅbQ}ï0ïé¼á¶í;[ðµ;¾Ç$7À„¥¸°ž‘Ä“Ìñ,2F±#Øæ\ ÌJ† ,Àî‡3þ Ìô:ÊÃ4xP†o_ „Ó÷ý€¤aæJVÞ¢‘oÎtã+¦yD“8õñ~ zë1àn@I.¯@S«ÏØ9î ˜< ÜƒJPA"ûe#IÁÝJ‘dI#ð:e¬„’öo”t6ÐðÉ:=C :?l\kR~'1ìuÒ¯wMKaCõ† 0P8-¬&˜±•ðˆ »ô$ŒDH‘Sê¡»¨É²ù´‚zB)’ácæQ× àIz_U Ä_ês€ò¼Î(c+\¤4¬¬mXÍTK`Oü ;Nô' D’蟄Wí¯É¡sA—+3t.lœ™³M’ܾ³’s?ņë*˜@knÏê aPF•àVß§\ àñΣœ1ñ,”Ÿ&Ã%m&¦KmN3÷ «ù…ˆåD£Kú÷ÖXÐAé‹Rð‹Rpk I±n)¦m|cZãmÂÌŽ+ #²4,ÃÀ/…2p‘¢ÏEb"G,Ätð©|°î&¯[ëSq¶Íd ìbóÚ0Û®sÁ$Â̈ÁÚ¬µþd^µ÷Q•ZoЮwÒ­•š%ž‹ÚsÚêË]z]§`„Ù¤ν†ôÂäóªÐúS½Â-¿‡HjM(…â6Yµ…û£{óÉïn)›7麩ó¹ìrÔÞ‰m%ÖPIu*á;CÔ1«"AKu„ª¢BËC?Œè 0iBÐî©hmüêDòԵ? Ô¼kc ÚÙ”™H<(Ìæc*p˜®í€Z3%j­H‡@†%©m,Õ…ñÌýÈ4fª¼ÿïc~¥ò{Æù´·ÎÕ3ÀB7xìua4ü\YîC :›H¯HÚSG$”_€ËR¨.ÛqÕ—Ð\ǹ]?Å…#GåR%dÿk¹·ŒŒÌ¨‚_J÷ˆTšoV %%õ’€Q—cT5üê :ŸGCÇ×áœû+Žßû ôíßặXRþ8âû¸hõIxy *Tf÷“¯+éÆáP_PË·‚¯¸“vøûÎÇÐóë½´˜Ùˆ76Ò2Ìt G¨K=GÎ,±¡<Äx”VÈŸó[Ql¸,³ å³oâŸ?ŽáW_E4•‚•H@LÑœŒF ßó’s&á ×~ù»Y¨_8*ö­blÕç˜Ï1úÛ½ÈíÙ/ŸGrjÖ:°E{ͦt:PA°sÒußf³!€>çS‹ÙQ+fˆí2÷Þû~¹Ç(?n4sœÊéx\ÛÛ¶©T«¯±9N3µ2r‘§ ñÊè¾gNœØmÅbálÅ”ÓL:X$r`¼PØF+ Íæ9JÕŽf›6-*¾[}÷]Þ‰µ]w³ã8ZkdR©aßu.U*‡æ+𻆇§컂ƒÓ³6ŒåÙtºÛà|yz¡\.?F§«~ ¿ß¬V§%ذkוñ†(ئˆa,ó|¿Ÿ¨[à¤BþŸ×i2€PUD.IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ctrl_button.png000066400000000000000000000013671417122252700231350ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<™IDATxÚì–ßKSaÇ¿çœ5:ÛÍ®RÒ"¶èæÒ›.*ŠÖ‚2&¸°Œî»Ó›®º©»þ‚°ràBŒÂŒ¤Y¤m1G‰FÛ]²E0·ó£÷yW¹©x‚ »9/<Û{žsžÏû}ŸçÝs&躎Z5¦S€) æ,·ïÝ/M1t°©q”Mª\BÇÒò÷^èZ”®nÝØ^€¦é( }¾ïȉîНn0ýÖ]GãÉy‹ÕjfÀbïxÜG;ÛZýù Õ¶jA@,M×G¾|]ò2×жg@’¤A¯ç0TM£hV ±*#±ˆIlà (J1W,œ6y7IJòçóy¼›yå•oüÚ×Ú¿¯Ÿâ ÄIܸ~ßÿ¼˜Bw×1xÜîò*€19ÛðW **_Xbåö|ò^½‰¡¡~?d&nlü É$²Ù,µ‚T*… öLk/¼G<›â‰IlCŠª”R/ˆ6ÇvÚæ÷!8‡«WÂp¹\|÷TcÇÆÑÜt¡Ë=›bɈÉÙF%PU•ž…(nu ÖýB™†,ËHg2X[Ëó Uì²´>gf@ci"¦$PÚÖ­£Í‡Ù¹8žMLbøa?VW™ÏÿOÈ@˜?ŠTÄ‘KøÃ6.¢ð^;aÝ.Ïãìé“H§3ü@ö…zp¼Ý}u.jnBcC=.|¡……ÅŠØ¿,b–@ÓU§Ãncý@ªð;6ΜÚèêlç¶q^Ù[$“؆Èç×îÆ¦g`“­°H,¬€Uc‹˜Äþ>  MNÅæ•bq¤?taG^8¢O1›Ûm²q+™ê={äåë·J6—Û‘—чÙD¯ÓéŒn٪Ϳå¦S€) Ö~ 0÷SêfŠx³IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ctrl_chkbox.png000066400000000000000000000013171417122252700230730ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<qIDATxÚì–ËnRQ†ÿsEB9‡r-͉µÔ¤[|'Nœè¤‰O ÎLØô |‚¦Cè 85¦‰©‰Ô M¼5\´€Â¹¸öáR[.‡È!NXÉGÂÞûgÿ{­µwà,ËÂÿ nnÀM>>õÛ]X˜ìãÑöý8£ƒù‰4±N4ˆWDaØBq§׈]ÌÀ¢HX31ð׿>â*q—HûÄs";Jëv 6ˆ-B%^;Äk¢:ìôxòtDZK}á,Ó@»ùú¯cð’’WI ’¼U/}æÆi °[rëæõ±kt]LJƒ,ööÞ²‚Ë›X]]Ãî³Õý0 ¿[íÑó¦‰R©ˆ\.‡F£ôÚ%,Å5˜VG;nóÉ Ðæ˜ùz³‰|þ#*•ïG¢H¦Vàõùl Ó:ïlÀÏs6¬ ½Me1íï •K|ýò ¢$âÂÊE2î¯gZ§pÌ€aè}—?j5桨*âñeÚ„G¹X@ý¸Žó©4MƒG’Ni]0Ð9-kÆr¹„wûoá£W)åÁ`È“e ±X ~¿¿›©íÔX‡so§; AK$qtô Ù÷XXð£V«b‘Œ°ú ‚8 ºìÐ*F8Äf†]±´=Ǻ¿Õj!P6ûëz¸TjB®“V^ÉDòºŒZµBÝŸ‡×ëµÓÎã¡,qÚé è'z¡* 2™+PÕZÏÕºr þìkÊa9¾„¥žÝ„³'wùCOÇbÔ¸»%`Ç^ÞKø/áÊKÈ Û÷¶çÿŠçææfl{ ¬Âð^KIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ctrl_edit.png000066400000000000000000000014171417122252700225430ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<±IDATxÚì—ÏkAÇgv×èFRmiQ›€T“jiµ¥éI¡ÿÿñ¨ÿ† "ˆÞ¼(øãàAýÄc=äØÞJ©•Ò¤Nß oË6®‰’ê—™y“Ìûì{³//\ÁòQØ?{€=€¶n“ÃsÝ&vüÙh6Î9EÉY‚–÷‘tª†Ãá ¤´„r_šßïg§§§?`îé²3ÅfO l6›±X,öÖdgv(çj2™L˜açë ¸Å³m ¸Ëåúg˜N§Ìív¶‚ ….¶ƒFÅ.Jvપ®æó92„‹¢œãñø7Œ‡›ÞÛÊj ¡K_‡s4ý, ¬×ë}#N¹)¶rÝQó̤³Î À5¿‹E¶X,X>ŸgÍfó šÖ‘@V¢·òær9,<" ‰v»Ÿ@A Pôb0 =ŠÄãqA{F£ÑÀù è Eä*+~Öà{ “Ɉ~¿/ÈñÐÐ:ít:"NãÞ+´G"œ¿ż^¯¨×ë¸>– ðRñM޲Ù,.^‚^“Îè­ÝnW¤R)‘L&E"‘ÑhTƒAáóù:×u]hš&jµžá§‹ëØ@¥>Fgäô9è)„âY«Õö·øæèÆ÷8Gçår×ú}/¥v#…hurˆ:¢µƒ.Úü”kÃ…ËLA¼T*™öð]"À¥Âr@rPdLû!åö¸Z­®„œ›)»ý Vd!â¤R©ÈÎ é¾Üþ+ØDR$t3RÎÃÒ›ëfi¾~ß¶Á¡ §RŠ\4¢³K–å_4þ±ê¦´mÿœâ¡À€Ò™.)2Kš£}yS+ÇwÕâQ™•[8Ak[8¾Ëó.M,ßÿoøßü`´wÅÙjŠð1IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ctrl_popup.png000066400000000000000000000011711417122252700227560ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì—ÍKAÆŸÙL=hl>Œ_¨ xè=§R%¶öPEð(z-ž<ûèÑRÌ!…’B饽õO)¢‚ÄÄÄÆ5»³»ÎÌÆÊvã`.™ȼ™yóÛ÷yæÍ®æº.º9ºGù¼ËbX]ZôÍÀ!ž\ïæç¤$„nF.O$€„uD< *Þ3“£`ŒÉøíÞÿs°¹ão[ä`<°È}m¿9C8¾Wñ”!r¥Ô4¯…op\étBƫՌë&Æ2ÈÇð÷è-È·{ÃIÐÒ`aþÔZè/fÌ–óh4 J)f§Ç%,!P)7¡æIJ%IÆ„ì@™XÈS@[&Üû\”eâz÷÷¿@¥zFÃç}”ŸÑŽNNyo¨cs}Y´%êBnN6]×A(áWÂøÜ½ó®SÙ„Ëi#„“@P/ÙÔÄÈó{àa'Tö_¦Šòn}Úy–{B­÷hÖè6Àku“–P±­IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ctrl_resize.png000066400000000000000000000005101417122252700231100ustar00rootroot00000000000000‰PNG  IHDRľ‹tEXtSoftwareAdobe ImageReadyqÉe<êIDATxÚ,MNÃ0…Ÿ‹á.]{Ë"»,Y‡ÀzŒÞ#gÈ®  Ø€ª¦¦±±q~h›Öùk°QŸ4ÒhÞÌû4dG¬RíB‚~¸øµi±¯›èpj‡û邼ÅßÞÝíÍœ¬ëg¢8œQͲªÊm»!°) V¶ÇñÜâ·6‚3-y@m”?™\,Ê4=òý ÉçÙWŒ2W>uËþ¿. $þ@ºYAK¶1 JQ•ÿ<•ZBò»d %vè»ÖQ#*ù6TøÅË£û„K¬þQ$AÐspŽ€= (*©ü>>J‰¸ ‚g…ÜvìÚÃ꘩ããcßèÚ†Ä$\.¯D´Ñˆõl\oy¬ßÃ?q9ç¸n·›%Ñ>^,Ó‰8Æ=>Á¬ÇÙªããM46ÆÄ’óÆkomÄþ”Ãz—àƒs/C4'^sÍ?½ïÂôÔ<äƒ3&ÒD;ã’ž ã‹×büKà'€5!ßò%÷>Ø@_¬-È>‘‹Ä¤>×RÓ³pîüLON`fj’0A+ã’+~¡o¸X3ÁKLŸý3Úš_¢€‘lÝ–¬ÇpœÛÎÝ{12ÅÂü<¬­Í(*¾IŠXQ‚= IbHÜÖñŠÊWq¥Š½ 4çxÐÐNÂPXZz Ï˨°¨²,¯z®x–V^[ÓßBøAX@XÀ/à¯Ð:he)­IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/delete.png000066400000000000000000000015501417122252700220320ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<úIDATxÚìWKkQžGÖWAÚŠZAÜ(E¨’,„BAÁ…¨nÜ' ÿ„®ü ¸‹ˆ.ÜUQЕ’Y¤´•,|´´ðÛf’™¹ž3='œ™Î˜A&dÓ÷ÎÜÉ=ßyÞ])¥ S mȲK 3ˆMužPAS"ñ2ƒP~þÆÉl~¤¤æMЦ{®ó´õcýAýÅÃ¯ð‰ ŸxLBO³ Xyndÿç¨õæ—åS oŸ}‚©ðI¤î´ÇËgµé3Sþ»ú‡mþÕmt|×îQ(¼A$¡î»•žóÁDÌ\þ yœrn¤Nc»º½f’Þdôm1¦€!2= ˜pìöõoM8G±7[ó¢*´È$¤A²æø¹4z¢ÄôéK·O@¬Qäµ—³+ËÖ"Lÿ ÐírVˆ šÅ±P(4ùË²Ž‘r‡Ð¥Ñ%™Ó3WOŽŽ/+Ï+™Ùl«³µñ|eÉz´Ö¨„õ_€6þ« LÀ …vÒ ¡ ÚÐ&({ûs€Ç€×´Ž–o:qe¨ssªT*aE;žéݲÜaq![(µeˆë„~b–Ëå¤NÈÓ>·Yìt¬ˆBd®TÛŠÁ²£†ÕZ­Ö³\z€­\Ê}€r%’5œ°½ó î4T"³Šy¬V«áñ>‡çÈ#Y"¦‡¤¾Ç±dœDتë€wôÈ^JÂ\™`£êÅÏKHàà>`†žoÎ WO‘7ÂFö½$="±¦¿‹ç5À¢¨ˆUÀûPÃJõB‚åuð„N9‹j¿jPŽHÄT pýcü¯Æ[¢CvE_pÃ%wJÊ10–J%ù-×8*ý X"¯lRwìd«NäßUÅb±Ÿ¸·E—Så¼ã.ø¯ÓФZÆ^~ÊŠ/,ÜbÑÒß4vDùÆ*LâE–´…•™)mS(\<^Ó¸–+a!F¨™(‘\±ñMt…ŠòRÄ¥D‹ ;¡Rÿy½Öwÿœ›À_Ó}ÎÂ@¯IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/dice.png000066400000000000000000000044251417122252700215000ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®Îé pHYs  šœtIMEÚ  JÓº§IDATXÃÕWkŒUÕþö9ûœs_sïÜ{‡ÇÀ0w‹§ hQ©vh‹¦D"DLS#(6 ÕþhÓ¤mbÒ¤6•ˆÒ?HëÛ¡%Z›†‚€*ˆËÂB†™¹÷ì÷9w÷ÇeƒÐ´46éJvÎ>çì½Ö·×ZY{}Àÿ›¼¼ñÙ‹þ«”O}~†ßÚ±eÈûkØäϹùÆQw,¼u¸µ–\ªÞ¹ñ­··âš7 ùv÷Ýw´>r¨[½& Ùœ *ÅbþÅ|¾¸kŃ«þ>éÊ+ØàÚ®£ÐØÔúŸ8|äJÍC7ýø±ïþàý]“DXnSJvpÁ®e,LTA)E.Wb±øq±¡áõúúìÖéSoxÿÖyß:8¸ÿm/âúëæ_@E&Ó4䇪öä¼oÅÕ'{þ1½jÕtmâ©J°áÖV$<¾oJ õ\K]—Àqà'<ä²9Q·й7¯¼ªí›ç|ç BˆÔÛÝõWŒlœ<@SSG†°Öº?üG3w¼ù—ŽvRf­QiÔˆ &N àûõ}—ø”Âó(¨ç€Rïáà§'í¶í{ˆRÙLíS'|:»cÆîLª°m츶ζ«n:ï¼û"¦O›?4Ë—»Ð××ý¨ýó‹†íØþ‘×ß_ ç´öqøÊ¬IÖâûžï‚R Ï«=)uxŽïÇ«;qªg‰Åüy31wî—AàðT&}$™)<6®uö†RcKü™˜:mâåÕªÞ™É8éRi\—ÚjdNdØð"r¹$|ß« Ïõ(²žK‘N¥àûQÊ Â…å,"„Ôñ2î¹¹v@*Qi)Ë•PçOõ–AÝ.Tc‹DÐŒ|>‡t:‰ ðàùÔskñw)\‡À%(%H2Ù$<߃a…CH ¥5QÚ€Òª¥4 ˆ´QœëcLD%Æ%*\ádO?c"Œߌ\}ÉTê:ð\ êxž‹T:…ºº4¨G!¥ $ u W¡µ’ÂZm. P,F}ýJV!„\&Á…F÷ñÓ0&†¥–(äsȤÔeÓÈÔ¥àQBjT*Ã( c4td µ†’J)¸*Aàê ‡ •Öz"„¡F&#Á…„Z\¢ëx”Ôh.Eøâã‘ËåÀÃ'{àRét&ªBEPÆÔŒ‹Rh$SRsÕ8ƒ“ææfãy^/ƒqUó„TJC)­cp!qòD/úúúÁÖ­àþÖà‘•ëpüØih¥¡Mm"(©!¥†\h[?¨¿0€Ù³gß÷{@i *0vÆ BAJ¥4´Ö0FØ*Ž;…'VwbóŸwáÙç¶àÃ= µ\U a ¸‚µÁcôÌ;7Êf³ý`«ç8è;‚I!”TPÒ@*i:Ô#GzÎ*K¦’™Ä3ϼŽW_}JÕÀ .À™‚0@‰{{{»‰X­-º»9öí;½{C )5¤ÐÒ€1‰¦Q hiX´ð&Œß„5kÕ«;ñÔS›°ßa(uÆ“\!®:äü ÀîÝ»1eÊ0Æ*A@JI⸖ @Œ?îÆ˜æ’‰‚@CJ Î$F7ñÝ·aᢛPj.B‰W^Ù) Œ)£¯?D2@i e ÊLBìg´µµ‰„BÞù×fw÷F6äO€ ®c QD¾˜…VBG°¶¦¿T†ÆÆ<Ž=…m;ö¢¡!‹R‹ Ï×KϸຮpÀˆs¹ŽƒÀ#`Aà#%àLBJ…jC)4ÆÜ»ô|´çÌœ9 ½§ð§Íïã½]Ÿ`ìØÑPƵ`­=k“AC©8€@òÚ(°ƒ%¤˜98¨ÆZHU Më„F45Õ#,3ôž*ãoûŽY„8¨àÜIBhoo( ÏY@XÆ Âƒ1ŽJÈÀ¸BÈx¨ ¸ãŒÕ±!¬HT*Ò aJÄqêê|ž+§Ï{N@ggçÀÚµk_Û¿¿_©T.3Ƥ8\×ZÏ£Ä;ÓÔçÒȲÐÚ@ž©œ)0&–%XÈ W ùB=ªé½97ý_þbÝÆ‹8xð ,X€•+WÊ'Nü±££ãþ¾¾¦8Ž›¢(vªÕ*ñ}€zÔ÷˦QŸ¯ƒÖ„àœ1aYÈIXЦEpw·^6éñõ6.›5ëkûà…—Öã…ç_¹xSúä“ObÙ²e€;wï¼sÑò®®îEåòÀ¸l–`ĈzÛÐ'_¸¼m“Çp „²\°P£-bëíI$3¿[pÇýk¯ž6ã0üjíã¸gÉŠ¿-¿ë®»°nÝ:@GÇWoÜ¿ÿÀ½!;}»G5FŒ,ØÖÖf2eò8ĵŒ1"•ë&P7ñRËø+»dÉCïÀSOÿ ÷.ýÞ¥ñ‚õë×cñâÅ5FôòóÅGW­º=2•Z—[Ƕ4¢½írÀ! N‚%éߤ2Þ{ø¡Ÿn,6ÝÈåF^:1”ûî[Š5kžÌ›ÿör_ÏR×—Lß„1¥Ò&Bk®›ùÍm×̸¾{÷îÄĉ_úï™Ñ¹²}ûVÌœYcI?Yõƒì±®Ã×ÖçêêÚÛ&o¾}áýg›Ì-[6aÖ¬[>~øÈ>;·Ö’ Ïn<[G:;ý¿aÇJ—‡rÅ{Ÿ­ÿ—"ÿ½0_wÞì±IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/dottedgrid.png000066400000000000000000000012601417122252700227170ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<RIDATxÚì—ÝjAÇ3ù4Q‹k¿RŠ‚mÁ^x¡zÓ>VÁ·ñúöÂ/¥´‚"º±M²ÆîzüÃ4f׋^4–33ÿ™ó5ç$.˲ÊUŽjåŠÇ\¹õËœs‘|¶ï#¦UN‘÷Ï/‘Û‚MÁ[Á˜¹ž |ÌO®>E9=¨+¨ ~ã­%p—ùG‚{‚mA*h²n9Ëà‹`XD‚ÖŒŒ5êäU.<2Øò8}ÁOã‘™8$|óì8Gci.§ÈgæÂ~Z4 û§à¸ÂI(ã1±ëc…Ž5ÁÁmâü€0<h‚µIO8òH9ßBa˜¦À :’OÝý 9SŒ7œ„=ûÒ¢8, >aŽ[$Tž„_‘?#7±V9æßÍ3ç@u«d äCýà4¼;jer`—'µdrà!¡QË/Ï©û\ÔbÏÑWð oͬ€V¸ qbÞý˜˜_pùº`ÇX®{V §‹—C T´:† £#xÁ7ší÷¬–9ÄÙ¦Zï™–)°õ;ó²¹îÅ73<;—•ÉYÝ1¥E¹m¹ÁžÌpnšÔäyVCOq–BT!žŽäŠxj~!²Í¨çqé …šÑ{Ößx%6u`… ^›fÔó8OÊ6£!V ½f42–$fOï •ï¿›Qµd3ò÷”nF›¦ÙÆQ^k™®ùAjFkp 7£‡ p¡m,1ò"ó÷·I¸8ÐÀ‚!póFs®½’Ê€û €œIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/edit.png000066400000000000000000000027331417122252700215210ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<mIDATxÚÄ—klU€ÏÌì«ûèn÷Ñ–>6(,¥­-–‚€´ÆFˆ1£1IDBP‰P$¶ü@ÿPHÔL@bªí)ɶ&BQˆ…@¥¶UûÚíB[öÑîP•H‡J xHHdE€øMà>›c+1Š. "¥1/ÀÑ£_U8ޝívKNZšŽbY|¾ÀàÐÐÈ©ÎÎöS­­g½HO@!@€ßï˜Lé·rrËDt’çÃEyyÙFãsÈ(»[[O÷¡i–pEÒ–`êëëgîñ}GÇOAFÿ³(ª‹m6Ëb“I*é`±˜4¶ÂëëeS±@<Eø}Fzz®rèԿɲn¹ÃaÍKO7DãÀhÄ0ê<ž§Ø®®Ž+„’¶B¢kÈÔÕ5¾WSó²UqÞLv¹ÚÜ--§´·wyée§sde-zÁnÏÂþÑÿI)D#ÞéÌ:\^þÔA§ó±Ø¢´Éd¦JK×¼˜™iu`H’¢(ÃÐÈ&[IÉêB¤§QèT09SR²”Z·®|[MÍ+ ÈÄ&4§ß´iëîµk+vlذRÃ0°,†p8 4M«hš1›SÉZA•-)+[Êø|Á-Áà6Z„©ÊÊò÷W¯.¦q®bYaF½ƒññ;«-{‰ÙlýÅVòE$™8 Èb„2¡Ÿöøñ3ÞõëË´áp.\¸ ¡UUO‚Z­<÷Ÿ>À¥K=0<|òó³atôttüXÖÙÙöz"òå¹»»·¯  …Õšee˿娿!LªÁ•+‚Û=Ôn|_»®á¿kµi%çÎ}ׯl>g†Œ¬,ݼÙßìr]–)´0ÀfÇØräÃ=»v}*ɼøŽŸÎD ÷‡`PR̦h‹OvUIL¬ýÂ'56Öí¡¦†?Óq˜ô‡`ÜÇ%€E¹D uâºâXvÃ~ä÷î× îÏm0Ž6â?K|hÎ(û`bÂ{&Ñ5¤ã£6I™qìXýþ Êû¥S'Z7|A>*Á)ru>È1„ ¥åÄ7оxw«»k¥ü]@Bð<Ë"Kì]¤›¶Ü‚ã ³T=`ÆX»46=êZ Ý5%ß¾mGaÕ„çêq”Xìg»¦‚¿ ,øn ¹C€#i]€¬·;<ÊF8¦6ä˜ý¯F¾ö(îò]•o@àÖtUjù¾Ç9Ó1éjƒ>ýÖœ¿ð à 7¡0ÛŽÃøÖbu£|oy1ëGõ“g›Êì†wœ4¼;??àøB7tÇÒÐ((FÔÐà*Ø ­¥ ˜¹ºp ÇÌã¤<¾·æJBî‡A­§½• ªªñÉC²q÷gQÕ+s˘!fÐ6 ¦ÆW‡x€fzäYÆ+&KíÂ}MUÎÝkýú÷ý´ÞÚùÝÉÌo ²ÉQèïÆ°Õ ”ÿËÆ† ’æú}×û‡J_ÿYm¡Ïš:Õ ²j):S“ó3Ô ¸hL¦¬æø‹§îß=;4Tóf—üòd@÷¢».Ÿ>ýÚO¡3 Q ûl%:3ÞÓ›¡”€`U¸¦v—Þ50ñc‚ù̃ÊDßld|tYê®Üá8…RMÏ ²RÌ7Ÿ|øðŸ×'«¾ò~ŽYB„ï\¯û|P‘Ê—Bb"5’9ŒnïÜ¢peNÓm¡Œc2ÆýÑ™°Ô¥j~3û‘Ýš)… mô¯à´‘QTˆ“’˜ÊgUråÌ÷²êÁ ‰NC!™ô Þ(ËÙc;V|Ï‹¶|Éi¿Å®ZÒ-QU³2Q5Uœ˜;ètØ<¡ÀSºñ á ‡Àp- χòJ†óç]° Ämð®%Ñ•ÃBå#z(Ó¯¹O/©㡸5!IôgÒ\×,Ôx ÉÓbDcDÏ~ •”*cdE‡Œõ`ˆœÜŠÕPVü’쟦1 Â3A[‹€D= c6Ӿ¬Ö`r…+3;ÀHuŒ«i5ÄÇù/ åšs&—LØÝÒÉFCÀÅL¤Ç–dÛß ¦w DǻȟIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/exporteps.png000066400000000000000000000026531417122252700226260ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<=IDATxÚìW]h\E>÷gw“ÍOMƒZ%Ú†B$V‰¾4¨øP}0ŠšjS-ñ¥(‚´%VM}Œ‚ þÐÆ‡¤( Rµ¾-D¥-E¢c4éæ§I6Ùfwï½{æÞñÌÜÙÛk²?Ù ôÅ ggïÌΜo¾ùÎ9³¥®ç#Ãu~þ ða°ú_:þ: {/xßÿj ² Þ¢°wo0TÍ;|_òÚ, €3W¹æGA÷‘'!R³ Âàï/ôîƒß>TE×Ë‚•KCÍødGBÎ+¯†`âbaÆžcŸÁñwæœ{‰ßÂÛSýßÃðÉ`QòõD)TÌÊ2@§ÄLú;g’¿­FШ¹GDomê~葇Ÿx®ùÆXXÐàë‘C®,LNàØ"ÚŠ`•ßÊ%¢°ALŒ‰Ì&»ÊÅ¢[R¶I¹ó¡/zžÒÍÄìgôk‚¶ *n×*"¨Å²Z€ õ™‰?fÎÿ:Ù¯Šyù@CyÊèÀ,P9•J\fU–ÏLÍNœÍæÆçEN±DD1#áë™ô_þ;ÉE  9Ä"Yë|CÅhOþŸ‘ú'ž{….¦ÿ0 ¿¾_y°æˆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/exportpdf.png000066400000000000000000000026211417122252700226030ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÛ +(TšÔãIDATXÃí—[ˆÔUÇ?ç?—½¹»í•BÃJ‘ L|)Œ#{){pÔ4-R`Ÿ*0Ã¥ÙC >DB-AR(i=Ø…,( $ÙtÛÕv×Ýûüç9—þgÆqݙ݉À—þðcfΙó?ßóý}—#Œ1ÜÊÇá?ÿˆ×šB le bž÷•¥íwc晘kÞnî1 aÍ©`ª6› @Òšt=µ@ì×£wúÆ€6×k “Ý.ÙŠ¶Ì¹x˾ãý€øuÀÎ n€û†I&“¤ÓibŽ@@BúÓÞ5TèBXB…YΞú à6 kPÿFÇ€”’D<’@6›"&¨BæÆ0*Ž–Æ4ˆtµ°ˆx½ÑÆ ÀóïÜ{Ä'[ñT’±Ò²›ù1€ ¸óEZ=)}Ø7z£ÚŒ"L]ÆŸ Ì^åÊWû9ŸY Ь¹BˆÐ£ÎùRZɛƵ,¡KTqU˜B¦3Ws—2ðæG7|fÝд !„Ó0·´£ƒèÄ*À¨UÊ Ü4ª”EùT™vÓd‚^€2ˆÓ–‰v ˆÙð^°d£| ª™¿V9=*Ä(‰ö‹ÄbQx*U`è•Êú£ƒÎnyïøj T%F³`™|Ò›¦,"Ì]˜Ða8ñèÉö;Xû`]Ê¡¼ ÊËòóä}åˆÈYAú 1–Æ L‚03Ê‘w?¨ŒïÞû:GÞ~¿ò{ÛæG‰·õqìë ô±¸€;·.W £Ð›Ž>ÓQìØõläŠÐàÅÁݼ°ç9>>ö-ñŽ%‘ëæéUA™ëDÕæWCȽ„ÙÈþ4šáõ˜M´EtvôG:8“šÍrÂÖѰ tXˆö+L°uÓC$»—Ùš±æv”—·úˆÆÖ®ßH G¾¡êô¢•¢Âü ”‚‘h?Rýáƒo°sÏv‚ ÒØd*ÚG6õ`ý_Ö€BˆêêX«'€–Þx*ëŠ6/ÁÃ+£Ó%»–’ìº ÑÔN¼­§²Fy9 ™)åóËŸÝ|ùÝÝ\9tàûNŸF€  •>¡–4 ·ïÿbÉKO¬0‹ \´Ÿ',LcÊÙ°p-27 ažB±€ïEB_µ¦‹Þ–­»_÷ÌJ››«™˜ÏÒÖô<€ŠV 3  ÆÏá´´ƒŽ4ÂàÐŒ,Î0“ê ))X¾bq÷È¥½}îÐБ“U=‚ŒS€²öíó\7´Í‹fé= –-¿½[fרþüà#Õz¨É€1Æ!´MŸ^äãìõyYB$[qŠÍ•Ìj´BiI,Þö¢ÈQ”(%èê^Ô=2:œžj†aˆàܸйªÅ¬5‚PMò×XN'¨®ŽJ²9—3?¾¶ùÒåßFÔ”VEC̦ÒN Ç¶Zm–ÆX>"¹¤wÇO®ß¸­¿¯‰‰'ϼ¼s|bø"0 ÌØHŒ1z¾Dd¬Še÷M6³‰™5Ñ”ìLžab¢À'ŸïÚTôFÇ´mP‚ꪸÒ–SiÄkeµ2‡ŽÜÅ?ÆÎý>|èÕ¢7š±ëòö  Êy .€Yb”UåTÔkfÓ'._¹x*_ºð·Í)åhòYÝž‰ÿòvl“K¬ª9U,ÊÙ›/¨ý‹§|3Ò–©òmIÏÕ˜þ¡ÄÉQ½IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/exportpng.png000066400000000000000000000026461417122252700226250ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<8IDATxÚìW[hUþgvv6×»¹ 45¥¨¡J_¡¢¾h}p-´ÕZ„<©´VúR•Ö/D•4 V¥¥­¬¬‚R¡b7‰¹t³»³—Ù¹œ3ãΜÙN6ÙI¶}ñÀ¿göœ9ç|çÿ¿ÿ2’ëºp%› W¸ý@©7!ac¨´Æ~>¡ñìºkL 9œA‰ ‘ÜÀaµØáDÅ­œ0õ4ÀŠüzäZ“-Å@7Zø„e«PÖ`‘0ìæUïܬ;Å »&…­º95ªªòÁ\.YÂI ‘d˜°ŒE ¶`W°×àÌ©ŸØ«W¡hLBæ€Ìç!¢ŠGMËB„Y‡@"~AjGÀ¥ 8DFƒÇ:³t0e ±Ã@(aÂTOl νvã² ƒ©Ÿª0]é_±ÈŒsq”2о–§…™€Ž“ܲ?½œm.;; ff‚ÿ·µY˜9yÎåoc(%!:ÑF: Çb%%+ÆR§’Z^ZºÈÅÎÏÀ´Þ©WFáÈð¶Ï„ÚQ{£Bn€^i×±¼S‹ eë9ì5 f ¨å‰ƒcy«‹¿+@œš` š˜W ÷^7ÐÕ¢x¨ %R\¬Þ™‡ã³ ‘ˆçž”Vx?ú\ªºAœÙyè³I%@FwÝòÅN FÊVØ…YOÉÅ‹ÈÈz¶Ÿâm¡¶_wÞª¡i @ Ô’¡ÁÏ 7ùQ„4Ò'We,7Š6NÃÈëoVLJö½#¯¾O>ó(ÿÿáÑo`Ƕ8úõ<ƒƒÒ ºùT³P„ÉiCÉÈF ð>çyÁžÁGªî¢Ä{=Ü„7[¾®£Ã¡a 8v‰“‹¹kï¿ó‰7AlÞ=5<ïz[èñæZzà‹±,>dü3¢"¯H—€Ÿ‡®ÆÚ®í·ƒšì9wmj¿olŽàïÐH@àöÒjä´Ê5Híâ2•»èà2ðX/ÉQÚ»×3ñbÆ·'?õ@Ç:AØßç€TëŠÒj™ßa*kþà¥4Ó¢ÐjDáŽïvj¢å:bí ´vV×P£¥üEÑmù+ _}w=??uøà÷?œÃÇ)”yá Õ:¡žxNß}àËÞ§_>¾…ßÜÒ¹8fìR• ¢aiÑ“j«T.ixDß¼%]Í»ïÙúЀˆˆMµšPBL@DNç6p¬²àÂ+À5 7·óg¾@rñ6M@0::r"P#ð Æ*^6­ótÝÅ‹}7D¡ãÕI¢m=¸ûñỂ|¨«fVJ‰ðix6Ö.Í£ú%µärS5²ºŠQ2¢ô€cxžC&†i ɶäTz"WêºaÏFgç6­–-jÖH`Óø{:2Zș hÆ~|aÇ…ÉßÒ+V´"€ˆ¥Ì¨¢ÔjjŒÔ©#ÔÞ®=÷ÞßÃõt·Âü| NŒ=ûÄÜüÄ8Î- , O°X°V r…ʾy·Dd“ê¤÷hLíÈZ†ËÿøóÁíe#=ÇJJQ XÁ¬¸D¤S"(õ¢š@†xaüÏ鳿O~Ï‹uEqÀ¡jÈHéT +f)dŽOÎŒŸ*VÎÿ#bŠïMLH°<“þ˯c\"$´Hj_W2ºŒæ9BSþ×’³Zaú¯xÅ™ÞDÑQIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/exportsvg.png000066400000000000000000000026271417122252700226370ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ  mÓ^9IDATXÃí—[ˆUUÇkŸËÜœ™ÎÜ(T¬©`‚Ÿ¢ 0¬—°‡&A33! |ªÀ _Œ¨Ð"1"‚¬PÔ ƒÌ"‹ K&fFçè\Î}Ÿ}Y—ö:ÓqfÎ\$𥠋³Ï^{íý_ß÷ÿÿ¿o c 7óp¸ÉÇÿâµ&„¨Œ P1Ëó*„ÒöܘYH&¦›·/w€°Ã©`ª^6€¤ Ð3¨Ä~=°Ø7´1¸^#A˜¤ä¦d#^Ø0íâõ;ŽtàÏvVqÜÓÓG2™ “És‚‚q¤?Jà]C….„eT˜ãô‰nr6êF8àq H)IÄ# ärãÄ„•GÈ<à£ÂFÅÑÒÁ˜:1€V °#œ D|&…hcaÀ¹·ïºn“x*É`yé”E~K  (îlJ›)@J€{w \Ï6£Ç/áöæ.3t|'ç²+R@ÑWcô¼} PnA+9庖et9‹*¡Š#¨âavˆAw =oör`ÛšOmšF !„pæ À-/Àè Ú± 0*@•³(7ƒ*çP~DC»²A@ÄI‰f ˆYyÏ™2Q>EÕ‚,\›Ø=*Ä(‰öKÄb‘<•*ÐûrÏÄúÛÖœ^¿ûÈ  \EF3gÙB;Ò¥, Ì_Ž"¡%Âp âÑ#’Í·ñàý9t9ò²(/ÇOWï®("o éÏ+ay˜À$³ì{罉ë/l}o½Ëæ7ðÑÁoX·¦›ƒ_¥$ÐÉÂNì…¸M¹šo4úÍD*Ø´å©(¡;…Eñ–EÀ9znÃϦ9;ÖÆãµø6k5Ôa‘lÐA˜‹R°ïaöï= 2ŒôšhªÐ4vñù/I®ŒŒV6™°uEÌ;:, ‹#¬]½˜Dj1:h6oÝÀ»ß`óÖ hI}XuЙJQµ{1D……‰÷~= FÿýòÔtÉÈ3¾=þIº®›ÿ „BTWÇZå84|øúã9?P4y èŽv—L-!™ºQ×L¼©}bòò³#8Êçç¿Úøò»;8ß¿g×™ïOžú´UÃDŸP‹w~±èù7Ž®0‹ \´_ ,Žb*nX¼ 7ab©ˆïED¿oeŠŽ†§·<²ê‰nëˆõÕ‘˜-ÒÖô€J– c  ÆÏã44ƒŽ"h„Á¡Ycl¼€º¤`Ùò…mý{¶÷ôtº½½ûŽUõ 0Î ”½Ù›oŸçº¡m^4KîL°tÙ­m2·jׯg·=T͇š0Æ!„¶öéE9Îý;/ˈd#N©~ÂYV(-‰Å»Ð^¤¥AiR‚TÛ‚¶þ¾ÌdO¨)Ã*ÀÙáåÓU‹Ik¡ºÊ߃u8­ ¸< Éå]Nýð꺋—~˜SSZ¥†˜µÒV Ý¶ZM6Œ±}DrQǦÕ=úä3]M¤ÓEŽzé¹átßà*0f•côlFdlJ•ôuÖÙD gMÔ%[ÇÏN9ôÙ–µ%o`ÈØ%¨®Šs m9•@¼–«U8´ä/ü9xö÷¾=¯”¼¬]W° UñL"£¬*§b¦fV1zôÒÐ……òù+ÖS*jòYÝž‰ÿòëØšK¬ª9UQ”“_>§btGåËHÛHU¾–ôté?X½¤{]P˜¡IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/expression.png000066400000000000000000000016111417122252700227650ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì—ÍkAÆwv7ÖOEÅ›iA=y ‚àÇÍ“/"‚7A¼xö¦@AÌ©xÕêM<$âAªC±$ ª ´¶MvÇgÊ3á͸[ÛjÈ¥?¶lf÷}æ÷ywª´ÖÞ0‡ï yl @a$Ý×,>5È"dpÅLÛl›€1¯:ü‹jʼn}ª7|¸v‚w`D$îË@ŠbŠc)†ó,rž]¥¹€Çà øŽ€{àè€n˜¢xœ-€ç %TÛ¡Jˆ´˜{'À(¸à¸^Û… ®¸Ï‡jàã½±ºkàjBæÇ¹2;¦9ï È‚í`‘q‚¾ ˆÔ›T=oÁ]pälÑPù ðd„“bÑN¡Íñù3à$ß™jC#à;¸öó^•:üݼø8¸ DÛÌL;5aÇYp<3BdŸŸé¾&©ü4ØËtIg|ïù¼¬?Ì΃ÛàxéZ1LxÀŒ},ÂSÌ@_áö̈-°ºŽ[̂€Ëÿ,­|¢mLŠ' è¼Øª_¡+!¬çoŠc¦ÌßG9o›Ü‚^€ }®&G²be&زª^¡ÄK#±¥xŸÚ!Ë® <Ls’%d!JÙw-¶Òâbqí5¬ÐyÐídÊI{ÌŽ¬Å<·Û ¡Àf#×^ï!‚ú (»ekÁù‰‰‰Úr•B¡°ÀÎz˜Î1sÃëxÎþÊ®çŸ7b¦¦¦T£Ñð*•ŠW*•æØawÉ­õ¾6}“Æõb .???ïEQ¤‚ ðjµš8B'dÒ2ðæ_&{³³³^»ÝöêõºW.—åïXçÌÞü™¤6"௿Y=±lÓŽz§G\Ù3Ä‚}°/Ÿ÷»¼>ºûpwsCˆœß´í@æü¢Õ ] ‡¾ŸCŽUÂ’xÉ+Ó×o©þÁå“W¶÷¸¡÷Á}`é–uvV;{›û r›·íªR¼jãå¾a®ˆñ°×Ñoi(Dƒ q+9ƒï¬yƒ¯ºßé„mMàjãX§íë첤¥ªjÞÍ)YSñ£Ó+.vyyð¹z±ORQ((äDLÏ à¥wÛÐqï&Ð}ͼë`Ð7ÒŽÖ„Hh»÷ÏY³në倠,ðøqÒÀ¹û1N QÀd¬K<àU5Çë\¾P¼ýîo€ÌÆ#é ÝŠÖPðøf5‡?Ê.[WÑ h0×äÁî䀱AÀkV)Þ2Œ€¿´fcÆÛûNÔ¹ý¡µ-#pGw#ïw÷¿#p®{hM€K}’ûrÙú“É<ÇÁáÀ°Ãh-H¼—zXÛ7= |þÂÂÔ]ûO\ HÚZl¸ŽÖßÁÑÓ(ú™#¼…€ã‰gAAÐ5-®&3*ÿ(’sgd-Zµç’®©E!ÁbЃ½Ýs÷Ês;I pãIZZ¶¯pÊ“K¾S•P¶¦* i à=¨öQô!8Q”?PÏØ‹Öãÿ é ž¨1±â®5iê¬ìgVl¯3[¬KtÀ )PUùV˵/«³½¤ñà'%aéÓÓæ.¿5wø°,Ï:€ó FªàQbS “vBì½­7¾®TùN’5 R2&CÆäiÏ¿öÞ¹ô̼L¬QMîoû©««¹a‹,:0¸‚‘Ej¨ {@'Òâ< ÏÓvã|e8ÄãÒ³9 ’Ó&=¿´üèÙôÌÜL¢Þ#¹ú[lMõ[x³ª„‡®*ãJu߆€ddîÿr¶R zïàÛá[™-É+ JkN§MÌEu=ºýfÝ[a)ø+×um¬I)®©ø$îý|¦å³  7”×’yÅ_X¬i°£$Y½H‰ÝŠ"]¦L樽5ãïX>ŠNGëõ¯¶£NØ„«B 0˜H霂µ§-ÖÔ BƒHJXòõ·^;„8ûR9GUŠw!R§!få/Zý­⟕¥V/¸j·ÝªFùÿ˜‰IÓrò ÷"#/cìî MŒ'¤ŽU†q‘H0õ‰ì‹NI‚/ ©aÝ’”¢šÌÖ†aÛͫѹ€À3€5gfÁHDØ÷‚è;e(15$võNh Æ2/õÃãzåN4±é€xõü%À£8ŽPäÈóœIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/fastforward.png000066400000000000000000000031411417122252700231100ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<óIDATxÚä—}leÇwí]»vc d°™ ‡Ɔ!ÂT^²ÅÉK˜B þ£‹D‚Hœ@PC ÄH"ĘA…@† Ñ?@ù˜°ndl°1¶±µ[×—k¯íµ}z½«ÏSž.gsÛ þÁÞòëÚ{y¾Ÿçûû=/ÇÄãqxš Oûøß;`åC Ò9§a#S≘!Hi”œ3h"é B#†C}=دë¶]üýÔ±‹çކiƒ‰øpבœâYe?™yC0LvÅŠì¡áìѽ5}7ýøD!béB°:ÆgeT._]sþ¥¥kžÁ¿3pðö»}›÷;Û÷ˆ*ÂrŠ*Àø%‹Þ¬=3!of.¾ÇŠƒ£cž€ç6ËšQ¾bíæßJæWåás&ríÛ/ÖwܼÞð–Ã1 ŽËxuáªÇ­ãórè½iCè–e€1óFȲZæU®Þòë´ÙK 4N0¿ÙÕvýêŸ5.QôúÃST0eX-|ã³ãÖì)4†± ô`£²Â ž3€Él.[¹¾¾ xés‚4ª^9÷Mssã…÷œÑï—P"áfkÎâÕ;Y³''!ø± tçŒ{e`Y0qp¦™3Ëß®/(©(¢© G´õòñ¦¾öKëÂ’/E[ÇBFæÄÅ Víü;‘“„.@4¦@XÿqF ,.6nÚôyÕõSg¿6BNGÚþ:yc ³ñ}IAUQ€ç9°dO®Ä?¤¡ “U§b1X†I@0¸w ÃL-,©ü¹°¤b†Æ Ô~ít££»iƒWCJNhÚ©Þ¨ï$¬'u!ð ƒàìÏÀ=Ì¥$)؉Ïåhh8s$KÅ/”ž-*«¹ÛeßÐzíW•Ñýð´¦÷Ìè«!'ùEdp R¢×n{ûðôŽ÷žß¹-nSû–T­±¬X»õÇöï+|¿ÏÙEÄo‹®ÞZ%– UR×ýQ ªÆân_‹w»ÿŽF\µKÞ-X¼XNF-9=gþ"ËÚu;Î~yI_o¸ú[“âŸ`q/©z¯¢]1u ó»(©àrƒÛÖ(ä}$®*]8Ÿ;qqõáŸdõ“H£¥s_6mÜ~à”îlí°½ó„®*.à{¥®”ºþ@<‹·ã‚»G‡f¬ÕïêûT‰¡!*$ –Ì)ç6m?prHˆTÝj³AoëEòL µÝKŃ@NMƒ.€[ ÇÝ.¼P™D£èì݃!­ø¬²…üúÚ¯êZÖr×Ý·/€óaóHâQ½}‚>€àÑÙ A<æqCçEgÏ~œ{QÓ šœ_dxgó—Ç=håN{¢çÎÞ¿oañí銗|Cq\åNà¡tˆ6 9G“òŸgßýøà »;Rý wúï^NŠoÃâ¾tÅõS ûâaÉ»‹ŸL.:É"Ê-,…•5{ël®PµkÈŽî[X¼¹I#LW|$TÉ;¸»¿ýR/¦*mˆ@(ó^ßZ5àüOßiað¾õ >g÷n,ž¬t)]ñÄ„¼˜àUN;/(XrÊTS6šF:§“)جé¢c=L«=­©^ Íÿá´ÐHÉô»¢y5½N{Wœê@ê»hŠ'·l§ €’:Ë=)À˜ÏŒOþϯf#¾Ï>®ÈhÇ? `nßIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/filled.png000066400000000000000000000024101417122252700220230ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<šIDATxÚÄWÛkUÿæ²;;»ézyÞ¢„¬Rh…*E|’€´(mÿÁúP) ‚/‚ÅREAŠ¢ ‚äAК;—33güÎäÛ:Ùì„M6˜ggvæü~ßý) CØÊ%ï-' ®ça —ØHdÚÛ+$á´C؃å^@i)x™BÑPt”ìÛ§÷ ?¹3/~“èô¿xNÁwd"|þZ$éeARÙûâXöÐá#4-ûj*/x,È9®Œ`ÛžWo4~¯”©™3“ßÎ_=SÅw<’@X%ɉbà©Ï¾øeÿ}ƒ¼gYÞc•ª åŠõºq„¢H€ú‚ë2£PXühêÇñÓø®ƒÂÚDº‘èJ  >ºã9ý IÚK…,ܪBᮠͦ.‚s¾ .O§Ð2*¨Š ž@µV™ºpî“7ëÕëå‘U$VˆkþÝç?w™thϸvÝÃhó|HòšxS–e ­ÃÀ2 \üóÔaÛ* —XDb…;º¡  ~59sT€Ï]+ÁìåjÞD­“Á—£"—ø~#+é]?õÊ»x± %CÁ)%fi¯L;ùˆªfßú§sWKhN;:¸×µìT5Šª|xèùÝ”%iÊ)É‘Ñg'ju;÷÷Í TªÖºÀã Á‘„ýþq" Qí‘“Èû^zm€såõ;hò»%sÃàÑa²jJàÂ3ƒùáÑX¸WäÎàC{[–—+Mhµô׫$LÏ ˆ†îØÓ“@Òž6M¦¥YßÍFV1S¨H0BÚ«ñ2®vø_ò¼0Ï9Ãt `Ó:uÈÑ•ìAÂS’D$ó%*À¾9Øa€iéŠÆäÅ€³ýn×|ŸoZ»åk"nôÒ ÃJŸ,j¼¨fýkϱ"6Á±Ëèÿv¬Uw­„ÑÓ¿MN[6³Ú¥µŸø´Ì%áì­³xËowÇ6‰N ð›7ΚÕJåû€‡˜Br_ÚÛVQã j\têÇ™ÉͰ »KXnr2—ËÞï|÷Üs¾{/LÓ4Ä7†¡e¶TzÞ4½`‚ÊMƒE,ЩD„ É!ÉW-ÕŸ>øêq¦1†²c"QÉ9ÎùÛ/¯Æ`¸cÆç=}ð‰ºý€ÄŠ€†ô‘ÊÚ¹†ò¹n\¸þ'ØÞŒø¹ ýºíä S.gƒÕ31«s˜ß+Ï Ynè[Ž6•Já3v»²yݧ NHÀ¸ sN€=ZuY‡ƒ2X=“Ý×õú߀ÓcQ@bÅ Ÿ~x„žß•'ñûoS§ë<¾+B€ ýûǚʑx¨mÏÆBèðvUàâ¾Ð.^XÎs ™õÊ×v„Æõy]—W~—Zõ¸{í—$@òçº ¹¬¿pîä±»ÛÖlÓî/¯Þéîÿïr ɯ,Bþô,vhˆäŒúÏ?~óáXhºÕjs@›ëƒoµ][O¼];!ýAdù÷XS[-þó[¹@ŒåàB_µAƒ¯SçwŽÙ ¸mÜwñ¦ÎÒÇŒÏ ŒÇÇ®˜ç3hŸ Ç5«²CÏ”ËÖ1ÿ“IF‹ÄR ­'Ox'ÍÕV§oìï[Ôg ÔŒÍœ»Ôé\ÈÓ´Ê˨«*Â_dÆñL’Œd»ïg?yë±HàN‹ÕêŒ,î÷\SÞ)ÎØ>Û‚³Á.Á%#í#-ŽŸÃ™7ŸOB¤v_­¦X]L‰õm§ô”$à\šËFZ]Ÿn9L@2‡߉d°uºåé-•ZÕŒbè^¢á?t•¡~&ÿ%Í@ïç@"¦Û‚L8~^AÙ*@€.`‚DµÉ2²ÆIà…L–¤\")rKgymK‹3Oˆ„j˜"ÉðqI‹=oÅ,ÎsÅÚÿ Á Z•OW‹eIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/fixedcircle.png000066400000000000000000000035521417122252700230550ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<üIDATxÚÄW{lTU?÷=wÒ–¡vJ³ÔR*(D¨!·Æ˜ ¤h⪉¯_5A6kÔ]·˜˜}°a…MvqwY 5vŠn‘ (u:--óº3ÓiçÑyÝ;sçÜë™Ùs›ÃíºÉn<É—3sî9çûß÷ïû¥ë:ø! ~àÆÎu"…šñÓ$dÓMô›PÌÎQ1…ÙbL= ÂPª!F–k‡þ_@‹iCá[»^X^çtn¤ ¾ÔeP-5Ã"”F!ASt*¤AàÉçä H´ï‰® u%$ªaÐf騌85óú®gÛÜ®GK²²5‹.JÅ“ V€,«ª`Fžæ€È ÀÁYÍæ Çûs¹Â‘¡kc?}íS4€˜Ù¸€ò©Ù=ïìØdØãÑPW0ÑXúêô´|.›S.§Òyod*%¡¹zËü†&—ÓÙQou¬¨³ÖtÖ ¶6«Å TN…&bØ?pâÚ¯€”H&fÀÊ™=¿ÙqŸ…¯…|žÕWÇbR(’ê“"É㣾 >‰!:áœLçâöÖŽF÷ƒ µ[ìœÕ­ªðkÿÔdïóŸ–A(4@\SϼùúS‹Ýõ¿ø®t }'÷ùãÎ_ôõc›t–ªÀ~Å=|ϺûTïzBd-w§³ùÓ_Çw}â½ìEßd¼G„nŽ•Mš›]¦’Á®k¾˜äÎ(//Ê#É"ÉྚT¾ýíìçÇ'ó™ýŒÀHV‘ßÐ:ßÕÆE$<J]ˆðééÝ¿zv¹VÊm•‡S}_Î(Ïa9| …°kÿVð·ÊÜ}§NS€ú¡ÙÒná7oê¸ãv4.”*뢰½ÉÆÔ×Û7¦§£‹&b™«pò8¦ÚØØ ¯„ï90'€ÇUcÍÈDø0gãGE Û⪱¯Ã °˜…ëBq…š†kÒéºjò¹á‘ŠÃ‰Ó–°Í {sxCþ»Þ{W›SØ? ï?3 xvÀ*r@àÙx g23F‡ê²lV嫆7Q«œšQŽõ¼y襵-è·5zôÕ—o³%OtƒÇ ëx}± «_Y­À±Ô"’Vü€53 ij³¢”@"‘÷â JDh­°6ñþKoéy;î½kùO<ï.ícÃC=ûO ƒŒ1 hª@(¯„ãÉLæÛ¶ÚD/Õ„Ð7b€Z hPAiZ2Ý÷=>øGߨ46Íßšõö68&à9j5€x¾ „íT-Ï»—¹ëŸøùO7<€3™ƒ 1`2Hi„ݹý;·ØõÂó1ßxóX$~f<šè3EUX­ 1åâ϶¯ýqËüšWm·’e9)S ?¼4>qøwG?&mV=°ç•'ßê^ÐMåRÛ¥kã̓¾èEOxê·§=þ/ˆt^fL-%U lsqçCk65×9ž®± м}T¥øLQû*Ï|{æ›?Ã0z×Ýw.\ˆ®š³šR•õ…©hûˆžpüÌØdòÏŸþG¹B¤ò™‚ä†%¶¹e[gGûRw]·Ó"l¶ |K­(»h,/šaQ|gPè†*(e³ <þx:H¤ O$ú.c~¬<Ó’Ì\”b&Ê@Ä­«–Ü~‹Ó¶Nä˜<Ã,aÝd,Eõ6U5œ+¨Þd^¹HfÏ ŒÏ8\ŸznE©¹,'®¡€{ŽÌfU^FqU‹„â¹—åÕ&X1‹{æ& Q¸Šçþ0ù_>ÍŒû~£§5×çùÿëqú½·áÀÒÅš]IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/fixedsegment.png000066400000000000000000000017421417122252700232550ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<tIDATxÚìWKLQ™Ni ©Á*JTX±DMÐÑ(èÂÄÄÄw&nFâF~ƒ1º †hâFB…cÄX臖vú!JË·´S:ç5oÌ8©Ð–A6¼äæ½¾y3çÜ{Ͻ3EY–Evr`È];N—òa(7ø¥`;¦röjÇ$†Tk¹939tÛÖ`dÇýãG Ç MX%÷[ ‰à¢¨lÙ‚Åp8à[R©ÓT=7ËäÅÜ^$‚Ç‹*U#âž œQTæ+sÚªò•¥u-’–öá…Fb™ p×V9#9£…zÀ$—œ_¿ÕÒ<–~J;2Öö•Ôi>âöU€L&Y“ݸ\¿·ödÅ Ÿ“¨7[ˆÛx§¦•us¡UÕb$Ô=:ïî€QˆpFñQÀ·óüa{kIž:«wÚjܽô–ߤâ*:,¯)/PkÔM¸¿¶É5ò“Ûâ~ã2¹@OÂðGY >&âÀ`u¤Áw¸ ^¦aèS*·¤ßù ñ:á{9-x¢­ôñ ?±%#°û×ìŽß ºnÏY8ZŒíIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/forbidden.png000066400000000000000000000002411417122252700225200ustar00rootroot00000000000000‰PNG  IHDRľ‹tEXtSoftwareAdobe ImageReadyqÉe<CIDATxÚb¼Î Î¾ ¨`3ˆ`Â! cš€MX` ÿ7P$n0j0 [AؘtÀs-°™ ÙKؼ `ñ Ãíà ‹IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/function.png000066400000000000000000000026601417122252700224200ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<RIDATxÚìWÛoUŸ9sÙûìnwÛ²—¢í6ÐR.)1@, j¢Œ¨@‹¼ðd4¾øà“€1ñÁF5j0A’ ^"KÊ­wZé…íÞwg/s;3žß4¶”&ùåÌžýö|¿ïû}ß9gY˲˜Çù°OÜ˲a2xˆÍÂã"ð$bóÝE5‰>EÐFÞ“ÿ;òôSðþÌ}ˆ.=Lˆþuúœ$¶s¶Ó^ëe_Ù±^’D,ý=|µ|àÓÑùŠ.fRk…Õ}¯ l¾ÃùR¨ó£»»øƒ/oïîìJµE?ÜÞ=rüPKªÕÇzˆ‰`'æQá›d Ž; eÏ}t £;&½ëÎ_Ù¯å¦KcÆç³…㟠âÏ?>gÍ•@'¿1›àT³÷_Ýè ºùúØéÝŸ™ùñRƺ¼§ ¬ ۼ̛7JŠqK Â×j&Zq±ÜŠžÛÒÓ‘@µÒž3çkߎZç¾ÅS¿Ï2Ã$ó.Bl`C§{‡-ÅÃtÁ݅Ѽ¢{­šþgËÏÓÌÐLÙʩÎØ\Z ^»Ä í^.¨t¨Y-<tpû†7âvŽ\ËèW²æh®aÖ©ÖE&3UG‚;á„8˜àUh( '5¹6ðÇœ9½Pµ²Ød42_-ëÙɼ9fp!£Õë^#‰Ü™ßEi&ZFëA”‚|ô¢‘€7^ªýÙé¹Ci}ì†ldÞM×À¤ÐƳj!§²AÑÓr m°‹¾A°ö•wÁ^HŸÝûðz¥zÍxé쌬ŒÔ¨‚Í­d¾Àƒs%)!…Ô§\¾>_™G¬:nZmÇ5]„Äÿ"\ëÍ$Èä2M1A!Kp¢†ëSUͼA粋%EŸËTÇ4¾§‚Ꭰ( 8°›¼Óù² Fß;äÈàÚÖÛwêùþ­-é¡‹ÁÅšñ¥ŠñY2_²t4 ÓôÖæØb^'±ÍÝ!#s)Ÿ¹®úòý-V6†e Ð/ßÙ{˜û¥Ð©Á?Ë¿Mvñ­Oõu(5v×H¡>]PôÝ4Øí(h!R[þj!7' ߉ÕþhooÛš®Õñî_ÓÕ¢«T•[®ÒEYmP·N X)’H†cïõumÚ”żtQËãn$7OŽ,öÌT*ƒ²®RitêS" Ö«—ó C£…±¹|ë繷ÚѪ·chÕ¾V1Ò µÅÝ•Ø,ÐôT¦]k/p\8¾­oç'ÏŸð÷¦Ö%ëe¦kt!­äÕakp¬@ô@I)5£^œ’çOUEq!÷ž:ƒ|*F ¦L€µtaµ··=êJñ»C‡©Ö‰"¾aø©ãÚ¥yi¾1ñSI[üE3[wZ„ bgÓmâX¾EDžvŽüdñŠbÖ&uSÍCQß$NepËû‚|üi?Ù/¢Àa–a“ªUÕd#óU~ÐÌzÆb¬28/Ð;€qs!8+`o $0r µ-è.G€¶ Õ]Ù@‚Ó:ÃRöaKÓ,CFÒJ– Ž‹‰âùsºÒç_Á²–uã|IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/grid.png000066400000000000000000000014621417122252700215170ustar00rootroot00000000000000‰PNG  IHDR szzôgAMA¯È7ŠétEXtSoftwareAdobe ImageReadyqÉe<ÄIDATxÚìWKŽÚ@mÿ˜!ÃG$$Ö‰’MîhÖY¡+ ¤\… ¤\[‹,f„Xa ƒùÛ©"ÕQc3Lf“’žšî¶»¯ÏŠçyBQНÄð|åïŠç‰cCiǤ*A£:fq.áø¬,Ô=É @ªZ­.¡¼¤±NíªO™Øðä—ÍfÓt]W”J¥ïP¿d±=NjH›Ñh4&8·–e‰Á`€íßœzµZmvww't]Ýn—÷¼X€ [LJoã¿J^Þ–Ëe >Þc;õ'¥ 8Ʊ’Ñ¥Õ¾%éÿjg»!öEèÑÀ˜Ä^,¼Ï&Ùmêe+îSÀN¥R~±) ( œm±Xä}Rþ³NÁ£Èd2âÜ¡ŠgŽÿô«ø 8eŒçWàÌã?ijþ•Ác†fw’ª¾5ºj/ŽãðÁ„ ºˆ¢ÒËJ¥²†òàŠÚÿø ÐH‘¹ŸëÍfà \Ñ +ª'#N±aš¦Èår£étŠWù’®s„-ç“'êõºe†°m[Ìf31Ä|>?Hót:-òù¼ÀqÖëõnŒV«%:Ž|äàž°Ô¹ j·ÛbµZ d<E¯×“Éä ÙlV ‘L&wnªßï Ÿ’hjÞHS#Øy@MÓî}ó~ޏ #ÀŒï’— Ì“½3Ú`¦ä3à'` X7x*ä¢þBõÌSà?õtælZ ¦Ü·>G„Éq>Æ€yD:Àø@ï̘§ttv(l‰€rßÿ äcd}×ôÛf» ¸œ€ÃìXÕ“¨ÄCDÛÞštZ nØ-bÿÏ zÁ$XTr×ì= ÃŽb—$z Ö’ýRJÕõL磻@ÙÃ\cs(?@ì¸=¡òy®0¨>eøÇÊÉŸç¿6ŠMœ}Õo<IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/help_panel.png000066400000000000000000000023551417122252700227030ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚìW]h\E>÷o÷îo6Ùìj²˜Ôº%Q+R±(êKi+¥õ%>[%Rˆ(DµEñMÄþ[£ ˆûàK…>ø$‚Ú‚ Uj4Ùvó³Ùÿ{ïîýgîν¹›ÍnL-íK9ÌfæÌœoÎ9óÍ\!wRX¸Ã² `À6~£N†aÎÜjG˜o޵hQ,gË2©•Q-U¯_Dt ¶¢æðP[f ¡€¥K`Ôs +‹·'DL­vŽÌºÝšz÷n²c¼u@–UÅ@4‘:´©†4mÊ25aÐO+À ¼ƒ  Ùrh<Ž9ª,msg"ÍÍFÙ­i@Y† Ëù‰'üÇ'DÖ;·>ûáÅIGŠùÚð…bŒ÷Æ”X·8§êå /O"~D¬YOµ#À ]¾°¬XÏG±&ç'¦Î§ñÔLv¾:Ö7äFîï‡G¶mJE%´œ-®.1é“S_–ç®LOöþoxˆäQw@´%"S-àœ+¸ ;¢,‰†v@ÀÇ¢ƒ3Šl>´gï·c(>ЬB4æ‡ÇžHÁ}»ï†‡÷¦¸ ˜ìÝõä)<'L#Á;ij À2dŸ˜uâ-î½7f'þ.ÅzBP.Ö Ÿ“\•*uÐtŠÅ#6ÙŒ”~ý•³x.YÄGÖ ‘ä7;&G_8 ³ç_Å0V–·èx„ãu®X[æ¬æªðóóM}ϱA1±ÿL6y¸$½¹¢±©(€BW¯ñ"h;ŒR"…C„2Ù æxJ­\î²Ç1úAfñ¹¿üsÖ¶ÅKØæõ.ýxËêUpãæ­í]¯¿ L'E"l,mêl™(•Æ‘Qä&F®2Âll”ý&å÷û³.—KN§ÓòЙ#{&âѯ£Ñ:¡6‹oùrU$âKx"¢66ë·VpÄ»Ìà(ëÇØ³B!bŒ›˜õdt$}ñÄáÝ“‰x_<‘³eeuusЏªx!Ei¾è¸ü·²roÚÚ³ßS»ø­šjwÑË“SI0u•|bG!DmeÊm“+>Õøbt¶±þ™Ea+åÀ‘»2©d_:“M×gñxjÀîpmgEÀ÷¤K‹Û’ù°JÛ2"z²™tŸ,+ù´]€5{auçË×ÖÌýB±…D(ÙLùŽ—¢ª +Ùoç= ´•¡«J/eS]•¿ ýlW´9áÚ8Çù=gþSøsc>4%"øˆšõ1JHU'‚ÿãËGÑhŽŽŽÌ]ç1vŠäÀ¹HjS¡Ph-™LB €v»=eŒá†J¥2¹.--¦lZœ0:‰DžÄãqPšÍæ”1¦z½lnn‚ÏçƒÁ`pòÙÖÖ¿cCNÄV9~O"µLfyyùñêê*ˆ¢8e«i‹EÀ‚ƒD"’ôgO\l:†r¹üoÓH ùŠ|G~r1v<´ówÈʼ" ƒ°¾¾~êÙh4š<«V«ûä|@ð¼È4”4iNøW^½ù4·JÞ¿u*äý~öF£‘ã$§ß^‘cJ›U‚Û1­ hµZ€3€‹Èâí r> °ËTš‚¼âëõ:är9ÀÁëî59šœ«N_F®B©TUUŸámÑä|D¡×Ì­8K€«Ó*v¼ä‘÷”o=çSa?íÅzsa>ؼé8_È$‚Ü@®ÒègEÓ® E½>r™Þ`’M¤êë„L÷ŠíÎç¤@ÿÑÝÉÖ¼=*…yLŽéûl^*g P …36¼D›ã–j8õhNœÏJÓóÞÜ3ß_JMáý§K8ÿßð¿ðK€u§ÓT¼>4êIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/history_panel.png000066400000000000000000000023661417122252700234560ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ˆIDATxÚìWkke~fvfvö’ Msi–$¦MŠX«ÕB hÕÒöK©…*ýTAðƒ~úÁ ¥©(ˆøID¡àï"`I%¶MÚÝ$MÖ4É^³›ÙìÎî\<ï›wÃf³³%Ð/yáðÎΜ™óœç<ç̬äº.ç’ñ˜×.€]»”F'%IÝgKb烆æÍ; ½Ø ª7Z£®XŽc¹v9çÓ»«ÿ~ïŠk^÷I‚U•L#ó‹ý*;ß螦%pì"œò l3 «”Demq;Y+†Qº²’1~£ã ™NæcFÌÊÛÖ€-Sö°+«dy:ÎxG^8+©~óÏ…·r™ÒH&a°ZÅyÆŠL~Ò¶°ŒYöNÅ€KLPˆ‘R³à,KÿÏßÜË…CÂA ó³YÄî¦â€&|¶ A k‚›T/»¡»Èˆ]ÐnŒÅóª"!Ò׊U£ŒûÓ‹ ÀÚ,Æ€U€ã”)ŸÚâÕÊêl,c¤– ô ´Ã'KˆN%aV>ÒsBþÿ ðØk¤F ²¢Ã§µ{ÕÝ?s/…îîÚÛuÌÍ­ ±´Š€ß‡;K¿T:Ø$Foš™à ´ì @VèW'ÆdY°ÃÈåJ˜¦áSdn‹ó+¸5þà<ùDGhµ <0ê/^ú²2 š®Rö :Ðu•ß' ß~=­àó°ÞvëØ:wñ}Âdmñ{æhz"{Ð?¸]-<˜ªÊð“&X ‚"@ ’ˤ’´´1ð¨M`½_»¾úä]JùM.L*'Ïì}š@´¶‰òuªõË<°¾W,s3i^ŽO Ú“¶pºI„4~«ë‹_ã“‘YF‰ùÊéû=A ìç‚Tsf¬ ~ º¸G2aà‰áNÞ`â>¶;Š÷Hóýã÷†Q.ÌTu IUd8Ãóó¹h|šu…½a´¶ù‘Ï™|"ê$Ì—Nî?E¾lž—É*MØf —/…P6æ¸úÙ$¬{»¤G<Œ ¥¿¿m˜¶¶Ï>úëÆõ_c8{áYò&ÒéŽëg.ÅclOC¯Ž]mòæ­ëIŒY>ó +ˆNÆñéå<†žìEÛžFŽœª n ö3àùõòðWqpêv"{ý§‡z±0ŸÄll¯¿9ÂÜÖ„mdÏXÜ‘oBöáT¿‡Ÿ‹àôÙCèŽt``¨GE^f:6²çàwê¿¡`µAxb|1QÈ—ÍqæüS/ˆÀ¬‡sâ¸ìŠA³ÓTñÒa3?$~;"h-œ~ϯâG­„(ƒ)DYÇbŠÝqk²–vòï¹`¡*ÈêLJ[3|¡—õŸÿ+"/B¿2)IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/hour.png000066400000000000000000000024511417122252700215460ustar00rootroot00000000000000‰PNG  IHDRàw=øsRGB®ÎébKGDÿÿÿ ½§“ pHYs.#.#x¥?vtIMEÚ T³Œ©IDATHÇ•VMh”G~ffw«v›4¦ÆZ‰I¬?‡%‡H<ÙC’º1ÅXB X¤ÐClÀ[ æ§¥ VŠÐX¢´µj7‚KAš„˜F¤Û¬kÜìæw³ûí|ß<=˜¬óc}.3̼óþ<ï;ïŒÀ«!¸¼À@ÐJ©yÇqøªÃkÁ @¹ßïß!¥ÜdÛ¶*((˜éééÇã#~0ÿ ·Û  «¼¼<:44d‡B!¦Óiž:uŠ~¿Ÿ$‡ùðáC?~|Ào>\I—k…µ½yyy—kkkK°¬¬ŒJ)(¥PZZJÇ#`óæÍRrçÎëü~ÿÉdr_ hJ&“íV¥­²¢¢âÉää$çççMUU•%IcŒá"ç‰D‚uuu ƒ†$ÛÚÚèv»¿X–wòóóCÓÓÓ$i´Öœ››c:6¶ms%h­933c´ÖŽ;F¯dãb{{;µÖ…ƘŒ·ÙsÇqH’Ù†1ÔZ›h4Jl_BÍþýû§jjjLCCƒ±,‹Ù”dÃqÚ³³ü«¥e ]$ÍÕ«WYTTä477;šóòò”R@ëƒ855åô÷÷3N›U hÍ;'Oò;`ÙÞ£G‡M4¥Ïçëð¶Ëqœõ6l(ÏÉÉ×ë•>ŸŽã!^\’B<¥ÄFeW®,á—$JJJ°pGŽÙ700°QÈillܵuëV(¥@R,Œ/n£0æ¹kàäìÙƒ÷jkaŒY"³h ‰„P(¼ár¹ º»» 3‚Ù€”@8|ûy76}ä_X“Ë™œœ—.]B$â}922â¾}û6<ˆÊÊÊeåµHÑÏ=ÿà«¡]øäÍœež/ÊD"´´´!”Rë èܹsZë5“kŒ¡!üô3Z«ÊضMÛ¶ÍÙ³g  V˜ïëëû7™LBJ)²=Z©3n,Ûk||U¥•R˜€a)¥œéííŒÅbBв,ض½,BضmGb¼·ŽãàåJK¥R HB)[ìíwîÞ½«;;;yúôih­¹’wRJ¥ Ün@ë%Q!píÚ5qâÄ ƒAÑÚÚú;€˜\(µŸêëëY]]MÇ#^Ž€$¤”¹¹ mCÇb™(ŒðÀBðСC)—XÙ:Μ9“é1 É6/µ:Æðñ… Œß»—ÜÅâ0ÃÃÃpS±n§ãúõë$iR©”¹uëÇÇÇMv£#Ééû÷Ù0ñä‰ùáÆ Z–E’& ±¨¨èoÅ«½^¥ÔÅ®®.ÎÍÍ™-[¶˜§OŸf"yöìÇÆÆH’ßaRcc¬­«3çÏŸwB¡‹‹‹G”­ù\îÞ½[øÀ\GGnHš¦¦&ÖÔÔ¼ Æ²Ì›7YRR’ð €’×yô+Ô766Våææn/,,Äàà âñ8>Œ?ûû ùug篱xü{)e¯1&ñº¿ €|ïºÝî½^¯w‡”ÒcÛvdzz: `b­Å”š³XVJ’ÍIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/image3.png000066400000000000000000000034741417122252700217440ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÎIDATxÚìX]l×=³;ûãÝÅöfló#cJ–ºHÔâD•¢„H¡Áj…„ÔH±Tõ©•úÖ>ô!OmÕ RÛH%o ~ìŠÆ8P”Z°!˜&xlc¯wggwfvgf§çnîÒñº! ½ÒñŒçŽï9÷ûÎwï+žçáqh><&íÿBV6õQ¾ïðÏ»y%ÉG'ˆãþø~få»Ê£2«‘nÒݳRÌ£Œˆˆ¾7ü2žÝ1P{píúÎŽÿµÞ÷ËGíÁ:Ú•hÿ©øEˆèê쨡.ˆmDaû&#!ö¯/»ä3´„ƒMÿÈóª"Aj©xÒêCšk3ñ1L¼Hl_IrwÉÂõtjbr¯–ŽÆÔˆV.éç„Vº¾dÖµÌõÁ¯ö—î®Äs¼7>¯8UÜœ315gàqgÁ‚Y­rTæÜ1°4ybÕˆ\¿ðá–Ów&y»@þÊʈ45×™‰¼ò£ï¿†EÝÆ´ &á­yó%ƒìcºÕ€áö„|W#ˆ¿uùO£œAg4€W÷â÷¿ùÕŸ(Bäm±,æ³RÈ¡FsÕï…ÇÿŽÝoÁtHJbUõà !ðàçAþQˆŸ"¨*(PÔ|[:¡úöá­­1<õDÉ“[þvñB‚ÃLjÀC™µÂhb!„©B%‹ ÔêMA@õ¡%èCÈïƒOõ¤’â{Áš¨*¯.ßtkcíß¿£‘†öð…ˆ„þb5smØ>€ ‰EALUD@A”„Qªª‘ûDT—b€0=¨V]¸¶‹BÉÆÂ¢‰íOD144ÔÅ!£RLˆðN£ãBˆH…\tî·=ûö"ΰIãÌ[CÉ)€ û=´ø«ˆpö~¯ ³ìÒK$‰T®ŒtÎÄB¶ˆ\ÞÄž¾'‹Å‚‰D¢-›Í¶Ê¨¾$D”(+§G˜6 ¼»þÉøÆ=»Ñûünlìh£8 …ø1FÂ/Jƒ³.•ÌkLÑÈɬ…»Ë²$ÕuF± MÓa˜6Çõ™%<ÿtFFF¶=zô_Rˆºê^#r6::ºþرcÑS†³\ˆPEÁ`˜IšÖÌrƳYÝ¢ 2‰y_0³ÏaA°ŒWƒ«gqøoã½¾‰“'O~zðàÁ?pÈ‹ÄMQ=«nzÔµmûsUU;æ R)ÍFf¹Œ¥‚R±«T!¹UË¿e9p+Iý®Éä—ЪæàUòÈ.-ÁÎ'±”É oëz|ðçSH§ÓzooïoI5!–±ž4«[×õËñxüÉÛ|4…eÜ,Ã4—FtiÔg#RåJªX¬ Jy^!…’>ǨhŒf‰aeu±ÿ³[‹µÁ»»»×IöÉVm&Ä¡™Î !]awn/ÀWuhqíjݪ Xit‹XÇ’õ¹e¸Ö=húrͰY ´=‹Æ "öãÆÌ"ò…"lFmjj îo«¶™obbb¬¿¿;6ŰEC ª£ÃŸC°‹ðª,MâQb5ÐÛž@OO·ïÍCaä6wFàznÍ2šVÃ/íÆ¶g^D*•ª 9pà@…´®)D,0ôÉçGŽ)·¯k )K—QÉ݆ €`•æ³aˆ½¤à Ð"V N¥ŒÎ¶\¦¡+щ¾§ŸCOßNŒöïDÏæmp vʵD¤(¸ÖÊj'ÓÉ›—¯]~¶à1ß- ,.±ÂýŠ«Ãál㡪\5#[±khÏì|ëûv m{`°™™™"£œ;sæLîôéÓyMÓ²2BL¸éQñõïoжFï®Ö÷ê•a~Ûv|›·ç~Ã0Ü«W¯jccc˧NÊ]ºt©$·{Wnÿyâñ ñϦ¡ˆwÅu7sÛÿTÿ³º9ƒ+]Abè ^{säþ»Ì»999™;wî\ŽÄùL&S?gT…ñ%±-wZ‹ Û‘#æ]ô­•šÚn,DÄ;¾8†ˆ{!dì☛ú45+Â|öìÙÂýõ­£,‰ED y-š"êy^<ûZGÅd2iÿøgkÌÖh .Hₜ½±B˜¸–×RÛE:S#ÚBraV\$±±Êlë¤Å2S¾_‘p$ªµ*mfÖw~üNÓ£ãùç§eµ{«Ì¶Ô Ì”©iL•S_êëí÷Þîñàýħø¹®Ì/æ¯L2=¶˜Y¼+I‰gkK¿¸ÞWü‚ûŸ_z\Ø‚²ÖÛäAÆ•³­¬Bìy_óÓñ«Q䙡~¾¬—¤ë}ƒß«Êãòšÿ0aª_ÝóÍë½IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/imcenter.png000066400000000000000000000010561417122252700223770ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÀIDATxÚì˜ÍJÃ@Çÿ[“Æ€Q´žÔ* õP=xìÕ“W_ûž|€¾A} /‚TÄñ³T›¶Iw“8k¨Z°9lÓC† ³ Ùì/3;Ã$, ƒd0$’‚¤ ÿŠÌšHI*òÒ€´Ò½6ëN_ÆXpUL:¦˜`ѹ–d4èÅÇɸ¤<é=’'•0º–0H1´nÒ™‹<’4ˆ„0d‰šY 0ûœÑäÀ£Ýÿ³µx5(ï×pòÄ;ùïûžß ày¸hsÒ¼‰Ý|,×ÄÞ¬+3&,+Û¡¢C„ð´…—{pÚ‹“ñs öŒÓ³gß7ÁàËjH oòŽA0rl&€µiµ Ÿ·‡¨_c,Û 2-N«Ž¦ãÀ®7°à¬›Eu *È£#¬/јòÍg # }Ä‚íhø¨Ûx{e¨Þ]€© Ì„ír_÷¶„Bª“6F)H ò'kö¨…ÛÐÚ7?ºµßŸœÔ¾åÈ,“–B›SòNzIz m¯:Âe%'}èêTH´†´¼ˆlf_ÂñCظ¨7„k¹½B#7°è 7´zÿ»‹géo‰aù`Ò­8oµ!IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/imstretch.png000066400000000000000000000023201417122252700225660ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<bIDATxÚìXËn#E=Õív;ñ$qdÌ Ø ± _ÁŠ ßÂWÌðü V!°d$VÃL&™<ìNì~VçÞ*'ÎȳÈEʺ©®‡ëž{î£Ë1Þ{܆–à–´; w@þµIÖÌ…í±L½!y¼¨Û,¦¯1Æwîͤs/1À\Ž_ßréë'Ði ¼s0 ÌIsbŒõì¥Yì²êdwp²-uŽ{8¶Þòzæß~97|“]Mi{Ká®÷ÃF=Þ(“ÞB‚ao;ŽÓ0§¨wÖ-ªú$öõR {ÛkÊF¿ dÁÇb]GëÁ%Pùˆr«"î!ˆ.€²âH²èÛkŒ¼Kù‹’-òþn\å÷% ž•n{¢I,–5QÜ©VÙL´>#0»¨Jb$5K|¸?Pêyð18Ôóêà-'Š  E46\Ò*8ÏÞR„Aö®[žEË&?Û3H.Ó%R/Ö›À‘fE• 2ÁÅV“Ô4ÔvСéˆQ0 ÷4Ö¬dC2ba¿Xžš„B:ÏA aÁ m‰cÀ‰p®£Ø”n!<‘† küF¾ûé(ÄFԨϢÌûèž0ßù0§²¡†XŸi¶8U[dlC þèÁj@~ûýùµ×PšBÙ˜§²·!N\ ^Qè5e]Èœù³ ªßŒi­Uí«OWröêD}Ô†¦5…e7•´£ c¤ ‡‹’N•ØÀšfJ«­$TÈg­±²k>ΟHÂàú=ƒQ_”7š “óBÊF[[Œ‘ §Ó -“¯•ॢ¬r½D6p8¹.*Ò^ ˜L‘e&‚úf5 Å‹_Yª;$mÉWN‰tg€Íµ©Mð™Jù­ña…íµ ì“‰‹ÙEɲLëšÊg4¤Ce¸ºÅtjq^TÔfÑï§«3‚ã_°™µHIQƒñK L2Pq|R8äë9Ùêááö}<ÜáÁvŽç§g8·ZM%nv7{(JÖ‚Éxž0v|<[ˆ«1™vØÙ†—IÚ5<4ô1ä9Lƒ£IË Ng3º©Fžzìܲ~4tÍ /Ç8 ò”oÆñ¤Ãéy½:R"®¹×0.Ú–±à1̦M [5ØØò8'õuGwaÈC †f€Þ0gý¨Ð´ ŽÆž½˜h±{g'cl58<+QÕíê@f¢Œ+Ór ß…ñƒ,c¦ 3`”×õ2TÁö.P–3Íã5³Á8ZG[Õ¸s|°oqoãmœNfxÚ¼Â]ÅØ^È÷?œýï—ç'¼5áMÛŸ‹ŠÍë?9¹i—ÝG”/b¿{C$œPžR~–~™k$šŠxa™ßn¢Íuÿtg­ã=qc~C@êBtÕË\#q“EÙ þs‘}½Å›»KÜV  0·7ïoQ ¸IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/imtile.png000066400000000000000000000011221417122252700220460ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<äIDATxÚìXAJÃ@}ÓvZ­"jED춈‹âN ®ô ÞÀ¥G„z7žÁÔP "vUÝŠš¶&ÍÌÄ?ÍTJ›V$ºÈƒÇ4á3ÿåÏíO™çyøH០’ùÚ5Ωè[1±2¨ƒõE0Æzº¤òbÑ@ç£ÜŸ™2#"W_Qmvýj)!”ô ¥„+º®Àni‡;«¡c˜9Z¢› R»¾2Ì×çÖS&hcA•ê Ç•°».ŠKÙ_Åžù©ŠÄGâ[ ››G\6Z`PúìhcÐ zb A ôçårØ\ k°aV'PˆÕ¼ÆK­ŽÙ¬_b¤rh¿;°ß-tl-«2ßöJ¡c Öˆ÷D>"DwOÞ®a¿L{’¹ãÈegI/ íÌÃjµñüÔÁËÃ]/>l칟N÷HNŒ¸FÑu ¦éç;"^ë#¡>ÃÉU<®Ä_»f²]3YHŒ®/$f׌ÿ­I\“¸&qÍO]Óq=ðÔw;ßo0±<=Ù5§yÎb—“*¢A…qÛ¬…ˆ„<o‰U½5««G73°ôg†(ÐÏñ6nfuÌ ˜‹HˆcDè\NÐÑèVåFð%L™ê÷¦øá¬?Kþ‡b¡;²°†ØUIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/inter3D.png000066400000000000000000000027651417122252700221110ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<‡IDATxÚÄW{L[UnooKKGyŒ×x œŒ±…Ù$º,›0³ùÈbÌÄ„a™ÎD ŠÙ²8]û†&Î-:\bF˜St:`ÝŒ†0^2(m)¥½ÐÒÜ>xÜ[ú¸ÞÛ»j z“_¸œÜs¾ï÷óû}§Îÿüpÿ# .„EAÁá­18Â`\¯¬|,Y pÞÆ0Ò¼µ¯¯¨HOæó¥‰O‘D hí3ça%ÿYE=p€,y––Æn‰OøÙ[7(欿j4‹ô8ó}‹<ô §<73S¸?;û‡£a›lÆ¢<×{ç ÝNùoºàLRüš²²/¬¶[¦Óá ýý¯«ffé½P¬N,Èõ«êžz÷´Þ\[{̨׿*×jIéèhù°Á`¢ÇÝt,¿^¶ Jˆ7Ûpx_~F¸ˆ~€=ä@¢èÅSµ/Ù-ö“2í´§]5QÕ£V`’'.†›ÀªW+Jbâ[[ß|ôrA:GB…(DÂ~®ºn'1Ç=?ª²pz't§;ä#·8‚y÷ÐØ^¸TV”_×ߦ$e-VÎù\˼+ùiÜõô¸"Ál#¯öƒÚ,>Ù¤ÑÌ eú©Fé_õ [dÏÊO­Ø Ù­eO3#ûWÏ ¹ùiÈO"8AõUÝtjó˜Á¢Tá¢èÝ97ÔrÍåÔèï·¯¿íö¸I¾,“~U€d*ªx\U´ß”‰$M’Bå—dn‡W$~Šù,]”&Œ0ˆSÔSjUËp[ >oÅð"”ý?ÀC!€˜}½¼U¸é`NÔå¦è]mÛð²Ò1…b€~] cÎoß©@sVëÌ$X„sENj–¶çÜ 'ÉÛÇÉÈÊð}4®çôvôrR³“÷.èÄ_µ ¨{ªa'"öÉîŽöKD,ïkºA¬J²DX.ÿSÄz—YîXVÿ6+»uÆê æyܳ6ë‚ ¸pà éBH1°ZòÚ{)‘qÛ ¶öÔ@‹Å¨È Óì»m˜¾…þס;X„dFl?صçYñ¦ÍyGºTÃT˜Beê[)Þãë–¸£+LnNˆæ ó3£RN‹ÐªY­h†LÇM/ó¯Ê5Á©ê¦ïÇUæBfØ48ríܪ›óYcAö¥äT%„KŠ<Ôe"GÓ\*8ƒ5"$k=WÝø™Sk.\œ”Ïaãíe4¸žwÐa¡ÃÂ$ÕÝ=9ˆ³ø"ÊGâkžNzòhÛ¬ þg" »ñ/|\_B¾UŽy:ǺŽôkº@IÂ-–‚ÖŽõO¼%ˆ9†Ò6awÙª»-_Cž°ìL#ÀdŽÖ<³ßiwý8¦PñeÚ¡z@N¶Ç;!ƒaÛ¶ÄVÉÎÃëШO]Þ%ΜÛZ§žøÚwP;fÁkÞ¯É^Ç k°™Lüi|âîY°-–YˆÍÆù>!wüyÁ¸h®4Õ9[΋‰$8q4ÐäXÙ;I±‚°&­R&ÃÒÖ;-u SÎn4 椒¾¡)²ÿR4ºÙFzçU„·jL¨?xÑó$¹)‰W ê‘G& š»ÒÁŽ£Œ„n5k; ¯Õ­údíñ¿ŽÁîŸøƒy;¾³k”ÛµÓ:L:ÔW>G ìA}= ¶…s!cóS€wíøñO\zý f“i®[©¬˜Âq Ș < t™?Àóï+p¶¸8‘k2•épÜÕ‡aå=¦ð»R¹Bq7˜+5SÖÁæq¡†$8QPk%ˆ¬3ÝÝ7TðmÖ _&ö¯c¨ÁWopÁå¶? ÿ`FJRœÑºIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/interactiveinput.png000066400000000000000000000024721417122252700241710ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÜIDATxÚÄWMŒEþª{f—aWV0ˆrX/1"J”èÁh4$&6AxÀxT^ñ ã_ŒÁ Vå(*A nQ’ÝåwYvf‡Ù¿žéžžî®®ê²f¬ÁwØ™b'/Ý5]ýÞWßûÞ«"„ÀÿyE𽠄ܱ áEGÚü–„îa»á{ëŒ9“˃»÷/_¶¹+B^Ò8}D~?˜0Œ:ç™[uÌü¯Kv –ó¹²àV@H3 „RP{ÐÊ'?ßÜ‹"ŽÑ'¬ `g!ð«Ò½Œ¡wtõÔ?`f65r%¾í‰ÒçjCä#á˜ó¨·ï;íêÞ) ðÄI”S—‘©D4`IŒ`Q·œ]ÒÝ[7!q#eg/¿z”ý!}P$hWdx׺Uìâw;}·Œ©ø¾½àÌt&]­½—à™~‚‡–jèëv¡9®„[ѣȕƒEŒ“]ÒÇvµò`.]Ì«uû†Sƒ ÞšµÅ''2UQ)¹øìJ>8/i÷¯]ªí¡\_åqò· ì­cÜàÏËQO( ÿÒƒÖŠø^9êžžOW0v!l‘ÁÕœNA*aF?]x÷rPí.¸L¯[ÙÕ,Lë>J“I‚~SÅ´Ä@ƒ2þÕEú¼!­K9ª kåšÇ5Üwèô%0›Ö'ç«Æ ×M\SÁ#j±¨ÑæKsÔ8¢~«™¶aýc›3á°|?ÊÆ‹rLƒ8ݤ_´Õ¸R±P@H#‡ßyãÑÞž¾ç*É)TLž«#]á85Å(öu“}3_/h•b¢qéë׬~϶ò02³¨XrUMVˆ‡s†¬ú¢*A>ˆV!Ê4ê§íßÁýà)c:âl‹`8ëãLÚ…é_NYþÏ*mŽÑ`¢£V,B÷º˜¢Z×®R6ƒ¬¤ß0(ÆŠ¿Ï8°¼à§¤I¿–sd‹„}€Ž÷‚”åî}ݱi.5ƒül i͹(8</»T`+Ào¦ƒH»©.8yÓ0JÈN瑳8â%Š”aƦ𥉉ׂWÚ,ÿÐölÛúàìdúál<Žt:ƒ‚K%?8aû,©‚6‚»·Z}G)ÈOL?03:ŽI³Ãs`û>LêÁ¦ìGEwËÁÛPÏÿÄLñº¦‘ƒE—ÅLŸ-"àü|(¸3õíœÂj€cÒ <½éIײ—ý66’,¸fY®ÝM¤©òÿË‘ ;^ëxqó‘Àçó39¬¿´CCCïþ2söˆ¢ÝkVósŠª] <»ñ…ý²ín¿˜ÄØè$R“é¤w÷ŠÞËB³å£v»ÐRñìvÓ°píBV©—:0¨%AĶÈ÷{›m:· ÀðÙ ¹ñØ0 [.S Êh€Ã­Ú~m¶ïßõ”]¾šøžƒn —Vaؼ8CÊŸÞNjÛaÒy;¦/^I¹µš ï¯S° ¼ rµ]úÛ-C]nz¥-îÖú6ð¥L¸qÉFAµ_C•aU5!1_¶@S9Ž)½êYS5nÁÞ­šP§}@(§ž3µÒÆùÐmµývªêlBh(¾qjj˜¸S"¡.ÇB‡Í›ÿx´ àOÈÒD%ˆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/intersection.png000066400000000000000000000027651417122252700233070ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<‡IDATxÚÄW{L[UnooKKGyŒ×x œŒ±…Ù$º,›0³ùÈbÌÄ„a™ÎD ŠÙ²8]û†&Î-:\bF˜St:`ÝŒ†0^2(m)¥½ÐÒÜ>xÜ[ú¸ÞÛ»j z“_¸œÜs¾ï÷óû}§Îÿüpÿ# .„EAÁá­18Â`\¯¬|,Y pÞÆ0Ò¼µ¯¯¨HOæó¥‰O‘D hí3ça%ÿYE=p€,y––Æn‰OøÙ[7(欿j4‹ô8ó}‹<ô §<73S¸?;û‡£a›lÆ¢<×{ç ÝNùoºàLRüš²²/¬¶[¦Óá ýý¯«ffé½P¬N,Èõ«êžz÷´Þ\[{̨׿*×jIéèhù°Á`¢ÇÝt,¿^¶ Jˆ7Ûpx_~F¸ˆ~€=ä@¢èÅSµ/Ù-ö“2í´§]5QÕ£V`’'.†›ÀªW+Jbâ[[ß|ôrA:GB…(DÂ~®ºn'1Ç=?ª²pz't§;ä#·8‚y÷ÐØ^¸TV”_×ߦ$e-VÎù\˼+ùiÜõô¸"Ál#¯öƒÚ,>Ù¤ÑÌ eú©Fé_õ [dÏÊO­Ø Ù­eO3#ûWÏ ¹ùiÈO"8AõUÝtjó˜Á¢Tá¢èÝ97ÔrÍåÔèï·¯¿íö¸I¾,“~U€d*ªx\U´ß”‰$M’Bå—dn‡W$~Šù,]”&Œ0ˆSÔSjUËp[ >oÅð"”ý?ÀC!€˜}½¼U¸é`NÔå¦è]mÛð²Ò1…b€~] cÎoß©@sVëÌ$X„sENj–¶çÜ 'ÉÛÇÉÈÊð}4®çôvôrR³“÷.èÄ_µ ¨{ªa'"öÉîŽöKD,ïkºA¬J²DX.ÿSÄz—YîXVÿ6+»uÆê æyܳ6ë‚ ¸pà éBH1°ZòÚ{)‘qÛ ¶öÔ@‹Å¨È Óì»m˜¾…þס;X„dFl?صçYñ¦ÍyGºTÃT˜Beê[)Þãë–¸£+LnNˆæ ó3£RN‹ÐªY­h†LÇM/ó¯Ê5Á©ê¦ïÇUæBfØ48ríܪ›óYcAö¥äT%„KŠ<Ôe"GÓ\*8ƒ5"$k=WÝø™Sk.\œ”Ïaãíe4¸žwÐa¡ÃÂ$ÕÝ=9ˆ³ø"ÊGâkžNzòhÛ¬ þg" »ñ/|\_B¾UŽy:ǺŽôkº@IÂ-–‚ÖŽõO¼%ˆ9†Ò6awÙª»-_Cž°ìL#ÀdŽÖ<³ßiwý8¦PñeÚ¡z@N¶Ç;!ƒaÛ¶ÄVÉÎÃëШO]Þ%ΜÛZ§žøÚwP;fÁkÞ¯É^Ç k°™Lüi|âîY°-–YˆÍÆù>!wüyÁ¸h®4Õ9[΋‰$8q4ÐäXÙ;I±‚°&­R&ÃÒÖ;-u SÎn4 椒¾¡)²ÿR4ºÙFzçU„·jL¨?xÑó$¹)‰W ê‘G& š»ÒÁŽ£Œ„n5k; ¯Õ­údíñ¿ŽÁîŸøƒy;¾³k”ÛµÓ:L:ÔW>G ìA}= ¶…s!cóS€wíøñO\zý f“i®[©¬˜Âq Ș < t™?Àóï+p¶¸8‘k2•épÜÕ‡aå=¦ð»R¹Bq7˜+5SÖÁæq¡†$8QPk%ˆ¬3ÝÝ7TðmÖ _&ö¯c¨ÁWopÁå¶? ÿ`FJRœÑºIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_abs.png000066400000000000000000000010371417122252700220310ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<ÁIDATxÚì•K+aÇÏ\Jö —¥””¥ËÂB‰/ …•oÀ–•…øB¬NllH¶ä²++—Žs˜™×ÿéü§Þ™æÈq:eq¦~ÍÌ3ïû\þÏ33¦R*UIÌT…j€À0Œßb¤‰C[âzó {#À¦ÝHÚ`—à\ôuÐ,à‡g¿ÜˆÃ°Ò´}‘ Ô&›Ì¬†ˆCŒƒ[ÞK@¥w¹Öå½Q,€<œwàœƒ:ÊÒÆd“Iˆl7ìÉ2¨¥ÝHêœÓt´A#ÉqÉ&ÏÓ.²€w0 êÙO¤3cMlk`ŽåÊ”œ0£V° v¹þ‰ReÀ Øcr‘‰ŠlÀ37½²|©tœ1³^pÌýà,²Ù+PñrÝÆsX ó jß ®Áè;à”U¾áX€Âd…ßmʰÄÈG”⬂ê,Ï®À$è[´)îmÍœ¤‚,t.¯µÍ hàÔX¬Æã¬{”Êbváü;šÃ,“ÊòydŠdqžåæµfùZÉaÐ@ÓÙ&rýɽ~Ò§BÏ*§M‚Òƒ*® ma/ýˆþ ïAðÓk_ÖçºúÓ/v| 0'?¸ª IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_acos.png000066400000000000000000000007571417122252700222210ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<‘IDATxÚìÕ=(EaÇñsÎ=îÍK  É@Þ³#Y¤¤d²’ÁKŠÍ 32”Y²eÙƒI™/q½ïsýN=ÅÝîSŸ{êžÿóžç<çÜÀãRภ  x^h|ßO â_ß³Œb¾Ãí—Šcî |ÝXÆrXG28VüA±aÜà¨@-®»°± 1ó54£¸CöqŽt£Û˜Ç FÑ MrLýêCgð!Œ£OWÛN1¨äõ‹0‹#ÜâC}Ó8ÁJÐiw!p L+É.¿ —šM¯–›qVk'ñ¬gÕ¡ÕÚízÁ"6´eŸn% `OzíÚ[`#ʱ3¬ÆöÔwIyuh³òßl%ŸétláטÑ^Ûx»hÒ`F65ت;D j|[€cj÷¯•(uŽY¤„x•ïùYýÇ´öÚ(©OZým,?äHGËÓñtß“8ë‘®)ñœ¢ñ;Çr¡3;‹¸™DdÑàX:EòÿߢâŸþoí[€ü¹ù¿nöIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_and.png000066400000000000000000000007111417122252700220240ustar00rootroot00000000000000‰PNG  IHDRàw=øsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÜ+$3ótIIDATHÇí•»JQ†¿ÙÝ$Š&¢IHP´P„Ó)ŠX+[ &o Xæ;A‰ ¥˜¨H+›A¼àºÇæ‚…{È’F3åaf¾¹ýQJÑO³è³ ÿà˜:Šˆ ”ŠŒãLt "Ò+à•A°eܾÝg{¹`ïð€lvÖÀä;ð<2Á »×¢Jœž¯3=;䀌ˆX‰"bíT?;¢n¬5 Íúù¹Š ™ç`y9–ê­¤ÒÊd[°ó«€«NR€¨^6m¿9µÀ#w/eŠEWïÀÖ×Õ VÃõOðXY ðï¢1޳Wå­BW¼ô|¦"’F€Q=ˆ€wàxÞ~ÓEÜ ¿t2€×®j;ï¡ÖEψ.ÂÖÉ;¥!aœªc•ܵğ³V&J–Á—ù÷ßJÑfâ•¢ÊIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_array.png000066400000000000000000000003051417122252700223770ustar00rootroot00000000000000‰PNG  IHDRàw=øsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ ‚ú^fEIDATHÇc` 1`„Òÿie6 Œw}ЬfÖŠÄ`€‰ÖAÄ4|âàÿT;)ƒÑ8ƒÑ8ƒ!CâŽB/H´4&IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_asin.png000066400000000000000000000010061417122252700222120ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<¨IDATxÚìÕÍ+DQð{®;>ómi! ¤$b¡ì”…,P¶Š­…²«‰ã ö’LÙø^ ÅVŠÆÜ{<‡çèuG©É]™[¿™sOçœ÷¼ï½gFi­(/׉ø*ø<ó¡”ÊwsŠ4™Ad¡Š(çRæ å™'d…Üý•'² H±Ïm%ÆÙyúÛ<ñS¡˜ê‚¨ij`®Ù· {lOÀÜÀ1Œ³½ÕPê†vž€h‚4\AÌÀ¬B3ÌsÎŒÂ%ÔB?¤ •Pb30‹s—0 ÐÁ'áú –áœí8ÛëаÆyõ²~ÓÜe9'¦X2ãva‘ã{áu6;mã}+nÚç(t±s¦à VàFà†X{“ÉøÐÎržB7Ë•`ÿ×[dð-kmR½çN6Xª$Ç-1€y.cPÁû}È0û8×8“ç ˜ƒÍÄ2qpîÒf©yïsŒÏ¾7qªcü6Ó63ð•í—ÐpÄä@pÅëì‹·ÑnîcMO,”a§|uu(€•ãt¨ÿ3pÔÿɪð§ÿÛõ.À‰}Ïd}|ƒIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_atan.png000066400000000000000000000007751417122252700222170ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<ŸIDATxÚìÕO+DQÇñ¹3#)EH"‡…³`!^€…b%eAØao£”ÅäXy,,ý-dØQ’,e3s}~·NS³PsëÓœ¹÷<ÏyιçÌ8®ëúòyù}y¾ ø8¿xîX…dàÊŸ0Iâ³­¡óH!­çŸØ.È‹Ïø­Î³¸AG(“ AµmÏI[ýŠÔ7éh·„tÓ L+8c-cmiÇ mõ÷úÕN9Öóg7Çéöýpº³[ž‹ ú¹®/‡hÆ ûIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_ceil.png000066400000000000000000000010511417122252700221740ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<ËIDATxÚì•»JA†w’ñÖ(xA/‚6Š…XJÃBmA…Ôâˆú¢Û€•X‰ll,Ä^Tâ%;ãâ?0Y“`“ݳ3çœÿœÙUƯš#æUyÔü¿ßÞ(¥*pœWiO]NÊÙPM€5ðnA½Øü2#Þ¤£4Xm ‹sIPðä ýñ°Iôu ´‚{°z@ç’þ‹}§ ´#‹Šh ô‚mŸàQ5ˆSKy!&À8o`l€G¥Ö3à<eù^+üˆÈeóqÐMgý>8”àd@h£àÌÉ6°Y‡3"­€]J$/¥˜¾mlƒK0G‡2?nØš†ëTØÜÏÒpçØRŒºì€a0Ä Eó¾÷ V¹NE9‰~ÐÚÁ2Xg7S°®(á5Ÿä5M‡ñ’fpÚT ÓNš‡,ÞŸs´‚-ÎeX›':—Ì:ÙºÅà•=øTÄhhfáËÑÝÀW̃JÒ"›9Ê•xoz9Ãf¸ïcf`ÞeEÀ9Ÿñº¯,K8à K˜8°Æ‘\E<¯j$¹±ºTR‚I8‚C6,©Í—ßàƒüßnáý"_–`/ð Olf#Wq½4ýÈK—¬Y[U;pÀÀg˜?ÅèU$ûÈ8œiõ°ƒÜ{S×Ù=ÝÃ@¾ö…þøˆK°y5ž]í~C+j7ÒêëqŸù$Öß Lâ›–`Û%jÙóS_ %/ËuîèIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_floor.png000066400000000000000000000011741417122252700224070ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì”ÏKTQÇß›qš´EäŠåÊ1!j—PÚ•m¢EI›­‰È?@w¹q%ZI`¢HnR"‘týÐq^3óúø<¸…oDiÓ…ó¸÷Î9÷û=÷žD†Þq’ðŽyüOðïøIšä×]!/ |—¬ÀßÄž¸*ž‹Œ'ØãÇUPV”¬WÜ"%‹9qO$ȶv²!1+Ò¢Nô‰%ÖÍš_Øã•ªÀ$w‹Z±L²+bUüÀïûR,ǼïØ:µñ# ¤·‰ïbƒ ÍbÀg±ê›XçD95úH½&E…YÑ©ïs2G<"Ø hïÅÑÅúS괉̳҇¢¾Ç,šgļx#ž‰zQ)Þ‰›ÈŠ/(¾‹ªOÔÇÆ êl<±Û˜ ›;/^p%[Ä¢¸.ÄO‚ž"€Õ©½fçì]Mâ5VQ‚Nl0ÿwEI¯‰-Q#ªÄ}ñ’½ÁNsˆq ßJpK¾]ÓKâ-ÅÊPTK|GLˆjNUÉ›ˆŠz[_‰QT61gÍøÜùm 5ÃŸíæœ„¤ófò¬g©Kš óKò½kE¾Èæ$Èâ½ï<ÄÐÙãáŠïÀyåÑ;ÉY‚\Á¯EÁ³E='²³à4»àóûšc×nÚ‘ÐâŒüALögäìA.n+ŽÛ‹v_Knfqdš?êà6~ 0q<î/]¤0$IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_ln.png000066400000000000000000000007421417122252700216770ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<„IDATxÚì–½JÃP†›´Ò(þ ººŠŠâ *^„7â꽸y:ªÜüEÇ‚nBÅŠmÓßÏcCL í¤H¾“œ÷ûË×ƘÒ0WXòúø•^C?nqÂ9’@no»öÏ‹ ,žÅ‰#ˆ,E3bA<ŠqQí7­•ñ}®¯E$:Pñ„l.ºJ_˜#°.â‰t‰{QM8DWî'EvoWÜq?%V°Ÿ‹eq$¶Å)LÕ(Ì)ðªx ì-ì‡â[[5« ²ìC\;yî_E[|ŠYl/8°ö=®ko‰ü¿qø‡˜ïâÖ+°)*°Fþ¼lSt%bÑ¢›lþ/Ùé¤B6Ü ÞOkÉiŠîl1X¤kêxº‰ý†üwpÀ® /¢nª˜½?™Ì¢ˆ¶óf‹ì‹ö#D›Ø»þ,Êú’cŽ{ z_³[-m{ŽäŽŠÄKEjPz%´¥Éš²¿ $fYÒ÷°ôߘo³{U Í¡*IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_max.png000066400000000000000000000010011417122252700220400ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<£IDATxÚìÖ=(EaÇñçpoÞ®0ØyˆEÜAQ’EJI˜Ä ‹QÉ(2È.£B6$‘”EI&ƒ·’Ák©{q|ýN=ݘt¶{êÓy¹çü_žç<§ëù¾oÂÜ2LÈ[:A:A:1ž³·É2ÿHj—û—˜”û|1<÷¼kº0S<éØîP€\L:Aíõ ì㕘Öocöþ Š^Üè¸{ X‚[$t>ƒj”á—èö ]FJ±‚h0ÙÁ3Ú±‹ t¨š. áJÁÇuo=ªÔÅ&VQ‡rJ^†3~ö‡#¼¡'èÆî1€Uh;sh;­U—6æ'’–› gª&‡Ž µ^£ÉmÅ0^1‹",bMˆ¥&°[¡ª:@Îñ Û°Ž; ªÒ[%Œ««9l)V\]Øñ-f©õX01jß×¹­<âtëëšÑ«û®k£è×|Ma)H 2:úÎ;ÿÛúðœ"’N1v¢›qNÏYÑž³x)Á~[¤îb‹j­ÄTT"â´i4æÿÙ>ëC ¾¼>=î'Ç7¡ìÂþÛò-À f’‰[$IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_min.png000066400000000000000000000007751417122252700220570ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<ŸIDATxÚì•Ï+DQÇß}ïÍø‘_+vŠäÇFfid£Hd-ù l¬üVÖVvŠÈ^Š)ŠHöˆ²1’äÇ»¾gú>wfÒlÞ­OsçÎ=ç{ιç4ÆZëýå2‰@"ðë~*S®­/f$–|]’Á²§SàT‚K—¨Ì †tü ÞÀûw†A‰ˆâ2ÄwžGtnQU"qÞÖyaœ€{îås ŒcÞi[ÜϨ}?¨‘,Ý('À÷ã`ÔƒfpÍRˆá2¸“à–÷§) «Tç˨2ðù`³ Á6ØCŒl´ƒUŠt1»£žç¾4I0¾S_Fûàô‚C0 .À ë> Îi#‚à € ë{ÎCÆ}à ´0Õ,h¥À èuŽÀ)xa@r¶È7-è”Ð vAܱC¤kt.kdXŽ=æo–¯h›V€ª¸TÏ[~·jrjÏHµošgOR6W ¤£”êñ¸ttç""ñ|Xvܳ+à«a3ʉq¦Øs²³Eî Zòð? Þì¨CëÅ|ØIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_no.png000066400000000000000000000005471417122252700217050ustar00rootroot00000000000000‰PNG  IHDRàw=øsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÜ*ê‹«çIDATHÇí•1nÂ@Eß®-‚#i⎠)çHNÁA(r\…‰.—¡ ‘@^;Ÿ‚Ar ˜ ¥ðH_Ó¬æíþ™Ñ:IÜ3œs¾‡+¤”´Ó|´Ù:€è !ÄG÷RCã¢UŒJìW• åp†”Òýv‹,‹Þí$;¬œ¬ …VYa6Íš5 u:ÐJQ%°—›Ã4ǪE–Ëñù8»6Ð>kŸ P@TúIÇ.6ýD‡gNÇ _“ÍøCG$^2S$·8t{ÁÊG|T/ÏpCÍCz Ú ÐØJs3•ä£c3?˜0¸Êæ›oÊT[*Q3¢ì>=‡™œ¸§\¼jÀ«@xIY€Чß)·½dª³hu ¢ÎÀ`/^ɵ*PUtÝjé\Àœ_(Hs›¥Žz¾ èüðÛÃ„æšøâIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_pi.png000066400000000000000000000006621417122252700216770ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<TIDATxÚì–KJAE»òÑÔcG‚#!ŽÅ¸Wà\ƒ+È@¹ '‚àTQ§~IÚO•÷Ái(’îسº¨îÜûªÞ{Ýq!„¤ÎÑHj ƒ…Áü£UtÃ9aÏ5s²&ú}e y0Lô ¡<ĦXáÙIÛÂa‰¸ñ$vĺXÊ3(Ëì‹]Ñ7â@\ˆóã,òÊ9`œ‹5Ñï"[âE Å'¤ä rýðãmñŠØ²xÐ_ÂW5ðÐ{â¡N47¾³ šµޏÈKB^ìxOIn«Hkš%ð„ù=;ºÃàVlP¢íȼ’#¹×ŽÄgÿ,.o¸¢/ÜæÌ»3b–èUæ}‚°ªòãzÓÊÔG¢YUÖ†¬¥$:̲Gä.z÷ÖcÕæ³N®²ƒPÐ@~î·éýÛ¨ý{ð'Àil«Âü?œ‚IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_round.png000066400000000000000000000010161417122252700224100ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<°IDATxÚìÕM+DQð{î\&6fAÂ/ ba9’²°R$”²¤lÅÀ7°µf",¤Ä(åe=ƒ™{¯ÿcþ'gNwRº²™S¿æÜ×ç<ç<çŽ ÃÐùËæ:Ü*þ?€§;J©8Þ§8èûAœÈ ëaÞaªÙ1í™3˜€h‚”ãZNAœò؇‚Wf5eœ—¿I«‚8‚$äàC¸#ÙäÅ8áC¯°«|xjù²už[„kFž³È…I¸çñƒÉW0·p5PkÐíðÌ5p˜™_Ìõ{‘G4Ï) ú Íãfæ ­0Îói®CŠ¥¹Ñza.™j?Gw cÙf6£<Ÿe ­$@È,dœ÷h„CÖv<Àt³4YšNiIaØHj=pÀ…ËñEç\‹fè„x„YaÐ.س(½Éø©H2e©§ÈùÚ‘ÅRL}Ï*]‡÷KÖOœoïŸSá“®ó¼ñ}ñØZ?=¨¼lìøëi›ìM ʈjÁ¯¿€•?ýŸÚ§ÃX‚NV¿AIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_sin.png000066400000000000000000000007371417122252700220630ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚ약.QÇçÎX±d)¼ÊG4DPè$…ÑxÖˆht>J@"^@ a•´Ê‚]3×ÿ&¿•›5f3A·7ùeî½™{þçœ9玱Öÿ9LK %ðëÑöMјL‡ ’LO“á _ŠeÑŽƒ&WŠšDa´€ç¢F$¹BˆÑK|yšVŠnÿLœŠu Oc¨‚§xÞÏüÇÂÆT¤¥çQ,Šg1ƒÀ ¸%tgð‰GI×)Ën4ŽÄ>ë Jä»çâ]t"¸#n2aÓÊÔÕxQt‹.^¬Qóõ’µ¬-ëÏ*‘½p&µ"yKˆÎx•b½4ì½a<þIÀxÍz d½»(ða/öï§¼WEë‡ó÷ãS€ý>­]BÉ·ˆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_sqrt.png000066400000000000000000000011241417122252700222520ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<öIDATxÚÔ•Ï+DQÇÝ™ñ³L~¥"ÉR6J ±R’$ÊŽeÅŸ ,ì…?CÖ~%{ÉÂd5¢43fæ=ߣï­3Ï{ãX¸õ™ûæÝ{Ï9÷üzÆuݲ¿‘²?ÿ_AL~Œ1a¢r$`òœ]‰o¬„›®‚I ü²cœ³k×h qƒrpÖÀ•²V±ü¤@Vþ—rƒÐ®i}–Â\{rÖ=1ážQpÌgœi7Ù”¬`R@†nHÿVšJÖL€SZg Ÿ¦E†ø»‹ó£ l”ƹ GgO1ÆsÃú_Þׂ-0–¹§ 샯ÿ½.’çf0ª™šbÀ8ãÁg°B…RI°ž ÝT¦Á-MzPîÀ heºÆA?÷mÐ…M ÊÓOÙJA3œ€Ð À=è A}`¼RY‚·þ¢@¿H²PV)hŒsÌs]h›4d™î,÷ÍJõÁ‰ÐºF°N\Qa7ßËú"¨áÿ%›*u¼7pX¥o`p©*4ΘÄÙ.$sf¹n»mA ýš]„þl à€¾~a%H²¬‚”Uα7ê¦1*±K‘œj×69¢ª}çt-S`Æø¬[„)R˜•¬Ó4¨M?¿†ß}\Ïü£ñ!À ¨¯ˆÏX ÷IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/js_tan.png000066400000000000000000000007351417122252700220520ustar00rootroot00000000000000‰PNG  IHDRàw=øtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚìÔ=/AÇñ™=îˆg•ÐH$ž¢ðˆ‚ЊN!Ñш¯@x´4¢ÔxJ" ¥+¹;ë;ò[›ÕH¨v“Oöáfç773ÿµaš¿p Ž@;íEpEIÊ”'¤|¶ø†„µÚÏö¸ºÎnÀ ý 4³3lñ“&Ù0Õ ÚwàžÑÊP½0Jæ.²²FÀ[²@­C§S¾"ŠÈ‰3Ûf!gÙß"ÑÝ”ÆKrà׈~Lƒ¶¡ Î[sŽZûüîÏÓÓE9ö|hr:Bqßc Jìífð›ëÚPß²ÇAž‘Û}“æ÷À°ˆÚ¹ßm”:ÐÎÕ‘ÊAäL¦»tæ_´¿þó)À5Gä¹m @ØIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/large.png000066400000000000000000000011651417122252700216640ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚìW[kÂ0>iãÜ@Dö4¾ïAØÛþžÿ±0„íeŠ·—¶ö–,)'ã,¨‹k­óÀG/$ý¾œ[R&¥„kšW¶›€« à.ƒ˜2}AÑÌf²YཔÎÉ5©ã9> …†š*”QךÈÇéf³år «Õ Öë5”e ½^|߇4Ma·ÛÁt:}Rã3…T!×úO‰pÀ5ñd20 +rjÝn·‚ö©PI%âh8¸c¢rM:›Í4ù Š2®jõLÁ o8çEY§ ¼¢(*7#y‰.Ž"Ä^…à™Ì¹W¸ÃE²º!`qƒ®FÇx¯ ’=Xß6 ë¡è¿•á÷`΀‰s„©ŠŽ-üÔêÏjDý~†Ã!X%ÙÁ•wïVYÊc±?ÛBˆªì”BÆ#A@EUy™^@’°ž€ÅbQ•!5-d>ŸÛCG–=æJqÊ Î¶Û­¹}ÅHP’8K|6 š6&Kˆk3Bd(i'ÔïNí Î’$¡R« îH.IBìT@‚(¿ènhLgºåæª(ެ• ÉÖODv3¡›‹lCX$Lj¶Žd&«õÖï2Òå..@’RÄ E!pP’+üvÈ8ǘ˯9ÿ&ø¯c·Ã/àK€†7“]=IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_ar_TN.png000066400000000000000000000010631417122252700222540ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<ÕIDATxÚìU»NQ=³ l”Ö ý+¢…•Ò* ;õ ì¡ÐÐCg¥±£¡²ÐÒX©• ‰ ¢ ˆìã:W@`]űq’É̽;gÏ<²ŠÃTC–€¢u"Úc3ó 9¸¹‹oXæN2™À¤ax¿›¹©(ÖQ¥î vƉåâ:.•9t×Vé—ÚöVÚñqQöxZ~ϽŽÊx+ewL{àIQ̱ž3uh.,@Ç¡ü~˜gghd³õúë)U Â&ð^“«NÊ6ëÈò2¼É$ìósP8 %…'•‚[¦ën•ºÿüƒY[ÃÓî.ôõu¨±ìb±E}uúÒÒËG|zLEOiä‹êÔpsš˜€:; ƒ¿º¶²‚æö6`YPçç¿¶ä’IàóµZëy(â³´PUatïÚƒ¾Äm0«Pq™D¹ c—d”{nîKìø¸¯Éb9|9%ø¶¶Ðd!§§¡F"0ÑÌç¡~Ü .õ3OOQßÜ„'‘É©áž4r9 YB—Ñx—϶5r±®®ð¸±Ò4ئùÊÐÉ8èØç&_¶™þX]7™3ÿÿƒ?x`Ü"§€›ý_IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_de.png000066400000000000000000000005151417122252700216420ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<ïIDATxÚbúÿÿ?-1Á¨ ŒÁÈÈøŸš#˜Åhhh`¸páÿÿÈ2ôÏŸ? Û¶mð ŒALGGÇÿ,,,ÿA¾!ƒÌ€a˜¹,Ø,ƒZHÝ8ÉJ o?-úGf¸ñu þì{8,঩ßÌ@…ŒäYr3 "¹>ø/ˆþÿºâ7ùAÒöï äýäŒÉ÷Â? ¾o€Œ~°  ,zEÀNøûÜT Ò‡¼(¼wáܠɢ«ðX dJÃÂV8Öt· Àâ×¼ pðüÉIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_en.png000066400000000000000000000014121417122252700216510ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<¬IDATxÚì•[HÓQÀÿm:µšw7óRIddÚM*±)ŠP+*ºXR‰=(a½DP ½H‘JBD =ˆMËÌ.:¢ð2HM]aQ¦­¹¼ÎmNç² ÑÒ½öà÷rÎÇùÎ÷ûnœ#8þ¥‹€ÿ Â_%Íøæ åwñ \Ætìžè%Ô×jÑi?àé?Aqθ^0{;ï<¹%5xx-'<Ô—x‡á+òµQˆ¥#‹$¿S‹ Ü(åDjÛ$:õ ±töŽñmЄä…Áfe2+Çé|}wÇW¬g•b C›)4úSµ÷²K&¢ß•攋7c Š ýZ!Á½äe+IK^7§ªähΆ‘v´ ÊÌÂ{Í.Ü£©ñ­{@Êþ­d쌡UÉêÖ.ÆõFÆÔ9š²’¸hV« Ë´ˆh? ›žW0©ÚGxÙF,v®>úÄñ#‰ìKOtßd[M5ã}ýNÝfwxrÀÈ碛3›I"ÏÁ+2 ±mÂÅÎS ¯:ÚÙ]T<“»”ÉôkÜN†·¯Ü¹ZF¾¹µyï³”ÓfÓüwˆ½¥X?÷¹d°D4'úŸòg.StÝL¿^@&ó!÷D<þ>κ{«Txݺut2s€Ÿ¾/L5Ô3ºEI‰FÏ訙c£î›\U©&bfäòs“àa5m¡¤2vÔM£žš-“TL›NOxj!ï=egc½’ϱª|vEÙxPùÒ= a{©i1iÛ°ÔÕ–•AéÓL&ËœZÛG†)«xÉ÷!3«Ne" T¢idkRŒ‹K‰.ä$К‘î×Í4Ú#iЙéêºï<Ó¾ñ…Aìá›&útܸª£N­F™ÇÃ8šž¡|WEÓ‚¼E‹ÿÁ‚~0ÖÍBêu‚ IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_es.png000066400000000000000000000007001417122252700216550ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<bIDATxÚbüÿÿ?-㨃ÇFFÆëÔ4h®&†ß4¾]¸ÀÀðïy¦þùÃðoÛ61†0 Xå?<Èðéða†ÿÿ’ëj†+hb(MýÏÀÿù?H%4ÁÉü€<þä‘ÃM„Ȭ»nŸ```“d`°°``àf!lë<>@Ï. 1<Ûò‘áÙW!ækª ߟ^gðâ#bN#†ÏUÜ :;ŒnýŸÏÀÁ`@²áx-`¾ð€áŸ 3C÷í· ?÷µ0\ú@VÄã ¢_&B ’Uß‚_exwä,ÃGe¨{þ‘oÁ`VûûÃ/_=`áýÉÀa(Ï âñ‚áö×/ _50áäß×ðXð.ó?ÃÇCÿÀÉQ”á(7p2|dø¤eAM]8-â·ø|ÊhÀ|Ìð›‚"âE£õÁ€Y`ÕĦбðIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_fr.png000066400000000000000000000004161417122252700216610ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<°IDATxÚbüÿÿ?-Á¨ ŒÁÈÈHÕØ&F @àÌÓ÷XK `ÿrî Vq^c]LÀ€IÜ$Þ?~>†ËmØYQÔýyýŽá©cÃÿO_QÄ3|ÀD¨àßh*¢ŽèáOu ù¸Gn0e71q€’Ô_<ÁÈ?ýa˜;i";Šø¯?Þ¡e*¬ñ«phU1ŽÖhn@€ú7°žýIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_gl.png000066400000000000000000000007751417122252700216640ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<ŸIDATxÚbüÿÿ?-㨃ÇFFFªÚ4—Ó‚™gà D9X&XÉ2D©‘îjFF¸LÈ~òpöë¢÷ÝgpÛv›áþçŸpñðl[òƒÄ^sï=Cî±Ç /¾ý†+âdabȽSÄÀÊ À ªÄpïÆ&!A†ü’Å}€a|üõ—¡ìä†Y×ß h\óq&ýG‡Ä€>/9AzÁ?3ÃL[y†Ã~ê êpñ¦ÿ¤ædØ2›‰á3Ðd:øõï?Cë¹ç ŠWv1$îVe¸WüƒA©Ÿƒa™çCA[Y>Òƒ«KâN20üûÎp¦—Á¤ÿ3Pè3[Vp*¥6Pª#:ˆ°‚?€:Ù><°ÒlÀ„þ,¼ìÎ;•Wß~‹UñüºøÿO†?¿€©ëÿ/ Ÿ.õî熸ýœ·Üb¸óé'yü_ct9;8 ÀüunÊ Òܬp5ûž}fÐ[s´H&@Iºæô3†)W_!ÓMp´,‹F냳 À%ÜÎm2 úIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_it.png000066400000000000000000000002761417122252700216720ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<`IDATxÚbüÿÿ?-Á¨ ŒÁÈÈHÕØ&F @`Ê™ÙXg§`Ó8«¸hC.¦``êÙ9Ä[Ð0y4Z0jÁ`°€VáЪ,b­ÑÜ€4&y$¦sIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_nl.png000066400000000000000000000003471417122252700216660ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<yIDATxÚbüÿÿ?-Á¨ ŒÁÈÈHÕØ&F @àzߪ®Y”ƒéjYrúÇ—aÉ È`€ææÿÔ›6mú5 lîhF#>£ÀÄ%Ç&.>F‘ß^_@`s¥€VáЪ,b­ÑÜ€“vÿZN50IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_no.png000066400000000000000000000007131417122252700216660ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<mIDATxÚì•¿KÃ@ǿϦIjjA‰­ƒîŽÎ‚Jw¥‹uèW‹?þqêØ¡›Nk«„¤m/©”¤¹  ¥½éò^î>ï{ßw yž‡qšþ€ˆþ”Äö¥àÕ0‚ù ‘ÿÐï#W*á°zÄv·Ð®TQäWëº05 KÅb2 ud€Òi`1ÛÂjë ´1{·{hª* (\@Šô¢ëجׇ+¯× èvã9?– À_ç1HxDRnêÊò׃Øvlu} ÈÌò¸¬…E Ñà›œÔQá#úQç0¹”k(Wk¿o¡»}>` "˜ç§0ÏN‚¹¬çAÌPåâ2²øcg;ÙÇÅÓ¼–l²Ý~Gçáptš÷€e¡0²ÉóÕ5Íò¬‹Z…|2`(Q–÷€(žËd˜<™4‚¥ïþ…Ëø÷S%Fz=œK1õ“ùMÿ| 0E Â!&CóIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_pl.png000066400000000000000000000002571417122252700216700ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<QIDATxÚbüÿÿ?-Á¨ ŒÁÈÈHÕØ&F  ‚T1èØÑHŒ©Þ4NaxÓ0y4ˆF- 1WÊZ•EŒ£5Ú€[`‚†'·&¨IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_pt.png000066400000000000000000000010711417122252700216730ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ËIDATxÚ약/aÇ¿Ï=çÚ\QšŠˆ¤‹Á 1C’±‰YDb0°ˆA¬þl¬K­ ÚÄ ‘hC¨—Ó7wèQwîé¹ê{I4¿äòk”°,«œYeIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_pt_BR.png000066400000000000000000000012541417122252700222610ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<NIDATxÚì•ßKSqÆ?çL7Û†&A¦ÍZtS ¢nbEÒEEAE†4ª›"øDdBX¥W±¼É i‘²T°¥-Ä™b›ÛÙvzÏ6Á56w‘tã ß³qÎ÷}ž÷}žï{Ž¢ë:ë*ëkFÅÊEQþ©Ûrx”<#ýEÒ²4¹˜$­B) ÞrÀ_ØA®~hÍ»“¾’òÛT ÍõЯAÇ(,Å¡Êddä ±7ÅœÅ%ú;RäVhÛ+‘,3:‡qWÝ,óË„³f¥ V‡&àiI:³®5@Wÿ.ß» G"•*^o§ŸÐýIû,J'VµLCë:Y7ÜpXF#Gyüþ,->;6‹BÏ;•/îZO¿a¿^̳9‘l-C隸åG¥ÜÊü¯öŠ˜ ¿3Tj]ûÎ-`Ú1Ç#û=Õ°CŠéø´ÆZöÎÀ£)˜V3žÓ°ù+š-ÁÉ$¿–ã ÓŒõ6²{»šiWÓ_J=ß ®eWÉA³IÕw¿Ã¥&áΉ®ê!©¶JøLÔÔ[ñ¸Ãls–ޝ‹O²7ü,jv•$0¦Í!$#¢émI¾ù%AWs;÷pF5N6òüjãö ÎÂk©~‹9;z.¿¬cê'I‘ o>kKøŽuóñT7S1ð ‹ù¢¿1ûvS!hQ]úI™ò7^Ï Ø‘á  ÛDTŽ¥ šs™©Uƒ–2iÊÊg½ÞEÊÆí¿ü`+Âÿ"HÊIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_ru_RU.png000066400000000000000000000030131417122252700223020ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<`iTXtXML:com.adobe.xmp Ç;wAIDATxÚì•ÍŽÓ0…íÄÎO;ÕüI°€ +ƒ÷àuàYx „ÄŽŸ+l*¤M™¦m'¶9q;)¬ÁbYqâô~÷žsŠnów€ÿ „ø«$Æý5ùýárU!79ú¥°¡¢çó‚þmÑŸýB|Òq"9MœðX·5|k1)®cî cÐU3(B¤É`KRbó‚¿Jo›^rÉ#sš4Š´Äü¬Ú©ddŠdrÇy»]Õ¿âÅlÅ•¶%‡@ª˜Ãfò†§;€w'S¼ýxŠÅZÁä{L8D)\Ý‚ŽAgö¡Û4ëuÂM&íI·Šp£Ê ÒØrÙÔ‰5w.·(Òln•llAr&0¡\Ú³²¦ sÙáæçÖ¿EwÿÿðS€ž'ÿ*´«IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_sl.png000066400000000000000000000004601417122252700216670ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<ÒIDATxÚbüÿÿ?-Á¨ ŒÁÈÈHÕØ&F  ‚T1èXL ÇÀf†koøxÿ3èÉücX;³ºqðôác eA†ïÌ¿n\J8Æõ_Ö}fÈuÖc¨èÌf¸ùàCkÕjÆØçÔ±88ùž¿Êðë/ ;Ã?êZÐ}ß•áÍü- Þ¼eØËO½ Bó?ú00°R'½Â’çÿÿ Åb,ÄÜѲˆp®†´*‹Gk´· À51põj­IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_sv.png000066400000000000000000000003601417122252700217000ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<’IDATxÚbüÿÿ?-Á¨ ŒÁÈÈxš&Š °xçy lнծ€é­·tˆ2<ÖÝð†à’ þaºfY,D®ê,AÃÝ¥.¦"Òc›Z\\w1ŒK6¾»ÏdØu˜ýò,bK)ÿ—CòJ±©hçh*"0Â*Z•EŒ£5Ú€[`¡ŸkˆÞý IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/lg_zh_TW.png000066400000000000000000000006031417122252700223030ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<%IDATxÚìU«rÃ0\u NÌa L?!,Ô°°°†¡ùŒúZVhCÃÀ”Å0ÐfÓ1W»Ót¬¦ÓÔâ¹ñÊ’w%ÝIMÓ`HÜa`Œqß!Ä¿f[830ˆ¢J±åRBsœqó40<)"°G|ö~êß"+Î.TÍX,fˆãÐu¶ïLèj3ÞÞØ ’ãqò„0]‘ävÝÇc‰4,ßnQ&r&ÄW‹ý¾²»Õ!Iv¨K†änÿÍ@º-Fžl{³ÉPU'”ZÜè*¯Å{ T;A $V«W„áëu"—#É_—z¢»ìÌ9Ø-—ߪ€½bs.¼¢ºL{ÏùHwÑO9â.ãíæ æà{ãWæ[IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/line.png000066400000000000000000000020541417122252700215170ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<¾IDATxÚä—YHTQÇïæq·\ §0QÊ¢ÂVÁ¢È,|è¡1H)-"z1*ÑB+s!%— ÷,Qc²\'·QÒpi4·ftîl÷vît®\‡;¦Îhø3çž9Ãïœï|ßÿžA†Aþë†þÞ2&¶‰`–E¼ºyÒ |’P8¶‰p‡ÖÜ”3¥UIˆ<‹Ø±Í€ã@âá²;1†ò«š¡xŒ¹´U€1_ ×:c îN ä´§",ýµÜTÒO?h›`ž€¹z ÚN:º|úr{¶Zþm>Y9C7GÐ"›:»E€Ý9û! Cö†ì6u*zšwHï–Èjå—‚V0dàÃÙg{UΆí°p_/³¸…ˆÝ|Cá<„SÜ1`öªoôO¶¯Ô((Œ Ä`ö€¿¼{c—,@äÉ…]5ùÓ,¶o&/Ì×ñvmäà¶XñR©5=»ÂÕ¤~ÚRšï^ ‰œ¬üT-›ìè]5<zéìl0²µ ó::5’õ¦à¹SNÇ÷ã*U’ØÅsw =šž£Ô³ÅÃÝMÉ®óxå·®—g2x\ôi׸¨ÈÇ“íÍÑÅ•uHãè|æÐœö +!&Ôó²~YøW³”÷Ò2ŸwÆ­ä€þE}U¥!…ò®Åžiuʘšª·¡¸…pýep¶kq6'¼Ó["‰¬ÎΖ” ŽŽŒª¦)ÝÌj~–s0šÄ¾RVt¶±úŸÇ¦U‰”Ñ8 ¡Z¡[͹Z‹JâËÖœÍmD÷Pe®†›s6½Ðÿ­aÖJ ÃðsÖœÍÑÅ]AßV× ZWß$cÎÖ³e TÁÆõÀ-°Tßyé9WI?«Î¦™r6›.fxø±pçØ˜Ø E‹ââÛ†ÄU&üÑ`kÍñqe{t6ÊÖ˜ëûvbª4hÛ΢Úâ†ÐfÅjJ§Ju’úuHƒ»¸‡ƒ‰ ðôZÎh¿Ñ@¸a=¡ç/€x˜š}§É’¬rŸ!MÛø/ÃL‚Ö¤î·0Î\ô¶d½PbòÚþºÎ®NrŒú*_4Í^3ÐÔ Ü™e’™,dœkìý\âEå ¶ôý¤@ÞðÖ*†L&)&ôÖ#p€ñŒÉÈ‹€ÑÂNíÚF#|6X¼ÍL¶døZïñ\ŸÛ-½Q»¶ö2â÷7í?ûo¹"µ.¼»÷IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/line3D.png000066400000000000000000000020541417122252700217060ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<¾IDATxÚä—YHTQÇïæq·\ §0QÊ¢ÂVÁ¢È,|è¡1H)-"z1*ÑB+s!%— ÷,Qc²\'·QÒpi4·ftîl÷vît®\‡;¦Îhø3çž9Ãïœï|ßÿžA†Aþë†þÞ2&¶‰`–E¼ºyÒ |’P8¶‰p‡ÖÜ”3¥UIˆ<‹Ø±Í€ã@âá²;1†ò«š¡xŒ¹´U€1_ ×:c îN ä´§",ýµÜTÒO?h›`ž€¹z ÚN:º|úr{¶Zþm>Y9C7GÐ"›:»E€Ý9û! Cö†ì6u*zšwHï–Èjå—‚V0dàÃÙg{UΆí°p_/³¸…ˆÝ|Cá<„SÜ1`öªoôO¶¯Ô((Œ Ä`ö€¿¼{c—,@äÉ…]5ùÓ,¶o&/Ì×ñvmäà¶XñR©5=»ÂÕ¤~ÚRšï^ ‰œ¬üT-›ìè]5<zéìl0²µ ó::5’õ¦à¹SNÇ÷ã*U’ØÅsw =šž£Ô³ÅÃÝMÉ®óxå·®—g2x\ôi׸¨ÈÇ“íÍÑÅ•uHãè|æÐœö +!&Ôó²~YøW³”÷Ò2ŸwÆ­ä€þE}U¥!…ò®Åžiuʘšª·¡¸…pýep¶kq6'¼Ó["‰¬ÎΖ” ŽŽŒª¦)ÝÌj~–s0šÄ¾RVt¶±úŸÇ¦U‰”Ñ8 ¡Z¡[͹Z‹JâËÖœÍmD÷Pe®†›s6½Ðÿ­aÖJ ÃðsÖœÍÑÅ]AßV× ZWß$cÎÖ³e TÁÆõÀ-°Tßyé9WI?«Î¦™r6›.fxø±pçØ˜Ø E‹ââÛ†ÄU&üÑ`kÍñqe{t6ÊÖ˜ëûvbª4hÛ΢Úâ†ÐfÅjJ§Ju’úuHƒ»¸‡ƒ‰ ðôZÎh¿Ñ@¸a=¡ç/€x˜š}§É’¬rŸ!MÛø/ÃL‚Ö¤î·0Î\ô¶d½PbòÚþºÎ®NrŒú*_4Í^3ÐÔ Ü™e’™,dœkìý\âEå ¶ôý¤@ÞðÖ*†L&)&ôÖ#p€ñŒÉÈ‹€ÑÂNíÚF#|6X¼ÍL¶døZïñ\ŸÛ-½Q»¶ö2â÷7í?ûo¹"µ.¼»÷IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/load.png000066400000000000000000000025041417122252700215070ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÖIDATxÚìWKlEþ¼Ž‰íØ$-IKSúPH ¥ˆöB¢å‚„TÔK%TÁ‰ê 787ÄqˆÄ¡‘ ê…GÒGJi¢’æmâÆIì8qâ×®íÝfƳî:uœ*åÒIþÌîÎãÿæÿ¿ÿÿ'.J)v²)ØáöÀc; i» îôígqëEsûI„öžAçóï¹¹\•¦0q3ñHñráãÇÞÞÀ(­b´ïýõššþ–Ê9ö|·Üõ- Ș[Ž7Éw±QÑlóšÛžƒ?|»z.@]Äz´£—ºÊ|ì…·ãaÖ™RÛÒ¢›d¼z.àŠÜÎýV®· \¾Ë,”€R.Å@û øC‡@ŒÌòòa–x’M/ñ%L¨”‡ ¾÷]9óÀàÏ_ø`hK˜ùñ ñîô ¸ûx"ÇáVÊ0Õ¤m¥V¹„Hyh*ö÷|N—na¢¸@LŠ|±zþ*\˜F)3Žlü',ß~_L ï?ˬÔ‡Lt)Æf š‘3±¤ÂI!NƒxQÎǪ\ðGžÒ~ô]”3SÈÍ÷£­5Ïù0ÊÜÐmsˆs«6sP»œÐª_l2Ó]KˆSZf©ú]Q<ð¶<…ÈÓgì|ÉæÂ ±OZ€ÏµXgÙœà­aH2Î(â|¥edQ.q.,2×øÙñÜ ÜE¤Ì¸™‡©ç`Üçw ÷yáƒt!qM³yÁ¹6ZEÆz€EÁÚ˧Ûk\pý÷tä{kÍësÃ4Uø}†îa/¿>Ý&#ƒ[ÅlhÔrÅÄ„PD§U¼öúœ<5®½Ýˆ/͈^D‚Ï¡˜ÞÏmñ¥iÜ8ððÇõ8¦£?œã´‘à9ÂÕ@z¥kiož?¯·©Fa⪠­ m»‚øe™ÌÒw·F>‹ÊW…ÛWÌÛ©W»àó2?³îsBšª}M“ÞÔu"^ ÃôªŠlÆÄàðÇ_ÉÄAÄ­‹QÇžwG*û³%nw„úª}u€ý¶­ÅþhªÉž P+„Á]ý$½>¹¾!'X[FoÇ_Ü 3§¿KXÀ²‚(ä]Õ^× èe“–°oL11XH*‚¼ƒW òùÜÝ·?úžm¥J)Iÿ[[ZÀÇX|ôذ#…Z.hÙN2<5tBÍŠ²!HÊçC¡Ìì*†nÆ19{ùs©¸ • ØI©!€gŽDà÷Wò’­T–«’J„#5³Çc9,.°WQdïéõ©Þñ™K#<«ói2üLgajàpOÍ-Š<=ª–à'Î1bEg³ˆE󘿗CQ38UK]SµäX*=:|g¢wDžÜyúšÒÜ@G‡_ô&‹ãdREt*‡ùX‰Å"ŠESø¹% `jfàÓ…Äѹxÿ¼T¢ËÓ¢;M߀0.ß|èÖ*RÉ9¬¤t”J•uëÙÙËÙ|lln¾ÿ¯äÊЪãâá¬|†ˆÝ“zw‚Í,`ñ 8üç*AO\¹89ûÍÝ‚–Pë(17âË.>ä­:µ€g*Ÿ,"!™:Ýr}ƒbRGœςԼ •›—ä³&ïÖ†Z„:Ëìÿ¹–Ûé²,{»º8•‘ÿ¢¬î ¼Þzy3v u^,é#üŸþ_¢p§‚þŠ@ÈIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/loadmacros.png000066400000000000000000000027341417122252700227210ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<nIDATxÚìVKlTUþîiçNgÆ)”¶<Š Ò†·AM5tÁ®V‘ †‰¬\h"q¡îL\¨ JBšTˆò*òhZè»tÚÒvú˜Îtž÷ÎóÞã9gÎ —23²á$î½çžsþïÿþÇù%Bžæñ”Ç3ÏH 'ž$+Î@Âã¡<·Ûœ•þú[›òH#±ãí˜ôÆóÿoþ´…<1âŸd™_ÛóGcÒ½r/f=W ëiÔ­Ýwý‡};=*=$‰õ«ÂGu¼üÞ LJÐ*™cJ-T¬BäÜÚ»'ê竞߇廾‚‘Š@OŸG"1‹ƒ,id ²Å_ßQÜêkÀ¡ÏO!q‹õ`ËÅd1Ô‡ßùÛ÷·QåAtÿù|ó Â1ÜÎ$j–&°¦qe2ƒsMáЭ6º%Cõ…βÅçkÝ[ÀÍГ~tŸþqG3^lºÍMé½ïàuÜïoÃÊ:]Y–Ó¡3ÆZŒö¤²ˆ($FëÈ…w‘ õrŸÔzfyýÎ&Ô®ÝUMó§A‰ºpËk£xi³Ǽ¥*Î¥ÅØ. ŸÓS*Wž©¨[›ÃH†8ýŒv”7bÚ«>XD¿Ù<ѰÛؽˋ˷%Ø…â ˜ ¸ÚÙi-?ÃCG#.ür;¶:à¨ká>O„ÛÒvä7WVtñy6âq·zëQfwrhô LH6á±–ÊÑ @2Q Y>j€Îî÷ñjMœ¤ 5dôßÛ€ÆÃð wñyê3®œá&º5ærֹܮÈäôMÄ„ÎòK9Í‚ù×öT=ä‚«ø³¡®ë6­IÇòÏB[‘LYáv8ì8 ¬ ÷½ŒvB±¤Se´f?ü¼‡£(Ͳ£$¾ÙD–zÀ3¤âõ}ká&m¨¤ŠœÕÕ4d« õw’§]v”A¶: —»QµtË#På7ðÏÕ yδЊ`€mJÌe³`>Fó”—³å ¶¢BíÆ”¯ŠŸ·¬’Ræi&”ÁRøžU5^ÌÇVÀ¹êMtœïC(4uêFç·Qàò…·$¦˜¦Ý«a+·ÐÈɱ´¤¡X+¬Ëšù÷œ¿Hqå¹¹H¼¿ü*¡ Ú;ŽÁ§›ÖÅ.‹Ú¬ßX)î Óe?ñê¬^¯O†Ýå€EÉ^Dinh¿4ÏØå¯Á Ëdá{bÑ,`cÛÎj(v‰DÊ3ðȰ¿‚JŠÑby8¦ÏD4é½vëËÓôS’þ7eÀf³ qË’|@DÒ°j'åJ$3‡)[Öe…PÚULŒi>ùPÊ9¹¢T@}C%%[—rôó'É‚`ì¡i:45CFàŒarBEœ~‚ƒÇúîýÚɪ:[&Ò/“óÿ¢ÖorÁ^!|j<è–˜ÅXžá0Æsî{M6»¹m.Mb›¥i³¡Ú ¦5Ú¢HQAÁ"­â£>ôÅŸA„"(ˆoŶ –jª½ß IS“¶I›Í¦ÙdïçìžëÌ8g™-Çe“lð¡/ûsöœ33ÿ7ß|ÿÿŸcæi6–yÊíüV:ÒÜ·®kUH•+Þ‚°@#}Ç'ÞŠ¡í½Þxl[«,òÂF–hÔJJ1±´œú鯩o429Ö¾ç'?~YÚ÷ÜP“GØë±sû…â\œ-&BÀÒd,ù!ô¶¥»üSQ¹ãL—^ÿbBÍ’¡& 7cdC*Î?9ì=0ºk_„-óçã×î&ʘ™9¼ ÙL1ìa|Ïw¯ÇÀ(Œª/e¾ûüíô™{Øa³7ÀoäüËãã¾±øŽñ¦Ò§³WÏv}žš\ÅÓiÉ).•mÆöò %ÉLͬ;Gã©7ÃÔW>»2ñ«øÕ tòö ¾Ñ°f£ÊĽа-§ãrÑ@åáV¾y_÷n“ÄŒÇZ˜ÅËIhÑ~È%ԆŒ÷Gü°ôÆã¿Å¾¹ ¹’D7×ÊX'Î ËÄŠÄrÄòÄ I•ÉÝÒ¢sj`0ëáù݉í$ϽÄDÇOM­Ï€ÓqG{€oòHƒÆjâàÏ3èü4šÍëØÙOgE%b*1Þ;+ãÚ›Ùá¡Ým|‹äóñ%‰…-^øËÖ¨`Ã[‹†dl¡m¹µDëTŸZ-!g•6uìüWˆé€ÓÄìÜ9áßÓÏ÷cF°^êaÇ+(W“º‘*ÙN_XO õ°±Žp[x{"ƒô¬†óšMíÊ‚E÷¶Ò`ò>óçÊf&cÌø½õyµOóí…DI!sXTÿÊ|LL{KeI©œ¢Û¬Ž0cRÊKôjÒðÆÕ½ý~º8–ùIÕ D®C`¥ý±ùPOÐ;ö˜É%Å4« jSRyÉ*–e@I ÇÑÕÔ±Uuîƒç²ºÃÐ$±6™ž€ÅE}A {"é* Ð±Ð­‡zÀr¶dg;Ï"Iöp¢L$Œ oÕ¸NL# ÎÑo!Œ²PXT¹æEˆÌnˆØy1ÝÛP7 gW³z’ü âC’¿·E–<®âS¯¹80ㄊH[%“e«Š21¡Ög=¨ æ|ªÈYÂrH Å;}Í`¶8*•'`èJ¥×ÑGQäùB´£‡±l±i­ŒTÕª$$žÚúèd؄ОOg—WÕßÜ×!G†C’/H“ŠPËF cth÷w=3|˜ ?Vµ;Ši)uÊøº 8“Ù 5—¹ŸÍ]̨(Õè>2Ô:8Öˆ„É;Éh«ÁŒ?;&;·TðÚ½|!—ÖµYÍ6UWJÞ4 œ¶‰,}AY™ÃX:Óf¶' >؈° ‹ç™DRÕ9ÛTueï¼ò¶go|t´œ.»téRû‚²vºh–˜©ä³6wÔ-ÇtUÎ^ûXÀ†<œ¿»UîHìðµ8ãw ™óy5›6¡¡ öÇ„¾Þö€7O'²Ç.œ»¸÷Qi•™0 ž!œì™¡YÔ ×'±î÷ÁÀÒýö I¬·3$t¾èç[û…p_ï¶®l$š’¬,‹Yö4%{dúÚ½Ñùå»Êš¹x¶ ·,d0ƒTZ´r4J âmøAâbÁ `Øfˆa™ H\`Hþ]èYo bÓÒ`!­Âô´Žò“&RHæ%Ë4uçhýÐÜ«ßð‹ˆ‚à)‡‰&À€ ¤fx"$Cúɽˆ+ªFN•Ö ÄF3Ф™³Z;ªÕÓl¤¹¤UÄéˆÉƺN¬P­ó5a…iÕÔiÝP\õÃÚÒ'-4Œ«æC:¹AÓªèÊl€ªRµëÔiyƒú±9O” €íQ­Œ¢+³š÷¦Ëñzõ£ñsAÍ¡„£N«ÎYýÈUí:€­žŽ×9¹5Àlåt´¥£Y‰ÿóÙþ"9q½ëûââIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/longnames.png000066400000000000000000000012151417122252700225510ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì—Ï+DQÇß3R~‹) %¿6”-Ka#YÙ°Qü" ±ÀZYÊ_àWÉFùQ~,e" F±%?Š1ïúÞñ}:szˆ…wëSoî=sÏ÷ž{Îy3®1ÆùËqþx„B¡€P@TO¸þ£˜N·KÐ6…½ó™ÍWÕöÜÌ’Åè¸B€Rôa”½´Ë+lüC™Œ=”ë´ôS€å ,$x¾®·V0%Ö||çÅ´Yá|zøö¬ÇÃ+i§Ñ1±Ïs  |G À0Ø% h›UÚs-‡Qvµ€lÐI§} ÄÁ>¨ àŽëë Ìòs%Ø ÚÜ‚Ð#"²J),f}ê*pEeô‚qЏ]`l‚ÐƸ‘¹<•À(¸Cà‚‡ˆóšb"Çœ ~ÂÔÑù2˜õœŸkà4 9Üïì€k~~äLäVpŠ1 ŽDb%8ßMçVÜ–QQ *ço‘_n•?Gb3øL‚ †x^Ø¿Š»Nªg›-`QTRf`½Æ˜íÍ åú‚]ob6òå 0)] ­Ï6óÀ%8Ï$©Dè$ÊDùh>âʲ?JèODÐ!O‰aûʨ¤ûJT¶Ph04ðD×òÔ©€.)×å¼NpÙQ½ÏZ±¬£6Ó æ¨šo8²[¦ý›Ÿåúô“¡_Vnø¿  ø÷ÞÕØµJ­IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/macro.png000066400000000000000000000017321417122252700216730ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<|IDATxÚìWMˆE®÷ªºúoz¦gfw‰ˆîˆxJt½ª„u1(zÙìA4%àÅCуF$øƒžãß!ˆTØx qOþ‘½)1›,¢ãÎnþœíªzVM¦CÓö¬l@÷à|TñêÕ{_¯ºªˆˆídC¶ÃmH`H`H`Ø Aþ‹=psc£ï>:Ò6µšóŽØýi£õ`3¥š3ÿ6îµ9)2QÇYg Þ±eCQ­›ÁÀ&úè9%¡l1TÌ žq„8â,Ù*ØûjÊÚ{{k?;æ|•¡}_®®}çÆO´°ƒÖÿ¬1ô¾]1Ó«±EMô­ã;.†½ø>±ãgO­®­ð,¤ÃhèµÒÀ[I$ŸœÞUñÎx¿·p¾\ ´m’·„Mä þš³í›l¿.8´so{ŸJ;)Ÿ±óSžÀÛlMŽð&rœ€çË%ðrŒG€M®RAl¼æÍ†hOù`zj\¹xü+׎ 0?¦ïu6iIvâÌïG>ÿé‘ L³«ÝÍÇc0-»¶©Tö„]û"ýž/à9Û¼l|„gMT§Gµ(MI‹M­iIÑÆDÄ–bš(J©UThÚR%/*mSC +Iˆ¨›l²Ùÿ½wîçLf—MšÝ¶i±/8Ì3÷ÌùfΙof4Î9ngÑq›Ë€%KŒ…”š¦õÜjG‚o¶ê¸JDéáª8ã¶9ÃSá?ËUnDŠÙÅP;v œ%áXq°ô¬äßÿO¨ØfŽpÎí´¬m+*tSE¡Ó¨R’[äE ‹©ƒ;LHF1ÅŠ¤ 9…rJIíR’› éÅoz Ï;€ŠAãbL²ã·¯Ú4jP-Ï©ÑõþÏÑ¡0VVzÑÞùÌJ¡³TŸG±…L¯¢Û%ÿ“aHÀqLáÌ€Ë]1ß¹xß®þŒ¨Ë…,ø-ŒÖ½O"• Ño•BVìlêÝ¢ú} ˆKÙ_—{9PR]÷@7¼b%üócíÞÙt. úѲ½/Ę»ÌL[X^y?öï>9d1Ž´]¯ éZ6©lŽÓ8…“03%Vß Ý u/t—o^nÁµãÕï UØÜÄ é bQáɦ&"¨¯/‡i>"܈9x ôöâðžñ¶Ž­ F  ¥ol9…ÇšhÊB ¯÷#ÇŸ­Úíé mJW#3ÑýÑO0ô\z¶Sæø¬YÆ,T­F[ǶG…]©S 3®µO_j:†Sï… ™näS85JLÓ–3'çëÖQ»ö!Ô=Äð¯à÷¡1üraee«²v^•%ÊÞ*|Ì&)Å·¼£æ­çfÿÞ[ýÑæ¦³ãóDœÉ™×ÞΩPMmÒ'“ ¡é:t´uÿøAçgƒ pé…¹ÛΠ²±ñmÉ ÙøOFRØÓú8žß´Z e¯«¯3µIoŠD,--E<Ó€XLr ­€»8;3§ýUO³à¥h®XÅÐuô ¾ýú/KÆüü—æØP›ôT’É$Ê=áó¸‘Ï–…“Њå¾O~øâ,3æ•æ76ÉT¶í:1”ˆ?&nd4½ O=€‹¢¦6éÉ%áÃÛ6ˆÏňü<–u÷Á{a&Få–œG¯Äp¦Ï'Î ÛAMõ\º<‚ËCÃ8Ý{>· t×ð—°fYœåí²·õÂ<0‰£- f|fìO˜Ñ+Rr¹¶~qe"R-÷¹ms™í6ŠX×#eÕ€Ùw Ôg ªÊ+“ðÝöO¾v%LÒòB“ë¸d÷¡¶O_™˜¾G.1• »–pìv…á1Æ¤Žœ«D”Ä%½\(ÀšÊdÁÕX}èÍ/I¹NÈÓû»ù¾×/p±åH·^Èsíßdû×ÒÿÊ®DÎu1O3uèj?{Õ!C çùüøéÁ‘±á_V†í{^~BÅ;»ìIu¤UÛÑû6Ì; ÝJJ”d™NSù’Ÿ|2éHÖnæqºÐ}@‰;€¥ŽeïêN"©V»Ù×ñuÞˆHœ…nDÚ­|ž¹r^ÀÑ y‰ÈˆáÒIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/mask.gif000066400000000000000000000001111417122252700214740ustar00rootroot00000000000000GIF89a""€»»»!ù,"" „©Ëí£œ´Ú‹³Þ¼û†âH–扦êʶî Çò ;carmetal-4.3/src/eric/GUI/icons/palette/midpoint.png000066400000000000000000000013221417122252700224100ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<dIDATxÚÄWKKBAž{Mí!‘é"°…e­ÃEF´Š- Zµh­ú­ZôjïRj%µª-$Ê……ô´2Ã"¢°‚ ‡ÞiÎ8jš3æàÀáw†ù¾9ïž«aŒQ=‡Žê<Thdð)3˜™Z>6=Öii²Ìèº>I­Y#”~LÂkáÙ’ÕTåoli¼)µ~—¸óF¶"I¥€›ÃÓ7äCž^}wqz¢;QäèpÀÚ‚Ê$ÔÀí0p»ÓN1[ÌãäaUJb^n#ºfRZ†pÜí$ñ¨ÁÆûÛû&g©* õá‰a·³ÃyYj=‰ùÏÏãJ«B=0:à†„ƒ˜ƒÛáæWGWAž ëoU¨$.‚ŸÛ£3­±@ÂAÌÙÞ,±bŸÒàà¥Ù‘N)1“‰d9Áúʡ뇗ÀâÊnŠn‘01ã9g°}rBÄÁÛl¥Åe?~ï]^&É4SD¢vRlcâÒ×ïG®./}w›8C'û{¨Ûe§âÂ7x8ò@ÿý5Ô¨ÛÉðV»ƒ'Òl͉ s·¦âs¬¡¿ÄSPk%$wûkú‰Ìa<3q‘•K)q™Ÿt÷¸ÚKŠËjøØ¿½ŒC}C™‘³Z â27îsCÂAÌÁípóíƒë Oppp8¼€@¥’É ÛŸâ’_†Â-™H÷ÂJË`˜=‰‹(øD»~³‚ª(#ÅÒM©H÷¦’¸TÓ– u/2#M@¤{‘é‘îEUß&ܽÈŒ,¡îEF`ª!PS‘þˆt/µ—–b¬ ƒý`´Œ•[ÄW5IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/midpoint3D.png000066400000000000000000000013121417122252700225760ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<lIDATxÚbüÿÿ?Ã@Æv Í}0&ƒÀ(¦m€,÷•aãàLcbb ÚÅøïïßuïß¾™{pÛ†'@%iæ˜å\ܰÉ?{x_ýø¾i ŸƒhS+[5 °Ø[7N;Ì ,&’kd¢eôƒ‚ÄY.(,Æ0‡°²±ù)v&ç0F\’ÿ! ’™–`%8X°ƒØ ðãÛ×4ÍÀ4Èdï  ".q›üåÓÇ­n]¹x›¦¹Õ–Nî  ŠsP°ƒ|~ïÆÕ¥@Ëïå¿’åB…ËPäCÔ0A ;6P‚Å9Tí_ þ Ä¿HvÈà‰©®2<œliÌÌÀTþï?ãï¿ÿÖ=xõqn몣O †ÿCs3ÃÒÜ?¨:Ò "˜åÜX —³w_¨OÚ|ú!ùÍ8C‹ä‚äs­ijÅ ­¨{zÿ&ÃõÓÇT¥Á… Ôð°è@²š ÁÁ Ëù…Áæ.vV¤¸f$Æ@’Šsœ…ËHá5—&`%8X°zÿŒAløðõÇš6H@…Ku˜µ‚š”ÖÂeÅ‘kVÛÏܽ Êß l4ûµ.\ò|M@ ç `ù|ï¥K–߇Y ¬ÿDŽâBY)Úð.ÈÙhÓze-B… ±–Ã@lëæ3”\£(&¹QJLëVÀ*\HL¤´^H)`Hv1­R R@Të…f=#b[/¤0¤:€¨Ö ) 9 jCr]@Lë…Ú–“\ÿ§A  À´–eB¦ IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/moins.gif000066400000000000000000000000551417122252700216750ustar00rootroot00000000000000GIF89a €ÿÿÿ!ù, „©Z;carmetal-4.3/src/eric/GUI/icons/palette/montrer.png000066400000000000000000000044001417122252700222530ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<¢IDATxÚìWilT×þî}Û¼™ñxìñ^0˜Å0$¡a („”&¡µj¥ió§R*UÊŸªê’´©ªVm•VmUªúƒª¡4-u%ÁlUØ Mpc\Û3ö,¶gyoÞ{·ç¾±‡­ËOþt¬£Yîyç|ç;Û5BàQ¾8ñë‘PÏ¿þøÿÒù4É CA¢gœá×½ {Û–V X.6ÒÙ ÎÑ÷džG¾Úá!j®Àr:c$—þ+B0Ü•‡Î$?!yNž}ç(¸ÀáAŽ\‘Ð3¼ip¼20Åpj„#c=I½Äë×H¾ù Áûý1ð` ˆ’ØÐ5ïAÏ“ÌÒ8¾88 \K1UàN–5žã/ä_õØÎÃ|1±QCz8gÈ:hbÌgn Ió}3þJ¢Æ*óþäªèrŒŒ}dd@“Q(t@ô¯¿<Î÷RôUAïйè8=e†þ®HÌ[…‹:+N€óÓw²âÀõ [¹ªVsà ¼L:ßðȦ¡9¨æ}_3q²á_´—Ñ1&0‘Õ‘ž €3±\Wp)mGïpœOpxÓ@eëVÕ™0úÿ\f,,ñÏ8“Ò6ÎxªÞƒÊ1Pt±˜ÊKç†îø–‹ðÁüDB¶ï&—ÓÅÇDùïnrŒ˜dA²2*Yvmœ(Rµ»ÍD0Ud8ØÇp5Éð™6O« xV¤¢ðó‡Ðk)4ÖF,ïí>u]W¿AQ îÑ¢P`SÒ'’( GE•áÓÉ´)ôÌ Ã¯(_Xf¿¸¡¡˜È} W$iÿ À«”߯ÜH)èÒ|ç÷稤9Rm`2eû‹®Çö¥nÌ"îF(YKÛ¬â¯Ú;³,PJeŠdëÿ·ƒˆÕ$…®™HYü>ç=©ªºÔ ÒçW’ P@5„˜ …w·•LU '®áÈ-ƒ:H<äS j¢ÜäüÜûúù‹#ê*ƒ{äTæ fHõ#—¹wŠ Š"Õ€¢*0L®ã¡2føŸ'Ó6Š”" Z–»œ GoΓö±–ˆwïiuö³×:ÊÅ“¦b;½¦™úLøÞ)jæ—‘y„(ÔPSFݬÒüß'Óyć'0Ïùº4'§œêÃu„Ï–í2«BäÖ=Q_8/}•Ûð鞺g1ˆå¦â …53Zð$GóÈMýˆfÏ©ÄãZÑСÈï_#¶UDßµqœíÀT¦@…ªú)‘¬É‚M'ÈNÁýÈò”UDwaæ9¥½}49uH¨¿Eok­¼[ê9‚™·àR¡-[ÓˆMÛ"3ᇒÞ{…SX MÌ™_äX)I¢Aõ’"çÒ¦ÂY-¥ãœÎx¯.ýI†—tÄ *4G‚¿Ažkf^¾MMØèXÓ„'67O·!à¸öôy‰Ç£Ž y¦›@˼*ŒäNå –Íg]°2Ë^AW ‡TN>}ábºÅ„I3¢®œú óÙÒV…ÕÑ\Ó‰¥ó¶@SLŒeÐs³‹&æ°¯ÙRߎùÏB‰Lvß>†Olµñ—½åB,[ehüîPS:Ÿ| šA°¹¾•òüyù›”НªÖÄÚM-X¶`Ö.Úƒ®?ÀÛ¿ü-ÂF#֮؊¡ä%Ì®Y„…±xóõ·ÐûQ?Î]åë§­ëPŒfQÈ;eT˜<®xG3Ò/OÖS¾âEÓPPu_Q”*Wæ³®¡ s?‰£GÞÃK;>…[ý7±dé"?v‹[7¢mÖ:ìÝû2¾û½ï`ã¦õ8yê8†“hoÞLìE«•‡˜Ü!ÔÆsLƒ`‡Å¼±å•ãj«ââW”NCÎtáÿሎ¦Ö*Ê™A¬§Ïœò uuua÷îÝøÃ¡ƒ¨¯n¥%äâäÉÒ`Û³göïßÁÁD+È™ŠæÖjhTy3wOÆ£Ç0×°ðÓhB׸᠓ “U¤a# Ižêº‚a;‹œÀ¶ç¶QAÏçÑÝÝÍÏlA<݇`%°kçg}ãW¯^õg@gg'É~ê—ì„QYðS çB€ÚS‚QÛp½ZU¨ü,] hðÏQ5±ÓWÐ ©B³·èX8{í÷ذöKxÿ½n>üg,ïXg¶­ÄÑ ?B,Ò„ïÿðÛX¾¢Ø·o˜ž%0G ŒJ,Ðð25T×üÅ5S ”äƒÔq¶s×.(Z¡S¯˜úy¸J[©Ò™Eƒž‚5ëÛdïÂ6j+磣íYDÂ1ÄS7qþÚ»°ˆOÐU¨rVµoGÈŒa8qWúŽ g¥È¹ŽL*‡ gnQJK{/·¬ü”wÈš¨ü2„’f¯¼º–‰#ì~Nª¿‘õ7Ý–XøX*"&ØIÿ"Sã6×s¼^žò» œ+D3ü¡#÷A}c%n]ÅÈP²}é*4áNŠån^ï÷ÛpÓKó¡郮¼E‡-÷®Þ©©<¢µb€¡¿7Çò `ŠNñDZ4¬Òò—Îm:¿}3‰ñD5QLfòêOøÅî®iC1ø-äžQCtc*Ê•'‘~‘vùºò–"ê§òEx=½˜¿`‚‹ðÏþ$®^¸íÓtÕב!Éõk[Žÿ=ZSEóbˆ%FqéV–Ð`°ûoAŽpÿ!¦‹A%æJûž‰¯ÓðY@·ŠÒzN¯dÙdGž®Ã—âP››/‡—-vw}!k7åóv¥UpüÀŒ€æ˜A=e„ô›šë|P¹g}(jxš.­§Y” Áh¤è¾o!~@Óñݙ۷ªjetæây²™&ª¹ÞßÚxnL.Ê.‚cãùD‹ÏЕŠP°>2êèÆ¢îñ˜ãMÎGm†±@23ÖUSCe«WÀÌBq—f/±|AÖR™éÿÿsú¨üK€«±„Š{SIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/move.png000066400000000000000000000015421417122252700215370ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ôIDATxÚìWÏkAžýݘT[ZÔeÓÖRÒš„%KO9ùOHþƒ#øGAB@ôæÅƒ âÁä‚É¡9´Ð"«±Ýé{ò6ŒbÝ%9Ô…™}ãÎûöûfÞŽçœ=æ%³G¾ffÔqƒ\Ã1>åm£Ú$—H%‹ˆ aä`>„˜T1 ãZac@B~(ªÏçc+++¿¡ïèDdj$TrªßïGÌårý<;;{±·Ñ¥IíPír»Ý,°Z­ÆLÓ¼¨T*o„ñ÷Y´vHN§“-,,°z½Î*qñ'dÉ­d‰L/¥Q+ÛYe磤( SU•]^^öUh6›I8)!ÂqrrÒvþ®ëÅv!¡‡ƒµÛmÖétÄ¡s! îÇññqsŸ …_DÂ"'²çNÐÂjµÊz½ëv»ÃÃDÀY.—¯¢Ñ(»¾¾f{{{,“Éü ‚‰‘JØàH¥×4e³YŒ}|¬ÞáÛ—J¥ÚÖÖ–Q,ƒHàôôt=H§Óß;FÖq8¡¿ØÎÎ&¾"4\.÷5‹1RBkµZÖ¼òîî.K¥R߆”ì@‰G~¼‰Dð·Þ{ÂkÀÀŸÏçùöö6ßÜÜäkkk< òååeîõz¹ÇãẮsXÀ<™Lâ>Z¸}·yÆPˆùSLFI_žÓDnÀ °…‡B!N–l`rh?a“' ¼KÏ{ÈŠ;‰­N ‹t¯‘äó×øÀ*à#.ìoBñxÜŠ÷Q@ ËA#e¬8.°g€ÀÑÑÑ€ì”ܲ,@¿›§çí $0B!‹ÄÒáᡘ|UX/Vò~MÈ1Ž€%tK ÁsCxsÝ*ÍÃsH“phK)d‘“ZL†U Kçj{£>Lê¤ßsœ8à×ð†B]RƤ>ÆÍ}¥iñ¨Â‰G8N$Æá¤iž1ïsfÿ ÿ{ä$Á6>±eRIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/nail.png000066400000000000000000000024271417122252700215170ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ 5$ûÊ8—IDATXÃí—mlSUÇÿÏ-kaëÆ^ZÅ1,B„I\¸0Ü!˜1â@BtêÈ ‹Î„btš9ùÐP„ ĨèZ v0Å—AíØÆì¶C¶5co-{-]÷ÒöÞûø¡# [Yæ¨úeÏÇ{ïÉùÿù?ÿs0SÿsÑ?ÀÌs¿3švÊ~É÷Òö͈ÈÿŸýæÄÇGÏÛƒÃ#P‡+}‹h7nÛ¶Ù<]€YSùè⟶ðª‹u-ÍöN-@€C#þ°K v#ít„É^š-U`fµ¥²öVw¿GK1ñ¨pL^ŸOÓéèJüWÒžLÆþ_W»n *ˆ ˆðèîdQFccÓš”™«…EÇ]½îGn¯—Æ[‡I–!(èjHÖ§%£Ì\õL§£'Åm¹ïì†Q fk×$_ ™ ­5—pÝÞª²TÔ—™@$å$~¿0HDî–íX¨K¸w_µ~¿ø¥(Éj¢»uj@!χ ÂÓš|€¥²¥gÍKším¯0ƒÇ„Fgn·›t óNW[m¡ ¢C_޵¶ÝÌ ’)¸E€QA·³‡~NDÃ!1!3G;]/š<$míX¨Kø–ˆ†›šš€#ÇŠßõú i¼éïMòû02è Ã/n\¿¡Òï÷'€Édº7€îÞM¤`$]póšÿj€ÃÑÏ€ -í­O¤§§_ÎÌÌü<>>>›¦ ÊÒ2â»h?Á®¾nôõu£ËÙAˆˆ$IBEEÅ999=ŸíÝ÷Vo+ ÎÿqaêçÍ™Þa˜‚ÏÎÄÔZË¡š-@–½wx˜™©¿¯¿/>õ‰©´¬Ër¡rݺÔXkê§`oiK 4ï9”‚€ ËYž§±6¤ÔÔ´Z­¢(œAH¢ ýnW´áÔ/çöè÷× {–€©äçɼ^ßCÅg0Ä[} yú¼Cñ†òòr²X,ªäääÂØØXH’ @žáAtßì€ÛíB[»3éÇ3ç®íûâðþÄåKã ¦¶>x3\¶ßp&’0¦s`eí­Í¸`.å;v,Ÿ­R]Ûµkׄ•dddجV룒( ê¹ÌŸŸ€ˆ¨h„GDB¥šƒˆpV=¶âõíÛž?À`,yßvõFžB`È£³ê¯Ôò5›Ïnzn^¯ï˜l?Fã%%%¿™Íæå‘§‰§êȹ˜Å*•’V,}ðÃû4qlÙºybì-òxF”aŠ0 ô£ì÷3ˆ‰QvìÌÊNKß²¥yª­•››ûTCCѺººxµ:š5Úû):VƒÈ¨îºé¸UZR³{÷nèõú±A§úÌ•÷QÁɧ_Øj_½jm]î{ïä€Á`œVÊååå½™’’â\¼x1'%­–W®æE/áüüüƒAÏ‚žž^h4q!ûå.,,Dvv6 öTWW¿¦T*®Ïž¥rÎ×éF²²²^ÕétâÌÅd¦fêoGêû''GcIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/new.png000066400000000000000000000021711417122252700213610ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe< IDATxÚìWME}óå®í8Y´X!J@â°H‰’ îœrâð¸„'~'Ž€”=qå\8‘H"@$›DÊÆ›uì±ç£gšªžeÖx¼6iÐòÓ´gº»^WÕ«ž1¤”8ÊfâˆÛÿŽœ€]öÀ Æœ¨13,ÏàT÷¥\1«íÆÙ¨¥ÇØúÿ<©†`ÐÔ”8¤‡õ²~þêd˜ß‚¨‚‘ßÁžßÝ7øÃO¾Ù K¨1ÿ¥I°Çf¡w^#²ØÒTÈ$Êéà†m+·¿<æËO?àI§ ' ‚Û·ö,ÌɹÏ;i2Eí! ŸB;ˆ'û÷Õ³«_‘øƒº-Bàò&ÈæaT žÉ4B¢ Óî‘Ä#Â3êï" žàþã>D’‰-&qwUæ‚0ÆA búXí˜wŸÆcHòÅ<(¯ìz°-K{B‘¸CÝ&‡Pa:©W“!7Ò W? X ’ÖàÍP_ÊDq7-¶±‹­Ï®î›Çž Ä|U+#)Èt5‘p(Î÷”1ê’A—5J?–Ó„ôzx÷=²²üPâÇ[ç Ãð2„ø_y€[<¾î‘Á5rh¦é´=ÚO;‹•Y¡ç»J<âÔJ®deߨË;F†˜)ñÈÕ,M ‹~!&–å…Wk¡P¼ÌC*…ÏrÈˤÚ)“°È#–Û¡+£M·›*Tg/\Èk‰URA—ËpV JY&M•g­’¡1¯‘^Zß(Ö+—ã¼ê¸Äi(Õîy®Ô}|>3´¾i)B¶ÛƒÓy õõóؾõõw:\ sk‚yp©N2Ù¥BAʘ8ˆçâù3’¥×Û„WõNýºõ‹VC­¬0L€NB*:Uˆ2uñÚf™"ìòÌËJ'W6uƒôÍÉ dãJ˜SùÁÇ*ÉOÄCÈp•ÆË=¹‰ èÌÅko/*É‹< Ü¤ËêÌíèƒ]ŠpçÄol¶!#a8Å™7?z‡ÂD»_ݯÄ4ïÎÈéê n³x‰ãÝ>üáûµ+—ôYÀÆúÊ$’b=(#6êi=ÛK(¾Èæ®bÓyÆXö¥´Œ@žG‰ÎúxžñR+¼–—‘À Yö’j¼èÓyo?‹¾Œÿü×ñß +b+å šIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/newmacro.png000066400000000000000000000030331417122252700224010ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<­IDATxÚìWYlTUþî2w:ÓvèÔ¡,"DP²C]$!š†# #Ñba š°„¢ÁhP n&Ó¨è)´H­„KÙ m§3sgænçúŸÓs›Û¦«}àÅ“ù3ç.çüÛ÷ý翊ïû¸CÅmÿpÛ Ðû{ ÐàRC•^¯frîûÃDµ>€r®T“ïèòº/˜— -edi¸"í·ÏE+Ž¢m k&‘6+{¼üܻߌ§?KŠÍí²çÓÍOóEw“T‘”‘DxÄúÚ»·¨€³Gt˜W³Óð¬¸Å›pò×à˜—Å³åo~2¢‰¦ ’R’(w‚"¡Ž„â™ÏlxR1yÏÉ’dhÞ¯x —['Áõq”qq¸F¨`@Ép ­Âcî=srð)”ŠHQD%MA×4 aÄ_4-ç)$1¸ êáÑ3_F¡¾B¹r¡ø´w†æ¾ï ÛUëhÇÑË%žºˆñɦ¥WlúöÞ€šœÞ° °Ýå¹Y(S´)ŒrŽÒO‡)‡_’¢G‰{V¥„c# »Ø‰ºó÷ðå!Šz„À„kÅ  qrÍ´qkW ¼ÔŸù M8wêFª ¶+‘0dú!¤€xïY„¼‘v¸LÁƒ14ÿÝ•s3çÏçÌ%”óÁÿE«áÔ¯Èç“P3±võ®Ÿ“¥Ø¾sõi€6( }—+Î &¸Ö-*L7`ç[ÑvËÄÛ[ŸÂ’g«af-öššêkù5¿o[bñJÝièèÌCF 2$˜kÚ¨$ß J¶òfع0z¼‚Û¾ÄwG.ðñœÿT{ºÇZ~ÍïóQÈ`êˆÇ „~iØ]µø$nPÝWô8¡_ƒãªX\sé©>¯]ŠéÙ*¸ \…ªÖcá¢ù8ùc½¸æ÷5Uéᇞ ­:Ãû„AüºóS{’ÑéçÁv<˜EŠáN|̘>çÏ6‘œÁ‘#¿t³ Ì¨$¯ud2]e%ÄG”è¾Z8ªšDk©<^ãA õˆÑ—_8Xëå’x|Ù \k&þ_7 pŽÈ¹èjÈóDE©±e8wú2ôÔUìÝ·~=ê á&ú3 hH¢’:m´P ç÷â/½¸¯NÉŽ!èbãa 8j¶z­ëeb€L¯i)9qJöÓ’)R™!½OÈÓ-)…×ø1$“Hª_Yó_ôÉ“kVïò_[õ½O”ã÷“<öúúOøü~’é$wÊCʾö×EÒ–w§AF¨$HÓžÝÇê[º£›·¬zXöEùŸ—gApÍ”ÿúq*Ó¤I>G¤GF¨Ò)évÐ-‡À'Èû\e$_ÇÒˆ ]áoˆHÈ'øf‡'{Á2e¤Ÿç¡~/ü1£…^ ”²¾:¢ü‘ÿPd²OIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/nextbreak.png000066400000000000000000000024401417122252700225520ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<²IDATxÚì—[heÇÏÜ6›K£½¤ZLQ¡´$6Ð5Z%ÖŠX¼âCBñ¡}­ø`@_¤ øb¼"BŸŠ‚â´"…Z°/Ôomµë&»ÉNö:÷ë7žoûM2&™-’Ô¼8ðÁîÎ7óÿsþçÌ,†!¬åÁÃÿ4àð¸Úba.Æ@†WÁ±|‚8?~ìôÈCž[Ÿ%*à)þ¿(AàšŽ–¡»îyøäþѱüÞŠ+EAV"éf‚$òBGGz`÷Ð}'†î?´kÇÕA¬–?3aÀ·¤DhokÝ68ôàƒÃ‡vÅ!Xµ¸«•Þó †‰j’é–Ôu7õÝýIßžƒ·ã¹\iæg"±ž¶ãqBàçyâƒçÖy)Õ~¤wèÀþ¸.Ö¦ÿ"¹§Q“ ûA½@—ïÙàZXZôjœºöLOïð+¬;RQw¬x_Ö!8®†å‚¥A+O5Ä-­„@uºu´«§?Wšúù jZ=–niHKǹ،Žî¥0ë¨J”â$Tf.€c)ó{Hà}U“'?b÷™ÐÂX.nµÿk,OÔ1n­ÿžÿ-À§ä·Ìa\çIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/null.gif000066400000000000000000000004631417122252700215250ustar00rootroot00000000000000GIF89a""ÄùùùÿÿÿøùùåäÙôõõ÷÷øêéàóóðûüüììäúúûòóôõõóñðìøø÷ýýýççÝþþþïîèõö÷!ù,""°` Ždižhª®lë¾p,ÏtmÏQ®ï|ï÷ pH,‹ˆ¤rÉl:›Š¨tJ­Z«‚¬vËíz»…°xL.›Ë“´zÍn»Û„¸|N¯Û닼~Ïïûû‚ƒ„…†…‰Š‹ŒŽ‘’“”•–• ™š›œž¡¢£¤¥¦¥ ©ª«¬­®­±²³´µ¶µ ¹º»¼½¾½ÁÂÃÄÅÆÅÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÚ!;carmetal-4.3/src/eric/GUI/icons/palette/null.png000066400000000000000000000002161417122252700215400ustar00rootroot00000000000000‰PNG  IHDR"":G ÂtEXtSoftwareAdobe ImageReadyqÉe<0IDATxÚìÎ1  Ù?´«á HÛ[‘È 0Bðe½™ž»šIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/numgrid.png000066400000000000000000000006561417122252700222430ustar00rootroot00000000000000‰PNG  IHDR"":G ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<@IDATxÚìX± Â0´Q JÜA‡X ` aV#d2 À ˆ’Ф¤ ÿÒ[²¬wâˆ"ðI'%ñGù\òŸÈªªD0=Ab#±H)Í]4>‰C{Ô§"S਷E £Y£($ ùu!UG1BÚóôšO (`‰ýKçO˜ eô—pC'•L,®/’r1c»‘rBpñn$.iÿîHtó¨ÀÉñ¬ !ÂÂ%”>·ÿ¯žš5pæXÃãð<ç¡„¤”È%M_÷À ò[  ºp!êí4TEðJ¯-ª—‡ªˆ/2òÇê[B™T‘ˆ¢qœ7Éô‰½im ùÀ3pˬïèü£Á¹+ò¦G48¯ä†YëâœMÏî ã†W|'XM)C~嵩Hpèü2þ±ð`ÁÓlß¹‡‘>IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/objecttracker.png000066400000000000000000000030341417122252700234110ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<®IDATxÚìWylU3oºÛ™íÁv·ç¶ ¶PË¥U-‚4Q0‚šHb,šHã_þá•H”CMäЦŒF«€R©–³lKwמìÕîÌÎαã{ëÌúº °j£ÿ8Í—7óÞ¾ïû}÷Wþþㇺͷöo t¢‰½„@›@ é ¨¯X0|¿ñ£ív©xÖ9§[ßó£_²±Ä"rô àW0 Ccêí†^€Ðò†מ‘71ÚËFdÑAR 9ÜùúÞEe¥•;|£× ÁÛ`Yё轋ˆsy^ÈMh‰N^ˆàÌŸixnGIiQyãñoOo„XAX>¢-a .œ¡"¹ª,j‹!Èžk¡9˨r½]Ñ$U‡L“Œ%L ¦µ‹¸UËÖ4vr?sâì‘`PhŠ©Ñ‹èL¥ˆXÀ&áfæ.{‰…ù¯Ð„ñ„ðiXõíꋞëEgؾDè8á;·Ö—ç°–-¦Öã QR¾êã­•Užgw$…[³9Ðs¡ 8íYá§Î7ê‚£ºù1…IŽ}+ßýñ®–|¦òŒHGÖ†W„rjXÚ¾ÖUQº¶ÄåUee`öÔºäÕ¸tpVÑ42³:¦óÚãïcbDò=¢x¯FxÏ‹›³(®. ¼ó=î´V LÂ?Ã+ﯿ»ý­÷2ºVdöÇ;C!þ°®µ@ Ç2Àé p°É¼:äA«QáÿT{C•. [/ž>0‘Okgïgh#2)•Eð6EÄ£¤èàÆQßp$‹r3Ê„¸•%¡EC|SSÛ¥†6·ïŠî{Q¿¯Ý´9dP\ Qžé´sHÔ@ŽéA'§×M_W(ŠªF{—‰ïôÎI¥)@‚4€TnQÀþ ƒ¨AÔ†h·±w;º‰µ`Z¬˜Z›1 Y´¼†¨A7¡Šö¶dࢠâѤó¸u@i7*Ï—òM#üWˆh~úf,Å“+ÊÙv3úNöUU[BC¡<ê×"] Ýl"ªÇæG„kÿ¶L[nÝ£u®âŠân³CÛ3§ëX——ÂT<¤ò¸sׯ’‡c2 Boˆûò˜§úùU³Ü™HWTú¼l‘é§Þ·L›>-¹õÒUÐÑÖò4iÿƒ¶Ø¾"Vç ½Ê±s×®4üch§®ÏaÅ@ ‚šÉX=¹·¥ŒÔO c6¡¢(ÓIáv§=¹ß1ÖBmXY)l°IÃÀ¼lYà)tü5NM£Ò{öž Œ gºC<•ZwRF£þ]ÁÒ{¦Bc5;÷‡diõ›{QΨ‚’‡bQCua,™!mûaw Z¿Aij a Àå²²-€­Øì¤ ð3Æ‹ûO„véåXÐ “–|L–.œÉ L›x«j«*f/šý³Ùa{kû¿Çߣ!"QSóeRûå¿BÁ@Bø—ÃI4¤ µ„ކ£Mîv÷«Þn/nd£D;–êH™T1*-=3| +b Z ªÄ(g¤a꟞:iñCvÓzeVÿ6‚Ö¸1O3ö»¶*¦ëOÒ0IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/obtuse.png000066400000000000000000000021411417122252700220660ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<óIDATxÚìV]h[UÿŸÜ¤ÙZÉ4ŒY°bQdíØ›’úàKò*QÇòâ‹(†MŠ© tm}ØpnM[6R:·¥¹iµvI·nýH›¤š¯&·¹7÷ûzn9®ÒÜFv¡ ;ðËáæþÏÿ÷;çÿq.Ò4 r8à€Ç3ϸgË–¿~áÅ¿~˜~Œ^ÙnPDUÖ‘‰£-FÉÃG›ÅVÝ¢Vú€rïkŸ&qç´ì|@IG`fM„劢àmGp¢àµç;éàkµ^”¦lÀßò©le@˜ý¾oh:[ŒeÔqA(~E»)Èq£îÎvèí9êè?ÓåðŸ<æò²‚œø³®}Ü÷?õTª·¾ô‚¦^ff.>ÌL-WÔðý¬if?ìïœôRçŽB¾…‚á%íóc¬e8!hAu5šÎÓ%-ÏÉ+û÷'¸ˆ¦¶…”·¨(®ÀÃ’Ãoe¯Ã² ê5¶#> ÷²Êxr«ùÎÍ£ïJ9µ÷¸C¾ŽúŸª ™Z£÷nFF@чŽ@_Oa¸Út” 3¦x^‚ºàì3þ#0ì(²Y–a‘ºW¶hšƒÞƒœ"el836ƒbKÅôˇdø‹ƒðs‡i­J€ëd}¶ÀbPÈ•1‘ëDαۋçE½ñö'ÇË Iºom׬‚ç7}ŠóÔŽPÙfx¨3`k`™3|‘øÓ,0 Ì¥µãL»ñã*!w]›œ?_f´ÁÕ\2Ùm¨–7€cJ ‰ l ´»^–x; ,H‡Ÿ È¢þÒMNa¿@'xzðz,×uòÑt0_VCs© <šÿy€Ž~óƒ±Ëž†!µÜŠËU‰v»õ¸€Ó³ùæ•ë‰`®¬„æV HÅ5vBbªî#@%v’ao)`ssgJ¤<ï¨J‡ÿÂÅa×FA~79¿éÄГ?n'†ø˜“P¥¬ºd»Ò•/U¯žxëÌ)Ï+§_OÐ4,Ư…ÖR¿Œ]à Gfž‘ölÛ4 w³ýn~¢úÙ…«_2tbį‡6ß!D ±d8´ã{À(5WxøNPxîøsIûMÛÉ ²½È—¾·*êàÃÔo°”œ­/Ål'o&ÀùÉWÑ`±¦^Zü;3;ëšDId-D?D‘=„ôÖc ¾ôb AE=D… Š¡&ˆ$RjXi,«íûãÎÎììüÜ{gºw‰IDgÝêÂavvfî÷ïžseY°•ƒ‡-ÿ l ޝï >ƒ:ÆîYt[Ö:QÎûÎæ 4_¹]Ûzãùeú;ÈîÙüë©Áû.tt>ÞßpüÔX¡ˆÏÐûM‚wñ·!…“ÄT„ØF S3|WÀgߟ¼=ÝpäØ[™át®éäH™¨àòž÷5 ]àBÿ«ñsտѱY›U˜OˆKÎB!ley_ÓÐíùËቖÝuán‘`^Ö!¶(Áb< Rv 5Ïy ¾²pƒŽL¶Qð“ ¬ÌÈ‰å ŸŽ€*gØ»!¯àžpW ŒLwnßQÛ©éA:§À/ê}.UJÒ°ÓïÏç~,A)Úû><4¹ê6QVÁ0ä :$¨÷ñ” E)·,RvFy"p§kôšX mb!˜˜ ˜üY±’$‚¡É`bcCõDð’ïϺïö4ooäÕuDQcWU3XÐQpD½7WªÆUL€m$lS™y¯Qkojy° Õ\%±‡%P¤Á41l´³ò’lf¶¸Æxÿõ{Éȧ›Å| ±ˆ×°A ¼Rß 8eU™ï{š}m§A§²¨g ºþ–IGìçžH”½[Ëã/% ­Mþœì¡.Ž 8ÿcO$¬R>oÌœ Êî€vQ ï9Øx–^÷RÛI­šõkÍÁUz4³«eÀ.jNà¤.3b­Q$*nËíjI\‹[QÀÖôóëpêj¿Ý`½s÷ÏŸŽ 0¤MðÆ6ßùIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/oneforward.png000066400000000000000000000016621417122252700227420ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<DIDATxÚì—ÏKaÇŸ™ÝÙ¹QQÁ  H0QðÔB…‘DuéxÒC‡¢C‚ŠÑA;‚A—‚"¨¿ *ÍC¢é®¹îwvvç÷Ì;=ïøŽ ‚±ïxafv–ïçù>?æÁó<ØÉC„>þ4 àÑ*€hÂBˆV°ç5QÉ"§¸8ùôÓÕK#·öà¹ÄˆàOâßH°;OŸ:sùý…áñ.¼NâŠQF!xÿ‘¢b$•Jô¤Ï½KŸ;Š÷ÚpÅÞúàvÁz§?sµÑT<,ÓA/‡oEùpÜsØÉ€`+˜¯¼{ ƒ2à—U=AˆÑ Ae0Èl÷ƒHþ>­Ìê»EŸÎ ,)4bX .7ÕÁm1ÐGå%À fƒë6ÊEjÀU0 Læ*É*惹ºÈÌsuÎñàf~} @;p Lu2 Šû&ÊÏrÖÕ!DY·âëˆ1ö4nG£cA'ð<ÔHüãxž‚RpÔÁ¦_x º2»6ĶÔ9(OeHÉìÒgt¦`qà-ÌŒf©U¶7I5 Šm™ƒò.ÜÅ\1„W¾‰aú-fšÁ4¤”m´j€qª}v0 †þâ£ÓV€r>ûMßFPy>ÏŽ ñü¿{SyÀ©8g[oʵ|g%}i¸$¸£P ¨1­„•¼äLŃ7ÑqåÚÌZÁ,ÅŒY¹<ïªÕÓ°‚­G#µnY`=“ŠÛØOÊ'pœ7”˶\5 ˆm2l°1b;û­ùÎÏÙža$TÚla¢ªÓ0à6÷Q¬¦xª•È*bÈÞ¿5òG<ûü`flô7'yžÎ¶–uCPW³^,R˜&‚QÄJꘂ÷±¬éjfDG.ñ0BL—Ó/L,²:·èÌú·ãÖ”? !+Ò 9ëIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/palbackgroundpx.gif000066400000000000000000000000531417122252700237320ustar00rootroot00000000000000GIF89a€ùùù!ù,D;carmetal-4.3/src/eric/GUI/icons/palette/palettetitlebar.gif000066400000000000000000000001401417122252700237300ustar00rootroot00000000000000GIF89a³æææÏÏÏÝÝÝãããåååÔÔÔÀÀÀÚÚÚ÷÷÷ßßßŽŽŽÒÒÒëëëááá×××!ù, Ð -‰ãÊ ;carmetal-4.3/src/eric/GUI/icons/palette/parallel.png000066400000000000000000000027731417122252700223740ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÄWkLW½;,¸É¦ºDåh"‰?Ú´! MMlLÓ*­šÆØÔ46‘TÓHš6µDCƒ´ˆµ+h‹PÚú*Ð@K)Å,ˆñmy¬Èc\`uµì®;³yOg&wðº…u-’ÞädfgîÌùÎ÷ÝïÜY(ŠàÿÚ¹&ÐH#øšˆ¨Ææ’XäЦÄjq(“¯«as¨Z!þrG¦!PUze ·Mú¥1'%€ÄSäÖºü5 ¸ïØq$©ÒŒÙSõÃ.@ÊU (G¹O8BnÌÙ?yvÿ)òø&±m3.®MÅÒb5«¥{‹$èa&0ù9íT-“kû~*x3>š.\,+j³³¦Q¾lÀ)”QðAå(ÀQ©¦8–0RBô¾ÆŒµc¥[Īuzqe2nNÖG¬•î-“°DBœ„ùbàsùšp}@Vš¹%3Á·K§äkËýf±Ÿ<˜µ>=qÿ•ób•¡¢ã6Õn§Ë]l/Fš&ƒ–@ÁsV/ñ @"\òh]ôØt÷ß[þºÐ ~&û&v·ÃÇYåøbs\|ì.•ËÇôé %-E¹f°€®K] ¬£Ÿïé&Ûê$£ƒTs¢¤8\ÀÔ´Ëäócç+P w%òY$õAõ"bPš°Œq³HéqMˆ‰$QÉýð\%Ö(n¸0‡‹VuD †›Eæ}óLZlR”šv÷¤[|.¯ÇÛIQÕ<’e|´úÃUýŸ=ÛRòH„AÈ]„iÕ×µ_ŸM»½¦Ÿëu cRsè°š­UrœATGí\ÿTöº cÛ:ÿè.?VlˆÞu”¹‚v&/úôóÔ§ã’JÍWzW˜Î·€aÂv9Ú3¯|YzÚ+:½n•<ßGøZ-}–*Û mXúI"äÊ;k ÖH¦tˆk¯H*lãO[@Ù S0ô”pSmˆ¦üÇÃU»ÜÏÞ†cº!¢Ÿt3®}ë9ãà‘‡©f`úxMsp×Û†¬W_(Ò:z7wšêÀ‘kÌÐSødä¾`†kC]# ¶çýÂ%‰ ‰ÇzÚ^>±8¨S€'óº_΢ýŒ§êýgeá‹£˜bâjeÜÑKãl›•Tó4/RHkª¥bÑh®w G7Z¯g8èN‚säûy÷9¨˜Az[U* ÏFäe¿cØúzF1cëÞpº©œ4ûnŒÞgs'H~pSR½AD3 ìd‹ñôMnn¨“<|9‡«êU3Qjû)ã[z@•Ø[« 'ºÆ©®;r«›©, ž6¥‡JÛC_.ÀÉ ’nuSÒ?Þ·òùå%ÄPÏÚÖ¦3àw‹«÷¶—Ù}ÏÏŽ„kÅÁ¨«3’HRÝúÃ7Y‘´ÿÍÆZCÝ[Ô€‹,±ãp.®£kàÁWÊ¥"B¬¨>”»;ù¹”¥Æ;æÞLSS¸lwtNRô^7EÛ JfšZ â »Þ´»¡Ü’J}‚L©þè·[×àjMþ˜Õ?FzŒ¿·rÕ¬š91Ä–;ãvŒšÒíI^¾4µÔr­oUss3ès_%˜@ž—¥Æ!Ô%!U‡ XueÉñlÊí+8{¢A×ë$ÿ¸ºO ¢MwXªg !×åHM<Ú{ż¢¥Íl¾ÑK~λ—â)ÇlU?*mEQeŽÇåËûå»3º[þ>’dù^î~#b¿Á}ýXªC€­ÏØžÌù¢ºoZºõw™¡&Z òY!0¢¯q0ÿ€lD øK«I~bÁƒ%AëÍÌVõ£ÐB'ÄŸàE6kÕ¡þ«f¤~J1ˆ1ñOJ5:þ`2‰±õ| {ªIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/parametricfunction.png000066400000000000000000000025051417122252700244660ustar00rootroot00000000000000‰PNG  IHDR szzôsRGB®ÎébKGDÿÿÿ ½§“ pHYs  šœtIMEÚ &þìXæÅIDATXÃå—mlSUǧ··ok·Â^a[·ul%Œ Ì`ËÁ("‰ ŒúA¦FŒ$&&¾$&@b_,ñ›~PA$Æ7Q…™10•—ˆ&¸ d@×½µ½½Çœ«—n튚è“<éíísžçþ}^ÎRJî¥8¸Çòß „ðÝ3BˆJ`éß]ïBüS -@âp.ÆéIŸ‰¡Ô¡TØÔ.K”f[“ 5› ÀRJM@*] ½@ SÁ¥Í>e³Ï ÀBï\J5õÎ ©Ôj]ʃc6ûPjØ€geÀ î<€ncÀPÎâJ—×¥Ê6hÛm˜°ùNLÇ€µ{/§@8z~°Ô—_1Û¯—êΉó‡.œª•}?P¤‚ŸU ËCy‘¥„tg²gÿÀ;W’éU`à²Ï•Þo·44öï=ñÁV@ÔÌ(nhšýt­?¶,–Œuo:8<0’ K+«ê“­y-¥á⣻:»÷é»næ© úÆ9MËŠ}/t­ÙÊ0½ÔRnÍ7V*> ŒŽ_oF{O÷|çÒGݺ3±X–jBëo-k,oi¼oé%_pÃsï³óLßõ[ÝGûÌ_LÄD¦’œªH+é4tSwêI`\%‘øéZ|앃Ã# éÛÿ„¶¤!ذ¶¹©Ù;¨ñÔ»ßvöªÄû3óG%ÄGrî“Ä4ÍIïzn¥b/H}µëáÀÆÝ›Š<óßzïMàÆ”ë% » þêdÒ‘4’ºª —b'a1â׈™ÕVþxsnõÝ™K't¤QoïXš‰©Åq·JN]ý6Z™¯ÛV¸‰4T·o¹0ôÌâ5›”–W(;Ÿ¡ÝfðÿY¶fnC&ÄÐïCºr*€DC‘Ûûz«÷ yÕ𪎳£²?èi®\šÓ¡ÉñW»¯ÝˆÚfár Ó¡»sjŦê^V·Ó@z¢ƒ± {=òñ¹3ׯ k­%sç~tG×oѱD0Úy¥{G¡¯aÝcuUÛ¬Î;þÑσûzcÉo«uZA…¾73M=û³ËÞŠËÜõ‘Æ¢úm¡Yz´Ös)\?¿òø„‹-Oîüâ<°x¸ | Œ¬ª)¯]]ë{¹¦Ð¸ßAôHY ^ž7/0ä¯{6ܾûôíi,³˜4ŒÂº¢æºÚªE‘¼á×ö|rÒ6XÖ)aµÖ±}ud^Óœ‚°Ç«õÄžs+¶v^µ†Q6ÓãDÚ(¶\>nÚ¦§5ŽW3€¯ÕÈžt qNÑ„¤rä²½ÓT™ÙW[ÓÒ¥ž]i›rejL7'¾;v<Õ½@Ñ´OSÂ!`–¢¾G%îtN¤”W²uÂT“¶’g°wZý@É80¤>33ãix°8ì‘RMaÓ´©ƒKÐ%¥¼yW³`±r%S˽¨‚Iüo°Î†2ËüÐÝžŠs)å—êNQ˜ Ä´åÿþvü´[¸´ÄÝ0cIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/partial.png000066400000000000000000000030431417122252700222230ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<µIDATxÚÄW{lEŸÝÛ^¯ú¦=é#Ò,’Tä!†¤$` ±€ò ! DLQÀÄ€%ü#JD !"õ°@ËËPâµ¥Ei)ÐkK{ôz^ï}{»··»ãL3›L+Ðö*q’_vwö›ù^¿ïÛYBþÏÁE³ˆAC»%×^/`Þ°CUŒ^£CˆùjqzqB§½~fͱ<×yêãׄÞ<ººÀµ=Çbc†êÌ  •ÛÏïy'S>ÀÞùiÅwõlIVH¤£ð¬8€7ÖÙ*ö¬M ÙvÜ»x0mç5¥Æêf—´”D70ožâyì­cÛ^ÿ»ìCkÍ[8#WgÎIb¢yBB I;Ð~ýÁ "ì8¿q ·º§®lÌgÕÊÍnø£ƒ‡v*ìšl/‡R LY¢˜Ñ˜ÞXúAqF·*ŪècõJbÈÍ R»Ïíl°Yï^{å[Ï$Bd´§•”×:ë©ó3cVÅÛ—Aë¶½­49!à#dÄ0q$R Üì‚j½ìzÿ’z­PîqL·Uî]›ªº7)ußç¼nõþt?ŠKª±‰¿tóJi^2ÈÊOcR ÌGL€WHÄØ!WB?²é;Ï~±Á{r£«n.2éj‘§Ÿß²²gCa4&ÄlE2óŠ&ëu`ÜÌ<ÝbtŸ†Oœb¢!!Ótpí<]wã{7ªÌi;«å²,µ`7P™í¡DÞGr‚¤©ºC©A÷Šz”TW|j›fiâùn_N±œ/7,~xÈP[м(…w,k#ãb3Ñs°x:÷xŸÊ-ósIõ Ø út¿¶ž>Ô. JÌç~åa6ï÷ VêA§Çu/¶‹ÂØ€¢ñ¹l‹yßGù£²š¿YZLz6‚Å߆}HˆÃƒË‡òb«ˆëÛIÕ·®µùá­‡~¹ˆ@ÚEF—‰·ŠVrX JŒèqÏØ†;N0MWSÄ”iê!y¼Ò€$—%ŒÆX{‚W¼ç„}H¹DäþUë·Û ³µÍÂxøy¨QMCS-üÇwï_ÒÕØüܱsgJÿruÉòã P©œá«RÑÖˆMñ†&\b1]á†Qú É\>1l^³¾€a ëîþa™“< €®Í$m*G•#¤YK‘S{V)4å,•ÎÞP×Û¼Ö‘c³ ³˜+½1Æ4zÜÛÕ–™–®–6—軄Ë]‹;@€D™LR&ÞãÅÌîÍ»'ÓŒB6 ƒitÁø Èº7®Ù¸tªé…]×N×-¿ToñØCîÃNÑ}ƒ® nJ#LŸêY8{‰!;7¿rSÉÖf§Ãid¾á¾­©3%=o™ý÷Z KÌÔ+>ý޲òsà‘ÐÚÁË#ˆ¯Œ¯AåÙ-a¿¡æÎª8qÝèxÔ3*6N?ט“Æf%¢MV;°wKI:~VƒŠë²årQ ^% SD‡L4§bdn.ú<ÃôbQ ÌV\ˆfǾ\4%}î¤ ìÑ“ÇÁŸëzX‘/H*•êž<Õ7zKy8p„å¸ÿ',_¸lâœi³>9{Ø\Xë¼]å½{I#ó©&¦h_L.ÚƒöB~·d]î󦮬9S[ø§»Í&Ê‘J4ï'^û‰r"0ÔÒ:”ä)Üžm_.2³²Êly©öÞo^ä;ÆËü¯Ä{?¹>ñœÀDûg„[oÉ‚õÙY)9mW/Ôè:„;í!Ù{„W—Ϧ±Hxæó§O¿z9ø±`¥ëÊåà÷¿Žßéo\×"JN7VÅU³`2ëee€ç•¦€×ãkXÜj–(«,„ð‚@‚(’KöEèš&U*š„ªèmPä‘sgœcÜ@¬n5«Žæœz¢ †6v ¾|ôø¦¶w"­7¿@v Üž,ˆ O‡&Q’PâFd&“Ї ÙL$ŸËD3Ùl¤ƒÓ®>Þæ+t«N¸E@a)à !él:)J²Û 1$¡$<ÇS:§‰á‚ãç¿ý8™ŒEÆÐ=±Ø[‰^º»Ut üf²W„Zìïñù7¿ðú[§{܈G¯ÑtðÒµ±sßœBðOã‘ð™[@_³L‡º‰w8𠆹·²5 hëìÈgÓ‘coú}bôÔõ+Óßáö²£]wxé™NÅ®¨Îؼ‰Zc+8¸Œ¥:0g—O¤Åe­”B9zUíx¨‚ÝdÞtÔgàGð¶P£€Û_ï¨?à¦ûU™ÚÜ9áìÛÅÖ*Ë›uó6О·¯ö,·&߉ô>ÙÞ@ªÄŒE:@ëÞ>GgMº*­²@ƒw)vŠ5ÄËëæ­å²¶s¥ú¹œ€Wó,°=Úâ¥= ¤ˆyGØ6×@;x<ÞïÍóL­Á¤ù`·ú÷ªço®¦öÀQISà^ë§¶6˜\`ÚÚpt^úÇT³-¾*apL,u>Ô,ÀÚF–Ñ©]|Yex\¨Þ¿}9ëN×ZÀ_ ´s¤À‰¿"pIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/pivoterD.png000066400000000000000000000023711417122252700223660ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<›IDATxÚìVkh[e~Ï-IÓ4mzÃÒVY×Rmg»Íu[t:ØègED;• 6‘"L”©Ñ/?G­:pë·Â¼e´.k©sèÚ²Õ^“¦Išœä$'çâóå¢mQ±ZñO>òÎwÎwÞç{ßç}¾Ã™¦IÿçàrrrVã%/ÞZNµR%›Ù tù€8,,_ËÿGÛœÀp'à—?(®F´¹„FõNKör#ð2° ¸”™{8|lBÙ‡…¿Äá,º]²XI5á[~Oâ9ÚR’GZºÝ@Ð+bÞ èéùþL&núV\‹ÕæjøñOzò¨»¶qýÇUeïy M)#ÒŒËë»ÀÑT,I}Þ(±ø"—’Û+À^Àºâ (1ùçÑ˃g7ßÑv°ã`×õM-ûAê–pÐÈòD2®-eŽÇ@LA°Ïû¢ôöH€Ü~…fã:mpYÉ.ò^dã’ò…çfXæþITyíÝêÖmpºA¡À]¾è<ÿyO'÷K»‹¼ñþxøÔ`té¢Z‡D7RC¡­Qѩш’5c B^œ<Ç‹&Á #i˜×²‚…\eU·=Òuì­Ê5uEZR%¬!‹-ŠB¶OÓKå×&}ßȾé9œŽG£UM„ð,kÁh•@Ьÿ®BFÀѶ¯óäÆí;[%ÉbçxžGpütC×týƒŽ)`Øì[QI™$Jéš¶¨™yâ™ò>xž’¾@\Q9©1™q…Ôxœ•/Ä¢‘pÈ?Ÿ8;~õÊ{¬ MÓ¨‡²—£„<Ë`#“Š!jN,xªrÌA9î·}˜¶…ç5-I2ò’—_€u)Û D6S¬$5±¨¼ÅaϯÓ‹Kà’,–^mà›é¡1©( –VT5ÜûèáckšoHªj:ž²Gse>–Cý´1³¤Çq]WŽ f“™öûf(Yù´V†ycæ|¸?³¤[‘²_`ö"/Ÿ¿§ÚIõVJš¦—;Ø©åžcÈœÌê3žÒ î[•ÓP@+®uXXðì;õ¾ÊûŒÐlÚ€k‹Ï‚MvŽƒfÉÔ8pðð:¥ÛŠ„Û³»f µªßðQÇz|_ÆiÍÜGiŽ@ŽÀ__oW(Ló›€IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/pivoterG.png000066400000000000000000000023371417122252700223730ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì–kLUÇϼö1Ëì²,[¶Ò¢e-]H[*6–Ô(&ÅÄŠMµ4QŒ4!ö‹Vc5’ÆhÕ¨±&Æoš€¶‘~Ð44M,èCŒ´Ø´ZBu Ë>`Ø÷kfv5û‹Â(gYŽÜ@mØ¥f7ε Î!]J"ŠÿeÀbµA‰ÝÇaŠ¢\b=ɺÉTP üðõçÛzOî_î‚2orà&<œM§àw6bQk0š,ëî¨ØÞüÜ˯ݹ¹Æ.Ké¥É /üD]»!R¹‚Ó7‚ó>ƒt6$ÎφðIç½L<4æ÷{Ý¡px§¥n)·¾þÞØ}?V%§Óè“Íø|²îôá¤{|èËÉàÑ@À7AÒ²ä«'ì4®j*=5•# ¼l>Ó cÙûlûw {öUIR ¢‘ üymäKçûNŽür¢£œqÖYõ-¯Ø¥s'Ó:¸Z´ÏÒÐæ´ÂvžM*êqôÜó›ÌÔ¯äôy ¨tm{©®¡ñ‘ÞžË׆/ô_½t*$Î áPz‡…ƒ{J˦ðTï;‹yסb~tЃ‰H*3Aµ ‡¨œ¹7[œT¸"i‰›Ê3¬ÃÀÐã ˜Ö®æR{µÚ;KŒ˜ÕOHêÅ…ŸÁ„”Mµ²ºX3°}¯UÆwo©bÐùqó›«7·ê¸»HŸÛ„,^¿ÚH‰&~ÖúßAœÈ§+u;^*Ì $÷/î“­tO!ßh…‰¼ìÐY3»íTeþ¼¬U¾§µ y9£eÕÂ;aA@AÀÿKÀ? ïc±ëB߉IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/pivoterH.png000066400000000000000000000021201417122252700223620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<òIDATxÚìV]hU>;3;³»Ù™ÝMbÓhL…¶iIj”‹¨PÔJÛ*¥TmèSìƒÒ‘‚úà‹ ¾ø ¥ R¨¡ZÔ€A›,1MMlÓ651iY“&Í&û›ý›™¿;NhZCÜÄH@ràf÷žûÝs¾sï¸,Ë¢Õ4×jl.WÉ*%žÞßVE^ÞEæ?sgÅýG«^”’2°T¹3æž^v7à"0µbHé&õÌäÈÇsthv²³û7€ïSŽa.E6k ß[£Ðžûd;êb€ç€Àq ÌÉÊà4ðÖ¿&0g›‰×éAY¤|Ñ\Hm,+šó^ãd‚•¥uEØ…G7ì¯ Ð³Õ~†ec‘î`:éÎï­9k zhHlFVd#–vÄðˆ]Ä‹v›UpÎ)ÑhÉDɳcóº¦FWíl2[IÐÇPZ£Æ D[ñ]0¬¹2}ì4ÀÑ’ Ê+w=µïÕb¤ç‡³''"£íp'KmÛVhåéõ~°µò0ÜŸÛ—T‚2Yil}óo¶µ<¹áj_÷~joèíú<—IÿRÊüÐÊ‹÷ˤ–×$ê‡kïr4°îØŸ^jÜþØz”ƒ¢cæåÞpøBgû—£×Πð‹MÞ_«€„Âèºe}8Ÿø·s~Lç›Õ¬,X~OÃácïžlhn©ÑÔ ‚›Ü’Dj!O‘áÁØÀùÎo _íNLOdgSSššëš–ÂÜ,c mA/¼T¢ Š×eØúÈŽ·wî9ØZæW*\çfò5L£h†n‹±eq<Ï{¼>źjÅ'+ÿ'6á%Â8*ê:òYRó9Êg3xÍäs`“I%‰ØôäøXä·È`ÿ×\2zξ ·è“ƒå•² ¹EH†ûë„¶L=mÚûçàc H^¯}ÉÝ]:öÍ2Â|sÛÉ%—MÒ*–ÕXCتô¡iêKK[¤BDA,jP yèK‰ØV‚õ5±µ6DI+´Bð’DÚ¤Ú®Ù‹&qÍf³Ù¸;»;³s9§gÒ32]w%ÙŒøÐ3{fvþïÿÏ÷ýg†B—9hð’Ç '@‘‘ë:ke ýóuˆe¬9mQ†ús ÆQPã,_v»uSÝÄÒFü›'ÉÒ™Õ°¤¿~×Å¿²f³´ìu†ãÝ, j8-µŽõƒÁ»O<ø– ‘Ü®` + P±‰û°<ÜÈ•m¥‹V”Öäø$˜¹:ïÍUf) ªa¨ÿùóbmh*?__ew´|äúÄY(íOF‚ ' .ô_òk›ñõ(FB¯Ž©Zé‚§Ì bXît¿|½c %i Â¹5g¨aCCñt÷á=G”ñá7Ú†´é·”ÝBšŠtõ›ˆR–0Yù»ëðþ´çjCË¥1éWŸ²k ¨ÞHÈÔñâF.ñ™‰XR=8{óûÖÍ ä=xªûŠÖ7&ï{$h÷ôõnÿS<é°s7ñy C&"D–؈ý¥í³ KÄØéîóÝÌEŸtÄ7«þN”.'d$ß™T>'”l€î‚…‚dÎ}u`§s¸ãÐã¶ú•¨º´à'<·Ã…±£„ØÏ®7&Ò ÃyOŸ•gpvGÃ‡Ž¡ïŽÞúöý×ÐúŠÂ!ަÜx~5Æ Œb˜39€6›7CpúÃûÏïjÿø=T»¼äá2[‡çª0*Iæv“í¨l ° T¼ž×{úd³` ¡ýÚ]Á÷$µ[ÕžO“v›6æÑåØçËÖ3ØŸ}Óòø?=û[Ÿö×L|_DL{²×Ð<[lN¶lÙ¶ªÖ¹ÚFHêà:Z¿¬#±]ÁðÌ¡p*u™ØK"<+£ÔŽ•®šÞªßkl¯w5¹ìˆÿá|Ç…‚ÁPðÜTJ8C²•Hözpdž ±s. Ð Í3¥•ÎæÆ·7õÎŒ‡Ý.÷Ž}µòÁ`DL|A¼nÎ\}Æã‹!$¦ÌQ^X½jýÑ ëjã=½îëaïø´Û«!(å+ºù˜³ŒTh»]É$zstļDTŠ5)PIOWÔ|ƒ?O„TRRéh4¾0ð‡€¨BÉa«ÜXÈ-1½Xh„Lރͱ¿£é°SQ0úÀ lsˆÔ2†âš*øªíXç¦ÒÞæ„]ôGE.  ?n<„)yD•@PEéwxgD„³ÃDx‹™È\:bCÎÁUW$µ)^‚QŠX‘"e !ªÿîiùi šl$<Ñ×5“øÌ„–-ž æ€L¾VM $ÐLçÈÒ%ÈØ Ì»2‹Ô k¹þw_Çÿ0+ô‚˜¼ŠçIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/plumb.png000066400000000000000000000030041417122252700217030ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<–IDATxÚÄW}Lg¿»ž¥€ £(‚:¿Pã¶øEóÛÿ™ËÈæ¶D“M7ušæâbœ·ø±lCÅ%š…ø-ê&ÚªSÀ æ(¢¸: -Z(íµ½ö®×ûÚûÖ÷È­–‚ ‹—üÒ»{ß{Ÿßó{ž÷yŸâ²,c/ò"°|‘} àà‚?Ê#ú…rÉò ÊIh”øûháËuŸeæ€û!ˆ0ÈýÿÜç7¼“Ù—*ýžcb‘A#AD’ÿÖë•|{-…ع§WU$HUXŸ€ã‚’VG«±¶( `XFñùÚ4. {UâÂ)J€(˜½.CðÅ‰]‡zNòìâ%¶'L5ãCû@Åp¤ ßWÏø XáFkç,¥EkšG4_C‹„Æ[ñúÙ}ýt ¸ªW”úݪNX‹ äˆ *&ýv¿ªƒKýŸë· •Æ‚Ty ª0¨Nÿ`ySåû7{ûIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/point.png000066400000000000000000000007021417122252700217170ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<TIDATxÚbüÿÿ?Ã@&†£uÀ¨F0à`!G#À˜P ÿ¡˜á? å; 9–[f˰²s¦121mcü÷÷ϺÏï_ν¸{é ’¿@%ÿˆu#)•Ìr6NžGØäß<¾¥~íðú‡@æ &Ê$‡Èç ÚÍÉŽA_G ,vñÊ5†]û1ð‹Ê€ä¡Qñ‰ì@²\\LŒaafc÷Rì &RÚ ®@qŽS"Ç 5—&`%8X°¿|õŒAløõýË’5‰‰Iß5Z×w±Éß;¿ßêÉõS·Ì¯@ühö?ªçP:Ô² 9" çÀ`ùüÙíóK–߇YÄ¿‰Éä8€ š{Øü…Zü‹”lÈHj£ÉÌH ŽšíþB1m "ZÅŒ£ÍòQŒ:`Ôí€ý½›Ô“5q©IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/properties_panel.png000066400000000000000000000020761417122252700241470ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<àIDATxÚìWÏoE™Ýµ»µÇqÄ@§-UBPE U ªJU©$zꡉ„8–\9òpUJ(‘‡¢"¨R„Ô¤RÔ>Ô-jbµ©íljc¯×öîübÆx[·jŒcZ"DGzÚ•gvÞ›ï{ßÌrÎÁN6v¸í¸µ^'„pgüÃö(õüß«@NŠïSàéW» §ÅÇNõB`½*h"ò¥ µÇÔG€ÿÔPëÁöþC½À¾ÍìÕ¶³ÓÙ'‡\píÖ€ûýaФ¼Óé÷V½þg™ £’»¢ÿ± pB.ÉÝú©ý¨go+ïðÀ·mªb3þÛ¼\S›'Ÿ„`u.—$?Ü­„z|èÝP‹òÕZÍäªqay£4Í ØG?fÀ‡ÞkÍã„Þ­«PêÊK>—zô¹6Ÿ+Eö|;w;}þÓŸr·Ò&³®„L8>>>³»W+Ÿp¨†‚¸Í£ŒB²m[aØÒ\K¡ãlWûþWŒ+ëú”íÎ#„¸„0v…prròÍGF`bbbô)#€Ó°Í$()@p|øÉ×?£ÈņŸÙ=ò€Ž¾_¿œYˆ}53/?ñ¼Ü©¿0Üu®³ÿy]ÑÛ¿HÞ\øljî†4­®žÍl;L¬ž`*VŠQ¦öÍ%ɘâ¡ðž·Þ;vl:gÚ³s‘ë$¨ë!ÝÛ‡ýS¹’½Käªäl{;!ã9­DU€¹ (eð÷ +™ÈÓo’8ù†yydpôhðÄÈk®|!Ò¦ð®@W‹©®Þùc-²²i­Èë¹äœTDùÇ•Í)a7=šv)g±Ìzq5Ï^÷öžé ì=äB¨×,g-eáÊõøJ=ò­HcJbAÊ%¨-lE¡ #‰ÄĸhQvÍ¢ÜÊY©âÍõâ‘noàõÁ¡!•{;f×ÖÒ³ßý2_jê0’+ç¢b.0 (UUåŠäÄ0ªäíò¢2m` h[)©­=(ymq)î˜n[¸³êÈ@~ (Šœ°ì”1å•HyILõC¦T8[L‡ÝÁLbqùnùïÈ #A+øËÈ÷R`ÕnNÂ1„0Åž_+™/F¢ËW73¤92ü€Þ7¤ðSu#‘jìš3ÞÆ¬\°@ùB¾Ï­ÞHgp‚5w!©”Ÿ~?c²Ú‹q¶¹s@a‰­3\íãÍ h¬9“;5Žj~gU4$ á³ ®q>T/0 ßñ³àq߈þ{×røôŸÑSÿ{ 0 B'ú²íš°IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/quadric.png000066400000000000000000000026311417122252700222210ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<+IDATxÚìWkL\EžûØû„]äa„Æh´VÒDÚFjR ÚÒ•²I£˜þÁDZ𭱉?5ÿµ‘V©b Ii‹Bi!RT„¤A m°J­K[P`—ewÙ½{_ãÌí ¹ìƒ-¿HŒ“œÜ{çž;ç;gÎùÎ\BÖr°`ÇÿÖ¿e |IÄõ3d9“© ¼Þ'–9„në´ÕUxFˆ '»ÚºH—@T?_]e±[X–}ܵÞôw´tô¥ÃgòØ{лd\›c™ÚÇŠsª:ÏTX%QEQo_‘Ù± pé¾ß‡àa€—(èYMÁg7K7½Ñ¤Í7¿Û FgןŸSad‡ €õv;æÚu1`tkF""‘Að+çŽÙïê*)¾5à›‹ÁÀ:;“Ö€öTºuÙ¼o~SçÈva Á§óüøÑúœÚ'*ކ~#óPó†1.^¸î‡C8¬HÔÉž\·=¢tÞ`4<­×ÝÂþ *+Œ¯.ŠÒ=*349i$R•!Àïy|ëpë—×"£Ã‚˜Ÿ /%d$µ¢Û‘E*Ñp´E–å郞#œ(—îVCÓþ¦Ãh* ‰‰8~7yq$¨Iï§ÞôÞj{=øénÜtÿš+Cò’"$ùH²‘ØÈ‚f²¨™<ÛÈ{¬Wôu]ö±ÑÆBØîq†UXÈ<Ö1h9Â{ÎÈÀ=Ó—ûœí×Ä_HmCs2’ñ{%Ïq"¢î>FÞkÑùlL91r/9Œf{\æž"`±q.-1"l¿<> î„ÕþP\]Ð-LJ(b8‘´}Ô üŒóB¢ßtýþgº/Z…@Ù­ÄøŠX!*nŸSA8Gˆ÷"-#œx™Ø¼§@Äëóì â,’ÂÃ%±”B™‰Hð ÊM²L$£ñ äS?]ý]6ç¢pK6(€¤2Dtº³ÛàB;¶½;À”õÝ(»Oö~ÕÛMJh5C+¹ÆZOITâAX\æhj"²Ø,/Nб%T×ÏØœ6ìÉyòá=ƒ¨{©nºVçk‡QJš+Ê„íåâ¶ÁîÁ‹éÚ1d9ÖCé”R*Çs5,GˆêÞ:'škÃZè¶¹ ÜÏaò"’DD+yg¤Ù› ¥r­%8c4«)ƒb{|Rî v‹QëéT J6£Å£PÏ纾¯ß[Íø£¥›³VÀ(É•ž@!ghO—§e`˜5>XS¶÷=¾ •„%§Ëy€n,IÒÇ­ýÔxó;Í»G}ßµ>âCËúˆ"+ßê$Hg, µÙm*È»?ëW²8K£•wpë6.ȇc’Y(Xö‘Ê\(3mùЕíÞl6™*f#Uߟý1{ÊpCÍÛ”ãsæ9K4gPŸ…OzN÷ô2SS uj ün)²”×sÀà5sÖÊÒò“z>ëgS¾póÆ_À/ÞqzH†ñs‹rð !1Jщ€Æ¢|*Á­’¦S0½Únår{ͬ}g)È?Õ¦¶ŸkõËPò)PW 2"ÁèÏ€ŸˆÄɺK‡’´g„H‰˜< žÌ z]|>@9ð²®’¨’®Y‰zÏ3Ét‘ô Æ"±ÖÁ*„€,É]è|ÐF:%ÔÕ¸¬!ÓÒK¤òŒ§â„£8m"œžÏx„Pt×´Gtf5?§kò_ðŸÿ5ûW€ Ä®ÆjèFIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ray.png000066400000000000000000000017721417122252700213710ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ŒIDATxÚäW]HSQ¿»›ù⃙$i¤Fa˜­¨èƒ¾¬¨×BŠè%³O²—¨ J‚ÊH¢ˆè¡}°LKrI:ÊÂíºÝÍ霛¥Sç>oç\Î¥ëíZkÞÜC~ܳíÜûûßÿãžá,Ëbñç¡XH2Œ¸@Ä8rœwÆ>B,9ä¡n¿Tx÷ÈEÌ”Ðb¡ÈëÎÝØ›„Qº!›m鱕ÛuH©øG1†W’ÇÓê›Õ^‡û¬…6c¶±ÑÆöAc%Äå*CH^v°,›J *À´DÇÂlÓÎì’âÀ€»ÔÒ?¶ºGn7[ºëÀr?À4€O<¹J£²Kýžfò{™¡¡3z;Ó>ÎðäPˆl!€;‡×MÛ´XѪB/¬¥©s¤^é;˜.h9"†"!¹’äl’gferà…(“ÕkÑ:¿H@X!S}+p 'ÿ°|Áœˆ€ð³ JŒ¼váÔrW`<ö89Û‹Ð8‡Ã7é{#´'çžK ëûqÍ•­Êpà‰Ñð5Eφ$×>´³6 /Ô8#1·bDí¦ž×^­òO¸«iš&}ÎwŒÓs'«`ñ.M’F‹vÞl§íõ€œA™D-øçó¢u@oòОÍIvlx06Ü_n6Û°Þ~×½F]O-z8D!€àC±ŸeÔ„Évýò‰¼üœÌÃ6ºˆf†§ –‘ª¶ÏÖaÂÏg‘Ï)@ÔRù7ù°æ¼6YÍ>´RŒŒkàí8ÙmfµÂ,çÈxW0V‚ì¼j_q¶FEU¨¶g‚¡†ÜÕë0µš=m³˜ISŸûýÛNkåˆÛûíX²Ä¢ ­pOž¨VJ¶T¯‚ñv?jhë­K–XL'"¸sx]_²+X–Ç}gb¬˜î£›òx[ù}d±e6¿ërù¯êZÜŠq‚À÷à $OOKåÀ IÕPy¢–êãwk›¡©ˆÀ¹×(þÛ{ü"Ûc"žóT G^ò¶{ƾq€s8ƧÍ‚šΗ\* ‰£[Vä.ÉH´J-nè´mìb\&0€€{Ãó>Kˆ«¶ØÃ¥ù¹9‹*TJr7 Éøtàu§ÙYßÑ;Ú~ŸDöYN3R”ðШB}C™ïµÜ¢ ~Í"ðy´VYÈ£mŸàÄœ-UVÿÕŸÓ¸ ø!ÀÝ æCxXàîIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/ray3D.png000066400000000000000000000017421417122252700215550ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<„IDATxÚìW[HSaÿÎÎ.nä5³´F#‹ŒD0 Š.C0ËÈŠz¬"ê!³|i½D>¥e‘D!ÑC/ú YvóBm„†óìr¶¹9§Ž¥®©»ïô}ó;p\ÇZë }ðãüwÎ7~¿ÿõœ`¬ä"VZ€xY½…kE"€‰Dh!â˜h™Èäö¹KEwO¦ !E-yË5Í‘ î³96žÝ^Ö‹‚¦€“ct%Y<Õ4h|N×Uš2Û”»½gÔRë™ŸÏæ€È÷:ž/‘¥Õ@³¦˜`bÑŽJ•ª$dŸØCX£ÏDc=Ô·9„_,¹L®pð=Ïq8|æ1ǃî?,9"X"ÏÑU]qÇïéAwg°g):uý´Þ cb$"ªÉ…°ƒ8yÞÚuq°BäŠÌx_0A@T,P‹¡Eþf{#ˆ#ƒégÄ´y«þâwØ›C9‰xØÁ‚ã 6rynö57ì,yÊ“ÛßoTH#¡'Ãú¯YºÀÞýzmŸÚi5¡äCz g,åQŒÉQ¸%Ï›oÖ½™¢H½mòÎ=}§@Y\©HÏPcÏ»&ªuÔb4cr…0Ã!MZ'ß䉪òŒc÷>˜©6™lÀ`wßkïºç;B#„áǹ_þ¤p‹­áúyUaAÞ —•ÚFÑ®y==^÷~Àò&0‚Á aíEäK H©ìŒ|ØT¯ÎLcžÒú¬a³Ûþ…r^0»Ì¸ª¹U'Ã`£²Ÿ òºª’|…TR#½GÚ”¥;\Î\¶Ñ&Òhõ||«µÔŽ{|3ØcÞûã/"–<=MÊ;R}R 0Œxµ}04%ó¶XJ_DÈstÝUV 6oRÅïÍÐûIæ<¾nHÞŒCìÇ3õ:‚£üGm•8Š ‘ˆ8Š D¾:';VH¶\¢J©~ÖsÔÛL C%1,¿üO0!ì)/‰Æ^²aÿ65²ÑòÎ…º8=þ[r¾")ߪܛnáÛܦ³í×Òn#4¿£ÀÿF=àþ—œÜ]¨\Ÿ»ªF&%£”xý¡WŸÍ“­ýÆ +|>Ë7R… µ>exî\ùÁTÛ-é“÷5‹ÁÖIŒ3Z!OvœƒÄ’#õŸ=þðC€"ý§‰ ­—IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/reculer.png000066400000000000000000000007431417122252700222340ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<…IDATxÚbüÿÿ?Ã@&†,Ä(Zi+ƒMØŠAࣀðÃO¨ãÀˆó¡lnl Zàì@̉Ħ{øƒ=´!%ø7ÐàAb³ÒÛ Ë…¡ìo@|—Þ`Còõo þDoüGJùŒ”DåÎ#˪$šËÄ¢Ô¬ ü¡†®âKЬǀ”CÙ|@œÍ¢}Ô —@œÄ“8 ˆe‘,ýÄ@ìµ´ˆU€ø55C`DZ+ñv VG*À8ˆ•ø>O vuüˆ÷±´îA’ùÞ‰Š¢S´È P¸M„C÷#EUpê3|†Ÿâõ´,Vñr ‡âG´tÀ1 ¾ŒCîï uIøˆñw,r'Èi˜’SoÂ’Ê?AF—ºÔçø/’Ø!hÙ@·Êh+Ô! ðˆOñ3z:`4A2@åOB³È!Ç µãšwNñ$Æ.´ª™d`§R9RÂwIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/reculer2.png000066400000000000000000000013431417122252700223130ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<…IDATxÚì—ËkÔ@Ç3“d³Ût+ë¡*zèAP*(¨(õâ ñà ñ¤àA/Úúôß(ô¤=ˆoJ©ˆhAÑUk}ЃÐZ,nÛmw·™‡ß‘_ ,«nÝÌJÁ$!™ùæ÷œaZk§™q»oS£Ç[Á.º~ >Õ¿pvôËoçõœÖÆp0𵑀?V˜¡[ù˜;ÿx¬zñ÷ŒpÚfÁø˜v%4oŒÓB»é/«äï^º7‚^€²,˜/)—ÈČę˜péÏ?ÛJC³È+ðíÖ3åù1¹ËZø@VÈ5p§Yø}"8­˜ïéã–10ÙŽJ8ñÓL{ši LSªi®Þ(WV€“ZÔM6‰>øÄümžtÅ%²ÑH8—/‹„¤¿!)Lw×·—)¾Ÿ+Î5SJz2ô–½{®ðK°Lú.ÈTƒ˜< *ÙWð@ºb†)– *Á®Ü›øû^¸Ä‰IM@bÒ>p.xT +—KݳŅBi@øb˜i¶¯¶„&ê÷QÄßÐ\ßR¾x¦\5Qƒ”‚ÇÁF››ÒòÜ£EÄÁ(W›K‘ÊÔ‚2„tQA²bãÔ" ?j‚Mzâm8·æ{®žV\íÀóç´IµfÓGaö+¹ùΞl9|€ ÜŽè8O–¹K}šs½†t'˜dǨ -€‹à¡íƒ‰¦v{ˆv=k©Ó Y­d² 5Râ³;ÞIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/reculer3.png000066400000000000000000000017271417122252700223220ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<yIDATxÚÄWKhSAy/yùÕ4釢üBEPu¡Ò…((H7Eq'¸u­‚èÆ¸pãB÷.ܸ¥ÅO­¶(*"«•Òªi›&¯ù¼ïx®ÜBí'm’—:pÈãÍ$÷̹wÎH¥”øŸ#´–Eº7¯4µØøÀðv¹Eçž×G ÂØ ôða%u+àë޲說ť’íL Yim]’Ó-ËåDÁµâ¥²æk¶’Ê¥wÉ)¬•ˆçš–¼Ó<]øš§ÃŽSDÝ—N"Ÿñ|“PB '¥©£aËèmʦv+Í/kžfÅÍ »¼û9ð,$ÇyH~#d‡Ó!'l¡"Àvbî0ÜHg›JúʉZïì¨mêŽ3¬È6Ý ÷`nÐ ”A@.a· ;â\-¤Ì'â“JLF ±¾T¦í”¯ù{°æð pWûA­ŠàTÛ[€VTûˆ•( 8†SBîIv5A¹¿CÏÀIþA˜_O*ä„T‹%¦Ò·(\ àœÿ yÇð™EÕï7 ±ƒPÀv Ç‚)˜x×¹3Lä à/HlG† )íHO»‡pݰŒ+b¶ỉÚeéé(ÂN܆e§ºrsíÓ ;õ°ce6ìÈÓïû!¯UóõËÑb¢#RŠ•„’1©4¨\„Iåò­3ä”0+U?HI9Ýh¦sÔÖ2‰Ùä-›À è…Æ]p¾qŠãwáŽÏÍ–¬(&ç$ª6ô™”Žz!Uô‰bóÜ(Îÿ{Pú ¼ ù±yq&tOè…Ý~rÍB*ßBGðAÀ Ê ¤à1Xl6ûPjøU}‘à‡½RE&DÁó]¡¿Òî«!@íö1pè‘.®ô66€ØŠ–Ô‰çÃ|¿ƒrBêFßaª¾ˆÐî @ØÇ>QâõìN N8° @‰w/yÇ+Es¿€ïü 2”+8ƤúVË}­V<ǹÏW Qd¥ìFPÜåò\ ‹SDA©)ÍVÓ\ª?¸º•ø÷öâôg&»³³·$›¬H$j“â iiSJQŒú¤ˆ H U[¡B¡à“(­/ö¥Ø>ú¦íCD…V#^P¼AÁâ‹1‘‚¹šËÞf/³;{úý³3Ù!/™¾=Î99ÿþë.„`nèÒ¶nsäÍ©`µÅ¿þ%Æ>íËÇï\+1—$A´$â ^‡ 1\°p˜æÌ}Ø#9Õüjq»qãÜšåë-Äòl.¶T!]¬åJW¡uh ¶ÒL¾)Õ›•£™È±N-ùä¬%¥péãjU);uy î6Þ¬¤! \ö’©¹uU¸€Õ¹yÎ}`ˆŒôÁÄCcÀ¢_I¸)²K-z(‰¦Éw¿eM^’ d!åÞ%çŸN'âôß]ùT¦;Ûù¬Ðim€Fý¶À>Îq]]®þ4Ï\Dä‡ 44_ºZi©žáMStŸ]î©×p]6Õ$#Ì…Ä Ü„ ¥Fx3ü»‚P ·œ‚÷ ×uÓ…ŸŠ,äžfbÅ  7£]©…ˆWÔ 5¹VÊ ]íTÃ? ¾¬Àƒ ‚PÅðØJ¦†É+óÑÜ4­u«# ¼>Fæ}-D v ¸Aép-¤ ò{)¹\2À×@Þw˜5^ðHÁAàÅ" 6ÁXsw%!íÄž'’àþ×[ý¦°¸aÉJ”ÍÄ–ÎâÖ‡(ðåº4¼ºÐ~2§h¬ ”¥ãžg¯ýíÙHÁT8«h}S‰Eœ.&-“M-©´.úñ3îhRþ)óÚí~°QïyÈÑþW'1WÆø›—Rܼùÿ²Å—­q;@ }åõ0×AhHu“ðý=@_#Œ€§‡‰ý8ñÕ=Ù´ipC2X^)ÝB ˆV•œ.× ·“å‹ÔB,tgìFǾÀMÏaÜŒÔ㠥̟C6œÂxÏˋȫ >nãÏÏQ ¹‚Vúk7¸€^eÀ@‚Öy}|6™ERZk5ÐŒúÀ‡±~øÈm5ôÒŒv[Õ‹æ"ÚÀDjæÒÛÔìpVÕPýF¬}ëýAtÃÁfùd¿Cú"&ä”"¤Ÿ{·áÕføó­å(“’ü9iÓ^JP8,8ö†‚Pà­ÍÀÿ;cõÁºÅ.³¶•bæœcïT.¸î¨ñ'÷ß"ø:ÒZ[ EèæN;ö^ B1Ç“›2âÈfD߃ßÿG­ù Ë {mF^?ÍV’lÊ• n?Íþ`€Lšî-§¾IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/rename.png000066400000000000000000000032271417122252700220420ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<)IDATxÚÄWyLGŸÝ÷ö-ër¨€ QSŸP¬'1HQ@mSiÀ¦‡µj-¶j›Ój›¶‰6%i­ÖØPÒË6±$„(VCKA RDP¡”'‡È¡ÊCx÷n¿yù–ŽËCþÑM~™ÙÙ™ùîßÌr²,“ÿóÑŽf2Òe†ÝÈc´DûÍï“­†éS¡]>%xÕ{  0ˆL@eujZ÷ääU\¶êÓðî…s4c ¯²0 p0 fÊ˨ 7·|*èÄÍýWrgó¥u0æƒJh=3rÐý?¶ kÇ ¨B‰‹Ò³ê»É©3ÕæžÛÍq†q ¬LG§ÆNA`àsÀ[€£(@£Ñù¤–4SuѾñQñDÔû?…žT¹1æP’ênf–ۼí“o½øhWÇßE—+ަ>ñl_@pôRF1…W w¡wf„;³ç/H^Þ}×Jzn^3¤¿²u€¯Ð•È*0Ú0 –! ®•P¶Ï :ÿUûä’¦ºS¤Õôç\Ë@¿Ù>QÐéi‚–'Ý öq˜èw´Ô¾€^À4ZšÛwç,Ýúi©aüÞc±Jf¥>·«7lR,gÄò ø1a¡æÔ2XxbB%Y®£/pyYÞ^"¹œ´$­˜š ?ÒÝG2^z¯ %%å¶Fë%•Ÿo*8¼oõ×èNñÊ¢âʲü£Ý eÿ?˜aañ¹f«C çËó+z-ú;i©I™½}ýÙ1±‹4WJr”0BHäáB¡†rYZ–kʪb’TÆqÁI¼íIGn˜Îp“BwÕwut4÷´#?(9ä‘B2`,y|w¡+Øw×¼Nåð¨idÆüsR’çq‰‰‹×´þpÂl·öŸe¸AÙCÉaÄ႞ (f¬w¢Un¾p8eÒÖROº:êÖ˜fù&Ñ ^fÑË7¾W1äÄ=´ P0Õúe@àml)+ŽÃÊÐá<ª¸ÿgßTœŽžžDÇÓÊ™½|Åëß×N{ìIÙ/pB*ŒE‚0OU¡f®{€#€çžñd…ÞK ãÆOUøBjk¬l¬ÿª…ð!‹L;„¬´*÷Sw/tâ·< ï1ɧ@¶Øœòdc2©,Éu»pë¶ÝÆ€àÈ•}w;ÈÚ ;¾ ›ADQì½XÛyÌt¹4÷lÑÁsLÈ%7ùQ7 B<ºI«>ŒÕ.&8®ÏÜôÝqÓ¥“Iû™™´†Ø­}¤²øK >ÖîNÓ²Kj6GÎ’$) ¾í¾ÝV— ëìÊ^jÜä23mU¤·!h=¯Õe@8—ÃVÐÓÑüm}Ea+C·t®Î8/3¡³¥:L–]¢,ÉÂú [öœ(.n¼Zœ5`9!QS $> ÔoðnÃ=œC<0/ýµ/C‹§d½ÕR;ý¯3…Í ³i0)il½×m|ÎÔ¸¤üìoimGAT +”1Âí–dÑÛo=hC–,N"ñ±F÷`õ•ZRôûi8~r¼îÀ„s2aq{Ï?8\ouðà4é*ÒµUñ3_bÚ¡W2Ž×¬ *<,4Ø EN|­Õ0'¥cjç5Þ_"z´Ø‚Jذu°Âe¦öÿ¥`ɃS3Á{ÈúÁÈ‘(0âg¸ ïhþ¢ÿ`Ÿ±ý‘¼µIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/save.png000066400000000000000000000020611417122252700215240ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÃIDATxÚìW=hA~»wjÔ ¤DÄ@ ATmü‰øƒD´³ˆ‚¢©$˜"`a£ ¨ˆ©b°F…€ü/4FÄ“c¼_ßÌÍ^f×ÜÝæ Ódá13»só¾÷½¿9O)3ùø0ÃÏ,€M³ÉÃGV"Ð^ŠŸF.í\©DÔgS*×J3vÖ®ÓV¸F•ÝpþpgÌÚ3—ö3s‚,± àòjýSG¦t¡{¨¿'|Ùûð¸wjz[Û@!‘ÀC- ]”ÿhPpw•5Æ·"ŠÈ½í€ÕoãBÁ“+µ°õÜgð!ï2/Ý-ÇïÇÖ­{AØ=Z9É̱Ìú¥²@ÌJzÝ@GWƒà$wBÏnikb­gh=£²àŒ #Žq¾“ÎE³`Êâ41Æ@0TÀ\¼»Nî|Q2ò·X9Œ‡T…È+–ßdB_sÁÑÊæ[«€ Åã£Ì(ÑAªGp3šDëY(+«„RðØzôŠ$C%Y8ñ¾äÁë¶Ô˜ ƒ p2†¾&àù>l:Ñ O.¯À·h½¶J+×{68`‘tqÍÍG^AÝêêÊàtt úÙ æñOXs¨îtI12TyåpÍGãµ éÊ~„˜¤ÁÏô7Vª,²àÁ›Îc†bŒ§¡g—µ+×BݪXVWU¨,@Ë0P´KÌ7…Ò×¾ÛÔs Ñþ3 ìùZ¹ËŠa2Ô«* BÏÆ·î£s:ìmùdLäGŠÙ˜LvFå´éâÉý›Š¨Ü)­¦¡Ÿ åVƒQ¦E –|Ï&m£b˯LÅÍÄÖ׺×é]}…u¹B”oF2jÇ›£VìܦP GÐ\¢.äàêƒ:“’…h8Å9…¾Ž=™»ßQ|Ç`[Ó@½Æo•q;×Ê'쀻.ðÜvcÝ0æyÝùëS÷ÙißïPù6DV!M´ßÐaAD’$Ý­æ¡,DY„²À®3)®^®µsÇïÜJÉ+Yt‰Üh÷”ù•YÅ®rUêRšd Ò è?—Ϥ¥EÓ=ùß°Â+xÙëwj³Íþ÷óW€I‡~òÈl¡ÐIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/savedis.png000066400000000000000000000020251417122252700222240ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<§IDATxÚìWMHQ>3ïi¿7mZ(<(“À¢U?ôCh›~HhaPR¶á-¤$ÕBWJ‹—¡@2!ôc-"‚l#æ&ósïÜ;{çÎ83¾ç_/çÝy÷Ýóï|çÜ«æº.läÐaƒÇ&€ N²HÃá,4G“jwcªO'tî;N)óß•®2®Œáv< "4UùѹÁwC³^8ÌÓ``,90;MJþøÙÛƒ-ø hD€H' [XÅÄ›¸ù`ü¢­1^7€ÜÿPê‚C\°-ͱ]¸{u.µWƒ@Þ÷!ˆ+j_¢ØXÍ@º…UÚ& ÖQâªõçs‘ÚîŸνï-tNÍ€ím"hŽòáK>ó}dpúCoäåèxaz»úš% [FîEÏVÛä@Ì Ø ŒÏ*/@ KÍLöC]ósœ¸0Ö]GnÿDßB¦ngy 8d „õt ëxöë‡C KÌZ•ç×y1Ú Ú»Ï(ziÝÌ…)`ä6¹4² ÁçÜeÉ€%7Œ–¡¦¦5{ë!S[»3[ƒ>@m¤EO6Žõæ¢åûeZ"ÿQ˜Ú_8³"™´½]–5É܆‡¨iÓŒPkDä+šPM«…R>ƒc¹$f«K‡Z«lDâ0Êö4Ig„…yg—eëKk]ˆ1™?n€'òÁ¼T#ò#îÇwÔqÌBwƒ¢$BFŒX_0àñ«Œ¬Nm œàgùþ“ªÜï¾£p´}*«¢õ#¦ÊLõŒ° …oHx @•¿>å~ ßZ÷½ w©„œúÇ/ ]H$ þ…$@WǦPÔv´-j^ê膜eNŒrw^(þF$t{I%ÀC¿¥1çë¾”òP®’^@W]>ã‘-÷øš¼‚41€ÍÍþ÷ø+À`žP"bÃ@IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/segment.png000066400000000000000000000016411417122252700222330ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<3IDATxÚìW_HSQ¿÷ls²uF3%B0ËèB>ù䃭Àzˆ‚þÐSôV˜Td/½YB„aceIPaXÎÈ ÚK¶&’ºùÿ3ææîÜînß¹|׎כޭ[¾xàÇ=Û¾{~ß÷ïû3^–en3á6yl9°éXÍ^‡¡NtÈNÖT½Õlòº3u;mù¶ó„“ÀÅg¤LGt>Úêïôƒ‰&Ö Þ¬6TÉí{Xï÷éðôÞ>__¦iÀЦf€FNŸ‡Ž¸9áÀ~å»þï\÷[çt9éo·p+2ÿ¢ $áPr×—Õ«Ízv€…© sb¢dSþ½°ž’Ö« ¯,|õ\}±³¢„|™VÒ.  Ó!ÆÅ.Ý5r-B$§ÑXz\«Jó½½÷5ÎîÖµúƒµ¡@h¦q@x39g€!·}õÜ©w‘è£`ûÝ¢ÛŸâ£Ã|´É%TÖ: nj›ˆ%ºÆÇÚÂ?Â#”˜¶¢ª 9eÉé^ÚÚï5™¡›Ý/½–ÖþEßP$Õ_Î$˜JO#é2õç«Ú*“!à^+Q_<}l[ßÓ–öžëgå ÕÛåJgþ}ø¾ P (”\€b@ÀÈS;€]×P˜b³>lºQ!ì*{ìì<_¾-æ&ÅnŒLDÐHS˜™y®‘b]4zNÔbó67»!œ¶OÚŠ^ކ&cñK ¢8„d¢&Í’Zhë§u€ÕsUXÒËéW'„Ü#*]~óü…Å?êcW’R*‚û»&rÙ`q­r`#=Ÿ{?ÉÌŽµ.$#Íb?§³!×mÃõôœßc÷-ŒGZ°•hº—˜¨Ó¸ÅYµ•VŠyzŒþIÏ K +Ð.‰$ÔÈé~Ë9¨ÑÙ~ƒw’Ú´)6ÃW2zPÓ>35£`EÏcâ;¦ÒSÙî·‘"$5GkÊ%ΟzÆÏƒ «TÏ£ÔxWúë“TÛ´«ÝÕåôg8OO²p0ìÃd>Ç0ý)ل딞»#¹@pXùÉ\Û-+!R•¹@p(§Âr£R¼áÕÚt¶þšýÏñK€v¿ÔyGIã²IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/segment3D.png000066400000000000000000000016261417122252700224250ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<8IDATxÚbüÿÿ?Ã@&†£p°PÛ@F €1¡þC1ôTÏBmËüÂdXÙ9Ò˜˜˜‚v1þû÷wݧwoçžÚ·ý PÉ_ ’ÈŽ`¤V6„YÎÎÉõ›ü˧Ô/Ù÷ÈüÄpGP5@>ÑNî Úúú`±«/2ìÛ¹ƒAPD $׊´H„LÀ@1@–‹‰K€1Ì!,¬¬þ@Šˆ™‘Òu´˜ šÿñ)ƒZ΄ì*¤x°Áe1îB‚ª L®A‚âq~|ûº «ä&B¨å ß0ïŸV©¡#αâéEšå¯l±ª¿qþ”ÍÃ[×n™_ø'ÐÞd;ÉrÖó‹:ÜÅ?-¸·aº@ó©¯î±ò7‰©ZÚpñò9Ô~ÿúe×ã;7—<º}ý.ûd9ÿ†å’µ—¬W–O,ezq»nïºÌs¯}Þwûóïò¯¿þ}GJé þ¹ÊFɆ ’‰( k°¯3‚}…/,¶zqÄÿt-ÑÿªüS€â@¬ Ä @,Äb@,Ä|@ÌÄl°€l.Q!€”ØXf×W+ëÈJ­º±yβ³—¾]{ÿ¹ôé×{¡>ûÅà`††Â$£(Æê´òœ –ØVôOtâc`\rhÉ2-î<|öõkö»ßoC-ûÌa ¯çЀ\žÃ –?¿m0Ñcàúô¯hëšu̧^Ü?üæÇç⟀Æ/†Ïÿ™¸P@¨<sô,Ãý×ç¾ûù¡ÍâPþR,ÇZá+ÏE÷½{ry(x¡Áý É× QLR¶B/ŠAÕ(®òœ_LRªî'Ôßa>Å÷2 &,QÂH@ÏOô`'&±Ý$5 `Áþêå 0†—ç_¿ìFJé¿Iob!“™“§‚ ¨ø]lН9îøøîMPyþ ä Þ¿פ蹔 lœ@ hΪÉݾ± X™Üò¿@ƒÿ÷*4§°9Z·ƒ‹NX‚šò’›ÝH*ˆ`%R‚Zœþ…bªXNlQL°iMuŒvÍè  !Ùp¥@?EIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/select.png000066400000000000000000000026271417122252700220550ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ŠiTXtXML:com.adobe.xmp ~˜£IDATxÚbüÿÿ?Ã@&†£uÀ¨Ü,ø$Wn¹ùÿûß Wn½e8pâÙMñŒ ñK/þÿûï?ýGž|Cÿýû/'+Ãû?v¼Ï°y8#Y8{å%ÃÞ#wžßÞÌðóëK HˆNEã+h]¥óDI-:!$ QØZç.$îT$®ÿ¬WläÐ2É/3;ïÍìÌË(Û¶=šáyÒÞ"Á{/ùŠw†é>ñgÈ„r#tyTQTérÔÏ €,äPB5ý‹ `¬{h네¬J`‚8–hÁÔ Œ‘F!LupVù9ëCšhb#«?ä<§Pdè‡èâ(W÷ÉøZI’~éFXÉMöÿ•zŽºìÖÇé¶’[4ÐÁ7»Zά~rnN¹¿Õ ¼É‹_©PŸkù†IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/setbreak.png000066400000000000000000000020331417122252700223650ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<­IDATxÚÄWËkAÿfw“ÖT[¬Rñ…‚xPA*âEñä]ð?ðâAü|ÜD/‚G<‰E=y¨ *¾ŸàƒZ“¶iÒnºÉ¾3»;3Τ³íf­±IÝ0ìlæc~¿ùæ›ï÷ bŒÁÿ|´ô¡U‹Wà??ZæD©ÖXl¢AâÝqP‘󪲒D[ ¡uüƧ‡û®ØNMÏZèg±cã/Fo9ÇÇiuËJ4UE…€ ¨˜칂ÁÇÖòæðF¥èt*~ÝWƒB° ¦1V¥ šã-+1ŽZ§ ÏÊCpü ˧Zל«ïIÄFW4¢žƒ#Ç  fÕ¡RuÁ©•Á·+ÚRàÝðà ä$"$ê® gÆÛ½d†ë8žlï:J)PÊ€QÂߤuÐt<½.昦þªhgÉä·Z`lEjÖ ¤´þ)öÚ£´À@JhšðÑïÀ¨]1¨š˜Øs4%0HIÔË!¡-\»~óþM[vœw|2\Òí0?¥¿ùðrôâ³‡×Æ¤ÈD1±¦¢f¾ÛÓn 4Ào?|yr×î=Oz{zñU ánõ0:1°íàã‘ãgŽ$ó¼ªj}Mek0Òþ䉿8}öÒàš¾þ«¡™PÀ!Ó®ƒnØ\å&s™lîŠTº^A–¢ |&­£´5†¾ïÞwè(Wµõ"·¦:Ïï“e ŒÒwÞ¾AMß¹}ï‘ýÒÍFˆ“Bæ3!c䟂P©Ô¼˜Zð•[.†Â´ ùo¯a¶ðN¨÷®ªšÙ,·€:.F(ËeØ©s-¨BàÛÿv ó…âXßzÔ˜Ð0ª0WüåñW|rcÁÆ6¦&â€ìQffçÄ5Ùµ„ìÞÍ ÏyÄ¿-MåAŸø•ÉOM“R>âr[–G‘¦åЦþ“×Óé|±rvµ„¼»º6;ž7+y®ï‹“ò=þêTK—y׋¢c[ÔÒ ¼ Êó-*'Á#™7èr«b&ñ×w¿çú‡Ž¯ÜvНxD¬6 ñ{Ç(>`ŒŠ:Ïå­.þ÷,}&Äîgî~•DX™'JÅaI¢)s¢ôÕ,u3Š3`V³œ|gä$¡ö$“c¹ÄÑDÒN؈ˆôå7Ø Â/$jûzbëˆ Òõ¾üv¥m$mp++Ñš Bä$(uá ©[K¤f”Ò ÒŽ²DµVÃEÛ¨ÓW3Öê8µ Ôòù%Àö´ȤÌU(IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/showname.png000066400000000000000000000013611417122252700224110ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ƒIDATxÚì—]KQÇçœÙ—+Ò(V¨­p³4òVD¨‹"‚ÐoªoЇº¢/"Œ.¼ðF%°ÈUbKCV1뢫Uwgú?Ó3qfuf÷,‚xàÇÌœÏó^ÎsVaÛ¶±›C»<ö–Á#ÌßDt¦ CÏTXNqÙ;™ÔdœÖ9 ®ƒ(;fº‚ªÁÆÈøCpÔ°¹SJ¤&ïÉØp €ˆ‰‚Ôä=mä¹›àˆs*¶‚ÔPxdä.OOpKIƒYÍDï‡Á#ž¿Æbnª!@²w·ù™òß~€3 ‹8Q(™Ú¦aáÐÓâ½¼ßý˜Í Ž‹Òô[KVX|÷øù>híàXAW²+Ð ®€%ð üßÁ7ð”¿P¾÷M(ç8†#äÕip ¬‚°@‘?9 Òà+xò`ly[s(J#jñ\‘±•<·IÆéÞ+ Æø¥¾¡d4žBöÛ–% [ùÑϹìã÷Ó/–Ù@#!Á‚\aå¥À5K\R¶¯hk‹™Ô»ÉçY„åÉû¿áw2ŽyNמî.£õ\Ê™{ý6c¼Ÿ0Žœh¡sà›×›²íŽd8Òì§2~¬þ¨CúüY祋÷rïÿïð±yèhÅ«•>Õþ¾3•¼ëÿIf #t}3;g|Zûâ@÷46¯•}¨,BÙzõFSm]òƒßû…™ñ˹ùé,nÒ~Çš–nÖhª³D :9GØÉó•ìÌ_tû5]¤Ò€âž´ÁÍÆéÚxD˜JÁJ .†5^I+V—À?ÁµFûÿší)£½!ãåƒIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/showvalue.png000066400000000000000000000023521417122252700226060ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<|IDATxÚì—]L[eÇßsúźVm;:7‡Ë"AÅeQ› B ÉœÛLÄ]h2/ŒÞí I¼PãÉïŒÑ,¢Þˆ3IÀ0 n‡Cèø(l­ÃAé íiK{z|žúòòî´©I“]èI~éùxû>ÿç}>Þs$MÓØí° ¼¼ABš Lc%b×w8]5õF.„'ê/í ™ xêg¨`/PMã³à$­àpDHLì²£êÞWñ¢õI/kسûecÖ?x†Uºï>—ï JK}è2xñÏt½D‡ONc²X­qßævæ'Às`¶Ø0d˜ú7u¹,ÝÊd{PkÕÔé{tË›‡š}îæŽ·Óu×E“Üd.´‰p"TA€î¥Þˆä¶}Úw¶µTUÚ[’‘§3C–_–R4æj’pÙùà‘N,÷nF\ÛËïhÜÚw¢ËçÞb?À’±g–gÇ7ÇFظˆ¤Î-*ÙSiGÝxݾŽ#'g†ð^›úmr4¾ÿåýwY7XÁé ùdȪß·ç?;?pþ:é~¯ë1Ï[Ii¥=zyúÎé ~6r#Ʀ£ñÑÅäjßÍtæ»X:»@ù!mßÙè©ÞõÈ‹6ûfΗJÄæ¦Gºç¦.`’¯¬ ÐWl¬)nöì9é±Ù[#¡pUÐïg—––Ø•ØÍ`$•êKd2½±ÕôUÊ• ]Ž„ÈܶŽ÷2¨#±.Ðsümz¢‰í¨ß‘¿œ2ÿÏ~vfè×£ó£a6—\ºK+½i5óýòª2%Ñ·bÉà]!Y~ÙѸÃé`ú9 H¸ä•á…ËÇ•¬rŽÔgÃÁ{~ÄönØŠ‹îZ&«) ƧN˜Äå<—]+å•lÝn¨ªê7ú²G£yðx,~~ !$PXlª@N+ñƒƒOBÙÛî­uU»‚F‡OûB“¡IÌ\’ù7ž–"C`ÙÛ²·Öéq¾f±Yžƒé%%® Gƒ_Íf±l⺷èe9^ËEz‡Ãw¿ ®tT½l(Ö9­Lßt·4"®fùÝ-Çg¶VÆÊR[ñZÙheþš•þó_Ç 0¶IT ¸¢,IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/solid.png000066400000000000000000000024471417122252700217100ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<¹IDATxÚÄWmLEžÛ»ãã(‡@¡A‹ BmILK4Q0„Ò4©‰´‘Ú_6­M01úÛÏDüal ZƒijùS ¥­!*´¦=‘+R” åã.´”;Xîön×Ý=ç]fÍz°×£:Édfgvöyæ}Þ÷Y&£ÿ³°F^bHѺºa•y8Î`ƒï°éÒÛUަ:ûÒ7SòŒŽÜ£!@˜åÎÆÃ5»ï)æ“g«žÄaì›^V¸ûi|H:U™2ÈX%€ã±‚QhÛ‰ËýÜôðµ$3¶,2½A XâµÂ†¨“©Õ9î}ŸIÉEEéøèÞ<œE¥¦µ¬ÀЯ€€\Órßé,??fN©}’}ZªI‡’!¶îHÝÎú†úZJ0ªTŒ‘(¢ ÁéZç”?¿ÝvÕ9:Ã7ݪ~š‘fÈ8_ðT*}¶tkf÷aŒË \9OƒõBH¨ïþª»6AŽ)ÀÂA!]éèù{C'‹{²íÉ/î*{üCûþ»«åkÚ¹.-# ù|°]äñ;Í’†,‘|põËÕEf‹¹›ð~+‹÷)Ø”¹&'?mÍÛŠ²s³ÕÚúi«:îêsMü61Kº!ØÄ†ðÚWjÖkyÜKÍ™¥Íƒ)“QVnÖ*`Þ* ^âá_†Õ6ć¾%à˜R1qœt¢å¼~,5-UÉ-ÈU[»Ã¾®l·o«íÌäÌ9-Š"õ_“À…Ö ÞCÇ}DvþÖŽ;PÉî”™“i8¶ÝnU{Q]·úo‰j¯à üB–å–Ñ_GQÇ™4þû¸aÚî—æ—ÎQÝEJ"l( ©Bl[¼v ‰8ß1¯¬®D%e%ë‚sKj?Ý®ö»¾ì*%V)W  –K"sÉmBPø ú®ô¡këq¨­oÞwš€óºÝ+†3¡.ýÂB¡ûL÷»Ä›ßƒ9g¿]ï½\’$äºáZ%â9OÁÿ„¬uoÀœ ý@èâ×?àWø07äBýWûQä7Á_T|Üåž>êxr4í :K ¡ç›ž¶¥…¥—´8àí›pÕüS£S]š„º|øÓE“£·£÷Ò¬{¶‚ä÷vðö³ÍgÑÔØòLzÐâü"’yº»ÈRÐ i&–+>:l©¶äªƒU[­¯Â\aQ!šøc)#òŒºæïÀ¸—Ôe0ZÄt!ÑIýË~?qÎ7I„4ÀC±“9›^öDJ~9%»î}!&‘$ _.pæ¼sÞw|þ`[ª- ¥˜Ç)¸vkÂqKEL?ÎI’ˆUØL[NúsÛ_øÁíñdÌÝ Ó±+dÞdÁ™#ã‡,a*p€æü÷æ¼þÀçV6™™-§(A3•Ç-Á"kùêÏÓß7sAqV¥§–m5Ç-*â"°‘ü>qá^ Œ‰JЯ»Øüë‚Êlæ¿¡>L±#E ¯`9,*ÔaÚþ#-3›ýs ·_]øiÿ Ú}@ŠÌ,ÚüÖ¥`™Pt=2 6ú›Žv"þ%À39G^ùiòÆIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/text.png000066400000000000000000000011501417122252700215500ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<úIDATxÚì–½JA€oï/!QSäÒÙú @ !…]^ÄFÁÚV¸"^št‚¾ƒU¬,¬å…„ ä~ÆÙsV–órn. in`Ø»½Ý™ogwgŽ€¶Oѵ=KP˜ª‡Ã!ËëÄqœ•Wýw É1“"&ž³€@j5 D9ãñøÄ0 KLòÓh …`h5QÅߪժ×n·_yW\ÌŸh¨pãÆr¹¼ÆvnÛö:Ÿ‡aÈ|ßobÛäƒ*•Š$¢õ?¹¨Ù óF ^n½^¿èt:O¢o2™‹Å" ÷Øøäl2®08|žA[‰Håºhì O¥=çÀ”€eYSPÈóª€Z­vN!FÄjt l4w³ÙìHìÿ¦Q·Û}N:MY!dÐjµ>°ýóIsÝ #,eûäq©.äË„tm`H4$ÆæÏÒDPÍŠxQŒvÀRl {Lµx­ @†uÊù‡¢ßó¼j›lÝŸRàºî)>Ap†óx¹\~4Mó¥ßïßâë¥eÈ*ÅkUCy|n©TºÄâda•4©-UNþ¦Z¯×ãï¨6ªER“Šì@N0>¥^]*·aVæÛJHr¤§ÀÊþç:„ªÿˆ*Î7(2a°-ù`©ÅôIL\hýIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/thickness.png000066400000000000000000000005311417122252700225610ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ëIDATxÚì–¿‚0Æ¿*$ººù.¾„/çêèó8»iÜô À0ø µkÒ Ä¡˜Þ%_ÊAÊý¸~ J)øŒ<00xÚ7„Í`É@ ‡:æWѵÑ;€UtHÏÊ]êâORi`:Ôf™![äÞçä„ã~‹Ù ¨‘hŸôÔ_®s¹‹/ˆÒ̹þ½(‘ȇóuªÓ‡–Ô*ê.th´Æ4†Ž†­¨ l_& ¨Uy%½§ ]&´ 𨷠ÍnÀ§%ð¾ m—šü,ŸŠ€àï^ {`(æ±1IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/thickness0.png000066400000000000000000000005311417122252700226410ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ëIDATxÚì–¿‚0Æ¿*$ººù.¾„/çêèó8»iÜô À0ø µkÒ Ä¡˜Þ%_ÊAÊý¸~ J)øŒ<00xÚ7„Í`É@ ‡:æWѵÑ;€UtHÏÊ]êâORi`:Ôf™![äÞçä„ã~‹Ù ¨‘hŸôÔ_®s¹‹/ˆÒ̹þ½(‘ȇóuªÓ‡–Ô*ê.th´Æ4†Ž†­¨ l_& ¨Uy%½§ ]&´ 𨷠ÍnÀ§%ð¾ m—šü,ŸŠ€àï^ {`(æ±1IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/thickness1.png000066400000000000000000000006201417122252700226410ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<"IDATxÚì–Mk1†ß˜€hÁcþjÏ‚¿Á£'/½W,=ô¢´Š¸~€Mµkw‰L`Qâ%Ê^&ð’L6›y’ÉìFcPf© ä À ÀêºCq© ò"Âÿᜨíu Pp*é¹";À9ÏH¹‡ HóÞI±[z¿Ï›’AÍ^­õg•ú]¨Õ4Áÿf†t9Šö¯Ç´‡5Û:4¨+'C ßú_˜|1Ý¢溊µ[4ªäSúªÐKíî7~´Æö¨£N—Kóý{»Úë‘ÍI£_¬Ü–ÕÉ– 9Å}oµ%gç*pb3:, Z=ÀÍy¤ù²{ih ľ~FšPJÿ¡8À§Ë³Šàk90” p`yGsk¤%àIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/thickness2.png000066400000000000000000000005341417122252700226460ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<îIDATxÚì–Í Â0 …“T.¨BB€ Á\X‚=¸²{0{€ZÑÖØ•-…Ò\D.¶ôõ¹‰?åG‰“22“8@@ 9€2-5, ÿÖŠõøtâ43–åN-·’ë7$,ÓÄÐtàv®àzxÞOæß9jJÀè—‘¾ó€º¹ø'óË~ ÇÍvË9™+ÔUüÀ/$£z¶ÿ Á©É˜~&?òt¾¸•üX¿B•”ÇÚ­ lNÀzkW{B„/`ÁS ¨îuô7Uá7^î{ þ} ­>J@@R¼QP©é¾OŃIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/tortue.png000066400000000000000000000031031417122252700221060ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<åIDATxÚìW[lUþÎe.»ÛÝvé¶µåÖ,T… Mƒ(BŒ0$bÔèƒñAIŒ‘câ%¾éƒhŒÆð€‰A‚Ñ OÄ ^/`@J"r§[¶,´Û™süÏlÑV®KL|³ûegΜ9ÿåüÿ÷ÿË´Öø/Ç¦Û©Ãæ!$Gá| … >,›Ã¡8Ùt¸{{³°…¸Üv·Þ#l&4]¢W!F@‡Æôwc/ŒPФt 8{f9#÷Ø4'ÈEW>|<@øŠpLjðüØHÓ…^Æ¥^Á† '¡\0¤ëb(Ñ:ã šFU­ƒQ%-©jøax-%&¾$Ì#üVö€$«/ -rÃ+FàEINL Ó‡ã H›"ƒÜa>ÒbCWs#!q¤ÞHXcN3òÛ*›b;¢CSÊ“WI)n‘\/Šr4Ž«FK[&Z?8è#wvmÉQäŠjÊ Â;Rÿ-_ªP­b\²tMôe‹ ` C…ÉSÐ1c4ªÓq:ŽrìúA¯×CÓ™$VÊA/ÖJ”©€˜î^ÍÔÜþs%ã‰Èê tm¬ž="Ú§5D¨ˆ!ÕEa¤Gº&''`b¬"LF,®ÝÝ…ÊZ¨” ×3 _E)7oÑD´¶×c%ÈJ¥°RØQÄ~ ¾“„ç2$hÍ*.ó%cåàÑšÕL;Ž™¸ýÎ ˜Þº Iw,ÎæÎ wp/üñ5yŒ£sÒbÔ§¦b0ÿTžX˜Û•*ÐÊÝL ©šÔ,˶î/7':>vB ¦Í9íÏàD·ÂÂûãÛ-;/u µ© mãîÆþ%<¼øItŸ+RvX7TyÑU·Ó™o‚¾H8æÜ›ÛÒhÈ4#W>mÛ 4´°qãF¤Ý6T[±â¹g±ýÇíHsÎn¨²á©~ñ*Ù\k»â/2UGm]U”zf8®ý._¾6|Šªª*CÖdµƒÐ+ÂëÞC¶ˆQ`³èèj^@»uŠ!>0¿&×ÇOÌ PÌ£)ÓŽ{g?ˆ½ûö¢ñ–&¬Zµ¹Å ‡y³Ÿ@³K¦M‚Vœ† +Ù#-©—±þ VLÏJgËXmY6fÌ@γ«qWû#¨M¶À+ âHvöto¦l˜~ÛRÜr8Òî=ÐT”*Ì‚%„M2™Ò=V\.§ù.i‹V[s"ž…’6½?Â5p¬O EÒP:ÑYíÚÿ9,ÃØ±Zz)}}½\ð¦Eam³T¸‹¯5âÿ!F=ú{Ot¬çsïÏ"ÛÓC xp—‚”j‚%áØ.­ñ«ÌâgušÈýº¤¯"¼üý–ˆÙ赓’3ÓÏÅʹÁïÀ©ã¹·Z&7vfOæçû½žäˆ!e¹Hâ£u^À 8f±f >Ô4 ¦T›´VÐGéöµ¡.iXK<½=Mõýmš«§ë}:”¯{Eý…Ove’÷–¥°Ó+c|?HFéꈼíÊãÓ³é;úœXI‡ÿè¨Hå pÂbâ÷? 9=—ô„B–ÝÆû„ªàR¸8D×%Óp˜§TŒ¶RBn•ÒB".ª•å&LõK ²þ¶ãU3Óýr]‰Gi@ÍÎŽQÝééð›õùýÛç'Zz'» ‘ðšMiÖàj'IÞÉ+…|H<Д‹¡î¼½«$U§éOÁ—BÔÝ“oWøUbƒÝüoø¿WàOšžNd¼.ÈIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/tournerD.png000066400000000000000000000011241417122252700223670ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<öIDATxÚì×=HaÇñDC±V¤Q[”â+TA\¢ [±¨Ð­8ˆ‹â Nu¨‚p(t J)jkKQ ¢.B‡¾hÈ Š®¢ºTQÑHü>ðƒ—˜«y2Ô>á¹Ë“äwwÏó¿‹3 9Ùœ÷À¥^&ݹÿò9bß·“îà cx‘ˆø†n¬à ñÈTÕÞc Ñ„¯ø…·(0à]8×ö•ƒ?CÝÕœ»ëjº‘…ƒÞÏÀ,â§ͽ¶ l´ç¨GÊðì–Ÿ«ýðªyk€Bt ™aï©Ó¯ŠÊƒ(ßÀ4>«ñ®VK'zñDÛÿËX’SŽe©ŽÊØ“X.ÁS ã•l‡$½:…?p&û½Rô¶ ƱeY #´Y×e²í—¥µ6®mÒÊÑ~ÂwE-Å®÷Šd{Dfðaظt|À&„?¦{Eyõi?þ}cóåMZ,C[†P)}O„¿šÕ»Eä¦Bô­ÒŸ•™·@ÕòAõœ€]´ãÂd€×(×Nýv¼Hôê¨[¤¿%EÃa2€ZëÕÒÿmýÆ#@-’qŠSÏ„z€*­|®› n ÅÒ_•rj4@ò´ è0 ÙÒß3þ¿€ö=H•Ǧû¿fÿO€K×7o-ÒügÃIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/tournerD3D.png000066400000000000000000000020411417122252700225550ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<ÃIDATxÚìW]hUýfæÎÍLf»»)I¬¦iªÆ$؈ˆ(øbµ ´¤ *(Ø  "¥ôÙPDðAðÅ'ÑZ|¬Hl°¤mZÚ&ÖÒŠ&1í6n’Ýìn²;û7³3ã¹Û„F$YÔ>¸÷2óͽç;ßÏÌH¾ïÓ2ÝáQ'P'P'P'°f¢Í­›ßlkïܵùOn¬¬ÑÎWµ@xÇžžëý ‘tïb*‘µ‹…èE€ŠùÜô• §oízèÅ—÷ÜÕ÷ø3{#-›ŸÇõ†ôÂüï0ÉÖB@ªá™¶#9qwÇ} ²$“m鯝×RG†Nü8úÃçÉùØl¬õéæV- eYV<1\×qݲƒE¹"•¸a›Ûïï}¶ïÛûu3È`C’$‘Ê5R£¥ÔM\ŸŽNü<ž˜™ZJ'cy+/ä¬(•¶K…´cÛIl—þ“€hèÚwhðì¶ž‡C’,W‰W4(`Ä,È 1Î öT*ä+÷Weª¢ªòÊ,î î8ÊŽ]™ y«”Ïf,„læÒé“ß_:ÌÊŽ;sòX.›y´ÑÜÐÄTUn„‡Ã=ß¿uPºa45·uCÂjB‡lb¾*ìI1»Pˆ©%(Å5lÏ„N5C­‚óí9 l9ó«§,±(àŠ‘îý‡¿Øò@ï]Ž]ºå9Ôaá@uPìúä\ìÆÔd|öæd:1Í,¦bð|>›Í$r9+Ñ(Ç k…a¸ì6ù¿­EßÏóV‹¦ë\ÆrgStultzüÌð7WÆÎm¥âWÆye×ëo3h÷=‘G¸,Epw°õ¤8²éÉG><Ñù`Ÿ‘NÌÑõ‰ks—Ϻ|~äxrnæ”(Å0 »{§)Ë!Ú5q…Zušœ¶‡ÔÑÈÛó?É»ÞW°·×E`[OßÀb2ýôèáÑ_~ºðÝltz—„g}ažˆÔ ÉdŠÄN¢0—IWdbPÌñýpÑõ?ƒù ð~-}@DYºË]lg›IO5ëðRI´=ï×§a&K‰JbŠŠòi–{€À9à-á=­H¸µŽÒò¢½Q¥7ÚCÂc’nv!K^Á-x·ìùAÌ@7°¸  Ó·+7dµ´ÏšBïum„¼ åÊž¨œ×ª^ …D£yµÚ …ÔÇ€³ÀoµWM8ª—+•¼J….ïƒÕƒŸ€Ô¿ö=Pi«ÿgf€—ªy²¶wAýϨNàOàQŒïIš¶IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/tournerG.png000066400000000000000000000011471417122252700223770ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe< IDATxÚì×O(¤aÀñ&™V›ØÅ¬µ…B»Ù¨A)‘¸°».RâÀQÙÛÚv‹’”ƒ?EÚäà°'»¢=lÄI {Ø ›«ñýé75M†ñÎxß‹§>Í;ï¼ÏÌož÷÷üžçµ»Ýn›•-Ìfq»À>áJ4Ú7ý‚êo»†F Ÿ°ˆè`GÀàuPŒZ”‰VlÞuÏðV8Ýëü/ô†"~΢eˆñùü Í8 uIúokðòš>‡|l“„žÄg4!*€>1¦Ç{z;f1#u@jñ:ñ3€>§z¤%hröc=H¹mçØÀGä¡Ó8öÓçXsCtã‡W]Üø®¯aF*á?ÊJd£[>×ÈܯÂW´À…"Léh>Ò‘˜Á“`J±$X^IÑÂþëg:S<·dïP‚u=/#¹„Á®1‰r¼ÆM¾><ô¹vIÒ÷xJ¨#ùwA$_qÔ‡=iÏ1î¯l] ¥ Ü0k$:ô8]V,Ç4©¥ÕëÌ15€s-pû²ôkÁsš½!ÙõºYxcÅŽhX§µM9»ÙÈTÕ㞦ï çp‚p­œ¦°áUÖs­@Êøš§"Šm¹'Ÿzöfð[_ãy›]q¨ÚŠnéeOqxù`rÿpju §d 9¯ÁœIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/tournerG3D.png000066400000000000000000000020251417122252700225620ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<·IDATxÚì–KlW†ÏÌ¿’8„X`BJ¢$<ó”6Ð6Mé&¢ U±DBP•M%Äc ]UH]€T±¢¢R¨©(Ѩƒxb¢˜gl=ã{ž=×8(J7v@Ê¢¾ò§û>ÎÏ=ç\3ŽãÀR6–¸UT,¹Ža˜Š'µ× p:3xA×#{[ȳ²,F5•ìbÈ[@×èA¾BJ"Ž"k—È D{§^j&ÜHäàÓ€L8ÓqzK‚HDüH b!O‘k%ô…›)· '÷¼0Øâ‡€‹ƒ‚íxMÛÙ?ïE¾E"%­Hò%R‡œD®Ï­Aʵln=öA_ÿ ½ ²”¦®-¼P ¸“Ô@Ç`¨ˆ±Œ'9–¹ŠûÒ]„Ñ–Õ Œ³+ÏïK^­H€š“'–¯XµõÐ7g¿ mÿxÝ™”œ•$U›g 0ôJh΃Z@ã·E îKyt›¸ ^Ž}€¯¿"—pþ8 ÔŠS ½kËñ¯Ï]¼àöz!›‚ñ‘›ÿyýÇÉG?cw¼xV¸ª>/=Ðvñ˜º—¹a ¹ü<;¨YÎìê&• HÍÆï·un:Ü\]+¸ÝÐÑÕÝüágý_tnÝqÐåöt*rÆ’EÅ-”°˜ªŠiCDÑa,!CÐÃ…ƒ>Æ&B=@W6}¾ºµc‡¯ÖßHÇÛŽm[¦aà§`á ^ÙÇñB¿>в6´msOo¿3sW9­%¼à–Àø1>-'33™”8+gÒb.+‰J6#*™t"•NÅÔ´ ÚÊ?~— ˲+œ¾ð¼g×nC+˛„9î¼fÎ5`[VÑ*œ7v^ie Ž‚cYÂ!,¦óz,®e:ÆS†~ÿåÙµ‹ç?¢+0uõ Û›ÛÖõù›—ÛÇ ,‡z·oナ!„ç}µu «Ö´mèzçzApÓ1ÿ1Î BñišäÕhª99£ª²,+Y)••’"zg2¾7}¾Â,¦8~jâ“þP^S© ‹î'h‡ÉÇá©§á±Ñ©È£±ä«™‡xÓ…¼*Z¦)áÔb¼U%ÄX9Ôµmgu©ÇWª"Ãã{#3woßømbôÖObÑ—ãƒ/þ$6þTM4ÑDŸ¨ÕöA+±-!-"iþP`Ý]Êß²”ÙÙïgšËth›8ÕgsrgîÙ{ÏwÎùî9€ÿŸÿø·øÖþ-ІšS šƒ@¬dŒÄ0ú í³×|™µ[Æû9à ²óÄŽ§ƒœÈ3S©q™2=†ï´~øBÜ[I{®Ù**9_ü™{››#¯èwÍM,Þ+$ÅjAH媚Ú'(IÑ4ýÙÖ‹ ‹ÛNÿpö™T*½f!;}Jšj€—'ÏÏÀd®’µz<ÕÃs‹òl¬eƒ·CLšKDX"µUÛù‡w=ÒÖ{bðÙ3çOÍÏg&ÛÓÊÒE¬S ž2w×+^”ÿ:’ÔÔ— Jü£èÒ@ëH42dEÐeƾÐT¼ÊË=ø8™3ò÷Q!ÐQRºçÉ¡ž±ýÇŽQæ¤Ø{KÊü§XÂ"@Š ¬‘w¾4§±ÕËæ½ìårXÎËtH`髞ØÑŸ°N¢@(Tjà»û,.Èç£va9Ñ¿ü|ºSNdâ‡eþžJã²;÷sÙh¯—Y“É*j™&q÷…õeÅ5¡C*:saÖ<5ÔˆZ6¿Ê"¦¡ó·jÇCஊjàöò`v2ÆâWR¿EF?N)‰/ 'ÒfDíè äñßÝ0w*£‰>aQª€²§6XXÔT[ù@ÕÖÊ¡Š5|0ÖfÊîû o ko3PË'Æó|~ݸÛñ ý às-ýu¨Í0¼d„Ÿ‘Y‹q’Û¬ù=!õÉgKΉL²åÚÜôÞÉĪ /ãk¯+j†ý 4wolЗJ™_ïm™éb™´±ošòž|«¬MLú{RŽ$x?­=ì‚|ÈÕL–3£hÎÀjò7òÛ[·Zjº¯Àûgä2^V¦oö÷;WÂIÃëmœØ`m[A²eåê(ãXÚ©ü_'q,Q  ãâÙ3€ýtôE¾ÁÃ5ê$]?EèEÄ£P"à–It:™Äìa|$7‹ü²ª%§B{{×¥Ö®Áø°‘{ÑX¯­Øn£¸ ª<3=¢j  § Òe­5þƒÎ -ëi&03‚òJ Þáöní¦7”qVÓœ»s@xsìl±‡ûžÚWÌá^À0L 6UEý61›ø¼ó»Îq½ñ@¨jЉ˜Æ=9ž˜~"2QÖ}¼;jpaÇ"@<'ã¶ÛÀ¦Í›ô¹‘K# ·«øƒ~¢{“"å²k’# a'/ĸ/àÓÅââ\âÁmw»r ÉùÊÕL×Y«§£!œvL<]È»~1Äo†Ü 2ÍëÁÀ¨~ { ~øÜðã"a›ªã§€¤ºnOÝzB8’svâùØÐØ×ØxÄ4NÊ1} œ`^ë8Špf?0¯r7CèT%¤@ ŠpÀÒMïL!²€X±h6Æþ`c|"^®Q¥IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type.png000066400000000000000000000010421417122252700215450ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<´IDATxÚìWÛNƒ@=\“šøèïú1þ¯¾ù >˜èCµ-, Êg7KBš¦HCÓ™d²Ýt6çÌÙ™´¶mqIÓqa› Ìf'`Ž ÖÈÄ¢¼#¯õBº©Ö¨ßm;0éÌ‘àÔPçLµß' À+å5kŽ‘£€2ŸžsÁ¥ªjdy %ðX Æ·p½Žcãáþî–b3ò¼Sb*fÓ4Ðu½ÓEQI¸k/Eì:S+Ÿ¤„ÜfN€º®¡®[äE‰mš"{Ì]#p-»è)P#aŽíš]VH)Jº‚$Í¥ô?÷¿’ÇÜqW½™¬ dõû”mYVHwÂ8Årå`³z¡ì?%‰º*  Õèu ¦R€² 0ã æÃùzƒm½"Ùù瀰@J3!ÛÀw>NK@¾í†$·î­‰ÄF’8`]õmÁShD¥{ö;Ï:–y®Q3XX}'¤ác¨ê¾V}¾P{c/sž’G䉨F=ÕTª¿¡VóS¨ÿ«)¯ íeØ­ƒÏ‚!Ú˜×òs< µù»`&0ø÷~Áä ¬^)IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type0.png000066400000000000000000000010421417122252700216250ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<´IDATxÚìWÛNƒ@=\“šøèïú1þ¯¾ù >˜èCµ-, Êg7KBš¦HCÓ™d²Ýt6çÌÙ™´¶mqIÓqa› Ìf'`Ž ÖÈÄ¢¼#¯õBº©Ö¨ßm;0éÌ‘àÔPçLµß' À+å5kŽ‘£€2ŸžsÁ¥ªjdy %ðX Æ·p½Žcãáþî–b3ò¼Sb*fÓ4Ðu½ÓEQI¸k/Eì:S+Ÿ¤„ÜfN€º®¡®[äE‰mš"{Ì]#p-»è)P#aŽíš]VH)Jº‚$Í¥ô?÷¿’ÇÜqW½™¬ dõû”mYVHwÂ8Årå`³z¡ì?%‰º*  Õèu ¦R€² 0ã æÃùzƒm½"Ùù瀰@J3!ÛÀw>NK@¾í†$·î­‰ÄF’8`]õmÁShD¥{ö;Ï:–y®Q3XX}'¤ác¨ê¾V}¾P{c/sž’G䉨F=ÕTª¿¡VóS¨ÿ«)¯ íeØ­ƒÏ‚!Ú˜×òs< µù»`&0ø÷~Áä ¬^)IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type1.png000066400000000000000000000012601417122252700216300ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<BIDATxÚì—½kSQÆŸ{’R¬’ÑAÐ)ÿ€u'Aœœ:¸ ĵtéà"Nâ$N‚RPÑÁI‹p‰m1m>ïGr¿Îý¾¾'K mȽMÉ`¼Î ož_Þó>¹ç*Y–a–ƒaÆc0˜9@¹h¢Bct/+àérAqQ9EVPÌB8¥}ÁžèHñÅâ“ç›!ÍK§ÄZìËÏO`XüÕÛ¯n©Äðpý…Ië Åé"¬ˆø»O[6£HÓ qœ`åþãzQ–WüÃçvJ½‘pÅðƒÜqã΃Z–G|óãw[ˆrÂq}؇ëùð¹îöqéúŠšBçi5ñ‹/_qEÙ“$…Çh¦½¦ú¾½³ ËhÁszˆ£ê·÷Uʱ(\Š@8ä(‹NPÞxú&dL>”Þõè†FÛ„ÖÞÞÚAOo ªð'¡½¯ž—œ">À‚°Úê£g¦h¸ Œ°, ¦¶­µnsYšäuµeš AäQDǪ€ôyåöݵzÒ™û\K‡Ñ­Ckþü'‡Ä¯ÐdʘJ˜l(ÑX•«7ïÕ¸gÁîu`t~ Î|HüšüÕ½©ôÀ¨ þB\¼|KíM8ý%†Å“qÏÊ$Ïà .T—Uß³†ËîJá‰Å'8âÌÙsÕšl¸X6›“G<À! !&EyñÜ# Ò!bÊ*DyÄ Œ»È;I®û€RôÅdZ7"eþf4øï~ 0m@mÐò&- IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type2.png000066400000000000000000000015401417122252700216320ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<òIDATxÚìW=hA~û“Ëår =0!" *i´DÔBƒ`¡–i-ÔBT m¬‹ ˆ… "H ñÄRbÐK.ûs»;»³ÿëÛå­\Àœ{¹@@nàc–ef¿oÞ›ùÞ¬$ lea‹[_@_@_€Üí[ÚDêÓ–JL}’4¹Kr‘H¥tî݇Opî>¸3õ•ˆ#D˜ÇÆE„EÈ¥·îï:uúü£$.ÚÜÖZ ÍŠæÛ…ïnÏÏÍ.â8˜Ž"ä.Â.M¿x=1¾oÿ+ü^»„aA‚ëùR‰“£Ÿ†¦êÁñM):Û„D.N^¸TŸÅ/Õ$öü\ׇ#,Æ3£Z~R;|çTé\úFO§@ºríúU?Œ÷¦¤6–šag½‰ä63ئZÞ¶sŠ”h¿½¤ ?$ò9Ëv!ÂÕ3澩™]7À2VÁj5ÁÔW€Û­8gÁi?„½  掊<ßQ€ šÎ@Õ-°,É$_Ckd"°í¡ÕË›L„¢™v‚ó¼p÷ƒabèM¦g«n©¿ròtÛÛD,v"ïÊð˜ÍƒT>æ ¹ƒpló9·TЕŸ(bùÏØ8޾ä†ÔéÝ„™Ã}^˜{¦¨-WUš )K 5—@m.Âjãûò´y.›ÁΧÜÇDÈDõ3?Jå‘›¢,?v,˜©ÃÜ#ÙšÁaà½Ä÷u|tÉŒ¢Nþ鄹 !ÕCg/ãÛ{Ì\Ýáñ5ä<ðù4¦cŸM„`$$\Ï Y1Ùp­rz¾+Õí»Ë•‘3¸°£©°( ¾qÛøä{Î29 k##î©änH"J$d¨í¨…Ú'R·­ÄjA7Å(/Á2a íœm¶HóÜÇ›V ÿrÖ¹ä(t'6úcÒV`Ú¦ðE¤gýKi_À#à·°½µé kíIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type3.png000066400000000000000000000006461417122252700216410ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<8IDATxÚì–ÛJ1†ÿ´¡B/}Z_Æ7ðÂK_ÁÛ"µ[][·{(­vm÷ànc&°àM .{aCÈq¾9dˆPJaÈ6ÂÀÍxà.‡„nÔ±t8k¡Ú®”e—ŽÊIé˜ÏK!… K«·m \<@ÊÆw÷Õ©¨‘n?ð²Ê°BÜÞ\_éµRKe<Ñ€<äòÏqö®D¯3Z›òž–¥— ÷ËM²G¶Ë± l²hAk“޾l ¤còŠe˜bEHÖs¤oO8æ;s߈½Ôß+ ØÁñêÛøuu2óMç%ØYòÛ‘ÎnÊþ -—ó Bʉä åHaÐw÷óÜJ—ìv²¼æqcëW€–Íô?ê€-€pù”þe%þWì<€ø÷ß ²]ííü¡IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type4.png000066400000000000000000000013111417122252700216300ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<[IDATxÚìV;o1žµïnsIzP‚MD¢á/@›Rêü”¥¥JME E(‘!î±»Çmîµ·Û‹goŒÜppæÐ5ké“WÖxç›ùfl{eYÂ&ƒ š@M`ãÿ²ÙÓÃ|—ŽýÜptjÀ¬u¥'µ*§ <yºuxôäa? á` çg¯>ëeÐDä*$\°Ãö÷ö÷>òÖŽöáÚ-•À,м~”~–$“g‹ì+UùÚ%IPkëo1˜’mj´Qàk±AH B ?ØÑhkøhƒ¶œöyÎ0Ÿ½¾8â¬lŸ¼8¾D'Q¶Ó¬€,(=l[‘cPÕD•,ÐßÕ…·¬^0$yþöýßopΪ”§YñhÝ~ ß:Œã²4) ìGJ|úðîÍ3ª‹Ih?Ê¥0¼ SΦR©ŠÀ&І0®a4ìAšŒAŠb±%Ý1ås„052¸J`Z+§Êê°alš&˜'#cƒÎg„9÷ËÒÿ7ÌÁRÐŒ?͛ͭ‰(2yj즲Vg”N°uèŒ/Mô8óFk¤3z©5â”Ù™E %Â¥Á²£Ù[õ£ɧzhS± KwÔ[þÏ»ÀH2'ÇÌ’G®r¸(­ÂÔb¦VV&๼#¬7XàOz¯@ý(­ ÔÖ9~ 0!AÏ%Ú_IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/type5.png000066400000000000000000000021411417122252700216330ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<óIDATxÚìW[hU>gç–Ùî¦Íe×tÛ˜K+½HQbZÅ J­¨m‘&Eª)…¢H¢‚‹Pê‹>´´ZúTñA}(ôÉ'Û„¤M³—ì%³³»ÙÙݹϙñL=‹ƒdí y0gæüÿ9ÿ7ÿÿýÿ9]×ëÙ`Û€ ë€þ7Ê7ÿ»û^KþЀ5O—zóØéP´§—ñž½9øw œ8õ9ÿÒk'6y2o% ¿ðÃqI’K²´üÛ/?MUñ"~úå…(êaƒ] ~¿Iæmoô¶XÉÍr ðýÅŸ?jooÿº££sòégžûàs‡¶âù6ܹñ3gc‘èÖ£ À}kØô'Ã/!2†x£¥À‘g_åß±-›á8n_4>øâ+Ûì|ý­±þÁÇ?b9Ô„Xc1ÀAhj[ÿ¾x-KlÀ–H XJÅ‹Ý]‘Ižç¢ápx¨¯oðýÑ“Qš¦!ÜÙ¥å®d2„ô(Ó7Õz…%û¯ ®ETB>棧vï}âÝXlÛ© Ïmqð²Z½.*šÙ&ˆòæD"–R3 »M®ä/a3xÇ&¶ƒ$_âÅ4<ñÅù±í½ïH÷KUa·S‹‹‹ —šKéÙËÕ²p]S«óXW&tÜ-lÇi…„a´yoö[ªª+²±Be²9PÌÇA¥”½]“ ¿bãi¬gn‘lp[-DÞÎØÉ;ûvì±Ê Ë`)›Áñ΀šT6²Ž=¢kµi٦ϸ³ª‡› 5yö\oOl`T·à‡Ét1œŒßE!”zئy¹~ǶŒ+rY¸¡ÔÊ^§ ÎJu À¯ÎO=Årü!ÝtϤ2ÅP|aä’ÓnIL^––½Ì0m ËíÇ# ¨åP{÷ïbn>I<ஆ@3UPÑì]Ù˜XHæC ó³ ›¸íróW0á®–ÄÔw–©OaåÒ²¸Î~šå>Ê¢ÿ“:çæîÞ¡ùîDAHíÊ¥fPQˆ_Véºih9lš"]åÚ6ÑØÊ(ÃbT ½n#dÖüÈÕ8Јÿàžá-=½{«µÒ¹|æÞ5ã1Û3X¦‘4, Fb;Dz†¹ô¡+ ÓPË„F+u€"%5Ø·óÉRY1€ I3Œ^c6wÆ"¶mPºZÕmi>€+Öf+!M–Fyu »-R\rè4HR°¡ƒZÉ×g‘˜º„ÝÈÇrÇ'¾9gµ‹ læÇ„p¡Ádè3à66÷]<üò5oEpãÏhÀÿÀŸ ê¦öcÐIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/undo.png000066400000000000000000000021171417122252700215350ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<áIDATxÚìWÏoGþf¼»^¯í˜Ô¤””T…(‰Ô¤-=ð£•àT‰ ¡ÜP•só´À±§^¨ª =T=D µEêU©ªªªJK/Ð*H@b…ð#NÌÚÁ±½»Ý¼IFËÚ8Ä”KGú´Òxæ½oÞûÞ›1ó<Ïsp<çñ?-<Ák¥ý(cè¤ö´§0(Á8 𽹄kM¿6&`$ÉHùß&”i­NûYÃ<ÉùÉï.¯Ü²1™³Ñ±ÁDÁ®bKg÷ò°{pîçKH[âqŒsk 2‹e% Ë! ÷ Hçñ]#gì‰)»‡:±k°™”LÒ@›ø¶Y:&§"%œsacp{½[3¸xåXßÕ'öJD¢Ú¬Vœ÷¿wÚ¾3_Ž=ØØnF.~³¯é¤." #•ÐÕŸ¾–2\qÞ;¡áÔ¹Éá1,ªF ‡à©]°@ý7«ˆë1pþ¹ÂʇWéËÚS ûúËAp˜Xˇnh0ã&,+|þ.””¹ÍŠ-”tÃ4b˜šYT+C-%ïëã£YñMSû5É&S˨U¢HÔÓËåœÞí" _9ÿ;)D\2\"MÌù•‚°„‡¤ŸZ3)X>š·Ü–¦´Ü?.ûÚ ."ƒöUé„…H¸Öå-X#8k"` ç~[}õ¥4fæ–¸¢ ‡!‚ˆ„%º­ØÐyàüŬ…žÍiìè߈/¾½t!D@—ª ‰ª)7ì¼a¶šHww%ñBÆ„ãx˜/WkLÁºŸOZ'“×ÓeA7“h×m¡XçØ3˜E½“´’@àä­¾ nç xŽƒGwî¥\—ÕôS ÿa ‚Bë¿`:|:îO¼&à_s~[ÛDuo¬çU-ýE½ˆ8ÓC ×èôR`ÎzÒÑèE$É|—iÎQêÙ*©VŠÐUʇ)s^Ërÿ$*­å™x&Κ"ð_ÿ]ÿW€4eŸNïÕÊIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/vector.png000066400000000000000000000020701417122252700220700ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÊIDATxÚìWmH[~gvÇÝõ«5[íã–•bVWèO÷öÇ#úWFý¨ÒEXDÿ¢h Á(Ų.F‚dä½FVPÚ׿ö±Q®éº¥;îî8³sNïÈ™–õcÍîtàaàÌ™yÞçyßóÅQJ!‘‡·ß$<óÏü9‡-V?5T¾y ‰ÆÂ0/ƒŠÃ)‹ƒš§ÜÄiOSã‰-‹f¤YÓeYæÿ°$jI­kßÜwºñ}D dÊpî\nÝQ²ù†É6m '}M%„úAž ÀÕ—^‡ßü®âpA¾w`””ÛJ«Ú#ksl—gf96¢±@åA ªt(=T>ŽÀýO|U_˜L´2Âi\ '€öQÂÖ¼=«*Ýb.¦¨^COP…Æ7<ô*ݽr‘JÁ㈠r“©HµÉ?kesO盘’eU—? ¼àã ’«Fë~xàÏcû×-P*ûå>«Ë—ŸS Í àq¾.Qib¶+¬ÉNÑÊ?½·8£¬¨ð"ßÙ´éBC+Ô>'Λ+î/÷DjTJp,V&H,2²hOqkS-é®óP¾ÿVÅËî#ó鮕BpI&_ŠývÁ±~Yza¯]Èìå9~5ö-AÌD¤2ÑœÎiž„òaËŸÔžþ;‹T¿ºvÆ~²5øþ™ìîÉM]¿â ™!û¨JlóõûGUç,Е ÏëÏ–ó½îcwêLUíb³»_)ÊDŒÊ³þ3-ß2bˆ½SL$#ªË¶e>½z¾þîáZZà ‹3¬•Ø¿±111YÂŒ°²ˆ7òiϽØÌ+ŽäæÍ›}ÍÕôO^m[Gè¥_,ï¥;L­foØ ’Dï?:h”Ò±Е›ëÏÛJHͽ+—íÏï`pÏIr32#¹¾ÆC bm‚0^ 8V­¶gõÁêç"Ź+蜔Œ‹I(ÄþňD6³ÜÊêcÌ"ж˜3FÃäÛ7—L¿~¾¶æø¶ôOGÍ´ØQùv Ò–‰@¬ðGwW,œ=§îÞÍÿVµ¹[C}C=Eeàö(ùŽ—Öñ˜È‰ˆkЕëÝ£¯ôâc@ñ•IDìd¹• 0æ{òI”zá%e ùTÏÛ!dêô¹l¬ô¸.±ˆ•ýd“Äæ.ÇÈ¢7“¸o4MeÖÊú±‰ª t2äñœŠ©Aa$z!ù?Žå?…è׸˜$⦜p¾ 0,l#i«g¹ IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/vector3D.png000066400000000000000000000020701417122252700222570ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<ÊIDATxÚìWmH[~gvÇÝõ«5[íã–•bVWèO÷öÇ#úWFý¨ÒEXDÿ¢h Á(Ų.F‚dä½FVPÚ׿ö±Q®éº¥;îî8³sNïÈ™–õcÍîtàaàÌ™yÞçyßóÅQJ!‘‡·ß$<óÏü9‡-V?5T¾y ‰ÆÂ0/ƒŠÃ)‹ƒš§ÜÄiOSã‰-‹f¤YÓeYæÿ°$jI­kßÜwºñ}D dÊpî\nÝQ²ù†É6m '}M%„úAž ÀÕ—^‡ßü®âpA¾w`””ÛJ«Ú#ksl—gf96¢±@åA ªt(=T>ŽÀýO|U_˜L´2Âi\ '€öQÂÖ¼=«*Ýb.¦¨^COP…Æ7<ô*ݽr‘JÁ㈠r“©HµÉ?kesO盘’eU—? ¼àã ’«Fë~xàÏcû×-P*ûå>«Ë—ŸS Í àq¾.Qib¶+¬ÉNÑÊ?½·8£¬¨ð"ßÙ´éBC+Ô>'Λ+î/÷DjTJp,V&H,2²hOqkS-é®óP¾ÿVÅËî#ó鮕BpI&_ŠývÁ±~Yza¯]Èìå9~5ö-AÌD¤2ÑœÎiž„òaËŸÔžþ;‹T¿ºvÆ~²5øþ™ìîÉM]¿â ™!û¨JlóõûGUç,Е ÏëÏ–ó½îcwêLUíb³»_)ÊDŒÊ³þ3-ß2bˆ½SL$#ªË¶e>½z¾þîáZZà ‹3¬•Ø¿±111YÂŒ°²ˆ7òiϽØÌ+ŽäæÍ›}ÍÕôO^m[Gè¥_,ï¥;L­foØ ’Dï?:h”Ò±Е›ëÏÛJHͽ+—íÏï`pÏIr32#¹¾ÆC bm‚0^ 8V­¶gõÁêç"Ź+蜔Œ‹I(ÄþňD6³ÜÊêcÌ"ж˜3FÃäÛ7—L¿~¾¶æø¶ôOGÍ´ØQùv Ò–‰@¬ðGwW,œ=§îÞÍÿVµ¹[C}C=Eeàö(ùŽ—Öñ˜È‰ˆkЕëÝ£¯ôâc@ñ•IDìd¹• 0æ{òI”zá%e ùTÏÛ!dêô¹l¬ô¸.±ˆ•ýd“Äæ.ÇÈ¢7“¸o4MeÖÊú±‰ª t2äñœŠ©Aa$z!ù?Žå?…è׸˜$⦜p¾ 0,l#i«g¹ IEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/viser.png000066400000000000000000000023511417122252700217200ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<‹IDATxÚÄ—olEÆgv»¶\Ë¿¶„ˆh‚¢ˆ4UJ¬¦Ä@Ы±õ‹1ú…O!ĄĄ¢ ŸP£ÁTU4(ü£i!’ ¤@)`Jà­íÕ»ÞÝîøÌùÌeYz·wÚÄI~·{»;3Ͼï¼ï;+•R"þÖ=b¢š »"ñy½Hu×qC¸´Ô«à´÷Ù½‡Eè_ÎU<: FówUî·¼ Vx®~ :ÀŸæÑrÌ`1˜ jØ_œ7À9!E·U›¾‚ã~üobß4Å®§Ø6#³w€uàA0][üFÀ°ÀŠZ†a×Úµ\UM8W*+·KK|,lµ•? v€ A$'ÞjÁàÐzÁ ߯¦€99ëH±P%ìá {H¥£kãÙH_ª§fœ¤ÚøüÌ •à%зŒOÀÅÏs‘Q¼};„¼5fuʨ³M(ÙA«Ãð!8æµk*cõ„’brë P){þÿ ¦·À:6n0&qÅë¬öAMGÊ« ͧ|÷¾ÍEF—ÊdÆ#à2˜§³°ß·1áü~*aòÀQ°“®ó·#ùäëæ¯¥˜C*Yn0—õ3ËùZ¿áCîë¼q¼À½S¼¿ÀÌmÌa†º0¹®joƒjp<^ Ï3'M–§]e!ª7–3a8Æ ð(‹ÒÏàIõ¼õNž(Ò?Áªe5¶<ù@y,Ô¦óxÎ÷¬Y7É€r¹À%-žwA’ç•Îó¸,ô­vž}Eú‡q.kBÞq4+@À1Ö…f.ÄsGÝÐ*×ÏY7ÆýTÔ0€ÞXNuâXV±ŽO¡p‡é7_X˜Ý˜²cAÕµî…_Kú4sXãOr=è·¼‹_K•LJCÜMçBN–ü5­-ð¶¿£6W'ŽËÿßIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/vitesse.png000066400000000000000000000011141417122252700222460ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<îIDATxÚä—Ï+DQÇüˆòsdeAb1ØP”äWb¯l,•?BIMI £É(?HÒ4 ,,Ø $åljFf|OÝÅéöÞx3ïÝrêÓÜï»·yçÞ{î9÷ÙÂápR"-9)Á–Â…×QbÅ„ªÀ øÒÔ¸U¶!ÐNÁ0(Œv H§T8Ö¸3 ÎÐÀ†À˜˜I¬FKŸ/Úy`PpÜ`Üè9P ÊÅ­B¸‹äÀ ¸Ž@,ÆE0’=ƒu0?mÁ±ÀŒÑ‹+E ºÀ²˜µ¡0k6à`ÛÈJZíEÿôŸÊ„¿+kXÈ`z¼èŒ­b(üàݬ”N{˜“ã²€ä Mç¼ÂŠ-pJº[g\3{9Ù,ø°ÂJ—Lׂ2qý¬ý †gàézPÊôk?-yÀÍÚé ]´‹@#ëÛÅÇrÖÀÓ]â·CÊ ª2á=Ø‘j»]:–ç"Q)KÅ‹¬ &@5{¶Ë="|R]aÉ'(ê¾ÒbDy}U§o\Å£ºuž»âUŽÄG·ÇhϾByžÎþ«ªû€–Q¥{`wÀ]S—Èÿuü-À_ºc}±nIEND®B`‚carmetal-4.3/src/eric/GUI/icons/palette/zoom.png000066400000000000000000000032631417122252700215570ustar00rootroot00000000000000‰PNG  IHDR szzôgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<EIDATxÚÄW[lUþvgöÞv·Ýí.½q)ÐBh¡­b¬Fl´„ h&†'l|ðA£ñCÄà“ÆM#B-$F¥5Pµ…€\ ÈͶ´)tKJ÷Ò½_ÇÿLÏ”¡VÜ &Lòí9;sÎÿÿåüÿŒF’$<ÌK‹‡|‰ê?&—½´ª{ŠK3|.©îÝs1ï‹à9-7@TýWd8RÊÿû{ åA?9y¦#8zfÓ8\v3––Y±ÄeB}•½”ÖÄ9*¯ÜëFufE¹adÜôx£˜˜ŠàÎL‚ !ÉÀKD|¶¿° uÕ%•´6Lˆp"i5 ¦;w•»A0APî4#IìfÞ¸¡$paЋ§F°­Ù‰5ÕËVÒžND!!åJ`NyWßX0ߢÃêåvY r ™„)ŽQ´C¤"Bã©K·pòkؾَúµ«—Ó’÷D‚“ h³Ìv¶Nß?0ü}ÀkaŒf2Ï.‰‘çG‚~´„ukœðSè84ÊdäÌL7D“K`‹ÅÑqoè»_¯Ãlˇ«$I²8N¶$ÈÚÙ“&¤2w ÄB#Šñ¤ðõ'/ÐmÓ¸M 7Hee²B¦8FcŒˆDS³îOö$i"0v3Ž+ÃÓHgœýËÇä" f{æ-f‘„gP\dBˆ"©#1zR”ä&0ëã¤\¢ûIšŸ8ç†ß†Õ¤ÇLÈÀ–è¸rËLçR4C>ØБÀ0¹^ObR´[൅ ‘ž•:z=€Ÿ\¡0HÈ×k±Ø!ŸV‰–çŸ}F©ïßΞB¹Ùô÷÷ŸÞ¹s'zzzþlnn®œŸý÷kÇw•_ò»O¸ñâ¦*¸§¢øô˲!Š•Å|òÁ¶fîÞ(¯¢\Ó××7¸k×.D"D£QìØ±---ªõI¹bKRF. ”²K°œœ’Þÿü´tÍÎÞH/¿Û#m~£Kj{¯ƒ-d.Þ@XCXJ`/%lìííeÏ« 5uuulþ¡öÀl^N(â‰UF­vŒ.ß üeëו"-èðEçEÌ¢pýøìÃךx÷||Î’,~øðá‰Ý»wÏf½Ò¶¶6tvvŽó¦dä4óCÀÎ\žŒüØï†%߀«”|·=~ƒèø¸õi~¤| sw¢»»;ºgÏÄb1L9›ÇãqIj¡û÷ïGkkkÉ\8æ…@Ë:¾:tYzó£ß¤WÞé’¶½%»¯‘Ð@XApñ¯4Öål]]]w{=s½ËåbóGÙ\EiïÞ½JxX(lò¾øC¶haXCXFpª”+µÍ ‹x¬kÙ>«Õªä@]{{»rŸ½-âëuÿ–„Ì …|!#RÁ“Œ%EQ®Ú#ðÄbÏË:::$›Í&™L&‰YΕ³„eï‡eªDæ€ê}ßÈ--àÈã÷DEù<ÏéT$Ê÷íÛ§V^Ë•ÿã,D@Ý:ÕÇÇ\?Wï™GBñžì UÌ—«,7©Èõ»÷û˜ÕÌ P’Ryy N¨RZâ‚Äl…gs1¡Ä!£M®X«úLS* ´`)þ¿.^O4 |/JrùU] 0׫ðYp.½IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/000077500000000000000000000000001417122252700177105ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/themes/brushed/000077500000000000000000000000001417122252700213445ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/themes/brushed/PaletteTitleBarH.png000066400000000000000000000047461417122252700252220ustar00rootroot00000000000000‰PNG  IHDRé8ö‹—gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe< xIDATxÚì[Kr7Eƒ”eW\Nyᵡ Ø+­|] 'È1rAå…sï½UÙ‰]©bS´DI$:`t÷40CIþTÅLd’3C >ýúu¿Æ"š·oß>úôéál6;è¾ïùcã/èþЀ¹í |0~0ÛÝÃw 'þ*vû1ÜeÜ÷ýò#Eƒ÷Ö^h©·?Îøï½ß÷Õnj'¬;Þgÿðý¾»ã:çÌz½>Y^,?þýñèÅ‹«W¯ž?{öì;³ûËó¥Y.—ææææV Æ:<€ÿ3Ýè3ŽûV+×QÀ'ú±Ë˧‚+.8d·Ùàý„áŒÄk,o*3×;*múäü§n ÿˆôúÆ8b+iÒ¤aù=‚i¢¡œB"i´åx½cô7þ3û.ú¹-2–4rÔŸ“Ö½”‰â=îïçÿäN3¶Ó/L¿.¨€ÔÏûlfÍÇ»÷™ù÷Ó§7½ÿûüôôôðf½Þ_.ÏÍé?§æââÂl6®7¶Êñ6™Ù¼‡uÙH€4LèH« E ʲ¤« ¤Œ¼kèëXãi+@*ÁZŽ[kMÕ‡t-ÄEHSï_Úƒtž€-×ÿo=  ýmyùs ”a¼ B?/HŒˆ±jŒ–°[k R¬‘ºÎ9dàŒï.¼Ç[!iÏ3©¿Þy[ uý½9H±8œ~´ñ~ RÀ°#iºÖ¿Xc2ˆ“¡`ŽZ: Ÿm·~¤O~}b®¯oöß½{w8ÿðáÃÁÅå¥YžŸ€&Ôgf¯ nä9ûÁx8Ó³Ož,ÒüÂ3̘•sÚ'#‡HuPñé;@ƒI=X qpôº RN³ÅÇÇÅ´7Œd“HjȤé»)r:ä†MAJ®ãNAÃÁjª ÕØÎ %QR÷€\aÒmR˜ü8»4&ƒbûk$H“=êLZì4†»ñØÕÕ•Y|^˜U÷¾Z­æggg{®käjµêtÓwÎf‚µrt!“g`’  ÈÄ–™]fº »%Ð#%÷íï&C wiûÉ ã’“Éã’I9hµw›pWõО9‚’:'ÓG3Ø;Ç´øX€ä˜îtÒp7礂IAä®4à/C’Ó1ÚÎr+W‰ Q03a¨Ê‹6Ùw[F$9†YÉ ­p—‚e¸«þ¾gRdk‚ƒ±û”ÓƒõòòrožêrÒs¯­3©Ažƒe£ ˆ8ºñ¹J zžPÏã§P)ômy/KB ¤:8%H¹1Ž‚”†»ýüZ ƒpÑG–á|ÎÀ‡GA*Ã] Ò~bÔp×É\|L–=}9±ë§FÎsND¬0)aG™7â@2Üi¾p8šãÒ@:H¦å¤ÜöAÉ» Ã&õýܸMç|68ç>ÄÝyð æ—”9ig²î&&eOÂ]nh<'­…» Ã?“Œ“ê©kŸ»YËÕ]à •Œ ŒÝÛL `› •án^$ʤXOËÓ©KÑЯ;¸Á2‡˜BÒR /1"aBI€i¸›Æ˜ ;_#˜´°IÉIK˜ÇYªžn`± ÑÑ»åèÂBibì&HIl8 ¤…#îÒü9;<³ä$Åš§sìMé@ÙhñÅ(¹¸€Ì;¦p7±ÐŒ÷µpw"Û‹.HáµP€ ÜÈ=b¿ËYd¡%B.ÄMCé&·CT™”iº+a±ˆUš9)#UƦ"‹œ4¥¼Ü8K¨†ƒþʵ¦Ž'àdT呬OI ®GÜ™8&UË'i^d¸MÇè03©Q™úû!SwãõœIÓñMrôùîînP“¡þë GlÛŠ+°4ƒTŽ2HQeRSaÓ» Gæ» G)•%˜Ûä¤_K8¢ãIao ï.™©ÂQEÝmtL8ÊŽ¿)ÙIÂQzù*ËÎÎŽ™¯×k³î’TÇÂÝF $‹5†”–`â‹ ˆ£uÒ1áˆç‰…IÓ½µœÔçÚcJÞ@¥% Œ9c wËo¢µ¥pDrÒVÑ›ŠC}¦Åë¤À•ëšpµÒÁH F‚T«“z§®^—K,f“Òœµ€çž­Œ CQ0–“&àðœÕZ™r¸:1'u™)§ÖIÉ\÷uRzæúú:H¤]Ü[cÒ¢îêL:&öHõ÷69)ƒé„p·&iLÚVwíˆ`4Ì P)Œkán4P0“¸¨»PÍIý—ëoœI].}èLêaÁTA:[ŒÛÚ3­æ4©¼¤Æ5vŽ’|1pz#ÂQ %%¸p¤:îJ•8‹oJ¸kûyœ{EwÖ ¦3©¾ ²$R“¹¿%“J¦RÌ€I-eRÇÔWºˆúŽ£Â¤°“®# µ™ÔV˜ÔÛfR;•Ia2“rãü™Ô‰ÍÊn¦ïͤsRÿ>µ˜ÕÊ£•ëO&ýɤÿ&u?“ú̦‹rƒºÛy‹“îoo¶û ê¼¹e®%Émªþ)@Ê·òÁ¤m&Û{=‘2ºÒñÝ'ÚÞÝv4©ÅÍœ´Vó _-+ÕÐVR¨ä`²(5ºwy©»µ™¡¹-°Ê¤¦É¤U÷îŽ?v§ÖIÕy7jNŠÙ‘ÊœÌVÏr*ì3îšÊ“#R@’‘Á†ÁºcƒzÈ\­“ŽG\zt»¨MöE}T/ìI÷wÜå£G¯_¿þó?¦‡)QydIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/PaletteTitleBarN.png000066400000000000000000000047571417122252700252320ustar00rootroot00000000000000‰PNG  IHDRé8ö‹—gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe< IDATxÚì[=r;Vkg)0Uû ”/@Æ’¼¼c¼{“‘qxE€ÁØÿ¬WýF#µÔ-µ4³¶_Aौ½3ýö×ß×- ¢ùøñã‹'Ož®V«—ã÷}>`–|––ÏŒÿ Ì åî¨ËÇ¿Ãñî>?Æ œ­é"ŽÿÀÈþùr€ù!„ðY K?ÓÑü8ßxãqÜîyLãäv¹ä1¼EŸwnïFÏÇ¢|f»Ý~º¸¸xûõë××ÏŸ?ïß¿ñìÙ³ìÊœÿ:7ãM_Hm`Zÿš` ÜXýuœ~÷˜žA‰ºÞdô4_= Òœy~ŒŒˆä”Úÿ.¯KHUý„ìfR?•±¤¾©e2Hs¡šÿ¤y0µA4 Û××?ÙÖ&ÏÁ¬•)Á‰©ÎØŸâw®“?‡&wAö)•pX·Ã@ŠáKÕϲ¾²<öðT ÊÉŽ“Õ¸ãÂ$çYN|X;k­yðàÁôûäôôÿŸ?ÿ=œ®†áàââÜœü81———ƹè©™ARD'Œ^) ä¨X@'7Èà¸Ýf–%€A¸r Ø’sŒh«ÒpÝàÌm‡çóu?©TŸR;Ý€œðÝÊú€f¦~ÓxCy›¦îQ¿ý=å4ÞH!Î 2ã`L£Û¸ÖÈìÉ_tP1~f´þ¹ÆpÃEPÑõð=”ÃtùùPŸsN©ó¶ë$úk%H§¶h,q¬¡= ÌHõ¤g‘ƒ”×`I÷É>ò\2ýmÇõ[¯×fïñžÙl®ŽŽŽ‡‘R_^ÌéAzuy•PÏAjص3)biÉ%pF-}²y²H¹$ ’A.•©S"JZ H8ˆ!9R¾ ¬‚%Ãó+M % c*¯3©dPd,m ±fÒA* ›”—ÃØ¤&ÇÍ0©Ò â œôÃ@Š&·åÜeÒÞú¨ M\À@*1²P„”›Î¤˜«žž ×¼’=?ñxµ1?þ|9ïÃÈÛíµq[;kHý=IÉ3TL%ågbÉ0s‰é»©€!o7¶5Mk˜”×O–ã¯Å¤†h)“fðB—IépI͘T /ØŠi¡ciì"% %ãÝ ¤\´)(rWu²)¦f´œ¹© ÒžÜ%6å%¼Ý·,™”ƒ”Ø2 IgÒ%r·dRºõ˜Ô¤Õà ¤Á¹Êy»¾¾6—cè9‚tð¬V«`\CÿèLjPIkD!e<é¯o›Lª-¶RMîÎb½~ï¤Pªƒ…r—Æbm fÕ‚álI, ¼–)]îrƉQAê˜aÏ1©3Œ5#`Lü›˜49 ¹‹ˆM&uT“»s Ã/΀´Œç—Ê]k‚‚I K›¨¬Ãéé©Y*ˆ,j4kDL:ɯ‚I³Ì“1©44n‡¶+wKÙŒƒ40e¤eÙØç@ e Y€´”»i‘“zvËùèPІC—2¸N*%5»ëkw)ÖÉ@a\®Ë¤`Ò,ý‚a§2“f6Ér7Ë< Òv¸U 9’¹[À8”»RLfÍ"ò1i -ånb|ƤSìLóNI`Eµ0Þó²×ÿ Ýt1…)ùMî)0©ÄÔ M)D ¦2\† ÙÈBÉq¬3©–8âõ÷³»µwun›@E ^nÕ$+­’o“TÒ]‰I9HçbRaµUЏÓhmtG ÊÈì.Or&åL çò_“>zôÈìíí‘__$wo—8*<–“@×G“ª‰££Ê¤%H5¹»kâÈTõþžÄÅ í}Òߟ8ª¶+Ð0ù{ûÄ,HÍÉ]Ù¿å‰£äø‰qo‘8¢;Û1Ö~øð¡6›¹ººê‚TK‘„Ѷ`B_æ³»|ð½ìî\LJmk1©5VÈ]5îå{‘N ´œ\î†-—å[0Zâ*†ÆUa¹jÒ¤¦‰£]äî®[0j[0Îá¢ì®ÜŠiƒt.&MrT‰I 0Rß^nÁ\]“¦0¥“8Ò@JLJÛ2t'dx¯H=¥¶@ªewC¼Y'ŽJ)[TèlÁÜÕG\îöbÒ Ð3‰£“NÌØMµ·pT uän0+bÒfdMî.‰I ¤.1˜Î¤–…%Hµì®‰ê¦,×ÏòÚ ¤\Ûfv—ËÝ^âˆD×MG<$Øù0C‘8rÂ)Õr×!²öŒ“£¼&Ç?ŒŸœÝÝ™Iõim'ô˜”²®wΤ+«‚T0_’­.µgS¬ j\­ÓBP³v›I‹L Hÿ&…ŠIçŽÃý¹LêŠÃJÝ¿™I)qäŸ<¥úŸõz`Ù{&½gÒ{&ýLê÷~½ÂõJw/|=ƾgÔõ°Î'i"Hјæ±ÀVLª%Žø±À¹˜T²)˜Tn[´€A©m07Ëî†6`§}Rª¯“j‰£ìl•Ý5ÅVVÞîâ14Lj—žÝE¹ÕÝ;Ì;3‰£Ö±Àr f “ròcKÔÚm³»“úòþôßÉɉ'ÐOï_¿ÞŽÆñ—¿ùôÉS¯GV[ýÁgw%3‹³»wüf±òýÙÝÿçì.1iN4%Û êú•Ž|éºò,ô’õßÉV(4¹áÙ]79†í”,:þql¾y¾¾}ûöúË—/«auðxïñ”òbT‚<é4¸ÎL0–åLZ`™S(ŠÜµñpD“šhÔ`똴Ü2Y~â¨>î¦8âÙCDÜIîvÄÑÄ3Èåa†yK\&w+Ï–Ø `HÃAÙfR0F} ¦i:"‡\Nac‹·–»â;„Á3$Àh1©i‡&|ÛdNî:á XÌû¤¹y,Ë]bÒíÈܛ͕9;;3ß¿7#~X¯×¯ÁWðêÕ«§?O­±/ÇGö[‰£úÅ1ì¼VboIcÒžWj%h4À´½t7Ñ{^³Ú?UÀ*·nJ‡¤©(ؽަ½rVϨzHaçO:SÈÝ>ÝøUµå¯¬á9‹ÕYõU5ÑOýUµ˜½ µ¬Øcü¼/€ò´mY2Çùiüy»Ýn_¿yóæÝ [" ý3p IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/addmacrofolder.png000066400000000000000000000007211417122252700250200ustar00rootroot00000000000000‰PNG  IHDRO#+QtEXtSoftwareAdobe ImageReadyqÉe<sIDATxÚ¤“Án‚@†QIILìÖ¦&ží¡&ÆÞ ûöFÒ·¨g^Á[}zá1j0ô€/€©¥$$$Hƒö×5 @èvf‡ù˜ÙÙYvô:bξ÷Ø;v]7ÜØ¶ ÔëõEjö1Ãj.Í\¸y×ÄJëÝe^ XÛÆàiP«Õ2HÇq4M[}­¬}ßæ¨d¿ßÏ&!@‚é–Ã9Qm·Û-Þ§V« þ2ô²—dåQè*•Jÿå9þD¯ƒrAP)—†=DAo·Ï¡@Öÿõã÷L•x%†®áóð8B–ej(Š’Wª•Ü>%ûÂÇöþÚŸ¼M¼µæÇ(;ØlRÆ3´¡êyëƒ]"ÿÞ.§ÎvŒLÖŸq"7>ŸÏ-ë‡ëØ·éô=•1Í%•ÝlcÖ Ã$©à„éºà®lŒ8}U‡¹!˜õméŸ:èÌ”WUµÈ“¤äI·á ½…c.‹à?Di€qUÁ3IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/addmacrofoldersel.png000066400000000000000000000007011417122252700255220ustar00rootroot00000000000000‰PNG  IHDRO#+QtEXtSoftwareAdobe ImageReadyqÉe<cIDATxÚbljlb °è蓯ùëׯpλwïjBhæææR/\üòãÏÇw/ jæç်dóÛw€:™5ƒ5…D j~ùîõ—ëk–©¨ª0ùâDè ²b@-@6П@שbóë<@-@LxÔM¯"4Á·oÿÂÙL$Å ÄZr4uÞx͉ÏJXœ .Ô’áæx ùí÷“ø9è‰U@ È\9~8ûÇ-lšïýbð¨[a¯« ’AÍ«q™Î„¦óÝ›Ÿ$¤mô¤+Âgs±2¢‰ÀÁ3ˆfYYÙË—/ƒ“‹j_?üäiH]´«…@@¨‘ ˜¶iýíËop9ˆN<àÇ݇@-@ ?èj<;:ãíÙ[#ñ  ²¿××µ ü äܹ½ñéѧIZJZ¬%À€Y ˆHJ­L Š4ÇÅ‘”ýªNEIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/backcontrols.gif000066400000000000000000000012461417122252700245220ustar00rootroot00000000000000GIF89a³ÁÁÁ²²²µµµ®®®½½½¥¥¥©©©¹¹¹€ÅÅÅÊÊÊÎÎÎÑÑÑ!ù,ÿÉI«½8ëÍ»ÿ`(ŽdižX ®lë/,Ïtmßq.ì|ïÿ‡ @,H€rÉl:ŸÐhrJ•Z¥Š„vËíf¿‹°BL.›Ïå‚zÍn»ßð¸aN¯Ûqø¼Îì û?ƒ2ƒ‡~E>Š;UŽWX^]‘Q7s9zš0ˆœ|— w™{CŒ¦HC<•­W¨«©¬´Oc·¸h¹» vr¿ÀÁÂn˜›4‡ž|ˆ€ÌΤËÐ˪µ®Ö×”ÙL¾Ür¡Æ£6ÊÑÒåçÏéΰ¨ÕØïðñQÙcÃö÷oÅÈÇä/êÿ‚üˆî;yéi[è_7‡3nŽ3jܨQÿÚL誎¿~(÷ðÓDzåÅ— ¤&’JÍ7Gê$éä C^@w­ GÔ%E‰¦…Ñc¢œ;eIù4*ÏŸA³ ½sÔP̦_ ÕêUl>ž]¢•ƒ·p H×W˜bó’ÝË·¬Ù¿k05wr©ÊÂ^õ6k”ÊæÀNü&ÙV—åÊhæj®+1À]q‡Ag¤jª¯ifS'Cž§¶µÒ¡‰ý¥3ü)É®´7JN­»ÝfNÂ|7çã¿^‹V¼n¬Lf¹uƒ¾šµuKÇ¿U<ýÆçT™/žõ›zõóWo!ßÌ^¹Kñßã;‡Ï¸yôX[sa¿ž¿6ïY„WSlÝ&ß46GË}ø=Ñß·}µU([‚Ž ƒ v„&·…ÆT b±=œ~mé·ÚmŽZŒÚÁv"Gá}Tž#ÔqØ[`i-D\;carmetal-4.3/src/eric/GUI/icons/themes/brushed/createmacro.png000066400000000000000000000014761417122252700243470ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<àIDATxÚìV=LZQ><„€ Vˆ­ a³õ‡]1a© {ü©¶&ÆÄÅA·Æ8hRWëfw’F"$”AY¬ à@bxÁW¾#÷úx<Á©˜¦'¹y÷žïÜ{¿{~î»MÓè%ŠB/Túôƒ''Úu¡Ð"¯‡†èÃ쬥ØÁÁ–Ïç©T*õ„˜Ûí¦†S´õõu&gAŽ R^¯—ü~? šN¶Z­T¯×Ÿ=~JgÔ—ËeÊår$8€œu|lL»¸¼dÅôô49N9ÑXb,°n¸^×–ÜŠ"1ìéóù¨R©0¹r©ôEAN!|ð”^pl`&f^é„›ÙšÙ ÏÀœdŽé×L&iccCŽ#‘ÍÏÏÓÚÚe2©ßÝÝe/'‰ûïGGônt´…L±X”á‚Óá|3¯ð^°5È@DÈ@æøø˜ûÁ`Pâ-Ò<£Ÿ™3æwÛ«l<77ÇÄÂápKþLNMµ\UUjÔ)Ý×ïªR×ï&fדôw¿«_6!¡Pˆ½µµµEj­&õÕj•îîîø;ÙôܯFΨ5• aooI¡òÐèO 0A^ˆ¾N'q8\HþŸ§§¬Cb AWWWiqq‘>.-±—áaæ A¨Ìþ*¸íém;Ÿ˜ h4*=ÇYÝï«+i‡ò¾ýu›ƒnäíHËzblv]m%1Qu·•[x5ðp››qac߸ùSØspHẠ‹¯ôt&£!GÞÏÌôô©sq~Îá'%8ݼÑQq篺¹¹¡ôÙsùº²¹¹©õòÙ³³³#ßc–ÿOë…Ø:ó€‰Ú"‘IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/createmacroover.png000066400000000000000000000014761417122252700252430ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<àIDATxÚìV=LZQ><„€ Vˆ­ a³õ‡]1a© {ü©¶&ÆÄÅA·Æ8hRWëfw’F"$”AY¬ à@bxÁW¾#÷úx<Á©˜¦'¹y÷žïÜ{¿{~î»MÓè%ŠB/Túôƒ''Úu¡Ð"¯‡†èÃ쬥ØÁÁ–Ïç©T*õ„˜Ûí¦†S´õõu&gAŽ R^¯—ü~? šN¶Z­T¯×Ÿ=~JgÔ—ËeÊår$8€œu|lL»¸¼dÅôô49N9ÑXb,°n¸^×–ÜŠ"1ìéóù¨R©0¹r©ôEAN!|ð”^pl`&f^é„›ÙšÙ ÏÀœdŽé×L&iccCŽ#‘ÍÏÏÓÚÚe2©ßÝÝe/'‰ûïGGônt´…L±X”á‚Óá|3¯ð^°5È@DÈ@æøø˜ûÁ`Pâ-Ò<£Ÿ™3æwÛ«l<77ÇÄÂápKþLNMµ\UUjÔ)Ý×ïªR×ï&fדôw¿«_6!¡Pˆ½µµµEj­&õÕj•îîîø;ÙôܯFΨ5• aooI¡òÐèO 0A^ˆ¾N'q8\HþŸ§§¬Cb AWWWiqq‘>.-±—áaæ A¨Ìþ*¸íém;Ÿ˜ h4*=ÇYÝï«+i‡ò¾ýu›ƒnäíHËzblv]m%1Qu·•[x5ðp››qac߸ùSØspHẠ‹¯ôt&£!GÞÏÌôô©sq~Îá'%8ݼÑQq篺¹¹¡ôÙsùº²¹¹©õòÙ³³³#ßc–ÿOë…Ø:ó€‰Ú"‘IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/createmacrosel.png000066400000000000000000000014321417122252700250430ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<¼IDATxÚìV1hQþÏˉšÁBÀ!]\42Ø¥ÐJ\$‚С ”Ø©SÅB†º¥sp -dmBÑv(¦Á’` R¥2tvÒ%\óýå=îôÎvŠ)ôƒãÞûÿwwßû¾ÿ½{Š®ëtá kŠ)c'ŸÏëÍfs"D|>---)¢¯+···õï''U)07G™LF‘Ä)$æççÉëõZ>¨ª*]\\üuß.6?;;£jµJ‚È©¡PH¯s ’Ëå’/ ѹ?屑âv8dßôûýô³Óar?:QSPḚ̂‚•*ãòVc­Æ Îp’Åo´¯\.S6›•ýû‹‹ô$¦d2izÑêê*«|xxh¿±±AÁ`ÐD¦[«ÒëOŸéöÛ7ûúð=¾w—œá[ÒÎÙÙYëíbxæÅb‘?þ~_æÐ/ œ)¼¤G “ørt$Ç R§ÏÒ’€6býú7~ÇØípjNKyU‡jš_—uònoÉÄb1î?]YAa™ œ•²±¹ËËöĦ§§GÈ$ i¥æÔ¸ u„mä3bÑ CÓ4“RÃàÜ8bV€= aœê'‰ŒŒíõz¬)ŠTÌÔ«íIÖ˜Çã‘—ìZ©TŠýŒŸŸŸ3Üï,,p ÖëuêT*•èÕæ&·a#î(t;ˆl7–ÑXÅPWXøpéc‰ckkk&Ea7ÈÇ¥Õwjc'rƱ#ÄÜn7u»]n‡Ãa¶Ì{ã·Ä»»»ÒF#°¼¡ðóõu¶»Ñhp,˜ÆybD[/-·‹›ÈY@Éår:–7V“ݯèªÐn·igk‹Ëc ôKbz­V£x<>Qb¨SœØJ0„jVÜÌÌÌ•jµZT©T˜¸˜Ž=“>ú<#Äþ­ÿeb¿AGWòu±<þIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/delmacro.png000066400000000000000000000010361417122252700236400ustar00rootroot00000000000000‰PNG  IHDRºÝ átEXtSoftwareAdobe ImageReadyqÉe<ÀIDATxÚ¬T;nÂ@³â+Â" %©ˆ¤¦sŽÁYBÍ58gÅ•9VË$>¦€gM6k o‘)ÆÏã™·³óqvü1Îü“ˆÁÛ@1…a˜ÏçC㕌‰ŸøUìv»ø §Ói³Ù¤&R¯×áI¸P(ˆjµ*Ÿ mÙø¶vש\­ç4ßì7/¢‡^9+€æSÓz·jµÚ¢ív»\.½ooþ9x ä†ÔH“ˆ†Ãác"àg`Á „Œ Q#\­×ëé÷®Ýn#`0¨lù@M"\óÏLpSeÉår©DA@7{•ºÓ7ºl&s¹Üp8<Ÿ“gUž7’J¥Âx4%†M&Å’äYM•xMÁ#¸ê ¦Y/—KdÙïÓéôx<ê°Gõâ%`ÀDŠÅ¢înË;D¦R©|8ì9;}1xP¡1x0¹®«ïy?4±ê…4¥†uµmÛ²,M.ÇqhÃq?Á[MŒÝ×.ý'úý¾išX|ß_,pF’ˆòŠ;Ýl6Óùçt^:Ü4Aí”»IÙÁ‰›MFò‘eÕ>N¤ ‡©ŒŽòI0âM¢&p7d­eÔþ*Àì˜ÕåO&IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/delmacrosel.png000066400000000000000000000010441417122252700243430ustar00rootroot00000000000000‰PNG  IHDRºÝ átEXtSoftwareAdobe ImageReadyqÉe<ÆIDATxÚ¬TÍJÃ@Ž!6ØÔÖ¼B¥¥©¾‚7Ñ7ðèS/¾„øžú^¤zlý/Õ7U1‹_:qØnJ“Šsfwg¿ývö›i6´2£ÑØT¦Â0ÌårÃcH“c—xhôûýä A!R‰”J%dRlš¦aY–|&¼ã\cÍuŸR±l{žoó"xøNçÁWec»œŠåúÞì]«Ý¾ptp5ò” »XÎRl¤=/í"tŠÀ5ÂÕ2/o0-ØÊûƒ„øÑ?ê´F¤xß‘”2-Ð7§jUÖ[¬;Ïññáž²á-ÀoœŽÑýX­& ØV+ vcy\u°S´þj;ͳŒ·ŽtÏMÀù/Aö F¼äBÉËÅåLBé 3â%÷ß×Í›…Ἷ…ÅIˆH€!àŒÔ ÔЮÂýÐÖâÉÉ@Qáï©Ã§¿Fëõšq".»tàdFHCo£±A"â¥Ô4ç8­Þy¦?§Z]gUT&ù5 NÓjòËrŽœ,Ç0]ÓL~$"®¸·©‡øÿV~tþ×d“ÛŽ i? Ž©ªÂIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/leftcanvas.png000066400000000000000000000034031417122252700242000ustar00rootroot00000000000000‰PNG  IHDRj¶ï¼ŠtEXtSoftwareAdobe ImageReadyqÉe<¥IDATxÚœ˜ R1 Dƒëå9b'íÿš–mæ‡T\ÅgÆcËZ[’Oîî¯ÏÎÎ~Æýýýöû0¶mcŠçíüüQÚcˆìNPðÈ(g"»çæÆb†Ì‰5nc;‚1u•D£0 ´ÐLßxŸã€¡r­DÚš­œ–,PÅ©<:ˆ`ZIexô†Ëb1røž¢Õ¸þ‘öa©`\¸ÐZk†ðņؾMQôùÖG/+f×ò&xwðIZ¿U¹!rk'ýÉ·Q ÿ¦ LU×EÈqòéN!e¹ÃÚdŠšÊîÀŠý "]“ï ÉÚêîœÞ£è5oÑ.DˆrLµ%e¬ã-ìþ‰Óm”e<ŠL9g-ÜÊBcjrÜV-ˆðö5ªö¥é؇í–.³ê¯øDú¦fì(|åŠmê¶ ·+¢ålE¦#ït<ÒÊR1c¿£ ¼+îì¶–Z× lI††Ž®\­¸mu6‡î\‰ý-9«|ï¿Ækƒ úuŸøŒ׫ÍýtRW)ìò%/¬a뙫þÊÆJøDwµåä;˜³]”ûÕºÿ"1Tý5bN×8Á‡“ûbM®õ˜£wƒ{Ћ8DÇk†µþ²cæî±ú´xtu`°JN­›1‰²à{Ãr¨O].UJ©L›‹ªÊ6h3ˆpʶ³®[¶GÏšÝË·oS°€U uêV”]+Ë´±ãÇ#—E›v-Ñ˘ÛÚõ·sçÍoéÞÍl9¯^Ê'ÿ ûµõbÂ…µÊ~’õ°mĆ¥&»š·äß“Q—N¼8éeÎ@Vž¼¹óå¤ýnZúØ]°w¿†=¶ÚµµowÝÝ;yRÀ§÷]o]=uÍÌãC‡Úóóû£«¿7®¿=vîèØ›ÿ€å™"[x&x›‚°ŒGàƒ!€’íÇß…ÑEŸ|ÔØç!~ù'¢†Šs„ÿ¥8áŠ,BhÞ‚0Ö†`b_ÀH£W絘žŠéä™I$‡I*Çdiªi"RT’I¡uÒ¢¥—|ÆøÝUSp èŒâ‰Y¥•aâi&šPú¸hœJÚ•›”"iiˆMö'utF™gÞiàž}J(¢ª šj¢¡ ø¨j¯Ã(¤Ý´ië­l‰éš‘òúæœzì°ÂÛ㨤ªªl²~šêlI—¸-Û*ž N[¦£§i:+­½æz)5„+î¸ä–kî¹è¦«îºì¶ëî»ðÆ+ï¼ôÖkï½øæ«ï¾üöëï¿,ðÀl0»;carmetal-4.3/src/eric/GUI/icons/themes/brushed/palbackground.gif000066400000000000000000000002301417122252700246420ustar00rootroot00000000000000GIF89a"ÄùùùÿÿÿøùùåäÙôõõ÷÷øêéàóóðûüüììäúúûòóôõõóñðìøø÷ýýýççÝþþþïîèõö÷!ù,"` Žbô ŠPLÄ2@F"5ãxއ;carmetal-4.3/src/eric/GUI/icons/themes/brushed/renamemacro.png000066400000000000000000000011401417122252700243370ustar00rootroot00000000000000‰PNG  IHDR¤RtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚ¤TM‹AažËÍøHX©‹•)¥d§4Y( ;³±ñ#سµó”ÿ`5ÊBŠ0+LJB sKÍÃá¸.s-v‰ ¾°ÜBÅÒh4B¡Pò# ¿ß«Or, ï±? *•J:…ª– u„ûr©T ùÅb‘tÝNðjÒ€ù zÝívPÌL&‰DT½ãÂEíYFš=úŠ¡REµZ-‹Ýé Ãd2m·[ÖëõzK¥R·Û…OŽ,‹½ê àt:a§Ó)Êv»Ýãñ˜,ß 0v€ÙlFgïpêx@˜¯×‹F£óù¯d5€Ù!£>‘HÈG‚ IR³ÙDG!G¥Y| ^¯#8 B„P.—UÃïáägòðfpI.üÍÔ‹òP^bwÙÒâå®Ó>u 9‡»Žn½ÿ.TŽV)Éù`!E&óÓ}ŠIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/renamemacrosel.png000066400000000000000000000011101417122252700250400ustar00rootroot00000000000000‰PNG  IHDR¤RtEXtSoftwareAdobe ImageReadyqÉe<êIDATxÚb©¯od °èêjS¢Ÿíׯ_,˜¢Ÿ?~ÿþ=Aý‚‚‚¼¼¼@#€ZX :$„öìy ûÅ‹gM‘’@¯52.]º.qëÖ ɨæ'À'NДŸ^þ¿µ b; @äˆ4€Ê®³é?þdú @0,€Q¡ 'ñ¸å/§P P# Ðpƒà cÅu @®áðî5¶­kĦË/yàꙀÙGXAGšÃÑÕS€ d7¾üEVÀDdº°Íñ Ά°F¼~þ‹)È¥1NBfÏÜ÷9˜ÐŒ¥]Hˆ … HwR’~Uó6µ%¢’p©ÿ7Á¦à ‘›ßþ¿{ñõݽS )™áÌGøƒCH‚›Á ®pA ¹*VŽö[<¦]lÐ/ooŸƒx È"¸)(áΗ/_GŸ“DË©5f (bàÅÀàÓâ…pÔ«ï@RNN”xÁMÀ vÿ(: š!$¾báÙCHžå€Ï`ÌšÀ|Ì`_.Ü &•‚rrž†ä`Î&²dPSSæaˆ)òk9†UN¢Ä4ÐGÄ—p͈8‚—zp!<ö£)€0€â2„özYýƒ¡IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/rightcanvas.png000066400000000000000000000034661417122252700243740ustar00rootroot00000000000000‰PNG  IHDRj¶ï¼ŠtEXtSoftwareAdobe ImageReadyqÉe<ØIDATxÚŒ™‰rÜ6D#˜’oû7üþl—IVäôìëê®VíjIƒ9{ÐÍׯ_¿|ùò×åúýû÷?Ž×¯_¿yóæùùYîîîžžžÞ놇®‡‡‡ûûû}â‡t¯¹O—«&j`FùÑ«W¯$aŒq{{«§-K7ún%¥w5Q ~||üóçFévð‰777¥—nþ¾\,*ÑõHâ4PSôûýû÷µâ÷ïßuÃô“ukYZ1²†>Rç`YM”h¯R¥’:š‹ø…ÛXQÓk}ôëîr1ʃçëÀŸ˜Yõ(7øºœs{¹Ê-cH•Á{î=Jºýüù3Ž.çèRÐpδY¼]¥Ê2ýÁ3Ï—Ëz½{÷ާR°<ºZÛ¨oß¾%hƒä²’—Ë⥗nZ/ ÓêM¶B×:劕\œ±#¹»°Dg`yG{ç_[¹´zx¡S.µmžÐCšOœ@G¾—}‡Ä_m¬ ¡<÷½ù—¤gà­&Jê’A¹¡6J¦D½}È¢&†)™ÆLÈO¶M1æYN€½Òà ™ë8Î]V!=î—Éh´ojͬ†¡y»µ“ÓF_¼¬Bî$FSäÍ£qμÓ)YÛÞêŒFÍÔ!G.à±TEv¤“‡œÈµ6^)wúTº»CK$´K3¼J1Ì¿A·“Q¸4¡™ô¡¹?Ú@ðJ¯¯—(DŽŠvçæª%W ZI8ï¢ÉÃeʬ·Ht7~I³Ç´&³Ç™‰¶£?}ú´ÝôÇ}‡Ÿ‰å¯™í\î\ ó/ö! µmŠW}€ ‰@1ÉÓþ 8Z7é|mœ˜·[>@H ™g“‘-£‰[ö0 9 ÜÙ9%·4ÿðÅÑÞÅÑ s¶6[²µ·çprônª¿§,l£ôbT‡Ví[kKµÆœùæú)qO%• G—UT‡=9°B–1gˉåLÁ›kâ˜vbè˜ñëº ³QwÐæœ ¥¬ô¢Ï¿xà Fòžu½Ýšwø'»“¥5áEãD\jØN¨S {Ë4úR3!²#}*{ds¦ü,»9؎㸠tY}¨4Ÿ›,çXÓÝŠˆõiÁÌs|"2óŸí› Ò7ˆiOœ«J>íç_Á‘Jö?èÊ ÿZxt·¨bÀJ9ÑÜ—ð,Ç2ñט©w#æK™³œPö¦6-à%²åœ›CK~Yn¿Äj¡tÙ…Ádsíâcs=ߨz­ƒ¶õZo)9>ò‘ØŒ&N“襌J[¹)[· ]ç¬È!ïÇ«HÝ7e€‚Á=`INù³}¤IjÝÚ£¤ÌÒp²æ˜]ès€$¢#ÿ’,rž¾c;¾½Â _ç šã52Íxu†L@õRÛÿ½¥ìFÁ G¬G ­w¡Öçü‹âÛù×ÿdL $ÆfÏÿ€èåòßçWˆHïk©ý>©™±–ðÿ˜Í¡,Û™Õn¶ù—´>¢Þù׿eDÈè«䪦ÿ#Àœ‰E%ÚäIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/statusbar.gif000066400000000000000000000026671417122252700240560ustar00rootroot00000000000000GIF89a³ÀÀÀÍÍÍ´´´ÒÒÒ±±±ÄÄÄÉÉɼ¼¼­­­©©©¸¸¸óóó¥¥¥ÚÚÚ!ù,ÿÈI«½8ëÍ»ÿ`(Ždižhª®lë¾p,ÏtmßÛ¢ï|ïÿÀ pH,ȤrÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿CÌ@.›Ïè€zÍn»ßð¸|N¯Ûø¼~Ïïûÿ€‚ ƒ…† ˆ‰Š‹ŒŽ‘’“”•–—˜™š‚œžŸ ¡wvi¥h¨©ª«¬­§¯°®²³´! ·¸¹º»¼½ ¿ÀÁÂÃÅÇÆÈÊÉËÆÏÎÑÐÓÕ ×ØÙÚÛÜÖÞÔßÕàáÝÜb±´éµìêñy„¢õöðøùút­çþ0åÄ ' Áf&dFm¡C…‚æËW4‰36Œ¨ñ×ÅcÄÿ4ôfî€É“(ÿµ(—²¥KëLí›IS¦Í›òæiBtïÓ¬š@ƒ¾éG´h…mX¾\ª’i@”ÛFäˆ ¤HˆR³Rø±#±Š`ÊkõªV­ ЦuêY·p×>“«ÔiÓ»bâÜ›³§ß¿pŒ V9ø_I—má¾UÌx.´Ää¿]ŒÅËd1kÎÌ9³Ù…’C‹Mú1]LJ™â%,A/_š€ûÆžM»öÌÂ?q³Ö­"`¸Å¥ƒÚëæÎÈ“—íÈ•¸ZÔ$OCŽ ý´óȪW».º7÷U²m÷¤мxO{½‡è®~uR¨¿…›®N_zýûò±2ܲêñÿÊ(àÿ€ËLWûñw]~ 6X—]Ù¹W{¨eax@€†7qØÞ‡†Út–¸ [ )hYY¶¨s“•âŒ#јbiPA¨cˆçPh!‡‰!›œ'ä‘z¨ŒáŽNúf"c7ÂØœ~ Þ’€_Uä_B~¹¢˜c†ÙeËh~lV—c”KÁ©cj=~—›)J¾ÆO,C‰ÞK‚¸› HI"[Á­Ùà‰1žÙ¥‹B Ö—!Ijæ£bQª)£ÄjÝ§Š¶]¨mBiB ƒQ(ªzâŠy~ ^;yªÇW­„Æ g|*êSž2(R¥Vu¦é¥‘Nšæg by£ÿ|¤þ ìI &ç“ØŽ±*­|º‚ä·Ú+ ;Åjn ­$®©VÈm®/\{Á®ðIm°‹=«b³0ri)/Ç"+°™e2«/uÀ¢ö&µ Ó{-¦žÀ궯›îÅ÷ù­Å3iƒ¼Ø»è4Œ"C#”ì¿Êœò¥üÚÈ)p6éÔˆ"W›-ì Å1»vf¬q<;%2À¸ç&îÐqüìá ðî\‚¡&Ï\uÕŽ’ùrûmí5²[-Ö0RPjs¾ó…:vÄR¯ºqÇnã)´lä}tlsßZqÞð8ÍÛŽ…Þ 2Û„V˜_»œµÖ×Xðâ,{ͨ¯9_èàmS<ëÿ:Lv;÷«J3nè£Ïá·ÜðF×»êMË0Ú–O^yq‰û9‹È)ãQÉùZ-ì”Ç%¼5™ :œ? ôñî^¼4lå‘né>ëͼǸ'ð±ç;‚ú"î/Ì"|ïùÁw/6ÙO^Ÿ|ó›ÃŸúꪈ®1ÒÒRôþüãO=êžãÛÛÒó¾h¯pw9`ÈxE%i¼,fËzœÊjG)€¥ì{ÏUú ¶=îÕŒG¬•–§¼š0]ÏóKÝò7½v(„×cæ:hŽ_É(fÍÙ÷AÞmIqÄTãd°1lÐ2 á°wÚ¯…) ÿð°¿{8q(û¬MpÜ»á•x¨;4‰i|¹ƒã€HAƹQ‡2[#§6覢‘†a,ž Eà AñŠzŠ" ÁõB/6òtõS’Çv¥°’èl ã£mˆÁ;Ò±‹û$ääx‹;carmetal-4.3/src/eric/GUI/icons/themes/brushed/titlebar.gif000066400000000000000000000024041417122252700236410ustar00rootroot00000000000000GIF89a³ÁÁÁóóóÎÎβ²²µµµ½½½ÑÑÑÅÅÅÊÊÊ€®®®¹¹¹¥¥¥ÜÜÜÕÕÕ©©©!ù,ÿÈI«½8ëÍ»ÿ`(Ždižhª®lë¾p,Ïtmß[ ï|ïÿÀ pH,ȤrÉl:ŸÐ¨tJ­Z¯Ø¬vËíz¿CÜ A.›Ïè´ZÀ^·ßð¸|Nw×~Ïwøÿ€‚ƒ„…†‡ˆ‰ŠŠ Ž‘’“”•–—˜™š›œž‹}¡¢£¤¥¦§¨xªwvj¯°±²³´µ®·¶¹ºµ"¾¿ÀÁ ÃÄÆÇÈÉÊËÅÍÏÐÑÒÓ ÕÖØÙÚÛÜbÝßàc»­¬åæäç«© ŒŸšìëñ|êóõö÷鸼ûÞý!×RHЙÁƒ*DÈ ¡Ã‡#JœHñÅ‹32ÛÈqaAÿCz ²d¸“âø©L©=Tðbæ›I³¦Ís+ý¡Üɳ'8“"GvJ´¨Ñ£Ë2V„˜´)R¡Íœjœú”$Pn&}ÚÈ*Pk—`_ÞlIÖ%ÌEïàáVìX°ãþaíJ×ëÖ¹xŒ*•jU¾€÷Mº´°áÈýþiu¯cÆë´+&gå¶féœÝÌŸç·-+ëD1¹äcÁ‘Ÿž†Z°b¥‰cËžmxðbȸ‡±ÞÍ»wÈÒ”G‹f‹Y³ñãÈ“îÌ|¹óçÊ£ƒ¶,¼z^Ó¾³kß®»µ÷ï¶a‹§=¾<ù×·»sÿÍ~õzaíƒKýEqéЛǔ™¿ÿÚúö(àÿ]ؽg`|íx„™wžƒ>(á„襷 zf¨á†"ÜuòÍÇq÷ág¢Ó•5 ˆúT { v(#T †á>háS6òˆáŒ~âOCâe$–¨ä’'6ÙÎ~j5™"“TêcÝ‘Eº˜å‹1Öè¥`ö¦˜8VhaBb¹%—iªùU’UªgfNê÷dZQJ)çœqî¹"ikrÕ¦›²Ù%™f":f¢@Úh—4(¡Hþi)(fZ§P¢Õ)§òh*ªsV^j*‹r*骬Fú¨«®•™£Ž 0ú꭭ª뤔¢z*Ÿ˜J ê°¡Žêç¯È^©ª¡»æÚ,ÿ®ˆÎ*ky_V;&®ÎÚb¯ö Ú·nz§'äâù)©àz;e©–ª-·Ë2ëèµôò5­´ÔÚzf¶ò>Ë/¯Ü¶+p·r Kì¹ûß±ܰ‘ñú+q¿ÖÖjñÅß‹¯Rwìñެ/¶— /Ä& ¬ºz2¬Ë‰ãzšçÂ*¦k³ËFœò¶)s«È#×û3ÐDk¼qmA“ì¬Ä?*½³¯³À2ÌW½.»PGí¯ó:½´®C'zôØ´&McÓ^ƒýïÓÊf=µÁp‹kµÜq·L³ÖmÓ@±Ú|çvkÑF“]6Ñ~Oü5Œ‘²í6}x¯\7Ý ó§ðÕ WnùÖEö}ø±ÞšÛ ¸àƒ:áB§mzâ=Ÿœõ›Žûøä7‡ÖxÞ©êܹÒ‡üyè¢÷8éh¯;ꛯ­úê—¿ìúëTÏ ;ó8'Ÿ3í¶ûð¹ïÎûö¾WôñéÖw}®*¯<}u­y±áB¾>>XS/u»™‹?>øá{Î=¾ ôïÿÿ  HÀð€L ÈÀ:ðŒ 'HÁ Zð‚Ì 7ÈÁzðƒ ¡ ;carmetal-4.3/src/eric/GUI/icons/themes/brushed/verticalseparator.png000066400000000000000000000042171417122252700256100ustar00rootroot00000000000000‰PNG  IHDR jGäçtEXtSoftwareAdobe ImageReadyqÉe<1IDATxÚœZ‰Rä: \B8‹â;øF¾”ï ¦8×kOkZ‡•vSµ³qÛ²ŽvKæìñññáááÏt===­WWW———ó;<_y×¾^ßßßÿÛ_åž1ïîîØþþþ^–ÅÇüüüÄ'l||¨ž¯¸nnnØÖ͘ :=??Ï‚Ø|—û‹“éwÌG9ç~c¾-9Ç|xÿòòÂöùù9¥Åc>\···ú\ÒÚ|»Ý²üüü¨p½ Áñ{qq/pSû¥õñ®]ƺe L¹â¥ˆ‚àþëëk¬ÓPg˜_JÀýBè. »PuÖ0Y6åD'ÉÅ1»cZ™z¡ EøÓ]Cg°‘t¦‰«®©#Óèý¸’!K\ŠO†Î ®dã°x‚,Vð®,Àõ"W§î“Ïsízú»µóY'¹/c¥¬ã•K)2!¾s¿–%Ñð êŒßRAÃãHk¸¾¾ö8Šk Û«iöÊ$ûÍK¦¨Ã¯K¼ÛÊö7æg„êÚåŒøRt=Fx{{‹"#ä¾1ŽlLè Ÿ£ñ”ýðyñ N6ÖŽ¶ÞQ/’¨_;º&¬+vz—_GÐEs-C8€ÛHßÒ©µüáGúO…Y¸·1·®£k8f?´#zà;Ç3ô¥ Íw¥—Æw[YÌ—6÷8\òóbdë'xP° ßåÝ$ù ÆŒ¡œâþy bh%¼¦„”"Ž<üE²éÆmTDMýæÁæc?­,ͧÃd\ ä|‚6BWÞÓÎQŠ…È@1V C¢7èÞðºÝ¨ÐÏãáâpq%Ž=R ½–з #Y ÏJ²lq”žÛ¤XA¿M\R¿¸çTîå´8âúø(î›[)$Û•»i?æ —΀1ˆK¿[;AA‘6쇡±¡M3™‡í7Ú…X>Xã/‰ cñÏb[ó—eA"ŽÁ)l}k‡ð½jƘägûKÆKXG]ÇHs¬›EM¾¤íRzéõé¶%ž±ŸIÏHæÚg>‘ðÓ·½C×£û‘ú)¦F{I¿žýÌylD?«6B4‹ˆâ~Ätâ„/G°u¬½ÀfÅd[lîÝðÖ^/x ›¸â|4PäUcL: ~Ñ–/UþIlmâ]<9ù„±ªi>ñ¶¿6±ŽcÊ9R>&ÛÖ~÷÷÷šCû«õÛŠ¿4T «* a¡‚ZuóжÄM+ù®“c]£åTþ7úaŽ×××ÈÎ5ˆ‘ø•ïÚÞ6ûõ¼§åƒÎÝèב»9?C½#(U»C5ÌgÍFâÛ²œãB„éˆ×Î{¨èè2†­¨F·Wè¬ÄëÓž‹âQ >ƒ˜’?ÄxoÖ§Œm‘fI)’ 0Ú]»‹aˆ–Œ~Š–ÙœÏâˆqKñ´ÿؾ±VË_ÅŸ¢¿6\ªÏW¢DÆÄxÄøˆ eÆðŽ|&"®Å_ÉÕ~·''åºÖþ'-»Žéºì9‰klÉéùßfAÖ¨\®ÁŒ§Ð}ËHB Ý·œd“_céºÉ; ö$Œ†ÄêQ¿lò—‚!ÖOñAæ^s‹öJ{Lñ}¸Ì~øO!O~Ýð:ù„Wd5|AÂeq©ÆôægR.SÇ:e¡+1/Oq«¶é':7³BãD´ø N¤Þ. Y›Š&‹Ö®,&ù m„§"f/Y˜6oîqÎQ€/ÑϜϟ®ADßM>ˆ~36œ×‹ÈQ 'þ‰ ª¨O©Íjâj—z]ªé4þIl-^jómÖë¶d±üOT€Å®f?•A"ï°Ú=¢l C¸%ƨL6¢ÜôÕ«‡Ò—<>Êâ{óÙ¶â 7Xžè(ÁæÃ Üív©æ%L dá:½Ÿõ6:qFDߊpgùãˆQՔΫ4wÊíc=R¼Ês‹‚öMnÁøsœ` p®Á~Ôu“‹*6güL=Êë‘Z~ªÛÈèx±Ü°Ž{cA„†öõ‰fÏ!îâu–¸°ÎlXkîk|ªÀ°~ÒE©XúùuŸ|0s¸V*6ÿá#¼®6ŠœAÚ1;Ì… ¯/µAë~6§A¾WÑ~q“%–RûúnÓlB«Æ³%¯Çýþ(Øk`éP«áŸdä5/f´Í©Ç"<‹U-÷A¦a¥JozFÆ­ÌyV< ð:t,MÓ½žéLªÄQå1äkM.Æ{svÖä‘“ÉF«ŽÓb2ë8HW(¥a;ŠË¢¨_ûËt'N¼Ge3,æ/ÏÕØ€ œÂÖ ¸U®ÖœÿI×ÕðºÕµí|ðgùžcÀ°_€s}9È|"RõYkAŒ1 "žµ¨ˆeqÞÊœ„QñI`=÷寲96 C”T>È\42±zvFCj‹°mÖ5">oò—š“(áâ§ýÙ`SsTá×bSñ^êDv.º•O;ž‰¦óðÍ|Z{U¡¼ÿÊ1÷p(öv­]èü¿ò×ïñÏWêYrow'9HÜãÌçãGžÃ:Q_“3%k~®²ÊBGMr_×ox¤Fë1Rçqs.5ŸeýÂF¥®áñ>ó%Æt²‘hJZñºÒ¾¸‰Õšø‰Úvõ—x~”þ¶ }7ùç ]ÇÄ"þ-Nƒƒî/ño©bYÜú)wŠû»ùg¬•Ät>Åf,šÎD š˜æÑIᘗðžë©€s¢ù Ók<Ûmx<§ø‹ù¼¢²ð‚ÿX¿5K@áIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/zcborder.gif000066400000000000000000000002711417122252700236450ustar00rootroot00000000000000GIF89aMÄ¢¡¢ÂÂÁºº¹œª©ª—–—³²²¬¬¬ÌÌÌ¿¿¾½¼¼˜˜™›š›¦¦¦·¶¶µ´µ¯¯¯¤¤¤ÄÄÃ@@@¨¨§ÁÁÀ˜—˜    žŸ¾¾½®­­š™š¶µµ°°°²±±¸··!ù,M6à„ R)(ZUI’eJ,Ìó÷9Üó¼×Aæp )ÈF#Â8/ f@0®›Íba± “;carmetal-4.3/src/eric/GUI/icons/themes/brushed/zclosebutton.png000066400000000000000000000011521417122252700246040ustar00rootroot00000000000000‰PNG  IHDR;pytEXtSoftwareAdobe ImageReadyqÉe< IDATxÚb c xx¹……DäÔÔ„¸¸Ð¤XŒÌˆïÞ|½}õâ—Ï_ÕTÕ(òë×/ É8cùj‚šÿüþùÿçwÖ7Ÿ?2¿xñèÇwsSKˆãŠ='ˆ±ÿç÷¯`òÓÏo^=½ûñÈ,\ÜòèΫÜ<|7¯\„h¶°w†«adÂôŸñϯïîÜaÜtü šWýü¹wë†÷ïÞ€\ªL¿ÿþòþå¶å °;» °„-&)©è KYØl,úá~†„ZpB#ã÷/ïDDYpi:âäàDß^Ý—“C¿—ÏŸ Ð#ÎÞðAÿþÿpÿ0!£„ÐÂ÷ï^‹KÊ 'š 0ü]; L…:š†Lh!‡¦«à˧wÏŸ8¦¡ª‹=üðƒG·/œØ¹É×Çš‰Ñô0¶ß½|øüî=nfg'—oß¾òåŸ?Œ^^^„Ë`T©¨+KKÈõ€¬ea%~€jí< ;hIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/zclosebuttonover.png000066400000000000000000000011331417122252700254770ustar00rootroot00000000000000‰PNG  IHDR;pytEXtSoftwareAdobe ImageReadyqÉe<ýIDATxÚb c xx¹……DäÔÔ„¸¸Ð¤XŒÌˆïÞ|½}õâ—Ï_ÕTÕ(òë×/ É8cùj‚šÿüþùÿçwÖ7Ÿ?2¿xñèÇwsSKˆãŠ='ˆ±ÿç÷¯`òÓÏo^=½ûñÈ,\Ü|~÷7³³“Ë·oß@ùòÏF///Âå0ªTÔ•¥%äz@Ö²°@ À¡êÈá–uïIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/zgrowbutton.png000066400000000000000000000004521417122252700244570ustar00rootroot00000000000000‰PNG  IHDR6nr>tEXtSoftwareAdobe ImageReadyqÉe<ÌIDATxÚb c °›+’©“_Ê„L¢²dêäâæ!O'¹es¦œûÿÿ¢tþýûÁÈÈH”Î0 p`Ütü ¦#±*JÉÆgç_6`J¡Ûùûׯ¯_>ÿþýëß¿{·nŠ8{011±²²qóð²²±¶â=–˜™fÿû÷h9D„››h3P ŸNf0€°]}ƒ€$P;'a;–31ýaåZ4gC¤éDv6ö”àååE^Øw:K­0IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/brushed/zgrowbuttonover.png000066400000000000000000000004551417122252700253560ustar00rootroot00000000000000‰PNG  IHDR6nr>tEXtSoftwareAdobe ImageReadyqÉe<ÏIDATxÚb c °›+’©“_Ê„L¢²dêäâæ!O'¹’¬d ‚sÿÿÿO”οÿ¢1‰Òù¦Î@Œ›Ž_Át$V¥=Óæâ³ó/0¥Ðíüýë××/Ÿÿþõïß¿îæ: Him++7/+QaK >Ñc‰™hö¿–CD¸¹y€V111¥„üüñýÓÇ@¿;'a;–31ýaåZ4gC¤édÑPBj쥂Î(vuêd8úmf¸÷þøÎùÎ1D£QŒ±¢(õ§R«•³ÙÚ‡Ô¨7Á4¡Q8•3i‘³˜Y#„Ü@‡ ÝÜ^«˜Ýam/iˆðt^ýÜ?ÜñVÎåXÞ‰YŽ4B˜‚”.>WÈxQØ4ó.Öd!$Í0@Ÿ¨v»Mz&°ÅîãìF£‰t U¥wŸßCœMfŽŠ³‚_òn?ð³Âÿ×·­}/úõåÅùDàäôl¬ÿ~ 45ïv»ÿj®Óik5¿lÏØ£Nç r¬(²Ƙ&W¡ÿÒŠð])‚y…BëA²yk½M!2ŽÉ#¤Ý_²¾uëí»7_>e X5_»qýæë<¼Üœ êZb Dˆf ؽw'D›°ÀI&f6fVÂú!ÔCûøxD¥•9øEX9xØ™ÙXXX™˜™ˆÒûî f e=n~Q.^ N6vvâÓÏŸ?~jæ’æáâääÑ€åÅ›×Ò²â@›¹¸y€:™˜HÌêêʲʚüb²ìì¤jÛÿ앾$ FP—d%cÕÐ3m.ŠÿAn`cgfaA¶üïß¿¸,D“büñõƒ °8Š¢?jZº~ÿþ…¦™•• (ÅÌÌŒ°_^Qùã“û ä- M`ÊSûÿŸ9TYX€Ñ=ÀYXÐÓ/0ñ<¾~JAÇ¡ ˆJ?À873¶¾pâØ‹Ç·Ép?(ÌN :±sÓÛgHÕÏìç猒_¿~)+)?¸{õþµc¿?b`bffå@ó*VÀ¸yóf4¡;îß¾~õÍ›÷_¾|!¨ ÀÙC‡®xIÏIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/000077500000000000000000000000001417122252700212005ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/icons/themes/common/JTreefoldclosed.gif000066400000000000000000000002411417122252700247340ustar00rootroot00000000000000GIF89a³333ðõú£¸ÌÛæòb‚½ÅØëc‚¿ÿþü¶Îæÿÿÿþþþþÿÿþþÿÿþÿýÿþÿÿÿ!ù,NðÉI«½8km:éÛç}`ž¦ ®€4É¡,1ƒžnì|ÀÀXëñª‰á«Çì)ƒ¨t*}®Ø,ö‰èz¿^.xŒ“¿Ê›µi»ß•;carmetal-4.3/src/eric/GUI/icons/themes/common/JTreefoldopened.gif000066400000000000000000000002411417122252700247350ustar00rootroot00000000000000GIF89a³333ðõú£¸ÌÛæòb‚½ÅØëc‚¿ÿþü¶Îæÿÿÿþþþþÿÿþþÿÿþÿýÿþÿÿÿ!ù,NðÉI«½8km:éÛç}`ž¦ ®€4É¡,1ƒžnì|ÀÀXëñª‰á«Çì)ƒ¨t*}®Ø,ö‰èz¿^.xŒ“¿Ê›µi»ß•;carmetal-4.3/src/eric/GUI/icons/themes/common/JTreeleaf_0.gif000066400000000000000000000004241417122252700237470ustar00rootroot00000000000000GIF89aÄbw©ªµ×ìï÷p„½‰™Èf{ºbu›ÃÌãÙÞîdu’Tj­[m˜½ÁÌw†œm}œ^r¬duËÐ×Nd¡¡®ÕPf¤Tj¥Ÿ¬Ô_v¸ËÓèr…À𥵑¯hx‘y‡©½Æáÿÿÿ!ù,‘à'Ždiž(Aè÷ˆ²ˆTI•”ò(’ÑM @‹% àŒ*E€bR  ‰|"À ûPƒW1Æñ$J‰‹ÒYd # p" ‚ d" R U“ zM# p‘p%"’"ˆ( -½¾&!;carmetal-4.3/src/eric/GUI/icons/themes/common/JTreeleaf_1.gif000066400000000000000000000004361417122252700237530ustar00rootroot00000000000000GIF89aÄðñøp„½ªµ×½ÁÌî±îTj«‘¯‰˜Çcwªbu›ã€ãÁÊâÙÞîdu’[m˜f{ºx† Ü`Û^r¬evËÐ×Oe¢ ­ÔŸ"_v¸ˆ†«?«ËÓ蚥µo~–÷Õ÷ÿÿÿ!ù,›à'ŽdižèQ!è'‰ãÀeqU°Žƒ•ÀX‹ 0ˆˆÄ$8š@‚CùP8ˆ@CÈm]%ñ`B$ŒÍbLj`îˆ# H FL"uQ T w š   # "M´'y¼µ-"ÄÅ&!;carmetal-4.3/src/eric/GUI/icons/themes/common/JTreeleaf_2.gif000066400000000000000000000004071417122252700237520ustar00rootroot00000000000000GIF89aÄ¥…Wþþü†]KûùñëåÝýþÿñîè3f™¸Îã¹Ïæ·Ðç¶Ïåÿÿþþÿÿÿþÿ¬t_þþÿàZf½Q–ÛåïúöƳçËyÎÄžÅ탴çðß­¯Îðô nÎl¥àÿÿÿ!ù,„à'Ždùhª–²(o² ¬Ò Ä´ÎAòŒ#Ðò€Á\£xL0 ÀYOGÁL¶!h,BAaäy&Ëc~I´ åQ©D3"x|v‚N‘l‹ —š' :JPw120¨m*¬)&¯°±!;carmetal-4.3/src/eric/GUI/icons/themes/common/JTreeleaf_3.gif000066400000000000000000000002521417122252700237510ustar00rootroot00000000000000GIF89a³3f™þÿÿþþÿÿÿÿÿÿý¸Îã¹Ïæÿþÿ·Ðç¶Ïåþÿýþþüþþþÿþüûÿþÿÿÿ!ù,WðÉIë8ë JBŸ‘`4ƒ0t@±Ä©,;ÁqÔ·¡«‡I‚c8d‚a@Ø–9†áé›ýб¼¨W¤sµÇ—0ü݆D øSCÏXîøü#;carmetal-4.3/src/eric/GUI/icons/themes/common/MCreateDlogBackground.gif000066400000000000000000000002711417122252700260150ustar00rootroot00000000000000GIF89aP᝝±±²µµµÌÌ˽½½¬¬¬ÏÏη··ÎÎÎÂÂÂÂÂÁÇÇÇèèè¼¼¼ÅÅÄÈÈȯ¯°¾¾¾ÍÍÌ»»»ÊÊɸ¸¸ÅÅŲ²²¨¨©­­®ÎÎÍËËÊÃÃÃÀÀÀºººªª«!ù,P6 cˆfJÒ0lìFQO¼,–åX\ž(JçG¡1™xŽ•ÊAÀd^žK f®…láÃý`¾à;carmetal-4.3/src/eric/GUI/icons/themes/common/Mcomments.png000066400000000000000000000014711417122252700236530ustar00rootroot00000000000000‰PNG  IHDR‘%Bƒ @tEXtSoftwareAdobe ImageReadyqÉe<ÛIDATxÚìÜ»NÛPÇñì“{ á’&n¸T¡JA„˜šˆÈ’-OÐ'¨Ô%b©Ô'èŠ:ç!²2uBj…ª@s!½ÄIìø¸ço$Z!Åféðû #›õÑÿø$Ø×u)¢ÚÛÛ­g³Ùj:ªDcQC‹hü:!ıéJ²-»=š­Á`Ð<=ýt¢^w:<|ÕØzö´±¾^¤ÕÕeJ¥¤k:¡;ˆéiŽn·_»¸øVSCg[9/ëår©ñ¢\¢-ÊåV(“®c¡¿9’&“ u:=:;;§…Lº!¥ü,66ת¥Ýç´¿_¦"% H'MÓpæÐÉ¡|>G‹‹ ÞϽþuU<1òƳ¶fºtolƒ2ì¥Ý.ûÑ––—Œlö‘ºJš{a7ìGKÄcÂӅм±vÃ~4¯t S_ÚØ ûá va(Lì†é`ü ‡O%œDˆ!DˆÐp]ÿZ> ’ïF!¢ Ba±¡¾ Hù—€…Pä}‘<…Hzÿ?‹P0C솗39[Î$¡Ë™ô–3×Ó$±œ¡€ù«#b@j IL"‘2Ã~„¿3“ÞP°åì‘Ä$B˜Drö޵tŸDröŽ5oÓ°ÅGa·ø|éM!L"f9óíø»3×ÿ¡À[|÷–3Ñlwær°;C!9þðSkÚ¶-Û°,‹„83h®¦Ó)?«ˆØ0ÍaËj£Ñˆ2™4Κ+ö¢ÜûýÞf¯w]ëvúÞùÑ2¸¥Ý¿#“4Oˆ½(7Ä~ÄññǓDž•ít*Ù°l‹Ré$ =ª áÖjôï–~êØdGôýªG_ο±ŸÈÍ3ß¼}]/òÕÅ…L%

ºéæƒzkbµþúݺ¼¼j¾÷Á{fã€Ë¢æ&Ç;IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/Mnext.png000066400000000000000000000012031417122252700227750ustar00rootroot00000000000000‰PNG  IHDR M )tEXtSoftwareAdobe ImageReadyqÉe<%IDATxÚìWÍNâPþÚÔ6<€î4Ó7ÈBŽÑˆ]¯ ‰óºÐD-ÑÅøãBТ1>€ƒ[V,@(”kOØÖÞÒ&m\Œ…“\÷œï»çï‚ÀÃW>"¾øù& Ù?hEU*¼Ö_c[X\@6›ÅÁþàI V­b;—ÃÖVét:Rðv»RéÖ”ðNÁËË?lllBQ ‡ÃH…|’oÂঀZ’6†K È·»í%縃ÛDŽ•f³‰Õ••P6î¹çŒ€ùí`0|Á|%“I¬¯ýBùþ.`|RÀÀ'Ðh4ðûðÐ*(]×-`Z˲ I’¬îù{s SRÐï÷=Å:± X€©Tj²¶ëvwv¹öcq§@twEÀK&‚ˆ„œ˜¬í:E™E¡Pàú qwèÎ_Æ5,Š¢£žÇ:IšAbFÆžI‚ëÇ·F¼ î‘rï@錡žY®¯¹~Ø4¼"dDÁ|3*BÚ3ZÛuÝ^—W—¾äOà2§ð’±Þ×']@k ýX§‹\{ï1bþèøØ¡›Ÿ›C>Ÿ·@/4-Ø ñŘz÷iºÝ.ÎÎÏCÙù3 ëõ:NNOCÙDJ ò_DTdq߆lÚ]Ðjµ¬{;ާÓé|º Ô*±´ô3ro78õZM™Í4M,,,¨âã86îÜù™XY¡xÐu9z{{%ˆ*­Db Ó¨a4Ï+êûha ">æççUÚÍÌÌügPbFJ$ëÁÁƒ$×èýM$ÍW/¥"“FñPžëÒ ]a«ßééi:µÿÁ 1*Í…B™LæOªŒ‚H•p«0Í*â *mýÀ_/Ház&èÈRVär9äsùòJuõbŠ4Dì Êi¼­¼C*™¤~A>ŸSZûD»¬–Q/Z¯×ÏV«kåöF´%€­>£ÚãÖÍhµZX¢—š×©ä¶Zæ j6G@Q‘"fèx!hcÀ‚ãÆ6h%Àsb;í°h߀‹¶ŒÈä€óõFÓP#w¦áÊж‡^3‚—{0þkèÍT@Ÿ‡ÞÓ¡w8ÄÄ›øNq‘‹àØ4=œ‚lúQšþ|’¦ý]È|†ýM{+êüÍKˆ·p”VVÞ%Å*Lx¶kÀµ‡ð¸3kpæ TZ ­X•!§Ê^è–Qñbé[Ý#¶þø[ƒ^ȹáÍÀ$0I— ƒ 1‹®Ú'ÀñÓ°3¥ýÎ<ØË.þó~âÞKʲy­vb,Ié»ãjh_.s¦9ÏòK‡Ì#׊'IDAT™Ê¡00ŽåÙ‰„¡q$Øfn{jûõpÛÉÔC/÷£|IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/left_help.png000066400000000000000000000011021417122252700236420ustar00rootroot00000000000000‰PNG  IHDRStEXtSoftwareAdobe ImageReadyqÉe<äIDATxÚb\µã!‰€åï¿ÿÈ|eYeY^!~6 ûË·?w¾~¿=ZÊü†š‚@ÆŸ>|ü&!Ƨ¯.ÈÃÉpôÜ[f¸2¦¿ÿÁ‘¶ Pèí»OYE­©Yå —¬Ù,'øÿ÷»߿Õ±üùónÀ–½·™þ¾;zôÐ+ç¹yøŸ=õüîVIaQ)FF&Û~#é¹y÷ÅÕ ‡ž<¼!".ïáá™åüüù˱£GT´l¸x…YYÙÑõ0³r‰K«å\ÍB}M"_¿ýÈʯ~óö쯟¿~ÿe`ü‡©‡STRUZ–!Ô×Èýöígayû•«·$dTÙ9þÿg†(fùýûR0221sHKrC8í½³N<%(,%#¯ËÃ'öd XÏ/=`¿ý¾a祗OoŸ:y’‡_LVÙXDR‰…ë÷`¬ü‡¸í/šnNÖw=½+Wo¾xÏt-+;ÏP4BUb±îC.A®¿\ŒÌ@€<„24ÿ€ÀƒÇ[&lyùøÚõ[„¥ô~ IÏt=ßÿ¾óìÙã»·lÁÿL Wý!¤çßfN^qIc ÈøûŸù?A=@ÀÊ!( ÊJŽÌ¬ÿ1üý‡¢ À…ðˆ…ÈO¨!¡@Wcèé<ÂÖT×÷Så|œ?嬘ªÎɇ㈫”%3Él6 ^~œÆ¶-“¸ÛTÍR8ééªbg®~&YqcaQEçã!X¥yX¤t#š‘‡ÝÅEÐt.Ç„ pšmHìÒ’ŽˆYA— PU.Á[ºå{=Ì?ú›ã3è÷O!';cušïùè׌,8ˆÆ4QwW™àqñ&ƒ#ˆÉNDJÐØö„òrí¸qé ¡H­—+•5D-”—íL‘”Û–>Š+„¬,;¢ŠŒ ¯HìvièxÔ‡§ogœƒ/#)Rr›ûù’å8rmØm+í\«=*þz¡åEc‚Äñ©?¤1:\¹‡}#ns?OäÄv4§!ÖnW`èJ=Eø6:ÿ <ÿà§eu$‹Ž+ÔDš‰­m}M¡È1ºABб¨ì3çÄcJë@¶ÝŠ‚­6Ã%hjFNl}[/…ÂnQ._ ­ª¹9ÃF¦uZø8ÀÚvÀAV?u·ÞÐòwC[7½ †ÛÝIß•;ïhí¶ÙUð »&§Cpäf¡ùâñ´§˜ýûä¯p¶IåÉ(ùÇIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/leftcanvas.png000066400000000000000000000001561417122252700240360ustar00rootroot00000000000000‰PNG  IHDRĉtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbøÿÿ?@€üþÛ¢MIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/leftpanel_off.png000066400000000000000000000012351417122252700245130ustar00rootroot00000000000000‰PNG  IHDRQ÷^atEXtSoftwareAdobe ImageReadyqÉe<?IDATxÚ¼–¿oRQÇσǀ0hRÒ6q1iÓÅÔQ'·²P'W0Ì&n.¤C»ƒ£»¦CÕPë`Û±ü&LMZmªèûuï®÷{é»…÷áÀ!¼Î;÷|îùžsKA•Je×¶í5š¥•ËåÝz½.fiÕjU¤Pi±X¤Y›‹ëº”Íf§ êõz”J¥†Áaªƒ¦¹ Æ€7›G:ð_ ùVWo›ÁÝnWUA@W®ÝIè¸>ïßœn4Ä9K«¸ÝnSö*ѽ; Ú÷éð˜zR¡IJX–¥Ö#¯Üétd€?ö}_mêÍ»#í»>7'ã»jM’¥Óiµy`Ƙ FÀHÎCNK—}jì}‘òñ‰`TŒä5‚‘ˆ1˜qÚz¹£}+K˪oR1b׆$¨:†Ì€<}¼®}Ûš*6:‚&Ëd2j=bÁÈ3hžçÑÉ×SzR{­}7éûOG‚“§P¬K£;ôÍIâàþŽz¾ñHûž½zOL³IR£²h½ìyš Ðæ‹·C~ÆÿÌÍ`Œ<ÅÁèùIë@)‚$ƒV«}N¬\.G…BA¶Ä%Ðq\ƒççÔûl\Å`Ú\öC ÕN§e( PuR$ÓÆ4Ÿ}ÓMËж¨ï`Úç?Î?¶Z­µ|>?Ó?Ê/=(í;¿œ»²Ë$ú€6„Ž ù²„ÒJû£»è' aõ#/WE¹,qÑ[ºÈ)oB^~ 0ÒÿÛØL˜/IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/leftpanel_off_btn.gif000066400000000000000000000007151417122252700253410ustar00rootroot00000000000000GIF89a.Ä¢¢¢ÂÂÂÐÐÐÏÏÏÌÌ̼¼¼ÈÈÈÔÔÔÚÚÚ¸¸¸½½½ÓÓÓÎÎέ­­²²²ÇÇÇÆÆÆÛÛÛÕÕÕµµµÑÑѾ¾¾ÉÉÉÍÍÍÃÃúºº¹¹¹³³³¿¿¿´´´£££¶¶¶!ù,.ÿ à Öx¨¤*ë¢ë£Mò 8^4M¶P‘`1‰F!2¡ :¼Â@ ¨x’Ãb!Év½àîáK.·cŒ§"€4 e Èë÷¼ŸÇÛ÷s‡‡Œ‡ŽŒ‹”•– ŸžŸ£ž¦¥¤©ª¤'¯¯°²³µ¸¹º»»´+ ÁÀÆÇÈÇÅÆÄÍÎÏ (ÓÓÖרÙÚÛÜÔ(àáâãäåæä (ìíðññïòöòëìôû÷óýÿíò½«° Á(:(„²pᆇ74T(q¢Å‹*68x¸ñ¡Åˆ;x¼HRäÃ|ñDJ–tè¤Ëˆ= <ØŽMyPôç®æÍ{ J¸óç•*ôõTêÓ]Ñ¢4WpX†Œj²«S±Zµj¬…Œ+f¸ûB…Xa=„;carmetal-4.3/src/eric/GUI/icons/themes/common/leftpanel_on.png000066400000000000000000000012721417122252700243560ustar00rootroot00000000000000‰PNG  IHDRQ÷^atEXtSoftwareAdobe ImageReadyqÉe<\IDATxÚ¼VÏkA~›l~­…M‚”¡ ă´Ö‹= 9yóoñB.•"ž¼¡õ‹ R„г”P…Äl²³Iœoê›N6?VJÒCv;ï{ß7ßÌÄÇdYÖmËq‡.(,96%ð+×uï'“É‚mÛkò}é@ 8Ôo³Ù$[æd³ÙmÇqîJPŠÅbÄÀËl Ãá„êÀÅL&s+‘HF<WàËA 30T*ERjëUH ¶¨‹40À˜± \*•ô‡ç (W.—õ3j™R+@°M§Ó ˜Ò¤ÖnLôúºW¼ \¯× J2cÈìûþ0¢#ÓXˆn·+-º]¸¬sßÛ4þçÒ¨À|Ó¨fm›e`PÓXèòìé\Öue÷§’ó¹ê0ÎLÆpõ„‡=ÚÙ:“ïëOµQkÏFâz ̬'›ñº" 7ï÷uîúÕkXüc|ÃõÂõmSÿð:œî=AÏŸ=Ô¹OŸ”3£€aR̯ñcN„:ùý‹^W?êÜÆú:uþx²¡Å®ÆNÁ|“ñ\àYŒ…ðéå‹§:÷öà iš(Æ|6G2fcM™+ði÷ÝÞDQø‘æbà…æš'5žOŽ©ßïO1¬V¿Ï£|>¿Ø\³¶¢Ñhœû¸ìt:Ôjµ r_ö$#¬Ðí*. HÍ÷1éõz?äÕXäst÷1¶ yðx_&·ÛmÊår7e—²,ëZdbЍ×jµ'•J¥ o“MÏóÄEüçú+ÀÇ}0ÈÞ«WIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/leftpanel_on_btn.gif000066400000000000000000000007211417122252700252000ustar00rootroot00000000000000GIF89a.ÄóóóðððçççãããÏÏÏèèèîîîìììééé¼¼¼ÐÐÐ¥¥¥®®®ªªªÈÈÈÌÌÌÚÚÚÆÆÆåååòòò¢¢¢ñññôôôäääïïïíííêê꣣£æææàààáááâââ!ù,.ÿ !F ³,[ºQ«Êª)%ÏtÍ$ŽH(DÒ<ŒÁB,EcrÉ$vÄN‘X\“ìËÝvÙ°x\ …£1T*î@ü-§Çåî·~χ $„†„‡‰ŠŽ‡%–˜–š™›žŸ › §¨ª©­¬®°°«)µµºº¾»¾¼ÂÃÄú+¼ËÌÅÏÑÒÓÔÔ¼)ÙÜààÚáäåææÙ)íìîðïôôìíîùúûùì+òýî „/Þ»vðB_A„Jœx°a¾…üÜaìÀqcÇ AæcᡣƌNbDɲäÂu#B(s¢Äwÿʌȓ Í› 7ôhpÞ½š?vX‡ï¨Ê“üV¶ÌèoM|P¥N&Q¤=“JìpéQ`Ñnux”B;carmetal-4.3/src/eric/GUI/icons/themes/common/leftpanelbackground.gif000066400000000000000000000002421417122252700256770ustar00rootroot00000000000000GIF89a*Ä£££éé颢¢ïïïìììÒÒÒãããÍÍÍðððâââäääñññáááîîîÑÑÑëëëÎÎÎåååòòòèèèæææÖÖÖÏÏÏÔÔÔÓÓÓÐÐÐ!ù,*àaY•(V8v½XU]0‰¡DÔ<„ƱB;carmetal-4.3/src/eric/GUI/icons/themes/common/middlepanel_off.png000066400000000000000000000007061417122252700250210ustar00rootroot00000000000000‰PNG  IHDR5¢r5tEXtSoftwareAdobe ImageReadyqÉe<hIDATxÚÔ•¿N„0ÇùÎàær9w7å ÜœxgGW|ÞÀÁÍ'`•ÍÏ]4ñ ‰@¡@ýµ%¦éq±—pƒ„”í¯Ÿ|ûMû«¶ƒG'„ü+n×uS±ú¾7 cà–e9­R Sîjõ% $ÉS|@£çH\«ij)!¤Í޶Pˆ^DÈÀEHææy¾§7œŸóžÛ»û›ë‹õøáñÚ*ÏEÈàCš¦7ŽãýO]î÷gâû¾¬·ª”×¶möñ®Î‘V„ ܺá^]ž*Blj¢H„üreaGcŒ¹¶mC¾Ùèìhu.@!_„ð<⤂꧀éá6Sp™‹q³~~Â0,ŠâÏÒaš¦ëºóù\„lÔ»X»UMÕ‹'«:­º|•V–½MŹݜ›í¢®[Ë×%]\̺øj„þCÈzxKøíÂÆ!ŸeÙd:‹yAã0^ \Ë–ÐIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/middlepanel_on.png000066400000000000000000000010051417122252700246540ustar00rootroot00000000000000‰PNG  IHDRºÀåbtEXtSoftwareAdobe ImageReadyqÉe<§IDATxÚÄV;NÃ@Çk; M‰ PS!Q!q:J†#¸¤óRƒ G°h(èR)‘;þ70Î$Á‘XÅ0Òj?òÎÛ÷vfÖÝÑ›†aíºîzÁq:ªëšªªâÞôz=2ÆŒ»`Y–´\.eL=ÏãÀ]@‹¢X3 ‚€|ßg¶]É –ð pf –h4Š"þÀÖ@&Žã9ü±¼Ë~¿Ï b‚üc{9ówVP3…´yž“3œBl6›QpTðøâü´Y¿Oéöæ²uþôòÆ}¶Ú¯ýa,s£uáDîJ ØÃók³~2îëýÚ¤¬ ¦:_ñÑäcb-¯OÕŽ¿&=Pš¾ƒë«3+@ÄÉh4Úð§1Œh­5×ÉlcHìÿéN™© ¶™fYöÁ–L±›éè!™JÝËT‚hûâm‹ƒ€¶R›¼'IB‹ÅâWŒ„B3 Úiç­û–$MSët™N§4Û‹ƒÜNÙUÁ—ëâWFŠ0*ˆfzhp` ø•‘Åù|Þôt4cÎ3 Ž^zõ$§ØvõzýnpüŠ»o_GçÕa2ðÉz+ÊDEq të³0° ªË ! ƒÛ@`qyiv¬d9025€þ[ßÂj0ëÂ]Ž[ñ&ƒÝ:[ÜuõÞ¼‚²ãGq¡þ¤YyðF# Jþ _·bpì1ôJ_^û cžu ´k¢ Ù÷†ç+qæt-|î?öèRÖ68“n íº6H×f¦$á™Ü,$ZS±¼&@áx¬©f\ü®×ú°6ãÓïà·aMÏOA$ÍVœcÃ1{*IÖ°G—²¶K-Š"ù#´«Ôi9¥þoIV¼D0É&P ²²m¸ré=”å"/;ß\j‰;ÖÙT¬¿0ÑúÛ=O ëÂ:M7¶Ô¢Èï€éÙ¢™Ä‚ËkÏã—«£ú¹["jjÏ"$*óyQZà€ áþè$žÎÏÂzHÄð£i”;Oaeу–_{`6±(yñííFÁ»Î1} ÍÅ0̶Sª=gßÿ7Z¾€ÝàCaA i4=ü2)Ÿ¬ƒ‘”TeXÒ½*x A¢Å‚ñÑ£H™DÍ[Ÿ 7ß©•7jôØ 1`:¹hIbÁÔ Æ˜ùH¡%ÅÌ f$ò¤šS¡ã“¡#/‹~H~¤À " C@~2H#{[æ(ØïgwÀ-µ¸L-;¿“¿ßGÿƒ.ÔÕŸG\¤à¤eH¸*ƒU%ÍIîÇøø,'™hÐ4ãÁ$hmóýÀ޼RüûЉ?ûzɇqâäiØ30’Õ2dHÈ’ïšã#ýè麉 ¯å§ê´Ù@¯x°ª*›à ‚_ƒÆƒ©#íøâª3è¿«`ñN/††q$+¦„°ÄŸÆ/‘âYXÂ’l‡ÃY=IÊëõižXÍèh¦1œHö!ÐOt:Ý0­„Þ`@Eu¦Ü…pÏ=ÂèÐTñ1 œ%¦t' r‹””¬%KµèŽÓ P=ÊähËËKÚ‹xp¬Ñ Œ#Øì™Dø¤v4hbT˜&ÁtÛ¨N0ØWcÓ' nÕ·Ú111Ñ`!Gá0LP&C³>÷ƹ.aC¨f´I«Õ˜4£õi‡­>d´ßôÎÐ&Ùzõ½«Œæµ¯–%Ñr·õ§Öšÿ¨· <ñívIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/monkeybtn_on.png000066400000000000000000000023271417122252700244140ustar00rootroot00000000000000‰PNG  IHDRQ÷^atEXtSoftwareAdobe ImageReadyqÉe<yIDATxÚ´VKoUþfî¼=~ÕŽ'¡!j$]E%‚ðXôdXäð;øYgÁ® –l*¢¢J•H©Š %µ?j;¶Çž;/Îd,Û5lJ¯t4öõó}ç;çžc)Š"H’´`—ì>ìzFö a^Iô¡BÀßg³Ù¯4MÛTŦïÿ+šÎ÷ý>çü¸ÛíþJßPhÿë\.·kYÖ Y–‘¿/˜oI¡I 6CÆÒbb#î¡qãÁñd„’:÷½0 A|^`ð¶€–®ë ©cðd‰ÃÉ’#KY†% zè€aQ‘áWlÔ¯ß áÉÖ\pÏóâ€(úø@ ,$N"žGX¶e7Â( G=(ôðõ‘ðQJ©0î[ø½Ê²Ôåc`&¢5 #&1–Ƚr(,Âý¹l«¯ øûôÝÎ[l~ö¶e¡Ùn£zy†¥ G}à@&Y#5Cù¹%/R(Ö°Ð^D7UXÞ%£ UÑà… ú¨RuÀ¤ëËe¸å2lÞïa!Á —‡ýv@Œ9 % ¸V«7é_žÝL>Ûò –K<úüØ&)Bª(‡ër<=®¢ZoƒQÞ~qzwÉÂ"Å„ß‡ë«ØÚØ@Ñâs}'7…$Â9D.ea¹˜¥J´1qDLƒ OŽÎñâ¼~`à§ß.ðç• 3]ÀTl •{6ŠYº¦ŽýÍF¬LF<ÉÈ“LÔš­tèR^T#ÈæÓøîñ—XY\@1gãÛÇ»X-¥áÊ)8܇„xÓêÁãC"K5¯Ê˜Å˜Êñ¤ÅÀJµÎ%ªí×ȧ ¬ol‘Óˆdu°\¾—®ÇùU K YŒüµF++kôºxþê„R#¡/¦šÑ¤ÿ)àIFÐL8Xᑱ ,–+PI2)à¡ 5bâE*4CŽ ³†n q]€Zm ¯-)©©«ù¯À“?ÜV©[©©‘x•®é0˜”nAÖÈ(ça@÷–;d„‘D‚“ªÅЉ»ÞŒÿ©âJ aÒ@wñfàâòâ’¢ƒÉt?}Kyt:ôìÓ]÷¡™FëÆå;MÑ*ïøz§¸æJÈ£§Qï  ŸŸQŽ}¬®m É“¼rQÎÐAýê§½D­"Ô t+ØTך+õÔ ˜‘'ž0f§&zΪµ*u°T’] wÓC§×CkH×M)ÂTÔx?éVó–rׯ– ÉIÚ\Â’¥ËhRdÍ–­EÍ4@¨ƒE”-/ÒÁ¥<4#EN}ˆwxÒ£ß+~î8Î4®¶iPOE=;uÓ"'æí˜»›µ‰ŒÖÌ(½ ßbB ,)€ŸÒÆ7Ífù|þS"š­î÷ý3 l8h¿"2/¦B›µÃÃÃ6ŽŽ*tÀû¶( ugg§¶¿¿¼··WûG€$G÷_îüåIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/navleft.png000066400000000000000000000011311417122252700233410ustar00rootroot00000000000000‰PNG  IHDR $¿•tEXtSoftwareAdobe ImageReadyqÉe<ûIDATxÚ¬TÍjÛ@ž•VëâÆb¢‚©ñÕàƒŸ«´‡’––ÐBZ ¥Zú~é3Œ1"äMö›±5)$¼;³3ß~3£5ÌLI’ðjµ¢õzMÛí–ê(ЍÕj‘-’÷z=Ñv»] Àr¹¤ÉdBÉ»Ý.F#ªSpQäP–8Žk+MU;@âf³Iiš>:ðÝÛ÷:‡Ü k-m6º¾Néèè)ÿ#b³)Œ_~8ÿ(ë0J?ì ?³øØhHPt\A2aœS†ÞÑË‹„Nâ ¬ú‚¬ ,öVöP¹¼8¨7Þç{J³Œ\ž{Ј"«“ËÏtúü´dÆ…ßøäÆ ¬d Ñp÷ê—{0‚B‹9®ßïßóLPT, 94lاä‚Î^¿¡†Ó³ÿ‹èn·@Ý ÈT*Ý»òõÛzùâ=t©|Ÿ[¾m2¥r~íܯNl²/ÕÑŸß%ð_¿“XUÍ#£ ‚/î¸sLÚ!ýS‡q-ÆÔ$ûþþóË[¹ôv#£‚½ºd:ñ ]ý½¢øY¬VxY‡^–†+•Óå¬þª½üfŒ>vÃáf³™4f0P§Ó©å™˜Ïç2UÏõx<æét*Æ,Ëj@/pÙãËsNU!§IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/navleftpushed.png000066400000000000000000000013561417122252700245630ustar00rootroot00000000000000‰PNG  IHDR $¿•tEXtSoftwareAdobe ImageReadyqÉe<IDATxÚ|T»‹Aþfwö•Û5 r9£ p’ iÄÎRð¯­l´ A°8,ƒ(ØØj!ÖÑÂF+c¡à‰ Þ…ˆI6Ëcwœ×¾òp6ÙÙùf~ßï1ß aŒ¡Ýn³Á`€ñxŒù|ޤBd/ÖäÛ&<ß,ËB ‚¼7ŠQm\ÁñÊ nmê%,G$HU¿ ÏÏóï"D__‡«áVOšœ¨—0ÈŒþƒ§é !¹·†!¢*£8„¬$Lrï5øÒ„(p%¸ QóÁ øùw–M2¦‘,2µÂ_=ºQÀ—&Én*¾mËÄá®3GcÛ–5V10ù#Äc¯÷nJ{ÓÌðb††r¬ýPAæ:‚ÐÀ÷ÑbêeŠc®YˆˆðçÍãÛ¨Ÿ¬cÿÛ>¨e¤¸ZÇ Y¤DÚžGÈç€1WÀv ¨xf*ÅOï`÷ìnêp8Sxà°iÞ ‘ÓŽ$³ç™©¾aÌ¿§Œÿ‰\Ðï÷a;6šÍ¦,tPÂ…B:b·ÛÕÛí*• T«U(‹™¡ëõf³ßV¤`Ífþk$„âÃ0„ù|жLÐÄz/™¡«KN[¹\†ÉdŠ&é-Ó¢¿Z"b¿ßC.—c¸"‡Ð\‰I!xÔh½¦–g†hì³1oo{ÞºRŒ³P)¤{mŸR*Ô€.0Åd(}èÇ<ÃñªLKØH.ykm §Ó42°8Ž tí>‡jøõœìÄ„@ÎMl‚Ç#œRÐÄ””<ú~pîçG J0 “[áòû›ÁPú#lnBoïŸ2µÔT§”’:—ÈoÖ½¹>/çOÛ¢+¥þŒU¤rµZÁ…éÕÀ÷~„úßü®2Vó–‹%ïZÑA0¡ÕjqK(ÝLÁÞ¾nàªöøi³UŒßÑò¾¦jHŒMOžµväm™mUÈoÉòÝ›¦b܇˜žÕ¥×`t§f”Š"A%¬Xеz]ѽà»üé­Eèúf’ cªZ)¬iÊš©%ͶI+¿S!YÚ™²™N.A¥fÒd£Îd˜F’Bë~À“–ÅŠÀDþ]¬•ϲ åÛÄ+¦¹„öFR$žÑ2†'€¼ ÂjÍ3êÉv, í-8&²“¬˜š9C8¹È£7Í9üPÇ9 'GÒF‘dà‘)—-˜ê=rL×*ç/?R›¾¼:¹ÒH9KJñ”åT ‚éha‘Kƒ<‘évödIÖ$­ˆä¾”òå¹]çð8CÞ¦—‚ÚÃ…Ó/GŽ+ÅI‚å ÿ'ŠÅ2oJ&—C‘ŸÏÛìÂnaª©Á¼ Ïç´6â´ë¦V ˆLy°B fœ¶¶6ìÓçñxÊ^¯áp9êø^ó’}`°»»[ø#Àk'hƒÑMIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/navmenu2pushed.png000066400000000000000000000020341417122252700246510ustar00rootroot00000000000000‰PNG  IHDRùÚ4%tEXtSoftwareAdobe ImageReadyqÉe<¾IDATxÚŒ”ßOUÇ?ócwf–e¡tù­.Ð  ÖÖ45µ‰?bðÍô¡†‰>ðlÒhlkRÛF´´«(Ânùá’…]vav—ýÁ²»ÞhŠèƒwrçNî½ó¹ç|Ï9WšœœœÈd2ã¦i’J¥( o’$Q.—9Ù¬y«Yk‡·ÛÇãÁår]S-`b¯„Û ¯Ç‡,«öƧ?=Á”Ot8g}—Šä“[lÆGf\µ,tŸ¹„^ÝÄç ›klo,SÌ™¨ŠŒäpQuª™Ú¦UE†èÕ¤½Ï£Å@µ\®©®ÿ—!°<{£Ák½ ÔR*Éd³Ä·ƒ¬ÎЛŸãtk'©\‰Íb Z:jk()ÿÒl#4ÇÎâmF‡¯ÐÒÚÌÔÔO„誂өQUUEÿÙ–B³„³)Lw/æ¾dÇDµŠ*Ó¬Lt=Èîâ÷Œ¾7‚aD"VWרŒÆØÜÉbxÑ\d)Ay?'ä R²'4ÚàJ—ŽVÛÊÊÜ4É}XK–XÞ=`+º¡ ë²ðJ}j©S@c+,ÜûšÎg|´¿|Ávyeu…FßitÍÉ/ahx›é™ïˆ= QákºI$²…㙬ÚÉëTXœ¾Á§}Àî®I,'¸¼L .ã­QR}ôtvÑÙ\ƒ¡]æÁ­¯¨þŒòQJO^eÉÎ[YKà¶sƒÜ¹{bqŸP(Èo[9GÇhãc¢B–¥­=ÖY:NQÓñ"æÃ›T¸T**TQE¢ × —lÎ!TXZîfvœ\ÿæ&wgçè}ëC[#·×ÍÐÕ¶“!îÿ±D,SäâàyÂñmJÙ¸ÐÒ‚‰ä7Áv ¬ºÍä÷I Ó»¯ŒPè{®w?¡ÑïÇÐ;µ õ ½ùfâ!?Î=Æ)RðÕó‰}û…X—Ñ4YÀQ®Eû­‹ ¼º‰E§J{ßM¨ ë5M±G‡&á­¯ãâÕaþ Þ!ð8FϳM´ ¹þ¥Ø§ÚàÌf˜ÊÊJ”±±±‰ÐŸ¿“–Ü8Ä„nˆ“DT­®V½[£á­Æ“7 ,†hnháBO¡xží_oSP«M1ÐÛ…”L&'ÀøüüŸw`†ÒívÏJ¥’ÆqR,g.—Ë›¹\®¬ÀŒEÓ4àœoRÄý~¼QQ^v/†aÐȽÉK½ÀlÛMÓ’ÀÕꕟ‰çú[[[—ÀŠÂF`!d°išÍf£›åüÒ©¤¤ïüùM~Ãàx<>9b]×Áqz&¦Öl¼Yôu¿nÈýÊ+A°\c¬;.ìõzç²GkN¾]ùºWóód~Ã`U›Ë”ÀîA§…8N!›ÃÖÛQ=V®Éý†Á‰Db¶¬iÀ‹Ã§£¯¾nuå5Ù¡ß0Xˆd,×Ólÿ Ú •Ãûw¾îË*ÙãoaðØ9Æ&`Œwe§CÆQàÛûšë, »>ûºå¥%0\ûpª±QUÕOuìE•jË=vV‚ÃÁÇm_·ü}± n·• X<,L·nöOÇÓJ`!ˆmË`¬y¡PpwØŽòï§Ðu]²m[æ‹Ô‘ë_d¯21Ëó¼Mv‡òù¼Œ‹V›N§E‘¨Y*•n1ð[8ÀÁúŒ¤R<¿ dUj°U¹aFCvšÕP³Ùl`°Õ `€m¡P0ÀXP­VS>}ùA¥báH|ì—zj x†©Ã|ß7Íq¢Œÿ²éöÍË&öµ} ùñâ§ÆIµ¹¸õ8Mî(šÊšÕõ=»´´$ùñFÅÅ1À W©±ð4À.ŒBº÷†‰}Þþ)yñFU์ã;BûãÉÀ…C/߬™Øõ«×$/Î8YßI¾_Ý‘2Nvzøàž‰}ØØ“üø;NÖ?ßÑx<–díÂãì·çñûѳçïLìÊò²ä' œ‰17Q·éñ£{õvýôŒµ±þ·¹‚pªØôâõê‘k2SsalµZ4RY÷bs€‹E*—ËéRÏ“¢Óéd¾.ûý>u»]SkÞEäèH¡~ ¨çf`í^Eꈛ õƒÁ‡¶ŒÔxiÒŽOpøp8üÃßá]®ÿÃkÖyýçâ?.í~Õëõv­V{ÿW€§õX¹geHSIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/scripts.png000066400000000000000000000041731417122252700234020ustar00rootroot00000000000000‰PNG  IHDR szzôtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚ¬Wûo×>3wfvv×»3»~¯«‚ÓÓô!µâ—ªª*’àJiÕÇ ßÚ„©âh©ªÚF•‚ª*i‚Ô@jRUÅd”7Á†Ô€üÂÁØ€í}Ù»;û˜W¿{½†Å$°ŽzåÑ]ïÎÜïœïœó3’ïût¿uáÃóT(ÆdÇuœ¯«ªz Òi1 ã”Dô‡`¤ÁŠQ gù’$Ñz–RÏM™tZYÊ.98ü{L–_Åbª&—IRc;߬”Ë»q÷Dªîu/¹#±™É½ºøkKK³ÒÚÒbÇãq_ 蕲m?R©Tv­ã¼» àað<\×]{)¸üíç}¦a²˜ó#‘ˆÊ­*ä òÜõë´´´ÜÉÏñ\Wª'¤µK<0::Jã—Çp‚G¹\Žd™Û% pxÝÛÔØÔ‡˜³FxFeäå ºyó¦{mv–¥3éo©švzÓæMìîn7 §êÉ‘¥R‰²Ù,µ5·Àk âQÛõ¼=¡`°/‰°xì6xA€Ï»³ss,™J½‚çO“U”°»œÉu'!÷Œ’®ëü_U’eÛs½ÇTU9nš+´×‚ßžÏqÏ_Æýû‘}MÓ¹òÙª š*h·}×}TSÕãFÔ`ñ5à7çç ´S>Ÿ§¦Æx6SP×Y0tÛ ? ¯Ä¶Îr¼mùŠ$É6SþFCCƒß >síg¦õÀØAÜ Çµ§ô@€1Àþg©¦*ªcÛ•Ý©dò Çq”¶ÖVÔË<4˪'Ó4Hè2¿ÿG¼àù¾‹spž/­7ÜCwaaááË£—þ†øâLæoïÞ.ÿàñïS Šï@{-x€8+ð\ÁîàzZP.IpãY¯ q<Ó0šR‹É—Êå² ê®,3vþÂýôÕ/…®Î̈ÄŒh-¸Øq)‚ Æž.[EŸb±g„H)è¢_W’‹Éï Û 0¨E0ŠÇbVhòÊ€ÃsŽ*YNP$^A TØåùåÜïp¤ë׊•2dr…ÉŒg³ø²T.Ïf0Úsb~8v Á¾ìR¾ðLNQüHÌ8XOo´µµ¿õšÀÇ.€¹åJqúQ „òúDpEx^Ý™BLaR¾WJ•Š{áÒGÏf²ÙÎÉ+“¯"¡'PΗ t?oUªqèÐí$ èü—|ð‡S8° mÖ­Ö6ikb¾ ªò]]0B5I—Çǹ 1Cîõ=¯ºRlÿ8/â·Ë皑ɤ±Ë ·$¼£eнÚYùB¼éØÑc|p¡dœK9Ÿ=`ôŽ[J(!Y~(ú8+§‘_6æ_Ïq43>Ûܑ؅/Ý€¦!Oea„˜Wì YhTü๹Yºxñâ“Лÿ|“††‡‰g=7Ò*ZÂQTÝâ}‡R IW™oþ=8¸ãèëǘ‹åÃG±TäI+J­P5€_çΞ¥§?ÏÓk¯ý¬ú‚~Ë*q`>Üûßz¦b0,;S“S¿78øO¦ýý\í@õ2’Ðvy½gQE<Ùø,9‹A¥ÿÄ?`˜EG޼‚\#®®TÊ„RçL§†¹{¾ð¾Ý\.¿ùÃFŽð^ †¼ù…ùäÛoÓÖ®.ñe†a¦aX<Œƒ¹®çйsçDÙ ­$(bÎË’‡·©©‘3ð<þ¿zOxgçÜÏ^½v°1kìHtب_9!ÖsÞG££ Æ¥7wmÙ_´¬i>ÐDÙY¢¯.Ë÷:ÙÏ5le.Èä%ci:-™tºÉ`®XÌ€3éN …ƒBŽ/ÌB–‰ 0†@ƒs`"!;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_btn_off_over_right_border.gif000066400000000000000000000003321417122252700277150ustar00rootroot00000000000000GIF89aÄÙÙÙÛÛÛÝÝݦ¦¦®®®ªªªÐÐÐÑÑÑÍÍÍÁÁÁ½½½ÆÆÆºººÕÕÕ¹¹¹¾¾¾µµµ¥¥¥ÇÇÇÞÞÞ×××ÔÔÔÎÎÎÄÄÄÉÉÉÀÀÀÊÊÊÏÏÏ£££ÂÂÂÃÃÃ!ù,W 'Ž¢e"¦Åylëq],w«ËÖ6îrYïg°Y,(Ôµˆ3Îeɼp0Ð(†£©Z5œv»áT¾`Bi)° `29Dº&QPl [!;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_btn_off_right_border.gif000066400000000000000000000003331417122252700266630ustar00rootroot00000000000000GIF89aÄÑÑÑÒÒÒ®®®ÇÇÇÕÕÕÐÐЦ¦¦ÓÓÓººº°°°ËË˨¨¨¤¤¤²²²©©©ÌÌ̽½½ÆÆÆÉÉÉÍÍÍÏÏÏ¿¿¿¼¼¼ÃÃó³³¾¾¾¹¹¹´´´£££¶¶¶!ù,X`'Ž¢ežVç­¬×qpÌ©íJ×wÛe|Ÿ½2XŽ5´Õl›¤rÓ¹8Ÿ—ŽfJÕt0Ø,¦3˜x½…¢S:@ †<$‡°hh "ÁˆT †!;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_btn_on.gif000066400000000000000000000001401417122252700237670ustar00rootroot00000000000000GIF89a³äääñññïïïæææóóóííí£££êêêçççôôôáááâââ!ù, p-¥ä¬ tŠDbD;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_btn_on_left_border.gif000066400000000000000000000003401417122252700263400ustar00rootroot00000000000000GIF89aÄóóóñññôôôðððàààÐÐЮ®®ªªªòòòÉÉÉìììÚÚÚ¥¥¥ººº¾¾¾îîîÌÌÌÇÇÇåååçççÆÆÆäääÏÏÏïïïãããíííèèèæææêê꣣£áááâââ!ù,]`÷ä'Žy’éé¥c—2ª–¨Lï+÷=×L”zÅP0O§‚Á0t#‘v4š Ûáx¿Ã"CÎ(2ÄeýXS˜A`>(8(X† !;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_btn_on_right_border.gif000066400000000000000000000003411417122252700265240ustar00rootroot00000000000000GIF89aÄîîîàààñññóóóòòòðð𦦦ÐÐЪªª®®®ÉÉÉÌÌÌìììçç祥¥åå庺º½½½¾¾¾ÚÚÚÇÇÇäääÏÏÏïïïãããíííèèèæææêê꣣£áááâââ!ù,^à'Ž_7z£‰’¦è­ÝzƮےeðzï;Úç%RQª! Sab˜Íæ!•v4XMÛáx¿œ#C&O— }Q@ƒ ƒAÅ!9  Œ!;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_close.png000066400000000000000000000002751417122252700236450ustar00rootroot00000000000000‰PNG  IHDR à‘tEXtSoftwareAdobe ImageReadyqÉe<_IDATxÚb`€Nì€Æàâ{@lƒ¦À ˆoCåÁÀ ˆ_!)4ƒòýІ)LÅ¥²€øWàR³¢ˆßbq#†œ  í‘mÁâÂ3 ãÿÿÿ€˪~Zzä^IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/common/tab_close_over.png000066400000000000000000000002551417122252700246760ustar00rootroot00000000000000GIF89a ÄDDDAAA†††|||§¦¦¿¾¾½¼¼µ´´ÑÐÐyyyccc„„„ÈÇÇFFFbaa^^^eeelllÆÅÅ???!ù, *àL$LMá”ÑL´>RTÆI]’²ìš€±"Ñl†‚D°‘  0;carmetal-4.3/src/eric/GUI/icons/themes/common/tab_file_icon.png000066400000000000000000000012161417122252700244630ustar00rootroot00000000000000‰PNG  IHDR&”N:tEXtSoftwareAdobe ImageReadyqÉe<0IDATxÚ”’MkQ†ß™ÉwLdòiT ÕE’ ‚7]¸‰‚¸P7îüêB"¸tc~‚ÚnD„Bt]°±ÚÖ´L›˜™L˜„“IÆ{N­íÊwîpæ>ç=óž+µZ-o:b<ƒÂu]X–…ápˆX,†H$‚J¥"áHÈÝn—¨ªŠT*Å+ŸÏ£P(Àq„B!hšæE,Ë ]’$ƒA.Ç‘ËåÐét¸ÐQX¦AÍuWx½´ƒ@ €h4ʰàyÞ18À´PüÚ6±oØÐ÷·D¡yÎ@ªµZ £ÑˆßE1¯Z­J R{ë­ ô{ÌÞ.BZ îÙˬZ.—aš&t]çBÔz½^÷¤F£á•J%Ìf3˜k+È&o£7Èösœ¸¸(z ²ã¶m³Ó†aðY™ªP[¤NÍ¡Ó.`þÊOÌN>ÀO/áš+' $“I¤ÓiL&Èä$´#‡afAœ¿œ[|­ÕûØm~†4uE;Î )RèüšÁ†Új:‡â5ß‚ Xjšxõn›•ÙUx U«o"=§£×½€• 0­ÔÜ|—ØÓmôö6ÿŽƒþo¹ÞFßR±­-£¸ÖÂÕ×qêtž|øä½pûÀqE¹yú­nìÐ1ÇMÓFJ©Ë½Zë毿üWöø6‚iK­%îC©óÙ‡Š·ºô~†ôž9Ÿ}¨x«gyï©exŒÖz`øš.ÙIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/addmacrofolder.png000066400000000000000000000003611417122252700243260ustar00rootroot00000000000000‰PNG  IHDRÄ´l;tEXtSoftwareAdobe ImageReadyqÉe<“IDATxÚbüÿÿ?-Í fíííT ÊÊJFƒA ¸¸˜"C{{{1] ÔŽDÚüïß?œŠº»»Átii)m\LНhoðçÏŸQ$fÍš…7æÓÒÒ0ƒ`pö„ 0ľ}ûFžÁØ42l`ƒ[°âb¢ &Å@úÅ‚ ¨j0ãhÕ°äB‘œ/u†IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/addmacrofoldersel.png000066400000000000000000000004071417122252700250330ustar00rootroot00000000000000‰PNG  IHDRÄ´l;tEXtSoftwareAdobe ImageReadyqÉe<©IDATxÚbüÿÿ?-Í fíííT ÊÊJFƒA ¸¸˜"C{{{1] ÔŽDÚüïß?œŠBBBÀôš5k¨ëbFFF’}ERPeðçÏŸQ$âããálfff0[¸p!q£˜a„ÄH6xÅŠpvDD†Ø·oßÈ3›FB†Ñ¯¬ `A@Š‹‰2˜é , ªÁŒ£U CPü$ÏIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/backcontrols.gif000066400000000000000000000000531417122252700240230ustar00rootroot00000000000000GIF89a€ÎÎÒ!ù,D;carmetal-4.3/src/eric/GUI/icons/themes/gray/createmacro.png000066400000000000000000000011011417122252700236360ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<ãIDATxÚìV»Š*A=.‹&>5PEŒD1140ð_Œü#ÿÁÔÌØD@A |!¾APðèå4ÌÜÞÝ™e‚»0\ö@MÓuzºNWUC[^¯̈7˜¦öÎO­V3U=«Õªå]™T*Sˆª×ë3F˜í˜_ØóùüÑ@«Õ ãñ‹ÅBÌÃá0‰€ñŒív;t:¤Óiôz=1F£QÜïwŒF#L§SØl6$“Iá'Èq-Åb.—KÕív±ÝnÕƒÁ›Í…BASÜ›,L±Éd"ÄqÌårðz½¸Ýnh6›"ˆâkµZb½ÂñŸT*%Ìétªû1S²(ô‘“cÉØù|VÇãv»ù|^õ1§Ó ™LFŒëõ~¿_ü7q½^Q.—¡µß|>×-19yía2.— B¡Ðßr¹„ÇãA¿ßó`0ˆx<®r±Xìgš_ÆápÐ äv»Eµðx€|°H$‚ý~/,ƒ gHó~ÆÒ–J%Ñ[V«>ŸO—ûÜìÅl6‹Ùl¦ÞZfŠ¢ÈÆLP˜¸‰ÞFßqFøßgÏ?»•FÃTÂ,¿OëÿEØ^.ø/3Íy¬IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/createmacroover.png000066400000000000000000000011211417122252700245340ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<óIDATxÚìV;¯AþÈ­”GG¢¡ …†„FDÃЫ(5*µVÄ?H"4DቕWÇÍ™döÎu³Å½ÉæÆ—ÌΞóÍžóí™3ÙÕ<¨Z¨ªöA—b±¨ªýÌåršnd³YUˆ*•J_#¨í¨_Øý~ÿÓD“ɽ^ãñ˜Ù.— @N§SyÅÖë5ªÕ*"‘šÍ&›=®×+:†Ã!t:‚Á óˆk4˜N§ÌÎd20™L’¨Z­†år)åh·ÛX,H§Ó²â´¢0>ƒV«›ãñ8¬V+.— …KB>›ÍÆ•ÖsŽ^(³a4¥xT)Qùˆs?Uìt:IÎÝnƒÁ€T*%ùZ­öû=‰ŽÇ#æó9ìv;{ŽÞþ|>#ŸÏC.ß>9'®}&âp8°1`6›Q¯×™ív»áóù$Žßÿzó‹Øn·²‰, ’ɤl Ûíö2 õP·Û}É)FMLƒDˆ…B(—ËL€^¯g[í÷û¿qTYμ^/6› ëAÔ§Ä)F‰£Ñè“0Ú:ú:Ìf3v"ÇKŽlÔ‹Ô›ý~Ÿ^)Eœ"aT‰X,&»˜‚¼ ô§„ÿöüÚ©¬T*ª¦yÿZÿaŸ ïû¿¥‹JIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/createmacrosel.png000066400000000000000000000011721417122252700243520ustar00rootroot00000000000000‰PNG  IHDR&¬GîtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚì–½k"AÆCš“—ó£9ü€+´‹6 Á€)‚ˆÿ€½•),bemDR¥  &B$¥B$…bá¡ §ÞåX?:½}v3ÁÝÃ,GwßyÆ}óÎ »ºÍf-j•fÁöé'—Ëij=Óé´n_ R©”& òùüKÅHZ;Ú[¯×ÿ4ÑóÃ&××øywÇâϧ§0Çã8<>Þ½bÃá¥R ¡PÕj•]=–Ë%Z­ôz=ü~?ë'‘W©TÐívYœL&a6›Ùý/ê[&ƒù㣜c|y AŒ¿^\à“Ü&µf³‰Á`À®Ñh6› ‹ÅÙlN‡õÙív¶Qi¼äÑ„‚Á k&“I~Þw±R<”$ê#ϽU1A^f3Ãh4"‘HÈ}µZ “ɱX ³Ù ý~‡ƒý¯^¯c>Ÿ##VEéy?noU—˜<~ì¯ét —Ëõª¯ÝnÃb± \.³ØívÃëõÊžtÿ曟×h4RLdµZ7¬’V«•j’''˜]]©z;Ñ&¦F¼ …0 l©}>ß+OUVòH‡ggX>=a%6^ŽŽ˜·%‡Ã[`´tôvèõzìD:NUb^"ä—ós<ßÜ@¸¿—+EPÜþF•ˆD"Šƒi³Sû[O‚SƒxÿìyÓSY,5¦{ÿ´þ_À~ 0;jû­t²YIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/delmacro.png000066400000000000000000000003241417122252700231450ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<vIDATxÚbüÿÿ?-ãð² ½½*¶UVV2ÂØ,è’ÅÅÅÞÛÛ‹Âǰ€ÚAF þýû7Ä}@s >þŒÂŸ5k^ÒÒÒðÊ31аRPPP€WþÛ·o”Y@ÈB€æA4jé©hÁ‚£5}-0\‹9àˆ‚®ÍIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/delmacrosel.png000066400000000000000000000003401417122252700236470ustar00rootroot00000000000000‰PNG  IHDRÚ}\ˆtEXtSoftwareAdobe ImageReadyqÉe<‚IDATxÚbüÿÿ?-ãð² ½½*¶UVV2ÂØ,è’ÅÅÅÞÛÛ‹Âǰ€ÚAF þýû7Ä}@s >þŒÂ‡³™™™Áôß¿áb .$Ít3”Ù¬X±¯ü·oß(³€„Á¨¤§¢ ŒÖhôµ À'=œÐf¿;IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/leftcanvas.png000066400000000000000000000001551417122252700235070ustar00rootroot00000000000000‰PNG  IHDRwSÞtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbX»v-@€ç/IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/macrospanelback.gif000066400000000000000000000001541417122252700244660ustar00rootroot00000000000000GIF89aè€äêóÿÿÿ!ù,èCŒ‰Àíï”T°Â‰Ý,c¾yh‰Y™ú¨ ÛºÉÝÙžÛ< Ûñ‚?âPWD}KY’‰3F•S(Mz¥f­0Q;carmetal-4.3/src/eric/GUI/icons/themes/gray/menubar.gif000066400000000000000000000001401417122252700227650ustar00rootroot00000000000000GIF89a³ÈÈȾ¾¾tttÇÇÇÃÃÃÄÄÄÀÀÀ½½½ÉÉÉÅÅÅÂÂÂ!ù, !F*…(eL8‡"D;carmetal-4.3/src/eric/GUI/icons/themes/gray/renamemacro.png000066400000000000000000000006551417122252700236570ustar00rootroot00000000000000‰PNG  IHDRÄ´l;tEXtSoftwareAdobe ImageReadyqÉe<OIDATxÚìU1ªƒ@?A­¬ Û`¥•G°¤ñ^@BðšÂ ¤Ê%lìÄ ˆ]ÀÂB°ÒBmÌÿ.(›!!Ñî 3ov÷1ûdVêv»Áö ÙbÄ+ض=‹.–eQ+²hšæW¤®ëNKÑÌwüïv“ø©ÆïGpå}ì1Nü E×ucžç9A€bÓ4°ÝnAÓ4`Y­8N(âç^v\×5‚ûýyš¦àûþÝòÌÓŽñEQ‘ã7ˆãÈ¡š²⪪îp’$ÈûzÛ¶“{Hy¤1 EQ@–eP–%’d–·b·ÛMÓàyê^–eT´þ¸cŽã@×õ»š¢(c~>ŸÁ0Œ1Îòºádù,Äd‡$~âr¹ÌòSÿ¿¦Á~¿¯õ¥¹_=ÐIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/renamemacrosel.png000066400000000000000000000006741417122252700243640ustar00rootroot00000000000000‰PNG  IHDRÄ´l;tEXtSoftwareAdobe ImageReadyqÉe<^IDATxÚìU1Ž‚@}šÅ Ø é,íì =Ða«GÐF± Þ@)iwЊX¨±3¡#6ÆX:#›™ƒ²ìÊ›ìK&þÿ3ÇÏK¦Ç1~µ¿MlF%_™L&µ¶8Þ"5M“Æ:Û Pfɲœ›'ø1±ëºP…îI$yš83ŠûýþØo6,—K\.Ün7´ÛmL§S4›MÚwªªÒ˜¾÷¥âëõŠV«…ápˆ~¿  ëúÓöÎKÅé¦$It%8Øï÷`-šgÙ q†O¹mÛð<QÑqäaó\â4f³|߇(Šèt:X¯×Øn·¥lW/jRžç¡iºÝî·ü\¨˜ã8œÏg¬V+œN'‡ÒÄ…ŠÇã1,ËÂn·C¯×£uâ–· ‚€ù|þT#ÖK0 °X,±´â"¤ÉòJˆY…lž™çÿ R)>Y[E›5uSIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/rightcanvas.png000066400000000000000000000001551417122252700236720ustar00rootroot00000000000000‰PNG  IHDRwSÞtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbX»v-@€ç/IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/statusbar.gif000066400000000000000000000001421417122252700233460ustar00rootroot00000000000000GIF89a³ÅÅÅÃÃÃÊÊÊÇÇÇÂÂÂÄÄÄÈÈÈÍÍÍËËËÌÌÌ!ù,ðœtP(›]ÆED;carmetal-4.3/src/eric/GUI/icons/themes/gray/tabbar.gif000066400000000000000000000001501417122252700225700ustar00rootroot00000000000000GIF89a ³ÄÄÄÁÁÁèèèÈÈÈÅÅÅÒÒÒ£££çççÑÑÑÖÖÖÍÍÍÏÏÏÓÓÓÐÐÐÔÔÔÌÌÌ!ù, ÐáRrØ1V6BMØ,ä¢(Ï@@;carmetal-4.3/src/eric/GUI/icons/themes/gray/titlebar.gif000066400000000000000000000001421417122252700231440ustar00rootroot00000000000000GIF89a³èèèÖÖÖ£££ÑÑÑÏÏÏËËËÐÐÐÍÍÍÔÔÔÓÓÓÌÌÌ!ù,PM8a:!G¨d;carmetal-4.3/src/eric/GUI/icons/themes/gray/verticalseparator.png000066400000000000000000000001551417122252700251130ustar00rootroot00000000000000‰PNG  IHDRwSÞtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚbX»v-@€ç/IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zcborder.gif000066400000000000000000000000531417122252700231510ustar00rootroot00000000000000GIF89a€ÎÎÒ!ù,D;carmetal-4.3/src/eric/GUI/icons/themes/gray/zclosebutton.png000066400000000000000000000013511417122252700241130ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<‹IDATxÚÄ”MOQ†ßé´óÕÎLaÚ…„ R°E RŒ›†jâžÁßÀa%?ÀÏ{­Ö ÐH¢!"-¶3¥¹žÎi$ÆèM&¹sî9ϼçc.ÇÃß\Ü?ær9–Íf±°°€õõu׋ÅJ¥ÉdN§¹KgggÙüüÍÏŸ!ÔÕ‹¾a‘0r99-㘛öF$âž…¢½hú6cZ*\\\D±\ÃHçÃîÞŽ+à½4£ì†jµ‡ã!àÚò,--5ëyq Óé»Ìâ% !Biªj²,ÁËó.ÐqX¦‰Òé)‹ØØü©a!÷î5w¡Âí¯¸39‰NJUU5hšJ@'7 ±m‡šðÙT­ Þ¿yÛº)rP‡ !DêtÚë¤PñËðú|ähìXE ¢O@ùG ²®µŽÇá †Ñ-€_VàDâЩ£*šàyû®o’bZo$‡ñí Q j*T$’¨Àƒº]ƒOðÁa”:Õ²zfQÌZŽÍíÔ:,Ë"ˆz@u‡;ÔÐÖ®RM5¨úˆ,ã¬fÂ>«abüfk…©ñ[ÜÖög–/ÜaÃ/‰QO)köÆÁI¹„µÕÆC˜Hs¿ýõ?yÊvvÐíF<>ˆžî7•=*ÇæÖöv¿ ;ÜŽ‡Ó¸K_Ë++¬°úf½“ïGÍ&££³ÇM)~uÉd‚û¿×ן®Ÿ ý÷ûšE¤IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zclosebuttonover.png000066400000000000000000000014071417122252700250110ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<©IDATxÚÌTKOQ=#ØeÚÒÔ¶¶)ТÆÐêªI51&,Hc" 5YñCXÉJ"â¢aa4&ØX#Æ)jLÁ,"¶<Òv¦ŒßÌ’´Â‚…_r“›ïuÏ9ß½—‘$ GiÇpÄV^*‹Å¤h4ŠÉÉI$ Åçñxà÷û … ™buL1ʃƒƒR$Á`€×ë…ÝnWü+++˜Åææ&Âá0˜Ê͆† ½ý,BW®RÃ6XÍf%¶–N£¡Ñƒèø+È9dÒþ¦ÇöÓ|6ú Í^4žñ"ÁóÐh+òبi/ûäX=åȹrMI„SSSHoåÐÒQñ7ï‘Yß@âÛ"îÜêÃÅ>z ~á;LF#¸Vóss˜žž–õ,®a0xYÊ–iи„j“ Ï_¼D&“A]­›2äE˜ÉßÙy ¿ÖÒ4°ЈYÄÞ¾fŠRž[ø —Ë ›Õ= äþ½Ûhmk†°'@(ä•}ÿ]ªªà¨±ÁåvƒO¦JEk4Àl±((X}%ô:NÑêr•—§m1™¡R©ÉwÕ+´}é‹ÝÞÂA§V­Ô¡ŠšÏÄ?AȉD¹NYò~æcœ4ÔÓ,*(×G5%žóµ`i5 µF>Á£PqÒåD¸« à 26†ííºè<ܤëŸ|–jZK#¼è¿‘®G6—Ãé¦:Ò’EO÷u°¬Ž4Õ¡·çlÕ,8OjVÈçè8ÿï—2<2*¥V3üD³F¢§Õ”)wó"¶¶vJ-áÝÄœV#ÒÍøô†ŸŒHÉÔ*NØà¸&85 •e’ƒŸOb9µ‡Õ„¾›½Ì¡Þ²l3ñ¸ôùËWì "6ÖB ÆæTDçš›àóyÿ9üWÿá_þC<Œ?ÌIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zgrowbutton.png000066400000000000000000000013561417122252700237710ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚ¬”ßKÛPÇ¿I›¤M󣚶jDpÎn­k݆³Ž½ˆe°w߆ûüC|šÀ~>ø>Ý:aB•=h©7tÂæaÖÙj“Ô6ÍNò(…yàÂͽç|ò=çÜ{YÛ¶qƒÅ5›ßk£P(Øù|Åb›››îZ"‘@6›E.—Ãää$sQãÈzƒaZ$‚5A¥¹*KCARÄ! ƒ” BÇ£vZEPU¼£©$BOÇE¦u@‘$„‚"ü¼@<¶›Ð>ë~‹ä›¡Oà½L ¿*Ø(³dFKÌIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zgrowbuttonover.png000066400000000000000000000013731417122252700246640ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<IDATxÚÌTKOQþn_Óéc¦0m)› R-Úâ[ÔMC5q)•ÑßÀéBåø\°71•‚‘uM‹" ¦@H¤Ø©¥3}Ðñv–„ ,Xx&“¹¹ç;ßœs¾s/QUgiœ±™ô©TJM&“˜››Ãòò²¶FÇ‹ÅÈqq丒‰„:99 žç … Š¢¶¿³³ƒL&I’0::Šññqrb†-²‰‰¸Žøƒ‡”ð<‚ ù~ è½@òÃ{´0ÔÔ£¤†£e¾{ûî®ø/õCðzФijçÚ{Hׂ׫ùÜbZØVŒ.áüü< ¥*:Ïù¡3òÛ{È-­`!·Š…ì*]ÿ@~kMb„—J Òé´¾Ê33³ý½<0š,(W”*2Ì«e¹ŠŠR‡ÉÌÀëí¢Ø ˜N}ÖÅ×Pï ÃÞ/é¯hãí`í6 £ÝRdé/îÞŠ`}s³§°µù+ ëâ!¸ÝpSĜÖea05“>U¹†f(x”ÊXžÓWy ?;c¡ãÂallL#´³6LMj%‡áû1TdéØì%Ø(6Lct o„û±µ[cµÀÉ9á¤Ä« íí.Z¶ËÕFûiFSm¢"˨ÔsU_”;ÑA4u(Š+cïpjÃÍÛ àlôå88ô'´ µªŒÃZC‘›úF#·ÉÚúO5“ÍjÃìvyÀXLx42¢•|PkÐoÅ’„¥\ƒ¡+ŠFȉGïå«×êF~]¢Á`º}Z)Û´+kØÎÿ‚ÏÓŽ§O“Så–-,.ªÙÜ7ÈõŠöhŽÎn­¤àå>„áÓ_ÿÕ}øO€.Éö׊ñ‘_IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zoombox.png000066400000000000000000000003271417122252700230570ustar00rootroot00000000000000‰PNG  IHDR"§tEXtSoftwareAdobe ImageReadyqÉe<yIDATxÚìÔI À Píå=ŒçqÚ{‹_.ª•:] ¸øFP @pÕ%ë`+•R FÖºnÒ X]!(¥sƳÏ-cι Š1îÌZû‚(/c-ä½ß»³Yhˆc>!ÊSXoc/±Y¨UþãÛ¾·ñßÊežÑIEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zreducebutton.png000066400000000000000000000013441417122252700242570ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<†IDATxÚÄ”MOAÇÿÛvwÛí¾¶-PH "Õ‚-jb¼ïÜŒ~>'ù¾¸›˜j%‘ˆh  H¢!‘"-twK»ŸÝ#²‘£“L2;ó<¿ý?/3c spÿ X(X>ŸÇââ"666ܽd2‰l6‹\.‡‰‰ îÂÀ™™677MÓN§‘H$Üý½½=‹ET*LMMazzúhà<Øìì#ŒŒ\Gîî=^CL×ݳïå2ú’È¿z dž; õ óÅógˆvõ¢ïòôx -29:®â¦Mk=wÏ¢‰^8¶Ž§Â¥¥%”«u ôqÃðl›ÛÙQ4› X–E4Yq›;QÑÖ®PNU(2ý$ÂiÝ„}ZÇøØMo…Ù±[ÜæÖgV,•ÜfŽFb…¤ £š0RæÔ¦…£jëk%Œ¦¯b<;Æýöê=~ò”mïì£+ÑTj=Ýn(»”ŽO›ÛØÝù‚îX;>¸Ï]øqXY]e¥µ0Mý8pŠŒŽÎ7¤Ô•Ad2iîÿ>_:~ 0ÒøÎ<É3£IEND®B`‚carmetal-4.3/src/eric/GUI/icons/themes/gray/zreducebuttonover.png000066400000000000000000000013571417122252700251570ustar00rootroot00000000000000‰PNG  IHDR[ÐþtEXtSoftwareAdobe ImageReadyqÉe<‘IDATxÚÄ”]OÓ`ÇÿϺ—¶[ÛI·ƒ„`2pÃÜPo¦‰÷ãÊègàƒp%À× îMt:oŒ0½€e @@E l®›[»·Ö§õY$ÆèIš4Ï9ç×óòïC ÃÀß4òÏ€™LÆH§ÓXZZÂÆÆ†u …Ç‘L&‘H$È™óóóÆââ"$IB$A0´ÎËå ( R©æææ~ÚOƒ-,ÜÇääE$oݦÀ ð˲å;*04Búù3˜1ÔŒ“PÛÉ6Ÿ>y _ïGÆ!üÐiH©RF‘>mú.–Ï€kæt¬pyy…rÃ0ˆ{ûÇ(«`ì6˜YíVµZ:a Àõ•÷Èf³æ¯.§„ãèïë¶ZÙ§ãØÚÞÅþÞgôù»pïîræËaeuÕȯ}€Úl¡ôí¦rº{ú­–ÂçGFÈÿ½¾þÔ~0ÁÐÂo¬IEND®B`‚carmetal-4.3/src/eric/GUI/palette/000077500000000000000000000000001417122252700167465ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/palette/.DS_Store000066400000000000000000000300041417122252700204260ustar00rootroot00000000000000Bud1 StoreIl  @€ @€ @€ @ .DS_StoreIlocblob^˜ÿÿÿÿÿÿJColorPanel.javaIlocblobF(ÿÿÿÿÿÿ JCursor.javaIlocblobÌ(ÿÿÿÿÿÿ JIcon.javaIlocblobR(ÿÿÿÿÿÿ JIcon.javaptbLustrFUsers/patricedebrabant/Dropbox/netbeans/CaRMetal/src/eric/GUI/palette/ JIcon.javaptbNustr JIcon.javaJIconMouseAdapter.javaIlocblobØ(ÿÿÿÿÿÿPaletteManager.javaIlocblob^(ÿÿÿÿÿÿPaletteManager.javaptbLustrFUsers/patricedebrabant/Dropbox/netbeans/CaRMetal/src/eric/GUI/palette/PaletteManager.javaptbNustrPaletteManager.javaPaletteZone.javaIlocblobv(ÿÿÿÿÿÿPaletteZone_3D.javaIlocblobä(ÿÿÿÿÿÿPaletteZone_3D.javaptbLustrFUsers/patricedebrabant/Dropbox/netbeans/CaRMetal/src/eric/GUI/palette/PaletteZone_3D.javaptbNustrPaletteZone_3D.javaPaletteZone_Aspect.javaIlocblobj(ÿÿÿÿÿÿPaletteZone_Geom.javaIlocblobð(ÿÿÿÿÿÿPaletteZoneCheckBox.javaIlocblobF˜ÿÿÿÿÿÿPaletteZoneContent.javaIlocblob̘ÿÿÿÿÿÿPaletteZoneLabel.javaIlocblobR˜ÿÿÿÿÿÿPaletteZoneTitle.javaIlocblobؘÿÿÿÿÿÿ E DSDB `€ @€ @€ @PaletteZone_3D.javaPaletteZone_Aspect.javaIlocblobj(ÿÿÿÿÿÿPaletteZone_Geom.javaIlocblobð(ÿÿÿÿÿÿPaletteZoneCheckBox.javaIlocblobF˜ÿÿÿÿÿÿPaletteZoneContent.javaIlocblob̘ÿÿÿÿÿÿPaletteZoneLabel.javaIlocblobR˜ÿÿÿÿÿÿPaletteZoneTitle.javaIlocblobؘÿÿÿÿÿÿcarmetal-4.3/src/eric/GUI/palette/JColorPanel.java000066400000000000000000000257331417122252700217730ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.GUI.palette; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Stroke; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.image.BufferedImage; import javax.swing.BoxLayout; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import net.java.dev.colorchooser.ColorChooser; import net.java.dev.colorchooser.Palette; import rene.gui.Global; /** * * @author erichake */ public class JColorPanel extends JEricPanel implements MouseListener, MouseMotionListener { /** * */ private final ColorChooser cchooser; private Palette Pal; int PaletteType; int xx, yy; colorline mycolorpickerline; JComboBox JCB; JLabel comment; JColorPanel me; /** * * @param g */ @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d=this.getSize(); g.drawImage(themes.getImage("palbackground.gif"), 0, 0, d.width, d.height, this); } /** * Creates a new instance of JColorPanel * * @param zf * @param jpm */ public JColorPanel() { me=this; xx=-1; yy=-1; PaletteType=Global.getParameter("colorbackgroundPal", 1); cchooser=new ColorChooser(); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setAlignmentX(0); this.setOpaque(false); this.add(margintop(5)); JCB=new JComboBox(); JCB.setMaximumRowCount(5); JCB.setOpaque(false); JCB.setFocusable(false); JCB.setEditable(false); JCB.setAlignmentX(0); JCB.setFont(new Font("System", 0, 11)); JCB.addItem(Global.Loc("palette.colors.saturated1")); JCB.addItem(Global.Loc("palette.colors.desaturated1")); JCB.addItem(Global.Loc("palette.colors.saturated2")); JCB.addItem(Global.Loc("palette.colors.desaturated2")); JCB.addItem(Global.Loc("palette.colors.constants")); JCB.setSelectedIndex(PaletteType); JCB.addItemListener(new ItemAdapter()); final JEricPanel JCBpanel=new JEricPanel(); JCBpanel.setLayout(new BoxLayout(JCBpanel, BoxLayout.X_AXIS)); JCBpanel.setAlignmentX(0); JCBpanel.setOpaque(false); fixsize(JCBpanel, themes.getRightPanelWidth(), 24); JCBpanel.add(margin(5)); fixsize(JCB, themes.getRightPanelWidth()-10, 22); JCBpanel.add(JCB); this.add(JCBpanel); mycolorpickerline=new colorline(PaletteType); this.add(mycolorpickerline); comment=new JLabel("coucou"); comment.setOpaque(false); comment.setAlignmentX(0); comment.setFont(new Font("System", 0, 9)); fixsize(comment, themes.getRightPanelWidth(), 14); comment.setHorizontalAlignment(SwingConstants.CENTER); this.add(comment); } public void refresh(){ JCB.setSelectedIndex(Global.getParameter("colorbackgroundPal", 1)); } class ItemAdapter implements ItemListener { public void itemStateChanged(final ItemEvent evt) { if (evt.getStateChange()==ItemEvent.SELECTED) { me.remove(mycolorpickerline); mycolorpickerline=new colorline(JCB.getSelectedIndex()); Global.setParameter("colorbackgroundPal", JCB.getSelectedIndex()); me.add(mycolorpickerline, 2); int x=Global.getParameter("colorbackgroundx", 74); int y=Global.getParameter("colorbackgroundy", 12); x=x*Pal.getSize().width/mycolorpickerline.mycolors.getSize().width; y=y*Pal.getSize().height/mycolorpickerline.mycolors.getSize().height; final Color mycolor=Pal.getColorAt(x, y); if (mycolor!=null) { Global.setParameter("colorbackground", mycolor); } me.repaint(); PaletteManager.init(); } } } public JDialog GetDialog(final Component c) { if (c instanceof JDialog||null==c) { return c==null?null:(JDialog) c; } return GetDialog(c.getParent()); } class colorline extends JEricPanel { /** * */ JEricPanel mymargin; onlycolors mycolors; colorline(final int ptype) { PaletteType=ptype; Pal=cchooser.getPalettes()[ptype]; this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setAlignmentX(0); mymargin=margin(0); if (themes.getRightPanelWidth()>Pal.getSize().width) { fixsize(mymargin, (themes.getRightPanelWidth()-Pal.getSize().width)/2, 1); } this.add(mymargin); mycolors=new onlycolors(ptype); this.add(mycolors); this.setOpaque(false); } // public void fixmargin(){ // if (PW>Pal.getSize().width){ // fixsize(mymargin,(PW-Pal.getSize().width)/2,1); // } // } // public void setPalette(int i){ // mycolors.changePal(i); // fixmargin(); // } } private class onlycolors extends JEricPanel { /** * */ Image bimage; @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final Dimension d=this.getSize(); final int w=d.width; final int h=d.height; g.drawImage(bimage, 0, 0, w, h, this); final Color mycolor=Global.getParameter("colorbackground", new Color(231, 238, 255)); cchooser.setColor(mycolor); if (JZirkelCanvas.getCurrentZC()!=null) { JZirkelCanvas.getCurrentZC().setBackground(mycolor); JZirkelCanvas.getCurrentZC().repaint(); } int x=Global.getParameter("colorbackgroundx", 74); int y=Global.getParameter("colorbackgroundy", 12); if (PaletteType==4) { x=((int) (x/12))*12+6; y=((int) (y/12))*12+6; } final Graphics2D g2=(Graphics2D) g; // AlphaComposite ac = // AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.5f); // g2.setComposite(ac); g2.setColor(new Color(0, 0, 0)); Stroke stroke=new BasicStroke(1f); g2.setStroke(stroke); g2.drawRect(x-4, y-4, 8, 8); stroke=new BasicStroke(1f); g2.setStroke(stroke); g2.setColor(new Color(255, 255, 255)); g2.drawRect(x-3, y-3, 6, 6); // g.drawRect(x-5,y-5,10,10); comment.setText(Pal.getNameAt(x, y)); } onlycolors(final int ptype) { final int w=(themes.getRightPanelWidth()mycolorpickerline.mycolors.getSize().width) { x=mycolorpickerline.mycolors.getSize().width; } if (x<0) { x=0; } if (y>mycolorpickerline.mycolors.getSize().height) { y=mycolorpickerline.mycolors.getSize().height; } if (y<0) { y=0; } Global.setParameter("colorbackgroundx", x); Global.setParameter("colorbackgroundy", y); x=x*Pal.getSize().width/mycolorpickerline.mycolors.getSize().width; y=y*Pal.getSize().height/mycolorpickerline.mycolors.getSize().height; final Color mycolor=Pal.getColorAt(x, y); if (mycolor!=null) { Global.setParameter("colorbackground", mycolor); JZirkelCanvas.getCurrentLocalPreferences(); mycolorpickerline.mycolors.repaint(); } } public void mouseReleased(final MouseEvent e) { xx=-1; yy=-1; } public void mouseEntered(final MouseEvent e) { } public void mouseExited(final MouseEvent e) { } public void mouseDragged(final MouseEvent e) { mousePressed(e); } public void mouseMoved(final MouseEvent e) { } } carmetal-4.3/src/eric/GUI/palette/JCursor.java000066400000000000000000000105741417122252700212070ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.GUI.palette; import eric.*; import eric.GUI.themes; import java.awt.Color; import java.awt.Font; import javax.swing.BoxLayout; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.JSlider; import rene.gui.Global; /** * * @author erichake */ public class JCursor extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; JLabel mylabel, myval; public JSlider mycursor; String myP, mytxt; boolean palmember = false; /** Creates a new instance of JCursor */ @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); if (palmember) { final java.awt.Dimension d = this.getSize(); g.drawImage(themes.getImage("palbackground.gif"), 0, 0, d.width, d.height, this); } } // JCursor constructor for palette member : public JCursor(final String myparam, final String mytext, final int min, final int max, int sel) { sel = Global.getParameter(myparam, sel); myP = myparam; palmember = true; final int lblwidth = 65; mytxt = mytext; mycursor = new JSlider(); mylabel = new JLabel(); myval = new JLabel(); this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setAlignmentX(0); mylabel.setText(" " + mytxt); mylabel.setForeground(Color.DARK_GRAY); mylabel.setFont(new Font(Global.GlobalFont, Font.PLAIN, 11)); mylabel.setSize(lblwidth, 27); mylabel.setMaximumSize(new java.awt.Dimension(lblwidth, 27)); mylabel.setMinimumSize(new java.awt.Dimension(lblwidth, 27)); mylabel.setPreferredSize(new java.awt.Dimension(lblwidth, 27)); myval.setText(String.valueOf(sel)); myval.setForeground(Color.GRAY); myval.setFont(new java.awt.Font(Global.GlobalFont, Font.BOLD, 11)); myval.setSize(20, 27); myval.setMaximumSize(new java.awt.Dimension(20, 27)); myval.setMinimumSize(new java.awt.Dimension(20, 27)); myval.setPreferredSize(new java.awt.Dimension(20, 27)); mycursor.setFont(new java.awt.Font(Global.GlobalFont, 0, 11)); mycursor.setOpaque(false); mycursor.setMajorTickSpacing(1); mycursor.setMaximum(max); mycursor.setMinimum(min); mycursor.setMinorTickSpacing(1); mycursor.setPaintLabels(false); mycursor.setPaintTicks(false); mycursor.setSnapToTicks(true); mycursor.setValue(sel); mycursor.setAlignmentX(0.0F); mycursor.setMaximumSize(new java.awt.Dimension(themes.getRightPanelWidth() - 82, 27)); mycursor.setMinimumSize(new java.awt.Dimension(themes.getRightPanelWidth() - 82, 27)); mycursor.setPreferredSize(new java.awt.Dimension(themes.getRightPanelWidth() - 82, 27)); mycursor.setSize(new java.awt.Dimension(themes.getRightPanelWidth() - 82, 27)); mycursor.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(final javax.swing.event.ChangeEvent evt) { final JSlider myc = (JSlider) evt.getSource(); final int mysel = myc.getValue(); rene.gui.Global.setParameter(myP, mysel); // JPM.MW.JPR.getLocalPreferences(); if (JZirkelCanvas.getCurrentZC()!=null) { JZirkelCanvas.getCurrentZC().getLocalPreferences(); JZirkelCanvas.getCurrentZC().updateDigits(); JZirkelCanvas.getCurrentZC().JCM.updateDigits(); JZirkelCanvas.getCurrentZC().resetGraphics(); JZirkelCanvas.getCurrentZC().repaint(); }; myval.setText(String.valueOf(mysel)); } }); this.add(mylabel); this.add(mycursor); this.add(myval); this.setOpaque(false); this.setMaximumSize(new java.awt.Dimension(themes.getRightPanelWidth(), 27)); this.setMinimumSize(new java.awt.Dimension(themes.getRightPanelWidth(), 27)); this.setPreferredSize(new java.awt.Dimension(themes.getRightPanelWidth(), 27)); this.setSize(themes.getRightPanelWidth(), 27); } } carmetal-4.3/src/eric/GUI/palette/JIcon.java000066400000000000000000000535031417122252700206210ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.FileTools; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.window.LeftPanel; import eric.GUI.window.tab_main_panel; import java.awt.image.ImageFilter; import eric.GUI.windowComponent; import eric.JZirkelCanvas; import eric.macros.CreateMacroDialog; import eric.macros.MacroTools; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.Stroke; import java.awt.event.MouseEvent; import java.awt.image.FilteredImageSource; import javax.swing.GrayFilter; import javax.swing.ImageIcon; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.constructors.AreaConstructor; import rene.zirkel.constructors.QuadricConstructor; import rene.zirkel.tools.JLocusObjectTracker; import rene.zirkel.tools.JSmacroTool; import rene.zirkel.tools.ObjectTracker; /** * * @author erichake */ public class JIcon extends windowComponent { // icon_group==null means simple push button // icon_group==icon_name name means simple toggle button private String icon_name=""; private String icon_group=""; private boolean isSelected; // icon state private boolean isDisabled=false; // icon disabled ? private boolean isEntered=false; // Mouseover ? private Image image=null; private int IconsPerRow=-1; // Number of icons per row. // If -1 then this is the standard number defined // by themes.palette_icon_per_row @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d=this.getSize(); final int w=d.width; final int h=d.height; final Graphics2D g2=windowComponent.getGraphics2D(g); if (isDisabled) { final ImageFilter filter=new GrayFilter(true, 60); final Image disImage=createImage(new FilteredImageSource(image.getSource(), filter)); final ImageIcon myicn=new ImageIcon(disImage); g2.drawImage(myicn.getImage(), 0, 0, w, h, this); return; } g2.drawImage(image, 0, 0, w, h, this); if (isSelected) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.2f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 100)); // g2.fillRoundRect(1,1,w-1,h-1,14,14); g2.fillRect(1, 1, w-1, h-1); } if (isEntered) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.1f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); final Stroke stroke=new BasicStroke(3f); g2.setStroke(stroke); g2.drawRect(2, 2, w-4, h-4); } } public JIcon(String name, String group) { super(); icon_name=name; icon_group=group; image=themes.getPaletteImage(name); PaletteManager.registerIcon(this); String ttp=PaletteManager.ToolTip(name); if (ttp!=null) { setToolTipText(""+ttp.replace("+", "
")+""); } setOpaque(false); } public JIcon(String name, String group, int iconperrow) { this(name, group); IconsPerRow=iconperrow; } public String getIconGroup() { return icon_group; } public String getIconName() { return icon_name; } public boolean isToggleButton() { return (icon_name.equals(icon_group)); } public boolean isPushButton() { return (icon_group==null); } public void setOver(boolean b) { isEntered=b; } public void setSelected(boolean b) { isSelected=b; } public void setDisabled(boolean b) { isDisabled=b; } public boolean isSelected() { return isSelected; } public boolean isDisabled() { return isDisabled; } public void init() { int w=getIconWidth(); setPreferredSize(new Dimension(w, w)); } public int getIconWidth() { if (IconsPerRow==-1) { return themes.getPaletteIconWidth(); } else { int w=(themes.getPaletteIconPerRow()*themes.getPaletteIconWidth())/IconsPerRow; return w; } } @Override public Point getToolTipLocation(MouseEvent event) { return new Point(getSize().width/2, getSize().height+4); } @Override public void mouseClicked(MouseEvent e) { } @Override public void mousePressed(MouseEvent e) { ClicOnMe(); } @Override public void mouseReleased(MouseEvent e) { } @Override public void mouseEntered(MouseEvent e) { PaletteManager.setOverBtn(this); } @Override public void mouseExited(MouseEvent e) { isEntered=false; PaletteManager.repaint(); } private static ZirkelFrame ZF; private static ZirkelCanvas ZC; private static JZirkelCanvas JZF; private static String moveonreselect=",delete,hide,rename,edit,zoom,animate,"; private static void TasksBeforeClick(JIcon me) { ZF.CurrentTool=0; if (PaletteManager.isGeomGroup(me.getIconName())) { AreaConstructor.deletePreview(ZF.ZC); QuadricConstructor.deletePreview(ZF.ZC); } CreateMacroDialog.quit(); ZF.ZC.JCM.hideHandles(null); } public void ClicOnMe() { if ((moveonreselect.indexOf(","+icon_name+",")!=-1)&&(isSelected)) { PaletteManager.setSelected_with_clic("move", true); return; } PaletteManager.setSelectBtn(this); ZF=JZirkelCanvas.getCurrentZF(); JZF=JZirkelCanvas.getCurrentJZF(); ZC=JZirkelCanvas.getCurrentZC(); if (ZC==null) { return; } if(ZC.getTool() instanceof JSmacroTool){ ((JSmacroTool) ZC.getTool()).invalidate(ZC); } PaletteManager.setGoodProperties(icon_name); TasksBeforeClick(this); action(this, icon_name); } private static boolean checkReplay(String o) { if (o.equals("oneforward")) { JZF.getReplay().iconPressed(o); } else if (o.equals("oneback")) { JZF.getReplay().iconPressed(o); } else if (o.equals("fastforward")) { JZF.getReplay().iconPressed(o); } else if (o.equals("fastback")) { JZF.getReplay().iconPressed(o); } else if (o.equals("allforward")) { JZF.getReplay().iconPressed(o); } else if (o.equals("setbreak")) { JZF.getReplay().iconPressed(o); } else if (o.equals("nextbreak")) { JZF.getReplay().iconPressed(o); } else { JZF.getReplay().doclose(); return false; } return true; } private static void action(JIcon me, String o) { if (checkReplay(o)) { return; } if (me.isDisabled) { return; } ZC.pause(true); ZC.requestFocus(); ZF.setinfo(o); if ((ZC.isDP())&&(!ZC.isEuclidian())&&(MacroTools.isDPMacro(o))) { MacroTools.runDPMacro(o); } else if (o.equals("select")) { ZF.ZC.setSelectTool(); } else if (o.equals("load")) { ZF.setinfo("save"); FileTools.openFile(); } else if (o.equals("save")) { ZF.setinfo("save"); FileTools.saveFile(); } else if (o.equals("new")) { tab_main_panel.newTabBtn(); pipe_tools.actualiseMacroPanel(); } else if (o.equals("newmacro")) { new CreateMacroDialog(JZirkelCanvas.getNewMacroPanel()); JZirkelCanvas.ActualiseMacroPanel(); } else if (o.equals("manage_macros")) { LeftPanel.showPanel(me.isSelected); } else if (o.startsWith("type")) { ZF.settype(Integer.parseInt(o.substring(4))); ZF.setinfo("zone_aspect"); } else if (o.startsWith("thickness")) { setObjectColorType(Integer.parseInt(o.substring(9))); ZF.setinfo("zone_aspect"); } else if (o.startsWith("filled")) { setObjectFilled(me.isSelected); } else if (o.startsWith("color")) { ZF.setinfo("zone_aspect"); setObjectColor(Integer.parseInt(o.substring(5))); } else if (o.startsWith("acolor")) { final int chx=Integer.parseInt(o.substring(6)); ZF.ZC.setAxis_color(chx); ZF.ZC.repaint(); } else if (o.startsWith("athickness")) { final int chx=Integer.parseInt(o.substring(10)); ZF.ZC.setAxis_thickness(chx); ZF.ZC.repaint(); } else if (o.equals("numgrid")) { ZF.ZC.setAxis_labels(me.isSelected); ZF.ZC.repaint(); } else if (o.equals("dottedgrid")) { ZF.ZC.setAxis_with_grid(me.isSelected); ZF.ZC.repaint(); } else if (o.equals("vector")) { //ZF.setVectors(true); ZF.settool("vector"); } else if (o.equals("vector3D")) { //ZF.setVectors(true); ZF.settool("vector"); } else if (o.equals("inter3D")) { //ZF.setVectors(true); ZF.settool("intersection"); } else if (o.equals("midpoint3D")) { //ZF.setVectors(true); ZF.settool("midpoint"); } else if (o.equals("segment3D")) { //ZF.setVectors(true); ZF.settool("segment"); } else if (o.equals("line3D")) { //ZF.setVectors(true); ZF.settool("line"); } else if (o.equals("ray3D")) { //ZF.setVectors(true); ZF.settool("ray"); } else if (o.equals("area3D")) { //ZF.setVectors(true); ZF.settool("area"); } else if (o.equals("segment")) { //ZF.setVectors(false); ZF.settool("segment"); } else if (o.equals("quadric")) { //ZF.setVectors(false); ZF.settool("quadric"); } else if (o.equals("fixedsegment")) { ZF.setVectors(false); ZF.settool("fixedsegment"); } else if (o.equals("angle3D")) { //ZF.setVectors(true); ZF.settool("angle"); } else if (o.equals("image3")) { ZF.settool("image"); // if (!ZF.haveFile()) { // JOptionPane.showMessageDialog(null, Global.Loc("palette.image.fileerror")); //// PaletteManager.MW.savefile(); // } // // if (ZF.haveFile()) { // ZF.settool("image"); // } else { // PaletteManager.setSelected("point", true); // } } else if (o.equals("background")) { ZF.setinfo("background"); if (me.isSelected) { Global.setParameter("background.usesize", false); Global.setParameter("background.tile", false); Global.setParameter("background.center", true); ZF.loadBackground(); PaletteManager.setSelected_with_clic("imcenter", true); } else { ZF.ZC.grab(false); } } else if (o.equals("imcenter")) { rene.gui.Global.setParameter("background.usesize", false); rene.gui.Global.setParameter("background.tile", false); rene.gui.Global.setParameter("background.center", true); ZF.setinfo("background"); ZF.ZC.repaint(); } else if (o.equals("imtile")) { rene.gui.Global.setParameter("background.usesize", false); rene.gui.Global.setParameter("background.tile", true); rene.gui.Global.setParameter("background.center", false); ZF.setinfo("background"); ZF.ZC.repaint(); } else if (o.equals("imstretch")) { rene.gui.Global.setParameter("background.usesize", true); rene.gui.Global.setParameter("background.tile", false); rene.gui.Global.setParameter("background.center", false); ZF.setinfo("background"); ZF.ZC.repaint(); // } else if (name.equals("loadmacros")) { // JMacrosTools.OpenMacro(""); // } else if (name.equals("new")) { // JMacrosTools.NewWindow(); // } else if (name.equals("load")) { // JMacrosTools.OpenFile(); // } else if (name.equals("save")) { // PaletteManager.MW.savefile(); } else if (o.equals("allback")) { // ZF.settool(ZF.NParameters); JZF.disposeReplay(); JZF.newReplay(); JZF.getReplay().iconPressed(o); } else if (o.equals("partial")) { ZF.ZC.setPartial(me.isSelected); } else if (o.equals("plines")) { ZF.ZC.setPartialLines(me.isSelected); } else if (o.equals("showvalue")) { setObjectShowValue(me.isSelected); } else if (o.equals("hidden")) { ZF.sethidden(me.isSelected); ZC.reloadCD(); ZF.setinfo("hidden"); } else if (o.equals("showname")) { setObjectShowName(me.isSelected); } else if (o.equals("bold")) { setObjectBold(me.isSelected); } else if (o.equals("large")) { setObjectLarge(me.isSelected); } else if (o.equals("longnames")) { ZF.setLongNames(me.isSelected); ZF.setinfo("defaults"); } else if (o.equals("obtuse")) { setObjectObtuse(me.isSelected); } else if (o.equals("solid")) { setObjectSolid(me.isSelected); } else if (o.equals("grid")) { ZF.ZC.setAxis_show(me.isSelected); if (me.isSelected) { ZF.ZC.createAxisObjects(); } else { ZF.ZC.deleteAxisObjects(); } ZF.ZC.repaint(); ZF.setinfo("grid"); } else if (o.equals("objecttracker")) { ZirkelFrame.ObjectConstructors[ZirkelFrame.NObjectTracker]=new ObjectTracker(); ZF.settool("objecttracker"); } else if (o.equals("locus")) { ZirkelFrame.ObjectConstructors[ZirkelFrame.NObjectTracker]=new JLocusObjectTracker(); ZF.settool("objecttracker"); } else if (o.equals("function")) { ZF.ZC.createCurve(); ZF.setinfo("function"); } else if (o.equals("equationxy")) { ZF.ZC.createEquationXY(); // } else if (name.equals("manage_macros")) { // PaletteManager.MW.ZContent.ShowLeftPanel(2); // } else if (name.equals("help_panel")) { // PaletteManager.MW.ZContent.ShowLeftPanel(3); // } else if (name.equals("newmacro")) { // PaletteManager.MW.ZContent.ShowMacroPanel(); // PaletteManager.MW.ZContent.macros.myJML.MacrosTree.JML.controls.createbtn.setSelected(true); // PaletteManager.MW.ZContent.macros.myJML.MacrosTree.JML.createmacropanel.appeargently(); // PaletteManager.deselectgeomgroup(); // } else if (name.equals("history_panel")) { // PaletteManager.MW.ZContent.ShowLeftPanel(1); // // } else if (name.equals("properties_panel")){ // // JGlobals.JPB.showme(me.isSelected); } else if (o.equals("copy")) { FileTools.exportGraphicFile(FileTools.PNG, null); } else if (o.equals("exportpng")) { FileTools.exportGraphicFile(FileTools.PNG); } else if (o.equals("exporteps")) { FileTools.exportGraphicFile(FileTools.EPS); } else if (o.equals("exportsvg")) { FileTools.exportGraphicFile(FileTools.SVG); } else if (o.equals("exportpdf")) { FileTools.exportGraphicFile(FileTools.PDF); } else if (o.startsWith("bi_")) { if (o.equals("bi_function_u")) { Global.setParameter("options.point.shownames", false); JZF.getPointLabel().getBetterName(null, true); } MacroTools.runBuiltinMacro("@builtin@/"+o.substring(3)); } else if (o.equals("back")) { ZF.ZC.back(); ZF.settool(o); } else if (o.equals("undo")) { ZF.ZC.undo(); ZF.settool(o); } else if (o.equals("boundedpoint")) { ZF.settool("boundedpoint"); } else if (o.equals("ctrl_slider")) { ZF.ZC.setNullTool(); } else if (o.equals("ctrl_popup")) { ZF.ZC.setNullTool(); } else if (o.equals("ctrl_chkbox")) { ZF.ZC.setNullTool(); } else if (o.equals("ctrl_button")) { ZF.ZC.setNullTool(); } else if (o.equals("ctrl_edit")) { ZF.ZC.setNullTool(); } else if (o.equals("ctrl_txtfield")) { ZF.ZC.setNullTool(); } else { ZF.settool(o); } JIconMouseAdapter.setgeomSelectedIcon(); ZC.pause(false); ZC.requestFocus(); } private static boolean isIconWithProperties(final String name) { final String acceptedIcons=",expression,locus,bi_function_u,text,area,area3D,ray,ray3D,segment,segment3D,"+"line,line3D,point,bi_3Dcoords,parallel,plumb,intersection,inter3D,midpoint,midpoint3D,bi_syma,bi_3Dsymp,bi_3Dproj"+"bi_symc,bi_3Dsymc,bi_trans,bi_3Dtrans,bi_3Dcircle1,bi_3Dcircle2,bi_3Dcircle3pts,bi_3Dplandroite,bi_3Dplanplan,bi_3Dsphererayon,bi_3Dspherepoint,bi_3Dspheredroite,bi_3Dsphereplan,bi_3Dspheresphere,bi_med,bi_biss,vector,vector3D,fixedsegment,circle,"+"circle3,fixedcircle,bi_arc,bi_circ,angle,angle3D,fixedangle,quadric,"+"boundedpoint,tortue"; return (acceptedIcons.indexOf(","+name+",")!=-1); } public static void setObjectColor(final int i) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".pcolor", (Color) null); Global.setParameter("options."+iconname+".color", i); PaletteZone_Aspect.getColorPicker().setSelected(false); PaletteZone_Aspect.getColorPicker().setDefaultColor(); } else { ZF.setcolor(i); } } public static void setObjectColor(final Color c) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".pcolor", c); } } private static void setObjectColorType(final int i) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".colortype", i); } else { ZF.setcolortype(i); } } private static void setObjectShowName(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".shownames", bool); } else { ZF.setShowNames(bool); } ZF.setinfo("defaults"); JZF.getPointLabel().getBetterName(null, true); } private static void setObjectShowValue(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".showvalues", bool); } else { ZF.ZC.setShowValues(bool); } } private static void setObjectFilled(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".filled", bool); } else { // ZF.ZC.setShowValues(bool); } } private static void setObjectSolid(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".solid", bool); } else { // ZF.ZC.setShowValues(bool); } } private static void setObjectLarge(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".large", bool); } else { ZF.ZC.setLargeFont(bool); } } private static void setObjectBold(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".bold", bool); } else { ZF.ZC.setBoldFont(bool); } } private static void setObjectObtuse(final boolean bool) { String iconname=PaletteManager.geomSelectedIcon(); if (isIconWithProperties(iconname)) { iconname=PaletteManager.IconFamily(iconname); Global.setParameter("options."+iconname+".obtuse", bool); } else { ZF.ZC.setObtuse(bool); } } } carmetal-4.3/src/eric/GUI/palette/JIconMouseAdapter.java000066400000000000000000000030321417122252700231230ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class JIconMouseAdapter implements MouseMotionListener { private static ZirkelCanvas ZC=null; private static String geomSelectedIcon="point"; private static String acceptedIcons=",hide,delete,ctrl_slider,ctrl_txtfield,ctrl_popup,ctrl_chkbox,ctrl_button,"; public static void setgeomSelectedIcon() { ZC=JZirkelCanvas.getCurrentZC(); if (ZC!=null) { geomSelectedIcon=PaletteManager.geomSelectedIcon(); if ((acceptedIcons.indexOf(geomSelectedIcon)==-1)||(geomSelectedIcon.equals(""))) { ZC=null; } } } public static void deselect() { ZC=null; } public static void paintTool() { if (ZC!=null) { final Point pt=ZC.getMousePosition(); try { ZC.getGraphics().drawImage(ZC.I, 0, 0, ZC); ZC.getGraphics().drawImage(themes.getPaletteImage(geomSelectedIcon), pt.x+5, pt.y+5, themes.getToolIconSize(), themes.getToolIconSize(), ZC); } catch (Exception ex) { } } } @Override public void mouseMoved(MouseEvent e) { paintTool(); } public void mouseDragged(MouseEvent e) { } } carmetal-4.3/src/eric/GUI/palette/PaletteManager.java000066400000000000000000000643741417122252700225200ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.window.LeftPanel; import eric.GUI.window.MenuBar; import eric.GUI.window.RightPanel; import eric.JZirkelCanvas; import eric.macros.MacroTools; import eric.restrict.RestrictItems; import eric.restrict.RestrictPanel; import java.awt.Color; import java.awt.Dimension; import java.util.ArrayList; import javax.swing.JComponent; import javax.swing.SwingUtilities; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.construction.Construction; /** * * @author erichake */ public class PaletteManager { private static String GEOM_GROUP="geom"; static String POINT_GROUP="point"; static String ASPECT1_GROUP="aspect1"; static String ASPECT2_GROUP="aspect2"; static String GRID1_GROUP="grid1"; static String GRID2_GROUP="grid2"; static String PHOTO_GROUP="photo"; private static RightPanel MainPanel; private static JIcon ctrlJSlider, ctrlJPopup, ctrlJCheckBox, ctrlJTextField, ctrlJButton; private static ArrayList allIcons=new ArrayList(); private static PaletteZone JPDisk, JPEdit, JPfunc, JPTest, JPControls, JPHist, JPSizes, JPColors, JPPrec, JPGrid; private static ArrayList PaletteWithIconOnly; private static PaletteZone_Aspect JPAspect; private static PaletteZone_Geom JPGeom; private static PaletteZone_3D JP3D; private static JColorPanel colorpanel; public static ArrayList getAllIcons() { return allIcons; } public static void fixsize(JComponent jc, int w, int h) { Dimension d=new Dimension(w, h); jc.setSize(d); jc.setMaximumSize(d); jc.setMinimumSize(d); jc.setPreferredSize(d); } public static void construct(RightPanel mainpanel) { MainPanel=mainpanel; MainPanel.removeAll(); allIcons.clear(); constructJPDisk(); constructJPEdit(); constructJP3D(); constructJPGeom(); constructJPAspect(); constructJPfunc(); constructJPTest(); constructJPControls(); constructJPGrid(); constructJPHist(); constructJPColors(); constructJPSizes(); constructJPPrec(); setDefault(); PaletteWithIconOnly=new ArrayList(); PaletteWithIconOnly.add(JPDisk); PaletteWithIconOnly.add(JPEdit); PaletteWithIconOnly.add(JP3D); PaletteWithIconOnly.add(JPGeom); PaletteWithIconOnly.add(JPfunc); PaletteWithIconOnly.add(JPTest); PaletteWithIconOnly.add(JPControls); } public static void init() { if (RightPanel.isPanelVisible()) { fixRestrictedEnvironment(); JPDisk.init(); JPEdit.init(); // JPDP.init(); JP3D.init(); JPGeom.init(); JPAspect.init(); JPfunc.init(); JPTest.init(); JPControls.init(); JPGrid.init(); JPHist.init(); JPColors.init(); JPSizes.init(); JPPrec.init(); FixPaletteHeight(null); } } private static void setDefault() { setSelected_with_clic("type"+Global.getParameter("options.type", 0), true); setSelected_with_clic("obtuse", Global.getParameter("options.obtuse", true)); } public static boolean isPaletteWithIconOnly(PaletteZone pz) { for (int i=0; i=0)&&(lastpz.getBounds().y+lastpz.getBounds().height>MainPanel.getBounds().height)) { PaletteZone pz=(PaletteZone) MainPanel.getComponent(i); if (!pz.equals(caller)) { pz.setHideContent(true); pz.init(); MainPanel.validate(); } i--; } } MainPanel.repaint(); } public static void FixPaletteHeight2(PaletteZone caller) { if (caller!=null) { caller.init(); } MainPanel.validate(); if (MainPanel.getComponentCount()!=0) { int i=MainPanel.getComponentCount()-1; PaletteZone lastpz=(PaletteZone) MainPanel.getComponent(i); while ((i>=0)&&(lastpz.getBounds().y+lastpz.getBounds().height>MainPanel.getBounds().height)) { PaletteZone pz=(PaletteZone) MainPanel.getComponent(i); if (!pz.equals(caller)&&!pz.equals(JPGeom)&&!pz.equals(JPAspect)&&!pz.equals(JPEdit)) { pz.setHideContent(true); pz.init(); MainPanel.validate(); } i--; } } MainPanel.repaint(); } public static void registerIcon(JIcon icn) { allIcons.add(icn); } public static void removeIcon(JIcon icn) { allIcons.remove(icn); } public static void setOverBtn(JIcon icn) { icn.setOver(true); for (int i=0; i icons=new ArrayList(); protected PaletteZoneTitle zone_title; protected PaletteZoneContent zone_content; private String zone_name; private PaletteZone me; // @Override // public void paintComponent(Graphics g) { // } public PaletteZone(String name) { super(); me=this; zone_name=name; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setAlignmentX(0.0f); zone_title=new PaletteZoneTitle(name) { @Override public void mouseClicked(MouseEvent e) { ToggleHideOrShow(); PaletteManager.FixPaletteHeight(me); } }; add(zone_title); zone_content=new PaletteZoneContent(this); add(zone_content); // HideOrShow(); } private void HideOrShow() { hide_zone(Global.getParameter("hidepalette."+zone_name, false)); } private void ToggleHideOrShow() { hide_zone(!Global.getParameter("hidepalette."+zone_name, false)); } private void hide_zone(boolean b) { Global.setParameter("hidepalette."+zone_name, b); zone_title.setHide(b); zone_content.setHide(b); } public void init() { validate(); HideOrShow(); zone_title.init(); for (JIcon element : icons) { element.init(); } zone_content.init(); } public void setHideContent(boolean b) { hide_zone(b); } public void setVisibleContentHeight() { zone_content.setVisibleHeight(); } public void clearContent() { zone_content.removeAll(); } public JIcon createToggleIcon(String name) { JIcon ji=new JIcon(name, name); addIcon(ji); return ji; } public JIcon createSimpleIcon(String name) { JIcon ji=new JIcon(name, null); addIcon(ji); return ji; } public JIcon createIcon(String name, String group) { JIcon ji=new JIcon(name, group); addIcon(ji); return ji; } public void createIcons(String myname[], String group) { for (String element : myname) { createIcon(element, group); } } // Seulement pour la zone Construction, et seulement dans // le cas où il s'agit d'un modeDP : public void insertEuclidianCheckBox(){ } // names est une chaine du type " nom1 nom2 nom3 " public void insertIcons(String names, String group) { String myname[]=names.trim().split(" "); for (String element : myname) { if ((element.equals("blank"))||(findIcon(element)==null)) { // if (findIcon(element)==null) { JIcon ji=createIcon(element, group); PaletteManager.fixsize(ji, ji.getIconWidth(), ji.getIconWidth()); } } } public JIcon findIcon(String name) { for (JIcon ji : icons) { if (name.equals(ji.getIconName())) { return ji; } } return null; } public void removeBlankIcons() { ArrayList blanks=new ArrayList(); for (JIcon ji : icons) { if (ji.getIconName().equals("blank")) { blanks.add(ji); } } for (JIcon ji : blanks) { removeIcon(ji); PaletteManager.removeIcon(ji); } } // names est une chaine du type " nom1 nom2 nom3 " public void removeIcons(String names) { ArrayList icns=new ArrayList(); String myname[]=names.trim().split(" "); for (String element : myname) { JIcon ji=findIcon(element); if (ji!=null) { icns.add(ji); } } for (JIcon ji : icns) { removeIcon(ji); PaletteManager.removeIcon(ji); } } public void removeIcon(JIcon ji) { icons.remove(ji); zone_content.remove(ji); } public void addIcon(JIcon ji) { icons.add(ji); zone_content.add(ji); } public void addComponent(JComponent jc) { zone_content.add(jc); } } carmetal-4.3/src/eric/GUI/palette/PaletteZoneCheckBox.java000066400000000000000000000035431417122252700234570ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.JZirkelCanvas; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.JCheckBox; import javax.swing.JLabel; import javax.swing.SwingConstants; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class PaletteZoneCheckBox extends JCheckBox implements ItemListener{ public PaletteZoneCheckBox(String txt) { super(txt); setOpaque(false); setFocusable(false); setFont(new java.awt.Font(Global.GlobalFont, 1, 11)); setForeground(new Color(100, 100, 100)); setHorizontalAlignment(SwingConstants.CENTER); putClientProperty("JComponent.sizeVariant", "mini"); addItemListener(this); } public void paintComponent(Graphics g) { Dimension d=getSize(); Graphics2D g2=(Graphics2D) g; g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.05f)); g2.setColor(new Color(0, 0, 255)); g2.fillRect(3, 3, d.width-6, d.height-6); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.15f)); g2.drawRect(3, 3, d.width-7, d.height-7); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f)); super.paintComponent(g); } public void itemStateChanged(ItemEvent e) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null){ zc.setEuclidian(isSelected()); zc.repaint(); } PaletteManager.initPaletteConsideringMode(); PaletteManager.init(); PaletteManager.selectGeomIcon(); } } carmetal-4.3/src/eric/GUI/palette/PaletteZoneContent.java000066400000000000000000000041501417122252700233760ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.themes; import eric.GUI.windowComponent; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.Image; import javax.swing.JComponent; /** * * @author erichake */ public class PaletteZoneContent extends windowComponent { private static Image back=themes.getImage("palbackground.gif"); private boolean visible=true; private int height=-1; private PaletteZone parent; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(back, 0, 0, d.width, d.height, this); } // For Restricted Palette only : public void setVisibleHeight() { int nb=0; // count visible icons : for (int i=0; i0)) { if (PaletteManager.isPaletteWithIconOnly(parent)) { setVisibleHeight(); } else { JComponent ji=(JComponent) getComponent(getComponentCount()-1); int start=getSize().height; int bottom=ji.getBounds().y+ji.getBounds().height; PaletteManager.fixsize(this, themes.getRightPanelWidth(), bottom); } } else { PaletteManager.fixsize(this, themes.getRightPanelWidth(), 0); } } public void setHide(boolean b) { visible=!b; } public boolean isHidden(){ return !visible; } public PaletteZoneContent(PaletteZone zone) { super(); parent=zone; setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); setAlignmentX(0.0f); } } carmetal-4.3/src/eric/GUI/palette/PaletteZoneLabel.java000066400000000000000000000023301417122252700230010ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JLabel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ public class PaletteZoneLabel extends JLabel { public PaletteZoneLabel(String txt) { super(txt); setOpaque(false); setFont(new java.awt.Font(Global.GlobalFont, 1, 11)); setForeground(new Color(100, 100, 100)); setHorizontalAlignment(SwingConstants.CENTER); } public void paintComponent(Graphics g) { Dimension d=getSize(); Graphics2D g2=(Graphics2D) g; g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.05f)); g2.setColor(new Color(0, 0, 255)); g2.fillRect(3, 3, d.width-6, d.height-6); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.15f)); g2.drawRect(3, 3, d.width-7, d.height-7); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f)); super.paintComponent(g); } } carmetal-4.3/src/eric/GUI/palette/PaletteZoneTitle.java000066400000000000000000000046341417122252700230540ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.themes; import eric.GUI.windowComponent; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.BoxLayout; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ public class PaletteZoneTitle extends windowComponent { private static Image offimage=themes.getImage("PaletteTitleBarN.png"); private static Image onimage=themes.getImage("PaletteTitleBarH.png"); private static Image rightTriangle=themes.getPaletteImage("PaletteTriangleDroite"); private static Image bottomTriangle=themes.getPaletteImage("PaletteTriangleBas"); private static boolean active=false; private JLabel title=new JLabel(); @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (active) { g.drawImage(onimage, 0, 0, d.width, d.height, this); } else { g.drawImage(offimage, 0, 0, d.width, d.height, this); } } public void init() { PaletteManager.fixsize(this, themes.getRightPanelWidth(), themes.getPaletteZoneTitleHeight()); } public PaletteZoneTitle(String name) { super(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setAlignmentX(0.0f); title.setText(name); title.setIcon(new ImageIcon(bottomTriangle)); setHide(Global.getParameter("hidepalette." + name, true)); title.setIconTextGap(7); title.setFont(new java.awt.Font(Global.GlobalFont, 0, 11)); title.setHorizontalAlignment(SwingConstants.LEFT); PaletteManager.fixsize(title, themes.getRightPanelWidth()-themes.getPaletteZoneTitleHeight(), themes.getPaletteZoneTitleHeight()); add(title); } public void setHide(boolean b){ if (b) title.setIcon(new ImageIcon(rightTriangle)); else title.setIcon(new ImageIcon(bottomTriangle)); repaint(); } @Override public void mousePressed(MouseEvent e) { active=true; repaint(); } @Override public void mouseReleased(MouseEvent e) { active=false; repaint(); } } carmetal-4.3/src/eric/GUI/palette/PaletteZone_3D.java000066400000000000000000000027051417122252700223750ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import static eric.GUI.palette.PaletteManager.setSelected_with_clic; import eric.JZirkelCanvas; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.construction.Construction; /** * * @author erichake */ public class PaletteZone_3D extends PaletteZone { private String icns[]={"bi_3Dcoords", "inter3D", "boundedpoint", "bi_3Darete", "midpoint3D", "bi_3Dproj", "bi_3Dsymc", "bi_3Dsymp", "bi_3Dtrans", "vector3D", "line3D", "ray3D", "segment3D", "area3D", "bi_3Dsphererayon", "bi_3Dspherepoint", "bi_3Dcircle1", "bi_3Dcircle2", "bi_3Dcircle3pts", "angle3D", "bi_3Dplandroite", "bi_3Dplanplan", "bi_3Dspheredroite", "bi_3Dsphereplan", "bi_3Dspheresphere", "bi_3Dtetra", "bi_3Dcube", "bi_3Docta", "bi_3Disoc", "bi_3Ddode"}; public PaletteZone_3D() { super(Global.Loc("palette.3D")); createIcons(icns, PaletteManager.getGeomGroup()); //setSelectBtn("bi_3Dcoords",true); } public void initConsideringMode() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc==null) { return; } PaletteManager.remove3DPalette(); if (zc.getMode()==Construction.MODE_3D) { PaletteManager.add3DPalette(); PaletteManager.FixPaletteHeight2(this); // Dibs setHideContent(false); init(); } } } carmetal-4.3/src/eric/GUI/palette/PaletteZone_Aspect.java000066400000000000000000000116421417122252700233460ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.themes; import eric.JColorPicker; import eric.JZirkelCanvas; import java.awt.Color; import java.util.Vector; import javax.swing.BoxLayout; import javax.swing.JButton; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class PaletteZone_Aspect extends PaletteZone { private static int content_height; private static String[] types={"type0", "type1", "type2", "type3", "type4", "type5"}; private static String[] colors= { "color0", "color1", "color2", "color3","color4", "color5" }; private static String[] thickness = { "thickness0", "thickness1", "thickness2" }; private static int label_lineheight=20; private static PaletteZoneLabel pointshape_label,aspect_label; private static JEricPanel point_name_panel; private static JColorPicker color_picker; public PaletteZone_Aspect() { super(Global.Loc("palette.aspect")); pointshape_label=addLabel(Global.Loc("palette.aspect.label.pointshape")); point_name_panel=new JEricPanel(); point_name_panel.setLayout(new BoxLayout(point_name_panel, BoxLayout.X_AXIS)); point_name_panel.setOpaque(false); add7iconsString(types,PaletteManager.POINT_GROUP); addComponent(point_name_panel); aspect_label=addLabel(""); Vector V=add7iconsString(colors, PaletteManager.ASPECT1_GROUP); color_picker=new JColorPicker(V.get(0).getIconWidth(), 6, 3,V){ @Override public void doChange() { JIcon.setObjectColor(getCurrentColor()); } @Override public void afterSelect() { JIcon.setObjectColor(getCurrentColor()); // JPM.MW.ZF.setinfo("prop_scolor", false); } @Override public void setPalettes() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null){ setUsedColors(zc.getConstruction().getSpecialColors()); } } }; addComponent(color_picker); createIcons(thickness,PaletteManager.ASPECT2_GROUP); createToggleIcon("partial"); createToggleIcon("plines"); createToggleIcon("showvalue"); createToggleIcon("showname"); createToggleIcon("bold"); createToggleIcon("large"); createToggleIcon("filled"); createToggleIcon("obtuse"); createToggleIcon("solid"); // setContentHeight(200); } public static JColorPicker getColorPicker(){ return color_picker; } public void init() { PaletteManager.fixsize(pointshape_label, themes.getRightPanelWidth(), label_lineheight); PaletteManager.fixsize(aspect_label, themes.getRightPanelWidth(), label_lineheight); initPointNameBtn(); super.init(); } public void initPointNameBtn() { point_name_panel.removeAll(); JZirkelCanvas JZF=JZirkelCanvas.getCurrentJZF(); if (JZF!=null) { point_name_panel.add(JZF.getPointLabel().getPaletteButton()); JButton jb=JZF.getPointLabel().getPaletteButton(); int w=(themes.getPaletteIconPerRow()*themes.getPaletteIconWidth())/7; PaletteManager.fixsize(jb, w, w); point_name_panel.add(jb); point_name_panel.validate(); point_name_panel.repaint(); } } public void setLabel(String s){ aspect_label.setText(s); repaint(); } private PaletteZoneLabel addLabel(final String mytxt) { PaletteZoneLabel mylabel=new PaletteZoneLabel(mytxt); addComponent(mylabel); return mylabel; } private Vector add7iconsString(String icns[],String group) { Vector V=new Vector(); for (final String element : icns) { JIcon ji=new JIcon(element,group , 7); addIcon(ji); V.add(ji); } return V; } public void addColorIcons(final String myname[], String group) { add7iconsString(myname, group); addComponent(JColorPicker.margin(5)); // JColorPicker jcp=new JColorPicker(themes.getPaletteIconWidth()-5, 6, 3) { // // /** // * // */ // // // @Override // public void doChange() { // JPM.setObjectColor(getCurrentColor()); // } // // @Override // public void afterSelect() { // JPM.setObjectColor(getCurrentColor()); // JPM.MW.ZF.setinfo("prop_scolor", false); // } // // @Override // public void setPalettes() { // setUsedColors(JPM.MW.ZF.ZC.getConstruction().getSpecialColors()); // } // }; // myLine.add(JPM.MW.ColorPicker); // addNewLine(); } } carmetal-4.3/src/eric/GUI/palette/PaletteZone_Geom.java000066400000000000000000000053121417122252700230130ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.palette; import eric.GUI.themes; import eric.JZirkelCanvas; import eric.restrict.RestrictItems; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.construction.Construction; /** * * @author erichake */ public class PaletteZone_Geom extends PaletteZone { private String icns[]={"point", "intersection", "midpoint", "bi_syma", "bi_symc", "bi_trans", "line", "ray", "parallel", "plumb", "bi_med", "bi_biss", "segment", "fixedsegment", "vector", "area", "angle", "fixedangle", "circle", "fixedcircle", "circle3", "bi_circ", "bi_arc", "quadric", "text", "expression", "image3"}; private String DPDisabledIcons=" parallel fixedsegment fixedcircle vector area bi_arc quadric bi_trans "; private String DPNewIcons=" bi_distance bi_perp_common bi_lineIP bi_horocycle bi_equidistante blank bi_pinceau1 bi_pinceau3 bi_pinceauinter bi_pinceauhauteur bi_pinceaucycle bi_pinceaubiss "; private PaletteZoneCheckBox euclidianBox=new PaletteZoneCheckBox(Global.Loc("palette.construction.euclidian")); private static int box_lineheight=25; public PaletteZone_Geom() { super(Global.Loc("palette.construction")); createIcons(icns, PaletteManager.getGeomGroup()); RestrictItems.init_geom_icns(icns); } @Override public void init() { PaletteManager.fixsize(euclidianBox, themes.getRightPanelWidth(), 0); super.init(); ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if ((!zone_content.isHidden())&&(zc!=null)&&(zc.isDP())) { PaletteManager.fixsize(euclidianBox, themes.getRightPanelWidth(), box_lineheight); int w=zone_content.getWidth(); int h=zone_content.getHeight()+box_lineheight; PaletteManager.fixsize(zone_content, w, h); } } public void initConsideringMode() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc==null) { return; } removeBlankIcons(); PaletteManager.setDisabledIcons(DPDisabledIcons, false); removeIcons(DPNewIcons); zone_content.remove(euclidianBox); if (zc.isDP()) { zone_content.add(euclidianBox, 0); if (!zc.isEuclidian()) { PaletteManager.setDisabledIcons(DPDisabledIcons, true); removeIcons(" text expression image3 "); insertIcons(DPNewIcons, PaletteManager.getGeomGroup()); insertIcons(" text expression image3 ", PaletteManager.getGeomGroup()); PaletteManager.setDisabledIcons(" filled ", true); } } } } carmetal-4.3/src/eric/GUI/pipe_tools.java000066400000000000000000000253201417122252700203320ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI; import eric.FileTools; import eric.GUI.palette.PaletteManager; import eric.GUI.window.*; import eric.JEricPanel; import eric.JGeneralMenuBar; import eric.JZirkelCanvas; import eric.bar.JPropertiesBar; import eric.macros.CreateMacroDialog; import eric.macros.CreateMacroPanel; import eric.monkey.monkey; import java.awt.Dimension; import java.awt.Frame; import java.awt.Point; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import javax.swing.AbstractAction; import javax.swing.JComponent; import javax.swing.KeyStroke; import javax.swing.SwingUtilities; import netscape.javascript.JSObject; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.macro.Macro; /** * This is a static class provide to be a bridge between the GUI * packages and the others. Other "engine" packages should always refer to this * one whenever they need to interact with the GUI. The GUI also must go through * this class to interact with the engine. * @author erichake */ public class pipe_tools { private static MainContainer owner; /** * Called by MainWindow or MainApplet at the begining of * initialization process (constructor or init) * @param mc : the main container -> JFrame or JApplet */ public static void init(MainContainer mc) { owner=mc; themes.setTheme(Global.getParameter("LookAndFeel", themes.GRAY)); } public static boolean isApplet() { return owner.isApplet(); } public static MainContainer getWindow() { return owner; } public static Frame getFrame() { MainContainer mc=owner; if (mc instanceof MainWindow) { return (Frame) mc; } else { return new Frame(); } } public static ContentPane getContent() { return owner.getContent(); } public static void setWindowComponents() { owner.setComponents(); } public static Point getWindowLocation() { return owner.getLocation(); } public static void setWindowLocation() { setWindowLocation(owner.getLocation().x, owner.getLocation().y); } public static void setWindowLocation(int x, int y) { if (yGlobal.getScreenW()) { w=Global.getScreenW(); } if (h>Global.getScreenH()) { h=Global.getScreenH(); } int x=(Global.getScreenW()-w)/2; int y=(Global.getScreenH()-h)/2; setWindowLocation(x, y); owner.setSize(w, h); } } public static void setWindowBounds() { setWindowBounds(getFrame().getBounds()); } // r est le bounds désiré de la fenêtre : public static void setWindowBounds(Rectangle r) { if (getWindow() instanceof MainWindow) { if (r.yGlobal.getScreenY()+Global.getScreenH()) { r.height=Global.getScreenY()+Global.getScreenH()-r.y; } getFrame().setBounds(r); // I know, this is weird, but it work's (for palette display) : owner.setComponents(); owner.setComponents(); } } static private KeyStroke enter_key=KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0); public static void setStandardKeyInputs() { KeyStroke key=KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.SHIFT_DOWN_MASK); owner.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(key, "objectTracker"); owner.getRootPane().getActionMap().put("objectTracker", new AbstractAction() { @Override public void actionPerformed(final ActionEvent arg0) { ZirkelFrame zf=JZirkelCanvas.getCurrentZF(); zf.track(); } }); key=KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0); owner.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(key, "escape"); owner.getRootPane().getActionMap().put("escape", new AbstractAction() { @Override public void actionPerformed(final ActionEvent arg0) { PaletteManager.setSelected_with_clic("move", true); CreateMacroDialog.quit(); } }); } public static void setMacroPanelKeyInputs() { owner.getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(enter_key, "macro_enter"); owner.getRootPane().getActionMap().put("macro_enter", new AbstractAction() { @Override public void actionPerformed(final ActionEvent arg0) { CreateMacroPanel.nextStep(); } }); } public static void removeMacroPanelKeyInputs() { owner.getRootPane().getActionMap().remove(enter_key); } public static void toFront() { if (!isApplet()) { MainWindow mw=(MainWindow) owner; mw.toFront(); } } public static void showRestrictedEnvironmentManager() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { zc.getNewRestrictedDialog(); } } public static void showExerciseManager() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { zc.job_showDialog(); } } public static void AppletLoadedMessage_To_HTML() { if (isApplet()) { MainApplet ma=(MainApplet) owner; JSObject window=JSObject.getWindow(ma); String[] args={}; window.call("carmetal_applet_loaded", args); } } public static boolean Exercise_To_HTML(boolean success, String message) { Object jsmethod=null; if (isApplet()) { try { MainApplet ma=(MainApplet) owner; JSObject window=JSObject.getWindow(ma); String[] args={""+success, message}; jsmethod=window.call("carmetal_job", args); } catch (Exception e) { return false; } } return (jsmethod!=null); } public static void Magnet_To_HTML(String Pt, String Obj) { if (isApplet()) { MainApplet ma=(MainApplet) owner; JSObject window=JSObject.getWindow(ma); String[] args={Pt, Obj}; window.call("carmetal_magnet", args); } } public static JEricPanel getCanvasPanel() { return ContentPane.getCanvasPanel(); } public static void duplicateTab() { try { String s=FileTools.getCurrentFileSource(); tab_main_panel.addBtnAndSelect(tab_main_panel.getActiveBtn().getTabName()+" copy"); FileTools.setCurrentFileSource(s); } catch (Exception ex) { } } public static void TabHaveChanged(boolean b) { if (JZirkelCanvas.isWorkBook()) { tab_main_panel.allTabsHaveChanged(b); } else { tab_main_panel.currentTabHaveChanged(b); } } public static void actualiseMacroPanel() { LeftPanel_content.setContent(JZirkelCanvas.getNewMacroPanel()); JZirkelCanvas.ActualiseMacroPanel(); } public static void actualiseLeftPanels() { JZirkelCanvas.removeLeftPanelContent(); if (LeftPanel.isHistoryPanelVisible()) { LeftPanel_content.setContent(JZirkelCanvas.getNewCDPPanel()); } else if (LeftPanel.isHelpPanelVisible()) { LeftPanel_content.setContent(JZirkelCanvas.getNewInfoPanel()); } else if (LeftPanel.isMacroPanelVisible()) { actualiseMacroPanel(); } else if(LeftPanel.isScriptsPanelVisible()){ LeftPanel_content.setContent(JZirkelCanvas.getNewScriptsLeftPanel()); } } public static void setTitle(String s) { getContent().setTitle(s); } public static JEricPanel getMenuBar() { return new JGeneralMenuBar(); } public static boolean isTabEditAccepted() { return (JZirkelCanvas.isWorkBook()); } public static void quitAll() { JZirkelCanvas.quitAll(); } public static void closeCurrent() { JZirkelCanvas.closeCurrent(); } public static void onTabActivate() { JZirkelCanvas JZF=JZirkelCanvas.getCurrentJZF(); if (JZF!=null) { JZF.onTabActivate(); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { PaletteManager.selectGeomIcon(); PaletteManager.initPaletteConsideringMode(); PaletteManager.init(); actualiseLeftPanels(); } }); if(JGeneralMenuBar.get_scp() != null){ JZF.getZC().add(JGeneralMenuBar.get_scp()); JGeneralMenuBar.get_scp().refresh(); JZF.getZC().repaint(); } } } public static String processTabName(String name) { if (name.endsWith(".zir")) { name=name.substring(0, name.length()-4); } else if (name.endsWith(".zirz")) { name=name.substring(0, name.length()-5); } name=tab_main_panel.uniqueName(name); return name; } public static void setMacroHelp(Macro m) { } public static void setComments(String s) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { zc.setJobComment(s); } } public static boolean isComments() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc==null) { return false; } return (!"".equals(zc.getJobComment())); } public static void saveFigure() { FileTools.saveFileAs(); } private static monkey monkey=null; public static void monkeyStart() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { monkey=new monkey(zc); monkey.start(); } } public static void monkeyStop() { if (monkey!=null) { monkey.stop(); monkey=null; } } } carmetal-4.3/src/eric/GUI/themes.java000066400000000000000000000246271417122252700174530ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.GUI; import eric.GUI.window.*; import eric.OS; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.ImageIcon; import rene.gui.Global; /** * * @author erichake */ public class themes { public static String GRAY="gray"; public static String BRUSHED="brushed"; public static String CURRENT=BRUSHED; public static Color TabChangedColor=new Color(28,106,161); public static Font TabFont=new Font("Dialog", Font.PLAIN, 11); public static Font TabMenusFont=new Font("Dialog", Font.PLAIN, 12); public static Font TabSelectedMenusFont=new Font("Dialog", Font.BOLD+Font.ITALIC, 12); private static String PalettePath="/eric/GUI/icons/palette/"; private static String BarPath="/eric/GUI/icons/bar/"; private static String ThemesPath="/eric/GUI/icons/themes/"; private static String CurrentTheme="/eric/GUI/icons/themes/gray/"; private static String CommonTheme="/eric/GUI/icons/themes/common/"; private static boolean MAClook=true; private static int palette_iconwidth=28; private static int palette_icon_per_row=6; private static int TitleBarHeight=35; private static int TitleBarTextHeight=25; private static int BoxesMarginW=5; private static int BoxesMarginH=4; private static int MenuBarHeight=20; private static int VertBorderWidth=7; private static int VertPanelBorderWidth=5; private static int VertSeparatorWidth=5; private static int ResizeBoxWidth=19; private static int ResizeBoxHeight=22; private static int MainTabPanelHeight=32; private static int TabBtnHeight=22; private static int ControlTabPanelWidth=150; private static Dimension CloseBoxDim, GrowBoxDim, ReduceBoxDim,OpenLeftPanelBtnDim,OpenMiddlePanelBtnDim; private static int OpenPanelsBtnsMarginW=5; private static int OpenPanelsBtnsMarginH=29; private static int comments_height, tab_leftborder, tab_rightborder, StatusBarHeight; private static int tab_corner_width=8; private static boolean showtabs=true; private static boolean showstatus=true; private static float opacity=0.5f; private static int tooliconsize=32; private static int palette_ZoneTitleHeight=17; public themes() { } public static void init() { ReduceBoxDim=new Dimension(getIcon("zreducebutton.png").getIconWidth(), getIcon("zreducebutton.png").getIconHeight()); GrowBoxDim=new Dimension(getIcon("zgrowbutton.png").getIconWidth(), getIcon("zgrowbutton.png").getIconHeight()); CloseBoxDim=new Dimension(getIcon("zclosebutton.png").getIconWidth(), getIcon("zclosebutton.png").getIconHeight()); OpenLeftPanelBtnDim=new Dimension(getIcon("rightpanel_on.png").getIconWidth(), getIcon("rightpanel_on.png").getIconHeight()); OpenMiddlePanelBtnDim=new Dimension(getIcon("middlepanel_on.png").getIconWidth(), getIcon("middlepanel_on.png").getIconHeight()); // tab_topborder=getIcon("tab_top.gif").getIconHeight(); // tab_leftborder=getIcon("tab_left.gif").getIconWidth(); // tab_rightborder=getIcon("tab_right.gif").getIconWidth(); // tab_bottomborder=getIcon("tab_bottom.gif").getIconHeight(); comments_height=80; tab_leftborder=0; tab_rightborder=0; StatusBarHeight=25; setComponentsSize(); } public static void setComponentsSize() { CurrentTheme=ThemesPath+CURRENT+"/"; if (isApplet()) { VertBorderWidth=0; VertSeparatorWidth=0; TitleBarHeight=0; TitleBarTextHeight=0; MenuBarHeight=0; ResizeBoxWidth=0; ResizeBoxHeight=0; MAClook=true; return; } if (CURRENT.equals(GRAY)) { VertBorderWidth=5; VertPanelBorderWidth=5; VertSeparatorWidth=3; TitleBarHeight=35; TitleBarTextHeight=25; MenuBarHeight=20; ResizeBoxWidth=19; ResizeBoxHeight=22; MAClook=true; } else if (CURRENT.equals(BRUSHED)) { VertBorderWidth=7; VertSeparatorWidth=5; TitleBarHeight=25; TitleBarTextHeight=25; MenuBarHeight=20; ResizeBoxWidth=19; ResizeBoxHeight=22; MAClook=false; } } public static boolean isShowTabs(){ return showtabs; } public static void setShowTabs(boolean b){ showtabs=b; } public static boolean isShowStatus(){ return showstatus; } public static void setShowStatus(boolean b){ showstatus=b; } public static void setTheme(String theme) { CURRENT=theme; } public static String getTheme() { return CURRENT; } public static String getBarPath() { return BarPath; } public static String getPalettePath() { return PalettePath; } public static String getCurrentThemePath() { return CurrentTheme; } public static String getCommonThemePath() { return CommonTheme; } public static int getTabCornerWidth(){ return tab_corner_width; } public static int getToolIconSize(){ return tooliconsize; } public static int getTitleBarHeight() { return TitleBarHeight; } public static int getMenuBarHeight() { return MenuBarHeight; } public static int getResizeBoxHeight() { return ResizeBoxHeight; } public static int getResizeBoxWidth() { return ResizeBoxWidth; } public static int getVerticalBorderWidth() { return showtabs?VertBorderWidth:0; } public static int getVerticalPanelBorderWidth() { if (LeftPanel.isPanelVisible()){ return VertPanelBorderWidth; }; return 0; } public static int getBoxesMarginWidth() { return BoxesMarginW; } public static int getBoxesMarginHeight() { return BoxesMarginH; } public static Dimension getGrowBoxDim() { return GrowBoxDim; } public static Dimension getCloseBoxDim() { return CloseBoxDim; } public static Dimension getOpenLeftPanelBtnDim() { return OpenLeftPanelBtnDim ; } public static Dimension getOpenMiddlePanelBtnDim() { return OpenMiddlePanelBtnDim ; } public static int getOpenPanelsBtnsMarginW(){ return OpenPanelsBtnsMarginW; } public static int getOpenPanelsBtnsMarginH(){ return OpenPanelsBtnsMarginH; } public static Dimension getReduceBoxDim() { return ReduceBoxDim; } public static int getCommentsHeight() { return Global.getParameter("comment", false)?comments_height:0; } public static int getTabLeftBorderWidth() { return tab_leftborder; } public static int getTabRightBorderWidth() { return tab_rightborder; } public static int getStatusBarHeight() { return showstatus?StatusBarHeight:0; } public static void setStatusBarHeight(int h) { StatusBarHeight=h; } public static int getTabBtnHeight(){ return TabBtnHeight; } public static int getTabControlPanelWidth() { return ControlTabPanelWidth; } public static int getLeftPanelWidth() { return LeftPanel.getPanelWidth(); } public static int getRightPanelWidth(){ int w=(RightPanel.isPanelVisible())?(palette_icon_per_row*palette_iconwidth):0; return w; } public static int getTotalRightPanelWidth() { int w=(RightPanel.isPanelVisible())?(getRightPanelWidth()+RightPanel.getSeparatorWidth()):0; return w; } public static int getPaletteZoneTitleHeight(){ return palette_ZoneTitleHeight; } public static int getPaletteIconPerRow(){ return palette_icon_per_row; } public static void setPaletteIconWidth(int i){ palette_iconwidth=i; } public static int getPaletteIconWidth(){ return palette_iconwidth; } public static int getMainTabPanelHeight() { return showtabs?MainTabPanelHeight:0; } public static void setDisable(final Graphics g, final Dimension d) { final Graphics2D g2=(Graphics2D) g; final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, opacity); g2.setComposite(ac); g2.setColor(new Color(255, 255, 255)); g2.fillRect(0, 0, d.width, d.height); } public static boolean AllowMacLook() { return MAClook; } public static boolean MacLF() { if (isApplet()) { return false; } return ((OS.isMac())&&themes.AllowMacLook()); } public static boolean isApplet() { return (pipe_tools.isApplet()); } public static ImageIcon getIcon(final String s) { ImageIcon myicon; try { myicon=new ImageIcon(themes.class.getResource(CurrentTheme+s)); } catch (final Exception e) { try { myicon=new ImageIcon(themes.class.getResource(CommonTheme+s)); } catch (final Exception ex) { myicon=new ImageIcon(themes.class.getResource(CommonTheme+"null.gif")); } } return myicon; } public static Image getImage(final String s) { return pipe_tools.getWindow().getImage(s); } public static Image getPaletteImage(final String s) { return pipe_tools.getWindow().getPaletteImage(s); } public static ImageIcon resizeExistingIcon(String path_name, int w, int h){ ImageIcon iicon = new ImageIcon(themes.class.getResource(path_name)); return new ImageIcon(iicon.getImage().getScaledInstance(w, h, Image.SCALE_SMOOTH)); } } carmetal-4.3/src/eric/GUI/window/000077500000000000000000000000001417122252700166175ustar00rootroot00000000000000carmetal-4.3/src/eric/GUI/window/CanvasPanel.java000066400000000000000000000024441417122252700216610ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Graphics; import javax.swing.BoxLayout; import eric.JEricPanel; /** * * @author erichake */ public class CanvasPanel extends windowComponent { public void init() { setBounds(themes.getVerticalBorderWidth()+themes.getLeftPanelWidth()+themes.getVerticalPanelBorderWidth()+themes.getTabLeftBorderWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight()+themes.getCommentsHeight(), pipe_tools.getWindowSize().width-themes.getLeftPanelWidth()-themes.getVerticalPanelBorderWidth()-themes.getTotalRightPanelWidth()-2*themes.getVerticalBorderWidth()-themes.getTabLeftBorderWidth()-themes.getTabRightBorderWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()-themes.getCommentsHeight()-themes.getStatusBarHeight()); } public CanvasPanel() { super(); setLayout(new BorderLayout()); // setOpaque(true); } } carmetal-4.3/src/eric/GUI/window/CloseBox.java000066400000000000000000000030371417122252700212030ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; /** * * @author erichake */ public class CloseBox extends windowComponent { private String btn="zclosebutton.png"; private String overbtn="zclosebuttonover.png"; private Image icon=themes.getImage(btn); public void paintComponent(Graphics g) { Dimension d=this.getSize(); g.drawImage(icon, 0, 0, d.width, d.height, this); } public CloseBox() { } public void init() { // win=StaticTools.getMainWindow(this); int marginL; if (themes.MacLF()) { marginL=themes.getBoxesMarginWidth(); } else { marginL=pipe_tools.getWindowSize().width-themes.getBoxesMarginWidth()-themes.getCloseBoxDim().width-themes.getTotalRightPanelWidth(); } this.setBounds(marginL, themes.getBoxesMarginHeight(), themes.getCloseBoxDim().width, themes.getCloseBoxDim().height); } public void mousePressed(MouseEvent e) { pipe_tools.quitAll(); } public void mouseEntered(MouseEvent arg0) { icon=themes.getImage(overbtn); repaint(); } public void mouseExited(MouseEvent arg0) { icon=themes.getImage(btn); repaint(); } } carmetal-4.3/src/eric/GUI/window/ContentPane.java000066400000000000000000000125321417122252700217030ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.JLogoWindow; import java.awt.Color; import java.awt.Graphics; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingUtilities; import javax.swing.ToolTipManager; import javax.swing.UIManager; import javax.swing.plaf.ColorUIResource; /** * * @author erichake */ public class ContentPane extends JEricPanel { private static CanvasPanel CANVASPANEL; private LeftPanel LEFTPANEL; private LeftPanel_content LEFTPANELCONTENT; private RightPanel RIGHTPANEL; private ResizeBox RESIZE; private TitleBar TITLE; private MenuBar MENU; private VerticalLeftBorder VERTICALLEFTBORDER; private VerticalLeftPanelBorder VERTICALLEFTPANELBORDER; private VerticalRightBorder VERTICALRIGHTBORDER; private CloseBox CLOSEBOX; private ReduceBox REDUCEBOX; private GrowBox GROWBOX; private comments TABTOPBORDER; private tab_left TABLEFTBORDER; private tab_right TABRIGHTBORDER; private tab_bottom TABBOTTOMBORDER; private tab_main_panel TABMAINPANEL; private tab_control_panel TABCONTROLPANEL; private Open_left_panel_btn OPENLEFTPANEL; private Open_right_panel_btn OPENRIGHTPANEL; private Open_middle_panel_btn OPENMIDDLEPANEL; private Monkey_panel_btn MONKEYBTN; public void paintComponent(Graphics g) { final java.awt.Dimension d=this.getSize(); g.setColor(Color.lightGray); g.fillRect(0, 0, d.width, d.height); } public ContentPane() { setLayout(null); VERTICALLEFTPANELBORDER=new VerticalLeftPanelBorder(); CANVASPANEL=new CanvasPanel(); LEFTPANEL=new LeftPanel(); LEFTPANELCONTENT=new LeftPanel_content(); RIGHTPANEL=new RightPanel(); TABTOPBORDER=new comments(); TABLEFTBORDER=new tab_left(); TABRIGHTBORDER=new tab_right(); TABBOTTOMBORDER=new tab_bottom(); TABMAINPANEL=new tab_main_panel(); TABCONTROLPANEL=new tab_control_panel(); // resizebox needs to be in front of every component : if (!themes.isApplet()) { RESIZE=new ResizeBox(); add(RESIZE); } add(CANVASPANEL); if (!themes.isApplet()) { GROWBOX=new GrowBox(); REDUCEBOX=new ReduceBox(); CLOSEBOX=new CloseBox(); TITLE=new TitleBar(); MENU=new MenuBar(); VERTICALLEFTBORDER=new VerticalLeftBorder(); VERTICALRIGHTBORDER=new VerticalRightBorder(); OPENLEFTPANEL=new Open_left_panel_btn(); OPENRIGHTPANEL=new Open_right_panel_btn(); OPENMIDDLEPANEL=new Open_middle_panel_btn(); MONKEYBTN=new Monkey_panel_btn(); add(OPENLEFTPANEL); add(OPENRIGHTPANEL); add(OPENMIDDLEPANEL); add(MONKEYBTN); add(GROWBOX); add(REDUCEBOX); add(CLOSEBOX); add(TITLE); add(MENU); add(VERTICALLEFTBORDER); add(VERTICALRIGHTBORDER); } add(VERTICALLEFTPANELBORDER); add(TABCONTROLPANEL); add(TABMAINPANEL); add(TABLEFTBORDER); add(TABRIGHTBORDER); add(TABTOPBORDER); add(TABBOTTOMBORDER); add(LEFTPANEL); add(LEFTPANELCONTENT); add(RIGHTPANEL); ToolTipManager.sharedInstance().setInitialDelay(100); ToolTipManager.sharedInstance().setDismissDelay(10000); UIManager.put("ToolTip.background", new ColorUIResource(213, 227, 253)); pipe_tools.setStandardKeyInputs(); } public void rebuiltRightPanel(){ final String gicon=PaletteManager.geomSelectedIcon(); int i=getComponentZOrder(RIGHTPANEL); remove(RIGHTPANEL); RIGHTPANEL=null; RIGHTPANEL=new RightPanel(); add(RIGHTPANEL, i); // I know, this is weird, but it work's : setComponents(); setComponents(); PaletteManager.setSelected_with_clic(gicon,true); PaletteManager.initPaletteConsideringMode(); } public void setTitle(String s){ TITLE.setTitle(s); } public static void setCurrentPanel(tab_canvas_panel canvas){ CANVASPANEL.removeAll(); CANVASPANEL.add(canvas); CANVASPANEL.revalidate(); CANVASPANEL.repaint(); } public static JEricPanel getCanvasPanel(){ return CANVASPANEL; } public void setComponents() { RIGHTPANEL.init(); CANVASPANEL.init(); TABTOPBORDER.init(); TABLEFTBORDER.init(); TABRIGHTBORDER.init(); TABBOTTOMBORDER.init(); LEFTPANEL.init(); LEFTPANELCONTENT.init(); TABMAINPANEL.init(); TABCONTROLPANEL.init(); VERTICALLEFTPANELBORDER.init(); if (!themes.isApplet()) { REDUCEBOX.init(); CLOSEBOX.init(); GROWBOX.init(); TITLE.init(); MENU.init(); VERTICALLEFTBORDER.init(); VERTICALRIGHTBORDER.init(); RESIZE.init(); OPENLEFTPANEL.init(); OPENRIGHTPANEL.init(); OPENMIDDLEPANEL.init(); MONKEYBTN.init(); } } } carmetal-4.3/src/eric/GUI/window/GrowBox.java000066400000000000000000000035531417122252700210570ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JZirkelCanvas; import eric.bar.JPropertiesBar; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Rectangle; import java.awt.event.MouseEvent; import javax.swing.JFrame; import rene.gui.Global; /** * * @author erichake */ public class GrowBox extends windowComponent { private String btn="zgrowbutton.png"; private String overbtn="zgrowbuttonover.png"; private Image icon=themes.getImage(btn); public void paintComponent(Graphics g) { Dimension d=this.getSize(); g.drawImage(icon, 0, 0, d.width, d.height, this); } public GrowBox() { } public void init() { // win=StaticTools.getMainWindow(this); int x; if (themes.MacLF()) { x=themes.getBoxesMarginWidth()+themes.getCloseBoxDim().width+themes.getReduceBoxDim().width; } else { x=pipe_tools.getWindowSize().width-themes.getBoxesMarginWidth()-themes.getCloseBoxDim().width-themes.getGrowBoxDim().width-themes.getTotalRightPanelWidth(); } this.setBounds(x, themes.getBoxesMarginHeight(), themes.getGrowBoxDim().width, themes.getGrowBoxDim().height); } @Override public void mousePressed(MouseEvent e) { pipe_tools.setWindowBounds(Global.getScreen()); } @Override public void mouseEntered(MouseEvent arg0) { icon=themes.getImage(overbtn); repaint(); } @Override public void mouseExited(MouseEvent arg0) { icon=themes.getImage(btn); repaint(); } @Override public void mouseReleased(MouseEvent e) { } } carmetal-4.3/src/eric/GUI/window/ImageFilter.java000066400000000000000000000031321417122252700216510ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.GUI.window; import eric.*; import java.io.File; import javax.swing.filechooser.FileFilter; public class ImageFilter extends FileFilter { @Override public boolean accept(final File f) { if (f.isDirectory()) { return true; } final String extension = this.getExtension(f); if (extension != null) { if (extension.equals("tiff") || extension.equals("tif") || extension.equals("svg") || extension.equals("gif") || extension.equals("jpeg") || extension.equals("jpg") || extension.equals("eps") || extension.equals("png")) { return true; } else { return false; } } return false; } @Override public String getDescription() { return "Images"; } public String getExtension(final File f) { String ext = null; final String s = f.getName(); final int i = s.lastIndexOf('.'); if (i > 0 && i < s.length() - 1) { ext = s.substring(i + 1).toLowerCase(); } return ext; } } carmetal-4.3/src/eric/GUI/window/LeftPanel.java000066400000000000000000000132041417122252700213340ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import rene.gui.Global; /** * * @author erichake */ public class LeftPanel extends windowComponent { private static LeftPanel me; private static int factorySize=250; private static int actualSize=0; //width of this panel private static final int marginW=5, marginH=4, space=2; private static int H=themes.getIcon("leftpanelbackground.gif").getIconHeight(); private static Image on_btn=themes.getImage("leftpanel_on_btn.gif"); private static Image off_btn=themes.getImage("leftpanel_off_btn.gif"); private static Dimension btn_dim=new Dimension(themes.getIcon("leftpanel_on_btn.gif").getIconWidth(), themes.getIcon("leftpanel_on_btn.gif").getIconHeight()); private static LeftPanel_macros_btn macros_btn=new LeftPanel_macros_btn(); private static LeftPanel_history_btn history_btn=new LeftPanel_history_btn(); private static LeftPanel_help_btn help_btn=new LeftPanel_help_btn(); private static LeftPanel_scripts_btn scripts_btn=new LeftPanel_scripts_btn(); private static LeftPanel_close_btn close_btn=new LeftPanel_close_btn(); public void paintComponent(Graphics g) { Dimension d=getSize(); g.setColor(Color.white); g.fillRect(0, 0, d.width, d.height); g.drawImage(themes.getImage("leftpanelbackground.gif"), 0, 0, d.width, H, this); // super.paintComponent(g); } public static Image getOnBtn() { return on_btn; } public static Image getOffBtn() { return off_btn; } public static Dimension getBtnDim() { return btn_dim; } public static void selectHelp(){ select(help_btn); } public static void select(LeftPanel_btn btn) { macros_btn.select(macros_btn.equals(btn)); history_btn.select(history_btn.equals(btn)); help_btn.select(help_btn.equals(btn)); scripts_btn.select(scripts_btn.equals(btn)); me.repaint(); pipe_tools.actualiseLeftPanels(); } public static int x(LeftPanel_btn btn) { int macr=marginW; int hist=macr+((macros_btn.isVisible())?space+btn_dim.width:0); int help=hist+((history_btn.isVisible())?space+btn_dim.width:0); int scripts=help+((scripts_btn.isVisible())?space+btn_dim.width:0); if (macros_btn.equals(btn)) { return macr; } else if (history_btn.equals(btn)) { return hist; } else if (help_btn.equals(btn)) { return help; } else if(scripts_btn.equals(btn)){ return scripts; } return 0; } public static int y() { return marginH; } public static void setPanelWidth(int size) { actualSize=size; } public static int getPanelWidth() { return actualSize; } public static int getPanelHeight() { return H; } public static boolean isPanelVisible() { return (actualSize!=0); } public static void setMacroBtnVisible(boolean b){ macros_btn.setVisible(b); LeftPanel_content.setPanelVisibility(); me.init(); } public static void setHistoryBtnVisible(boolean b){ history_btn.setVisible(b); LeftPanel_content.setPanelVisibility(); me.init(); } public static void setHelpBtnVisible(boolean b){ help_btn.setVisible(b); LeftPanel_content.setPanelVisibility(); me.init(); } public static void setScriptsBtnVisible(boolean b){ scripts_btn.setVisible(b); LeftPanel_content.setPanelVisibility(); me.init(); } public static boolean isMacroBtnVisible(){ return macros_btn.isVisible(); } public static boolean isHistoryBtnVisible(){ return history_btn.isVisible(); } public static boolean isHelpBtnVisible(){ return help_btn.isVisible(); } public static boolean isScriptsBtnVisible(){ return scripts_btn.isVisible(); } public static boolean isHistoryPanelVisible() { return ((isPanelVisible())&&(history_btn.isPanelSelected())); } public static boolean isHelpPanelVisible() { return ((isPanelVisible())&&(help_btn.isPanelSelected())); } public static boolean isMacroPanelVisible() { return ((isPanelVisible())&&(macros_btn.isPanelSelected())); } public static boolean isScriptsPanelVisible(){ return ((isPanelVisible())&&(scripts_btn.isPanelSelected())); } public static int getFactorySize(){ return factorySize; } public static void setFactorySize(int size){ factorySize=size; actualSize=size; pipe_tools.setWindowComponents(); } public static void showPanel(boolean vis) { int w=(vis)?Global.getParameter("leftpanelwidth", factorySize):0; setPanelWidth(w); pipe_tools.setWindowComponents(); pipe_tools.actualiseLeftPanels(); } public void init() { setBounds(themes.getVerticalBorderWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight()+themes.getCommentsHeight(), actualSize, H); macros_btn.init(); history_btn.init(); help_btn.init(); scripts_btn.init(); close_btn.init(); } public LeftPanel() { super(); me=this; setOpaque(true); setLayout(null); add(macros_btn); add(history_btn); add(help_btn); add(scripts_btn); add(close_btn); } }carmetal-4.3/src/eric/GUI/window/LeftPanel_btn.java000066400000000000000000000004021417122252700221730ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; /** * * @author erichake */ public interface LeftPanel_btn { public void select(boolean b); public boolean isPanelSelected(); } carmetal-4.3/src/eric/GUI/window/LeftPanel_close_btn.java000066400000000000000000000030101417122252700233560ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.themes; import eric.GUI.windowComponent; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; /** * * @author erichake */ public class LeftPanel_close_btn extends windowComponent { private boolean over=false; private static int W=themes.getIcon("tab_close.png").getIconWidth(); private static int H=themes.getIcon("tab_close.png").getIconHeight(); private static int marginW=5; private static int marginH=8; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (over) { g.drawImage(themes.getImage("tab_close_over.png"), 0, 0, d.width, d.height, this); } else { g.drawImage(themes.getImage("tab_close.png"), 0, 0, d.width, d.height, this); } } public void init() { setBounds(LeftPanel.getPanelWidth()-W-marginW, marginH, W, H); } public LeftPanel_close_btn() { } @Override public void mousePressed(MouseEvent e) { // LeftPanel.showPanel(false); // Open_left_panel_btn.setSelected(false); // over=false; Open_left_panel_btn.toggle(); } public void mouseEntered(MouseEvent e) { over=true; repaint(); } public void mouseExited(MouseEvent e) { over=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/LeftPanel_content.java000066400000000000000000000051151417122252700230700ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.windowComponent; import eric.JHelpPanel; import eric.JSprogram.JScriptsLeftPanel; import eric.macros.MacrosList; import java.awt.Dimension; import javax.swing.BoxLayout; import javax.swing.JComponent; import rene.zirkel.construction.ConstructionDisplayPanel; /** * * @author erichake */ public class LeftPanel_content extends windowComponent { private static LeftPanel_content me; private static JComponent JP; public void init() { setBounds(themes.getVerticalBorderWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight()+LeftPanel.getPanelHeight()+themes.getCommentsHeight(), themes.getLeftPanelWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()-LeftPanel.getPanelHeight()-themes.getCommentsHeight()); if (JP instanceof JHelpPanel) { JHelpPanel jh=(JHelpPanel) JP; jh.fixPanelSize(getSize().width, getSize().height); } else if (JP instanceof MacrosList) { MacrosList ml=(MacrosList) JP; ml.fixPanelSize(getSize().width, getSize().height); } else if (JP instanceof ConstructionDisplayPanel) { ConstructionDisplayPanel cdp=(ConstructionDisplayPanel) JP; cdp.fixPanelSize(getSize().width, getSize().height); } else if(JP instanceof JScriptsLeftPanel){ JScriptsLeftPanel jsp = (JScriptsLeftPanel) JP; jsp.fixPanelSize(getSize().width, getSize().height); } } public LeftPanel_content() { me=this; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); } public static void setPanelVisibility(){ if (JP instanceof MacrosList) { JP.setVisible(LeftPanel.isMacroBtnVisible()); } else if (JP instanceof ConstructionDisplayPanel) { JP.setVisible(LeftPanel.isHistoryBtnVisible()); } else if (JP instanceof JHelpPanel) { JP.setVisible(LeftPanel.isHelpBtnVisible()); } else if (JP instanceof JScriptsLeftPanel) { JP.setVisible(LeftPanel.isScriptsBtnVisible()); } } public static void setContent(JComponent jp) { JP=jp; me.removeAll(); me.add(jp); me.init(); me.revalidate(); setPanelVisibility(); me.repaint(); } public static Dimension getPanelSize() { return me.getSize(); } } carmetal-4.3/src/eric/GUI/window/LeftPanel_help_btn.java000066400000000000000000000027631417122252700232170ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.windowComponent; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; /** * * @author erichake */ public class LeftPanel_help_btn extends windowComponent implements LeftPanel_btn{ private boolean over=false; private boolean selected=false; private static int X=(themes.getIcon("leftpanel_on_btn.gif").getIconWidth()-themes.getIcon("left_help.png").getIconWidth())/2; private static int Y=3; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (selected) { g.drawImage(LeftPanel.getOnBtn(), 0, 0, d.width, d.height, this); } else { g.drawImage(LeftPanel.getOffBtn(), 0, 0, d.width, d.height, this); } g.drawImage(themes.getImage("left_help.png"),X,Y,this); } public void init() { setBounds(LeftPanel.x(this),LeftPanel.y(),LeftPanel.getBtnDim().width,LeftPanel.getBtnDim().height); } public LeftPanel_help_btn() { } @Override public void mousePressed(MouseEvent e) { LeftPanel.select(this); } public void select(boolean b) { selected=b; } public boolean isPanelSelected() { return selected; } } carmetal-4.3/src/eric/GUI/window/LeftPanel_history_btn.java000066400000000000000000000031331417122252700237600ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.windowComponent; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; import rene.zirkel.ZirkelCanvas; import rene.zirkel.construction.ConstructionDisplayPanel; /** * * @author erichake */ public class LeftPanel_history_btn extends windowComponent implements LeftPanel_btn { private boolean over=false; private boolean selected=false; private static int X=(themes.getIcon("leftpanel_on_btn.gif").getIconWidth()-themes.getIcon("left_history.png").getIconWidth())/2; private static int Y=2; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (selected) { g.drawImage(LeftPanel.getOnBtn(), 0, 0, d.width, d.height, this); } else { g.drawImage(LeftPanel.getOffBtn(), 0, 0, d.width, d.height, this); } g.drawImage(themes.getImage("left_history.png"), X, Y, this); } public void init() { setBounds(LeftPanel.x(this), LeftPanel.y(), LeftPanel.getBtnDim().width, LeftPanel.getBtnDim().height); } public LeftPanel_history_btn() { } @Override public void mousePressed(MouseEvent e) { LeftPanel.select(this); } public void select(boolean b) { selected=b; } public boolean isPanelSelected() { return selected; } } carmetal-4.3/src/eric/GUI/window/LeftPanel_macros_btn.java000066400000000000000000000026701417122252700235500ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.themes; import eric.GUI.windowComponent; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; /** * * @author erichake */ public class LeftPanel_macros_btn extends windowComponent implements LeftPanel_btn{ private boolean over=false; private boolean selected=true; private static int X=(themes.getIcon("leftpanel_on_btn.gif").getIconWidth()-themes.getIcon("left_macros.png").getIconWidth())/2; private static int Y=3; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (selected) { g.drawImage(LeftPanel.getOnBtn(), 0, 0, d.width, d.height, this); } else { g.drawImage(LeftPanel.getOffBtn(), 0, 0, d.width, d.height, this); } g.drawImage(themes.getImage("left_macros.png"),X,Y,this); } public void init() { setBounds(LeftPanel.x(this),LeftPanel.y(),LeftPanel.getBtnDim().width,LeftPanel.getBtnDim().height); } public LeftPanel_macros_btn() { } @Override public void mousePressed(MouseEvent e) { LeftPanel.select(this); } public void select(boolean b) { selected=b; } public boolean isPanelSelected() { return selected; } } carmetal-4.3/src/eric/GUI/window/LeftPanel_scripts_btn.java000066400000000000000000000026151417122252700237520ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.themes; import eric.GUI.windowComponent; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; /** * * @author PM */ public class LeftPanel_scripts_btn extends windowComponent implements LeftPanel_btn { private boolean selected = false; private static int X = (themes.getIcon("leftpanel_on_btn.gif").getIconWidth()-17)/2; //17 : voir ligne 34 private static int Y = 3; public LeftPanel_scripts_btn() { } @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (selected) { g.drawImage(LeftPanel.getOnBtn(), 0, 0, d.width, d.height, this); } else { g.drawImage(LeftPanel.getOffBtn(), 0, 0, d.width, d.height, this); } g.drawImage(themes.resizeExistingIcon("/eric/GUI/icons/themes/common/scripts.png", 17, 17).getImage(),X,Y,this); } public void init() { setBounds(LeftPanel.x(this),LeftPanel.y(),LeftPanel.getBtnDim().width,LeftPanel.getBtnDim().height); } @Override public void mousePressed(MouseEvent e) { LeftPanel.select(this); } @Override public void select(boolean b) { selected = b; } @Override public boolean isPanelSelected() { return selected; } }carmetal-4.3/src/eric/GUI/window/MainApplet.java000066400000000000000000000121001417122252700215060ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.FileTools; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.JZirkelCanvas; import eric.Media; import java.awt.Image; import java.awt.Point; import java.net.URL; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JApplet; import javax.swing.SwingUtilities; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class MainApplet extends JApplet implements MainContainer { private ContentPane CONTENT; private String Source=null; public MainApplet() { } @Override public void init() { try { pipe_tools.init(this); SwingUtilities.invokeAndWait(new Runnable() { public void run() { createGUI(); openFILES(); } }); } catch (Exception ex) { } // JSObject window=JSObject.getWindow(this); // String[] message={"An alert message"}; // window.call("alert", message); } @Override public void start() { SwingUtilities.invokeLater(new Runnable() { public void run() { if (Source!=null) { FileTools.setWorkBookSource(Source); }else{ pipe_tools.AppletLoadedMessage_To_HTML(); } } }); } public void createGUI() { tab_main_panel.removeAllBtns(CONTENT); Media.clearMedias(); setLayout(null); themes.init(); CONTENT = new ContentPane(); setContentPane(CONTENT); } public void openFILES() { try { Source = getParameter("source"); final String filename = getParameter("file"); URL url = new URL(getCodeBase(), filename); if (url.getFile().toLowerCase().endsWith(".zirs")) { URL myURL = new URL(getCodeBase(), filename); FileTools.openWorkBook(url.getFile(), myURL.openStream()); } else if (url.getFile().toLowerCase().endsWith(".zir")) { URL myURL = new URL(getCodeBase(), filename); FileTools.openFile(url.getFile(), myURL.openStream(), 0); } } catch (Exception ex) { setComponents(); // try { // String src = getParameter("source"); // src = src.trim(); // FileTools.setWorkBookSource(src); // } catch (Exception ex2) { // setComponents(); // } } } public void setComponents() { CONTENT.setComponents(); } public ContentPane getContent() { return CONTENT; } public Point getMouseLoc() { return CONTENT.getMousePosition(); } public Image getImage(String s) { Image myimage; myimage = getImage(themes.class.getResource(themes.getCommonThemePath() + s)); if (myimage == null) { myimage = getImage(themes.class.getResource(themes.getCurrentThemePath() + s)); } if (myimage == null) { myimage = getImage(themes.class.getResource(themes.getCommonThemePath() + "null.gif")); } return myimage; } public Image getPaletteImage(String s) { Image myimage; try { myimage = getImage(themes.class.getResource(themes.getPalettePath() + s + ".png")); } catch (final Exception e) { try { myimage = getImage(themes.class.getResource(themes.getPalettePath() + s + ".gif")); } catch (final Exception ex) { try { myimage = getImage(themes.class.getResource(themes.getBarPath() + s + ".png")); } catch (final Exception ex2) { try { myimage = getImage(themes.class.getResource(themes.getBarPath() + s + ".gif")); } catch (final Exception ex3) { myimage = getImage(themes.class.getResource(themes.getCommonThemePath() + "null.gif")); } } } } return myimage; } public boolean isApplet() { return true; } @Override public void setLocation(int x, int y) { } @Override public Point getLocation() { return new Point(0, 0); } @Override public void setSize(int w, int h) { } /* these methods are made for communication between the applet * and the web page. */ public String get() { return FileTools.getWorkBookSource(); } public void set(String s) { createGUI(); s = s.trim(); FileTools.setWorkBookSource(s); } public void JSsend(final String s) { ZirkelCanvas zc = JZirkelCanvas.getCurrentZC(); zc.JSsend(s); zc.repaint(); } public String JSreceive(final String s) { ZirkelCanvas zc = JZirkelCanvas.getCurrentZC(); return zc.JSreceive(s); } } carmetal-4.3/src/eric/GUI/window/MainContainer.java000066400000000000000000000014021417122252700222060ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import java.awt.Color; import java.awt.Dimension; import java.awt.Image; import java.awt.Point; import javax.swing.JRootPane; /** * * @author erichake */ public interface MainContainer{ public void setComponents(); public ContentPane getContent(); public Point getMouseLoc(); public Image getImage(String s); public Image getPaletteImage(String s); public boolean isApplet(); public void setLocation(int x, int y); public Point getLocation(); public void setSize(int w,int h); public Dimension getSize(); public JRootPane getRootPane(); // public Image createImage(int width, int height); } carmetal-4.3/src/eric/GUI/window/MainWindow.java000066400000000000000000000102371417122252700215410ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * NewJZirkelFrame.java * * Created on 26 oct. 2009, 08:41:46 */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.OS; import java.awt.Image; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import javax.swing.ImageIcon; import javax.swing.JFrame; import rene.gui.Global; /** * * @author erichake */ public class MainWindow extends JFrame implements MainContainer, WindowListener { private int WIN_w=1280, WIN_h=800; private ContentPane CONTENT=null; @Override public void repaint() { } /** * */ public MainWindow() { super(); pipe_tools.init(this); addWindowListener(this); setUndecorated(true); setLayout(null); themes.init(); CONTENT=new ContentPane(); setContentPane(CONTENT); if (OS.isUnix()) { // A cause du "MToolkit" du lanceur desktop sur Linux, on ouvre // la fenêtre en plein écran au démarrage : setBounds(Global.getScreenX(), Global.getScreenY(), Global.getScreenW(), Global.getScreenH()); setSize(Global.getScreenW(), Global.getScreenH()); } else { if (WIN_w>Global.getScreenW()) { WIN_w=Global.getScreenW(); } if (WIN_h>Global.getScreenH()) { WIN_h=Global.getScreenH(); } int x=(Global.getScreenW()-WIN_w)/2; int y=(Global.getScreenH()-WIN_h)/2; setBounds(Global.getScreenX()+x, Global.getScreenY()+y, WIN_w, WIN_h); setSize(WIN_w, WIN_h); } setComponents(); setVisible(true); } /** * */ @Override public void setComponents() { CONTENT.setComponents(); } @Override public ContentPane getContent() { return CONTENT; } @Override public Point getMouseLoc() { return MouseInfo.getPointerInfo().getLocation(); } @Override public Image getImage(String s) { ImageIcon myicon; try { myicon=new ImageIcon(themes.class.getResource(themes.getCommonThemePath()+s)); } catch (final Exception e) { try { myicon=new ImageIcon(themes.class.getResource(themes.getCurrentThemePath()+s)); } catch (final Exception ex) { myicon=new ImageIcon(themes.class.getResource(themes.getCommonThemePath()+"null.gif")); } } return myicon.getImage(); } @Override public Image getPaletteImage(String s) { ImageIcon myicon; try { myicon=new ImageIcon(themes.class.getResource(themes.getPalettePath()+s+".png")); } catch (final Exception e) { try { myicon=new ImageIcon(themes.class.getResource(themes.getPalettePath()+s+".gif")); } catch (final Exception ex) { try { myicon=new ImageIcon(themes.class.getResource(themes.getBarPath()+s+".png")); } catch (final Exception ex2) { try { myicon=new ImageIcon(themes.class.getResource(themes.getBarPath()+s+".gif")); } catch (final Exception ex3) { myicon=new ImageIcon(themes.class.getResource(themes.getCommonThemePath()+"null.gif")); } } } } return myicon.getImage(); } @Override public boolean isApplet() { return false; } @Override public void windowOpened(WindowEvent e) { } @Override public void windowClosing(WindowEvent e) { } @Override public void windowClosed(WindowEvent e) { } @Override public void windowIconified(WindowEvent e) { } @Override public void windowDeiconified(WindowEvent e) { } @Override public void windowActivated(WindowEvent e) { } @Override public void windowDeactivated(WindowEvent e) { tab_main_panel.hidePopups(); } }carmetal-4.3/src/eric/GUI/window/Margin.java000066400000000000000000000013241417122252700206770ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import java.awt.Dimension; import eric.JEricPanel; /** * * @author erichake */ public class Margin extends JEricPanel { public static final int HORIZONTAL=1, VERTICAL=2; public Margin(int length, int orientation) { int w, h; if (orientation==HORIZONTAL) { w=length; h=1; } else { w=1; h=length; } Dimension d=new Dimension(w, h); setPreferredSize(d); setMinimumSize(d); setMaximumSize(d); setSize(d); setOpaque(false); setFocusable(false); } } carmetal-4.3/src/eric/GUI/window/MenuBar.java000066400000000000000000000035741417122252700210240ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.MouseEvent; import javax.swing.BoxLayout; /** * * @author erichake */ public class MenuBar extends windowComponent { private Point winloc; private Point origin; private Point current; private static MenuBar me; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(themes.getImage("menubar.gif"), 0, 0, d.width, d.height, this); } public void init() { setBounds(0, themes.getTitleBarHeight(), pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth(), themes.getMenuBarHeight()); } public MenuBar() { me=this; setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); add(pipe_tools.getMenuBar()); } public static void setMenuVisible(boolean b) { try { me.getComponent(0).setVisible(b); } catch (Exception e) { } } public static boolean isMenuVisible() { return me.getComponent(0).isVisible(); } public static void reloadMenuBar() { me.removeAll(); me.add(pipe_tools.getMenuBar()); me.revalidate(); } @Override public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); winloc=pipe_tools.getWindowLocation(); } @Override public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); pipe_tools.setWindowLocation(winloc.x+current.x-origin.x, winloc.y+current.y-origin.y); pipe_tools.setWindowComponents(); } }carmetal-4.3/src/eric/GUI/window/Monkey_panel_btn.java000066400000000000000000000046621417122252700227560ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.event.MouseEvent; import rene.gui.Global; /** * * @author erichake */ public class Monkey_panel_btn extends windowComponent { private static Monkey_panel_btn me; private Image icon_off=themes.getImage("monkeybtn_off.png"); private Image icon_on=themes.getImage("monkeybtn_on.png"); private boolean isselected=false; private boolean isover=false; public void paintComponent(Graphics g) { Dimension d=this.getSize(); final int w=d.width; final int h=d.height; final Graphics2D g2=windowComponent.getGraphics2D(g); if (isselected) { g2.drawImage(icon_on, 0, 0, w, h, this); } else { g2.drawImage(icon_off, 0, 0, w, h, this); } if (isover) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.3f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); g2.fillRect(7, 5, 17, 11); } } public Monkey_panel_btn() { me=this; setToolTipText(Global.Loc("monkey.btn.tooltip")); } public static void setSelected(boolean b) { me.isselected=b; me.repaint(); } public void init() { int x=pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth()-3*themes.getOpenLeftPanelBtnDim().width-themes.getOpenMiddlePanelBtnDim().width-3*themes.getOpenPanelsBtnsMarginW(); this.setBounds(x, themes.getOpenPanelsBtnsMarginH(), themes.getOpenLeftPanelBtnDim().width, themes.getOpenLeftPanelBtnDim().height); } public void mousePressed(MouseEvent e) { isselected=true; repaint(); pipe_tools.monkeyStart(); } public void mouseReleased(MouseEvent e) { isselected=false; repaint(); pipe_tools.monkeyStop(); } public void mouseEntered(MouseEvent arg0) { isover=true; repaint(); } public void mouseExited(MouseEvent arg0) { isover=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/Open_left_panel_btn.java000066400000000000000000000060231417122252700234200ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JGeneralMenuBar; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Stroke; import java.awt.event.MouseEvent; import rene.gui.Global; /** * * @author erichake */ public class Open_left_panel_btn extends windowComponent { private static Open_left_panel_btn me; private Image icon_off=themes.getImage("leftpanel_off.png"); private Image icon_on=themes.getImage("leftpanel_on.png"); private boolean isselected=false; private boolean isover=false; public void paintComponent(Graphics g) { Dimension d=this.getSize(); final int w=d.width; final int h=d.height; final Graphics2D g2=windowComponent.getGraphics2D(g); if (isselected) { g2.drawImage(icon_on, 0, 0, w, h, this); } else { g2.drawImage(icon_off, 0, 0, w, h, this); } if (isover) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.3f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); g2.fillRect(7, 5, 17, 11); } } public Open_left_panel_btn() { me=this; setToolTipText(Global.Loc("menu.display.leftpanel")); } public static void setSelected(boolean b) { me.isselected=b; me.repaint(); } public void init() { int x=pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth()-2*themes.getOpenLeftPanelBtnDim().width-themes.getOpenMiddlePanelBtnDim().width-themes.getOpenPanelsBtnsMarginW(); this.setBounds(x, themes.getOpenPanelsBtnsMarginH(), themes.getOpenLeftPanelBtnDim().width, themes.getOpenLeftPanelBtnDim().height); } public static void open() { if (!LeftPanel.isPanelVisible()) { toggle(); } } public static void setmode(){ if (me!=null) { me.isselected=LeftPanel.isPanelVisible(); } } public static void toggle() { LeftPanel.showPanel(!LeftPanel.isPanelVisible()); if (me!=null) { me.isselected=LeftPanel.isPanelVisible(); me.repaint(); } JGeneralMenuBar.initToggleItems(); tab_main_panel.initToggleItems(); if (pipe_tools.isApplet()) { pipe_tools.setWindowComponents(); PaletteManager.init(); } } public void mousePressed(MouseEvent e) { toggle(); } public void mouseEntered(MouseEvent arg0) { isover=true; repaint(); } public void mouseExited(MouseEvent arg0) { isover=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/Open_middle_panel_btn.java000066400000000000000000000054561417122252700237350ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JGeneralMenuBar; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Stroke; import java.awt.event.MouseEvent; import rene.gui.Global; /** * * @author erichake */ public class Open_middle_panel_btn extends windowComponent { private static Open_middle_panel_btn me; private Image icon_off=themes.getImage("middlepanel_off.png"); private Image icon_on=themes.getImage("middlepanel_on.png"); private boolean isselected=false; private boolean isover=false; public void paintComponent(Graphics g) { Dimension d=this.getSize(); final int w=d.width; final int h=d.height; final Graphics2D g2=windowComponent.getGraphics2D(g); if (isselected) { g2.drawImage(icon_on, 0, 0, w, h, this); } else { g2.drawImage(icon_off, 0, 0, w, h, this); } if (isover) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.3f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); g2.fillRect(7, 5, 17, 11); } } public Open_middle_panel_btn() { me=this; isselected=Global.getParameter("comment", false); setToolTipText(Global.Loc("menu.display.comment")); } public static void setmode(){ if (me!=null) { me.isselected=Global.getParameter("comment", false); } } public static void toggle() { if (me!=null) { me.isselected=!me.isselected; me.repaint(); } Global.setParameter("comment", !Global.getParameter("comment", false)); pipe_tools.setWindowComponents(); comments.refresh(); JGeneralMenuBar.initToggleItems(); tab_main_panel.initToggleItems(); } public void init() { int x=pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth()-themes.getOpenLeftPanelBtnDim().width-themes.getOpenPanelsBtnsMarginW()-themes.getOpenMiddlePanelBtnDim().width; this.setBounds(x, themes.getOpenPanelsBtnsMarginH(), themes.getOpenLeftPanelBtnDim().width, themes.getOpenLeftPanelBtnDim().height); } public void mousePressed(MouseEvent e) { toggle(); } public void mouseEntered(MouseEvent arg0) { isover=true; repaint(); } public void mouseExited(MouseEvent arg0) { isover=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/Open_right_panel_btn.java000066400000000000000000000054741417122252700236140ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JGeneralMenuBar; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Stroke; import java.awt.event.MouseEvent; import rene.gui.Global; /** * * @author erichake */ public class Open_right_panel_btn extends windowComponent { private Image icon_off=themes.getImage("rightpanel_off.png"); private Image icon_on=themes.getImage("rightpanel_on.png"); private boolean isselected=true; private boolean isover=false; private static Open_right_panel_btn me; public void paintComponent(Graphics g) { Dimension d=this.getSize(); final int w=d.width; final int h=d.height; final Graphics2D g2=windowComponent.getGraphics2D(g); if (isselected) { g2.drawImage(icon_on, 0, 0, w, h, this); } else { g2.drawImage(icon_off, 0, 0, w, h, this); } if (isover) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.3f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); g2.fillRect(6, 5, 17, 11); } } public Open_right_panel_btn() { me=this; setToolTipText(Global.Loc("menu.display.palette")); } public void init() { int x=pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth()-themes.getOpenLeftPanelBtnDim().width-themes.getOpenPanelsBtnsMarginW(); this.setBounds(x, themes.getOpenPanelsBtnsMarginH(), themes.getOpenLeftPanelBtnDim().width, themes.getOpenLeftPanelBtnDim().height); } public static void setmode(){ if (me!=null) { me.isselected=RightPanel.isPanelVisible(); } } public static void toggle() { RightPanel.showPanel(!RightPanel.isPanelVisible()); if (me!=null) { me.isselected=RightPanel.isPanelVisible(); me.repaint(); } JGeneralMenuBar.initToggleItems(); tab_main_panel.initToggleItems(); PaletteManager.refresh(); if (pipe_tools.isApplet()){ pipe_tools.setWindowComponents(); PaletteManager.init(); } } public void mousePressed(MouseEvent e) { toggle(); } public void mouseEntered(MouseEvent arg0) { isover=true; repaint(); } public void mouseExited(MouseEvent arg0) { isover=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/ReduceBox.java000066400000000000000000000034741417122252700213520ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import javax.swing.JFrame; /** * * @author erichake */ public class ReduceBox extends windowComponent { private String btn="zreducebutton.png"; private String overbtn="zreducebuttonover.png"; private Image icon=themes.getImage(btn); public void paintComponent(Graphics g) { Dimension d=this.getSize(); g.drawImage(icon, 0, 0, d.width, d.height, this); } public ReduceBox() { } public void init() { // win=StaticTools.getMainWindow(this); int x; if (themes.MacLF()) { x=themes.getBoxesMarginWidth()+themes.getCloseBoxDim().width; } else { x=pipe_tools.getWindowSize().width-themes.getBoxesMarginWidth()-themes.getCloseBoxDim().width-themes.getGrowBoxDim().width-themes.getReduceBoxDim().width-themes.getTotalRightPanelWidth(); } this.setBounds(x, themes.getBoxesMarginHeight(), themes.getReduceBoxDim().width, themes.getReduceBoxDim().height); } public void mousePressed(MouseEvent e) { if (pipe_tools.getWindow() instanceof MainWindow) { MainWindow mw=(MainWindow) pipe_tools.getWindow(); mw.setExtendedState(JFrame.ICONIFIED); mw.setComponents(); } } public void mouseEntered(MouseEvent arg0) { icon=themes.getImage(overbtn); repaint(); } public void mouseExited(MouseEvent arg0) { icon=themes.getImage(btn); repaint(); } } carmetal-4.3/src/eric/GUI/window/ResizeBox.java000066400000000000000000000035131417122252700213760ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Dimension; import java.awt.Graphics; import java.awt.MouseInfo; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.MouseEvent; /** * * @author erichake */ public class ResizeBox extends windowComponent { private Point origin; private Point current; private int winWidth; private int winHeight; public void paintComponent(Graphics g) { Dimension d=this.getSize(); g.drawImage(themes.getImage("zoombox.png"), 0, 0, d.width, d.height, this); } public ResizeBox() { } public void init(){ this.setBounds(pipe_tools.getWindowSize().width-themes.getResizeBoxWidth()-themes.getTotalRightPanelWidth(), pipe_tools.getWindowSize().height-themes.getResizeBoxHeight(), themes.getResizeBoxWidth(), themes.getResizeBoxHeight()); } public void mouseEntered(MouseEvent e) { repaint(); } @Override public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); winWidth=pipe_tools.getWindowSize().width; winHeight=pipe_tools.getWindowSize().height; } @Override public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); int w=winWidth+current.x-origin.x; int h=winHeight+current.y-origin.y; Toolkit.getDefaultToolkit().sync(); pipe_tools.setWindowSize(Math.max(w,210), Math.max(h,70)); pipe_tools.setWindowComponents(); } @Override public void mouseReleased(MouseEvent e) { } } carmetal-4.3/src/eric/GUI/window/RightPanel.java000066400000000000000000000056561417122252700215330ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import javax.swing.BoxLayout; import rene.gui.Global; /** * * @author erichake */ public class RightPanel extends windowComponent { private static int VerticalSeparator=1; private static Image back=themes.getImage("rightback.png"); private static RightPanel me; // private static int actualSize; //width of this panel public static boolean isPanelVisible() { return (me.getSize().width!=0); } public static int getPanelWidth() { return me.getSize().width; } public static int getSeparatorWidth() { if (isPanelVisible()) { return VerticalSeparator; } else { return 0; } } public static void setPanelWidth(int size) { Dimension d=new Dimension(size, pipe_tools.getWindowSize().height); me.setPreferredSize(d); me.setMaximumSize(d); me.setMinimumSize(d); me.setSize(d); } public static void showPanel(boolean vis) { int w=(vis)?(themes.getPaletteIconPerRow()*themes.getPaletteIconWidth()):0; // if ((w>0)&&(Global.getScreenW()>=pipe_tools.getWindowSize().width+w)) { // pipe_tools.setWindowSize(pipe_tools.getWindowSize().width+w+VerticalSeparator, pipe_tools.getWindowSize().height); // } if(w>0){ if(Global.getScreenW()>=pipe_tools.getWindowSize().width+w){ pipe_tools.setWindowSize(pipe_tools.getWindowSize().width+w+VerticalSeparator, pipe_tools.getWindowSize().height); } else { pipe_tools.setWindowSize(Global.getScreenW()+VerticalSeparator, pipe_tools.getWindowSize().height); } } if (w==0) { pipe_tools.setWindowSize(pipe_tools.getWindowSize().width-getPanelWidth()-VerticalSeparator, pipe_tools.getWindowSize().height); } setPanelWidth(w); me.setBounds(pipe_tools.getWindowSize().width-getPanelWidth(), 0, getPanelWidth(), pipe_tools.getWindowSize().height); pipe_tools.setWindowComponents(); } @Override public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(back, 0, 0, d.width, d.height, this); } public void init() { setBounds(pipe_tools.getWindowSize().width-themes.getRightPanelWidth(), 0, themes.getRightPanelWidth(), pipe_tools.getWindowSize().height); PaletteManager.init(); } public RightPanel() { super(); me=this; setPanelWidth(themes.getPaletteIconPerRow()*themes.getPaletteIconWidth()); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setAlignmentX(0.0f); PaletteManager.construct(this); } } carmetal-4.3/src/eric/GUI/window/TitleBar.java000066400000000000000000000050421417122252700211710ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.MouseInfo; import java.awt.Point; import java.awt.RenderingHints; import java.awt.event.MouseEvent; import java.awt.font.FontRenderContext; import java.awt.font.LineMetrics; import java.awt.geom.Rectangle2D; import rene.gui.Global; /** * * @author erichake */ public class TitleBar extends windowComponent { private Point origin; private Point current; private Point winloc; private Font TextFont=new Font("System", Font.PLAIN, 13); private Color TextColor=Color.DARK_GRAY; private String title; public void paintComponent(Graphics g) { Dimension d=getSize(); Graphics2D g2d=(Graphics2D) g; g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2d.drawImage(themes.getImage("titlebar.gif"), 0, 0, d.width, d.height, this); g2d.setFont(TextFont); FontRenderContext frc=g2d.getFontRenderContext(); Rectangle2D bounds=TextFont.getStringBounds(title, frc); LineMetrics metrics=TextFont.getLineMetrics(title, frc); float width=(float) bounds.getWidth(); // The width of our text float lineheight=metrics.getHeight(); // Total line height float ascent=metrics.getAscent(); // Top of text to baseline g2d.setColor(TextColor); g2d.drawString(title, (pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth()-width)/2, lineheight+3); } public void init() { // win=StaticTools.getMainWindow(this); setBounds(0, 0, pipe_tools.getWindowSize().width-themes.getTotalRightPanelWidth(), themes.getTitleBarHeight()); } public TitleBar() { title=Global.Loc("program.name"); } public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); winloc=pipe_tools.getWindowLocation(); } public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); pipe_tools.setWindowLocation(winloc.x+current.x-origin.x, winloc.y+current.y-origin.y); // pipe_tools.setWindowComponents(); } void setTitle(String s){ title=s; getParent().repaint(); } } carmetal-4.3/src/eric/GUI/window/VerticalLeftBorder.java000066400000000000000000000027531417122252700232130ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.MouseEvent; /** * * @author erichake */ public class VerticalLeftBorder extends windowComponent { private Point origin; private Point current; private Point winloc; public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(themes.getImage("verticalseparator.png"), 0, 0, d.width, d.height, this); } public void init() { // win=StaticTools.getMainWindow(this); setBounds(0, themes.getTitleBarHeight()+themes.getMenuBarHeight(), themes.getVerticalBorderWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()); } public VerticalLeftBorder() { } public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); winloc=pipe_tools.getWindowLocation(); } public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); pipe_tools.setWindowLocation(winloc.x+current.x-origin.x, winloc.y+current.y-origin.y); pipe_tools.setWindowComponents(); } } carmetal-4.3/src/eric/GUI/window/VerticalLeftPanelBorder.java000066400000000000000000000042171417122252700241700ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Graphics; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.MouseEvent; /** * * @author erichake */ public class VerticalLeftPanelBorder extends windowComponent { private Point origin; private Point current; //private boolean mousepressed; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(themes.getImage("verticalseparator.png"), 0, 0, d.width, d.height, this); } public void init() { // win=StaticTools.getMainWindow(this); setBounds(themes.getLeftPanelWidth()+themes.getVerticalBorderWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight()+themes.getCommentsHeight(), themes.getVerticalPanelBorderWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()-themes.getCommentsHeight()); } public VerticalLeftPanelBorder() { } @Override public void mouseEntered(MouseEvent e) { setCursor(Cursor.getPredefinedCursor(Cursor.W_RESIZE_CURSOR)); } @Override public void mouseExited(MouseEvent e) { setCursor(Cursor.getDefaultCursor()); } @Override public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); } @Override public void mouseReleased(MouseEvent e){ } @Override public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); int w = LeftPanel.getFactorySize()+current.x-origin.x; if(w>=115 && w<=this.getParent().getWidth()/2) { LeftPanel.setFactorySize(w); origin=current; } //LeftPanel.setFactorySize(LeftPanel.getFactorySize()+current.x-origin.x); // LeftPanel.setFactorySize(LeftPanel.getFactorySize()+current.x-origin.x); // origin=current; } } carmetal-4.3/src/eric/GUI/window/VerticalRightBorder.java000066400000000000000000000031151417122252700233670ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.MouseEvent; /** * * @author erichake */ public class VerticalRightBorder extends windowComponent { private Point origin; private Point current; private Point winloc; public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(themes.getImage("verticalseparator.png"), 0, 0, d.width, d.height, this); } public void init() { // win=StaticTools.getMainWindow(this); setBounds(pipe_tools.getWindowSize().width-themes.getVerticalBorderWidth()-themes.getTotalRightPanelWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight(), themes.getVerticalBorderWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()); } public VerticalRightBorder() { } public void mousePressed(MouseEvent e) { origin=MouseInfo.getPointerInfo().getLocation(); winloc=pipe_tools.getWindowLocation(); } public void mouseDragged(MouseEvent arg0) { current=MouseInfo.getPointerInfo().getLocation(); pipe_tools.setWindowLocation(winloc.x+current.x-origin.x, winloc.y+current.y-origin.y); pipe_tools.setWindowComponents(); } } carmetal-4.3/src/eric/GUI/window/clock.java000066400000000000000000000013131417122252700205530ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import java.util.Calendar; /** * * @author erichake */ public class clock { private static long time; // public static void start(){ // time=Calendar.getInstance().getTimeInMillis(); // System.out.println("-- start --"); // } // public static void stop(){ // System.out.println((Calendar.getInstance().getTimeInMillis()-time)+" ms"); // } // public static void print(String message){ // long newtime=Calendar.getInstance().getTimeInMillis(); // System.out.println(message+" : "+(newtime-time)); // time=newtime; // } } carmetal-4.3/src/eric/GUI/window/comments.java000066400000000000000000000052621417122252700213140ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JZirkelCanvas; import eric.OS; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.geom.Point2D; import javax.swing.BorderFactory; /** * * @author erichake */ public class comments extends windowComponent { private comments_area Label; private static comments me; private static Image bottom=themes.getImage("tab_top.gif"); private static int H=themes.getIcon("tab_top.gif").getIconHeight(); private Point2D start=new Point2D.Float(0, 0); // private float[] dist = {0.0f, 0.2f, 0.4f, 0.6f, 0.8f, 1.0f}; // private Color[] colors = {Color.YELLOW, Color.ORANGE, Color.RED, Color.MAGENTA, Color.BLUE, Color.BLACK}; private float[] dist={0.0f, 1.0f}; // private Color[] colors={new Color(213, 232, 255), new Color(193, 212, 235)}; private Color[] colors={new Color(225, 239, 253), new Color(193, 212, 235)}; // private Color[] colors={new Color(225, 239, 253), new Color(146, 196, 247)}; private boolean JavaOlderThan6=OS.isJavaOlderThan(6); public void paintComponent(Graphics g) { Dimension d=getSize(); Graphics2D g2d=windowComponent.getGraphics2D(g); if (JavaOlderThan6) { g2d.setColor(colors[1]); g2d.fillRect(0, 0, d.width, d.height); } else { java.awt.LinearGradientPaint paint=new java.awt.LinearGradientPaint(start, new Point2D.Float(0, d.height), dist, colors); g2d.setPaint(paint); g2d.fillRect(0, 0, d.width, d.height); } g2d.setColor(Color.black); g2d.drawLine(0, d.height,d.width, d.height); super.paintComponent(g); } public void init() { setBounds(themes.getVerticalBorderWidth(), themes.getTitleBarHeight()+themes.getMenuBarHeight(), pipe_tools.getWindowSize().width-2*themes.getVerticalBorderWidth()-themes.getTotalRightPanelWidth(), themes.getCommentsHeight()); Label.init(); } public comments() { me=this; setLayout(null); Label=new comments_area(); add(Label); } public static void refresh() { me.init(); me.validate(); me.repaint(); } public static void setLabelText(String s) { me.Label.setLabelText(s); } @Override public void mousePressed(MouseEvent e) { Label.edit(); } } carmetal-4.3/src/eric/GUI/window/comments_area.java000066400000000000000000000165331417122252700223070ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Font; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.BorderFactory; import javax.swing.JLabel; import javax.swing.JScrollBar; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; import javax.swing.plaf.basic.BasicScrollBarUI; import rene.gui.Global; /** * * @author erichake */ public class comments_area extends JScrollPane { private static int margins=3; private static int marginLeft=0, marginTop=0, marginRight=0; private static int scrollBarWidth=15; private static Font commentFont=new Font("Verdana", 0, 14); private static Color commentColor=new Color(20, 20, 20); JLabel text_area; private JLabel inviteLabel; private static MouseAdapter ma=null; private String label=""; public comments_area() { super(); text_area=new JLabel("") { @Override public Dimension getPreferredSize() { Dimension superPreferred=super.getPreferredSize(); Container p=getParent(); return new Dimension(p.getBounds().width-2*margins-scrollBarWidth, superPreferred.height); } }; setViewportView(text_area); addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { edit(); } }); text_area.setOpaque(false); text_area.setVerticalTextPosition(SwingConstants.TOP); text_area.setHorizontalTextPosition(SwingConstants.LEFT); text_area.setHorizontalAlignment(SwingConstants.LEFT); text_area.setVerticalAlignment(SwingConstants.TOP); text_area.setFont(commentFont); text_area.setForeground(commentColor); text_area.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); setOpaque(false); this.getViewport().setOpaque(false); setBorder(BorderFactory.createEmptyBorder(margins, margins, margins, margins)); JScrollBar vsb=getVerticalScrollBar(); Dimension newsbsize=new Dimension(scrollBarWidth, 0); vsb.setUI(new BasicScrollBarUI()); vsb.setPreferredSize(newsbsize); vsb.setUnitIncrement(16); setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); inviteLabel=new JLabel(Global.Loc("comment.emptycomment")); inviteLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); inviteLabel.setVerticalTextPosition(SwingConstants.CENTER); inviteLabel.setHorizontalTextPosition(SwingConstants.CENTER); inviteLabel.setHorizontalAlignment(SwingConstants.CENTER); inviteLabel.setVerticalAlignment(SwingConstants.CENTER); inviteLabel.setOpaque(false); inviteLabel.setFont(commentFont); inviteLabel.setForeground(commentColor); text_area.add(inviteLabel); setInviteLabel(); ma=new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { final Component cp=e.getComponent(); SwingUtilities.invokeLater(new Runnable() { public void run() { cp.requestFocus(); } }); } }; } void init() { Container p=getParent(); if (p!=null) { setBounds(0, 0, p.getBounds().width, p.getBounds().height); inviteLabel.setBounds(0, 0, p.getBounds().width-2*margins-scrollBarWidth, p.getBounds().height-2*margins); setLabelText(label); } } public void setLabelText(String s) { Container p=getParent(); if (p!=null) { label=s; // I really don't know why, but it seems that the width is increased // by 30%. E.g. ask for 500px will give a 650px div... int pix=10*(p.getBounds().width-2*margins-scrollBarWidth)/13-1; text_area.setText("

"+s+"
"); setInviteLabel(); } } public String getLabelText() { return label; } public void setInviteLabel() { inviteLabel.setVisible(label.equals("")); } public void implementMouseAdapter() { final ContentPane pane=pipe_tools.getContent(); implementMouseAdapter(pane); } public void implementMouseAdapter(Container comp) { if (!(comp instanceof JLabel)) { comp.addMouseListener(ma); } for (int i=0; i"); // e.consume(); } else if (e.getKeyCode()==KeyEvent.VK_ESCAPE) { removeMouseAdapter(); com.remove(jtf); com.revalidate(); com.repaint(); } } public void keyReleased(final KeyEvent e) { pipe_tools.setComments(jtf.getText()); setLabelText(jtf.getText()); } }); jtf.addFocusListener(new FocusAdapter() { @Override public void focusLost(final FocusEvent e) { // setLabelText(jtf.getText()); setViewportView(text_area); com.remove(jtf); com.revalidate(); com.repaint(); com.addMouseListener(com); removeMouseAdapter(); revalidate(); validate(); repaint(); } }); setViewportView(jtf); SwingUtilities.invokeLater(new Runnable() { public void run() { jtf.requestFocus(); } }); } } carmetal-4.3/src/eric/GUI/window/myJMenuItem.java000066400000000000000000000024021417122252700216630ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.themes; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JMenuItem; import javax.swing.Icon; import eric.JSprogram.ScriptItem; /** * * @author erichake modified by PM Mazat */ public class myJMenuItem extends JMenuItem implements ActionListener { private boolean selected; public void action() { } public myJMenuItem(String s) { super(s); addActionListener(this); setFont(themes.TabMenusFont); } public myJMenuItem(String s, Icon i){ super(s, i); addActionListener(this); setFont(themes.TabMenusFont); } public myJMenuItem(ScriptItem si, Icon i){ super(si.getScriptName(), i); addActionListener(this); setFont(themes.TabMenusFont); } public void actionPerformed(ActionEvent e) { action(); } @Override public void setSelected(final boolean sel) { selected=sel; final int fontstyle=(selected)?1:0; setFont(new java.awt.Font(themes.TabMenusFont.getFontName(), fontstyle, themes.TabMenusFont.getSize())); repaint(); } } carmetal-4.3/src/eric/GUI/window/nav_left.java000066400000000000000000000041511417122252700212610ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.image.FilteredImageSource; import javax.swing.GrayFilter; import javax.swing.ImageIcon; /** * * @author erichake */ public class nav_left extends windowComponent { private static int marginW=0; private static int W=themes.getIcon("navleft.png").getIconWidth(); private static int H=themes.getIcon("navleft.png").getIconHeight(); private boolean over=false; private boolean active=false; private static boolean disable=false; private static nav_left myself=null; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (disable) { final GrayFilter filter=new GrayFilter(true, 40); Image disImage=createImage(new FilteredImageSource(themes.getImage("navleft.png").getSource(), filter)); ImageIcon myicn=new ImageIcon(disImage); g.drawImage(myicn.getImage(), 0, 0, d.width, d.height, this); return; } if (active) { g.drawImage(themes.getImage("navleftpushed.png"), 0, 0, d.width, d.height, this); }else{ g.drawImage(themes.getImage("navleft.png"), 0, 0, d.width, d.height, this); } } public void init() { setBounds(marginW+tab_control_panel.getMarginLeft(), tab_control_panel.getMarginTop(), W, H); } public nav_left() { myself=this; } public static void setDisabled(boolean b){ disable=b; if (myself!=null) myself.repaint(); } @Override public void mousePressed(MouseEvent e) { active=true; repaint(); tab_main_panel.setNextActiveBtn(-1); } @Override public void mouseReleased(MouseEvent e) { active=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/nav_menu1.java000066400000000000000000000043441417122252700213600ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.MouseEvent; import javax.swing.JPopupMenu; import javax.swing.SwingUtilities; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; /** * * @author erichake */ public class nav_menu1 extends windowComponent implements PopupMenuListener { private static int marginW=60; private static int W=themes.getIcon("navmenu1.png").getIconWidth(); private static int H=themes.getIcon("navmenu1.png").getIconHeight(); private boolean over=false; private boolean active=false; private static nav_menu1 myself=null; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (active) { g.drawImage(themes.getImage("navmenu1pushed.png"), 0, 0, d.width, d.height, this); } else { g.drawImage(themes.getImage("navmenu1.png"), 0, 0, d.width, d.height, this); } } public void init() { setBounds(marginW+tab_control_panel.getMarginLeft(), tab_control_panel.getMarginTop(), W, H); } public nav_menu1() { myself=this; } @Override public void mousePressed(MouseEvent e) { JPopupMenu popup=tab_main_panel.getTabPopup(); popup.removePopupMenuListener(this); active=true; popup.addPopupMenuListener(this); popup.show(this, (W-popup.getPreferredSize().width)/2, -2-popup.getPreferredSize().height); repaint(); } @Override public void mouseReleased(MouseEvent e) { } public void popupMenuWillBecomeVisible(PopupMenuEvent e) { removeMouseListener(this); } public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { active=false; repaint(); SwingUtilities.invokeLater(new Runnable() { public void run() { addMouseListener(myself); } }); } public void popupMenuCanceled(PopupMenuEvent e) { } } carmetal-4.3/src/eric/GUI/window/nav_menu2.java000066400000000000000000000043461417122252700213630ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import javax.swing.JPopupMenu; import javax.swing.SwingUtilities; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; /** * * @author erichake */ public class nav_menu2 extends windowComponent implements PopupMenuListener{ private static int marginW=95; private static int W=themes.getIcon("navmenu2.png").getIconWidth(); private static int H=themes.getIcon("navmenu2.png").getIconHeight(); private static Image offimage=themes.getImage("navmenu2.png"); private static Image onimage=themes.getImage("navmenu2pushed.png"); private boolean over=false; private boolean active=false; private static nav_menu2 myself=null; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (active) { g.drawImage(onimage, 0, 0, d.width, d.height,this); } else { g.drawImage(offimage, 0, 0, d.width, d.height,this); } } public void init() { setBounds(marginW+tab_control_panel.getMarginLeft(), tab_control_panel.getMarginTop(), W, H); } public nav_menu2() { myself=this; } @Override public void mousePressed(MouseEvent e) { JPopupMenu popup=tab_main_panel.getCtrlPopup(); popup.removePopupMenuListener(this); active=true; popup.addPopupMenuListener(this); popup.show(this, (W-popup.getPreferredSize().width)/2, -2-popup.getPreferredSize().height); repaint(); } public void popupMenuWillBecomeVisible(PopupMenuEvent e) { removeMouseListener(this); } public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { active=false; repaint(); SwingUtilities.invokeLater(new Runnable() { public void run() { addMouseListener(myself); } }); } public void popupMenuCanceled(PopupMenuEvent e) { } } carmetal-4.3/src/eric/GUI/window/nav_right.java000066400000000000000000000042011417122252700214400ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.image.FilteredImageSource; import javax.swing.GrayFilter; import javax.swing.ImageIcon; /** * * @author erichake */ public class nav_right extends windowComponent { private static int marginW=24; private static int W=themes.getIcon("navright.png").getIconWidth(); private static int H=themes.getIcon("navright.png").getIconHeight(); private boolean over=false; private boolean active=false; private static boolean disable=false; private static nav_right myself=null; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (disable) { final GrayFilter filter=new GrayFilter(true, 40); Image disImage=createImage(new FilteredImageSource(themes.getImage("navright.png").getSource(), filter)); ImageIcon myicn=new ImageIcon(disImage); g.drawImage(myicn.getImage(), 0, 0, d.width, d.height, this); return; } if (active) { g.drawImage(themes.getImage("navrightpushed.png"), 0, 0, d.width, d.height, this); } else { g.drawImage(themes.getImage("navright.png"), 0, 0, d.width, d.height, this); } } public void init() { setBounds(marginW+tab_control_panel.getMarginLeft(), tab_control_panel.getMarginTop(), W, H); } public nav_right() { myself=this; } public static void setDisabled(boolean b) { disable=b; if (myself!=null) { myself.repaint(); } } @Override public void mousePressed(MouseEvent e) { active=true; repaint(); tab_main_panel.setNextActiveBtn(1); } @Override public void mouseReleased(MouseEvent e) { active=false; repaint(); } } carmetal-4.3/src/eric/GUI/window/tab_bottom.java000066400000000000000000000041601417122252700216150ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Point; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ public class tab_bottom extends windowComponent { private Point winloc; private static JLabel status=new JLabel(); private int margin=10; public void paintComponent(Graphics g) { Dimension d=getSize(); g.drawImage(themes.getImage("tab_bottom.gif"), 0, 0, d.width, d.height, this); // g.setColor(Color.black); // g.drawRect(0, Themes.getTabTopBorderHeight(), d.width-1, d.height-1-Themes.getTabTopBorderHeight()); super.paintComponent(g); } public void init() { // win=StaticTools.getMainWindow(this); setBounds(themes.getVerticalBorderWidth()+themes.getLeftPanelWidth()+themes.getVerticalPanelBorderWidth(), pipe_tools.getWindowSize().height-themes.getMainTabPanelHeight()-themes.getStatusBarHeight(), pipe_tools.getWindowSize().width-2*themes.getVerticalBorderWidth()-themes.getLeftPanelWidth()-themes.getVerticalPanelBorderWidth()-themes.getTotalRightPanelWidth(), themes.getStatusBarHeight()); PaletteManager.fixsize(status, getBounds().width, getBounds().height); } public tab_bottom() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setOpaque(false); status.setForeground(new Color(70, 70, 70)); status.setFont(new Font(Global.GlobalFont, 0, 13)); status.setHorizontalAlignment(JLabel.CENTER); status.setVerticalAlignment(JLabel.CENTER); add(status); } public static void showStatus(String txt) { status.setText(txt); } public static String getStatus() { return status.getText(); } } carmetal-4.3/src/eric/GUI/window/tab_btn.java000066400000000000000000000164301417122252700210770ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.GUI.window; import eric.GUI.pipe_tools; import eric.GUI.windowComponent; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Dimension; import java.awt.Event; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Point; import java.awt.event.MouseEvent; import javax.swing.JPopupMenu; import javax.swing.SwingUtilities; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; /** * * @author erichake */ public class tab_btn extends windowComponent implements Comparable, PopupMenuListener { private tab_canvas_panel panel; private Point origin; private Point current; private Point btnloc; private boolean active=true; private boolean over=false; private tab_close_btn CloseBtn; private tab_btn_label Label; private String Tooltip=""; private static Image on_btn_right=themes.getImage("tab_btn_on_right_border.gif"); private static Image on_btn_left=themes.getImage("tab_btn_on_left_border.gif"); private static Image on_btn=themes.getImage("tab_btn_on.gif"); private static Image off_btn_right=themes.getImage("tab_btn_off_right_border.gif"); private static Image off_btn_left=themes.getImage("tab_btn_off_left_border.gif"); private static Image off_btn=themes.getImage("tab_btn_off.gif"); private static Image off_over_btn_right=themes.getImage("tab_btn_off_over_right_border.gif"); private static Image off_over_btn_left=themes.getImage("tab_btn_off_over_left_border.gif"); private static Image off_over_btn=themes.getImage("tab_btn_off_over.gif"); private static Image file_icon=themes.getImage("tab_file_icon.png"); private boolean Changed=false; public void paintComponent(Graphics g) { Dimension d=getSize(); final Graphics2D g2=windowComponent.getGraphics2D(g); g2.drawImage(getBackgroundImage(), 0, 0, d.width, d.height, this); g2.drawImage(getLeftBorder(), 0, 0, themes.getTabCornerWidth(), d.height, this); g2.drawImage(getRightBorder(), d.width-themes.getTabCornerWidth(), 0, themes.getTabCornerWidth(), d.height, this); if (!JZirkelCanvas.isWorkBook()) { g2.drawImage(file_icon, 4, 2, this); } // g2.setColor(Color.darkGray); // g2.drawLine(0, d.height-1, d.width-1, d.height-1); // g2.drawLine(d.width-1, d.height-1, d.width-1, 0); // if (!active) { // g2.drawLine(d.width-1, 0, 0, 0); // } } public tab_btn(String label, String tooltip) { super(); label=pipe_tools.processTabName(label); Label=new tab_btn_label(label); Tooltip=tooltip; setLayout(null); CloseBtn=new tab_close_btn(); panel=new tab_canvas_panel(this); add(CloseBtn); add(Label); // setToolTipText(tooltip); setOpaque(true); } public tab_btn(String label) { this(label, label); } public void setChanged(boolean b) { Changed=b; Label.setChanged(b); repaint(); } public void setActive(boolean act) { active=act; if (active) { ContentPane.setCurrentPanel(panel); } } public boolean getActive() { return active; } public void setOver(boolean ov) { over=ov; } public tab_close_btn getTabCloseBtn() { return CloseBtn; } public tab_btn_label getTabLabel() { return Label; } public tab_canvas_panel getPanel() { return panel; } public void setTabName(String name, String tooltip) { name=pipe_tools.processTabName(name); Label.setLabelText(name); setToolTip(tooltip); } public void setToolTip(String tooltip){ Tooltip = tooltip; setToolTipText(Tooltip); } public String getTabName() { return Label.getLabelText(); } public void editName() { if (pipe_tools.isTabEditAccepted()) { Label.edit(); } } public void init() { setToolTipText(Tooltip); getTabCloseBtn().init(); getTabLabel().init(); getPanel().init(); } private Image getRightBorder(){ if (active) { return tab_btn.on_btn_right; } if (over) { return tab_btn.off_over_btn_right; } return tab_btn.off_btn_right; } private Image getLeftBorder(){ if (active) { return tab_btn.on_btn_left; } if (over) { return tab_btn.off_over_btn_left; } return tab_btn.off_btn_left; } private Image getBackgroundImage() { if (active) { return tab_btn.on_btn; } if (over) { return tab_btn.off_over_btn; } return tab_btn.off_btn; } @Override public Point getToolTipLocation(MouseEvent event) { return new Point(0, getSize().height+2); } @Override public void mousePressed(MouseEvent e) { origin=pipe_tools.getWindow().getMouseLoc(); btnloc=getLocation(); tab_main_panel.setActiveBtn(this); repaint(); // pipe_tools.onTabActivate(); // Right-clic : if (e.getModifiers()==Event.META_MASK) { JPopupMenu popup=tab_main_panel.getCtrlPopup(); popup.removePopupMenuListener(this); popup.addPopupMenuListener(this); popup.show(this, (getSize().width-popup.getPreferredSize().width)/2, -2-popup.getPreferredSize().height); repaint(); } } @Override public void mouseEntered(MouseEvent e) { tab_main_panel.setOverBtn(this); repaint(); } @Override public void mouseExited(MouseEvent e) { // Check whether the mouse cursor is still over the panel // if (getMousePosition(true)!=null) { // return; // } over=false; repaint(); } @Override public void mouseReleased(MouseEvent e) { tab_main_panel.reorderBTNS(null); } @Override public void mouseDragged(MouseEvent e) { getParent().setComponentZOrder(this, 0); current=pipe_tools.getWindow().getMouseLoc(); if (current==null) { return; } setLocation(btnloc.x+current.x-origin.x, btnloc.y); tab_main_panel.reorderBTNS(this); } @Override public void mouseMoved(MouseEvent e) { tab_main_panel.setOverBtn(this); repaint(); } public int compareTo(tab_btn o) { int middle=(2*getBounds().x+getBounds().width)/2; if ((middle>o.getBounds().x)) { return 1; } if ((middle0)) { askedOffset=0; } else { if ((notches>0)&&(Rect_width*BTNS.size()+askedOffset<=getSize().width)) { askedOffset=getSize().width-Rect_width*(BTNS.size()); } } offset=askedOffset; deOverAll(); initBTNS(null); } /***************/ /* STATIC PART */ /***************/ private static int Rect_width=150; private static int offset=0; private static int leftmargin=20; private static tab_main_panel me=null; private static ArrayList BTNS=new ArrayList(); private static JPopupMenu tab_popup=null, ctrl_popup=null; public static tab_main_panel getme() { return me; } public static void removeAllBtns(ContentPane content) { if (content!=null) { for (int i=0; i1) { int i=getActiveBtnPos(); removeBtn(btn); if (i1) { me.remove(btn); BTNS.remove(btn); initBTNS(null); } } public static void addBtnAndSelect(String label) { tab_btn btn=new tab_btn(label); int i=getActiveBtnPos()+1; if (i==BTNS.size()) { me.add(btn); BTNS.add(btn); } else { me.add(btn, i); BTNS.add(i, btn); } initBTNS(null); setActiveBtn(btn); showActiveBtn(); btn.editName(); } public static tab_btn addBtn(String name) { tab_btn btn=new tab_btn(name, name); me.add(btn); BTNS.add(btn); return btn; } public static void createTabAndCanvas(String label, String tooltip) { tab_btn btn=new tab_btn(label, tooltip); me.add(btn); BTNS.add(btn); setActiveBtn(btn); showActiveBtn(); } public static void createTabAndCanvas(String label) { createTabAndCanvas(label, label); } // j is the offset (1 for the next to the right, -1 to the left) public static void setNextActiveBtn(int j) { int i=getActiveBtnPos(); try { setActiveBtn(BTNS.get(i+j)); showActiveBtn(); } catch (Exception e) { } initNAVbtns(); } public static void setCurrentTabName(String name, String tooltip) { getActiveBtn().setTabName(name, tooltip); } public static void setActiveBtn(int k) { setActiveBtn(BTNS.get(k)); } public static void setActiveBtn(final tab_btn btn) { JZirkelCanvas.stopAllScripts(); btn.setActive(true); for (int i=0; i0) { return BTNS.get(BTNS.size()-1); } else { return null; } } public static void currentTabHaveChanged(boolean b) { getActiveBtn().setChanged(b); } public static void allTabsHaveChanged(boolean b) { for (int i=0; ime.getSize().width); if ((btn.getBounds().x+btn.getSize().width>me.getSize().width)) { offset-=btn.getBounds().x+btn.getSize().width-me.getSize().width; } else if (btn.getBounds().x<0) { offset+=-btn.getBounds().x; } initBTNS(null); } public static void setOverBtn(tab_btn btn) { btn.setOver(true); for (int i=0; ime.getSize().width); boolean b2=(btn.getBounds().x. */ package eric; import java.lang.reflect.Method; public class JBrowserLauncher { final static String[] hex = { "%00", "%01", "%02", "%03", "%04", "%05", "%06", "%07", "%08", "%09", "%0a", "%0b", "%0c", "%0d", "%0e", "%0f", "%10", "%11", "%12", "%13", "%14", "%15", "%16", "%17", "%18", "%19", "%1a", "%1b", "%1c", "%1d", "%1e", "%1f", "%20", "%21", "%22", "%23", "%24", "%25", "%26", "%27", "%28", "%29", "%2a", "%2b", "%2c", "%2d", "%2e", "%2f", "%30", "%31", "%32", "%33", "%34", "%35", "%36", "%37", "%38", "%39", "%3a", "%3b", "%3c", "%3d", "%3e", "%3f", "%40", "%41", "%42", "%43", "%44", "%45", "%46", "%47", "%48", "%49", "%4a", "%4b", "%4c", "%4d", "%4e", "%4f", "%50", "%51", "%52", "%53", "%54", "%55", "%56", "%57", "%58", "%59", "%5a", "%5b", "%5c", "%5d", "%5e", "%5f", "%60", "%61", "%62", "%63", "%64", "%65", "%66", "%67", "%68", "%69", "%6a", "%6b", "%6c", "%6d", "%6e", "%6f", "%70", "%71", "%72", "%73", "%74", "%75", "%76", "%77", "%78", "%79", "%7a", "%7b", "%7c", "%7d", "%7e", "%7f", "%80", "%81", "%82", "%83", "%84", "%85", "%86", "%87", "%88", "%89", "%8a", "%8b", "%8c", "%8d", "%8e", "%8f", "%90", "%91", "%92", "%93", "%94", "%95", "%96", "%97", "%98", "%99", "%9a", "%9b", "%9c", "%9d", "%9e", "%9f", "%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%a6", "%a7", "%a8", "%a9", "%aa", "%ab", "%ac", "%ad", "%ae", "%af", "%b0", "%b1", "%b2", "%b3", "%b4", "%b5", "%b6", "%b7", "%b8", "%b9", "%ba", "%bb", "%bc", "%bd", "%be", "%bf", "%c0", "%c1", "%c2", "%c3", "%c4", "%c5", "%c6", "%c7", "%c8", "%c9", "%ca", "%cb", "%cc", "%cd", "%ce", "%cf", "%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7", "%d8", "%d9", "%da", "%db", "%dc", "%dd", "%de", "%df", "%e0", "%e1", "%e2", "%e3", "%e4", "%e5", "%e6", "%e7", "%e8", "%e9", "%ea", "%eb", "%ec", "%ed", "%ee", "%ef", "%f0", "%f1", "%f2", "%f3", "%f4", "%f5", "%f6", "%f7", "%f8", "%f9", "%fa", "%fb", "%fc", "%fd", "%fe", "%ff" }; public static String encode(final String s) { final StringBuffer sbuf = new StringBuffer(); final int len = s.length(); for (int i = 0; i < len; i++) { final int ch = s.charAt(i); if ('A' <= ch && ch <= 'Z') { // 'A'..'Z' sbuf.append((char) ch); } else if ('a' <= ch && ch <= 'z') { // 'a'..'z' sbuf.append((char) ch); } else if ('0' <= ch && ch <= '9') { // '0'..'9' sbuf.append((char) ch); } else if (ch == '-' || ch == '_' // unreserved || ch == '.' || ch == '!' || ch == '~' || ch == '*' || ch == '\'' || ch == '(' || ch == ')' || ch == '/' || ch == ':' || ch == '\\') { sbuf.append((char) ch); } else if (ch <= 0x007f) { // other ASCII sbuf.append(hex[ch]); } else if (ch <= 0x07FF) { // non-ASCII <= 0x7FF sbuf.append(hex[0xc0 | (ch >> 6)]); sbuf.append(hex[0x80 | (ch & 0x3F)]); } else { // 0x7FF < ch <= 0xFFFF sbuf.append(hex[0xe0 | (ch >> 12)]); sbuf.append(hex[0x80 | ((ch >> 6) & 0x3F)]); sbuf.append(hex[0x80 | (ch & 0x3F)]); } } return sbuf.toString(); } public static void openURL(String url) { try { if (OS.isMac()) { final Class fileMgr = Class .forName("com.apple.eio.FileManager"); final Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] { String.class }); if (!(url.startsWith("http://"))) url = "file://" + encode(url); openURL.invoke(null, new Object[] { url }); } else if (OS.isWindows()) Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + url); else { // assume Unix or Linux final String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" }; String browser = null; for (int count = 0; count < browsers.length && browser == null; count++) if (Runtime.getRuntime().exec( new String[] { "which", browsers[count] }) .waitFor() == 0) browser = browsers[count]; if (browser == null) throw new Exception("Could not find web browser"); else Runtime.getRuntime().exec(new String[] { browser, url }); } } catch (final Exception e) { } } }carmetal-4.3/src/eric/JCharacterPalette.java000066400000000000000000000267571417122252700210750ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import eric.GUI.palette.PaletteManager; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JDialog; import eric.JEricPanel; import javax.swing.JSeparator; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ class JCharacterPalette extends JDialog implements MouseListener { /** * */ static int GENERICCODE=10; JEricPanel Content, TabZone, ButtonZone; JButton LBL; JZirkelCanvas JZF; int Linemax=10; int Btnsize=18; int Tabbtnsize=30; public JCharacterPalette(final JZirkelCanvas jzf, final JButton lbl) { // super(jzf.JPM.MainPalette,true); super(); JZF=jzf; LBL=lbl; JTabBtn.Btns.clear(); setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); setTitle("Caracter Palette"); this.setUndecorated(true); Content=new JContent(Tabbtnsize); // Content.setLayout(new BoxLayout(Content,BoxLayout.X_AXIS)); // Content.setBackground(new Color(50,50,50)); // Content.setBorder(BorderFactory.createLineBorder(new // Color(0,0,0),1)); this.setContentPane(Content); this.setAlwaysOnTop(true); this.toFront(); ButtonZone=getnewcol(); TabZone=getnewcol(); TabZone.setOpaque(false); initJTab(); initJButtons(); Content.add(TabZone); Content.add(ButtonZone); this.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { JZF.getPointLabel().setEnabledJLabel(true); setVisible(false); dispose(); } }); this.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowDeactivated(final java.awt.event.WindowEvent evt) { JZF.getPointLabel().setEnabledJLabel(true); setVisible(false); dispose(); } }); this.pack(); // JPointLabel.fixsize(Content,Content.getSize().width+1,Content.getSize().height+1); // JPointLabel.fixsize(titles,this.getSize().width,20); // this.pack(); final int x=LBL.getLocationOnScreen().x+LBL.getSize().width-this.getSize().width; final int y=LBL.getLocationOnScreen().y+LBL.getSize().height; this.setLocation(x, y); JZF.getPointLabel().setEnabledJLabel(false); this.setVisible(true); } private JEricPanel initJTab() { JEricPanel col=null; JButton mybtn=null; col=new JEricPanel(); col.setLayout(new BoxLayout(col, BoxLayout.Y_AXIS)); col.setAlignmentY(0f); mybtn=new JTabBtn(this, 0, "D"); JPointName.fixsize(mybtn, Tabbtnsize, Tabbtnsize); col.add(mybtn); mybtn=new JTabBtn(this, 1, "d"); JPointName.fixsize(mybtn, Tabbtnsize, Tabbtnsize); col.add(mybtn); mybtn=new JTabBtn(this, 2, "\u0394"); JPointName.fixsize(mybtn, Tabbtnsize, Tabbtnsize); col.add(mybtn); mybtn=new JTabBtn(this, 3, "\u03B4"); JPointName.fixsize(mybtn, Tabbtnsize, Tabbtnsize); col.add(mybtn); mybtn=new JTabBtn(this, GENERICCODE, "P1"); JPointName.fixsize(mybtn, Tabbtnsize, Tabbtnsize); col.add(mybtn); col.setOpaque(false); JTabBtn.setSelectedJTitle(JZF.getPointLabel().getCurrentLetterSetCode()); TabZone.add(col); // JPointLabel.fixsize(TabZone,Tabwidth,50); return col; } private JButton getJButton(final String s) { final JButton mybtn=new JButton(s); mybtn.setBorder(BorderFactory.createEmptyBorder()); mybtn.setBorderPainted(false); mybtn.setFocusPainted(false); mybtn.setFocusable(false); mybtn.setBackground(new Color(228, 222, 255)); mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); if (JZF.getPointLabel().isLetterAccepted(mybtn.getText())) { mybtn.addMouseListener(this); } else { mybtn.setEnabled(false); mybtn.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { JZF.getPointLabel().setEnabledJLabel(true); setVisible(false); dispose(); } }); } mybtn.setFont(new java.awt.Font(Global.GlobalFont, 1, 11)); mybtn.setForeground(new Color(20, 20, 20)); JPointName.fixsize(mybtn, 18, 18); return mybtn; } private static JEricPanel getnewline() { final JEricPanel line=new JEricPanel(); line.setLayout(new BoxLayout(line, BoxLayout.X_AXIS)); line.setAlignmentX(0f); line.setOpaque(false); return line; } private static JEricPanel getnewcol() { final JEricPanel col=new JEricPanel(); col.setLayout(new BoxLayout(col, BoxLayout.Y_AXIS)); col.setAlignmentY(0f); col.setOpaque(true); col.setBackground(new Color(250, 250, 250)); return col; } void initJButtons() { JEricPanel line=null; final String letters=JZF.getPointLabel().getCurrentLetterSet(); ButtonZone.removeAll(); for (int i=0; i(); int SetCode=0; JCharacterPalette JCP; public JTabBtn(final JCharacterPalette jcp, final int code, final String s) { SetCode=code; JCP=jcp; setBorder(BorderFactory.createEmptyBorder()); setBorderPainted(false); setFocusPainted(false); setFocusable(false); // setBackground(new Color(240,240,240)); setOpaque(false); setContentAreaFilled(false); setHorizontalAlignment(SwingConstants.CENTER); setFont(new java.awt.Font(Global.GlobalFont, 1, 13)); addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mouseReleased(final java.awt.event.MouseEvent evt) { if (SetCode==JCharacterPalette.GENERICCODE) { Global.setParameter("options.point.shownames", false); JCP.JZF.getPointLabel().getBetterName(null, true); JCP.dispose(); return; } JCP.JZF.getPointLabel().setLetterSet(SetCode); JCP.initJButtons(); disableAllJTitles(); setEnabled(true); JCP.pack(); JCP.repaint(); } }); setText(s); Btns.add(this); } static void disableAllJTitles() { for (int i=0; i. */ package eric; import eric.GUI.palette.JIcon; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.Stroke; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JComponent; import eric.JEricPanel; import net.java.dev.colorchooser.ColorChooser; import net.java.dev.colorchooser.Palette; /** * * @author erichake */ public class JColorPicker extends JButton { /** * */ ColorChooser CC=null; int D, IN, STRK; public static Color DefaultC=Color.GRAY; Color CurrentC=DefaultC; boolean isSelected=false, isEntered=false, isDisabled=false; Vector group; int[] x={0, 10, 0}; int[] y={0, 10, 10}; @Override public void paintComponent(final java.awt.Graphics g) { final Graphics2D g2=(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); AlphaComposite ac; if (isDisabled) { ac=AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2f); g2.setComposite(ac); g2.setColor(new Color(100, 100, 100)); g2.fillRect(IN, IN, D-2*IN, D-2*IN); return; } if (isSelected) { ac=AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 100)); g2.fillRect(0, 0, D, D); } if (isEntered) { ac=AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.1f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); final Stroke stroke=new BasicStroke(3f); g2.setStroke(stroke); g2.drawRect(2, 2, D-4, D-4); } g2.setColor(CurrentC); g2.setComposite(AlphaComposite.Src); g2.setStroke(new BasicStroke(STRK, BasicStroke.CAP_SQUARE, 0)); g2.clearRect(IN, IN, D-2*IN, D-2*IN); ac=AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.4f); g2.setComposite(ac); g2.fillRect(IN, IN, D-2*IN, D-2*IN); g2.setComposite(AlphaComposite.Src); g2.drawRect(IN, IN, D-2*IN, D-2*IN); final int sze=6; x[0]=D-sze; y[0]=D; x[1]=D; y[1]=D-sze; x[2]=D; y[2]=D; g2.setComposite(AlphaComposite.SrcOver); g2.setColor(new Color(50, 50, 50)); g2.fillPolygon(x, y, 3); } public JColorPicker(final int d, final int inset, final int stroke, final Vector mygroup) { super(); group=mygroup; if (group!=null) { group.add(this); } D=d; IN=inset; STRK=stroke; setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS)); fixsize(this, d, d); setBorder(BorderFactory.createEmptyBorder()); setContentAreaFilled(false); setFocusable(false); CC=new ColorChooser() { /** * */ @Override public void paintComponent(final java.awt.Graphics g) { } }; CC.setBorder(BorderFactory.createEmptyBorder()); CC.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent arg0) { final Color mc=CC.getColor(); CurrentC=new Color(mc.getRed(), mc.getGreen(), mc.getBlue()); doChange(); } }); CC.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseDragged(final MouseEvent e) { final Color mc=CC.getTransientColor(); if (mc!=null) { CurrentC=new Color(mc.getRed(), mc.getGreen(), mc.getBlue()); doChange(); } } }); CC.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(final MouseEvent arg0) { } @Override public void mousePressed(final MouseEvent arg0) { Select(); afterSelect(); } @Override public void mouseEntered(final MouseEvent arg0) { setPalettes(); isEntered=true; repaint(); } @Override public void mouseExited(final MouseEvent arg0) { isEntered=false; repaint(); } }); CC.setToolTipText(""); this.add(CC); } public void setDisabled(final boolean b) { isDisabled=b; if (b) { this.remove(CC); } else { this.add(CC); } } @Override public String getName() { return "scolor"; } public void setPalettes() { } public void setUsedColors(final Vector V) { Color[] cols; String[] strs; if (V.size()==0) { cols=new Color[1]; strs=new String[1]; cols[0]=Color.WHITE; strs[0]=""; } else { cols=new Color[V.size()]; strs=new String[V.size()]; for (int i=0; i. */ package eric; import java.awt.Color; /** * * @author erichake */ public class JColors { public Color C; public String S; public JColors(final Color c, final String s) { C = c; S = s; } } carmetal-4.3/src/eric/JEricPanel.java000066400000000000000000000006061417122252700175050ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric; import java.awt.LayoutManager; /** * * @author erichake */ public class JEricPanel extends javax.swing.JPanel{ public JEricPanel(LayoutManager lm){ super(lm); } public JEricPanel(){ super(); JLogoWindow.progress("JPanel"); } } carmetal-4.3/src/eric/JFileFilter.java000066400000000000000000000032461417122252700176730ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.io.File; import javax.swing.filechooser.FileFilter; public class JFileFilter extends FileFilter { // Description et extension acceptée par le filtre public String description; public String[] extensions; // Constructeur à partir de la description et de l'extension acceptée public JFileFilter(final String description, final String ext) { if (description == null || ext == null) { throw new NullPointerException( "La description (ou extension) ne peut être null."); } this.description = description; this.extensions = ext.split(","); } // Implémentation de FileFilter @Override public boolean accept(final File file) { if (file.isDirectory()) { return true; } final String nomFichier = file.getName().toLowerCase(); for (int i=0;i. */ package eric; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.window.LeftPanel; import eric.GUI.window.Open_left_panel_btn; import eric.GUI.window.Open_middle_panel_btn; import eric.GUI.window.Open_right_panel_btn; import eric.GUI.window.RightPanel; import eric.JSprogram.ScriptItem; import eric.JSprogram.ScriptPanel; import eric.bar.JPropertiesBar; import eric.macros.CreateMacroDialog; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.net.URL; import javax.swing.AbstractAction; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPopupMenu; import javax.swing.KeyStroke; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; import rene.dialogs.Question; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.tools.JSmacroTool; public class JGeneralMenuBar extends JEricPanel { private static final int MenuTextSize = 12; private static JGeneralMenuBar me; myJMenuBar menubar = new myJMenuBar(); private myJMenu MacrosMenu, ObjectsMenu, JSMenu; JButton historybutton; myJMenuItem hiddenitem, griditem, restrictpaletteitem, editpaletteitem, macrositem, historyitem, helpitem, propertiesitem, smallitem, mediumitem, largeitem, definejobitem, commentitem, leftpanelitem, paletteitem; private static pm.Server.ServerControlPanel scp = null; private pm.Client.ClientNetworkTools cnt = null; @Override public void paintComponent(final java.awt.Graphics g) { // super.paintComponent(g); final java.awt.Dimension d = this.getSize(); g.drawImage(themes.getImage("menubar.gif"), 0, 0, d.width, d.height, this); } public JGeneralMenuBar() { me = this; this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS)); MacrosMenu = new myJMenu(Loc("macros")); ObjectsMenu = new myJMenu(Global.Loc("palette.construction")); JSMenu = new myJMenu(Loc("js")); JSMenu.addMenuListener(new MenuListener() { @Override public void menuSelected(MenuEvent e) { InitJSMenu(); } @Override public void menuDeselected(MenuEvent e) { } @Override public void menuCanceled(MenuEvent e) { } }); init(); InitObjectsMenu(); } public void paintImmediately() { paintImmediately(0, 0, getWidth(), getHeight()); } class myJMenuBar extends JMenuBar { @Override public void paintComponents(final Graphics g) { } myJMenuBar() { super(); setUI(null); } void addMenu(final JMenu mymen) { if (mymen.getItemCount() > 0) { this.add(mymen); } } } class myJMenu extends JMenu { @Override public void paintComponents(final Graphics g) { } myJMenu(final String menuname) { this.setText(menuname); this.setFont(new java.awt.Font(Global.GlobalFont, 0, 12)); this.setForeground(new Color(40, 40, 40)); this.setOpaque(false); } myJMenu(final String menuname, final boolean isSubmenu) { this(menuname); if (isSubmenu) { setOpaque(true); setIcon(new myImageIcon(getClass().getResource( "/eric/GUI/icons/palette/null.png"), null)); } } // Constructor for the Objects submenus : myJMenu(final String menuname, final int icnw) { this(menuname); setOpaque(true); final myImageIcon myicn = new myImageIcon(getClass().getResource( "/eric/GUI/icons/palette/null.png"), null); myicn.setIcnMargin(0); myicn.setIconWidth(icnw); setIcon(myicn); } void addSep() { // if (this.getItemCount()>0) this.addSeparator(); this.add(new mySeparator()); } void addI(final String mnu, final String icn, final int a1, final int a2, final myJMenuItem item) { item.setNames(Loc(mnu), icn); if (a1 != 0) { item.setAccelerator(KeyStroke.getKeyStroke(a1, a2)); pipe_tools.getWindow().getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(a1, a2), mnu); pipe_tools.getWindow().getRootPane().getActionMap().put(mnu, new AbstractAction() { @Override public void actionPerformed(final ActionEvent arg0) { item.action(); } }); } this.add(item); } void addI(final String mnu, final String icn, final int a1, final int a2, final boolean sel, final myJMenuItem item) { item.setNames(Loc(mnu), icn); item.setSelected(sel); if (a1 != 0) { item.setAccelerator(KeyStroke.getKeyStroke(a1, a2)); pipe_tools.getWindow().getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(a1, a2), mnu); pipe_tools.getWindow().getRootPane().getActionMap().put(mnu, new AbstractAction() { @Override public void actionPerformed(final ActionEvent arg0) { item.action(); } }); } this.add(item); } // only for objects submenus : void addI(final String icn, final myJMenuItem item) { final String mnuName = PaletteManager.ToolTip(icn); item.setNames(mnuName, icn); item.setText("" + item.getText().replaceAll("\\+", "
") + ""); if (!(item.myimage == null)) { item.myimage.setIconWidth(28); item.myimage.setIconHeight(28); } this.add(item); } // only for language submenu : void addI(final String lang, final String country, final myJMenuItem item) { final String suffix = (country.equals("")) ? lang : lang + "_" + country; final String icn = "lg_" + suffix; final boolean good = Global.isLanguage(lang, country); if ((good) && (!(icn.equals("")))) { this.setIcon(new ImageIcon(getClass().getResource( "/eric/GUI/icons/palette/" + icn + ".png"))); } addI("language." + suffix, icn, 0, 0, item); item.setEnabled(!good); } class mySeparator extends JEricPanel { @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d = this.getSize(); g.drawImage(themes.getImage("sep.png"), 2, 0, d.width - 4, 12, this); } mySeparator() { this.setOpaque(false); } } } class mySimpleJMenuItem extends JMenuItem { int ID = 0; mySimpleJMenuItem(final String name, final int i) { super(name); ID = i; this.setOpaque(true); this.setFont(new java.awt.Font(Global.GlobalFont, 0, MenuTextSize)); this.addActionListener(new ActionListener() { @Override public void actionPerformed(final ActionEvent event) { action(); } }); } void action() { } } public class myJMenuItem extends JMenuItem { String ICname; boolean selected = false; myImageIcon myimage = null; myJMenuItem() { this.setOpaque(true); this.setFont(new java.awt.Font(Global.GlobalFont, 0, MenuTextSize)); this.addActionListener(new ActionListener() { @Override public void actionPerformed(final ActionEvent event) { ZirkelCanvas ZC = JZirkelCanvas.getCurrentZC(); if (ZC != null && ZC.getTool() instanceof JSmacroTool) { ((JSmacroTool) ZC.getTool()).invalidate(ZC); } action(); } }); this.setIcon(themes.getIcon("null.png")); // this.setIconTextGap(0); } myJMenuItem(final String itemname, final String iconname) { this(); setNames(itemname, iconname); } @Override public void setSelected(final boolean sel) { selected = sel; final int fontstyle = (selected) ? 1 : 0; this.setFont(new java.awt.Font(Global.GlobalFont, fontstyle, MenuTextSize)); } @Override public boolean isSelected() { return selected; } void setNames(final String itemname, final String iconname) { ICname = iconname; setText(itemname); setIcn(iconname); // setPreferredSize(new Dimension(getPreferredSize().width+50,22)); } void setIcn(String iconname) { if (iconname.equals("")) { iconname = "null"; } URL myurl = getClass().getResource( "/eric/GUI/icons/palette/" + iconname + ".png"); if (myurl == null) { myurl = getClass().getResource( "/eric/GUI/icons/palette/" + iconname + ".gif"); } if (myurl == null) { myurl = getClass().getResource( "/eric/GUI/icons/jswindow/" + iconname + ".png"); } myimage = new myImageIcon(myurl, this); setIcon(myimage); } void action() { PaletteManager.ClicOn(ICname); } } class myImageIcon extends ImageIcon { int IcnHeight = 22; int IcnWidth = 24; int IcnMargin = 6; myJMenuItem JM; @Override public void paintIcon(final Component c, final Graphics g, final int x, final int y) { final Graphics2D g2 = (Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); if ((!(JM == null)) && (JM.isSelected())) { final ImageIcon mysel = new ImageIcon(getClass().getResource( "/eric/GUI/icons/palette/selmark.png")); g2.drawImage(mysel.getImage(), 3, 0, 8, IcnWidth, JM); } g2.drawImage(getImage(), IcnMargin, 0, IcnWidth, IcnWidth, JM); } public void setIcnMargin(final int i) { IcnMargin = i; } public void setIconHeight(final int i) { IcnHeight = i; } public void setIconWidth(final int i) { IcnWidth = i; } @Override public int getIconHeight() { return IcnHeight; } @Override public int getIconWidth() { return IcnWidth; } myImageIcon(final URL myurl, final myJMenuItem jm) { super(myurl); JM = jm; } } private String Loc(final String s) { String loc = Global.Loc("menu." + s); if (loc == null) { loc = Global.Loc(s); } if (loc == null) { loc = s; } return loc; } public void InitMacrosMenu() { if (MacrosMenu != null) { MacrosMenu.removeAll(); MacrosMenu.addI("palette.info.newmacro", "newmacro", 0, 0, new myJMenuItem() { @Override public void action() { new CreateMacroDialog(JZirkelCanvas.getNewMacroPanel()); JZirkelCanvas.ActualiseMacroPanel(); } }); MacrosMenu.addSep(); } } public static void s_InitMacrosMenu() { if (me != null) { me.InitMacrosMenu(); } } public static void addMacrosMenu(JMenuItem item) { if ((me != null) && (me.MacrosMenu != null)) { me.MacrosMenu.add(item); } } public static void s_InitJSMenu() { if (me != null) { me.InitJSMenu(); } } public void InitJSMenu() { JSMenu.removeAll(); final ZirkelCanvas ZC = JZirkelCanvas.getCurrentZC(); if (ZC == null) { return; } final ScriptPanel panel = ZC.getScriptsPanel(); if (panel == null) { return; } myJMenuItem item = new myJMenuItem() { @Override void action() { panel.onlyRemoveScriptsManagerPanel(); panel.Restore(); } }; JSMenu.addI("JSmenu.cancel", "", 0, 0, item); item.setEnabled(panel.isBackup()); item.setIcon(themes.resizeExistingIcon("/eric/GUI/icons/jswindow/restore.png", 16, 16)); JSMenu.addSep(); JSMenu.addI("js.newscriptinconstruction", "", 0, 0, item = new myJMenuItem() { @Override void action() { panel.newScript(); } }); JSMenu.addSep(); for (final ScriptItem myscriptitem : panel.getScripts()) { item = new myJMenuItem() { @Override public void action() { panel.onlyRemoveScriptsManagerPanel(); myscriptitem.runScript(); } }; item.setEnabled(!myscriptitem.isRunning()); JSMenu.addI(myscriptitem.getScriptName(), "", 0, 0, item); //item.myimage.setIconWidth(20); //item.myimage.setIconHeight(20); item.setIcon(themes.resizeExistingIcon("/eric/GUI/icons/jswindow/run.png", 16, 21)); } if (panel.getScripts().size() > 0) { JSMenu.addSep(); } JSMenu.addI("JSmenu.killall", "", 0, 0, item = new myJMenuItem() { @Override void action() { ZC.killAllScripts(); } }); item.setEnabled(ZC.isThereAnyScriptRunning()); JSMenu.addI("JSmenu.stopall", "", 0, 0, item = new myJMenuItem() { @Override void action() { //panel.stopAllScripts(); ZC.stopAllScripts(); } }); item.setEnabled(ZC.isThereAnyScriptRunning() && !ZC.isThereAnyStoppedScripts()); JSMenu.addI("JSmenu.restartall", "", 0, 0, item = new myJMenuItem() { @Override void action() { //panel.restartAllScripts(); ZC.restartAllScripts(); } }); item.setEnabled(ZC.isThereAnyStoppedScripts()); JSMenu.addSep(); // add Modify Menu : myJMenu modifypopup = new myJMenu(Global.Loc("JSmenu.modify"), true); for (final ScriptItem scpitem : panel.getScripts()) { modifypopup.addI(scpitem.getScriptName(), "", 0, 0, item = new myJMenuItem() { @Override void action() { scpitem.openEmbeddedScript(); } }); } modifypopup.setEnabled(panel.getScripts().size() > 0); JSMenu.add(modifypopup); // add Delete Menu : myJMenu deletepopup = new myJMenu(Global.Loc("JSmenu.delete"), true); for (final ScriptItem scpitem : panel.getScripts()) { deletepopup.addI(scpitem.getScriptName(), "", 0, 0, item = new myJMenuItem() { @Override void action() { panel.removeScript(scpitem); } }); } deletepopup.setEnabled(panel.getScripts().size() > 0); JSMenu.add(deletepopup); JSMenu.addI("JSmenu.ScriptsManager", "", 0, 0, item = new myJMenuItem() { @Override void action() { panel.addScriptsManagerPanel(); } }); item.setEnabled(panel.getScripts().size() > 0); } public static void initToggleItems() { if (me != null) { me.commentitem.setSelected(Global.getParameter("comment", false)); me.leftpanelitem.setSelected(LeftPanel.isPanelVisible()); me.paletteitem.setSelected(RightPanel.isPanelVisible()); } } public void InitObjectsMenu() { ObjectsMenu.removeAll(); final myJMenu m1 = new myJMenu(Loc("objects.points"), 0); m1.addI("point", new myJMenuItem()); m1.addI("intersection", new myJMenuItem()); m1.addI("midpoint", new myJMenuItem()); m1.addI("bi_syma", new myJMenuItem()); m1.addI("bi_symc", new myJMenuItem()); m1.addI("bi_trans", new myJMenuItem()); ObjectsMenu.add(m1); final myJMenu m2 = new myJMenu(Loc("objects.lines"), 0); m2.addI("line", new myJMenuItem()); m2.addI("ray", new myJMenuItem()); m2.addI("parallel", new myJMenuItem()); m2.addI("plumb", new myJMenuItem()); m2.addI("bi_med", new myJMenuItem()); m2.addI("bi_biss", new myJMenuItem()); ObjectsMenu.add(m2); final myJMenu m3 = new myJMenu(Loc("objects.segments"), 0); m3.addI("segment", new myJMenuItem()); m3.addI("fixedsegment", new myJMenuItem()); m3.addI("vector", new myJMenuItem()); m3.addI("area", new myJMenuItem()); ObjectsMenu.add(m3); final myJMenu m4 = new myJMenu(Loc("objects.angles"), 0); m4.addI("angle", new myJMenuItem()); m4.addI("fixedangle", new myJMenuItem()); ObjectsMenu.add(m4); final myJMenu m5 = new myJMenu(Loc("objects.circles"), 0); m5.addI("circle", new myJMenuItem()); m5.addI("fixedcircle", new myJMenuItem()); m5.addI("circle3", new myJMenuItem()); m5.addI("bi_circ", new myJMenuItem()); m5.addI("bi_arc", new myJMenuItem()); m5.addI("quadric", new myJMenuItem()); ObjectsMenu.add(m5); final myJMenu m7 = new myJMenu(Loc("objects.functions"), 0); m7.addI("text", new myJMenuItem()); m7.addI("expression", new myJMenuItem()); m7.addI("bi_function_u", new myJMenuItem()); m7.addI("function", new myJMenuItem()); m7.addI("equationxy", new myJMenuItem()); ObjectsMenu.add(m7); final myJMenu m6 = new myJMenu(Loc("objects.tracks"), 0); m6.addI("objecttracker", new myJMenuItem()); m6.addI("tracker", new myJMenuItem()); m6.addI("locus", new myJMenuItem()); ObjectsMenu.add(m6); } private void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } private JEricPanel margintop(final int h) { final JEricPanel mypan = new JEricPanel(); fixsize(mypan, 1, h); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } private void showrestrictedmessage() { if (Global.getParameter("showrestrictmessage", true)) { final JEricPanel mypan = new JEricPanel(); mypan.setLayout(new BoxLayout(mypan, BoxLayout.Y_AXIS)); final JLabel mylabel = new JLabel(Global.Loc("menu.display.restrictmessage")); mylabel.setFont(new Font("System", 0, 12)); final JCheckBox myjcb = new JCheckBox(Global.Loc("menu.display.restrictmessage.dontdisplay")); mypan.add(mylabel); mypan.add(margintop(10)); mypan.add(myjcb); JOptionPane.showMessageDialog(null, mypan, "", JOptionPane.PLAIN_MESSAGE, null); Global.setParameter("showrestrictmessage", !myjcb.isSelected()); } } public void init() { myJMenu menu; menubar.removeAll(); this.removeAll(); final int ctrlkey = (OS.isMac()) ? InputEvent.META_DOWN_MASK : InputEvent.CTRL_DOWN_MASK; menubar.setOpaque(false); menubar.setBorder(BorderFactory.createEmptyBorder()); menubar.setAlignmentY(0.5F); JPopupMenu.setDefaultLightWeightPopupEnabled(false); /** * ************************** * FILE MENU *************************** */ menu = new myJMenu(Loc("file")); menu.addI("file.new", "new", KeyEvent.VK_N, ctrlkey, new myJMenuItem()); menu.addI("file.new3D", "", 0, 0, new myJMenuItem() { @Override void action() { FileTools.New3DWindow(); } }); menu.addI("file.newDP", "", 0, 0, new myJMenuItem() { @Override void action() { FileTools.NewDPWindow(); } }); menu.addSep(); menu.addI("file.load", "load", KeyEvent.VK_O, ctrlkey, new myJMenuItem()); menu.addI("file.save", "save", KeyEvent.VK_S, ctrlkey, new myJMenuItem()); menu.addI("tab.popup.savefileonly", "", 0, 0, new myJMenuItem() { @Override void action() { FileTools.saveFileAs(); } }); menu.addI("workbook.saveas", "", 0, 0, new myJMenuItem() { @Override void action() { FileTools.saveWorkBookAs(); } }); menu.addSep(); menu.addI("export.workbook", "", KeyEvent.VK_E, ctrlkey, new myJMenuItem() { @Override void action() { FileTools.HTMLWorkBookExport(); FileTools.SaveJarAndLaunchBrowser(); } }); menu.addI("export.embedworkbook", "", 0, 0, new myJMenuItem() { @Override void action() { FileTools.HTMLWorkBookExtExport(); } }); menu.addSep(); menu.addI("file.exportpng", "exportpng", 0, 0, new myJMenuItem()); menu.addI("file.exporteps", "exporteps", 0, 0, new myJMenuItem()); menu.addI("file.exportsvg", "exportsvg", 0, 0, new myJMenuItem() { @Override void action() { FileTools.exportGraphicFile(FileTools.SVG); } }); menu.addI("file.exportpdf", "exportpdf", 0, 0, new myJMenuItem() { @Override void action() { FileTools.exportGraphicFile(FileTools.PDF); } }); menu.addSep(); menu.addI("file.close", "", KeyEvent.VK_W, ctrlkey, new myJMenuItem() { @Override void action() { pipe_tools.closeCurrent(); } }); menu.addSep(); menu.addI("file.quit", "", KeyEvent.VK_Q, ctrlkey, new myJMenuItem() { @Override void action() { pipe_tools.quitAll(); } }); menubar.add(menu); /** * ************************** * EDIT MENU *************************** */ menu = new myJMenu(Loc("edit")); menu.addI("edit.copy", "copy", KeyEvent.VK_C, ctrlkey, new myJMenuItem()); myJMenu submenu = new myJMenu(Loc("edit.copyto"), true); submenu.addI("PDF", "", 0, 0, new myJMenuItem() { @Override public void action() { FileTools.exportGraphicFile(FileTools.PDF, null); } }); submenu.addI("SVG", "", 0, 0, new myJMenuItem() { @Override public void action() { FileTools.exportGraphicFile(FileTools.SVG, null); } }); submenu.addI("EPS", "", 0, 0, new myJMenuItem() { @Override public void action() { FileTools.exportGraphicFile(FileTools.EPS, null); } }); menu.add(submenu); menu.addI("edit.copyapplettag", "", 0, 0, new myJMenuItem(){ public void action() { FileTools.copyAppletTag(); } }); menu.addSep(); menu.addI("edit.move", "move", 0, 0, new myJMenuItem()); menu.addI("edit.rename", "rename", 0, 0, new myJMenuItem() { @Override public void action() { ZirkelFrame ZF = JZirkelCanvas.getCurrentZF(); if (ZF != null) { ZF.settool("rename"); } } }); menu.addI("edit.edit", "edit", 0, 0, new myJMenuItem()); menu.addI("edit.zoom", "zoom", 0, 0, new myJMenuItem() { @Override public void action() { ZirkelFrame ZF = JZirkelCanvas.getCurrentZF(); if (ZF != null) { ZF.settool("zoom"); } } }); menu.addI("edit.hide", "hide", 0, 0, new myJMenuItem()); menu.addI("edit.delete", "delete", 0, 0, new myJMenuItem()); menu.addSep(); menu.addI("edit.deactivatealltracks", "", 0, 0, new myJMenuItem() { @Override void action() { ZirkelCanvas ZC = JZirkelCanvas.getCurrentZC(); ZC.UniversalTrack.clearTrackImage(); ZC.UniversalTrack.clearTrackObjects(); ZC.repaint(); } }); menu.addI("edit.deletealltracks", "", KeyEvent.VK_T, ctrlkey, new myJMenuItem() { @Override void action() { ZirkelCanvas ZC = JZirkelCanvas.getCurrentZC(); ZC.UniversalTrack.clearTrackImage(); ZC.repaint(); } }); menu.addSep(); menu.addI("edit.deleteall", "", KeyEvent.VK_DELETE, 0, new myJMenuItem() { @Override void action() { ZirkelFrame ZF = JZirkelCanvas.getCurrentZF(); if (ZF.ZC.changed()) { final Question q = new Question(pipe_tools.getFrame(), Global.Loc("savequestion.qsave"), Global.Loc("savequestion.title"), true); q.center(null); q.setVisible(true); if (q.isAborted()) { return; } if (q.yes()) { FileTools.saveFile(); } } ZF.clear(false); final ScriptPanel panel = JZirkelCanvas.getCurrentZC().getScriptsPanel(); panel.removeScript(Global.Loc("aerialview")); panel.removeScript(Global.Loc("frontview")); panel.removeScript(Global.Loc("rightview")); panel.removeScript(Global.Loc("backview")); ZF.Filename = ""; } }); menubar.add(menu); /** * ************************** * OBJECTS MENU *************************** */ menubar.add(ObjectsMenu); /** * ************************** * DISPLAY MENU *************************** */ menu = new myJMenu(Loc("display")); menu.addI("display.restrictedenvironment", "", KeyEvent.VK_R, ctrlkey, new myJMenuItem() { @Override void action() { pipe_tools.showRestrictedEnvironmentManager(); } }); menu.addSep(); hiddenitem = new myJMenuItem(); menu.addI("display.hidden", "hidden", 0, 0, false, hiddenitem); griditem = new myJMenuItem(); menu.addI("display.grid", "grid", 0, 0, false, griditem); menu.addSep(); menu.addI("display.smartboard", "", 0, 0, Global.getParameter( "smartboard", false), new myJMenuItem() { @Override void action() { setSelected(!isSelected()); Global.setParameter("smartboard", isSelected()); } }); menu.addSep(); menu.addI("display.leftpanel", "", 0, 0, LeftPanel.isPanelVisible(), leftpanelitem = new myJMenuItem() { @Override void action() { Open_left_panel_btn.toggle(); } }); menu.addI("display.comment", "", 0, 0, Global.getParameter( "comment", false), commentitem = new myJMenuItem() { @Override void action() { Open_middle_panel_btn.toggle(); } }); menu.addI("display.palette", "", 0, 0, RightPanel.isPanelVisible(), paletteitem = new myJMenuItem() { @Override void action() { Open_right_panel_btn.toggle(); } }); menu.addSep(); menu.addI("display.properties_panel", "properties_panel", KeyEvent.VK_P, ctrlkey, false, new myJMenuItem() { @Override void action() { JPropertiesBar.ShowHideBar(); } }); menu.addSep(); largeitem = new myJMenuItem() { @Override void action() { if (!isSelected()) { themes.setPaletteIconWidth(32); setSelected(true); mediumitem.setSelected(false); smallitem.setSelected(false); pipe_tools.getContent().rebuiltRightPanel(); } } }; menu.addI("display.large", "", 0, 0, false, largeitem); mediumitem = new myJMenuItem() { @Override void action() { if (!isSelected()) { themes.setPaletteIconWidth(28); setSelected(true); largeitem.setSelected(false); smallitem.setSelected(false); pipe_tools.getContent().rebuiltRightPanel(); } } }; menu.addI("display.medium", "", 0, 0, false, mediumitem); smallitem = new myJMenuItem() { @Override void action() { if (!isSelected()) { themes.setPaletteIconWidth(24); setSelected(true); mediumitem.setSelected(false); largeitem.setSelected(false); pipe_tools.getContent().rebuiltRightPanel(); } } }; menu.addI("display.small", "", 0, 0, false, smallitem); switch (Global.getParameter("options.iconsize", 1)) { case 0: largeitem.setSelected(true); break; case 1: mediumitem.setSelected(true); break; case 2: smallitem.setSelected(true); break; } menu.addSep(); submenu = new myJMenu(Loc("language"), true); submenu.addI("zh", "TW", new myJMenuItem() { @Override void action() { Global.setLanguage("zh", "TW"); } }); submenu.addI("ar", "TN", new myJMenuItem() { @Override void action() { Global.setLanguage("ar", "TN"); } }); submenu.addI("pt", "BR", new myJMenuItem() { @Override void action() { Global.setLanguage("pt", "BR"); } }); submenu.addI("de", "", new myJMenuItem() { @Override void action() { Global.setLanguage("de", ""); } }); submenu.addI("en", "", new myJMenuItem() { @Override void action() { Global.setLanguage("en", ""); } }); submenu.addI("es", "", new myJMenuItem() { @Override void action() { Global.setLanguage("es", ""); } }); submenu.addI("fr", "", new myJMenuItem() { @Override void action() { Global.setLanguage("fr", ""); } }); submenu.addI("gl", "", new myJMenuItem() { @Override void action() { Global.setLanguage("gl", ""); } }); submenu.addI("it", "", new myJMenuItem() { @Override void action() { Global.setLanguage("it", ""); } }); submenu.addI("nl", "", new myJMenuItem() { @Override void action() { Global.setLanguage("nl", ""); } }); submenu.addI("no", "", new myJMenuItem() { @Override void action() { Global.setLanguage("no", ""); } }); submenu.addI("pl", "", new myJMenuItem() { @Override void action() { Global.setLanguage("pl", ""); } }); submenu.addI("pt", "", new myJMenuItem() { @Override void action() { Global.setLanguage("pt", ""); } }); submenu.addI("ru", "RU", new myJMenuItem() { @Override void action() { Global.setLanguage("ru", "RU"); } }); submenu.addI("sl", "", new myJMenuItem() { @Override void action() { Global.setLanguage("sl", ""); } }); submenu.addI("sv", "", new myJMenuItem() { @Override void action() { Global.setLanguage("sv", ""); } }); menu.add(submenu); menubar.add(menu); /** * ************************** * MACROS MENU : Initialised by *************************** */ menubar.add(MacrosMenu); /** * ************************** * JAVASCRIPT MENU *************************** */ InitJSMenu(); menubar.add(JSMenu); /** * ************************** * SPECIAL MENU *************************** */ menu = new myJMenu(Loc("assigment")); definejobitem = new myJMenuItem() { @Override void action() { pipe_tools.showExerciseManager(); } }; menu.addI("special.definejob", "", KeyEvent.VK_J, ctrlkey, false, definejobitem); menubar.add(menu); /** * ************************** * NETWORK MENU *************************** */ menu = new myJMenu(Loc("network")); menu.addI(Global.Loc("network.menu.connect"), "", 0, 0, new myJMenuItem(){ @Override void action(){ cnt = JZirkelCanvas.getCurrentZC().get_cnt(); if(cnt==null) { //then display the ConnectionControlPanel pm.Client.ConnectionControlPanel client = new pm.Client.ConnectionControlPanel(); JZirkelCanvas.getCurrentZC().add(client); JZirkelCanvas.getCurrentZC().repaint(); client.init(); PaletteManager.deselectgeomgroup(); JZirkelCanvas.getCurrentZC().showStatus(""); } else { //cut the connection cnt.doClose(); } } }); menu.addI(Global.Loc("network.menu.launch"), "", 0, 0, new myJMenuItem(){ @Override void action(){ if(scp==null){ scp = new pm.Server.ServerControlPanel(); JZirkelCanvas.getCurrentZC().add(scp); JZirkelCanvas.getCurrentZC().repaint(); scp.init(); PaletteManager.deselectgeomgroup(); JZirkelCanvas.getCurrentZC().showStatus(""); } else { scp.close_and_kill_server(); JZirkelCanvas.getCurrentZC().remove(scp); JZirkelCanvas.getCurrentZC().repaint(); PaletteManager.setSelected_with_clic("move", true); scp = null; } } }); menubar.add(menu); /** * ************************** * HELP MENU *************************** */ menu = new myJMenu(Loc("help")); menu.addI("help.about", "", 0, 0, new myJMenuItem() { @Override void action() { JLogoWindow.ShowLogoWindow(true); // new JAboutDialog(JZirkelCanvas.getCurrentJZF()); } }); menu.addI("help.licence", "", 0, 0, new myJMenuItem() { @Override void action() { new JLicence(JZirkelCanvas.getCurrentJZF()); } }); menu.addI("help.info", "help_panel", 0, 0, new myJMenuItem() { @Override void action() { Open_left_panel_btn.open(); LeftPanel.selectHelp(); } }); menu.addSep(); menu.addI("help.url0", "", 0, 0, new myJMenuItem() { @Override void action() { JBrowserLauncher.openURL("http://carmetal.org/index.php/fr/"); } }); menu.addI("help.url1", "", 0, 0, new myJMenuItem() { @Override void action() { JBrowserLauncher.openURL("http://carmetal.org/index.php/fr/tutoriels/carzine"); } }); menu.addI("help.url2", "", 0, 0, new myJMenuItem() { @Override void action() { JBrowserLauncher.openURL("http://car.rene-grothmann.de/doc_en/"); } }); menu.addSep(); menu.addI("help.url3", "", 0, 0, new myJMenuItem() { @Override void action() { JBrowserLauncher.openURL("http://db-maths.nuxit.net/CaRMetal/index_translate.html"); } }); menu.addSep(); menu.addI("help.opendefaultfolder", "", 0, 0, new myJMenuItem() { @Override void action() { Global.openHomeDirectoryInDesktop(); } }); menubar.add(menu); this.add(menubar); this.validate(); this.repaint(); } public static pm.Server.ServerControlPanel get_scp(){ return scp; } } carmetal-4.3/src/eric/JGlobalPreferences.java000066400000000000000000000106351417122252700212300ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import rene.gui.Global; import rene.util.parser.StringParser; /** * * @author erichake */ public class JGlobalPreferences { static int minfontsize, minpointsize, minlinesize, arrowsize,selectionsize,monkeyspeed,gridopacity, digits_lengths, digits_edit, digits_angles, colorbackgroundx, colorbackgroundy, colorbackgroundPal; static String colorbackground; static boolean undockpalette; /** Creates a new instance of JProperties */ static public void initPreferences() { minfontsize = Global.getParameter("prefs.minfontsize", 26); minpointsize = Global.getParameter("prefs.minpointsize", 3); minlinesize = Global.getParameter("prefs.minlinesize", 1); arrowsize = Global.getParameter("prefs.arrowsize", 15); selectionsize=Global.getParameter("prefs.selectionsize", 8); monkeyspeed=Global.getParameter("prefs.monkeyspeed", 20); gridopacity=Global.getParameter("prefs.gridopacity", 20); digits_lengths = Global.getParameter("prefs.digits.lengths", 5); digits_edit = Global.getParameter("prefs.digits.edit", 5); digits_angles = Global.getParameter("prefs.digits.angles", 0); colorbackground = Global.getParameter("prefs.colorbackground", "245,245,245"); colorbackgroundx = Global.getParameter("prefs.colorbackgroundx", 154); colorbackgroundy = Global.getParameter("prefs.colorbackgroundy", 5); colorbackgroundPal = Global.getParameter("prefs.colorbackgroundPal", 4); undockpalette = Global.getParameter("prefs.undockpalette", false); } static public void savePreferences() { Global.setParameter("prefs.minfontsize", minfontsize); Global.setParameter("prefs.minpointsize", minpointsize); Global.setParameter("prefs.minlinesize", minlinesize); Global.setParameter("prefs.arrowsize", arrowsize); Global.setParameter("prefs.selectionsize", selectionsize); Global.setParameter("prefs.monkeyspeed", monkeyspeed); Global.setParameter("prefs.gridopacity", gridopacity); Global.setParameter("prefs.digits.lengths", digits_lengths); Global.setParameter("prefs.digits.edit", digits_edit); Global.setParameter("prefs.digits.angles", digits_angles); Global.setParameter("prefs.colorbackground", getColor(colorbackground)); Global.setParameter("prefs.colorbackgroundx", colorbackgroundx); Global.setParameter("prefs.colorbackgroundy", colorbackgroundy); Global.setParameter("prefs.colorbackgroundPal", colorbackgroundPal); Global.setParameter("prefs.undockpalette", undockpalette); } static public void setLocalPreferences() { Global.setParameter("minfontsize", minfontsize); Global.setParameter("minpointsize", minpointsize); Global.setParameter("minlinesize", minlinesize); Global.setParameter("arrowsize", arrowsize); Global.setParameter("selectionsize", selectionsize); Global.setParameter("gridopacity", gridopacity); Global.setParameter("monkeyspeed", monkeyspeed); Global.setParameter("digits.lengths", digits_lengths); Global.setParameter("digits.edit", digits_edit); Global.setParameter("digits.angles", digits_angles); Global.setParameter("colorbackground", getColor(colorbackground)); Global.setParameter("colorbackgroundx", colorbackgroundx); Global.setParameter("colorbackgroundy", colorbackgroundy); Global.setParameter("colorbackgroundPal", colorbackgroundPal); } static public void ShowPreferencesDialog() { new JGlobalPreferencesDlog(); } // get a Color object from a string like "231,145,122" static private Color getColor(final String s) { final StringParser p = new StringParser(s); p.replace(',', ' '); int red, green, blue; red = p.parseint(); green = p.parseint(); blue = p.parseint(); return new Color(red, green, blue); } } carmetal-4.3/src/eric/JGlobalPreferencesColor.java000066400000000000000000000225771417122252700222370ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import eric.GUI.pipe_tools; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Stroke; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import javax.swing.BoxLayout; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import net.java.dev.colorchooser.ColorChooser; import net.java.dev.colorchooser.Palette; import rene.gui.Global; /** * * @author erichake */ public class JGlobalPreferencesColor extends JEricPanel implements MouseListener, MouseMotionListener { /** * */ private static final long serialVersionUID = 1L; private final ColorChooser cchooser; private Palette Pal; int PW = 193; int PaletteType; int xx, yy; colorline mycolorpickerline; JGlobalPreferencesColor me; JComboBox JCB; JLabel comment; JEricPanel colorsample = new JEricPanel(); @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); } private void fixsize(final JComponent cp, final Dimension d) { cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } /** Creates a new instance of JColorPanel */ public JGlobalPreferencesColor() { me = this; xx = -1; yy = -1; PaletteType = Global.getParameter("prefs.colorbackgroundPal", 1); cchooser = new ColorChooser(); // Pal=cchooser.getPalettes()[4]; this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setAlignmentX(0.5f); this.setOpaque(false); this.add(margintop(5)); JCB = new JComboBox(); JCB.setMaximumRowCount(5); JCB.setOpaque(false); JCB.setFocusable(false); JCB.setEditable(false); JCB.setAlignmentX(0.5f); JCB.setFont(new Font("System", 0, 11)); JCB.addItem(Loc("saturated1")); JCB.addItem(Loc("desaturated1")); JCB.addItem(Loc("saturated2")); JCB.addItem(Loc("desaturated2")); JCB.addItem(Loc("constants")); JCB.setSelectedIndex(PaletteType); JCB.addItemListener(new ItemAdapter()); final JEricPanel JCBpanel = new JEricPanel(); JCBpanel.setLayout(new BoxLayout(JCBpanel, BoxLayout.X_AXIS)); JCBpanel.setAlignmentX(0.5f); JCBpanel.setOpaque(false); fixsize(JCBpanel, PW, 24); JCBpanel.add(margin(5)); fixsize(JCB, PW - 10, 22); JCBpanel.add(JCB); this.add(JCBpanel); mycolorpickerline = new colorline(PaletteType); this.add(mycolorpickerline); comment = new JLabel("coucou"); comment.setOpaque(false); comment.setAlignmentX(0.5f); comment.setFont(new Font("System", 0, 9)); fixsize(comment, PW, 14); comment.setHorizontalAlignment(SwingConstants.CENTER); this.add(comment); fixsize(colorsample, new Dimension(80, 80)); colorsample.setAlignmentX(0.5f); this.add(colorsample); } public String Loc(final String s) { return Global.Loc("palette.colors." + s); } class ItemAdapter implements ItemListener { public void itemStateChanged(final ItemEvent evt) { if (evt.getStateChange() == ItemEvent.SELECTED) { me.remove(mycolorpickerline); mycolorpickerline = new colorline(JCB.getSelectedIndex()); Global.setParameter("prefs.colorbackgroundPal", JCB .getSelectedIndex()); me.add(mycolorpickerline, 2); // JDialog father=GetDialog(me); // father.validate(); // father.pack(); int x = Global.getParameter("prefs.colorbackgroundx", 154); int y = Global.getParameter("prefs.colorbackgroundy", 5); x = x * Pal.getSize().width / mycolorpickerline.mycolors.getSize().width; y = y * Pal.getSize().height / mycolorpickerline.mycolors.getSize().height; final Color mycolor = Pal.getColorAt(x, y); if (mycolor != null) { Global.setParameter("prefs.colorbackground", mycolor); Global.setParameter("prefs.colorbackgroundx", x); Global.setParameter("prefs.colorbackgroundy", y); } me.repaint(); } } } public JDialog GetDialog(final Component c) { if (c instanceof JDialog || null == c) return c == null ? null : (JDialog) c; return GetDialog(c.getParent()); } class colorline extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; JEricPanel mymargin; onlycolors mycolors; colorline(final int ptype) { PaletteType = ptype; Pal = cchooser.getPalettes()[ptype]; this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setAlignmentX(0.5f); mymargin = margin(0); // if (PW>Pal.getSize().width){ // fixsize(mymargin,(PW-Pal.getSize().width)/2,1); // }; this.add(mymargin); mycolors = new onlycolors(ptype); this.add(mycolors); this.setOpaque(false); } } private class onlycolors extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; Image bimage; @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final Dimension d = this.getSize(); final int w = d.width; final int h = d.height; g.drawImage(bimage, 0, 0, w, h, this); final Color mycolor = Global.getParameter("prefs.colorbackground", new Color(231, 238, 255)); cchooser.setColor(mycolor); colorsample.setBackground(mycolor); // ZF.ZC.setBackground(mycolor); // ZF.ZC.repaint(); int x = Global.getParameter("prefs.colorbackgroundx", 154); int y = Global.getParameter("prefs.colorbackgroundy", 5); if (PaletteType == 4) { x = ((int) (x / 12)) * 12 + 6; y = ((int) (y / 12)) * 12 + 6; } final Graphics2D g2 = (Graphics2D) g; // AlphaComposite ac = // AlphaComposite.getInstance(AlphaComposite.SRC_OVER,0.5f); // g2.setComposite(ac); g2.setColor(new Color(0, 0, 0)); Stroke stroke = new BasicStroke(1f); g2.setStroke(stroke); g2.drawRect(x - 4, y - 4, 8, 8); stroke = new BasicStroke(1f); g2.setStroke(stroke); g2.setColor(new Color(255, 255, 255)); g2.drawRect(x - 3, y - 3, 6, 6); // g.drawRect(x-5,y-5,10,10); comment.setText(Pal.getNameAt(x, y)); } onlycolors(final int ptype) { final int w = (PW < Pal.getSize().width) ? PW : Pal.getSize().width; fixsize(this, w, Pal.getSize().height); // bimage=JPM.MW.createImage(Pal.getSize().width,Pal.getSize().height); bimage = this.createImage(Pal.getSize().width, Pal.getSize().height); Pal.paintTo(bimage.getGraphics()); this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setAlignmentX(0.5f); this.setOpaque(false); this.addMouseMotionListener(me); this.addMouseListener(me); } // public void changePal(int i){ // // Pal=cchooser.getPalettes()[i]; // int w=(PW mycolorpickerline.mycolors.getSize().width) x = mycolorpickerline.mycolors.getSize().width; if (x < 0) x = 0; if (y > mycolorpickerline.mycolors.getSize().height) y = mycolorpickerline.mycolors.getSize().height; if (y < 0) y = 0; Global.setParameter("prefs.colorbackgroundx", x); Global.setParameter("prefs.colorbackgroundy", y); x = x * Pal.getSize().width / mycolorpickerline.mycolors.getSize().width; y = y * Pal.getSize().height / mycolorpickerline.mycolors.getSize().height; final Color mycolor = Pal.getColorAt(x, y); if (mycolor != null) { Global.setParameter("prefs.colorbackground", mycolor); mycolorpickerline.mycolors.repaint(); } } public void mouseReleased(final MouseEvent e) { xx = -1; yy = -1; } public void mouseEntered(final MouseEvent e) { } public void mouseExited(final MouseEvent e) { } public void mouseDragged(final MouseEvent e) { mousePressed(e); } public void mouseMoved(final MouseEvent e) { } } carmetal-4.3/src/eric/JGlobalPreferencesCursor.java000066400000000000000000000076451417122252700224350ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import java.awt.Font; import javax.swing.BoxLayout; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.JSlider; import rene.gui.Global; /** * * @author erichake */ public class JGlobalPreferencesCursor extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; JLabel mylabel, myval; public JSlider mycursor; String myP, mytxt; int PW = 300;// standard palette width boolean palmember = false; /** Creates a new instance of JCursor */ @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); } // JCursor constructor for palette member : public JGlobalPreferencesCursor(final String myparam, final String mytext, final int min, final int max, int sel) { // this(mytext,40,min,max,rene.gui.Global.getParameter(myparam,sel)); sel = Global.getParameter(myparam, sel); myP = myparam; palmember = true; final int lblwidth = 150; final int valwidth = 20; final int valheight = 27; mytxt = mytext; mycursor = new JSlider(); mylabel = new JLabel(); myval = new JLabel(); this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); // this.setAlignmentX(0); mylabel.setText(" " + mytxt); mylabel.setForeground(Color.DARK_GRAY); mylabel.setFont(new Font(Global.GlobalFont, Font.PLAIN, 13)); mylabel.setSize(lblwidth, 27); mylabel.setMaximumSize(new java.awt.Dimension(lblwidth, 27)); mylabel.setMinimumSize(new java.awt.Dimension(lblwidth, 27)); mylabel.setPreferredSize(new java.awt.Dimension(lblwidth, 27)); myval.setText(String.valueOf(sel)); myval.setForeground(Color.GRAY); myval.setFont(new java.awt.Font(Global.GlobalFont, Font.BOLD, 13)); myval.setSize(valwidth, valheight); myval.setMaximumSize(new java.awt.Dimension(valwidth, valheight)); myval.setMinimumSize(new java.awt.Dimension(valwidth, valheight)); myval.setPreferredSize(new java.awt.Dimension(valwidth, valheight)); mycursor.setFont(new java.awt.Font(Global.GlobalFont, 0, 11)); mycursor.setOpaque(false); mycursor.setMajorTickSpacing(1); mycursor.setMaximum(max); mycursor.setMinimum(min); mycursor.setMinorTickSpacing(1); mycursor.setPaintLabels(false); mycursor.setPaintTicks(false); mycursor.setSnapToTicks(true); mycursor.setValue(sel); mycursor.setAlignmentX(0.0F); mycursor.setMaximumSize(new java.awt.Dimension( PW - lblwidth - valwidth, valheight)); mycursor.setMinimumSize(new java.awt.Dimension( PW - lblwidth - valwidth, valheight)); mycursor.setPreferredSize(new java.awt.Dimension(PW - lblwidth - valwidth, valheight)); mycursor.setSize(new java.awt.Dimension(PW - lblwidth - valwidth, valwidth)); mycursor.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(final javax.swing.event.ChangeEvent evt) { final JSlider myc = (JSlider) evt.getSource(); final int mysel = myc.getValue(); rene.gui.Global.setParameter(myP, mysel); myval.setText(String.valueOf(mysel)); } }); this.add(mylabel); this.add(mycursor); this.add(myval); this.setOpaque(false); this.setMaximumSize(new java.awt.Dimension(PW, 27)); this.setMinimumSize(new java.awt.Dimension(PW, 27)); this.setPreferredSize(new java.awt.Dimension(PW, 27)); this.setSize(PW, 27); } } carmetal-4.3/src/eric/JGlobalPreferencesDlog.form000066400000000000000000000243511417122252700220600ustar00rootroot00000000000000
carmetal-4.3/src/eric/JGlobalPreferencesDlog.java000066400000000000000000000173701417122252700220410ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Dimension; import java.awt.event.ItemEvent; import javax.swing.JComponent; import eric.JEricPanel; import rene.gui.Global; /** * * @author erichake */ public class JGlobalPreferencesDlog extends javax.swing.JFrame { /** * */ private static final long serialVersionUID = 1L; /** Creates new form JGlobalPreferencesDlog */ public JGlobalPreferencesDlog() { initComponents(); tabs.setTitleAt(0, Loc("sizes")); tabs.setTitleAt(1, Loc("colors")); tabs.setTitleAt(2, Loc("others")); undock.setText(Loc("others.undock")); JGlobalPreferences.savePreferences(); sizes.add(Vspacer(20)); sizes.add(new JGlobalPreferencesCursor("prefs.minpointsize", Loc("sizes.minpointsize"), 1, 9, 3)); sizes.add(new JGlobalPreferencesCursor("prefs.minlinesize", Loc("sizes.minlinesize"), 1, 9, 1)); sizes.add(new JGlobalPreferencesCursor("prefs.arrowsize", Loc("sizes.arrowsize"), 3, 50, 15)); sizes.add(new JGlobalPreferencesCursor("prefs.minfontsize", Loc("sizes.minfontsize"), 1, 64, 12)); sizes.add(Vspacer(20)); sizes.add(new JGlobalPreferencesCursor("prefs.digits.lengths", Loc("sizes.digits.lengths"), 0, 12, 5)); sizes.add(new JGlobalPreferencesCursor("prefs.digits.edit", Loc("sizes.digits.edit"), 0, 12, 5)); sizes.add(new JGlobalPreferencesCursor("prefs.digits.angles", Loc("sizes.digits.angles"), 0, 12, 0)); colors.add(Vspacer(20)); colors.add(new JGlobalPreferencesColor()); undock.setSelected(Global.getParameter("prefs.undockpalette", false)); setVisible(true); } static private String Loc(final String s) { return Global.Loc("menu.special.options." + s); } static private JEricPanel Vspacer(final int h) { final JEricPanel mysep = new JEricPanel(); mysep.setOpaque(false); fixsize(mysep, new Dimension(1, h)); return mysep; } static private void fixsize(final JComponent cp, final Dimension d) { cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ // //GEN-BEGIN:initComponents private void initComponents() { tabs = new javax.swing.JTabbedPane(); sizes = new javax.swing.JPanel(); colors = new javax.swing.JPanel(); other = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); undock = new javax.swing.JCheckBox(); jPanel1 = new javax.swing.JPanel(); jPanel3 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); getContentPane().setLayout( new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS)); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Preferences"); setAlwaysOnTop(true); setResizable(false); addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosed(final java.awt.event.WindowEvent evt) { formWindowClosed(evt); } }); tabs.setMaximumSize(new java.awt.Dimension(330, 360)); tabs.setMinimumSize(new java.awt.Dimension(330, 360)); tabs.setPreferredSize(new java.awt.Dimension(330, 360)); sizes.setLayout(new javax.swing.BoxLayout(sizes, javax.swing.BoxLayout.Y_AXIS)); sizes.setOpaque(false); tabs.addTab("Sizes", sizes); colors.setLayout(new javax.swing.BoxLayout(colors, javax.swing.BoxLayout.Y_AXIS)); colors.setOpaque(false); tabs.addTab("Colors", colors); other.setLayout(new javax.swing.BoxLayout(other, javax.swing.BoxLayout.Y_AXIS)); other.setOpaque(false); jPanel2.setEnabled(false); jPanel2.setFocusable(false); jPanel2.setMaximumSize(new java.awt.Dimension(32767, 20)); jPanel2.setMinimumSize(new java.awt.Dimension(10, 20)); jPanel2.setOpaque(false); jPanel2.setPreferredSize(new java.awt.Dimension(10, 20)); other.add(jPanel2); undock.setText("Accept undocked palette"); undock.setBorder(javax.swing.BorderFactory .createEmptyBorder(0, 0, 0, 0)); undock.setMargin(new java.awt.Insets(0, 0, 0, 0)); undock.setOpaque(false); undock.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(final java.awt.event.ItemEvent evt) { undockItemStateChanged(evt); } }); other.add(undock); tabs.addTab("Other", other); getContentPane().add(tabs); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); jPanel1.setMaximumSize(new java.awt.Dimension(330, 40)); jPanel1.setMinimumSize(new java.awt.Dimension(330, 40)); jPanel1.setPreferredSize(new java.awt.Dimension(330, 40)); jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.X_AXIS)); jPanel3.setMaximumSize(new java.awt.Dimension(247, 40)); jPanel3.setMinimumSize(new java.awt.Dimension(247, 40)); jPanel3.setOpaque(false); jPanel3.setPreferredSize(new java.awt.Dimension(247, 40)); jPanel1.add(jPanel3); jButton2.setText("close"); jButton2.setAlignmentX(0.5F); jButton2.setFocusPainted(false); jButton2.setFocusable(false); jButton2.setMaximumSize(new java.awt.Dimension(75, 35)); jButton2.setMinimumSize(new java.awt.Dimension(75, 35)); jButton2.setPreferredSize(new java.awt.Dimension(75, 35)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mouseClicked(final java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } }); jPanel1.add(jButton2); getContentPane().add(jPanel1); final java.awt.Dimension screenSize = java.awt.Toolkit .getDefaultToolkit().getScreenSize(); setBounds((screenSize.width - 330) / 2, (screenSize.height - 422) / 2, 330, 422); }// //GEN-END:initComponents private void undockItemStateChanged(final java.awt.event.ItemEvent evt) {// GEN-FIRST:event_undockItemStateChanged Global.setParameter("prefs.undockpalette", (evt.getStateChange() == ItemEvent.SELECTED)); }// GEN-LAST:event_undockItemStateChanged private void formWindowClosed(final java.awt.event.WindowEvent evt) {// GEN-FIRST:event_formWindowClosed JGlobalPreferences.initPreferences();// TODO add your handling code // here: }// GEN-LAST:event_formWindowClosed private void jButton2MouseClicked(final java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jButton2MouseClicked dispose();// TODO add your handling code here: }// GEN-LAST:event_jButton2MouseClicked /** * @param args * the command line arguments */ public static void main(final String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new JGlobalPreferencesDlog().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel colors; private javax.swing.JButton jButton2; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel other; private javax.swing.JPanel sizes; private javax.swing.JTabbedPane tabs; private javax.swing.JCheckBox undock; // End of variables declaration//GEN-END:variables } carmetal-4.3/src/eric/JHelpPanel.java000066400000000000000000000550261417122252700175210ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.net.URL; import java.util.Enumeration; import java.util.StringTokenizer; import java.util.Vector; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JEditorPane; import javax.swing.JLabel; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import javax.swing.JScrollPane; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkListener; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.metal.MetalComboBoxUI; import javax.swing.text.html.HTMLDocument; import javax.swing.text.html.HTMLEditorKit; import javax.swing.text.html.StyleSheet; import rene.gui.Global; /** * Info class. Reads a file "info.txt" or "de_info.txt" etc. that has the * structure * * .subject1 substitute1 substitute2 ... .related subject subject ... Header ... * * .subject2 ... * * and displays the text, starting from header, searching for a subject or any * of its substitutes. The headers of the related subjects are presented in a * choice list. The user can switch to any of it. * * There is a history and a back button. * * Moroever, there is a search button, that displays the first subject * containing a string and presents all other subjects containing the string in * the choice list. */ public class JHelpPanel extends JEricPanel { private static final long serialVersionUID = 1L; MyJTextPane T; public static String Subject = "start"; String Search = null; // MyChoice2 L; Vector Other = null; Vector History = new Vector(); Vector Related; JEricPanel north; MyJTextSearch TSearch; public JHelpPanel() { T = new MyJTextPane(this); final JScrollPane scrollPane = new JScrollPane(T); scrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder()); setAlignmentX(0.0F); setAlignmentY(0.0F); setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); setFocusable(false); north = new JEricPanel(); north.setLayout(new javax.swing.BoxLayout(north, javax.swing.BoxLayout.Y_AXIS)); north.setOpaque(false); TSearch = new MyJTextSearch(this); Subject = "start"; fill(true); north.add(TSearch); north.add(vmargin(2)); add(north); add(scrollPane); } public void focusTxt() { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { TSearch.JTF.requestFocus(); } }); } static JEricPanel margin(final int w) { final JEricPanel mypan = new JEricPanel(); fixsize(mypan, w, 1); mypan.setLayout(new javax.swing.BoxLayout(mypan, javax.swing.BoxLayout.X_AXIS)); mypan.setAlignmentX(0F); mypan.setAlignmentY(0F); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } static JEricPanel vmargin(final int h) { final JEricPanel mypan = new JEricPanel(); fixsize(mypan, 1, h); mypan.setLayout(new javax.swing.BoxLayout(mypan, javax.swing.BoxLayout.X_AXIS)); mypan.setAlignmentX(0F); mypan.setAlignmentY(0F); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } // Only called by LeftPanelContent init method : public void fixPanelSize(final int w, final int h) { fixsize(north, w, 24); north.revalidate(); fixsize(TSearch, w, 24); fixsize(TSearch.wholepanel, w - 20, 18); } public static void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } public void clearSearchTxtField() { TSearch.JTF.setText(""); } public final void fill(final boolean WithTextFocus) { final boolean vis = TSearch.ispopupvisible(); if (vis) { TSearch.hidepopup(); } TSearch.L = new MyJPopupMenu(this); T.setText(""); String TXT = ""; boolean Found = false, Appending = false; Related = null; Other = new Vector(); String pair[] = null, lastpair[] = null; String lang = Global.name("language", ""); Vector SearchResults = new Vector(); String SearchResult = ""; String FoundTopic = null; boolean FirstRun = true, FoundHeader = false; String Search1 = Search; if (Search != null && Search.length() > 0) { Search1 = Search.substring(0, 1).toUpperCase() + Search.substring(1); } read: while (true) { try { Global.name("codepage.help", ""); BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader( new FileInputStream(Global.getHomeDirectory() + "docs/" + lang + "info.txt"), "UTF8")); } catch (final Exception ex) { in = new BufferedReader(new InputStreamReader( new FileInputStream(Global.getHomeDirectory() + "docs/" + lang + "info.txt"))); } boolean newline = false; newline: while (true) { String s = in.readLine(); if (s == null) { break newline; } if (s.startsWith("//")) { continue; } s = clear(s); if (!s.startsWith(".") && Search != null && (s.indexOf(Search) >= 0 || s.indexOf(Search1) >= 0)) { if (lastpair != null && pair == null && !SearchResult.equals(lastpair[0])) { SearchResults.addElement(lastpair); SearchResult = lastpair[0]; if (FoundTopic == null) { FoundTopic = lastpair[0]; } } } interpret: while (true) { if (!Appending && s.startsWith(".") && !s.startsWith(".related")) { if (!Found) { if (s.startsWith("." + Subject)) { Found = true; Appending = true; continue newline; } final StringTokenizer t = new StringTokenizer(s); while (t.hasMoreElements()) { final String name = t.nextToken(); if (name.equals(Subject)) { Found = true; Appending = true; continue newline; } } } pair = new String[2]; s = s.substring(1); final int n = s.indexOf(' '); if (n > 0) { s = s.substring(0, n); } pair[0] = s; continue newline; } if (Appending) { if (s.startsWith(".related")) { s = s.substring(".related".length()); Related = new Vector(); final StringTokenizer t = new StringTokenizer(s); while (t.hasMoreElements()) { Related.addElement(t.nextToken()); } continue newline; } if (s.startsWith(".")) { Appending = false; continue interpret; } if (s.trim().equals("")) { if (!newline) { // T.append("

"); TXT += "

"; } newline = true; } else { newline = false; if (s.startsWith(" ")) { TXT += "
"; // T.append("
"); } // T.append(s+" "); TXT += s + " "; } } else if (pair != null && !s.startsWith(".")) { pair[1] = s; Other.addElement(pair); lastpair = pair; pair = null; if (Search != null && (s.indexOf(Search) >= 0 || s.indexOf(Search1) >= 0)) { if (!SearchResult.equals(lastpair[0])) { SearchResults.addElement(lastpair); SearchResult = lastpair[0]; if (!FoundHeader) { FoundTopic = lastpair[0]; } FoundHeader = true; } } } continue newline; } } // T.append("
"); TXT += "
"; in.close(); } catch (final Exception e) { if (!lang.equals("")) { lang = ""; continue read; } else { // V.appendLine( // Global.name("help.error","Could not find the help file!")); // T.append(Global.name("help.error", // "Could not find the help file!")); TXT += Global.name("help.error", "Could not find the help file!"); } } if (FoundTopic != null && FirstRun) { Subject = FoundTopic; SearchResults = new Vector(); SearchResult = ""; pair = null; lastpair = null; Found = false; TXT = ""; // T.setText(""); // V.setText(""); FirstRun = false; continue read; } else { break read; } } // if (!Found) // V.appendLine(Global.name("info.notfound","Topic not found!")); if (!Found) { // T.append(Global.name("info.notfound", "Topic not found!")); TXT += Global.name("info.notfound", "Topic not found!"); } if (Search != null) { if (SearchResults.size() > 0) { TSearch.L.addI(Global.name("info.searchresults")); } else { TSearch.L.addI(Global.name("info.noresults")); } } else { TSearch.L.addI(Global.name("info.select")); } if (Search == null && Related != null) { final Enumeration e = Related.elements(); while (e.hasMoreElements()) { final String topic = (String) e.nextElement(); final Enumeration ev = Other.elements(); while (ev.hasMoreElements()) { final String s[] = (String[]) ev.nextElement(); if (s[0].equals(topic)) { TSearch.L.addI(s[1]); break; } } } } if (Search != null) { final Enumeration e = SearchResults.elements(); while (e.hasMoreElements()) { final String s[] = (String[]) e.nextElement(); TSearch.L.addI(s[1]); } } T.setContent(TXT); if (WithTextFocus) { focusTxt(); } T.setCaretPosition(0); History.addElement(Subject); TSearch.setCount(); if (vis) { TSearch.showpopup(); } } public String clear(String s) { s = s.replace('ß', ' '); s = s.replaceAll("__", ""); return s; } } class MyComboBoxUI extends MetalComboBoxUI { public static ComponentUI createUI(final JComponent c) { return new MyComboBoxUI(); } } class MyJTextSearch extends JEricPanel { private static final long serialVersionUID = 1L; JLabel cntLBL = new JLabel(); JTextField JTF; JHelpPanel JP; JButton popBTN, clearBTN; JEricPanel txtpanel; JEricPanel wholepanel; MyJPopupMenu L; String old = ""; @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final ImageIcon OffImage = new ImageIcon(getClass().getResource("/eric/GUI/icons/themes/common/helpsearchback.png")); final java.awt.Dimension d = this.getSize(); g.drawImage(OffImage.getImage(), 0, 0, d.width, d.height, this); } public MyJTextSearch(final JHelpPanel jp) { super(); setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); setOpaque(false); JP = jp; L = new MyJPopupMenu(JP); txtpanel = new JEricPanel(); txtpanel.setLayout(new javax.swing.BoxLayout(txtpanel, javax.swing.BoxLayout.X_AXIS)); txtpanel.setBorder(BorderFactory.createLineBorder(new Color(150, 150, 150), 1)); txtpanel.setOpaque(true); txtpanel.setBackground(Color.WHITE); wholepanel = new JEricPanel(); wholepanel.setLayout(new javax.swing.BoxLayout(wholepanel, javax.swing.BoxLayout.X_AXIS)); wholepanel.setBorder(BorderFactory.createEmptyBorder()); wholepanel.setOpaque(false); cntLBL.setOpaque(false); cntLBL.setText(""); cntLBL.setFont(new Font("System", 0, 9)); cntLBL.setHorizontalAlignment(SwingConstants.CENTER); cntLBL.setVerticalAlignment(SwingConstants.CENTER); JHelpPanel.fixsize(cntLBL, 20, 18); JTF = new JTextField(); JTF.setFont(new Font("System", 0, 11)); JTF.setForeground(new Color(50, 50, 50)); JTF.setBackground(new Color(255, 255, 255)); JTF.setBorder(BorderFactory.createEmptyBorder()); JTF.setMargin(new java.awt.Insets(0, 0, 1, 0)); JTF.addKeyListener(new KeyAdapter() { @Override public void keyReleased(final KeyEvent e) { if (JTF.getText().equals("")) { clearBTN.setVisible(false); } else { clearBTN.setVisible(true); } if ((e.getKeyCode() == KeyEvent.VK_ENTER) || (e.getKeyCode() == KeyEvent.VK_UP)) { hidepopup(); } else if (e.getKeyCode() == KeyEvent.VK_DOWN) { showpopup(); } else { doSearch(JTF.getText()); } } }); // JTF.setFocusable(true); JTF.addFocusListener(new FocusAdapter() { @Override public void focusGained(final FocusEvent e) { JTF.selectAll(); } }); final ImageIcon carimg = new ImageIcon(getClass().getResource("/eric/GUI/icons/themes/common/helpsearch1.gif")); popBTN = new JButton(carimg); popBTN.setBorder(BorderFactory.createEmptyBorder()); popBTN.setOpaque(true); popBTN.setContentAreaFilled(true); popBTN.setFocusable(false); popBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { showpopup(); } }); final ImageIcon carimg2 = new ImageIcon(getClass().getResource("/eric/GUI/icons/themes/common/helpsearch2.png")); final JButton backBTN = new JButton(carimg2); backBTN.setBorder(BorderFactory.createEmptyBorder()); backBTN.setOpaque(false); backBTN.setContentAreaFilled(false); backBTN.setFocusable(false); backBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { final int n = JP.History.size(); if (n < 2) { return; } JP.History.removeElementAt(n - 1); JHelpPanel.Subject = (String) JP.History.elementAt(n - 2); JP.History.removeElementAt(n - 2); JP.fill(true); } }); final ImageIcon carimg3 = new ImageIcon(getClass().getResource("/eric/GUI/icons/themes/common/helpsearch3.gif")); clearBTN = new JButton(carimg3); clearBTN.setBorder(BorderFactory.createEmptyBorder()); clearBTN.setOpaque(true); clearBTN.setContentAreaFilled(true); clearBTN.setFocusable(false); clearBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { JTF.setText(""); clearBTN.setVisible(false); doSearch(""); } }); clearBTN.setVisible(false); JHelpPanel.fixsize(popBTN, carimg.getIconWidth(), carimg.getIconHeight()); JHelpPanel.fixsize(clearBTN, carimg3.getIconWidth(), carimg3.getIconHeight()); txtpanel.add(cntLBL); txtpanel.add(popBTN); txtpanel.add(JHelpPanel.margin(3)); txtpanel.add(JTF); txtpanel.add(clearBTN); wholepanel.add(JHelpPanel.margin(5)); wholepanel.add(txtpanel); wholepanel.add(JHelpPanel.margin(3)); wholepanel.add(backBTN); this.add(JHelpPanel.vmargin(3)); this.add(wholepanel); } void showpopup() { if (L.Count > 1) { L.show(popBTN, 10, 20); } } void hidepopup() { L.setVisible(false); } boolean ispopupvisible() { return L.isVisible(); } void doSearch(final String s) { if (s.equals("")) { JP.Search = null; } else { JP.Search = s; } JHelpPanel.Subject = "start"; JP.fill(true); JP.Search = null; } void setCount() { if (L.Count > 1) { cntLBL.setText("(" + (L.Count - 1) + ")"); } else { cntLBL.setText(""); } } } class MyJPopupMenuItem extends JMenuItem { private static final long serialVersionUID = 1L; String STR; JHelpPanel JP; public MyJPopupMenuItem(final JHelpPanel jp, final String s) { super(s.replaceAll("", "").replace("
", ", ")); STR = s; JP = jp; setFont(new Font("System", 0, 11)); addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent arg0) { JP.TSearch.L.setVisible(false); JP.TSearch.JTF.setText(""); JP.TSearch.clearBTN.setVisible(false); final String s = STR; final Enumeration ev = JP.Other.elements(); while (ev.hasMoreElements()) { final String p[] = (String[]) ev.nextElement(); if (p[1].equals(s)) { JHelpPanel.Subject = p[0]; JP.fill(true); break; } } } }); } } class MyJPopupMenu extends JPopupMenu { private static final long serialVersionUID = 1L; int Count = 0; JHelpPanel JP; public MyJPopupMenu(final JHelpPanel jp) { super(); JP = jp; setFont(new Font("System", 0, 11)); setFocusable(false); } public void addI(final String s) { Count++; add(new MyJPopupMenuItem(JP, s)); } } class MyJTextPane extends JEditorPane implements HyperlinkListener { private static final long serialVersionUID = 1L; String content; HTMLEditorKit editorkit; HTMLDocument doc; JHelpPanel JP; public MyJTextPane(final JHelpPanel jp) { super(); JP = jp; this.setContentType("text/html;"); editorkit = (HTMLEditorKit) getEditorKit(); doc = (HTMLDocument) getDocument(); final StyleSheet myStyleSheet = new StyleSheet(); myStyleSheet.addRule("body {color: #333333;font-family: Verdana, Arial, Helvetica, sans-serif;" + "text-align: justify;font-size: 10px;background-color: #F1F3F9;}"); myStyleSheet.addRule("ul {text-align: left;list-style-type: disc;padding-left: 15px;list-style-position: outside;}"); myStyleSheet.addRule(".pfooter {text-align: center;font-size: 10px;padding-bottom: 5px;" + "padding-top: 5px;background-color: #eaedf3;}"); myStyleSheet.addRule(".pfootertitle {font-weight: bold;text-align: center;font-size: 10px;padding-bottom: 5px;" + "padding-top: 5px;background-color: #DBDDE3;}"); myStyleSheet.addRule("a {color: #0a9100;text-decoration: none;}"); myStyleSheet.addRule(".aanchor {color: #CC6633;}"); myStyleSheet.addRule(".centered {text-align: center;}"); myStyleSheet.addRule(".comment {text-align: center;font-size: 9px;font-style: oblique;font-weight: normal;}"); myStyleSheet.addRule(".comment2 {text-align: justify;font-size: 9px;font-style: oblique;font-weight: normal;}"); myStyleSheet.addRule(".ttle {color: #000000;font-family: Verdana, Arial, Helvetica, sans-serif;" + "text-align: center;font-weight: bold;font-size: 11px;background-color: #DBDDE3;}"); myStyleSheet.addRule(".tab {border-width: 1px;border-color: #909090;border-style:solid;}"); myStyleSheet.addRule(".tds {border-width: 1px;border-color: #909090;border-style:solid;background-color: #DBDDE3;}"); myStyleSheet.addRule(".image {border-width: 1px;border-color: #909090;border-style:solid;background-color: #F1F3F9;}"); editorkit.setStyleSheet(myStyleSheet); this.setEditable(false); addHyperlinkListener(this); } void fixImagePath() { final String SP = System.getProperty("file.separator"); // Check if there are external images (inside the docs folder of // carmetal_config directory Pattern p = Pattern.compile("(]*src=\")(images/)([^\"]+)(\"[^>]*>)", Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(content); StringBuffer sb = new StringBuffer(); while (m.find()) { String myst = "

" + m.group(1) + "file:///"; myst += Global.getHomeDirectory().replace("\\", "\\\\"); myst += "docs/images/".replace("/", SP).replace("\\", "\\\\"); myst += m.group(3).replace("/", SP).replace("\\", "\\\\"); // on windows, the img tag seems to need the width and height // attribute : final ImageIcon myimg = new ImageIcon(Global.getHomeDirectory() + "docs/images/" + m.group(3)); if (myimg != null) { myst += "\" width=\"" + myimg.getIconWidth() + "\" height=\"" + myimg.getIconHeight() + "\""; } myst += m.group(4); myst += "

"; m.appendReplacement(sb, myst); } m.appendTail(sb); m.reset(); content = sb.toString(); // Check if there are internal images (inside the jar archive with root // eric/GUI/icons/ : p = Pattern.compile("(]*src=\")(#)([^\"]+)(\"[^>]*>)", Pattern.CASE_INSENSITIVE); m = p.matcher(content); sb = new StringBuffer(); while (m.find()) { final URL myIMG = Global.getPath("eric/GUI/icons/" + m.group(3)); if (myIMG == null) continue; String myst = m.group(1); myst += myIMG.toString(); myst += m.group(4); m.appendReplacement(sb, myst); } m.appendTail(sb); m.reset(); content = sb.toString(); } void setTitle() { if (content.equals("")) { return; } content = content.replace("href=\"#", "class=\"aanchor\" href=\"#"); final URL myIMG = Global.getPath("eric/GUI/icons/palette/" + JHelpPanel.Subject + ".png"); final String mytitle = content.substring(0, content.indexOf("
")); String tag = ""; if (myIMG == null) { tag = ""; tag += ""; tag += "
" + mytitle + "
"; } else { tag = ""; tag += ""; tag += ""; tag += "
" + mytitle + "

"; } content = content.replaceFirst(mytitle, tag); } void setFooter() { final Enumeration e = JP.Related.elements(); String tag = ""; while (e.hasMoreElements()) { final String topic = (String) e.nextElement(); String topicTitle = ""; final Enumeration ev = JP.Other.elements(); while (ev.hasMoreElements()) { final String s[] = (String[]) ev.nextElement(); if (s[0].equals(topic)) { topicTitle = s[1]; break; } } tag += "" + topicTitle + ""; } if (!tag.equals("")) { content += ""; content += ""; content += tag; content += "
" + Global.Loc("contexthelp.seealso") + "
"; } } void setContent(final String s) { try { content = s; fixImagePath(); setTitle(); setFooter(); editorkit.insertHTML(doc, doc.getLength(), content, 0, 0, null); } catch (final Exception ex) { } // JP.focusTxt(); } @Override public void hyperlinkUpdate(final HyperlinkEvent r) { if (r.getEventType() == javax.swing.event.HyperlinkEvent.EventType.ACTIVATED) { String lnk = ""; if (r.getDescription().startsWith("#")) { lnk = r.getDescription().substring(1); JHelpPanel.Subject = lnk; JP.clearSearchTxtField(); JP.fill(true); return; } else { lnk = r.getDescription(); if (!lnk.startsWith("http://")) { lnk = "http://" + lnk; } JBrowserLauncher.openURL(lnk); return; } } } }carmetal-4.3/src/eric/JLicence.java000066400000000000000000000132401417122252700172030ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import eric.GUI.themes; import java.awt.Cursor; import javax.swing.JComponent; import rene.gui.Global; /** * * @author erichake */ public class JLicence extends javax.swing.JFrame { /** * */ private static final long serialVersionUID = 1L; @Override public void paint(final java.awt.Graphics g) { super.paint(g); final java.awt.Dimension d = this.getSize(); g.drawImage(themes.getImage("backcontrols.gif"), 0, 0, d.width, d.height, this); // super.paint(g); mytxt.repaint(); mylink.repaint(); } /** Creates new form JLicence */ public JLicence(JComponent jp) { initComponents(); mytxt.setText(Global.Loc("licence.txt")); mytxt.setOpaque(false); mylink .setText("http://www.gnu.org/licenses/gpl.txt"); mylink.setOpaque(false); mylink.setCursor(new Cursor(Cursor.HAND_CURSOR)); this.setLocationRelativeTo(jp); this.setVisible(true); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ // private void initComponents() { jPanel2 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); mytxt = new javax.swing.JLabel(); mylink = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); getContentPane().setLayout( new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS)); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Licence"); setResizable(false); setUndecorated(true); addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { formMousePressed(evt); } }); addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowDeactivated(final java.awt.event.WindowEvent evt) { formWindowDeactivated(evt); } }); jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.X_AXIS)); jPanel2.setMaximumSize(new java.awt.Dimension(320, 10)); jPanel2.setMinimumSize(new java.awt.Dimension(320, 10)); jPanel2.setPreferredSize(new java.awt.Dimension(320, 10)); getContentPane().add(jPanel2); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.Y_AXIS)); jPanel1.setOpaque(false); mytxt.setBackground(new java.awt.Color(255, 255, 255)); mytxt.setFont(new java.awt.Font("Dialog", 0, 12)); mytxt.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); mytxt.setText("txt"); mytxt.setAlignmentX(0.5F); mytxt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); mytxt.setMaximumSize(new java.awt.Dimension(300, 95)); mytxt.setMinimumSize(new java.awt.Dimension(300, 95)); mytxt.setPreferredSize(new java.awt.Dimension(300, 95)); mytxt.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { mytxtMousePressed(evt); } }); jPanel1.add(mytxt); mylink.setBackground(new java.awt.Color(255, 255, 255)); mylink.setFont(new java.awt.Font("Dialog", 0, 12)); mylink.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); mylink.setText("coucou"); mylink.setAlignmentX(0.5F); mylink.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); mylink.setMaximumSize(new java.awt.Dimension(300, 40)); mylink.setMinimumSize(new java.awt.Dimension(300, 40)); mylink.setOpaque(true); mylink.setPreferredSize(new java.awt.Dimension(300, 40)); mylink.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { mylinkMousePressed(evt); } }); jPanel1.add(mylink); getContentPane().add(jPanel1); jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.X_AXIS)); jPanel3.setMaximumSize(new java.awt.Dimension(320, 10)); jPanel3.setMinimumSize(new java.awt.Dimension(320, 10)); jPanel3.setPreferredSize(new java.awt.Dimension(320, 10)); getContentPane().add(jPanel3); pack(); }// private void mylinkMousePressed(final java.awt.event.MouseEvent evt) { JBrowserLauncher.openURL("http://www.gnu.org/licenses/gpl.txt"); this.dispose();// TODO add your handling code here: } private void formWindowDeactivated(final java.awt.event.WindowEvent evt) { this.dispose();// TODO add your handling code here: } private void formMousePressed(final java.awt.event.MouseEvent evt) { this.dispose();// TODO add your handling code here: } private void mytxtMousePressed(final java.awt.event.MouseEvent evt) { this.dispose();// TODO add your handling code here: } // Variables declaration - do not modify private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JLabel mylink; private javax.swing.JLabel mytxt; // End of variables declaration } carmetal-4.3/src/eric/JLogoWindow.java000066400000000000000000000166341417122252700177430ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import java.awt.Toolkit; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.SwingUtilities; import rene.gui.Global; public class JLogoWindow extends JFrame { private static int W=300, H=150; private static myBar Bar=null; private static int BW=280, BH=7, BY=110;// ProgressBar dimensions private static volatile int BStep=0; private static final double BStepMax=1996; /** * */ private static final long serialVersionUID=1L; private final ImageIcon backimage=new ImageIcon(getClass().getResource("/rene/zirkel/logowindow.jpg")); public JLogoWindow(final boolean aboutBox) { final Dimension dim=Toolkit.getDefaultToolkit().getScreenSize(); setSize(W, H); this.setLocation((dim.width-W)/2, (dim.height-H)/2); this.setUndecorated(true); setAlwaysOnTop(true); setPreferredSize(new java.awt.Dimension(W, H)); setResizable(false); setContentPane(new myPanel()); if (!aboutBox) { Bar=new myBar(); getContentPane().add(Bar); } } static public JLogoWindow JLW; static public void progress(String message) { // System.out.print(BStep+": "+message); // // int p=(int) Math.round((BW/BStepMax)*BStep); // System.out.println(" : "+p); if (Bar!=null) { BStep++; Bar.repaint(); } } static public void ShowLogoWindow(final boolean aboutBox) { Thread logothread=new Thread() { @Override public void run() { JLW=new JLogoWindow(aboutBox); if (aboutBox) { JLW.addWindowListener(new WindowAdapter() { @Override public void windowDeactivated(WindowEvent e) { DisposeLogoWindow(); } }); JLW.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { DisposeLogoWindow(); } }); } JLW.setVisible(true); // DrawString est extrêmement lent sur certaines machines virtuelles... // Cela oblige à certaines contorsions si on veut que le dialogue // apparaisse immédiatement avec l'image de fond, en attendant le texte... JLW.repaint(); SwingUtilities.invokeLater(new Runnable() { public void run() { JLW.repaint(); } }); } }; logothread.setPriority(Thread.MAX_PRIORITY); logothread.start(); } static public void DisposeLogoWindow() { SwingUtilities.invokeLater(new Runnable() { public void run() { if (JLW!=null) { JLW.dispose(); JLW=null; Bar=null; BStep=0; } } }); } class myBar extends javax.swing.JPanel { @Override public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2=(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); Dimension d=getSize(); g2.setColor(new Color(255, 255, 255, 230)); int p=(int) Math.round(((BW-4)/BStepMax)*BStep); g2.fillRect(2, 2, p, BH-4); g2.setColor(Color.white); g2.drawRect(0, 0, BW, BH); } public myBar() { setBounds((W-BW)/2, BY, BW, BH); setOpaque(false); } } class myPanel extends javax.swing.JPanel { private boolean firstPaint=true; public myPanel() { super(); setLayout(null); } @Override public void paintComponent(Graphics g) { super.paintComponent(g); final Graphics2D g2=(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); final java.awt.Dimension d=this.getSize(); g2.drawImage(backimage.getImage(), 0, 0, d.width, d.height, this); if (firstPaint) { firstPaint=false; } else { paintStrings(g2); } } public void paintStrings(final Graphics2D g2) { try { g2.setFont(new Font("Dialog", Font.ITALIC, 13)); FontMetrics fm=g2.getFontMetrics(); String s=Global.Loc("splash.message"); g2.setColor(new Color(191, 215, 255)); int w=fm.stringWidth(s); g2.drawString(s, (W-w)/2, 60); g2.setFont(new Font("Dialog", Font.PLAIN, 12)); fm=g2.getFontMetrics(); s=Global.name("version")+" "+Global.name("program.version"); g2.setColor(Color.white); w=fm.stringWidth(s); g2.drawString(s, (W-w)/2, 85); s="Java : "+System.getProperty("java.version"); g2.setColor(Color.white); w=fm.stringWidth(s); g2.drawString(s, (W-w)/2, 100); } catch (Exception e) { } } } } carmetal-4.3/src/eric/JMacOShandler.java000066400000000000000000000032561417122252700201470ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import javax.swing.SwingUtilities; import com.apple.eawt.Application; import com.apple.eawt.ApplicationAdapter; import eric.GUI.pipe_tools; /** * * @author erichake */ public class JMacOShandler extends Application { /** Creates a new instance of JMacOShandler */ public JMacOShandler() { addApplicationListener(new OpenHandler()); } class OpenHandler extends ApplicationAdapter { @Override public void handleOpenFile(final com.apple.eawt.ApplicationEvent evt) { final String filename=evt.getFilename(); if (FileTools.isStartup()) { FileTools.addStartupFile(filename); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { FileTools.open(filename); } }); } } @Override public void handleQuit(final com.apple.eawt.ApplicationEvent e) { pipe_tools.quitAll(); } } } carmetal-4.3/src/eric/JMacroPrompt.java000066400000000000000000000147331417122252700201140ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import java.awt.Dimension; import java.awt.Frame; import java.awt.Point; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.SwingConstants; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.expression.Expression; import rene.zirkel.objects.ConstructionObject; import eric.bar.JProperties; import javax.swing.JPanel; import rene.gui.Global; /** * * @author erichake */ public class JMacroPrompt extends JDialog { /** * */ private static final long serialVersionUID = 1L; // boolean Valid=false; JTextField T = new JTextField(); // String S=""; String InitValue = ""; ConstructionObject OC; ZirkelCanvas ZC; int WindowEventCount = 0; Color TitleColor = new Color(200, 200, 200); Color TxtColor = new Color(250, 250, 250); Color DlogColor = new Color(90, 90, 90); private void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } private JEricPanel margin(final int w) { final JEricPanel mypan = new JEricPanel(); fixsize(mypan, w, 1); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } private boolean isValidExpression(final String myexp) { boolean bool = true; try { final Expression exp = new Expression(myexp, OC.getConstruction(), OC); if (!(exp.isValid())) bool = false; } catch (final Exception ex) { bool = false; } return bool; } public JMacroPrompt(final Frame f, final ZirkelCanvas zc, final String oName, final ConstructionObject oc) { super(f, true); OC = oc; ZC = zc; try { InitValue = String.valueOf(OC.getValue()); } catch (final Exception ex) { } final JPanel content = (JPanel) this.getContentPane(); this.setUndecorated(true); content.setLayout(new javax.swing.BoxLayout(content, javax.swing.BoxLayout.Y_AXIS)); content.setBackground(DlogColor); // this.setBackground(new Color(0.2f, 0.2f, 0.2f, 0.5f)); // content.setOpaque(false); final JLabel p1 = new JLabel(Global.name("macro.prompt.prompt") + " :"); p1.setHorizontalAlignment(SwingConstants.CENTER); fixsize(p1, 300, 15); p1.setAlignmentX(0.5f); p1.setOpaque(false); p1.setFont(new java.awt.Font(Global.GlobalFont, 1, 12)); p1.setForeground(TitleColor); final JEricPanel p2 = new JEricPanel(); p2 .setLayout(new javax.swing.BoxLayout(p2, javax.swing.BoxLayout.X_AXIS)); final JLabel p21 = new JLabel(oName); final JButton okbtn = new JButton(); okbtn.setIcon(new ImageIcon(getClass().getResource( "/eric/GUI/icons/palette/Mvalid.png"))); okbtn.setBorder(BorderFactory.createEmptyBorder()); okbtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { doclose(); } }); okbtn.setContentAreaFilled(false); final JButton cancelbtn = new JButton(); cancelbtn.setIcon(new ImageIcon(getClass().getResource( "/eric/GUI/icons/palette/Mcancel.png"))); cancelbtn.setBorder(BorderFactory.createEmptyBorder()); cancelbtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { T.setText(InitValue); try { OC.setExpression(T.getText(), OC.getConstruction()); OC.setSlider(false); } catch (final Exception ex) { } ZC.recompute(); ZC.validate(); ZC.repaint(); T.requestFocus(); T.selectAll(); } }); cancelbtn.setContentAreaFilled(false); fixsize(p21, 120, 18); fixsize(T, 118, 18); p2.add(margin(5)); p2.add(p21); p2.add(margin(10)); p2.add(T); p2.add(margin(5)); p2.add(cancelbtn); p2.add(margin(5)); p2.add(okbtn); p2.add(margin(5)); fixsize(p2, 300, 30); p2.setAlignmentX(0.5f); p2.setOpaque(false); p21.setOpaque(false); p21.setFont(new java.awt.Font(Global.GlobalFont, 1, 12)); T.setFont(new java.awt.Font(Global.GlobalFont, 1, 12)); p21.setForeground(TxtColor); T.setText(JProperties.Point_To_Comma(InitValue, OC.getConstruction(), true)); content.add(p1); content.add(p2); T.addKeyListener(new KeyAdapter() { @Override public void keyPressed(final KeyEvent e) { if ((e.getKeyCode() == KeyEvent.VK_ENTER) || (e.getKeyCode() == KeyEvent.VK_ESCAPE)) { doclose(); } } @Override public void keyReleased(final KeyEvent e) { final String e1 = JProperties.Comma_To_Point(T.getText(), OC .getConstruction(), true); final String myexp = (isValidExpression(e1)) ? e1 : "invalid"; try { OC.setExpression(myexp, OC.getConstruction()); OC.setSlider(false); } catch (final Exception ex) { } ZC.recompute(); ZC.validate(); ZC.repaint(); } }); this.addWindowListener(new WindowAdapter() { @Override public void windowOpened(final WindowEvent e) { T.requestFocus(); T.selectAll(); } }); pack(); final Point pt = zc.getLocationOnScreen(); pt.x += zc.getSize().width / 2 - this.getSize().width / 2; pt.y += zc.getSize().height - this.getSize().height; this.setLocation(pt); this.setVisible(true); } public void doclose() { final String e1 = JProperties.Comma_To_Point(T.getText(), OC .getConstruction(), true); final String myexp = (isValidExpression(e1)) ? e1 : InitValue; try { OC.setExpression(myexp, OC.getConstruction()); OC.setSlider(false); } catch (final Exception ex) { } ZC.recompute(); ZC.validate(); ZC.repaint(); setVisible(false); dispose(); } } carmetal-4.3/src/eric/JPointName.java000066400000000000000000000155471417122252700175470ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.JButton; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; import rene.zirkel.construction.Construction; import rene.zirkel.objects.ConstructionObject; /** * * @author erichake */ public class JPointName { // private String StartLetter="\u03b6"; private static String GenericLetter = "P"; private static String majLettersSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; private static String minLettersSet = "abcdefghijklmnopqrstuvwxyz"; private static String greekmajLettersSet = "\u0391\u0392\u0393\u0394\u0395\u0396" + "\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3" + "\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9"; private static String greekminLettersSet = "\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9" + "\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C4\u03C5\u03C6" + "\u03C7\u03C8\u03C9"; private static ArrayList LettersSet = new ArrayList(); private String LetterSuffix = ""; // Ct should be the ZF.ZC.getConstruction() object : private Construction ZCcn = null; private JButton PaletteBtn = null; private JZirkelCanvas JZF = null; public static int minLettersSetCode = 1; // private String Letters=majLettersSet; // 0:majLettersSet , 1:minLettersSet , 2:greekmajLettersSet , // 3:greekminLettersSet private int LetterSetCode = 0; private int StartLetter = 0; /** * Creates a new instance of JPointLabel * * @param jzf */ public JPointName(final JZirkelCanvas jzf) { JZF = jzf; ZCcn = JZF.getZF().ZC.getConstruction(); PaletteBtn = new JPaletteButton(JZF); } public JPointName() { LettersSet.add(majLettersSet); LettersSet.add(minLettersSet); LettersSet.add(greekmajLettersSet); LettersSet.add(greekminLettersSet); } public String getCurrentLetterSet() { return (String) LettersSet.get(LetterSetCode); } public int getCurrentLetterSetCode() { return LetterSetCode; } static void fixsize(final Component cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } public JButton getPaletteButton(){ return PaletteBtn; } public void addPaletteJLabel(final JEricPanel jp) { fixsize(PaletteBtn, 28, jp.getSize().height); jp.add(PaletteBtn); } public void setEnabledJLabel(final boolean bool) { PaletteBtn.setEnabled(bool); } public void addSuffixChar() { if (LetterSuffix.equals("''")) LetterSuffix = ""; else LetterSuffix += "'"; } void setSuffixChar(final String suff) { LetterSuffix = suff; } public static String getGenericName(final Construction myC) { int i = 1; ConstructionObject o = myC.find(GenericLetter + i); while (o != null) { i++; o = myC.find(GenericLetter + i); } return (GenericLetter + i); } public String getBetterName(final Construction myC, final boolean setPaletteTxt) { final String Letters = getCurrentLetterSet(); String s = Letters.substring(StartLetter, StartLetter + 1); if (ZCcn == null) { s = getGenericName(myC); } else if (Global.getParameter("options.point.shownames", false)) { int i = Letters.indexOf(s); final int k = i; s += LetterSuffix; ConstructionObject o = ZCcn.find(s); while ((i < (Letters.length() - 1)) && (o != null)) { i++; s = Letters.substring(i, i + 1) + LetterSuffix; o = ZCcn.find(s); } i = -1; while ((i < k) && (o != null)) { i++; s = Letters.substring(i, i + 1) + LetterSuffix; o = ZCcn.find(s); } if (o != null) { s = getGenericName(ZCcn); } } else s = getGenericName(ZCcn); if ((PaletteBtn != null) && (setPaletteTxt)) PaletteBtn.setText(s); return s; } public static int findSet(final String s) { for (int i = 0; i < LettersSet.size(); i++) { final String mySet = (String) LettersSet.get(i); if (mySet.indexOf(s) != -1) return i; } return -1; } public boolean isLetterAllowed(final String s) { return (getCurrentLetterSet().indexOf(s) != -1); } public boolean isLetterAccepted(final String s) { if (ZCcn != null) return (ZCcn.find(s) == null); else return false; } public String setStartLetter(final String s) { if (isLetterAllowed(s)) { StartLetter = getCurrentLetterSet().indexOf(s); } return getBetterName(null, true); } public String setLetterSet(final int i) { LetterSetCode = i; StartLetter = 0; return getBetterName(null, true); } } class JPaletteButton extends JButton implements MouseListener { /** * */ private static final long serialVersionUID = 1L; private final JZirkelCanvas JZF; int[] x = { 0, 10, 0 }; int[] y = { 0, 10, 10 }; @Override public void paintComponent(final java.awt.Graphics g) { final Dimension d = this.getSize(); final int sze = 6; x[0] = d.width - sze; y[0] = d.height; x[1] = d.width; y[1] = d.height - sze; x[2] = d.width; y[2] = d.height; final Graphics2D g2 = (Graphics2D) g; g2.setComposite(AlphaComposite.SrcOver); g2.setColor(new Color(50, 50, 50)); g2.fillPolygon(x, y, 3); g2 .setComposite(AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 1f)); super.paintComponent(g); } public JPaletteButton(final JZirkelCanvas jzf) { JZF = jzf; setOpaque(false); setContentAreaFilled(false); setBorder(BorderFactory.createEmptyBorder()); setFont(new java.awt.Font(Global.GlobalFont, 1, 14)); setForeground(new Color(50, 50, 50)); setHorizontalAlignment(SwingConstants.CENTER); setVerticalAlignment(SwingConstants.CENTER); addMouseListener(this); } public void mouseClicked(final MouseEvent e) { } public void mousePressed(final MouseEvent e) { System.out.println("mousePressed"); if (isEnabled()) { JZF.getZF().setinfo("nom_points", false); new JCharacterPalette(JZF, this); } } public void mouseReleased(final MouseEvent e) { } public void mouseEntered(final MouseEvent e) { } public void mouseExited(final MouseEvent e) { } } carmetal-4.3/src/eric/JSelectPopup.java000066400000000000000000000133151417122252700201070ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric; import java.awt.Color; import java.awt.Font; import java.awt.MouseInfo; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.Vector; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import javax.swing.SwingUtilities; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; import rene.gui.Global; import rene.util.MyVector; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.tools.EditTool; /** * * @author erichake */ // This class is only instanciated by JSelectPopup // It is a "modal" popup for complex tools. Popup menu appear // in a 1 pixel w/h modal JDialog : it seems it's in ZirkelCanvas, but it's // not... public class JSelectPopup extends JPopupMenu implements MouseListener, PopupMenuListener { /** * */ private static final long serialVersionUID = 1L; private static int xclic,yclic; private static boolean iscaller=false; ZirkelCanvas ZC; Vector V = new Vector(); String CallerObject = "RightClick"; boolean RightClicked; public JSelectPopup(final ZirkelCanvas zc,final MyVector v, boolean RightClicked) { init(zc, v); addPopupMenuListener(this); Point loc=MouseInfo.getPointerInfo().getLocation(); SwingUtilities.convertPointFromScreen(loc, zc); xclic=loc.x; yclic=loc.y; show(zc, loc.x, loc.y); this.RightClicked = RightClicked; } public void init(final ZirkelCanvas zc, final MyVector v) { ZC = zc; // A bit of a hack : need to know where was the calling method... // getStackTrace stores the whole history of caller methods final StackTraceElement[] trace = new Throwable().getStackTrace(); for (final StackTraceElement element : trace) { if (element.getClassName().startsWith("rene.zirkel.tools")) { final String s = element.getClassName(); CallerObject = s.split("\\.")[3]; break; } } String aa = ""; try { aa = Global.Loc("selectpopup." + CallerObject); } catch (final Exception e) { } JMenuItem m = new JMenuItem(aa + Global.Loc("selectpopup.whatobject")); m.setBackground(Color.WHITE); m.setForeground(Color.DARK_GRAY); m.setFont(new Font("Dialog", 3, 12)); m.setActionCommand("-1,false"); m.setEnabled(false); m.addMouseListener(this); this.add(m); for (int i = 0; i < v.size(); i++) { final ConstructionObject o = (ConstructionObject) v.elementAt(i); V.add(o); final String tp = o.getName() + " : " + o.getText().split(" ")[0]; m = new JMenuItem(tp); m.setForeground(o.getColor()); m.setBackground(new Color(240, 240, 240)); m.setFont(new Font("Dialog", 1, 12)); m.setActionCommand(String.valueOf(i) + "," + o.selected()); m.setRolloverEnabled(true); m.addMouseListener(this); m.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { final JMenuItem jm = (JMenuItem) event.getSource(); doaction(jm.getActionCommand(), event.getModifiers()); } }); this.add(m); } } public static int getMouseX(){ return xclic; } public static int getMouseY(){ return yclic; } public static boolean isCallerObject(){ return iscaller; } public int row(final String str) { return Integer.parseInt(str.split(",")[0]); } public boolean sel(final String str) { final String bl = str.split(",")[1].toLowerCase(); return (bl.equals("true")); } public void doaction(final String str, final int modifier) { final ConstructionObject o = (ConstructionObject) V.elementAt(row(str)); o.setSelected(sel(str)); iscaller=true; if(RightClicked){ ZC.clearSelected(); eric.bar.JPropertiesBar.EditObject(o, true, false); } else { // System.out.println(o.getName()); ZC.setConstructionObject(o); } iscaller=false; } public void mouseClicked(final MouseEvent e) { } public void mousePressed(final MouseEvent e) { } public void mouseReleased(final MouseEvent e) { } public void mouseEntered(final MouseEvent e) { final JMenuItem jm = (JMenuItem) e.getSource(); final int i = row(jm.getActionCommand()); if ((i > -1) && (!sel(jm.getActionCommand()))) { final ConstructionObject o = (ConstructionObject) V.elementAt(i); o.setSelected(true); ZC.repaint(); } } public void mouseExited(final MouseEvent e) { final JMenuItem jm = (JMenuItem) e.getSource(); final int i = row(jm.getActionCommand()); if ((i > -1) && (!sel(jm.getActionCommand()))) { final ConstructionObject o = (ConstructionObject) V.elementAt(i); o.setSelected(false); ZC.repaint(); } } // public void popupMenuWillBecomeVisible(final PopupMenuEvent e) { } public void popupMenuWillBecomeInvisible(final PopupMenuEvent e) { } public void popupMenuCanceled(final PopupMenuEvent e) { } } carmetal-4.3/src/eric/JSprogram/000077500000000000000000000000001417122252700165705ustar00rootroot00000000000000carmetal-4.3/src/eric/JSprogram/.DS_Store000066400000000000000000000200041417122252700202470ustar00rootroot00000000000000Bud1 ignore  @€ @€ @€ @ .cvsignoreIlocblobÌÿÿÿÿÿÿ .DS_StoreIlocblobRÿÿÿÿÿÿ Const.javaIlocblobF(ÿÿÿÿÿÿJSBlankIcon.javaIlocblobÌ(ÿÿÿÿÿÿ JSButton.javaIlocblobR(ÿÿÿÿÿÿJScriptsLeftPanel.javaIlocblobØ(ÿÿÿÿÿÿ JSEditor.formIlocblob^(ÿÿÿÿÿÿ JSEditor.javaIlocblobä(ÿÿJSFunctions.javaIlocblobj(ÿÿ JSIcon.javaIlocblobð(ÿÿÿÿÿÿJSOuputConsole.javaIlocblobv(ÿÿÿÿÿÿLineNumber.javaIlocblobF˜ÿÿÿÿÿÿLineNumberView.javaIlocblob̘ÿÿÿÿÿÿmyJTitleBar.javaIlocblobR˜ÿÿÿÿÿÿmyJVerticalSeparatorPanel.javaIlocblobؘÿÿÿÿÿÿmyStatusBarPanel.javaIlocblob^˜ÿÿÿÿÿÿScriptItem.javaIlocblobä˜ÿÿScriptItemsArray.javaIlocblobj˜ÿÿÿÿÿÿScriptPanel.javaIlocblobð˜ÿÿÿÿÿÿScriptsManager.javaIlocblobv˜ÿÿÿÿÿÿScriptThread.javaIlocblobFÿÿ E DSDB `€ @€ @€ @lobv˜ÿÿÿÿÿÿScriptThread.javaIlocblobFÿÿcarmetal-4.3/src/eric/JSprogram/.cvsignore000077500000000000000000000000121417122252700205640ustar00rootroot00000000000000.DS_Store carmetal-4.3/src/eric/JSprogram/Const.java000066400000000000000000000005641417122252700205260ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; /** * * @author erichake */ public class Const{ public double BLA=3.5; public Const(){ } public double getBLA(){ return BLA; } public double m(String a,String b){ return 1.0; } public double m(String a){ return 2.0; } } carmetal-4.3/src/eric/JSprogram/JSBlankIcon.java000066400000000000000000000012761417122252700215360ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JButton; /** * * @author erichake */ public class JSBlankIcon extends JButton{ public JSBlankIcon(int size) { this.setBorder(BorderFactory.createEmptyBorder()); fixsize(size); this.setContentAreaFilled(false); this.setOpaque(false); } private void fixsize(final int sze) { final Dimension d=new Dimension(sze, sze); this.setMaximumSize(d); this.setMinimumSize(d); this.setPreferredSize(d); this.setSize(d); } } carmetal-4.3/src/eric/JSprogram/JSButton.java000066400000000000000000000104511417122252700211440ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.JSprogram; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.RenderingHints; import java.awt.Stroke; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.image.FilteredImageSource; import java.awt.image.ImageFilter; import javax.swing.BorderFactory; import javax.swing.GrayFilter; import javax.swing.ImageIcon; import javax.swing.JButton; import rene.zirkel.ZirkelCanvas; public class JSButton extends JButton implements MouseListener { // private final ImageIcon myimage; int iconsize=24; boolean isEntered=false; // Mouseover ? boolean isDisabled; private String Name; // String Shortcut; @Override public void paintComponent(final java.awt.Graphics g) { final java.awt.Dimension d=this.getSize(); final int w=d.width; final int h=d.height; if (g==null) { return; } super.paintComponent(g); final Graphics2D g2=(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); if (isDisabled) { final ImageFilter filter=new GrayFilter(true, 60); final Image disImage=createImage(new FilteredImageSource(themes.getPaletteImage(Name).getSource(), filter)); final ImageIcon myicn=new ImageIcon(disImage); g2.drawImage(myicn.getImage(), 0, 0, w, h, this); return; } //not elegant... just for one icon... if(Name.equals("monkey")){ g2.drawImage(themes.resizeExistingIcon("/eric/GUI/icons/themes/common/monkeybtn_off.png", 22, 15).getImage(), 1, 4, 22, 15, this); } else { g2.drawImage(themes.getPaletteImage(Name), 0, 0, w, h, this); } if (isEntered) { final AlphaComposite ac=AlphaComposite.getInstance( AlphaComposite.SRC_OVER, 0.1f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); final Stroke stroke=new BasicStroke(3f); g2.setStroke(stroke); g2.drawRect(1, 1, w-2, h-2); } } public JSButton(String name, int size,boolean enabled) { isDisabled=!enabled; iconsize=size; Name=name; this.setBorder(BorderFactory.createEmptyBorder()); fixsize(iconsize); this.addMouseListener(this); this.setContentAreaFilled(false); this.setOpaque(false); this.setFocusable(false); } private void fixsize(final int sze) { final Dimension d=new Dimension(sze, sze); this.setMaximumSize(d); this.setMinimumSize(d); this.setPreferredSize(d); this.setSize(d); } public void mouseClicked(MouseEvent e) { } public void mousePressed(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } public void mouseEntered(final MouseEvent e) { isEntered=true; repaint(); } public void mouseExited(final MouseEvent e) { isEntered=false; repaint(); } } carmetal-4.3/src/eric/JSprogram/JSEditor.form000066400000000000000000001546331417122252700211540ustar00rootroot00000000000000
carmetal-4.3/src/eric/JSprogram/JSEditor.java000066400000000000000000004512571417122252700211340ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * JConsole2.java * * Created on 20 avr. 2009, 08:24:41 * by Éric Hakenholz, * with somme addons by Alain Busser * wwith addons by Patrice Debrabant */ package eric.JSprogram; import eric.JBrowserLauncher; import eric.JZirkelCanvas; import eric.OS; import java.awt.Color; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Insets; import java.awt.MouseInfo; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.AbstractAction; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JOptionPane; import javax.swing.JTextPane; import javax.swing.KeyStroke; import javax.swing.SwingUtilities; import javax.swing.ToolTipManager; import javax.swing.border.BevelBorder; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.event.UndoableEditEvent; import javax.swing.event.UndoableEditListener; import javax.swing.text.AbstractDocument; import javax.swing.text.Element; import javax.swing.text.Style; import javax.swing.text.StyleConstants; import javax.swing.text.StyledDocument; import javax.swing.text.TabSet; import javax.swing.text.TabStop; import javax.swing.undo.CannotRedoException; import javax.swing.undo.CannotUndoException; import javax.swing.undo.UndoManager; import javax.swing.undo.UndoableEdit; import rene.gui.Global; /** * * @author erichake */ public class JSEditor extends javax.swing.JFrame { // final UndoManager undo=new UndoManager(); StyledDocument doc; final int ctrlkey=(OS.isMac())?InputEvent.META_DOWN_MASK :InputEvent.CTRL_DOWN_MASK; private boolean NoTypeNoClic=true; UndoManager undo; private Point origin; private Point winloc; private Point current; private int xx; private int yy; private int w; private int h; private int JSsel=0; private Pattern p; private boolean matchFound = false; protected static int TailleTexte=16; private String filename=""; // script in file private String scriptname=""; // script in figure private ScriptItem ITEM; private boolean FlagSimp=false; // Dibs : drapeau interface simplifiée private boolean infrench; // Dibs private boolean pseudoCode=false; private boolean ancienPseudoCode=false; /** Creates new form JConsole2 */ public JSEditor(ScriptItem item) { infrench = Global.getParameter("language", "").equals("fr"); ITEM=item; initComponents(); if (JZirkelCanvas.getCurrentZC().is3D()){ c_carmetal.setMaximumSize(new java.awt.Dimension(182, 380)); c_carmetal.setMinimumSize(new java.awt.Dimension(182, 370)); c_carmetal.setPreferredSize(new java.awt.Dimension(182, 370)); } else { c_carmetal.setMaximumSize(new java.awt.Dimension(182, 290)); c_carmetal.setMinimumSize(new java.awt.Dimension(182, 280)); c_carmetal.setPreferredSize(new java.awt.Dimension(182, 280)); } doc=script_area.getStyledDocument(); initCaRMetalBtns(); initScriptArea(); initUndoRedo(); initJSlist(); setWindowTitle(Loc("JSeditor.title")); if ((OS.isMac())) { fixsize(macpanel, 1, 1); winpanel.removeAll(); winpanel.add(title_lbl); winpanel.revalidate(); } else { fixsize(winpanel, 1, 1); } this.setLocationRelativeTo(JZirkelCanvas.getCurrentZC()); errorpanel.removeAll(); errorpanel.revalidate(); setTabs(script_area, 3); setSize(920, 690); // Show tool tips immediately ToolTipManager.sharedInstance().setInitialDelay(50); setVisible(true); } public void setBackBtnEnabled(boolean bool) { backbtn.setEnabled(bool); } public void setScriptName(String s) { scriptname=s; } public String getScriptName() { return scriptname; } public void setFileName(String s) { filename=s; } public String getFileName() { return filename; } public void setWindowTitle(String s) { title_lbl.setText(s); } public String getWindowTitle() { return title_lbl.getText(); } public boolean isFileOpened() { return !(filename.equals("")); } private void initJSlist() { } static void fixsize(final JComponent cp, final int w, final int h) { final Dimension d=new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } public void NoTypeNoClic() { NoTypeNoClic=true; } public void addOrChange(String st) { if (NoTypeNoClic) { undo.undo(); } else { NoTypeNoClic(); } addToScript(st); } public void addToScript(String st) { script_area.requestFocus(); script_area.replaceSelection(st); // syntaxColoring(); script_area.requestFocus(); } public void clearSelection() { script_area.replaceSelection(""); script_area.requestFocus(); } public JSIcon addCMicon(String obj, String syntax) { JSIcon jsi=new JSIcon(this, obj, syntax); jsi.setToolTipText(Loc("JSeditor."+obj)); c_carmetal.add(jsi); return jsi; } /** * * @param obj * @param example * @return */ public JSButton addJSIcon(String obj, final String example) { JSButton jb=new JSButton(obj, 24, true); jb.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { addToScript(example); } }); js_btns.add(jb); return jb; } public JSButton addCMicon2(String obj, final String example) { //Dibs JSButton jb=new JSButton(obj, 24, true); jb.setToolTipText(Loc("JSeditor."+obj)); jb.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { addToScript(example); } }); c_carmetal.add(jb); return jb; } public void addBlankIcon(int nb, int size) { for (int i=0; i=)", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"≥"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-1); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)(?:>=)", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"≥"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-1); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)(?:!=)", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"≠"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-1); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)(?:!=)", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"≠"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-1); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\*", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"×"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"\n]+(?:\"[^\"\n]*\"[^\"\n]*)+[^\"\n]*)\\*", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"×"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*\"[^\"\n]*)×([^\"\n]*\")", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"*"+String.valueOf(m.group(2))); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"\n]*\"[^\"\n]*)+\"[^\"\n]*)×([^\"\n]*\")", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"*"+String.valueOf(m.group(2))); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)Infinity", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"∞"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-7); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)Infinity", Pattern.MULTILINE); m = p.matcher(scp); matchFound = m.find(); while (matchFound) { posCurseur=script_area.getCaretPosition(); scp= m.replaceFirst(String.valueOf(m.group(1))+"∞"); script_area.setText(scp); try { script_area.setCaretPosition(posCurseur-7); } catch(Exception e) { } m = p.matcher(scp); matchFound = m.find(); } } else { pseudoCode=false; if (ancienPseudoCode) { js_btns.removeAll(); c_carmetal.removeAll(); initCaRMetalBtns(); js_btns.revalidate(); c_carmetal.revalidate(); ancienPseudoCode=false; } } scp="\n"+scp+"\n"; // scp=scp.replace("(", "@").replace(")", "@"); //CaRMetal javascript instructions coloring : String[] allnames=JSFunctions.getKeywords(); ArrayList carmetal_matches=new ArrayList(); for (int i=1; i js_matches=new ArrayList(); for (int i=0; i js_maths_matches=new ArrayList(); if (pseudoCode) { for (int i=0; i js_comments=new ArrayList(); // Matcher m = Pattern.compile("[\n\t]+(\\Q//\\E[^\n]*)", Pattern.MULTILINE).matcher(scp); Matcher m=Pattern.compile("(\\Q//\\E[^\n]*)", Pattern.MULTILINE).matcher(scp); while (m.find()) { js_comments.add(m.start(1)-1); js_comments.add(m.end(1)-1); // System.out.println("start="+m.start(1)+" end="+m.end(1)); // m = Pattern.compile("/\\*([^*]|\\*+[^*/])*\\*+/").matcher(scp); // m = Pattern.compile("(\\/\\*.*\\*\\/)").matcher(scp); // while (m.find()) { // js_comments.add(m.start(1) - 1); // js_comments.add(m.end(1) - 1); // marche pas, je sais pas pourquoi } // } // Text coloring : ArrayList text_matches=new ArrayList(); m=Pattern.compile("\"([^\"]*)\"", Pattern.MULTILINE).matcher(scp); while (m.find()) { text_matches.add(m.start(1)-1); text_matches.add(m.end(1)-1); // System.out.println("start="+m.start(1)+" end="+m.end(1)); } // Number coloring : ArrayList number_matches=new ArrayList(); // m = Pattern.compile("[\\+\\-]?\\d+(\\.\\d*)?([Ee][\\+\\-]?\\d+)?", Pattern.MULTILINE).matcher(scp); m=Pattern.compile("([0-9\\.]+)", Pattern.MULTILINE).matcher(scp); // m = Pattern.compile("([0-9\\.\\+\\-]+)", Pattern.MULTILINE).matcher(scp); while (m.find()) { number_matches.add(m.start(1)-1); number_matches.add(m.end(1)-1); // System.out.println("start="+m.start(1)+" end="+m.end(1)); } doc.setCharacterAttributes(0, script_area.getText().length(), script_area.getStyle("Normal"), true); for (int i=0; i,,)"); addCMicon("intersection", "Intersection(,,)"); addCMicon("midpoint", "Milieu(,,)"); addCMicon("bi_syma", "SymétrieAxiale(,,)"); addCMicon("bi_symc", "SymétrieCentrale(,,)"); addCMicon("bi_trans", "Translation(,,,)"); addCMicon("line", "Droite(,,)"); addCMicon("ray", "DemiDroite(,,)"); addCMicon("parallel", "Parallèle(,,)"); addCMicon("plumb", "Perpendiculaire(,,)"); addCMicon("bi_med", "Médiatrice(,,)"); addCMicon("bi_biss", "Bissectrice(,,,)"); addCMicon("segment", "Segment(,,)"); addCMicon("fixedsegment", "SegmentFixe(,,)"); addCMicon("vector", "Vecteur(,,)"); addCMicon("area", "Polygone(,)"); addCMicon("angle", "Angle(,,,)"); addCMicon("fixedangle", "AngleFixe(,,,)"); addCMicon("circle", "Cercle(,,)"); addCMicon("fixedcircle", "CercleRayon(,,)"); addCMicon("circle3", "Cercle3(,,,)"); addCMicon("bi_circ", "Cercle3pts(,,,)"); addCMicon("bi_arc", "Arc3pts(,,,)"); addCMicon("quadric", "Quadrique(,,,,,)"); // addCMicon("text", ""); addCMicon("expression", "Expression(,\"Votre expression\",,)"); addCMicon("text", "Texte(,\"Votre message\",,)"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "FonctionCartésienne(,-5,5,\"x^2-2*x+1\")"); addCMicon("parametricfunction", "FonctionParamétrique(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\")"); addCMicon("equationxy", "TracéImplicite(,\"x^3-2*x-y^2+1\")"); addCMicon("macro", "ExécuterMacro(,\"_x,_y,_z\")"); } else { addCMicon("point", " ⟵ Point(,,)"); addCMicon("intersection", " ⟵ Intersection(,,)"); addCMicon("midpoint", " ⟵ Milieu(,,)"); addCMicon("bi_syma", " ⟵ SymétrieAxiale(,,)"); addCMicon("bi_symc", " ⟵ SymétrieCentrale(,,)"); addCMicon("bi_trans", " ⟵ Translation(,,,)"); addCMicon("line", " ⟵ Droite(,,)"); addCMicon("ray", " ⟵ DemiDroite(,,)"); addCMicon("parallel", " ⟵ Parallèle(,,)"); addCMicon("plumb", " ⟵ Perpendiculaire(,,)"); addCMicon("bi_med", " ⟵ Médiatrice(,,)"); addCMicon("bi_biss", " ⟵ Bissectrice(,,,)"); addCMicon("segment", " ⟵ Segment(,,)"); addCMicon("fixedsegment", " ⟵ SegmentFixe(,,)"); addCMicon("vector", " ⟵ Vecteur(,,)"); addCMicon("area", " ⟵ Polygone(,)"); addCMicon("angle", " ⟵ Angle(,,,)"); addCMicon("fixedangle", " ⟵ AngleFixe(,,,)"); addCMicon("circle", " ⟵ Cercle(,,)"); addCMicon("fixedcircle", " ⟵ CercleRayon(,,)"); addCMicon("circle3", " ⟵ Cercle3(,,,)"); addCMicon("bi_circ", " ⟵ Cercle3pts(,,,)"); addCMicon("bi_arc", " ⟵ Arc3pts(,,,)"); addCMicon("quadric", " ⟵ Quadrique(,,,,,)"); // addCMicon("text", ""); addCMicon("expression", " ⟵ Expression(,\"Votre expression\",,)"); addCMicon("text", "=Texte(,\"Votre message\",,)"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", " ⟵ FonctionCartésienne(,-5,5,\"x^2-2*x+1\")"); addCMicon("parametricfunction", " ⟵ FonctionParamétrique(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\")"); addCMicon("equationxy", " ⟵ TracéImplicite(,\"x^3-2*x-y^2+1\")"); addCMicon("macro", " ⟵ ExécuterMacro(\"macroName\",\"_x,_y,_z\")"); } addSeparator(1); addCMicon("interactiveinput", " ⟵ EntréeInteractive(\"Message\",<\"Point,Segment,Line,Circle\">)"); addCMicon("aimant", "MettreObjetsMagnétiques(,)"); addCMicon("hide", "MettreCaché(,<\"vrai,faux\">)"); addCMicon("type2", "MettreTypePoint(,<\"square,circle,diamond,point,cross,dcross\">)"); addCMicon("color4", "MettreCouleur(,<\"green,blue,brown,cyan,red,black\">)"); addCMicon("thickness1", "MettreEpaisseur(,<\"thick,normal,thin\">)"); addCMicon("partial", "MettrePartiel(,<\"vrai,faux\">)"); addCMicon("showvalue", "MettreMontrerValeur(,<\"vrai,faux\">)"); addCMicon("showname", "MettreMontrerNom(,<\"vrai,faux\">)"); addCMicon("filled", "MettreRempli(,<\"vrai,faux\">)"); addCMicon("monkey", "Déplacer(,,)"); addCMicon("nail", "MettreFixe(,<\"vrai,faux\">)"); // addCMicon("dice", "=Math.ceil(Math.random()*6)"); addSeparator(1); addCMicon("tortue", "AttacherTortue()"); addCMicon("avancer", "Avancer()"); addCMicon("reculer", "Reculer()"); addCMicon("tournerG", "TournerGauche()"); addCMicon("tournerD", "TournerDroite()"); addCMicon("vitesse", "VitesseTortue()"); addCMicon2("crayonB", "BaisserStylo()"); addCMicon2("crayonH", "LeverStylo()"); addCMicon2("cacher", "CacherTortue()"); addCMicon2("montrer", "MontrerTortue()"); addCMicon("orienter", "OrienterTortue()"); addCMicon("viser", "Viser()"); addCMicon("avancer2", " ⟵ Avancer()"); //addCMicon("avancer3", " ⟵ Avancer()[1]"); //addCMicon("avancer4", "t ⟵ Avancer(); ⟵ t[0]; ⟵ t[1]"); addCMicon("reculer2", " ⟵ Reculer()"); //addCMicon("reculer3", " ⟵ Reculer()[1]"); //addCMicon("reculer4", "t ⟵ Reculer(); ⟵ t[0]; ⟵ t[1]"); addSeparator(1); if (FlagSimp) { addCMicon("bi_3Dcoords", "Point3D(,,,)"); addCMicon("bi_3Dproj", "Projection3D(,\"C,D,E\",)"); addCMicon("bi_3Dsymc", "SymétrieCentrale3D(,,)"); addCMicon("bi_3Dsymp", "Symétrie3DPlan(,\"C,D,E\",)"); addCMicon("bi_3Dtrans", "Translation3D(,,,)"); addCMicon("bi_3Dsphererayon", "SphèreRayon(,,)"); addCMicon("bi_3Dspherepoint", "Sphère(,,)"); addCMicon("bi_3Dcircle1", "Cercle3D(,,)"); addCMicon("bi_3Dcircle2", "CercleRayon3D(,,,\"E7\")"); addCMicon("bi_3Dcircle3pts", "Cercle3D3pts(,,,)"); } else { addCMicon("bi_3Dcoords", " ⟵ Point3D(,,,)"); addCMicon("bi_3Dproj", " ⟵ Projection3D(,\"_f,_g,_h\",)"); addCMicon("bi_3Dsymc", " ⟵ SymétrieCentrale3D(,,)"); addCMicon("bi_3Dsymp", " ⟵ Symétrie3DPlan(,\"_f,_g,_h\",)"); addCMicon("bi_3Dtrans", " ⟵ Translation3D(,,,)"); addCMicon("bi_3Dsphererayon", " ⟵ SphèreRayon(,,)"); addCMicon("bi_3Dspherepoint", " ⟵ Sphère(,,)"); addCMicon("bi_3Dcircle1", " ⟵ Cercle3D(,,)"); addCMicon("bi_3Dcircle2", " ⟵ CercleRayon3D(,,,\"E7\")"); addCMicon("bi_3Dcircle3pts", " ⟵ Cercle3D3pts(,,,)"); } addSeparator(1); addCMicon("tournerG3D", "TournerGauche()"); addCMicon("tournerD3D", "TournerDroite()"); addCMicon("pivoterH", "PivoterHaut()"); addCMicon("pivoterB", "PivoterBas()"); addCMicon("pivoterG", "PivoterGauche()"); addCMicon("pivoterD", "PivoterDroite()"); } else { if (FlagSimp) { addCMicon("point", "Point(,,)"); addCMicon("intersection", "Intersection(,,)"); addCMicon("midpoint", "MidPoint(,,)"); addCMicon("bi_syma", "Reflection(,,)"); addCMicon("bi_symc", "Symmetry(,,)"); addCMicon("bi_trans", "Translation(,,,)"); addCMicon("line", "Line(,,)"); addCMicon("ray", "Ray(,,)"); addCMicon("parallel", "Parallel(,,)"); addCMicon("plumb", "Perpendicular(,,)"); addCMicon("bi_med", "PerpendicularBisector(,,)"); addCMicon("bi_biss", "AngleBisector(,,,)"); addCMicon("segment", "Segment(,,)"); addCMicon("fixedsegment", "FixedSegment(,,)"); addCMicon("vector", "Vector(,,)"); addCMicon("area", "Polygon(,)"); addCMicon("angle", "Angle(,,,)"); addCMicon("fixedangle", "FixedAngle(,,,)"); addCMicon("circle", "Circle(,,)"); addCMicon("fixedcircle", "FixedCircle(,,)"); addCMicon("circle3", "Circle3(,,,)"); addCMicon("bi_circ", "Circle3pts(,,,)"); addCMicon("bi_arc", "Arc3pts(,,,)"); addCMicon("quadric", "Quadric(,,,,,)"); // addCMicon("text", ""); addCMicon("expression", "Expression(,\"Votre expression\",,)"); addCMicon("text", "Text(,\"Votre message\",,)"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "CartesianFunction(,-5,5,\"x^2-2*x+1\")"); addCMicon("parametricfunction", "ParametricFunction(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\")"); addCMicon("equationxy", "ImplicitPlot(,\"x^3-2*x-y^2+1\")"); addCMicon("macro", "ExecuteMacro(,\"_x,_y,_z\")"); } else { addCMicon("point", " ⟵ Point(,,)"); addCMicon("intersection", " ⟵ Intersection(,,)"); addCMicon("midpoint", " ⟵ MidPoint(,,)"); addCMicon("bi_syma", " ⟵ Reflection(,,)"); addCMicon("bi_symc", " ⟵ Symmetry(,,)"); addCMicon("bi_trans", " ⟵ Translation(,,,)"); addCMicon("line", " ⟵ Line(,,)"); addCMicon("ray", " ⟵ Ray(,,)"); addCMicon("parallel", " ⟵ Parallel(,,)"); addCMicon("plumb", " ⟵ Perpendicular(,,)"); addCMicon("bi_med", " ⟵ PerpendicularBisector(,,)"); addCMicon("bi_biss", " ⟵ AngleBisector(,,,)"); addCMicon("segment", " ⟵ Segment(,,)"); addCMicon("fixedsegment", " ⟵ FixedSegment(,,)"); addCMicon("vector", " ⟵ Vector(,,)"); addCMicon("area", " ⟵ Polygon(,)"); addCMicon("angle", " ⟵ Angle(,,,)"); addCMicon("fixedangle", " ⟵ FixedAngle(,,,)"); addCMicon("circle", " ⟵ Circle(,,)"); addCMicon("fixedcircle", " ⟵ FixedCircle(,,)"); addCMicon("circle3", " ⟵ Circle3(,,,)"); addCMicon("bi_circ", " ⟵ Circle3pts(,,,)"); addCMicon("bi_arc", " ⟵ Arc3pts(,,,)"); addCMicon("quadric", " ⟵ Quadric(,,,,,)"); // addCMicon("text", ""); addCMicon("expression", " ⟵ Expression(,\"Votre expression\",,)"); addCMicon("text", " ⟵ Text(,\"Votre message\",,)"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", " ⟵ CartesianFunction(,-5,5,\"x^2-2*x+1\")"); addCMicon("parametricfunction", " ⟵ ParametricFunction(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\")"); addCMicon("equationxy", " ⟵ ImplicitPlot(,\"x^3-2*x-y^2+1\")"); addCMicon("macro", " ⟵ ExecuteMacro(\"macroName\",\"_x,_y,_z\")"); } addSeparator(1); addCMicon("interactiveinput", " ⟵ InteractiveInput(\"Message\",<\"Point,Segment,Line,Circle\">)"); addCMicon("aimant", "SetMagneticObjects(,)"); addCMicon("hide", "SetHide(,<\"true,false\">)"); addCMicon("type2", "SetPointType(,<\"square,circle,diamond,point,cross,dcross\">)"); addCMicon("color4", "SetColor(,<\"green,blue,brown,cyan,red,black\">)"); addCMicon("thickness1", "SetThickness(,<\"thick,normal,thin\">)"); addCMicon("partial", "SetPartial(,<\"true,false\">)"); addCMicon("showvalue", "SetShowValue(,<\"true,false\">)"); addCMicon("showname", "SetShowName(,<\"true,false\">)"); addCMicon("filled", "SetFilled(,<\"true,false\">)"); addCMicon("monkey", "Move(,,)"); addCMicon("nail", "SetFixed(,<\"true,false\">)"); // addCMicon("dice", "=Math.ceil(Math.random()*6)"); addSeparator(1); addCMicon("tortue", "FixTurtle()"); addCMicon("avancer", "MoveForward()"); addCMicon("reculer", "MoveBackward()"); addCMicon("tournerG", "TurnLeft()"); addCMicon("tournerD", "TurnRight()"); addCMicon("vitesse", "TurtleSpeed()"); addCMicon2("crayonB", "TurtleDown()"); addCMicon2("crayonH", "TurtleUp()"); addCMicon2("cacher", "HideTurtle()"); addCMicon2("montrer", "ShowTurtle()"); addCMicon("orienter", "OrientateTurtle()"); addCMicon("viser", "OrientateTowards()"); addCMicon("avancer2", " ⟵ MoveForward()"); //addCMicon("avancer3", " ⟵ MoveForward()[1]"); //addCMicon("avancer4", "t ⟵ MoveForward(); ⟵ t[0]; ⟵ t[1]"); addCMicon("reculer2", " ⟵ MoveBackward()"); //addCMicon("reculer3", " ⟵ MoveBackward()[1]"); //addCMicon("reculer4", "t ⟵ MoveBackward(); ⟵ t[0]; ⟵ t[1]"); addSeparator(1); if (FlagSimp) { addCMicon("bi_3Dcoords", "Point3D(,,,)"); addCMicon("bi_3Dproj", "Projection3D(,\"C,D,E\",)"); addCMicon("bi_3Dsymc", "Symmetry3D(,,)"); addCMicon("bi_3Dsymp", "Reflection3D(,\"C,D,E\",)"); addCMicon("bi_3Dtrans", "Translation3D(,,,)"); addCMicon("bi_3Dsphererayon", "FixedSphere(,,)"); addCMicon("bi_3Dspherepoint", "Sphere(,,)"); addCMicon("bi_3Dcircle1", "Circle3D(,,)"); addCMicon("bi_3Dcircle2", "FixedCircle3D(,,,\"E7\")"); addCMicon("bi_3Dcircle3pts", "Circle3D3pts(,,,)"); } else { addCMicon("bi_3Dcoords", " ⟵ Point3D(,,,)"); addCMicon("bi_3Dproj", " ⟵ Projection3D(,\"_f,_g,_h\",)"); addCMicon("bi_3Dsymc", " ⟵ Symmetry3D(,,)"); addCMicon("bi_3Dsymp", " ⟵ Reflection3D(,\"_f,_g,_h\",)"); addCMicon("bi_3Dtrans", " ⟵ Translation3D(,,,)"); addCMicon("bi_3Dsphererayon", " ⟵ FixedSphere(,,)"); addCMicon("bi_3Dspherepoint", " ⟵ Sphere(,,)"); addCMicon("bi_3Dcircle1", " ⟵ Circle3D(,,)"); addCMicon("bi_3Dcircle2", " ⟵ FixedCircle3D(,,,\"E7\")"); addCMicon("bi_3Dcircle3pts", " ⟵ Circle3D3pts(,,,)"); } addSeparator(1); addCMicon("tournerG3D", "TurnLeft()"); addCMicon("tournerD3D", "TurnRight()"); addCMicon("pivoterH", "PitchUp()"); addCMicon("pivoterB", "PitchDown()"); addCMicon("pivoterG", "RollLeft()"); addCMicon("pivoterD", "RollRight()"); } addJSIcon("js_cos", "cos(x)"); addJSIcon("js_sin", "sin(x)"); addJSIcon("js_tan", "tan(x)"); addJSIcon("js_acos", "acos(x)"); addJSIcon("js_asin", "asin(x)"); addJSIcon("js_atan", "atan(x)"); addJSIcon("js_abs", "abs(x)"); if (infrench) { addJSIcon("js_ceil", "val_approchée_par_excès(x)"); addJSIcon("js_floor", "troncature(x)"); addJSIcon("js_round", "arrondi(x)"); addJSIcon("js_min", "min(x,y)"); addJSIcon("js_max", "max(x,y)"); addJSIcon("js_pi", "PI"); addJSIcon("js_e", "Math.E"); addJSIcon("js_xn", "puissance(x,n)"); addJSIcon("js_ex", "exp(x)"); addJSIcon("js_ln", "ln(x)"); addJSIcon("js_sqrt", "racine(x)"); addJSIcon("js_or", "(x=2 || x>5)"); addJSIcon("js_and", "(x>2 && x<=5)"); addJSIcon("js_no", "!(x>0)"); addJSIcon("hour", "Pause(1000)"); addJSIcon("js_array", "tableau ⟵ [[1,2],[3,4]]"); addJSIcon("dice", "val_approchée_par_excès(nombre_aleatoire()*6)"); } else { addJSIcon("js_ceil", "ceil(x)"); addJSIcon("js_floor", "floor(x)"); addJSIcon("js_round", "round(x)"); addJSIcon("js_min", "min(x,y)"); addJSIcon("js_max", "max(x,y)"); addJSIcon("js_pi", "PI"); addJSIcon("js_e", "Math.E"); addJSIcon("js_xn", "pow(x,n)"); addJSIcon("js_ex", "exp(x)"); addJSIcon("js_ln", "ln(x)"); addJSIcon("js_sqrt", "sqrt(x)"); addJSIcon("js_or", "(x=2 || x>5)"); addJSIcon("js_and", "(x>2 && x<=5)"); addJSIcon("js_no", "!(x>0)"); addJSIcon("hour", "Pause(1000)"); addJSIcon("js_array", "tableau ⟵ [[1,2],[3,4]]"); addJSIcon("dice", "ceil(random()*6)"); } } else { if (infrench) { if (FlagSimp) { addCMicon("point", "Point(,,);"); addCMicon("intersection", "Intersection(,,);"); addCMicon("midpoint", "Milieu(,,);"); addCMicon("bi_syma", "SymétrieAxiale(,,);"); addCMicon("bi_symc", "SymétrieCentrale(,,);"); addCMicon("bi_trans", "Translation(,,,);"); addCMicon("line", "Droite(,,);"); addCMicon("ray", "DemiDroite(,,);"); addCMicon("parallel", "Parallèle(,,);"); addCMicon("plumb", "Perpendiculaire(,,);"); addCMicon("bi_med", "Médiatrice(,,);"); addCMicon("bi_biss", "Bissectrice(,,,);"); addCMicon("segment", "Segment(,,);"); addCMicon("fixedsegment", "SegmentFixe(,,);"); addCMicon("vector", "Vecteur(,,);"); addCMicon("area", "Polygone(,);"); addCMicon("angle", "Angle(,,,);"); addCMicon("fixedangle", "AngleFixe(,,,);"); addCMicon("circle", "Cercle(,,);"); addCMicon("fixedcircle", "CercleRayon(,,);"); addCMicon("circle3", "Cercle3(,,,);"); addCMicon("bi_circ", "Cercle3pts(,,,);"); addCMicon("bi_arc", "Arc3pts(,,,);"); addCMicon("quadric", "Quadrique(,,,,,);"); // addCMicon("text", ""); addCMicon("expression", "Expression(,\"Votre expression\",,);"); addCMicon("text", "Texte(,\"Votre message\",,);"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "FonctionCartésienne(,-5,5,\"x^2-2*x+1\");"); addCMicon("parametricfunction", "FonctionParamétrique(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\");"); addCMicon("equationxy", "TracéImplicite(,\"x^3-2*x-y^2+1\");"); addCMicon("macro", "ExécuterMacro(,\"_x,_y,_z\");"); addSeparator(1); addCMicon("interactiveinput", ":=EntréeInteractive(\"Message\",<\"Point,Segment,Line,Circle\">);"); addCMicon("aimant", "MettreObjetsMagnétiques(,);"); addCMicon("hide", "MettreCaché(,<\"vrai,faux\">);"); addCMicon("type2", "MettreTypePoint(,<\"square,circle,diamond,point,cross,dcross\">);"); addCMicon("color4", "MettreCouleur(,<\"green,blue,brown,cyan,red,black\">);"); addCMicon("thickness1", "MettreEpaisseur(,<\"thick,normal,thin\">);"); addCMicon("partial", "MettrePartiel(,<\"vrai,faux\">);"); addCMicon("showvalue", "MettreMontrerValeur(,<\"vrai,faux\">);"); addCMicon("showname", "MettreMontrerNom(,<\"vrai,faux\">);"); addCMicon("filled", "MettreRempli(,<\"vrai,faux\">);"); addCMicon("monkey", "Déplacer(,,);"); addCMicon("nail", "MettreFixe(,<\"vrai,faux\">);"); // addCMicon("dice", "=Math.ceil(Math.random()*6);"); addSeparator(1); addCMicon("tortue", "AttacherTortue();"); addCMicon("avancer", "Avancer();"); addCMicon("reculer", "Reculer();"); addCMicon("tournerG", "TournerGauche();"); addCMicon("tournerD", "TournerDroite();"); addCMicon("vitesse", "VitesseTortue();"); addCMicon2("crayonB", "BaisserStylo();"); addCMicon2("crayonH", "LeverStylo();"); addCMicon2("cacher", "CacherTortue();"); addCMicon2("montrer", "MontrerTortue();"); addCMicon("orienter", "OrienterTortue();"); addCMicon("viser", "Viser();"); addCMicon("avancer2", ":=Avancer()[0];"); addCMicon("avancer3", ":=Avancer()[1];"); addCMicon("avancer4", "t:=Avancer();:=t[0];:=t[1];"); addCMicon("reculer2", ":=Reculer()[0];"); addCMicon("reculer3", ":=Reculer()[1];"); addCMicon("reculer4", "t:=Reculer();:=t[0];:=t[1];"); addSeparator(1); addCMicon("bi_3Dcoords", "Point3D(,,,);"); addCMicon("bi_3Dproj", "Projection3D(,\"C,D,E\",);"); addCMicon("bi_3Dsymc", "SymétrieCentrale3D(,,);"); addCMicon("bi_3Dsymp", "Symétrie3DPlan(,\"C,D,E\",);"); addCMicon("bi_3Dtrans", "Translation3D(,,,);"); addCMicon("bi_3Dsphererayon", "SphèreRayon(,,);"); addCMicon("bi_3Dspherepoint", "Sphère(,,);"); addCMicon("bi_3Dcircle1", "Cercle3D(,,);"); addCMicon("bi_3Dcircle2", "CercleRayon3D(,,,\"E7\");"); addCMicon("bi_3Dcircle3pts", "Cercle3D3pts(,,,);"); } else { addCMicon("point", "=Point(,,);"); addCMicon("intersection", "=Intersection(,,);"); addCMicon("midpoint", "=Milieu(,,);"); addCMicon("bi_syma", "=SymétrieAxiale(,,);"); addCMicon("bi_symc", "=SymétrieCentrale(,,);"); addCMicon("bi_trans", "=Translation(,,,);"); addCMicon("line", "=Droite(,,);"); addCMicon("ray", "=DemiDroite(,,);"); addCMicon("parallel", "=Parallèle(,,);"); addCMicon("plumb", "=Perpendiculaire(,,);"); addCMicon("bi_med", "=Médiatrice(,,);"); addCMicon("bi_biss", "=Bissectrice(,,,);"); addCMicon("segment", "=Segment(,,);"); addCMicon("fixedsegment", "=SegmentFixe(,,);"); addCMicon("vector", "=Vecteur(,,);"); addCMicon("area", "=Polygone(,);"); addCMicon("angle", "=Angle(,,,);"); addCMicon("fixedangle", "=AngleFixe(,,,);"); addCMicon("circle", "=Cercle(,,);"); addCMicon("fixedcircle", "=CercleRayon(,,);"); addCMicon("circle3", "=Cercle3(,,,);"); addCMicon("bi_circ", "=Cercle3pts(,,,);"); addCMicon("bi_arc", "=Arc3pts(,,,);"); addCMicon("quadric", "=Quadrique(,,,,,);"); // addCMicon("text", ""); addCMicon("expression", "=Expression(,\"Votre expression\",,);"); addCMicon("text", "=Texte(,\"Votre message\",,);"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "=FonctionCartésienne(,-5,5,\"x^2-2*x+1\");"); addCMicon("parametricfunction", "=FonctionParamétrique(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\");"); addCMicon("equationxy", "=TracéImplicite(,\"x^3-2*x-y^2+1\");"); addCMicon("macro", "=ExécuterMacro(\"macroName\",\"_x,_y,_z\");"); addSeparator(1); addCMicon("interactiveinput", "=EntréeInteractive(\"Message\",<\"Point,Segment,Line,Circle\">);"); addCMicon("aimant", "MettreObjetsMagnétiques(,);"); addCMicon("hide", "MettreCaché(,<\"vrai,faux\">);"); addCMicon("type2", "MettreTypePoint(,<\"square,circle,diamond,point,cross,dcross\">);"); addCMicon("color4", "MettreCouleur(,<\"green,blue,brown,cyan,red,black\">);"); addCMicon("thickness1", "MettreEpaisseur(,<\"thick,normal,thin\">);"); addCMicon("partial", "MettrePartiel(,<\"vrai,faux\">);"); addCMicon("showvalue", "MettreMontrerValeur(,<\"vrai,faux\">);"); addCMicon("showname", "MettreMontrerNom(,<\"vrai,faux\">);"); addCMicon("filled", "MettreRempli(,<\"vrai,faux\">);"); addCMicon("monkey", "Déplacer(,,);"); addCMicon("nail", "MettreFixe(,<\"vrai,faux\">);"); // addCMicon("dice", "=Math.ceil(Math.random()*6);"); addSeparator(1); addCMicon("tortue", "AttacherTortue();"); addCMicon("avancer", "Avancer();"); addCMicon("reculer", "Reculer();"); addCMicon("tournerG", "TournerGauche();"); addCMicon("tournerD", "TournerDroite();"); addCMicon("vitesse", "VitesseTortue();"); addCMicon2("crayonB", "BaisserStylo();"); addCMicon2("crayonH", "LeverStylo();"); addCMicon2("cacher", "CacherTortue();"); addCMicon2("montrer", "MontrerTortue();"); addCMicon("orienter", "OrienterTortue();"); addCMicon("viser", "Viser();"); addCMicon("avancer2", "=Avancer()[0];"); addCMicon("avancer3", "=Avancer()[1];"); addCMicon("avancer4", "t=Avancer();=t[0];=t[1];"); addCMicon("reculer2", "=Reculer()[0];"); addCMicon("reculer3", "=Reculer()[1];"); addCMicon("reculer4", "t=Reculer();=t[0];=t[1];"); addSeparator(1); addCMicon("bi_3Dcoords", "=Point3D(,,,);"); addCMicon("bi_3Dproj", "=Projection3D(,\"_f,_g,_h\",);"); addCMicon("bi_3Dsymc", "=SymétrieCentrale3D(,,);"); addCMicon("bi_3Dsymp", "=Symétrie3DPlan(,\"_f,_g,_h\",);"); addCMicon("bi_3Dtrans", "=Translation3D(,,,);"); addCMicon("bi_3Dsphererayon", "=SphèreRayon(,,);"); addCMicon("bi_3Dspherepoint", "=Sphère(,,);"); addCMicon("bi_3Dcircle1", "=Cercle3D(,,);"); addCMicon("bi_3Dcircle2", "=CercleRayon3D(,,,\"E7\");"); addCMicon("bi_3Dcircle3pts", "=Cercle3D3pts(,,,);"); } addSeparator(1); addCMicon("tournerG3D", "TournerGauche();"); addCMicon("tournerD3D", "TournerDroite();"); addCMicon("pivoterH", "PivoterHaut();"); addCMicon("pivoterB", "PivoterBas();"); addCMicon("pivoterG", "PivoterGauche();"); addCMicon("pivoterD", "PivoterDroite();"); } else { if (FlagSimp) { addCMicon("point", "Point(,,);"); addCMicon("intersection", "Intersection(,,);"); addCMicon("midpoint", "MidPoint(,,);"); addCMicon("bi_syma", "Reflection(,,);"); addCMicon("bi_symc", "Symmetry(,,);"); addCMicon("bi_trans", "Translation(,,,);"); addCMicon("line", "Line(,,);"); addCMicon("ray", "Ray(,,);"); addCMicon("parallel", "Parallel(,,);"); addCMicon("plumb", "Perpendicular(,,);"); addCMicon("bi_med", "PerpendicularBisector(,,);"); addCMicon("bi_biss", "AngleBisector(,,,);"); addCMicon("segment", "Segment(,,);"); addCMicon("fixedsegment", "FixedSegment(,,);"); addCMicon("vector", "Vector(,,);"); addCMicon("area", "Polygon(,);"); addCMicon("angle", "Angle(,,,);"); addCMicon("fixedangle", "FixedAngle(,,,);"); addCMicon("circle", "Circle(,,);"); addCMicon("fixedcircle", "FixedCircle(,,);"); addCMicon("circle3", "Circle3(,,,);"); addCMicon("bi_circ", "Circle3pts(,,,);"); addCMicon("bi_arc", "Arc3pts(,,,);"); addCMicon("quadric", "Quadric(,,,,,);"); // addCMicon("text", ""); addCMicon("expression", "Expression(,\"Votre expression\",,);"); addCMicon("text", "Text(,\"Votre message\",,);"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "CartesianFunction(,-5,5,\"x^2-2*x+1\");"); addCMicon("parametricfunction", "ParametricFunction(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\");"); addCMicon("equationxy", "ImplicitPlot(,\"x^3-2*x-y^2+1\");"); addCMicon("macro", "ExecuteMacro(,\"_x,_y,_z\");"); addSeparator(1); addCMicon("interactiveinput", ":=InteractiveInput(\"Message\",<\"Point,Segment,Line,Circle\">);"); } else { addCMicon("point", "=Point(,,);"); addCMicon("intersection", "=Intersection(,,);"); addCMicon("midpoint", "=MidPoint(,,);"); addCMicon("bi_syma", "=Reflection(,,);"); addCMicon("bi_symc", "=Symmetry(,,);"); addCMicon("bi_trans", "=Translation(,,,);"); addCMicon("line", "=Line(,,);"); addCMicon("ray", "=Ray(,,);"); addCMicon("parallel", "=Parallel(,,);"); addCMicon("plumb", "=Perpendicular(,,);"); addCMicon("bi_med", "=PerpendicularBisector(,,);"); addCMicon("bi_biss", "=AngleBisector(,,,);"); addCMicon("segment", "=Segment(,,);"); addCMicon("fixedsegment", "=FixedSegment(,,);"); addCMicon("vector", "=Vector(,,);"); addCMicon("area", "=Polygon(,);"); addCMicon("angle", "=Angle(,,,);"); addCMicon("fixedangle", "=FixedAngle(,,,);"); addCMicon("circle", "=Circle(,,);"); addCMicon("fixedcircle", "=FixedCircle(,,);"); addCMicon("circle3", "=Circle3(,,,);"); addCMicon("bi_circ", "=Circle3pts(,,,);"); addCMicon("bi_arc", "=Arc3pts(,,,);"); addCMicon("quadric", "=Quadric(,,,,,);"); // addCMicon("text", ""); addCMicon("expression", "=Expression(,\"Votre expression\",,);"); addCMicon("text", "=Text(,\"Votre message\",,);"); // addCMicon("image3", ""); // addBlankIcon(3); addCMicon("function", "=CartesianFunction(,-5,5,\"x^2-2*x+1\");"); addCMicon("parametricfunction", "=ParametricFunction(,-3.14,3.14,\"3*rcos(t)^3\",\"3*rsin(t)^3\");"); addCMicon("equationxy", "=ImplicitPlot(,\"x^3-2*x-y^2+1\");"); addCMicon("macro", "=ExecuteMacro(\"macroName\",\"_x,_y,_z\");"); addSeparator(1); addCMicon("interactiveinput", "=InteractiveInput(\"Message\",<\"Point,Segment,Line,Circle\">);"); } addCMicon("aimant", "SetMagneticObjects(,);"); addCMicon("hide", "SetHide(,<\"true,false\">);"); addCMicon("type2", "SetPointType(,<\"square,circle,diamond,point,cross,dcross\">);"); addCMicon("color4", "SetColor(,<\"green,blue,brown,cyan,red,black\">);"); addCMicon("thickness1", "SetThickness(,<\"thick,normal,thin\">);"); addCMicon("partial", "SetPartial(,<\"true,false\">);"); addCMicon("showvalue", "SetShowValue(,<\"true,false\">);"); addCMicon("showname", "SetShowName(,<\"true,false\">);"); addCMicon("filled", "SetFilled(,<\"true,false\">);"); addCMicon("monkey", "Move(,,);"); addCMicon("nail", "SetFixed(,<\"true,false\">);"); // addCMicon("dice", "=Math.ceil(Math.random()*6);"); addSeparator(1); addCMicon("tortue", "FixTurtle();"); addCMicon("avancer", "MoveForward();"); addCMicon("reculer", "MoveBackward();"); addCMicon("tournerG", "TurnLeft();"); addCMicon("tournerD", "TurnRight();"); addCMicon("vitesse", "TurtleSpeed();"); addCMicon2("crayonB", "TurtleDown();"); addCMicon2("crayonH", "TurtleUp();"); addCMicon2("cacher", "HideTurtle();"); addCMicon2("montrer", "ShowTurtle();"); addCMicon("orienter", "OrientateTurtle();"); addCMicon("viser", "OrientateTowards();"); if (FlagSimp) { addCMicon("avancer2", ":=MoveForward()[0];"); addCMicon("avancer3", ":=MoveForward()[1];"); addCMicon("avancer4", "t:=MoveForward();:=t[0];:=t[1];"); addCMicon("reculer2", ":=MoveBackward()[0];"); addCMicon("reculer3", ":=MoveBackward()[1];"); addCMicon("reculer4", "t:=MoveBackward();:=t[0];:=t[1];"); addSeparator(1); addCMicon("bi_3Dcoords", "Point3D(,,,);"); addCMicon("bi_3Dproj", "Projection3D(,\"C,D,E\",);"); addCMicon("bi_3Dsymc", "Symmetry3D(,,);"); addCMicon("bi_3Dsymp", "Reflection3D(,\"C,D,E\",);"); addCMicon("bi_3Dtrans", "Translation3D(,,,);"); addCMicon("bi_3Dsphererayon", "FixedSphere(,,);"); addCMicon("bi_3Dspherepoint", "Sphere(,,);"); addCMicon("bi_3Dcircle1", "Circle3D(,,);"); addCMicon("bi_3Dcircle2", "FixedCircle3D(,,,\"E7\");"); addCMicon("bi_3Dcircle3pts", "Circle3D3pts(,,,);"); } else { addCMicon("avancer2", "=MoveForward()[0];"); addCMicon("avancer3", "=MoveForward()[1];"); addCMicon("avancer4", "t=MoveForward();=t[0];=t[1];"); addCMicon("reculer2", "=MoveBackward()[0];"); addCMicon("reculer3", "=MoveBackward()[1];"); addCMicon("reculer4", "t=MoveBackward();=t[0];=t[1];"); addSeparator(1); addCMicon("bi_3Dcoords", "=Point3D(,,,);"); addCMicon("bi_3Dproj", "=Projection3D(,\"_f,_g,_h\",);"); addCMicon("bi_3Dsymc", "=Symmetry3D(,,);"); addCMicon("bi_3Dsymp", "=Reflection3D(,\"_f,_g,_h\",);"); addCMicon("bi_3Dtrans", "=Translation3D(,,,);"); addCMicon("bi_3Dsphererayon", "=FixedSphere(,,);"); addCMicon("bi_3Dspherepoint", "=Sphere(,,);"); addCMicon("bi_3Dcircle1", "=Circle3D(,,);"); addCMicon("bi_3Dcircle2", "=FixedCircle3D(,,,\"E7\");"); addCMicon("bi_3Dcircle3pts", "=Circle3D3pts(,,,);"); } addSeparator(1); addCMicon("tournerG3D", "TurnLeft();"); addCMicon("tournerD3D", "TurnRight();"); addCMicon("pivoterH", "PitchUp();"); addCMicon("pivoterB", "PitchDown();"); addCMicon("pivoterG", "RollLeft();"); addCMicon("pivoterD", "RollRight();"); } addJSIcon("js_cos", "Math.cos(x)"); addJSIcon("js_sin", "Math.sin(x)"); addJSIcon("js_tan", "Math.tan(x)"); addJSIcon("js_acos", "Math.acos(x)"); addJSIcon("js_asin", "Math.asin(x)"); addJSIcon("js_atan", "Math.atan(x)"); addJSIcon("js_abs", "Math.abs(x)"); addJSIcon("js_ceil", "Math.ceil(x)"); addJSIcon("js_floor", "Math.floor(x)"); addJSIcon("js_round", "Math.round(x)"); addJSIcon("js_min", "Math.min(x,y)"); addJSIcon("js_max", "Math.max(x,y)"); addJSIcon("js_pi", "Math.PI"); addJSIcon("js_e", "Math.E"); addJSIcon("js_xn", "Math.pow(x,n)"); addJSIcon("js_ex", "Math.exp(x)"); addJSIcon("js_ln", "Math.log(x)"); addJSIcon("js_sqrt", "Math.sqrt(x)"); addJSIcon("js_or", "(x==2 || x>=5)"); addJSIcon("js_and", "(x>=2 && x<=5)"); addJSIcon("js_no", "!(x==0)"); addJSIcon("hour", "Pause(1000);"); addJSIcon("js_array", "tableau = [[1,2],[3,4]];"); addJSIcon("dice", "Math.ceil(Math.random()*6)"); } } public void initUndoRedo() { undo=new UndoManager() { public synchronized boolean addEdit(UndoableEdit anEdit) { if (anEdit instanceof AbstractDocument.DefaultDocumentEvent) { AbstractDocument.DefaultDocumentEvent de=(AbstractDocument.DefaultDocumentEvent) anEdit; if (de.getType()==DocumentEvent.EventType.CHANGE) { return false; } } return super.addEdit(anEdit); } }; script_area.getStyledDocument().addUndoableEditListener(new UndoableEditListener() { public void undoableEditHappened(UndoableEditEvent e) { undo.addEdit(e.getEdit()); } }); script_area.getActionMap().put("Undo", new AbstractAction("Undo") { public void actionPerformed(ActionEvent evt) { try { if (undo.canUndo()) { undo.undo(); } } catch (CannotUndoException e) { } } }); script_area.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_Z, ctrlkey), "Undo"); script_area.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_Y, ctrlkey), "Redo"); script_area.getActionMap().put("Redo", new AbstractAction("Redo") { public void actionPerformed(ActionEvent evt) { try { if (undo.canRedo()) { undo.redo(); } } catch (CannotRedoException e) { } } }); } // Select a line (linenumber starts at 1) private void selectLine(int linenumber) { Element root=script_area.getDocument().getDefaultRootElement(); Element myline=root.getElement(linenumber-1); int start=myline.getStartOffset(); int end=myline.getEndOffset(); script_area.select(start, end); } static public String Loc(final String s) { return Global.Loc(s); } /** * In case of errors, it's called at Runtime by JSRun class * @param errormessage */ public void Error(String errormessage) { StringBuffer sb=new StringBuffer(); int errorline=1; Pattern p=Pattern.compile("\\([^#]*#([0-9]+)\\)", Pattern.CASE_INSENSITIVE); Matcher m=p.matcher(errormessage); if (m.find()) { errorline=Integer.parseInt(m.group(1))+1; m.appendReplacement(sb, ""); } else { sb=sb.append(errormessage); } errorpanel.removeAll(); errortitlelabel.setText(" "+Loc("JSerror.title")+" ("+Loc("JSerror.line")+" "+errorline+") :"); errormessagelabel.setText(sb.toString()); errorpanel.add(errortitlelabel); errorpanel.add(errormessagelabel); errorpanel.revalidate(); errorpanel.repaint(); selectLine(errorline); script_area.requestFocus(); } public void setTabs(JTextPane textPane, int charactersPerTab) { FontMetrics fm=textPane.getFontMetrics(textPane.getFont()); int charWidth=fm.charWidth('w'); int tabWidth=charWidth*charactersPerTab; TabStop[] tabs=new TabStop[10]; for (int j=0; j braces; private int tabIndent(int carnum) { int priority=0; int i=0; while ((ibraces.get(i))) { priority=braces.get(i+1); i+=2; } // // // // for (int i=0;ibraces.get(i)) { // return braces.get(i+1); // } // } return priority; } private void shiftposition(int lg, int sh) { for (int i=0; ilg) { braces.set(i, braces.get(i)+sh); } } } private String tabs(int t) { String st=""; for (int i=0; i(); String alltxt=script_area.getText(); boolean inquote=false; char oldcur=0; char cur=0; int bracesnum=0; int oldbracesnum=0; for (int i=0; i//GEN-BEGIN:initComponents private void initComponents() { jPanel3 = new myJTitleBar(); macpanel = new javax.swing.JPanel(); title_lbl = new javax.swing.JLabel(); closeBTN = new javax.swing.JButton(); winpanel = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); LeftBorder = new myJVerticalSeparatorPanel(); jPanel15 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); action_buttons = new javax.swing.JPanel(); jTextHeight = new javax.swing.JSlider(); jPanel18 = new javax.swing.JPanel(); openbtnfrench = new javax.swing.JButton(); openbtnSimp = new javax.swing.JButton(); openbtn5 = new javax.swing.JButton(); jPanel16 = new javax.swing.JPanel(); openbtn2 = new javax.swing.JButton(); jPanel10 = new javax.swing.JPanel(); backbtn = new javax.swing.JButton(); jPanel11 = new javax.swing.JPanel(); openbtn3 = new javax.swing.JButton(); jPanel12 = new javax.swing.JPanel(); openbtn4 = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); script_area = new javax.swing.JTextPane(); jPanel14 = new javax.swing.JPanel(); commands = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); c_carmetal = new javax.swing.JPanel(); c_js = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); js_btns = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); JSlist = new javax.swing.JList(); RightBorder = new myJVerticalSeparatorPanel(); controls = new myStatusBarPanel(); jPanel13 = new javax.swing.JPanel(); errorpanel = new javax.swing.JPanel(); errortitlelabel = new javax.swing.JLabel(); errormessagelabel = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setUndecorated(true); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } public void windowDeactivated(java.awt.event.WindowEvent evt) { formWindowDeactivated(evt); } }); getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS)); jPanel3.setMaximumSize(new java.awt.Dimension(32767, 25)); jPanel3.setMinimumSize(new java.awt.Dimension(0, 25)); jPanel3.setPreferredSize(new java.awt.Dimension(199, 25)); jPanel3.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { jPanel3MouseDragged(evt); } }); jPanel3.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { jPanel3MousePressed(evt); } }); jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.X_AXIS)); macpanel.setAlignmentX(0.0F); macpanel.setEnabled(false); macpanel.setFocusable(false); macpanel.setMaximumSize(new java.awt.Dimension(32767, 25)); macpanel.setMinimumSize(new java.awt.Dimension(0, 25)); macpanel.setOpaque(false); macpanel.setPreferredSize(new java.awt.Dimension(523, 25)); macpanel.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { macpanelMouseDragged(evt); } }); macpanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { macpanelMousePressed(evt); } }); macpanel.setLayout(new javax.swing.BoxLayout(macpanel, javax.swing.BoxLayout.X_AXIS)); title_lbl.setBackground(new java.awt.Color(117, 112, 104)); title_lbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); title_lbl.setText("jLabel3"); title_lbl.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); title_lbl.setMaximumSize(new java.awt.Dimension(32767, 32767)); title_lbl.setMinimumSize(new java.awt.Dimension(0, 25)); title_lbl.setPreferredSize(new java.awt.Dimension(45, 25)); macpanel.add(title_lbl); jPanel3.add(macpanel); closeBTN.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/themes/gray/zclosebutton.png"))); // NOI18N closeBTN.setBorder(null); closeBTN.setBorderPainted(false); closeBTN.setContentAreaFilled(false); closeBTN.setFocusPainted(false); closeBTN.setFocusable(false); closeBTN.setMaximumSize(new java.awt.Dimension(25, 30)); closeBTN.setMinimumSize(new java.awt.Dimension(25, 30)); closeBTN.setPreferredSize(new java.awt.Dimension(25, 30)); closeBTN.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/themes/gray/zclosebuttonover.png"))); // NOI18N closeBTN.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { closeBTNMouseClicked(evt); } }); jPanel3.add(closeBTN); winpanel.setAlignmentX(0.0F); winpanel.setEnabled(false); winpanel.setFocusable(false); winpanel.setMaximumSize(new java.awt.Dimension(32767, 25)); winpanel.setMinimumSize(new java.awt.Dimension(0, 25)); winpanel.setOpaque(false); winpanel.setPreferredSize(new java.awt.Dimension(523, 25)); winpanel.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { winpanelMouseDragged(evt); } }); winpanel.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { winpanelMousePressed(evt); } }); winpanel.setLayout(new javax.swing.BoxLayout(winpanel, javax.swing.BoxLayout.X_AXIS)); jPanel3.add(winpanel); getContentPane().add(jPanel3); jPanel1.setPreferredSize(new java.awt.Dimension(565, 487)); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); LeftBorder.setMaximumSize(new java.awt.Dimension(5, 32767)); LeftBorder.setMinimumSize(new java.awt.Dimension(5, 30)); LeftBorder.setOpaque(false); LeftBorder.setPreferredSize(new java.awt.Dimension(5, 487)); LeftBorder.setLayout(null); jPanel1.add(LeftBorder); jPanel15.setAlignmentX(0.0F); jPanel15.setMaximumSize(new java.awt.Dimension(3, 1)); jPanel15.setMinimumSize(new java.awt.Dimension(3, 1)); jPanel15.setOpaque(false); jPanel15.setPreferredSize(new java.awt.Dimension(3, 1)); jPanel15.setLayout(new javax.swing.BoxLayout(jPanel15, javax.swing.BoxLayout.LINE_AXIS)); jPanel1.add(jPanel15); jPanel2.setFocusable(false); jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.Y_AXIS)); action_buttons.setAlignmentX(0.0F); action_buttons.setAlignmentY(0.0F); action_buttons.setMaximumSize(new java.awt.Dimension(32727, 40)); action_buttons.setMinimumSize(new java.awt.Dimension(370, 40)); action_buttons.setPreferredSize(new java.awt.Dimension(350, 40)); action_buttons.setLayout(new javax.swing.BoxLayout(action_buttons, javax.swing.BoxLayout.X_AXIS)); jTextHeight.setFont(new java.awt.Font("DejaVu Sans", 0, 8)); jTextHeight.setForeground(new java.awt.Color(50, 50, 150)); jTextHeight.setMaximum(36); jTextHeight.setMinimum(9); jTextHeight.setMinorTickSpacing(1); jTextHeight.setPaintLabels(true); jTextHeight.setPaintTicks(true); jTextHeight.setSnapToTicks(true); jTextHeight.setToolTipText("script height"); jTextHeight.setValue(16); jTextHeight.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jTextHeight.setMinimumSize(new java.awt.Dimension(96, 43)); jTextHeight.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jTextHeightStateChanged(evt); } }); action_buttons.add(jTextHeight); jPanel18.setFocusable(false); jPanel18.setMaximumSize(new java.awt.Dimension(35, 1)); jPanel18.setMinimumSize(new java.awt.Dimension(35, 1)); jPanel18.setOpaque(false); jPanel18.setPreferredSize(new java.awt.Dimension(35, 1)); action_buttons.add(jPanel18); openbtn5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/comment.png"))); // NOI18N openbtn5.setToolTipText(Loc("JSEditor.comment")); openbtn5.setBorder(null); openbtn5.setContentAreaFilled(false); openbtn5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtn5MouseClicked(evt); } }); openbtn5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtn5ActionPerformed(evt); } }); openbtn5.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtn5KeyPressed(evt); } }); action_buttons.add(openbtn5); jPanel16.setFocusable(false); jPanel16.setMaximumSize(new java.awt.Dimension(10, 1)); jPanel16.setMinimumSize(new java.awt.Dimension(10, 1)); jPanel16.setOpaque(false); jPanel16.setPreferredSize(new java.awt.Dimension(10, 1)); action_buttons.add(jPanel16); openbtn2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/format.png"))); // NOI18N openbtn2.setToolTipText(Loc("JSeditor.format")); openbtn2.setBorder(null); openbtn2.setContentAreaFilled(false); openbtn2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtn2MouseClicked(evt); } }); openbtn2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtn2ActionPerformed(evt); } }); openbtn2.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtn2KeyPressed(evt); } }); action_buttons.add(openbtn2); jPanel10.setFocusable(false); jPanel10.setMaximumSize(new java.awt.Dimension(10, 1)); jPanel10.setMinimumSize(new java.awt.Dimension(10, 1)); jPanel10.setOpaque(false); jPanel10.setPreferredSize(new java.awt.Dimension(10, 1)); action_buttons.add(jPanel10); backbtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/restore.png"))); // NOI18N backbtn.setToolTipText(Loc("JSeditor.restore")); backbtn.setBorder(null); backbtn.setContentAreaFilled(false); backbtn.setEnabled(false); backbtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { backbtnActionPerformed(evt); } }); backbtn.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { backbtnKeyPressed(evt); } }); backbtn.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { backbtnMouseClicked(evt); } }); action_buttons.add(backbtn); jPanel11.setFocusable(false); jPanel11.setMaximumSize(new java.awt.Dimension(10, 1)); jPanel11.setMinimumSize(new java.awt.Dimension(10, 1)); jPanel11.setOpaque(false); jPanel11.setPreferredSize(new java.awt.Dimension(10, 1)); action_buttons.add(jPanel11); openbtn3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/run.png"))); // NOI18N openbtn3.setToolTipText(Loc("JSeditor.run")); openbtn3.setBorder(null); openbtn3.setContentAreaFilled(false); openbtn3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtn3ActionPerformed(evt); } }); openbtn3.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtn3KeyPressed(evt); } }); openbtn3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtn3MouseClicked(evt); } }); action_buttons.add(openbtn3); jPanel12.setFocusable(false); jPanel12.setMaximumSize(new java.awt.Dimension(35, 1)); jPanel12.setMinimumSize(new java.awt.Dimension(35, 1)); jPanel12.setOpaque(false); jPanel12.setPreferredSize(new java.awt.Dimension(35, 1)); action_buttons.add(jPanel12); if (infrench) {openbtnfrench.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/french.png"))); // NOI18N } else { openbtnfrench.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/french2.png"))); } openbtnfrench.setToolTipText(Loc("JSeditor.choseFrench")); openbtnfrench.setBorder(null); openbtnfrench.setContentAreaFilled(false); openbtnfrench.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtnfrenchActionPerformed(evt); } }); openbtnfrench.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtnfrenchKeyPressed(evt); } }); openbtnfrench.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtnfrenchMouseClicked(evt); } }); openbtnSimp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/js.png"))); // NOI18N openbtnSimp.setToolTipText(Loc("JSeditor.choseGenerator")); openbtnSimp.setBorder(null); openbtnSimp.setContentAreaFilled(false); openbtnSimp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtnSimpActionPerformed(evt); } }); openbtnSimp.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtnSimpKeyPressed(evt); } }); openbtnSimp.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtnSimpMouseClicked(evt); } }); action_buttons.add(openbtnfrench); action_buttons.add(openbtnSimp); openbtn4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/help.png"))); // NOI18N openbtn4.setToolTipText(Loc("JSeditor.help")); openbtn4.setBorder(null); openbtn4.setContentAreaFilled(false); openbtn4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openbtn4ActionPerformed(evt); } }); openbtn4.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { openbtn4KeyPressed(evt); } }); openbtn4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { openbtn4MouseClicked(evt); } }); action_buttons.add(openbtn4); jPanel2.add(action_buttons); jPanel4.setAlignmentX(0.0F); jPanel4.setAlignmentY(0.0F); jPanel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.X_AXIS)); jScrollPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); script_area.setFont(new java.awt.Font("Monospaced", 0, 24)); script_area.setCaretColor(new java.awt.Color(128, 64, 0)); script_area.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR)); script_area.setDisabledTextColor(new java.awt.Color(158, 150, 236)); script_area.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { script_areaKeyTyped(evt); } public void keyPressed(java.awt.event.KeyEvent evt) { script_areaKeyPressed(evt); } public void keyReleased(java.awt.event.KeyEvent evt) { script_areaKeyReleased(evt); } }); script_area.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { script_areaMouseClicked(evt); } }); jScrollPane1.setViewportView(script_area); jPanel4.add(jScrollPane1); jPanel2.add(jPanel4); jPanel14.setAlignmentX(0.0F); jPanel14.setMaximumSize(new java.awt.Dimension(1, 2)); jPanel14.setMinimumSize(new java.awt.Dimension(1, 2)); jPanel14.setOpaque(false); jPanel14.setPreferredSize(new java.awt.Dimension(1, 2)); jPanel14.setLayout(new javax.swing.BoxLayout(jPanel14, javax.swing.BoxLayout.LINE_AXIS)); jPanel2.add(jPanel14); jPanel1.add(jPanel2); commands.setBackground(new java.awt.Color(204, 204, 255)); commands.setFocusable(false); commands.setMaximumSize(new java.awt.Dimension(182, 98397)); commands.setMinimumSize(new java.awt.Dimension(182, 0)); commands.setOpaque(false); commands.setPreferredSize(new java.awt.Dimension(182, 460)); commands.setLayout(new javax.swing.BoxLayout(commands, javax.swing.BoxLayout.Y_AXIS)); jLabel1.setBackground(new java.awt.Color(117, 112, 104)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("CaRMetal"); jLabel1.setAlignmentX(0.5F); jLabel1.setEnabled(false); jLabel1.setFocusable(false); jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabel1.setIconTextGap(0); jLabel1.setMaximumSize(new java.awt.Dimension(182, 25)); jLabel1.setMinimumSize(new java.awt.Dimension(182, 25)); jLabel1.setPreferredSize(new java.awt.Dimension(182, 25)); jLabel1.setRequestFocusEnabled(false); jLabel1.setVerifyInputWhenFocusTarget(false); commands.add(jLabel1); c_carmetal.setBackground(new java.awt.Color(117, 112, 104)); c_carmetal.setMaximumSize(new java.awt.Dimension(182, 260)); c_carmetal.setMinimumSize(new java.awt.Dimension(182, 250)); c_carmetal.setOpaque(false); c_carmetal.setPreferredSize(new java.awt.Dimension(182, 250)); c_carmetal.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 3, 3)); commands.add(c_carmetal); c_js.setBackground(new java.awt.Color(117, 112, 104)); c_js.setMaximumSize(new java.awt.Dimension(182, 374)); c_js.setMinimumSize(new java.awt.Dimension(182, 260)); c_js.setOpaque(false); c_js.setPreferredSize(new java.awt.Dimension(182, 260)); c_js.setLayout(new javax.swing.BoxLayout(c_js, javax.swing.BoxLayout.Y_AXIS)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel2.setText("Javascript"); jLabel2.setAlignmentX(0.5F); jLabel2.setEnabled(false); jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabel2.setIconTextGap(0); jLabel2.setMaximumSize(new java.awt.Dimension(182, 25)); jLabel2.setMinimumSize(new java.awt.Dimension(182, 25)); jLabel2.setPreferredSize(new java.awt.Dimension(182, 25)); jLabel2.setRequestFocusEnabled(false); jLabel2.setVerifyInputWhenFocusTarget(false); c_js.add(jLabel2); js_btns.setMaximumSize(new java.awt.Dimension(182, 120)); js_btns.setMinimumSize(new java.awt.Dimension(182, 120)); js_btns.setOpaque(false); js_btns.setPreferredSize(new java.awt.Dimension(182, 120)); js_btns.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 3, 3)); c_js.add(js_btns); jScrollPane2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jScrollPane2.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jScrollPane2.setAutoscrolls(true); jScrollPane2.setFont(new java.awt.Font("Lucida Grande", 0, 12)); jScrollPane2.setMaximumSize(new java.awt.Dimension(160, 500)); jScrollPane2.setMinimumSize(new java.awt.Dimension(160, 100)); jScrollPane2.setPreferredSize(new java.awt.Dimension(160, 100)); JSlist.setBackground(new java.awt.Color(214, 221, 229)); JSlist.setFont(new java.awt.Font("DejaVu Sans", 2, 16)); // NOI18N JSlist.setForeground(new java.awt.Color(150, 50, 50)); JSlist.setModel(new javax.swing.AbstractListModel() { String[] strings = { Global.Loc("JSFonctions.Input"), Global.Loc("JSFonctions.Print"), Global.Loc("JSFonctions.Println"), Global.Loc("JSFonctions.Alert"), Global.Loc("JSFonctions.ifelse"), Global.Loc("JSFonctions.switchcase"), Global.Loc("JSFonctions.for"), Global.Loc("JSFonctions.while"), Global.Loc("JSFonctions.dowhile"), Global.Loc("JSFonctions.dountil"), Global.Loc("JSFonctions.function") }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); JSlist.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); JSlist.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); JSlist.setDragEnabled(true); JSlist.setFixedCellHeight(20); JSlist.setMaximumSize(new java.awt.Dimension(160, 415)); JSlist.setMinimumSize(new java.awt.Dimension(160, 20)); JSlist.setPreferredSize(new java.awt.Dimension(160, 220)); JSlist.setRequestFocusEnabled(false); JSlist.setVisibleRowCount(-1); JSlist.addListSelectionListener(new javax.swing.event.ListSelectionListener() { public void valueChanged(javax.swing.event.ListSelectionEvent evt) { JSlistValueChanged(evt); } }); jScrollPane2.setViewportView(JSlist); c_js.add(jScrollPane2); commands.add(c_js); jPanel1.add(commands); RightBorder.setMaximumSize(new java.awt.Dimension(5, 32767)); RightBorder.setMinimumSize(new java.awt.Dimension(5, 0)); RightBorder.setPreferredSize(new java.awt.Dimension(5, 515)); RightBorder.setLayout(null); jPanel1.add(RightBorder); getContentPane().add(jPanel1); controls.setMaximumSize(new java.awt.Dimension(32000, 22)); controls.setMinimumSize(new java.awt.Dimension(35, 22)); controls.setPreferredSize(new java.awt.Dimension(35, 22)); controls.setLayout(new javax.swing.BoxLayout(controls, javax.swing.BoxLayout.X_AXIS)); jPanel13.setAlignmentX(0.0F); jPanel13.setAlignmentY(0.0F); jPanel13.setMaximumSize(new java.awt.Dimension(10, 1)); jPanel13.setMinimumSize(new java.awt.Dimension(10, 1)); jPanel13.setOpaque(false); jPanel13.setPreferredSize(new java.awt.Dimension(10, 1)); controls.add(jPanel13); errorpanel.setAlignmentX(0.0F); errorpanel.setAlignmentY(0.0F); errorpanel.setMaximumSize(new java.awt.Dimension(32737, 32737)); errorpanel.setMinimumSize(new java.awt.Dimension(0, 30)); errorpanel.setOpaque(false); errorpanel.setPreferredSize(new java.awt.Dimension(0, 30)); errorpanel.setLayout(new javax.swing.BoxLayout(errorpanel, javax.swing.BoxLayout.X_AXIS)); errortitlelabel.setBackground(new java.awt.Color(117, 112, 104)); errortitlelabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/error.png"))); // NOI18N errortitlelabel.setText("Error"); errortitlelabel.setAlignmentY(0.0F); errortitlelabel.setIconTextGap(10); errortitlelabel.setMaximumSize(new java.awt.Dimension(250, 30)); errortitlelabel.setMinimumSize(new java.awt.Dimension(250, 30)); errortitlelabel.setPreferredSize(new java.awt.Dimension(250, 30)); errorpanel.add(errortitlelabel); errormessagelabel.setBackground(new java.awt.Color(117, 112, 104)); errormessagelabel.setFont(new java.awt.Font("DejaVu Sans", 3, 13)); errormessagelabel.setForeground(new java.awt.Color(102, 102, 102)); errormessagelabel.setText("Error message"); errormessagelabel.setAlignmentY(0.0F); errormessagelabel.setMaximumSize(new java.awt.Dimension(10000, 30)); errormessagelabel.setMinimumSize(new java.awt.Dimension(300, 30)); errormessagelabel.setPreferredSize(new java.awt.Dimension(300, 30)); errorpanel.add(errormessagelabel); controls.add(errorpanel); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/themes/gray/zoombox.png"))); // NOI18N jButton2.setAlignmentY(0.0F); jButton2.setBorderPainted(false); jButton2.setContentAreaFilled(false); jButton2.setMaximumSize(new java.awt.Dimension(25, 30)); jButton2.setMinimumSize(new java.awt.Dimension(25, 30)); jButton2.setPreferredSize(new java.awt.Dimension(25, 30)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } public void mousePressed(java.awt.event.MouseEvent evt) { jButton2MousePressed(evt); } }); jButton2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { jButton2MouseDragged(evt); } }); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); controls.add(jButton2); getContentPane().add(controls); pack(); }// //GEN-END:initComponents private void script_areaKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_script_areaKeyReleased // syntaxColoring(); // TODO add your handling code here: // if (evt.getKeyCode()==KeyEvent.VK_ENTER) { // FindDelimiters(); // int c=script_area.getCaretPosition(); // int t=tabIndent(c); // script_area.replaceSelection(tabs(t)); // //// script_area.setCaretPosition(c-t); // } }//GEN-LAST:event_script_areaKeyReleased private void script_areaKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_script_areaKeyPressed // TODO add your handling code here: NoTypeNoClic=false; // errorpanel.removeAll(); }//GEN-LAST:event_script_areaKeyPressed private void script_areaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_script_areaKeyTyped // errorpanel.removeAll(); // TODO add your handling code here: clearStatusBar(); }//GEN-LAST:event_script_areaKeyTyped private void script_areaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_script_areaMouseClicked NoTypeNoClic=false; // TODO add your handling code here: clearStatusBar(); }//GEN-LAST:event_script_areaMouseClicked private void closeBTNMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBTNMouseClicked dispose(); }//GEN-LAST:event_closeBTNMouseClicked private void macpanelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_macpanelMousePressed origin=MouseInfo.getPointerInfo().getLocation(); winloc=getLocation(); // TODO add your handling code here: }//GEN-LAST:event_macpanelMousePressed private void jPanel3MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MousePressed origin=MouseInfo.getPointerInfo().getLocation(); winloc=getLocation(); // TODO add your handling code here: }//GEN-LAST:event_jPanel3MousePressed private void jPanel3MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel3MouseDragged current=MouseInfo.getPointerInfo().getLocation(); xx=winloc.x+current.x-origin.x; yy=winloc.y+current.y-origin.y; setLocation(xx, yy); Toolkit.getDefaultToolkit().sync(); // TODO add your handling code here: }//GEN-LAST:event_jPanel3MouseDragged private void macpanelMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_macpanelMouseDragged current=MouseInfo.getPointerInfo().getLocation(); xx=winloc.x+current.x-origin.x; yy=winloc.y+current.y-origin.y; setLocation(xx, yy); Toolkit.getDefaultToolkit().sync(); // TODO add your handling code here: }//GEN-LAST:event_macpanelMouseDragged private void winpanelMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_winpanelMouseDragged current=MouseInfo.getPointerInfo().getLocation(); xx=winloc.x+current.x-origin.x; yy=winloc.y+current.y-origin.y; setLocation(xx, yy); Toolkit.getDefaultToolkit().sync(); // TODO add your handling code here: }//GEN-LAST:event_winpanelMouseDragged private void winpanelMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_winpanelMousePressed origin=MouseInfo.getPointerInfo().getLocation(); winloc=getLocation(); // TODO add your handling code here: }//GEN-LAST:event_winpanelMousePressed private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked // TODO add your handling code here: }//GEN-LAST:event_jButton2MouseClicked private void jButton2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MousePressed origin=MouseInfo.getPointerInfo().getLocation(); winloc=getLocation(); w=this.getWidth(); h=this.getHeight(); // TODO add your handling code here: }//GEN-LAST:event_jButton2MousePressed private void jButton2MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseDragged current=MouseInfo.getPointerInfo().getLocation(); setSize(Math.max(current.x-origin.x+w, 40), Math.max(current.y-origin.y+h, 120)); Toolkit.getDefaultToolkit().sync(); // TODO add your handling code here: }//GEN-LAST:event_jButton2MouseDragged private void JSlistValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_JSlistValueChanged //infrench = System.getProperty("user.language").equals("fr"); String scp=script_area.getText(); if (evt.getValueIsAdjusting()==false) { int sel=JSlist.getSelectedIndex(); JSlist.removeSelectionInterval(sel, sel); if (sel==0) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("a ⟵ Entrée(\""+Loc("JScmd.inputmessage")+"\")"); } else { script_area.replaceSelection("a ⟵ Input(\""+Loc("JScmd.inputmessage")+"\")"); } } else { if (infrench) { if (FlagSimp) { script_area.replaceSelection("a:=Entrée(\""+Loc("JScmd.inputmessage")+"\");"); } else { script_area.replaceSelection("a=Entrée(\""+Loc("JScmd.inputmessage")+"\");"); } } else { if (FlagSimp) { script_area.replaceSelection("a:=Input(\""+Loc("JScmd.inputmessage")+"\");"); } else { script_area.replaceSelection("a=Input(\""+Loc("JScmd.inputmessage")+"\");"); } } } } else if (sel==1) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("Afficher \""+Loc("JScmd.promptmessage")+"\""); } else { script_area.replaceSelection("Print(\""+Loc("JScmd.promptmessage")+"\")"); } } else { if (infrench) { script_area.replaceSelection("Afficher(\""+Loc("JScmd.promptmessage")+"\");"); } else { script_area.replaceSelection("Print(\""+Loc("JScmd.promptmessage")+"\");"); } } } else if (sel==2) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("Afficherligne(\""+Loc("JScmd.promptmessage")+"\")"); } else { script_area.replaceSelection("Println(\""+Loc("JScmd.promptmessage")+"\")"); } } else { if (infrench) { script_area.replaceSelection("Afficherligne(\""+Loc("JScmd.promptmessage")+"\");"); } else { script_area.replaceSelection("Println(\""+Loc("JScmd.promptmessage")+"\");"); } } } else if (sel==3) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("Alerte(\""+Loc("JScmd.promptmessage")+"\")"); } else { script_area.replaceSelection("Alert(\""+Loc("JScmd.promptmessage")+"\")"); } } else{ if (infrench) { script_area.replaceSelection("Alerte(\""+Loc("JScmd.promptmessage")+"\");"); } else { script_area.replaceSelection("Alert(\""+Loc("JScmd.promptmessage")+"\");"); } } } else if (sel==4) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("si i<20 \n ...\nsinon \n ..."); } else { script_area.replaceSelection("if i<20 \n ...\nelse \n ..."); } } else { if (infrench) { script_area.replaceSelection("si (i<20){\n\n} sinon {\n\n}"); } else { script_area.replaceSelection("if (i<20){\n\n} else {\n\n}"); } } } else if (sel==5) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("si i<20 \n ...\nsinon \n si i<5 \n ...\n sinon \n ..."); } else { script_area.replaceSelection("if i<20 \n ...\nelse \n if i<5 \n ...\n else \n ..."); } } else { if (infrench) { script_area.replaceSelection("bifurquer (d){\n " +"cas 1 : {\n\n rompre; }\n cas 2 : {\n\n rompre; }\n" +"cas 3 : {\n\n rompre;} \n par défaut : {\n\n } \n} "); } else { script_area.replaceSelection("switch (d){\n " +"case 1 : {\n\n break; }\n case 2 : {\n\n break; }\n" +"case 3 : {\n\n break;} \n par default : {\n\n } \n} "); } } } else if (sel==6) { if (pseudoCode){ if (infrench) { if (FlagSimp) { script_area.replaceSelection("répéter 20 fois \n ..."); } else { script_area.replaceSelection("pour i allant de 1 à 20 \n ..."); } } else { if (FlagSimp) { script_area.replaceSelection("repeat 20 times \n ..."); } else { script_area.replaceSelection("for (i ⟵ 0; i<20; i++) \n ..."); } } } else { if (infrench) { if (FlagSimp) { script_area.replaceSelection("répéter 20 fois {\n\n}"); } else { script_area.replaceSelection("pour i allant de 1 à 20 {\n\n}"); } } else { if (FlagSimp) { script_area.replaceSelection("repeat 20 times {\n\n}"); } else { script_area.replaceSelection("for (i=0; i<20; i++){\n\n}"); } } } } else if (sel==7) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("tant que (i<20)\n ...\n i ⟵ i+1"); } else { script_area.replaceSelection("while (i<20)\n ...\n i ⟵ i+1"); } } else { if (infrench) { if (FlagSimp) { script_area.replaceSelection("tant que (i<20){\ni:=i+1;\n}\n"); } else { script_area.replaceSelection("tant que (i<20){\ni=i+1;\n}\n"); } } else { if (FlagSimp) { script_area.replaceSelection("while (i<20){\ni:=i+1;\n}\n"); } else { script_area.replaceSelection("while (i<20){\ni=i+1;\n}\n"); } } } } else if(sel==8) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("faire\n ...\n i ⟵ i+1\ntant que (i<20)\n"); } else { script_area.replaceSelection("do\n ...\n i ⟵ i+1\nwhile (i<20)\n"); } } else { if (infrench) { if (FlagSimp) { script_area.replaceSelection("faire{\ni:=i+1;\n\n}tant que (i<20)\n"); } else { script_area.replaceSelection("faire{\ni=i+1;\n\n}tant que (i<20)\n"); } } else { if (FlagSimp) { script_area.replaceSelection("do{\ni:=i+1;\n\n}while (i<20)\n"); } else { script_area.replaceSelection("do{\ni=i+1;\n\n}while (i<20)\n"); } } } } else if(sel==9) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("faire\n ...\n i ⟵ i+1\njusqu'à (i>20)\n"); } else { script_area.replaceSelection("do\n ...\n i ⟵ i+1\nuntil (i>20)\n"); } } else { if (infrench) { if (FlagSimp) { script_area.replaceSelection("faire{\ni:=i+1;\n\n}jusqu'à (i>20);\n"); } else { script_area.replaceSelection("faire{\ni=i+1;\n\n}jusqu'à (i>20);\n"); } } else { if (FlagSimp) { script_area.replaceSelection("do{\ni:=i+1;\n\n}until (i>20);\n"); } else { script_area.replaceSelection("do{\ni=i+1;\n\n}until (i>20);\n"); } } } } else if (sel==10) { if (pseudoCode){ if (infrench) { script_area.replaceSelection("fonction mafonction(x)\n ..."); } else { script_area.replaceSelection("function myfunction(x)\n ..."); } } else { if (infrench) { script_area.replaceSelection("fonction myfunction(x){\n\n}"); } else { script_area.replaceSelection("function myfunction(x){\n\n}"); } } } //Format(); script_area.requestFocus(); } // TODO add your handling code here: }//GEN-LAST:event_JSlistValueChanged private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed // TODO add your handling code here: }//GEN-LAST:event_formWindowClosed private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated // System.out.println("activated"); // TODO add your handling code here: }//GEN-LAST:event_formWindowActivated private void formWindowDeactivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowDeactivated // System.out.println("déactivated"); // TODO add your handling code here: }//GEN-LAST:event_formWindowDeactivated private void backbtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backbtnActionPerformed // TODO add your handling code here: }//GEN-LAST:event_backbtnActionPerformed private void backbtnKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_backbtnKeyPressed // TODO add your handling code here: }//GEN-LAST:event_backbtnKeyPressed private void backbtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backbtnMouseClicked // TODO add your handling code here: clearStatusBar(); ITEM.getPanel().Restore(); }//GEN-LAST:event_backbtnMouseClicked private void openbtn2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openbtn2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_openbtn2ActionPerformed private void openbtn2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_openbtn2KeyPressed // TODO add your handling code here: }//GEN-LAST:event_openbtn2KeyPressed private void openbtn2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openbtn2MouseClicked // TODO add your handling code here: clearStatusBar(); Format(); syntaxColoring(); }//GEN-LAST:event_openbtn2MouseClicked private void openbtn3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openbtn3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_openbtn3ActionPerformed private void openbtn3KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_openbtn3KeyPressed // TODO add your handling code here: }//GEN-LAST:event_openbtn3KeyPressed private void openbtn3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openbtn3MouseClicked // TODO add your handling code here: clearStatusBar(); ITEM.runScript(); }//GEN-LAST:event_openbtn3MouseClicked private void openbtn4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openbtn4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_openbtn4ActionPerformed private void openbtn4KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_openbtn4KeyPressed // TODO add your handling code here: }//GEN-LAST:event_openbtn4KeyPressed private void openbtn4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openbtn4MouseClicked // TODO add your handling code here: // setAlwaysOnTop(true); JBrowserLauncher.openURL("http://carmetal.org/index.php/fr/tutoriels/les-scripts/syntaxe"); //setAlwaysOnTop(false); toFront(); }//GEN-LAST:event_openbtn4MouseClicked private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing // TODO add your handling code here: }//GEN-LAST:event_formWindowClosing private void openbtn5ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void openbtn5KeyPressed(java.awt.event.KeyEvent evt) { // TODO add your handling code here: } private void openbtn5MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling code here: commentSelection(); } private void openbtnfrenchActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void openbtnfrenchKeyPressed(java.awt.event.KeyEvent evt) { // TODO add your handling code here: } private void openbtnfrenchMouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling code here: infrench=!infrench; if (infrench) openbtnfrench.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/french.png"))); else openbtnfrench.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/french2.png"))); openbtnfrench.setBorder(null); openbtnfrench.setContentAreaFilled(false); c_carmetal.removeAll(); initCaRMetalBtns(); openbtnfrench.revalidate(); c_carmetal.revalidate(); } private void openbtnSimpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openbtn5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_openbtn5ActionPerformed private void openbtnSimpKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_openbtn5KeyPressed // TODO add your handling code here: }//GEN-LAST:event_openbtn5KeyPressed private void openbtnSimpMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_openbtn5MouseClicked // TODO add your handling code here: FlagSimp=!FlagSimp; if (FlagSimp) openbtnSimp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/js2.png"))); else openbtnSimp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/eric/GUI/icons/jswindow/js.png"))); openbtnSimp.setBorder(null); openbtnSimp.setContentAreaFilled(false); c_carmetal.removeAll(); initCaRMetalBtns(); openbtnSimp.revalidate(); c_carmetal.revalidate(); }//GEN-LAST:event_openbtn5MouseClicked private void jTextHeightStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTextHeightStateChanged // TODO add your handling code here: clearStatusBar(); script_area.setFont(new Font("monospaced", Font.PLAIN, TailleTexte));//taille script TailleTexte=jTextHeight.getValue(); }//GEN-LAST:event_jTextHeightStateChanged private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jButton2ActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JList JSlist; private javax.swing.JPanel LeftBorder; private javax.swing.JPanel RightBorder; private javax.swing.JPanel action_buttons; private javax.swing.JButton backbtn; private javax.swing.JPanel c_carmetal; private javax.swing.JPanel c_js; private javax.swing.JButton closeBTN; private javax.swing.JPanel commands; private javax.swing.JPanel controls; private javax.swing.JLabel errormessagelabel; private javax.swing.JPanel errorpanel; private javax.swing.JLabel errortitlelabel; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel10; private javax.swing.JPanel jPanel11; private javax.swing.JPanel jPanel12; private javax.swing.JPanel jPanel13; private javax.swing.JPanel jPanel14; private javax.swing.JPanel jPanel15; private javax.swing.JPanel jPanel16; private javax.swing.JPanel jPanel18; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JSlider jTextHeight; private javax.swing.JPanel js_btns; private javax.swing.JPanel macpanel; private javax.swing.JButton openbtn2; private javax.swing.JButton openbtn3; private javax.swing.JButton openbtn4; private javax.swing.JButton openbtn5; private javax.swing.JButton openbtnfrench; private javax.swing.JButton openbtnSimp; private javax.swing.JTextPane script_area; private javax.swing.JLabel title_lbl; private javax.swing.JPanel winpanel; // End of variables declaration//GEN-END:variables } carmetal-4.3/src/eric/JSprogram/JSFunctions.java000066400000000000000000013263011417122252700216460ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import eric.*; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import java.awt.Color; import java.awt.FileDialog; import java.io.File; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import java.util.Vector; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import org.mozilla.javascript.Context; import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.ScriptableObject; import rene.gui.Global; import rene.util.FileName; import rene.zirkel.ZirkelCanvas; import rene.zirkel.construction.Construction; import rene.zirkel.construction.ConstructionException; import rene.zirkel.constructors.ObjectConstructor; import rene.zirkel.expression.Expression; import rene.zirkel.macro.MacroRunner; import rene.zirkel.objects.AngleObject; import rene.zirkel.objects.AreaObject; import rene.zirkel.objects.CircleObject; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.objects.EquationXYObject; import rene.zirkel.objects.ExpressionObject; import rene.zirkel.objects.FixedAngleObject; import rene.zirkel.objects.FixedCircleObject; import rene.zirkel.objects.FunctionObject; import rene.zirkel.objects.IntersectionObject; import rene.zirkel.objects.PointObject; import rene.zirkel.objects.PrimitiveCircleObject; import rene.zirkel.objects.PrimitiveLineObject; import rene.zirkel.objects.QuadricObject; import rene.zirkel.objects.SegmentObject; import rene.zirkel.objects.TextObject; import rene.zirkel.objects.TwoPointLineObject; import rene.zirkel.objects.VectorObject; /** * * @author erichake with addons by Dibs */ public class JSFunctions { static String[] allnames={"cm", "Input", "Entrée", "EntréeNombreEntier", "EntréeNombreDécimal", "Prompt", "Signaler", "Print", "Afficher", "afficher", "Println", "Afficherligne", "Shownames", "MontrerNoms", "Hidenames", "CacherNoms", "Hide", "Cacher", "Show", "Montrer", "Point", "PointOn", "PointSur", "ImplicitPlot", "TracéImplicite", "Intersection", "Intersection2", "Intersections", "MidPoint", "Milieu", "Symmetry", "SymétrieCentrale", "Line", "Droite", "Segment", "Circle", "Cercle", "Parallel", "Parallèle", "Perpendicular", "Perpendiculaire", "FixedCircle", "CercleRayon", "Move", "Déplacer", "X", "Y", "GetExpressionValue", "PrendreValeurExpression", "Ray", "DemiDroite", "Angle", "Polygon", "Polygone", "Quadric", "Quadrique", "CartesianFunction", "FonctionCartésienne", "ParametricFunction", "FonctionParamétrique", "SetColor", "MettreCouleur", "SetText", "MettreTexte", "SetThickness", "MettreEpaisseur", "SetFixed", "MettreFixe", "Vector", "Vecteur", "SetRGBColor", "MettreCouleurRVB", "SetShowName", "MettreMontrerNom", "SetShowValue", "MettreMontrerValeur", "SetFilled", "MettreRempli", "SetSolid", "MettreOpaque", "SetPartial", "MettrePartiel", "Expression", "Text", "Texte", "SetAlias", "MettreAlias", "SetMagneticObjects", "MettreObjetsMagnétiques", "AddMagneticObject", "AjouterObjetMagnétique", "SetMagneticRay", "MettreRayonMagnétique", "SetPointType", "MettreTypePoint", "InteractiveInput", "EntréeInteractive", "FixedSegment", "SegmentFixe", "SetHide", "MettreCaché", "Pause", "Delete", "Supprimer", "SetExpressionValue", "MettreValeurExpression", "Reflection", "SymétrieAxiale", "Translation", "PerpendicularBisector", "Médiatrice", "AngleBisector", "Bissectrice", "Circle3pts", "Cercle3pts", "Arc3pts", "FixedAngle", "AngleFixe", "Circle3", "Cercle3", "ExecuteMacro", "ExécuterMacro", "ExecuteMacroAsBuilt", "ExécuterMacroCommeDéfinie", "Alert", "Alerte", "Conditional", "Conditionnel", "Layer", "Calque", "GetRed", "PrendreRouge", "GetGreen", "PrendreVert", "GetBlue", "PrendreBleu", "PenDown", "CrayonBaissé", "SetRed", "MettreRouge", "SetGreen", "MettreVert", "SetBlue", "MettreBleu", "DPPoint", "DPLine", "DPSegment", "DPPerpendicular", "DPPerpendicularBisector", "DPMidPoint", "DPCircle", "DPReflexion", "DPSymmetry", "DPAngleBisector", "DPCommonPerpendicular", "DPRay", "AvancerDP", "MoveForwardDP", "ViserDP", "OrientateTowardsDP", "getC", "getZC", "refreshZC", "rafraichirZC", "Load", "Origin", "Origine", "Extremity", "Extrémité", "GetText", "PrendreTexte", "ReflexAngle", "AngleRentrant", "Exists", "Existe", "SetIncrement", "MettreIncrément", "GetOpenFile", "PrendreFichierOuvert", "OrderedIntersection", "IntersectionOrdonnée", "SetMinOpen", "SetMinClosed", "SetMaxOpen", "SetMaxClosed","Distance", "Point3D", "X3D", "Y3D", "Z3D", "Distance3D", "getCONSOLE", "prendreCONSOLE", "Sphere", "Sphère", "FixedSphere", "SphèreRayon", "Projection3D", "Reflection3D", "Symétrie3DPlan", "Symmetry3D", "SymétrieCentrale3D", "Translation3D", "Circle3D", "Cercle3D", "FixedCircle3D", "CercleRayon3D", "Circle3D3pts", "Cercle3D3pts","SetIconSelection","IsIconSelected","AttacherTortue", "BaisserStylo","LeverStylo","Avancer","TournerGauche","TournerDroite","MontrerTortue","CacherTortue","OrienterTortue","VitesseTortue","Reculer","PivoterGauche","PivoterDroite","PivoterHaut","PivoterBas","Viser","Triangle","Quadrilatère","Quadrangle","FixTurtle","TurtleDown","TurtleUp","MoveForward","MoveBackward","TurnLeft", "TurnRight","RollLeft","RollRight","PitchUp","PitchDown","ShowTurtle","HideTurtle","OrientateTurtle","OrientateTowards","TurtleSpeed","Liberate","Libérer","getRealScript","getZZ","prendreZZ","Quadrilatère3D", "Quadrangle3D", "Polygone3D", "Polygon3D","ClicVirtuel","AutoriserRentrant","AllowReflex"}; static PointObject ptTortue, pt3DTortue; static PointObject ptTortue2, pt3DTortue2; static PointObject ptSupport; static PointObject ptSupport2; static PointObject ptO; static PointObject ptO2; static PointObject ptO3; static VectorObject dirTortue; static VectorObject dirTortueVisu; static ExpressionObject longueurTortue, longueurTortue3D; static boolean styloBaisse, turtleIs3D; static double vitesseTortue = 100; static double nbSteps=1; static PointObject t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18, t19, t20, t21, t22, t23, t24; static Vector p1, p2, tete, p3, p4, cara; static AreaObject pp1, pp2, pp3, pp4, ttete, ccara; static PointObject pt3D0, pt3D1, pt3D2, pt3D3, pt3D1b, pt3D2b, pt3D3b, pt3DSupport, pt3DSupport01, pt3DSupport02, pt3DSupport03, t3D1, t3D2, t3D3, t3D4; static VectorObject dirTortue3D1, dirTortue3D2, dirTortue3D3, dirTortueVisu3D1, dirTortueVisu3D2, dirTortueVisu3D3; static Vector p3D; static AreaObject pp3D; static PointObject oldpt3D2, oldpt3D3, pt3D2bis, pt3D3bis, npoint; public static String[] getKeywords() { return allnames; } public static String AttacherTortue(String name) { pt3DTortue=(PointObject) getC().find(name); if (pt3DTortue!=null) { turtleIs3D=pt3DTortue.is3D(); synchronized (getC()) { if (turtleIs3D) { try { if (pt3D0==null) { longueurTortue3D=new ExpressionObject(getC(), 0, 0); longueurTortue3D.setDefaults(); longueurTortue3D.setHidden(true); longueurTortue3D.setName("kTortue3D"); longueurTortue3D.setPrompt(longueurTortue3D.getName()); styloBaisse = true; pt3D0=new PointObject(getC(),0,0); longueurTortue3D.setExpression("60/pixel", getC()); pt3D1=new PointObject(getC(),0,0); pt3D2=new PointObject(getC(),0,0); pt3D3=new PointObject(getC(),0,0); pt3D1b=new PointObject(getC(),0,0); pt3D2b=new PointObject(getC(),0,0); pt3D3b=new PointObject(getC(),0,0); dirTortue3D1= new VectorObject(getC(),pt3D0,pt3D1); dirTortue3D2= new VectorObject(getC(),pt3D0,pt3D2); dirTortue3D3= new VectorObject(getC(),pt3D0,pt3D3); pt3DSupport=new PointObject(getC(),0,0); pt3DSupport01=new PointObject(getC(),0,0); pt3DSupport02=new PointObject(getC(),0,0); pt3DSupport03=new PointObject(getC(),0,0); dirTortueVisu3D1= new VectorObject(getC(),pt3DSupport,pt3DSupport01); dirTortueVisu3D2= new VectorObject(getC(),pt3DSupport,pt3DSupport02); dirTortueVisu3D3= new VectorObject(getC(),pt3DSupport,pt3DSupport03); p3D= new Vector(); t3D1=new PointObject(getC(),0,0); t3D2=new PointObject(getC(),0,0); t3D3=new PointObject(getC(),0,0);; t3D4=new PointObject(getC(),0,0); pp3D = new AreaObject(getC(),p3D); pp3D.setDefaults(); pp3D.setFilled(true); pp3D.setSpecialColor(new Color(138,74,0)); } else { pt3D1=new PointObject(getC(),0,0); pt3D2=new PointObject(getC(),0,0); pt3D3=new PointObject(getC(),0,0); pt3D1b=new PointObject(getC(),0,0); pt3D2b=new PointObject(getC(),0,0); pt3D3b=new PointObject(getC(),0,0); } addObject(longueurTortue3D); addObject(pt3D0); addObject(pt3D1); addObject(pt3D2); addObject(pt3D3); addObject(pt3D1b); addObject(pt3D2b); addObject(pt3D3b); addObject(dirTortue3D1); addObject(dirTortue3D2); addObject(dirTortue3D3); addObject(pt3DSupport); addObject(pt3DSupport01); addObject(pt3DSupport02); addObject(pt3DSupport03); addObject(dirTortueVisu3D1); addObject(dirTortueVisu3D2); addObject(dirTortueVisu3D3); addObject(t3D1); addObject(t3D2); addObject(t3D3); addObject(pp3D); pt3D0.setIs3D(true); pt3D1.setIs3D(true); pt3D2.setIs3D(true); pt3D3.setIs3D(true); pt3D0.setFixed("0","0","0"); pt3D0.validate(); pt3D1.setFixed("1","0","0"); pt3D1.validate(); pt3D2.setFixed("0","1","0"); pt3D3.validate(); pt3D3.setFixed("0","0","1"); pt3D0.setHidden(true); pt3D1.setSuperHidden(true); pt3D2.setSuperHidden(true); pt3D3.setSuperHidden(true); pt3D1b.setSuperHidden(true); pt3D2b.setSuperHidden(true); pt3D3b.setSuperHidden(true); pt3D1b.setIs3D(true); pt3D2b.setIs3D(true); pt3D3b.setIs3D(true); pt3D1b.setFixed("1","0","0"); pt3D2b.setFixed("0","1","0"); pt3D3b.setFixed("0","0","1"); pt3DSupport.setIs3D(true); pt3DSupport01.setIs3D(true); pt3DSupport02.setIs3D(true); pt3DSupport03.setIs3D(true); t3D1.setIs3D(true); t3D2.setIs3D(true); t3D3.setIs3D(true); t3D4.setIs3D(true); dirTortue3D1.setDefaults(); dirTortue3D1.setHidden(true); dirTortue3D2.setDefaults(); dirTortue3D2.setHidden(true); dirTortue3D3.setDefaults(); dirTortue3D3.setHidden(true); dirTortueVisu3D1.setDefaults(); dirTortueVisu3D1.setHidden(true); dirTortueVisu3D2.setDefaults(); dirTortueVisu3D2.setHidden(true); dirTortueVisu3D3.setDefaults(); dirTortueVisu3D3.setHidden(true); pt3DTortue=(PointObject) getC().find(name); pt3DSupport.setSuperHidden(true); pt3DSupport.setFixed("x3D("+pt3DTortue.getName()+")","y3D("+pt3DTortue.getName()+")","z3D("+pt3DTortue.getName()+")"); pt3DSupport01.setSuperHidden(true); pt3DSupport01.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D1.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D1.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D1.getName()+")"); pt3DSupport02.setSuperHidden(true); pt3DSupport02.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D2.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D2.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D2.getName()+")"); pt3DSupport03.setSuperHidden(true); pt3DSupport03.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D3.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D3.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D3.getName()+")"); pt3DSupport.validate(); pt3DSupport01.validate(); pt3DSupport02.validate(); pt3DSupport03.validate(); dirTortueVisu3D1.validate(); dirTortueVisu3D2.validate(); dirTortueVisu3D3.validate(); p3D.add(pt3DSupport); t3D1.setDefaults(); t3D1.setSuperHidden(true); t3D1.setFixed("x3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D2.getName()+")","y3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D2.getName()+")","z3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D2.getName()+")"); p3D.add(t3D1); t3D2.setDefaults(); t3D2.setSuperHidden(true); t3D2.setFixed("x3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")","y3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")","z3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")"); p3D.add(t3D2); t3D3.setDefaults(); t3D3.setSuperHidden(true); t3D3.setFixed("x3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D2.getName()+")","y3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D2.getName()+")","z3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D2.getName()+")"); p3D.add(t3D3); t3D1.validate(); t3D2.validate(); t3D3.validate(); pp3D.validate(); pp3D.addConditional("solid",new Expression(pp3D.getName()+"<0",getC(),pp3D)); pp3D.addConditional("thick",new Expression(pp3D.getName()+"<0",getC(),pp3D)); } catch (Exception e) { return ""; } return name; } else { try { if (ptO==null) { longueurTortue=new ExpressionObject(getC(), 0, 0); longueurTortue.setDefaults(); longueurTortue.setHidden(true); longueurTortue.setName("kTortue"); longueurTortue.setPrompt(longueurTortue.getName()); styloBaisse = true; p1= new Vector(); t1=new PointObject(getC(),0,0); t2=new PointObject(getC(),0,0); t3=new PointObject(getC(),0,0); t4=new PointObject(getC(),0,0); pp1 = new AreaObject(getC(),p1); p2= new Vector(); t5=new PointObject(getC(),0,0); t6=new PointObject(getC(),0,0); pp2 = new AreaObject(getC(),p2); tete= new Vector(); t7=new PointObject(getC(),0,0); t8=new PointObject(getC(),0,0); t9=new PointObject(getC(),0,0); t10=new PointObject(getC(),0,0); t11=new PointObject(getC(),0,0); ttete = new AreaObject(getC(),tete); if (getC().find("turtleVttete")==null) {ttete.setName("turtleVttete");} p3= new Vector(); t12=new PointObject(getC(),0,0); t13=new PointObject(getC(),0,0); t14=new PointObject(getC(),0,0); pp3 = new AreaObject(getC(),p3); p4= new Vector(); t15=new PointObject(getC(),0,0); t16=new PointObject(getC(),0,0); t17=new PointObject(getC(),0,0); pp4 = new AreaObject(getC(),p4); cara= new Vector(); t18=new PointObject(getC(),0,0); t19=new PointObject(getC(),0,0); t20=new PointObject(getC(),0,0); t21=new PointObject(getC(),0,0); t22=new PointObject(getC(),0,0); t23=new PointObject(getC(),0,0); t24=new PointObject(getC(),0,0); ccara = new AreaObject(getC(),cara); if (getC().find("turtleVccara")==null) {ccara.setName("turtleVccara");} pp1.setDefaults(); pp1.setFilled(true); pp1.setSpecialColor(new Color(138,102,66)); pp2.setDefaults(); pp2.setFilled(true); pp2.setSpecialColor(new Color(138,102,66)); ttete.setDefaults(); ttete.setFilled(true); ttete.setSpecialColor(new Color(138,102,66)); pp3.setDefaults(); pp3.setFilled(true); pp3.setSpecialColor(new Color(138,102,66)); pp4.setDefaults(); pp4.setFilled(true); pp4.setSpecialColor(new Color(138,102,66)); ccara.setDefaults(); ccara.setFilled(true); ccara.setSpecialColor(new Color(82,139,139)); } try { longueurTortue.setExpression("60/pixel", getC()); } catch (final ConstructionException e) { return ""; } ptTortue=(PointObject) getC().find(name); // ptO=new PointObject(getC(),0,0); ptO2=new PointObject(getC(),1,0); dirTortue= new VectorObject(getC(),ptO,ptO2); ptSupport=new PointObject(getC(),0,0); ptSupport2=new PointObject(getC(),0,0); ptTortue2=new PointObject(getC(),0,0); dirTortueVisu= new VectorObject(getC(),ptSupport,ptSupport2); addObject(longueurTortue); ptO.setHidden(true); addObject(ptO); ptO.setFixed("0*x("+ptTortue.getName()+")","0"); // astuce... ptO2.setSuperHidden(true); addObject(ptO2); ptO2.setFixed("1","0*y("+ptTortue.getName()+")"); ptO.validate(); ptO2.validate(); dirTortue.validate(); dirTortue.setDefaults(); dirTortue.setHidden(true); addObject(dirTortue); ptSupport.setSuperHidden(true); addObject(ptSupport); ptSupport.setFixed("x("+ptTortue.getName()+")","y("+ptTortue.getName()+")"); ptSupport2.setSuperHidden(true); addObject(ptSupport2); ptSupport2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); ptTortue2.setDefaults(); ptTortue2.setSuperHidden(true); addObject(ptTortue2); ptTortue2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); ptTortue2.validate(); dirTortueVisu.validate(); dirTortueVisu.setDefaults(); dirTortueVisu.setHidden(true); addObject(dirTortueVisu); t1.setDefaults(); t1.setSuperHidden(true); addObject(t1); t1.setFixed("x("+ptSupport.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t1); t2.setDefaults(); t2.setSuperHidden(true); addObject(t2); t2.setFixed("x("+ptSupport.getName()+")-0.4*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.4*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t2); t3.setDefaults(); t3.setSuperHidden(true); addObject(t3); t3.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t3); addObject(pp1); t4.setDefaults(); t4.setSuperHidden(true); addObject(t4); t4.setFixed("x("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t4); t5.setDefaults(); t5.setSuperHidden(true); addObject(t5); t5.setFixed("x("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t5); t6.setDefaults(); t6.setSuperHidden(true); addObject(t6); t6.setFixed("x("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t6); addObject(pp2); t7.setDefaults(); t7.setSuperHidden(true); addObject(t7); t7.setFixed("x("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.1*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.1*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t7); t8.setDefaults(); t8.setSuperHidden(true); addObject(t8); t8.setFixed("x("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.15*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.15*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t8); t9.setDefaults(); t9.setSuperHidden(true); addObject(t9); t9.setFixed("x("+ptSupport.getName()+")+1.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+1.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")"); tete.add(t9); t10.setDefaults(); t10.setSuperHidden(true); addObject(t10); t10.setFixed("x("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.15*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.15*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t10); t11.setDefaults(); t11.setSuperHidden(true); addObject(t11); t11.setFixed("x("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.1*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.1*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t11); addObject(ttete); t12.setDefaults(); t12.setSuperHidden(true); addObject(t12); t12.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t12); t13.setDefaults(); t13.setSuperHidden(true); addObject(t13); t13.setFixed("x("+ptSupport.getName()+")+0.4*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")-0.4*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t13); t14.setDefaults(); t14.setSuperHidden(true); addObject(t14); t14.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t14); addObject(pp3); t15.setDefaults(); t15.setSuperHidden(true); addObject(t15); t15.setFixed("x("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t15); t16.setDefaults(); t16.setSuperHidden(true); addObject(t16); t16.setFixed("x("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t16); t17.setDefaults(); t17.setSuperHidden(true); addObject(t17); t17.setFixed("x("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t17); addObject(pp4); t18.setDefaults(); t18.setSuperHidden(true); addObject(t18); t18.setFixed("x("+ptSupport.getName()+")","y("+ptSupport.getName()+")"); cara.add(t18); t19.setDefaults(); t19.setSuperHidden(true); addObject(t19); t19.setFixed("x("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t19); t20.setDefaults(); t20.setSuperHidden(true); addObject(t20); t20.setFixed("x("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t20); t21.setDefaults(); t21.setSuperHidden(true); addObject(t21); t21.setFixed("x("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t21); t22.setDefaults(); t22.setSuperHidden(true); addObject(t22); t22.setFixed("x("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t22); t23.setDefaults(); t23.setSuperHidden(true); addObject(t23); t23.setFixed("x("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t23); t24.setDefaults(); t24.setSuperHidden(true); addObject(t24); t24.setFixed("x("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t24); addObject(ccara); } catch (Exception e) { return ""; } return name; } } } else { return(""); } } public static String FixTurtle(String name) { pt3DTortue=(PointObject) getC().find(name); if (pt3DTortue!=null) { turtleIs3D=pt3DTortue.is3D(); synchronized (getC()) { if (turtleIs3D) { try { if (pt3D0==null) { longueurTortue3D=new ExpressionObject(getC(), 0, 0); longueurTortue3D.setDefaults(); longueurTortue3D.setHidden(true); longueurTortue3D.setName("kTortue3D"); longueurTortue3D.setPrompt(longueurTortue3D.getName()); styloBaisse = true; pt3D0=new PointObject(getC(),0,0); longueurTortue3D.setExpression("60/pixel", getC()); pt3D1=new PointObject(getC(),0,0); pt3D2=new PointObject(getC(),0,0); pt3D3=new PointObject(getC(),0,0); pt3D1b=new PointObject(getC(),0,0); pt3D2b=new PointObject(getC(),0,0); pt3D3b=new PointObject(getC(),0,0); dirTortue3D1= new VectorObject(getC(),pt3D0,pt3D1); dirTortue3D2= new VectorObject(getC(),pt3D0,pt3D2); dirTortue3D3= new VectorObject(getC(),pt3D0,pt3D3); pt3DSupport=new PointObject(getC(),0,0); pt3DSupport01=new PointObject(getC(),0,0); pt3DSupport02=new PointObject(getC(),0,0); pt3DSupport03=new PointObject(getC(),0,0); dirTortueVisu3D1= new VectorObject(getC(),pt3DSupport,pt3DSupport01); dirTortueVisu3D2= new VectorObject(getC(),pt3DSupport,pt3DSupport02); dirTortueVisu3D3= new VectorObject(getC(),pt3DSupport,pt3DSupport03); p3D= new Vector(); t3D1=new PointObject(getC(),0,0); t3D2=new PointObject(getC(),0,0); t3D3=new PointObject(getC(),0,0);; t3D4=new PointObject(getC(),0,0); pp3D = new AreaObject(getC(),p3D); pp3D.setDefaults(); pp3D.setFilled(true); pp3D.setSpecialColor(new Color(138,74,0)); } else { pt3D1=new PointObject(getC(),0,0); pt3D2=new PointObject(getC(),0,0); pt3D3=new PointObject(getC(),0,0); pt3D1b=new PointObject(getC(),0,0); pt3D2b=new PointObject(getC(),0,0); pt3D3b=new PointObject(getC(),0,0); } addObject(longueurTortue3D); addObject(pt3D0); addObject(pt3D1); addObject(pt3D2); addObject(pt3D3); addObject(pt3D1b); addObject(pt3D2b); addObject(pt3D3b); addObject(dirTortue3D1); addObject(dirTortue3D2); addObject(dirTortue3D3); addObject(pt3DSupport); addObject(pt3DSupport01); addObject(pt3DSupport02); addObject(pt3DSupport03); addObject(dirTortueVisu3D1); addObject(dirTortueVisu3D2); addObject(dirTortueVisu3D3); addObject(t3D1); addObject(t3D2); addObject(t3D3); addObject(pp3D); pt3D0.setIs3D(true); pt3D1.setIs3D(true); pt3D2.setIs3D(true); pt3D3.setIs3D(true); pt3D0.setFixed("0","0","0"); pt3D0.validate(); pt3D1.setFixed("1","0","0"); pt3D1.validate(); pt3D2.setFixed("0","1","0"); pt3D3.validate(); pt3D3.setFixed("0","0","1"); pt3D0.setHidden(true); pt3D1.setSuperHidden(true); pt3D2.setSuperHidden(true); pt3D3.setSuperHidden(true); pt3D1b.setSuperHidden(true); pt3D2b.setSuperHidden(true); pt3D3b.setSuperHidden(true); pt3D1b.setIs3D(true); pt3D2b.setIs3D(true); pt3D3b.setIs3D(true); pt3D1b.setFixed("1","0","0"); pt3D2b.setFixed("0","1","0"); pt3D3b.setFixed("0","0","1"); pt3DSupport.setIs3D(true); pt3DSupport01.setIs3D(true); pt3DSupport02.setIs3D(true); pt3DSupport03.setIs3D(true); t3D1.setIs3D(true); t3D2.setIs3D(true); t3D3.setIs3D(true); t3D4.setIs3D(true); dirTortue3D1.setDefaults(); dirTortue3D1.setHidden(true); dirTortue3D2.setDefaults(); dirTortue3D2.setHidden(true); dirTortue3D3.setDefaults(); dirTortue3D3.setHidden(true); dirTortueVisu3D1.setDefaults(); dirTortueVisu3D1.setHidden(true); dirTortueVisu3D2.setDefaults(); dirTortueVisu3D2.setHidden(true); dirTortueVisu3D3.setDefaults(); dirTortueVisu3D3.setHidden(true); pt3DTortue=(PointObject) getC().find(name); pt3DSupport.setSuperHidden(true); pt3DSupport.setFixed("x3D("+pt3DTortue.getName()+")","y3D("+pt3DTortue.getName()+")","z3D("+pt3DTortue.getName()+")"); pt3DSupport01.setSuperHidden(true); pt3DSupport01.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D1.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D1.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D1.getName()+")"); pt3DSupport02.setSuperHidden(true); pt3DSupport02.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D2.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D2.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D2.getName()+")"); pt3DSupport03.setSuperHidden(true); pt3DSupport03.setFixed("x3D("+pt3DTortue.getName()+")+x3D("+dirTortue3D3.getName()+")","y3D("+pt3DTortue.getName()+")+y3D("+dirTortue3D3.getName()+")","z3D("+pt3DTortue.getName()+")+z3D("+dirTortue3D3.getName()+")"); pt3DSupport.validate(); pt3DSupport01.validate(); pt3DSupport02.validate(); pt3DSupport03.validate(); dirTortueVisu3D1.validate(); dirTortueVisu3D2.validate(); dirTortueVisu3D3.validate(); p3D.add(pt3DSupport); t3D1.setDefaults(); t3D1.setSuperHidden(true); t3D1.setFixed("x3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D2.getName()+")","y3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D2.getName()+")","z3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")+0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D2.getName()+")"); p3D.add(t3D1); t3D2.setDefaults(); t3D2.setSuperHidden(true); t3D2.setFixed("x3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")","y3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")","z3D("+pt3DSupport.getName()+")+0.8*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")"); p3D.add(t3D2); t3D3.setDefaults(); t3D3.setSuperHidden(true); t3D3.setFixed("x3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*x3D("+dirTortueVisu3D2.getName()+")","y3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*y3D("+dirTortueVisu3D2.getName()+")","z3D("+pt3DSupport.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D1.getName()+")-0.4*"+longueurTortue3D.getName()+"*z3D("+dirTortueVisu3D2.getName()+")"); p3D.add(t3D3); t3D1.validate(); t3D2.validate(); t3D3.validate(); pp3D.validate(); pp3D.addConditional("solid",new Expression(pp3D.getName()+"<0",getC(),pp3D)); pp3D.addConditional("thick",new Expression(pp3D.getName()+"<0",getC(),pp3D)); } catch (Exception e) { return ""; } return name; } else { try { if (ptO==null) { longueurTortue=new ExpressionObject(getC(), 0, 0); longueurTortue.setDefaults(); longueurTortue.setHidden(true); longueurTortue.setName("kTortue"); longueurTortue.setPrompt(longueurTortue.getName()); styloBaisse = true; p1= new Vector(); t1=new PointObject(getC(),0,0); t2=new PointObject(getC(),0,0); t3=new PointObject(getC(),0,0); t4=new PointObject(getC(),0,0); pp1 = new AreaObject(getC(),p1); p2= new Vector(); t5=new PointObject(getC(),0,0); t6=new PointObject(getC(),0,0); pp2 = new AreaObject(getC(),p2); tete= new Vector(); t7=new PointObject(getC(),0,0); t8=new PointObject(getC(),0,0); t9=new PointObject(getC(),0,0); t10=new PointObject(getC(),0,0); t11=new PointObject(getC(),0,0); ttete = new AreaObject(getC(),tete); if (getC().find("turtleVttete")==null) {ttete.setName("turtleVttete");} p3= new Vector(); t12=new PointObject(getC(),0,0); t13=new PointObject(getC(),0,0); t14=new PointObject(getC(),0,0); pp3 = new AreaObject(getC(),p3); p4= new Vector(); t15=new PointObject(getC(),0,0); t16=new PointObject(getC(),0,0); t17=new PointObject(getC(),0,0); pp4 = new AreaObject(getC(),p4); cara= new Vector(); t18=new PointObject(getC(),0,0); t19=new PointObject(getC(),0,0); t20=new PointObject(getC(),0,0); t21=new PointObject(getC(),0,0); t22=new PointObject(getC(),0,0); t23=new PointObject(getC(),0,0); t24=new PointObject(getC(),0,0); ccara = new AreaObject(getC(),cara); if (getC().find("turtleVccara")==null) {ccara.setName("turtleVccara");} pp1.setDefaults(); pp1.setFilled(true); pp1.setSpecialColor(new Color(138,102,66)); pp2.setDefaults(); pp2.setFilled(true); pp2.setSpecialColor(new Color(138,102,66)); ttete.setDefaults(); ttete.setFilled(true); ttete.setSpecialColor(new Color(138,102,66)); pp3.setDefaults(); pp3.setFilled(true); pp3.setSpecialColor(new Color(138,102,66)); pp4.setDefaults(); pp4.setFilled(true); pp4.setSpecialColor(new Color(138,102,66)); ccara.setDefaults(); ccara.setFilled(true); ccara.setSpecialColor(new Color(82,139,139)); } try { longueurTortue.setExpression("60/pixel", getC()); } catch (final ConstructionException e) { return ""; } ptTortue=(PointObject) getC().find(name); // ptO=new PointObject(getC(),0,0); ptO2=new PointObject(getC(),1,0); dirTortue= new VectorObject(getC(),ptO,ptO2); ptSupport=new PointObject(getC(),0,0); ptSupport2=new PointObject(getC(),0,0); ptTortue2=new PointObject(getC(),0,0); dirTortueVisu= new VectorObject(getC(),ptSupport,ptSupport2); addObject(longueurTortue); ptO.setHidden(true); addObject(ptO); ptO.setFixed("0*x("+ptTortue.getName()+")","0"); // astuce... ptO2.setSuperHidden(true); addObject(ptO2); ptO2.setFixed("1","0*y("+ptTortue.getName()+")"); ptO.validate(); ptO2.validate(); dirTortue.validate(); dirTortue.setDefaults(); dirTortue.setHidden(true); addObject(dirTortue); ptSupport.setSuperHidden(true); addObject(ptSupport); ptSupport.setFixed("x("+ptTortue.getName()+")","y("+ptTortue.getName()+")"); ptSupport2.setSuperHidden(true); addObject(ptSupport2); ptSupport2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); ptTortue2.setDefaults(); ptTortue2.setSuperHidden(true); addObject(ptTortue2); ptTortue2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); ptTortue2.validate(); dirTortueVisu.validate(); dirTortueVisu.setDefaults(); dirTortueVisu.setHidden(true); addObject(dirTortueVisu); t1.setDefaults(); t1.setSuperHidden(true); addObject(t1); t1.setFixed("x("+ptSupport.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t1); t2.setDefaults(); t2.setSuperHidden(true); addObject(t2); t2.setFixed("x("+ptSupport.getName()+")-0.4*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.4*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t2); t3.setDefaults(); t3.setSuperHidden(true); addObject(t3); t3.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p1.add(t3); addObject(pp1); t4.setDefaults(); t4.setSuperHidden(true); addObject(t4); t4.setFixed("x("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t4); t5.setDefaults(); t5.setSuperHidden(true); addObject(t5); t5.setFixed("x("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t5); t6.setDefaults(); t6.setSuperHidden(true); addObject(t6); t6.setFixed("x("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p2.add(t6); addObject(pp2); t7.setDefaults(); t7.setSuperHidden(true); addObject(t7); t7.setFixed("x("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.1*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.1*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t7); t8.setDefaults(); t8.setSuperHidden(true); addObject(t8); t8.setFixed("x("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.15*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.15*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t8); t9.setDefaults(); t9.setSuperHidden(true); addObject(t9); t9.setFixed("x("+ptSupport.getName()+")+1.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+1.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")"); tete.add(t9); t10.setDefaults(); t10.setSuperHidden(true); addObject(t10); t10.setFixed("x("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.15*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.9*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.15*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t10); t11.setDefaults(); t11.setSuperHidden(true); addObject(t11); t11.setFixed("x("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.1*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.75*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.1*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); tete.add(t11); addObject(ttete); t12.setDefaults(); t12.setSuperHidden(true); addObject(t12); t12.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t12); t13.setDefaults(); t13.setSuperHidden(true); addObject(t13); t13.setFixed("x("+ptSupport.getName()+")+0.4*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")-0.4*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t13); t14.setDefaults(); t14.setSuperHidden(true); addObject(t14); t14.setFixed("x("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p3.add(t14); addObject(pp3); t15.setDefaults(); t15.setSuperHidden(true); addObject(t15); t15.setFixed("x("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t15); t16.setDefaults(); t16.setSuperHidden(true); addObject(t16); t16.setFixed("x("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.5*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.7*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.5*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t16); t17.setDefaults(); t17.setSuperHidden(true); addObject(t17); t17.setFixed("x("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.2*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.65*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.2*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); p4.add(t17); addObject(pp4); t18.setDefaults(); t18.setSuperHidden(true); addObject(t18); t18.setFixed("x("+ptSupport.getName()+")","y("+ptSupport.getName()+")"); cara.add(t18); t19.setDefaults(); t19.setSuperHidden(true); addObject(t19); t19.setFixed("x("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t19); t20.setDefaults(); t20.setSuperHidden(true); addObject(t20); t20.setFixed("x("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t20); t21.setDefaults(); t21.setSuperHidden(true); addObject(t21); t21.setFixed("x("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")+0.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")-0.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t21); t22.setDefaults(); t22.setSuperHidden(true); addObject(t22); t22.setFixed("x("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.05*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.8*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.05*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t22); t23.setDefaults(); t23.setSuperHidden(true); addObject(t23); t23.setFixed("x("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.6*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t23); t24.setDefaults(); t24.setSuperHidden(true); addObject(t24); t24.setFixed("x("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")-0.35*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")","y("+ptSupport.getName()+")+0.3*"+longueurTortue.getName()+"*y("+dirTortueVisu.getName()+")+0.35*"+longueurTortue.getName()+"*x("+dirTortueVisu.getName()+")"); cara.add(t24); addObject(ccara); } catch (Exception e) { return ""; } return name; } } } else { return(""); } } public static boolean BaisserStylo() { styloBaisse = true; return true; } public static boolean TurtleDown() { styloBaisse = true; return true; } public static boolean LeverStylo() { styloBaisse = false; return false; } public static boolean TurtleUp() { styloBaisse = false; return false; } public static String[] Avancer(String ptName, String segtName, String di) throws Exception { PointObject pt=null; SegmentObject so=null; String[] ptSegmt=new String[2]; synchronized (getC()) { if (segtName.equals("undefined")) { di=ptName; segtName=""; ptName=""; } else if (di.equals("undefined")) { di=segtName; segtName=""; } if (turtleIs3D) { try { pt=new PointObject(getC(), 0, 0); pt.setIs3D(true); pt.setFixed("x3D("+pt3DTortue.getName()+")","y3D("+pt3DTortue.getName()+")","z3D("+pt3DTortue.getName()+")"); pt.validCoordinates(); pt.setDefaults(); pt.setShowValue(false); pt.setShowName(false); pt.setType(3); if (!ptName.equals("")) { pt.setName(parseVariables(ptName)); } addObject(pt); pt3DSupport.setFixed("x3D("+pt.getName()+")","y3D("+pt.getName()+")","z3D("+pt.getName()+")"); pt3DSupport.validCoordinates(); pt3DSupport01.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D1.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D1.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D1.getName()+")"); pt3DSupport01.validCoordinates(); pt3DSupport02.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D2.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D2.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D2.getName()+")"); pt3DSupport02.validCoordinates(); pt3DSupport03.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D3.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D3.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D3.getName()+")"); pt3DSupport03.validCoordinates(); if (styloBaisse) { so=new SegmentObject(getC(),pt3DTortue,pt); so.validate(); so.setDefaults(); if (!segtName.equals("")) { so.setName(parseVariables(segtName)); } addObject(so); } else { pt.setHidden(true); } for (int l=1;l listSommets; String listePtsArc=""; String[] ptsArc=new String[2]; synchronized (getC()) { if (arcName.equals("undefined")) { di=ptName; arcName=""; ptName=""; } else if (di.equals("undefined")) { di=arcName; arcName=""; } try { pt=new PointObject(getC(), 0, 0); pt.setDefaults(); pt.setType(3); pt.setShowValue(false); pt.setShowName(false); pt.setFixed("x("+ptTortue.getName()+")","y("+ptTortue.getName()+")"); pt.validate(); addObject(pt); pt2=new PointObject(getC(), 0, 0); pt2.setDefaults(); pt2.setType(3); pt2.setHidden(true); pt2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); pt2.validate(); addObject(pt2); ExpressionObject o= new ExpressionObject(getC(),1,1); o.setHidden(true); try { double di2 = Math.round(Double.valueOf(parseVariables(di))*1E13)/1E13; o.setExpression(""+di2,getC()); } catch(Exception ex) { o.setExpression(di,getC()); } o.validate(); addObject(o); diName=o.getName(); if (arcName.equals("")) { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); getC().lastButN(0).setShowName(false); getC().lastButN(27).setShowName(false); } else { if (ptName.equals("")) { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); getC().lastButN(0).setShowName(false); } else { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); } } String[] TargetsNamesArray = MacroRunner.TargetsNameList.toArray(new String[MacroRunner.TargetsNameList.size()]); E = (PointObject) getC().find(TargetsNamesArray[0]); F = (PointObject) getC().find(TargetsNamesArray[1]); C1 = (CircleObject) getC().find(TargetsNamesArray[11]); for (int k=2;k<11;k++) { Normalize(getC().find(TargetsNamesArray[k])); getC().find(TargetsNamesArray[k]).setHidden(true); } Normalize(E); E.setHidden(!styloBaisse); C1.setHidden(!styloBaisse); F.setHidden(true); if (!ptName.equals("")) { E.setName(parseVariables(ptName)); } if (!arcName.equals("")) { C1.setName(parseVariables(arcName)); } listSommets=MacroRunner.TargetsNameList.subList(2, 11); listSommets.add(E.getName()); listePtsArc=listSommets.toString().replaceAll("[\\[\\]\\s]", ""); ptsArc[0]=listePtsArc; ptsArc[1]=C1.getName(); AttacherTortue(E.getName()); Viser(F.getName(),""); return ptsArc; } catch (Exception ex) { throw new Exception(Loc("pointcoords")); } } } public static String[] MoveForwardDP(String ptName, String arcName, String di) throws Exception { PointObject pt=null; PointObject pt2=null; String diName; PointObject E, E1, E2, E3, E4, E5, E6, E7, E8, E9, F; CircleObject C1; //SegmentObject so=null; List listSommets; String listePtsArc=""; String[] ptsArc=new String[2]; synchronized (getC()) { if (arcName.equals("undefined")) { di=ptName; arcName=""; ptName=""; } else if (di.equals("undefined")) { di=arcName; arcName=""; } try { pt=new PointObject(getC(), 0, 0); pt.setDefaults(); pt.setType(3); pt.setShowValue(false); pt.setShowName(false); pt.setFixed("x("+ptTortue.getName()+")","y("+ptTortue.getName()+")"); pt.validate(); addObject(pt); pt2=new PointObject(getC(), 0, 0); pt2.setDefaults(); pt2.setType(3); pt2.setHidden(true); pt2.setFixed("x("+ptTortue.getName()+")+x("+dirTortue.getName()+")","y("+ptTortue.getName()+")+y("+dirTortue.getName()+")"); pt2.validate(); addObject(pt2); ExpressionObject o= new ExpressionObject(getC(),1,1); o.setHidden(true); try { double di2 = Math.round(Double.valueOf(parseVariables(di))*1E13)/1E13; o.setExpression(""+di2,getC()); } catch(Exception ex) { o.setExpression(di,getC()); } o.validate(); addObject(o); diName=o.getName(); if (arcName.equals("")) { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); getC().lastButN(0).setShowName(false); getC().lastButN(27).setShowName(false); } else { if (ptName.equals("")) { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); getC().lastButN(0).setShowName(false); } else { c("@builtin@/DP_avancer(Hz,"+pt.getName()+","+pt2.getName()+","+diName+")"); } } String[] TargetsNamesArray = MacroRunner.TargetsNameList.toArray(new String[MacroRunner.TargetsNameList.size()]); E = (PointObject) getC().find(TargetsNamesArray[0]); F = (PointObject) getC().find(TargetsNamesArray[1]); C1 = (CircleObject) getC().find(TargetsNamesArray[11]); for (int k=2;k<11;k++) { Normalize(getC().find(TargetsNamesArray[k])); getC().find(TargetsNamesArray[k]).setHidden(true); } Normalize(E); E.setHidden(!styloBaisse); C1.setHidden(!styloBaisse); F.setHidden(true); if (!ptName.equals("")) { E.setName(parseVariables(ptName)); } if (!arcName.equals("")) { C1.setName(parseVariables(arcName)); } listSommets=MacroRunner.TargetsNameList.subList(2, 11); listSommets.add(E.getName()); listePtsArc=listSommets.toString().replaceAll("[\\[\\]\\s]", ""); ptsArc[0]=listePtsArc; ptsArc[1]=C1.getName(); AttacherTortue(E.getName()); Viser(F.getName(),""); return ptsArc; } catch (Exception ex) { throw new Exception(Loc("pointcoords")); } } } public static String[] Reculer(String ptName, String segtName, String di) throws Exception { PointObject pt=null; SegmentObject so=null; String[] ptSegmt=new String[2]; synchronized (getC()) { if (segtName.equals("undefined")) { di=ptName; segtName=""; ptName=""; } else if (di.equals("undefined")) { di=segtName; segtName=""; } if (turtleIs3D) { try { pt=new PointObject(getC(), 0, 0); pt.setIs3D(true); pt.setFixed("x3D("+pt3DTortue.getName()+")","y3D("+pt3DTortue.getName()+")","z3D("+pt3DTortue.getName()+")"); pt.validCoordinates(); pt.setDefaults(); pt.setShowValue(false); pt.setShowName(false); pt.setType(3); if (!ptName.equals("")) { pt.setName(parseVariables(ptName)); } addObject(pt); pt3DSupport.setFixed("x3D("+pt.getName()+")","y3D("+pt.getName()+")","z3D("+pt.getName()+")"); pt3DSupport.validCoordinates(); pt3DSupport01.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D1.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D1.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D1.getName()+")"); pt3DSupport01.validCoordinates(); pt3DSupport02.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D2.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D2.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D2.getName()+")"); pt3DSupport02.validCoordinates(); pt3DSupport03.setFixed("x3D("+pt3DSupport.getName()+")+x3D("+dirTortue3D3.getName()+")","y3D("+pt3DSupport.getName()+")+y3D("+dirTortue3D3.getName()+")","z3D("+pt3DSupport.getName()+")+z3D("+dirTortue3D3.getName()+")"); pt3DSupport03.validCoordinates(); if (styloBaisse) { so=new SegmentObject(getC(),pt3DTortue,pt); so.validate(); so.setDefaults(); if (!segtName.equals("")) { so.setName(parseVariables(segtName)); } addObject(so); } else { pt.setHidden(true); } for (int l=1;l100) { theSpeed=100; } } nbSteps= Math.floor(99/theSpeed)+1; } } public static void TurtleSpeed(String vitesse){ synchronized (getC()) { double theSpeed = Double.parseDouble(vitesse); if (theSpeed<0.01) { theSpeed=0.01; } else { if (theSpeed>100) { theSpeed=100; } } nbSteps= Math.floor(99/theSpeed)+1; } } private static void setJSO(ConstructionObject o) { ScriptThread th=(ScriptThread) Thread.currentThread(); th.setJSO(o); } private static ConstructionObject getJSO() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getJSO(); } private static boolean isValidII() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.isValidII(); } private static void paint() { ScriptThread th=(ScriptThread) Thread.currentThread(); th.getZC().repaint(); } private static void addObject(ConstructionObject o) { ScriptThread th=(ScriptThread) Thread.currentThread(); th.getC().add(o); th.getZC().update_distant(o, 1); } public static void refreshZC() { ScriptThread th=(ScriptThread) Thread.currentThread(); th.getZC().dovalidate(); th.getZC().repaint(); } public static void rafraichirZC() { ScriptThread th=(ScriptThread) Thread.currentThread(); th.getZC().dovalidate(); th.getZC().repaint(); } public static Construction getC() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getC(); } public static ZirkelCanvas getZC() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getZC(); } public static String getRealScript() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getSCRIPT(); } public static String getZZ() { ScriptThread th=(ScriptThread) Thread.currentThread(); String bibop=th.getSCRIPT(); bibop=bibop.replace("=","⟵"); bibop=bibop.replace("⟵⟵","="); bibop=bibop.replace("!⟵","≠"); bibop=bibop.replace("<⟵","≤"); bibop=bibop.replace(">⟵","≥"); bibop=bibop.replace("Afficherligne","Afficher"); return bibop; } public static String prendreZZ() { ScriptThread th=(ScriptThread) Thread.currentThread(); String bibop=th.getSCRIPTi(); bibop=bibop.replace("=","⟵"); bibop=bibop.replace("⟵⟵","="); bibop=bibop.replace("!⟵","≠"); bibop=bibop.replace("<⟵","≤"); bibop=bibop.replace(">⟵","≥"); bibop=bibop.replace("Println","Afficher"); bibop=bibop.replace("Print","Afficher"); return bibop; } private static ScriptThread getTHREAD() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th; } private static ScriptableObject getSCOPE() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getSCOPE(); } public static JSOuputConsole getCONSOLE() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getCONSOLE(); } public static JSOuputConsole prendreCONSOLE() { ScriptThread th=(ScriptThread) Thread.currentThread(); return th.getCONSOLE(); } public static boolean SetIconSelection(String iconname, boolean sel) { return PaletteManager.setSelected_with_clic2(iconname, sel); } public static boolean ClicVirtuel(String iconname, boolean sel) { return PaletteManager.setSelected_with_clic2(iconname, sel); } public static boolean IsIconSelected(String iconname) { return PaletteManager.isSelected(iconname); } /** * Read a file an return is content as a string.
*
* This function will be useful in javascript context.
* One will be able, for instance, to write inside a CaRScript :
* eval(Load("mytools.js"));
* This will behave as if the file "mytools.js" had been imported.
* The objects of "mytools.js" will be accessible within the CaRScript.
* * Load is more versatile than just an import function.
* Indeed, you have the opportunity to make some text processing * after loading and before evaluating :
*MyTools = Load("mytools.js");
*MyTools = doSomeModificationsTo(MyTools); // apply some regexps or whatever
*eval(Mytools);
* * @param fic * @return The read text */ public static String Load(String fic) { String FS=System.getProperty("file.separator"); String myfic=Global.getHomeDirectory()+"scripts"+FS+fic.replace("/", FS); if (!new File(myfic).exists()) { myfic=FileName.path(JZirkelCanvas.getFileName())+FS+fic.replace("/", FS); } String r; String s=""; boolean firstLine=true; try { java.io.BufferedReader f=new java.io.BufferedReader(new java.io.FileReader(myfic)); try { while ((r=f.readLine())!=null) { s=(firstLine==true)?r:s+System.getProperty("line.separator")+r; firstLine=false; } f.close(); return s; } catch (java.io.IOException e) { return s; } } catch (java.io.FileNotFoundException e) { return ""; } } private static String parseVariables(String s) { String origin; String endtxt=s.replaceAll("([0-9]+)e([0-9]+)", "$1E$2"); do { origin=endtxt; StringBuffer sb1=new StringBuffer(); Pattern pxy=Pattern.compile("(x|y)_(\\w*)", Pattern.CASE_INSENSITIVE); Matcher m=pxy.matcher(origin); while (m.find()) { Object x=getSCOPE().get(m.group(2), getSCOPE()); if (x!=Scriptable.NOT_FOUND) { m.appendReplacement(sb1, m.group(1)+"("+Context.toString(x)+")"); } } m.appendTail(sb1); m.reset(); StringBuffer sb2=new StringBuffer(); Pattern pexp=Pattern.compile("_(\\w*)", Pattern.CASE_INSENSITIVE); m=pexp.matcher(sb1.toString()); while (m.find()) { Object x=getSCOPE().get(m.group(1), getSCOPE()); if (x!=Scriptable.NOT_FOUND) { m.appendReplacement(sb2, Context.toString(x)); } } m.appendTail(sb2); m.reset(); endtxt=sb2.toString(); } while (!(origin.equals(endtxt))); return endtxt; } static public String Loc(final String s) { return Global.Loc("JSerror."+s); } static public String LastNObjectsName(int N){ if(N==0){ return ""; } String names; if(getC().lastButN(0)!=null){ names = getC().lastButN(0).getName(); } else { names = ""; } for(int i=1; iNote : It's possible to change this property in one step for * multiple object. *
Example : SetColor("A,B,c1,E1","cyan") will give the "cyan" color * to the objects A, B, c1 and E1 * @param name Name of the object you want to change color * @param col Name of the color. It can be "green", "blue", "brown", "cyan", "red" or "black". */ static public void SetColor(String name, String col) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("color("+col+"," + name1 + ")"); } } static public void MettreCouleur(String name, String col) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("color("+col+"," + name1 + ")"); } } /** *Set the shape of a point. It has no effect if the object is not a point. *
Note : It's possible to change this property in one step for * multiple points. *
Example : SetPointType("A,B,E,F","square") will give the "square" shape * to the points A, B, E and F * @param name Name of the point you want to change shape * @param type Name of the shape. It can be "square", "circle", "diamond", "point", "cross", "dcross". */ static public void SetPointType(String name, String type) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("type("+type+"," + name1 + ")"); } } static public void MettreTypePoint(String name, String type) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("type("+type+"," + name1 + ")"); } } /** * Set the RGB color of an object using 3 integer numbers in [0..255]. *
Note : It's possible to change this property in one step for * multiple object. *
Example : SetColor("A,B,c1",120,40,245) will give the same color * to the objects A, B and c1. This color is defined by r=120, g=40 and b=245. * @param name Name of the object you want to change color * @param r Red value (integer in [0..255] * @param g Green value (integer in [0..255] * @param b Blue value (integer in [0..255] */ static public void SetRGBColor(String name, String r, String g, String b) { // Color mycolor=new Color(r, g, b); String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { // o.setSpecialColor(mycolor); o.setSpecialColor(r,g,b); } } // getZC().repaint(); // validate(); // paint() } static public void MettreCouleurRVB(String name, String r, String g, String b) { // Color mycolor=new Color(r, g, b); String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { // o.setSpecialColor(mycolor); o.setSpecialColor(r,g,b); } } // getZC().repaint(); // validate(); // paint() } /** * Set the thickness of an object. *
Note : It's possible to change this property in one step for * multiple objects. *
Example : SetThickness("A,B,c1,l1","thick") will give the "thick" aspect * to the objects A, B, c1 and l1 * @param name Name of the point you want to change shape * @param thc Name of the thickness. It can be "thick", "normal" and "thin". */ static public void SetThickness(String name, String thc) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("thickness("+thc+"," + name1 + ")"); } } static public void MettreEpaisseur(String name, String thc) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("thickness("+thc+"," + name1 + ")"); } } /** * Set the alias name of an object. *
Note : It's possible to change this property in one step for * multiple objects. *
Example : SetAlias("A,B,c1,l1","My beautiful object") * will give the "My beautiful object" alias name to the objects A, B, c1 and l1 * @param name Name of the point you want to change alias name. * @param alias Alias name. */ static public void SetAlias(String name, String alias) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setAlias(parseVariables(alias)); } } } static public void MettreAlias(String name, String alias) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setAlias(parseVariables(alias)); } } } /** * Set the increment of a point object. *
Note : It's possible to change this property in one step for * multiple points. *
Example : SetIncrement("A,B,C",0.1) * will set the increment of A, B, and C * @param name Name of the point you want to set the increment. * @param delta */ static public void SetIncrement(String name, double delta) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o instanceof PointObject) { o.setIncrement(delta); } } } static public void MettreIncrément(String name, double delta) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o instanceof PointObject) { o.setIncrement(delta); } } } /** * Set the standard magnetic attraction lenght of a point * @param name Name of a point * @param ray Attraction lenght, in pixels (number or expression) * @see #SetMagneticObjects * @see #AddMagneticObject */ static public void SetMagneticRay(String name, String ray) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.setMagnetRayExp(parseVariables(ray)); refreshZC(); } static public void MettreRayonMagnétique(String name, String ray) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.setMagnetRayExp(parseVariables(ray)); refreshZC(); } /** * Set the objects that will magnetize a given point *
Example : SetMagneticObjects("P","c1,d1,A") will * make the point P attracted by the objects c1, d1 and A. *
It's possible to define exceptions using the ":" separator. * If, for instance, objectlist contains "A,E,c1:20,l1" and the attraction * field is defined by 50 pixels, objects "A", "E" and "l1" have an attraction * radius of 50 pixels, but the object c1 will have an attraction radius of 20 pixels. * @param name Name of a point * @param objectlist List of objects * @see #AddMagneticObject * @see #SetMagneticRay */ static public void SetMagneticObjects(String name, String objectlist) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.setMagnetObjects(parseVariables(objectlist)); } static public void MettreObjetsMagnétiques(String name, String objectlist) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.setMagnetObjects(parseVariables(objectlist)); } /** * Add an object to the list of magnetic objects of a given point. * @param name Name of the point * @param object Object to add to the magnetic point list * @see #SetMagneticObjects * @see #SetMagneticRay */ static public void AddMagneticObject(String name, String object) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.addMagnetObject(parseVariables(object)); } static public void AjouterObjetMagnétique(String name, String object) { ConstructionObject o=getC().find(name); if ((o==null)||(!(o instanceof PointObject))) { return; } PointObject pt=(PointObject) o; pt.addMagnetObject(parseVariables(object)); } /** * Fix or unfix an object in the CaRMetal current window. A fixed object * can't be moved with the mouse. *
Note : It's possible to change this property in one step for * multiple objects. *
Example : SetFixed("A,B,c1,l1",true) * will fix the objects A, B, c1 and l1 in the CaRMetal current window. * @param name Name of the object * @param bool "true" value to fix the object, "false" to unfix it. */ static public void SetFixed(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFixed(bool); } } } static public void MettreFixe(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFixed(bool); } } } static public void Liberate(String name) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFixed(false); } } } static public void Libérer(String name) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFixed(false); } } } /** * Shows or hide the name of an object (or multiple objects). *
Example : SetShowName("A,B,c1,l1",true) * will shows the names of objects A, B, c1 and l1. * @param name Name(s) of object. * @param bool "true" to show name, and "false" to hide it. */ static public void SetShowName(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setShowName(bool); } } } static public void MettreMontrerNom(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setShowName(bool); } } } static public void AllowReflex(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setObtuse(bool); } } } static public void AutoriserRentrant(String name, boolean bool) { String[] names=parseVariables(name).split(","); for(String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setObtuse(bool); } } } /** * Shows or hide the value of an object (or multiple objects). *
Example : SetShowValue("A,B,c1,l1",true) * will shows the value of objects A, B, c1 and l1. * @param name Name(s) of object. * @param bool "true" to show value, and "false" to hide it. */ static public void SetShowValue(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setShowValue(bool); } } } static public void MettreMontrerValeur(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setShowValue(bool); } } } /** * Some objects can be filled (circles, polygons, etc...). This will * fill or unfill an object (or multiple objects). *
Example : SetFilled("A,B,c1,l1",true) * will fill objects A, B, c1 and l1. * @param name Name(s) of object. * @param bool "true" to fill objects, and "false" to unfill it. */ static public void SetFilled(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFilled(bool); } } } static public void MettreRempli(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setFilled(bool); } } } static public void SetSolid(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (int i=0; iExample : SetPartial("A,B,c1,l1",true) * will draw partially objects A, B, c1 and l1. * @param name Name(s) of object. * @param bool "true" to draw partially, and "false" to draw completly. */ static public void SetPartial(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setPartial(bool); getC().updateCircleDep(); } } } static public void MettrePartiel(String name, boolean bool) { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (o!=null) { o.setPartial(bool); getC().updateCircleDep(); } } } /** *After calling this command, names of new objects will be displayed. */ static public void Shownames() { cm("shownames"); } static public void MontrerNoms() { cm("shownames"); } /** *After calling this command, names of new objects will not be displayed. */ static public void Hidenames() { cm("hidenames"); } static public void CacherNoms() { cm("hidenames"); } /** * Hides an object (or multiple objects). *
Example : Hide("A,B,c1,l1") * will hide objects A, B, c1 and l1. * @param name Name(s) of object(s). */ static public void Hide(String name) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("hide(true," + name1 + ")"); } paint(); } static public void Cacher(String name) { String[] names=parseVariables(name).split(","); for(String name1 : names) { c("hide(true," + name1 + ")"); } paint(); } static public void SetHide(String name, boolean b) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("hide("+b+"," + name1 + ")"); } paint(); } static public void MettreCaché(String name, boolean b) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("hide("+b+"," + name1 + ")"); } paint(); } /** * Shows an object (or multiple objects). *
Example : Show("A,B,c1,l1") * will show objects A, B, c1 and l1. * @param name Name(s) of object(s). */ static public void Show(String name) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("hide(false," + name1 + ")"); } paint(); } static public void Montrer(String name) { String[] names=parseVariables(name).split(","); for (String name1 : names) { c("hide(false," + name1 + ")"); } paint(); } // static public void Delete(String name) { // String[] names=parseVariables(name).split(","); // for (int i=0; iFrom javascript, you can also do something like this : *
    *
  1. a=Point("",1,2)
  2. *
  3. b=Point("",-2,3)
  4. *
  5. m=4
  6. *
  7. c=Point("","(x_a+x_b)/_m","(y_a+y_b)/_m")
  8. *
* The "_" symbol means that javascript must use the content of variables. * For example The string "_m" will be replaced by "4" (line 3).
Another * "shortcut" : if, for example, a contains "P1" (the real name of the point * created by step 1), the string x_a is equivalent to the string "x(P1)". * @param name Name of the point (suggestion) * @param x x-coordinate (number or expression) * @param y y-coordinate (number or expression) * @return Name of the created point * @throws java.lang.Exception */ static public String Point(String name, String x, String y) throws Exception { PointObject pt=null; synchronized (getC()) { if (x.equals("undefined")) { double xx=getC().getX()+2*Math.random()*getC().getW()-getC().getW(); double yy=getC().getY()-Math.random()*getC().getH()+getC().getH()/2; x=""+xx; y=""+yy; if (name.equals("undefined")) { name=""; } } else if (y.equals("undefined")) { y=x; x=name; name=""; } try { pt=new PointObject(getC(), Math.round(Double.valueOf(x)*1E13)/1E13, Math.round(Double.valueOf(y)*1E13)/1E13); } catch (NumberFormatException e) { try { pt=new PointObject(getC(), 0, 0); pt.setFixed(parseVariables(x), parseVariables(y)); pt.validCoordinates(); } catch (Exception ex) { throw new Exception(Loc("pointcoords")); } } pt.setDefaults(); if (!name.equals("")) { pt.setName(parseVariables(name)); } pt.validate(); addObject(pt); return pt.getName(); } } /** * @author Dibs * */ static public String Point3D(String name, String x, String y, String z) throws Exception { if (!getZC().is3D()) return ""; PointObject pt=null; synchronized (getC()) { if (x.equals("undefined")) { double xx=getC().getX()+2*Math.random()*getC().getW()-getC().getW(); double yy=getC().getY()-Math.random()*getC().getH()+getC().getH()/2; try { double xO=getC().find("O").getX(), yO = getC().find("O").getY(); double x3DO=getC().find("O").getX(); double y3DO=getC().find("O").getY(); double xx3D = Math.sin(Math.toRadians(getC().find("E10").getValue()))*(xx-xO)-Math.sin(Math.toRadians(getC().find("E11").getValue()))*Math.cos(Math.toRadians(getC().find("E10").getValue()))*(yy-yO); double yy3D = Math.cos(Math.toRadians(getC().find("E10").getValue()))*(xx-xO)+Math.sin(Math.toRadians(getC().find("E11").getValue()))*Math.sin(Math.toRadians(getC().find("E10").getValue()))*(yy-yO); double zz3D = Math.cos(Math.toRadians(getC().find("E11").getValue()))*(yy-yO); if (Math.abs(xx3D)<1e-16) { xx3D=0; } if (Math.abs(yy3D)<1e-16) { yy3D=0; } if (Math.abs(zz3D)<1e-16) { zz3D=0; } x=""+xx3D; y=""+yy3D; z=""+zz3D; } catch (final Exception f) { x=""+Math.random(); y=""+Math.random(); z=""+Math.random(); } if (name.equals("undefined")) { name=""; } } else if (z.equals("undefined")) { z=y; y=x; x=name; name=""; } try { double x1 = Math.round(Double.valueOf(x)*1E13)/1E13; double y1 =Math.round(Double.valueOf(y)*1E13)/1E13; double z1 =Math.round(Double.valueOf(z)*1E13)/1E13; pt=new PointObject(getC(), 0, 0); pt.setFixed("x(O)+("+x1+")*(x(X)-x(O))+("+y1+")*(x(Y)-x(O))+("+z1+")*(x(Z)-x(O))", "y(O)+("+x1+")*(y(X)-y(O))+("+y1+")*(y(Y)-y(O))+("+z1+")*(y(Z)-y(O))"); pt.setIs3D(true); pt.setX3D(x1); pt.setY3D(y1); pt.setZ3D(z1); } catch (Exception e) { try { pt=new PointObject(getC(), 0, 0); pt.setFixed(x,y,z); pt.setIs3D(true); pt.validCoordinates3D(); pt.setFixed("x(O)+("+parseVariables(x)+")*(x(X)-x(O))+("+parseVariables(y)+")*(x(Y)-x(O))+("+parseVariables(z)+")*(x(Z)-x(O))", "y(O)+("+parseVariables(x)+")*(y(X)-y(O))+("+parseVariables(y)+")*(y(Y)-y(O))+("+parseVariables(z)+")*(y(Z)-y(O))"); pt.validCoordinates(); } catch (Exception ex) { throw new Exception(Loc("pointcoords")); } } pt.setDefaults(); if (!name.equals("")) { pt.setName(parseVariables(name)); } pt.setColorType(ConstructionObject.NORMAL); pt.setShowName(false); pt.setShowValue(false); pt.validate(); addObject(pt); return pt.getName(); } } /** * Set or Create a bounded point * @param name Name of the bound point * @param obj Name of the object * @return Name of the set or created point */ static public String PointOn(String name, String obj) { PointObject pt; synchronized (getC()) { if (obj.equals("undefined")) { obj=parseVariables(name);//à tester... pt=new PointObject(getC(), 0, 0); pt.setDefaults(); addObject(pt); } else { ConstructionObject co=getC().find(name); if (co==null) { pt=new PointObject(getC(), name); pt.setDefaults(); addObject(pt); } else { pt=(PointObject) co; } } pt.setBound(obj); pt.setUseAlpha(true); //pt will keep his barycentric coordinates relative to obj //to avoid the bound point being too near of an existing point final Enumeration e=getC().elements(); while (e.hasMoreElements()) { ConstructionObject c=(ConstructionObject) e.nextElement(); if (c instanceof PointObject) { if ((pt.getX()-c.getX()<0.1)&&(pt.getY()-c.getY()<0.1)) { pt.setXY(pt.getX()+Math.random()*2-1, pt.getY()+Math.random()*2-1); break; } } } return pt.getName(); } } static public String PointSur(String name, String obj) { PointObject pt; synchronized (getC()) { if (obj.equals("undefined")) { obj=parseVariables(name);//à tester... pt=new PointObject(getC(), 0, 0); pt.setDefaults(); addObject(pt); } else { ConstructionObject co=getC().find(name); if (co==null) { pt=new PointObject(getC(), name); pt.setDefaults(); addObject(pt); } else { pt=(PointObject) co; } } pt.setBound(obj); pt.setUseAlpha(true); //pt will keep his barycentric coordinates relative to obj //to avoid the bound point being too near of an existing point final Enumeration e=getC().elements(); while (e.hasMoreElements()) { ConstructionObject c=(ConstructionObject) e.nextElement(); if (c instanceof PointObject) { if ((pt.getX()-c.getX()<0.1)&&(pt.getY()-c.getY()<0.1)) { pt.setXY(pt.getX()+Math.random()*2-1, pt.getY()+Math.random()*2-1); break; } } } return pt.getName(); } } /** * Create the midpoint of two existing points * @param name Name of the midpoint * @param a Name of first point * @param b Name of second point * @return the midpoint name */ static public String MidPoint(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Midpoint"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } return LastNObjectsName(1); } } static public String Milieu(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Midpoint"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } return LastNObjectsName(1); } } /** * Reflects the point p with line d * @param name Name of the Symmetric * @param l Reflection line * @param p Point to reflect * @return the reflection point name * @throws java.lang.Exception */ static public String Reflection(String name, String l, String p) throws Exception { synchronized (getC()) { if (p.equals("undefined")) { p=l; l=name; name=""; } l=parseVariables(l); p=parseVariables(p); if (name.equals("")) { c("@builtin@/syma("+l+","+p+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/syma("+l+","+p+")"); } return LastNObjectsName(1); } } static public String SymétrieAxiale(String name, String l, String p) throws Exception { synchronized (getC()) { if (p.equals("undefined")) { p=l; l=name; name=""; } l=parseVariables(l); p=parseVariables(p); if (name.equals("")) { c("@builtin@/syma("+l+","+p+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/syma("+l+","+p+")"); } return LastNObjectsName(1); } } /** * Translate the point p with vector ab * @param name Name of the Translated point * @param a first point of the vector * @param b second point of the vector * @param p Point to translate * @return the translated point name * @throws java.lang.Exception */ static public String Translation(String name, String a, String b, String p) throws Exception { synchronized (getC()) { if (p.equals("undefined")) { p=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); p=parseVariables(p); if (name.equals("")) { c("@builtin@/trans("+a+","+b+","+p+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/trans("+a+","+b+","+p+")"); } return LastNObjectsName(1); } } /** * Reflect the point b with center a * @param name Name of the Reflect point * @param a Symmetry center * @param b Point to reflect * @return the symmetric point name */ static public String Symmetry(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Point"); if (name.equals("")) { c(sn+"(2*x("+a+")-x("+b+"),2*y("+a+")-y("+b+"))"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"(2*x("+a+")-x("+b+"),2*y("+a+")-y("+b+"))"); } return LastNObjectsName(1); } } static public String SymétrieCentrale(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Point"); if (name.equals("")) { c(sn+"(2*x("+a+")-x("+b+"),2*y("+a+")-y("+b+"))"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"(2*x("+a+")-x("+b+"),2*y("+a+")-y("+b+"))"); } return LastNObjectsName(1); } } /** * Creates the perpendicular bisector between two points a and b * @param name Name of the perpendicular bisector * @param a first point * @param b second point * @return the perpendicular bisector name */ static public String PerpendicularBisector(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); if (name.equals("")) { c("@builtin@/med("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/med("+a+","+b+")"); } return LastNObjectsName(1); } } static public String Médiatrice(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); if (name.equals("")) { c("@builtin@/med("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/med("+a+","+b+")"); } return LastNObjectsName(1); } } /** * Create the angle bisector between 3 points a, b and c * @param name Name of the perpendicular bisector * @param a first point * @param b second point * @param c third point * @return the angle bisector name * @throws java.lang.Exception */ static public String AngleBisector(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); if (name.equals("")) { c("@builtin@/biss("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/biss("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } static public String Bissectrice(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); if (name.equals("")) { c("@builtin@/biss("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/biss("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } /** * Create the circumcicular circle between 3 points a, b and c * @param name Name of the perpendicular bisector * @param a first point * @param b second point * @param c third point * @return the circumcicular circle name * @throws java.lang.Exception */ static public String Circle3pts(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); if (name.equals("")) { c("@builtin@/circ("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/circ("+a+","+b+","+c+")"); } getC().lastButN(0).setDefaults(); return LastNObjectsName(1); } } static public String Cercle3pts(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); if (name.equals("")) { c("@builtin@/circ("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/circ("+a+","+b+","+c+")"); } getC().lastButN(0).setDefaults(); return LastNObjectsName(1); } } /** * Creates the circle around a with radius bc * @param name Name of the circle * @param a center point * @param b first point * @param c second point * @return the circle name * @throws java.lang.Exception */ static public String Circle3(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); String sn = Global.name("name.short.Circle3"); if (name.equals("")) { c(sn+"("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } static public String Cercle3(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); String sn = Global.name("name.short.Circle3"); if (name.equals("")) { c(sn+"("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } /** * Create the circumcircular arc between 3 points a, b and c * @param name Name of the perpendicular bisector * @param a first point * @param b second point * @param c third point * @return the circumcircular arc name * @throws java.lang.Exception */ static public String Arc3pts(String name, String a, String b, String c) throws Exception { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); if (name.equals("")) { c("@builtin@/arc("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"=@builtin@/arc("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } /** * Creates the intersection between two objects. If you provide a name * for the intersection, only one intersection point will be created. * If you give the empty string "" as name parameter, two intersection * points will be created, if the a and b objects are two circles * or line/circle. * @param name Name of the intersection point * @param a Name of first object * @param b Name of second object * @param order Number which gives the order of intersection : 0 means first * @return Name of intersection point * @throws java.lang.Exception * @see #Intersection2 */ static public String OrderedIntersection(String name, String a, String b, String order) throws Exception { synchronized (getC()) { if (order.equals("undefined")) { order=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); order=parseVariables(order); String sn = Global.name("name.short.Intersection"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } IntersectionObject i=(IntersectionObject) getC().lastButN(0); i.setFirst(Integer.valueOf(order)==0); return LastNObjectsName(1); } } static public String IntersectionOrdonnée(String name, String a, String b, String order) throws Exception { synchronized (getC()) { if (order.equals("undefined")) { order=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); order=parseVariables(order); String sn = Global.name("name.short.Intersection"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } IntersectionObject i=(IntersectionObject) getC().lastButN(0); i.setFirst(Integer.valueOf(order)==0); return LastNObjectsName(1); } } /** * Creates the intersection between two objects. If you provide a name * for the intersection, only one intersection point will be created. * If you give the empty string "" as name parameter, two intersection * points will be created, if the a and b objects are two circles * or line/circle. * @param name Name of the intersection point * @param a Name of first object * @param b Name of second object * @return Name of intersection point * @throws java.lang.Exception * @see #Intersection2 */ static public String Intersection(String name, String a, String b) throws Exception { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Intersection"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } return LastNObjectsName(1); } } /** * When two objects have two intersection points (two circles or one line/one circle) * you may use this command to create them both. * @param name1 Name of first intersection point * @param name2 Name of second intersection point * @param a Name of first object * @param b Name of second object * @return Name of intersection point * @see #Intersection */ static public String Intersection2(String name1, String name2, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name2; name2=name1; name1=""; if (b.equals("undefined")) { b=a; a=name2; name2=""; } } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Intersection"); if (name1.equals("")) { c("I2,I1="+sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { c(name2+","+name1+"="+sn+"("+a+","+b+")"); } return LastNObjectsName(2); } } /** * General case: The number of the intersection points depends * on the nature of the lines intersected * @param name of the first intersection point * @param a Name of first object * @param b Name of second object * @return list of the intersection points in a String * @throws java.lang.Exception * @see #Intersection */ static public String Intersections(String name, String a, String b) throws Exception { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Intersection"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } if (getC().find(a) instanceof PrimitiveLineObject&&getC().find(b) instanceof PrimitiveLineObject) { return LastNObjectsName(1); } else { if ((getC().find(a) instanceof PrimitiveCircleObject||getC().find(b) instanceof PrimitiveCircleObject) ||(getC().find(a) instanceof PrimitiveLineObject&&getC().find(b) instanceof QuadricObject) ||(getC().find(a) instanceof QuadricObject&&getC().find(b) instanceof PrimitiveLineObject)) { return LastNObjectsName(2); } else { if (getC().find(a) instanceof QuadricObject&&getC().find(b) instanceof QuadricObject) { return LastNObjectsName(4); } else { if (getC().find(a) instanceof FunctionObject||getC().find(b) instanceof FunctionObject) { return LastNObjectsName(1); } else { throw new Exception(Loc("notgoodtype")); } } } } } } /** * Creates a line between two points * @param name Name of the line (suggestion) * @param a Name of first point * @param b Name of second point * @return Name of the created line */ static public String Line(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Line"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } NormalizeLast(); return LastNObjectsName(1); } } static public String Droite(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Line"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } NormalizeLast(); return LastNObjectsName(1); } } /** * Creates a ray from point a to point b * @param name Name of the ray (suggestion) * @param a Name of first point * @param b Name of second point * @return Name of the created ray */ static public String Ray(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Ray"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } NormalizeLast(); return LastNObjectsName(1); } } static public String DemiDroite(String name, String a, String b) { synchronized (getC()) { if (b.equals("undefined")) { b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Ray"); if (name.equals("")) { c(sn+"("+a+","+b+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+")"); } NormalizeLast(); return LastNObjectsName(1); } } /** * Creates an angle defined by 3 points a,b and c (b is the vertex). * @param name Name of the angle (suggestion) * @param a Name of first point * @param b Name of the vertex * @param c Name of the third point * @return Name of the created angle */ static public String Angle(String name, String a, String b, String c) { synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); c=parseVariables(c); String sn = Global.name("name.short.Angle"); if (name.equals("")) { c(sn+"("+a+","+b+","+c+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+","+c+")"); } return LastNObjectsName(1); } } /** * Creates an angle defined by 2 points a,b and an expression c (b is the vertex). * @param name Name of the angle (suggestion) * @param a Name of first point * @param b Name of the vertex * @param c angle in degree * @return Name of the created angle */ static public String FixedAngle(String name, String a, String b, String c) throws Exception{ synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Angle"); try { if (name.equals("")) { c(sn+"("+a+","+b+","+Math.round(Double.valueOf(c)*1E13)/1E13+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+","+Math.round(Double.valueOf(c)*1E13)/1E13+")"); } NormalizeLast(); getC().lastButN(0).setDefaults(); return LastNObjectsName(1); } catch (NumberFormatException e) { try { if (name.equals("")) { c(sn+"("+a+","+b+",0)"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+",0)"); } NormalizeLast(); getC().lastButN(0).setDefaults(); c=parseVariables(c); ((FixedAngleObject) getC().lastButN(0)).setFixed(c); return LastNObjectsName(1); } catch (Exception ex) { throw new Exception(Loc("notgoodtype")); } } } } static public String AngleFixe(String name, String a, String b, String c) throws Exception{ synchronized (getC()) { if (c.equals("undefined")) { c=b; b=a; a=name; name=""; } a=parseVariables(a); b=parseVariables(b); String sn = Global.name("name.short.Angle"); try { if (name.equals("")) { c(sn+"("+a+","+b+","+Math.round(Double.valueOf(c)*1E13)/1E13+")"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+","+Math.round(Double.valueOf(c)*1E13)/1E13+")"); } NormalizeLast(); getC().lastButN(0).setDefaults(); return LastNObjectsName(1); } catch (NumberFormatException e) { try { if (name.equals("")) { c(sn+"("+a+","+b+",0)"); getC().lastButN(0).setShowName(false); } else { name=parseVariables(name); c(name+"="+sn+"("+a+","+b+",0)"); } NormalizeLast(); getC().lastButN(0).setDefaults(); c=parseVariables(c); ((FixedAngleObject) getC().lastButN(0)).setFixed(c); return LastNObjectsName(1); } catch (Exception ex) { throw new Exception(Loc("notgoodtype")); } } } } /** * Set angles as reflex or not. *
Example : ReflexAngle("a1,a2",true) * @param name Name(s) of object. * @param bool "true" to set as reflex, "false" to have only angles less than 180°. * @throws java.lang.Exception */ static public void ReflexAngle(String name, boolean bool) throws Exception { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (!(o instanceof AngleObject)) { throw new Exception(Loc("notgoodtype")); } if (o!=null && true) { o.setObtuse(bool); } } } static public void AngleRentrant(String name, boolean bool) throws Exception { String[] names=parseVariables(name).split(","); for (String name1 : names) { ConstructionObject o = getC().find(name1); if (!(o instanceof AngleObject)) { throw new Exception(Loc("notgoodtype")); } if (o!=null && true) { o.setObtuse(bool); } } } /** * Execute a macro-construction m with parameters params * @param lastObjName Name of last created object(s) * @param macroname Name of macro * @param params list of objects (e.g. "A,E,F,G") * @return Name of the last created object or the String array with all targets name */ static public Object ExecuteMacro(String lastObjName, String macroname, String params) { synchronized (getC()) { if (params.equals("undefined")) { params=macroname; macroname=lastObjName; lastObjName=""; } if (lastObjName.equals("")) { c(macroname+"("+parseVariables(params)+")"); //getC().lastButN(0).setShowName(false); } else { c(parseVariables(lastObjName)+"="+macroname+"("+parseVariables(params)+")"); } String[] TargetsNamesArray = MacroRunner.TargetsNameList.toArray(new String[MacroRunner.TargetsNameList.size()]); for (int i=0; i. */ package eric.JSprogram; import java.awt.Dimension; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JTextPane; import javax.swing.plaf.metal.MetalComboBoxUI; public class JSIcon extends JSButton { /** * */ String NAME; String CODE; ArrayList PATTERNS=new ArrayList(); ArrayList STRS=new ArrayList(); ArrayList VARS=new ArrayList(); ArrayList CONST=new ArrayList(); ArrayList EXEMPLES=new ArrayList(); JSEditor JSC; private static final String REGEX_NUMERIC="(((?<=[-+*/(])|(?<=^))-)?\\d+(\\.\\d+)?"; private static final String REGEX_VARIABLE="\\$[a-zA-Z][a-zA-Z0-9]*"; public static final String REGEX_OPERATION="[a-zA-Z][a-zA-Z0-9]+|[-*/+|?:@&^<>'`=%#]"; private static final String REGEX_PARANTHESIS="[()]"; // private JPanel JPN=new JPanel(); private void fixsize(final int sze) { final Dimension d=new Dimension(sze, sze); this.setMaximumSize(d); this.setMinimumSize(d); this.setPreferredSize(d); this.setSize(d); } // Create an Icon wich belongs to group (if not null) : // public JSIcon(final JSConsole jsc, final String nm, String[] codes) { public JSIcon(JSEditor jsc, String name, String code) { super(name, 24, !code.equals("")); JSC=jsc; NAME=name; CODE=code; this.addMouseListener(new MouseAdapter() { public void mousePressed(final MouseEvent e) { if (!isDisabled) { JSC.clearStatusBar(); if (e.getButton()!=MouseEvent.BUTTON3) { ClicOnMe(); } JSC.NoTypeNoClic(); } } }); interpret(); } @Override public String getName() { return NAME; } private int[] t; private int[] T; private void interpret() { // exemple : =Point(,,); StringBuffer sb=new StringBuffer(); Pattern p=Pattern.compile("<(\\w+[,\\w]*)>", Pattern.CASE_INSENSITIVE); Matcher m=p.matcher(CODE); while (m.find()) { VARS.add(m.group(1).split(",")); m.appendReplacement(sb, "@@@@"); } m.appendTail(sb); m.reset(); String result=" "+sb.toString()+" "; String[] c=result.split("@@@@"); for (int i=0; i", Pattern.CASE_INSENSITIVE); Matcher m=p.matcher((String) EXEMPLES.get(i)); if (m.find()) { String[] c=m.group(1).split(","); m.appendReplacement(sb, "@@@@"); m.appendTail(sb); String myex=sb.toString(); for (int k=0; k0)) { T[i]=0; i=i-1; } if (T[i]1) { // st=(String) EXEMPLES.get(0); // } JSC.addToScript(exemple(0)); // String st=""; // // // // for (int i=0; i ToolTip = new ArrayList(), FileName = new ArrayList(); private ScriptItemsArray items=new ScriptItemsArray(); private JScrollPane jsp; public JScriptsLeftPanel(){ this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); myRoot = new DefaultMutableTreeNode("CaRScripts"); explore(ScriptsDirectory, myRoot); ScriptsTree = new JTree(myRoot); ToolTipManager.sharedInstance().registerComponent(ScriptsTree); ScriptsTree.setCellRenderer(new MyRenderer()); MouseListener ml = new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { int row = ScriptsTree.getRowForLocation(e.getX(), e.getY()); TreePath TPath = ScriptsTree.getPathForLocation(e.getX(), e.getY()); ScriptsTree.setSelectionRow(row); if(row != -1 && e.isMetaDown()) { path = Global.getHomeDirectory()+"scripts"; for(int i=1; i
"; try { InputStream input = new FileInputStream(file); BufferedReader in = new BufferedReader(new InputStreamReader(input, "UTF-8")); while((str=in.readLine())!=null && !(str=str.trim()).endsWith("//end")) { //str=str.trim(); mystr += str.replace("//", ""); mystr += "
"; } } catch(Exception ex){} return mystr+""; } /* * menu popup et les méthodes attachées * aux différents items */ private void myPopUpMenu(final String path, final MouseEvent e){ JMenuItem item, runitem, includeFileItem, includeFolderItem; JPopupMenu myPopUpMenu = new JPopupMenu(); // add Cancel Item : item = new myJMenuItem(Global.Loc("JSmenu.cancel"), themes.resizeExistingIcon("/eric/GUI/icons/jswindow/restore.png", 16, 16)); item.addActionListener(new ActionListener() { @Override public void actionPerformed(final ActionEvent event) { JZirkelCanvas.getCurrentZC().getScriptsPanel().Restore(); } }); item.setEnabled(JZirkelCanvas.getCurrentZC().getScriptsPanel().isBackup()); myPopUpMenu.add(item); // add Run Item runitem = new myJMenuItem("Exécuter", themes.resizeExistingIcon("/eric/GUI/icons/jswindow/run.png", 12, 16)); runitem.addActionListener(new ActionListener() { @Override public void actionPerformed(final ActionEvent event) { run(new File(path)); } }); // to include this file includeFileItem=new myJMenuItem("Inclure dans la figure"); includeFileItem.addActionListener(new ActionListener(){ @Override public void actionPerformed(ActionEvent e) { include(path); } }); //to include all scripts in this folder includeFolderItem = new myJMenuItem("Inclure le dossier dans la figure"); includeFolderItem.addActionListener(new ActionListener(){ @Override public void actionPerformed(ActionEvent e) { includeFolder(new File(path)); } }); if((new File(path)).isDirectory()){ myPopUpMenu.add(includeFolderItem); } else { myPopUpMenu.add(runitem); myPopUpMenu.add(includeFileItem); } myPopUpMenu.show(e.getComponent(), e.getX()+15, e.getY()); } public void run(File file){ String str=""; String mystr=""; try { InputStream input=new FileInputStream(file); BufferedReader in=new BufferedReader(new InputStreamReader(input, "UTF-8")); while ((str=in.readLine())!=null) { str=str.trim(); mystr+=str+"\n"; } } catch(Exception ex){} ScriptItem si = new ScriptItem(null, "anonymous", mystr); items.add(si); si.runScript(); } public void include(String path){ JZirkelCanvas.getCurrentZC().openScriptFile(path, false); } public void includeFolder(File folder){ File[] f = folder.listFiles(); for(File file : f){ if(file.toString().endsWith(".js")){ include(file.toString()); } else if(file.isDirectory()){ includeFolder(file); } } } /* * Scripts lancés depuis le panneau de gauche */ public ScriptItemsArray getScripts(){ return items; } }carmetal-4.3/src/eric/JSprogram/LineNumber.java000066400000000000000000000116741417122252700215040ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; //package text; import java.awt.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.text.*; public class LineNumber extends JComponent { // private final static Color DEFAULT_BACKGROUND = new Color(235, 230, 225); private final static Color DEFAULT_BACKGROUND = new Color(14, 221, 29); private final static Color DEFAULT_FOREGROUND = Color.black; private final static Font DEFAULT_FONT = new Font("monospaced", Font.PLAIN, 12); // LineNumber height (abends when I use MAX_VALUE) private final static int HEIGHT = Integer.MAX_VALUE - 1000000; // Set right/left margin private final static int MARGIN = 5; // Variables for this LineNumber component private FontMetrics fontMetrics; private int lineHeight; private int currentDigits; // Metrics of the component used in the constructor private JComponent component; private int componentFontHeight; private int componentFontAscent; /** * Convenience constructor for Text Components */ public LineNumber(JComponent component) { if (component == null) { setFont( DEFAULT_FONT ); this.component = this; } else { setFont( component.getFont() ); this.component = component; } setBackground( DEFAULT_BACKGROUND ); setForeground( DEFAULT_FOREGROUND ); setPreferredWidth( 99 ); } /** * Calculate the width needed to display the maximum line number */ public void setPreferredWidth(int lines) { int digits = String.valueOf(lines).length(); // Update sizes when number of digits in the line number changes if (digits != currentDigits && digits > 1) { currentDigits = digits; int width = fontMetrics.charWidth( '0' ) * digits; Dimension d = getPreferredSize(); d.setSize(2 * MARGIN + width, HEIGHT); setPreferredSize( d ); setSize( d ); } } /** * Reset variables that are dependent on the font. */ public void setFont(Font font) { super.setFont(font); fontMetrics = getFontMetrics( getFont() ); componentFontHeight = fontMetrics.getHeight(); componentFontAscent = fontMetrics.getAscent(); } /** * The line height defaults to the line height of the font for this * component. */ public int getLineHeight() { if (lineHeight == 0) return componentFontHeight; else return lineHeight; } /** * Override the default line height with a positive value. * For example, when you want line numbers for a JTable you could * use the JTable row height. */ public void setLineHeight(int lineHeight) { if (lineHeight > 0) this.lineHeight = lineHeight; } public int getStartOffset() { return component.getInsets().top + componentFontAscent; } public void paintComponent(Graphics g) { int lineHeight = getLineHeight(); int startOffset = getStartOffset(); Rectangle drawHere = g.getClipBounds(); // Paint the background g.setColor( getBackground() ); g.fillRect(drawHere.x, drawHere.y, drawHere.width, drawHere.height); // Determine the number of lines to draw in the foreground. g.setColor( getForeground() ); int startLineNumber = (drawHere.y / lineHeight) + 1; int endLineNumber = startLineNumber + (drawHere.height / lineHeight); int start = (drawHere.y / lineHeight) * lineHeight + startOffset; for (int i = startLineNumber; i <= endLineNumber; i++) { String lineNumber = String.valueOf(i); int stringWidth = fontMetrics.stringWidth( lineNumber ); int rowWidth = getSize().width; g.drawString(lineNumber, rowWidth - stringWidth - MARGIN, start); start += lineHeight; } int rows = component.getSize().height / componentFontHeight; setPreferredWidth( rows ); } public static void main(String[] args) { JFrame frame = new JFrame("LineNumberDemo"); frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); JPanel panel = new JPanel(); frame.setContentPane( panel ); panel.setBorder(BorderFactory.createEmptyBorder(20,20,20,20)); panel.setLayout(new BorderLayout()); JTextArea textPane = new JTextArea(); textPane.setFont( new Font("monospaced", Font.PLAIN, 12) ); textPane.setText("abc"); JScrollPane scrollPane = new JScrollPane(textPane); panel.add(scrollPane); scrollPane.setPreferredSize(new Dimension(300, 250)); LineNumber lineNumber = new LineNumber( textPane ); scrollPane.setRowHeaderView(lineNumber ); frame.pack(); frame.setVisible(true); } }carmetal-4.3/src/eric/JSprogram/LineNumberView.java000066400000000000000000000223101417122252700223240ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.SizeSequence; import javax.swing.UIManager; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import javax.swing.text.BadLocationException; import javax.swing.text.Document; import javax.swing.text.Element; import javax.swing.text.JTextComponent; //import eric.JSprogram.JSConsole; /** * LineNumberView is a simple line-number gutter that works correctly * even when lines are wrapped in the associated text component. This * is meant to be used as the RowHeaderView in a JScrollPane that * contains the associated text component. Example usage: *
 *   JTextArea ta = new JTextArea();
 *   ta.setLineWrap(true);
 *   ta.setWrapStyleWord(true);
 *   JScrollPane sp = new JScrollPane(ta);
 *   sp.setRowHeaderView(new LineNumberView(ta));
 *
* * @author Alan Moore */ public class LineNumberView extends JComponent { // This is for the border to the right of the line numbers. // There's probably a UIDefaults value that could be used for this. private static final Color BORDER_COLOR = Color.GRAY; private final static Color DEFAULT_BACKGROUND = new Color(214, 221, 229); private final static Color DEFAULT_FOREGROUND = Color.black; private static final int WIDTH_TEMPLATE = 99999; private static final int MARGIN = 2; private FontMetrics viewFontMetrics; private int maxNumberWidth; private int componentWidth; private int textTopInset; private int textFontAscent; private int textFontHeight; private JTextComponent text; private SizeSequence sizes; private int startLine = 0; private boolean structureChanged = true; /** * Construct a LineNumberView and attach it to the given text component. * The LineNumberView will listen for certain kinds of events from the * text component and update itself accordingly. * * @param startLine the line that changed, if there's only one * @param structureChanged if true, ignore the line number and * update all the line heights. */ public LineNumberView(JTextComponent text) { if (text == null) { throw new IllegalArgumentException("Text component cannot be null"); } this.text = text; updateCachedMetrics(); UpdateHandler handler = new UpdateHandler(); text.getDocument().addDocumentListener(handler); text.addPropertyChangeListener(handler); text.addComponentListener(handler); // setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, BORDER_COLOR)); setBorder(BorderFactory.createEmptyBorder()); setBackground(DEFAULT_BACKGROUND); setForeground(DEFAULT_FOREGROUND) ; } /** * Schedule a repaint because one or more line heights may have changed. * * @param startLine the line that changed, if there's only one * @param structureChanged if true, ignore the line number and * update all the line heights. */ private void viewChanged(int startLine, boolean structureChanged) { this.startLine = startLine; this.structureChanged = structureChanged; revalidate(); repaint(); } /** Update the line heights as needed. */ private void updateSizes() { if (startLine < 0) { return; } if (structureChanged) { int count = getAdjustedLineCount(); sizes = new SizeSequence(count); for (int i = 0; i < count; i++) { sizes.setSize(i, getLineHeight(i)); } structureChanged = false; } else { sizes.setSize(startLine, getLineHeight(startLine)); } startLine = -1; } /* Copied from javax.swing.text.PlainDocument */ private int getAdjustedLineCount() { // There is an implicit break being modeled at the end of the // document to deal with boundary conditions at the end. This // is not desired in the line count, so we detect it and remove // its effect if throwing off the count. Element map = text.getDocument().getDefaultRootElement(); int n = map.getElementCount(); Element lastLine = map.getElement(n - 1); if ((lastLine.getEndOffset() - lastLine.getStartOffset()) > 1) { return n; } return n - 1; } /** * Get the height of a line from the JTextComponent. * * @param index the line number * @param the height, in pixels */ private int getLineHeight(int index) { int lastPos = sizes.getPosition(index) + textTopInset; int height = textFontHeight; try { Element map = text.getDocument().getDefaultRootElement(); int lastChar = map.getElement(index).getEndOffset() - 1; Rectangle r = text.modelToView(lastChar); height = (r.y - lastPos) + r.height; } catch (BadLocationException ex) { ex.printStackTrace(); } return height; } /** * Cache some values that are used a lot in painting or size * calculations. Also ensures that the line-number font is not * larger than the text component's font (by point-size, anyway). */ private void updateCachedMetrics() { Font textFont = text.getFont(); FontMetrics fm = getFontMetrics(textFont); textFontHeight = Math.max(fm.getHeight(),10); textFontHeight = JSEditor.TailleTexte; //private donc inaccessible ici, dommage... textFontAscent = fm.getAscent(); textTopInset = text.getInsets().top; Font viewFont = getFont(); boolean changed = false; if (viewFont == null) { viewFont = UIManager.getFont("Label.font"); changed = true; } if (viewFont.getSize() != textFont.getSize()) { viewFont = viewFont.deriveFont(textFont.getSize2D()); changed = true; } viewFontMetrics = getFontMetrics(viewFont); maxNumberWidth = (viewFontMetrics.stringWidth(String.valueOf(WIDTH_TEMPLATE))+10)/2; componentWidth = 2 * MARGIN + maxNumberWidth; if (changed) { super.setFont(viewFont); } } public Dimension getPreferredSize() { return new Dimension(componentWidth, text.getHeight()); } public void setFont(Font font) { super.setFont(font); updateCachedMetrics(); } public void paintComponent(Graphics g) { updateSizes(); Rectangle clip = g.getClipBounds(); g.setColor(getBackground()); g.fillRect(clip.x, clip.y, clip.width, clip.height); g.setColor(getForeground()); int base = clip.y - textTopInset; int first = sizes.getIndex(base); int last = sizes.getIndex(base + clip.height); String text = ""; for (int i = first; i <= last; i++) { text = String.valueOf(i+1); int x = MARGIN + maxNumberWidth - viewFontMetrics.stringWidth(text); int y = sizes.getPosition(i) + textFontAscent + textTopInset; g.drawString(text, x, y); } } class UpdateHandler extends ComponentAdapter implements PropertyChangeListener, DocumentListener { /** * The text component was resized. 'Nuff said. */ public void componentResized(ComponentEvent evt) { viewChanged(0, true); } /** * A bound property was changed on the text component. Properties * like the font, border, and tab size affect the layout of the * whole document, so we invalidate all the line heights here. */ public void propertyChange(PropertyChangeEvent evt) { Object oldValue = evt.getOldValue(); Object newValue = evt.getNewValue(); String propertyName = evt.getPropertyName(); if ("document".equals(propertyName)) { if (oldValue != null && oldValue instanceof Document) { ((Document)oldValue).removeDocumentListener(this); } if (newValue != null && newValue instanceof Document) { ((Document)newValue).addDocumentListener(this); } } updateCachedMetrics(); viewChanged(0, true); } /** * Text was inserted into the document. */ public void insertUpdate(DocumentEvent evt) { update(evt); } /** * Text was removed from the document. */ public void removeUpdate(DocumentEvent evt) { update(evt); } /** * Text attributes were changed. In a source-code editor based on * StyledDocument, attribute changes should be applied automatically * in response to inserts and removals. Since we're already * listening for those, this method should be redundant, but YMMV. */ public void changedUpdate(DocumentEvent evt) { // update(evt); } /** * If the edit was confined to a single line, invalidate that * line's height. Otherwise, invalidate them all. */ private void update(DocumentEvent evt) { Element map = text.getDocument().getDefaultRootElement(); int line = map.getElementIndex(evt.getOffset()); DocumentEvent.ElementChange ec = evt.getChange(map); viewChanged(line, ec != null); } } }carmetal-4.3/src/eric/JSprogram/ScriptItem.java000066400000000000000000000333771417122252700215330ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import eric.GUI.ZDialog.ZTextFieldAndLabel; import eric.GUI.palette.PaletteManager; import eric.GUI.themes; import eric.JZirkelCanvas; import eric.controls.JCanvasPanel; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import rene.gui.Global; import rene.util.FileName; import rene.util.xml.XmlTree; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.tools.Scripts_SetMouseDrag; //import rene.zirkel.tools.Scripts_SetMouseOver; import rene.zirkel.tools.Scripts_SetMouseUp; /** * * @author erichake */ public class ScriptItem extends JMenuItem implements ActionListener { private String name, source; private boolean executeOnLoad=false; private ArrayList mouseDragEventTargets=new ArrayList(); private ArrayList mouseUpEventTargets=new ArrayList(); private ArrayList mouseOverEventTargets=new ArrayList(); private ScriptThread THREAD=null; private ZTextFieldAndLabel currentInputField=null, otherInputField = null; private String mouseDragTargetsNames="", mouseUpTargetsNames=""; // Attention, champs intermédiaire pour le load, ne reflète pas toujours la réalité // private String mouseOverTargetsNames=""; private JSEditor JSC=null; private String FILENAME=""; private ScriptPanel PANEL; public ScriptItem(ScriptPanel panel, XmlTree tree) { super(tree.getTag().getValue("Name")); PANEL=panel; name=tree.getTag().getValue("Name"); if (tree.getTag().hasParam("mousedrag")) { mouseDragTargetsNames=tree.getTag().getValue("mousedrag"); } if (tree.getTag().hasParam("mouseup")) { mouseUpTargetsNames=tree.getTag().getValue("mouseup"); } executeOnLoad=tree.getTag().hasTrueParam("onload"); source=tree.getText(); source=source.replaceAll("^[\n]*", ""); source=source.replace("<", "<"); source=source.replace(">", ">"); addActionListener(this); setFont(themes.TabMenusFont); } public ScriptItem(ScriptPanel panel, String scriptname, String scriptsource) { super(scriptname); PANEL=panel; name=scriptname; source=scriptsource; addActionListener(this); setFont(themes.TabMenusFont); } public ScriptPanel getPanel() { return PANEL; } public void setExecuteOnLoad(boolean b) { executeOnLoad=b; } public boolean getExecuteOnLoad() { return executeOnLoad; } public void setFileName(String name) { FILENAME=name; } public String getFileName() { return FILENAME; } public String getScriptName() { return name; } public String getScriptSource() { return source; } public void setScriptName(String s) { name=s; } public void setScriptSource(String s) { source=s; } public void setEditor(JSEditor jse){ JSC=jse; } public JSEditor getEditor() { return JSC; } public void openEditor() { if (JSC==null) { JSC=new JSEditor(this); } else { JSC.setVisible(true); JSC.toFront(); } } public void closeEditor() { if (JSC!=null) { JSC.setVisible(false); } } public static boolean unique(String s, ScriptItemsArray V) { for (ScriptItem myItem : V) { if (s.equals(myItem.getScriptName())) { return false; } } return true; } public static String uniqueScriptName(String base) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc==null) { return base; } ScriptItemsArray V=zc.getScripts(); if (!unique(base, V)) { int num=0; do { num++; base=base.replaceAll("[\\s0-9]+$", "")+" "+num; } while (!unique(base, V)); } return base; } public void newScriptInConstruction() { openEditor(); String s=""; do { s=(String) JOptionPane.showInputDialog( JSC, Global.Loc("JSeditor.saveinfig.question"), Global.Loc("JSeditor.saveinfig.title"), JOptionPane.PLAIN_MESSAGE, null, null, ""); } while ("".equals(s)); s=uniqueScriptName(s); JSC.setWindowTitle(Global.Loc("JSeditor.infig")+s); JSC.setScriptName(s); setScriptName(s); } public void openScriptFile(final String myname, boolean open) { String str=""; String mystr=""; try { InputStream input=new FileInputStream(myname); BufferedReader in=new BufferedReader(new InputStreamReader(input, "UTF-8")); while ((str=in.readLine())!=null) { str=str.trim(); mystr+=str+"\n"; } source=mystr; name=FileName.filename(myname); if(open) openEditor(); JSC.setScriptArea(source); JSC.setWindowTitle(Global.Loc("JSeditor.infig")+name); JSC.setScriptName(name); } catch (Exception ex) { } } public void openEmbeddedScript() { openEditor(); JSC.setScriptArea(source); JSC.setWindowTitle(Global.Loc("JSeditor.infig")+name); JSC.setScriptName(name); } public void sendErrorToEditor(String message) { openEditor(); JSC.setScriptArea(source); JSC.setWindowTitle(FILENAME); JSC.Error(message); } public void fixMouseTargets() { setMouseDragTargets(mouseDragTargetsNames); setMouseUpTargets(mouseUpTargetsNames); // setMouseOverTargets(mouseOverTargetsNames); } public void saveScript(final XmlWriter xml) { xml.startTagStart("Script"); xml.printArg("Name", name); if(mouseDragEventTargets.size()>0) { xml.printArg("mousedrag", getMouseDragTargetNames()); } if(mouseUpEventTargets.size()>0) { xml.printArg("mouseup", getMouseUpTargetNames()); } xml.printArg("onload", ""+executeOnLoad); xml.startTagEndNewLine(); xml.print(source); //xml.println(); xml.endTagNewLine("Script"); } @Override public void actionPerformed(ActionEvent e) { runScript(); } public void stopme() { if (THREAD!=null) { THREAD.stopme(); } } public void restartme() { if (THREAD!=null) { THREAD.restartme(); } } public void killme() { if (THREAD!=null) { THREAD.killme(); THREAD=null; } } public boolean isRunning() { if (THREAD!=null) { return THREAD.isRunning(); } return false; } public boolean isStopped() { if (THREAD!=null) { return THREAD.isStopped(); } return false; } public void runScript() { killme(); THREAD=new ScriptThread(this); THREAD.runme(); } public void runControlScript(JCanvasPanel jp) { if (isRunning()) { return; } for (ConstructionObject obj : mouseDragEventTargets) { if (obj==jp.O) { THREAD=new ScriptThread(this); THREAD.runme(); return; } } } public void prepareDragAction(ConstructionObject o) { if (isRunning()) { return; } for (ConstructionObject obj : mouseDragEventTargets) { if (obj==o) { THREAD=new ScriptThread(this); THREAD.prepareActionScript(o.getName()); return; } } } public void runDragAction() { if (THREAD!=null) { THREAD.runActionScript(); } } public void runUpAction(ConstructionObject o){ for(ConstructionObject obj : mouseUpEventTargets){ if(obj==o){ runScript(); } } } public void stopDragAction() { if (THREAD!=null) { THREAD.stopActionScript(); } } public void refreshMouseDragInputField() { if (currentInputField!=null) { currentInputField.setText(getMouseDragTargetNames()); otherInputField.setText(getMouseUpTargetNames()); } } public void refreshMouseUpInputField() { if (currentInputField!=null) { currentInputField.setText(getMouseUpTargetNames()); otherInputField.setText(getMouseDragTargetNames()); } } public void setMouseDragTool(ZTextFieldAndLabel current, ZTextFieldAndLabel other) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { currentInputField=current; otherInputField = other; PaletteManager.deselectgeomgroup(); zc.setTool(new Scripts_SetMouseDrag(this)); setTargetSelected(zc, mouseDragEventTargets, true); } } public void setMouseUpTool(ZTextFieldAndLabel current, ZTextFieldAndLabel other) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { currentInputField=current; otherInputField = other; PaletteManager.deselectgeomgroup(); zc.setTool(new Scripts_SetMouseUp(this)); setTargetSelected(zc, mouseUpEventTargets, true); } } public String getMouseDragTargetNames() { return getTargetNames(mouseDragEventTargets); } public String getMouseUpTargetNames() { return getTargetNames(mouseUpEventTargets); } public void fixmouseDragTargetsNames(){ mouseDragTargetsNames=getTargetNames(mouseDragEventTargets); } public void fixmouseUpTargetsNames(){ mouseUpTargetsNames=getTargetNames(mouseUpEventTargets); } public void reloadMouseDragTargets(){ loadTargets(mouseDragEventTargets, mouseDragTargetsNames); } public void reloadMouseUpTargets(){ loadTargets(mouseUpEventTargets, mouseUpTargetsNames); } public void setMouseDragTargets(String t) { setTargets(mouseDragEventTargets, t); } public void setMouseUpTargets(String t) { setTargets(mouseUpEventTargets, t); } public void addMouseDragTarget(ConstructionObject o) { addTarget(mouseDragEventTargets, o); } public void addMouseUpTarget(ConstructionObject o) { addTarget(mouseUpEventTargets, o); } public void removeMouseDragTarget(ConstructionObject o) { removeTarget(mouseDragEventTargets, o); } public void removeMouseUpTarget(ConstructionObject o) { removeTarget(mouseUpEventTargets, o); } /* * Mouse Over Input Field (not implemented) */ public void refreshMouseOverInputField() { if (currentInputField!=null) { currentInputField.setText(getMouseOverTargetNames()); } } // public void setMouseOverTool(ZTextFieldAndLabel current) { // ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); // if (zc!=null) { // currentInputField=current; // PaletteManager.deselectgeomgroup(); // zc.setTool(new Scripts_SetMouseOver(this)); // setTargetSelected(zc, mouseOverEventTargets, true); // } // } public String getMouseOverTargetNames() { return getTargetNames(mouseOverEventTargets); } // public void setMouseOverTargets(String t) { // setTargets(mouseOverEventTargets, t); // } // public void addMouseOverTarget(ConstructionObject o) { addTarget(mouseOverEventTargets, o); } public void removeMouseOverTarget(ConstructionObject o) { removeTarget(mouseOverEventTargets, o); } /* * End */ private String getTargetNames(ArrayList targets) { String names=""; for (int i=0; i targets, String t) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { targets.clear(); String[] names=t.split(";"); for (int i=0; i targets, String t) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { setTargetSelected(zc, targets, false); loadTargets(targets,t); setTargetSelected(zc, targets, true); } } private void addTarget(ArrayList targets, ConstructionObject o) { targets.add(o); } private void removeTarget(ArrayList targets, ConstructionObject o) { targets.remove(o); } private void setTargetSelected(ZirkelCanvas zc, ArrayList targets, boolean sel) { zc.clearSelected(); for (int i=0; i{ public ScriptItemsArray(){ super(); } } carmetal-4.3/src/eric/JSprogram/ScriptPanel.java000066400000000000000000000275271417122252700216740ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import eric.FileTools; import eric.GUI.palette.PaletteManager; import eric.GUI.themes; import eric.GUI.window.myJMenuItem; import eric.controls.JCanvasPanel; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.util.ArrayList; import javax.swing.JMenu; import eric.JEricPanel; import java.awt.event.MouseAdapter; import javax.swing.JPopupMenu; import javax.swing.JSeparator; import rene.gui.Global; import rene.util.xml.XmlTree; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ConstructionObject; /** * * @author erichake, modified by PM Mazat */ public class ScriptPanel extends JEricPanel { private ArrayList BACKUPS=new ArrayList(); private ZirkelCanvas ZC; private ScriptItemsArray items=new ScriptItemsArray(); private ArrayList itemsbackup; private static Image icon=themes.getImage("scripts.png"); private int W=32, H=32, X=10, Y=10; private ScriptsManager ScriptsManagerPanel=null; private static int ScriptsManagerPanel_X=3, ScriptsManagerPanel_Y=45, ScriptsManagerPanel_WIDTH=3*12+180+90; public ScriptPanel(ZirkelCanvas zc) { ZC=zc; setBounds(X, Y, W, H); MouseListener ml = new MouseAdapter(){ @Override public void mousePressed(MouseEvent e){ showPopup(); } }; this.addMouseListener(ml); } @Override public void paintComponent(Graphics g) { g.drawImage(icon, 0, 0, W, H, this); } public void Backup() { try { BACKUPS.add(FileTools.getCurrentFileSource()); fixConsoleBackBtn(); } catch (Exception ex) { } } public boolean isBackup() { return (BACKUPS.size()>0); } public void Restore() { ZC.killAllScripts(); try { Thread.sleep(500); } catch (Exception ex) { } backupScriptItems(); if (BACKUPS.size()>0) { ZC.getConstruction().clear(); try { FileTools.setCurrentFileSource(BACKUPS.get(BACKUPS.size()-1)); } catch (final Exception e) { } BACKUPS.remove(BACKUPS.size()-1); } restoreScriptItems(); fixConsoleBackBtn(); /* * Si on a ajouté un script après avoir lancé d'un script de bibliothèque * le panneau n'est pas affiché après l'annulation */ if(items.size()!=0) ZC.add(this); } public void backupScriptItems() { itemsbackup=new ArrayList(); for (ScriptItem item : items) { item.fixmouseDragTargetsNames(); item.fixmouseUpTargetsNames(); itemsbackup.add(item); } } public void restoreScriptItems() { items.clear(); for (ScriptItem item : itemsbackup) { item.reloadMouseDragTargets(); item.reloadMouseUpTargets(); items.add(item); } } public void fixConsoleBackBtn() { for (ScriptItem item : items) { JSEditor jsc=item.getEditor(); if (jsc!=null) { jsc.setBackBtnEnabled(BACKUPS.size()>0); } } } public void showPopup() { JPopupMenu popup = new JPopupMenu(); // add Cancel Item : myJMenuItem item=new myJMenuItem(Global.Loc("JSmenu.cancel"), themes.resizeExistingIcon("/eric/GUI/icons/jswindow/restore.png", 16, 16)) { @Override public void action() { onlyRemoveScriptsManagerPanel(); Restore(); } }; item.setEnabled(isBackup()); popup.add(item); popup.add(new JSeparator()); // add New Script Item : item=new myJMenuItem(Global.Loc("JSmenu.add")) { @Override public void action() { newScript(); } }; popup.add(item); popup.add(new JSeparator()); // add Run script Items : for (int i=0; i0) { removeScript(items.get(0)); } } public void removeScript(ScriptItem si) { ZC.getConstruction().haveChanged(); items.remove(si); if (items.isEmpty()) { ZC.remove(this); removeScriptsManagerPanel(); ZC.repaint(); } if (ScriptsManagerPanel!=null) { addScriptsManagerPanel(); } } public void addScript(XmlTree tree) { items.add(new ScriptItem(this, tree)); // at first added script, button must be drawn in the canvas : if (items.size()==1) { ZC.add(this); } } private ScriptItem findScript(String nme) { for (int i=0; i="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)≥", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+">="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)≠", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"!="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)≠", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"!="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)modulo", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"%"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)modulo", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"%"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)×", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"*"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)×", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"*"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)∞", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Infinity"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)∞", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Infinity"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*):", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"/"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*):", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"/"); m = p.matcher(SCRIPT); matchFound = m.find(); } SCRIPT=SCRIPT.replace(",\"fin\")",",\"thin\")"); //SCRIPT=SCRIPT.replace("fin","Fin"); //SCRIPT=SCRIPT.replace("Fin","//Fin"); //SCRIPT=SCRIPT.replace(",","."); p = Pattern.compile("^afficher\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("Afficher "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\safficher\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" Afficher "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\safficher\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" Afficher "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Println\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("Printline("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sPrintln\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" Printline("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sPrintln\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" Printline("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)ln\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"log("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)ln\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"log("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)val_approchée_par_excès\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"ceil("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)val_approchée_par_excès\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"ceil("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Printline\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("Println("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*\\s)Printline\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Println("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*\\s)Printline\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Println("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)arrondi\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"round("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)arrondi\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"round("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)troncature\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"floor("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)troncature\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"floor\\("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)racine\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"sqrt("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)racine\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"sqrt("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)puissance\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"pow("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)puissance\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"pow("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)nombre_aleatoire\\(", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"random("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)nombre_aleatoire\\(", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"random("); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*[^.\"])PI", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Math.PI"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*[^.\"])PI", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"Math.PI"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*[^.\"]).taille", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+".length"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*[^.\"]).taille", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+".length"); m = p.matcher(SCRIPT); matchFound = m.find(); } String[] mathkeynames2={"sin", "cos", "tan", "asin", "acos", "atan", "abs", "ceil", "round", "floor","exp", "log", "sqrt", "random", "pow", "min", "max"}; for (int i=0; i=1) { SCRIPT= m.replaceFirst("while ("+String.valueOf(m.group(1))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\stant(?:\\s)que\\s([^\n]*)\n", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\stant(?:\\s)que\\s([^\n]*)\n", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^si\\s([^\n]*)\n", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("if ("+String.valueOf(m.group(1))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\ssi\\s([^\n]*)\n", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\ssi\\s([^\n]*)\n", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Si\\s([^\n]*)\n", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("if ("+String.valueOf(m.group(1))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sSi\\s([^\n]*)\n", Pattern.MULTILINE); //tour de passe-passe de base m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sSi\\s([^\n]*)\n", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if ("+String.valueOf(m.group(2))+")\n"); m = p.matcher(SCRIPT); matchFound = m.find(); } int nbOuverts=0; String[] lesLignes= SCRIPT.split("\n"); int indentationLignePrec=0; int indentationLigneActu=0; Boolean cherchonsUnEspace=true; int ancienneLigne=0; for (int i=1; iindentationLignePrec) { lesLignes[i-1]=lesLignes[i-1]+"{"; nbOuverts++; } if (indentationLigneActu==indentationLignePrec) { lesLignes[i-1]=lesLignes[i-1]+";"; } while (indentationLigneActu=1) { SCRIPT= m.replaceFirst("{"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } } SCRIPT=SCRIPT+lesLignes[lesLignes.length-1]; p = Pattern.compile("^[\\s]*;$", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(""); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^;;", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(";"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*);;", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+";"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*);;", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+";"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^\\};", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("}"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\};", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"}"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\};", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"}"); m = p.matcher(SCRIPT); matchFound = m.find(); } } p = Pattern.compile("(^[^\"]*):=", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*):=", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"="); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Tant\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("tant "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sTant\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" tant "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sTant\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" tant "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Si\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("si "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sSi\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" si "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sSi\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" si "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Pour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("pour "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sPour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" pour "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sPour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" pour "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^Répéter\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("répéter "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sRépéter\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" répéter "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sRépéter\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" répéter "); m = p.matcher(SCRIPT); matchFound = m.find(); } SCRIPT=SCRIPT.replace(",\"fin\")",",\"thin\")"); SCRIPT=SCRIPT.replace(",\"épais\")",",\"thick\")"); SCRIPT=SCRIPT.replace(",\"carré\")",",\"square\")"); SCRIPT=SCRIPT.replace(",\"cercle\")",",\"circle\")"); SCRIPT=SCRIPT.replace(",\"diamant\")",",\"diamond\")"); SCRIPT=SCRIPT.replace(",\"croixPlus\")",",\"cross\")"); SCRIPT=SCRIPT.replace(",\"croix\")",",\"dcross\")"); SCRIPT=SCRIPT.replace(",\"vert\")",",\"green\")"); SCRIPT=SCRIPT.replace(",\"bleu\")",",\"blue\")"); SCRIPT=SCRIPT.replace(",\"marron\")",",\"brown\")"); SCRIPT=SCRIPT.replace(",\"rouge\")",",\"red\")"); SCRIPT=SCRIPT.replace(",\"noir\")",",\"black\")"); SCRIPT=SCRIPT.replace(",\"montrervaleur\")",",\"showvalue\")"); SCRIPT=SCRIPT.replace(",\"montrernom\")",",\"showname\")"); SCRIPT=SCRIPT.replace(",\"fond\")",",\"background\")"); SCRIPT=SCRIPT.replace(",\"caché\")",",\"hidden\")"); SCRIPT=SCRIPT.replace(",\"supercaché\")",",\"superhidden\")"); SCRIPT=SCRIPT.replace("(\"polygone\",","(\"area\","); SCRIPT=SCRIPT.replace("(\"rempli\",","(\"filled\","); SCRIPT=SCRIPT.replace("(\"opaque\",","(\"solid\","); SCRIPT=SCRIPT.replace("(\"cercle\",","(\"circle\","); SCRIPT=SCRIPT.replace("(\"droite\",","(\"line\","); SCRIPT=SCRIPT.replace("(\"texte\",","(\"text\","); SCRIPT=SCRIPT.replace("(\"couleur0\",","(\"color0\","); SCRIPT=SCRIPT.replace("(\"couleur1\",","(\"color1\","); SCRIPT=SCRIPT.replace("(\"couleur2\",","(\"color2\","); SCRIPT=SCRIPT.replace("(\"couleur3\",","(\"color3\","); SCRIPT=SCRIPT.replace("(\"couleur4\",","(\"color4\","); SCRIPT=SCRIPT.replace("(\"couleur5\",","(\"color5\","); SCRIPT=SCRIPT.replace("(\"épaisseur0\",","(\"thickness0\","); SCRIPT=SCRIPT.replace("(\"épaisseur1\",","(\"thickness1\","); SCRIPT=SCRIPT.replace("(\"épaisseur2\",","(\"thickness2\","); SCRIPT=SCRIPT.replace("(\"montrervaleur\",","(\"showvalue\","); SCRIPT=SCRIPT.replace("(\"montrernom\",","(\"showname\","); SCRIPT=SCRIPT.replace("(\"obtus\",","(\"obtuse\","); p = Pattern.compile("(^[^\"]*)vrai", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"true"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)vrai", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"true"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)faux", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"false"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)faux", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"false"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^si\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("if "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\ssi\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\ssi\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" if "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^sinon(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("else"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\ssinon(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" else"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\ssinon", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" else"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^bifurquer\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("switch "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sbifurquer\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" switch "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sbifurquer\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" switch "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^cas\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst("case "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\scas\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" case "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\scas\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" case "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^rompre([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("break"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\srompre([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" break"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\srompre([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" break"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^par\\sdéfaut([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("default"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\spar\\sdéfaut([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" default"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\spar\\sdéfaut([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" default"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^pour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); if (matchFound) { SCRIPT= m.replaceAll("for "); } p = Pattern.compile("(^[^\"]*)\\spour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" for "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\spour\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" for "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sallant\\sde\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" from "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sallant\\sde\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" from "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sà\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" to "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sà\\s", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" to "); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^tant\\sque\\s(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("while "+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\stant\\sque([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\stant\\sque([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^faire(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("do"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sfaire([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" do"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sfaire([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" do"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sjusqu'à\\s([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" until "+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sjusqu'à\\s([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" until "+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\suntil[\\s]*\\(([^;]+);", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while (!("+String.valueOf(m.group(2))+")"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\suntil[\\s]*\\(([^;]+);", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" while (!("+String.valueOf(m.group(2))+")"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^fonction(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("function"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sfonction([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" function"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sfonction([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" function"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^retourner(\\W)", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { SCRIPT= m.replaceFirst("return"+String.valueOf(m.group(1))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)\\sretourner([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" return"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)\\sretourner([\\W&&[^\"]])", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=2) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+" return"+String.valueOf(m.group(2))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^for\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst("for ("+m.group(1)+"="+String.valueOf(m.group(2))+";"+String.valueOf(m.group(1))+"<="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(1))+"="+String.valueOf(m.group(1))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)for\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for ("+String.valueOf(m.group(2))+"="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(2))+"<="+String.valueOf(m.group(4))+";"+String.valueOf(m.group(2))+"="+String.valueOf(m.group(2))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)for\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for ("+String.valueOf(m.group(2))+"="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(2))+"<="+String.valueOf(m.group(4))+";"+String.valueOf(m.group(2))+"="+String.valueOf(m.group(2))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^for\\s+var\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst("for (var "+m.group(1)+"="+String.valueOf(m.group(2))+";"+String.valueOf(m.group(1))+"<="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(1))+"="+String.valueOf(m.group(1))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)for\\s+var\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var "+String.valueOf(m.group(2))+"="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(2))+"<="+String.valueOf(m.group(4))+";"+String.valueOf(m.group(2))+"="+String.valueOf(m.group(2))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)for\\s+var\\s+([a-zA-Z][a-zA-Z_0-9]*)\\s+from\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+to\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=3) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var "+String.valueOf(m.group(2))+"="+String.valueOf(m.group(3))+";"+String.valueOf(m.group(2))+"<="+String.valueOf(m.group(4))+";"+String.valueOf(m.group(2))+"="+String.valueOf(m.group(2))+"+1){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^répéter\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+fois\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst("for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(1))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)répéter\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+fois\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(2))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)répéter\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+fois\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(2))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("^repeat\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+times\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst("for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(1))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]*)repeat\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+times\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(2))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"]*\"[^\"]*)+[^\"\n]*)repeat\\s+([a-zA-Z_0-9\\[\\]\\-\\+\\*/\\.\\(\\)]+)\\s+times\\s*\\{", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound&&m.groupCount()>=1) { nbRepeter++; SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+"for (var compteurZZ"+nbRepeter+"=0;compteurZZ"+nbRepeter+"<"+String.valueOf(m.group(2))+";compteurZZ"+nbRepeter+"++){"); m = p.matcher(SCRIPT); matchFound = m.find(); } //if (!ZC.isEuclidian()) { p = Pattern.compile("(^[^\"]*)\"([^\"\n]*)distDP\\(([^)\n]*)\\)([^\"\n]*)\"", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+String.valueOf(m.group(2))+"ExecuteMacro(\"@builtin@/DP_bi_distance2\",\"Hz,"+String.valueOf(m.group(3))+",CH\")"+String.valueOf(m.group(4))); m = p.matcher(SCRIPT); matchFound = m.find(); } p = Pattern.compile("(^[^\"]+(?:\"[^\"\n]*\"[^\"\n]*)+)\"([^\"\n]*)distDP\\(([^)\n]*)\\)([^\"\n]*)\"", Pattern.MULTILINE); m = p.matcher(SCRIPT); matchFound = m.find(); while (matchFound) { SCRIPT= m.replaceFirst(String.valueOf(m.group(1))+String.valueOf(m.group(2))+"ExecuteMacro(\"@builtin@/DP_bi_distance2\",\"Hz,"+String.valueOf(m.group(3))+",CH\")"+String.valueOf(m.group(4))); m = p.matcher(SCRIPT); matchFound = m.find(); } //} System.out.println(SCRIPT); //ITEM.getPanel().Backup(); JZirkelCanvas.getCurrentZC().getScriptsPanel().Backup(); setPriority(Thread.MIN_PRIORITY); start(); } String getSCRIPT() { return SCRIPT; } String getSCRIPTi() { return ITEM.getScriptSource(); } /***************************************** * PARTIE RESERVEE AUX ACTION-SCRIPTS : *****************************************/ public void runActionScript() { if (actionScriptInProgress) { executeActionScript=true; } } public void stopActionScript() { if (actionScriptInProgress) { busyActionScript=false; actionScriptInProgress=false; } } public void prepareActionScript(final String pointName) { isActionScript=true; busyActionScript=true; actionScriptInProgress=true; SCRIPT=ITEM.getScriptSource().replace("$name", pointName); ITEM.getPanel().Backup(); setPriority(Thread.MAX_PRIORITY); start(); } /*************************************************** * APPELE UNE SEULE FOIS AU LANCEMENT DE L'APPLI : ***************************************************/ static public void InitContextFactory() { ContextFactory.initGlobal(new ContextFactory() { @Override protected Context makeContext() { Context cx=super.makeContext(); cx.setInstructionObserverThreshold(100); return cx; } @Override protected void observeInstructionCount(Context cx, int instructionCount) { ScriptThread th=(ScriptThread) Thread.currentThread(); while (th.stopme) { } if (th.killme) { Error er=new Error() { @Override public String getMessage() { return "Script killed..."; } }; throw er; } if (th.isActionScript) { if (th.executeActionScript||!th.busyActionScript) { Error er=new Error() { @Override public String getMessage() { return "Action Script killed..."; } }; throw er; } } } }); } } carmetal-4.3/src/eric/JSprogram/ScriptsManager.java000066400000000000000000000240021417122252700223530ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.JSprogram; import eric.GUI.ZDialog.ZButton; import eric.GUI.ZDialog.ZCheckBox; import eric.GUI.ZDialog.ZDialog; import eric.GUI.ZDialog.ZLabel; import eric.GUI.ZDialog.ZSep; import eric.GUI.ZDialog.ZTextFieldAndLabel; import eric.GUI.palette.PaletteManager; import eric.OS; import java.awt.Color; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.KeyEvent; import javax.swing.DefaultListModel; import javax.swing.JList; import javax.swing.ListSelectionModel; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; /** * * @author PM Mazat */ public class ScriptsManager extends ZDialog implements ListSelectionListener, FocusListener { private ZirkelCanvas ZC; private int SCRIPTS_WIDTH=180, SCRIPTS_HEIGHT, ACTION_WIDTH=110,RENAME_WIDTH=70, BTN_Y; private ZButton upBTN, downBTN; private ZTextFieldAndLabel renameFIELD, mousedragFIELD, mouseupFIELD; private ZCheckBox onstartCKBOX; private ZSep behaveSEP, renameSEP; private ZLabel behaveLBL; private DefaultListModel listModel; private ScriptItemsArray items=new ScriptItemsArray(); private JList list; private ScriptPanel JP; public ScriptsManager(ZirkelCanvas zc, ScriptPanel jp, ScriptItemsArray items, int x, int y, int w, int h) { super(Global.Loc("JSmenu.ScriptsManager"), x, y, w, h, true, true); ZC=zc; JP=jp; this.items=items; SCRIPTS_HEIGHT=items.size()==1?0:items.size()*18; BTN_Y=THEIGHT+(SCRIPTS_HEIGHT+(items.size()==2?1:0)*18)/2; addContent(); } private void addContent() { upBTN=new ZButton(Global.Loc("JSmenu.up")) { @Override public void action() { if (list.getSelectedIndex()!=0) { refreshList(list.getSelectedIndex(), -1); } } }; upBTN.addFocusListener(this); downBTN=new ZButton(Global.Loc("JSmenu.down")) { @Override public void action() { if (list.getSelectedIndex()!=items.size()-1) { refreshList(list.getSelectedIndex(), 1); } } }; downBTN.addFocusListener(this); if (OS.isUnix()) { downBTN.setFont(downBTN.getFont().deriveFont(10f)); } behaveSEP=new ZSep(75); renameSEP=new ZSep(75); // behaveLBL=new ZLabel("Script behavior :"); renameFIELD=new ZTextFieldAndLabel(Global.Loc("JSmenu.rename"), items.get(0).getScriptName(), RENAME_WIDTH, CHEIGHT) { @Override public void actionKey(KeyEvent k){ int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setScriptName(renameFIELD.getText()); listModel.setElementAt(renameFIELD.getText(), i); } } @Override public void actionMouse() { closeScriptTools(); } }; renameFIELD.addFocusListener(this); onstartCKBOX=new ZCheckBox(Global.Loc("JSmenu.executeonstart"), false) { @Override public void action() { // MAN.setHidefinals(hideFinalBox.isSelected()); int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setExecuteOnLoad(onstartCKBOX.isSelected()); } } }; mousedragFIELD=new ZTextFieldAndLabel(Global.Loc("JSmenu.dragaction"), "", ACTION_WIDTH, CHEIGHT) { @Override public void actionMouse() { int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setMouseDragTool(mousedragFIELD, mouseupFIELD); } } @Override public void actionKey(KeyEvent k) { int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setMouseDragTargets(getText()); } } }; mouseupFIELD=new ZTextFieldAndLabel("On mouse up :", "", ACTION_WIDTH, CHEIGHT) { @Override public void actionMouse() { int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setMouseUpTool(mouseupFIELD, mousedragFIELD); } } @Override public void actionKey(KeyEvent k) { int i=list.getSelectedIndex(); if (i!=-1&&!renameFIELD.getText().isEmpty()) { items.get(i).setMouseUpTargets(getText()); } } }; // mouseoverFIELD=new ZTextFieldAndLabel("Over :", "", RENAME_WIDTH, CHEIGHT) { // // @Override // public void actionMouse() { // int i=list.getSelectedIndex(); // if (i!=-1&&!renameFIELD.getText().isEmpty()) { // items.get(i).setMouseOverTool(mouseoverFIELD); // } // } // // @Override // public void actionKey() { // int i=list.getSelectedIndex(); // if (i!=-1&&!renameFIELD.getText().isEmpty()) { // items.get(i).setMouseOverTargets(getText()); // } // } // }; listModel=new DefaultListModel(); for (int i=0; i. */ package eric; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; import java.util.logging.Logger; import javax.swing.SwingUtilities; public class JUniqueInstance { private final int port; private final String message; public JUniqueInstance(final int port, final String message) { assert port>0&&port<1<<16 : "Le port doit être entre 1 et 65535"; this.port=port; this.message=message; } public JUniqueInstance(final int port) { this(port, null); } public boolean launch() { boolean unique; try { final ServerSocket server=new ServerSocket(port); unique=true; final Thread portListenerThread=new Thread() { @Override public void run() { while (true) { try { final Socket socket=server.accept(); new Thread() { @Override public void run() { receive(socket); } }.start(); } catch (final IOException e) { Logger.getLogger("UniqueProgInstance").warning( "Attente de connexion échouée."); } } } }; portListenerThread.setDaemon(true); portListenerThread.start(); } catch (final IOException e) { unique=false; // javax.swing.JOptionPane.showMessageDialog(null, // "launch()->send()"); send(); } return unique; } public void send() { PrintWriter pw=null; try { final Socket socket=new Socket("localhost", port); pw=new PrintWriter(socket.getOutputStream()); pw.write(message); } catch (final IOException e) { Logger.getLogger("UniqueProgInstance").warning( "Écriture de sortie échoué."); } finally { if (pw!=null) { pw.close(); } } } public synchronized void launchFiles(final String f) { if (!f.equals("")) { final String[] files=f.split(System.getProperty("path.separator")); for (final String filename : files) { if (FileTools.isStartup()) { FileTools.addStartupFile(filename); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { FileTools.open(filename); } }); } } } } private synchronized void receive(final Socket socket) { Scanner sc=null; try { socket.setSoTimeout(5000); sc=new Scanner(socket.getInputStream()); final String filename=sc.nextLine(); launchFiles(filename); } catch (final Exception e) { // javax.swing.JOptionPane.showMessageDialog(null, // "receive()->error"); } finally { if (sc!=null) { sc.close(); } } } } carmetal-4.3/src/eric/JZirkelCanvas.java000066400000000000000000000703431417122252700202440ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.window.comments; import eric.GUI.window.tab_main_panel; import eric.JSprogram.JScriptsLeftPanel; import eric.macros.MacroTools; import eric.macros.MacrosList; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Rectangle; import java.awt.event.MouseAdapter; import java.io.ByteArrayInputStream; import java.io.InputStream; import javax.swing.JOptionPane; import rene.gui.Global; import rene.util.FileName; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.construction.Construction; import rene.zirkel.construction.ConstructionDisplayPanel; import rene.zirkel.dialogs.Replay; import rene.zirkel.objects.PointObject; /** * * @author erichake */ public class JZirkelCanvas extends JEricPanel { // private static ArrayList allJZFs=new ArrayList(); private ZirkelFrame ZF=null; private JPointName PointLabel; private Replay Dreplay; private static boolean restrictedsession=false; // For unused figures in workbooks, store the inputstream in a // byte array : private byte[] byteinputfile=null; private static String workbookFileName=null; private static JHelpPanel InfoPanel=new JHelpPanel(); private static MacrosList MacroPanel=null; private static JScriptsLeftPanel ScriptsLeftPanel = new JScriptsLeftPanel(); @Override public void paintComponent(final java.awt.Graphics g) { } public JZirkelCanvas() { super(); setLayout(new BorderLayout()); setOpaque(true); ZF=new ZirkelFrame(pipe_tools.isApplet()); ZF.ZC.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { if (Global.getParameter("smartboard", false)) { return; } PointLabel.getBetterName(null, true); } @Override public void mouseReleased(final java.awt.event.MouseEvent evt) { if (!Global.getParameter("smartboard", false)) { return; } PointLabel.getBetterName(null, true); } }); add(ZF.ZC); newReplay(); PointLabel=new JPointName(this); PointObject.setPointLabel(PointLabel); MacroTools.setDefaultMacros(ZF.ZC); ZF.ZC.getLocalPreferences(); // allJZFs.add(this); } public void init() { Rectangle r=new Rectangle(0, 0, pipe_tools.getWindowSize().width-themes.getLeftPanelWidth()-themes.getVerticalPanelBorderWidth()-themes.getTotalRightPanelWidth()-2*themes.getVerticalBorderWidth()-themes.getTabLeftBorderWidth()-themes.getTabRightBorderWidth(), pipe_tools.getWindowSize().height-themes.getTitleBarHeight()-themes.getMenuBarHeight()-themes.getMainTabPanelHeight()-themes.getCommentsHeight()-themes.getStatusBarHeight()); setBounds(r); ZF.ZC.setBounds(r); ZF.ZC.initRestrictDialog(); ZF.ZC.initJobCreationDialog(); ZF.ZC.init_cnt(); } public byte[] getByteArrayInputFile() { return byteinputfile; } public void createByteArrayInputFile(InputStream in) { if (byteinputfile==null) { byteinputfile=FileTools.copyToByteArray(in); } } public void setInputFile(InputStream in) { if (in!=null) { createByteArrayInputFile(in); } } public void setInputFile(byte[] in) { byteinputfile=in; } public static void getCurrentLocalPreferences() { if (getCurrentZC()!=null) { getCurrentZC().getLocalPreferences(); } } public void onTabActivate() { if (byteinputfile!=null) { FileTools.openFile("", new ByteArrayInputStream(byteinputfile), 0); byteinputfile=null; } ZF.ZC.setLocalPreferences(); PointObject.setPointLabel(PointLabel); ZF.ZC.updateDigits(); ZF.ZC.paint(ZF.ZC.getGraphics()); PaletteManager.refresh(); } public static boolean isWorkBook() { return (workbookFileName!=null); } public static String getWorkBookFileName() { return workbookFileName; } public static String getFileName(){ try{ if (isWorkBook()){ return getWorkBookFileName(); }else{ return getCurrentZF().Filename; } }catch(Exception e){ return null; } } public static void setWorkBookFileName(String s, boolean force) { if ((force)||(workbookFileName==null)) { workbookFileName=s; if (!pipe_tools.isApplet()){ pipe_tools.setTitle(Global.Loc("program.name")+" - "+Global.Loc("workbook.workbookmode")+" : "+FileName.filename(s)); pipe_tools.TabHaveChanged(false); } } } public static boolean isRestrictedSession() { return restrictedsession; } public Replay getReplay() { return Dreplay; } public void disposeReplay() { Dreplay.dispose(); } public void newReplay() { Dreplay=new Replay(null, ZF.ZC); } public JPointName getPointLabel() { return PointLabel; } public ZirkelFrame getZF() { return ZF; } public ZirkelCanvas getZC() { return ZF.ZC; } public static String ToolTip(final String s) { String ToolTipText=""; final String purename=(s.startsWith("bi_"))?s.substring(3):s; try { ToolTipText=Global.Loc("palette.info."+purename); } catch (final Exception e1) { try { ToolTipText=Global.Loc("palette.info."+s); } catch (final Exception e2) { ToolTipText=rene.gui.Global.name("iconhelp."+purename); } } return ToolTipText; } public static String FilteredStatus(final String status) { String newstatus=status; int index; if ((index=status.indexOf("@builtin@/DP_line"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_line\\E", Global.Loc("palette.info.DP_line")); } else if ((index=status.indexOf("@builtin@/DP_midpoint"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_midpoint\\E", Global.Loc("palette.info.DP_midpoint")); } else if ((index=status.indexOf("@builtin@/DP_bi_syma"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_syma\\E", Global.Loc("palette.info.DP_bi_syma")); } else if ((index=status.indexOf("@builtin@/DP_bi_symc"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_symc\\E", Global.Loc("palette.info.DP_bi_symc")); } else if ((index=status.indexOf("@builtin@/DP_plumb"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_plumb\\E", Global.Loc("palette.info.DP_plumb")); } else if ((index=status.indexOf("@builtin@/DP_bi_med"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_med\\E", Global.Loc("palette.info.DP_bi_med")); } else if ((index=status.indexOf("@builtin@/DP_bi_biss"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_biss\\E", Global.Loc("palette.info.DP_bi_biss")); } else if ((index=status.indexOf("@builtin@/DP_segment"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_segment\\E", Global.Loc("palette.info.DP_segment")); } else if ((index=status.indexOf("@builtin@/DP_ray"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_ray\\E", Global.Loc("palette.info.DP_ray")); } else if ((index=status.indexOf("@builtin@/DP_angle"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_angle\\E", Global.Loc("palette.info.DP_angle")); } else if ((index=status.indexOf("@builtin@/DP_circle"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_circle\\E", Global.Loc("palette.info.DP_circle")); } else if ((index=status.indexOf("@builtin@/DP_bi_distance"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_distance\\E", Global.Loc("palette.info.DP_bi_distance")); } else if ((index=status.indexOf("@builtin@/DP_bi_lineIP"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_lineIP\\E", Global.Loc("palette.info.DP_bi_lineIP")); } else if ((index=status.indexOf("@builtin@/DP_bi_perp_common"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_perp_common\\E", Global.Loc("palette.info.DP_bi_perp_common")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceau1"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceau1\\E", Global.Loc("palette.info.DP_bi_pinceau1")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceau3"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceau3\\E", Global.Loc("palette.info.DP_bi_pinceau3")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceauinter"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceauinter\\E", Global.Loc("palette.info.DP_bi_pinceauinter")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceauhauteur"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceauhauteur\\E", Global.Loc("palette.info.DP_bi_pinceauhauteur")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceaucycle"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceaucycle\\E", Global.Loc("palette.info.DP_bi_pinceaucycle")); } else if ((index=status.indexOf("@builtin@/DP_bi_pinceaubiss"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_pinceaubiss\\E", Global.Loc("palette.info.DP_bi_pinceaubiss")); } else if ((index=status.indexOf("@builtin@/DP_bi_equidistante"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_equidistante\\E", Global.Loc("palette.info.DP_bi_equidistante")); } else if ((index=status.indexOf("@builtin@/DP_bi_horocycle"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_horocycle\\E", Global.Loc("palette.info.DP_bi_horocycle")); } else if ((index=status.indexOf("@builtin@/DP_fixedangle"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_fixedangle\\E", Global.Loc("palette.info.DP_fixedangle")); } else if ((index=status.indexOf("@builtin@/DP_bi_circ"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/DP_bi_circ\\E", Global.Loc("palette.info.DP_bi_circ")); } else if ((index=status.indexOf("@builtin@/syma"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/syma\\E", Global.Loc("palette.info.bi_syma")); } else if ((index=status.indexOf("@builtin@/symc"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/symc\\E", Global.Loc("palette.info.bi_symc")); } else if ((index=status.indexOf("@builtin@/trans"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/trans\\E", Global.Loc("palette.info.bi_trans")); } else if ((index=status.indexOf("@builtin@/med"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/med\\E", Global.Loc("palette.info.bi_med")); } else if ((index=status.indexOf("@builtin@/biss"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/biss\\E", Global.Loc("palette.info.bi_biss")); } else if ((index=status.indexOf("@builtin@/circ"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/circ\\E", Global.Loc("palette.info.bi_circ")); } else if ((index=status.indexOf("@builtin@/arc"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/arc\\E", Global.Loc("palette.info.bi_arc")); } else if ((index=status.indexOf("@builtin@/function_u"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/function_u\\E", ToolTip("bi_function_u")); } else if ((index=status.indexOf("@builtin@/t_align"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_align\\E", Global.Loc("palette.info.bi_t_align")); } else if ((index=status.indexOf("@builtin@/t_para"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_para\\E", Global.Loc("palette.info.bi_t_para")); } else if ((index=status.indexOf("@builtin@/t_perp"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_perp\\E", Global.Loc("palette.info.bi_t_perp")); } else if ((index=status.indexOf("@builtin@/t_equi"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_equi\\E", Global.Loc("palette.info.bi_t_equi")); } else if ((index=status.indexOf("@builtin@/t_app"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_app\\E", Global.Loc("palette.info.bi_t_app")); } else if ((index=status.indexOf("@builtin@/t_conf"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/t_conf\\E", Global.Loc("palette.info.bi_t_conf")); } else if ((index=status.indexOf("@builtin@/3Dcoords"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dcoords\\E", Global.Loc("palette.info.bi_3Dcoords")); } else if ((index=status.indexOf("@builtin@/3Dcube"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dcube\\E", Global.Loc("palette.info.bi_3Dcube")); } else if ((index=status.indexOf("@builtin@/3Darete"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Darete\\E", Global.Loc("palette.info.bi_3Darete")); } else if ((index=status.indexOf("@builtin@/3Dtetra"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dtetra\\E", Global.Loc("palette.info.bi_3Dtetra")); } else if ((index=status.indexOf("@builtin@/3Docta"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Docta\\E", Global.Loc("palette.info.bi_3Docta")); } else if ((index=status.indexOf("@builtin@/3Disoc"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Disoc\\E", Global.Loc("palette.info.bi_3Disoc")); } else if ((index=status.indexOf("@builtin@/3Ddode"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Ddode\\E", Global.Loc("palette.info.bi_3Ddode")); } else if ((index=status.indexOf("@builtin@/3Dsymp"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dsymp\\E", Global.Loc("palette.info.bi_3Dsymp")); } else if ((index=status.indexOf("@builtin@/3Dproj"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dproj\\E", Global.Loc("palette.info.bi_3Dproj")); } else if ((index=status.indexOf("@builtin@/3Dsymc"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dsymc\\E", Global.Loc("palette.info.bi_3Dsymc")); } else if ((index=status.indexOf("@builtin@/3Dtrans"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dtrans\\E", Global.Loc("palette.info.bi_3Dtrans")); } else if ((index=status.indexOf("@builtin@/3Dcircle1"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dcircle1\\E", Global.Loc("palette.info.bi_3Dcircle1")); } else if ((index=status.indexOf("@builtin@/3Dcircle2"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dcircle2\\E", Global.Loc("palette.info.bi_3Dcircle2")); } else if ((index=status.indexOf("@builtin@/3Dcircle3pts"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dcircle3pts\\E", Global.Loc("palette.info.bi_3Dcircle3pts")); } else if ((index=status.indexOf("@builtin@/3Dplandroite"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dplandroite\\E", Global.Loc("palette.info.bi_3Dplandroite")); } else if ((index=status.indexOf("@builtin@/3Dplanplan"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dplanplan\\E", Global.Loc("palette.info.bi_3Dplanplan")); } else if ((index=status.indexOf("@builtin@/3Dsphererayon"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dsphererayon\\E", Global.Loc("palette.info.bi_3Dsphererayon")); } else if ((index=status.indexOf("@builtin@/3Dspherepoint"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dspherepoint\\E", Global.Loc("palette.info.bi_3Dspherepoint")); } else if ((index=status.indexOf("@builtin@/3Dspheredroite"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dspheredroite\\E", Global.Loc("palette.info.bi_3Dspheredroite")); } else if ((index=status.indexOf("@builtin@/3Dsphereplan"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dsphereplan\\E", Global.Loc("palette.info.bi_3Dsphereplan")); } else if ((index=status.indexOf("@builtin@/3Dspheresphere"))>0) { newstatus=newstatus.substring(index); newstatus=newstatus.replaceAll("\\Q@builtin@/3Dspheresphere\\E", Global.Loc("palette.info.bi_3Dspheresphere")); } return newstatus; } public static boolean workbookHaveChanged() { boolean changed=false; for (int i=0; i medias=new ArrayList(); private Media(String name, byte[] datas) { imagefilename=name; imagebytes=datas; } private Media(String name, InputStream in) { this(name, FileTools.copyToByteArray(in)); } public String getImageFileName(){ return imagefilename; } public byte[] getImageBytes(){ return imagebytes; } static public ArrayList getMedias(){ return medias; } public static void clearMedias() { medias=null; medias=new ArrayList(); } static public void createMedia(String name, byte[] datas) { medias.add(new Media(name, datas)); } static public void createMedia(String filename) { String shortname=FileName.filename(filename); for (int i=0; i=0; i--){ compt = 0; e = JZirkelCanvas.getCurrentZC().getConstruction().elements(); while(e.hasMoreElements() && compt==0){ ConstructionObject o = (ConstructionObject) e.nextElement(); if(o instanceof ImageObject && ((ImageObject) o).getFilename().equals(medias.get(i).getImageFileName())){ compt++; } } if(compt==0) { medias.remove(i); } } return medias.size(); } static public Image getImage(String name) { String shortname=FileName.filename(name); for (int i=0; id) { h=(int) d; } Thread.sleep((int) (d-h)); time=System.currentTimeMillis(); } catch (final Exception ex) { } if (P.getBound() instanceof SegmentObject) { final SegmentObject s=(SegmentObject) P.getBound(); synchronized (canvas) { if (back) { O.move(s.getP1().getX()+(s.getLength()-x) *s.getDX(), s.getP1().getY() +(s.getLength()-x)*s.getDY()); } else { O.move(s.getP1().getX()+x*s.getDX(), s.getP1().getY() +x*s.getDY()); } ZC.dovalidate(); ZC.repaint(); x+=ZC.dx(2); if (x>s.getLength()) { back=!back; x=0; } } } else if (P.getBound() instanceof PrimitiveCircleObject) { final PrimitiveCircleObject c=(PrimitiveCircleObject) P.getBound(); synchronized (canvas) { O.move(c.getP1().getX()+Math.cos(x) *c.getR(), c.getP1().getY() +Math.sin(x)*c.getR()); ZC.dovalidate(); ZC.repaint(); if (Negative) { x-=ZC.dx(2)/c.getR(); } else { x+=ZC.dx(2)/c.getR(); } } } } TH=null; } }; TH.setPriority(Thread.MIN_PRIORITY); TH.start(); } public void initSlidersParameters(ExpressionObject E) { min=E.getMinValue(); max=E.getMaxValue(); positiveincrement=(max-min)/parts; } public void runExpression() { TH=new Thread() { public void run() { final ZirkelCanvas canvas=ZC; ExpressionObject E=(ExpressionObject) O; double x; try { x = E.getValue(); } catch (Exception ex) { x=0; } double increment=1; long time=System.currentTimeMillis(); while ((!PANEL.isStopped())&&(thread_alive)) { try { final long t=System.currentTimeMillis(); double d=PANEL.getDelay(); int h=(int) (t-time); if (h<0) { h=0; } if (h>d) { h=(int) d; } Thread.sleep((int) (d-h)); time=System.currentTimeMillis(); } catch (final Exception ex) { } try { synchronized (canvas) { if (E.isSlider()) { initSlidersParameters(E); if (Negative) { if (x>max) { x=min; } else { x+=positiveincrement; } } else { if (x>max) { x=max; increment=-positiveincrement; } else if (x V=new Vector(); private static Image icon=themes.getImage("animation.png"); private int W=32, H=32, X=10, Y=47; private int minspeed=0; private int maxspeed=100; private int speed=40; private boolean stopped=false; private double a, b, A1, A2, B2; public void paintComponent(Graphics g) { g.drawImage(icon, 0, 0, W, H, this); } public int getMaxSpeed() { return maxspeed; } public AnimationPanel(ZirkelCanvas zc) { ZC=zc; setBounds(X, Y, W, H); addMouseListener(this); a=maxspeed/10; b=maxspeed-10; A1=b/a; A2=(maxspeed-b)/(maxspeed-a); B2=maxspeed*(b-a)/(maxspeed-a); } public double getDelay() { int cur=speed; double v; if (cur>a) { v=A2*cur+B2; } else { v=A1*cur; } double d=(maxspeed-v)*6; return d; } public void setDelay(double delay) { double cur=maxspeed-delay/6; if (cur>b) { speed=(int) ((cur-B2)/A2); } else { speed=(int) (cur/A1); } } public void showPopup() { JPopupMenu popup=new JPopupMenu(); // add Cancel Item : myJMenuItem item=new myJMenuItem(Global.Loc("animation.run")) { @Override public void action() { startAnimation(); } }; popup.add(item); item=new myJMenuItem(Global.Loc("animation.stop")) { @Override public void action() { stopAnimation(); } }; popup.add(item); item=new myJMenuItem(Global.Loc("animation.reverse")) { @Override public void action() { reverseAnimation(); } }; popup.add(item); popup.add(new JSeparator()); item=new myJMenuItem(Global.Loc("animation.removeall")) { @Override public void action() { removeAllAnimations(); } }; popup.add(item); popup.add(new JSeparator()); popup.add(new SpeedSliderMenuItem()); popup.show(this, W-10, H); } public Vector getAnimations() { return V; } public void reverseAnimation() { for (int i=0; i. */ package eric.bar; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Component; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JOptionPane; import eric.JEricPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; import eric.controls.JCanvasButton; import eric.controls.JCanvasPanel; import eric.controls.JCanvasPopup; import eric.controls.JCanvasSlider; import eric.controls.JCanvasTxtfield; import eric.textfieldpopup.JTextFieldPopup; /** * * @author erichake */ public class JControlProperties extends JProperties { /** * */ JCanvasPanel JCP; myJSliderShowTicks jsShowTicks; myJSliderSnapTicks jsSnapTicks; myJSliderMin jsMin; myJSliderMax jsMax; myJSliderTicks jsTicks; myJComment jsComment; myJSliderUnit jsUnit; myJSliderShowComment jsShowcom; myJSliderShowVal jsShowval; myJSliderShowUnit jsShowunit; myJPopupItems jsPopupitems; public JControlProperties(final int w, final int h) { super(w, h); jsShowTicks=new myJSliderShowTicks(Loc("ctrlshowticks"), true, 200, TextFieldHeight); jsSnapTicks=new myJSliderSnapTicks(Loc("ctrlsnap"), true, 200, TextFieldHeight); jsMin=new myJSliderMin("min:", "", 50, 150, TextFieldHeight); jsMax=new myJSliderMax("max:", "", 50, 150, TextFieldHeight); jsTicks=new myJSliderTicks(Loc("ctrltickspacing"), "", 100, 200, TextFieldHeight); jsComment=new myJComment(Loc("expl"), "", 100, 250, TextFieldHeight); jsUnit=new myJSliderUnit(Loc("unit"), "", 100, 250, TextFieldHeight); jsShowcom=new myJSliderShowComment("", true, 18, TextFieldHeight); jsShowval=new myJSliderShowVal(Loc("ctrlshowvalue"), true, 200, TextFieldHeight); jsShowunit=new myJSliderShowUnit("", true, 18, TextFieldHeight); jsPopupitems=new myJPopupItems("", 250, TextFieldHeight*3+2); } public void setObject(final JCanvasPanel jcp) { if (JZirkelCanvas.getCurrentZF()==null) { return; } ZF=JZirkelCanvas.getCurrentZF(); ZC=JZirkelCanvas.getCurrentZC(); JCP=jcp; //O=JCP.O; setObject(JCP.O); Cn=ZC.getConstruction(); this.clearAll(); addName(); addCommonProps(); addJSliderProps(); addJPopupProps(); addConditionals(); selectTab(1); this.revalidate(); this.repaint(); } private void addName() { final JEricPanel rubname=new myRub(); name.init(); rubname.add(name); addMain(margin(5)); addMain(rubname); addMain(margin(5)); final JEricPanel rub=new myRub(); addMain(rub); } private void addCommonProps() { jsComment.init(); jsUnit.init(); jsShowcom.init(); jsShowval.init(); jsShowunit.init(); final ContentLine l1=new ContentLine(); l1.add(jsShowcom); l1.add(jsComment); final ContentLine l2=new ContentLine(); l2.add(jsShowunit); l2.add(jsUnit); final JEricPanel rub4=new myRub(); rub4.add(margintop(2)); rub4.add(l1); if ((JCP instanceof JCanvasTxtfield)||(JCP instanceof JCanvasButton)) { rub4.add(margintop(jsShowval.H*2+2)); } else { rub4.add(margintop(1)); rub4.add(l2); rub4.add(margintop(1)); rub4.add(jsShowval); } addToNum(rub4); addToNum(new myRubSep()); } private void addJSliderProps() { if (!(JCP instanceof JCanvasSlider)) { return; } jsShowTicks.init(); jsSnapTicks.init(); jsMin.init(); jsMax.init(); jsTicks.init(); final JEricPanel rub1=new myRub(); rub1.add(margintop(2)); rub1.add(jsTicks); rub1.add(margintop(1)); rub1.add(jsSnapTicks); rub1.add(margintop(1)); rub1.add(jsShowTicks); addToNum(rub1); addToNum(new myRubSep()); final JEricPanel rub2=new myRub(); rub2.add(margintop(2)); rub2.add(jsMin); rub2.add(margintop(jsMin.H+2)); rub2.add(jsMax); addToNum(rub2); } private void addJPopupProps() { if (!(JCP instanceof JCanvasPopup)) { return; } final JEricPanel rub2=new myRub(); rub2.add(margintop(2)); jsPopupitems.init(); rub2.add(jsPopupitems); addToNum(rub2); } private void addConditionals() { final JEricPanel rub=new myRub(); chidden.init(); csuperhidden.init(); rub.add(margintop(1)); rub.add(chidden); rub.add(margintop(2*chidden.H+3)); addToConditional(rub); } // class myJSliderName extends myJLine { // // public myJSliderName(String comment, String txt, int comwidth, int width, // int height) { // super(comment, txt, comwidth, width, height); // this.JTF.setHorizontalAlignment(SwingConstants.CENTER); // // } // // public void doAction(Component e) { // JTextField jtf = (JTextField) e; // if (O.getName().equals(jtf.getText())) { // return; // } // O.setName(jtf.getText()); // O.setShowName(true); // show.forceSelect(2); // Force the ShowName icon to be selected // if (ZC != null) { // ZC.repaint(); // } // } // // public void init() { // setText(O.getName()); // } // } class myJComment extends myJLine { /** * */ public myJComment(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","+JTextFieldPopup.FUNCTIONMENU+","); } @Override public void doAction(final Component e) { JCP.setComment(getText()); } public void init() { setText(JCP.getComment()); } } class myJSliderUnit extends myJLine { /** * */ public myJSliderUnit(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","+JTextFieldPopup.FUNCTIONMENU+","); } @Override public void doAction(final Component e) { JCP.setUnit(getText()); } public void init() { setText(JCP.getUnit()); } } class myJSliderShowComment extends myJLine { /** * */ public myJSliderShowComment(final String comment, final boolean bool, final int width, final int height) { super(comment, bool, width, height); } @Override public void doAction(final Component e) { JCP.setShowComment(!isSelected()); } public void init() { setSelected(JCP.getShowComment()); } } class myJSliderShowVal extends myJLine { /** * */ public myJSliderShowVal(final String comment, final boolean bool, final int width, final int height) { super(comment, bool, width, height); } @Override public void doAction(final Component e) { JCP.setShowVal(!isSelected()); } public void init() { setSelected(JCP.getShowVal()); } } class myJSliderShowUnit extends myJLine { /** * */ public myJSliderShowUnit(final String comment, final boolean bool, final int width, final int height) { super(comment, bool, width, height); } @Override public void doAction(final Component e) { JCP.setShowUnit(!isSelected()); } public void init() { setSelected(JCP.getShowUnit()); } } class myJSliderShowTicks extends myJLine { /** * */ public myJSliderShowTicks(final String comment, final boolean bool, final int width, final int height) { super(comment, bool, width, height); } @Override public void doAction(final Component e) { ((JCanvasSlider) JCP).setShowTicks(!isSelected()); } public void init() { setSelected(((JCanvasSlider) JCP).getShowTicks()); } } class myJSliderSnapTicks extends myJLine { /** * */ public myJSliderSnapTicks(final String comment, final boolean bool, final int width, final int height) { super(comment, bool, width, height); } @Override public void doAction(final Component e) { ((JCanvasSlider) JCP).setSnap(!isSelected()); } public void init() { setSelected(((JCanvasSlider) JCP).getSnap()); } } class myJSliderMin extends myJLine { /** * */ String current; String origin; public myJSliderMin(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height); } @Override public void doAction(final Component e) { if ((current.equals(getText()))||(!(isValidExpression(getText())))) { return; } current=getText(); } @Override public void doQuitMe(final Component e) { if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); ((JCanvasSlider) JCP).setMin(ValueOf(origin)); setText(origin); JTF.requestFocus(); return; } current=getText(); ((JCanvasSlider) JCP).setMin(ValueOf(current)); jsMax.setText(((JCanvasSlider) JCP).getMax()); } public void init() { current=String.valueOf(((JCanvasSlider) JCP).getMin()); origin=current; setText(current); System.out.println(JTF.getText()); } } class myJSliderMax extends myJLine { /** * */ String current; String origin; public myJSliderMax(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height); } @Override public void doAction(final Component e) { if ((current.equals(getText()))||(!(isValidExpression(getText())))) { return; } current=getText(); } @Override public void doQuitMe(final Component e) { if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); ((JCanvasSlider) JCP).setMax(ValueOf(origin)); setText(origin); JTF.requestFocus(); return; } current=getText(); ((JCanvasSlider) JCP).setMax(ValueOf(current)); jsMin.setText(((JCanvasSlider) JCP).getMin()); } public void init() { current=String.valueOf(((JCanvasSlider) JCP).getMax()); origin=current; setText(current); } } class myJSliderTicks extends myJLine { /** * */ String current, origin; public myJSliderTicks(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height); } @Override public void doAction(final Component e) { if ((current.equals(getText()))||(!(isValidExpression(getText())))) { return; } current=getText(); ((JCanvasSlider) JCP).setTicks(ValueOf(current)); } @Override public void doQuitMe(final Component e) { if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); ((JCanvasSlider) JCP).setTicks(ValueOf(origin)); setText(origin); return; } current=getText(); ((JCanvasSlider) JCP).setTicks(ValueOf(current)); } public void init() { current=String.valueOf(((JCanvasSlider) JCP).getTicks()); origin=current; setText(current); } } class txtfieldTemplate extends myJLine { /** * */ public txtfieldTemplate(final String comment, final String txt, final int comwidth, final int width, final int height) { super(comment, txt, comwidth, width, height, true); } @Override public void doAction(final Component e) { } @Override public void doQuitMe(final Component e) { } public void init() { } } class myJPopupItems extends ContentLine { /** * */ JButton carBTN=null; JTextArea JTX; public myJPopupItems(final String mytxt, final int width, final int height) { super(width, height); this.setFocusable(false); this.add(margin(5)); JTX=new JTextArea(mytxt); JTX.setFont(F_TextArea); JTX.setBackground(new Color(245, 246, 255)); // JTX.setBorder(BorderFactory.createEtchedBorder()); JTX.addKeyListener(new KeyAdapter() { @Override public void keyReleased(final KeyEvent e) { doAction(e.getComponent()); } }); JTX.addFocusListener(new FocusAdapter() { @Override public void focusGained(final FocusEvent e) { // JTX.selectAll(); carBTN.setEnabled(true); } @Override public void focusLost(final FocusEvent e) { carBTN.setEnabled(false); doQuitMe(e.getComponent()); } }); JTX.setLineWrap(true); // final JScrollPane jstxt=new JScrollPane(JTX); jstxt.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jstxt.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); // jstxt.setViewportView(JTX); // fixsize(jstxt,PW-11,h); this.add(jstxt); final ImageIcon carimg=new ImageIcon(getClass().getResource( "/eric/GUI/icons/bar/carbtn.png")); final ImageIcon carimg_dis=new ImageIcon(getClass().getResource( "/eric/GUI/icons/bar/carbtn_dis.png")); carBTN=new JButton(carimg); carBTN.setDisabledIcon(carimg_dis); // carbtn.setRolloverIcon(closeoverimg); carBTN.setBorder(BorderFactory.createEmptyBorder()); carBTN.setOpaque(false); carBTN.setContentAreaFilled(false); carBTN.setFocusable(false); carBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { doShowPopup(e); } }); carBTN.setEnabled(false); this.add(margin(2)); this.add(carBTN); } public void doShowPopup(final MouseEvent e) { if (carBTN.isEnabled()) { final JTextFieldPopup mypop=new JTextFieldPopup(JTX); mypop.setDisabled(","+JTextFieldPopup.LATEXMENU+","+JTextFieldPopup.FUNCTIONMENU+","); mypop.addPopupMenuListener(new PopupMenuListener() { public void popupMenuWillBecomeVisible( final PopupMenuEvent arg0) { } public void popupMenuWillBecomeInvisible( final PopupMenuEvent arg0) { doAction(JTX); } public void popupMenuCanceled(final PopupMenuEvent arg0) { } }); mypop.openMenu(e); } } public void setText(final String txt) { JTX.setText(txt); } public String getText() { return JTX.getText(); } public void doAction(final Component cp) { if (getObject().getText().equals(getText())) { return; } ((JCanvasPopup) JCP).setItems(getText()); // O.setLines(getText()); // O.setText(getText(), true); // ZC.recompute(); // ZC.validate(); // ZC.repaint(); } public void doQuitMe(final Component cp) { } public void init() { // setText(O.getLines()); setText(((JCanvasPopup) JCP).getItems()); } } } carmetal-4.3/src/eric/bar/JProperties.java000066400000000000000000004772041417122252700205570ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.bar; import java.awt.AlphaComposite; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; import java.awt.KeyboardFocusManager; import java.awt.RenderingHints; import java.awt.Stroke; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.InputEvent; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.net.URL; import java.util.ArrayList; import java.util.HashSet; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.KeyStroke; import javax.swing.ScrollPaneConstants; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; import javax.swing.event.PopupMenuEvent; import javax.swing.event.PopupMenuListener; import javax.swing.plaf.ComboBoxUI; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.metal.MetalComboBoxUI; import javax.swing.text.JTextComponent; import eric.JColorPicker; import eric.JEricPanel; import eric.JZirkelCanvas; import eric.GUI.palette.PaletteManager; import eric.textfieldpopup.JTextFieldPopup; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.construction.Construction; import rene.zirkel.construction.ConstructionException; import rene.zirkel.expression.Expression; import rene.zirkel.objects.AngleObject; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.objects.EquationXYObject; import rene.zirkel.objects.FixedAngleObject; import rene.zirkel.objects.FunctionObject; import rene.zirkel.objects.InsideObject; import rene.zirkel.objects.IntersectionObject; import rene.zirkel.objects.MidpointObject; import rene.zirkel.objects.PointObject; import rene.zirkel.objects.PrimitiveCircleObject; import rene.zirkel.objects.SegmentObject; import rene.zirkel.objects.TrackObject; import rene.zirkel.objects.UserFunctionObject; import rene.zirkel.objects.VectorObject; /** * * @author erichake with addons by Dibs for 3D */ public class JProperties extends JTabPanel { Construction Cn=null; private static ConstructionObject O=null; ZirkelCanvas ZC=null; ZirkelFrame ZF=null; private static String typecode; Color C_TextField=new Color(50, 50, 50); Color C_TextField_OFF=new Color(150, 150, 150); Color C_Comment=new Color(0, 0, 0); int HRubSeparatorHeight=40; int HRubSeparatorWidth=40; int TextFieldHeight=17; int TextFontSize=12; // String GlobalFontName=JGlobals.GlobalFont; String GlobalFontName="System"; Font F_TextField=new Font(GlobalFontName, 0, TextFontSize); Font F_NameField=new Font(GlobalFontName, 1, 12); Font F_ConditionalField=new Font(GlobalFontName, 0, 10); Font F_Label=new Font(GlobalFontName, 0, TextFontSize); Font F_CheckBox=new Font(GlobalFontName, 0, TextFontSize); Font F_Button=new Font(GlobalFontName, 0, 10); Font F_ComboBox=new Font(GlobalFontName, 0, TextFontSize); Font F_TextArea=new Font(GlobalFontName, 0, TextFontSize); myJName name; myJAlias alias; myJRed redcolor; myJGreen greencolor; myJBlue bluecolor; myJMagnetObj magnetobj; myJMagnetPix magnetpix; myJUnit unit; myTRK track; myJConditional czvalue; //Layer num private static myJX X; private static myJY Y; private static myJX3D X3D; private static myJY3D Y3D; private static myJZ3D Z3D; myXYlink XYlink; myXYZlink XYZlink; myJAbsolutePos AbsPos; myJFx Fx; myJFx3D Fx3D; myJGrid Grid; myJInside Inside; private static myJR ray; private static myJR3D ray3D; myJRFx RFx; myJRFx3D RFx3D; private static myJA angle; myJAFx aFx; myJTextArea text; myJExpression Exp; myJPrompt prompt; myJSMin min; myJSMax max; myJMinBoundary bound_left; myJMaxBoundary bound_right; myJSSlider slider; ContentLine sliderline; myJUserFunction userfunc; myJUserF_Y fuey; myJEqXY eqxy; myJEqXYDHorChooser eqxychooser; ContentLine btnline; myMagnetBtn magnetbtn; myArcBtn arcbtn; myPtBindBtn ptbindbtn; myPtAwayBtn ptawaybtn; myPtCloseBtn ptclosebtn; myJFunction func; myJF_X fex; myJF_Y fey; myJF_d fd; myJF_DMin fdmin; myJF_Min fmin; myJF_Max fmax; myJF_pt fpt; myJF_Discrete ftr; myJColorLine color; myJSegmentCodeLine segmentcode; myJColorTypeLine colortype; myJTypeLine type; myJCircleLine circle; myJShowLine show; myJBoldLine boldlarge; myJAreaLine area; myJAngleLine0 angle0; myJAngleLine1 angle1; myJFilledLine filled; myJLineLine line; myJTrackDMinChooser dmintrack; myJConditional csolid, chidden, cnormal, cthick, cthin, cblack, cgreen, cblue, ccyan, cred, cbrown, cshowvalue, cshowname, cbackground, csuperhidden; // Text and checkbox items : static String APoint=",PointObject,IntersectionObject,PointonObject,PointonObjectIntersectionObject,LineCircleIntersectionObject,LineQuadricIntersectionObject,QuadricQuadricIntersectionObject,LineIntersectionObject,CircleIntersectionObject,MidpointObject,"; static String ACircle=",PrimitiveCircleObject,CircleObject,Circle3Object,FixedCircleObject,"; String ALine=",PrimitiveLineObject,LineObject,TwoPointLineObject,RayObject,ParallelObject,PlumbObject,"; static String AAngle=",AngleObject,FixedAngleObject,"; static String AExpression=",ExpressionObject,"; static String AText=",TextObject,"; String AFunction=",FunctionObject,"; String AEquationXY=",EquationXYObject,"; static String AUserFunction=",UserFunctionObject,"; String ATrack=",TrackObject,JLocusTrackObject,ObjectTracker,JLocusObjectTracker,"; static String ASegment=",SegmentObject,VectorObject,"; String AArea=",AreaObject,"; ArrayList MultipleObjects=null; public JProperties(int w, int h) { super(w, h); name=new myJName(Loc("name"), "", 40, 110, 20); name.JTF.setFont(F_NameField); alias=new myJAlias(Loc("alias"), "", 0, 90, 20); unit=new myJUnit(Loc("unit"), "", 70, 150, TextFieldHeight); magnetobj=new myJMagnetObj(Loc("magnetobj"), "", 0, 150, TextFieldHeight); magnetpix=new myJMagnetPix(Loc("magnetpix"), "", 0, 150, TextFieldHeight); redcolor=new myJRed("R", "", 0, 78, TextFieldHeight); greencolor=new myJGreen("G", "", 0, 78, TextFieldHeight); bluecolor=new myJBlue("B", "", 0, 78, TextFieldHeight); X=new myJX("X :", "", 25, 300, TextFieldHeight); Y=new myJY("Y :", "", 25, 300, TextFieldHeight); X3D=new myJX3D("X :", "", 25, 300, TextFieldHeight); Y3D=new myJY3D("Y :", "", 25, 300, TextFieldHeight); Z3D=new myJZ3D("Z :", "", 25, 300, TextFieldHeight); XYlink=new myXYlink(); XYZlink=new myXYZlink(); Fx=new myJFx(Loc("fix"), false, 130, TextFieldHeight); Fx3D=new myJFx3D(Loc("fix"), false, 130, TextFieldHeight); AbsPos=new myJAbsolutePos(Loc("fixedinwindow"), false, 150, TextFieldHeight); ray=new myJR(Loc("fixedray"), "", 75, 300+XYlink.W, TextFieldHeight); ray3D=new myJR3D(Loc("fixedray"), "", 80, 300+XYlink.W, TextFieldHeight); RFx=new myJRFx(Loc("fix"), false, 300+XYlink.W, TextFieldHeight); RFx3D=new myJRFx3D(Loc("fix"), false, 300+XYlink.W, TextFieldHeight); angle=new myJA(Loc("fixedangle"), "", 75, 300+XYlink.W, TextFieldHeight); aFx=new myJAFx(Loc("fix"), false, 300+XYlink.W, TextFieldHeight); czvalue=new myJConditional("z", Loc("belongto"), "", 70, 150, TextFieldHeight); track=new myTRK(Loc("tracks"), false, 200, TextFieldHeight); Grid=new myJGrid(Loc("grid"), "", 80, 170, TextFieldHeight); Inside=new myJInside(Loc("inside"), false, 130, TextFieldHeight); text=new myJTextArea("", 330, 55); Exp=new myJExpression("Exp :", "", 40, 330, TextFieldHeight); prompt=new myJPrompt(Loc("expl"), "", 100, 330, TextFieldHeight); min=new myJSMin("min", "", 0, 113, TextFieldHeight); max=new myJSMax("max", "", 0, 113, TextFieldHeight); slider=new myJSSlider(Loc("showasslider"), false, 100, TextFieldHeight); slider.JCBX.setText(slider.JCBX.getText()+" :"); sliderline=new ContentLine(330, TextFieldHeight); sliderline.add(slider); sliderline.add(min); sliderline.add(margin(4)); sliderline.add(max); userfunc=new myJUserFunction(Loc("vars"), "", 90, 330, TextFieldHeight); fuey=new myJUserF_Y("f(x) =", "0", 90, 331, TextFieldHeight); eqxy=new myJEqXY(Loc("equationxy"), "0", 90, 470, TextFieldHeight); eqxychooser=new myJEqXYDHorChooser(Loc("equationxychooser"), 90, 250, TextFieldHeight); // btnline = new ContentLine(300, TextFieldHeight); magnetbtn=new myMagnetBtn(30, 30); arcbtn=new myArcBtn(100, TextFieldHeight); ptbindbtn=new myPtBindBtn(100, TextFieldHeight); // ptawaybtn=new myPtAwayBtn(100, TextFieldHeight); ptawaybtn=new myPtAwayBtn(Loc("setaway")+" :", "", 70, 150, TextFieldHeight); ptclosebtn=new myPtCloseBtn(Loc("setclose")+" :", "", 70, 150, TextFieldHeight); func=new myJFunction("", "", 0, 470, TextFieldHeight); fex=new myJF_X("x(t)=", "", 40, 470, TextFieldHeight); fey=new myJF_Y("", "", 40, 470, TextFieldHeight); fmin=new myJF_Min("Min :", "", 40, 176, TextFieldHeight); fmax=new myJF_Max("Max :", "", 40, 176, TextFieldHeight); fd=new myJF_d(Loc("step"), "", 40, 176, TextFieldHeight); fdmin=new myJF_DMin(Loc("step"), "", 50, 300, TextFieldHeight); fpt=new myJF_pt(Loc("pointsonly"), false, 200, TextFieldHeight); ftr=new myJF_Discrete(Loc("pointsonly"), false, 300, TextFieldHeight); bound_left=new myJMinBoundary(20, 2); bound_right=new myJMaxBoundary(20, 2); color=new myJColorLine(26, 2); colortype=new myJColorTypeLine(32, 3); segmentcode=new myJSegmentCodeLine(30, 3); type=new myJTypeLine(26, 2); circle=new myJCircleLine(24, 1); show=new myJShowLine(28, 1); boldlarge=new myJBoldLine(26, 2); area=new myJAreaLine(26, 1); angle0=new myJAngleLine0(26, 1); angle1=new myJAngleLine1(26, 2); filled=new myJFilledLine(26, 1); line=new myJLineLine(26, 2); dmintrack=new myJTrackDMinChooser(Loc("trackdmin"), 150, 250, TextFieldHeight); int cdw=115; csolid=new myJConditional("solid", cdw, TextFieldHeight); chidden=new myJConditional("hidden", cdw, TextFieldHeight); cnormal=new myJConditional("normal", cdw, TextFieldHeight); cthick=new myJConditional("thick", cdw, TextFieldHeight); cthin=new myJConditional("thin", cdw, TextFieldHeight); cblack=new myJConditional("black", cdw, TextFieldHeight); cgreen=new myJConditional("green", cdw, TextFieldHeight); cblue=new myJConditional("blue", cdw, TextFieldHeight); cbrown=new myJConditional("brown", cdw, TextFieldHeight); ccyan=new myJConditional("cyan", cdw, TextFieldHeight); cred=new myJConditional("red", cdw, TextFieldHeight); // cinvisible=new myJConditional("invisible",Loc("invisible"),"",70,true); csuperhidden=new myJConditional("superhidden", cdw, TextFieldHeight); cshowname=new myJConditional("showname", cdw, TextFieldHeight); cshowvalue=new myJConditional("showvalue", cdw, TextFieldHeight); cbackground=new myJConditional("background", cdw, TextFieldHeight); HashSet forwardKeys=new HashSet(); forwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0)); // forwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0)); forwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0)); this.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, forwardKeys); HashSet backwardKeys=new HashSet(); backwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0)); backwardKeys.add(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_DOWN_MASK)); this.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, backwardKeys); } public static ConstructionObject getObject(){ return O; } public static void setObject(ConstructionObject o){ O = o; } public void multiple_setType(int k) { for (int i=0; i v) { if (JZirkelCanvas.getCurrentZF()==null) { return; } MultipleObjects=v; ZF=JZirkelCanvas.getCurrentZF(); ZC=JZirkelCanvas.getCurrentZC(); Cn=ZC.getConstruction(); // Ici on crée un objet virtuel (point) dont chaque changement // de propriété sera retranscrit dans les objets réels de la // sélection multiple : PointObject p=new PointObject(Cn, "MULTIPLE"); O=p; String[] tab=O.getClass().getName().split("\\."); typecode=","+tab[tab.length-1]+","; this.clearAll(); addAspectIcons(); addConditionals(); color.deselectAll(); colortype.deselectAll(); type.deselectAll(); this.revalidate(); this.repaint(); } public void setObject(ConstructionObject o, boolean forcevisible, boolean forcefocus) { if (JZirkelCanvas.getCurrentZF()==null) { return; } MultipleObjects=null; ZF=JZirkelCanvas.getCurrentZF(); ZC=JZirkelCanvas.getCurrentZC(); O=o; Cn=ZC.getConstruction(); String[] tab=O.getClass().getName().split("\\."); typecode=","+tab[tab.length-1]+","; this.clearAll(); addTopStandardLine(); // addToNum(new myRubSep()); addCoords(); if (O instanceof VectorObject &&((VectorObject) O).is3D()) { JEricPanel rub=new myRub(); rub.add(margintop(2)); Fx3D.init(); rub.add(Fx3D); rub.add(margintop(Fx3D.H+2)); addToNum(rub); rub.add(margintop(2*Fx3D.H+4)); addToNum(new myRubSep()); } addPointsGoodies(); addRadius(); addAngle(); addText(); addExpressionLine(); addUserFunction(); addEquationXY(); addButtons(); addFunction(); addTrack(); addAspectIcons(); addConditionals(); this.revalidate(); this.repaint(); if (forcefocus) { if (isExpression()) { if (O.isSlider()) { FocusAndSelect(min.JTF, forcevisible); } else { FocusAndSelect(Exp.JTF, forcevisible); } } else if (isText()) { FocusAndSelect(text.JTX, forcevisible); } else if (isUserFunction()) { FocusAndSelect(fuey.JTF, forcevisible); } else if (isFunction()) { FocusAndSelect(fey.JTF, forcevisible); } else if ((ACircle.indexOf(typecode)!=-1)) { FocusAndSelect(ray.JTF, forcevisible); } else if ((ASegment.indexOf(typecode)!=-1)) { FocusAndSelect(ray.JTF, forcevisible); } else if ((ASegment.indexOf(typecode)!=-1)&&((SegmentObject)O).is3D()) { FocusAndSelect(ray3D.JTF, forcevisible); } else if ((AAngle.indexOf(typecode)!=-1)) { FocusAndSelect(angle.JTF, forcevisible); } else { FocusAndSelect(name.JTF, forcevisible); } return; } FocusAndSelect(name.JTF, false); } public void refresh() { if (O instanceof PointObject) { magnetobj.init(); if (!O.isStrongSelected()) { magnetbtn.setSelected(false); } ptawaybtn.init(); ptclosebtn.init(); } } public void clearme() { O=null; Cn=null; this.clearAll(); //System.out.println(Panes.size()); // for (int i = 0; i < Panes.size(); i++) { // final JEricPanel mypane = (JEricPanel) Panes.get(i); // mypane.removeAll(); // String str = Global.Loc("props.help"); // str = str.replace("
", " "); // final JLabel hlp = new JLabel(str); // hlp.setOpaque(false); // hlp.setFont(new Font("System", 0, 12)); // hlp.setHorizontalAlignment(SwingConstants.CENTER); // hlp.setVerticalAlignment(SwingConstants.CENTER); // fixsize(hlp, 600, RightPanel.getSize().height); // hlp.setForeground(new Color(100, 100, 100)); // mypane.add(hlp); // mypane.revalidate(); // } // final JEricPanel mypane = new JEricPanel(); // // String str = Global.Loc("props.help"); // str = str.replace("
", " "); // // JLabel hlp = new JLabel(str); // hlp.setOpaque(false); // hlp.setFont(new Font("System", 0, 12)); // hlp.setHorizontalAlignment(SwingConstants.CENTER); // hlp.setVerticalAlignment(SwingConstants.CENTER); // fixsize(hlp, 600, RightPanel.getSize().height); // hlp.setForeground(new Color(100,100,100)); // this.add(hlp) ; // mypane.add(hlp); // mypane.revalidate(); repaint(); } private void FocusAndSelect(final JTextComponent cp, final boolean forcevisible) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { if (forcevisible) { selectTab(1); } cp.requestFocus(); cp.selectAll(); } }); } private void addTopStandardLine() { JEricPanel rubname=new myRub(); name.init(); rubname.add(name); addMain(margin(5)); addMain(rubname); addMain(margin(5)); JEricPanel rub=new myRub(); alias.init(); rub.add(alias); addMain(rub); if (JZirkelCanvas.getCurrentZC().is3D()&&(O.getName().equals("O")||O.getName().equals("X")||O.getName().equals("Y")||O.getName().equals("Z")||O.getName().equals("s6")||O.getName().equals("s7")||O.getName().equals("s8"))) { // Dibs name.setEditable(false); alias.setEditable(false); } } public static void refreshCoords(){ if(O==null) return; if(!isNotObjectWithCoords()){ X.init(); Y.init(); X3D.init(); Y3D.init(); Z3D.init(); if(ASegment.indexOf(typecode)==14) { if (((SegmentObject) O).is3D()) ray3D.init(); else ray.init(); } } else if(ASegment.indexOf(typecode)!=-1 || ACircle.indexOf(typecode)!=-1){ if (O instanceof SegmentObject&&((SegmentObject) O).is3D()) ray3D.init(); else ray.init(); } else if(AAngle.indexOf(typecode)!=-1){ angle.init(); } } private void addCoords() { JEricPanel rub=new myRub(); if (isNotObjectWithCoords()) { return; } if(O instanceof SegmentObject && !((SegmentObject) O).isArrow()) return; rub.add(margintop(2)); if (((APoint.indexOf(typecode)!=-1)&&((PointObject) O).is3D())&&O!=ZC.getConstruction().find("O")||(O instanceof VectorObject &&((VectorObject) O).is3D())) { X3D.init(); Y3D.init(); Z3D.init(); if (O instanceof PointObject&&((PointObject) O).isPointOn()){ X3D.setEditable(false); Y3D.setEditable(false); Z3D.setEditable(false); } else { X3D.setEditable(true); Y3D.setEditable(true); Z3D.setEditable(true); } JEricPanel coordsCOL=new JEricPanel(); coordsCOL.setOpaque(false); coordsCOL.setLayout(new BoxLayout(coordsCOL, BoxLayout.Y_AXIS)); JEricPanel coordsLNE=new JEricPanel(); coordsLNE.setOpaque(false); coordsLNE.setLayout(new BoxLayout(coordsLNE, BoxLayout.X_AXIS)); coordsLNE.setAlignmentX(0F); coordsCOL.add(X3D); coordsCOL.add(margintop(1)); coordsCOL.add(Y3D); coordsCOL.add(margintop(1)); coordsCOL.add(Z3D); coordsLNE.add(coordsCOL); coordsLNE.add(XYZlink); rub.add(coordsLNE); } else { X.init(); Y.init(); JEricPanel coordsCOL=new JEricPanel(); coordsCOL.setOpaque(false); coordsCOL.setLayout(new BoxLayout(coordsCOL, BoxLayout.Y_AXIS)); JEricPanel coordsLNE=new JEricPanel(); coordsLNE.setOpaque(false); coordsLNE.setLayout(new BoxLayout(coordsLNE, BoxLayout.X_AXIS)); coordsLNE.setAlignmentX(0F); coordsCOL.add(X); coordsCOL.add(margintop(1)); coordsCOL.add(Y); coordsLNE.add(coordsCOL); coordsLNE.add(XYlink); rub.add(coordsLNE); // rub.add(margintop(1)); // rub.add(AbsPos); rub.add(margintop(1)); ContentLine myline=new ContentLine(X.W+XYlink.W, Fx.H); rub.add(myline); // if it's a Point : (not moveable) or (a PointOn) or a Vector if (!(O.fixed())) { if (((APoint.indexOf(typecode)!=-1)&&((!((PointObject) O).moveable())||((PointObject) O).isPointOn()))) { X.setEditable(false); Y.setEditable(false); } else { X.setEditable(true); Y.setEditable(true); Fx.init(); myline.add(Fx); } } else { X.setEditable(true); Y.setEditable(true); //un vecteur ou tout autre objet mais pas un segment if(ASegment.indexOf(typecode)==14 || ASegment.indexOf(typecode)==-1){ Fx.init(); myline.add(Fx); } } //if it's a point inside a polygon or circle : if (((APoint.indexOf(typecode)!=-1))&&((PointObject) O).isPointOn()) { X.setEditable(false); Y.setEditable(false); if (((PointObject) O).getBound() instanceof InsideObject) { Inside.init(); myline.add(Inside); } } if (((APoint.indexOf(typecode)!=-1))&&((PointObject) O).moveable()&&(!(((PointObject) O).isPointOn()))) { Grid.setEditable(true); X.setEditable(true); Y.setEditable(true); Grid.init(); myline.add(Grid); } if (((APoint.indexOf(typecode)!=-1))&&(((PointObject) O).isPointOn())) { Grid.setEditable(true); Grid.init(); // myline.add(margin(Fx.W)); myline.add(Grid); } } addToNum(rub); addToNum(new myRubSep()); } private void addPointsGoodies() { if ((APoint.indexOf(typecode)==-1)) { return; } if ((!O.fixed())&&(!((PointObject) O).moveable())) { return; } JEricPanel rub=new myRub(); rub.add(margintop(2)); if (((O instanceof PointObject&&((PointObject) O).is3D()&&((PointObject) O).getBound()==null)&&O!=ZC.getConstruction().find("O"))||(O instanceof MidpointObject&&((MidpointObject) O).is3D())) { //Dibs Fx3D.init(); rub.add(Fx3D); rub.add(margintop(Fx3D.H+2)); //if it's a point inside a polygon or circle : if (((APoint.indexOf(typecode)!=-1))&&((PointObject) O).isPointOn()) { X.setEditable(false); Y.setEditable(false); if (((PointObject) O).getBound() instanceof InsideObject) { Inside.init(); rub.add(Inside); } } else { PointObject p=(PointObject) O; if (p.moveablePoint()) { ptbindbtn.init(); rub.add(ptbindbtn); } } addToNum(rub); rub.add(margintop(2*Fx3D.H+4)); addToNum(new myRubSep()); return; } if (!((PointObject) O).isPointOn()) { AbsPos.init(); rub.add(AbsPos); rub.add(margintop(AbsPos.H+2)); } else { rub.add(margintop(2*AbsPos.H+2)); } PointObject p=(PointObject) O; if (p.moveablePoint()) { ptbindbtn.init(); rub.add(ptbindbtn); } addToNum(rub); rub.add(margintop(2*AbsPos.H+4)); addToNum(new myRubSep()); } private void addRadius() { if ((ACircle.indexOf(typecode)==-1)&&(ASegment.indexOf(typecode)==-1)) { return; } if (O instanceof SegmentObject&&((SegmentObject) O).is3D()) { JEricPanel rub=new myRub(200,40); ray3D.init(); RFx3D.init(); String mytxt=Loc("fixedsegment3D"); ray3D.setLabelTxt(mytxt); rub.add(ray3D); //rub.add(margintop(ray3D.H+2)); rub.add(margintop(2)); // rub.add(RFx3D); ! Dibs : à gérer plus tard... déplacement en mode longueur fixe addToNum(rub); addToNum(new myRubSep()); } else if (O.canFix()) { JEricPanel rub=new myRub(); ray.init(); RFx.init(); String mytxt=(ACircle.indexOf(typecode)!=-1)?Loc("fixedray"):Loc("fixedsegment"); ray.setLabelTxt(mytxt); rub.add(ray); rub.add(margintop(ray.H+2)); rub.add(RFx); addToNum(rub); addToNum(new myRubSep()); } } private void addAngle() { if (AAngle.indexOf(typecode)==-1) { return; } if (O.canFix()) { JEricPanel rub=new myRub(); angle.init(); aFx.init(); rub.add(margintop(2)); rub.add(angle); rub.add(margintop(angle.H+2)); if (O instanceof AngleObject && ((AngleObject) O).getP1().is3D()&&((AngleObject) O).getP2().is3D()) { angle.setEditable(false); } else { rub.add(aFx); angle.setEditable(true); } addToNum(rub); addToNum(new myRubSep()); } } public void addText() { if (AText.indexOf(typecode)==-1) { return; } JEricPanel rub=new myRub(); text.init(); rub.add(text); addToNum(rub); } private void addExpressionLine() { if (AExpression.indexOf(typecode)==-1) { return; } JEricPanel rub=new myRub(); rub.add(margintop(2)); Exp.init(); prompt.init(); slider.init(); max.init(); min.init(); rub.add(Exp); rub.add(margintop(1)); rub.add(sliderline); rub.add(margintop(1)); rub.add(prompt); addToNum(rub); } private void addTrack() { if (ATrack.indexOf(typecode)==-1) { return; } JEricPanel rub=new myRub(); rub.add(margintop(2)); dmintrack.init(); rub.add(dmintrack); rub.add(margintop(dmintrack.H*2+4)); addToNum(rub); } private void addUserFunction() { if (AUserFunction.indexOf(typecode)==-1) { return; } userfunc.init(); addToNum(userfunc); } private void addEquationXY() { if (AEquationXY.indexOf(typecode)==-1) { return; } JEricPanel rub=new myRub(); rub.add(margintop(2)); eqxy.init(); eqxychooser.init(); rub.add(eqxy); rub.add(margintop(eqxy.H+2)); rub.add(eqxychooser); addToNum(rub); } private void addFunction() { if (AFunction.indexOf(typecode)==-1) { return; } func.init(); addToNum(func); addToNum(new myRubSep()); JEricPanel rub=new myRub(); fmin.init(); fmax.init(); fd.init(); rub.add(margintop(2)); rub.add(fmin); rub.add(margintop(1)); rub.add(fmax); rub.add(margintop(1)); rub.add(fd); rub.add(margintop(1)); addToNum(rub); addToNum(new myRubSep()); rub=new myRub(); rub.setLayout(null); JLabel title = new JLabel("Bornes :"); title.setFont(F_Label); bound_left.init(); JLabel img = new JLabel(); URL myurl=getClass().getResource("/eric/GUI/icons/bar/fnct.png"); img.setIcon(new ImageIcon(myurl)); bound_right.init(); rub.add(title); rub.add(bound_left); rub.add(img); rub.add(bound_right); title.setBounds(0, 2, 50, 15); bound_left.setBounds(0, 17, 20, 40); img.setBounds(25, 21, 32, 32); bound_right.setBounds(62, 17, 20, 40); addToNum(rub); // func.init(); // content.add(func); // content.add(new mySep()); } public void addButtons() { JEricPanel rub=new myRub(); rub.add(margintop(2)); if (ACircle.indexOf(typecode)!=-1) { arcbtn.init(); rub.add(arcbtn); rub.add(margintop(1)); } if (APoint.indexOf(typecode)!=-1) { PointObject p=(PointObject) O; if ((p.moveablePoint())&&(!p.isPointOn())) { // ptbindbtn.init(); magnetobj.init(); magnetpix.init(); magnetbtn.init(); // rub.add(ptbindbtn); // rub.add(margintop(1)); JEricPanel jp=new JEricPanel(); jp.setLayout(new BoxLayout(jp, BoxLayout.X_AXIS)); jp.setOpaque(false); jp.setAlignmentX(0F); jp.add(magnetbtn); jp.add(margin(15)); JEricPanel rub2=new myRub(); rub2.add(magnetobj); rub2.add(margintop(5)); rub2.add(magnetpix); jp.add(rub2); rub.add(jp); } else if (p instanceof IntersectionObject&&((IntersectionObject) p).isSwitchable()) { ptawaybtn.init(); ptclosebtn.init(); rub.add(ptawaybtn); rub.add(margintop(1)); rub.add(ptclosebtn); } } if (rub.getComponentCount()>1) { JEricPanel myspacer=new JEricPanel(); myspacer.setOpaque(false); // addToNum(myspacer); addToNum(rub); addToNum(margin(3)); } } private void addMultipleAspectIcons() { addAspectIcons(); addPointsGoodies(); } private void addAspectIcons() { JEricPanel rub=new myRub(); rub.add(margintop(2)); redcolor.init(); greencolor.init(); bluecolor.init(); rub.add(redcolor); rub.add(margintop(1)); rub.add(greencolor); rub.add(margintop(1)); rub.add(bluecolor); addToAspect(margin(2)); addToAspect(rub); addToAspect(margin(5)); color.init(); addToAspect(color); addToAspect(new myRubSep()); colortype.setSelect(O.getColorType(true)); addToAspect(colortype); addToAspect(new myRubSep()); show.init(); addToAspect(show); if (O.canDisplayName()) { boldlarge.init(); addToAspect(new myRubSep()); addToAspect(boldlarge); } if ((ASegment.indexOf(typecode))!=-1) { segmentcode.init(); addToAspect(new myRubSep()); addToAspect(segmentcode); } if ((APoint.indexOf(typecode)!=-1)||(AFunction.indexOf(typecode)!=-1)||(ATrack.indexOf(typecode)!=-1)) { type.setSelect(O.getType()); addToAspect(new myRubSep()); addToAspect(type); } else if (AAngle.indexOf(typecode)!=-1) { angle1.setSelect(O.getDisplaySize()); addToAspect(new myRubSep()); addToAspect(angle1); } if (ACircle.indexOf(typecode)!=-1) { circle.init(); addToAspect(new myRubSep()); addToAspect(circle); } else if (ALine.indexOf(typecode)!=-1) { line.init(); addToAspect(new myRubSep()); addToAspect(line); } else if (AAngle.indexOf(typecode)!=-1) { angle0.init(); addToAspect(new myRubSep()); addToAspect(angle0); } else if (AFunction.indexOf(typecode)!=-1) { filled.init(); addToAspect(new myRubSep()); addToAspect(filled); } else if (ATrack.indexOf(typecode)!=-1) { filled.init(); addToAspect(new myRubSep()); addToAspect(filled); } else if (AArea.indexOf(typecode)!=-1) { area.init(); addToAspect(new myRubSep()); addToAspect(area); } JEricPanel myspacer=new JEricPanel(); myspacer.setOpaque(false); rub=new myRub(); rub.add(margintop(2)); czvalue.init(); rub.add(czvalue); if (O.hasUnit()) { rub.add(margintop(1)); unit.init(); rub.add(unit); } if ((AFunction.indexOf(typecode)!=-1)||(ATrack.indexOf(typecode)!=-1)) { rub.add(margintop(1)); fpt.init(); rub.add(fpt); } rub.add(margintop(1)); track.init(); rub.add(track); // if (APoint.indexOf(typecode)!=-1) { // track.init(); // rub.add(track); // } // addToAspect(new myRubSep()); addToAspect(myspacer); addToAspect(rub); addToAspect(margin(3)); } private void addConditionals() { JEricPanel rub=new myRub(); chidden.init(); csuperhidden.init(); csolid.init(); rub.add(margintop(1)); rub.add(chidden); rub.add(margintop(1)); rub.add(csuperhidden); rub.add(margintop(1)); rub.add(csolid); addToConditional(rub); addToConditional(new myRubSep(14)); rub=new myRub(); cnormal.init(); cthick.init(); cthin.init(); rub.add(margintop(1)); rub.add(cnormal); rub.add(margintop(1)); rub.add(cthick); rub.add(margintop(1)); rub.add(cthin); addToConditional(rub); addToConditional(new myRubSep(14)); rub=new myRub(); cshowname.init(); cshowvalue.init(); // cbackground.init(); rub.add(margintop(1)); rub.add(margintop(1)); rub.add(cshowname); rub.add(margintop(1)); rub.add(cshowvalue); // rub.add(cbackground); rub.add(margintop(cshowname.H+1)); addToConditional(rub); addToConditional(new myRubSep(14)); rub=new myRub(); cblack.init(); cgreen.init(); cblue.init(); rub.add(margintop(1)); rub.add(cblack); rub.add(margintop(1)); rub.add(cgreen); rub.add(margintop(1)); rub.add(cblue); addToConditional(rub); addToConditional(new myRubSep(14)); rub=new myRub(); cbrown.init(); ccyan.init(); cred.init(); rub.add(margintop(1)); rub.add(cbrown); rub.add(margintop(1)); rub.add(ccyan); rub.add(margintop(1)); rub.add(cred); addToConditional(rub); } public void addToNum(JComponent cp) { add(cp, 1); } public void addToAspect(JComponent cp) { add(cp, 0); } public void addToConditional(JComponent cp) { add(cp, 2); } // A transférer dans JTabPanel pour éviter les "Overridable method call in construtor" public String Loc(String s) { return Global.Loc("props."+s); } static void fixsize(JComponent cp, int w, int h) { Dimension d=new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } static JEricPanel margin(int w) { JEricPanel mypan=new JEricPanel(); fixsize(mypan, w, 1); mypan.setLayout(new javax.swing.BoxLayout(mypan, javax.swing.BoxLayout.X_AXIS)); mypan.setAlignmentX(0F); mypan.setAlignmentY(0F); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } JEricPanel margintop(int h) { JEricPanel mypan=new JEricPanel(); fixsize(mypan, 1, h); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } private boolean isExpression() { boolean bool=(AExpression.indexOf(typecode)!=-1); return (bool); } private boolean isText() { boolean bool=(AText.indexOf(typecode)!=-1); return (bool); } private boolean isUserFunction() { boolean bool=(AUserFunction.indexOf(typecode)!=-1); return (bool); } private boolean isFunction() { boolean bool=(AFunction.indexOf(typecode)!=-1); return (bool); } private static boolean isNotObjectWithCoords() { boolean bad=(APoint.indexOf(typecode)==-1); //bad&=(ASegment.indexOf(typecode)==-1); bad&=(ASegment.indexOf(typecode)!=14); bad&=(AExpression.indexOf(typecode)==-1); bad&=(AText.indexOf(typecode)==-1); bad&=(AUserFunction.indexOf(typecode)==-1); return (bad); } private boolean isAbsolutePoint() { boolean b=O.fixed(); if (b) { String x=O.getEXpos(), y=O.getEY(); b=b&&x.startsWith("(windoww/(windoww-d(windoww)))*("); b=b&&x.endsWith("-windowcx)+windowcx+d(windowcx)"); b=b&&y.startsWith("(windoww/(windoww-d(windoww)))*("); b=b&&y.endsWith("-windowcy)+windowcy+d(windowcy)"); } return b; } boolean isValidExpression(String myexp) { boolean bool=true; try { Expression exp=new Expression(myexp, O.getConstruction(), O); if (!(exp.isValid())) { bool=false; } } catch (Exception ex) { bool=false; } return bool; } double ValueOf(String myexp) { double rep; try { Expression exp=new Expression(myexp, O.getConstruction(), O); rep=exp.getValue(); } catch (Exception ex) { rep=0.0; } return rep; } // static Construction V_CONST=new Construction(); // static UserFunctionObject V_FONC=new UserFunctionObject(V_CONST); static double VARS[]={1, 2, 3, 4}; // set text : public static String Point_To_Comma(String mynum, Construction C, boolean check) { if (C==null) { return mynum; } if (check) { try { UserFunctionObject V_FONC=new UserFunctionObject(C); V_FONC.setExpressions("x y z t", mynum.replace("invalid", "1")); double d=V_FONC.evaluateF(VARS); } catch (Exception ex) { return mynum; } } if (Global.isDecimalWithComma()) { String s=mynum.replace(",", ";"); return s.replace(".", ","); } else { return mynum; } } // get text : public static String Comma_To_Point(String mynum, Construction C, boolean check) { if (C==null) { return mynum; } String s=mynum.replace(",", "."); s=s.replace(";", ","); if (check) { try { UserFunctionObject V_FONC=new UserFunctionObject(C); V_FONC.setExpressions("x y z t", s.replace("invalid", "1")); double d=V_FONC.evaluateF(VARS); } catch (Exception ex) { return mynum; } } if (Global.isDecimalWithComma()) { return s; } else { return mynum; } } static class MyComboBoxUI extends MetalComboBoxUI { public static ComponentUI createUI(JComponent c) { return new MyComboBoxUI(); } } class myRub extends JEricPanel { public myRub() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setAlignmentX(0F); this.setOpaque(false); } public myRub(String rubname) { this(); } public myRub(int width, int height) { this(""); fixsize(this, width, height); } } class myRubSep extends JEricPanel { @Override public void paintComponent(java.awt.Graphics g) { super.paintComponent(g); ImageIcon myicon=new ImageIcon(getClass().getResource("gui/sep.png")); java.awt.Dimension d=this.getSize(); int x=(d.width+myicon.getIconWidth())/2; g.drawImage(myicon.getImage(), x, 0, myicon.getIconWidth(), d.height, this); } public myRubSep() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setAlignmentX(0f); this.setAlignmentY(0.5f); this.setOpaque(false); fixsize(this, HRubSeparatorWidth, HRubSeparatorHeight); } public myRubSep(int width) { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setAlignmentX(0f); this.setAlignmentY(0.5f); this.setOpaque(false); fixsize(this, width, HRubSeparatorHeight); } } class ContentLine extends JEricPanel { int W, H; public ContentLine() { setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS)); setAlignmentX(0F); setAlignmentY(0F); setFocusable(false); setOpaque(false); } public ContentLine(int width, int height) { this(); W=width; H=height; fixsize(this, width, height); } } class myJLine extends ContentLine { String contextHelp=""; ArrayList carPopupMenuItemAllowed=new ArrayList(); JTextFieldPopup carPopup=null; JButton carBTN=null; JLabel myTXT; myJTextField JTF; JCheckBox JCBX; JButton JBTN; int CW; boolean Cinside; String InitValue=""; // With text field : public myJLine(String comment, String txt, int comwidth, int width, int height) { super(width, height); CW=comwidth; Cinside=((!comment.equals(""))&&(comwidth==0)); //comment must be inside the JTF as an init value if (Cinside) { InitValue=comment; InitValue=InitValue.trim(); InitValue=InitValue.replace(":", ""); InitValue=InitValue.trim(); InitValue="<"+InitValue+">"; } addnewlabel(comment, comwidth, H); JTF=new myJTextField(txt); JTF.setFont(F_TextField); JTF.setForeground(C_TextField); JTF.setBackground(new Color(245, 246, 255)); JTF.setBorder(BorderFactory.createLineBorder(new Color(150, 150, 150), 1)); JTF.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent arg0) { doHelp(); doEnter(); } }); JTF.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { if ((Cinside)&&(JTF.getText().equals(InitValue))) { JTF.setForeground(C_TextField_OFF); } else { JTF.setForeground(C_TextField); } } @Override public void keyReleased(KeyEvent e) { doAction(e.getComponent()); } }); JTF.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { if ((carPopup!=null)&&(carPopup.isVisible())) { return; } if ((Cinside)&&(JTF.getText().equals(InitValue))) { JTF.setText(""); JTF.setForeground(C_TextField); } if (carBTN!=null) { carBTN.setEnabled(true); } JTF.selectAll(); } @Override public void focusLost(FocusEvent e) { if ((carPopup!=null)&&(carPopup.isVisible())) { return; } if ((Cinside)&&(JTF.getText().equals(""))) { JTF.setText(InitValue); JTF.setForeground(C_TextField_OFF); } if (carBTN!=null) { carBTN.setEnabled(false); } doQuitMe(e.getComponent()); } }); this.add(JTF); } public myJLine(String comment, String txt, int comwidth, int width, int height, boolean withhelp) { this(comment, txt, comwidth, width, height); carPopup=new JTextFieldPopup(JTF); carPopup.addPopupMenuListener(new PopupMenuListener() { @Override public void popupMenuWillBecomeVisible(PopupMenuEvent arg0) { } @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent arg0) { doAction(JTF); } @Override public void popupMenuCanceled(PopupMenuEvent arg0) { } }); ImageIcon carimg=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/carbtn.png")); ImageIcon carimg_dis=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/carbtn_dis.png")); carBTN=new JButton(carimg); carBTN.setDisabledIcon(carimg_dis); // carbtn.setRolloverIcon(closeoverimg); carBTN.setBorder(BorderFactory.createEmptyBorder()); carBTN.setOpaque(false); carBTN.setContentAreaFilled(false); carBTN.setFocusable(false); carBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { doShowPopup(e); } }); carBTN.setEnabled(false); fixsize(carBTN, carimg.getIconWidth(), carimg.getIconHeight()); this.add(margin(2)); this.add(carBTN); } // with checkbox : public myJLine(String comment, boolean checked, int width, int height) { super(width, height); this.setFocusable(false); comment=comment.replace(":", ""); comment=comment.trim(); JCBX=new JCheckBox(""); JCBX.setOpaque(false); JCBX.setFocusable(false); JCBX.setFont(F_CheckBox); fixsize(JCBX, W, H); JCBX.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { doAction(e.getComponent()); } }); JCBX.setIcon(new ImageIcon(getClass().getResource("gui/chkboxOFF.png"))); JCBX.setSelectedIcon(new ImageIcon(getClass().getResource("gui/chkboxON.png"))); JCBX.setText(comment); this.add(JCBX); } // with button : public myJLine(String comment, int btnwidth, int width, int height) { super(width, height); JBTN=new JButton(); JBTN.setFont(F_Button); // JBTN.setBorder(BorderFactory.createEtchedBorder()); fixsize(JBTN, btnwidth, H); JBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { doAction(e.getComponent()); } }); JBTN.setText(comment); this.add(JBTN); } // TxtField with caracter palette btn public void addnewlabel(String comment, int w, int h) { myTXT=new JLabel(comment); myTXT.setFocusable(false); myTXT.setFont(F_Label); fixsize(myTXT, w, h); myTXT.setHorizontalAlignment(SwingConstants.LEFT); myTXT.setVerticalAlignment(SwingConstants.CENTER); this.add(myTXT); } public void setLabelTxt(String lbltxt) { myTXT.setText(lbltxt); } public void setSelected(boolean on) { JCBX.setSelected(on); } public boolean isSelected() { return JCBX.isSelected(); } public void setText(String txt) { JTF.setText(Point_To_Comma(txt, Cn, true)); } public String getText() { return Comma_To_Point(JTF.getText(), Cn, true); } public void setEditable(boolean bool) { if (bool) { JTF.setForeground(C_TextField); } else { JTF.setForeground(C_TextField_OFF); } JTF.setFocusable(bool); JTF.setEditable(bool); } public void setInitValue() { if ((Cinside)&&(JTF.getText().equals(""))) { JTF.setText(InitValue); JTF.setForeground(C_TextField_OFF); JTF.setHorizontalAlignment(SwingConstants.CENTER); } else { JTF.setForeground(C_TextField); } } public void doAction(Component cp) { } public void doQuitMe(Component cp) { } public void doEnter() { } public void doShowPopup(MouseEvent e) { if (carBTN.isEnabled()) { carPopup.openMenu(e); } } public void doHelp() { if (!contextHelp.equals("")) { ZF.setinfo(contextHelp, false); } } } class myJName extends myJLine { String old_name; public myJName(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); contextHelp="prop_name"; this.JTF.setHorizontalAlignment(SwingConstants.CENTER); } @Override public void doAction(Component e) { JTextField jtf=(JTextField) e; if (O.getName().equals(jtf.getText())) { return; } old_name=O.getName(); O.setName(jtf.getText()); O.setShowName(true); show.forceSelect(2); // Force the ShowName icon to be selected if (ZC!=null) { ZC.repaint(); ZC.updateTexts(O, ""); ZC.update_distant(old_name, O.getName()); ZC.update_distant(O, 3); } } public void init() { setText(O.getName()); } } class myJAlias extends myJLine { public myJAlias(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_alias"; carPopup.setDisabled(","+JTextFieldPopup.FUNCTIONMENU+","); } @Override public void doAction(Component e) { JTextField jtf=(JTextField) e; if ((O.getAlias()!=null)&&(O.getAlias().equals(jtf.getText()))) { return; } if (jtf.getText().equals("")) { O.setAlias(null); } else { O.setAlias(jtf.getText()); // jtf.setText(O.getAlias()); } O.setShowName(true); show.forceSelect(2); ZC.repaint(); } public void init() { setText(O.getAlias()); setInitValue(); } } class myJRed extends myJLine { public myJRed(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // contextHelp="prop_magnetic"; } @Override public void doAction(Component e) { try { O.setRed(getText()); greencolor.init(); bluecolor.init(); color.init(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } public void init() { setText(O.getRed()); setInitValue(); } @Override public void doQuitMe(Component cp) { redcolor.init(); greencolor.init(); bluecolor.init(); color.init(); } } class myJGreen extends myJLine { public myJGreen(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // contextHelp="prop_magnetic"; } @Override public void doAction(Component e) { try { O.setGreen(getText()); redcolor.init(); bluecolor.init(); color.init(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } public void init() { setText(O.getGreen()); setInitValue(); } @Override public void doQuitMe(Component cp) { redcolor.init(); greencolor.init(); bluecolor.init(); color.init(); } } class myJBlue extends myJLine { public myJBlue(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // contextHelp="prop_magnetic"; } @Override public void doAction(Component e) { try { O.setBlue(getText()); redcolor.init(); greencolor.init(); color.init(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } public void init() { setText(O.getBlue()); setInitValue(); } @Override public void doQuitMe(Component cp) { redcolor.init(); greencolor.init(); bluecolor.init(); color.init(); } } class myJMagnetObj extends myJLine { public myJMagnetObj(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); contextHelp="prop_magnetic"; } @Override public void doEnter() { PointObject P=(PointObject) O; if (P==null) { return; } magnetbtn.setSelected(true); ZC.setMagnetTool(P); } @Override public void doAction(Component e) { JTextField jtf=(JTextField) e; PointObject P=(PointObject) O; P.selectMagnetObjects(false); P.setMagnetObjects(Comma_To_Point(JTF.getText(), Cn, false)); P.selectMagnetObjects(true); ZC.repaint(); } public void init() { PointObject P=(PointObject) O; JTF.setText(Point_To_Comma(P.getMagnetObjectsString(), Cn, false)); setInitValue(); } } class myJMagnetPix extends myJLine { public myJMagnetPix(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); contextHelp="prop_magnetic"; } @Override public void doEnter() { PointObject P=(PointObject) O; if (P==null) { return; } magnetbtn.setSelected(true); ZC.setMagnetTool(P); } @Override public void doAction(Component e) { PointObject P=(PointObject) O; P.setMagnetRayExp(getText()); P.magnet(); ZC.validate(); ZC.repaint(); } public void init() { PointObject P=(PointObject) O; // setText("" + P.getMagnetRayExp()); if (P.getMagnetRayExp().equals("20")) { setText(""); } else { setText(P.getMagnetRayExp()); } setInitValue(); } } class myJUnit extends myJLine { public myJUnit(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_unit"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (O.hasUnit()) { JTextField jtf=(JTextField) e; if (O.getUnit().equals(jtf.getText())) { return; } if (MultipleObjects!=null) { multiple_setUnit(jtf.getText()); } O.setUnit(jtf.getText()); O.setShowValue(true); show.forceSelect(1); ZC.repaint(); } } public void init() { setText(O.getUnit()); setInitValue(); } } class myJX extends myJLine { String origin=""; String current=""; public myJX(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_coordinates"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // fixsize(this.JTF,this.JTF.getSize().width-18,this.JTF.getSize().height); // fixsize(this,this.getSize().width-30,this.getSize().height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } if (XYlink.isSelected()) { String myX=X.getText(); myX=myX.replace("x(", "y("); Y.setText(myX); } O.setFixed(X.getText(), Y.getText()); Fx.setSelected(true); current=getText(); O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); if (XYlink.isSelected()) { Y.setText(Y.origin); } Fx.setSelected(true); O.setFixed(X.getText(), Y.getText()); O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); if (XYlink.isSelected()) { Y.origin=Y.getText(); } } } public void init() { boolean fixed = (O instanceof VectorObject || O.fixed()) && O.fixedCoord(); if (fixed) { if (isAbsolutePoint()) { current=Loc("fixedinwindow"); } else { current=(isValidExpression(O.getEXpos()))?O.getEXpos():"????"; } } else { if(ASegment.indexOf(typecode)==14){ VectorObject v = (VectorObject) O; current=String.valueOf(v.getDeltaX()); } else { current=String.valueOf(O.getX()); } } setText(current); origin=current; } } class myJY extends myJLine { String origin=""; String current=""; public myJY(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_coordinates"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // fixsize(this.JTF,this.JTF.getSize().width-18,this.JTF.getSize().height); // fixsize(this,this.getSize().width-30,this.getSize().height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } O.setFixed(X.getText(), Y.getText()); Fx.setSelected(true); current=getText(); O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); O.setFixed(X.getText(), Y.getText()); Fx.setSelected(true); O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { boolean fixed = (O instanceof VectorObject || O.fixed()) && O.fixedCoord(); if (fixed) { if (isAbsolutePoint()) { current=Loc("fixedinwindow"); } else { current=(isValidExpression(O.getEYpos()))?O.getEYpos():"????"; } } else { if(ASegment.indexOf(typecode)==14){ VectorObject v = (VectorObject) O; current=String.valueOf(v.getDeltaY()); } else { current=String.valueOf(O.getY()); } } setText(current); origin=current; } } class myJX3D extends myJLine { String origin=""; String current=""; public myJX3D(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_coordinates"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // fixsize(this.JTF,this.JTF.getSize().width-18,this.JTF.getSize().height); // fixsize(this,this.getSize().width-30,this.getSize().height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } if (XYZlink.isSelected()) { String myX3D=X3D.getText(); String myY3D, myZ3D; myY3D=myX3D.replace("x3D(", "y3D("); myZ3D=myX3D.replace("x3D(", "z3D("); Y3D.setText(myY3D); Z3D.setText(myZ3D); } Fx3D.setSelected(true); O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); current=getText(); // Fx3D.init(); //O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); if (XYZlink.isSelected()) { Y3D.setText(Y3D.origin); Z3D.setText(Z3D.origin); } O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); //O.move(O.getX(), O.getY()); Fx3D.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); if (XYZlink.isSelected()) { Y3D.origin=Y.getText(); Z3D.origin=Z3D.getText(); } } } public void init() { boolean fixed3D = (O instanceof VectorObject || O.fixed3D()) && O.fixedCoord3D(); if (fixed3D) { if (isAbsolutePoint()) { current=Loc("fixedinwindow"); } else { current=(isValidExpression(O.getEX3Dpos()))?O.getEX3Dpos():"????"; } } else { if(ASegment.indexOf(typecode)==14){ VectorObject v = (VectorObject) O; current=String.valueOf(v.getDeltaX3D()); } else { current=String.valueOf(O.getX3D()); } } setText(current); origin=current; } } class myJY3D extends myJLine { String origin=""; String current=""; public myJY3D(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_coordinates"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // fixsize(this.JTF,this.JTF.getSize().width-18,this.JTF.getSize().height); // fixsize(this,this.getSize().width-30,this.getSize().height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } Fx3D.setSelected(true); O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); current=getText(); //Fx3D.init(); //O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); if (XYZlink.isSelected()) { X3D.setText(X3D.origin); Z3D.setText(Z3D.origin); } O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); //O.move(O.getX(), O.getY()); Fx3D.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { boolean fixed3D = (O instanceof VectorObject || O.fixed3D()) && O.fixedCoord3D(); if (fixed3D) { if (isAbsolutePoint()) { current=Loc("fixedinwindow"); } else { current=(isValidExpression(O.getEY3Dpos()))?O.getEY3Dpos():"????"; } } else { if(ASegment.indexOf(typecode)==14){ VectorObject v = (VectorObject) O; current=String.valueOf(v.getDeltaY3D()); } else { current=String.valueOf(O.getY3D()); } } setText(current); origin=current; } } class myJZ3D extends myJLine { String origin=""; String current=""; public myJZ3D(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_coordinates"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); // fixsize(this.JTF,this.JTF.getSize().width-18,this.JTF.getSize().height); // fixsize(this,this.getSize().width-30,this.getSize().height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } Fx3D.setSelected(true); O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); current=getText(); //Fx3D.init(); //O.move(O.getX(), O.getY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); if (XYZlink.isSelected()) { Y3D.setText(Y3D.origin); X3D.setText(X3D.origin); } O.setFixed(X3D.getText(), Y3D.getText(), Z3D.getText()); //O.setFixed("x(O)+("+X3D.getText()+")*(x(X)-x(O))+("+Y3D.getText()+")*(x(Y)-x(O))+("+Z3D.getText()+")*(x(Z)-x(O))", "y(O)+("+X3D.getText()+")*(y(X)-y(O))+("+Y3D.getText()+")*(y(Y)-y(O))+("+Z3D.getText()+")*(y(Z)-y(O))"); //O.move(O.getX(), O.getY()); Fx3D.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { boolean fixed3D = (O instanceof VectorObject || O.fixed3D()) && O.fixedCoord3D(); if (fixed3D) { if (isAbsolutePoint()) { current=Loc("fixedinwindow"); } else { current=(isValidExpression(O.getEZ3Dpos()))?O.getEZ3Dpos():"????"; } } else { if(ASegment.indexOf(typecode)==14){ VectorObject v = (VectorObject) O; current=String.valueOf(v.getDeltaZ3D()); } else { current=String.valueOf(O.getZ3D()); } } setText(current); origin=current; } } class myJR extends myJLine { String origin=""; String current=""; public myJR(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_length"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } try { O.setFixed(true, getText()); O.setFixed(getText()); O.setDragable(false); RFx.setSelected(true); current=getText(); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } try { O.setFixed(true, origin); setText(origin); RFx.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { current=O.getStringLength(); setText(current); origin=current; } } class myJR3D extends myJLine { String origin=""; String current=""; public myJR3D(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_length"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } try { O.setFixed3D(true, getText()); O.setFixed(getText()); O.setDragable(false); RFx3D.setSelected(false); current=getText(); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } try { O.setFixed3D(true, origin); setText(origin); RFx3D.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { current=((SegmentObject)O).getStringLength3D(); setText(current); origin=current; setEditable(false); } } class myJA extends myJLine { String origin=""; String current=""; public myJA(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_angle"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } try { O.setFixed(getText()); O.setDragable(false); aFx.setSelected(true); current=getText(); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } try { O.setFixed(origin); setText(origin); aFx.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); } catch (Exception ex) { } this.JTF.requestFocus(); } else { origin=getText(); } } public void init() { current=O.getE(); setText(current); origin=current; } } class myJRFx extends myJLine { public myJRFx(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); JCBX.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { if(ASegment.indexOf(typecode)!=-1) { setObject(O, false, false); } } }); } @Override public void doAction(Component e) { if (isSelected()) { try { String val=String.valueOf(ValueOf(O.getStringLength())); ray.setText(val); O.setDragable(true); O.setFixed(false, val); O.setFixed(false); } catch (Exception ex) { } } else { try { String val=String.valueOf(ValueOf(O.getStringLength())); ray.setText(val); O.setDragable(false); O.setFixed(true, val); O.setFixed(true); if(ASegment.indexOf(typecode)==14 && O.fixedCoord()){ O.setFixed(false); } } catch (Exception ex) { } } } public void init() { setSelected((!(O.isDragable()))&&(O.fixed())); } } class myJRFx3D extends myJLine { public myJRFx3D(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); JCBX.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { if(ASegment.indexOf(typecode)!=-1) { setObject(O, false, false); } } }); } @Override public void doAction(Component e) { if (isSelected()) { try { String val=String.valueOf(ValueOf(O.getStringLength3D())); O.setFixed3D(false, val); O.setFixed3D(false); ray3D.setText(val); O.setDragable(true); } catch (Exception ex) { } } else { try { String val=String.valueOf(ValueOf(O.getStringLength3D())); ray3D.setText(val); O.setDragable(false); O.setFixed3D(true, val); O.setFixed3D(true); if(ASegment.indexOf(typecode)==14 && O.fixedCoord3D()){ O.setFixed3D(false); } } catch (Exception ex) { } } } public void init() { setSelected((!(O.isDragable()))&&(O.fixed3D())); } } class myJAFx extends myJLine { public myJAFx(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { if (isSelected()) { try { String val=String.valueOf(ValueOf(O.getE())); angle.setText(val); O.setDragable(true); O.setFixed(false); } catch (Exception ex) { } } else { try { String val=String.valueOf(ValueOf(O.getE())); angle.setText(val); O.setDragable(false); O.setFixed(val); } catch (Exception ex) { } } } public void init() { setSelected((!(O.isDragable()))&&(O.fixed())); } } class myJAbsolutePos extends myJLine { public myJAbsolutePos(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { if (isSelected()) { O.setFixed(false); X.setText(String.valueOf(O.getX())); Y.setText(String.valueOf(O.getY())); X.setEditable(true); Y.setEditable(true); Fx.setSelected(false); Fx.JCBX.setEnabled(true); } else { String x="(windoww/(windoww-d(windoww)))*(x("+O.getName()+")-windowcx)+windowcx+d(windowcx)"; String y="(windoww/(windoww-d(windoww)))*(y("+O.getName()+")-windowcy)+windowcy+d(windowcy)"; O.setFixed(x, y); X.setEditable(false); Y.setEditable(false); X.setText(Loc("fixedinwindow")); Y.setText(Loc("fixedinwindow")); Fx.setSelected(true); Fx.JCBX.setEnabled(false); ZC.recompute(); ZC.validate(); ZC.repaint(); } } public void init() { boolean b=isAbsolutePoint(); setSelected(b); if (b) { X.setEditable(false); Y.setEditable(false); Fx.JCBX.setEnabled(false); } } } class myXYlink extends JEricPanel { int H, W; JButton btn; // ImageIcon myimage; public myXYlink() { this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setOpaque(false); btn=new JButton(); ImageIcon imgOFF=new ImageIcon(getClass().getResource("/eric/GUI/icons/palette/chaineOFF.png")); btn.setIcon(imgOFF); btn.setSelectedIcon(new ImageIcon(getClass().getResource("/eric/GUI/icons/palette/chaine.png"))); btn.setSelected(true); btn.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(java.awt.event.MouseEvent evt) { btn.setSelected(!btn.isSelected()); } }); btn.setOpaque(false); btn.setContentAreaFilled(false); btn.setFocusable(false); W=imgOFF.getIconWidth(); H=imgOFF.getIconHeight(); fixsize(btn, W, H); btn.setBorder(BorderFactory.createEmptyBorder()); this.add(btn); } public boolean isSelected() { return btn.isSelected(); } } class myXYZlink extends JEricPanel { int H, W; JButton btn; // ImageIcon myimage; public myXYZlink() { this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setOpaque(false); btn=new JButton(); ImageIcon imgOFF=new ImageIcon(getClass().getResource("/eric/GUI/icons/palette/chaineOFF.png")); btn.setIcon(imgOFF); btn.setSelectedIcon(new ImageIcon(getClass().getResource("/eric/GUI/icons/palette/chaine.png"))); btn.setSelected(true); btn.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(java.awt.event.MouseEvent evt) { btn.setSelected(!btn.isSelected()); } }); btn.setOpaque(false); btn.setContentAreaFilled(false); btn.setFocusable(false); W=imgOFF.getIconWidth(); H=imgOFF.getIconHeight(); fixsize(btn, W, H); btn.setBorder(BorderFactory.createEmptyBorder()); this.add(btn); } public boolean isSelected() { return btn.isSelected(); } } class myJGrid extends myJLine { String origin=""; String current=""; public myJGrid(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); contextHelp="prop_grid"; carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); if (isValidExpression(current)) { O.setIncrement(ValueOf(current)); } ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); current=origin; setText(current); O.setIncrement(ValueOf(current)); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); setText(String.valueOf(ValueOf(origin))); } } public void init() { current=String.valueOf(O.getIncrement()); setText(current); origin=current; } } class myJFx extends myJLine { public myJFx(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); JCBX.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { setObject(O, false, false); } }); } @Override public void doAction(Component e) { if (isSelected()) { O.setFixed(false); if(ASegment.indexOf(typecode)==14){ VectorObject o = (VectorObject) O; X.setText(String.valueOf(o.getDeltaX())); Y.setText(String.valueOf(o.getDeltaY())); } else { X.setText(String.valueOf(O.getX())); Y.setText(String.valueOf(O.getY())); } } else { if(ASegment.indexOf(typecode)==14){ VectorObject o = (VectorObject) O; O.setFixed(String.valueOf(o.getDeltaX()), String.valueOf(o.getDeltaY())); if(o.fixed()){ try{ o.setFixed(false, O.getStringLength()); } catch (Exception ee){} //RFx.init(); } } else { O.setFixed(String.valueOf(O.getX()), String.valueOf(O.getY())); } } } public void init() { JCBX.setEnabled(true); boolean fixed = (O instanceof VectorObject || O.fixed()) && O.fixedCoord(); setSelected(fixed); } } class myJFx3D extends myJLine { public myJFx3D(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); JCBX.addMouseListener(new MouseAdapter() { @Override public void mouseReleased(MouseEvent e) { setObject(O, false, false); } }); } @Override public void doAction(Component e) { if (isSelected()) { if (O instanceof PointObject) ((PointObject) O).setFixed3D(false); if(ASegment.indexOf(typecode)==14){ VectorObject o = (VectorObject) O; X3D.setText(String.valueOf(o.getDeltaX3D())); Y3D.setText(String.valueOf(o.getDeltaY3D())); Z3D.setText(String.valueOf(o.getDeltaZ3D())); } else { X3D.setText(String.valueOf(((PointObject)O).getX3D())); Y3D.setText(String.valueOf(((PointObject)O).getY3D())); Z3D.setText(String.valueOf(((PointObject)O).getZ3D())); } } else { if(ASegment.indexOf(typecode)==14){ VectorObject o = (VectorObject) O; ((VectorObject)O).setFixed(String.valueOf(o.getDeltaX3D()), String.valueOf(o.getDeltaY3D()), String.valueOf(o.getDeltaZ3D())); } else { ((PointObject) O).setFixed(String.valueOf(((PointObject)O).getX3D()), String.valueOf(((PointObject)O).getY3D()),String.valueOf(((PointObject)O).getZ3D())); setSelected(true); } } } public void init() { JCBX.setEnabled(true); boolean fixed = (O instanceof VectorObject || (O instanceof PointObject&&((PointObject)O).fixed3D())) && O.fixedCoord3D(); setSelected(fixed); } } class myTRK extends myJLine { public myTRK(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { if (isSelected()) { if (MultipleObjects!=null) { multiple_setTracked(false); } O.setTracked(false); } else { if (MultipleObjects!=null) { multiple_setTracked(true); } O.setTracked(true); } ZC.update_distant(O, 3); } public void init() { JCBX.setEnabled(true); setSelected(O.tracked()); } } class myJInside extends myJLine { public myJInside(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { O.setInside(!isSelected()); ZC.recompute(); ZC.validate(); ZC.repaint(); } public void init() { setSelected(O.isInside()); } } class myJTextArea extends ContentLine { JButton carBTN=null; JTextArea JTX; public myJTextArea(String mytxt, int width, int height) { super(width, height); this.setFocusable(false); this.add(margin(5)); JTX=new JTextArea(mytxt); JTX.setFont(F_TextArea); JTX.setBackground(new Color(245, 246, 255)); // JTX.setBorder(BorderFactory.createEtchedBorder()); JTX.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { doAction(e.getComponent()); } }); JTX.addFocusListener(new FocusAdapter() { @Override public void focusGained(FocusEvent e) { // JTX.selectAll(); carBTN.setEnabled(true); } @Override public void focusLost(FocusEvent e) { carBTN.setEnabled(false); doQuitMe(e.getComponent()); } }); JTX.setLineWrap(true); // JScrollPane jstxt=new JScrollPane(JTX); jstxt.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jstxt.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); // jstxt.setViewportView(JTX); // fixsize(jstxt,PW-11,h); this.add(jstxt); ImageIcon carimg=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/carbtn.png")); ImageIcon carimg_dis=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/carbtn_dis.png")); carBTN=new JButton(carimg); carBTN.setDisabledIcon(carimg_dis); // carbtn.setRolloverIcon(closeoverimg); carBTN.setBorder(BorderFactory.createEmptyBorder()); carBTN.setOpaque(false); carBTN.setContentAreaFilled(false); carBTN.setFocusable(false); carBTN.addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { doShowPopup(e); } }); carBTN.setEnabled(false); this.add(margin(2)); this.add(carBTN); } public void doShowPopup(MouseEvent e) { if (carBTN.isEnabled()) { JTextFieldPopup mypop=new JTextFieldPopup(JTX); mypop.addPopupMenuListener(new PopupMenuListener() { @Override public void popupMenuWillBecomeVisible(PopupMenuEvent arg0) { } @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent arg0) { doAction(JTX); } @Override public void popupMenuCanceled(PopupMenuEvent arg0) { } }); mypop.openMenu(e); } } public void setText(String txt) { JTX.setText(txt); } public String getText() { return JTX.getText(); } public void doAction(Component cp) { if (O.getText().equals(getText())) { return; } O.setLines(getText()); O.setText(getText(), true); // setText(O.getText()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(O, 3); } public void doQuitMe(Component cp) { } public void init() { setText(O.getLines()); } ; } class myJExpression extends myJLine { String origin=""; public myJExpression(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } public void init() { origin=O.getExpression(); if (O.isSlider()) { setText(""); } else { setText(origin); } } @Override public void doAction(Component e) { if (getText().equals("")) { O.setSlider(min.getText(), max.getText()); slider.setSelected(true); try { O.setExpression(min.getText(), O.getConstruction()); } catch (Exception ex) { } } else { try { O.setExpression(getText(), O.getConstruction()); O.setSlider(false); slider.setSelected(false); } catch (Exception ex) { } } ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (getText().equals("")) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); try { O.setExpression(origin, O.getConstruction()); } catch (ConstructionException ex) { } this.JTF.requestFocus(); } else { origin=getText(); try { O.setExpression(origin, O.getConstruction()); O.setSlider(false); slider.setSelected(false); } catch (ConstructionException ex) { } } ZC.recompute(); ZC.validate(); ZC.repaint(); } } class myJPrompt extends myJLine { public myJPrompt(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.FUNCTIONMENU+","); } @Override public void doAction(Component e) { if ((O.getPrompt()!=null)&&(O.getPrompt().equals(getText()))) { return; } O.setPrompt(getText()); O.setShowName(true); show.forceSelect(2); ZC.repaint(); } public void init() { setText(O.getPrompt()); } } class myJSMin extends myJLine { String origin=""; String current=""; public myJSMin(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } O.setSlider(getText(), max.getText()); slider.setSelected(true); current=getText(); Exp.setText(""); if (isValidExpression(current)) { try { O.setExpression(current, O.getConstruction()); } catch (ConstructionException ex) { } } ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); O.setSlider(getText(), max.getText()); try { O.setExpression(origin, O.getConstruction()); } catch (ConstructionException ex) { } // slider.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); current=origin; if (ValueOf(current)>=ValueOf(max.getText())) { String goodmax=String.valueOf(ValueOf(getText())+10); max.setText(goodmax); if (O.isSlider()) { O.setSlider(getText(), goodmax); try { O.setExpression(current, O.getConstruction()); } catch (ConstructionException ex) { } ZC.recompute(); ZC.validate(); ZC.repaint(); } } } } public void init() { if (O.isSlider()) { setText(O.getMin()); } else { setText("-5"); } origin=getText(); } } class myJSMax extends myJLine { String origin=""; String current=""; public myJSMax(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } O.setSlider(min.getText(), getText()); slider.setSelected(true); current=getText(); Exp.setText(""); if (isValidExpression(current)) { try { O.setExpression(min.getText(), O.getConstruction()); } catch (ConstructionException ex) { } } ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); O.setSlider(min.getText(), getText()); slider.setSelected(true); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); current=origin; if (ValueOf(current)<=ValueOf(min.getText())) { String goodmin=String.valueOf(ValueOf(getText())-10); O.setSlider(goodmin, getText()); min.setText(goodmin); try { O.setExpression(goodmin, O.getConstruction()); } catch (ConstructionException ex) { } ZC.recompute(); ZC.validate(); ZC.repaint(); } } } public void init() { if (O.isSlider()) { setText(O.getMax()); } else { setText("5"); } origin=getText(); } } class myJSSlider extends myJLine { public myJSSlider(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { if (isSelected()) { O.setSlider(false); Exp.setText(Exp.origin); try { O.setExpression(Exp.origin, O.getConstruction()); } catch (ConstructionException ex) { } Exp.JTF.selectAll(); Exp.JTF.requestFocus(); } else { Exp.setText(""); O.setSlider(min.getText(), max.getText()); try { O.setExpression(min.getText(), O.getConstruction()); } catch (ConstructionException ex) { } min.JTF.selectAll(); min.JTF.requestFocus(); } ZC.recompute(); ZC.validate(); ZC.repaint(); } public void init() { setSelected(O.isSlider()); } } class myJUserFunction extends myRub { JComboBox JCB; ContentLine comboline; UserFunctionObject f; boolean doaction=true; public myJUserFunction(String comment, String txt, int comwidth, int linewidth, int lineheight) { super("user fonction"); comboline=new ContentLine(linewidth, lineheight); comboline.setFocusable(false); addnewlabel(comment, comwidth, lineheight); JCB=new JComboBox(); JCB.setUI((ComboBoxUI) MyComboBoxUI.createUI(JCB)); JCB.setFont(F_ComboBox); JCB.addItem("x"); JCB.addItem("x y"); JCB.addItem("x y z"); JCB.addItem("x y z t"); JCB.setMaximumRowCount(5); JCB.setOpaque(false); JCB.setFocusable(false); JCB.setEditable(false); fixsize(JCB, linewidth-comwidth, lineheight); JCB.addItemListener(new ItemAdapter()); comboline.add(JCB); } class ItemAdapter implements ItemListener { @Override public void itemStateChanged(ItemEvent evt) { if (evt.getStateChange()==ItemEvent.SELECTED) { if (doaction) { String menuitem=(String) evt.getItem(); doAction(menuitem); } } } } public void addnewlabel(String comment, int w, int h) { JLabel myTXT=new JLabel(comment); myTXT.setFocusable(false); myTXT.setFont(F_Label); fixsize(myTXT, w, h); comboline.add(myTXT); } public void doAction(Object item) { fuey.setVar((String) item); fuey.JTF.requestFocus(); ZC.recompute(); ZC.validate(); ZC.repaint(); this.validate(); } public void init() { f=(UserFunctionObject) O; this.removeAll(); this.add(margintop(2)); fuey.init(); this.add(fuey); this.add(margintop(fuey.H+1)); this.add(comboline); this.revalidate(); JCB.setSelectedItem(f.getVar()); doaction=true; } } class myJEqXY extends myJLine { String origin=""; String current="0"; EquationXYObject f; public myJEqXY(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); remove(carBTN); addnewlabel(" = 0", 35, H); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); add(carBTN); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } setEquation(getText()); } public void setEquation(String cf) { current=cf; f=(EquationXYObject) O; f.setEquation(cf, ZC); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.reloadCD(); f.compute(); // } } @Override public void doQuitMe(Component e) { if (O==null) { return; } origin=getText(); } public void init() { f=(EquationXYObject) O; current=f.getEY(); setText(current); origin=current; } } class myJUserF_Y extends myJLine { String origin=""; String current="0"; String currentvars="x"; UserFunctionObject f; public myJUserF_Y(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } setExpression(currentvars, getText()); } public void setExpression(String v, String cf) { // if (isValidExpression(cf)){ currentvars=v; current=cf; f=(UserFunctionObject) O; f.setExpressions(currentvars, current); myTXT.setText("f("+currentvars.replaceAll(" ", ",")+")="); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.reloadCD(); // } } public void setVar(String v) { setExpression(v, current); } @Override public void doQuitMe(Component e) { if (O==null) { return; } origin=getText(); } public void init() { f=(UserFunctionObject) O; current=f.getEY(); currentvars=f.getVar(); setText(current); origin=current; } } // Tells if the function or track must be plot // with points only or segments : class myJF_pt extends myJLine { public myJF_pt(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { O.setSpecial((!isSelected())); ZC.recompute(); ZC.validate(); ZC.repaint(); } public void init() { setSelected(O.isSpecial()); } } class myJF_Discrete extends myJLine { TrackObject t; public myJF_Discrete(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { t.setDiscrete((!isSelected())); ZC.recompute(); ZC.validate(); ZC.repaint(); } public void init() { t=(TrackObject) O; setSelected(t.isDiscrete()); } } class myJF_d extends myJLine { String origin=""; String current=""; FunctionObject f; public myJF_d(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); if (current.equals("")) { current="0"; } // if (isValidExpression(current)){ f.setRange(f.VarMin.toString(), f.VarMax.toString(), current); ZC.recompute(); ZC.validate(); ZC.repaint(); // } } @Override public void doQuitMe(Component e) { // origin=getText(); if (O==null) { return; } if (!(isValidExpression(current))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); current=origin; f.setRange(f.VarMin.toString(), f.VarMax.toString(), current); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=current; } } public void init() { f=(FunctionObject) O; current=f.DVar.toString(); if (current.equals("0")) { setText(""); } else { setText(current); } origin=current; } } class myJF_DMin extends myJLine { String origin=""; String current=""; TrackObject t; public myJF_DMin(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); if (isValidExpression(current)) { t.setDMin(ValueOf(current)); } ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(getText()))) { JOptionPane.showMessageDialog(null, Loc("error")); current=origin; setText(current); t.setDMin(ValueOf(current)); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=getText(); setText(String.valueOf(ValueOf(origin))); } } public void init() { t=(TrackObject) O; current=String.valueOf(t.getDMin()); setText(current); origin=current; } } class myJF_Min extends myJLine { String origin=""; String current=""; FunctionObject f; public myJF_Min(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); if (current.equals("")) { current="windowcx-windoww"; } f.setRange(current, f.VarMax.toString(), f.DVar.toString()); ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(current))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); current=origin; f.setRange(current, f.VarMax.toString(), f.DVar.toString()); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=current; } } public void init() { f=(FunctionObject) O; current=f.VarMin.toString(); if (current.equals("windowcx-windoww")) { setText(""); } else { setText(current); } origin=current; } } class myJF_Max extends myJLine { String origin=""; String current=""; FunctionObject f; public myJF_Max(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); if (current.equals("")) { current="windowcx+windoww"; } f.setRange(f.VarMin.toString(), current, f.DVar.toString()); ZC.recompute(); ZC.validate(); ZC.repaint(); } @Override public void doQuitMe(Component e) { if (O==null) { return; } if (!(isValidExpression(current))) { JOptionPane.showMessageDialog(null, Loc("error")); if (!(isValidExpression(origin))) { origin="0"; } setText(origin); current=origin; f.setRange(f.VarMin.toString(), current, f.DVar.toString()); ZC.recompute(); ZC.validate(); ZC.repaint(); this.JTF.requestFocus(); } else { origin=current; } } public void init() { f=(FunctionObject) O; current=f.VarMax.toString(); if (current.equals("windowcx+windoww")) { setText(""); } else { setText(current); } origin=current; } } class myJF_X extends myJLine { String origin=""; String current=""; FunctionObject f; public myJF_X(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); // if (isValidExpression(current)){ f.setExpressions(f.Var[0], current, f.getEY()); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(f, 3); // } } @Override public void doQuitMe(Component e) { if (O==null) { return; } origin=getText(); // if (!(isValidExpression(getText()))) { // JOptionPane.showMessageDialog(null, Loc("error")); // if (!(isValidExpression(origin))) origin="0"; // setText(origin); // current=origin; // this.JTF.requestFocus(); // }else{ // origin=getText(); // } } public void init() { f=(FunctionObject) O; current=f.getEX(); setText(current); origin=current; } } class myJF_Y extends myJLine { String origin=""; String current=""; FunctionObject f; public myJF_Y(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height, true); carPopup.setDisabled(","+JTextFieldPopup.LATEXMENU+","); } @Override public void doAction(Component e) { if (current.equals(getText())) { return; } current=getText(); // if (isValidExpression(current)){ f.setExpressions(f.Var[0], f.getEX(), current); ZC.recompute(); ZC.validate(); ZC.repaint(); ZC.update_distant(f, 3); // } } @Override public void doQuitMe(Component e) { if (O==null) { return; } origin=getText(); // if (!(isValidExpression(getText()))) { // JOptionPane.showMessageDialog(null, Loc("error")); // if (!(isValidExpression(origin))) origin="0"; // setText(origin); // current=origin; // this.JTF.requestFocus(); // }else{ // origin=getText(); // } } public void init() { f=(FunctionObject) O; current=f.getEY(); setText(current); if (func.cartesian) { this.setLabelTxt("f(x)="); } else { this.setLabelTxt("y(t)="); } origin=current; } } class myJFunction extends myRub { myJFunctionselector myJsel; myJFunction ME; FunctionObject f; public boolean cartesian; boolean doaction=true; public myJFunction(String comment, String txt, int comwidth, int linewidth, int lineheight) { super("fonction"); myJsel=new myJFunctionselector(Loc("parametric"), true, linewidth, lineheight); ME=this; } public void init() { f=(FunctionObject) O; cartesian=(f.Var[0].equals(f.getEX())); this.removeAll(); this.add(margintop(2)); doaction=false; // f.setRange("-5","5","0.1"); if (cartesian) { fey.init(); this.add(fey); myJsel.setSelected(false); this.add(margintop(fex.H+2)); } else { fex.init(); fey.init(); this.add(fex); this.add(margintop(1)); this.add(fey); this.add(margintop(1)); myJsel.setSelected(true); } this.add(myJsel); this.revalidate(); this.repaint(); doaction=true; } class myJFunctionselector extends myJLine { public myJFunctionselector(String comment, boolean bool, int width, int height) { super(comment, bool, width, height); } @Override public void doAction(Component e) { ME.removeAll(); ME.add(margintop(2)); cartesian=isSelected(); if (cartesian) { f.setRange("windowcx-windoww", "windowcx+windoww", "0"); f.setExpressions("x", "", "0"); fmin.init(); fmax.init(); fd.init(); fey.init(); ME.add(fey); fey.JTF.requestFocus(); ME.add(margintop(fex.H+2)); } else { f.setRange("-pi", "pi", "0"); f.setExpressions("t", "rsin(t)", "rcos(t)"); fmin.init(); fmax.init(); fd.init(); fex.init(); fey.init(); ME.add(fex); ME.add(margintop(1)); ME.add(fey); ME.add(margintop(1)); fex.JTF.requestFocus(); } ME.add(this); ZC.recompute(); ZC.validate(); ZC.repaint(); ME.revalidate(); ME.repaint(); } } } class myBtn extends JButton { int H, W; public myBtn(String label, int width, int height) { H=height; W=width; this.setText(label); this.setFont(F_Button); fixsize(this, width, height); this.setFocusable(false); this.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent evt) { doClick(); } }); } @Override public void doClick() { } } class myMagnetBtn extends myBtn { public myMagnetBtn(int width, int height) { super("", width, height); ImageIcon img=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/aimant.png")); ImageIcon selimg=new ImageIcon(getClass().getResource("/eric/GUI/icons/bar/aimantON.png")); setIcon(img); setSelectedIcon(selimg); setBorder(BorderFactory.createEtchedBorder()); this.setFocusable(true); } public void init() { // PointObject p = (PointObject) O; // if (p.isPointOn()) { // this.setText(Loc("release")); // } else { // this.setText(Loc("bind")); // } setSelected(false); } @Override public void doClick() { if (!isSelected()) { ZC.setMagnetTool((PointObject) O); setSelected(true); } else { setSelected(false); ZC.reset(); } } } class myArcBtn extends myBtn { public myArcBtn(int width, int height) { super("", width, height); } public void init() { PrimitiveCircleObject o=(PrimitiveCircleObject) O; if (o.hasRange()) { this.setText(Loc("killarc")); } else { this.setText(Loc("arc")); } } @Override public void doClick() { PrimitiveCircleObject o=(PrimitiveCircleObject) O; if (o.hasRange()) { o.clearRange(); this.setText(Loc("arc")); } else { ZC.range(o); this.setText(Loc("killarc")); } ZC.validate(); ZC.repaint(); } } class myPtBindBtn extends myBtn { public myPtBindBtn(int width, int height) { super("", width, height); } public void init() { PointObject p=(PointObject) O; if (p.isPointOn()) { this.setText(Loc("release")); } else { this.setText(Loc("bind")); } } @Override public void doClick() { PointObject p=(PointObject) O; if (p.isPointOn()) { p.setBound(""); O.getConstruction().updateCircleDep(); this.setText(Loc("bind")); setObject(O, false, false); } else { ZC.bind(p); this.setText(Loc("release")); } ZC.validate(); ZC.repaint(); } } class myPtAwayBtn extends myJLine { public myPtAwayBtn(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); JTF.setHorizontalAlignment(JTextField.CENTER); } public void clear(){ if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if ((P.getAway()!=null)&&(P.stayAway())) { P.setAway(""); ZC.validate(); ZC.repaint(); } } JTF.setText(""); } @Override public void doEnter() { ptclosebtn.clear(); ZC.setAway((IntersectionObject) O, true); O.setStrongSelected(true); if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if (P.getAway()!=null) { P.getAway().setSelected(true); } } } public void init() { if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if ((P.getAway()!=null)&&(P.stayAway())) { JTF.setText(P.getAway().getName()); } else { JTF.setText(""); } } else { JTF.setText(""); } setInitValue(); } @Override public void doAction(Component e) { ZC.clearSelected(); O.setStrongSelected(true); if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; P.setAway(JTF.getText()); if (P.getAway()!=null) { P.getAway().setSelected(true); } } ZC.validate(); ZC.repaint(); } } class myPtCloseBtn extends myJLine { public myPtCloseBtn(String comment, String txt, int comwidth, int width, int height) { super(comment, txt, comwidth, width, height); JTF.setHorizontalAlignment(JTextField.CENTER); } public void clear(){ if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if ((P.getAway()!=null)&&(!P.stayAway())) { P.setAway(""); ZC.validate(); ZC.repaint(); } } JTF.setText(""); } @Override public void doEnter() { ptawaybtn.clear(); ZC.setAway((IntersectionObject) O, false); O.setStrongSelected(true); if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if (P.getAway()!=null) { P.getAway().setSelected(true); } } } public void init() { if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; if ((P.getAway()!=null)&&(!P.stayAway())) { JTF.setText(P.getAway().getName()); } else { JTF.setText(""); } } else { JTF.setText(""); } setInitValue(); } @Override public void doAction(Component e) { ZC.clearSelected(); O.setStrongSelected(true); if (O instanceof IntersectionObject) { IntersectionObject P=(IntersectionObject) O; P.setAway(JTF.getText(),false); if (P.getAway()!=null) { P.getAway().setSelected(true); } } ZC.validate(); ZC.repaint(); } } class myJIcon extends JButton implements MouseListener { String name; Vector V;// contain 1 elt-> togglebutton , contain more elts-> group member public int code;// boolean isSelected; // icon state boolean isGrouped; boolean isEntered=false; // Mouseover ? private ImageIcon myimage; int iconsize; @Override public void paintComponent(java.awt.Graphics g) { /* I learned things from this pages : http://java.sun.com/developer/technicalArticles/GUI/java2d/java2dpart1.html http://www.apl.jhu.edu/~hall/java/Java2D-Tutorial.html */ super.paintComponent(g); java.awt.Dimension d=this.getSize(); int w=d.width; int h=d.height; Graphics2D g2=(Graphics2D) g; g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); g2.drawImage(myimage.getImage(), 0, 0, w, h, this); if (isSelected) { AlphaComposite ac= AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 100)); g2.fillRect(1, 1, w-2, h-2); } if (isEntered) { AlphaComposite ac= AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.1f); g2.setComposite(ac); g2.setColor(new Color(0, 0, 80)); Stroke stroke=new BasicStroke(3f); g2.setStroke(stroke); g2.drawRect(2, 2, w-4, h-4); } } // Create an Icon wich belongs to a group // If Vector is null, then it's a simple toggle button public myJIcon(String nm, Vector v, int sze, boolean isgrouped) { name=nm; this.isSelected=false; this.isGrouped=isgrouped; this.V=v; this.iconsize=sze; URL myurl=getClass().getResource("/eric/GUI/icons/bar/"+name+".png"); myimage=new ImageIcon(myurl); // this.setIcon(new ImageIcon(myurl)); this.setOpaque(false); this.setBorder(BorderFactory.createEmptyBorder()); float k=(1.0f*sze)/myimage.getIconWidth(); int w=Math.round(k*myimage.getIconWidth()); int h=Math.round(k*myimage.getIconHeight()); fixsize(this, w, h); this.setContentAreaFilled(false); this.setFocusable(false); this.addMouseListener(this); code=V.size(); V.add(this); } @Override public void setSelected(boolean bool) { isSelected=bool; repaint(); } @Override public boolean isSelected() { return isSelected; } public void select() { if (isGrouped) { for (int i=0; i. */ package eric.bar; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import java.awt.Color; import java.awt.Dimension; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JFrame; import eric.JEricPanel; import rene.gui.Global; import rene.zirkel.objects.ConstructionObject; import eric.controls.JCanvasPanel; import eric.macros.CreateMacroDialog; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.ArrayList; import javax.swing.AbstractAction; import javax.swing.KeyStroke; /** * * @author erichake */ public class JPropertiesBar extends JFrame implements MouseListener, MouseMotionListener { static private int Bx=0, By=0, Bwidth=1078, Bheight=60; CPane CP; TitleBar titlebar; static JControlProperties Content; private MouseEvent pressed; private Point location; private static JPropertiesBar JPB=null; public JPropertiesBar() { JPB=this; Bx=Global.getParameter("props.paletteX", 0); if (Bx v){ if ((JPB!=null)&&(v!=null)&&(v.size()>0)) { JPB.setObjects(v); } } static public void EditObject(final ConstructionObject o) { EditObject(o, true, true); } static public void EditObject(final ConstructionObject o, final boolean forcevisible, final boolean forcefocus) { if ((JPB!=null)&&(o!=null)) { JPB.setObject(o, forcevisible, forcefocus); } } static public void EditObject(final JCanvasPanel jcp) { if ((JPB!=null)&&(jcp.O!=null)) { JPB.setObject(jcp); } } static public void SelectPropertiesTab(final int i) { JPB.selectTab(i); } static public void RefreshBar() { if (JPB!=null) { JPB.refresh(); } } // Only called at first launch (applet or application) : static public void CreatePropertiesBar() { JPB=new JPropertiesBar(); JPB.showme(false); } private void setObjects(ArrayList v) { showme(true); Content.setObjects(v); } public void setObject(final ConstructionObject O, final boolean forcevisible, final boolean forcefocus) { if (forcevisible) { showme(true); } if ((!this.isVisible())&&(!forcefocus)) { return; } Content.setObject(O, forcevisible, forcefocus); } public void selectTab(final int i) { Content.selectTab(i); } public void setObject(final JCanvasPanel jcp) { showme(true); Content.setObject(jcp); } private static void fixsize(final JComponent cp, final int w, final int h) { final Dimension d=new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } private class TitleBar extends JEricPanel { ImageIcon closeimg=new ImageIcon(getClass().getResource( "gui/Pclose.png")); ImageIcon closeoverimg=new ImageIcon(getClass().getResource( "gui/Pcloseover.png")); ImageIcon myicon=new ImageIcon(getClass().getResource( "gui/titlebar.png")); JButton closebtn; JPropertiesBar Mother; @Override public void paintComponent(final java.awt.Graphics g) { final java.awt.Dimension d=this.getSize(); g.drawImage(myicon.getImage(), 0, 0, d.width, d.height, this); super.paintComponent(g); } public TitleBar(final JPropertiesBar parent, final int width) { Mother=parent; this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); // this.setAlignmentX(0F); this.setOpaque(false); fixsize(this, width, Bheight); this.addMouseListener(parent); this.addMouseMotionListener(parent); closebtn=new JButton(closeimg); closebtn.setRolloverIcon(closeoverimg); closebtn.setBorder(BorderFactory.createEmptyBorder()); closebtn.setOpaque(false); closebtn.setContentAreaFilled(false); closebtn.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { // Mother.setVisible(false); Mother.showme(false); } }); this.add(closebtn); } } private class CPane extends JEricPanel { public CPane() { this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setOpaque(false); this.setBorder(BorderFactory.createLineBorder( new Color(80, 80, 80), 1)); } } private void setBarLocation(final MouseEvent me) { location=getLocation(location); int x=location.x-pressed.getX()+me.getX(); if (xGlobal.getScreenX()+Global.getScreenW()-20) { x=Global.getScreenX()+Global.getScreenW()-Bwidth; } setLocation(x, Global.getScreenY()); Toolkit.getDefaultToolkit().sync(); } @Override public void mouseDragged(final MouseEvent me) { setBarLocation(me); } @Override public void mousePressed(final MouseEvent me) { pressed=me; } @Override public void mouseMoved(final MouseEvent e) { } @Override public void mouseReleased(final MouseEvent e) { setBarLocation(e); Global.setParameter("props.paletteX", getLocation().x); Bx=getLocation().x; By=getLocation().y; pipe_tools.setWindowLocation(); pipe_tools.toFront(); } @Override public void mouseClicked(final MouseEvent e) { } @Override public void mouseEntered(final MouseEvent e) { } @Override public void mouseExited(final MouseEvent e) { } }carmetal-4.3/src/eric/bar/JTabPanel.java000066400000000000000000000113461417122252700201000ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.bar; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.util.ArrayList; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JComponent; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ public class JTabPanel extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; JEricPanel LeftPanel = new JEricPanel(); JEricPanel SouthPanel = new JEricPanel(); JEricPanel RightPanel = new JEricPanel(); ArrayList Panes = new ArrayList(); JTabPanelTitleBar JTitle; int Leftmargin = 5;// margin before the tabs int Rightmargin = 35;// margin after the tabs int TabHeight = 18; // tab title line height int TabTitleSize = 11; // Tab title font size int TabTitleMargin = 5; // space before and after the Tab Title @Override public void paintComponent(final Graphics g) { super.paintComponent(g); final ImageIcon myicon = new ImageIcon(getClass().getResource( "gui/panel_back.png")); final java.awt.Dimension d = this.getSize(); g.drawImage(myicon.getImage(), 0, 0, d.width, d.height, this); } public JTabPanel(final int w, final int h) { this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); LeftPanel.setLayout(new BoxLayout(LeftPanel, BoxLayout.Y_AXIS)); RightPanel.setLayout(new BoxLayout(RightPanel, BoxLayout.Y_AXIS)); SouthPanel.setLayout(new BoxLayout(SouthPanel, BoxLayout.X_AXIS)); JTitle = new JTabPanelTitleBar(this); LeftPanel.add(JTitle); LeftPanel.add(SouthPanel); add(LeftPanel); add(RightPanel); RightPanel.setOpaque(false); SouthPanel.setOpaque(false); LeftPanel.setOpaque(false); SouthPanel.setAlignmentX(0.0f); SouthPanel.setAlignmentY(0.0f); fixsize(this, w, h); // this.setBorder(BorderFactory.createLineBorder(new // Color(82,82,82),1)); } public void add(final JComponent cp, final int i) { final JEricPanel mypane = (JEricPanel) Panes.get(i); mypane.add(cp); } public void addMain(final JComponent cp) { SouthPanel.add(cp); } public void setMainCenteredContent(final JComponent cp) { final JEricPanel myjp1 = new JEricPanel(); myjp1.setOpaque(false); final JEricPanel myjp2 = new JEricPanel(); myjp2.setOpaque(false); SouthPanel.add(myjp1); SouthPanel.add(cp); SouthPanel.add(myjp2); } public void clearAll() { SouthPanel.removeAll(); SouthPanel.revalidate(); for (int i = 0; i < Panes.size(); i++) { final JEricPanel mypane = (JEricPanel) Panes.get(i); mypane.removeAll(); mypane.revalidate(); } } public void addPanel(final String name) { JTitle.addTabTitle(name); final JEricPanel mypane = new JEricPanel(); mypane.setLayout(new BoxLayout(mypane, BoxLayout.X_AXIS)); mypane.setOpaque(false); String str = Global.Loc("props.help"); str = str.replace("
", " "); Panes.add(mypane); JTitle.revalidate(); fixsize(LeftPanel, JTitle.getSize().width, this.getSize().height); fixsize(SouthPanel, JTitle.getSize().width, this.getSize().height - TabHeight); fixsize(RightPanel, this.getSize().width - LeftPanel.getSize().width, this.getSize().height); final JLabel hlp = new JLabel(str); hlp.setOpaque(false); hlp.setFont(new Font("System", 0, 12)); hlp.setHorizontalAlignment(SwingConstants.CENTER); hlp.setVerticalAlignment(SwingConstants.CENTER); fixsize(hlp, 600, RightPanel.getSize().height); hlp.setForeground(new Color(100, 100, 100)); mypane.add(hlp); mypane.revalidate(); } public void selectTab(final int i) { JTitle.selectTabTitle(i); RightPanel.removeAll(); final JEricPanel mypane = (JEricPanel) Panes.get(i); fixsize(mypane, RightPanel.getSize().width, RightPanel.getSize().height); RightPanel.add(mypane); RightPanel.revalidate(); RightPanel.repaint(); JTitle.repaint(); Global.setParameter("props.selectedtab", i); } private void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } } carmetal-4.3/src/eric/bar/JTabPanelTitleBar.java000066400000000000000000000113671417122252700215320ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.bar; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.util.ArrayList; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JComponent; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ public class JTabPanelTitleBar extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; ArrayList TabTitles = new ArrayList(); JTabPanel Mother; @Override public void paintComponent(final Graphics g) { super.paintComponent(g); final ImageIcon myicon1 = new ImageIcon(getClass().getResource( "gui/titles_back.png")); final ImageIcon myicon2 = new ImageIcon(getClass().getResource( "gui/title_back_end.png")); final java.awt.Dimension d = this.getSize(); g.drawImage(myicon1.getImage(), 0, 0, d.width, d.height, this); g.drawImage(myicon2.getImage(), d.width - d.height, 0, this); } public JTabPanelTitleBar(final JTabPanel parent) { Mother = parent; setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setAlignmentX(0.0f); setAlignmentY(0.0f); add(margin(Mother.Leftmargin)); add(margin(Mother.Rightmargin)); } public void addTabTitle(final String name) { final int cnt = this.getComponentCount(); final JTabTitle jtt = new JTabTitle(Mother, name); TabTitles.add(jtt); this.add(jtt, cnt - 1); fixsize(this, getLeftWidth(), Mother.TabHeight); } public void selectTabTitle(final int n) { for (int i = 0; i < TabTitles.size(); i++) { ((JTabTitle) TabTitles.get(i)).setSelected(i == n); } } public int getLeftWidth() { int w = Mother.Leftmargin + Mother.Rightmargin; for (int i = 0; i < TabTitles.size(); i++) { final JTabTitle jtt = (JTabTitle) TabTitles.get(i); w += jtt.getSize().width; } return w; } static JEricPanel margin(final int w) { final JEricPanel mypan = new JEricPanel(); fixsize(mypan, w, 1); mypan.setOpaque(false); mypan.setFocusable(false); return mypan; } static void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } } class JTabTitle extends JEricPanel { /** * */ private static final long serialVersionUID = 1L; boolean isActive = false; JTabPanel Mother; int Pos; JLabel JLB = new JLabel(); ImageIcon IcON = new ImageIcon(getClass().getResource("gui/tab_on.png")); ImageIcon IcOFF = new ImageIcon(getClass().getResource("gui/tab_off.png")); @Override public void paintComponent(final Graphics g) { super.paintComponent(g); final ImageIcon icn = (isActive) ? IcON : IcOFF; final java.awt.Dimension d = this.getSize(); g.drawImage(icn.getImage(), 0, 0, d.width, d.height, this); } public JTabTitle(final JTabPanel parent, final String txt) { Mother = parent; Pos = Mother.Panes.size(); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setOpaque(false); // JTabPanelTitleBar.fixsize(this,Mother.TabWidth,Mother.TabHeight); JTabPanelTitleBar.fixsize(this, titleWidth(txt) + 2 * Mother.TabTitleMargin, Mother.TabHeight); JLB.setText(txt); JLB.setFont(new Font(Global.GlobalFont, 0, 11)); JLB.setOpaque(false); JLB.setHorizontalAlignment(SwingConstants.CENTER); JLB.setVerticalAlignment(SwingConstants.BOTTOM); JLB.setForeground(new Color(40, 40, 40)); JTabPanelTitleBar.fixsize(JLB, titleWidth(txt) + 2 * Mother.TabTitleMargin, Mother.TabHeight); // JTabPanelTitleBar.fixsize(JLB,Mother.TabWidth,Mother.TabHeight); JLB.addMouseListener(new java.awt.event.MouseAdapter() { @Override public void mousePressed(final java.awt.event.MouseEvent evt) { Mother.selectTab(Pos); Mother.repaint(); } }); this.add(JLB); } private int titleWidth(final String s) { // FontMetrics fm = getFontMetrics(getFont()); final FontMetrics fm = getFontMetrics(new Font(Global.GlobalFont, 0, Mother.TabTitleSize)); return fm.stringWidth(s); } public void setSelected(final boolean b) { isActive = b; } } carmetal-4.3/src/eric/bar/gui/000077500000000000000000000000001417122252700162145ustar00rootroot00000000000000carmetal-4.3/src/eric/bar/gui/Pclose.png000066400000000000000000000011401417122252700201430ustar00rootroot00000000000000‰PNG  IHDRVÎŽW'IDATxÚÕ“ÛO’aÇߤ¶×u¸Kë*ïhµ±¸¼«;õ¢æ¬¶Vs46Di€Wâ0N¼@ {I”Ô"Ë%D›äÔVÐaš´uÑãZûö<®Û·›º¨‹ïžï~ßï>ûm¿=€¿¢”N§9³ÙÌ…Ãa}‰R©$<Ï3íz6û•±®<(“Ép‚ hÛÚNB¡P ¿ßˆx|œ‰ùÝËX‡v ÒkZÔh<|6§OŸ/£Z{wT%êÙŒe¬+ ²ìå÷ãtg7ì^ )ijw¨Ò4ìžNuva¿mYJÝJšOhÐuÙÃfg×Ü!X©,Ô†í4ëEóñ¨T­DÔp ‰´w÷@?ä„à Á;61&AŒK½™Äˆ/‚>“ çzÐp°Itèè1¢5 p‹qÜJf097{óK˜),a*ûQižHº«#h¤]YPû™ó¤wІXj³…"Ë”WÞâY¥Šâòî/”O? [9Ðqö‚<ÈçqñŠ“Ù+ëX­n¢¶õ ¶w°ññ ʯß`:·ˆKúøü!È‚òù‚^o†Ó?†Wë5l}ýòØP§f‚G#1ô ˜ËååÏOC. †µƒf+\ö¨ôŸêŸ±Y߯“—+DoÃdu@CZÖ•eæ8Pä¤TJ—HN÷u‘Ø\nâðzHðF”LHw‰$¥t`uÿßÿçú ¹~šªø²£ËIEND®B`‚carmetal-4.3/src/eric/bar/gui/Pcloseover.png000066400000000000000000000011301417122252700210360ustar00rootroot00000000000000‰PNG  IHDRVÎŽWIDATxÚÕ“ßORaÆÏÒ éE%]´fnlØXÍ‹âÊ~ØE…Ó­ã4Z%;‡ðÆÁ”(š$ è±æàè–…«ÜŒ¶þ#âÆÚÛ¬=½/óöxSuñì}öý~öyß›—ðWò‹òù<'‹Åxz“ÉDt:K½³ÙþޱÚ"EQ8ŸÏç8×n…ÑØ ·ÛƒDbŽ…õúŒíCÙE.«Õ‚“Í-ðØÚ.ãså v*UÖÙ¬¾cŒ¢,»4E¢( ñ¨—®ÜD³ñ,ºoóXß(AÝØ„öStvñò 4i‚(ŠÐ™Û,Äp¦ξA´Zm8ÔpœJo±Ôûévœ? m0›-DS¤;¬'×zœÈ D粸Ú}-æ 4çi¿‹Éô¤H]½|D*÷ý‚Uu$â"ÑI‡88Љ©$Þ¼/c§VE¥öoËŸOgáHˆFcŽ"e5E…¢ÊMÈ2—YXà“éy—ÉГ  IDžš!Ï3Y’É,òá°ÌØÿã÷ÿy~ }ˆ6Ë?8=IEND®B`‚carmetal-4.3/src/eric/bar/gui/chkboxOFF.png000066400000000000000000000004501417122252700205320ustar00rootroot00000000000000‰PNG  IHDR rëä|ïIDATxÚ’A«D`†ïYËÞB’ò„•Jùv(5³B¢”"EÖït¾ÅLsç›Å½§ž¾úzŸNçt~ü™ÿKmÛ"IDQÄ%MSPæ)­ë Q1M¾U–ee”eÒ²,ã8âº..yžC’$P–I}ßCQлï;—²,¡ª*Ë0©ë:hš†ûýŽº®¹TU]×AÙ§dYš¦Á0 \n·lÛ~—Ça3mÛÆ…º¹®û.A€ã8ð­æyF†$½¶gòh¯8Ú+Î{íÍΕK»Ý^÷àçÙLÓõ%Ì W®Q> ‰IEND®B`‚carmetal-4.3/src/eric/bar/gui/tab_on.png000066400000000000000000000004721417122252700201670ustar00rootroot00000000000000‰PNG  IHDRM‘³ÄÅtEXtSoftwareAdobe ImageReadyqÉe<ÜIDATXÃíÔK Â0àµ"Iÿ¼hÒ6ˆ®¼‰ "‚±¨7pçcïtçM3 Y„$äƒflKT9"oL«T ¬‹Îucm‹ÑûhL£”G« +F!Œ”–Tí| ÝZ™f!19– +p&¶è@´n¤t³™( ^–¼(ø|^ÉÊIBk\‡kŒÖv_º»M#ìÒ÷Ûýa¹Þ p'V  ƒ‘mw‡ãé< Wô•\€‚Fq’ÂO*Œ“qâ?SÏøßfgvþ©ó‘z²3;³óç÷Ô3%gŒ«ä0¾P’QÝiרoIEND®B`‚carmetal-4.3/src/eric/bar/gui/title_back_end.png000066400000000000000000000005271417122252700216550ustar00rootroot00000000000000‰PNG  IHDR6nr>tEXtSoftwareAdobe ImageReadyqÉe<ùIDAT8Ë_KÂPÆñó‚cç°öçœ3é¯o@ÔÙr¹œÛª;‚BDDôìª;m÷í×(²évÖ—‡çîƒ0Ö1¦ªÊ1115*(å0eoBU-BŒlŠBªébµzCïuOû°™±4MÑ«tQ|Ëg9ù"WÝðÆéù,Ñ(¼þÃ@>UŒâ"ùXÚ0ˆröQ=ìφÜÞÍ@.÷4ðƒr±+ïòŠÛ'% ä¼Pßós¶) Ͷsû.ªÈû_»“c ï¾szLK2Ó¯ºŽ[‹L’¤Ýé1l]'Ôj;V}ÒâGÿ`YŸ·»ZâlIEND®B`‚carmetal-4.3/src/eric/bar/gui/titlebar.png000066400000000000000000000001701417122252700205260ustar00rootroot00000000000000‰PNG  IHDRнtEXtSoftwareAdobe ImageReadyqÉe<IDATc^<31%#-5911.6:*. */ package eric.controls; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; /** * * @author erichake */ public class JCanvasButton extends JCanvasPanel { /** * */ private static final long serialVersionUID=1L; MyJButton JCB; public JCanvasButton(final ZirkelCanvas zc, final ExpressionObject o) { super(zc, o); JSL=new MyJButton(); JCB=(MyJButton) JSL; JCB.addMouseListener(this); JCB.addMouseMotionListener(this); final JCanvasButton btn=this; JCB.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { if (!isEditMode()&&!isTargetMode()) { ZC.runControlScripts(btn); } } @Override public void mousePressed(final MouseEvent e) { if (isEditMode()||isTargetMode()) { JCB.setEnabled(false); } } @Override public void mouseReleased(final MouseEvent e) { if (!hidden()) { JCB.setEnabled(true); if (getVal()==0) { setVal(1); } else { setVal(0); } } } }); showval=false; showunit=false; showcom=false; setComment("ok"); setVal(0); this.add(JCPlabel); this.add(JCB); this.add(JCPresize); zc.add(this); } @Override public void setComment(final String s) { lbl_com=s; JCPlabel.setText(goodLabel()); if (showcom) { JCB.setText(""); } else { JCB.setText(s); } setDims(); } @Override public void setShowComment(final boolean b) { showcom=b; JCPlabel.setText(goodLabel()); if (showcom) { JCB.setText(""); } else { JCB.setText(lbl_com); } setDims(); } @Override public double getVal() { double s; try { s=O.getValue(); } catch (final Exception ex) { s=0; } return s; } class MyJButton extends JButton { /** * */ private static final long serialVersionUID=1L; MyJButton() { super(); setFocusable(false); setOpaque(false); } } @Override public void PrintXmlTags(final XmlWriter xml) { xml.startTagStart("CTRLbutton"); super.PrintXmlTags(xml); xml.finishTagNewLine(); } } carmetal-4.3/src/eric/controls/JCanvasCheckBox.java000066400000000000000000000053321417122252700223310ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JCheckBox; import rene.gui.Global; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; /** * * @author erichake */ public class JCanvasCheckBox extends JCanvasPanel implements ItemListener { /** * */ private static final long serialVersionUID = 1L; MyJCheckBox JCB; public JCanvasCheckBox(final ZirkelCanvas zc, final ExpressionObject o) { super(zc, o); JSL = new MyJCheckBox(); JCB = (MyJCheckBox) JSL; // JCanvasPanel.fixsize(JCB, 50, 22); JCB.addMouseListener(this); JCB.addMouseMotionListener(this); JCB.addItemListener(this); JCB.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { if (isEditMode()||isTargetMode()) { JCB.setEnabled(false); } } @Override public void mouseReleased(final MouseEvent e) { JCB.setEnabled(true); } }); this.add(JCB); showval = false; showunit = false; showcom = true; String s = Global.Loc("props.expl"); s = s.trim(); s = s.replace(":", ""); s = s.trim(); setComment(s); setVal(0); this.add(JCPlabel); this.add(JCPresize); zc.add(this); } @Override public double getVal() { final double s = JCB.isSelected() ? 1 : 0; return s; } public void setSelected(boolean b){ JCB.setSelected(b); } class MyJCheckBox extends JCheckBox { /** * */ private static final long serialVersionUID = 1L; MyJCheckBox() { super(); setFocusable(false); setOpaque(false); } } public void itemStateChanged(final ItemEvent arg0) { if(!hidden()){ try { final int s = JCB.isSelected() ? 1 : 0; setVal(s); } catch (final Exception ex) { } } } @Override public void PrintXmlTags(final XmlWriter xml) { xml.startTagStart("CTRLcheckbox"); super.PrintXmlTags(xml); xml.finishTagNewLine(); } } carmetal-4.3/src/eric/controls/JCanvasPanel.java000066400000000000000000000367201417122252700217070ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import eric.GUI.palette.PaletteManager; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionAdapter; import java.awt.event.MouseMotionListener; import java.awt.geom.Rectangle2D; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import rene.gui.Global; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; import eric.JPointName; import eric.JZirkelCanvas; import eric.bar.JPropertiesBar; import java.awt.Image; import java.awt.image.BufferedImage; import java.awt.image.FilteredImageSource; import java.awt.image.ImageFilter; import javax.swing.GrayFilter; import rene.zirkel.tools.JSmacroTool; import rene.zirkel.tools.Scripts_SetMouseDrag; /** * * @author erichake */ public class JCanvasPanel extends JEricPanel implements MouseListener, MouseMotionListener, ChangeListener { /** * */ private static final long serialVersionUID=1L; ImageIcon ctrlresizeicon=new ImageIcon(getClass().getResource( "/eric/GUI/icons/palette/ctrl_resize.png")); static int COMFONTSIZE=14; static int COMSIZE=50; static Color COMCOLOR=new Color(80, 80, 80); JComponent JSL; String lbl_com="", lbl_val="", lbl_unit="°"; boolean showcom=true, showval=true, showunit=false; JLabel JCPlabel=new JLabel(); JButton JCPresize=new JButton(); // int W, H; ZirkelCanvas ZC; public ExpressionObject O; boolean hidden=false; private boolean showborder1=false; private boolean showborder2=false; private boolean showhandle=false; private MouseEvent pressed; private Point location; private final DecimalFormat decFormat; public boolean hidden(){ return hidden; } public void paint(Graphics g) { Graphics2D g2D=null; BufferedImage sprite=null; if ((!isHidden())||(ZC.getShowHidden())) { sprite=new BufferedImage(getSize().width, getSize().height, BufferedImage.TYPE_INT_ARGB); g2D=sprite.createGraphics(); // super.paintChildren(g2D); super.paint(g2D); } if ((isHidden())&&(ZC.getShowHidden())) { final ImageFilter filter=new GrayFilter(true, 60); final Image disImage=this.createImage(new FilteredImageSource( sprite.getSource(), filter)); final ImageIcon myicn=new ImageIcon(disImage); g2D.drawImage(myicn.getImage(), 0, 0, getSize().width, getSize().height, this); } if (sprite!=null) { ZC.I.getGraphics().drawImage(sprite, getLocation().x, getLocation().y, this); } // when mouseentered : final Dimension d=getSize(); if (O.selected()) { g.setColor(JControlsManager.bordercolor3); g.drawRect(0, 0, d.width-8, d.height-1); } else if(showhandle) { final Graphics2D g2d=(Graphics2D) g; final Rectangle2D rectangle=new Rectangle2D.Double(0, 0, d.width-8, d.height-1); g2d.setColor(new Color(119, 136, 153)); g2d.setStroke(new BasicStroke(1f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_BEVEL, 1f, new float[]{2f}, 0f)); g2d.draw(rectangle); g.drawImage(ctrlresizeicon.getImage(), d.width-12, d.height/2-4, this); } else { if (showborder1) { g.setColor(JControlsManager.bordercolor1); g.drawRect(0, 0, d.width-8, d.height-1); } else if (showborder2) { g.setColor(JControlsManager.bordercolor2); g.drawRect(0, 0, d.width-8, d.height-1); } } } @Override public void paintComponent(final Graphics g) { } // withoutExpr unused, just to make another constructor : public JCanvasPanel(final ZirkelCanvas zc, final ExpressionObject o) { super(); ZC=zc; O=(o==null)?createExpression():o; this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); this.setOpaque(false); this.addMouseListener(this); this.addMouseMotionListener(this); JCPlabel.setHorizontalAlignment(SwingConstants.LEFT); JCPlabel.setFont(new Font(Global.GlobalFont, 0, COMFONTSIZE)); JCPlabel.setForeground(COMCOLOR); // JCPresize.setIcon(ctrlresizeicon); JCPresize.setOpaque(false); JCPresize.setContentAreaFilled(false); JCPresize.setBorder(BorderFactory.createEmptyBorder()); JCPresize.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR)); JCPresize.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent me) { pressed=me; } @Override public void mouseReleased(final MouseEvent me) { ZC.JCM.hideBorders((JCanvasPanel) ((JComponent) me.getSource()).getParent()); } }); JCPresize.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseDragged(final MouseEvent me) { final int w=JSL.getSize().width+me.getX(); setDims(w-pressed.getX(), getSize().height); ZC.JCM.analyseResize((JCanvasPanel) ((JComponent) me.getSource()).getParent()); } }); decFormat=new DecimalFormat(); final DecimalFormatSymbols dfs=new DecimalFormatSymbols(); dfs.setDecimalSeparator('.'); decFormat.setDecimalFormatSymbols(dfs); } private ExpressionObject createExpression() { final ExpressionObject o=new ExpressionObject(ZC.getConstruction(), 0, 0); o.setDefaults(); o.setSuperHidden(true); o.setOwnedByControl(true); ZC.getConstruction().add(o); if (JZirkelCanvas.getCurrentJZF()!=null) { final int i=JZirkelCanvas.getCurrentJZF().getPointLabel().getCurrentLetterSetCode(); final boolean b=Global.getParameter("options.point.shownames", false); Global.setParameter("options.point.shownames", true); final String s=JZirkelCanvas.getCurrentJZF().getPointLabel().setLetterSet(JPointName.minLettersSetCode); Global.setParameter("options.point.shownames", b); JZirkelCanvas.getCurrentJZF().getPointLabel().setLetterSet(i); o.setName(s); } return o; } public int StringwWidth(final String s) { // FontMetrics fm = getFontMetrics(getFont()); final FontMetrics fm=getFontMetrics(new Font(Global.GlobalFont, 0, COMFONTSIZE)); return fm.stringWidth(s); } // MUST BE OVERRIDE : public double getVal() { return 0.0; } public void setOnlyValue(final double x) { decFormat.setMaximumFractionDigits(Global.getParameter("digits.edit", 5)); lbl_val=String.valueOf(decFormat.format(x)); } public void setVal(final double x) { setOnlyValue(x); setVal(String.valueOf(x)); } public void setVal(final String s) { JCPlabel.setText(goodLabel()); try { O.setExpression(s, ZC.getConstruction()); ZC.recompute(); setDims(); // ZC.validate(); // ZC.repaint(); } catch (final Exception ex) { } } public void setDims(final int x, final int y, final int w, final int h) { final int W=w+StringwWidth(JCPlabel.getText())+15; fixsize(JCPlabel, StringwWidth(JCPlabel.getText()), h); fixsize(JCPresize, 15, h); fixsize(JSL, w, h); revalidate(); setBounds(x, y, W, h); ZC.validate(); ZC.repaint(); } public void setDims(final int w, final int h) { final int x=getLocation().x; final int y=getLocation().y; setDims(x, y, w, h); } public void setDims() { setDims(JSL.getSize().width, JSL.getSize().height); } public void grow(final int w, final int h) { setDims(JSL.getSize().width+w, JSL.getSize().height+h); } public String getComment() { return lbl_com; } public void setComment(final String s) { lbl_com=s; JCPlabel.setText(goodLabel()); setDims(); } public String getUnit() { return lbl_unit; } public void setUnit(final String s) { lbl_unit=s; JCPlabel.setText(goodLabel()); setDims(); } public void setShowComment(final boolean b) { showcom=b; JCPlabel.setText(goodLabel()); setDims(); } public void setShowVal(final boolean b) { showval=b; JCPlabel.setText(goodLabel()); setDims(); } public void setShowUnit(final boolean b) { showunit=b; JCPlabel.setText(goodLabel()); setDims(); } public boolean getShowComment() { return showcom; } public boolean getShowVal() { return showval; } public boolean getShowUnit() { return showunit; } public String goodLabel() { String lbl=""; if (showcom) { lbl+=lbl_com; } if (showval) { lbl+=lbl_val; } if (showunit) { lbl+=lbl_unit; } return lbl; } static public void fixsize(final JComponent cp, final int w, final int h) { final Dimension d=new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } public boolean isTargetMode(){ return ((ZC.getTool() instanceof Scripts_SetMouseDrag)&&(this instanceof JCanvasButton)); } public boolean isEditMode() { if (JZirkelCanvas.getCurrentJZF()==null) { return false; } boolean bool=(PaletteManager.isSelected("edit")) ||(PaletteManager.isSelected("ctrl_edit")); bool=(bool||(PaletteManager.isSelected("ctrl_slider"))); bool=(bool||(PaletteManager.isSelected("ctrl_popup"))); bool=(bool||(PaletteManager.isSelected("ctrl_chkbox"))); bool=(bool||(PaletteManager.isSelected("ctrl_txtfield"))); bool=(bool||(PaletteManager.isSelected("ctrl_button"))); bool=(bool||(PaletteManager.isSelected("delete"))); bool=(bool||(PaletteManager.isSelected("hide"))); return bool; } public boolean isDeleteMode() { if (JZirkelCanvas.getCurrentJZF()==null) { return false; } return (PaletteManager.isSelected("delete")); } public boolean isHideToolSelected() { if (JZirkelCanvas.getCurrentJZF()==null) { return false; } return (PaletteManager.isSelected("hide")); } public boolean isHidden() { return (hidden||O.testConditional("hidden")); } public void setHidden(final boolean b) { hidden=b; } public void showBorder() { showborder2=true; repaint(); } public void hideBorder() { showborder2=false; repaint(); } public void showHandle() { showhandle=true; setDims(); } public void hideHandle() { showhandle=false; setDims(); } public void mouseClicked(final MouseEvent arg0) { } public void mousePressed(final MouseEvent e) { pressed=e; if (e.isPopupTrigger()) { return; } ZC.JCM.hideHandles(null); } public void mouseReleased(final MouseEvent e) { if (e.isPopupTrigger()) { return; } if ((!ZC.getShowHidden())&&(isHidden())) { return; } if (isHideToolSelected()) { setHidden(!isHidden()); setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); showborder1=false; repaint(); } if (isDeleteMode()) { ZC.JCM.removeControl(this); } ZC.JCM.hideBorders(this); if ((isEditMode())&&(!isHidden())) { showHandle(); JPropertiesBar.EditObject(this); } if (isTargetMode()) { Scripts_SetMouseDrag tool=(Scripts_SetMouseDrag) ZC.getTool(); tool.addFromControl(O, ZC); repaint(); } } public void mouseEntered(final MouseEvent arg0) { if (isHidden()) { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); showborder1=false; // repaint(); return; } if (isTargetMode()||isEditMode()) { setCursor(new Cursor(Cursor.HAND_CURSOR)); showborder1=true; repaint(); } } public void mouseExited(final MouseEvent arg0) { setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); showborder1=false; repaint(); } public void mouseDragged(final MouseEvent me) { if (!isEditMode()) { return; } location=getLocation(location); int x=location.x-pressed.getX()+me.getX(); int y=location.y-pressed.getY()+me.getY(); if (x<0) { x=0; } else if (x+getSize().width>ZC.getSize().width) { x=ZC.getSize().width-getSize().width; } if (y<0) { y=0; } else if (y+getSize().height>ZC.getSize().height) { y=ZC.getSize().height-getSize().height; } setLocation(x, y); Toolkit.getDefaultToolkit().sync(); ZC.JCM.analyseXY(this); } public void mouseMoved(final MouseEvent arg0) { } // Change event from JSlider : public void stateChanged(final ChangeEvent arg0) { } public void PrintXmlTags(final XmlWriter xml) { xml.printArg("Ename", ""+O.getName()); xml.printArg("x", ""+getLocation().x); xml.printArg("y", ""+getLocation().y); xml.printArg("w", ""+JSL.getSize().width); xml.printArg("h", ""+JSL.getSize().height); xml.printArg("showC", ""+showcom); xml.printArg("showU", ""+showunit); xml.printArg("showV", ""+showval); xml.printArg("hidden", ""+hidden); xml.printArg("C", ""+lbl_com); xml.printArg("U", ""+lbl_unit); xml.printArg("V", ""+lbl_val); } } carmetal-4.3/src/eric/controls/JCanvasPopup.java000066400000000000000000000074461417122252700217560ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.plaf.ComboBoxUI; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.metal.MetalComboBoxUI; import rene.gui.Global; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; /** * * @author erichake */ public class JCanvasPopup extends JCanvasPanel implements ActionListener { /** * */ private static final long serialVersionUID = 1L; MyJComboBox JCB; public JCanvasPopup(final ZirkelCanvas zc, final ExpressionObject o) { super(zc, o); JSL = new MyJComboBox(); JCB = (MyJComboBox) JSL; JCB.setUI((ComboBoxUI) MyComboBoxUI.createUI(JCB)); // JCanvasPanel.fixsize(JCB, 100, 18); // addMouseEvents(); JCB.addMouseListener(this); JCB.addMouseMotionListener(this); JCB.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { if (isEditMode()) { JCB.hidePopup(); } } }); addMouseEvents(); JCB.addActionListener(this); showval = false; showunit = false; showcom = true; setComment(Global.Loc("props.expl") + " "); setVal(1); this.add(JCPlabel); this.add(JCB); this.add(JCPresize); zc.add(this); } static class MyComboBoxUI extends MetalComboBoxUI { public static ComponentUI createUI(final JComponent c) { return new MyComboBoxUI(); } } public void addMouseEvents() { for (int i = 0; i < JCB.getComponentCount(); i++) { JCB.getComponent(i).addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { if (isEditMode()) { JCB.hidePopup(); } } }); JCB.getComponent(i).addMouseListener(this); JCB.getComponent(i).addMouseMotionListener(this); } } public String getItems() { String s = ""; for (int i = 0; i < JCB.getItemCount() - 1; i++) { s += JCB.getItemAt(i) + "\n"; } s += JCB.getItemAt(JCB.getItemCount() - 1); return s; } public void setItems(final String s) { JCB.removeAllItems(); final String[] itms = s.split("\n"); for (final String itm : itms) { JCB.addItem(itm); } setDims(); } @Override public double getVal() { return (JCB.getSelectedIndex() + 1); } class MyJComboBox extends JComboBox { /** * */ private static final long serialVersionUID = 1L; MyJComboBox() { super(); setFocusable(false); setModel(new DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3" })); } } public void actionPerformed(final ActionEvent e) { if (e.getSource() == JCB) { final int selectedIndex = JCB.getSelectedIndex() + 1; try { setVal(selectedIndex); } catch (final Exception ex) { } } } @Override public void PrintXmlTags(final XmlWriter xml) { xml.startTagStart("CTRLpopup"); super.PrintXmlTags(xml); final String s = getItems().replace("\n", "@@@"); xml.printArg("Items", "" + s); xml.finishTagNewLine(); } } carmetal-4.3/src/eric/controls/JCanvasSlider.java000066400000000000000000000134101417122252700220610ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import javax.swing.JSlider; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; /** * * @author erichake */ public class JCanvasSlider extends JCanvasPanel { /** * */ private static final long serialVersionUID = 1L; static int PREFEREDVMAX = 10000; int VMAX = PREFEREDVMAX; int TICKS = 1000; double xMIN, xMAX, xTICKS; MyJSlider JCS; public JCanvasSlider(final ZirkelCanvas zc, final ExpressionObject o, final double min, final double max, final double val) { super(zc, o); xMIN = min; xMAX = max; xTICKS = getCurrentTicks(); setVal(val); JSL = new MyJSlider(0, VMAX, TICKS, (int) Math.round((val - xMIN) * VMAX / (xMAX - xMIN))); JSL.putClientProperty("JComponent.sizeVariant", "regular"); JCS = (MyJSlider) JSL; JCS.addMouseListener(this); JCS.addMouseMotionListener(this); setComment(O.getName() + "="); this.add(JCS); this.add(JCPlabel); this.add(JCPresize); zc.add(this); } public void setGoodKnobPos(final double x) { final int i = (int) Math.round((x - xMIN) * (VMAX / (xMAX - xMIN))); JCS.setValue(i); } public double getCurrentTicks() { return TICKS * (xMAX - xMIN) / (VMAX); } public void setTicks(final String s) { setTicks(Double.parseDouble(s)); } public void setTicks(final double x) { xTICKS = x; adjustVirtualMax(); TICKS = (int) Math.round(x * VMAX / (xMAX - xMIN)); JCS.setMinorTickSpacing(TICKS); this.revalidate(); this.repaint(); } public String getTicks() { return String.valueOf(xTICKS); } public void adjustVirtualMax() { if ((xMAX - xMIN) < 1) { return; } final int mySQRT = (int) Math.round(Math.sqrt(PREFEREDVMAX)); // VMAX/(xMAX-xMIN) must be an integer : VMAX = (int) Math.round(Math.ceil(mySQRT / (xMAX - xMIN)) * (xMAX - xMIN)); // VMAX/xTICKS must also be an integer : VMAX *= (int) Math.round(Math.ceil(mySQRT / xTICKS) * xTICKS); JCS.setMaximum(VMAX); } public void setMax(final String s) { setMax(Double.parseDouble(s)); } public void setMax(final double x) { xMAX = x; if (xMIN > xMAX) { xMIN = xMAX - 10; } adjustVirtualMax(); double newval = (getVal() > xMAX) ? xMAX : getVal(); newval = (getVal() < xMIN) ? xMIN : getVal(); setVal(newval); JCS.setValue((int) Math.round((newval - xMIN) * VMAX / (xMAX - xMIN))); setTicks(xTICKS); this.revalidate(); this.repaint(); } public String getMax() { return String.valueOf(xMAX); } public void setMin(final String s) { setMin(Double.parseDouble(s)); } public void setMin(final double x) { xMIN = x; if (xMIN > xMAX) { xMAX = xMIN + 10; } adjustVirtualMax(); double newval = (getVal() > xMAX) ? xMAX : getVal(); newval = (getVal() < xMIN) ? xMIN : getVal(); setVal(newval); JCS.setValue((int) Math.round((newval - xMIN) * VMAX / (xMAX - xMIN))); setTicks(xTICKS); this.revalidate(); this.repaint(); } public String getMin() { return String.valueOf(xMIN); } public void setSnap(final boolean b) { JCS.setSnapToTicks(b); this.revalidate(); this.repaint(); } public boolean getSnap() { return JCS.getSnapToTicks(); } public void setShowTicks(final boolean b) { JCS.setPaintTicks(b); this.revalidate(); this.repaint(); } public boolean getShowTicks() { return JCS.getPaintTicks(); } @Override public double getVal() { return xMIN + JCS.getValue() * (xMAX - xMIN) / VMAX; } class MyJSlider extends JSlider implements ChangeListener { /** * */ private static final long serialVersionUID = 1L; int oldvalue; MyJSlider(final int min, final int max, final int ticks, final int val) { super(min, max, val); oldvalue = val; this.setOpaque(false); this.setFocusable(false); // this.setMajorTickSpacing((max-min)/5); this.setMinorTickSpacing(ticks); this.setPaintTicks(true); this.setSnapToTicks(true); this.setOpaque(false); this.addChangeListener(this); } @Override public int getValue() { if (isEditMode()) { return oldvalue; } oldvalue = super.getValue(); return oldvalue; } public void stateChanged(final ChangeEvent e) { try { if (!hidden()){ double val = getValue(); val = xMIN + ((xMAX - xMIN) / VMAX) * val; if (getSnapToTicks()) { // snap to good value : final int i = (int) Math.round((val - xMIN) / xTICKS); val = xMIN + xTICKS * i; // eliminate side effects : final double ex = Math.pow(10, 5 - Math.round(Math .log10(val))); val = Math.round(val * ex) / ex; if (Double.isNaN(val)) { val = 0; } } setVal(val); } } catch (final Exception ex) { } } } @Override public void PrintXmlTags(final XmlWriter xml) { xml.startTagStart("CTRLslider"); super.PrintXmlTags(xml); xml.printArg("min", "" + xMIN); xml.printArg("max", "" + xMAX); xml.printArg("T", "" + xTICKS); xml.printArg("fixT", "" + JCS.getSnapToTicks()); xml.printArg("showT", "" + JCS.getPaintTicks()); xml.finishTagNewLine(); } } carmetal-4.3/src/eric/controls/JCanvasTxtfield.java000066400000000000000000000062241417122252700224270ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import java.awt.Color; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JTextField; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; import rene.gui.Global; /** * * @author erichake */ public class JCanvasTxtfield extends JCanvasPanel { /** * */ private static final long serialVersionUID = 1L; MyJTextField JCB; Color errColor = new Color(201, 68, 27); Color goodColor = new Color(50, 50, 50); public JCanvasTxtfield(final ZirkelCanvas zc, final ExpressionObject o) { super(zc, o); JSL = new MyJTextField(); JCB = (MyJTextField) JSL; JCB.addKeyListener(new KeyAdapter() { @Override public void keyPressed(final KeyEvent e) { } @Override public void keyReleased(final KeyEvent e) { setVal(Global.Comma_To_Point(JCB.getText(), O .getConstruction(), true)); if (O.getExp().isValid()) { JCB.setForeground(goodColor); } else { JCB.setForeground(errColor); } } }); JCB.addFocusListener(new FocusAdapter() { @Override public void focusGained(final FocusEvent e) { JCB.selectAll(); } @Override public void focusLost(final FocusEvent e) { } }); JCB.addMouseListener(this); JCB.addMouseMotionListener(this); JCB.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { if (isEditMode()) { JCB.setFocusable(false); JCB.setEnabled(false); } } @Override public void mouseReleased(final MouseEvent e) { if (!JCB.isEnabled()&&!hidden()) { JCB.setEnabled(true); JCB.setFocusable(true); } } }); showval = false; showunit = false; showcom = true; setComment(O.getName() + " = "); setVal(1); JCB.setText("1"); JCB.setForeground(goodColor); this.add(JCPlabel); this.add(JCB); this.add(JCPresize); zc.add(this); } @Override public double getVal() { return (Double.valueOf(JCB.getText())); } class MyJTextField extends JTextField { /** * */ private static final long serialVersionUID = 1L; JTextField jtf; MyJTextField() { super(); } } @Override public void PrintXmlTags(final XmlWriter xml) { xml.startTagStart("CTRLtxtfield"); super.PrintXmlTags(xml); xml.printArg("txt", "" + JCB.getText()); xml.finishTagNewLine(); } } carmetal-4.3/src/eric/controls/JControlsManager.java000066400000000000000000000400511417122252700226020ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import java.awt.Color; import java.awt.Rectangle; import java.awt.event.MouseEvent; import java.util.ArrayList; import rene.util.xml.XmlTag; import rene.util.xml.XmlWriter; import rene.zirkel.ZirkelCanvas; import rene.zirkel.objects.ExpressionObject; import rene.zirkel.objects.TextObject; import eric.GUI.palette.PaletteManager; import eric.JZirkelCanvas; import eric.bar.JPropertiesBar; import rene.gui.Global; import rene.zirkel.objects.ConstructionObject; /** * * @author erichake */ public class JControlsManager { static Color bordercolor1=new Color(80, 80, 80); static Color bordercolor2=new Color(180, 180, 250); static Color bordercolor3=new Color(255, 25, 25); static int MAGNET=10; ZirkelCanvas ZC; public ArrayList CPs=new ArrayList(); Rectangle r=new Rectangle(); Rectangle r2=new Rectangle(); ArrayList XmlTags=new ArrayList(); public JControlsManager(final ZirkelCanvas zc) { ZC=zc; } public void addControl(final JCanvasPanel jcp, final boolean editme, final int x, final int y, final int w, final int h) { jcp.setDims(x, y, w, h); CPs.add(jcp); ZC.add(jcp); showHandles(jcp); ZC.revalidate(); if (editme) { JPropertiesBar.EditObject(jcp); } } public JCanvasCheckBox addChkBox(final ExpressionObject o, final int x, final int y, final int w, final int h) { final JCanvasCheckBox jcb=new JCanvasCheckBox(ZC, o); addControl(jcb, o==null, x, y, w, h); return jcb; } public JCanvasButton addButton(final ExpressionObject o, final int x, final int y, final int w, final int h) { final JCanvasButton jcb=new JCanvasButton(ZC, o); addControl(jcb, o==null, x, y, w, h); return jcb; } public JCanvasTxtfield addTxtField(final ExpressionObject o, final int x, final int y, final int w, final int h) { final JCanvasTxtfield jcb=new JCanvasTxtfield(ZC, o); addControl(jcb, o==null, x, y, w, h); return jcb; } public JCanvasSlider addSlider(final ExpressionObject o, final int x, final int y, final int w, final int h) { final JCanvasSlider jcs=new JCanvasSlider(ZC, o, -5, 5, -2); addControl(jcs, o==null, x, y, w, h); return jcs; } public JCanvasPopup addPopup(final ExpressionObject o, final int x, final int y, final int w, final int h) { final JCanvasPopup jcp=new JCanvasPopup(ZC, o); addControl(jcp, o==null, x, y, w, h); return jcp; } public void analyseResize(final JCanvasPanel jp) { r=jp.getBounds(r); for (int i=0; i1) { JCanvasPanel jp=(JCanvasPanel) CPs.get(0); jp.setComment(Global.Loc("canvas.3D.floor")); jp=(JCanvasPanel) CPs.get(1); jp.setComment(Global.Loc("canvas.3D.system")); final TextObject t=(TextObject) ZC.getConstruction().find("Text2"); if (t!=null) { t.setLines(Global.Loc("canvas.3D.rightclic")); } } } public void collectXmlTag(final XmlTag tag) { XmlTags.add(tag); } public void readXmlTags() { for (int i=0; i0) { XmlTags.clear(); hideHandles(null); } } } carmetal-4.3/src/eric/controls/SliderSnap.java000066400000000000000000000215631417122252700214450ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.controls; import java.awt.EventQueue; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.swing.JComponent; import javax.swing.JSlider; import javax.swing.UIDefaults; import javax.swing.UIManager; import javax.swing.event.MouseInputAdapter; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.basic.BasicSliderUI; public class SliderSnap extends BasicSliderUI { /** * The UI class implements the current slider Look and Feel. */ private static Class sliderClass; private static Method xForVal, yForVal; private static ReinitListener reinitListener = new ReinitListener(); public SliderSnap() { super(null); } /** * Returns the UI as normal, but intercepts the call, so a listener can be * attached. */ public static ComponentUI createUI(final JComponent c) { if (c == null || sliderClass == null) return null; final UIDefaults defaults = UIManager.getLookAndFeelDefaults(); try { Method m = (Method) defaults.get(sliderClass); if (m == null) { m = sliderClass.getMethod("createUI", new Class[] { JComponent.class }); defaults.put(sliderClass, m); } final ComponentUI uiObject = (ComponentUI) m.invoke(null, new Object[] { c }); if (uiObject instanceof BasicSliderUI) c.addHierarchyListener(new MouseAttacher()); return uiObject; } catch (final Exception e) { throw new RuntimeException(e); } } public static void init() { // check we don't initialise twice if (sliderClass != null) return; final Init init = new Init(); if (EventQueue.isDispatchThread()) { init.run(); } else { // This code must run on the EDT for data visibility try { EventQueue.invokeAndWait(init); } catch (final Exception e) { throw new RuntimeException(e); } } } /** * Listeners for when the JSlider becomes visible then attaches the mouse * listeners, then removes itself. */ private static class MouseAttacher implements HierarchyListener { public void hierarchyChanged(final HierarchyEvent evt) { final long flags = evt.getChangeFlags(); if ((flags & HierarchyEvent.DISPLAYABILITY_CHANGED) > 0 && evt.getComponent() instanceof JSlider) { final JSlider c = (JSlider) evt.getComponent(); c.removeHierarchyListener(this); attachTo(c); } } } /** * Listens for Look and Feel changes and re-initialises the class. */ private static class ReinitListener implements PropertyChangeListener { public void propertyChange(final PropertyChangeEvent evt) { if ("lookAndFeel".equals(evt.getPropertyName())) { // The look and feel was changed so we need to re-insert // Our hook into the new UIDefaults map sliderClass = null; xForVal = yForVal = null; UIManager.removePropertyChangeListener(reinitListener); init(); } } } /** * Initialises the reflective methods and adjusts the current Look and Feel. */ private static class Init implements Runnable { public void run() { try { final UIDefaults defaults = UIManager.getLookAndFeelDefaults(); sliderClass = defaults.getUIClass("SliderUI"); // Set up two reflective method calls xForVal = BasicSliderUI.class.getDeclaredMethod( "xPositionForValue", new Class[] { int.class }); yForVal = BasicSliderUI.class.getDeclaredMethod( "yPositionForValue", new Class[] { int.class }); // Allow us access to the methods xForVal.setAccessible(true); yForVal.setAccessible(true); // Replace UI class with ourselves defaults.put("SliderUI", SliderSnap.class.getName()); UIManager.addPropertyChangeListener(reinitListener); } catch (final Exception e) { sliderClass = null; xForVal = yForVal = null; } } } /** * Called to attach mouse listeners to the JSlider. */ private static void attachTo(final JSlider c) { final MouseMotionListener[] listeners = c.getMouseMotionListeners(); for (final MouseMotionListener m : listeners) { if (m instanceof TrackListener) { c.removeMouseMotionListener(m); // remove original final SnapListener listen = new SnapListener(m, (BasicSliderUI) c.getUI(), c); c.addMouseMotionListener(listen); c.addMouseListener(listen); c.addPropertyChangeListener("UI", listen); } } } private static class SnapListener extends MouseInputAdapter implements PropertyChangeListener { private final MouseMotionListener delegate; /** * Original Look and Feel implementation */ private final BasicSliderUI ui; /** * Our slider */ private final JSlider slider; /** * Offset of mouse click from centre of slider thumb */ private int offset; public SnapListener(final MouseMotionListener delegate, final BasicSliderUI ui, final JSlider slider) { this.delegate = delegate; this.ui = ui; this.slider = slider; } /** * UI can change at any point, so we need to listen for these events. */ public void propertyChange(final PropertyChangeEvent evt) { if ("UI".equals(evt.getPropertyName())) { // Remove old listeners and create new ones slider.removeMouseMotionListener(this); slider.removeMouseListener(this); slider.removePropertyChangeListener("UI", this); attachTo(slider); } } /** * Implements the actual "snap while dragging" behaviour. If snap to * ticks is enabled on this slider, then the location for the nearest * tick/label is calculated and the click location is translated before * being passed to the delegate. */ @Override public void mouseDragged(final MouseEvent evt) { if (slider.getSnapToTicks()) { // if we are set to snap final int pos = getLocationForValue(getSnappedValue(evt)); // if above call fails and returns -1, take no action if (pos > -1) { if (slider.getOrientation() == JSlider.HORIZONTAL) evt.translatePoint(pos - evt.getX() + offset, 0); else evt.translatePoint(0, pos - evt.getY() + offset); } } delegate.mouseDragged(evt); } /** * When the slider is clicked we need to record the offset from thumb * center. */ @Override public void mousePressed(final MouseEvent evt) { final int pos = (slider.getOrientation() == JSlider.HORIZONTAL) ? evt .getX() : evt.getY(); final int loc = getLocationForValue(getSnappedValue(evt)); this.offset = (loc < 0) ? 0 : pos - loc; } /* Pass straight to delegate. */ @Override public void mouseMoved(final MouseEvent evt) { delegate.mouseMoved(evt); } /** * Calculates the nearest snapable value given a MouseEvent. Code * adapted from BasicSliderUI. */ public int getSnappedValue(final MouseEvent evt) { final int value = slider.getOrientation() == JSlider.HORIZONTAL ? ui .valueForXPosition(evt.getX()) : ui.valueForYPosition(evt.getY()); // Now calculate if we should adjust the value int snappedValue = value; int tickSpacing = 0; final int majorTickSpacing = slider.getMajorTickSpacing(); final int minorTickSpacing = slider.getMinorTickSpacing(); if (minorTickSpacing > 0) tickSpacing = minorTickSpacing; else if (majorTickSpacing > 0) tickSpacing = majorTickSpacing; // If it's not on a tick, change the value if (tickSpacing != 0) { if ((value - slider.getMinimum()) % tickSpacing != 0) { final float temp = (float) (value - slider.getMinimum()) / (float) tickSpacing; snappedValue = slider.getMinimum() + (Math.round(temp) * tickSpacing); } } return snappedValue; } /** * Provides the x or y co-ordinate for a slider value, depending on * orientation. */ public int getLocationForValue(final int value) { try { // Reflectively call slider ui code final Method m = slider.getOrientation() == JSlider.HORIZONTAL ? xForVal : yForVal; final Integer result = (Integer) m.invoke(ui, new Object[] { new Integer(value) }); return result.intValue(); } catch (final InvocationTargetException e) { return -1; } catch (final IllegalAccessException e) { return -1; } } } }carmetal-4.3/src/eric/docs/000077500000000000000000000000001417122252700156145ustar00rootroot00000000000000carmetal-4.3/src/eric/docs/.DS_Store000066400000000000000000000300041417122252700172740ustar00rootroot00000000000000Bud1 et.htm  @€ @€ @€ @ applet.htmlIlocblobÌ(ÿÿÿÿÿÿapplet_ext.htmlIlocblobF(ÿÿÿÿÿÿ index.htmlIlocblobR(ÿÿÿÿÿÿJZirkelProperties.propertiesIlocblobÌÿÿÿÿÿÿ"JZirkelProperties_ar_TN.propertiesIlocblobØ(ÿÿÿÿÿÿJZirkelProperties_de.propertiesIlocblob^(ÿÿÿÿÿÿJZirkelProperties_en.propertiesIlocblobä(ÿÿÿÿÿÿJZirkelProperties_es.propertiesIlocblobj(ÿÿÿÿÿÿJZirkelProperties_fr.propertiesIlocblobð(ÿÿÿÿÿÿJZirkelProperties_gl.propertiesIlocblobv(ÿÿÿÿÿÿJZirkelProperties_it.propertiesIlocblobF˜ÿÿÿÿÿÿJZirkelProperties_nl.propertiesIlocblob̘ÿÿÿÿÿÿJZirkelProperties_no.propertiesIlocblobR˜ÿÿÿÿÿÿJZirkelProperties_pl.propertiesIlocblobؘÿÿÿÿÿÿJZirkelProperties_pt.propertiesIlocblobä˜ÿÿÿÿÿÿ"JZirkelProperties_pt_BR.propertiesIlocblob^˜ÿÿÿÿÿÿ"JZirkelProperties_ru_RU.propertiesIlocblobj˜ÿÿÿÿÿÿJZirkelProperties_sl.propertiesIlocblobð˜ÿÿÿÿÿÿJZirkelProperties_sv.propertiesIlocblobv˜ÿÿÿÿÿÿ"JZirkelProperties_zh_TW.propertiesIlocblobFÿÿÿÿÿÿ E DSDB `€ @€ @€ @esIlocblobä˜ÿÿÿÿÿÿ"JZirkelProperties_pt_BR.propertiesIlocblob^˜ÿÿÿÿÿÿ"JZirkelProperties_ru_RU.propertiesIlocblobj˜ÿÿÿÿÿÿJZirkelProperties_sl.propertiesIlocblobð˜ÿÿÿÿÿÿJZirkelProperties_sv.propertiesIlocblobv˜ÿÿÿÿÿÿ"JZirkelProperties_zh_TW.propertiesIlocblobFÿÿÿÿÿÿcarmetal-4.3/src/eric/docs/JZirkelProperties.properties000066400000000000000000000723361417122252700233740ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=File menu.file.new=New menu.file.load=Open... menu.file.save=Save menu.file.saveas=Save As... menu.file.exportpng=Export to PNG menu.file.exporteps=Export to EPS menu.file.exportsvg=Export to SVG menu.file.quit=Quit menu.edit=Edit menu.edit.copy=Copy menu.edit.move=Move object menu.edit.rename=Rename menu.edit.edit=Edit menu.edit.hide=Hide menu.edit.delete=Delete menu.display=Display menu.display.hidden=Show/Hide Objects menu.display.grid=Show/Hide Grid menu.display.finegrid=Axis only menu.display.leftsnap=Snap with left button drag menu.display.manage_macros=Macro Inspector menu.display.history_panel=History menu.display.help_panel=Help menu.display.properties_panel=Object Properties Panel menu.display.small=Small icons menu.display.medium=Medium icons menu.display.large=Large icons menu.display.restrictedpalette=Show Restricted Palette menu.display.restrictedpaletteedit=Edit Restricted Palette menu.display.restrictmessage=
This item allows you to visualize restricted palette.

It only concerns the current file :

when you will 'save as', it will be possible to choose the 'also save the restrict figure'
two files will be created : the first (.zir) will open in 'normal' mode, and
the second (.r.zir) in restricted mode
menu.macros=Macros menu.special=Special menu.special.newmacro=New Macro menu.special.loadmacros=Open Macro File... menu.special.definejob=Define an Assignment menu.special.loadjob=Load an Assignment ... menu.special.jobcomment=Set Assignment Text ... menu.special.testjob=Test this Assignment menu.special.savejob=Save as Assignment ... menu.special.export=Create HTML File and Browser Preview menu.special.exporttemplate=HTML Export with Templates menu.help=Help menu.help.about=About CaRMetal... menu.help.info=Context help menu.help.url0=Go to CaRMetal site menu.help.url1=Go to CARzine site menu.help.url2=Go to official C.a.R. site filedialog.saveas=Save Figure filedialog.alsorestricted=Also save restricted figure filedialog.options=Saving options filedialog.restrictedmessage=You are working in a restricted session,
so your figure will be save in restricted mode filedialog.filefilter=CaR File (.zir) filedialog.compressedfilefilter=Compressed CaR File (.zirz) filedialog.macrofilefilter=CaR Macro File (.mcr) filedialog.savemessage1=File :\n filedialog.savemessage2=\nalready exists. Do you really want to replace it ? palette.file=File palette.edit=Edit palette.construction=Construction palette.aspect=Aspect & Color palette.history=History palette.sizes=Sizes palette.sizes.point=Point palette.sizes.line=Line palette.sizes.arrow=Arrow palette.sizes.font=Font palette.prec=Numerical precision palette.prec.lengths=Lengths palette.prec.edit=Expressions palette.prec.angles=Angles palette.colors=Background color & image palette.colors.saturated1=Saturated colors palette.colors.desaturated1=Desaturated colors palette.colors.saturated2=Saturated colors 2 palette.colors.desaturated2=Desaturated colors 2 palette.colors.constants=Web constants palette.image.fileerror=You must save this figure before using this tool

After, the picture you will choose must be
in the same directory. palette.info.vector=Vector palette.info.image3=Insert image+with 2 or 3 points palette.info.background=Choose/Clear background image palette.info.imcenter=Center the background image palette.info.imstretch=Stretch the background image+to fit the construction window palette.info.imtile=Tile the background image palette.info.copy=Copy the construction window palette.info.exportpng=Export the construction+window to png format palette.info.exporteps=Export the construction+window to eps format palette.info.newmacro=Create a new macro palette.info.loadmacros=Load a macros file palette.info.manage_macros=Show/Hide the macro panel palette.info.properties_panel=Show/Hide the objects+properties panel palette.info.history_panel=Show/Hide the construction+history panel palette.info.help_panel=Show/Hide the contextual help panel macros.untitledmacro=Untitled Macro macros.untitledfolder=Untitled Folder macros.emptynode=-- Empty -- macros.addfolder=Add new folder macros.deleteselected=Delete selected macros macros.renamemacro=Rename selected macro macros.recordmacro=Record macro macros.initials=Initial objects ? macros.pleaseselect=please select ! macros.finals=Final objects ? macros.cancel=Cancel ? macros.popup.run=Run macro macros.popup.rename=Rename macros.popup.delete=Delete macros.popup.addtolibrary=Add to library macros.popup.removefromlibrary=Remove from library macros.popup.publish=Include in the figure macros.popup.notpublish=Do not include in the figure macros.popup.saveas=Save As... macros.popup.properties=Show properties macros.popup.duplicate=Duplicate macros.savedlog.buttonok=Save macro file macros.question.delete=Are you sure you want to delete these macros ? rene.zirkel.objects.PointObject=Pt rene.zirkel.objects.PrimitiveCircleObject=Cir rene.zirkel.objects.PrimitiveLineObject=Lne rene.zirkel.objects.ExpressionObject=Exp. rene.zirkel.objects.FixedAngleObject=Fangle. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=Ray rene.zirkel.objects.TwoPointLineObject=Lne rene.zirkel.objects.FunctionObject=Fct rene.zirkel.objects.AreaObject=Area mi.pal.name=Macros inspector mi.name=Name : mi.comment=Comment : mi.properties=Parameters properties : mi.hideproperties=Targets properties : mi.hideduplicates=Hide duplicates mi.apply=Apply mi.tab.type=Type mi.tab.name=Name mi.tab.prompt=Prompt mi.tab.fix=Fix ? mi.tab.ask=Ask ? mi.error.initial=Error : at least one parameter \nhave to be free (no fix, no ask)\n\nThis macro will not be changed props.help=In order to see properties, you must right-clic on an object.

If you create a new object with this panel open, you will be able to change the properties during the creation. props.name=Name : props.alias=Alias : props.unit=Unit : props.fix=Fix : props.expl=Explanation : props.belongto=Layer : props.conditional=Conditional aspect : props.solid=Solid : props.hidden=Hidden : props.normal=Normal : props.bold=Thick : props.thin=Dotted : props.black=Black : props.green=Green : props.blue=Blue : props.brown=Brown : props.cyan=Cyan : props.red=Red : props.showasslider=Slider props.error=There is a syntax error in this expression.
It will be reinitialized props.cartesian=Cartesian function props.parametric=Parametric function props.functiontype=Type : props.killarc=Kill arc props.arc=Arc props.release=Release props.bind=Bind props.setaway=Set away props.setclose=Set close # v1.3 : props.grid=Increment : props.inside=Inside object : props.pointsonly=With points only : props.step=Step : palette.grid=Grid aspect leftpanel.macros=Macros panel leftpanel.properties=Properties panel leftpanel.history=History panel leftpanel.help=Help panel selectpopup.whatobject=which object ? selectpopup.RightClick=Select selectpopup.MoverTool=Move selectpopup.HiderTool=Show/Hide selectpopup.DeleteTool=Delete selectpopup.RenamerTool=Rename selectpopup.EditTool=Edit selectpopup.SetParameterTool=Macro parameters : selectpopup.SetTargetsTool=Macro targets : selectpopup.JSmacroTool=Select palette.info.locus=Locus of point+Envelope of line # v1.4 : menu.special.savezirset=Create slideshow... filedialog.openfolder.title=Slideshow folder selection dialog filedialog.openfolder.approve=Select slideshow folder filedialog.openfolder.saveicons=Also save the restrict icons slideshow.next=next slideshow.previous=previous slideshow.download=Download file slideshow.signature=Slideshow made with # v1.5 : menu.language=Languages menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00e7ais menu.language.es=Espa\u00f1ol menu.language.gl=Galego menu.language.zh_TW=Chinese (Traditional) menu.help.url3=Translate CaRMetal menu.display.smartboard=Smartboard mode # v1.6 : menu.language.no=Norsk palette.info.bi_syma=Reflection palette.info.bi_symc=Symmetry palette.info.bi_trans=Translation palette.info.bi_med=Perpendicular bisector palette.info.bi_biss=Angle bisector palette.info.bi_circ=Circle through 3 points palette.info.bi_arc=Circumcircular arc through 3 points palette.info.bi_t_align=Collinear points ? palette.info.bi_t_para=Parallel lines ? palette.info.bi_t_perp=Perpendicular lines ? palette.info.bi_t_equi=Equidistant from two points ? palette.info.bi_t_app=Lies on a line ? palette.info.bi_t_conf=Points at the same place ? macro.bi_syma.0=Reflection line ? macro.bi_syma.1=Point to reflect ? macro.bi_symc.0=Symmetry center ? macro.bi_symc.1=Point to reflect ? macro.bi_trans.0=First point of the vector ? macro.bi_trans.1=Second point of the vector ? macro.bi_trans.2=Point to translate ? macro.bi_med.0=First point of the segment ? macro.bi_med.1=Second point of the segment ? macro.bi_biss.0=First point ? macro.bi_biss.1=Angle vertex ? macro.bi_biss.2=Last point ? macro.bi_circ.0=First point ? macro.bi_circ.1=Second point ? macro.bi_circ.2=Third point ? macro.bi_t_para.0=First line ? macro.bi_t_para.1=Second line ? macro.bi_t_equi.0=Is this point equidistant ... macro.bi_t_equi.1=From this point ... macro.bi_t_equi.2=And this point ? macro.bi_t_app.0=Which point ? macro.bi_t_app.1=Lies on which line (or segment) ? macro.bi_t_conf.0=Which point ? macro.bi_t_conf.1=Is on which point ? macro.bi_t_align.text0=Points are collinear macro.bi_t_align.text1=Points are not collinear macro.bi_t_para.text0=Objects are parallel macro.bi_t_para.text1=Objects are not parallel macro.bi_t_perp.text0=Objects are perpendicular macro.bi_t_perp.text1=Objects are not perpendicular macro.bi_t_equi.text0=Points are equidistant macro.bi_t_equi.text1=Points are not equidistant macro.bi_t_app.text0=The point lies on the object macro.bi_t_app.text1=The point doesn't lie on the object macro.bi_t_conf.text0=The two points are at the same place macro.bi_t_conf.text1=The two points are not at the same place palette.test=Tests # v1.7 : filedialog.openfolder.appletsize=Applet size : filedialog.openfolder.actualsize=Actual size filedialog.openfolder.other=Other... filedialog.openfolder.selected=Selected folder : filedialog.openfolder.cancel=Cancel menu.file.exportsvg=Export to SVG menu.language.sl=Slovenski menu.language.nl=Nederlands menu.language.pt=Portugu\u00eas props.vars=Variables : menu.objects.points=Points menu.objects.lines=Lines menu.objects.segments=Segments menu.objects.circles=Circles and conics menu.objects.angles=Angles menu.objects.tracks=Tracks and locus menu.objects.functions=Functions and expressions palette.info.function_u=User defined function palette.info.function=Display function+or parametric curve props.superhidden=Completely hidden : props.showvalue=Show value : props.showname=Show name : props.background=Background : macro.bi_expression.0=Anchor point ? # v1.9a : menu.help.licence=Licence... licence.txt=

This program is free software under GNU-GPL licence, which means you can redistribute it and/or modify it under the terms of the licence published by the Free Software Foundation;
See :

# v2.0 : menu.special.theme=Themes menu.special.theme.gray=Polished metal menu.special.theme.brushed=Brushed metal menu.special.options=Preferences... menu.special.options.sizes=Sizes menu.special.options.sizes.minpointsize=Point size menu.special.options.sizes.minlinesize=Line size menu.special.options.sizes.arrowsize=Arrow size menu.special.options.sizes.minfontsize=Font size menu.special.options.sizes.digits.lengths=Length precision menu.special.options.sizes.digits.edit=Expression precision menu.special.options.sizes.digits.angles=Angle precision menu.special.options.colors=Colors menu.special.options.others=Others menu.special.options.others.undock=Able to undock palettes # v2.1 : menu.file.close=Close window # v2.3 : alert.toomuchwins=There are too many open windows :
please close some of them before opening
a new one # v2.4 : menu.file.new3D=New 3D figure palette.3D=3D palette.info.bi_3Dcoords=3D coordinates macro.bi_3Dcoords.0=Anchor point ? palette.info.bi_3Dcube=Cube macro.bi_3Dcube.0=Center of cube ? palette.info.bi_3Darete=3D edges macro.bi_3Darete.0=First point ? macro.bi_3Darete.1=Second point ? macro.bi_3Darete.2=Third point ? macro.bi_3Darete.3=Forth point ? palette.info.bi_3Dtetra=Regular tetrahedon macro.bi_3Dtetra.0=Center of tetrahedon ? menu.newdoc=New menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=Aspect of palette.aspect.label.point=points palette.aspect.label.line=lines palette.aspect.label.segment=segments palette.aspect.label.circle=circles palette.aspect.label.angle=angles palette.aspect.label.area=polygons palette.aspect.label.text=texts palette.info.bi_3Ddode=Regular dodecahedron macro.bi_3Ddode.0=Center of dodecahedron ? # v2.7 : palette.aspect.label.pointshape=Points shape & name : palette.aspect.label.locus=loci menu.edit.deleteall=Delete all # v2.7.1 : java.old.message=Sorry, you can't start CaRMetal program, because your java version is too old ! java.old.quit=Quit java.old.go=Download new java version palette.info.boundedpoint=Place a point into a plane+or onto a polyhedron face #v2.7.2 : user.foldername=CarMetal User Profile #v2.8 props.fixedray=Ray : props.fixedsegment=Length : props.fixedangle=Angle : props.expl=Comment line : props.aspecttab=Aspect props.numerictab=Numeric props.conditionaltab=Conditional props.thick=Thick : props.popup.special=Special Characters props.popup.functions=Predefined functions props.popup.latex=LaTeX commands menu.language.pl=Polski #v2.8.1 props.fixedinwindow=Linked to window #v2.8.5 palette.controls=Controls props.ctrlshowvalue=Show value props.ctrlsnap=Snap to ticks props.ctrlshowticks=Show ticks props.ctrltickspacing=Increment : palette.info.ctrl_edit=Edit, move or resize control palette.info.ctrl_chkbox=Add CheckBox palette.info.ctrl_popup=Add Popup Menu palette.info.ctrl_slider=Add Slider #v2.8.6 props.trackdmin=Number of steps : opendialog.preview=Preview : pngdialog.options=Export options : pngdialog.scale=Scale : pngdialog.originsize=Original size : pngdialog.scaledsize=Scaled size : #v2.8.7 canvas.3D.floor=Floor canvas.3D.system=Coordinate system canvas.3D.rightclic=Use right-clic-drag to rotate the coordinate system #v2.8.8 palette.info.equationxy=Implicit curve defined by f(x,y)=0 props.equationxy=Equation : props.equationxychooser=Precision : palette.function=Functions & locus #v2.8.9 menu.edit.deletealltracks=Clear tracks menu.edit.deactivatealltracks=Deactivate tracks props.tracks=Activate track menu.edit.zoom=Zoom or move #v2.9.0 menu.windows=Window #v2.9.1 contexthelp.seealso=See also : #v2.9.2 menu.language.pt_BR=Brazilian menu.display.restrictmessage.dontdisplay=Don't display this message anymore #v2.9.6 props.magnetmessage=Clic on the objects you want to add to (or remove from) the magnetic list props.magnetobj=Magnetic objects props.magnetpix=Attraction (20 px) : props.show=Show #v2.9.7 palette.info.ctrl_txtfield=Add Numerical Input Box palette.info.ctrl_button=Add Button #v2.9.8.4 JSerror.title=Syntax error JSerror.line=line JSerror.pointcoords=Syntax error in the coordinates of point JSerror.interactiveinput=Error during selection of the object JSerror.notfound=Object not found JSerror.notgoodtype=Impossible to apply to this type of object JScmd.inputmessage=Your question ? JScmd.promptmessage=Your message... menu.js=Javascript menu.js.script=Open javascript file... menu.js.command=Open the script editor JSeditor.title=Javascript editor #v3.0 JSeditor.save=Save script JSeditor.open=Open script JSeditor.opendlogmsg=Open script JSeditor.savedlogmsg=Save script JSeditor.format=Format script JSeditor.restore=Cancel last run JSeditor.run=Run script JSeditor.help=Get syntax help JSEditor.comment=Comment/Uncomment selection JSEditor.savequestion=This script has changed : would you like to save it ? menu.language.ar_TN=Arabic # v3.1.1 menu.js.define=Define scripts folder... menu.js.dumb=Execute favorites scripts without editor JSeditor.opendfavfolder=Select script folder JSeditor.saveas=Save script as... # v3.5 menu.language.sv=Svenska tab.popup.newfigure=New figure tab.popup.rename=Rename figure tab.popup.duplicate=Duplicate figure tab.popup.openworkbook=Open workbook... tab.popup.saveworkbookas=Save workbook as... tab.popup.saveworkbook=Save workbook tab.newfigurebasename=Figure workbook.workbookmode=Workbook mode workbook.savequestion=This Workbook have been modified. Do you want to save it ? progressbar.loadmessage=Loading file : please wait... progressbar.workbookloadmessage=Loading workbook : please wait... progressbar.workbooksavemessage=Saving workbook : please wait... macro.creationdlog.title=Macro creation macros.name=Macro name ? JSmenu.cancel=Cancel last run JSmenu.add=Add new script JSmenu.modify=Modify script JSmenu.delete=Delete script JSeditor.saveinfig.question=Enter script name : JSeditor.saveinfig.title=Save script to current file JSeditor.saveinfig=Save script to current file JSeditor.infig=File included script : menu.js.newscriptinconstruction=New script in construction... menu.workbook.saveas=Save Workbook As... media.saveas=Images were found in open constructions,
so you're going to save files in a same workbook. menu.display.comment=Show/Hide comments menu.display.palette=Show/Hide palette menu.display.leftpanel=Show/Hide left panel comment.emptycomment= menu.export.workbook=Workbook HTML page export menu.export.workbook.error=You must menu.assigment=Exercise JSerror.condition=Conditional expression error filedialog.workbook=CaRMetal workbook (.zirs) filedialog.job=CaRMetal exercise (.job) filedialog.js=CaRMetal scripts (.js) filedialog.allfiles=CaRMetal files (.zirs,.zir,.zirz,.mcr,.job,.js) tab.popup.savefileonly=Save figure animation.run=Start Animations animation.stop=Stop Animations animation.speed=Animations Speed animation.removeall=Remove All Animations animation.reverse=Reverse Animations restrict.title=Restricted environment manager menu.display.restrictedenvironment=Restricted environment manager restrict.ok=Ok restrict.cancel=Cancel restrict.activate=Activate restricted environment restrict.factory=Factory settings restrict.comment=In order to select or deselect easily multiple palette tools, you can use a right-click/drag on icons. restrict.menubar=Display menu bar restrict.librarymacros=Allow library macros menu.help.opendefaultfolder=Open configuration folder monkey.btn.tooltip=Shaking construction job.message.ok=Well Done ! job.message.failed=Invalid construction... job.gui.hidebox=Hide target objects job.gui.ok=Success message : job.gui.failed=Failed message : job.gui.targets=Targets list : click here to select job.gui.close=Create job.gui.delete=Remove job.gui.valid=Verify construction job.gui.restore=Back to origin job.gui.exercise=This is an exercise : job.gui.progressmessage=Construction checking in progress job.gui.alignment=but construction is not valid in some alignment cases job.gui.title=Exercise editor restrict.historypanel=Allow history panel display restrict.macropanel=Allow macro panel display restrict.helppanel=Allow help panel display restrict.failed.percent=the recorded failure rate was : restrict.failed.initial=failed in initial position # v3.5.3 job.gui.staticjob=Static exercise # v3.5.5 menu.edit.copyURL=Copy workbook as URL palette.aspect.label.image=images canvas.copy.message=Release mouse to copy selection. ESC : Cancel | MAJ : Square | ALT : 10 x 10 increment. menu.file.newDP=New hyperbolic geometry figure palette.info.DP_line=Hyperbolic line palette.info.DP_midpoint=Hyperbolic midpoint palette.info.DP_bi_syma=Hyperbolic reflection palette.info.DP_bi_symc=Hyperbolic symmetry palette.info.DP_plumb=Hyperbolic perpendicular line palette.info.DP_bi_med=Hyperbolic perpendicular bissector palette.info.DP_bi_biss=Hyperbolic angle bissector palette.info.DP_segment=Hyperbolic segment palette.info.DP_ray=Hyperbolic ray palette.info.DP_angle=Hyperbolic angle palette.info.DP_circle=Hyperbolic circle palette.info.DP_bi_distance=Hyperbolic distance palette.info.DP_bi_perp_common=Hyperbolic common perpendicular palette.info.DP_bi_lineIP=Hyperbolic line with points at infinity palette.info.DP_bi_horocycle=Horocycles through 2 points palette.info.DP_bi_equidistante=Equidistant to a line through 1 point palette.info.DP_fixedangle=Fixed hyperbolic angle palette.info.DP_bi_circ=Hyperbolic circle through 3 points macro.DP_line.1=First point of hyperbolic line macro.DP_line.2=Second point of hyperbolic line macro.DP_midpoint.1=First point macro.DP_midpoint.2=Second point macro.DP_bi_syma.1=Hyperbolic line macro.DP_bi_syma.2=Point macro.DP_bi_symc.1=Center macro.DP_bi_symc.2=Point macro.DP_plumb.1=Hyperbolic line macro.DP_plumb.2=Point macro.DP_bi_med.1=First point macro.DP_bi_med.2=Second point macro.DP_bi_biss.1=First point macro.DP_bi_biss.2=Angle vertex macro.DP_bi_biss.3=Third point macro.DP_segment.1=First point macro.DP_segment.2=Second point macro.DP_ray.1=First point macro.DP_ray.2=Second point macro.DP_angle.1=First point macro.DP_angle.2=Angle vertex macro.DP_angle.3=Third point macro.DP_circle.1=Center point macro.DP_circle.2=Second point macro.DP_bi_distance.1=Premier point macro.DP_bi_distance.2=Second point macro.DP_bi_distance.3=Anchor point to display the distance macro.DP_bi_perp_common.1=First hyperbolic line macro.DP_bi_perp_common.2=Second hyperbolic line macro.DP_bi_lineIP.1=First point macro.DP_bi_lineIP.2=Second point macro.DP_bi_horocycle.1=First point macro.DP_bi_horocycle.2=Second point macro.DP_bi_equidistante.1=Hyperbolic line macro.DP_bi_equidistante.2=A point on the equidistant macro.DP_fixedangle.1=First point macro.DP_fixedangle.2=Angle vertex macro.DP_fixedangle.3=Angle value macro.DP_bi_circ.1=First point macro.DP_bi_circ.2=Second point macro.DP_bi_circ.3=Third point canvas.DP.message1=The circle is the horizon of Poincar\u00e9 circle. canvas.DP.message2=Use "Construction" palette zone to add objects to this hyperbolic plane. JSmenu.ScriptsManager=Scripts Manager JSmenu.up=Up JSmenu.down=Down JSmenu.rename=Rename : JSmenu.killall=Kill all threads JSmenu.stopall=Stop all threads JSmenu.restartall=Restart all threads palette.construction.euclidian=Euclidian tools JSmenu.executeonstart=Script runs when file open JSmenu.dragaction=Clic or drag : palette.sizes.selectionsize=Selection palette.sizes.monkeyspeed=Monkey JSmenu.dragaction.message=Select points or buttons to which you want to attach this script splash.message=Dynamic geometry software #v3.6.2 palette.sizes.gridopacity=Grid #v3.6.3 menu.file.exportpdf=Export to PDF filedialog.allexportfiles=Images (.pdf,.eps,.svg,.png) menu.edit.copyto=Copy to palette.info.select=Selection zone+for export and copy palette.info.DP_bi_pinceau1=Hyperbolic pencil by one point macro.DP_bi_pinceau1.1=First hyperbolic line macro.DP_bi_pinceau1.2=Second hyperbolic line macro.DP_bi_pinceau1.3=Point palette.info.DP_bi_pinceau3=Hyperbolic pencils product macro.DP_bi_pinceau3.1=First hyperbolic line macro.DP_bi_pinceau3.2=Second hyperbolic line macro.DP_bi_pinceau3.3=Third hyperbolic line palette.info.DP_bi_pinceauinter=Hyperbolic intersection of two pencils macro.DP_bi_pinceauinter.1=First hyperbolic line macro.DP_bi_pinceauinter.2=Second hyperbolic line macro.DP_bi_pinceauinter.3=Third hyperbolic line macro.DP_bi_pinceauinter.4=Forth hyperbolic line palette.info.DP_bi_pinceauhauteur=Perpendicular from a pencil macro.DP_bi_pinceauhauteur.1=First brush hyperbolic line macro.DP_bi_pinceauhauteur.2=Second brush hyperbolic line macro.DP_bi_pinceauhauteur.3=Hyperbolic perpendicular line palette.info.DP_bi_pinceaucycle=Hyperbolic cycle by pencil and point macro.DP_bi_pinceaucycle.1=First brush hyperbolic line macro.DP_bi_pinceaucycle.2=Second brush hyperbolic line macro.DP_bi_pinceaucycle.3=Point palette.info.DP_bi_pinceaubiss=Hyperbolic bissector macro.DP_bi_pinceaubiss.1=First hyperbolic line macro.DP_bi_pinceaubiss.2=First point at infinity of line 1 macro.DP_bi_pinceaubiss.3=Second point at infinity of line 1 macro.DP_bi_pinceaubiss.4=Second hyperbolic line macro.DP_bi_pinceaubiss.5=First point at infinity of line 2 macro.DP_bi_pinceaubiss.6=Second point at infinity of line 2 menu.language.ru_RU=Russian #v3.7.2 JSFonctions.Input=Input JSFonctions.Print=Print JSFonctions.Println=Println JSFonctions.Alert=Alert JSFonctions.ifelse=if... else JSFonctions.switchcase=switch case JSFonctions.for=for JSFonctions.while=while JSFonctions.dowhile=do{...} while() JSFonctions.function=function{...} #v3.7.6 menu.export.embedworkbook=Embed workbook in HTML page menu.edit.copyapplettag=Copy applet tag #v3.8 menu.network=Network network.menu.launch=Launch / Shut down server network.menu.connect=Login to server / Logout network.server.title=Server network.server.ip=Local IP network.server.launch=Launch network.server.receive=Receive only (Global) network.server.circles=Circles network.server.functions=Functions network.server.rtw=Real Time View network.server.send=Send to : network.server.all=All network.client.title=Connection manager network.client.Name=Name : network.client.name= network.client.ip=Server IP : network.client.port=Port : network.client.connect=Connect network.client.sendwork=Send all work network.client.share=Share #v4.0 JSFonctions.dountil=do{...} until(); palette.info.vector3D=Vector palette.info.midpoint3D=Midpoint 3D palette.info.segment3D=Segment 3D palette.info.line3D=Line 3D palette.info.ray3D=Ray 3D palette.info.area3D=Polygon 3D props.fixedsegment3D=Length3D : palette.info.bi_3Dsymp=Reflection to a plan palette.info.bi_3Dproj=Projection to a plan palette.info.bi_3Dsymc=3D Symmetry palette.info.bi_3Dtrans=3D Translation palette.info.bi_3Dcircle1=Circle 3D given axis through 1 point palette.info.bi_3Dcircle2=Circle 3D given axis, center and radius palette.info.bi_3Dcircle3pts=Circle 3D through 3 points palette.info.bi_3Dplandroite=Intersection of a plane and a line palette.info.bi_3Dplanplan=Intersection of two planes palette.info.bi_3Dsphererayon=Sphere with fixed radius palette.info.bi_3Dspherepoint=Sphere through a point palette.info.bi_3Dspheredroite=Intersection of a sphere and a line palette.info.bi_3Dsphereplan=Intersection of a sphere and a plane palette.info.bi_3Dspheresphere=Intersection of two spheres macro.bi_3Dsymp.0=Plane of Reflection : First point ? macro.bi_3Dsymp.1=Plane of Reflection : Second point ? macro.bi_3Dsymp.2=Plane of Reflection : Third point ? macro.bi_3Dsymp.3=Point to reflect ? macro.bi_3Dproj.0=Projection Plane : First point ? macro.bi_3Dproj.1=Projection Plane : Second point ? macro.bi_3Dproj.2=Projection Plane : Third point ? macro.bi_3Dproj.3=Point to project ? macro.bi_3Dsymc.0=Symmetry center ? macro.bi_3Dsymc.1=Point to reflect ? macro.bi_3Dtrans.0=First point of the vector ? macro.bi_3Dtrans.1=Second point of the vector ? macro.bi_3Dtrans.2=Point to translate ? macro.bi_3Dcircle1.0=Circle axis ? macro.bi_3Dcircle1.1=Point to go through ? macro.bi_3Dcircle2.0=Circle axis (direction) ? macro.bi_3Dcircle2.1=Circle center ? macro.bi_3Dcircle2.2=Numeric radius ? macro.bi_3Dcircle3pts.0=First point ? macro.bi_3Dcircle3pts.1=Second point ? macro.bi_3Dcircle3pts.2=Third point ? macro.bi_3Dplandroite.0=Plan : first point ? macro.bi_3Dplandroite.1=Plan : second point ? macro.bi_3Dplandroite.2=Plan : third point ? macro.bi_3Dplandroite.3=Line ? macro.bi_3Dplanplan.0=Plane 1 : first point ? macro.bi_3Dplanplan.1=Plane 1 : second point ? macro.bi_3Dplanplan.2=Plane 1 : third point ? macro.bi_3Dplanplan.3=Plane 2 : first point ? macro.bi_3Dplanplan.4=Plane 2 : second point ? macro.bi_3Dplanplan.5=Plane 2 : third point ? macro.bi_3Dsphererayon.0=Center of the sphere ? macro.bi_3Dspherepoint.0=Center of the sphere ? macro.bi_3Dspherepoint.1=Going through point ? macro.bi_3Dspheredroite.0=Sphere ? macro.bi_3Dspheredroite.1=Line ? macro.bi_3Dsphereplan.0=Sphere ? macro.bi_3Dsphereplan.1=Plane : first point ? macro.bi_3Dsphereplan.2=Plane : second point ? macro.bi_3Dsphereplan.3=Plane : third point ? macro.bi_3Dspheresphere.0=Sphere 1 ? macro.bi_3Dspheresphere.1=Sphere 2 ? palette.info.bi_3Docta=Regular octahedon macro.bi_3Docta.0=Center of the ooctahedon ? palette.info.bi_3Disoc=Regular icosahedon macro.bi_3Disoc.0=Center of the icosahedon ? palette.info.angle3D=Angle 3D palette.info.intersection3D=3D curves intersection JSeditor.choseGenerator=switch beginners mode (checked) / standart mode (not checked) aerialview=aerial view frontview=front view rightview=right view backview=back in mobile view #v4.0.3.2 JSeditor.tortue=Create the turtle and/or Fix it to a point JSeditor.avancer=Move Forward JSeditor.reculer=Move Backward JSeditor.tournerG=Turn Left JSeditor.tournerD=Turn Right JSeditor.vitesse=Fix the speed of the turtle JSeditor.crayonB=Pen down JSeditor.crayonH=Pen up JSeditor.cacher=Hide the turtle JSeditor.montrer=Show the turtle JSeditor.orienter=Orientate the turtle JSeditor.viser=Orientate the turtle towards a point JSeditor.avancer2=Move Forward and return the reached point JSeditor.avancer3=Move Forward and return the segment run JSeditor.avancer4=Move Forward and return the reached point and the segment run JSeditor.reculer2=Move Backward and return the reached point JSeditor.reculer3=Move Backward and return the segment run JSeditor.reculer4=Move Backward and return the reached point and the segment run JSeditor.tournerG3D=Turn Left JSeditor.tournerD3D=Turn Right JSeditor.pivoterH=Pitch Up JSeditor.pivoterB=Pitch Down JSeditor.pivoterG=Roll Left JSeditor.pivoterD=Roll Right #v4.2.8 JSeditor.choseFrench=switch code in french (checked) / code in english (not checked)carmetal-4.3/src/eric/docs/JZirkelProperties_ar_TN.properties000066400000000000000000001172571417122252700244610ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=\u0645\u0644\u0641 menu.file.new=\u0634\u0643\u0644 \u062C\u062F\u064A\u062F menu.file.load=\u0641\u062A\u062D... menu.file.save=\u062D\u0641\u0638 menu.file.saveas=\u062D\u0641\u0638 \u0628\u0625\u0633\u0645 menu.file.exportpng=PNG \u062A\u0635\u062F\u064A\u0631 \u0628\u0635\u064A\u063A\u0629 menu.file.exporteps=EPS \u062A\u0635\u062F\u064A\u0631 \u0628\u0635\u064A\u063A\u0629 menu.file.quit=\u062E\u0631\u0648\u062C menu.edit=\u062A\u062D\u0631\u064A\u0631 menu.edit.copy=\u0646\u0633\u062E menu.edit.move=\u062D\u0631\u0643 \u0639\u0646\u0635\u0631 menu.edit.rename=\u0625\u0639\u0627\u062F\u0629 \u062A\u0633\u0645\u064A\u0629 menu.edit.edit=\u062A\u063A\u064A\u064A\u0631 menu.edit.hide=\u0625\u062E\u0641\u0627\u0621 menu.edit.delete=\u062D\u0630\u0641 menu.display=\u0639\u0631\u0636 menu.display.hidden=\u0625\u0638\u0647\u0627\u0631\ \u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u0639\u0646\u0627\u0635\u0631\u0627\u0644\u063A\u064A\u0631 \u0645\u0631\u0626\u064A\u0629 menu.display.grid=\u0625\u0638\u0647\u0627\u0631\ \u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u0634\u0628\u0643\u0629 menu.display.finegrid=\u0627\u0644\u0645\u062D\u0627\u0648\u0631 \u0641\u0642\u0637 menu.display.leftsnap=\u0634\u0628\u0643\u0629 \u0645\u063A\u0646\u0627\u0637\u064A\u0633\u064A\u0629 menu.display.manage_macros=\u0644\u0648\u062D\u0629 \u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 menu.display.history_panel=\u0645\u0631\u0627\u062D\u0644 \u0627\u0644\u0628\u0646\u0627\u0621 menu.display.help_panel=\u0644\u0648\u062D\u0629 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 menu.display.properties_panel=\u0644\u0648\u062D\u0629 \u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0635\u0631 menu.display.small=\u0623\u064A\u0642\u0648\u0646\u0627\u062A \u0635\u063A\u064A\u0631\u0629 menu.display.medium=\u0623\u064A\u0642\u0648\u0646\u0627\u062A \u0645\u062A\u0648\u0633\u0637\u0629 menu.display.large=\u0623\u064A\u0642\u0648\u0646\u0627\u062A \u0643\u0628\u064A\u0631\u0629 menu.display.restrictedpalette=\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0644\u0648\u062D\u0629 \u0630\u0627\u062A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629 menu.display.restrictedpaletteedit= \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u0644\u0648\u062D\u0629 \u0630\u0627\u062A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629 menu.display.restrictmessage=
\u0647\u0630\u0647 \u0627\u0644\u0645\u064A\u0632\u0629 \u062A\u0645\u0643\u0646\u0643 \u0645\u0646 \u0631\u0624\u064A\u0629  \u0627\u0644\u0644\u0648\u062D\u0629 \u0630\u0627\u062A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629
\u0644\u0627 \u062A\u062E\u0635  \u0625\u0644\u0627 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u062D\u0627\u0644\u064A
\u0639\u0646\u062F \u0627\u0644\u062D\u0641\u0638\u060C \u064A\u0645\u0643\u0646\u0643 \u0625\u062E\u062A\u064A\u0627\u0631"\u062D\u0641\u0638 \u0627\u0627\u0644\u0634\u0643\u0644 \u0623\u064A\u0636\u0627 \u0628\u0623\u062F\u0648\u0627\u062A \u0645\u062E\u062A\u0627\u0631\u0629"
\u0645\u0644\u0641\u0627\u0646 \u0633\u064A\u0642\u0639 \u0625\u0646\u0634\u0627\u0626\u0647\u0645\u0627 : \u0627\u0644\u0623\u0648\u0651\u0644 \u0628\u0635\u064A\u063A\u0629 (zir.)\u0633\u064A\u0641\u062A\u062D \u0641\u064A \u0634\u0643\u0644 \u0639\u0627\u062F\u064A
\u0648 \u0627\u0644\u062B\u0627\u0646\u064A \u0628\u0635\u064A\u063A\u0629(.r.zir) \u0633\u064A\u0641\u062A\u062D \u0628\u0623\u062F\u0648\u0627\u062A \u0645\u062E\u062A\u0627\u0631\u0629
menu.macros=\u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 menu.special=\u062E\u0627\u0635 menu.special.newmacro=\u0625\u0646\u0634\u0627\u0621 \u0623\u062F\u0627\u0629 \u062C\u062F\u064A\u062F\u0629 menu.special.loadmacros=\u0641\u062A\u062D \u0623\u062F\u0627\u0629 \u062C\u062F\u064A\u062F\u0629... menu.special.definejob=\u062A\u062D\u062F\u064A\u062F \u062A\u0645\u0631\u064A\u0646 menu.special.loadjob=\u0641\u062A\u062D \u062A\u0645\u0631\u064A\u0646... menu.special.jobcomment=\u062D\u0631\u0631 \u0646\u0635 \u0627\u0644\u062A\u0645\u0631\u064A\u0646 menu.special.testjob=\u0627\u062E\u062A\u0628\u0631 \u0647\u0630\u0627 \u0627\u0644\u062A\u0645\u0631\u064A\u0646 menu.special.savejob=\u062D\u0641\u0638 \u0643\u062A\u0645\u0631\u064A\u0646 menu.special.export=\u0625\u0646\u0634\u0627\u0621 \u0635\u0641\u062D\u0629 \u0648\u0627\u0628 \u0648 \u0631\u0624\u064A\u062A\u0647\u0627 \u0641\u064A \u0627\u0644\u0645\u062A\u0635\u0641\u062D menu.special.exporttemplate=\u062A\u0635\u062F\u064A\u0631 \u0644\u0644\u0648\u0627\u0628 \u0645\u0639 \u0646\u0645\u0627\u0630\u062C menu.help=\u0645\u0633\u0627\u0639\u062F\u0629 menu.help.about=CaRMetal\u062A\u0639\u0644\u064A\u0645\u0627\u062A \u0639\u0646 menu.help.info=\u0645\u0633\u0627\u0639\u062F\u0629 \u0646\u0635\u064A\u0629 menu.help.url0=CaRMetal \u0645\u0648\u0642\u0639 menu.help.url1=CARzine \u0645\u0648\u0642\u0639 menu.help.url2=C.a.R.\u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u0631\u0633\u0645\u064A \u0644\u0640 filedialog.options=\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u062D\u0641\u0638 filedialog.saveas=\u062D\u0641\u0638 \u0627\u0644\u0634\u0643\u0644 filedialog.alsorestricted=\u062D\u0641\u0638 \u0623\u064A\u0636\u0627 \u0627\u0644\u0634\u0643\u0644 \u0628\u0623\u062F\u0648\u0627\u062A \u0645\u062E\u062A\u0627\u0631\u0629 filedialog.restrictedmessage=

\u062D\u0627\u0644\u064A\u0627\u060C \u0627\u0644\u0639\u0645\u0644 \u0641\u064A \u062C\u0644\u0633\u0629 \u062E\u0627\u0635\u0629
\u0633\u064A\u062D\u0641\u0638 \u0627\u0644\u0634\u0643\u0644 \u0628\u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629

filedialog.filefilter=\u0645\u0644\u0641 CaR(.zir) filedialog.compressedfilefilter=(.zirz) \u0645\u0636\u063A\u0648\u0637 CaR \u0645\u0644\u0641 filedialog.macrofilefilter=(.mcr) \u0645\u0644\u0641 \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 filedialog.savemessage1=\n:\u0627\u0644\u0645\u0644\u0641 filedialog.savemessage2=\n \u0645\u0648\u062C\u0648\u062F. \u0647\u0644 \u062A\u0631\u064A\u062F \u062A\u0639\u0648\u064A\u0636\u0647\u061F palette.file=\u0645\u0644\u0641 palette.edit=\u062A\u062D\u0631\u064A\u0631 palette.construction=\u0628\u0646\u0627\u0621 palette.aspect=\u0647\u064A\u0626\u0629 \u0648 \u0644\u0648\u0646 palette.history=\u0627\u0644\u0645\u0631\u0627\u062D\u0644 \u0627\u0644\u0645\u0646\u062C\u0632\u0629 palette.sizes=\u0623\u062D\u062C\u0627\u0645 palette.sizes.point=\u0646\u0642\u0627\u0637 palette.sizes.line=\u062E\u0637\u0648\u0637 palette.sizes.arrow=\u0623\u0633\u0647\u0645 palette.sizes.font=\u0637\u0627\u0642\u0645 \u0627\u0644\u062D\u0631\u0648\u0641 palette.prec=\u0627\u0644\u062F\u0642\u0629 \u0627\u0644\u0631\u0642\u0645\u064A\u0629 palette.prec.lengths=\u0623\u0637\u0648\u0627\u0644 palette.prec.edit=\u0639\u0628\u0627\u0631\u0627\u062A palette.prec.angles=\u0632\u0648\u0627\u064A\u0627 palette.colors=\u0644\u0648\u0646 \u0648 \u0635\u0648\u0631\u0629 palette.colors.saturated1=\u0623\u0644\u0648\u0627\u0646 \u0645\u062D\u062A\u0642\u0646\u0629 palette.colors.desaturated1=\u0623\u0644\u0648\u0627\u0646 \u063A\u064A\u0631 \u0645\u062D\u062A\u0642\u0646\u0629 palette.colors.saturated2=\u0623\u0644\u0648\u0627\u0646 \u0645\u062D\u062A\u0642\u0646\u0629 2 palette.colors.desaturated2=\u0623\u0644\u0648\u0627\u0646 \u063A\u064A\u0631 \u0645\u062D\u062A\u0642\u0646\u0629 2 palette.colors.constants=\u0623\u0644\u0648\u0627\u0646 \u062E\u0627\u0635\u0629 \u0628\u0627\u0644\u0648\u0627\u0628 palette.image.fileerror=

\u064A\u062C\u0628 \u0639\u0644\u064A\u0643 \u062D\u0641\u0638 \u0647\u0630\u0627 \u0627\u0627\u0644\u0634\u0643\u0644 \u0642\u0628\u0644 \u0627\u0633\u062A\u0639\u0645\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0645\u064A\u0632\u0629
\u0648 \u0623\u0646 \u062A\u0643\u0648\u0646 \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u062A\u064A \u0627\u062E\u062A\u0631\u062A\u0647\u0627 \u0645\u0648\u062C\u0648\u062F\u0629
\u0641\u064A \u0646\u0641\u0633 \u0645\u0643\u0627\u0646  \u0627\u0644\u0634\u0643\u0644

palette.info.vector=\u0645\u062A\u0651\u062C\u0647 palette.info.image3=\u0625\u062F\u0631\u0627\u062C \u0635\u0648\u0631\u0629+\u0628\u0640 2 \u0623\u0648 3 \u0646\u0642\u0627\u0637 palette.info.background=\u0627\u062E\u062A\u064A\u0627\u0631\ \u062D\u0630\u0641 \u0635\u0648\u0631\u0629 \u062E\u0644\u0641\u064A\u0629 palette.info.imcenter=\u0648\u0633\u0637 \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u062E\u0644\u0641\u064A\u0629 palette.info.imstretch=\u062A\u0645\u062F\u064A\u062F \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u062E\u0644\u0641\u064A\u0629+\u0644\u062A\u0639\u0628\u0626\u0629 + \u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0628\u0646\u0627\u0621 palette.info.imtile=\u0643\u0631\u0631 \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u062E\u0644\u0641\u064A\u0629 palette.info.copy=\u0627\u0646\u0633\u062E \u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0628\u0646\u0627\u0621+\u0641\u064A \u0627\u0644\u062D\u0627\u0641\u0638\u0629 palette.info.exportpng=PNG \u062A\u0635\u062F\u064A\u0631 \u0627\u0644\u0628\u0646\u0627\u0621+\u0641\u064A \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629 \u0628\u0635\u064A\u063A\u0629 palette.info.exporteps=EPS \u062A\u0635\u062F\u064A\u0631 \u0627\u0644\u0628\u0646\u0627\u0621+\u0641\u064A \u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u062D\u0627\u0644\u064A\u0629 \u0628\u0635\u064A\u063A\u0629 palette.info.newmacro=\u0625\u0646\u0634\u0627\u0621 \u0623\u062F\u0627\u0629 \u062C\u062F\u064A\u062F\u0629 palette.info.loadmacros=\u0641\u062A\u062D \u0645\u0644\u0641 \u0623\u062F\u0627\u0629 \u062C\u062F\u064A\u062F\u0629 palette.info.manage_macros=\u0625\u0638\u0647\u0627\u0631\\u0625\u062E\u0641\u0627\u0621 \u0644\u0648\u062D\u0629+ \u0627\u0644\u062A\u0635\u0631\u0641 \u0641\u064A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 palette.info.properties_panel=\u0625\u0638\u0647\u0627\u0631\\u0625\u062E\u0641\u0627\u0621 \u0644\u0648\u062D\u0629+\u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0635\u0631 palette.info.history_panel=\u0625\u0638\u0647\u0627\u0631\\u0625\u062E\u0641\u0627\u0621 \u0644\u0648\u062D\u0629+\u0645\u0631\u0627\u062D\u0644 \u0627\u0644\u0628\u0646\u0627\u0621 palette.info.help_panel=\u0625\u0638\u0647\u0627\u0631\\u0625\u062E\u0641\u0627\u0621 \u0644\u0648\u062D\u0629+\u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u0627\u0644\u0646\u0635\u064A\u0629 macros.untitledmacro=\u0623\u062F\u0648\u0627\u062A \u062C\u062F\u064A\u062F\u0629 \u0628\u062F\u0648\u0646 \u0639\u0646\u0648\u0627\u0646 macros.untitledfolder= \u0645\u062C\u0644\u062F \u0628\u062F\u0648\u0646 \u0639\u0646\u0648\u0627\u0646 macros.emptynode=\u0641\u0627\u0631\u063A macros.addfolder=\u0623\u0636\u0641 \u0645\u062C\u0644\u062F \u062C\u062F\u064A\u062F macros.deleteselected=\u062D\u0630\u0641 \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 \u0627\u0644\u0645\u0646\u062A\u0642\u0627\u062A macros.renamemacro=\u0625\u0639\u0627\u062F\u0629 \u062A\u0633\u0645\u064A\u0629 \u0627\u0644\u0623\u062F\u0627\u0629 \u0627\u0644\u062C\u062F\u064A\u062F\u0629 \u0627\u0644\u0645\u0646\u062A\u0642\u0627\u0629 macros.recordmacro= \u062D\u0641\u0638 \u0623\u062F\u0627\u0629 \u062C\u062F\u064A\u062F\u0629 macros.initials=\u0639\u0646\u0627\u0635\u0631 \u0625\u0628\u062A\u062F\u0627\u0626\u064A\u0629 \u061F macros.pleaseselect=!\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0646\u062A\u0642\u064A macros.finals=\u0639\u0646\u0627\u0635\u0631 \u0646\u0647\u0627\u0626\u064A\u0629\u061F macros.cancel=\u0625\u0644\u063A\u0627\u0621\u061F macros.popup.run=\u0627\u0633\u062A\u0639\u0645\u0644 \u0627\u0644\u0623\u062F\u0627\u0629 \u0627\u0644\u062C\u062F\u064A\u062F\u0629 macros.popup.rename=\u0625\u0639\u0627\u062F\u0629 \u062A\u0633\u0645\u064A\u0629 macros.popup.delete=\u062D\u0630\u0641... macros.popup.addtolibrary=\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0627\u0644\u0645\u0643\u062A\u0628\u0629 macros.popup.removefromlibrary=\u0633\u062D\u0628 \u0645\u0646 \u0627\u0644\u0645\u0643\u062A\u0628\u0629 macros.popup.publish=\u0625\u062F\u0631\u0627\u062C \u0641\u064A \u0627\u0644\u0634\u0643\u0644 macros.popup.notpublish=\u0639\u062F\u0645 \u0625\u062F\u0631\u0627\u062C\u0647\u0627 \u0641\u064A \u0627\u0644\u0634\u0643\u0644 macros.popup.saveas=\u062D\u0641\u0638 \u0628\u0625\u0633\u0645... macros.popup.properties=\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062E\u0627\u0635\u0628\u0627\u062A macros.popup.duplicate=\u0625\u0639\u0627\u062F\u0629 \u0627\u0633\u062A\u0639\u0645\u0627\u0644 macros.savedlog.buttonok=\u062D\u0641\u0638 \u0645\u0644\u0641 \u0627\u0644\u0623\u062F\u0627\u0629 (\u0627\u0644\u0623\u062F\u0648\u0627\u062A) \u0627\u0644\u062C\u062F\u064A\u062F\u0629 macros.question.delete=\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u062D\u0630\u0641 \u0647\u0630\u0647 \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629\u061F rene.zirkel.objects.PointObject=\u0646\u0642\u0637\u0629 rene.zirkel.objects.PrimitiveCircleObject=\u062F\u0627\u0626\u0631\u0629 rene.zirkel.objects.PrimitiveLineObject=\u0645\u0633\u062A\u0642\u064A\u0645 rene.zirkel.objects.ExpressionObject=\u0646\u0635 rene.zirkel.objects.FixedAngleObject=\u0632\u0627\u0648\u064A\u0629 \u062B\u0627\u0628\u062A\u0629 rene.zirkel.objects.SegmentObject=\u0642\u0637\u0639\u0629 \u0645\u0633\u062A\u0642\u064A\u0645 rene.zirkel.objects.RayObject=\u0634\u0639\u0627\u0639 rene.zirkel.objects.TwoPointLineObject=\u062E\u0637 rene.zirkel.objects.FunctionObject=\u062F\u0627\u0644\u0629 rene.zirkel.objects.AreaObject=\u0645\u0633\u0627\u062D\u0629 mi.pal.name=\u0644\u0648\u062D\u0629 \u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 mi.name=\u0623\u0633\u0645 mi.comment=\u062A\u0639\u0644\u064A\u0642 : mi.properties=\u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0625\u0628\u062A\u062F\u0627\u0626\u064A\u0629: mi.hideproperties=\u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0646\u0647\u0627\u0626\u064A\u0629: mi.hideduplicates=\u0625\u062E\u0641\u0627\u0621 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0645\u062D\u062A\u0645\u0644\u0629 \u0627\u0644\u062A\u0643\u0631\u0627\u0631 mi.apply=\u0637\u0628\u0642 mi.tab.type=\u0646\u0648\u0639 mi.tab.name=\u0623\u0633\u0645 mi.tab.prompt=\u062F\u0639\u0648\u0629 mi.tab.fix=\u062B\u0627\u0628\u062A\u061F mi.tab.ask=\u0627\u0633\u0623\u0644\u061F mi.error.initial=\u062E\u0637\u0623: \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0639\u0646\u0635\u0631 \u0627\u0628\u062A\u062F\u0627\u0626\u064A\n \u064A\u0643\u0648\u0646 \u062D\u0631\u0651\u0627(\u063A\u064A\u0631 \u062B\u0627\u0628\u062A \u060C\u063A\u064A\u0631 \u0645\u0637\u0644\u0648\u0628)\n\n \u0644\u0627 \u062A\u063A\u064A\u064A\u0631 \u064A\u062D\u062F\u062B \u0639\u0644\u0649\n \u0647\u0630\u0647 \u0627\u0644\u0623\u062F\u0627\u0629 \u0627\u0644\u062C\u062F\u064A\u062F\u0629 props.help= \u0644\u0631\u0624\u064A\u0629 \u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0635\u0631\u060C \u0623\u0646\u0642\u0631 \u0639\u0644\u064A\u0647 \u0628\u0627\u0644\u0632\u0631 \u0627\u0644\u0623\u064A\u0645\u0646 \u0644\u0644\u0641\u0623\u0631\u0629
\u0625\u0630\u0627 \u0623\u0646\u0634\u0623\u062A \u0639\u0646\u0635\u0631\u062C\u062F\u064A\u062F \u0628\u0647 \u0646\u0642\u0627\u0637 \u060C \u064A\u0645\u0643\u0646\u0643 \u0631\u0624\u064A\u062A\u0647 \u0648\u062A\u062D\u0631\u064A\u0631 \u062E\u0627\u0635\u064A\u0627\u062A \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0627\u0637 \u062E\u0644\u0627\u0644 \u0627\u0644\u0625\u0646\u0634\u0627\u0621 props.name=:\u0627\u0633\u0645 props.alias=:\u0627\u0633\u0645 \u0645\u0633\u062A\u0639\u0627\u0631 props.unit=:\u0648\u062D\u062F\u0629 props.fix=:\u062B\u0627\u0628\u062A props.expl=:\u062A\u0641\u0633\u064A\u0631 props.belongto=:\u0637\u0628\u0642\u0629 props.conditional=:\u0647\u064A\u0626\u0629 \u0645\u0634\u0631\u0648\u0637\u0629 props.solid=:\u0643\u062B\u064A\u0641 props.hidden=:\u0645\u062E\u0641\u064A props.normal=:\u0639\u0627\u062F\u064A props.bold=:\u0633\u0645\u064A\u0643 props.thin=:\u0645\u0646\u0642\u0637 props.black=:\u0623\u0633\u0648\u062F props.green=:\u0623\u062E\u0636\u0631 props.blue=:\u0623\u0632\u0631\u0642 props.brown=:\u0628\u0646\u064A props.cyan=:\u0633\u0645\u0627\u0648\u064A props.red=:\u0623\u062D\u0645\u0631 props.showasslider=\u0632\u0631 \u0627\u0644\u0645\u062A\u063A\u064A\u0631\u0627\u062A props.error=

\u0647\u0646\u0627\u0643 \u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u062A\u0631\u0643\u064A\u0628\u0629 \u0627\u0644\u0639\u0644\u0645\u064A\u0629.
\u0633\u062A\u062A\u0645 \u0645\u0639\u0627\u0644\u062C\u062A\u0647\u0627.

props.cartesian=\u062F\u0627\u0644\u0629 \u062F\u064A\u0643\u0627\u0631\u062A\u064A\u0629 props.parametric= \u062F\u0627\u0644\u0629 \u0648\u0633\u064A\u0637\u064A\u0629 props.functiontype=:\u0646\u0648\u0639 props.killarc=\u062D\u0630\u0641 \u0642\u0648\u0633 props.arc=\u0642\u0648\u0633 props.release=\u0641\u0635\u0644 props.bind=\u0631\u0628\u0637 props.setaway=\u0628\u0639\u064A\u062F \u0639\u0646 props.setclose=\u0642\u0631\u064A\u0628 \u0645\u0646 # v1.3 : props.grid=:\u0632\u064A\u0627\u062F\u0629 props.inside=:\u062F\u0627\u062E\u0644 \u0627\u0644\u0639\u0646\u0635\u0631 props.pointsonly=:\u0628\u0627\u0644\u0646\u0642\u0627\u0637 \u0641\u0642\u0637 props.step=:\u062E\u0637\u0648\u0629 palette.grid=\u0647\u064A\u0626\u0629 \u0627\u0644\u0634\u0628\u0643\u0629 leftpanel.macros=\u0644\u0648\u062D\u0629 \u0627\u0644\u062A\u0635\u0631\u0641 \u0641\u064A \u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 leftpanel.properties=\u0644\u0648\u062D\u0629 \u062E\u0627\u0635\u064A\u0627\u062A \u0627\u0644\u0639\u0646\u0627\u0635\u0631 leftpanel.history=:\u0644\u0648\u062D\u0629 \u0627\u0644\u0645\u0631\u0627\u062D\u0644 \u0627\u0644\u0645\u0646\u062C\u0632\u0629 leftpanel.help=:\u0644\u0648\u062D\u0629 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 selectpopup.whatobject= \u0623\u064A \u0639\u0646\u0635\u0631\u061F selectpopup.RightClick=:\u0627\u0646\u062A\u0642\u064A selectpopup.MoverTool=\u062D\u0631\u0643 selectpopup.HiderTool=\u0627\u062E\u0641\u0627\u0621\\u0625\u0638\u0647\u0627\u0631 selectpopup.DeleteTool= \u062D\u0630\u0641 selectpopup.RenamerTool=\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u062A\u0633\u0645\u064A\u0629 selectpopup.EditTool=\u062A\u062D\u0631\u064A\u0631 selectpopup.SetParameterTool=\u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 \u0627\u0644\u0627\u0628\u062A\u062F\u0627\u0626\u064A\u0629 selectpopup.SetTargetsTool=\u0627\u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u062C\u062F\u064A\u062F\u0629 \u0627\u0644\u0646\u0647\u0627\u0626\u064A\u0629 palette.info.locus=\u0645\u062D\u0644 \u0647\u0646\u062F\u0633\u064A \u0644\u0644\u0646\u0642\u0637\u0629+ \u0645\u062D\u0644 \u0647\u0646\u062F\u0633\u064A \u0644\u0644\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u062A # v1.4 : menu.special.savezirset=: \u0625\u0646\u0634\u0627\u0621 \u0639\u0631\u0636 \u0627\u0644\u0634\u0631\u0627\u0626\u062D filedialog.openfolder.title=\u0641\u064A \u0645\u0631\u0628\u0639 \u0627\u0644\u062D\u0648\u0627\u0631 \u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u062C\u0644\u062F \u0639\u0631\u0636 \u0627\u0644\u0634\u0631\u0627\u0626\u062D filedialog.openfolder.approve=\u0627\u0646\u062A\u0642\u064A \u0645\u062C\u0644\u062F \u0639\u0631\u0636 \u0627\u0644\u0634\u0631\u0627\u0626\u062D filedialog.openfolder.saveicons\u062D\u0641\u0638 \u0623\u064A\u0636\u0627 \u0644\u0623\u062F\u0648\u0627\u062A \u0627\u0644\u0645\u062E\u062A\u0627\u0631\u0629 slideshow.next=\u0627\u0644\u062A\u0627\u0644\u064A slideshow.previous=\u0627\u0644\u0633\u0627\u0628\u0642 slideshow.download=\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0644\u0641 slideshow.signature=:\u0639\u0631\u0636 \u0627\u0644\u0634\u0631\u0627\u0626\u062D \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0629 # v1.5 : menu.language= \u0627\u0644\u0644\u063A\u0627\u062A : menu.help.url3=CaRMetal\u062A\u0631\u062C\u0645 menu.display.smartboard=\u0627\u0644\u0633\u0628\u0648\u0631\u0629 \u0627\u0644\u062A\u0641\u0627\u0639\u0644\u064A\u0629 \u0627\u0644\u0631\u0642\u0645\u064A\u0629 # v1.6 : palette.info.bi_syma=\u0627\u0644\u062A\u0646\u0627\u0638\u0631 \u0627\u0644\u0645\u062D\u0648\u0631\u064A palette.info.bi_symc=\u0627\u0644\u062A\u0646\u0627\u0638\u0631 \u0627\u0644\u0645\u0631\u0643\u0632\u064A palette.info.bi_trans=\u0627\u0646\u0633\u062D\u0627\u0628 palette.info.bi_med=\u0627\u0644\u0645\u0648\u0633\u0637 \u0627\u0644\u0639\u0645\u0648\u062F\u064A palette.info.bi_biss=\u0645\u0646\u0635\u0641 \u0627\u0644\u0632\u0627\u0648\u064A\u0629 palette.info.bi_circ=\u0627\u0644\u062F\u0627\u0626\u0631\u0629 \u0627\u0644\u0645\u062D\u064A\u0637\u0629 palette.info.bi_arc=\u0642\u0648\u0633 \u064A\u0645\u0631 \u0645\u0646 \u062B\u0644\u0627\u062B \u0646\u0642\u0627\u0637 palette.info.bi_t_align=\u0646\u0642\u0627\u0637 \u0639\u0644\u0649 \u0627\u0633\u062A\u0642\u0627\u0645\u0629 \u0648\u0627\u062D\u062F\u0629 \u061F palette.info.bi_t_para=\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u0646 \u0645\u062A\u0648\u0627\u0632\u064A\u0627\u0646 \u061F palette.info.bi_t_perp=\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u0646 \u0645\u062A\u0639\u0627\u0645\u062F\u0627\u0646 \u061F palette.info.bi_t_equi=\u0627\u0644\u0646\u0642\u0637\u0629 \u0645\u062A\u0642\u0627\u064A\u0633\u0629 \u0627\u0644\u0628\u0639\u062F \u0639\u0646 \u0627\u0644\u0646\u0642\u0637\u062A\u064A\u0646 \u0627\u0644\u0622\u062E\u0631\u062A\u064A\u0646\u061F palette.info.bi_t_app=\u062A\u0646\u062A\u0645\u064A \u0625\u0644\u0649 \u0645\u0633\u062A\u0642\u064A\u0645 \u061F palette.info.bi_t_conf=\u0627\u0644\u0646\u0642\u0627\u0637 \u0645\u062A\u0637\u0627\u0628\u0642\u0629\u061F macro.bi_syma.0=\u0645\u062D\u0648\u0631 \u0627\u0644\u062A\u0646\u0627\u0638\u0631\u061F macro.bi_syma.1=\u062A\u0646\u0627\u0638\u0631 \u0645\u062D\u0648\u0631\u064A \u0644\u0623\u064A \u0646\u0642\u0637\u0629\u061F macro.bi_symc.0=\u0645\u0631\u0643\u0632 \u0627\u0644\u062A\u0646\u0627\u0638\u0631\u061F macro.bi_symc.1=\u062A\u0646\u0627\u0638\u0631 \u0645\u0631\u0643\u0632\u064A \u0644\u0623\u064A \u0646\u0642\u0637\u0629\u061F macro.bi_trans.0=\u062D\u062F\u062F \u0623\u0635\u0644 \u0627\u0644\u0645\u062A\u0651\u062C\u0647 \u061F macro.bi_trans.1=\u062D\u062F\u062F \u0637\u0631\u0641 \u0627\u0644\u0645\u062A\u062C\u0651\u0647\u061F macro.bi_trans.2=\u0635\u0648\u0631\u0629 \u0644\u0623\u064A \u0646\u0642\u0637\u0629 \u061F macro.bi_med.0=\u062D\u062F\u062F \u0637\u0631\u0641 \u0627\u0644\u0623\u0648\u0651\u0644 \u0644\u0642\u0637\u0639\u0629 \u0627\u0644\u0645\u0633\u062A\u0642\u064A\u0645\u061F macro.bi_med.1=\u062D\u062F\u062F \u0637\u0631\u0641 \u0627\u0644\u062B\u0627\u0646\u064A \u0644\u0642\u0637\u0639\u0629 \u0627\u0644\u0645\u0633\u062A\u0642\u064A\u0645\u061F macro.bi_biss.0=\u062D\u062F\u062F \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u0623\u0648\u0644\u0649 \u061F macro.bi_biss.1=\u062D\u062F\u062F \u0631\u0623\u0633 \u0627\u0644\u0632\u0627\u0648\u064A\u0629 \u061F macro.bi_biss.2=\u062D\u062F\u062F \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062B\u0627\u0644\u062B\u0629 \u061F macro.bi_circ.0=\u062D\u062F\u062F \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u0623\u0648\u0644\u0649 \u061F macro.bi_circ.1=\u062D\u062F\u062F \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062B\u0627\u0646\u064A\u0629 \u061F macro.bi_circ.2=\u062D\u062F\u062F \u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062B\u0627\u0644\u062B\u0629 \u061F macro.bi_t_para.0=\u062D\u062F\u062F \u0627\u0644\u0645\u0633\u062A\u0642\u064A\u0645 (\u0623\u0648 \u0642\u0637\u0639\u0629 \u0645\u0633\u062A\u0642\u064A\u0645)\u0627\u0644\u0623\u0648\u0644 \u061F macro.bi_t_para.1=\u062D\u062F\u062F \u0627\u0644\u0645\u0633\u062A\u0642\u064A\u0645 (\u0623\u0648 \u0642\u0637\u0639\u0629 \u0645\u0633\u062A\u0642\u064A\u0645)\u0627\u0644\u062B\u0627\u0646\u064A \u061F macro.bi_t_equi.0=...\u0647\u0644 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629 \u0645\u062A\u0642\u0627\u064A\u0633\u0629 \u0627\u0644\u0628\u0639\u062F macro.bi_t_equi.1=...\u0645\u0646 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629 macro.bi_t_equi.2=\u0648 \u0647\u0630\u0647 \u0627\u0644\u0646\u0642\u0637\u0629\u061F macro.bi_t_app.0=\u0623\u064A\u0651 \u0646\u0642\u0637\u0629 \u061F macro.bi_t_app.1=\u062A\u0646\u062A\u0645\u064A \u0644\u0623\u064A\u0651 \u0645\u0633\u062A\u0642\u064A\u0645 ( \u0623\u0648 \u0642\u0637\u0639\u0629 \u0645\u0633\u062A\u0642\u064A\u0645)\u061F macro.bi_t_conf.0=\u0623\u064A\u0651 \u0646\u0642\u0637\u0629 \u061F macro.bi_t_conf.1=\u0645\u062A\u0637\u0627\u0628\u0642\u0629 \u0645\u0639 \u0623\u064A\u0651 \u0646\u0642\u0637\u0629\u061F macro.bi_t_align.text0=\u0627\u0644\u0646\u0642\u0627\u0637 \u0639\u0644\u0649 \u0627\u0633\u062A\u0642\u0627\u0645\u0629 \u0648\u0627\u062D\u062F\u0629 macro.bi_t_align.text1=\u0627\u0644\u0646\u0642\u0627\u0637 \u0644\u064A\u0633\u0648\u0627 \u0639\u0644\u0649 \u0627\u0633\u062A\u0642\u0627\u0645\u0629 \u0648\u0627\u062D\u062F\u0629 macro.bi_t_para.text0=\u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0645\u062A\u0648\u0627\u0632\u064A\u0629 macro.bi_t_para.text1=\u0627\u0644\u0639\u0646\u0627\u0635\u0631\u063A\u064A\u0631\u0645\u062A\u0648\u0627\u0632\u064A\u0629 macro.bi_t_perp.text0=\u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0645\u062A\u0639\u0627\u0645\u062F\u0629 macro.bi_t_perp.text1=\u0627\u0644\u0639\u0646\u0627\u0635\u0631\u063A\u064A\u0631\u0645\u062A\u0639\u0627\u0645\u062F\u0629 macro.bi_t_equi.text0=\u0627\u0644\u0646\u0642\u0627\u0637 \u0645\u062A\u0642\u0627\u064A\u0633\u0629 \u0627\u0644\u0628\u0639\u062F macro.bi_t_equi.text1=\u0627\u0644\u0646\u0642\u0627\u0637 \u063A\u064A\u0631 \u0645\u062A\u0642\u0627\u064A\u0633\u0629 \u0627\u0644\u0628\u0639\u062F macro.bi_t_app.text0=...\u0627\u0644\u0646\u0642\u0637\u0629 \u062A\u0646\u062A\u0645\u064A macro.bi_t_app.text1=...\u0627\u0644\u0646\u0642\u0637\u0629 \u0644\u0627 \u062A\u0646\u062A\u0645\u064A macro.bi_t_conf.text0=\u0627\u0644\u0646\u0642\u0637\u062A\u0627\u0646 \u0645\u062A\u0637\u0627\u0628\u0642\u062A\u0627\u0646 macro.bi_t_conf.text1=\u0627\u0644\u0646\u0642\u0637\u062A\u0627\u0646 \u063A\u064A\u0631 \u0645\u062A\u0637\u0627\u0628\u0642\u062A\u064A\u0646 palette.test=\u0627\u062E\u062A\u0628\u0631 # v1.7 : filedialog.openfolder.appletsize=\u062D\u062C\u0645 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 filedialog.openfolder.actualsize=:\u0627\u0644\u062D\u062C\u0645 \u0627\u0644\u062D\u0627\u0644\u064A filedialog.openfolder.other=...\u063A\u064A\u0631 filedialog.openfolder.selected=:\u0627\u0644\u0645\u062C\u0644\u062F \u0627\u0644\u0645\u062E\u062A\u0627\u0631 filedialog.openfolder.cancel=:\u0627\u0644\u063A\u0627\u0621 menu.file.exportsvg=: SVG \u0635\u062F\u064A\u0631 \u0628\u0635\u064A\u063A\u0629 menu.objects.points=:\u0646\u0642\u0627\u0637 menu.objects.lines=:\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u062A menu.objects.segments=:\u0642\u0637\u0639 \u0645\u0633\u062A\u0642\u064A\u0645\u0627\u062A menu.objects.circles= \u062F\u0648\u0627\u0626\u0631\u0648 \u0645\u062E\u0631\u0648\u0637\u064A\u0627\u062A menu.objects.angles=:\u0632\u0648\u0627\u064A\u0627 menu.objects.tracks=:\u0622\u062B\u0627\u0631 \u0648\u0645\u062D\u0644\u0627\u062A \u0647\u0646\u062F\u0633\u064A\u0629 menu.objects.functions=:\u062F\u0627\u0644\u0627\u062A \u0648 \u0639\u0628\u0627\u0631\u0627\u062A palette.info.function_u=:\u062F\u0627\u0644\u0629 \u064A\u062D\u062F\u062F\u0647\u0627 \u0627\u0644\u0645\u0633\u062A\u0639\u0645\u0644 palette.info.function=\u0631\u0633\u0645 \u062F\u0627\u0644\u0629 +\u0623\u0648 \u0645\u0646\u062D\u0646\u0649 \u0648\u0633\u064A\u0637\u064A props.superhidden=\u0645\u062E\u0641\u064A \u062A\u0645\u0627\u0645\u0627 props.showvalue=\u0627\u0638\u0647\u0627\u0631 \u0627\u0644\u0642\u064A\u0645\u0629 props.showname=\u0627\u0638\u0647\u0627\u0631 \u0627\u0644\u0627\u0633\u0645 props.background=\u062E\u0644\u0641\u064A\u0629 macro.bi_expression.0=\u0646\u0642\u0637\u0629 \u0645\u0631\u0633\u0627\u0629 \u061F # v1.9a : menu.help.licence=\u062A\u0631\u062E\u064A\u0635 licence.txt=

\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C \u0645\u062C\u0627\u0646\u064A  \u0636\u0645\u0646  \u0627\u062A\u0641\u0627\u0642\u064A\u0629 \u0627\u0644\u062A\u0631\u062E\u064A\u0635 \u0627\u0644\u0639\u0645\u0648\u0645\u064A\u0629  GNU-GPL \u060C \u0648 \u0647\u0630\u0627 \u064A\u0639\u0646\u064A  \u064A\u0645\u0643\u0646 \u0625\u0639\u0627\u062F\u0629 \u062A\u0648\u0632\u064A\u0639\u0647 \u0623\u0648 \u062A\u063A\u064A\u064A\u0631\u0647 \u062D\u0633\u0628  \u0634\u0631\u0648\u0637  \u0627\u0644\u0623\u062A\u0641\u0627\u0642\u064A\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0629 \u0645\u0646 \u0637\u0631\u0641 "\u0624\u0633\u0633\u0629 \u0627\u0644\u0628\u0631\u0645\u0627\u062C\u064A\u0627\u062A \u0627\u0644\u062D\u0631\u0651\u0629"
\u0627\u0646\u0638\u0631  :

# v2.0 : menu.special.theme=\u062E\u0644\u0641\u064A\u0627\u062A \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C menu.special.theme.gray=\u0631\u0635\u0627\u0635\u064A menu.special.theme.brushed=\u0631\u0635\u0627\u0635\u064A \u0645\u0635\u0642\u0648\u0644 menu.special.options=...\u0627\u0644\u0645\u0641\u0636\u0644\u0627\u062A. menu.special.options.sizes=\u0627\u0644\u0623\u062D\u062C\u0627\u0645 menu.special.options.sizes.minpointsize= \u062D\u062C\u0645 \u0627\u0644\u0646\u0642\u0627\u0637 menu.special.options.sizes.minlinesize=\u0633\u0645\u0643 \u0627\u0644\u062E\u0637\u0648\u0637 menu.special.options.sizes.arrowsize=\u062D\u062C\u0645 \u0627\u0644\u0623\u0633\u0647\u0645 menu.special.options.sizes.minfontsize=\u062D\u062C\u0645 \u0627\u0644\u062D\u0631\u0648\u0641 menu.special.options.sizes.digits.lengths=\u062F\u0642\u0629 \u0627\u0644\u0623\u0637\u0648\u0627\u0644 menu.special.options.sizes.digits.edit=\u062F\u0642\u0629 \u0627\u0644\u0639\u0628\u0627\u0631\u0627\u062A menu.special.options.sizes.digits.angles=\u062F\u0642\u0629 \u0627\u0644\u0632\u0648\u0627\u064A\u0627 menu.special.options.colors=\u0623\u0644\u0648\u0627\u0646 menu.special.options.others=\u063A\u064A\u0631 menu.special.options.others.undock=\u0625\u0645\u0643\u0627\u0646\u064A\u0629 \u0641\u0635\u0644 \u0627\u0644\u0623\u0644\u0648\u0627\u062D # v2.1 : menu.file.close=\u0623\u063A\u0644\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629 # v2.3 : alert.toomuchwins=

\u0647\u0646\u0627\u0643 \u0627\u0644\u0643\u062B\u064A\u0631 \u0645\u0646 \u0627\u0644\u0646\u0648\u0627\u0641\u0630 \u0627\u0644\u0645\u0641\u062A\u0648\u062D\u0629 :
\u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u063A\u0644\u0627\u0642 \u0627\u0644\u0628\u0639\u0636 \u0645\u0646\u0647\u0627
\u0645\u0646 \u0623\u062C\u0644 \u0641\u062A\u062D \u0627\u0644\u0645\u0632\u064A\u062F....

# v2.4 : menu.file.new3D=\u0645\u0644\u0641 \u062C\u062F\u064A\u062F \u062B\u0644\u0627\u062B\u064A \u0627\u0644\u0623\u0628\u0639\u0627\u062F palette.info.bi_3Dcoords=\u0625\u062D\u062F\u0627\u062B\u064A\u0627\u062A \u062B\u0644\u0627\u062B\u064A\u0629 \u0627\u0644\u0623\u0628\u0639\u0627\u062F macro.bi_3Dcoords.0=\u0646\u0642\u0637\u0629 \u062A\u062B\u0628\u064A\u062A \u0627\u0644\u0625\u062D\u062F\u0627\u062B\u064A\u0627\u062A \u061F palette.info.bi_3Dcube=\u0645\u0643\u0639\u0628 macro.bi_3Dcube.0=\u0645\u0631\u0643\u0632 \u0627\u0644\u0645\u0643\u0639\u0628 palette.info.bi_3Darete=\u062D\u0631\u0641 \u062B\u0644\u0627\u062B\u064A \u0627\u0644\u0623\u0628\u0639\u0627\u062F ( \u0627\u0644\u062A\u0635\u0631\u0641 \u0641\u064A \u0627\u0644\u0645\u0646\u0642\u0648\u0637) macro.bi_3Darete.0=\u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u0623\u0648\u0644\u0649 \u061F macro.bi_3Darete.1=\u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062B\u0627\u0646\u064A\u0629 \u061F macro.bi_3Darete.2=\u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u062B\u0627\u0644\u062B\u0629 \u061F macro.bi_3Darete.3=\u0627\u0644\u0646\u0642\u0637\u0629 \u0627\u0644\u0631\u0627\u0628\u0639\u0629 \u061F palette.info.bi_3Dtetra=\u0631\u0628\u0627\u0639\u064A \u0627\u0644\u0623\u0648\u062C\u0647 \u0645\u0646\u062A\u0638\u0645 macro.bi_3Dtetra.0=\u0645\u0631\u0643\u0632 \u0631\u0628\u0627\u0639\u064A \u0627\u0644\u0623\u0648\u062C\u0647 menu.newdoc=\u062C\u062F\u064A\u062F # v2.5.5 : palette.aspect.label.text_title=\u0647\u064A\u0626\u0629 palette.aspect.label.point=\u0646\u0642\u0627\u0637 palette.aspect.label.line=\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u062A palette.aspect.label.segment=\u0642\u0637\u0639 \u0627\u0644\u0645\u0633\u062A\u0642\u064A\u0645\u0627\u062A palette.aspect.label.circle=\u062F\u0648\u0627\u0626\u0631 palette.aspect.label.angle=\u0632\u0648\u0627\u064A\u0627 palette.aspect.label.area=\u0645\u0636\u0644\u0639\u0627\u062A palette.aspect.label.text=\u0646\u0635\u0648\u0635 palette.info.bi_3Ddode=\u0627\u0644\u0627\u062B\u0646\u0627 \u0639\u0634\u0631\u064A \u0627\u0644\u0623\u0648\u062C\u0647 \u0645\u0646\u062A\u0638\u0645 macro.bi_3Ddode.0=\u0645\u0631\u0643\u0632 \u0627\u0644\u0627\u062B\u0646\u0627 \u0639\u0634\u0631\u064A \u0627\u0644\u0623\u0648\u062C\u0647 # v2.7 : palette.aspect.label.pointshape=:\u0634\u0643\u0644 \u0648 \u0627\u0633\u0645 \u0627\u0644\u0646\u0642\u0627\u0637 palette.aspect.label.locus=\u0645\u062D\u0644\u0651 \u0647\u0646\u062F\u0633\u064A menu.edit.deleteall=\u0645\u0633\u062D \u0643\u0644\u064A # v2.7.1 : jjava.old.message=\u0639\u0641\u0648\u0627 ... \u063A\u064A\u0631 \u0645\u0645\u0643\u0646 \u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062C Carmetal \u0644\u0623\u0646 \u0646\u0633\u062E\u0629 Java \u0639\u064A\u0631 \u0645\u062D\u064A\u0646\u0629... java.old.quit=\u062E\u0631\u0648\u062C java.old.go=Java \u062A\u062D\u0645\u064A\u0644 \u0646\u0633\u062E\u0629 \u062C\u062F\u064A\u062F\u0629 \u0645\u0646 palette.info.boundedpoint=\u0639\u064A\u0651\u0646 \u0646\u0642\u0637\u0629 \u0639\u0644\u0649 \u0627\u0644\u0645\u0633\u062A\u0648\u064A+\u0623\u0648 \u0639\u0644\u0649 \u0648\u062C\u0647 \u0645\u0646 \u062C\u0633\u0645 \u0645\u062A\u0639\u062F\u062F \u0627\u0644\u0623\u0648\u062C\u0647 #v2.7.2 : user.foldername=CaRMetal \u0645\u0639\u0637\u064A\u0627\u062A \u0639\u0646 \u0645\u0633\u062A\u062E\u062F\u0645 #v2.8 props.fixedray=:\u0634\u0639\u0627\u0639 props.fixedsegment=:\u0637\u0648\u0644 props.fixedangle=:\u0632\u0627\u0648\u064A\u0629 props.expl=:\u062A\u0639\u0644\u064A\u0642 props.aspecttab=\u0647\u064A\u0626\u0629 props.numerictab=\u0631\u0642\u0645\u064A props.conditionaltab=\u0634\u0631\u0637\u064A props.popup.special=\u0623\u062D\u0631\u0641 \u062E\u0627\u0635\u0629 props.popup.functions=\u062F\u0627\u0644\u0627\u062A \u0627\u0644\u0645\u062A\u0639\u0627\u0631\u0641 \u0639\u0644\u064A\u0647\u0627 props.popup.latex=LaTex \u0623\u0648\u0627\u0645\u0631 #v2.8.1 props.fixedinwindow=\u0645\u0631\u062A\u0628\u0637 \u0628\u0627\u0644\u0646\u0627\u0641\u0630\u0629 #v2.8.5 palette.controls=\u0627\u0644\u062A\u062D\u0643\u0645 props.ctrlshowvalue=\u0625\u0638\u0647\u0627\u0631 \u062F\u0631\u062C\u0629 \u0627\u0644\u062A\u062D\u0643\u0645 props.ctrlsnap=\u0645\u0631\u062A\u0628\u0637 \u0628\u0627\u0644\u062A\u062F\u0631\u062C props.ctrlshowticks=\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062A\u062F\u0631\u062C props.ctrltickspacing=\u0627\u0644\u0632\u064A\u0627\u062F\u0629 palette.info.ctrl_edit=\u062D\u0631\u0651\u0631\u060C \u062D\u0631\u0643+\u0623\u0648 \u0635\u063A\u0631\\u0643\u0628\u0631 \u0627\u0644\u062A\u062D\u0643\u0645 palette.info.ctrl_chkbox=\u0623\u0636\u0641 \u0645\u0631\u0628\u0639 \u0625\u062E\u062A\u064A\u0627\u0631 palette.info.ctrl_popup=\u0623\u0636\u0641 \u0642\u0627\u0626\u0645\u0629 \u0645\u0646\u0633\u062F\u0644\u0629 palette.info.ctrl_slider= \u0625\u0636\u0627\u0641\u0629 \u0632\u0631 \u0645\u062A\u063A\u064A\u0631\u0627\u062A #v2.8.6 props.trackdmin=:\u0639\u062F\u062F \u0627\u0644\u0645\u0631\u0627\u062D\u0644 opendialog.preview=:\u0645\u0639\u0627\u064A\u0646\u0629 pngdialog.options=:\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u062A\u0635\u062F\u064A\u0631 pngdialog.scale=:\u0633\u0644\u0645 pngdialog.originsize=:\u062D\u062C\u0645 \u0627\u0644\u0623\u0635\u0644\u064A pngdialog.scaledsize=:\u062D\u062C\u0645 \u062D\u0633\u0628 \u0627\u0644\u0633\u0644\u0645 #v2.8.7 canvas.3D.floor=\u0623\u0631\u0636\u064A\u0629 canvas.3D.system=\u0645\u0639\u064A\u0646 canvas.3D.rightclic=\u0623\u0646\u0642\u0631 \u0627\u0644\u0632\u0631 \u0627\u0644\u0623\u064A\u0645\u0646 \u0648 \u062C\u0631 \u0644\u0644\u0642\u064A\u0627\u0645 \u0628\u0627\u0644\u062F\u0648\u0631\u0627\u0646 #v2.8.8 palette.info.equationxy=f(x,y)=0 \u0645\u0646\u062D\u0646\u064A \u0645\u062D\u062F\u062F \u0628 props.equationxy=:\u0645\u0639\u0627\u062F\u0644\u0629 props.equationxychooser=:\u062F\u0642\u0629 palette.function=\u062F\u0627\u0644\u0627\u062A \u0648 \u0645\u062D\u0644\u0627\u062A \u0647\u0646\u062F\u0633\u064A\u0629 #v2.8.9 menu.edit.deletealltracks=\u0645\u0633\u062D \u0627\u0644\u0622\u062B\u0627\u0631 menu.edit.deactivatealltracks=\u062A\u0639\u0637\u064A\u0644 \u0627\u0644\u0623\u062B\u0627\u0631 props.tracks=\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0623\u062B\u0627\u0631 menu.edit.zoom=\u062A\u0643\u0628\u064A\u0631 \u0623\u0648 \u062A\u062D\u0631\u064A\u0643 #v2.9.0 menu.windows=\u0646\u0627\u0641\u0630\u0629 #v2.9.1 contexthelp.seealso=:\u0645\u0648\u0636\u0648\u0639\u0627\u062A \u0630\u0627\u062A \u0635\u0644\u0629 #v2.9.2 menu.display.restrictmessage.dontdisplay=\u0644\u0627 \u062A\u0638\u0647\u0631 \u0647\u0630\u0647 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 props.thick=:\u0633\u0645\u064A\u0643 #v2.9.6 props.magnetmessage=\u0623\u0646\u0642\u0631 \u0639\u0644\u0649 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u062A\u064A \u062A\u0631\u064A\u062F \u0625\u0636\u0627\u0641\u062A\u0647\u0627 \u0623\u0648 \u0625\u062E\u0641\u0627\u0626\u0647\u0627 \u0645\u0646 \u0644\u0627\u0626\u062D\u0629 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u063A\u0646\u0627\u0637\u0633\u064A\u0629 props.magnetobj=\u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0645\u063A\u0646\u0627\u0637\u0633\u064A\u0629 props.magnetpix=(20px) \u062C\u0627\u0630\u0628\u064A\u0629 #v2.9.7 palette.info.ctrl_txtfield=\u0625\u0636\u0627\u0641\u0629 \u0645\u0631\u0628\u0639 \u0645\u062F\u062E\u0644\u0627\u062A \u0631\u0642\u0645\u064A\u0629 palette.info.ctrl_button=\u0625\u0636\u0627\u0641\u0629 \u0632\u0631 #v2.9.8.4 JSerror.title=\u062E\u0637\u0623 \u062A\u0631\u0643\u064A\u0628\u064A JSerror.line=\u062E\u0637 JSerror.pointcoords=\u062E\u0637\u0623 \u062A\u0631\u0643\u064A\u0628\u064A \u0641\u064A \u0625\u062D\u062F\u0627\u062B\u064A\u0627\u062A \u0627\u0644\u0646\u0642\u0637\u0629 JSerror.interactiveinput=\u062E\u0637\u0623 \u0641\u064A \u062A\u0633\u0645\u064A\u0629 \u0627\u0644\u0639\u0646\u0635\u0631 JSerror.notfound=\u0639\u0646\u0635\u0631 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F JSerror.notgoodtype=\u0645\u0633\u062A\u062D\u064A\u0644 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0646\u0648\u0639 \u0645\u0646 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 JScmd.inputmessage=\u0645\u0627 \u0647\u0648 \u0633\u0624\u0627\u0644\u0643 \u061F JScmd.promptmessage=...\u0631\u0633\u0627\u0644\u062A\u0643 menu.js=\u062C\u0627\u0641\u0627 \u0633\u0643\u0631\u064A\u0628\u062A menu.js.script=Javascript\u0625\u0641\u062A\u062D \u0645\u0644\u0641 menu.js.command=script \u0625\u0641\u062A\u062D \u0645\u062D\u0631\u0631 JSeditor.title=javascript \u0645\u062D\u0631\u0631 carmetal-4.3/src/eric/docs/JZirkelProperties_de.properties000066400000000000000000000272201417122252700240340ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Datei menu.file.new=Neu menu.file.load=\u00D6ffnen ... menu.file.save=Speichern menu.file.saveas=Speichern unter ... menu.file.exportpng=Exportieren nach PNG menu.file.exporteps=Exportieren nach EPS menu.file.quit=Schlie\u00DFen menu.edit=Bearbeiten menu.edit.copy=Kopieren menu.edit.move=Verschieben menu.edit.rename=Umbenennen menu.edit.edit=\u00C4ndern menu.edit.hide=Verbergen menu.edit.delete=L\u00F6schen menu.display=Ansicht menu.display.hidden=Anzeigen/Verbergen von unsichtbaren Objekten menu.display.grid=Anzeigen/Verbergen des Gitters menu.display.finegrid=Nur die Achsen menu.display.leftsnap=Magnetisches Gitter menu.display.manage_macros=Makroliste menu.display.history_panel=Historie und Haltepunkte menu.display.help_panel=Hilfefenster menu.display.properties_panel=Objektliste menu.display.small=Kleine Symbole menu.display.medium=Mittlere Symbole menu.display.large=Gro\u00DFe Symbole menu.display.restrictedpalette=Reduzierte Palette anzeigen menu.display.restrictedpaletteedit=Reduzierte Palette \u00E4ndern menu.display.restrictmessage=
Mit dieser Funktion k\u00F6nnen Sie die reduzierte Palette anzeigen.

Das betrifft nur die gerade ge\u00F6ffnete Datei.

Beim Speichern k\u00F6nnen Sie die Option «auch die reduzierte Figur speichern» w\u00E4hlen.
Es werden also zwei Dateien kreiert : Die erste (.zir) \u00F6ffnet sich im nomalen Modus, und
die zweite (.r.zir) im reduzierten Modus.
menu.macros=Makros menu.special=Spezielles menu.special.newmacro=Neues Makro menu.special.loadmacros=Makros laden ... menu.special.definejob=Aufgabe definieren menu.special.loadjob=Aufgabe \u00F6ffnen ... menu.special.jobcomment=Aufgabentext bearbeiten menu.special.testjob=Aufgabe testen menu.special.savejob=Als Aufgabe speichern menu.special.export=HTML-Datei erzeugen und ansehen menu.special.exporttemplate=HTML-Export mit Vorlage menu.help=Hilfe menu.help.about=\u00DCber CaRMetal ... menu.help.info=Kontexthilfe menu.help.url0=Homepage von CaRMetal menu.help.url1=Homepage von CARzine menu.help.url2=Offizielle Homepage von C.a.R. filedialog.options=Speicherm\u00F6glichkeiten filedialog.saveas=Figur speichern filedialog.alsorestricted=Auch die reduzierte Figur speichern filedialog.restrictedmessage=Sie arbeiten momentan in einer reduzierten Umgebung,
Ihre Figur wird also im reduzierten Modus gespeichert. filedialog.filefilter=C.a.R.-Datei (.zir) filedialog.compressedfilefilter=Komprimierte C.a.R.-Datei (.zirz) filedialog.macrofilefilter=Makrodatei (.mcr) filedialog.savemessage1=Die Datei :\n filedialog.savemessage2=\nexistiert bereits. M\u00F6chten Sie sie wirklich ersetzen? palette.file=Datei palette.edit=Bearbeiten palette.construction=Konstruktion palette.aspect=Einstellungen & Farben palette.history=Historie palette.sizes=Gr\u00F6\u00DFen palette.sizes.point=Punkte palette.sizes.line=Linien palette.sizes.arrow=Pfeile palette.sizes.font=Schriftgr\u00F6\u00DFe palette.prec=Nachkommastellen palette.prec.lengths=Im Eigenschaftendialog palette.prec.edit=F\u00FCr die Anzeige palette.prec.angles=F\u00FCr Winkel palette.colors=Farbe & Bild palette.colors.saturated1=Fes\u00E4ttigte Farben palette.colors.desaturated1=Unges\u00E4ttigte Farben palette.colors.saturated2=ges\u00E4ttigte Farben 2 palette.colors.desaturated2=unges\u00E4ttigte Farben 2 palette.colors.constants=Web-Farben palette.image.fileerror=Speichern Sie die Figur ab, bevor Sie diese Funktion ausf\u00FChren.

Anschlie\u00DFend muss Ihr ausgew\u00E4hltes Bild sich
im selben Verzeichnis wie diese Figur befinden. palette.info.vector=Vektor palette.info.image3=Bild einf\u00FCgen+orientiert an 2 oder 3 Punkten palette.info.background=Auswahl/L\u00F6schen eines Hintergrundbildes palette.info.imcenter=Hintergrundbild zentrieren palette.info.imstretch=Hintergrundbild vergr\u00F6\u00DFern,+so dass es das Fenster+der Konstruktion ausf\u00FCllt palette.info.imtile=Hintergrundbild wiederholen palette.info.copy=Das Konstruktionsfenster kopieren+in der Papierpresse palette.info.exportpng=Exportieren der Konstruktion+aus dem aktuellen Fenster in das Format PNG palette.info.exporteps=Exportieren der Konstruktion+aus dem aktuellen Fenster in das Format EPS palette.info.newmacro=Neues Makro erzeugen palette.info.loadmacros=Makro \u00F6ffnen palette.info.manage_macros=Anzeigen/Verbergen des+Makro-Bearbeitungsfensters palette.info.properties_panel=Anzeigen/Verbergen der+Objekteigenschaften palette.info.history_panel=Anzeigen/Verbergen des Fensters+der Konstruktionshistorie palette.info.help_panel=Anzeigen/Verbergen des Fensters+zur Kontexthilfe macros.untitledmacro=Makro ohne Titel macros.untitledfolder=Ordner ohne Titel macros.emptynode=-- leer -- macros.addfolder=Neuen Ordner hinzuf\u00FCgen macros.deleteselected=Ausgew\u00E4hlte Makros l\u00F6schen macros.renamemacro=Ausgew\u00E4hlte Makros umbenennen macros.recordmacro=Makro speichern macros.initials=Ausgangsobjekte? macros.pleaseselect=Bitte ausw\u00E4hlen! macros.finals=Zielobjekte? macros.cancel=Abbrechen? macros.popup.run=Makro starten macros.popup.rename=Umbenennen macros.popup.delete=L\u00F6schen ... macros.popup.addtolibrary=Zur Bibliothek hinzuf\u00FCgen macros.popup.removefromlibrary=Aus der Bibliothek l\u00F6schen macros.popup.publish=In die Figur einf\u00FCgen macros.popup.notpublish=Nicht in die Ausgabe einf\u00FCgen macros.popup.saveas=Speichern unter ... macros.popup.properties=Eigenschaften anzeigen macros.popup.duplicate=Duplizieren macros.savedlog.buttonok=Makro(s) speichern macros.question.delete=Sollen die Makros wirklich gel\u00F6scht werden? rene.zirkel.objects.PointObject=Pkt rene.zirkel.objects.PrimitiveCircleObject=Kr rene.zirkel.objects.PrimitiveLineObject=Ger rene.zirkel.objects.ExpressionObject=Ausdr rene.zirkel.objects.FixedAngleObject=fWink. rene.zirkel.objects.SegmentObject=Str rene.zirkel.objects.RayObject=HGer rene.zirkel.objects.TwoPointLineObject=2PGer rene.zirkel.objects.FunctionObject=Fkt rene.zirkel.objects.AreaObject=A mi.pal.name=Makroliste mi.name=Name : mi.comment=Kommentar : mi.properties=Eigenschaften der Objekte zu Beginn : mi.hideproperties=Eigenschaften der Objekte am Ende : mi.hideduplicates=Dopplungen verbergen mi.apply=Anwenden mi.tab.type=Typ mi.tab.name=Name mi.tab.prompt=Prompt mi.tab.fix=Fixiert? mi.tab.ask=Gr\u00F6\u00DFe abfragen? mi.error.initial=Fehler : wenigstens ein Objekt \nmuss frei sein\n\Der Makro wird nicht ver\u00E4ndert. props.help=Mit der rechten Maustaste auf das Objekt klicken, um seine Eigenschaften anzuzeigen.

Wenn Sie ein neues Objekt, das Punkte beinhaltet, erzeugen, k\u00F6nnen Sie die Eigenschaften dieser Punkte sehen und ver\u00E4ndern. props.name=Name : props.alias=Alias : props.unit=Einheit : props.fix=Gr\u00F6\u00DFe : props.expl=Erkl\u00E4rung : props.conditional=Bedingungen: props.solid=Nicht transparent: props.hidden=Verborgen: props.normal=Normal: props.bold=Fett: props.thin=Gepunktet: props.black=Schwarz: props.green=Gr\u00FCn: props.blue=Blau: props.brown=Braun: props.cyan=T\u00FCrkis: props.red=Rot: props.showasslider=Schieber props.error=In dem Ausdruck ist ein Syntaxerror.
Er wird reinitialisiert. props.cartesian=Parametrisierte Kurve props.parametric=Funktionenschar props.functiontype=Typ : props.killarc=Als Vollkreis props.arc=Bogen props.release=L\u00F6sen props.bind=Verbinden props.setaway=Weg von props.setclose=Hin zu # v1.3 : props.grid=Gitter : props.inside=Innerhalb : props.pointsonly=Nur bei Punkten : props.step=Schritt : palette.grid=Gittereinstellungen leftpanel.macros=Makros leftpanel.properties=Objekteigenschaften leftpanel.history=Objektliste leftpanel.help=Hilfe selectpopup.whatobject=Welches Objekt? selectpopup.RightClick=Bearbeiten selectpopup.MoverTool=Bewegen selectpopup.HiderTool=Verbergen/Anzeigen selectpopup.DeleteTool=L\u00F6schen selectpopup.RenamerTool=Umbenennen selectpopup.EditTool=Bearbeiten selectpopup.SetParameterTool=Makroparameter : selectpopup.SetTargetsTool=Makroziele : palette.info.locus=Ortslinie+Einh\u00FCllende # v1.4 : menu.special.savezirset=Konstruktionssammlung erzeugen filedialog.openfolder.title=Ordner f\u00FCr die Konstruktionssammlung filedialog.openfolder.approve=Ordner \u00F6ffnen filedialog.openfolder.saveicons=Icons verwenden slideshow.next=Weiter slideshow.previous=Zur\u00FCck slideshow.download=Download slideshow.signature=Konstruktionssammlung erzeugt mit # v1.5 : menu.language=Sprachen menu.language.de=Deutsch menu.language.en=Englisch menu.language.fr=Franz\u00F6sisch menu.language.es=Spanisch menu.language.gl=Galicisch menu.language.zh_TW=Chinesisch (traditionell) menu.help.url3=\u00DCbersetzen CaRMetal menu.display.smartboard=Smartboard Modus # v3.6 : menu.edit.copyURL=Kopiere workbook als URL canvas.copy.message=Maus loslassen um die Auswahl zu kopieren. ESC: Abbruch | MAJ : Quadratisch | ALT : 10 x 10 Inkrement. menu.file.newDP=Neue Figur in hyperbolischer Geometrie palette.info.DP_line=Hyperbolische Linie palette.info.DP_midpoint=Hyperbolischer Mittelpunkt palette.info.DP_bi_syma=Hyperbolische Spiegelung palette.info.DP_bi_symc=Hyperbolische Symmetrie palette.info.DP_plumb=Hyperbolische Senkrechte palette.info.DP_bi_med=Hyperbolische Mittelsenkrechte palette.info.DP_bi_biss=Hyperbolische Winkelhalbierende palette.info.DP_segment=Hyperbolisches Segment palette.info.DP_angle=Hyperbolischer Winkel palette.info.DP_circle=Hyperbolischer Kreis palette.info.DP_bi_distance=Hyperbolische Distanz palette.info.DP_bi_perp_common=Hyperbolische gemeinsame Senkrechte palette.info.DP_bi_lineIP=Hyperbolische Linie mit Punkten im Unendlichen palette.info.DP_bi_horocycle=Horokreis durch zwei Punkte palette.info.DP_bi_equidistante=Equidistant zu einer Linie und durch einen Punkt macro.DP_line.1=Erster Punkt der hyperbolischen Linie macro.DP_line.2=Zweiter Punkt der hyperbolischen Linie macro.DP_midpoint.1=Erster Punkt macro.DP_midpoint.2=Zweiter Punkt macro.DP_bi_syma.1=Hyperbolische Linie macro.DP_bi_syma.2=Punkt macro.DP_bi_symc.1=Zentrum macro.DP_bi_symc.2=Punkt macro.DP_plumb.1=Hyperbolische Linie macro.DP_plumb.2=Punkt macro.DP_bi_med.1=Erster Punkt macro.DP_bi_med.2=Zweiter Punkt macro.DP_bi_biss.1=Erster Punkt macro.DP_bi_biss.2=Scheitelpunkt des Winkels macro.DP_bi_biss.3=Dritter Punkt macro.DP_segment.1=Erster Punkt macro.DP_segment.2=Zweiter Punkt macro.DP_ray.1=Erster Punkt macro.DP_ray.2=Zweiter Punkt macro.DP_angle.1=Erster Punkt macro.DP_angle.2=Scheitelpunkt des Winkels macro.DP_angle.3=Dritter Punkt macro.DP_circle.1=Zentrum macro.DP_circle.2=Zweiter Punkt macro.DP.distance.1=Erster Punkt macro.DP_bi_distance.2=Zweiter Punkt macro.DP_bi_distance.3=Ankerpunkt um die Distanz anzuzeigen macro.DP_bi_perp_common.1=Erste hyperbolische Linie macro.DP_bi_perp_common.2=Zweite hyperbolische Linie macro.DP_bi_lineIP.1=Erster Punkt macro.DP_bi_lineIP.2=Zweiter Punkt macro.DP_bi_horocycle.1=Erster Punkt macro.DP_bi_horocycle.2=Zweiter Punkt macro.DP_bi_equidistante.1=hyperbolische Linie macro.DP_bi_equidistante.2=Punkt \u00FCber die equidistant macro.DP_fixedangle.1=Erster Punkt macro.DP_fixedangle.2=Scheitelpunkt des Winkels macro.DP_bi_circ.1=Erster Punkt macro.DP_bi_circ.2=Zweiter Punkt macro.DP_bi_circ.3=Dritter Punkt canvas.DP.message1=Dieser Kreis ist der Horizont der Poincar\u00E9 Scheibe. canvas.DP.message2=Benutzen Sie die "Konstruktionen" Palette um Objekte zu dieser hyperbolischen Ebene hinzuzuf\u00FCgen. JSmenu.changescriptsorder=\u00C4ndere die Reihenfolge der Skripte carmetal-4.3/src/eric/docs/JZirkelProperties_en.properties000066400000000000000000000000001417122252700240310ustar00rootroot00000000000000carmetal-4.3/src/eric/docs/JZirkelProperties_es.properties000066400000000000000000001020061417122252700240470ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Archivo menu.file.new=Nuevo menu.file.load=Abrir... menu.file.save=Guardar menu.file.saveas=Guardar como... menu.file.exportpng=Exportar como PNG menu.file.exporteps=Exportar como EPS menu.file.quit=Salir menu.edit=Edici\u00f3n menu.edit.copy=Copiar menu.edit.move=Mover menu.edit.rename=Cambiar nombre menu.edit.edit=Modificar menu.edit.hide=Ocultar menu.edit.delete=Suprimir menu.display=Mostrar menu.display.hidden=Mostrar/Ocultar los objetos invisibles menu.display.grid=Mostrar/Ocultar la rejilla menu.display.finegrid=Ejes solamente menu.display.leftsnap=Rejilla magn\u00e9tica menu.display.manage_macros=Inspector de macros menu.display.history_panel=Hist\u00f3rico menu.display.help_panel=Panel de ayuda menu.display.properties_panel=Inspector de objetos menu.display.small= Iconos peque\u00f1os menu.display.medium= Iconos medianos menu.display.large=Iconos grandes menu.display.restrictedpalette=Fijar la paleta restringida menu.display.restrictedpaletteedit=Modificar la paleta restringida menu.display.restrictmessage=
Esta funci\u00f3n permite visualizar la paleta restringida.

Esto solo afecta al archivo en uso.

Al guardar, usted podr\u00e1 elegir la opci\u00f3n de guardar tambi\u00e9n la figura restringida;.
Se crean entonces dos archivos: El primero (.zir) se abrir\u00e1 en modo normal, y
el segundo (.r.zir) en modo restringido.
menu.macros=Macros menu.special=Especial menu.special.newmacro=Crear macro menu.special.loadmacros=Abrir un archivo de macros... menu.special.definejob=Definir un ejercicio menu.special.loadjob=Abrir un ejercicio... menu.special.jobcomment=Redactar el texto del ejercicio menu.special.testjob=Revisar este ejercicio menu.special.savejob=Guardar el ejercicio menu.special.export=Crear un archivo HTML y verlo con el navegador menu.special.exporttemplate=Exportar a HTML con las plantillas menu.help=Ayuda menu.help.about=Acerca de CaRMetal... menu.help.info=Ayuda contextual menu.help.url0=P\u00e1gina de CaRMetal menu.help.url1=P\u00e1gina de CARzine menu.help.url2=P\u00e1gina oficial de C.a.R. filedialog.options=Opciones de guardado filedialog.saveas=Guardar construcci\u00f3n filedialog.alsorestricted=Guardar tambi\u00e9n las restricciones de la construcci\u00f3n filedialog.restrictedmessage=Est\u00e1 trabajando ahora en una sesi\u00f3n restringida,
la construcci\u00f3n se guardar\u00e1 en modo restringido. filedialog.filefilter=Archivo CaR (.zir) filedialog.compressedfilefilter=Archivo CaR comprimido (.zirz) filedialog.macrofilefilter=Archivo de macros (.mcr) filedialog.savemessage1=El archivo:\n filedialog.savemessage2=\ya existe, \u00bfest\u00e1 desea reemplazarlo ? palette.file=Archivo palette.edit=Edici\u00f3n palette.construction=Construcci\u00f3n palette.aspect=Aspecto y color palette.history=Hist\u00f3rico palette.sizes=Tama\u00f1o palette.sizes.Point=Puntos palette.sizes.line=L\u00edneas palette.sizes.arrow=Flechas palette.sizes.font=Fuentes palette.prec=Precisi\u00f3n num\u00e9rica palette.prec.lengths=Longitud palette.prec.edit=F\u00f3rmulas palette.prec.angles=\u00c1ngulos palette.colors=Fondo: color e imagen palette.colors.saturated1=Colores saturados palette.colors.desaturated1=Colores desaturados palette.colors.saturated2=Colores saturados 2 palette.colors.desaturated2=Colores desaturados 2 palette.colors.constants=Colores Web palette.image.fileerror=Debe guardar la construcci\u00f3n antes de utilizar esta herramienta.

Despu\u00e9s, la imagen que elija debe figurar
en la misma ubicaci\u00f3n que esta figura. palette.info.vector=Vector palette.info.image3=Insertar una imagen utilizando 2 o 3 puntos palette.info.background=Elegir/borrar una imagen de fondo palette.info.imcenter=Centrar la imagen de fondo palette.info.imstretch=Adecuar el tama\u00f1o de la imagen a la ventana de la construcci\u00f3n palette.info.imtile=Fondo con mosaico de imagen palette.info.copy=Copiar la ventana de construcci\u00f3n en el portapapeles palette.info.exportpng=Exportar la construcci\u00f3n de la ventana actual al formato PNG palette.info.exportpng= Exportar la construcci\u00f3n de la ventana actual al formato PNG palette.info.exporteps= Exportar la construcci\u00f3n de la ventana actual al formato EPS palette.info.newmacro=Crear una nueva macro palette.info.loadmacros=Abrir un archivo de macros palette.info.manage_macros=Mostrar/Ocultar el panel de gestion de macros palette.info.properties_panel=Mostrar/Ocultar el panel de propiedades de los objetos palette.info.history_panel=Mostrar/ Ocultar el panel de hist\u00f3rico de la construcci\u00f3n palette.info.help_panel=Mostrar/ Ocultar el panel de ayuda contextual macros.untitledmacro=Macro sin nombre macros.untitledfolder=Carpeta sin nombre macros.emptynode=-- Vac\u00edo -- macros.addfolder=A\u00f1adir una nueva carpeta macros.deleteselected=Suprimir las macros seleccionadas macros.renamemacro=Cambiar el nombre de la macro seleccionada macros.recordmacro=Guardar una macro macros.initials=\u00bfCuáles son los Objetos iniciales? macros.pleaseselect=!Seleccione, por favor! macros.finals=\u00bfCuáles son los Objetos finales? macros.cancel=\u00bfCancelar? macros.popup.run=Iniciar la macro macros.popup.rename= Cambiar nombre macros.popup.delete=Borrar macros.popup.addtolibrary=A\u00f1adir a la biblioteca macros.popup.removefromlibrary=Quitar de la biblioteca macros.popup.publish=Incluir en la figura macros.popup.notpublish=No incluir en la figura macros.popup.saveas=Guardar como... macros.popup.properties=Mostrar las propiedades macros.popup.duplicate=Duplicar macros.savedlog.buttonok=Guardar el archivo de macro(s) macros.question.delete=\u00bfSeguro desea borrar estas macros ? rene.zirkel.objects.PointObject=Pto. rene.zirkel.objects.PrimitiveCircleObject=Cir. rene.zirkel.objects.PrimitiveLineObject=Lin. rene.zirkel.objects.ExpressionObject=Exp. rene.zirkel.objects.FixedAngleObject=AngF. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=Ray rene.zirkel.objects.TwoPointLineObject=Rec. rene.zirkel.objects.FunctionObject=Func. rene.zirkel.objects.AreaObject=\u00c1rea mi.pal.name=Revisar macros mi.name=Nombre: mi.comment=Comentario: mi.properties=Propiedades de los objetos iniciales: mi.hideproperties=Propiedades de los objetos finales: mi.hideduplicates=Buscar duplicados mi.apply=Aplicar mi.tab.type=Tipo mi.tab.name=Nombre mi.tab.prompt=invitaci\u00f3n mi.tab.fix=\u00bfFijar ? mi.tab.ask=\u00bfasociar? mi.error.initial=Error: al menos un objeto inicial\ndebe estar libre (ni fijo, ni dependiente)\n\nNinguna modificaci\u00f3n\nser\u00e1 guardada en esta macro. props.help=Para poder visualizar las propiedades de un objeto hacer clic aqu\u00ed con el bot\u00f3n derecho.

Si se crea un nuevo objeto conteniendo estos puntos, podr\u00e1 editar sus propiedades durante el proceso. props.name=Nombre: props.alias=Alias: props.unit=Unidades: props.fix=Fijar: props.expl=Explicaci\u00f3n: props.belongto=Capa: props.conditional=Apariencia: props.solid=Opaco: props.hidden=Oculto: props.normal=Normal: props.bold=s\u00f3lido: props.thin=Punteado: props.black=Negro: props.green=Verde: props.blue=Azul: props.brown=Marr\u00f3n: props.cyan=Cyan: props.red=Rojo: props.showasslider=cursor props.error=Error de sintaxis en esta expresi\u00f3n.
Se va a reiniciar. props.cartesian=Funci\u00f3n cartesiana props.parametric= Funci\u00f3n param\u00e9trica props.functiontype=Tipo: props.killarc=Quitar arco props.arc=Arco props.release=liberar props.bind=asociar props.setaway=Lejos de props.setclose=Cerca de # v1.3: props.grid=Incremento de la rejilla (0=libre): props.inside=Sobre el objeto: props.Pointsonly=Solamente con dos puntos: props.step=Paso: palette.grid=Aspecto de la rejilla leftpanel.macros=Panel de gesti\u00f3n de macros leftpanel.properties=Panel de propiedades de los objetos leftpanel.history=Panel de historico leftpanel.help=Panel de ayuda selectpopup.whatobject=\u00bfQu\u00e9 objeto ? selectpopup.RightClick=Editar selectpopup.MoverTool=Desplazar selectpopup.HiderTool=Mostrar/Ocultar selectpopup.DeleteTool=Suprimir selectpopup.RenamerTool=Cambiar nombre selectpopup.EditTool=Editar selectpopup.SetParameterTool=Macro inciales: selectpopup.SetTargetsTool=Macro finales: palette.info.locus=Lugar del punto+ envolvente de recta # v1.4: menu.special.savezirset=Crear un diaporama filedialog.openfolder.title=Di\u00e1logo de selecci\u00f3n de la carpeta del diaporama filedialog.openfolder.approve=Seleccionar la carpeta del diaporama filedialog.openfolder.saveicons=Guardar tambi\u00e9n las restricciones de iconos slideshow.next=siguiente slideshow.previous=anterior slideshow.download=Cargar el archivo slideshow.signature=Diaporama realizado con # v1.5: menu.language=Idiomas menu.help.url3=Traducir CaRMetal # v1.6: palette.info.bi_syma=Simetría Axial palette.info.bi_symc=Simetría Central palette.info.bi_trans=Traslación palette.info.bi_med=Mediatriz palette.info.bi_biss=Bisectriz palette.info.bi_circ=Círculo por 3 puntos palette.info.bi_arc=Arco por 3 puntos palette.info.bi_t_align=Puntos alineados ? palette.info.bi_t_para=Rectas paralelas ? palette.info.bi_t_perp=Rectas perpendiculares ? palette.info.bi_t_equi=Punto equidista de otros dos ? palette.info.bi_t_app=Punto pertenece a una recta ? palette.info.bi_t_conf=Puntos coinciden ? macro.bi_syma.0=\u00bfCuál es el Eje de simetr\u00eda? macro.bi_syma.1=\u00bfde qu\u00e9 punto quiere construir el Sim\u00e9trico? macro.bi_symc.0=\u00bfCuál es el Centro de simetr\u00eda? macro.bi_symc.1=\u00bfde qu\u00e9 punto quiere construir el Sim\u00e9trico? macro.bi_trans.0=\u00bfCual es el Origen del vector que define la traslación? macro.bi_trans.1=\u00bfCual es el Extremo del vector que define la traslación? macro.bi_trans.2=\u00bfqu\u00e9 punto desea trasladar? macro.bi_med.0=\u00bfCual es el Primer extremo del segmento del que quiere la mediatriz? macro.bi_med.1=\u00bfCual es el Segundo extremo del segmento del que quiere la mediatriz? macro.bi_biss.0=\u00bfCual es el Primer punto del ángulo que quiere bisecar? macro.bi_biss.1=\u00bfCual es el v\u00e9rtice del \u00e1ngulo que quiere bisecar? macro.bi_biss.2=\u00bfCual es el tercer punto del \u00e1ngulo que quiere bisecar? macro.bi_circ.0=\u00bfCual es el Primer punto? macro.bi_circ.1=\u00bfCual es el Segundo punto? macro.bi_circ.2=\u00bfCual es el Tercer punto? macro.bi_t_para.0=\u00bfPrimera recta (o segmento)? macro.bi_t_para.1=\u00bfsegunda recta (o segemento)? macro.bi_t_equi.0=\u00bfEste punto es equidistante... macro.bi_t_equi.1=De este punto... macro.bi_t_equi.2=\u00bfy de este punto? macro.bi_t_app.0=\u00bfQu\u00e9 punto? macro.bi_t_app.1=\u00bfPertenece a cu\u00e1l recta (segmento)? macro.bi_t_conf.0=\u00bfQu\u00e9 punto? macro.bi_t_conf.1=\u00bfcoincide con cu\u00e1l punto? macro.bi_t_align.text0=Los puntos est\u00e1n alineados macro.bi_t_align.text1=Los puntos no est\u00e1n alineados macro.bi_t_para.text0=Los objetos son paralelos macro.bi_t_para.text1=Los objetos no son paralelos macro.bi_t_perp.text0=Los objetos son perpendiculares macro.bi_t_perp.text1=Los objetos no son perpendiculares macro.bi_t_equi.text0=Los puntos son equidistantes macro.bi_t_equi.text1=Los puntos no son equidistantes macro.bi_t_app.text0=El punto est\u00e1 sobre el objeto macro.bi_t_app.text1=El punto no est\u00e1 sobre el objeto macro.bi_t_conf.text0=Los dos puntos coinciden macro.bi_t_conf.text1=Los dos puntos no coinciden # v1.7: filedialog.openfolder.appletsize=Tama\u00f1o del applet: filedialog.openfolder.actualsize=Tama\u00f1o actual filedialog.openfolder.other=Otro... filedialog.openfolder.selected=Carpeta seleccionada: filedialog.openfolder.cancel=Cancelar menu.file.exportsvg=Exportar como SVG menu.objects.Point=Puntos menu.objects.lines=Rectas menu.objects.segments=Segmentos menu.objects.circles=C\u00edrculos y c\u00f3nicas menu.objects.angles=Angulos menu.objects.tracks=Trazas y lugares menu.objects.functions=Funciones y f\u00f3rmulas palette.info.function_u=Funci\u00f3n definida por el usuario palette.info.function=Trazar una funci\u00f3n o una curva param\u00e9trica props.superhidden=Super-Ocultar: props.showvalue=Mostrar valor: props.showname=Mostrar nombre: props.background=Fondo: macro.bi_expression.0=\u00bfPunto de anclaje? # v1.9a: licence.txt=

Este programa es gratuito bajo licencia GNU-GPL, lo que significa que usted puede redistribuirlo y/o modificarlo seg\u00fan los t\u00e9rminos de la licencia publicada por la "Free Software Foundation"
Voir:

# v2.0: menu.special.theme=Temas menu.special.theme.gray=Metal pulido menu.special.theme.brushed=Metal cepillado menu.special.options=Preferencias... menu.special.options.sizes=Tama\u00f1os menu.special.options.sizes.minPointsize=Tama\u00f1o de puntos menu.special.options.sizes.minlinesize=Grosor de l\u00edneas menu.special.options.sizes.arrowsize=Tama\u00f1o de flechas menu.special.options.sizes.minfontsize=Tama\u00f1o de caracteres menu.special.options.sizes.digits.lengths=Precisi\u00f3n de longitudes menu.special.options.sizes.digits.edit=Precisi\u00f3n de f\u00f3rmulas menu.special.options.sizes.digits.angles=Precisi\u00f3n de \u00e1ngulos menu.special.options.colors=Colores menu.special.options.others=Otros menu.special.options.others.undock=Posibilidad de separar las paletas # v2.1: menu.file.close=Cerrar ventana # v2.3: alert.toomuchwins=Hay demadiadas ventanas abiertas:
cierre algunas
para poder abrir otras... # v2.4: menu.file.new3D=Nueva figura 3D palette.info.bi_3Dcoords= punto 3D macro.bi_3Dcoords.0=Usted quiere construir un punto 3D: Haga clic cualquier parte palette.info.bi_3Dcube=Cubo macro.bi_3Dcube.0=Usted quiere construir un Cubo: \u00bfCuál es el Centro del cubo? palette.info.bi_3Darete=Arista 3D (gesti\u00f3n de punteado) macro.bi_3Darete.0=Usted quiere construir una Arista 3D: \u00bfcuál es el Primer punto? macro.bi_3Darete.1=Usted quiere construir una Arista 3D: \u00bfCuál es el Segundo punto? macro.bi_3Darete.2=Usted quiere construir una Arista 3D: \u00bfCuále es el Tercer punto? macro.bi_3Darete.3=Usted quiere construir una Arista 3D: \u00bfCuále es el cuarto punto? palette.info.bi_3Dtetra=Tetraedro regular macro.bi_3Dtetra.0=Usted quiere construir un Tetraedro regular:\u00bfCuál es el Centro del tetraedro? menu.newdoc=Nuevo # v2.5.5: palette.aspect.label.text_title=Aspecto de palette.aspect.label.Point=puntos palette.aspect.label.line=rectas palette.aspect.label.segment=segmentos palette.aspect.label.circle=c\u00edrculos palette.aspect.label.angle=\u00e1ngulos palette.aspect.label.area=pol\u00edgonos palette.aspect.label.text=textos palette.info.bi_3Ddode=Dodecaedro regular macro.bi_3Ddode.0=Usted quiere construir un Dodecaedro regular:\u00bfCuál es el Centro del dodecaedro? # v2.7: palette.aspect.label.Pointshape=Forma & nombre de los puntos: palette.aspect.label.locus=lugares menu.edit.deleteall=Borrar todo # v2.7.1: java.old.message=No puede lanzar CaRMetal porque su versi\u00f3n de Java es muy vieja... java.old.quit=Salir java.old.go=Descargar una nueva versi\u00f3n de java palette.info.boundedpoint=punto sobre plano o sobre cara de un poliedro #v2.7.2: user.foldername=Perfil de usuario CaRMetal #v2.8 props.fixedray=Radio: props.fixedsegment=Longitud: props.fixedangle=Angulo: props.expl=Comentario: props.aspecttab=Aspecto props.numerictab=Num\u00e9rico props.conditionaltab=Condicional props.popup.special=Caracteres especiales props.popup.functions=Funciones predefinidas props.popup.latex=Comandos LaTeX #v2.8.1 props.fixedinwindow=Atado a la ventana #v2.8.5 palette.controls=Controles props.ctrlshowvalue=Mostrar el valor del control props.ctrlsnap=Atado a las graduaciones props.ctrlshowticks=Mostrar las graduaciones props.ctrltickspacing=Incremento: palette.info.ctrl_edit=Editar, desplazar o redimensionar el control palette.info.ctrl_chkbox=Agregar una casilla de selecci\u00f3n palette.info.ctrl_popup=Agregar un men\u00fa desplegable palette.info.ctrl_slider=Agregar un cursor #v2.8.6 props.trackdmin=N\u00famero de etapas: opendialog.preview=Vista previa: pngdialog.options=Opciones de exportaci\u00f3n: pngdialog.scale=Escala: pngdialog.originsize=Tama\u00f1o original: pngdialog.scaledsize=Tama\u00f1o a escala: #v2.8.7 canvas.3D.floor=Piso canvas.3D.system=sistema de coordenadas canvas.3D.rightclic=Utilizar el clic derecho para hacer girar #v2.8.8 palette.info.equationxy=Curva definida por f(x,y)=0 props.equationxy=Ecuaci\u00f3n: props.equationxychooser=Precisi\u00f3n: palette.function=Funciones y lugares #v2.8.9 menu.edit.deletealltracks=Borrar las trazas menu.edit.deactivatealltracks=Desactivar las trazas props.tracks=Activar la traza menu.edit.zoom=Agrandar o desplazar #v2.9.0 menu.windows=Ventana #v2.9.1 contexthelp.seealso=Temas relacionados: #v2.9.2 menu.help.licence=Licencia... #v2.9.2 menu.display.restrictmessage.dontdisplay=No mostrar m\u00e1s este mensaje props.thick=Grueso: #v2.9.6 props.magnetmessage=Haga clic sobre los objetos que quiere a\u00f1adir a (o eliminar de) la lista de objetos magn\u00e9ticos props.magnetobj=Objetos magn\u00e9ticos props.magnetpix=Atracci\u00f3n (20 px): #v2.9.7 palette.info.ctrl_txtfield=A\u00f1adir una zona de entrada num\u00e9rica palette.info.ctrl_button=A\u00f1adir un bot\u00f3n #v2.9.8.4 JSerror.title=Error de sintaxis JSerror.line=l\u00ednea JSerror.Pointcoords=Error de sintaxis en las coordenadas del punto JSerror.interactiveinput=Error en la designaci\u00f3n del objeto JSerror.notfound=Objeto no encontrado JSerror.notgoodtype=Imposibla aplicar a este tipo de objeto JScmd.inputmessage=\u00bfPregunta? JScmd.promptmessage=Mensaje... menu.js=Javascript menu.js.script=Abrir un archivo javascript... menu.js.command=Abrir el editor de script JSeditor.title=Editor javascript #v3.0 JSeditor.save=Guardar el script JSeditor.open=Abrir un script JSeditor.opendlogmsg=Abrir el script JSeditor.savedlogmsg=Guardar el script JSeditor.format=Formatear el script JSeditor.restore=Anular los efectos del \u00faltimo script JSeditor.run=Lanzar el script JSeditor.help=Obtener ayuda de sintaxis JSEditor.comment=Comentar la selecci\u00f3n JSEditor.savequestion=Este script cambi\u00f3: \u00bfquiere guardarlo? # v3.1.1 menu.js.define=Definir la carpeta de scripts... menu.js.dumb=Ejecutar los scripts sin editor JSeditor.opendfavfolder=Seleccionar como carpeta de scripts JSeditor.saveas=Guardar el script como... # v3.5 tab.popup.newfigure=Figura Nueva tab.popup.rename=Cambiar Nombre tab.popup.duplicate=Duplicar figura tab.popup.openworkbook=Abrir una carpeta... tab.popup.saveworkbookas=Guardar la carpteta como... tab.popup.saveworkbook=Guardar la carpeta tab.newfigurebasename=Figura workbook.workbookmode=Modo carpeta workbook.savequestion=Esta carpeta ha sido modificada. \u00bfQuiere guardarla? progressbar.loadmessage=Abriendo la figura... paciencia... progressbar.workbookloadmessage=Abriendo la carpeta... paciencia... progressbar.workbooksavemessage=Guardando la carpeta... paciencia... macro.creationdlog.title=Crear una macro macros.name=Nombre de la macro? JSmenu.cancel=Cancelar JSmenu.add=A\u00f1adir un script nuevo JSmenu.modify=Modificar el script JSmenu.delete=Suprimir el script JSeditor.saveinfig.question=Escribir el nombre del script: JSeditor.saveinfig.title=Guardar el script en la figura JSeditor.saveinfig=Guardar el script en la figura actual JSeditor.infig=Script incluido en la figura: menu.js.newscriptinconstruction=Nuevo script en la construcci\u00f3n... menu.workbook.saveas=Guardar la carpeta como... media.saveas=Hay imagenes en la construcci\u00f3n,
los archivos se guardar\u00e1n en una misma carpeta. menu.display.comment=Mostrat/Ocultar comentarios menu.display.palette=Mostrar/Ocultar la paleta menu.display.leftpanel=Mostrar/Ocultar el marco izquierdo comment.emptycomment= menu.export.workbook=Exportar la carpeta en una pagina HTML menu.assigment=Ejercicio JSerror.condition=Error en la expresi\u00f3n de condici\u00f3n filedialog.workbook=Carpeta CaRMetal (.zirs) filedialog.job=Ejercicio CaRMetal (.job) filedialog.js=Scripts CaRMetal (.js) filedialog.allfiles=Archivos CaRMetal (.zirs,.zir,.zirz,.mcr,.job,.js) tab.popup.savefileonly=Guardar la figura como... animation.run=Iniciar las animaciones animation.stop=Detener las animaciones animation.speed=Rapidez de las animaciones animation.removeall=Suprimir todas las animaciones animation.reverse=Invertir el sentido de las animaciones restrict.title=Restricci\u00f3n de herramientas menu.display.restrictedenvironment=Restricci\u00f3n de herramientas restrict.ok=Ok restrict.cancel=Anular restrict.activate=Activar restricci\u00f3n de herramientas restrict.factory=Par\u00e1metros originales restrict.comment=Para seleccionar o desseleccionar f\u00e1cilmente varias herramientas, haga clic derecho y arrastre sobre los iconos. restrict.menubar=Mostrar la barra de men\u00fas restrict.librarymacros=Permitir las macros de biblioteca menu.help.opendefaultfolder=Abrir la carpeta de configuraci\u00f3n monkey.btn.tooltip=Sacudir la construcci\u00f3n
(Mantener oprimido el bot\u00f3n) job.message.ok=\u00a1Bravo! job.message.failed=Construcci\u00f3n inv\u00e1lida... job.gui.hidebox=Ocultar las metas job.gui.ok=Mensaje de \u00e9xito: job.gui.failed=Mensaje de fracaso: job.gui.targets=Lista de metas: clic para seleccionar job.gui.close=Crear job.gui.delete=Suprimir job.gui.valid=Verificar la construcci\u00f3n job.gui.restore=Reintentar job.gui.exercise=Esto es un ejercicio: job.gui.progressmessage=Verificando su construcci\u00f3n job.gui.alignment=pero la construcci\u00f3n no es v\u00e1lida en algunos casos de alineaci\u00f3n job.gui.title=Editor de ejercicios restrict.historypanel=Permitir el panel de hist\u00f3rico restrict.macropanel=Permitir el panel de macros restrict.helppanel=Permitir el panel de ayuda restrict.failed.percent=La taza de error es de: restrict.failed.initial=Error desde la posici\u00f3n inicial # v3.5.3 job.gui.staticjob=Ejercicio est\u00e1tico # v3.6 menu.edit.copyURL=Copiar la carpeta como URL canvas.copy.message=Soltar el rat\u00f3n para copiar la selecci\u00f3n.ESC: Cancelar | MAJ: Cuadrado | ALT: Incremento 10 x 10. menu.file.newDP=Nuevo disco de Poincar\u00e9 palette.info.DP_line=Recta hiperb\u00f3lica palette.info.DP_midPoint=Punto medio hiperb\u00f3lico palette.info.DP_bi_syma=Simetr\u00eda axial hioperb\u00f3lica palette.info.DP_bi_symc=Simetr\u00eda central hiperb\u00f3lica palette.info.DP_plumb=Perpendicular hiperb\u00f3lica palette.info.DP_bi_med=Mediatriz hiperb\u00f3lica palette.info.DP_bi_biss=Bisectriz hiperb\u00f3lica palette.info.DP_segment=Segmento hiperb\u00f3lico palette.info.DP_ray=Semirrecta hiperb\u00f3lica palette.info.DP_angle=Angulo hiperb\u00f3lico palette.info.DP_circle=C\u00edrculo hiperb\u00f3lico palette.info.DP_bi_distance=Distancia hiperb\u00f3lica palette.info.DP_bi_perp_common=Perpendicular com\u00fan palette.info.DP_bi_lineIP=Recta con puntos ideales palette.info.DP_bi_horocycle=Horociclos por dos puntos palette.info.DP_bi_equidistante=Equidistante a una recta por un punto palette.info.DP_fixedangle=Angulo fijo hiperb\u00f3lico palette.info.DP_bi_circ=C\u00edrculo hiperb\u00f3lico por tres puntos macro.DP_line.1=Primer punto de la recta hiperb\u00f3lica macro.DP_line.2=Segundo punto de la recta hiperb\u00f3lica macro.DP_midPoint.1=Primer punto macro.DP_midPoint.2=Segundo punto macro.DP_bi_syma.1=Recta hiperb\u00f3lica macro.DP_bi_syma.2=Punto macro.DP_bi_symc.1=Centro macro.DP_bi_symc.2=Punto macro.DP_plumb.1=Recta hiperb\u00f3lica macro.DP_plumb.2=Punto macro.DP_bi_med.1=Primer punto macro.DP_bi_med.2=Segundo punto macro.DP_bi_biss.1=Primer punto macro.DP_bi_biss.2=v\u00e9rtice del \u00e1ngulo macro.DP_bi_biss.3=Tercer punto macro.DP_segment.1=Primer punto macro.DP_segment.2=Segundo punto macro.DP_ray.1=Primer punto macro.DP_ray.2=Segundo punto macro.DP_angle.1=Primer punto macro.DP_angle.2=V\u00e9rtice del \u00e1ngulo macro.DP_angle.3=Tercer punto macro.DP_circle.1=Centro macro.DP_circle.2=Segundo punto macro.DP.distance.1=Primer punto macro.DP_bi_distance.2=Segundo punto macro.DP_bi_distance.3=Punto de anclaje para mostrar la distancia macro.DP_bi_perp_common.1=Primera Recta hiperb\u00f3lica macro.DP_bi_perp_common.2=Segunda Recta hiperb\u00f3lica macro.DP_bi_lineIP.1=Primer punto macro.DP_bi_lineIP.2=Segundo punto macro.DP_bi_horocycle.1=Primer punto macro.DP_bi_horocycle.2=Segundo punto macro.DP_bi_equidistante.1=Recta hiperb\u00f3lica macro.DP_bi_equidistante.2=Un punto sobre la equidistante macro.DP_fixedangle.1=Primer punto macro.DP_fixedangle.2=V\u00e9rtice del \u00e1ngulo macro.DP_fixedangle.3=Valor del \u00e1ngulo macro.DP_bi_circ.1=Primer punto macro.DP_bi_circ.2=Segundo punto macro.DP_bi_circ.3=Tercer punto canvas.DP.message1=El c\u00edrculo es el horizonte del disco de Poincar\u00e9. canvas.DP.message2=Utilizar la zona de paleta "Construcci\u00f3n" para a\u00f1adir objetos sobre ese plano hiperb\u00f3lico. JSmenu.ScriptsManager=Administrador de scripts JSmenu.up=Subir JSmenu.down=Bajar JSmenu.rename=cambiar nombre: JSmenu.killall=Matar todas las tareas JSmenu.stopall=Detener todas las tareas JSmenu.restartall=Volver a lanzar todas las tareas palette.construction.euclidian=Herramientas euclidianas JSmenu.executeonstart=El script se inicia al abrir la figura JSmenu.dragaction=Hacer clic o deslizar: palette.sizes.selectionsize=Selecci\u00f3n palette.sizes.monkeyspeed=Mono JSmenu.dragaction.message=Seleccionar los puntos o los botones que quiere asociar al script splash.message=Software de geometr\u00eda din\u00e1mica #v3.6.2 palette.sizes.gridopacity=Cuadr\u00edcula #v3.6.3 menu.file.exportpdf=Exportar en PDF menu.edit.copyto=Copiar palette.info.select=Zona de selecci\u00f3n para copiar y exportar palette.info.DP_bi_pinceau1=Recta haz que pasa por un punto macro.DP_bi_pinceau1.1=Primera recta macro.DP_bi_pinceau1.2=Segunda recta macro.DP_bi_pinceau1.3=Punto palette.info.DP_bi_pinceau3=Producto de tres rectas en haz macro.DP_bi_pinceau3.1=Primera recta macro.DP_bi_pinceau3.2=Segunda recta macro.DP_bi_pinceau3.3=Tercera recta palette.info.DP_bi_pinceauinter=Intersecci\u00f3n de dos haces macro.DP_bi_pinceauinter.1=Haz 1 - recta 1 macro.DP_bi_pinceauinter.2=Haz 1 - recta 2 macro.DP_bi_pinceauinter.3=Haz 2 - recta 1 macro.DP_bi_pinceauinter.4=Haz 2 - recta 2 palette.info.DP_bi_pinceauhauteur=Perpendicular producto de un haz macro.DP_bi_pinceauhauteur.1=recta 1 del haz macro.DP_bi_pinceauhauteur.2=recta 2 del haz macro.DP_bi_pinceauhauteur.3=recta ortogonal al haz palette.info.DP_bi_pinceaucycle=Ciclo por Haz y por Punto macro.DP_bi_pinceaucycle.1=recta 1 del haz macro.DP_bi_pinceaucycle.2=recta 2 del haz macro.DP_bi_pinceaucycle.3=Punto palette.info.DP_bi_pinceaubiss=Bisectriz de rectas orientadas macro.DP_bi_pinceaubiss.1=recta 1 macro.DP_bi_pinceaubiss.2=Pt ideal 1 de Rta 1 macro.DP_bi_pinceaubiss.3=Pt ideal 2 de Rta 1 macro.DP_bi_pinceaubiss.4=recta 2 macro.DP_bi_pinceaubiss.5=Pt ideal 1 de Rta 2 macro.DP_bi_pinceaubiss.6=Pt ideal 2 de Rta 2 #v3.7.6 menu.export.embedworkbook=Encapsular la carpeta en una p\u00e1gina HTML menu.edit.copyapplettag=Copiar el tag Applet #v3.8 menu.network=Red network.menu.launch=Encender/Apagar el servidor network.menu.connect=Conectar/Desconectar el servidor network.server.title=Servidor network.server.ip=IP local network.server.launch=Arrancar network.server.receive=S\u00f3lo recibir (Global) network.server.circles=C\u00edrculos network.server.functions=Funciones network.server.rtw=Vista en tiempo real network.server.send=Enviar a: network.server.all=Todos network.client.title=Explorador de conexi\u00f3n network.client.Name=Nombre: network.client.name= network.client.ip=IP del servidor: network.client.connect=Conectarse network.client.sendwork=Enviar todo el trabajo network.client.share=Compartir #v4.0 JSFonctions.dountil=hacer{..} hasta que (); palette.info.vector3D=Vector 3D palette.info.midpoint3D=Punto medio 3D palette.info.segment3D=Segmento 3D palette.info.line3D=Recta 3D palette.info.ray3D=Semirrecta 3D palette.info.area3D=Polígono 3D props.fixedsegment3D=Longitud 3D: palette.info.bi_3Dtrans=Traslación 3D palette.info.bi_3Dcircle1=Círculo 3D palette.info.bi_3Dcircle2=Compás 3D palette.info.bi_3Dcircle3pts=Círculo 3D por tres puntos palette.info.bi_3Dplandroite=Intersección de un plano y una recta palette.info.bi_3Dplanplan=Intersección de dos planos palette.info.bi_3Dsphererayon=Esfera de radio dado palette.info.bi_3Dspherepoint=Esfera centro y punto palette.info.bi_3Dspheredroite=Intersección de una esfera y una recta palette.info.bi_3Dsphereplan=Intersección de una esfera y un plano palette.info.bi_3Dspheresphere=Intersección de dos esferas palette.info.bi_3Dsymc=Simetría central 3D palette.info.bi_3Dsymp=Simetría plana palette.info.bi_3Dproj=Proyección sobre un plano macro.bi_3Dsymc.0=Usted quiere construir el simétrico de un punto: ¿Cuál es el centro de simetría? macro.bi_3Dsymc.1=Usted quiere construir el simétrico de un punto: ¿simétrico de qué punto? macro.bi_3Dsymp.0=Usted quiere construir el simétrico con respecto a un plano: ¿cuál plano? primer punto macro.bi_3Dsymp.1=Usted quiere construir el simétrico con respecto a un plano: ¿cuál plano? segundo punto macro.bi_3Dsymp.2=Usted quiere construir el simétrico con respecto a un plano: ¿cuál plano? tercer punto macro.bi_3Dsymp.3=Usted quiere construir el simétrico con respecto a un plano: ¿simétrico de cuál punto? macro.bi_3Dproj.0=Usted quiere construir la proyección sobre un plano:¿cuál plano? primer punto macro.bi_3Dproj.1=Usted quiere construir la proyección sobre un plano:¿cuál plano? segundo punto macro.bi_3Dproj.2=Usted quiere construir la proyección sobre un plano:¿cuál plano? tercer punto macro.bi_3Dproj.3=Usted quiere construir la proyección sobre un plano:¿cuál es el punto que quiere proyectar? macro.bi_3Dtrans.0=Usted quiere construir la traslación de un punto: ¿cuál es el origen del vector? macro.bi_3Dtrans.1=Usted quiere construir la traslación de un punto: ¿cuál es el extremo del vector? macro.bi_3Dtrans.2=Usted quiere construir la traslación de un punto: ¿de cuál punto? macro.bi_3Dcircle1.0=Usted quiere construir un círculo: ¿alrededor de cuál eje? macro.bi_3Dcircle1.1=Usted quiere construir un círculo: ¿que pase por cuál punto? macro.bi_3Dcircle2.0=Usted quiere construir un círculo de radio dado: ¿cuál es la dirección? señale una recta macro.bi_3Dcircle2.1=Usted quiere construir un círculo de radio dado: ¿cuál es la centro? señale un punto macro.bi_3Dcircle2.2=Usted quiere construir un círculo de radio dado: ¿de qué radio? señale un número macro.bi_3Dcircle3pts.0=Usted quiere construir un círculo por tres puntos: ¿cuál es el primer punto? macro.bi_3Dcircle3pts.1=Usted quiere construir un círculo por tres puntos: ¿cuál es el segundo punto? macro.bi_3Dcircle3pts.2=Usted quiere construir un círculo por tres puntos: ¿cuál es el tercer punto? macro.bi_3Dplandroite.0=Usted quiere construir la intersección de un plano y una recta: ¿cuál plano? primer punto macro.bi_3Dplandroite.1=Usted quiere construir la intersección de un plano y una recta: ¿cuál plano? segundo punto macro.bi_3Dplandroite.2=Usted quiere construir la intersección de un plano y una recta: ¿cuál plano? tercer punto macro.bi_3Dplandroite.3=Usted quiere construir la intersección de un plano y una recta: ¿cuál es la recta? macro.bi_3Dplanplan.0=Usted quiere construir la intersección de dos planos: ¿primer plano? primer punto macro.bi_3Dplanplan.1=Usted quiere construir la intersección de dos planos: ¿primer plano? segundo punto macro.bi_3Dplanplan.2=Usted quiere construir la intersección de dos planos: ¿priemr plano? tercer punto macro.bi_3Dplanplan.3=Usted quiere construir la intersección de dos planos: ¿segundo plano? primer punto macro.bi_3Dplanplan.4=Usted quiere construir la intersección de dos planos: ¿segundo plano? segundo punto macro.bi_3Dplanplan.5=Usted quiere construir la intersección de dos planos: ¿segundo plano? tercer punto macro.bi_3Dsphererayon.0=Usted quiere construir una esfera: ¿cuál es el centro? macro.bi_3Dspherepoint.0=Usted quiere construir una esfera: ¿cuál es el centro? macro.bi_3Dspherepoint.1=Usted quiere construir una esfera: ¿que pase por qué punto? macro.bi_3Dspheredroite.0=Usted quiere la intersección de una esfera y una recta: ¿cuál esfera? macro.bi_3Dspheredroite.1=Usted quiere la intersección de una esfera y una recta: ¿cuál recta? macro.bi_3Dsphereplan.0=Usted quiere la intersección de una esfera y un plano: ¿cuál esfera? macro.bi_3Dsphereplan.1=Usted quiere la intersección de una esfera y un plano: ¿cuál plano? primer punto macro.bi_3Dsphereplan.2=Usted quiere la intersección de una esfera y un plano: ¿cuál plano? segundo punto macro.bi_3Dsphereplan.3=Usted quiere la intersección de una esfera y un plano: ¿cuál plano? tercer punto macro.bi_3Dspheresphere.0=Usted quiere la intersección de dos esferas: ¿Cuál es la primera? macro.bi_3Dspheresphere.1=Usted quiere la intersección de dos esferas: ¿Cuál es la segunda? palette.info.bi_3Docta=Octaedro regular macro.bi_3Docta.0=Usted quiere un octaedro regular: ¿cuál es el centro? palette.info.bi_3Disoc=Icosaedro regular macro.bi_3Disoc.0=Usted quiere un icosaedro regular: ¿cuál es el centro? palette.info.angle3D=Ángulo 3D palette.info.intersection3D=Intersección 3D JSeditor.choseGenerator=Interruptor modo principiante (seleccioando) / modo normal (desseleccionado) aerialview=vista de techo frontview=vista de frente rightview=vista derecha backview=vista estándar carmetal-4.3/src/eric/docs/JZirkelProperties_fr.properties000066400000000000000000001016211417122252700240510ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Fichier menu.file.new=Nouvelle figure menu.file.load=Ouvrir... menu.file.save=Enregistrer menu.file.saveas=Enregistrer sous... menu.file.exportpng=Exporter vers PNG menu.file.exporteps=Exporter vers EPS menu.file.exportsvg=Exporter vers SVG menu.file.quit=Quitter menu.edit=\u00c9dition menu.edit.copy=Copier menu.edit.move=D\u00e9placer un objet menu.edit.rename=Renommer menu.edit.edit=Modifier menu.edit.hide=Cacher menu.edit.delete=Supprimer menu.display=Affichage menu.display.hidden=Montrer/Cacher les objets invisibles menu.display.grid=Montrer/Cacher la grille menu.display.finegrid=Axes seulement menu.display.leftsnap=Grille magn\u00e9tique menu.display.manage_macros=Inspecteur de macros menu.display.history_panel=Historique menu.display.help_panel=Panneau d'aide menu.display.properties_panel=Inspecteur d'objets menu.display.small=Petites ic\u00f4nes menu.display.medium=Moyennes ic\u00f4nes menu.display.large=Grandes ic\u00f4nes menu.display.restrictedpalette=Afficher la palette restreinte menu.display.restrictedpaletteedit=Modifier la palette restreinte menu.display.restrictmessage=
Cette fonctionnalit\u00e9 vous permet de visualiser la palette restreinte.

Elle ne concerne que le fichier en cours.

Lors de l'enregistrement, vous pourrez choisir l'option «enregistrer aussi la figure restreinte».
Deux fichiers seront alors cr\u00e9\u00e9s : le premier (.zir) s'ouvrira en mode normal, et
le deuxi\u00e8me (.r.zir) en mode restreint.
menu.macros=Macros menu.special=Sp\u00e9cial menu.special.newmacro=Cr\u00e9er macro menu.special.loadmacros=Ouvrir un fichier de macros... menu.special.definejob=D\u00e9finir un exercice menu.special.loadjob=Ouvrir un exercice... menu.special.jobcomment=R\u00e9diger texte de l'exercice menu.special.testjob=Tester cet exercice menu.special.savejob=Enregistrer en tant qu'exercice menu.special.export=Cr\u00e9er un fichier HTML et voir dans le navigateur menu.special.exporttemplate=Exporter en HTML avec mod\u00e8les menu.help=Aide menu.help.about=\u00c0 propos de CaRMetal... menu.help.info=Aide contextuelle menu.help.url0=Site CaRMetal menu.help.url1=Site CARzine menu.help.url2=Site officiel de C.a.R. filedialog.options=Options de sauvegarde filedialog.saveas=Enregistrer la figure filedialog.alsorestricted=Enregistrer aussi la figure restreinte filedialog.restrictedmessage=Vous travaillez actuellement dans une session restreinte,
votre figure sera donc enregistr\u00e9e en mode restreint. filedialog.filefilter=Fichier CaR (.zir) filedialog.compressedfilefilter=Fichier CaR compress\u00e9 (.zirz) filedialog.macrofilefilter=Fichier de macros (.mcr) filedialog.savemessage1=Le fichier :\n filedialog.savemessage2=\nexiste d\u00e9j\u00e0. Voulez-vous vraiment le remplacer ? palette.file=Fichier palette.edit=\u00c9dition palette.construction=Construction palette.aspect=Aspect & couleur palette.history=Historique palette.sizes=Tailles palette.sizes.point=Points palette.sizes.line=Lignes palette.sizes.arrow=Fl\u00e8ches palette.sizes.font=Police palette.prec=Pr\u00e9cision num\u00e9rique palette.prec.lengths=Longueurs palette.prec.edit=Expressions palette.prec.angles=Angles palette.colors=Fond : couleur & image palette.colors.saturated1=Couleurs satur\u00e9es palette.colors.desaturated1=Couleurs d\u00e9satur\u00e9es palette.colors.saturated2=Couleurs satur\u00e9es 2 palette.colors.desaturated2=Couleurs d\u00e9satur\u00e9es 2 palette.colors.constants=Couleurs Web palette.image.fileerror=Vous devez enregistrer cette figure avant d'utiliser cette fonctionnalit\u00e9.

Ensuite, l'image que vous choisirez doit figurer
dans le m\u00eame r\u00e9pertoire que cette figure. palette.info.vector=Vecteur palette.info.image3=Ins\u00e9rer une image+\u00e0 partir de 2 ou 3 points palette.info.background=Choisir/Effacer une image de fond palette.info.imcenter=Centrer l'image de fond palette.info.imstretch=\u00c9tirer l'image de fond+pour qu'elle remplisse+la fen\u00eatre de construction palette.info.imtile=R\u00e9p\u00e9ter l'image de fond palette.info.copy=Copier la fen\u00eatre de construction+dans le presse-papier palette.info.exportpng=Exporter la construction+de la fen\u00eatre actuelle au format PNG palette.info.exporteps=Exporter la construction+de la fen\u00eatre actuelle au format EPS palette.info.newmacro=Cr\u00e9er une nouvelle macro palette.info.loadmacros=Ouvrir un fichier de macros palette.info.manage_macros=Montrer/Cacher le panneau+de gestion des macros palette.info.properties_panel=Montrer/Cacher le panneau+des propri\u00e9t\u00e9s des objets palette.info.history_panel=Montrer/Cacher le panneau+de l'historique de la construction palette.info.help_panel=Montrer/Cacher le panneau+d'aide contextuelle macros.untitledmacro=Macro sans titre macros.untitledfolder=Dossier sans titre macros.emptynode=-- Vide -- macros.addfolder=Ajouter un nouveau dossier macros.deleteselected=Supprimer les macros s\u00e9lectionn\u00e9es macros.renamemacro=Renommer la macro s\u00e9lectionn\u00e9e macros.recordmacro=Enregistrer une macro macros.initials=Objets initiaux ? macros.pleaseselect=S\u00e9lectionnez, S.V.P ! macros.finals=Objets finaux ? macros.cancel=Annuler ? macros.popup.run=Lancer la macro macros.popup.rename=Renommer macros.popup.delete=Supprimer... macros.popup.addtolibrary=Ajouter \u00e0 la biblioth\u00e8que macros.popup.removefromlibrary=Retirer de la biblioth\u00e8que macros.popup.publish=Inclure dans la figure macros.popup.notpublish=Ne pas inclure dans la figure macros.popup.saveas=Enregistrer sous... macros.popup.properties=Montrer les propri\u00e9t\u00e9s macros.popup.duplicate=Dupliquer macros.savedlog.buttonok=Enregistrer le fichier de macro(s) macros.question.delete=\u00cates-vous s\u00fbr de vouloir vraiment effacer ces macros ? rene.zirkel.objects.PointObject=Pt rene.zirkel.objects.PrimitiveCircleObject=Cer. rene.zirkel.objects.PrimitiveLineObject=Dte rene.zirkel.objects.ExpressionObject=Exp rene.zirkel.objects.FixedAngleObject=Fangle. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=DLne rene.zirkel.objects.TwoPointLineObject=Lne rene.zirkel.objects.FunctionObject=Fct rene.zirkel.objects.AreaObject=Area mi.pal.name=Inspecteur de macros mi.name=Nom : mi.comment=Commentaire : mi.properties=Propri\u00e9t\u00e9s des objets initiaux : mi.hideproperties=Propri\u00e9t\u00e9s des objets finaux : mi.hideduplicates=Cacher les doublons \u00e9ventuels mi.apply=Appliquer mi.tab.type=Type mi.tab.name=Nom mi.tab.prompt=Invite mi.tab.fix=Fixe ? mi.tab.ask=Ask ? mi.error.initial=Erreur : au moins un objet initial \ndoit \u00eatre libre (ni fix\u00e9, ni demand\u00e9)\n\nAucune modification ne sera\napport\u00e9e \u00e0 cette macro. props.help=Pour pouvoir visualiser les propri\u00e9t\u00e9s d'un objet, cliquer-droit sur celui-ci.

Si vous cr\u00e9ez un nouvel objet contenant des points, vous pourrez voir et \u00e9diter les propri\u00e9t\u00e9s de ces points pendant la cr\u00e9ation de l'objet. props.name=Nom : props.alias=Alias : props.unit=Unit\u00e9 : props.fix=Fixe : props.expl=Explication : props.belongto=Calque : props.conditional=Aspect conditionnel : props.solid=Opaque : props.hidden=Cach\u00e9 : props.normal=Normal : props.bold=\u00c9pais : props.thin=Pointill\u00e9s : props.black=Noir : props.green=Vert : props.blue=Bleu : props.brown=Marron : props.cyan=Cyan : props.red=Rouge : props.showasslider=Curseur props.error=Il y a une erreur de syntaxe dans cette expression.
Elle va \u00eatre r\u00e9initialis\u00e9e. props.cartesian=Fonction cart\u00e9sienne props.parametric=Fonction param\u00e9tr\u00e9e props.functiontype=Type : props.killarc=Supp. arc props.arc=Arc props.release=D\u00e9tacher props.bind=Attacher props.setaway=Loin de props.setclose=Pr\u00e8s de # v1.3 : props.grid=Incr\u00e9ment : props.inside=Dans l'objet : props.pointsonly=Seulement avec des points : props.step=Pas : palette.grid=Aspect de la grille leftpanel.macros=Panneau de gestion des macros leftpanel.properties=Panneau de propri\u00e9t\u00e9s des objets leftpanel.history=Panneau d'historique leftpanel.help=Panneau d'aide selectpopup.whatobject=quel objet ? selectpopup.RightClick=S\u00e9lectionner selectpopup.MoverTool=D\u00e9placer selectpopup.HiderTool=Cacher/Montrer selectpopup.DeleteTool=Supprimer selectpopup.RenamerTool=Renommer selectpopup.EditTool=\u00c9diter selectpopup.SetParameterTool=Macro initiaux : selectpopup.SetTargetsTool=Macro finaux : selectpopup.JSmacroTool=S\u00e9lectionner palette.info.locus=Lieu de point+Enveloppe de droite # v1.4 : menu.special.savezirset=Cr\u00e9er un diaporama filedialog.openfolder.title=Dialogue de s\u00e9lection du dossier du diaporama filedialog.openfolder.approve=S\u00e9lectionner le dossier du diaporama filedialog.openfolder.saveicons=Enregistrer aussi les outils restreints slideshow.next=suivant slideshow.previous=pr\u00e9c\u00e9dent slideshow.download=T\u00e9l\u00e9charger le fichier slideshow.signature=Diaporama r\u00e9alis\u00e9 avec # v1.5 : menu.language=Langues menu.help.url3=Traduire CaRMetal menu.display.smartboard=Mode TNI (Tableau num\u00e9rique interactif) # v1.6 : palette.info.bi_syma=Sym\u00e9trie axiale palette.info.bi_symc=Sym\u00e9trie centrale palette.info.bi_trans=Translation palette.info.bi_med=M\u00e9diatrice palette.info.bi_biss=Bissectrice palette.info.bi_circ=Cercle circonscrit palette.info.bi_arc=Arc passant par trois points palette.info.bi_t_align=Points align\u00e9s ? palette.info.bi_t_para=Droites parall\u00e8les ? palette.info.bi_t_perp=Droites perpendiculaires ? palette.info.bi_t_equi=Point \u00e9quidistant de deux autres ? palette.info.bi_t_app=Appartient \u00e0 une droite ? palette.info.bi_t_conf=Points confondus ? macro.bi_syma.0=Axe de sym\u00e9trie ? macro.bi_syma.1=Sym\u00e9trique de quel point ? macro.bi_symc.0=Centre de sym\u00e9trie ? macro.bi_symc.1=Sym\u00e9trique de quel point ? macro.bi_trans.0=Origine du vecteur ? macro.bi_trans.1=Extr\u00e9mit\u00e9 du vecteur ? macro.bi_trans.2=Image de quel point ? macro.bi_med.0=Premi\u00e8re extr\u00e9mit\u00e9 du segment ? macro.bi_med.1=Seconde extr\u00e9mit\u00e9 du segment ? macro.bi_biss.0=Premier point ? macro.bi_biss.1=Sommet de l'angle ? macro.bi_biss.2=Dernier point ? macro.bi_circ.0=Premier point ? macro.bi_circ.1=Second point ? macro.bi_circ.2=Troisi\u00e8me point ? macro.bi_t_para.0=Premi\u00e8re droite (ou segment) ? macro.bi_t_para.1=Deuxi\u00e8me droite (ou segment) ? macro.bi_t_equi.0=Ce point est-il \u00e9quidistant ... macro.bi_t_equi.1=De ce point ... macro.bi_t_equi.2=Et de ce point ? macro.bi_t_app.0=Quel point ? macro.bi_t_app.1=Appartient \u00e0 quelle droite (ou segment) ? macro.bi_t_conf.0=Quel point ? macro.bi_t_conf.1=Est confondu avec quel point ? macro.bi_t_align.text0=Les points sont align\u00e9s macro.bi_t_align.text1=Les points ne sont pas align\u00e9s macro.bi_t_para.text0=Les objets sont parall\u00e8les macro.bi_t_para.text1=Les objets ne sont pas parall\u00e8les macro.bi_t_perp.text0=Les objets sont perpendiculaires macro.bi_t_perp.text1=Les objets ne sont pas perpendiculaires macro.bi_t_equi.text0=Les points sont \u00e9quidistants macro.bi_t_equi.text1=Les points ne sont pas \u00e9quidistants macro.bi_t_app.text0=Le point est sur l'objet macro.bi_t_app.text1=Le point n'est pas sur l'objet macro.bi_t_conf.text0=Les deux points sont confondus macro.bi_t_conf.text1=Les deux points ne sont pas confondus # v1.7 : filedialog.openfolder.appletsize=Taille de l'applet : filedialog.openfolder.actualsize=Taille actuelle filedialog.openfolder.other=Autre... filedialog.openfolder.selected=Dossier choisi : filedialog.openfolder.cancel=Annuler menu.file.exportsvg=Exporter vers SVG menu.objects.points=Points menu.objects.lines=Droites menu.objects.segments=Segments menu.objects.circles=Cercles et coniques menu.objects.angles=Angles menu.objects.tracks=Traces et lieux menu.objects.functions=Fonctions et expressions palette.info.function_u=Fonction d\u00e9finie par l'utilisateur palette.info.function=Tracer une fonction+ou une courbe param\u00e9tr\u00e9e props.superhidden=Compl\u00e8tement cach\u00e9 : props.showvalue=Montrer valeur : props.showname=Montrer nom : props.background=Arri\u00e8re-plan : macro.bi_expression.0=Point d'ancrage ? # v1.9a : licence.txt=

Ce programme est un logiciel gratuit sous licence GNU-GPL, ce qui signifie que vous pouvez le redistribuer et/ou le modifier selon les termes de la licence publi\u00e9e par la "Free Software Foundation"
Voir :

# v2.0 : menu.special.theme=Themes menu.special.theme.gray=Metal poli menu.special.theme.brushed=Metal bross\u00e9 menu.special.options=Pr\u00e9f\u00e9rences... menu.special.options.sizes=Tailles menu.special.options.sizes.minpointsize=Taille des points menu.special.options.sizes.minlinesize=Epaisseur des lignes menu.special.options.sizes.arrowsize=Taille des fl\u00e8ches menu.special.options.sizes.minfontsize=Taille des caract\u00e8res menu.special.options.sizes.digits.lengths=Pr\u00e9cision des longueurs menu.special.options.sizes.digits.edit=Pr\u00e9cision des expressions menu.special.options.sizes.digits.angles=Pr\u00e9cision des angles menu.special.options.colors=Couleurs menu.special.options.others=Autres menu.special.options.others.undock=Possibilit\u00e9 de d\u00e9tacher les palettes # v2.1 : menu.file.close=Fermer la fen\u00eatre # v2.3 : alert.toomuchwins=Il y a trop de fen\u00eatres ouvertes :
veuillez en fermer quelques-unes
afin de pouvoir en ouvrir d'autres... # v2.4 : menu.file.new3D=Nouvelle figure 3D palette.info.bi_3Dcoords=Point 3D macro.bi_3Dcoords.0=choisir un point palette.info.bi_3Dcube=Cube macro.bi_3Dcube.0=Centre du cube ? palette.info.bi_3Darete=Ar\u00eate 3D (gestion des pointill\u00e9s) macro.bi_3Darete.0=Point gauche ? macro.bi_3Darete.1=Origine de l'ar\u00eate ? macro.bi_3Darete.2=Point droit ? macro.bi_3Darete.3=Extr\u00e9mit\u00e9 de l'ar\u00eate ? palette.info.bi_3Dtetra=Tetra\u00e8dre r\u00e9gulier macro.bi_3Dtetra.0=Centre du t\u00e9tra\u00e8dre ? menu.newdoc=Nouveau # v2.5.5 : palette.aspect.label.text_title=Aspect des palette.aspect.label.point=points palette.aspect.label.line=droites palette.aspect.label.segment=segments palette.aspect.label.circle=cercles palette.aspect.label.angle=angles palette.aspect.label.area=polygones palette.aspect.label.text=textes palette.aspect.label.image=images palette.info.bi_3Ddode=Dod\u00e9ca\u00e8dre r\u00e9gulier macro.bi_3Ddode.0=Centre du dod\u00e9ca\u00e8dre ? # v2.7 : palette.aspect.label.pointshape=Forme & nom des points : palette.aspect.label.locus=lieux menu.edit.deleteall=Effacer tout # v2.7.1 : java.old.message=D\u00e9sol\u00e9... Vous ne pouvez demarrer l'application CaRMetal parce que votre version de Java est trop ancienne... java.old.quit=Quitter java.old.go=T\u00e9l\u00e9charger une nouvelle version de java palette.info.boundedpoint=Placer un point sur un plan+ou sur une face de poly\u00e8dre #v2.7.2 : user.foldername=Profil Utilisateur CaRMetal #v2.8 props.fixedray=Rayon : props.fixedsegment=Longueur : props.fixedangle=Angle : props.expl=Commentaire : props.aspecttab=Aspect props.numerictab=Num\u00e9rique props.conditionaltab=Conditionnel props.popup.special=Caract\u00e8res sp\u00e9ciaux props.popup.functions=Fonctions pr\u00e9d\u00e9finies props.popup.latex=Commandes LaTeX #v2.8.1 props.fixedinwindow=Li\u00e9 \u00e0 la fen\u00eatre #v2.8.5 palette.controls=Contr\u00f4les props.ctrlshowvalue=Montrer la valeur du contr\u00f4le props.ctrlsnap=Fix\u00e9 aux graduations props.ctrlshowticks=Montrer les graduations props.ctrltickspacing=Incr\u00e9ment : palette.info.ctrl_edit=Editer, d\u00e9placer+ou redimensionner le contr\u00f4le palette.info.ctrl_chkbox=Ajouter une bo\u00eete \u00e0 cocher palette.info.ctrl_popup=Ajouter un menu d\u00e9roulant palette.info.ctrl_slider=Ajouter un curseur #v2.8.6 props.trackdmin=Nombre d'\u00e9tapes : opendialog.preview=Aper\u00e7u : pngdialog.options=Options d'exportation : pngdialog.scale=Echelle : pngdialog.originsize=Taille d'origine : pngdialog.scaledsize=Taille \u00e0 l'echelle : #v2.8.7 canvas.3D.floor=Sol canvas.3D.system=Rep\u00e8re canvas.3D.rightclic=Utiliser le clic-droit glisser pour faire pivoter #v2.8.8 palette.info.equationxy=Courbe d\u00e9finie par f(x,y)=0 props.equationxy=Equation : props.equationxychooser=Pr\u00e9cision : palette.function=Fonctions & Lieux #v2.8.9 menu.edit.deletealltracks=Effacer les traces menu.edit.deactivatealltracks=D\u00e9sactiver les traces props.tracks=Activer la trace menu.edit.zoom=Zoomer ou d\u00e9placer #v2.9.0 menu.windows=Fen\u00eatre #v2.9.1 contexthelp.seealso=Sujets connexes : #v2.9.2 menu.display.restrictmessage.dontdisplay=Ne plus afficher ce message props.thick=\u00c9pais : #v2.9.6 props.magnetmessage=Cliquer sur les objets que vous voulez ajouter \u00e0 (ou enlever de) la liste des objets magn\u00e9tiques props.magnetobj=Objets magn\u00e9tiques props.magnetpix=Attraction (20 px) : #v2.9.7 palette.info.ctrl_txtfield=Ajouter une boite d'entr\u00e9e num\u00e9rique palette.info.ctrl_button=Ajouter un bouton #v2.9.8.4 JSerror.title=Erreur de syntaxe JSerror.line=ligne JSerror.pointcoords=Erreur de syntaxe dans les coordonn\u00e9es du point JSerror.interactiveinput=Erreur pendant la d\u00e9signation de l'objet JSerror.notfound=Objet non trouv\u00e9 JSerror.notgoodtype=Impossible \u00e0 appliquer \u00e0 ce type d'objet JScmd.inputmessage=Votre question ? JScmd.promptmessage=Votre message... menu.js=Javascript menu.js.script=Ouvrir un fichier javascript... menu.js.command=Ouvrir l'\u00e9diteur de script JSeditor.title=Editeur javascript #v3.0 JSeditor.save=Enregistrer le script JSeditor.open=Ouvrir un script JSeditor.opendlogmsg=Ouvrir le script JSeditor.savedlogmsg=Enregistrer le script JSeditor.format=Indenter le script JSeditor.restore=Annuler les effets du dernier lancement de script JSeditor.run=Lancer le script JSeditor.help=Obtenir une aide sur la syntaxe JSEditor.comment=Commenter/D\u00e9commenter la selection JSEditor.savequestion=Ce script a chang\u00e9 : voulez-vous l'enregistrer ? # v3.1.1 menu.js.define=Definir le dossier de scripts... menu.js.dumb=Executer les scripts sans \u00e9diteur JSeditor.opendfavfolder=Choisir comme dossier de scripts JSeditor.saveas=Enregistrer le script sous... # v3.5 tab.popup.newfigure=Nouvelle figure tab.popup.rename=Renommer la figure tab.popup.duplicate=Dupliquer figure tab.popup.openworkbook=Ouvrir un classeur... tab.popup.saveworkbookas=Enregistrer le classeur sous... tab.popup.saveworkbook=Enregistrer le classeur tab.newfigurebasename=Figure workbook.workbookmode=Mode classeur workbook.savequestion=Ce classeur a \u00e9t\u00e9 modifi\u00e9. Voulez-vous l'enregistrer ? progressbar.loadmessage=Figure en cours d'ouverture : veuillez patienter... progressbar.workbookloadmessage=Classeur en cours d'ouverture : veuillez patienter... progressbar.workbooksavemessage=Classeur en cours de sauvegarde : veuillez patienter... macro.creationdlog.title=Cr\u00e9ation d'une macro macros.name=Nom de la macro ? JSmenu.cancel=Annuler les effets JSmenu.add=Ajouter un nouveau script JSmenu.modify=Modifier le script JSmenu.delete=Supprimer le script JSeditor.saveinfig.question=Entrer le nom du script : JSeditor.saveinfig.title=Enregistrer le script dans la figure JSeditor.saveinfig=Enregistrer le script dans la figure courante JSeditor.infig=Script inclus dans la figure : menu.js.newscriptinconstruction=Nouveau script dans la construction... menu.workbook.saveas=Enregistrer le classeur sous... media.saveas=Des images ont \u00e9t\u00e9 trouv\u00e9es dans la construction,
vous allez donc enregistrer les fichiers dans un m\u00eame classeur. menu.display.comment=Montrer/Cacher les commentaires menu.display.palette=Montrer/Cacher la palette menu.display.leftpanel=Montrer/Cacher le panneau de gauche comment.emptycomment= menu.export.workbook=Exporter le classeur dans une page HTML menu.assigment=Exercice JSerror.condition=Erreur dans l'expression de condition filedialog.workbook=Classeur CaRMetal (.zirs) filedialog.job=Exercice CaRMetal (.job) filedialog.js=Scripts CaRMetal (.js) filedialog.allfiles=Fichiers CaRMetal (.zirs,.zir,.zirz,.mcr,.job,.js) tab.popup.savefileonly=Enregistrer la figure sous... animation.run=D\u00e9marrer les animations animation.stop=Arr\u00eater les animations animation.speed=Vitesse des animations animation.removeall=Supprimer toutes les animations animation.reverse=Inverser le sens des animations restrict.title=Gestionnaire d'environnement restreint menu.display.restrictedenvironment=Gestionnaire d'environnement restreint restrict.ok=Ok restrict.cancel=Annuler restrict.activate=Activer l'environnement restreint restrict.factory=R\u00e9glages d'usine restrict.comment=Afin de s\u00e9lectionner ou d\u00e9selectionner facilement de multiples outils, vous pouvez effectuer un clic-droit/glisser sur les ic\u00f4nes. restrict.menubar=Afficher la barre des menus restrict.librarymacros=Permettre les macros de biblioth\u00e8que menu.help.opendefaultfolder=Ouvrir le dossier de configuration monkey.btn.tooltip=Secouer la construction
(Maintenir le bouton de la souris enfonc\u00e9) job.message.ok=Bravo ! job.message.failed=Construction non valide... job.gui.hidebox=Cacher les cibles job.gui.ok=Message de r\u00e9ussite : job.gui.failed=Message d'\u00e9chec : job.gui.targets=Liste des cibles : cliquer ici pour s\u00e9lectionner job.gui.close=Cr\u00e9er job.gui.delete=Supprimer job.gui.valid=V\u00e9rifier la construction job.gui.restore=Revenir \u00e0 l'\u00e9nonc\u00e9 job.gui.exercise=Ceci est un exercice : job.gui.progressmessage=V\u00e9rification de votre construction en cours job.gui.alignment=mais la construction n'est pas valide dans quelques cas d'alignement job.gui.title=Editeur d'exercices restrict.historypanel=Permettre l'affichage du panneau d'historique restrict.macropanel=Permettre l'affichage du panneau de macros restrict.helppanel=Permettre l'affichage du panneau d'aide restrict.failed.percent=Le taux d'echec enregistr\u00e9 \u00e9tait de : restrict.failed.initial=Echec d\u00e8s la position initiale # v3.5.3 job.gui.staticjob=Exercice statique # v3.6 menu.edit.copyURL=Copier le classeur en tant qu'URL canvas.copy.message=Rel\u00e2cher la souris pour copier la s\u00e9lection. ESC : Annuler | MAJ : Carr\u00e9 | ALT : Incr\u00e9ment 10 x 10. menu.file.newDP=Nouveau disque de Poincar\u00e9 palette.info.DP_line=Droite hyperbolique palette.info.DP_midpoint=Milieu hyperbolique palette.info.DP_bi_syma=Sym\u00e9trie axiale hyperbolique palette.info.DP_bi_symc=Sym\u00e9trie centrale hyperbolique palette.info.DP_plumb=Perpendiculaire hyperbolique palette.info.DP_bi_med=M\u00e9diatrice hyperbolique palette.info.DP_bi_biss=Bissectrice hyperbolique palette.info.DP_segment=Segment hyperbolique palette.info.DP_ray=Demi-droite hyperbolique palette.info.DP_angle=Angle hyperbolique palette.info.DP_circle=Cercle hyperbolique palette.info.DP_bi_distance=Distance hyperbolique palette.info.DP_bi_perp_common=Perpendiculaire commune palette.info.DP_bi_lineIP=Droite avec points id\u00e9aux palette.info.DP_bi_horocycle=Horicycles par deux points palette.info.DP_bi_equidistante=\u00c9quidistante \u00e0 une droite par un point palette.info.DP_fixedangle=Angle fixe hyperbolique palette.info.DP_bi_circ=Cercle hyperbolique passant par trois points macro.DP_line.1=Premier point de la droite hyperbolique macro.DP_line.2=Second point de la droite hyperbolique macro.DP_midpoint.1=Premier point macro.DP_midpoint.2=Second point macro.DP_bi_syma.1=Droite hyperbolique macro.DP_bi_syma.2=Point macro.DP_bi_symc.1=Centre macro.DP_bi_symc.2=Point macro.DP_plumb.1=Droite hyperbolique macro.DP_plumb.2=Point macro.DP_bi_med.1=Premier point macro.DP_bi_med.2=Second point macro.DP_bi_biss.1=Premier point macro.DP_bi_biss.2=Sommet de l'angle macro.DP_bi_biss.3=Troisi\u00e8me point macro.DP_segment.1=Premier point macro.DP_segment.2=Second point macro.DP_ray.1=Premier point macro.DP_ray.2=Second point macro.DP_angle.1=Premier point macro.DP_angle.2=Sommet de l'angle macro.DP_angle.3=Troisi\u00e8me point macro.DP_circle.1=Centre macro.DP_circle.2=Second point macro.DP.distance.1=Premier point macro.DP_bi_distance.2=Second point macro.DP_bi_distance.3=Point d'ancrage pour afficher la distance macro.DP_bi_perp_common.1=Premi\u00e8re droite hyperbolique macro.DP_bi_perp_common.2=Seconde droite hyperbolique macro.DP_bi_lineIP.1=Premier point macro.DP_bi_lineIP.2=Second point macro.DP_bi_horocycle.1=Premier point macro.DP_bi_horocycle.2=Second point macro.DP_bi_equidistante.1=Droite hyperbolique macro.DP_bi_equidistante.2=Un point sur l'\u00e9quidistante macro.DP_fixedangle.1=Premier point macro.DP_fixedangle.2=Sommet de l'angle macro.DP_fixedangle.3=Valeur de l'angle macro.DP_bi_circ.1=Premier point macro.DP_bi_circ.2=Second point macro.DP_bi_circ.3=Troisi\u00e8me point canvas.DP.message1=Le cercle est l'horizon du disque de Poincar\u00e9. canvas.DP.message2=Utiliser la zone de palette "Construction" pour ajouter des objets sur ce plan hyperbolique. JSmenu.ScriptsManager=Gestionnaire de scripts JSmenu.up=Monter JSmenu.down=Descendre JSmenu.rename=Renommer : JSmenu.killall=Tuer toutes les t\u00e2ches JSmenu.stopall=Stopper toutes les t\u00e2ches JSmenu.restartall=Red\u00e9marrer toutes les t\u00e2ches palette.construction.euclidian=Outils euclidiens JSmenu.executeonstart=Le script se lance \u00e0 l'ouverture de la figure JSmenu.dragaction=Cliquer ou glisser : palette.sizes.selectionsize=S\u00e9lection palette.sizes.monkeyspeed=Monkey JSmenu.dragaction.message=S\u00e9lectionner les points ou les boutons auxquels vous voulez attacher ce script splash.message=Logiciel de g\u00e9om\u00e9trie dynamique #v3.6.2 palette.sizes.gridopacity=Grille #v3.6.3 menu.file.exportpdf=Exporter vers PDF menu.edit.copyto=Copier vers palette.info.select=Zone de s\u00e9lection+pour le copier et l'export palette.info.DP_bi_pinceau1=Droite pinceau passant+par un point macro.DP_bi_pinceau1.1=Premi\u00e8re droite macro.DP_bi_pinceau1.2=Deuxi\u00e8me droite macro.DP_bi_pinceau1.3=Point palette.info.DP_bi_pinceau3=Produit de trois droites+en pinceau macro.DP_bi_pinceau3.1=Premi\u00e8re droite macro.DP_bi_pinceau3.2=Deuxi\u00e8me droite macro.DP_bi_pinceau3.3=Troisi\u00e8me droite palette.info.DP_bi_pinceauinter=Intersection de deux pinceaux macro.DP_bi_pinceauinter.1=Pinceau 1 - droite 1 macro.DP_bi_pinceauinter.2=Pinceau 1 - droite 2 macro.DP_bi_pinceauinter.3=Pinceau 2 - droite 1 macro.DP_bi_pinceauinter.4=Pinceau 2 - droite 2 palette.info.DP_bi_pinceauhauteur=Perpendiculaire issue d\u2019un pinceau macro.DP_bi_pinceauhauteur.1=Droite 1 du pinceau macro.DP_bi_pinceauhauteur.2=Droite 2 du pinceau macro.DP_bi_pinceauhauteur.3=Droite orthogonale au pinceau palette.info.DP_bi_pinceaucycle=Cycle par pinceau et par point macro.DP_bi_pinceaucycle.1=Droite 1 du pinceau macro.DP_bi_pinceaucycle.2=Droite 2 du pinceau macro.DP_bi_pinceaucycle.3=Point palette.info.DP_bi_pinceaubiss=Bissectrice de droites orient\u00e9es macro.DP_bi_pinceaubiss.1=Droite 1 macro.DP_bi_pinceaubiss.2=Pt id\u00e9al 1 de Drte 1 macro.DP_bi_pinceaubiss.3=Pt id\u00e9al 2 de Drte 1 macro.DP_bi_pinceaubiss.4=Droite 2 macro.DP_bi_pinceaubiss.5=Pt id\u00e9al 1 de Drte 2 macro.DP_bi_pinceaubiss.6=Pt id\u00e9al 2 de Drte 2 #v3.7.2 JSFonctions.Input=Entr\u00e9e JSFonctions.Print=Affichage JSFonctions.Println=Affichage 1 ligne JSFonctions.Alert=Affichage popup JSFonctions.ifelse=Si... sinon JSFonctions.switchcase=Test multiple JSFonctions.for=Faire 20 fois JSFonctions.while=Tant que JSFonctions.dowhile=faire{..} tant que() JSFonctions.function=fonction{...} #v3.7.6 menu.export.embedworkbook=Encapsuler le classeur dans une page HTML menu.edit.copyapplettag=Copier le tag Applet #v3.8 menu.network=R\u00e9seau network.menu.launch=Lancer / Arr\u00eater le serveur network.menu.connect=Connexion au serveur / D\u00e9connexion network.server.title=Serveur network.server.ip=IP locale network.server.launch=D\u00e9marrer network.server.receive=Recevoir seulement (Global) network.server.circles=Cercles network.server.functions=Fonctions network.server.rtw=Vue en temps r\u00e9el network.server.send=Envoyer \u00e0 : network.server.all=Tous network.client.title=Gestionnaire de connexion network.client.Name=Nom : network.client.name= network.client.ip=IP du serveur : network.client.connect=Se connecter network.client.sendwork=Envoyer tout le travail network.client.share=Partager #v4.0 JSFonctions.dountil=faire{..} jusqu'\u00e0(); palette.info.vector3D=Vecteur palette.info.midpoint3D=Milieu palette.info.segment3D=Segment 3D palette.info.line3D=Droite 3D palette.info.ray3D=Demi-droite 3D palette.info.area3D=Polygone 3D props.fixedsegment3D=Longueur3D : palette.info.bi_3Dtrans=Translation 3D palette.info.bi_3Dcircle1=Cercle 3D d'axe donn\u00e9 passant par un point palette.info.bi_3Dcircle2=Cercle 3D axe-direction centre rayon palette.info.bi_3Dcircle3pts=Cercle 3D passant par trois points palette.info.bi_3Dplandroite=Intersection d'un plan et d'une droite palette.info.bi_3Dplanplan=Intersection de deux plans palette.info.bi_3Dsphererayon=Sph\u00e8re de rayon donn\u00e9 palette.info.bi_3Dspherepoint=Sph\u00e8re passant par un point palette.info.bi_3Dspheredroite=Intersection d'une sph\u00e8re et d'une droite palette.info.bi_3Dsphereplan=Intersection d'une sph\u00e8re et d'un plan palette.info.bi_3Dspheresphere=Intersection de deux sph\u00e8res palette.info.bi_3Dsymc=Sym\u00e9trie centrale 3D palette.info.bi_3Dsymp=Sym\u00e9trie par rapport \u00e0 un plan palette.info.bi_3Dproj=Projection sur un plan macro.bi_3Dsymc.0=Centre de sym\u00e9trie ? macro.bi_3Dsymc.1=Sym\u00e9trique de quel point ? macro.bi_3Dsymp.0=Plan de sym\u00e9trie : Premier point ? macro.bi_3Dsymp.1=Plan de sym\u00e9trie : Deuxi\u00e8me point ? macro.bi_3Dsymp.2=Plan de sym\u00e9trie : Troisi\u00e8me point ? macro.bi_3Dsymp.3=Sym\u00e9trique de quel point ? macro.bi_3Dproj.0=Plan de projection : Premier point ? macro.bi_3Dproj.1=Plan de projection : Deuxi\u00e8me point ? macro.bi_3Dproj.2=Plan de projection : Troisi\u00e8me point ? macro.bi_3Dproj.3=Projet\u00e9 de quel point ? macro.bi_3Dtrans.0=Origine du vecteur ? macro.bi_3Dtrans.1=Extr\u00e9mit\u00e9 du vecteur ? macro.bi_3Dtrans.2=Image de quel point ? macro.bi_3Dcircle1.0=Axe du cercle ? macro.bi_3Dcircle1.1=Passant par le point ? macro.bi_3Dcircle2.0=Axe (=direction) du cercle ? macro.bi_3Dcircle2.1=Centre du cercle ? macro.bi_3Dcircle2.2=Valeur du rayon ? macro.bi_3Dcircle3pts.0=Premier point ? macro.bi_3Dcircle3pts.1=Deuxi\u00e8me point ? macro.bi_3Dcircle3pts.2=Troisi\u00e8me point ? macro.bi_3Dplandroite.0=Plan : premier point ? macro.bi_3Dplandroite.1=Plan : deuxi\u00e8me point ? macro.bi_3Dplandroite.2=Plan : troisi\u00e8me point ? macro.bi_3Dplandroite.3=Droite ? macro.bi_3Dplanplan.0=Plan 1 : premier point ? macro.bi_3Dplanplan.1=Plan 1 : deuxi\u00e8me point ? macro.bi_3Dplanplan.2=Plan 1 : troisi\u00e8me point ? macro.bi_3Dplanplan.3=Plan 2 : premier point ? macro.bi_3Dplanplan.4=Plan 2 : deuxi\u00e8me point ? macro.bi_3Dplanplan.5=Plan 2 : troisi\u00e8me point ? macro.bi_3Dsphererayon.0=Centre de la sph\u00e8re ? macro.bi_3Dspherepoint.0=Centre de la sph\u00e8re ? macro.bi_3Dspherepoint.1=Passant par le point ? macro.bi_3Dspheredroite.0=Sphere ? macro.bi_3Dspheredroite.1=Droite ? macro.bi_3Dsphereplan.0=Sphere ? macro.bi_3Dsphereplan.1=Plan : premier point ? macro.bi_3Dsphereplan.2=Plan : deuxi\u00e8me point ? macro.bi_3Dsphereplan.3=Plan : troisi\u00e8me point ? macro.bi_3Dspheresphere.0=Sph\u00e8re 1 ? macro.bi_3Dspheresphere.1=Sph\u00e8re 2 ? palette.info.bi_3Docta=Octa\u00e8dre r\u00e9gulier macro.bi_3Docta.0=Centre de l'octa\u00e8dre ? palette.info.bi_3Disoc=Icosa\u00e8dre r\u00e9gulier macro.bi_3Disoc.0=Centre de l'isoca\u00e8dre ? palette.info.angle3D=Angle 3D palette.info.intersection3D=Intersection 3D de lignes JSeditor.choseGenerator=Interrupteur mode d\u00e9butant (coch\u00e9) / mode normal (pas coch\u00e9) aerialview=vue d'avion frontview=vue de face rightview=vue de droite backview=retour en vue mobile #v4.0.3.2 JSeditor.tortue=Cr\u00e9er la tortue et/ou l'attacher \u00e0 un point JSeditor.avancer=Avancer JSeditor.reculer=Reculer JSeditor.tournerG=Tourner \u00e0 Gauche JSeditor.tournerD=Tourner \u00e0 Droite JSeditor.vitesse=Fixer la vitesse de la tortue JSeditor.crayonB=Baisser le stylo JSeditor.crayonH=Lever le stylo JSeditor.cacher=Cacher la tortue JSeditor.montrer=Montrer la tortue JSeditor.orienter=Orienter la tortue JSeditor.viser=Viser un point JSeditor.avancer2=Avancer et renvoyer le point d'arriv\u00e9e JSeditor.avancer3=Avancer et renvoyer le segment parcouru JSeditor.avancer4=Avancer et renvoyer le point d'arriv\u00e9e et le segment parcouru JSeditor.reculer2=Reculer et renvoyer le point d'arriv\u00e9e JSeditor.reculer3=Reculer et renvoyer le segment parcouru JSeditor.reculer4=Reculer et renvoyer le point d'arriv\u00e9e et le segment parcouru JSeditor.tournerG3D=Tourner \u00e0 Gauche JSeditor.tournerD3D=Tourner \u00e0 Droite JSeditor.pivoterH=Pivoter vers le Haut JSeditor.pivoterB=Pivoter vers le Bas JSeditor.pivoterG=Pivoter vers la Gauche JSeditor.pivoterD=Pivoter vers la Droite #v4.2.8 JSeditor.choseFrench=Interrupteur code en fran\u00e7ais (coch\u00e9) / code en anglais (pas coch\u00e9)carmetal-4.3/src/eric/docs/JZirkelProperties_gl.properties000066400000000000000000000210611417122252700240430ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Archivo menu.file.new=Novo menu.file.load=Abrir... menu.file.save=Registrar menu.file.saveas=Registrar como... menu.file.exportpng=Exportar vers PNG menu.file.exporteps=Exportar vers EPS menu.file.quit=Sa\u00EDr menu.edit=Edici\u00F3n menu.edit.copy=Copiar menu.edit.move=mover menu.edit.rename=Renomear menu.edit.edit=Modificar menu.edit.hide=Ocultar menu.edit.delete=Suprimir menu.display=Mostrar menu.display.hidden=Mostrar/Ocultar os obxectos invisibles menu.display.grid=Mostrar/Ocultar a grella menu.display.finegrid=Eixes soamente menu.display.leftsnap=Grella magn\u00E9tica menu.display.manage_macros=Inspeccioar macros menu.display.history_panel=Hist\u00F3rico menu.display.help_panel=Panel de axuda menu.display.properties_panel=Inspeccionar obxectos menu.display.small= Iconos pequenos menu.display.medium= Iconos medianos menu.display.large=Iconos grandes menu.display.restrictedpalette=Fixar a paleta restrinxida menu.display.restrictedpaletteedit=Modificar la paleta restrinxida menu.display.restrictmessage=
Esta utilidade permite visualizar a paleta restrinxida.

Esto solo afecta ao archivo en uso.

Ao gardar, vostede poder\u00E1 elexir a opci\u00F3n de gardar tam\u00E9n a figura restrinxida;.
cr\u00E9anse ent\u00F3n dous arquivos: O primeiro (.zir) abrirase en modo normal, e
o segundo (.r.zir) en modo restrinxido.
menu.macros=Macros menu.special=Especial menu.special.newmacro=Crear macro menu.special.loadmacros=Abrir un arquivo de macros... menu.special.definejob=Definir un exercicio menu.special.loadjob=Abrir un exercicio... menu.special.jobcomment=Redactar o texto do exercicio menu.special.testjob=Revisar este exercicio menu.special.savejob=Gardar el exercicio menu.special.export=Crear un arquivo HTML e velo con navegador menu.special.exporttemplate=Exportar a HTML coas plantillas menu.help=Axuda menu.help.about=Acerca de CaRMetal... menu.help.info=Axuda contextual menu.help.url0=P\u00E1xina de CaRMetal menu.help.url1=P\u00E1xina de CARzine menu.help.url2=P\u00E1xina oficial de C.a.R. filedialog.options=Opciones de gardado filedialog.saveas=Gardar construcci\u00F3n filedialog.alsorestricted=Gardar tam\u00E9n as restrcci\u00F3ns da construcci\u00F3n filedialog.restrictedmessage=Est\u00E1 a traballar agora nunha sesi\u00F3n restrinxida,
a construcci\u00F3n gardarase en modo restrinxido. filedialog.filefilter=Arquivo CaR (.zir) filedialog.compressedfilefilter=Arquivo CaR comprimido (.zirz) filedialog.macrofilefilter=Arquivo de macros (.mcr) filedialog.savemessage1=O arquivo :\n filedialog.savemessage2=\xa existe, \u00BFest\u00E1 seguro de querer reemplazalo ? palette.file=Arquivo palette.edit=Edici\u00F3n palette.construction=Construci\u00F3n palette.aspect=Aspecto e color palette.history=Historico palette.sizes=Tama\u00F1o palette.sizes.point=Puntos palette.sizes.line=Li\u00F1as palette.sizes.arrow=Flechas palette.sizes.font=Fontes palette.prec=Precisi\u00F3n num\u00E9rica palette.prec.lengths=Lonxitude palette.prec.edit=Expresi\u00F3ns palette.prec.angles=\u00C1ngulos palette.colors=Fondo: cor e imaxe palette.colors.saturated1=Cores saturados palette.colors.desaturated1=Cores desaturados palette.colors.saturated2=Cores saturados 2 palette.colors.desaturated2=Cores desaturados 2 palette.colors.constants=Cores Web palette.image.fileerror=Debe gardar a construci\u00F3n antes de usar esta ferramenta.

Despois, a imaze que elixa debe figurar
na mesma ubicaci\u00F3n que esta figura. palette.info.vector=Vector palette.info.image3=Insertar unha imaxe utilizando 2 ou 3 puntos palette.info.background=Elexir/borrar unha imaxe de fondo palette.info.imcenter=Centrar a imaxe de fondo palette.info.imstretch=Axeitar o tama\u00F1o da imaxe a vent\u00E1 da construcci\u00F3n palette.info.imtile=Fondo con mosaico de imaxe palette.info.copy=Copiar a vent\u00E1 de construcci\u00F3n no portapapeis palette.info.exportpng=Exportar a construcci\u00F3n da vent\u00E1 actual ao formato PNG palette.info.exportpng= Exportar a construcci\u00F3n da vent\u00E1 actual ao formato PNG palette.info.exporteps= Exportar a construcci\u00F3n da vent\u00E1 actual ao formato EPS palette.info.newmacro=Crear unha nova macro palette.info.loadmacros=Abrir un arquivo de macros palette.info.manage_macros=Mostrar/Ocultar o panel de xestion de macros palette.info.properties_panel=Mostrar/Ocultar o panel de propiedades dos obxectos palette.info.history_panel=Mostrar/ Ocultar o panel de hist\u00F3rico da construcci\u00F3n palette.info.help_panel=Mostrar/ Ocultar el panel de axuda contextual macros.untitledmacro=Macro sen nme macros.untitledfolder=Cartafol sen nome macros.emptynode=-- Vac\u00EDo -- macros.addfolder=Engadir unha nova carpeta macros.deleteselected=Suprimir as macros seleccioadas macros.renamemacro=Cambear o nome da macro seleccioada macros.recordmacro=Gardar unha macro macros.initials=\u00BFObxectos iniciais? macros.pleaseselect=!Seleccione, por favor! macros.finals=\u00BFObxectos finais? macros.cancel=\u00BFCancelar? macros.popup.run=Arrancar a macro macros.popup.rename= Renomear macros.popup.delete=Borrar macros.popup.addtolibrary=Engadir \u00E1 biblioteca macros.popup.removefromlibrary=Quitar da biblioteca macros.popup.publish=Incluir na figura macros.popup.notpublish=Non incluir na figura macros.popup.saveas=Gardar como... macros.popup.properties=Amosar as propiedades macros.popup.duplicate=Duplicar macros.savedlog.buttonok=Gardar no arquivo de macro(s) macros.question.delete=\u00BFEst\u00E1 seguro de querer borrar estas macros ? rene.zirkel.objects.PointObject=Pto. rene.zirkel.objects.PrimitiveCircleObject=Cir. rene.zirkel.objects.PrimitiveLineObject=Lin. rene.zirkel.objects.ExpressionObject=Exp. rene.zirkel.objects.FixedAngleObject=AngF. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=Ray rene.zirkel.objects.TwoPointLineObject=Rec. rene.zirkel.objects.FunctionObject=Func. rene.zirkel.objects.AreaObject=\u00C1rea mi.pal.name=Revisar macros mi.name=Nome : mi.comment=Comentario : mi.properties=Propiedades dos obxectos iniciais : mi.hideproperties=Propiedades dos obxectos finais : mi.hideduplicates=Buscar duplicados mi.apply=Aplicar mi.tab.type=Tipo mi.tab.name=Nome mi.tab.prompt=invitaci\u00F3n mi.tab.fix=\u00BFFixar ? mi.tab.ask=\u00BFasociar? mi.error.initial=Error : a lo menos un obxecto inicial\ndebe estar libre (ni fijo, ni dependiente)\n\nNingunha modificaci\u00F3n\nser\u00E1 gardada nesta macro. props.help=Para poder visualizar as propiedades dun obxecto clicar eiqu\u00ED co bot\u00F3n dereito.

Si se crea un novo obxecto contendo estes puntos, poder\u00E1 editar as s\u00FAas propiedades durante o proceso. props.name=Nome : props.alias=Alias : props.unit=Unidades : props.fix=Fixar: props.expl=Explicaci\u00F3n : props.belongto=copiar : props.conditional=Apariencia : props.solid=Opaco : props.hidden=Cach\u00E9 : props.normal=Normal : props.bold=s\u00F3lido: props.thin=Punteado : props.black=Negro : props.green=Verde : props.blue=Azul : props.brown=Marr\u00F3n : props.cyan=Cyan : props.red=Roxo : props.showasslider=Cursor props.error=Error de sintaxis en esta expresi\u00F3n.
Vaise reiniciar. props.cartesian=Funci\u00F3n cartesiana props.parametric= Funci\u00F3n param\u00E9trica props.functiontype=Tipo : props.killarc=Arco cortado props.arc=Arco props.release=liberar props.bind=asociar props.setaway=Lexos de props.setclose=Cerca de # v1.3 : props.grid=Incremento : props.inside=Sobre el objeto: props.pointsonly=Soamente con dous puntos: props.step=Paso : palette.grid=Aspecto da grella leftpanel.macros=Panel de xesti\u00F3n de macros leftpanel.properties=Panel de propiedades dos obxectos leftpanel.history=Panel de historico leftpanel.help=Panel de axuda selectpopup.whatobject=\u00BFQu\u00E9 obxecto ? selectpopup.RightClick=Editar selectpopup.MoverTool=Desplazar selectpopup.HiderTool=Mostrar/Ocultar selectpopup.DeleteTool=Suprimir selectpopup.RenamerTool=Renomear selectpopup.EditTool=Editar selectpopup.SetParameterTool=Macro-inciais : selectpopup.SetTargetsTool=Macro-finais : palette.info.locus=Lugar do punto+ desenvolvemento da recta # v1.4 : menu.special.savezirset=Crear un diaporama filedialog.openfolder.title=Dialogo de selecci\u00F3n do cartafol do diaporama filedialog.openfolder.approve=Seleccionar o cartafol do diaporama filedialog.openfolder.saveicons=Gardar tam\u00E9n as restricc\u00F3ns de iconos slideshow.next=seguinte slideshow.previous=anterior slideshow.download=Cargar o arquivo slideshow.signature=Diaporama realizado con # v1.5 : menu.language=Idiomas menu.help.url3=Traducir CaRMetalcarmetal-4.3/src/eric/docs/JZirkelProperties_it.properties000066400000000000000000000420031417122252700240540ustar00rootroot00000000000000# Esempio di file di propriet\u00E0 ResourceBundle menu.file=File menu.file.new=Nuovo menu.file.load=Apri... menu.file.save=Salva menu.file.saveas=Salva con nome... menu.file.exportpng=Esporta in PNG menu.file.exporteps=Esporta in EPS menu.file.quit=Esci menu.edit=Modifica menu.edit.copy=Copia menu.edit.move=Sposta menu.edit.rename=Rinomina menu.edit.edit=Modifica menu.edit.hide=Nascondi menu.edit.delete=Elimina menu.display=Visualizza menu.display.hidden=Mostra/Nascondi oggetti menu.display.grid=Mostra/Nascondi griglia menu.display.finegrid=Solo assi menu.display.leftsnap=Blocca con trascinamento pulsante sinistro menu.display.manage_macros=Ispettore macro menu.display.history_panel=Cronologia menu.display.help_panel=Guida menu.display.properties_panel=Pannello delle propriet\u00E0 dell'oggetto menu.display.small=Icone piccole menu.display.medium=Icone medie menu.display.large=Icone grandi menu.display.restrictedpalette=Mostra tavolozza limitata menu.display.restrictedpaletteedit=Modifica tavolozza limitata menu.display.restrictmessage=
Questa voce consente la visualizzazione della tavolozza limitata.

Si riferisce esclusivamente al file corrente :

quando si salva in modalit\u00E0 'salva con nome' \u00E8 possibile scegliere l'opzione 'salva anche la figura limitata'
verranno creati due file:il primo (.zir) si aprir\u00E0 in modalit\u00E0 'normale', e
il secondo (.r.zir) in modalit\u00E0 limitata
menu.macros=Macro menu.special=Speciale menu.special.newmacro=Nuova macro menu.special.loadmacros=Apri file macro... menu.special.definejob=Definisci un Problema menu.special.loadjob=Carica un Problema ... menu.special.jobcomment=Imposta il testo del Problema ... menu.special.testjob=Verifica questo Problema menu.special.savejob=Salva come Problema ... menu.special.export=Crea file HTML e anteprima nel browser menu.special.exporttemplate=Esporta in HTML con modelli menu.help=Guida menu.help.about=Informazioni su CaRMetal... menu.help.info=Guida attiva menu.help.url0=Vai al sito di CaRMetal menu.help.url1=Vai al sito di CARzine menu.help.url2=Vai al sito ufficiale di C.a.R. filedialog.saveas=Salva figura filedialog.alsorestricted=Salva anche la figura limitata filedialog.options=Opzioni di salvataggio filedialog.restrictedmessage=Questa \u00E8 una sessione limitata,
quindi la figura verr\u00E0 salvata in modalit\u00E0 limitata filedialog.filefilter=File CaR (.zir) filedialog.compressedfilefilter=File CaR compresso (.zirz) filedialog.macrofilefilter=File macro di CaR (.mcr) filedialog.savemessage1=File :\n filedialog.savemessage2=\ngi\u00E0 esistente. Sostituire il file ? palette.file=File palette.edit=Modifica palette.construction=Costruzione palette.aspect=Aspetto e colore palette.history=Cronologia palette.sizes=Dimensioni palette.sizes.point=Punto palette.sizes.line=Retta palette.sizes.arrow=Freccia palette.sizes.font=Carattere palette.prec=Precisione numerica palette.prec.lengths=Lunghezze palette.prec.edit=Espressioni palette.prec.angles=Angoli palette.colors=Colore e immagine di sfondo palette.colors.saturated1=Colori saturati palette.colors.desaturated1=Colori desaturati palette.colors.saturated2=Colori saturati 2 palette.colors.desaturated2=Colori desaturati 2 palette.colors.constants=Costanti Web palette.image.fileerror=Salvare la figura prima di utilizzate questo strumento

In seguito, la figura da selezionare dovr\u00E0 essere
nella stessa cartella. palette.info.vector=Vettore palette.info.image3=Inserisci immagine+con 2 o 3 punti palette.info.background=Scegli/elimina l'immagine di sfondo palette.info.imcenter=Centra l'immagine di sfondo palette.info.imstretch=Adatta l'immagine di sfondo+alla finestra della costruzione palette.info.imtile=Affianca l'immagine di sfondo palette.info.copy=Copia la finestra della costruzione palette.info.exportpng=Esporta la finestra della+costruzione in formato png palette.info.exporteps=Esporta la finestra dalla+costruzione in formato eps palette.info.newmacro=Crea una nuova macro palette.info.loadmacros=Carica un file macro palette.info.manage_macros=Mostra/nascondi il pannello delle macro palette.info.properties_panel=Mostra/nascondi il pannello delle propriet\u00E0+degli oggetti palette.info.history_panel=Mostra/nascondi il pannello della cronologia+della costruzione palette.info.help_panel=Mostra/nascondi il pannello della guida attiva macros.untitledmacro=Macro senza nome macros.untitledfolder=Cartella senza nome macros.emptynode=-- Vuoto -- macros.addfolder=Aggiungi nuova cartella macros.deleteselected=Elimina macro selezionate macros.renamemacro=Rinomina macro selezionate macros.recordmacro=Registra macro macros.initials=Oggetti iniziali ? macros.pleaseselect=Scegliere ! macros.finals=Oggetti finali ? macros.cancel=Annulla ? macros.popup.run=Esegui macro macros.popup.rename=Rinomina macros.popup.delete=Elimina macros.popup.addtolibrary=Aggiungi alla libreria macros.popup.removefromlibrary=Rimuovi dalla libreria macros.popup.publish=Includi nella figura macros.popup.notpublish=Non includere nella figura macros.popup.saveas=Salva con nome... macros.popup.properties=Mostra propriet\u00E0 macros.popup.duplicate=Duplicato macros.savedlog.buttonok=Salva file macro macros.question.delete=Eliminare le macro ? rene.zirkel.objects.PointObject=Pt rene.zirkel.objects.PrimitiveCircleObject=Cir rene.zirkel.objects.PrimitiveLineObject=Rt rene.zirkel.objects.ExpressionObject=Esp. rene.zirkel.objects.FixedAngleObject=AngF rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=SemRt rene.zirkel.objects.TwoPointLineObject=Rt rene.zirkel.objects.FunctionObject=Fz rene.zirkel.objects.AreaObject=Area mi.pal.name=Ispettore macro mi.name=Nome : mi.comment=Commento : mi.properties=Propriet\u00E0 parametri : mi.hideproperties=Propriet\u00E0 destinazioni : mi.hideduplicates=Nascondi duplicati mi.apply=Applica mi.tab.type=Tipo mi.tab.name=Nome mi.tab.prompt=Prompt mi.tab.fix=Fissa ? mi.tab.ask=Chiedi ? mi.error.initial=Errore : almeno un parametro \ndeve essere libero (non fissato, non chiedere)\n\nQuesta macro non verr\u00E0 modificata props.help=Per visualizzare le propriet\u00E0 fare clic con il pulsante destro del mouse su un oggetto.

Se viene creato un nuovo oggetto mentre questo pannello \u00E8 aperto, \u00E8 possibile modificarne le propriet\u00E0 durante il processo di creazione. props.name=Nome : props.alias=Alias : props.unit=Unit\u00E0 : props.fix=Fissa : props.expl=Spiegazione : props.belongto=Livello : props.conditional=Aspetto : props.solid=Solido : props.hidden=Nascosto : props.normal=Normale : props.bold=Spesso : props.thin=Punteggiato : props.black=Nero : props.green=Verde : props.blue=Blu : props.brown=Marrone : props.cyan=Azzurro : props.red=Rosso : props.showasslider=Slider : props.error=Questa espressione contiene un errore di sintassi.
L'espressione verr\u00E0 reinizializzata props.cartesian=Funzione cartesiana props.parametric=Funzione parametrica props.functiontype=Tipo : props.killarc=No arco props.arc=Arco props.release=Rilascia props.bind=Vincola props.setaway=Imposta lontano props.setclose=Imposta vicino # v1.3 : props.grid=Incremento : props.inside=Dentro all'oggetto : props.pointsonly=Solo punti : props.step=Passo : palette.grid=Aspetto della griglia leftpanel.macros=Pannello delle macro leftpanel.properties=Pannello delle propriet\u00E0 leftpanel.history=Pannello della cronologia leftpanel.help=Pannello della Guida selectpopup.whatobject=quale oggetto ? selectpopup.RightClick=Seleziona selectpopup.MoverTool=Sposta selectpopup.HiderTool=Mostra/nascondi selectpopup.DeleteTool=Elimina selectpopup.RenamerTool=Rinomina selectpopup.EditTool=Modifica selectpopup.SetParameterTool=Oggetti iniziali della macro: selectpopup.SetTargetsTool=Oggetti finali della macro: palette.info.locus=Luogo di punti+curva inviluppo # v1.4 : menu.special.savezirset=Crea presentazione... filedialog.openfolder.title=Selezione della cartella della presentazione filedialog.openfolder.approve=Selezionare la cartella della presentazione filedialog.openfolder.saveicons=Salva anche le icone limitate slideshow.next=successivo slideshow.previous=precedente slideshow.download=Scarica file slideshow.signature=Presentazione creata con # v1.5 : menu.language=Lingue menu.language.de=Tedesco menu.language.en=Inglese menu.language.fr=Francese menu.language.es=Spagnolo menu.language.gl=Galiziano menu.language.zh_TW=Cinese (Tradizionale) menu.help.url3=Traduci CaRMetal menu.display.smartboard=Modalit\u00E0 smartboard # v1.6 : menu.language.no=Norvegese palette.info.bi_syma=Simmetria assiale palette.info.bi_symc=Simmetria centrale palette.info.bi_trans=Traslazione palette.info.bi_med=Asse di un segmento palette.info.bi_biss=Bisettrice palette.info.bi_circ=Circonferenza per 3 punti palette.info.bi_arc=Arco di circonferenza per 3 punti palette.info.bi_t_align=Punti allineati ? palette.info.bi_t_para=Rette parallele ? palette.info.bi_t_perp=Rette perpendicolari ? palette.info.bi_t_equi=Equidistante da due punti ? palette.info.bi_t_app=Appartiene ad una retta ? palette.info.bi_t_conf=Punti coincidenti ? macro.bi_syma.0=Asse di simmetria ? macro.bi_syma.1=Punto da riflettere ? macro.bi_symc.0=Centro di simmetria ? macro.bi_symc.1=Punto da riflettere ? macro.bi_trans.0=Primo punto del vettore ? macro.bi_trans.1=Secondo punto del vettore ? macro.bi_trans.2=Punto da traslare ? macro.bi_med.0=Primo punto del segmento ? macro.bi_med.1=Secondo punto del segmento ? macro.bi_biss.0=Primo punto ? macro.bi_biss.1=Vertice dell'angolo ? macro.bi_biss.2=Ultimo punto ? macro.bi_circ.0=Primo punto ? macro.bi_circ.1=Secondo punto ? macro.bi_circ.2=Terzo punto ? macro.bi_t_para.0=Prima retta ? macro.bi_t_para.1=Seconda retta ? macro.bi_t_equi.0=Questo punto \u00E8 equidistante ... macro.bi_t_equi.1=Da questo punto ... macro.bi_t_equi.2=E questo punto ? macro.bi_t_app.0=Quale punto ? macro.bi_t_app.1=Su quale retta (o segmento) giace ? macro.bi_t_conf.0=Quale punto ? macro.bi_t_conf.1=Su quale punto ? macro.bi_t_align.text0=I punti sono allineati macro.bi_t_align.text1=I punti non sono allineati macro.bi_t_para.text0=Gli oggetti sono paralleli macro.bi_t_para.text1=Gli oggetti non sono paralleli macro.bi_t_perp.text0=Gli oggetti sono perpendicolari macro.bi_t_perp.text1=Gli oggetti non sono perpendicolari macro.bi_t_equi.text0=I punti sono equidistanti macro.bi_t_equi.text1=I punti non sono equidistanti macro.bi_t_app.text0=Il punto appartiene all'oggetto macro.bi_t_app.text1=Il punto non appartiene all'oggetto macro.bi_t_conf.text0=I due punti sono coincidenti macro.bi_t_conf.text1=I due punti sono distinti palette.test=Test # v1.7 : filedialog.openfolder.appletsize=Dimensione dell'applet : filedialog.openfolder.actualsize=Dimensione attuale filedialog.openfolder.other=Altro... filedialog.openfolder.selected=Cartella selezionata : filedialog.openfolder.cancel=Annulla menu.file.exportsvg=Esporta in SVG menu.language.sl=Sloveno menu.language.nl=Olandese menu.language.pt=Portoghese props.vars=Variabili : menu.objects.points=Punti menu.objects.lines=Rette menu.objects.segments=Segmenti menu.objects.circles=Circonferenze e coniche menu.objects.angles=Angoli menu.objects.tracks=Tracce e luoghi menu.objects.functions=Funzioni ed espressioni palette.info.function_u=Funzione definita dall'utente palette.info.function=Funzione+o curva parametrica props.superhidden=Completamente nascosto : props.showvalue=Mostra valore : props.showname=Mostra nome : props.background=Sfondo : macro.bi_expression.0=Ancora il punto ? # v1.9a : menu.help.licence=Licenza... licence.txt=

Questo programma \u00E8 un software libero sotto licenza GNU-GPL. Questo significa che \u00E8 possibile ridistribuire il programma e/o modificarlo secondo i termini della licenza pubblicata da Free Software Foundation;
Vedere :

# v2.0 : menu.special.theme=Temi menu.special.theme.gray=Metallo lucidato menu.special.theme.brushed=Metallo spazzolato menu.special.options=Preferenze... menu.special.options.sizes=Dimensioni menu.special.options.sizes.minpointsize=Dimensione punto menu.special.options.sizes.minlinesize=Dimensione retta menu.special.options.sizes.arrowsize=Dimensione freccia menu.special.options.sizes.minfontsize=Dimensione carattere menu.special.options.sizes.digits.lengths=Precisione lunghezza menu.special.options.sizes.digits.edit=Precisione espressione menu.special.options.sizes.digits.angles=Precisione angolo menu.special.options.colors=Colori menu.special.options.others=Altro menu.special.options.others.undock=\u00C8 possibile sbloccare le tavolozze # v2.1 : menu.file.close=Chiudi finestra # v2.3 : alert.toomuchwins=Ci sono troppe finestre aperte :
chiuderne alcune prima di aprire
una nuova finestra # v2.4 : menu.file.new3D=Nuova figura 3D palette.3D=3D palette.info.bi_3Dcoords=coordinate 3D macro.bi_3Dcoords.0=Ancora il punto ? palette.info.bi_3Dcube=Cubo macro.bi_3Dcube.0=Centro del cubo ? palette.info.bi_3Darete=spigoli 3D macro.bi_3Darete.0=Primo punto ? macro.bi_3Darete.1=Secondo punto ? macro.bi_3Darete.2=Terzo punto ? macro.bi_3Darete.3=Quarto punto ? palette.info.bi_3Dtetra=Tetraedro regolare macro.bi_3Dtetra.0=Centro del tetraedro ? menu.newdoc=Nuovo menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=Aspetto di palette.aspect.label.point=punti palette.aspect.label.line=rette palette.aspect.label.segment=segmenti palette.aspect.label.circle=circonferenze palette.aspect.label.angle=angoli palette.aspect.label.area=poligoni palette.aspect.label.text=testi palette.info.bi_3Ddode=Dodecaedro regolare macro.bi_3Ddode.0=Centro del dodecaedro ? # v2.7 : palette.aspect.label.pointshape=Forma e nome dei punti : palette.aspect.label.locus=luoghi menu.edit.deleteall=Elimina tutto # v2.7.1 : java.old.message=Impossibile avviare CaRMetal, la versione disponibile di Java \u00E8 obsoleta java.old.quit=Esci java.old.go=Scarica la nuova versione di Java palette.info.boundedpoint=Posiziona un punto in un piano+o sulla faccia di un poliedro #v2.7.2 : user.foldername=Profilo Utente CarMetal #v2.8 props.fixedray=Semiretta : props.fixedsegment=Lunghezza : props.fixedangle=Angolo : props.expl=Commenti : props.aspecttab=Aspetto props.numerictab=Numerico props.conditionaltab=Condizionale props.thick=Spessore : props.popup.special=Caratteri speciali props.popup.functions=Funzioni predefinite props.popup.latex=Comandi LaTeX menu.language.pl=Polacco #v2.8.1 props.fixedinwindow=Collegato alla finestra #v2.8.5 palette.controls=Controlli props.ctrlshowvalue=Mostra valore props.ctrlsnap=Blocca sui segni di spunta props.ctrlshowticks=Mostra segni di spunta props.ctrltickspacing=Incremento : palette.info.ctrl_edit=Modifica, muovi o ridimensiona il controllo palette.info.ctrl_chkbox=Aggiungi casella di controllo palette.info.ctrl_popup=Aggiungi menu a scomparsa palette.info.ctrl_slider=Aggiungi cursore #v2.8.6 props.trackdmin=Numero di passi : opendialog.preview=Anteprima : pngdialog.options=Opzioni di esportazione : pngdialog.scale=Scala : pngdialog.originsize=Dimensioni originali : pngdialog.scaledsize=Dimensione in scala : #v2.8.7 canvas.3D.floor=Piano canvas.3D.system=Sistema di coordinate canvas.3D.rightclic=Utilizzare clic destro e trascinamento per ruotare il sistema di coordinate #v2.8.8 palette.info.equationxy=Curva implicita props.equationxy=Equazione : props.equationxychooser=Precisione : palette.function=Funzioni e luogo #v2.8.9 menu.edit.deletealltracks=Cancella tracce menu.edit.deactivatealltracks=Disattiva tracce props.tracks=Attiva tracce menu.edit.zoom=Zoom o muovi #v2.9.0 menu.windows=Finestra #v2.9.1 contexthelp.seealso=Vedere anche : #v2.9.2 menu.language.pt_BR=Brasiliano menu.display.restrictmessage.dontdisplay=Non visualizzare pi\u00F9 questo messaggio #v2.9.6 props.magnetmessage=Fare clic sugli oggetti da aggiungere / rimuovere dalla lista magnetica props.magnetobj=Oggetti magnetici props.magnetpix=Attrazione (20 px) : props.show=Mostra #v2.9.7 palette.info.ctrl_txtfield=Aggiungi casella di immissione numerica palette.info.ctrl_button=Aggiungi pulsante #v2.9.8.4 JSerror.title=Errore di sintassi JSerror.line=linea JSerror.pointcoords=Errore di sintassi nelle coordinate del punto JSerror.interactiveinput=Errore durante la selezione dell'oggetto JSerror.notfound=Oggetto non trovato JSerror.notgoodtype=Impossibile applicare a questo tipo di oggetto JScmd.inputmessage=Domanda utente ? JScmd.promptmessage=Messaggio utente... menu.js=Javascript menu.js.script=Apri file javascript... menu.js.command=Apri l'editor degli script JSeditor.title=Editor Javascript #v3.0 JSeditor.save=Salva script JSeditor.open=Apri script JSeditor.opendlogmsg=Apri script JSeditor.savedlogmsg=Salva script JSeditor.format=Formato script JSeditor.restore=Elimina l'ultima esecuzione JSeditor.run=Esegui script JSeditor.help=Guida per la sintassi JSEditor.comment=Selezione Commenta/Non commenta JSEditor.savequestion=Sono state apportate modifiche allo script : salvare ? menu.language.ar_TN=Arabo # v3.1.1 menu.js.define=Definisci la cartella degli script ... menu.js.dumb=Esegui gli script preferiti senza l'editor JSeditor.opendfavfolder=Seleziona la cartella degli script JSeditor.saveas=Salva script come... carmetal-4.3/src/eric/docs/JZirkelProperties_nl.properties000066400000000000000000000256021417122252700240570ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Bestand menu.file.new=Nieuw menu.file.load=Open... menu.file.save=Bewaar menu.file.saveas=Bewaar als... menu.file.exportpng=Exporteer als PNG menu.file.exporteps=Exporteer als EPS menu.file.quit=Stop menu.edit=Wijzig menu.edit.copy=Kopieer menu.edit.move=Verplaats menu.edit.rename=Hernoem menu.edit.edit=Wijzig menu.edit.hide=Verberg menu.edit.delete=Verwijder menu.display=Toon menu.display.hidden=Toon/Verberg voorwerpen menu.display.grid=Toon/Verberg raster menu.display.finegrid=Enkel as menu.display.leftsnap=Snap met slepen met linkermuistoets menu.display.manage_macros=Macro Inspector menu.display.history_panel=Geschiedenis menu.display.help_panel=Help menu.display.properties_panel=Voorwerpeigenschappen venster menu.display.small=Kleine iconen menu.display.medium=Medium iconen menu.display.large=Grote iconen menu.display.restrictedpalette=Toon beperkt palet menu.display.restrictedpaletteedit=Wijzig beperkt palet menu.display.restrictmessage=
Dit item laat je toe om het beperkte palet te tonen.

Het heeft alleen betrekking op het huidige bestand:

als je 'bewaar als' uitvoert, is het mogelijk om te kiezen voor 'bewaar ook de beperkte figuur'.
Er worden dan twee bestanden aangemaakt: het eerste (.zir) zal in 'normale modus' openen, en
het tweede (.r.zir) in 'beperkte modus'
menu.macros=Macro's menu.special=Speciaal menu.special.newmacro=Nieuwe macro menu.special.loadmacros=Open Macrobestand... menu.special.definejob=Definieer een opgave menu.special.loadjob=Laad een opgave ... menu.special.jobcomment=Geef opgavetekst ... menu.special.testjob=Test deze opgave menu.special.savejob=Bewaar als opgave ... menu.special.export=Maak HTML-bestand en voorvertoning in browser menu.special.exporttemplate=HTML export met templates menu.help=Help menu.help.about=Over CaRMetal... menu.help.info=Contexthelp menu.help.url0=Ga naar CaRMetal site menu.help.url1=Ga naar CARzine site menu.help.url2=Ga naar offici\u00EBle C.a.R. site filedialog.saveas=Bewaar tekening filedialog.alsorestricted=Bewaar ook beperkte figuur filedialog.options=Opties bewaren filedialog.restrictedmessage=Je werkt in een sessie met beperkingen,
dus wordt je figuur bewaard in beperkte modus. filedialog.filefilter=CaR-bestand (.zir) filedialog.compressedfilefilter=Gecomprimeerd CaR-bestand (.zirz) filedialog.macrofilefilter=CaR Macro-bestand (.mcr) filedialog.savemessage1=Bestand :\n filedialog.savemessage2=\nbestaat al. Wil je het echt vervangen? palette.file=Bestand palette.edit=Wijzig palette.construction=Constructie palette.aspect=Aspectkleur palette.history=Geschiedenis palette.sizes=Groottes palette.sizes.point=Punt palette.sizes.line=Lijn palette.sizes.arrow=Pijl palette.sizes.font=Lettertype palette.prec=Numerieke nauwkeurigheid palette.prec.lengths=Lengtes palette.prec.edit=Uitdrukkingen palette.prec.angles=Hoeken palette.colors=Achtergrondkleur afbeelding palette.colors.saturated1=Gesatureerde kleuren palette.colors.desaturated1=Gedesatureerde kleuren palette.colors.saturated2=Gesatureerde kleuren 2 palette.colors.desaturated2=Gedesatureerde kleuren 2 palette.colors.constants=Webconstanten palette.image.fileerror=Voordat je dit werktuig gebruikt moet je deze tekening bewaren.

De figuur die je daarna kiest moet
in dezelfde map zitten. palette.info.vector=Vector palette.info.image3=Voeg afbeelding met 2 of 3 punten in palette.info.background=Kies/Wis achtergrondafbeelding palette.info.imcenter=Centreer de achtergrondafbeelding palette.info.imstretch=Rek de achtergrondafbeelding schermvullend uit palette.info.imtile=Herhaal de achtergrondafbeelding palette.info.copy=Kopieer het constructievenster palette.info.exportpng=Exporteer het constructievenster als png palette.info.exporteps=Exporteer het constructievenster als eps palette.info.newmacro=Maak een nieuwe macro palette.info.loadmacros=Laad een macrobestand palette.info.manage_macros=Toon/Verberg het macrovenster palette.info.properties_panel=Toon/Verberg het voorwerpeigenschappen venster palette.info.history_panel=Toon/Verberg het constructiegeschiedenis venster palette.info.help_panel=Toon/Verberg het contextuele helpvenster macros.untitledmacro=Naamoze macro macros.untitledfolder=Naamloze map macros.emptynode=-- Leeg -- macros.addfolder=Voeg nieuwe map toe macros.deleteselected=Verwijder geselecteerde macro's macros.renamemacro=Hernoem geselecteerde macro's macros.recordmacro=Neem macro op macros.initials=Beginvoorwerpen? macros.pleaseselect=AUB selecteren! macros.finals=Eindobjecten? macros.cancel=Annuleer? macros.popup.run=Voer macro uit macros.popup.rename=Hernoem macros.popup.delete=Verwijder macros.popup.addtolibrary=Voeg toe aan bibliotheek macros.popup.removefromlibrary=Verwijder uit bibliotheek macros.popup.publish=Voeg toe aan de tekening macros.popup.notpublish=Voeg niet toe aan de tekening macros.popup.saveas=Bewaar als... macros.popup.properties=Toon eigenschappen macros.popup.duplicate=Dupliceer macros.savedlog.buttonok=Bewaar macrobestand macros.question.delete=Ben je zeker dat je deze macro's wil verwijderen? rene.zirkel.objects.PointObject=Pt rene.zirkel.objects.PrimitiveCircleObject=Cir rene.zirkel.objects.PrimitiveLineObject=Lne rene.zirkel.objects.ExpressionObject=Exp. rene.zirkel.objects.FixedAngleObject=Vhoek. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=Ray rene.zirkel.objects.TwoPointLineObject=Lne rene.zirkel.objects.FunctionObject=Fct rene.zirkel.objects.AreaObject=Opp mi.pal.name=Macro-inspector mi.name=Naam: mi.comment=Commentaar: mi.properties=Parametereigenschappen: mi.hideproperties=Doeleneigenschappen: mi.hideduplicates=Verberg duplicaten mi.apply=Pas toe mi.tab.type=Type mi.tab.name=Naam mi.tab.prompt=Prompt mi.tab.fix=Maak vast? mi.tab.ask=Vraag? mi.error.initial=Fout: ten minste een parameter \nmoet vrij zijn (niet vast, niet gevraagd)\n\nDeze macro zal niet veranderd worden props.help=Om de eigenschappen te zien moet je rechtsklikken op een voorwerp.

Als je een nieuw voorwerp aanmaakt met dit venster open, kan je ook bij het aanmaken zelf de eigenschappen veranderen. props.name=Naam: props.alias=Alias: props.unit=Eenheid: props.fix=Vast: props.expl=Uitleg: props.belongto=Laag: props.conditional=Voorwaardelijk aspect: props.solid=Solid: props.hidden=Verborgen: props.normal=Normaal: props.bold=Dik: props.thin=Gepunt: props.black=Zwart: props.green=Groen: props.blue=Blauw: props.brown=Bruin: props.cyan=Cyaan: props.red=Rood: props.showasslider=Schuifbalk: props.error=Er is een syntaxisfout in deze uitdrukking.
Ze wordt opnieuw ge\u00EFnitialiseerd. props.cartesian=Cartesiaanse functie props.parametric=Parameterfunctie props.functiontype=Type: props.killarc=Geen boog props.arc=Boog props.release=Laat los props.bind=Maak vast props.setaway=Weg van props.setclose=Dichtbij # v1.3 : props.grid=Increment : props.inside=Binnen voorwerp: props.pointsonly=Enkel met punten: props.step=Stap: palette.grid=Rasteraspect leftpanel.macros=Macrovenster leftpanel.properties=Eigenschappen venster leftpanel.history=Geschiedenis venster leftpanel.help=Help venster selectpopup.whatobject=Welk voorwerp? selectpopup.RightClick=Wijzig selectpopup.MoverTool=Beweeg selectpopup.HiderTool=Toon/Verberg selectpopup.DeleteTool=Verwijder selectpopup.RenamerTool=Hernoem selectpopup.EditTool=Wijzig selectpopup.SetParameterTool=Macroparameters: selectpopup.SetTargetsTool=Macrodoelen: palette.info.locus=Meetkundige plaats van omhullende # v1.4 : menu.special.savezirset=Maak diavoorstelling... filedialog.openfolder.title=Diavoorstelling map selectiedialoog filedialog.openfolder.approve=Selecteer map diavoorstelling filedialog.openfolder.saveicons=Bewaar ook de beperkte iconen slideshow.next=volgende slideshow.previous=vorige slideshow.download=Download bestand slideshow.signature=Slideshow gemaakt met # v1.5 : menu.language=Talen menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00E7ais menu.language.es=Espa\u00F1ol menu.language.gl=Galego menu.language.zh_TW=Chinees (Traditioneel) menu.help.url3=Vertaal CaRMetal # v1.6 : palette.info.bi_syma=Lijnspiegeling palette.info.bi_symc=Puntspiegeling palette.info.bi_trans=Verschuiving palette.info.bi_med=Middelloodlijn palette.info.bi_biss=Bissectrice palette.info.bi_circ=Cirkel door 3 punten palette.info.bi_arc=Boog door 3 punten palette.info.bi_t_align=Collineaire punten ? palette.info.bi_t_para=Evenwijdige rechten ? palette.info.bi_t_perp=Loodrechte rechten ? palette.info.bi_t_equi=Even ver van twee punten ? palette.info.bi_t_app=Ligt op rechte ? palette.info.bi_t_conf=Samenvallende punten ? macro.bi_syma.0=Spiegelrechte ? macro.bi_syma.1=Punt dat gespiegeld wordt ? macro.bi_symc.0=Spiegelpunt ? macro.bi_symc.1=Punt dat gespiegeld wordt ? macro.bi_trans.0=Eerste punt van de vector ? macro.bi_trans.1=Tweede punt van de vector ? macro.bi_trans.2=Punt dat verschoven wordt ? macro.bi_med.0=Eerste punt van het lijnstuk ? macro.bi_med.1=Tweede punt van het lijnstuk ? macro.bi_biss.0=Eerste punt ? macro.bi_biss.1=Hoekpunt ? macro.bi_biss.2=Laatste punt ? macro.bi_circ.0=Eerste punt ? macro.bi_circ.1=Tweede punt ? macro.bi_circ.2=Derde punt ? macro.bi_t_para.0=Eerste rechte ? macro.bi_t_para.1=Tweede rechte ? macro.bi_t_equi.0=Ligt dit punt even ver ... macro.bi_t_equi.1=van dit punt ... macro.bi_t_equi.2=als van dit punt ? macro.bi_t_app.0=Welk punt ? macro.bi_t_app.1=Ligt op welke rechte (of lijnstuk) ? macro.bi_t_conf.0=Welk punt ? macro.bi_t_conf.1=valt samen met wel punt ? macro.bi_t_align.text0=Punten liggen op zelfde rechte macro.bi_t_align.text1=Punten liggen niet op zelfde rechte macro.bi_t_para.text0=Voorwerpen zijn evenwijdig macro.bi_t_para.text1=Voorwerpen zijn niet evenwijdig macro.bi_t_perp.text0=Voorwerpen staan loodrecht op elkaar macro.bi_t_perp.text1=Voorwerpen staan niet loodrecht op elkaar macro.bi_t_equi.text0=Punten staan even ver macro.bi_t_equi.text1=Punten staan niet even ver macro.bi_t_app.text0=Het punt ligt op het voorwerp macro.bi_t_app.text1=Het punt ligt niet op het voorwerp macro.bi_t_conf.text0=De twee punten vallen samen macro.bi_t_conf.text1=De twee punten vallen niet samen palette.test=Testen # v1.7 : filedialog.openfolder.appletsize=Grootte applet : filedialog.openfolder.actualsize=Actuele grootte filedialog.openfolder.other=Ander... filedialog.openfolder.selected=Kies map : filedialog.openfolder.cancel=Annuleer menu.file.exportsvg=Exporteer als SVG props.vars=Variabelen : menu.objects.points=Punten menu.objects.lines=Rechten menu.objects.segments=Lijnstukken menu.objects.circles=Cirkels en kegelsneden menu.objects.angles=Hoeken menu.objects.tracks=Meetkundige plaatsen menu.objects.functions=Functies en uitdrukkingen palette.info.function_u=Functie gedefinieerd door gebruiker palette.info.function=Toon functie of parameterkromme props.superhidden=Volledig verborgen : props.showvalue=Toon waarde : props.showname=Toon naam : props.background=Achtergrond : macro.bi_expression.0=Ankerpunt ?carmetal-4.3/src/eric/docs/JZirkelProperties_no.properties000066400000000000000000000176211417122252700240640ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Fil menu.file.new=Ny menu.file.load=\u00C5pne... menu.file.save=Lagre menu.file.saveas=Lagre Som... menu.file.exportpng=Exporter til PNG menu.file.exporteps=Exporter til EPS menu.file.quit=Avslutt menu.edit=Rediger menu.edit.copy=Kopier menu.edit.move=Flytt menu.edit.rename=Gi Nytt Navn menu.edit.edit=Endre menu.edit.hide=Skjul menu.edit.delete=Slett menu.display=Vis menu.display.hidden=Vis/Skjul Objekter menu.display.grid=Vis/Skjul Rutenett menu.display.finegrid=Kun Aksene menu.display.leftsnap=Snap med venstre mustast menu.display.manage_macros=Makro Utforsker menu.display.history_panel=Historie menu.display.help_panel=Hjelp menu.display.properties_panel=Objekt Egenskaps Panel menu.display.small=Sm\u00E5 ikoner menu.display.medium=Medium ikoner menu.display.large=Store ikoner menu.display.restrictedpalette=Vis Begrenset Palett menu.display.restrictedpaletteedit=Endre Begrenset Palett menu.display.restrictmessage=
Dette gj\u00F8r at du ser den begrensede paletten.

Dette ang\u00E5r kun denne filen :

n\u00E5r du vil: Lagre Som.. , vil ogs\u00E5 'Lagre den begrensede figuren' komme som alternativ
to filer vil bli laget : den f\u00F8rste (.zir) vil \u00E5pne med 'normal' innstillinger, og
den andre (.r.zir) i 'begrenset palett' innstilling
menu.macros=Makroer menu.special=Spesial menu.special.newmacro=Ny Makro menu.special.loadmacros=\u00C5pne Makro Fil... menu.special.definejob=Definer Jobb menu.special.loadjob=Last inn Jobb ... menu.special.jobcomment=Skriv Jobb Kommentar ... menu.special.testjob=Test Jobben menu.special.savejob=Lagre som en Jobb ... menu.special.export=Opprett HTML Fil og Utforsker Forh\u00E5ndsvisning menu.special.exporttemplate=HTML Eksport med Maler menu.help=Hjelp menu.help.about=Om CaRMetal... menu.help.info=Kontekst hjelp menu.help.url0=G\u00E5 til CaRMetal webside menu.help.url1=G\u00E5 til CARzine webside menu.help.url2=G\u00E5 til offisiell C.a.R. webside filedialog.saveas=Lagre Figur filedialog.alsorestricted=Lagre Begrenset figur i tillegg filedialog.options=Preferanser for Lagre filedialog.restrictedmessage=Du arbeider med 'Begrenset' innstillinger,
figuren vil derfor bli lagret med disse innstillingene filedialog.filefilter=CaR Fil (.zir) filedialog.compressedfilefilter=Komprimert CaR Fil (.zirz) filedialog.macrofilefilter=CaR Makro Fil (.mcr) filedialog.savemessage1=Fil :\n filedialog.savemessage2=\nEksisterer allerede. Erstatte ? palette.file=Fil palette.edit=Endre palette.construction=Konstruksjon palette.aspect=Forhold Farge palette.history=Historie palette.sizes=St\u00F8rrelser palette.sizes.point=Punkt palette.sizes.line=Linje palette.sizes.arrow=Pil palette.sizes.font=Font palette.prec=Numerisk presisjon palette.prec.lengths=Lengder palette.prec.edit=Uttrykk palette.prec.angles=Vinkler palette.colors=Bakgrunn (farge/bilde) palette.colors.saturated1=Sterke farger palette.colors.desaturated1=Pastellfarger palette.colors.saturated2=Sterke farger 2 palette.colors.desaturated2=Pastellfarger 2 palette.colors.constants=Webkonstanter palette.image.fileerror=Du m\u00E5 lagre denne figuren f\u00F8r du bruker dette verkt\u00F8yet

Bildet du velger m\u00E5 befinne seg i
samme mappe. palette.info.vector=Vektor palette.info.image3=Sett inn bilde med 2 eller 3 punkter palette.info.background=Velg/Fjern bakgrunnsbilde palette.info.imcenter=Sentrer Bakgrunnsbilde palette.info.imstretch=Strekk bakgrunnbildet til \u00E5 passe konstruksjonsvinduet palette.info.imtile=Flislegg med bakgrunnsbilde palette.info.copy=Kopier konstruksjonsvinduet palette.info.exportpng=Eksporter konstruksjonsvindu til png format palette.info.exporteps=Ekporter konstruksjonsvindu til eps format palette.info.newmacro=Opprett Ny Makro palette.info.loadmacros=Last inn Makro fil palette.info.manage_macros=Vis/Skjul Makropanelet palette.info.properties_panel=Vis/Skjul Panel for Objektegenskaper palette.info.history_panel=Vis/Skjul Historie for Konstruksjons panelet palette.info.help_panel=Vis/Skjul Hjelp for Kontekst panelet macros.untitledmacro=Makro uten navn macros.untitledfolder=Mappe uten navn macros.emptynode=-- Tom -- macros.addfolder=Legg til ny mappe macros.deleteselected=Slett Valgte Makro macros.renamemacro=Nytt navn til valgte makro macros.recordmacro=Opptak av Makro macros.initials=F\u00F8rste objekter ? macros.pleaseselect=Vennligst Velg ! macros.finals=Siste objekter ? macros.cancel=Avbryt ? macros.popup.run=Kj\u00F8r makro macros.popup.rename=Gi nytt navn macros.popup.delete=Slett macros.popup.addtolibrary=Legg til i bibliotek macros.popup.removefromlibrary=Fjern fra bibliotek macros.popup.publish=Inkluder i figur macros.popup.notpublish=Ikke inkluder i figur macros.popup.saveas=Lagre Som... macros.popup.properties=Vis Egenskaper macros.popup.duplicate=Dupliser macros.savedlog.buttonok=Lagre Makrofil macros.question.delete=Vil du virkelig slette disse makroene ? rene.zirkel.objects.PointObject=Pt rene.zirkel.objects.PrimitiveCircleObject=Sir rene.zirkel.objects.PrimitiveLineObject=Lne rene.zirkel.objects.ExpressionObject=Uttr. rene.zirkel.objects.FixedAngleObject=F.V. rene.zirkel.objects.SegmentObject=Seg. rene.zirkel.objects.RayObject=Str\u00E5le rene.zirkel.objects.TwoPointLineObject=Lne rene.zirkel.objects.FunctionObject=Funk rene.zirkel.objects.AreaObject=Areal mi.pal.name=Makro Utforsker mi.name=Navn : mi.comment=Kommentar : mi.properties=Parameter egenskaper : mi.hideproperties=M\u00E5lets egenskaper : mi.hideduplicates=Skjul duplikater mi.apply=Utf\u00F8r mi.tab.type=Type mi.tab.name=Navn mi.tab.prompt=Prompt mi.tab.fix=Fast ? mi.tab.ask=Sp\u00F8r ? mi.error.initial=Feil : minst en parameter \nm\u00E5 v\u00E6re fri (ikke fast eller Sp\u00F8r)\n\nDenne makroen vil ikke bli endret props.help=For \u00E5 se Egenskaper m\u00E5 du h\u00F8yreklikke p\u00E5 et objekt.

Hvis du lager et nytt objekt med dette panelet \u00E5pent kan du endre egenskapene under opprettelsen. props.name=Navn : props.alias=Alias : props.unit=Enhet : props.fix=Fast : props.expl=Forklaring : props.belongto=Lag : props.conditional=Betinget forhold : props.solid=Fylt : props.hidden=Skjult : props.normal=Normal : props.bold=Tykk : props.thin=Prikket : props.black=Sort : props.green=Gr\u00F8nn : props.blue=Bl\u00E5 : props.brown=Brun : props.cyan=Turkis : props.red=R\u00F8d : props.showasslider=Glider : props.error=Det er en skrivefeil i dette uttrykket.
Uttrykket vil bli resatt props.cartesian=Kartesisk funksjon props.parametric=Parametrisk funksjon props.functiontype=Type : props.killarc=Fjern bue props.arc=Bue props.release=L\u00F8sne props.bind=Bind props.setaway=Sett: away props.setclose=Sett: close # v1.3 : props.grid=Rutest\u00F8rrelse : props.inside=Innsideobjekt : props.pointsonly=Kun med Punkter : props.step=Steg : palette.grid=Rutenett forhold leftpanel.macros=Makro panel leftpanel.properties=Egenskap panel leftpanel.history=Historie panel leftpanel.help=Hjelp panel selectpopup.whatobject=Hvilket objekt ? selectpopup.RightClick=Endre selectpopup.MoverTool=Flytt selectpopup.HiderTool=Vis/Skjul selectpopup.DeleteTool=Slett selectpopup.RenamerTool=Nytt Navn selectpopup.EditTool=Endre selectpopup.SetParameterTool=Makro parametere : selectpopup.SetTargetsTool=Makro m\u00E5l : palette.info.locus=Lokus for punkt ... Envelope of line # v1.4 : menu.special.savezirset=Lag Lysark... filedialog.openfolder.title=Lysark egenskaper filedialog.openfolder.approve=Velg lysark mappe filedialog.openfolder.saveicons=Lagre og med begrenset palett ikoner slideshow.next=neste slideshow.previous=forrige slideshow.download=Last ned fil slideshow.signature=Lysark laget med # v1.5 : menu.language=Spr\u00E5k menu.help.url3=Oversett CaRMetal carmetal-4.3/src/eric/docs/JZirkelProperties_pl.properties000066400000000000000000000310061417122252700240540ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Plik menu.file.new=Nowy menu.file.load=Otw\u00F3rz... menu.file.save=Zapisz menu.file.saveas=Zapisz jako... menu.file.exportpng=Eksport do PNG menu.file.exporteps=Eksport do EPS menu.file.quit=Zako\u0144cz menu.edit=Edycja menu.edit.copy=Kopiuj menu.edit.move=Przesu\u0144 menu.edit.rename=Zmie\u0144 nazw\u0119 menu.edit.edit=Edytuj menu.edit.hide=Ukryj menu.edit.delete=Usu\u0144 menu.display=Widok menu.display.hidden=Poka\u017C/Ukryj obiekty menu.display.grid=Poka\u017C/Ukryj Siatk\u0119 menu.display.finegrid=Tylko osie menu.display.leftsnap=Chwyt z LP myszy menu.display.manage_macros=Inspektor makr menu.display.history_panel=Historia menu.display.help_panel=Pomoc menu.display.properties_panel=Panel cech obiektu menu.display.small=Ikony malutkie menu.display.medium=Ikony \u015Brednie menu.display.large=Ikony du\u017Ce menu.display.restrictedpalette=Poka\u017C palet\u0119 ograniczon\u0105 menu.display.restrictedpaletteedit=Edytuj palet\u0119 ograniczon\u0105 menu.display.restrictmessage=
Ta opcja pozwala Ci pokaza\u0107 palet\u0119 ograniczon\u0105.

Dtyczy ona tylko aktualnego pliku:

przy zapisie pliku b\u0119dzie mo\u017Cna zaznaczy\u0107 'Zapisz tak\u017Ce figur\u0119 ograniczon\u0105'
i zapisane b\u0119d\u0105 dwa pliki: pierwszy (.zir) w trybie 'normal',
drugi (.r.zir) w trybie ograniczonym
menu.macros=Makro menu.special=Specjalne menu.special.newmacro=Nowe makro menu.special.loadmacros=Otw\u00F3rz plik makra... menu.special.definejob=Zdefiniuj zadanie menu.special.loadjob=\u0141aduj zadanie ... menu.special.jobcomment=U\u0142\u00F3\u017C tekst zadania... menu.special.testjob=Testuj to zadanie menu.special.savejob=Zapisz jako zadanie... menu.special.export=Utw\u00F3rz plik HTML i obejrzyj menu.special.exporttemplate=Eksport HTML z szablonami menu.help=Pomoc menu.help.about=O CaRMetal... menu.help.info=Pomoc kontekstowa menu.help.url0=Do strony CarMetal menu.help.url1=Do strony CarZine menu.help.url2=Do oficjalnej strony C.a.R. filedialog.saveas=Zapisz figur\u0119 filedialog.alsorestricted=Zapisz tak\u017Ce figur\u0119 ograniczon\u0105 filedialog.options=Opcje zapisu filedialog.restrictedmessage=Pracujesz w sesji ograniczonej,
wi\u0119c Twa figura b\u0119dzie zapisana w trybie ograniczonym filedialog.filefilter=Plik CaR (.zir) filedialog.compressedfilefilter=Spakowany plik CaR (.zirz) filedialog.macrofilefilter=Plik makra (.mcr) filedialog.savemessage1=Plik :\n filedialog.savemessage2=\nju\u017C istnieje. Czy zast\u0105pi\u0107 go ? palette.file=Plik palette.edit=Edycja palette.construction=Konstrukcja palette.aspect=Wygl\u0105d Kolor palette.history=Historia palette.sizes=Rozmiary palette.sizes.point=Punkt palette.sizes.line=Linia palette.sizes.arrow=Strza\u0142ka palette.sizes.font=Czcionka palette.prec=Precyzja liczb palette.prec.lengths=D\u0142ugo\u015Bci palette.prec.edit=Wyra\u017Cenia palette.prec.angles=K\u0105ty palette.colors=Kolor t\u0142a obraz palette.colors.saturated1=Kolory nasycone palette.colors.desaturated1=Kolory nienasycone palette.colors.saturated2=Kolory nasycone 2 palette.colors.desaturated2=Kolory nienasycone 2 palette.colors.constants=Kolory WWW palette.image.fileerror=Najpierw musisz zapisa\u0107 figur\u0119

After, Wybrany obrazek musi by\u0107
w tym samym folderze. palette.info.vector=Vektor palette.info.image3=Wstaw obraz na 2 lub 3 punktach palette.info.background=Wybierz/czy\u015B\u0107 obraz t\u0142a palette.info.imcenter=Wy\u015Brodkuj obraz t\u0142a palette.info.imstretch=Dopasuj obraz t\u0142a do okna konstrukcji palette.info.imtile=Kafelki z obrazu t\u0142a palette.info.copy=Kopiuj okno konstrukcji palette.info.exportpng=Eksport okna konstrukcji do formatu png palette.info.exporteps=Eksport okna konstrukcji do formatu eps palette.info.newmacro=Utw\u00F3rz nowe makro palette.info.loadmacros=\u0141aduj plik makra palette.info.manage_macros=Poka\u017C/ukryj panel makra palette.info.properties_panel=Poka\u017C/Ukryj panel cech obiektu palette.info.history_panel=Poka\u017C/Ukryj panel historii konstrukcji palette.info.help_panel=Poka\u017C/Ukryj panel pomocy kontekstowej macros.untitledmacro=Makro bez nazwy macros.untitledfolder=Folder bez nazwy macros.emptynode=-- Pusty -- macros.addfolder=Dodaj nowy folder macros.deleteselected=Usu\u0144 wybrane makra macros.renamemacro=Zmie\u0144 nazw\u0119 wybranego makra macros.recordmacro=Nagraj makro macros.initials=Obiekty startowe ? macros.pleaseselect=wybierz prosz\u0119 ! macros.finals=Obiekty wynikowe ? macros.cancel=Anulowa\u0107 ? macros.popup.run=Uruchom makro macros.popup.rename=Zmie\u0144 naz macros.popup.delete=Usu\u0144 macros.popup.addtolibrary=Dodaj do biblioteki macros.popup.removefromlibrary=Usu\u0144 z biblioteki macros.popup.publish=W\u0142\u0105cz do figury macros.popup.notpublish=Nie w\u0142\u0105czaj do figury macros.popup.saveas=Zapisz jako... macros.popup.properties=Poka\u017C cechy macros.popup.duplicate=Powiel macros.savedlog.buttonok=Zapisz plik makra macros.question.delete=Czy na pewno usun\u0105\u0107 te makra ? rene.zirkel.objects.PointObject=Pkt rene.zirkel.objects.PrimitiveCircleObject=Okr rene.zirkel.objects.PrimitiveLineObject=Lin rene.zirkel.objects.ExpressionObject=Wyr. rene.zirkel.objects.FixedAngleObject=K\u0105t rene.zirkel.objects.SegmentObject=Odc. rene.zirkel.objects.RayObject=Ppr rene.zirkel.objects.TwoPointLineObject=Lin rene.zirkel.objects.FunctionObject=Fun rene.zirkel.objects.AreaObject=Pole mi.pal.name=Inspektor makr mi.name=Nazwa : mi.comment=Notka : mi.properties=Cechy parametr\u00F3w : mi.hideproperties=Cechy obiekt\u00F3w docelowych : mi.hideduplicates=Ukryj duplikaty mi.apply=Zastosuj mi.tab.type=Typ mi.tab.name=Nazwa mi.tab.prompt=Oznacz mi.tab.fix=Ust. ? mi.tab.ask=Pyt. ? mi.error.initial=B\u0142\u0105d : cho\u0107 jeden parametr \nmusi by\u0107 wolny (ani Ust., ani Pyt.)\n\nTo makro nie b\u0119dzie zmienione props.help=Aby zobaczy\u0107 cechy, kliknij prawym PM na obiekcie.

Je\u015Bli tworzysz nowy obiekt z tym panelem otwartym, b\u0119dziesz m\u00F3g\u0142 zmienia\u0107 cechy w czasie tworzenia. props.name=Nazwa : props.alias=Podpis : props.unit=Miara : props.fix=Ust. : props.expl=Wyja\u015Bnienie : props.belongto=Warstwa : props.conditional=Wygl\u0105d warunkowy : props.solid=Matowy : props.hidden=Ukryty : props.normal=Normalny : props.bold=Gruby : props.thin=Kropkowy : props.black=Czarny : props.green=Zielony : props.blue=Niebieski : props.brown=Br\u0105zowy : props.cyan=Turkus : props.red=Czerwony : props.showasslider=Poka\u017C jako suwak : props.error=W tym wyra\u017Ceniu jest b\u0142\u0105d sk\u0142adniowy.
B\u0119dzie ono ponownie zainicjowane. props.cartesian=Funkcja XY props.parametric=Funkcja parametryczna props.functiontype=Typ : props.killarc=Usu\u0144 \u0142uk props.arc=\u0141uk props.release=Uwolnij props.bind=Przywi\u0105\u017C props.setaway=Ustaw daleko props.setclose=Ustaw blisko # v1.3 : props.grid=Skok siatki : props.inside=Wewn\u0105trz obiektu : props.pointsonly=Tylko z punktami : props.step=Krok : palette.grid=Wygl\u0105d siatki leftpanel.macros=Panel makr leftpanel.properties=Panel cech leftpanel.history=Panel historii leftpanel.help=Panel pomocy selectpopup.whatobject=kt\u00F3ry obiekt ? selectpopup.RightClick=Wybierz selectpopup.MoverTool=Przesu\u0144 selectpopup.HiderTool=Poka\u017C/Ukryj selectpopup.DeleteTool=Usu\u0144 selectpopup.RenamerTool=Zmie\u0144 nazw\u0119 selectpopup.EditTool=Edytuj selectpopup.SetParameterTool=Parametry makra : selectpopup.SetTargetsTool=Cele makra : palette.info.locus=Locus punktu Obwiednia linii # v1.4 : menu.special.savezirset=Tw\u00F3rz pokaz... filedialog.openfolder.title=Wyb\u00F3r folderu pokazu filedialog.openfolder.approve=Wybierz folder pokazu filedialog.openfolder.saveicons=Zapisz tak\u017Ce ikony ograniczone slideshow.next=dalej slideshow.previous=wstecz slideshow.download=Pobierz plik slideshow.signature=Pokaz wykreowany w # v1.5 : menu.language=J\u0119zyki menu.language.de=Niemiecki menu.language.en=Angielski menu.language.fr=Francuski menu.language.es=Hiszpa\u0144ski menu.language.gl=Galego menu.language.zh_TW=Chi\u0144ski (Tradycyjny) menu.help.url3=CarMetal - translacja menu.display.smartboard=Tryb Smartboard # v1.6 : menu.language.no=Norweski palette.info.bi_syma=Symetria osiowa palette.info.bi_symc=Symetria \u015Brodkowa palette.info.bi_trans=Translacja palette.info.bi_med=Symetralna odcinka palette.info.bi_biss=Dwusieczna k\u0105ta palette.info.bi_circ=Okr\u0105g przez 3 punkty palette.info.bi_arc=\u0142uk opisany przez 3 punkty palette.info.bi_t_align=Punkty wsp\u00F3\u0142liniowe ? palette.info.bi_t_para=Linie r\u00F3wnoleg\u0142e ? palette.info.bi_t_perp=Linie prostopad\u0142e ? palette.info.bi_t_equi=Punkt r\u00F3wnoodleg\u0142y ? palette.info.bi_t_app=Le\u017Cy na linii ? palette.info.bi_t_conf=Punkty pokrywaj\u0105ce si\u0119 ? macro.bi_syma.0=O\u015B symetrii ? macro.bi_syma.1=Punkt do odbicia ? macro.bi_symc.0=\u015Arodek symetrii ? macro.bi_symc.1=Punkt do odbicia ? macro.bi_trans.0=Pocz\u0105tek wektora ? macro.bi_trans.1=Koniec wektora ? macro.bi_trans.2=Punkt do translacji ? macro.bi_med.0=Pierwszy koniec odcinka ? macro.bi_med.1=Drugi koniec odcinka ? macro.bi_biss.0=Pierwszy punkt ? macro.bi_biss.1=Wierzcho\u0142ek k\u0105ta ? macro.bi_biss.2=Ostatni punkt ? macro.bi_circ.0=First point ? macro.bi_circ.1=Drugi punkt ? macro.bi_circ.2=Trzeci punkt ? macro.bi_t_para.0=Pierwsza linia ? macro.bi_t_para.1=Druga linia ? macro.bi_t_equi.0=Czy punkt jest r\u00F3wnoodleg\u0142y ... macro.bi_t_equi.1=Od tego punktu ... macro.bi_t_equi.2=I od tego punktu ? macro.bi_t_app.0=Kt\u00F3ry punkt ? macro.bi_t_app.1=Le\u017Cy na kt\u00F3rej prostej (odcinku) ? macro.bi_t_conf.0=Kt\u00F3ry punkt ? macro.bi_t_conf.1=Jest na kt\u00F3rym punkcie ? macro.bi_t_align.text0=Punkty s\u0105 wsp\u00F3\u0142liniowe macro.bi_t_align.text1=Punkty nie s\u0105 wsp\u00F3\u0142liniowe macro.bi_t_para.text0=Obiekty s\u0105 r\u00F3wnoleg\u0142e macro.bi_t_para.text1=Obiekty nie s\u0105 r\u00F3wnoleg\u0142e macro.bi_t_perp.text0=Obiekty s\u0105 prostopad\u0142e macro.bi_t_perp.text1=Obiekty nie s\u0105 prostopad\u0142e macro.bi_t_equi.text0=Punkty s\u0105 r\u00F3wnoodleg\u0142e macro.bi_t_equi.text1=Punkty nie s\u0105 r\u00F3wnoodleg\u0142e macro.bi_t_app.text0=Punkt le\u017Cy na obiekcie macro.bi_t_app.text1=Punkt nie le\u017Cy na obiekcie macro.bi_t_conf.text0=Dwa punkty pokrywaj\u0105 si\u0119 macro.bi_t_conf.text1=Dwa punkty nie pokrywaj\u0105 si\u0119 palette.test=Testy # v1.7 : filedialog.openfolder.appletsize=Rozmiar apletu : filedialog.openfolder.actualsize=Rozmiar aktualny filedialog.openfolder.other=Inny... filedialog.openfolder.selected=Wybrany folder : filedialog.openfolder.cancel=Anuluj menu.file.exportsvg=Eksportuj do SVG menu.language.sl=S\u0142owe\u0144ski menu.language.nl=Holenderski menu.language.pt=Portugalski props.vars=Zmienne : menu.objects.points=Punkty menu.objects.lines=Linie menu.objects.segments=Odcinki menu.objects.circles=Okr\u0119gi i sto\u017Ckowe menu.objects.angles=K\u0105ty menu.objects.tracks=\u015Alady i locus menu.objects.functions=Funkcje i wyra\u017Cenia palette.info.function_u=Funkcja u\u017Cytkownika palette.info.function=Wykres funkcji lub krzywa parametryczna props.superhidden=Ca\u0142kiem ukryty : props.showvalue=Poka\u017C warto\u015B\u0107 : props.showname=Poka\u017C nazw\u0119 : props.background=T\u0142o : macro.bi_expression.0=Punkt zaczepienia ? # v1.9a : menu.help.licence=Licencja...licence.txt=

Program ten jest wolnyna licencji GNU-GPL, tzn. mo\u017Ce by\u0107 rozpowszechniany i/lub modifikowany na warunkach licence opublikowanej przez Free Software Foundation;
Patrz :

# v2.0 : menu.special.theme=Kostiumy menu.special.theme.gray=Metal - chrom menu.special.theme.brushed=Metal - aluminium menu.special.options=Preferencje... menu.special.options.sizes=Rozmiary menu.special.options.sizes.minpointsize=Rozmiar punktu menu.special.options.sizes.minlinesize=Rozmiar linii menu.special.options.sizes.arrowsize=Rozmiar strza\u0142ki menu.special.options.sizes.minfontsize=Rozmiar czcionki menu.special.options.sizes.digits.lengths=Precyzja d\u0142ugo\u015Bci menu.special.options.sizes.digits.edit=Precyzja wyra\u017Cenia menu.special.options.sizes.digits.angles=Precyzja miary k\u0105ta menu.special.options.colors=Kolory menu.special.options.others=Inne menu.special.options.others.undock=Palety mo\u017Cna od\u0142\u0105cza\u0107 # v2.1 : menu.file.close=Zamknij okno # v2.3 : alert.toomuchwins=Zbyt wiele otwartych okien :
zamknij niekt\u00F3re przed otwarciem
nowego oknacarmetal-4.3/src/eric/docs/JZirkelProperties_pt.properties000066400000000000000000000441301417122252700240660ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Ficheiro menu.file.new=Novo menu.file.load=Abrir\u2026 menu.file.save=Guardar menu.file.saveas=Guardar como\u2026 menu.file.exportpng=Exportar como PNG menu.file.exporteps=Exportar como EPS menu.file.quit=Sair menu.edit=Editar menu.edit.copy=Copiar menu.edit.move=Mover objecto menu.edit.rename=Mudar o nome menu.edit.edit=Editar menu.edit.hide=Ocultar menu.edit.delete=Eliminar menu.display=Visualiza\u00e7\u00e3o menu.display.hidden=Mostrar/Ocultar Objectos menu.display.grid=Mostrar/Ocultar Grelha menu.display.finegrid=Apenas os eixos menu.display.leftsnap=Snap arrastando o rato com o bot\u00e3o esquerdo menu.display.manage_macros=Gestor de Macros menu.display.history_panel=Hist\u00f3rico menu.display.help_panel=Ajuda menu.display.properties_panel=Painel de Propriedades do Objecto menu.display.small=\u00cdcones pequenos menu.display.medium=\u00cdcones m\u00e9dios menu.display.large=\u00cdcones grandes menu.display.restrictedpalette=Mostrar paleta restrita menu.display.restrictedpaletteedit=Editar paleta restrita menu.display.restrictmessage=
Este item permite-lhe visualizar a paleta restrita,

referindo-se apenas ao ficheiro actual :

Quando o \u2018guardar como', poder\u00e1 seleccionar 'guardar tamb\u00e9m a constru\u00e7\u00e3o em modo restrito'.
Ser\u00e3o criados dois ficheiros : o primeiro (.zir) abrir\u00e1 em modo 'normal', e
o segundo (.r.zir) em modo restrito
menu.macros=Macros menu.special=Especial menu.special.newmacro=Nova Macro menu.special.loadmacros=Abrir Ficheiro Macro... menu.special.definejob=Definir um Exerc\u00edcio menu.special.loadjob=Abrir um Exerc\u00edcio... menu.special.jobcomment=Redigir o texto de um Exerc\u00edcio ... menu.special.testjob=Testar este Exerc\u00edcio menu.special.savejob=Guardar como Exerc\u00edcio... menu.special.export=Criar um ficheiro HTML e visualizar num Browser menu.special.exporttemplate=Exportar como HTML com Modelos menu.help=Ajuda menu.help.about=Sobre o CaRMetal... menu.help.info=Ajuda em contexto menu.help.url0=P\u00e1gina web do CaRMetal menu.help.url1=P\u00e1gina web da CARzine menu.help.url2=P\u00e1gina web do C.a.R. filedialog.saveas=Guardar a constru\u00e7\u00e3o filedialog.alsorestricted=Guardar tamb\u00e9m a constru\u00e7\u00e3o em modo restrito filedialog.options=Guardar como filedialog.restrictedmessage=Por estar a trabalhar em modo restrito,
a sua constru\u00e7\u00e3o ser\u00e1 guardada em modo restrito. filedialog.filefilter=Ficheiro CaR (.zir) filedialog.compressedfilefilter=Ficheiro CaR Comprimido (.zirz) filedialog.macrofilefilter=Ficheiro Macro do CaR (.mcr) filedialog.savemessage1=Ficheiro :\n filedialog.savemessage2=\n j\u00e1 existe. Tem a certeza de que o pretende substituir? palette.file=Ficheiro palette.edit=Editar palette.construction=Constru\u00e7\u00e3o palette.aspect=Aspecto & Cores palette.history=Hist\u00f3rico palette.sizes=Tamanhos palette.sizes.point=Ponto palette.sizes.line=Linha palette.sizes.arrow=Seta palette.sizes.font=Tipo de letra palette.prec=Precis\u00e3o Num\u00e9rica palette.prec.lengths=Comprimentos palette.prec.edit=Express\u00f5es palette.prec.angles=\u00c2ngulos palette.colors=Cor & imagem do Fundo palette.colors.saturated1=Cores Saturadas palette.colors.desaturated1= Cores N\u00e3o-Saturadas palette.colors.saturated2= Cores Saturadas 2 palette.colors.desaturated2= Cores N\u00e3o-Saturadas 2 palette.colors.constants=Constantes Web palette.image.fileerror=Deve guardar a constru\u00e7\u00e3o antes de utilizar esta ferramenta

A imagem a inserir dever\u00e1 pertencer
ao mesmo direct\u00f3rio. palette.info.vector=Vector palette.info.image3=Inserir imagem+posicionando-a com 2 ou 3 pontos palette.info.background=Escolher/Limpar a imagem do Fundo palette.info.imcenter=Centrar a imagem do Fundo palette.info.imstretch=Estender a imagem do Fundo+para caber na janela de constru\u00e7\u00e3o palette.info.imtile=Dividir a imagem do Fundo em mosaicos palette.info.copy=Copiar a janela de constru\u00e7\u00e3o palette.info.exportpng=Exportar a janela+de constru\u00e7\u00e3o para o formato png palette.info.exporteps=Exportar a janela+de constru\u00e7\u00e3o para o formato eps palette.info.newmacro=Criar uma nova macro palette.info.loadmacros=Abrir um ficheiro de macros palette.info.manage_macros=Mostrar/Ocultar o painel de macros palette.info.properties_panel=Mostrar/Ocultar o painel de propriedades do objecto palette.info.history_panel=Mostrar/Ocultar o hist\u00f3rico da constru\u00e7\u00e3o palette.info.help_panel=Mostrar/Ocultar o painel de ajuda em contexto macros.untitledmacro=Macro sem t\u00edtulo macros.untitledfolder=Direct\u00f3rio sem t\u00edtulo macros.emptynode=-- vazio -- macros.addfolder=Adicionar novo Direct\u00f3rio macros.deleteselected=Eliminar macros seleccionadas macros.renamemacro=Mudar o nome da macro seleccionada macros.recordmacro=Gravar macro macros.initials=Objectos Iniciais ? macros.pleaseselect=Seleccione, por favor ! macros.finals=Objectos finais ? macros.cancel=Cancelar ? macros.popup.run=Correr macro macros.popup.rename=Mudar o nome macros.popup.delete=Eliminar macros.popup.addtolibrary=Adicionar \u00e0 livraria macros.popup.removefromlibrary=Remover da livraria macros.popup.publish=Incluir na constru\u00e7\u00e3o macros.popup.notpublish=N\u00e3o Incluir na constru\u00e7\u00e3o macros.popup.saveas=Guardar como... macros.popup.properties=Mostrar propriedades macros.popup.duplicate=Duplicar macros.savedlog.buttonok=Guardar o ficheiro da macro macros.question.delete=Tem a certeza de que pretende eliminar estas macros ? rene.zirkel.objects.PointObject=Ponto rene.zirkel.objects.PrimitiveCircleObject=Circ. rene.zirkel.objects.PrimitiveLineObject=Linha rene.zirkel.objects.ExpressionObject=Expr. rene.zirkel.objects.FixedAngleObject=\u00c2ng.Fixo rene.zirkel.objects.SegmentObject=Segm. rene.zirkel.objects.RayObject=S-Recta rene.zirkel.objects.TwoPointLineObject=Linha rene.zirkel.objects.FunctionObject=Fun\u00e7\u00e3o rene.zirkel.objects.AreaObject=\u00c1rea mi.pal.name=Gestor de Macros mi.name=Nome : mi.comment=Coment\u00e1rio : mi.properties=Propriedades do par\u00e2metro: mi.hideproperties=Propriedades do Alvo: mi.hideduplicates=Ocultar duplicados mi.apply=Aplicar mi.tab.type=Tipo mi.tab.name=Nome mi.tab.prompt=Comando mi.tab.fix=Fixo ? mi.tab.ask=Pedido ? mi.error.initial=Erro : pelo menos um dos par\u00e2metros \n dever\u00e1 ser livre (nem fixo, nem pedido)\n\n Esta macro n\u00e3o ser\u00e1 alterada. props.help=Para ver as propriedades, dever\u00e1 clicar com o bot\u00e3o direito do rato sobre o objecto.

Se criar um novo objecto com este painel aberto, poder\u00e1 alterar as suas propriedades enquanto o cria. props.name=Nome : props.alias=Ali\u00e1s : props.unit=Unidade : props.fix=Fixo : props.expl=Explica\u00e7\u00e3o : props.belongto=Layer : props.conditional=Aspecto Conditional : props.solid=S\u00f3lido : props.hidden=Oculto : props.normal=Normal : props.bold=Tra\u00e7o Expressivo : props.thin=Tra\u00e7o interrompido : props.black=Preto : props.green=Verde : props.blue=Azul : props.brown=Castanho : props.cyan=Ciano : props.red=Vermelho : props.showasslider=Cursor props.error=Existe um erro de sintaxe nesta express\u00e3o.
Ser\u00e1 reiniciada props.cartesian=Fun\u00e7\u00e3o Cartesiana props.parametric=Fun\u00e7\u00e3o Param\u00e9trica props.functiontype=Tipo : props.killarc=Eliminar arco props.arc=Arco props.release=Libertar props.bind=Juntar props.setaway=Afastar props.setclose=Aproximar # v1.3 : props.grid=Incremento : props.inside=Inclu\u00eddo no objecto : props.pointsonly=Apenas com pontos : props.step=Passo : palette.grid=Aspecto da Grelha leftpanel.macros=Painel de Macros leftpanel.properties=Painel de Propriedades leftpanel.history=Painel do Hist\u00f3rico leftpanel.help=Painel da Ajuda selectpopup.whatobject=Que objecto ? selectpopup.RightClick=Seleccionar selectpopup.MoverTool=Mover selectpopup.HiderTool=Mostrar/Ocultar selectpopup.DeleteTool=Eliminar selectpopup.RenamerTool=Mudar o Nome selectpopup.EditTool=Editar selectpopup.SetParameterTool=Par\u00e2metros da Macro : selectpopup.SetTargetsTool=Alvos da Macro : palette.info.locus=Lugar geom\u00e9trico do ponto+envolvente de uma linha # v1.4 : menu.special.savezirset=Criar um diaporama... filedialog.openfolder.title=Di\u00e1logo de sele\u00e7\u00e3o do Direct\u00f3rio do diaporama filedialog.openfolder.approve=Seleccionar o Direct\u00f3rio do diaporama filedialog.openfolder.saveicons=Guardar tamb\u00e9m os \u00edcones restritos slideshow.next=Seguinte slideshow.previous=Anterior slideshow.download=Descarregar ficheiro slideshow.signature=Diaporama realizado com # v1.5 : menu.language=Idiomas menu.language.de=Alem\u00e3o menu.language.en=Ingl\u00eas menu.language.fr=Franc\u00eas menu.language.es=Espanhol menu.language.gl=Galego menu.language.zh_TW=Chin\u00eas (Tradicional) menu.help.url3=Traduzir o CaRMetal menu.display.smartboard=Modo Avan\u00e7ado # v1.6 : menu.language.no=Noruegu\u00eas palette.info.bi_syma=Reflex\u00e3o palette.info.bi_symc=Simetria palette.info.bi_trans=Transla\u00e7\u00e3o palette.info.bi_med=Mediatriz palette.info.bi_biss=Bissectriz palette.info.bi_circ=Circunfer\u00eancia por 3 pontos palette.info.bi_arc=Arco Circuncircular por 3 pontos palette.info.bi_t_align=Pontos Colineares ? palette.info.bi_t_para=Linhas Paralelas ? palette.info.bi_t_perp=Linhas Perpendiculares ? palette.info.bi_t_equi=equidistante de dois pontos ? palette.info.bi_t_app=Pertence a uma linha ? palette.info.bi_t_conf=Pontos coincidentes ? macro.bi_syma.0=Eixo de simetria de reflex\u00e3o ? macro.bi_syma.1=Sim\u00e9trico de que Ponto ? macro.bi_symc.0=Centro de Simetria ? macro.bi_symc.1=Sim\u00e9trico de que Ponto ? macro.bi_trans.0=Primeiro ponto do vector ? macro.bi_trans.1=Segundo ponto do vector ? macro.bi_trans.2=Por transla\u00e7\u00e3o, obter a imagem de que ponto? macro.bi_med.0=Primeiro ponto do segmento ? macro.bi_med.1=Segundo ponto do segmento ? macro.bi_biss.0=Primeiro ponto ? macro.bi_biss.1=V\u00e9rtice do \u00c2ngulo ? macro.bi_biss.2=\u00daltimo ponto ? macro.bi_circ.0=Primeiro ponto ? macro.bi_circ.1=Segundo ponto ? macro.bi_circ.2=Terceiro ponto ? macro.bi_t_para.0=Primeira linha ? macro.bi_t_para.1=Segunda linha ? macro.bi_t_equi.0=Este ponto \u00e9 equidistante de ... macro.bi_t_equi.1=A partir deste ponto ... macro.bi_t_equi.2=E este ponto ? macro.bi_t_app.0=Qual ponto ? macro.bi_t_app.1=Pertence a que linha (ou segmento) ? macro.bi_t_conf.0=Qual ponto ? macro.bi_t_conf.1=Situa-se em que ponto ? macro.bi_t_align.text0=Os Pontos s\u00e3o colineares macro.bi_t_align.text1= Os Pontos n\u00e3o s\u00e3o colineares macro.bi_t_para.text0=Os objectos s\u00e3o paralelos macro.bi_t_para.text1=Os objectos n\u00e3o s\u00e3o paralelos macro.bi_t_perp.text0=Os objectos s\u00e3o perpendiculares macro.bi_t_perp.text1=Os objectos n\u00e3o s\u00e3o perpendiculares macro.bi_t_equi.text0=Os Pontos s\u00e3o equidistantes macro.bi_t_equi.text1=Os Pontos n\u00e3o s\u00e3o equidistantes macro.bi_t_app.text0=O ponto pertence ao objecto macro.bi_t_app.text1=O ponto n\u00e3o pertence ao objecto macro.bi_t_conf.text0=Os dois pontos s\u00e3o coincidentes macro.bi_t_conf.text1= Os dois pontos n\u00e3o s\u00e3o coincidentes palette.test=Testes # v1.7 : filedialog.openfolder.appletsize=Tamanho da Aplica\u00e7\u00e3o : filedialog.openfolder.actualsize=Tamanho Real filedialog.openfolder.other=Outro... filedialog.openfolder.selected=Direct\u00f3rio seleccionado : filedialog.openfolder.cancel=Cancelar menu.file.exportsvg=Exportar para SVG menu.language.sl=Eslovaco menu.language.nl=Neerland\u00eas menu.language.pt=Portugu\u00eas props.vars=Vari\u00e1veis : menu.objects.points=Pontos menu.objects.lines=Linhas menu.objects.segments=Segmentos menu.objects.circles=C\u00edrculos e C\u00f3nicas menu.objects.angles=\u00c2ngulos menu.objects.tracks=Rastos e lugares geom\u00e9tricos menu.objects.functions=Fun\u00e7\u00f5es e express\u00f5es palette.info.function_u=Fun\u00e7\u00e3o definida pelo utilizador palette.info.function=Visualizar fun\u00e7\u00e3o+ou curva param\u00e9trica props.superhidden=Completamente oculto : props.showvalue=Mostrar valor : props.showname=Mostrar nome : props.background=Fundo : macro.bi_expression.0=Ponto \u00c2ncora ? # v1.9a : menu.help.licence=Licen\u00e7a... licence.txt=

Este software \u00e9 livre, sob licen\u00e7a da GNU-GPL, podendo ser redistribu\u00eddo e/ou modificado de acordo com os termos da licen\u00e7a publicada pela Free Software Foundation;
Ver :

# v2.0 : menu.special.theme=Temas menu.special.theme.gray=Metal Polido menu.special.theme.brushed=Metal Escovado menu.special.options=Prefer\u00eancias... menu.special.options.sizes=Tamanhos menu.special.options.sizes.minpointsize=Tamanho do ponto menu.special.options.sizes.minlinesize=Espessura da Linha menu.special.options.sizes.arrowsize=Tamanho das setas menu.special.options.sizes.minfontsize=Tamanho do Tipo de letra menu.special.options.sizes.digits.lengths=Precis\u00e3o do comprimento menu.special.options.sizes.digits.edit=Precis\u00e3o da Express\u00e3o menu.special.options.sizes.digits.angles=Precis\u00e3o do \u00c2ngulo menu.special.options.colors=Cores menu.special.options.others=Outras menu.special.options.others.undock=Apto para deslocar as janelas de menu # v2.1 : menu.file.close=Fechar Janela # v2.3 : alert.toomuchwins=Existem demasiadas janelas abertas :
por favor encerre algumas delas antes de abrir
uma nova # v2.4 : menu.file.new3D=Nova constru\u00e7\u00e3o 3D palette.3D=3D palette.info.bi_3Dcoords=Coordenadas 3D macro.bi_3Dcoords.0=Ponto \u00c2ncora ? palette.info.bi_3Dcube=Cubo macro.bi_3Dcube.0=Centro do cubo ? palette.info.bi_3Darete=Arestas 3D macro.bi_3Darete.0=Primeiro Ponto ? macro.bi_3Darete.1=Segundo ponto ? macro.bi_3Darete.2=Terceiro ponto ? macro.bi_3Darete.3=Quarto ponto ? palette.info.bi_3Dtetra=Tetraedro regular macro.bi_3Dtetra.0=Centro do Tetraedro ? menu.newdoc=Novo menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=Aspecto de palette.aspect.label.point=pontos palette.aspect.label.line=linhas palette.aspect.label.segment=segmentos palette.aspect.label.circle=c\u00edrculos palette.aspect.label.angle=\u00e2ngulos palette.aspect.label.area=pol\u00edgonos palette.aspect.label.text=textos palette.info.bi_3Ddode=Dodecaedro regular macro.bi_3Ddode.0=Centro do dodecaedro ? # v2.7 : palette.aspect.label.pointshape=Configura\u00e7\u00e3o e nome dos pontos : palette.aspect.label.locus=lugares geom\u00e9tricos menu.edit.deleteall=Eliminar tudo # v2.7.1 : java.old.message=Lamentamos, mas n\u00e3o pode iniciar o software CaRMetal, porque a sua vers\u00e3o do Java est\u00e1 desactualizada ! java.old.quit=Sair java.old.go=Descarregar nova vers\u00e3o do java palette.info.boundedpoint=Posicionar um ponto num plano+ou numa face de um poliedro #v2.7.2 : user.foldername=Perfil do Utilizador do CarMetal #v2.8 props.fixedray=Semi-Recta : props.fixedsegment=Comprimento : props.fixedangle=\u00c2ngulo : props.expl=Linha de coment\u00e1rios : props.aspecttab=Aspecto props.numerictab=Num\u00e9rico props.conditionaltab=Condicional props.thick=Expressivo : props.popup.special=Caracteres Especiais props.popup.functions=Fun\u00e7\u00f5es Pr\u00e9definidas props.popup.latex=Commandos de LaTeX menu.language.pl=Polaco #v2.8.1 props.fixedinwindow=Hiperligado a janela #v2.8.5 palette.controls=Comandos props.ctrlshowvalue=Mostrar valor props.ctrlsnap=Snap para pontos not\u00e1veis props.ctrlshowticks=Mostrar pontos not\u00e1veis props.ctrltickspacing=Incremento : palette.info.ctrl_edit=Editar, mover ou redimensionar o comando palette.info.ctrl_chkbox=Adicionar CheckBox palette.info.ctrl_popup=Adicionar Menu Popup palette.info.ctrl_slider=Adicionar Cursor #v2.8.6 props.trackdmin=N\u00famero de passos : opendialog.preview=Pr\u00e9-visualiza\u00e7\u00e3o : pngdialog.options=Op\u00e7\u00f5es de Exporta\u00e7\u00e3o: pngdialog.scale=Escala : pngdialog.originsize=Tamanho Original : pngdialog.scaledsize=Tamanho redimensionado : #v2.8.7 canvas.3D.floor=Piso canvas.3D.system=Sistema de Coordenadas canvas.3D.rightclic=Arraste o bot\u00e3o direito do rato para rodar o sistema de coordenadas #v2.8.8 palette.info.equationxy=Curva definida por f(x,y)=0 props.equationxy=Equa\u00e7\u00e3o : props.equationxychooser=Precis\u00e3o : palette.function=Fun\u00e7\u00f5es & lugar geom\u00e9trico #v2.8.9 menu.edit.deletealltracks=Limpar rasto menu.edit.deactivatealltracks=Desactivar rastreio props.tracks= Activar rastreio menu.edit.zoom=Fazer Zoom ou Mover #v2.9.0 menu.windows=Janela #v2.9.1 contexthelp.seealso=Ver tamb\u00e9m : #v2.9.2 menu.language.pt_BR=Brasileiro menu.display.restrictmessage.dontdisplay=N\u00e3o mostrar mais esta mensagem #v2.9.6 props.magnetmessage=Clique nos objectos que pretende adicionar (ou remover da) lista magn\u00e9tica props.magnetobj=Objectos Magn\u00e9ticos props.magnetpix=Atra\u00e7\u00e3o (20 px) : props.show=Mostrar #v2.9.7 palette.info.ctrl_txtfield=Adicionar Caixa de Input Num\u00e9rica palette.info.ctrl_button=Adicionar Bot\u00e3o #v2.9.8.4 JSerror.title=Erro de s\u00edntaxe JSerror.line=Linha JSerror.pointcoords= Erro de s\u00edntaxe nas coordenadas do ponto JSerror.interactiveinput=Erro na sele\u00e7\u00e3o do objecto JSerror.notfound=Objecto n\u00e3o encontrado JSerror.notgoodtype=Imposs\u00edvel aplicar a este tipo de objecto JScmd.inputmessage=A sua quest\u00e3o ? JScmd.promptmessage=A sua mensagem... menu.js=Javascript menu.js.script=Abrir ficheiro de javascript... menu.js.command=Abrir o editor de script JSeditor.title=Editor de Javascript #v3.0 JSeditor.save=Guardar script JSeditor.open=Abrir script JSeditor.opendlogmsg=Abrir script JSeditor.savedlogmsg=Guardar script JSeditor.format=Formatar script JSeditor.restore=Cancelar a \u00faltima execu\u00e7\u00e3o JSeditor.run=Correr script JSeditor.help=Obter ajuda de s\u00edntaxe JSEditor.comment=Comentar/N\u00e3o comentar a sele\u00e7\u00e3o JSEditor.savequestion=Este script foi alterado : pretende guard\u00e1-lo ? menu.language.ar_TN=\u00c1rabe # v3.1.1 menu.js.define=Definir direct\u00f3rio de scripts... menu.js.dumb=Executar scripts favoritos sem o editor JSeditor.opendfavfolder=Seleccionar Direct\u00f3rio de scripts JSeditor.saveas=Guardar script como...carmetal-4.3/src/eric/docs/JZirkelProperties_pt_BR.properties000066400000000000000000000403621417122252700244540ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Arquivo menu.file.new=Novo menu.file.load=Abrir... menu.file.save=Salvar menu.file.saveas=Salva Como... menu.file.exportpng=Exportar para PNG menu.file.exporteps=Exportar para EPS menu.file.quit=Sair menu.edit=Editar menu.edit.copy=Copiar menu.edit.move=Mover Objeto menu.edit.rename=Renomear menu.edit.edit=Editar menu.edit.hide=Esconder menu.edit.delete=Apagar menu.display=Display menu.display.hidden=Exibir/Esconder Objetos menu.display.grid=Exibir/Esconder Malha menu.display.finegrid=Eixos apenas menu.display.leftsnap=Mover para a malha com o bot\u00E3o esquerdo menu.display.manage_macros=Gerenciador de Macros menu.display.history_panel=Hist\u00F3ria menu.display.help_panel=Ajuda menu.display.properties_panel=Propriedades menu.display.small=\u00CDcones pequenos menu.display.medium=\u00CDcones m\u00E9dios menu.display.large=\u00CDcones grandes menu.display.restrictedpalette=Exibir Paleta Reduzida menu.display.restrictedpaletteedit=Editar Paleta Reduzida menu.display.restrictmessage=
Este item permite que voc\u00EA visualize a paleta reduzida.

Esta op\u00E7\u00E3o afetar\u00E1 apenas para a constru\u00E7\u00E3o atual.

Ao salvar o arquivo ('Salvar Como...'), voc\u00EA poder\u00E1 escolher 'Salvar tamb\u00E9m a figura no modo reduzido'
e, ent\u00E3o, dois arquivos ser\u00E3o criados : o primeiro (.zir) abrir\u00E1 no modo normal e
o segundo (.r.zir) no modo reduzido
menu.macros=Macros menu.special=Especial menu.special.newmacro=Nova Macro menu.special.loadmacros=Abrir Macro... menu.special.definejob=Definir um Exerc\u00EDcio menu.special.loadjob=Abrir um Exerc\u00EDcio ... menu.special.jobcomment=Configura o Texto do Exerc\u00EDcio ... menu.special.testjob=Testar este Exerc\u00EDcio menu.special.savejob=Salvar como Exerc\u00EDcio ... menu.special.export=Criar Arquivo HTML menu.special.exporttemplate=Exportar HTML como Modelo menu.help=Ajuda menu.help.about=Sobre o CaRMetal... menu.help.info=Ajuda Contextualizada menu.help.url0=Ir para a p\u00E1gina WEB do CaRMetal menu.help.url1=Ir para a p\u00E1gina WEB do CARzine menu.help.url2=Ir para a p\u00E1gina WEB oficial do C.a.R. filedialog.saveas=Salvar Figura filedialog.alsorestricted=Salvar tamb\u00E9m a figura no modo reduzido filedialog.options=Salvar Op\u00E7\u00F5es filedialog.restrictedmessage=Voc\u00EA est\u00E1 trabalhando em uma sess\u00E3o no modo restrito,
assim sua figura ser\u00E1 salva neste modo. filedialog.filefilter=Arquivo CaR (.zir) filedialog.compressedfilefilter=Arquivo CaR Compactado (.zirz) filedialog.macrofilefilter=Arquivo Macro CaR (.mcr) filedialog.savemessage1=Arquivo :\n filedialog.savemessage2=\nj\u00E1 existe. Voc\u00EA deseja substitu\u00ED-lo? palette.file=Arquivo palette.edit=Editar palette.construction=Constru\u00E7\u00E3o palette.aspect=Aspecto Cor palette.history=Hist\u00F3ria palette.sizes=Tamanhos palette.sizes.point=Ponto palette.sizes.line=Reta palette.sizes.arrow=Seta palette.sizes.font=Fonte palette.prec=Precis\u00E3o num\u00E9rica palette.prec.lengths=Comprimentos palette.prec.edit=Express\u00F5es palette.prec.angles=\u00C2ngulos palette.colors=Cor de Fundo imagem palette.colors.saturated1=Cores saturadas palette.colors.desaturated1=Cores menos saturadas palette.colors.saturated2=Cores saturadas 2 palette.colors.desaturated2=Cores menos saturadas 2 palette.colors.constants=Constantes WEB palette.image.fileerror=Voc\u00EA deve salvar esta constru\u00E7\u00E3o antes de usar esta ferramenta.

Depois, the figura que voc\u00EA escolher deve ficar
no sesmo diret\u00F3rio. palette.info.vector=Vetor palette.info.image3=Incluir imagem com 2 ou 3 pontos palette.info.background=Escolher/Limpar imagem de fundo palette.info.imcenter=Centralizar imagem de fundo palette.info.imstretch=Redimensionar a imagem de fundo para preencher a janela da constru\u00E7\u00E3o palette.info.imtile=Ladrilhar a imagem de fundo palette.info.copy=Copiar a janela de constru\u00E7\u00E3o palette.info.exportpng=Exportar a janela de constru\u00E7\u00E3o para o formato PNG palette.info.exporteps=Exportar a janela de constru\u00E7\u00E3o para o formato EPS palette.info.newmacro=Criar uma nova macro palette.info.loadmacros=Abrir um arquivo de macros palette.info.manage_macros=Exibir/Esconder o painel de macros palette.info.properties_panel=Exibir/Esconder o painel de propriedades palette.info.history_panel=Exibir/Esconder o painel da hist\u00F3ria da constru\u00E7\u00E3o palette.info.help_panel=Exibir/Esconder o painel de ajuda contextualizada macros.untitledmacro=Macro sem nome macros.untitledfolder=Arquivo sem nome macros.emptynode=-- Vazio -- macros.addfolder=Criar um diret\u00F3rio novo macros.deleteselected=Apagar macros selecionadas macros.renamemacro=Renomear macro selecionada macros.recordmacro=Gravar macros macros.initials=Objectos iniciais ? macros.pleaseselect=por favor, selecione! macros.finals=Objetos finais ? macros.cancel=Cancelar ? macros.popup.run=Executar macro macros.popup.rename=Renomear macros.popup.delete=Apagar macros.popup.addtolibrary=Acrescentar \u00E0 biblioteca macros.popup.removefromlibrary=Remover da biblioteca macros.popup.publish=Incluir na figura macros.popup.notpublish=N\u00E3o incluir na figura macros.popup.saveas=Salvar Como ... macros.popup.properties=Exibir propriedades macros.popup.duplicate=Duplicar macros.savedlog.buttonok=Salvar o arquivo de macros macros.question.delete=Voc\u00EA tem certeza que quer apagar estas macros ? rene.zirkel.objects.PointObject=Ponto rene.zirkel.objects.PrimitiveCircleObject=Circunfer\u00EAncia rene.zirkel.objects.PrimitiveLineObject=Reta rene.zirkel.objects.ExpressionObject=Express\u00E3o. rene.zirkel.objects.FixedAngleObject=\u00C2nguloFixo rene.zirkel.objects.SegmentObject=Segmento. rene.zirkel.objects.RayObject=Semi-reta rene.zirkel.objects.TwoPointLineObject=Reta rene.zirkel.objects.FunctionObject=Fun\u00E7\u00E3o rene.zirkel.objects.AreaObject=\u00C1rea mi.pal.name=Gerenciador de macros mi.name=Nome : mi.comment=Coment\u00E1rio : mi.properties=Propriedades dos objetos iniciais : mi.hideproperties=Propriedades dos objetos finais : mi.hideduplicates=Esconder objetos duplicados mi.apply=Aplicar mi.tab.type=Tipo mi.tab.name=Nome mi.tab.prompt=Entrada de Dados mi.tab.fix=Fixar ? mi.tab.ask=Perguntar ? mi.error.initial=Erro : pelo menos um par\u00E2metro \ntem que ser um objeto livre (nem fixado, nem requerido)\n\nEsta macro n\u00E3o ser\u00E1 modificada. props.help=Para ver suas propriedades, voc\u00EA deve clicar no objeto como bot\u00E3o direito do mouse.

Se voc\u00EA criar um objeto com este painel aberto, voc\u00EA poder\u00E1 mudar sua propriedades durante o processo. props.name=Nome : props.alias=Apelido : props.unit=Unidade : props.fix=Fixar : props.expl=Explica\u00E7\u00E3o : props.belongto=Camada : props.conditional=Aspecto Condicional : props.solid=S\u00F3lido : props.hidden=Escondido : props.normal=Normal : props.bold=Fino : props.thin=Pontilhado : props.black=Preto : props.green=Verde : props.blue=Azul : props.brown=Marrom : props.cyan=Turquesa : props.red=Vermelho : props.showasslider=Seletor props.error=Existe um erro de sintaxe na express\u00E3o.
Ela ser\u00E1 reinicializada. props.cartesian=Fun\u00E7\u00E3o props.parametric=Fun\u00E7\u00E3o param\u00E9trica props.functiontype=Tipo : props.killarc=Apagar arco props.arc=Arco props.release=Liberar props.bind=Prender props.setaway=Longe de props.setclose=Perto de # v1.3 : props.grid=Incremento : props.inside=No interior do objeto : props.pointsonly=Apenas para pontos : props.step=Passo : palette.grid=Malha leftpanel.macros=Painel de macros leftpanel.properties=Painel de propriedades leftpanel.history=Painel do hist\u00F3rico leftpanel.help=Painel da ajuda selectpopup.whatobject=qual objeto ? selectpopup.RightClick=Selecionar selectpopup.MoverTool=Mover selectpopup.HiderTool=Exibir/Esconder selectpopup.DeleteTool=Apagar selectpopup.RenamerTool=Renomear selectpopup.EditTool=Editar selectpopup.SetParameterTool=Objetos iniciais da macro : selectpopup.SetTargetsTool=Objetos finais da macro : palette.info.locus=Lugar geom\u00E9trico # v1.4 : menu.special.savezirset=Criar exibi\u00E7\u00E3o ... filedialog.openfolder.title=Exibi\u00E7\u00E3o: Janela de Di\u00E1logo filedialog.openfolder.approve=Escolher diret\u00F3rio filedialog.openfolder.saveicons=Salvar tamb\u00E9m os \u00EDcones reduzidos slideshow.next=pr\u00F3ximo slideshow.previous=anterior slideshow.download=Baixar arquivo slideshow.signature=Exibi\u00E7\u00E3o feita com # v1.5 : menu.language=Idiomas menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00E7ais menu.language.es=Espa\u00F1ol menu.language.gl=Galego menu.language.zh_TW=Chinese (Traditional) menu.help.url3=Translate CaRMetal menu.display.smartboard=Modo smartboard # v1.6 : menu.language.no=Norsk palette.info.bi_syma=Reflex\u00E3o palette.info.bi_symc=Simetria palette.info.bi_trans=Transla\u00E7\u00E3o palette.info.bi_med=Mediatriz palette.info.bi_biss=Bissetriz palette.info.bi_circ=Circunfer\u00EAncia por 3 pontos palette.info.bi_arc=Arco circuncircular por 3 pontos palette.info.bi_t_align=Pontos colineares ? palette.info.bi_t_para=Retas paralelas ? palette.info.bi_t_perp=Retas perpendiculares ? palette.info.bi_t_equi=Ponto eq\u00FCidistante de outros dois pontos ? palette.info.bi_t_app=Pertence a uma reta ? palette.info.bi_t_conf=Pontos coincidentes ? macro.bi_syma.0=Eixo de simetria ? macro.bi_syma.1=Ponto sim\u00E9trico a qual ponto ? macro.bi_symc.0=Centro de simetria ? macro.bi_symc.1=Ponto sim\u00E9trico a qual ponto ? macro.bi_trans.0=Extremidade inicial do vetor ? macro.bi_trans.1=Extremidade final do vetor ? macro.bi_trans.2=Ponto a ser transladado ? macro.bi_med.0=Primeira extremidade do segmento ? macro.bi_med.1=Segunda extremidade do segmento ? macro.bi_biss.0=Primeiro ponto ? macro.bi_biss.1=V\u00E9rtice do \u00E2ngulo ? macro.bi_biss.2=\u00DAltimo ponto ? macro.bi_circ.0=Primeito ponto ? macro.bi_circ.1=Segundo ponto ? macro.bi_circ.2=Terceiro ponto ? macro.bi_t_para.0=Primeira reta ? macro.bi_t_para.1=Segunda reta ? macro.bi_t_equi.0=Este ponto \u00E9 eq\u00FCidistante ... macro.bi_t_equi.1=deste ponto ... macro.bi_t_equi.2=e deste ponto ? macro.bi_t_app.0=Qual ponto ? macro.bi_t_app.1=Pertence a qual reta (ou segmento) ? macro.bi_t_conf.0=Qual ponto ? macro.bi_t_conf.1=Coincide com qual ponto ? macro.bi_t_align.text0=Pontos s\u00E3o colineares macro.bi_t_align.text1=Pontos n\u00E3o s\u00E3o colineares macro.bi_t_para.text0=Objetos s\u00E3o paralelos macro.bi_t_para.text1=Objetos n\u00E3o s\u00E3o paralelos macro.bi_t_perp.text0=Objetos s\u00E3o perpendiculares macro.bi_t_perp.text1=Objetos n\u00E3o s\u00E3o perpendiculares macro.bi_t_equi.text0=Pontos s\u00E3o eq\u00FCidistantes macro.bi_t_equi.text1=Pontos n\u00E3o s\u00E3o eq\u00FCidistantes macro.bi_t_app.text0=O ponto pertence ao objeto macro.bi_t_app.text1=O ponto n\u00E3o pertence ao objeto macro.bi_t_conf.text0=Os dois pontos s\u00E3o coincidentes macro.bi_t_conf.text1=Os dois pontos n\u00E3o s\u00E3o coincidentes palette.test=Testar # v1.7 : filedialog.openfolder.appletsize=Tamanho do applet : filedialog.openfolder.actualsize=Tamanho atual filedialog.openfolder.other=Outro ... filedialog.openfolder.selected=Selecionar diret\u00F3rio : filedialog.openfolder.cancel=Cancelar menu.file.exportsvg=Exportar no formato SVG menu.language.sl=Slovenski menu.language.nl=Nederlands menu.language.pt=Portugu\u00EAs (Portugal) props.vars=Vari\u00E1veis : menu.objects.points=Pontos menu.objects.lines=Retas menu.objects.segments=Segmentos menu.objects.circles=Circunfer\u00EAncias e c\u00F4nicas menu.objects.angles=\u00C2ngulos menu.objects.tracks=Tra\u00E7os e lugares geom\u00E9tricos menu.objects.functions=Fun\u00E7\u00F5es e express\u00F5es palette.info.function_u=Fun\u00E7\u00E3o definida pelo usu\u00E1rio palette.info.function=Exibir fun\u00E7\u00E3o ou curva param\u00E9trica props.superhidden=Completamente escondido : props.showvalue=Exibir valor : props.showname=Exibir nome : props.background=Fundo : macro.bi_expression.0=Ponto \u00E2ncora ? # v1.9a : menu.help.licence=Licen\u00E7a ... licence.txt=

Este programa \u00E9 gratuito seguindo a licen\u00E7a GNU-GPL, o que significa que voc\u00EA pode redistribu\u00ED-lo e/ou modific\u00E1-lo seguindo os termos da licen\u00E7a publicada pela Free Software Foundation;
Veja :

# v2.0 : menu.special.theme=Temas menu.special.theme.gray=Metal polido menu.special.theme.brushed=Metal escovado menu.special.options=Prefer\u00EAncias ... menu.special.options.sizes=Tamanhos menu.special.options.sizes.minpointsize=Tamanho de pontos menu.special.options.sizes.minlinesize=Espessura de retas menu.special.options.sizes.arrowsize=Tamanho de setas menu.special.options.sizes.minfontsize=Tamanho da fonte menu.special.options.sizes.digits.lengths=Precis\u00E3o em comprimentos menu.special.options.sizes.digits.edit=Precis\u00E3o em express\u00F5es menu.special.options.sizes.digits.angles=Precis\u00E3o em \u00E2ngulos menu.special.options.colors=Cores menu.special.options.others=Outros menu.special.options.others.undock=Permitir a separa\u00E7\u00E3o de paletas # v2.1 : menu.file.close=Fechar janela # v2.3 : alert.toomuchwins=Existem muitas janelas abertas :
por favor, feche algumas delas antes de abrir
uma nova # v2.4 : menu.file.new3D=Nova figura 3D palette.3D=3D palette.info.bi_3Dcoords=coordenadas 3D macro.bi_3Dcoords.0=Ponto \u00E2ncora ? palette.info.bi_3Dcube=Cubo macro.bi_3Dcube.0=Centro do cubo ? palette.info.bi_3Darete=Arestas 3D macro.bi_3Darete.0=Primeiro ponto ? macro.bi_3Darete.1=Segundo ponto ? macro.bi_3Darete.2=Terceiro ponto ? macro.bi_3Darete.3=Quarto ponto ? palette.info.bi_3Dtetra=Tetraedro regular macro.bi_3Dtetra.0=Centro do tetraedro ? menu.newdoc=Novo menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=Aspecto de palette.aspect.label.point=pontos palette.aspect.label.line=retas palette.aspect.label.segment=segmentos palette.aspect.label.circle=circunfer\u00EAncias palette.aspect.label.angle=\u00E2ngulos palette.aspect.label.area=pol\u00EDgonos palette.aspect.label.text=textos palette.info.bi_3Ddode=Dodecaedro regular macro.bi_3Ddode.0=Centro do dodecaedro ? # v2.7 : palette.aspect.label.pointshape=Nome & formato de pontos : palette.aspect.label.locus=Lugar geom\u00E9trico menu.edit.deleteall=Apagar tudo # v2.7.1 : java.old.message=Lamento, mas n\u00E3o \u00E9 poss\u00EDvel abrir o CaRMetal porque sua vers\u00E3o da linguagem JAVA \u00E9 muito antiga ! java.old.quit=Sair java.old.go=Baixe uma nova vers\u00E3o da linguagem JAVA palette.info.boundedpoint=Colocar um ponto em um plano+ou sobre a face de um poliedro #v2.7.2 : user.foldername=Perfil do Usu\u00E1rio #v2.8 props.fixedray=Semi-reta : props.fixedsegment=Comprimento : props.fixedangle=\u00E2ngulo : props.expl=Coment\u00E1rio : props.aspecttab=Aspecto props.numerictab=Num\u00E9rico props.conditionaltab=Condicional props.thick=Espessura : props.popup.special=Caracteres Especiais props.popup.functions=Fun\u00E7\u00F5es pr\u00E9-definidas props.popup.latex=Comandos LaTeX menu.language.pl=Polski #v2.8.1 props.fixedinwindow=Atado \u00E0 janela #v2.8.5 palette.controls=Controles props.ctrlshowvalue=Exibir valor props.ctrlsnap=Mover para as marcas props.ctrlshowticks=Exibir marcar props.ctrltickspacing=Incremento : palette.info.ctrl_edit=Editar, mover ou redimensionar controle palette.info.ctrl_chkbox=Acrescentar caixa de controle palette.info.ctrl_popup=Acrescentar menu popup palette.info.ctrl_slider=Acrescentar seletor #v2.8.6 props.trackdmin=N\u00FAmero de passos : opendialog.preview=Visualizar : pngdialog.options=Op\u00E7\u00F5es : pngdialog.scale=Escalar : pngdialog.originsize=Tamanho original : pngdialog.scaledsize=Tamanho redimensionado : #v2.8.7 canvas.3D.floor=Ch\u00E3o canvas.3D.system=Sistema de coordenadas canvas.3D.rightclic=Use o bot\u00E3o direito do mouse para girar o sistema de coordenadas #v2.8.8 palette.info.equationxy=Curva definida por f(x,y)=0 props.equationxy=Equa\u00E7\u00E3o : props.equationxychooser=Precis\u00E3o : palette.function=Fun\u00E7\u00F5es & lugares geom\u00E9tricos #v2.8.9 menu.edit.deletealltracks=Limpar tra\u00E7os menu.edit.deactivatealltracks=Desativar tra\u00E7os props.tracks=Ativar tra\u00E7o menu.edit.zoom=Zoom ou mover #v2.9.0 menu.windows=Janela #v2.9.1 contexthelp.seealso=Veja tamb\u00E9m :carmetal-4.3/src/eric/docs/JZirkelProperties_ru_RU.properties000066400000000000000000001343131417122252700245020ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=\u0424\u0430\u0439\u043b menu.file.new=\u041d\u043e\u0432\u044b\u0439 menu.file.load=\u041e\u0442\u043a\u0440\u044b\u0442\u044c... menu.file.save=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c menu.file.saveas=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432... menu.file.exportpng=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 PNG menu.file.exporteps=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 EPS menu.file.quit=\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c menu.edit=\u041f\u0440\u0430\u0432\u043a\u0430 menu.edit.copy=\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c menu.edit.move=\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 menu.edit.rename=\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c menu.edit.edit=\u041f\u0440\u0430\u0432\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 menu.edit.hide=\u0421\u043a\u0440\u044b\u0442\u044c menu.edit.delete=\u0423\u0434\u0430\u043b\u0438\u0442\u044c menu.display=\u0412\u0438\u0434 menu.display.hidden=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b menu.display.grid=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u0441\u0435\u0442\u043a\u0443 menu.display.finegrid=\u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0438 menu.display.leftsnap=\u00ab\u041f\u0440\u0438\u043b\u0438\u043f\u0430\u0442\u044c\u00bb \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0438 menu.display.manage_macros=\u0418\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 menu.display.history_panel=\u0418\u0441\u0442\u043e\u0440\u0438\u044f menu.display.help_panel=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 menu.display.properties_panel=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 menu.display.small=\u041c\u0435\u043b\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 menu.display.medium=\u0421\u0440\u0435\u0434\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 menu.display.large=\u041a\u0440\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 menu.display.restrictedpalette=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c menu.display.restrictedpaletteedit=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c menu.display.restrictmessage=
\u042d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c.

\u041e\u043d\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0442\u0435\u043a\u0443\u0449\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c:

\u043f\u0440\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u00ab\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u00bb \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u00ab\u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0442\u0435\u0436 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438\u00bb,
\u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: \u043f\u0435\u0440\u0432\u044b\u0439 (.zir) \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u00ab\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u00bb \u0440\u0435\u0436\u0438\u043c\u0435,
\u0432\u0442\u043e\u0440\u043e\u0439 \u2014 (.r.zir) \u0432 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u043c
menu.macros=\u041c\u0430\u043a\u0440\u043e\u0441 menu.special=\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e menu.special.newmacro=\u041d\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 menu.special.loadmacros=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441... menu.special.definejob=\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 menu.special.loadjob=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435... menu.special.jobcomment=\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435... menu.special.testjob=\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0435 menu.special.savejob=\u0421\u043e\u0445\u0430\u0440\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u0435... menu.special.export=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b HTML \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 menu.special.exporttemplate=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 HTML \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c menu.help=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 menu.help.about=\u041e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 CaRMetal... menu.help.info=\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430 menu.help.url0=\u041d\u0430 \u0441\u0430\u0439\u0442 CaRMetal menu.help.url1=\u041d\u0430 \u0441\u0430\u0439\u0442 CARzine menu.help.url2=\u041d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 C.a.R. filedialog.saveas=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0442\u0435\u0436 filedialog.alsorestricted=\u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0442\u0435\u0436 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438 filedialog.options=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b filedialog.restrictedmessage=\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b,
\u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0447\u0435\u0440\u0442\u0435\u0436 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 filedialog.filefilter=\u0424\u0430\u0439\u043b CaR (.zir) filedialog.compressedfilefilter=\u0421\u0436\u0430\u0442\u044b\u0439 \u0444\u0430\u0439\u043b CaR (.zirz) filedialog.macrofilefilter=\u0424\u0430\u0439\u043b \u043c\u0430\u043a\u0440\u043e\u0441\u0430 CaR (.mcr) filedialog.savemessage1=\u0424\u0430\u0439\u043b:\n filedialog.savemessage2=\n\u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u0425\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e? palette.file=\u0424\u0430\u0439\u043b palette.edit=\u041f\u0440\u0430\u0432\u043a\u0430 palette.construction=\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 palette.aspect=\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 palette.history=\u0418\u0441\u0442\u043e\u0440\u0438\u044f palette.sizes=\u0420\u0430\u0437\u043c\u0435\u0440\u044b palette.sizes.point=\u0422\u043e\u0447\u043a\u0430 palette.sizes.line=\u041b\u0438\u043d\u0438\u044f palette.sizes.arrow=\u0421\u0442\u0440\u0435\u043b\u043a\u0430 palette.sizes.font=\u0428\u0440\u0438\u0444\u0442 palette.prec=\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c palette.prec.lengths=\u0420\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f palette.prec.edit=\u0412\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f palette.prec.angles=\u0423\u0433\u043b\u044b palette.colors=\u0424\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438 \u0446\u0432\u0435\u0442 palette.colors.saturated1=\u041d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 palette.colors.desaturated1=\u041d\u0435\u043d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 palette.colors.saturated2=\u041d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 2 palette.colors.desaturated2=\u041d\u0435\u043d\u0430\u0441\u044b\u0449\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 2 palette.colors.constants=\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 Web palette.image.fileerror=\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0447\u0435\u0440\u0442\u0435\u0436 \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430

\u0414\u0430\u043b\u0435\u0435, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c,
\u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u0439 \u0436\u0435 \u043f\u0430\u043f\u043a\u0435. palette.info.vector=\u0412\u0435\u043a\u0442\u043e\u0440 palette.info.image3=\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435+\u043f\u043e 2 \u0438\u043b\u0438 3 \u0442\u043e\u0447\u043a\u0430\u043c palette.info.background=\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c/\u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 palette.info.imcenter=\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 palette.info.imstretch=\u0420\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u044c \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435+\u043d\u0430 \u0432\u0441\u0451 \u043e\u043a\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f palette.info.imtile=\u0417\u0430\u0441\u0442\u0435\u043b\u0438\u0442\u044c \u043f\u043b\u0438\u0442\u043a\u0430\u043c\u0438 palette.info.copy=\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f palette.info.exportpng=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435+\u0432 \u0444\u043e\u0440\u043c\u0430\u0442 png palette.info.exporteps=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435+\u0432 \u0444\u043e\u0440\u043c\u0430\u0442 eps palette.info.newmacro=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 palette.info.loadmacros=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043c\u0430\u043a\u0440\u043e\u0441\u0430 palette.info.manage_macros=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 palette.info.properties_panel=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c+\u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 palette.info.history_panel=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c+\u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f palette.info.help_panel=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c+\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0439 \u0441\u043f\u0440\u0430\u0432\u043a\u0438 macros.untitledmacro=\u0411\u0435\u0437\u044b\u043c\u044f\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 macros.untitledfolder=\u0411\u0435\u0437\u044b\u043c\u044f\u043d\u043d\u0430\u044f \u043f\u0430\u043f\u043a\u0430 macros.emptynode=-- \u041f\u0443\u0441\u0442\u043e -- macros.addfolder=\u041d\u043e\u0432\u0430\u044f \u043f\u0430\u043f\u043a\u0430 macros.deleteselected=\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 macros.renamemacro=\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0440\u043e\u0441 macros.recordmacro=\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441 macros.initials=\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b? macros.pleaseselect=\u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430! macros.finals=\u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b? macros.cancel=\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c? macros.popup.run=\u0418\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441 macros.popup.rename=\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c macros.popup.delete=\u0423\u0434\u0430\u043b\u0438\u0442\u044c macros.popup.addtolibrary=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 macros.popup.removefromlibrary=\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 macros.popup.publish=\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 \u0447\u0435\u0440\u0442\u0435\u0436 macros.popup.notpublish=\u041d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u0447\u0435\u0440\u0442\u0435\u0436 macros.popup.saveas=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432... macros.popup.properties=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 macros.popup.duplicate=\u0414\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c macros.savedlog.buttonok=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043c\u0430\u043a\u0440\u043e\u0441\u0430 macros.question.delete=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0430\u043a\u0440\u043e\u0441? rene.zirkel.objects.PointObject=\u0422\u0447 rene.zirkel.objects.PrimitiveCircleObject=\u041e\u043a\u0440 rene.zirkel.objects.PrimitiveLineObject=\u041b\u0438\u043d rene.zirkel.objects.ExpressionObject=\u0412\u044b\u0440\u0430\u0436 rene.zirkel.objects.FixedAngleObject=\u0424\u0438\u043a\u0441\u0423\u0433 rene.zirkel.objects.SegmentObject=\u0421\u0435\u0433\u043c rene.zirkel.objects.RayObject=\u041b\u0443\u0447 rene.zirkel.objects.TwoPointLineObject=\u041b\u0438\u043d rene.zirkel.objects.FunctionObject=\u0424\u0443\u043d\u043a rene.zirkel.objects.AreaObject=\u041e\u0431\u043b mi.pal.name=\u0418\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 mi.name=\u0418\u043c\u044f: mi.comment=\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: mi.properties=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: mi.hideproperties=\u0426\u0435\u043b\u0435\u0432\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430: mi.hideduplicates=\u0421\u043a\u0440\u044b\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b mi.apply=\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c mi.tab.type=\u0422\u0438\u043f mi.tab.name=\u0418\u043c\u044f mi.tab.prompt=\u041f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 mi.tab.fix=\u0424\u0438\u043a\u0441.? mi.tab.ask=\u0417\u0430\u043f\u0440\u043e\u0441? mi.error.initial=\u041e\u0448\u0438\u0431\u043a\u0430: \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u0438\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \n\u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u043c (\u043d\u0435 \u0444\u0438\u043a\u0441., \u043d\u0435 \u0437\u0430\u043f\u0440\u043e\u0441)\n\n\u041c\u0430\u043a\u0440\u043e\u0441 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d props.help=\u0427\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0443\u0436\u043d\u043e \u0449\u0435\u043b\u043a\u043d\u0443\u0442\u044c \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u043e\u0439.

\u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u0430 \u043f\u0430\u043d\u0435\u043b\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f. props.name=\u0418\u043c\u044f: props.alias=\u041f\u0441\u0435\u0432\u0434\u043e\u043d\u0438\u043c: props.unit=\u0415\u0434\u0438\u043d\u0438\u0446\u044b: props.fix=\u0424\u0438\u043a\u0441.: props.expl=\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435: props.belongto=\u0421\u043b\u043e\u0439: props.conditional=\u0423\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e: props.solid=Solid: props.hidden=\u0421\u043a\u0440\u044b\u0442\u044b\u0439: props.normal=\u041d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f: props.bold=\u0422\u043e\u043b\u0441\u0442\u0430\u044f: props.thin=\u041f\u0443\u043d\u043a\u0442\u0438\u0440\u043d\u0430\u044f: props.black=\u0427\u0435\u0440\u043d\u044b\u0439: props.green=\u0417\u0435\u043b\u0435\u043d\u044b\u0439: props.blue=\u0421\u0438\u043d\u0438\u0439: props.brown=\u041a\u043e\u0440\u0438\u0447\u043d\u0435\u0432\u044b\u0439: props.cyan=\u0413\u043e\u043b\u0443\u0431\u043e\u0439: props.red=\u041a\u0440\u0430\u0441\u043d\u044b\u0439: props.showasslider=\u0414\u0432\u0438\u0436\u043e\u043a props.error=\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438.
It will be reinitialized props.cartesian=\u0414\u0435\u043a\u0430\u0440\u0442\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f props.parametric=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f props.functiontype=\u0422\u0438\u043f: props.killarc=Kill arc props.arc=\u0414\u0443\u0433\u0430 props.release=\u041e\u0441\u0432\u043e\u0431\u043e\u0434\u0438\u0442\u044c props.bind=\u0421\u0432\u044f\u0437\u0430\u0442\u044c props.setaway=Set away props.setclose=Set close # v1.3 : props.grid=\u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442: props.inside=\u0412\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430: props.pointsonly=\u0422\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0447\u043a\u0438: props.step=\u0428\u0430\u0433: palette.grid=\u0412\u0438\u0434 \u0441\u0435\u0442\u043a\u0438 leftpanel.macros=\u041f\u0430\u043d\u0435\u043b\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 leftpanel.properties=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432 leftpanel.history=\u041f\u0430\u043d\u0435\u043b\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u0438 leftpanel.help=\u041f\u0430\u043d\u0435\u043b\u044c \u0441\u043f\u0440\u0430\u0432\u043a\u0438 selectpopup.whatobject=\u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u044a\u0435\u043a\u0442? selectpopup.RightClick=\u0412\u044b\u0431\u0440\u0430\u0442\u044c selectpopup.MoverTool=\u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c selectpopup.HiderTool=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c/\u0441\u043a\u0440\u044b\u0442\u044c selectpopup.DeleteTool=\u0423\u0434\u0430\u043b\u0438\u0442\u044c selectpopup.RenamerTool=\u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c selectpopup.EditTool=\u041f\u0440\u0430\u0432\u0438\u0442\u044c selectpopup.SetParameterTool=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u0430\u043a\u0440\u043e: selectpopup.SetTargetsTool=\u0426\u0435\u043b\u0438 \u043c\u0430\u043a\u0440\u043e: palette.info.locus=\u041c\u0435\u0441\u0442\u043e \u0442\u043e\u0447\u043a\u0438+\u041e\u0433\u0438\u0431\u0430\u044e\u0449\u0430\u044f \u043b\u0438\u043d\u0438\u0438 # v1.4 : menu.special.savezirset=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443... filedialog.openfolder.title=\u0414\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0430\u043f\u043a\u0438 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 filedialog.openfolder.approve=\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0441\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 filedialog.openfolder.saveicons=\u0422\u0430\u043a\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 slideshow.next=\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 slideshow.previous=\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 slideshow.download=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b slideshow.signature=\u0421\u043b\u0430\u0439\u0434-\u0448\u043e\u0443 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0432 # v1.5 : menu.language=\u042f\u0437\u044b\u043a\u0438 menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00e7ais menu.language.es=Espa\u00f1ol menu.language.gl=Galego menu.language.zh_TW=Chinese (Traditional) menu.help.url3=\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 CaRMetal menu.display.smartboard=\u0420\u0435\u0436\u0438\u043c Smartboard # v1.6 : menu.language.no=Norsk palette.info.bi_syma=\u041e\u0442\u0440\u0430\u0436\u0435\u043d\u0438\u0435 palette.info.bi_symc=\u0421\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u044f palette.info.bi_trans=\u041f\u0435\u0440\u0435\u043d\u043e\u0441 palette.info.bi_med=\u0421\u0440\u0435\u0434\u0438\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440 palette.info.bi_biss=\u0411\u0438\u0441\u0441\u0435\u043a\u0442\u0440\u0438\u0441\u0430 palette.info.bi_circ=\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e 3 \u0442\u043e\u0447\u043a\u0430\u043c palette.info.bi_arc=\u0414\u0443\u0433\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e 3 \u0442\u043e\u0447\u043a\u0430\u043c palette.info.bi_t_align=\u041a\u043e\u043b\u043b\u0438\u043d\u0435\u0430\u0440\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438? palette.info.bi_t_para=\u041f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435? palette.info.bi_t_perp=\u041f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435? palette.info.bi_t_equi=\u042d\u043a\u0432\u0438\u0434\u0438\u0441\u0442\u0430\u043d\u0442\u043d\u043e \u043e\u0442 \u0434\u0432\u0443\u0445 \u0442\u043e\u0447\u0435\u043a? palette.info.bi_t_app=\u041b\u0435\u0436\u0438\u0442 \u043d\u0430 \u043b\u0438\u043d\u0438\u0438? palette.info.bi_t_conf=\u0422\u043e\u0447\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442? macro.bi_syma.0=\u041e\u0441\u044c \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0438? macro.bi_syma.1=\u0422\u043e\u0447\u043a\u0430 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430? macro.bi_symc.0=\u0426\u0435\u043d\u0442\u0440 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0438? macro.bi_symc.1=\u0422\u043e\u0447\u043a\u0430 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u0430? macro.bi_trans.0=\u041d\u0430\u0447\u0430\u043b\u043e \u0432\u0435\u043a\u0442\u043e\u0440\u0430? macro.bi_trans.1=\u041a\u043e\u043d\u0435\u0446 \u0432\u0435\u043a\u0442\u043e\u0440\u0430? macro.bi_trans.2=\u0422\u043e\u0447\u043a\u0430 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043d\u0430? macro.bi_med.0=\u041d\u0430\u0447\u0430\u043b\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430? macro.bi_med.1=\u041a\u043e\u043d\u0435\u0446 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430? macro.bi_biss.0=\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_biss.1=\u0412\u0435\u0440\u0448\u0438\u043d\u0430 \u0443\u0433\u043b\u0430? macro.bi_biss.2=\u041a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_circ.0=\u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_circ.1=\u0412\u0442\u043e\u0440\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_circ.2=\u0422\u0440\u0435\u0442\u044c\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_t_para.0=\u041f\u0435\u0440\u0432\u0430\u044f \u043b\u0438\u043d\u0438\u044f? macro.bi_t_para.1=\u0412\u0442\u043e\u0440\u0430\u044f \u043b\u0438\u043d\u0438\u044f? macro.bi_t_equi.0=\u042d\u0442\u0430 \u0442\u043e\u0447\u043a\u0430 \u044d\u043a\u0432\u0438\u0434\u0438\u0441\u0442\u0430\u043d\u0442\u043d\u0430... macro.bi_t_equi.1=\u043e\u0442 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438... macro.bi_t_equi.2=\u0438 \u044d\u0442\u043e\u0439 \u0442\u043e\u0447\u043a\u0438? macro.bi_t_app.0=\u041a\u0430\u043a\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_t_app.1=\u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u044d\u0442\u043e\u0439 \u043f\u0440\u044f\u043c\u043e\u0439 (\u0438\u043b\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435)? macro.bi_t_conf.0=\u041a\u0430\u043a\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_t_conf.1=\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439? macro.bi_t_align.text0=\u0422\u043e\u0447\u043a\u0438 \u043a\u043e\u043b\u043b\u0438\u043d\u0435\u0430\u0440\u043d\u044b macro.bi_t_align.text1=\u0422\u043e\u0447\u043a\u0438 \u043d\u0435 \u043a\u043e\u043b\u043b\u0438\u043d\u0435\u0430\u0440\u043d\u044b macro.bi_t_para.text0=\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b macro.bi_t_para.text1=\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b macro.bi_t_perp.text0=\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u044b macro.bi_t_perp.text1=\u041e\u0431\u044a\u0435\u043a\u0442\u044b \u043d\u0435 \u043f\u0435\u0440\u043f\u0435\u043d\u0434\u0438\u043a\u0443\u043b\u044f\u0440\u043d\u044b macro.bi_t_equi.text0=\u0422\u043e\u0447\u043a\u0438 \u044d\u043a\u0432\u0438\u0434\u0438\u0441\u0442\u0430\u043d\u0442\u043d\u044b macro.bi_t_equi.text1=\u0422\u043e\u0447\u043a\u0438 \u043d\u0435 \u044d\u043a\u0432\u0438\u0434\u0438\u0441\u0442\u0430\u043d\u0442\u043d\u044b macro.bi_t_app.text0=\u0422\u043e\u0447\u043a\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0444\u0438\u0433\u0443\u0440\u0435 macro.bi_t_app.text1=\u0422\u043e\u0447\u043a\u0430 \u043d\u0435 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0444\u0438\u0433\u0443\u0440\u0435 macro.bi_t_conf.text0=\u0414\u0432\u0435 \u0442\u043e\u0447\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 macro.bi_t_conf.text1=\u0414\u0432\u0435 \u0442\u043e\u0447\u043a\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 palette.test=\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 # v1.7 : filedialog.openfolder.appletsize=\u0420\u0430\u0437\u043c\u0435\u0440 \u0430\u043f\u043b\u0435\u0442\u0430: filedialog.openfolder.actualsize=\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 filedialog.openfolder.other=\u0414\u0440\u0443\u0433\u043e\u0435... filedialog.openfolder.selected=\u0412\u044b\u0431\u0440\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430: filedialog.openfolder.cancel=\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c menu.file.exportsvg=\u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 SVG menu.language.sl=Slovenski menu.language.nl=Nederlands menu.language.pt=Portugu\u00eas props.vars=\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435: menu.objects.points=\u0422\u043e\u0447\u043a\u0438 menu.objects.lines=\u041f\u0440\u044f\u043c\u044b\u0435 menu.objects.segments=\u0421\u0435\u0433\u043c\u0435\u043d\u0442\u044b menu.objects.circles=\u041e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043d\u0443\u0441\u044b menu.objects.angles=\u0423\u0433\u043b\u044b menu.objects.tracks=\u0422\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b menu.objects.functions=\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f palette.info.function_u=\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f palette.info.function=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e+\u0438\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u0440\u0438\u0432\u0443\u044e props.superhidden=\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043a\u0440\u044b\u0442\u0430: props.showvalue=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: props.showname=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f: props.background=\u0424\u043e\u043d: macro.bi_expression.0=\u042f\u043a\u043e\u0440\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430? # v1.9a : menu.help.licence=\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f... licence.txt=

\u042d\u0442\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 GNU-GPL. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u044b \u0438\u043c\u0435\u0435\u0442\u0435 \u043f\u0440\u0430\u0432\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0439 Free Software Foundation;
\u0421\u043c.:

# v2.0 : menu.special.theme=\u0422\u0435\u043c\u044b menu.special.theme.gray=\u041f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u0430\u043b\u043b menu.special.theme.brushed=\u0428\u0435\u0440\u0448\u0430\u0432\u044b\u0439 \u043c\u0435\u0442\u0430\u043b\u043b menu.special.options=\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438... menu.special.options.sizes=\u0420\u0430\u0437\u043c\u0435\u0440\u044b menu.special.options.sizes.minpointsize=\u0420\u0430\u0437\u043c\u0435\u0440 \u0442\u043e\u0447\u043a\u0438 menu.special.options.sizes.minlinesize=\u0420\u0430\u0437\u043c\u0435\u0440 \u043b\u0438\u043d\u0438\u0438 menu.special.options.sizes.arrowsize=\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 menu.special.options.sizes.minfontsize=\u041a\u0435\u0433\u043b\u044c \u0448\u0440\u0438\u0444\u0442\u0430 menu.special.options.sizes.digits.lengths=\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0439 menu.special.options.sizes.digits.edit=\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 menu.special.options.sizes.digits.angles=\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0443\u0433\u043b\u043e\u0432 menu.special.options.colors=\u0426\u0432\u0435\u0442\u0430 menu.special.options.others=\u0414\u0440\u0443\u0433\u043e\u0435 menu.special.options.others.undock=\u00ab\u041e\u0442\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f\u00bb \u043f\u0430\u043d\u0435\u043b\u0438 # v2.1 : menu.file.close=\u0417\u0430\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e # v2.3 : alert.toomuchwins=\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043e\u043a\u043e\u043d.
\u0417\u0430\u043a\u0440\u043e\u0439\u0442\u0435 \u0447\u0430\u0441\u0442\u044c \u0438\u0437 \u043d\u0438\u0445, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c
\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 # v2.4 : menu.file.new3D=\u041d\u043e\u0432\u044b\u0439 \u0447\u0435\u0440\u0442\u0435\u0436 3D palette.3D=3D palette.info.bi_3Dcoords=3D-\u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b macro.bi_3Dcoords.0=\u042f\u043a\u043e\u0440\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430? palette.info.bi_3Dcube=\u041a\u0443\u0431 macro.bi_3Dcube.0=\u0426\u0435\u043d\u0442\u0440 \u043a\u0443\u0431\u0430? palette.info.bi_3Darete=\u0420\u0435\u0431\u0440\u0430 3D macro.bi_3Darete.0=\u041f\u0435\u0440\u0432\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_3Darete.1=\u0412\u0442\u043e\u0440\u0430\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_3Darete.2=\u0422\u0440\u0435\u0442\u044c\u044f \u0442\u043e\u0447\u043a\u0430? macro.bi_3Darete.3=\u0427\u0435\u0442\u0432\u0435\u0440\u0442\u0430\u044f \u0442\u043e\u0447\u043a\u0430? palette.info.bi_3Dtetra=\u0422\u0435\u0442\u0440\u0430\u044d\u0434\u0440 macro.bi_3Dtetra.0=\u0426\u0435\u043d\u0442\u0440 \u0442\u0435\u0442\u0440\u0430\u044d\u0434\u0440\u0430? menu.newdoc=\u041d\u043e\u0432\u044b\u0439 menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text=\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 palette.aspect.label.point=\u0442\u043e\u0447\u043a\u0438 palette.aspect.label.line=\u043f\u0440\u044f\u043c\u044b\u0435 palette.aspect.label.segment=\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b palette.aspect.label.circle=\u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 palette.aspect.label.angle=\u0443\u0433\u043b\u044b palette.aspect.label.area=\u043c\u043d\u043e\u0433\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 palette.aspect.label.bi_text=\u0442\u0435\u043a\u0441\u0442 palette.info.bi_3Ddode=\u0414\u043e\u0434\u0435\u043a\u0430\u044d\u0434\u0440 macro.bi_3Ddode.0=\u0426\u0435\u043d\u0442\u0440 \u0434\u043e\u0434\u0435\u043a\u0430\u044d\u0434\u0440\u0430? # v2.7 : palette.aspect.label.pointshape=\u041c\u0435\u0442\u043a\u0438 \u0438 \u0438\u043c\u0435\u043d\u0430 \u0442\u043e\u0447\u0435\u043a: palette.aspect.label.locus=\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 menu.edit.deleteall=\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 # v2.7.1 : java.old.message=\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c CaRMetal, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f java \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u0442\u0430\u0440\u0430\u044f! java.old.quit=\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c java.old.go=\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e java palette.info.boundedpoint=\u041f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u043d\u0430 \u043f\u043b\u043e\u0441\u043a\u043e\u0441\u0442\u044c+\u0438\u043b\u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u044c \u043c\u043d\u043e\u0433\u043e\u0433\u0440\u0430\u043d\u043d\u0438\u043a\u0430 #v2.7.2 : user.foldername=\u041f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f CarMetal #v2.8 props.fixedray=\u041b\u0443\u0447: props.fixedsegment=\u0414\u043b\u0438\u043d\u0430: props.fixedangle=\u0423\u0433\u043e\u043b: props.expl=\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: props.aspecttab=\u0412\u0438\u0434 props.numerictab=\u0427\u0438\u0441\u043b\u043e\u0432\u044b\u0435 props.conditionaltab=\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0435 props.thick=\u0422\u043e\u043b\u0441\u0442\u044b\u0439: props.popup.special=\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b props.popup.functions=\u041f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 props.popup.latex=\u041a\u043e\u043c\u0430\u043d\u0434\u044b LaTeX menu.language.pl=Polski #v2.8.1 props.fixedinwindow=\u0421\u0432\u044f\u0437\u0430\u043d \u0441 \u043e\u043a\u043d\u043e\u043c #v2.8.5 palette.controls=\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 props.ctrlshowvalue=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 props.ctrlsnap=\u0412\u044b\u0440\u043e\u0432\u043d\u044f\u0442\u044c \u043f\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043c props.ctrlshowticks=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u043b\u0435\u043d\u0438\u044f props.ctrltickspacing=\u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442: palette.info.ctrl_edit=\u041f\u0440\u0430\u0432\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 palette.info.ctrl_chkbox=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u043a\u0431\u043e\u043a\u0441 palette.info.ctrl_popup=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u043d\u044e palette.info.ctrl_slider=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0432\u0438\u0436\u043e\u043a #v2.8.6 props.trackdmin=\u0427\u0438\u0441\u043b\u043e \u0448\u0430\u0433\u043e\u0432: opendialog.preview=\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440: pngdialog.options=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0430: pngdialog.scale=\u041c\u0430\u0441\u0448\u0442\u0430\u0431: pngdialog.originsize=\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440: pngdialog.scaledsize=\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439: #v2.8.7 canvas.3D.floor=\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442 canvas.3D.system=\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 canvas.3D.rightclic=\u041f\u0440\u0430\u0432\u044b\u0439 \u0449\u0435\u043b\u0447\u043e\u043a-\u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 #v2.8.8 palette.info.equationxy=\u041a\u0440\u0438\u0432\u0430\u044f, \u0437\u0430\u0434\u0430\u043d\u043d\u0430\u044f f(x,y)=0 props.equationxy=\u0424\u043e\u0440\u043c\u0443\u043b\u0430: props.equationxychooser=\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c: palette.function=\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 #v2.8.9 menu.edit.deletealltracks=\u0421\u0442\u0435\u0440\u0435\u0442\u044c \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 menu.edit.deactivatealltracks=\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 props.tracks=\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438 menu.edit.zoom=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 / \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c #v2.9.0 menu.windows=\u041e\u043a\u043d\u043e #v2.9.1 contexthelp.seealso=\u0421\u043c. \u0442\u0430\u043a\u0436\u0435: #v2.9.2 menu.language.pt_BR=Brazilian menu.display.restrictmessage.dontdisplay=\u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 #v2.9.6 props.magnetmessage=\u0429\u0435\u043b\u043a\u043d\u0438\u0442\u0435 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u00ab\u043c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0445\u00bb (\u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0437 \u043d\u0435\u0433\u043e props.magnetobj=\u041c\u0430\u0433\u043d\u0438\u0442\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b props.magnetpix=\u0414\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u044f (20 px) : props.show=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c #v2.9.7 palette.info.ctrl_txtfield=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u0447\u0438\u0441\u043b\u0430 palette.info.ctrl_button=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 #v2.9.8.4 JSerror.title=\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 JSerror.line=\u043b\u0438\u043d\u0438\u044f JSerror.pointcoords=\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 \u0442\u043e\u0447\u043a\u0438 JSerror.interactiveinput=\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 JSerror.notfound=\u041e\u0431\u044a\u0435\u043a\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d JSerror.notgoodtype=\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 JScmd.inputmessage=\u0412\u0430\u0448 \u0432\u043e\u043f\u0440\u043e\u0441? JScmd.promptmessage=\u0412\u0430\u0448\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435... menu.js=Javascript menu.js.script=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b javascript... menu.js.command=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 JSeditor.title=\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 Javascript #v3.0 JSeditor.save=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.open=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.opendlogmsg=\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.savedlogmsg=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.format=\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.restore=\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0437\u0430\u043f\u0443\u0441\u043a JSeditor.run=\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 JSeditor.help=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443 JSEditor.comment=\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c/\u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0435 JSEditor.savequestion=\u0421\u043a\u0440\u0438\u043f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e? menu.language.ar_TN=Arabic # v3.1.1 menu.js.define=\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432... menu.js.dumb=\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0438\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0431\u0435\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 JSeditor.opendfavfolder=\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 JSeditor.saveas=\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432...carmetal-4.3/src/eric/docs/JZirkelProperties_sl.properties000066400000000000000000000242711417122252700240650ustar00rootroot00000000000000 filedialog.alsorestricted=Shrani tudi omejeno konstrukcijo filedialog.compressedfilefilter=Stisnjena Ri\u0160 datoteka (.zirz) filedialog.filefilter=Ri\u0160 datoteka (.zir) filedialog.macrofilefilter=Ri\u0160 makro datoteka (.mcr) filedialog.openfolder.actualsize=Trenutna velikost # v1.7 : filedialog.openfolder.appletsize=Velikost apleta : filedialog.openfolder.approve=Mapa s predstavitvijo filedialog.openfolder.cancel=Prekini filedialog.openfolder.other=Ostalo... filedialog.openfolder.saveicons=Shrani tudi omejene ikone filedialog.openfolder.selected=Izbrani imenik : filedialog.openfolder.title=Izbira mape s predstavitvijo filedialog.options=Mo\u017Enosti shranjevanja filedialog.restrictedmessage=Dela\u0161 v omejeni seji,
zato bo slika shranjena v omejenem na\u010Dinu filedialog.saveas=Shrani konstrukcijo filedialog.savemessage1=Datoteka :\n\ filedialog.savemessage2=\n\ obstaja. Ali jo \u017Eeli\u0161 zamenjati? leftpanel.help=Okvir s pomo\u010Djo leftpanel.history=Okvir zgodovine leftpanel.macros=Okvir z makroji leftpanel.properties=Okvir z lastnostmi macro.bi_biss.0=Prva to\u010Dka? macro.bi_biss.1=Vrh kota? macro.bi_biss.2=Tretja to\u010Dka? macro.bi_circ.0=Prva to\u010Dka? macro.bi_circ.1=Druga to\u010Dka? macro.bi_circ.2=Tretja to\u010Dka? macro.bi_med.0=Prva to\u010Dka daljice? macro.bi_med.1=Druga to\u010Dka daljice? macro.bi_syma.0=Premica zrclajenja? macro.bi_syma.1=To\u010Dka, ki jo zrcalimo? macro.bi_symc.0=Sredi\u0161\u010De simetrije? macro.bi_symc.1=To\u010Dka zrcaljenja? macro.bi_t_align.text0=To\u010Dke so kolinearne macro.bi_t_align.text1=To\u010Dke niso kolinearne macro.bi_t_app.0=Izberi to\u010Dko macro.bi_t_app.1=Na kateri premici (daljici) le\u017Ei? macro.bi_t_app.text0=To\u010Dka le\u017Ei na objektu macro.bi_t_app.text1=To\u010Dka ne le\u017Ei na objektu macro.bi_t_conf.0=Izberi to\u010Dko macro.bi_t_conf.1=Na kateri to\u010Dki? macro.bi_t_conf.text0=To\u010Dki se pokrivata macro.bi_t_conf.text1=To\u010Dki se ne pokrivata macro.bi_t_equi.0=Je ta to\u010Dka enako oddaljena ... macro.bi_t_equi.1=od te to\u010Dke ... macro.bi_t_equi.2=In ta to\u010Dka ? macro.bi_t_equi.text0=To\u010Dki sta enako oddaljeni macro.bi_t_equi.text1=To\u010Dki nista enako oddaljeni macro.bi_t_para.0=Prva premica? macro.bi_t_para.1=Druga premica? macro.bi_t_para.text0=Premici sta vzporedni macro.bi_t_para.text1=Premici nista vzporedni macro.bi_t_perp.text0=Premici sta pravokotni macro.bi_t_perp.text1=Premici nista pravokotni macro.bi_trans.0=Prva to\u010Dka vektorja? macro.bi_trans.1=Druga to\u010Dka vektorja? macro.bi_trans.2=To\u010Dka, ki jo premikamo? macros.addfolder=Dodaj novo mapo macros.cancel=Prekini? macros.deleteselected=Zbri\u0161i izbrani makro\ macros.emptynode=-- Prazno-- macros.finals=Izhodni objekti ? macros.initials=Vhodni objekti? macros.pleaseselect=izberi prosim macros.popup.addtolibrary=Dodaj v knji\u017Enico macros.popup.delete=Zbri\u0161i macros.popup.duplicate=Podvoji macros.popup.notpublish=Ne vklju\u010Di v sliko macros.popup.properties=Prika\u017Ei lastnosti macros.popup.publish=Vklju\u010Di v sliko macros.popup.removefromlibrary=Odstrani iz knji\u017Enice macros.popup.rename=Preimenuj macros.popup.run=Za\u017Eeni makro macros.popup.saveas=Shrani kot... macros.question.delete=Zares \u017Eeli\u0161 izbrisati ta makro? macros.recordmacro=Sestavi makro macros.renamemacro=Preimenuj izbrani makro macros.savedlog.buttonok=Shrani makro datoteko macros.untitledfolder=\u0160e neimenovan macros.untitledmacro=\u0160e neimenovan makro menu.display=Prikaz menu.display.finegrid=Le osi menu.display.grid=Prika\u017Ei/skrij mre\u017Eo menu.display.help_panel=Pomo\u010D menu.display.hidden=Prika\u017Ei/skrij objekt menu.display.history_panel=Zgodovina menu.display.large=Velike ikone menu.display.leftsnap=Ujemanje z mre\u017Eo menu.display.manage_macros=Upravljanje makrojev menu.display.medium=Srednje ikone menu.display.properties_panel=Okvir z latnostmi objektov menu.display.restrictedpalette=Prika\u017Ei omejeno paleto menu.display.restrictedpaletteedit=Uredi omejeno paleto menu.display.restrictmessage=
Ta mo\u017Enost omogo\u010Da preklop naomejen nabor orodij.

Nana\u0161a se na trenutno datoteko :

\u010De izbere\u0161 'shrani kot', lahko izbere\u0161 'shrani tudi omejeno sliko'
in shranjeni bosta dve datoteki: prva (.zir) 'normalni' na\u010Din z vsemi mo\u017Enostmi,
in druga (.r.zir) v omejenem na\u010Dinu
menu.display.small=Majhne ikone menu.display.smartboard=Na\u010Din z odzivno risalno povr\u0161ino menu.edit=Uredi menu.edit.copy=Kopiraj menu.edit.delete=Bri\u0161i menu.edit.edit=Uredi menu.edit.hide=Skrij menu.edit.move=Premakni menu.edit.rename=Preimenuj menu.file=Datoteka menu.file.exporteps=Izvoz v EPS menu.file.exportpng=Izvoz v PNG menu.file.exportsvg=Izvoz v SVG menu.file.load=Odpri... menu.file.new=Nova menu.file.quit=Izhod menu.file.save=Shrani menu.file.saveas=Shrani kot... menu.help=Pomo\u010D menu.help.about=Program CaRMetal... menu.help.info=Kontekstualna pomo\u010D menu.help.url0=Stran CARzine menu.help.url2=Uradna Ri\u0160 stran menu.help.url3=Prevodi CaRMetal # v1.5 : menu.language=Jeziki # v1.6 : menu.macros=Makroji menu.special=Posebno menu.special.definejob=Definiraj nalogo menu.special.export=Izvoz v HTML menu.special.exporttemplate=HTML izvoz s predlogo menu.special.jobcomment=Tekst za nalogo ... menu.special.loadjob=Odpri nalogo ... menu.special.loadmacros=Odpri datoteko z makroji... menu.special.newmacro=Nov makro menu.special.savejob=Shrani nalogo... # v1.4 : menu.special.savezirset=Naredi predstavitev... menu.special.testjob=Preveri nalogo mi.apply=Uporabi mi.comment=Komentar : mi.error.initial=Napaka: vsaj en parameter mora\n\ biti prost (nekonstanten, ne z vnosom)\n\ \n\ Ta makro ne bo spremenjen mi.hideduplicates=Skrij prekrite mi.hideproperties=Lastnosti cilja: mi.name=Ime: mi.pal.name=Upravljalnik makrojev mi.properties=Lastnosti parametrov: mi.tab.ask=Vpra\u0161aj? mi.tab.fix=Konstantno? mi.tab.name=Ime mi.tab.prompt=Vnos mi.tab.type=Vrsta palette.aspect=Pogled Barva palette.colors=Slika za ozadje palette.colors.constants=HTML konstante palette.colors.desaturated1=Neprepletajo\u010De barve palette.colors.desaturated2=Neprepletajo\u010De barve 2 palette.colors.saturated1=Prepletajo\u010De barve palette.colors.saturated2=Prepletajo\u010De barve 2 palette.construction=Konstrukcija palette.edit=Uredi palette.file=Datoteka palette.grid=Mre\u017Ea palette.history=Zgodovina palette.image.fileerror=Najprej mora\u0161 shraniti sliko

Slika, ki jo izbere\u0161,
pa mora biti v isti mapi. palette.info.background=Izberi/zbri\u0161i sliko za ozadje palette.info.bi_arc=Kro\u017Eni lok skozi tri to\u010Dke palette.info.bi_biss=Simetrala kota palette.info.bi_circ=Kro\u017Enica skozi tri to\u010Dke palette.info.bi_med=Simetrala daljice palette.info.bi_syma=Zrcaljenje palette.info.bi_symc=Simetrija palette.info.bi_t_align=Kolinearne to\u010Dke? palette.info.bi_t_app=Le\u017Ei na premici? palette.info.bi_t_conf=Se to\u010Dke prekrivajo? palette.info.bi_t_equi=Enako oddaljena od dveh to\u010Dk? palette.info.bi_t_para=Vzporednici? palette.info.bi_t_perp=Pravokotnici? palette.info.bi_trans=Translacija palette.info.copy=Kopiraj okno s konstrukcijo palette.info.exporteps=Izvoz konstrukcije v eps format palette.info.exportpng=Izvoz konstrukcije v png format palette.info.help_panel=Prika\u017Ei/skrij okvir s pomo\u010Djo palette.info.history_panel=Prika\u017Ei/skrij okvir z zgodovino\ palette.info.image3=Vstavi sliko z dvema ali tremi vogali palette.info.imcenter=Usredini sliko za ozadje palette.info.imstretch=Raz\u0161iri sliko za ozadje do velikosti okna palette.info.imtile=Razporedi sliko za ozadje palette.info.loadmacros=Odpri datoteko z makroji palette.info.locus=Sled to\u010Dke Ovojnica premice palette.info.manage_macros=Prika\u017Ei/skrij okvir z makroji palette.info.newmacro=Izdelaj makro palette.info.properties_panel=Prika\u017Ei/skrij okvir z lastnostmi objektov palette.info.vector=Vektor palette.prec=\u0160tevilo decimalk palette.prec.angles=Koti palette.prec.edit=Izrazi palette.prec.lengths=Dol\u017Eine palette.sizes=Velikosti palette.sizes.arrow=Pu\u0161\u010Dica palette.sizes.font=Pisava palette.sizes.line=Premica palette.sizes.point=To\u010Dka palette.test=Preverjanje props.alias=Alias : props.arc=Lok props.belongto=Plast : props.bind=Povezava props.black=\u010Crna : props.blue=Modra : props.bold=Debelina : props.brown=Rjava : props.cartesian=Eksplicitna funkcija props.conditional=Pgojno oblikovanje : props.cyan=Turkizna : props.error=V tem izrazu je sintakti\u010Dna napaka.
Izraz bo vrnjen na za\u010Detek. props.expl=Pojasnilo: props.fix=Konstantno: props.functiontype=Vrsta : props.green=Zelena : # v1.3 : props.grid=Korak : props.help=\u010Ce \u017Eeli\u0161 videti lastnosti, klikni z desno tipko na objektu.

\u010Ce je ta okvir odprt med ustvarjanjem novega objekta, mu lahko sproti dolo\u010Da\u0161 lastnosti. props.hidden=Skrito : props.inside=Znotraj objekta : props.killarc=Zbri\u0161i lok props.name=Ime: props.normal=Privzeto: props.parametric=Parametri\u010Dna funkcija props.pointsonly=Le s to\u010Dkami: props.red=Rde\u010Da: props.release=Sprosti props.setaway=Postavi vstran props.setclose=Nastavi zaprto props.showasslider=Drsnik: props.solid=Mo\u010Dna: props.step=Korak: props.thin=To\u010Dkasto: props.unit=Enota: rene.zirkel.objects.AreaObject=Plo\u0161\u010Dina rene.zirkel.objects.ExpressionObject=Izraz rene.zirkel.objects.FixedAngleObject=Kot z velikostjo. rene.zirkel.objects.FunctionObject=Funkcija rene.zirkel.objects.PointObject=To\u010Dka rene.zirkel.objects.PrimitiveCircleObject=Krog rene.zirkel.objects.PrimitiveLineObject=Premica rene.zirkel.objects.RayObject=Poltrak rene.zirkel.objects.SegmentObject=Daljica rene.zirkel.objects.TwoPointLineObject=Premica selectpopup.DeleteTool=Brisanje selectpopup.EditTool=Urejanje selectpopup.HiderTool=Prika\u017Ei skrij selectpopup.MoverTool=Premikanje selectpopup.RenamerTool=Preimenovanje selectpopup.RightClick=Izberi selectpopup.SetParameterTool=Parametri makroja: selectpopup.SetTargetsTool=Cilj makroja: selectpopup.whatobject=kateri objekt? slideshow.download=Prenesi datoteko slideshow.next=naslednje slideshow.previous=prej\u0161nje slideshow.signature=Predstavitev narejena z carmetal-4.3/src/eric/docs/JZirkelProperties_sv.properties000066400000000000000000000425641417122252700241040ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=Fil menu.file.new=Ny menu.file.load=\u00D6ppna... menu.file.save=Spara menu.file.saveas=Spara Som... menu.file.exportpng=Exportera till PNG menu.file.exporteps=Exportera till EPS menu.file.quit=Avsluta menu.edit=Redigera menu.edit.copy=Kopiera menu.edit.move=Flytta objekt menu.edit.rename=D\u00F6p om menu.edit.edit=Redigera menu.edit.hide=G\u00F6m menu.edit.delete=Radera menu.display=Visa menu.display.hidden=Visa/G\u00F6m Objekt menu.display.grid=Visa/G\u00F6m Rutn\u00E4t menu.display.finegrid=Endast axlar menu.display.leftsnap=F\u00E4st med v\u00E4nster musdragning menu.display.manage_macros=Makro Inspekt\u00F6r menu.display.history_panel=Logg menu.display.help_panel=Hj\u00E4lp menu.display.properties_panel=Panel f\u00F6r Objektegenskaper menu.display.small=Sm\u00E5 ikoner menu.display.medium=Medium ikoner menu.display.large=Stora ikoner menu.display.restrictedpalette=Visa Begr\u00E4nsad Palett menu.display.restrictedpaletteedit=Redigera Begr\u00E4nsad Palett menu.display.restrictmessage=
Denna punkt till\u00E5ter dig att visualisera den begr\u00E4nsade paletten.

Det g\u00E4ller bara den nuvarande filen :

n\u00E4r du v\u00E4ljer 'spara som', s\u00E5 kommer det vara m\u00F6jligt att \u00E4ven v\u00E4lja 'spara \u00E4ven den begr\u00E4nsade figuren'
tv\u00E5 filer kommer att skapas : den f\u00F6rsta (.zir) kommer att \u00F6ppnas i 'normalt' l\u00E4ge, och
den andra (.r.zir) i begr\u00E4nsat l\u00E4ge
menu.macros=Makron menu.special=Special menu.special.newmacro=Nytt Makro menu.special.loadmacros=\u00D6ppna Makro Fil... menu.special.definejob=Definiera en Arbetsuppgift menu.special.loadjob=Ladda en Arbetsuppgift ... menu.special.jobcomment=Ange text f\u00F6r Arbetsuppgift ... menu.special.testjob=Testa denna Arbetsuppgift menu.special.savejob=Spara som Arbetsuppgift ... menu.special.export=Skapa HTML Fil och f\u00F6rhandsvisning i webbl\u00E4sare menu.special.exporttemplate=HTML Export med Exempel menu.help=Hj\u00E4lp menu.help.about=Om CaRMetal... menu.help.info=Sammanhangshj\u00E4lp menu.help.url0=G\u00E5 till CaRMetal sajten menu.help.url1=G\u00E5 till CARzine sajten menu.help.url2=G\u00E5 till den officiella C.a.R. sajten filedialog.saveas=Spara Figur filedialog.alsorestricted=Spara \u00E4ven begr\u00E4nsad figur filedialog.options=Spara alternativ filedialog.restrictedmessage=Du arbetar i en begr\u00E4nsad session,
s\u00E5 din figur kommer att sparas i begr\u00E4nsat l\u00E4ge filedialog.filefilter=CaR Fil (.zir) filedialog.compressedfilefilter=Komprimerad CaR Fil (.zirz) filedialog.macrofilefilter=CaR Makro Fil (.mcr) filedialog.savemessage1=Fil :\n filedialog.savemessage2=\nfinns redan. Vill du verkligen ers\u00E4tta den ? palette.file=Fil palette.edit=Redigera palette.construction=Konstruktion palette.aspect=Aspekt & F\u00E4rg palette.history=Logg palette.sizes=Storlekar palette.sizes.point=Punkt palette.sizes.line=Linje palette.sizes.arrow=Pil palette.sizes.font=Typsnitt palette.prec=Numerisk precision palette.prec.lengths=L\u00E4ngder palette.prec.edit=Uttryck palette.prec.angles=Vinklar palette.colors=Bakgrundsf\u00E4rg & bild palette.colors.saturated1=M\u00E4ttade f\u00E4rger palette.colors.desaturated1=Om\u00E4ttade f\u00E4rger palette.colors.saturated2=M\u00E4ttade f\u00E4rger 2 palette.colors.desaturated2=Om\u00E4ttade f\u00E4rger 2 palette.colors.constants=Web konstanter palette.image.fileerror=Du m\u00E5ste spara denna figur innan du anv\u00E4nder detta verktyg

Efter\u00E5t, s\u00E5 m\u00E5sta den bild som du v\u00E4ljer vara
i samma katalog. palette.info.vector=Vektor palette.info.image3=S\u00E4tt in bild+med 2 eller 3 punkter palette.info.background=Choose/Rensa bakgrundsbild palette.info.imcenter=Centrera bakgrundsbild palette.info.imstretch=St\u00E4ck ut bakgrundsbilden+s\u00E5 den passar konstruktionsf\u00F6nstret palette.info.imtile=\u00D6verlappa bakgrundsbilden palette.info.copy=Kopiera konstruktionsf\u00F6nstret palette.info.exportpng=Exportera konstruktions+f\u00F6nstret till png format palette.info.exporteps=Exportera konstruktions+f\u00F6nstret till eps format palette.info.newmacro=Skapa ett nytt makro palette.info.loadmacros=Ladda en makro fil palette.info.manage_macros=Visa/g\u00F6m makropanelen palette.info.properties_panel=Visa/g\u00F6m objekt+egenskapspanelen palette.info.history_panel=Visa/g\u00F6m konstruktions+loggpanelen palette.info.help_panel=Visa/g\u00F6m sammanhangshj\u00E4lppanelen macros.untitledmacro=Od\u00F6pt Makro macros.untitledfolder=Od\u00F6pt mapp macros.emptynode=-- Tom -- macros.addfolder=L\u00E4gg till ny mapp macros.deleteselected=Radera valda makron macros.renamemacro=D\u00F6p om valt makro macros.recordmacro=Spela in makro macros.initials=Inledande objekt ? macros.pleaseselect=V\u00E4lj ! macros.finals=Slutliga objekt ? macros.cancel=Avbryt ? macros.popup.run=K\u00F6r makro macros.popup.rename=D\u00F6p om macros.popup.delete=Radera macros.popup.addtolibrary=L\u00E4gg till bibliotek macros.popup.removefromlibrary=Ta bort fr\u00E5n bibliotek macros.popup.publish=Inkludera i figuren macros.popup.notpublish=Inkludera inte i figuren macros.popup.saveas=Spara som... macros.popup.properties=visa egenskaper macros.popup.duplicate=Duplicera macros.savedlog.buttonok=Spara makrofil macros.question.delete=\u00C4r du s\u00E4ker p\u00E5 att du vill radera dessa makron ? rene.zirkel.objects.PointObject=Punkt rene.zirkel.objects.PrimitiveCircleObject=Cirkel rene.zirkel.objects.PrimitiveLineObject=Linje rene.zirkel.objects.ExpressionObject=Uttryck rene.zirkel.objects.FixedAngleObject=Fast vinkel rene.zirkel.objects.SegmentObject=Segment rene.zirkel.objects.RayObject=Str\u00E5le rene.zirkel.objects.TwoPointLineObject=Linje rene.zirkel.objects.FunctionObject=Funktion rene.zirkel.objects.AreaObject=Area mi.pal.name=Macros inspekt\u00F6r mi.name=Namn : mi.comment=Kommentar : mi.properties=Parameteregenskaper : mi.hideproperties=M\u00E5legenskaper : mi.hideduplicates=G\u00F6m dubletter mi.apply=Verkst\u00E4ll mi.tab.type=Typ mi.tab.name=Namn mi.tab.prompt=Prompt mi.tab.fix=F\u00E4st ? mi.tab.ask=Fr\u00E5ga ? mi.error.initial=Fel : minst en parameter \nm\u00E5ste vara fri (ingen f\u00E4st, ingen fr\u00E5ga)\n\nDetta makro kommer inte att \u00E4ndras props.help=F\u00F6r att kunna se egenskaper, s\u00E5 m\u00E5sta du h\u00F6gerklicka p\u00E5 ett objekt.

Om du skapar ett nytt objekt n\u00E4r denna panel \u00E4r\u00F6ppen, s\u00E5 kommer du kunna \u00E4ndra dess egenskaper under skapandet. props.name=Namn : props.alias=Alias : props.unit=Enhet : props.fix=F\u00E4st : props.expl=F\u00F6rklaring : props.belongto=Lager : props.conditional=Villkorligt l\u00E4ge : props.solid=Solid : props.hidden=G\u00F6md : props.normal=Normal : props.bold=Tjock : props.thin=Prickad : props.black=Svart : props.green=Gr\u00F6n : props.blue=Bl\u00E5 : props.brown=Brun : props.cyan=Cyan : props.red=R\u00F6d : props.showasslider=Skjutknapp props.error=Det finns ett syntaxfel i detta uttryck.
Det kommer att \u00E5terinitieras props.cartesian=Kartesisk funktion props.parametric=Parametrisk funktion props.functiontype=Typ : props.killarc=ta bort cirkelb\u00E5ge props.arc=Cirkelb\u00E5ge props.release=Sl\u00E4pp props.bind=F\u00E4st props.setaway=H\u00E5ll borta props.setclose=h\u00E5ll n\u00E4ra # v1.3 : props.grid=Inkrement : props.inside=Inuti objekt : props.pointsonly=Endast med punkter : props.step=Steg : palette.grid=Rutn\u00E4tsutseende leftpanel.macros=Makro panel leftpanel.properties=Egenskaper panel leftpanel.history=Logg panel leftpanel.help=Hj\u00E4lp panel selectpopup.whatobject=vilket objekt ? selectpopup.RightClick=V\u00E4lj selectpopup.MoverTool=Flytta selectpopup.HiderTool=Visa/G\u00F6m selectpopup.DeleteTool=Radera selectpopup.RenamerTool=D\u00F6p om selectpopup.EditTool=Redigera selectpopup.SetParameterTool=Makro parametrar : selectpopup.SetTargetsTool=Makro m\u00E5l : palette.info.locus=Punktens ort+Linjens Envelopp # v1.4 : menu.special.savezirset=Skapa bildspel... filedialog.openfolder.title=Dialog f\u00F6r val av bildspelsmapp filedialog.openfolder.approve=V\u00E4lj bildspelsmapp filedialog.openfolder.saveicons=Spara \u00E4ven begr\u00E4nsade ikoner slideshow.next=n\u00E4sta slideshow.previous=f\u00F6reg\u00E5ende slideshow.download=Ladda ned fil slideshow.signature=Bildspel gjord med # v1.5 : menu.language=Spr\u00E5k menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00E7ais menu.language.es=Espa\u00F1ol menu.language.gl=Galego menu.language.zh_TW=Chinese (Traditional) menu.help.url3=\u00D6vers\u00E4tt CaRMetal menu.display.smartboard=Smartboard l\u00E4ge # v1.6 : menu.language.no=Norsk palette.info.bi_syma=Spegling palette.info.bi_symc=Symmetri palette.info.bi_trans=F\u00F6rflyttning palette.info.bi_med=Vinkelr\u00E4t bisektris palette.info.bi_biss=Vinkel bisektris palette.info.bi_circ=Cirkel genom 3 punkter palette.info.bi_arc=Cirkelb\u00E5ge genom 3 punkter palette.info.bi_t_align=Kolinj\u00E4ra punkter ? palette.info.bi_t_para=Parallella linjer ? palette.info.bi_t_perp=Vinkelr\u00E4ta linjer ? palette.info.bi_t_equi=Samma avst\u00E5nd fr\u00E5n tv\u00E5 punkter ? palette.info.bi_t_app=Ligger p\u00E5 en linje ? palette.info.bi_t_conf=Punkter p\u00E5 samma plats ? macro.bi_syma.0=Speglingsaxel ? macro.bi_syma.1=Punkt att spegla ? macro.bi_symc.0=Symmetri center ? macro.bi_symc.1=Punkt att spegla ? macro.bi_trans.0=Vektorns f\u00F6rsta punkt ? macro.bi_trans.1=Vektorns andra punkt ? macro.bi_trans.2=Punkt att f\u00F6rflytta ? macro.bi_med.0=Segmentets f\u00F6rsta punkt ? macro.bi_med.1=Segmentets andra punkt ? macro.bi_biss.0=F\u00F6rsta punkten ? macro.bi_biss.1=Vinkelh\u00F6rn ? macro.bi_biss.2=Sista punkten ? macro.bi_circ.0=F\u00F6rsta punkten ? macro.bi_circ.1=Andra punkten ? macro.bi_circ.2=Tredje punkten ? macro.bi_t_para.0=F\u00F6rsta linjen ? macro.bi_t_para.1=Andra linjen ? macro.bi_t_equi.0=Har denna punkt samma avst\u00E5nd ... macro.bi_t_equi.1=Fr\u00E5n denna punkt ... macro.bi_t_equi.2=Och denna punkt ? macro.bi_t_app.0=Vilken punkt ? macro.bi_t_app.1=Ligger p\u00E5 vilken linje (eller segment) ? macro.bi_t_conf.0=Vilken punkt ? macro.bi_t_conf.1=\u00E4r p\u00E5 vilken punkt ? macro.bi_t_align.text0=Punkterna \u00E4r kolinj\u00E4ra macro.bi_t_align.text1=Punkterna \u00E4r inte kollinj\u00E4ra macro.bi_t_para.text0=Objekten \u00E4r parallella macro.bi_t_para.text1=Objekten \u00E4r inte parallella macro.bi_t_perp.text0=Objekten \u00E4r vinkelr\u00E4ta macro.bi_t_perp.text1=Objekten \u00E4r inte vinkelr\u00E4ta macro.bi_t_equi.text0=Punkterna har samma avst\u00E5nd macro.bi_t_equi.text1=Punkterna har inte samma avst\u00E5nd macro.bi_t_app.text0=Punkten ligger p\u00E5 objektet macro.bi_t_app.text1=Punkten ligger inte p\u00E5 objektet macro.bi_t_conf.text0=De tv\u00E5 punkterna ligger p\u00E5 samma plats macro.bi_t_conf.text1=De tv\u00E5 punkterna ligger inte p\u00E5 samma plats palette.test=Tester # v1.7 : filedialog.openfolder.appletsize=Applet storlek : filedialog.openfolder.actualsize=Aktuell storlek filedialog.openfolder.other=Annat... filedialog.openfolder.selected=Vald mapp : filedialog.openfolder.cancel=Avbryt menu.file.exportsvg=Exportera till SVG menu.language.sl=Slovenski menu.language.nl=Nederlands menu.language.pt=Portugu\u00EAs props.vars=Variabler : menu.objects.points=Punkter menu.objects.lines=Linjer menu.objects.segments=Segment menu.objects.circles=Cirklar och k\u00E4glor menu.objects.angles=Vinklar menu.objects.tracks=Sp\u00E5r och ort menu.objects.functions=Funktioner och uttryck palette.info.function_u=Anv\u00E4ndardefinierad funktion palette.info.function=Visa funktion+eller parametrisk kurva props.superhidden=Helt g\u00F6md : props.showvalue=Visa v\u00E4rde : props.showname=Visa namn : props.background=Bakgrund : macro.bi_expression.0=Ankarpunkt ? # v1.9a : menu.help.licence=Licens... licence.txt=

Detta program \u00E4r fri mjukvara under GNU-GPL licensen, vilket inneb\u00E4r att du kan redistribuera den och/eller f\u00F6r\u00E4ndra den under licensens villkor, som \u00E4r publicerad av the Free Software Foundation;
Se :

# v2.0 : menu.special.theme=Teman menu.special.theme.gray=Polerad metall menu.special.theme.brushed=Borstad metall menu.special.options=Alternativ... menu.special.options.sizes=Storlekar menu.special.options.sizes.minpointsize=Punktstorlek menu.special.options.sizes.minlinesize=Linjetjocklek menu.special.options.sizes.arrowsize=Pilstorlek menu.special.options.sizes.minfontsize=Typsnittsstorlek menu.special.options.sizes.digits.lengths=L\u00E4ngdprecision menu.special.options.sizes.digits.edit=Uttrycksprecision menu.special.options.sizes.digits.angles=Vinkelprecision menu.special.options.colors=F\u00E4rger menu.special.options.others=Annat menu.special.options.others.undock=M\u00F6jligt att koppla loss paletter # v2.1 : menu.file.close=St\u00E4ng f\u00F6nster # v2.3 : alert.toomuchwins=Det finns f\u00F6r m\u00E5nga \u00F6ppna f\u00F6nster :
st\u00E4ng n\u00E5gra av dem innan du \u00F6ppnar
ett nytt # v2.4 : menu.file.new3D=Ny 3D figur palette.3D=3D palette.info.bi_3Dcoords=3D koordinater macro.bi_3Dcoords.0=Ankarpunkt ? palette.info.bi_3Dcube=Kub macro.bi_3Dcube.0=Kubens centrum ? palette.info.bi_3Darete=3D kanter macro.bi_3Darete.0=F\u00F6rsta punkten ? macro.bi_3Darete.1=andra punkten ? macro.bi_3Darete.2=Tredje punkten ? macro.bi_3Darete.3=Fj\u00E4rde punkten ? palette.info.bi_3Dtetra=Liksidig tetrahedon macro.bi_3Dtetra.0=Tetrahedons centrum ? menu.newdoc=Ny menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=Aspekt av palette.aspect.label.point=punkter palette.aspect.label.line=linjer palette.aspect.label.segment=segment palette.aspect.label.circle=cirklar palette.aspect.label.angle=vinklar palette.aspect.label.area=polygoner palette.aspect.label.text=text palette.info.bi_3Ddode=Liksidig dodekahedron macro.bi_3Ddode.0=Dodekahedrons centrum ? # v2.7 : palette.aspect.label.pointshape=Form & namn p\u00E5 punkter : palette.aspect.label.locus=Ort menu.edit.deleteall=Radera allt # v2.7.1 : java.old.message=Beklagar, du kan inte starta CaRMetal programmet, d\u00E4rf\u00F6r att versionen p\u00E5 din java \u00E4r f\u00F6r gammal ! java.old.quit=Avsluta java.old.go=Ladda ned ny java version palette.info.boundedpoint=Placera en punkt i ett plan+eller p\u00E5 en polyhedron yta #v2.7.2 : user.foldername=CarMetal Anv\u00E4ndarprofil #v2.8 props.fixedray=Str\u00E5le : props.fixedsegment=L\u00E4ngd : props.fixedangle=Vinkel : props.expl=Kommentarlinje : props.aspecttab=L\u00E4ge props.numerictab=Numerisk props.conditionaltab=Villkor props.thick=Tjocklek : props.popup.special=Specialtecken props.popup.functions=F\u00F6rdefinierade funktioner props.popup.latex=LaTeX kommandon menu.language.pl=Polski #v2.8.1 props.fixedinwindow=L\u00E4nkat till f\u00F6nster #v2.8.5 palette.controls=Kontroller props.ctrlshowvalue=Visa v\u00E4rde props.ctrlsnap=Sn\u00E4pp till rutn\u00E4t props.ctrlshowticks=Visa rutn\u00E4t props.ctrltickspacing=Inkrement : palette.info.ctrl_edit=Redigera, flytta eller \u00E4ndra storlek p\u00E5 kontrollen palette.info.ctrl_chkbox=L\u00E4gg till kryssruta palette.info.ctrl_popup=L\u00E4gg till popup-meny palette.info.ctrl_slider=Lagg till skjutkontroll #v2.8.6 props.trackdmin=Antal steg : opendialog.preview=F\u00F6rhandsvisning : pngdialog.options=Exportalternativ : pngdialog.scale=Skala : pngdialog.originsize=Original storlek : pngdialog.scaledsize=Skalad storlek : #v2.8.7 canvas.3D.floor=Golv canvas.3D.system=Koordinatsystem canvas.3D.rightclic=Anv\u00E4nd h\u00F6gerklick-dra f\u00F6r att rotera koordinatsystemet #v2.8.8 palette.info.equationxy=Kurva definierad av f(x,y)=0 props.equationxy=Ekvation : props.equationxychooser=Precision : palette.function=Funktioner & ort #v2.8.9 menu.edit.deletealltracks=Rensa sp\u00E5r menu.edit.deactivatealltracks=Avaktivera sp\u00E5r props.tracks=Aktivera sp\u00E5r menu.edit.zoom=Zoom eller flytta #v2.9.0 menu.windows=F\u00F6nster #v2.9.1 contexthelp.seealso=Se \u00E4ven : #v2.9.2 menu.language.pt_BR=Brazilian menu.display.restrictmessage.dontdisplay=Visa inte detta meddelande mer #v2.9.6 props.magnetmessage=Klicka p\u00E5 de objekt som du vill l\u00E4gga till (eller ta bort fr\u00E5n) den magnetiska listan props.magnetobj=Magnetiska objekt props.magnetpix=Attraktion (20 px) : props.show=Visa #v2.9.7 palette.info.ctrl_txtfield=L\u00E4gg till numerisk inmatningsruta palette.info.ctrl_button=L\u00E4gg till knapp #v2.9.8.4 JSerror.title=Syntaxfel JSerror.line=linje JSerror.pointcoords=Syntaxfel i punktkoordinaterna JSerror.interactiveinput=Fel under val av objektet JSerror.notfound=Objekt ej funnet JSerror.notgoodtype=Om\u00F6jligt att anv\u00E4nda p\u00E5 denna objekttyp JScmd.inputmessage=Din fr\u00E5ga ? JScmd.promptmessage=Ditt meddelande... menu.js=Javascript menu.js.script=\u00D6ppna javascript fil... menu.js.command=\u00D6ppna skriptredigeraren JSeditor.title=Javascript redigerare #v3.0 JSeditor.save=Spara skript JSeditor.open=\u00D6ppna skript JSeditor.opendlogmsg=\u00D6ppna skript JSeditor.savedlogmsg=Spara skript JSeditor.format=Formattera skript JSeditor.restore=Avbryt sista k\u00F6rningen JSeditor.run=K\u00F6r skript JSeditor.help=H\u00E4mta syntax hj\u00E4lp JSEditor.comment=Kommentera/Avkommentera valet JSEditor.savequestion=Detta skript har \u00E4ndrats : vill du spara det ? menu.language.ar_TN=Arabic # v3.1.1 menu.js.define=Definiera skriptmapp... menu.js.dumb=K\u00F6r favoritskript utan redigerare JSeditor.opendfavfolder=V\u00E4lj skriptmapp JSeditor.saveas=Spara skript som...carmetal-4.3/src/eric/docs/JZirkelProperties_zh_TW.properties000066400000000000000000000431171417122252700245020ustar00rootroot00000000000000# Sample ResourceBundle properties file menu.file=\u6A94\u6848 menu.file.new=\u65B0\u6A94\u6848 menu.file.load=\u958B\u555F\u820A\u6A94... menu.file.save=\u5132\u5B58 menu.file.saveas=\u5132\u5B58\u70BA... menu.file.exportpng=\u532F\u51FA PNG \u6A94 menu.file.exporteps=\u532F\u51FA EPS \u6A94 menu.file.quit=\u96E2\u958B menu.edit=\u7DE8\u8F2F menu.edit.copy=\u8907\u88FD menu.edit.move=\u79FB\u52D5 menu.edit.rename=\u6539\u540D menu.edit.edit=\u7DE8\u8F2F\u5C6C\u6027 menu.edit.hide=\u96B1\u85CF menu.edit.delete=\u522A\u9664 menu.display=\u986F\u793A menu.display.hidden=(\u4E0D)\u986F\u793A\u5DF2\u96B1\u85CF\u7269\u4EF6 menu.display.grid=(\u4E0D)\u986F\u793A\u683C\u7DDA menu.display.finegrid=\u53EA\u986F\u793A\u5EA7\u6A19\u8EF8 menu.display.leftsnap=\u5438\u9644\u683C\u5B50\u9EDE menu.display.manage_macros=\u5DE5\u5177\u76EE\u9304 menu.display.history_panel=\u7269\u4EF6\u76EE\u9304 menu.display.help_panel=\u64CD\u4F5C\u8AAA\u660E menu.display.properties_panel= \u7269\u4EF6\u5C6C\u6027 menu.display.small=\u5C0F\u578B\u6309\u9215 menu.display.medium=\u4E2D\u578B\u6309\u9215 menu.display.large=\u5927\u578B\u6309\u9215 menu.display.restrictedpalette=\u986F\u793A\u7CBE\u7C21\u578B\u9762\u7248 menu.display.restrictedpaletteedit=\u7DE8\u8F2F\u7CBE\u7C21\u578B\u9762\u7248 menu.display.restrictmessage=
\u6B64\u529F\u80FD\u6703\u986F\u793A\u300C\u7CBE\u7C21\u578B\u9762\u7248\u300D\uFF0C\u4E5F\u5C31\u662F\u53EA\u986F\u793A\u6709\u7528\u5230\u7684\u5DE5\u5177\u3002

\u5B83\u53EA\u6703\u5F71\u97FF\u76EE\u524D\u7684\u6A94\u6848\uFF0C\u8DDF\u5176\u4ED6\u6A94\u6848\u7121\u95DC\u3002

\u7576\u4F60\u5B58\u6A94\u7684\u6642\u5019\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u9078\u64C7\u5132\u5B58\u300C\u7CBE\u7C21\u578B\u9762\u7248\u300D\uFF0C
\u9019\u6A23\u6703\u7522\u751F\u5169\u500B\u6A94\u6848\uFF1A\u4E00\u500B\u662F\u6B63\u5E38\u7684 .zir \u6A94\uFF0C
\u53E6\u4E00\u500B\u662F\u5177\u6709\u7CBE\u7C21\u578B\u9762\u7248\u7684 .r.zir \u6A94\u3002
menu.macros=\u5DE5\u5177 menu.special=\u9032\u968E menu.special.newmacro=\u65B0\u5DE5\u5177 menu.special.loadmacros=\u958B\u555F\u5DE5\u5177... menu.special.definejob=\u8A2D\u8A08\u65B0\u4F5C\u696D menu.special.loadjob=\u8F09\u5165\u4F5C\u696D... menu.special.jobcomment=\u8A2D\u5B9A\u4F5C\u696D\u5167\u6587... menu.special.testjob=\u6E2C\u8A66\u6B64\u4F5C\u696D menu.special.savejob=\u53E6\u5B58\u4F5C\u696D... menu.special.export=\u532F\u51FA\u7DB2\u9801\u6A94 menu.special.exporttemplate=\u7528\u6A21\u7248\u532F\u51FA\u7DB2\u9801\u6A94 menu.help=\u8AAA\u660E menu.help.about=\u95DC\u65BC CaRMetal... menu.help.info=\u64CD\u4F5C\u8AAA\u660E menu.help.url0=CaRMetal \u7DB2\u7AD9 menu.help.url1=CARzine \u7DB2\u7AD9 menu.help.url2=C.a.R. \u7DB2\u7AD9 filedialog.saveas=\u5B58\u6A94 filedialog.alsorestricted=\u5132\u5B58\u300C\u7CBE\u7C21\u578B\u9762\u7248\u300D filedialog.options=\u5B58\u6A94\u9078\u9805 filedialog.restrictedmessage=\u76EE\u524D\u7684\u6A94\u6848\u4F7F\u7528\u300C\u7CBE\u7C21\u578B\u9762\u7248\u300D\uFF0C
\u6240\u4EE5\u4E5F\u6703\u7528\u9019\u7A2E\u6A21\u5F0F\u5B58\u6A94\u3002 filedialog.filefilter=CaR \u6A94 (.zir) filedialog.compressedfilefilter=CaR \u58D3\u7E2E\u6A94(.zirz) filedialog.macrofilefilter=CaR \u5DE8\u96C6\u6A94(.mcr) filedialog.savemessage1=\u6A94\u6848\uFF1A\n filedialog.savemessage2=\n\u5DF2\u7D93\u5B58\u5728\u3002\u4F60\u8981\u8986\u84CB\u5B83\u55CE\uFF1F palette.file=\u6A94\u6848 palette.edit=\u7DE8\u8F2F palette.construction=\u4F5C\u5716 palette.aspect=\u8272\u5F69\u8207\u6A23\u5F0F palette.history=\u4F5C\u5716\u904E\u7A0B palette.sizes=\u5927\u5C0F\u5C3A\u5BF8 palette.sizes.point=\u9EDE palette.sizes.line=\u7DDA palette.sizes.arrow=\u7BAD\u982D palette.sizes.font=\u5B57\u9AD4 palette.prec=\u6578\u5B57\u7CBE\u78BA\u5EA6 palette.prec.lengths=\u9577\u5EA6 palette.prec.edit=\u8A08\u7B97\u5F0F palette.prec.angles=\u89D2\u5EA6 palette.colors=\u80CC\u666F\u8A2D\u5B9A palette.colors.saturated1=\u9BAE\u660E\u8272 palette.colors.desaturated1=\u6697\u6DE1\u8272 palette.colors.saturated2=\u9BAE\u660E\u8272 2 palette.colors.desaturated2=\u6697\u6DE1\u8272 2 palette.colors.constants=\u7DB2\u9801\u5B89\u5168\u8272 palette.image.fileerror=\u4F60\u5FC5\u9808\u5148\u5B58\u6A94\u624D\u80FD\u63D2\u5165\u5716\u7247\u3002

\u6CE8\u610F\uFF1A\u4F60\u63D2\u5165\u7684\u5716\u7247\u5FC5\u9808\u548C\u76EE\u524D\u7684\u6A94\u6848
\u5728\u540C\u4E00\u500B\u8CC7\u6599\u593E\u5167\u3002 palette.info.vector=\u5411\u91CF palette.info.image3=\u63D2\u5165\u5716\u7247\uFF08\u9700\u5148\u6307\u5B9A\u4E09\u9802\u9EDE\uFF09 palette.info.background=\u9078\u64C7/\u6E05\u9664\u80CC\u666F\u5716 palette.info.imcenter=\u80CC\u666F\u5716\u7F6E\u4E2D palette.info.imstretch=\u5EF6\u5C55\u80CC\u666F\u5716 palette.info.imtile=\u80CC\u666F\u5716\u4E26\u6392\u986F\u793A palette.info.copy=\u8907\u88FD\u76EE\u524D\u7684\u4F5C\u5716\u5230\u526A\u8CBC\u7C3F palette.info.exportpng=\u5C07\u76EE\u524D\u7684\u4F5C\u5716\u532F\u51FA\u6210 png \u6A94 palette.info.exporteps=\u5C07\u76EE\u524D\u7684\u4F5C\u5716\u532F\u51FA\u6210 eps \u6A94 palette.info.newmacro=\u81EA\u88FD\u65B0\u5DE5\u5177 palette.info.loadmacros=\u8F09\u5165\u5DE5\u5177\u6A94 palette.info.manage_macros=\u986F\u793A\u6216\u96B1\u85CF\u300C\u81EA\u88FD\u5DE5\u5177\u300D\u9762\u7248 palette.info.properties_panel=\u986F\u793A\u6216\u96B1\u85CF\u300C\u7269\u4EF6\u5C6C\u6027\u300D\u9762\u7248 palette.info.history_panel=\u986F\u793A\u6216\u96B1\u85CF\u300C\u7269\u4EF6\u76EE\u9304\u300D\u9762\u7248 palette.info.help_panel=\u986F\u793A\u6216\u96B1\u85CF\u300C\u64CD\u4F5C\u8AAA\u660E\u300D\u9762\u7248 macros.untitledmacro=\u65B0\u5DE5\u5177 macros.untitledfolder=\u65B0\u8CC7\u6599\u593E macros.emptynode=-- \u7A7A\u7684 -- macros.addfolder=\u65B0\u589E\u8CC7\u6599\u593E macros.deleteselected=\u5C07\u9078\u64C7\u7684\u5DE5\u5177\u522A\u9664 macros.renamemacro=\u5C07\u9078\u64C7\u7684\u5DE5\u5177\u6539\u540D macros.recordmacro=\u9304\u88FD\u65B0\u5DE5\u5177 macros.initials=\u8ACB\u6307\u5B9A\u521D\u59CB\u7269\u4EF6 macros.pleaseselect=\u8ACB\u9078\u64C7\uFF01 macros.finals=\u8ACB\u6307\u5B9A\u6700\u7D42\u7269\u4EF6 macros.cancel=\u8981\u53D6\u6D88\uFF1F macros.popup.run=\u57F7\u884C\u5DE5\u5177 macros.popup.rename=\u6539\u540D macros.popup.delete=\u522A\u9664 macros.popup.addtolibrary=\u65B0\u589E\u81F3\u5DE8\u96C6\u5EAB macros.popup.removefromlibrary=\u5F9E\u5DE8\u96C6\u5EAB\u79FB\u9664 macros.popup.publish=\u5F15\u5165\u6B64\u67B6\u69CB macros.popup.notpublish=\u4E0D\u5F15\u5165\u6B64\u67B6\u69CB macros.popup.saveas=\u53E6\u5B58\u5DE5\u5177\u6A94... macros.popup.properties=\u986F\u793A\u5C6C\u6027 macros.popup.duplicate=\u8907\u88FD macros.savedlog.buttonok=\u5132\u5B58\u5DE5\u5177\u6A94 macros.question.delete=\u60A8\u78BA\u5B9A\u8981\u522A\u9664\u9019\u4E9B\u5DE5\u5177\u55CE\uFF1F rene.zirkel.objects.PointObject=\u9EDE rene.zirkel.objects.PrimitiveCircleObject=\u5713 rene.zirkel.objects.PrimitiveLineObject=\u7DDA rene.zirkel.objects.ExpressionObject=\u904B\u7B97\u5F0F. rene.zirkel.objects.FixedAngleObject=\u56FA\u5B9A\u5927\u5C0F\u7684\u593E\u89D2. rene.zirkel.objects.SegmentObject=\u7DDA\u6BB5 . rene.zirkel.objects.RayObject=\u5C04\u7DDA rene.zirkel.objects.TwoPointLineObject=\u76F4\u7DDA rene.zirkel.objects.FunctionObject=\u51FD\u5F0F rene.zirkel.objects.AreaObject=\u5340\u57DF mi.pal.name=\u5DE8\u96C6\u89C0\u5BDF\u5668 mi.name=\u540D\u7A31 : mi.comment=\u8A3B\u89E3 : mi.properties=\u53C3\u6578\u7269\u4EF6\u7684\u5C6C\u6027 : mi.hideproperties=\u76EE\u6A19\u7269\u4EF6\u7684\u5C6C\u6027 : mi.hideduplicates=\u96B1\u85CF\u8907\u88FD\u7684\u7269\u4EF6 mi.apply=\u5957\u7528 mi.tab.type=\u985E\u578B mi.tab.name=\u540D\u7A31 mi.tab.prompt=\u63D0\u793A mi.tab.fix=\u56FA\u5B9A ? mi.tab.ask=\u8A62\u554F ? mi.error.initial=\u932F\u8AA4 : \u81F3\u5C11\u8981\u6709\u4E00\u500B\u53C3\u6578 \n \u4E0D\u88AB\u8A2D\u5B9A\u70BA\u88AB\u56FA\u5B9A \n\n \u5DE8\u96C6\u7121\u6CD5\u88AB\u8B8A\u66F4 props.help=\u4F60\u8981\u5728\u67D0\u500B\u7269\u4EF6\u4E0A\u6309\u6ED1\u9F20\u53F3\u9375\uFF0C\u5C6C\u6027\u9762\u677F\u624D\u6703\u6253\u958B\u3002

\u5982\u679C\u4F60\u5728\u505A\u4E00\u500B\u65B0\u7684\u7269\u4EF6\u6642\uFF0C\u5C6C\u6027\u9762\u677F\u662F\u6253\u958B\u7684\uFF0C\u90A3\u4F60\u5C31\u53EF\u4EE5\u76F4\u63A5\u4FEE\u6539\u8A72\u7269\u4EF6\u7684\u5C6C\u6027\u3002 props.name=\u540D\u7A31 : props.alias=\u5225\u540D : props.unit=\u55AE\u4F4D : props.fix=\u56FA\u5B9A : props.expl=\u8AAA\u660E\u6587\u5B57 : props.belongto=\u5C64\u6B21 : props.conditional=\u8A2D\u5B9A\u683C\u5F0F\u5316\u689D\u4EF6 : props.solid=\u5BE6\u7DDA : props.hidden=\u96B1\u85CF : props.normal=\u6B63\u5E38 : props.bold=\u7C97\u7DDA : props.thin=\u865B\u7DDA : props.black=\u9ED1\u8272 : props.green=\u7DA0\u8272 : props.blue=\u85CD\u8272 : props.brown=\u68D5\u8272 : props.cyan=\u9752\u8272 : props.red=\u7D05\u8272 : props.showasslider=\u986F\u793A\u6210\u6ED1\u52D5\u687F : props.error=\u60A8\u8A2D\u5B9A\u7684\u6578\u5B78\u5F0F\u6709\u9EDE\u554F\u984C\uFF0C
\u8ACB\u91CD\u65B0\u8A2D\u5B9A\u3002 props.cartesian=\u5EA7\u6A19\u51FD\u6578 props.parametric=\u53C3\u6578\u5F0F props.functiontype=\u985E\u578B : props.killarc=\u522A\u9664\u5713\u5F27 props.arc=\u5713\u5F27... props.release=\u812B\u96E2 props.bind=\u9644\u8457\u65BC... props.setaway=\u8A2D\u5B9A\u9060\u96E2\u65BC props.setclose=\u8A2D\u5B9A\u9760\u8FD1\u65BC # v1.3 : props.grid=\u7DB2\u683C\u905E\u589E\u91CF : props.inside=\u7269\u4EF6\u5167\u90E8 : props.pointsonly=\u53EA\u63CF\u9EDE : props.step=\u9593\u9694 : palette.grid=\u5EA7\u6A19\u8EF8 leftpanel.macros=\u5DE5\u5177\u9762\u677F leftpanel.properties=\u5C6C\u6027\u9762\u677F leftpanel.history=\u7269\u4EF6\u9762\u677F leftpanel.help=\u64CD\u4F5C\u8AAA\u660E selectpopup.whatobject=\u8981\u9078\u54EA\u4E00\u500B\uFF1F selectpopup.RightClick=\u7DE8\u8F2F selectpopup.MoverTool=\u79FB\u52D5 selectpopup.HiderTool=\u986F\u793A/\u96B1\u85CF selectpopup.DeleteTool=\u522A\u9664 selectpopup.RenamerTool=\u91CD\u547D\u540D selectpopup.EditTool=\u7DE8\u8F2F selectpopup.SetParameterTool=\u8ACB\u9078\u64C7\u521D\u59CB\u7269\u4EF6 : selectpopup.SetTargetsTool=\u8ACB\u9078\u64C7\u6700\u7D42\u7269\u4EF6 : palette.info.locus=\u9EDE\u6CBF\u8457\u7DDA\u79FB\u52D5\u7684\u8ECC\u8DE1 # v1.4 : menu.special.savezirset=\u5EFA\u7ACB\u7C21\u5831... filedialog.openfolder.title=\u7C21\u5831\u8CC7\u6599\u593E\u9078\u53D6\u4E4B\u5C0D\u8A71\u65B9\u584A filedialog.openfolder.approve=\u9078\u53D6\u7C21\u5831\u8CC7\u6599\u593E filedialog.openfolder.saveicons=\u4E26\u5132\u5B58\u5716\u793A slideshow.next=\u4E0B\u4E00\u5F35 slideshow.previous=\u524D\u4E00\u5F35 slideshow.download=\u4E0B\u8F09\u6A94\u6848 slideshow.signature=\u88FD\u4F5C\u6B64\u7C21\u5831\u7684\u5DE5\u5177 # v1.5 : menu.language=\u8A9E\u8A00 menu.language.de=Deutsch menu.language.en=English menu.language.fr=Fran\u00E7ais menu.language.es=Espa\u00F1ol menu.language.gl=Galego menu.language.zh_TW=\u6B63\u9AD4\u4E2D\u6587 menu.help.url3=\u7FFB\u8B6F CaRMetal menu.display.smartboard=Smartboard \u6A21\u5F0F # v1.6 : menu.language.no=Norsk palette.info.bi_syma=\u93E1\u5C04 palette.info.bi_symc=\u5C0D\u7A31 palette.info.bi_trans=\u5E73\u79FB palette.info.bi_med=\u4E2D\u5782\u7DDA palette.info.bi_biss=\u5206\u89D2\u7DDA palette.info.bi_circ=\u904E\u4E09\u9EDE\u7684\u5713 palette.info.bi_arc=\u904E\u4E09\u9EDE\u7684\u5713\u5F27 palette.info.bi_t_align=\u5171\u7DDA\u7684\u9EDE ? palette.info.bi_t_para=\u5E73\u884C\u7DDA ? palette.info.bi_t_perp=\u5782\u7DDA ? palette.info.bi_t_equi=\u8207\u5169\u9EDE\u7684\u8DDD\u96E2\u7686\u76F8\u7B49 ? palette.info.bi_t_app=\u518D\u7DDA\u4E0A ? palette.info.bi_t_conf=\u76F8\u540C\u4F4D\u7F6E\u7684\u9EDE ? macro.bi_syma.0=\u93E1\u5C04\u7DDA ? macro.bi_syma.1=\u93E1\u5C04\u7684\u9EDE ? macro.bi_symc.0=\u5C0D\u7A31\u4E2D\u5FC3 ? macro.bi_symc.1=\u93E1\u5C04\u7684\u9EDE ? macro.bi_trans.0=\u5411\u91CF\u7684\u59CB\u9EDE ? macro.bi_trans.1=\u5411\u91CF\u7684\u7D42\u9EDE ? macro.bi_trans.2=\u8981\u88AB\u5E73\u79FB\u7684\u9EDE ? macro.bi_med.0=\u7DDA\u6BB5\u7684\u7B2C1\u500B\u7AEF\u9EDE ? macro.bi_med.1=\u7DDA\u6BB5\u7684\u7B2C2\u500B\u7AEF\u9EDE ? macro.bi_biss.0=\u7B2C\u4E00\u500B\u9EDE ? macro.bi_biss.1=\u593E\u89D2\u9802\u9EDE ? macro.bi_biss.2=\u6700\u5F8C\u4E00\u500B\u9EDE ? macro.bi_circ.0=\u7B2C\u4E00\u500B\u9EDE ? macro.bi_circ.1=\u7B2C\u4E8C\u500B\u9EDE ? macro.bi_circ.2=\u7B2C\u4E09\u500B\u9EDE ? macro.bi_t_para.0=\u7B2C\u4E00\u689D\u7DDA ? macro.bi_t_para.1=\u7B2C\u4E8C\u689D\u7DDA ? macro.bi_t_equi.0=\u6B64\u9EDE\u662F\u5426\u7B49\u8DDD ... macro.bi_t_equi.1=\u5230\u9019\u4E00\u500B\u9EDE ... macro.bi_t_equi.2=\u4E14\u5230\u9019\u4E00\u500B\u9EDE ? macro.bi_t_app.0=\u54EA\u4E00\u500B\u9EDE ? macro.bi_t_app.1=\u4F4D\u5728\u54EA\u4E00\u689D\u76F4\u7DDA\u6216\u7DDA\u6BB5 ? macro.bi_t_conf.0=\u54EA\u4E00\u500B\u9EDE ? macro.bi_t_conf.1=\u5728\u54EA\u4E00\u500B\u9EDE\u4E4B\u4E0A ? macro.bi_t_align.text0=\u9EDE\u5F7C\u6B64\u5171\u7DDA macro.bi_t_align.text1=\u9EDE\u5F7C\u6B64\u4E0D\u5171\u7DDA macro.bi_t_para.text0=\u7269\u4EF6\u5F7C\u6B64\u4E92\u76F8\u5E73\u884C macro.bi_t_para.text1=\u7269\u4EF6\u5F7C\u6B64\u4E26\u4E0D\u4E92\u76F8\u5E73\u884C macro.bi_t_perp.text0=\u7269\u4EF6\u5F7C\u6B64\u4E92\u76F8\u5782\u76F4 macro.bi_t_perp.text1=\u7269\u4EF6\u5F7C\u6B64\u4E26\u4E0D\u4E92\u76F8\u5782\u76F4 macro.bi_t_equi.text0=\u8DDD\u96E2\u76F8\u7B49 macro.bi_t_equi.text1=\u8DDD\u96E2\u4E26\u4E0D\u76F8\u7B49 macro.bi_t_app.text0=\u9EDE\u4F4D\u5728\u6B64\u7269\u4EF6\u4E0A macro.bi_t_app.text1=\u4E0D\u53EF\u5C07\u9EDE\u653E\u5728\u6B64\u7269\u4EF6\u4E0A macro.bi_t_conf.text0=\u9019\u5169\u500B\u9EDE\u7684\u4F4D\u7F6E\u76F8\u540C macro.bi_t_conf.text1=\u9019\u5169\u500B\u9EDE\u7684\u4F4D\u7F6E\u4E0D\u76F8\u540C palette.test=\u6E2C\u8A66 # v1.7 : filedialog.openfolder.appletsize=Applet \u5C3A\u5BF8 : filedialog.openfolder.actualsize=\u5BE6\u969B\u5C3A\u5BF8 filedialog.openfolder.other=\u5176\u4ED6... filedialog.openfolder.selected=\u5DF2\u9078\u53D6\u7684\u8CC7\u6599\u593E : filedialog.openfolder.cancel=\u53D6\u6D88 menu.file.exportsvg=\u8F38\u51FA\u6210 SVG \u683C\u5F0F menu.language.sl=Slovenski menu.language.nl=Nederlands menu.language.pt=Portugu\u00EAs props.vars=\u8B8A\u6578 : menu.objects.points=\u9EDE menu.objects.lines=\u7DDA menu.objects.segments=\u7DDA\u6BB5 menu.objects.circles=\u5713\u6216\u5713\u9310\u66F2\u7DDA menu.objects.angles=\u593E\u89D2 menu.objects.tracks=\u6C42\u8ECC\u8DE1\u8207\u8ECC\u8DE1 menu.objects.functions=\u51FD\u5F0F\u6216\u7B97\u8853\u904B\u7B97\u5F0F palette.info.function_u=\u986F\u793A\u5B9A\u7FA9\u7684\u51FD\u5F0F palette.info.function=\u986F\u793A\u51FD\u5F0F\u6216\u53C3\u6578\u5316\u66F2\u7DDA props.superhidden=\u5B8C\u5168\u96B1\u85CF : props.showvalue=\u986F\u793A\u503C : props.showname=\u986F\u793A\u540D\u7A31 : props.background=\u80CC\u666F : macro.bi_expression.0=\u9328\u9EDE ? # v1.9a : menu.help.licence=\u7248\u6B0A... licence.txt=

This program is \u81EA\u7531\u8EDF\u9AD4\uFF0C\u4F7F\u7528 GNU-GPL \u6388\u6B0A\u65B9\u5F0F, which means you can redistribute it and/or modify it under the terms of the licence published by the Free Software Foundation;
See :

# v2.0 : menu.special.theme=\u4F48\u666F\u4E3B\u984C menu.special.theme.gray=\u78E8\u4EAE\u7684\u91D1\u5C6C\u5916\u89C0 menu.special.theme.brushed=\u5237\u4EAE\u7684\u91D1\u5C6C\u5916\u89C0 menu.special.options=\u559C\u597D\u8A2D\u5B9A... menu.special.options.sizes=\u5C3A\u5BF8 menu.special.options.sizes.minpointsize=\u9EDE\u7684\u5927\u5C0F menu.special.options.sizes.minlinesize=\u7DDA\u5BEC menu.special.options.sizes.arrowsize=\u7BAD\u982D\u5927\u5C0F menu.special.options.sizes.minfontsize=\u5B57\u578B\u5927\u5C0F menu.special.options.sizes.digits.lengths=\u9577\u5EA6\u7CBE\u78BA\u5EA6 menu.special.options.sizes.digits.edit=\u7B97\u8853\u904B\u7B97\u5F0F\u7CBE\u78BA\u5EA6 menu.special.options.sizes.digits.angles=\u89D2\u5EA6\u7CBE\u78BA\u5EA6 menu.special.options.colors=\u984F\u8272 menu.special.options.others=\u5176\u4ED6 menu.special.options.others.undock=\u5141\u8A31\u81EA\u7531\u653E\u7F6E\u5DE5\u5177\u7BB1\u6216\u8272\u76E4 # v2.1 : menu.file.close=\u95DC\u9589\u8996\u7A97 # v2.3 : alert.toomuchwins=\u958B\u555F\u592A\u591A\u8996\u7A97 :
\u8ACB\u95DC\u9589\u90E8\u4EFD\u8996\u7A97\u5F8C\u518D\u958B\u555F
\u65B0\u8996\u7A97 # v2.4 : menu.file.new3D=\u65B0\u958B\u67093D\u67B6\u69CB\u7684\u8996\u7A97 palette.3D=3D palette.info.bi_3Dcoords=3D \u5EA7\u6A19 macro.bi_3Dcoords.0=\u9328\u9EDE ? palette.info.bi_3Dcube=\u6B63\u7ACB\u65B9\u9AD4 macro.bi_3Dcube.0=\u6B63\u7ACB\u65B9\u9AD4\u7684\u4E2D\u5FC3 ? palette.info.bi_3Darete=3D \u908A macro.bi_3Darete.0=\u7B2C1\u500B\u9EDE ? macro.bi_3Darete.1=\u7B2C2\u500B\u9EDE ? macro.bi_3Darete.2=\u7B2C3\u500B\u9EDE ? macro.bi_3Darete.3=\u7B2C4\u500B\u9EDE ? palette.info.bi_3Dtetra=\u6B63\u56DB\u9762\u9AD4 macro.bi_3Dtetra.0=\u6B63\u56DB\u9762\u9AD4\u7684\u4E2D\u5FC3 ? menu.newdoc=\u65B0\u6587\u4EF6 menu.language.it=Italiano # v2.5.5 : palette.aspect.label.text_title=\u4F4D\u7F6E palette.aspect.label.point=\u9EDE palette.aspect.label.line=\u7DDA palette.aspect.label.segment=\u7DDA\u6BB5 palette.aspect.label.circle=\u5713 palette.aspect.label.angle=\u593E\u89D2 palette.aspect.label.area=\u591A\u908A\u5F62 palette.aspect.label.text=\u6587\u5B57 palette.info.bi_3Ddode=\u6B63\u5341\u4E8C\u9762\u9AD4 macro.bi_3Ddode.0=\u6B63\u5341\u4E8C\u9762\u9AD4\u4E2D\u5FC3 ? # v2.7 : palette.aspect.label.pointshape=\u9EDE\u7684\u5916\u89C0\u8207\u540D\u7A31 : palette.aspect.label.locus=\u8ECC\u8DE1 menu.edit.deleteall=\u5168\u90E8\u522A\u9664 # v2.7.1 : java.old.message=\u62B1\u6B49, \u7121\u6CD5\u555F\u52D5 CaRMetal , \u539F\u56E0\u70BA\u4F60\u7684 java \u57F7\u884C\u74B0\u5883\u7248\u672C\u592A\u820A ! java.old.quit=\u505C\u6B62 java.old.go=\u4E0B\u8F09\u65B0\u7684 java \u7248\u672C palette.info.boundedpoint=\u5C07\u9EDE\u653E\u5728\u5E73\u9762\u6216\u591A\u9762\u9AD4\u7684\u9762\u4E0Acarmetal-4.3/src/eric/docs/applet.html000066400000000000000000000031411417122252700177660ustar00rootroot00000000000000 Applet CaRMetal

@workbook@

carmetal-4.3/src/eric/docs/applet_ext.html000066400000000000000000000031301417122252700206440ustar00rootroot00000000000000 Applet CaRMetal

Classeur CaRMetal

carmetal-4.3/src/eric/docs/index.html000066400000000000000000000106141417122252700176130ustar00rootroot00000000000000 CaRMetal slideshow

Lien 1

Figure n° Navigation
télécharger
Activité réalisée avec CaRMetal
carmetal-4.3/src/eric/jobs/000077500000000000000000000000001417122252700156215ustar00rootroot00000000000000carmetal-4.3/src/eric/jobs/AlphaContainer.java000066400000000000000000000025321417122252700213560ustar00rootroot00000000000000package eric.jobs; import java.awt.BorderLayout; import java.awt.Graphics; import javax.swing.JComponent; /** * A wrapper Container for holding components that use a background Color * containing an alpha value with some transparency. * * A Component that uses a transparent background should really have its * opaque property set to false so that the area it occupies is first painted * by its opaque ancestor (to make sure no painting artifacts exist). However, * if the property is set to false, then most Swing components will not paint * the background at all, so you lose the transparent background Color. * * This components attempts to get around this problem by doing the * background painting on behalf of its contained Component, using the * background Color of the Component. */ public class AlphaContainer extends JComponent { private JComponent component; public AlphaContainer(JComponent component) { this.component = component; setLayout( new BorderLayout() ); setOpaque( false ); component.setOpaque( false ); add( component ); } /** * Paint the background using the background Color of the * contained component */ @Override public void paintComponent(Graphics g) { g.setColor( component.getBackground() ); g.fillRect(0, 0, getWidth(), getHeight()); super.paintComponent(g); } }carmetal-4.3/src/eric/jobs/Base64Coder.java000066400000000000000000000217731417122252700204770ustar00rootroot00000000000000// Copyright 2003-2010 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland // www.source-code.biz, www.inventec.ch/chdh // // This module is multi-licensed and may be used under the terms // of any of the following licenses: // // EPL, Eclipse Public License, http://www.eclipse.org/legal // LGPL, GNU Lesser General Public License, http://www.gnu.org/licenses/lgpl.html // AL, Apache License, http://www.apache.org/licenses // BSD, BSD License, http://www.opensource.org/licenses/bsd-license.php // // Please contact the author if you need another license. // This module is provided "as is", without warranties of any kind. package eric.jobs; /** * A Base64 encoder/decoder. * *

* This class is used to encode and decode data in Base64 format as described in RFC 1521. * *

* Project home page: www.source-code.biz/base64coder/java
* Author: Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland
* Multi-licensed: EPL / LGPL / AL / BSD. */ public class Base64Coder { // The line separator string of the operating system. private static final String systemLineSeparator = System.getProperty("line.separator"); // Mapping table from 6-bit nibbles to Base64 characters. private static char[] map1 = new char[64]; static { int i=0; for (char c='A'; c<='Z'; c++) map1[i++] = c; for (char c='a'; c<='z'; c++) map1[i++] = c; for (char c='0'; c<='9'; c++) map1[i++] = c; map1[i++] = '+'; map1[i++] = '/'; } // Mapping table from Base64 characters to 6-bit nibbles. private static byte[] map2 = new byte[128]; static { for (int i=0; isun.misc.BASE64Encoder.encodeBuffer(byte[]). * @param in An array containing the data bytes to be encoded. * @return A String containing the Base64 encoded data, broken into lines. */ public static String encodeLines (byte[] in) { return encodeLines(in, 0, in.length, 76, systemLineSeparator); } /** * Encodes a byte array into Base 64 format and breaks the output into lines. * @param in An array containing the data bytes to be encoded. * @param iOff Offset of the first byte in in to be processed. * @param iLen Number of bytes to be processed in in, starting at iOff. * @param lineLen Line length for the output data. Should be a multiple of 4. * @param lineSeparator The line separator to be used to separate the output lines. * @return A String containing the Base64 encoded data, broken into lines. */ public static String encodeLines (byte[] in, int iOff, int iLen, int lineLen, String lineSeparator) { int blockLen = (lineLen*3) / 4; if (blockLen <= 0) throw new IllegalArgumentException(); int lines = (iLen+blockLen-1) / blockLen; int bufLen = ((iLen+2)/3)*4 + lines*lineSeparator.length(); StringBuilder buf = new StringBuilder(bufLen); int ip = 0; while (ip < iLen) { int l = Math.min(iLen-ip, blockLen); buf.append (encode(in, iOff+ip, l)); buf.append (lineSeparator); ip += l; } return buf.toString(); } /** * Encodes a byte array into Base64 format. * No blanks or line breaks are inserted in the output. * @param in An array containing the data bytes to be encoded. * @return A character array containing the Base64 encoded data. */ public static char[] encode (byte[] in) { return encode(in, 0, in.length); } /** * Encodes a byte array into Base64 format. * No blanks or line breaks are inserted in the output. * @param in An array containing the data bytes to be encoded. * @param iLen Number of bytes to process in in. * @return A character array containing the Base64 encoded data. */ public static char[] encode (byte[] in, int iLen) { return encode(in, 0, iLen); } /** * Encodes a byte array into Base64 format. * No blanks or line breaks are inserted in the output. * @param in An array containing the data bytes to be encoded. * @param iOff Offset of the first byte in in to be processed. * @param iLen Number of bytes to process in in, starting at iOff. * @return A character array containing the Base64 encoded data. */ public static char[] encode (byte[] in, int iOff, int iLen) { int oDataLen = (iLen*4+2)/3; // output length without padding int oLen = ((iLen+2)/3)*4; // output length including padding char[] out = new char[oLen]; int ip = iOff; int iEnd = iOff + iLen; int op = 0; while (ip < iEnd) { int i0 = in[ip++] & 0xff; int i1 = ip < iEnd ? in[ip++] & 0xff : 0; int i2 = ip < iEnd ? in[ip++] & 0xff : 0; int o0 = i0 >>> 2; int o1 = ((i0 & 3) << 4) | (i1 >>> 4); int o2 = ((i1 & 0xf) << 2) | (i2 >>> 6); int o3 = i2 & 0x3F; out[op++] = map1[o0]; out[op++] = map1[o1]; out[op] = op < oDataLen ? map1[o2] : '='; op++; out[op] = op < oDataLen ? map1[o3] : '='; op++; } return out; } /** * Decodes a string from Base64 format. * No blanks or line breaks are allowed within the Base64 encoded input data. * @param s A Base64 String to be decoded. * @return A String containing the decoded data. * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */ public static String decodeString (String s) { return new String(decode(s)); } /** * Decodes a byte array from Base64 format and ignores line separators, tabs and blanks. * CR, LF, Tab and Space characters are ignored in the input data. * This method is compatible with sun.misc.BASE64Decoder.decodeBuffer(String). * @param s A Base64 String to be decoded. * @return An array containing the decoded data bytes. * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */ public static byte[] decodeLines (String s) { char[] buf = new char[s.length()]; int p = 0; for (int ip = 0; ip < s.length(); ip++) { char c = s.charAt(ip); if (c != ' ' && c != '\r' && c != '\n' && c != '\t') buf[p++] = c; } return decode(buf, 0, p); } /** * Decodes a byte array from Base64 format. * No blanks or line breaks are allowed within the Base64 encoded input data. * @param s A Base64 String to be decoded. * @return An array containing the decoded data bytes. * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */ public static byte[] decode (String s) { return decode(s.toCharArray()); } /** * Decodes a byte array from Base64 format. * No blanks or line breaks are allowed within the Base64 encoded input data. * @param in A character array containing the Base64 encoded data. * @return An array containing the decoded data bytes. * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */ public static byte[] decode (char[] in) { return decode(in, 0, in.length); } /** * Decodes a byte array from Base64 format. * No blanks or line breaks are allowed within the Base64 encoded input data. * @param in A character array containing the Base64 encoded data. * @param iOff Offset of the first character in in to be processed. * @param iLen Number of characters to process in in, starting at iOff. * @return An array containing the decoded data bytes. * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */ public static byte[] decode (char[] in, int iOff, int iLen) { if (iLen%4 != 0) throw new IllegalArgumentException ("Length of Base64 encoded input string is not a multiple of 4."); while (iLen > 0 && in[iOff+iLen-1] == '=') iLen--; int oLen = (iLen*3) / 4; byte[] out = new byte[oLen]; int ip = iOff; int iEnd = iOff + iLen; int op = 0; while (ip < iEnd) { int i0 = in[ip++]; int i1 = in[ip++]; int i2 = ip < iEnd ? in[ip++] : 'A'; int i3 = ip < iEnd ? in[ip++] : 'A'; if (i0 > 127 || i1 > 127 || i2 > 127 || i3 > 127) throw new IllegalArgumentException ("Illegal character in Base64 encoded data."); int b0 = map2[i0]; int b1 = map2[i1]; int b2 = map2[i2]; int b3 = map2[i3]; if (b0 < 0 || b1 < 0 || b2 < 0 || b3 < 0) throw new IllegalArgumentException ("Illegal character in Base64 encoded data."); int o0 = ( b0 <<2) | (b1>>>4); int o1 = ((b1 & 0xf)<<4) | (b2>>>2); int o2 = ((b2 & 3)<<6) | b3; out[op++] = (byte)o0; if (op targets=new ArrayList(); private String backup=null; private String message_ok=Global.getParameter("job.message.ok", Global.Loc("job.message.ok")); private String message_failed=Global.getParameter("job.message.failed", Global.Loc("job.message.failed")); private boolean hidefinals=false; private boolean staticjob=false; private JobControlPanel controlPanel=null; private JobValidPanel validPanel=null; private boolean printExerciseArguments=true; private int ctrlX=3,ctrlY=3,ctrlW=374,ctrlH=162; private int validX,validY,validW=550,validH=36; public JobManager(ZirkelCanvas zc) { ZC=zc; } public void backup() { try { printExerciseArguments=false; // protect from recursively get Exercise arguments String file=FileTools.getCurrentFileSource(); printExerciseArguments=true; // Compress the byte representation of the file : byte[] b=StringCompressionUtils.Compress(file.getBytes()); // then save it into base64 format : backup=new String(Base64Coder.encode(b)); } catch (Exception ex) { System.out.println("backup error"); } } public void restore() { if (backup!=null) { try { String targets_backup=getTargetNames(); // decode the base64 representation of the compressed file : byte[] b=Base64Coder.decode(backup); // decompress the file : byte[] b1=StringCompressionUtils.Decompress(b); // restore the construction : FileTools.setCurrentFileSource(new String(b1)); setTargets(targets_backup); setTargetsColor(true); setHiddenToSuperHidden(); } catch (Exception ex) { } } } public ArrayList getTargets() { return targets; } public String getTargetNames() { String names=""; for (int i=0; i0)&&(printExerciseArguments)) { xml.startTagStart("Exercise"); xml.printArg("message_ok", message_ok); xml.printArg("message_failed", message_failed); xml.printArg("hidefinals", String.valueOf(hidefinals)); xml.printArg("staticjob", String.valueOf(staticjob)); xml.printArg("targets", getTargetNames()); xml.printArg("backup", backup); xml.finishTagNewLine(); } } /******************************* * GUI PART : *******************************/ public void init() { if (controlPanel!=null) { controlPanel.init(); } else if (validPanel!=null) { validPanel.init(ZC.getSize().width, ZC.getSize().height); } } public void addControlPanel() { removeControlPanel(); controlPanel=new JobControlPanel(this,ctrlX,ctrlY,ctrlW,ctrlH); ZC.add(controlPanel,0); ZC.repaint(); init(); } public void removeControlPanel() { if (controlPanel!=null) { ctrlX=controlPanel.getLocation().x; ctrlY=controlPanel.getLocation().y; ZC.remove(controlPanel); controlPanel=null; ZC.repaint(); } } public void addValidPanel() { removeValidPanel(); if (targets.size()>0) { validPanel=new JobValidPanel(this,0,0,validW,validH); ZC.add(validPanel,0); ZC.repaint(); init(); } } public void removeValidPanel() { if (validPanel!=null) { ZC.remove(validPanel); validPanel=null; ZC.repaint(); } } public void cancelControlDialog(){ hideControlDialog(false); } public void hideControlDialog(boolean createJob) { setTargetSelected(false); removeControlPanel(); pipe_tools.getContent().requestFocus(); if (createJob&&targets.size()>0) { backup(); addValidPanel(); setHiddenToSuperHidden(); } else { targets.clear(); backup=null; setSuperHiddenToHidden(); } setTargetsColor(true); PaletteManager.ClicOn("point"); } public void showControlDialog() { removeValidPanel(); restore(); setTargetsColor(false); setSuperHiddenToHidden(); addControlPanel(); setTargetsField(); setJobTool(); } public void setJobTool() { setTargetSelected(true); PaletteManager.deselectgeomgroup(); ZC.setTool(new DefineJobTool()); } public void setTargetsField() { if (controlPanel!=null) { controlPanel.setTargetslist(getTargetNames()); } } public void validate() { JobValidation v=new JobValidation(ZC); v.checkAllsteps(); } } carmetal-4.3/src/eric/jobs/JobMessage.java000066400000000000000000000025121417122252700205030ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.jobs; import eric.JZirkelCanvas; import java.awt.Dimension; import javax.swing.BoxLayout; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JOptionPane; import eric.JEricPanel; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class JobMessage { static private int D_WIDTH=300; static private int D_HEIGHT=70; public static void showMessage(String m) { showMessage(m, D_WIDTH, D_HEIGHT); } public static void showMessage(String m, int w, int h) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { JOptionPane.showMessageDialog(zc, getPanel(""+m+"", w, h)); } } private static JEricPanel getPanel(String m, int w, int h) { JEricPanel jp=new JEricPanel(); jp.setLayout(new BoxLayout(jp, BoxLayout.X_AXIS)); jp.setOpaque(false); JLabel label=new JLabel(m); jp.add(label); fixsize(jp, w, h); return jp; } private static void fixsize(JComponent jc, int w, int h) { Dimension d=new Dimension(w, h); jc.setSize(d); jc.setMaximumSize(d); jc.setMinimumSize(d); jc.setPreferredSize(d); } } carmetal-4.3/src/eric/jobs/JobValidPanel.java000066400000000000000000000053761417122252700211510ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.jobs; import eric.GUI.ZDialog.ZButton; import eric.GUI.ZDialog.ZDialog; import eric.GUI.ZDialog.ZLabel; import eric.GUI.ZDialog.ZTools; import java.awt.Component; import java.awt.Font; import java.awt.Graphics; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; import eric.JEricPanel; import rene.gui.Global; /** * * @author erichake */ public class JobValidPanel extends ZDialog { private JobManager MAN; private ZButton validBTN, restoreBTN; private ZLabel label; protected int BWIDTH=180; // Button width public JobValidPanel(JobManager man,int x,int y,int w,int h) { super("", x,y,w,h,false,false); MAN=man; setLayout(null); validBTN=new ZButton(Global.Loc("job.gui.valid")) { @Override public void action() { MAN.validate(); } }; restoreBTN=new ZButton(Global.Loc("job.gui.restore")) { @Override public void action() { MAN.restore(); } }; label=new ZLabel(Global.Loc("job.gui.exercise")); add(label); add(validBTN); add(restoreBTN); increaseFonts(1); fixComponents(); } public void increaseFonts(int size){ for (int i=0;i mobiles=new ArrayList(); private ArrayList mobilesCoords=new ArrayList(); private ArrayList targets, clones; public JobValidation(ZirkelCanvas zc) { ZC=zc; C=ZC.getConstruction(); initMobiles(); targets=ZC.job_getTargets(); } public void initMobiles() { mobiles.clear(); mobilesCoords.clear(); Enumeration e=C.elements(); while (e.hasMoreElements()) { final ConstructionObject c=(ConstructionObject) e.nextElement(); if (c instanceof PointObject) { PointObject pt=(PointObject) c; if (pt.moveable()&&pt.insidewindow()) { mobiles.add(pt); double[] tab={pt.getX(), pt.getY()}; mobilesCoords.add(tab); } } } } /** * Find every clones of targets object in the whole construction * @return true if everything is fine. return false in case of * error. */ public boolean initClones() { clones=new ArrayList(); for (int i=0; i"; if (!pipe_tools.Exercise_To_HTML(false, ZC.job_getMessageFailed())) { JobMessage.showMessage(message); } } public void constructionOk() { reset(); if (!pipe_tools.Exercise_To_HTML(true, ZC.job_getMessageOk())) { JobMessage.showMessage(ZC.job_getMessageOk()); } } public void constructionOkExceptAlignment() { reset(); String message=""+ZC.job_getMessageOk(); message+="
("+Global.Loc("job.gui.alignment")+")"; if (!pipe_tools.Exercise_To_HTML(true, ZC.job_getMessageOk()+" ("+Global.Loc("job.gui.alignment")+")")) { JobMessage.showMessage(message); } } public void justSee() { ZC.paint(ZC.getGraphics()); try { Thread.sleep(200); } catch (InterruptedException ex) { } } public void checkAllsteps() { if ((mobiles.size()>0)&&(!ZC.job_isStaticJob())) { // if it's a dynamic exercise : int failed=0; if (!initClones()) { dynamicConstructionFailed(); return; } int progress=0; Progress_Bar.create(Global.Loc("job.gui.progressmessage"), 0, MAX-1); for (int i=0; i0) { dynamicConstructionFailed(failed); return; } if (!checkHorizontalAligment()) { constructionOkExceptAlignment(); return; } constructionOk(); } else { // if it's a static exercise : if (!initClones()) { staticConstructionFailed(); return; } constructionOk(); } } } carmetal-4.3/src/eric/jobs/StringCompressionUtils.java000066400000000000000000000047511417122252700232040ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.jobs; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.zip.DataFormatException; import java.util.zip.Deflater; import java.util.zip.Inflater; /** * * @author erichake */ public class StringCompressionUtils { /** * Compress data. * @param bytesToCompress is the byte array to compress. * @return a compressed byte array. * @throws java.io.IOException */ public static byte[] Compress(byte[] bytesToCompress) throws IOException { // Compressor with highest level of compression. Deflater compressor=new Deflater(Deflater.BEST_COMPRESSION); compressor.setInput(bytesToCompress); // Give the compressor the data to compress. compressor.finish(); // Create an expandable byte array to hold the compressed data. // It is not necessary that the compressed data will be smaller than // the uncompressed data. ByteArrayOutputStream bos=new ByteArrayOutputStream(bytesToCompress.length); // Compress the data byte[] buf=new byte[bytesToCompress.length+100]; while (!compressor.finished()) { bos.write(buf, 0, compressor.deflate(buf)); } bos.close(); // Get the compressed data return bos.toByteArray(); } /** * Decompress data. * @param compressedBytes is the compressed byte array. * @return decompressed byte array. * @throws java.io.IOException * @throws java.util.zip.DataFormatException */ public static byte[] Decompress(byte[] compressedBytes) throws IOException, DataFormatException { // Initialize decompressor. Inflater decompressor=new Inflater(); decompressor.setInput(compressedBytes); // Give the decompressor the data to decompress. decompressor.finished(); // Create an expandable byte array to hold the decompressed data. // It is not necessary that the decompressed data will be larger than // the compressed data. ByteArrayOutputStream bos=new ByteArrayOutputStream(compressedBytes.length); // Decompress the data byte[] buf=new byte[compressedBytes.length+100]; while (!decompressor.finished()) { bos.write(buf, 0, decompressor.inflate(buf)); } bos.close(); // Get the decompressed data. return bos.toByteArray(); } } carmetal-4.3/src/eric/macros/000077500000000000000000000000001417122252700161505ustar00rootroot00000000000000carmetal-4.3/src/eric/macros/CTransferableTreePath.java000066400000000000000000000037211417122252700231660ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.macros; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; import javax.swing.tree.TreePath; /** * This represents a TreePath (a node in a JTree) that can be transferred * between a drag source and a drop target. */ class CTransferableTreePath implements Transferable { // The type of DnD object being dragged... public static final DataFlavor TREEPATH_FLAVOR = new DataFlavor( DataFlavor.javaJVMLocalObjectMimeType, "TreePath"); private final TreePath _path; private final DataFlavor[] _flavors = { TREEPATH_FLAVOR }; /** * Constructs a transferrable tree path object for the specified path. */ public CTransferableTreePath(final TreePath path) { _path = path; } // Transferable interface methods... public DataFlavor[] getTransferDataFlavors() { return _flavors; } public boolean isDataFlavorSupported(final DataFlavor flavor) { return java.util.Arrays.asList(_flavors).contains(flavor); } public synchronized Object getTransferData(final DataFlavor flavor) throws UnsupportedFlavorException { if (flavor.isMimeTypeEqual(TREEPATH_FLAVOR.getMimeType())) // DataFlavor.javaJVMLocalObjectMimeType)) return _path; else throw new UnsupportedFlavorException(flavor); } } carmetal-4.3/src/eric/macros/CTree.java000066400000000000000000000515221417122252700200220ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.macros; import java.awt.AlphaComposite; import java.awt.Color; import java.awt.GradientPaint; import java.awt.Graphics2D; import java.awt.Insets; import java.awt.Point; import java.awt.Rectangle; import java.awt.SystemColor; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; import java.awt.dnd.Autoscroll; import java.awt.dnd.DnDConstants; import java.awt.dnd.DragGestureEvent; import java.awt.dnd.DragGestureListener; import java.awt.dnd.DragSource; import java.awt.dnd.DragSourceDragEvent; import java.awt.dnd.DragSourceDropEvent; import java.awt.dnd.DragSourceEvent; import java.awt.dnd.DragSourceListener; import java.awt.dnd.DropTarget; import java.awt.dnd.DropTargetDragEvent; import java.awt.dnd.DropTargetDropEvent; import java.awt.dnd.DropTargetEvent; import java.awt.dnd.DropTargetListener; import java.awt.dnd.InvalidDnDOperationException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.geom.AffineTransform; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.IOException; import javax.swing.Icon; import javax.swing.JLabel; import javax.swing.JTree; import javax.swing.Timer; import javax.swing.event.TreeSelectionEvent; import javax.swing.event.TreeSelectionListener; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.MutableTreeNode; import javax.swing.tree.TreePath; public class CTree extends JTree implements DragSourceListener, DragGestureListener, Autoscroll, TreeSelectionListener, MouseListener { // Constants... /** * */ private static final long serialVersionUID = 1L; // Fields... private TreePath _pathSource; // The path being dragged private BufferedImage _imgGhost; // The 'drag image' private final Point _ptOffset = new Point(); // Where, in the drag image, // the mouse was clicked private boolean dropped = false; public MacrosList JML; public NodePopupMenu nodepopup; // Constructors... public CTree(final MacrosList jml) // Use the default JTree constructor so // that we get a sample TreeModel built // for us { JML = jml; putClientProperty("JTree.lineStyle", "none"); // this.addTreeSelectionListener(this); // this.getModel().addTreeModelListener(this); this.addMouseListener(this); // Make this JTree a drag source final DragSource dragSource = DragSource.getDefaultDragSource(); dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this); // Also, make this JTree a drag target final DropTarget dropTarget = new DropTarget(this, new CDropTargetListener()); dropTarget.setDefaultActions(DnDConstants.ACTION_COPY_OR_MOVE); nodepopup = new NodePopupMenu(this); } private DefaultMutableTreeNode cloneAll(final DefaultMutableTreeNode Ndfrom) { final DefaultMutableTreeNode Ndto = (DefaultMutableTreeNode) Ndfrom .clone(); if (!(Ndfrom.isLeaf())) { for (int i = 0; i < Ndfrom.getChildCount(); i++) { final DefaultMutableTreeNode mynode = cloneAll((DefaultMutableTreeNode) Ndfrom .getChildAt(i)); Ndto.add(mynode); } } return Ndto; } // Interface: DragGestureListener public void dragGestureRecognized(final DragGestureEvent e) { final Point ptDragOrigin = e.getDragOrigin(); final TreePath path = getPathForLocation(ptDragOrigin.x, ptDragOrigin.y); if (path == null) return; if (isRootPath(path)) return; // Ignore user trying to drag the root node // Work out the offset of the drag point from the TreePath bounding // rectangle origin final Rectangle raPath = getPathBounds(path); _ptOffset.setLocation(ptDragOrigin.x - raPath.x, ptDragOrigin.y - raPath.y); // Get the cell renderer (which is a JLabel) for the path being dragged final JLabel lbl = (JLabel) getCellRenderer() .getTreeCellRendererComponent(this, // tree path.getLastPathComponent(), // value false, // isSelected (dont want a colored background) isExpanded(path), // isExpanded getModel().isLeaf(path.getLastPathComponent()), // isLeaf 0, // row (not important for rendering) false // hasFocus (dont want a focus rectangle) ); lbl.setSize((int) raPath.getWidth(), (int) raPath.getHeight()); // <-- // The // layout // manager // would // normally // do // this // Get a buffered image of the selection for dragging a ghost image _imgGhost = new BufferedImage((int) raPath.getWidth(), (int) raPath .getHeight(), BufferedImage.TYPE_INT_ARGB_PRE); final Graphics2D g2 = _imgGhost.createGraphics(); // Ask the cell renderer to paint itself into the BufferedImage g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC, 0.5f)); // Make // the // image // ghostlike lbl.paint(g2); // Now paint a gradient UNDER the ghosted JLabel text (but not under the // icon if any) // Note: this will need tweaking if your icon is not positioned to the // left of the text final Icon icon = lbl.getIcon(); final int nStartOfText = (icon == null) ? 0 : icon.getIconWidth() + lbl.getIconTextGap(); g2.setComposite(AlphaComposite.getInstance(AlphaComposite.DST_OVER, 0.5f)); // Make the gradient ghostlike g2.setPaint(new GradientPaint(nStartOfText, 0, SystemColor.controlShadow, getWidth(), 0, new Color(255, 255, 255, 0))); g2.fillRect(nStartOfText, 0, getWidth(), _imgGhost.getHeight()); g2.dispose(); setSelectionPath(path); // Select this path in the tree // System.out.println("DRAGGING: "+path.getLastPathComponent()); // DefaultMutableTreeNode // mynode=(DefaultMutableTreeNode)path.getLastPathComponent(); // Transferable transferable = (Transferable) mynode.getUserObject(); // Wrap the path being transferred into a Transferable object final Transferable transferable = new CTransferableTreePath(path); // Remember the path being dragged (because if it is being moved, we // will have to delete it later) _pathSource = path; // We pass our drag image just in case it IS supported by the platform try { this.setEditable(false); // e.startDrag(new Cursor(Cursor.HAND_CURSOR),transferable,this); e.startDrag(null, _imgGhost, new Point(5, 5), transferable, this); } catch (final InvalidDnDOperationException dnde) { // JOptionPane.showMessageDialog(null, "coucou2"); } // e.startDrag(null, _imgGhost, new Point(5,5), transferable, this); } // Interface: DragSourceListener public void dragEnter(final DragSourceDragEvent e) { } public void dragOver(final DragSourceDragEvent e) { } public void dragExit(final DragSourceEvent e) { } public void dropActionChanged(final DragSourceDragEvent e) { } public void dragDropEnd(final DragSourceDropEvent e) { if (e.getDropSuccess()) { final int nAction = e.getDropAction(); if (nAction == DnDConstants.ACTION_MOVE) { // The dragged item // (_pathSource) has // been inserted at the // target selected by // the user. // Now it is time to delete it from its original location. // System.out.println("REMOVING: " + // _pathSource.getLastPathComponent()); if (dropped) { final DefaultTreeModel model = (DefaultTreeModel) getModel(); final MutableTreeNode node = (MutableTreeNode) _pathSource .getLastPathComponent(); MutableTreeNode parent = (MutableTreeNode) node.getParent(); model.removeNodeFromParent(node); while (parent.isLeaf()) { final MutableTreeNode grandparent = (MutableTreeNode) parent .getParent(); model.removeNodeFromParent(parent); parent = grandparent; } dropped = false; } _pathSource = null; } } } // DropTargetListener interface object... class CDropTargetListener implements DropTargetListener { // Fields... private TreePath _pathLast = null; private final Rectangle2D _raCueLine = new Rectangle2D.Float(); private Rectangle2D _raGhost = new Rectangle2D.Float(); private final Color _colorCueLine; private Point _ptLast = new Point(); private final Timer _timerHover; private int _nLeftRight = 0; // Cumulative left/right mouse movement // Constructor... public CDropTargetListener() { _colorCueLine = new Color(SystemColor.controlShadow.getRed(), SystemColor.controlShadow.getGreen(), SystemColor.controlShadow.getBlue(), 64); // Set up a hover timer, so that a node will be automatically // expanded or collapsed // if the user lingers on it for more than a short time _timerHover = new Timer(1000, new ActionListener() { public void actionPerformed(final ActionEvent e) { _nLeftRight = 0; // Reset left/right movement trend if (isRootPath(_pathLast)) return; // Do nothing if we are hovering over the root // node if (isExpanded(_pathLast)) collapsePath(_pathLast); else expandPath(_pathLast); } }); _timerHover.setRepeats(false); // Set timer to one-shot mode } // DropTargetListener interface public void dragEnter(final DropTargetDragEvent e) { if (!isDragAcceptable(e)) e.rejectDrag(); else e.acceptDrag(e.getDropAction()); } public void dragExit(final DropTargetEvent e) { if (!DragSource.isDragImageSupported()) { repaint(_raGhost.getBounds()); } } /** * This is where the ghost image is drawn */ public void dragOver(final DropTargetDragEvent e) { // Even if the mouse is not moving, this method is still invoked 10 // times per second final Point pt = e.getLocation(); if (pt.equals(_ptLast)) return; // Try to determine whether the user is flicking the cursor right or // left final int nDeltaLeftRight = pt.x - _ptLast.x; if ((_nLeftRight > 0 && nDeltaLeftRight < 0) || (_nLeftRight < 0 && nDeltaLeftRight > 0)) _nLeftRight = 0; _nLeftRight += nDeltaLeftRight; _ptLast = pt; final Graphics2D g2 = (Graphics2D) getGraphics(); // If a drag image is not supported by the platform, then draw my // own drag image if (!DragSource.isDragImageSupported()) { paintImmediately(_raGhost.getBounds()); // Rub out the last // ghost image and cue // line // And remember where we are about to draw the new ghost image _raGhost.setRect(pt.x - _ptOffset.x, pt.y - _ptOffset.y, _imgGhost.getWidth(), _imgGhost.getHeight()); g2.drawImage(_imgGhost, AffineTransform.getTranslateInstance( _raGhost.getX(), _raGhost.getY()), null); } else // Just rub out the last cue line paintImmediately(_raCueLine.getBounds()); final TreePath path = getClosestPathForLocation(pt.x, pt.y); if (!(path == _pathLast)) { _nLeftRight = 0; // We've moved up or down, so reset left/right // movement trend _pathLast = path; _timerHover.restart(); } // In any case draw (over the ghost image if necessary) a cue line // indicating where a drop will occur final Rectangle raPath = getPathBounds(path); _raCueLine.setRect(0, raPath.y + (int) raPath.getHeight(), getWidth(), 2); g2.setColor(_colorCueLine); g2.fill(_raCueLine); // Now superimpose the left/right movement indicator if necessary if (_nLeftRight > 20) { } else if (_nLeftRight < -20) { } else { } // And include the cue line in the area to be rubbed out next time _raGhost = _raGhost.createUnion(_raCueLine); /* * // Do this if you want to prohibit dropping onto the drag source * if (path.equals(_pathSource)) e.rejectDrag(); else * e.acceptDrag(e.getDropAction()); */ } public void dropActionChanged(final DropTargetDragEvent e) { if (!isDragAcceptable(e)) e.rejectDrag(); else e.acceptDrag(e.getDropAction()); } public void drop(final DropTargetDropEvent e) { _timerHover.stop(); // Prevent hover timer from doing an unwanted // expandPath or collapsePath if (!isDropAcceptable(e)) { e.rejectDrop(); return; } e.acceptDrop(e.getDropAction()); final Transferable transferable = e.getTransferable(); final DataFlavor[] flavors = transferable.getTransferDataFlavors(); for (final DataFlavor flavor : flavors) { if (flavor .isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType)) { try { final Point pt = e.getLocation(); final TreePath pathTarget = getClosestPathForLocation( pt.x, pt.y); final TreePath pathSource = (TreePath) transferable .getTransferData(flavor); // System.out.println("DROPPING: "+pathSource.getLastPathComponent()); // TreeModel model = getModel(); final DefaultTreeModel model = (DefaultTreeModel) getModel(); final TreePath pathNewChild = null; final DefaultMutableTreeNode nodeorg = (DefaultMutableTreeNode) pathSource .getLastPathComponent(); DefaultMutableTreeNode nodeto = (DefaultMutableTreeNode) pathTarget .getLastPathComponent(); // avoid a folder to be drag inside its own hierarchy dropped = true; if (!(nodeorg.isLeaf())) { DefaultMutableTreeNode parent = nodeto; while (parent != null) { if (parent.equals(nodeorg)) { dropped = false; JML.repaint(); return; } parent = (DefaultMutableTreeNode) parent .getParent(); } } if (dropped) { DefaultMutableTreeNode nodeparentto = (nodeto .isLeaf()) ? (DefaultMutableTreeNode) pathTarget .getParentPath().getLastPathComponent() : nodeto; final TreePath tp = new TreePath(nodeparentto .getPath()); if (!(isExpanded(tp))) { nodeto = nodeparentto; nodeparentto = (DefaultMutableTreeNode) nodeto .getParent(); } int h = 0; for (h = 0; h < nodeparentto.getChildCount(); h++) { if (nodeparentto.getChildAt(h).equals(nodeto)) break; } if (h == nodeparentto.getChildCount()) h = -1; model.insertNodeInto(cloneAll(nodeorg), nodeparentto, h + 1); } // model.insertNodeInto() // . // .. Add your code here to ask your TreeModel to copy // the node and act on the mouse gestures... // . // For example: // If pathTarget is an expanded BRANCH, // then insert source UNDER it (before the first child // if any) // If pathTarget is a collapsed BRANCH (or a LEAF), // then insert source AFTER it // Note: a leaf node is always marked as collapsed // You ask the model to do the copying... // ...and you supply the copyNode method in the model as // well of course. // if (_nShift == 0) // pathNewChild = model.copyNode(pathSource, pathTarget, // isExpanded(pathTarget)); // else if (_nShift > 0) // The mouse is being flicked // to the right (so move the node right) // pathNewChild = model.copyNodeRight(pathSource, // pathTarget); // else // The mouse is being flicked to the left (so // move the node left) // pathNewChild = model.copyNodeLeft(pathSource); if (pathNewChild != null) setSelectionPath(pathNewChild); // Mark this as the // selected path in // the tree break; // No need to check remaining flavors } catch (final UnsupportedFlavorException ufe) { // System.out.println(ufe); e.dropComplete(false); return; } catch (final IOException ioe) { // System.out.println(ioe); e.dropComplete(false); return; } } } e.dropComplete(true); } // Helpers... public boolean isDragAcceptable(final DropTargetDragEvent e) { // Only accept COPY or MOVE gestures (ie LINK is not supported) if ((e.getDropAction() & DnDConstants.ACTION_COPY_OR_MOVE) == 0) return false; // Only accept this particular flavor if (!e.isDataFlavorSupported(CTransferableTreePath.TREEPATH_FLAVOR)) return false; /* * // Do this if you want to prohibit dropping onto the drag * source... Point pt = e.getLocation(); TreePath path = * getClosestPathForLocation(pt.x, pt.y); if * (path.equals(_pathSource)) return false; */ /* * // Do this if you want to select the best flavor on offer... * DataFlavor[] flavors = e.getCurrentDataFlavors(); for (int i = 0; * i < flavors.length; i++ ) { DataFlavor flavor = flavors[i]; if * (flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType)) * return true; } */ return true; } public boolean isDropAcceptable(final DropTargetDropEvent e) { // Only accept COPY or MOVE gestures (ie LINK is not supported) if ((e.getDropAction() & DnDConstants.ACTION_COPY_OR_MOVE) == 0) return false; // Only accept this particular flavor if (!e.isDataFlavorSupported(CTransferableTreePath.TREEPATH_FLAVOR)) return false; /* * // Do this if you want to prohibit dropping onto the drag * source... Point pt = e.getLocation(); TreePath path = * getClosestPathForLocation(pt.x, pt.y); if * (path.equals(_pathSource)) return false; */ /* * // Do this if you want to select the best flavor on offer... * DataFlavor[] flavors = e.getCurrentDataFlavors(); for (int i = 0; * i < flavors.length; i++ ) { DataFlavor flavor = flavors[i]; if * (flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType)) * return true; } */ return true; } } // Autoscroll Interface... // The following code was borrowed from the book: // Java Swing // By Robert Eckstein, Marc Loy & Dave Wood // Paperback - 1221 pages 1 Ed edition (September 1998) // O'Reilly & Associates; ISBN: 156592455X // // The relevant chapter of which can be found at: // http://www.oreilly.com/catalog/jswing/chapter/dnd.beta.pdf private static final int AUTOSCROLL_MARGIN = 12; // Ok, weíve been told to scroll because the mouse cursor is in our // scroll zone. public void autoscroll(final Point pt) { // Figure out which row weíre on. int nRow = getRowForLocation(pt.x, pt.y); // If we are not on a row then ignore this autoscroll request if (nRow < 0) return; final Rectangle raOuter = getBounds(); // Now decide if the row is at the top of the screen or at the // bottom. We do this to make the previous row (or the next // row) visible as appropriate. If weíre at the absolute top or // bottom, just return the first or last row respectively. nRow = (pt.y + raOuter.y <= AUTOSCROLL_MARGIN) // Is row at top of // screen? ? (nRow <= 0 ? 0 : nRow - 1) // Yes, scroll up one row : (nRow < getRowCount() - 1 ? nRow + 1 : nRow); // No, scroll // down one row scrollRowToVisible(nRow); } // Calculate the insets for the *JTREE*, not the viewport // the tree is in. This makes it a bit messy. public Insets getAutoscrollInsets() { final Rectangle raOuter = getBounds(); final Rectangle raInner = getParent().getBounds(); return new Insets(raInner.y - raOuter.y + AUTOSCROLL_MARGIN, raInner.x - raOuter.x + AUTOSCROLL_MARGIN, raOuter.height - raInner.height - raInner.y + raOuter.y + AUTOSCROLL_MARGIN, raOuter.width - raInner.width - raInner.x + raOuter.x + AUTOSCROLL_MARGIN); } /* * // Use this method if you want to see the boundaries of the // autoscroll * active region. Toss it out, otherwise. public void * paintComponent(Graphics g) { super.paintComponent(g); Rectangle raOuter = * getBounds(); Rectangle raInner = getParent().getBounds(); * g.setColor(Color.red); g.drawRect(-raOuter.x + 12, -raOuter.y + 12, * raInner.width - 24, raInner.height - 24); } */ private boolean isRootPath(final TreePath path) { return isRootVisible() && getRowForPath(path) == 0; } // Ready to go : execute macro on click public void valueChanged(final TreeSelectionEvent e) { // JDefaultMutableTreeNode node = // (JDefaultMutableTreeNode)this.getLastSelectedPathComponent(); // if (node.isLeaf()) { // node.runZmacro(); // }; } // MouseListener interface public void mouseClicked(final MouseEvent e) { nodepopup.handleMouseClick(e); } public void mousePressed(final MouseEvent e) { nodepopup.actualiseproperties(); nodepopup.handlePopup(e); } public void mouseReleased(final MouseEvent e) { nodepopup.handlePopup(e); } public void mouseEntered(final MouseEvent e) { // ShowToolTip(e); } public void mouseExited(final MouseEvent e) { // HideToolTip(); } } carmetal-4.3/src/eric/macros/CreateMacroDialog.java000066400000000000000000000077001417122252700223240ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.BoxLayout; import javax.swing.JDialog; import javax.swing.JMenuItem; import eric.JEricPanel; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class CreateMacroDialog extends JDialog implements MouseListener, MouseMotionListener, TopDialog { private static CreateMacroDialog MD; private static int content_height=50, content_width=205; private static int locmargin=50; private CreateMacroPanel CMP; private MacrosList MI; private MouseEvent pressed; private Point location; public CreateMacroDialog(MacrosList mi) { MD=this; MI=mi; CreateMacroDialogContentPane c=new CreateMacroDialogContentPane(); setContentPane(c); c.addMouseListener(this); c.addMouseMotionListener(this); DialogTitleBar title=new DialogTitleBar(this, content_width); c.add(title); CMP=new CreateMacroPanel(this, MI, content_width, content_height); c.add(CMP); setUndecorated(true); setSize(content_width, content_height+DialogTitleBar.getTitleHeight()); if (!pipe_tools.isApplet()) { setAlwaysOnTop(true); } else { addWindowListener(new WindowAdapter() { public void windowDeactivated(WindowEvent e) { toFront(); } }); } setResizable(false); ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { this.setLocation(zc.getLocationOnScreen().x+locmargin, zc.getLocationOnScreen().y+locmargin); } pipe_tools.setMacroPanelKeyInputs(); setVisible(true); } public static int getContentWidth() { return content_width; } public static void quit() { if (MD!=null) { MD.exit(); } } public void exit() { setVisible(false); pipe_tools.removeMacroPanelKeyInputs(); dispose(); MD=null; } public class CreateMacroDialogContentPane extends JEricPanel { @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d=this.getSize(); g.drawImage(themes.getImage("MCreateDlogBackground.gif"), 0, 0, d.width, d.height, this); } public CreateMacroDialogContentPane() { super(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); } } public class myJMenuItem extends JMenuItem implements ActionListener { public void action() { } public myJMenuItem(String s) { super(s); addActionListener(this); setFont(themes.TabMenusFont); } public void actionPerformed(ActionEvent e) { action(); } } public void mouseClicked(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mousePressed(MouseEvent me) { pressed=me; } public void mouseDragged(MouseEvent me) { location=getLocation(location); int x=location.x-pressed.getX()+me.getX(); int y=location.y-pressed.getY()+me.getY(); setLocation(x, y); Toolkit.getDefaultToolkit().sync(); } public void mouseMoved(MouseEvent e) { } } carmetal-4.3/src/eric/macros/CreateMacroPanel.java000066400000000000000000000270661417122252700221730ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.SwingConstants; import javax.swing.SwingUtilities; import javax.swing.text.JTextComponent; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreePath; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.construction.Construction; import rene.zirkel.construction.ConstructionException; import rene.zirkel.macro.Macro; import rene.zirkel.objects.ConstructionObject; /** * * @author erichake */ /************************************************************************************** *** N'oublions pas que JMacrosList est un JPanel qui contient d'autres * JPanels La class Jcreatemacro contient les éléments UI qui gèrent * l'enregistrement des macros ***************************************************************************************/ public class CreateMacroPanel extends JEricPanel { private JButton nextbtn; private static int stepnum; private boolean visible=false; private static stepcomments steps; private static MacrosList ML; private static CreateMacroDialog CMD; private static CreateMacroPanel CMP; public CreateMacroPanel(CreateMacroDialog md, MacrosList ml, int w, int h) { CMP=this; ML=ml; CMD=md; final ZirkelFrame zf=JZirkelCanvas.getCurrentZF(); if (zf!=null) { this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS)); this.setAlignmentX(0F); setOpaque(false); setFocusable(false); stepnum=1; zf.settool(ZirkelFrame.NParameters); this.visible=true; PaletteManager.fixsize(this, w, h); steps=new stepcomments(); nextbtn=new JButton(themes.getIcon("Mnext.png")); nextbtn.setOpaque(false); nextbtn.setContentAreaFilled(false); nextbtn.setEnabled(true); nextbtn.setBorder(BorderFactory.createEmptyBorder()); nextbtn.setAlignmentY(0.5F); nextbtn.addMouseListener(new MouseAdapter() { @Override public void mousePressed(final MouseEvent e) { nextStep(); } }); this.add(margin(10)); this.add(steps); this.add(margin(10)); this.add(nextbtn); ML.validate(); ML.repaint(); } } static public void nextStep() { ZirkelFrame zf=JZirkelCanvas.getCurrentZF(); if (zf==null) { return; } // if parameters are selected : if (zf.ZC.getConstruction().Parameters.size()>0) { switch (stepnum) { case 1: if ((zf.ZC.isDP())&&(!zf.ZC.isEuclidian())) { Construction c=zf.ZC.getConstruction(); ConstructionObject hz=c.getHZ(); hz.setMainParameter(true); c.insertParameter(hz, 0); hz.setSpecialParameter(true); } steps.mycomment.setText("2/3 - "+Global.Loc("macros.finals")); steps.myparams.setText(""); zf.settool(ZirkelFrame.NTargets); break; case 2: steps.mycomment.setText("3/3 - "+Global.Loc("macros.name")); steps.myparams.setEditable(true); steps.myparams.setFocusable(true); steps.myparams.setHorizontalAlignment(SwingConstants.CENTER); steps.myparams.setText(Global.Loc("macros.untitledmacro")); steps.myparams.selectAll(); steps.myparams.requestFocus(); pipe_tools.removeMacroPanelKeyInputs(); break; case 3: valid(); break; } stepnum++; } else { zf.settool(ZirkelFrame.NParameters); setParametersComments(); } } static public void setParametersComments() { if (CMD!=null) { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { String p=""; Vector v=zc.getConstruction().getParameters(); for (int i=0; i0), true, s, false); } catch (final ConstructionException e) { } m.hideDuplicates(false); zc.storeMacro(m, false); final JDefaultMutableTreeNode node=new JDefaultMutableTreeNode(JZirkelCanvas.getCurrentZF(), m); final TreePath[] paths=ML.getMacrosTree().getSelectionPaths(); if (((paths)!=null)&&(paths.length>0)) { root=(JDefaultMutableTreeNode) paths[0].getLastPathComponent(); if (root.isLeaf()) { // if the first selected node is a leaf : final DefaultMutableTreeNode father=(DefaultMutableTreeNode) root.getParent(); final int i=father.getIndex(root)+1; ((DefaultTreeModel) ML.getMacrosTree().getModel()).insertNodeInto( node, father, i); } else { // if the first selected node is a folder : ((DefaultTreeModel) ML.getMacrosTree().getModel()).insertNodeInto( node, root, root.getChildCount()); } } else { // There is no selected node : ((DefaultTreeModel) ML.getMacrosTree().getModel()).insertNodeInto(node, ML.getTopNode(), ML.getTopNode().getChildCount()); } final TreePath tp=new TreePath(node.getPath()); node.ActualisePath(); return tp; } private class stepcomments extends JEricPanel { /** * */ private JLabel mycomment=new JLabel(); private JTextField myparams=new JTextField(); @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d=this.getSize(); g.drawImage(themes.getImage("Mcomments.png"), 0, 0, d.width, d.height, this); } public JLabel getComment() { return mycomment; } private stepcomments() { this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); this.setAlignmentY(0.5F); final ImageIcon backIcon=themes.getIcon("Mcomments.png"); PaletteManager.fixsize(this, backIcon.getIconWidth(), backIcon.getIconHeight()); this.setOpaque(false); mycomment.setText("1/3 - "+Global.Loc("macros.initials")); mycomment.setFont(new Font("Verdana", 0, 10)); PaletteManager.fixsize(mycomment, backIcon.getIconWidth(), backIcon.getIconHeight()/2); mycomment.setHorizontalAlignment(SwingConstants.CENTER); mycomment.setVerticalAlignment(SwingConstants.CENTER); mycomment.setAlignmentX(0.5f); mycomment.setAlignmentY(0.5f); this.add(mycomment); myparams.setText(Global.Loc("macros.pleaseselect")); myparams.setFont(new Font("Verdana", 0, 10)); myparams.setForeground(Color.blue); myparams.setOpaque(false); myparams.setBorder(null); myparams.setFocusable(false); PaletteManager.fixsize(myparams, backIcon.getIconWidth()-10, backIcon.getIconHeight()/2); myparams.setHorizontalAlignment(SwingConstants.CENTER); // myparams.setVerticalAlignment(SwingConstants.CENTER); myparams.setAlignmentX(0.5f); myparams.setAlignmentY(0.5f); myparams.addKeyListener(new KeyAdapter() { @Override public void keyPressed(final KeyEvent e) { if (e.getKeyCode()==KeyEvent.VK_ENTER) { valid(); } } }); this.add(myparams); } } } carmetal-4.3/src/eric/macros/DialogTitleBar.java000066400000000000000000000071671417122252700216540ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; import eric.GUI.palette.PaletteManager; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import javax.swing.BoxLayout; import javax.swing.JDialog; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; /** * * @author erichake */ /** * Title bar class */ public class DialogTitleBar extends JEricPanel { private static int title_height=17; private static int close_width=themes.getIcon("tab_close.png").getIconWidth(); private static int close_height=themes.getIcon("tab_close.png").getIconHeight(); private static int close_marginRight=3; private int title_width; private Image img=themes.getImage("PaletteTitleBarN.png"); private JLabel title=new JLabel(); private TopDialog DLOG; public void paintComponent(Graphics g) { if (DLOG instanceof CreateMacroDialog) { return; } Dimension d=getSize(); g.drawImage(img, 0, 0, d.width, d.height, this); } public DialogTitleBar(TopDialog d, int w) { DLOG=d; title_width=w; setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setAlignmentX(0.0f); setOpaque(false); setFocusable(false); PaletteManager.fixsize(this, title_width, title_height); title.setText(Global.Loc("macro.creationdlog.title")); title.setFont(new java.awt.Font(Global.GlobalFont, 0, 11)); title.setForeground(new Color(100, 100, 100)); title.setHorizontalAlignment(SwingConstants.LEFT); PaletteManager.fixsize(title, title_width-close_width-close_marginRight, title_height); title.setHorizontalAlignment(JLabel.CENTER); title.setVerticalAlignment(JLabel.CENTER); title.setAlignmentY(0.5f); add(title); add(new CreateMacroDialogCloseBtn()); addMouseListener((MouseListener) DLOG); addMouseMotionListener((MouseMotionListener) DLOG); } public static int getTitleHeight() { return title_height; } class CreateMacroDialogCloseBtn extends JEricPanel implements MouseListener { private boolean over=false; @Override public void paintComponent(Graphics g) { Dimension d=getSize(); if (over) { g.drawImage(themes.getImage("tab_close_over.png"), 0, 0, d.width, d.height, this); } else { g.drawImage(themes.getImage("tab_close.png"), 0, 0, d.width, d.height, this); } } public CreateMacroDialogCloseBtn() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setAlignmentY(0.5f); setOpaque(false); PaletteManager.fixsize(this, close_width, close_height); addMouseListener(this); } @Override public void mousePressed(MouseEvent e) { over=false; if (DLOG!=null) { DLOG.exit(); } } public void mouseEntered(MouseEvent e) { over=true; repaint(); } public void mouseExited(MouseEvent e) { over=false; repaint(); } public void mouseClicked(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } } } carmetal-4.3/src/eric/macros/DragDropList.java000066400000000000000000000067441417122252700213640ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; /** * * @author erichake */ import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.Transferable; import java.awt.dnd.DnDConstants; import java.awt.dnd.DragGestureEvent; import java.awt.dnd.DragGestureListener; import java.awt.dnd.DragGestureRecognizer; import java.awt.dnd.DragSource; import java.awt.dnd.DragSourceDragEvent; import java.awt.dnd.DragSourceDropEvent; import java.awt.dnd.DragSourceEvent; import java.awt.dnd.DragSourceListener; import javax.swing.DefaultListModel; import javax.swing.DropMode; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JScrollPane; import javax.swing.TransferHandler; public class DragDropList extends JList { DefaultListModel model; public DragDropList() { super(new DefaultListModel()); model = (DefaultListModel) getModel(); setDragEnabled(true); setDropMode(DropMode.INSERT); setTransferHandler(new MyListDropHandler(this)); new MyDragListener(this); model.addElement("a"); model.addElement("b"); model.addElement("c"); model.addElement(new JLabel("coucou")); } public static void main(String[] a){ JFrame f = new JFrame(); f.add(new JScrollPane(new DragDropList())); f.setSize(300,300); f.setVisible(true); } } class MyDragListener implements DragSourceListener, DragGestureListener { DragDropList list; DragSource ds = new DragSource(); public MyDragListener(DragDropList list) { this.list = list; DragGestureRecognizer dgr = ds.createDefaultDragGestureRecognizer(list, DnDConstants.ACTION_MOVE, this); } public void dragGestureRecognized(DragGestureEvent dge) { StringSelection transferable = new StringSelection(Integer.toString(list.getSelectedIndex())); ds.startDrag(dge, DragSource.DefaultCopyDrop, transferable, this); } public void dragEnter(DragSourceDragEvent dsde) { } public void dragExit(DragSourceEvent dse) { } public void dragOver(DragSourceDragEvent dsde) { } public void dragDropEnd(DragSourceDropEvent dsde) { if (dsde.getDropSuccess()) { System.out.println("Succeeded"); } else { System.out.println("Failed"); } } public void dropActionChanged(DragSourceDragEvent dsde) { } } class MyListDropHandler extends TransferHandler { DragDropList list; public MyListDropHandler(DragDropList list) { this.list = list; } public boolean canImport(TransferHandler.TransferSupport support) { if (!support.isDataFlavorSupported(DataFlavor.stringFlavor)) { return false; } JList.DropLocation dl = (JList.DropLocation) support.getDropLocation(); if (dl.getIndex() == -1) { return false; } else { return true; } } public boolean importData(TransferHandler.TransferSupport support) { if (!canImport(support)) { return false; } Transferable transferable = support.getTransferable(); String indexString; try { indexString = (String) transferable.getTransferData(DataFlavor.stringFlavor); } catch (Exception e) { return false; } int index = Integer.parseInt(indexString); JList.DropLocation dl = (JList.DropLocation) support.getDropLocation(); int dropTargetIndex = dl.getIndex(); System.out.println(dropTargetIndex + " : "); System.out.println("inserted"); return true; } } carmetal-4.3/src/eric/macros/JDefaultMutableTreeNode.java000066400000000000000000000055321417122252700234560ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.macros; import eric.GUI.palette.PaletteManager; import eric.GUI.pipe_tools; import javax.swing.JMenuItem; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.TreeNode; import rene.gui.MyMenuItem; import rene.zirkel.ZirkelFrame; import rene.zirkel.macro.Macro; public class JDefaultMutableTreeNode extends DefaultMutableTreeNode { /** * */ MyMenuItem PMmenuitem; JMenuItem MainMenuItem; ZirkelFrame ZF; String name = ""; Macro m; int macrotype;// 0: library macro 2 : file macro public JDefaultMutableTreeNode(final String s) { super(s); macrotype = MacroTools.FILE_MACRO; } public JDefaultMutableTreeNode(final ZirkelFrame zf, final Macro mcr) { super(); ZF = zf; macrotype = (mcr.isProtected()) ? MacroTools.LIBRARY_MACRO : MacroTools.FILE_MACRO; name = mcr.getName(); m = mcr; final String[] mytab = mcr.getName().split(("/")); MainMenuItem = new JMenuItem(mytab[mytab.length - 1]); MainMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(final java.awt.event.ActionEvent evt) { menuaction(); } }); MainMenuItem.setFont(new java.awt.Font("System", 0, 13)); PMmenuitem = new MyMenuItem(mytab[mytab.length - 1]); PMmenuitem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(final java.awt.event.ActionEvent evt) { menuaction(); } }); this.setUserObject(mytab[mytab.length - 1]); } public void menuaction() { PaletteManager.deselectgeomgroup(); pipe_tools.setMacroHelp(m); ZF.runMacro(m); } public void runZmacro() { ZF.runMacro(m); } public void setType(final int newtype) { macrotype=newtype; m.setProtected(macrotype==MacroTools.LIBRARY_MACRO); } public void ActualisePath() { if (this.isLeaf()) { final TreeNode[] mypath = this.getPath(); name = ""; for (int i = 1; i < mypath.length - 1; i++) { name += mypath[i].toString() + "/"; } name += mypath[mypath.length - 1].toString(); ZF.ZC.renameMacro(m, name); PMmenuitem.setLabel(mypath[mypath.length - 1].toString()); MainMenuItem.setText(mypath[mypath.length - 1].toString()); } } } carmetal-4.3/src/eric/macros/JMacrosFProperties.java000066400000000000000000000115271417122252700225420ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.macros; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.KeyEvent; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.KeyStroke; import javax.swing.ListSelectionModel; import javax.swing.ScrollPaneConstants; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableCellEditor; import javax.swing.table.TableCellRenderer; import rene.gui.Global; public class JMacrosFProperties extends JEricPanel { /** * */ private final JTable table; private final DefaultTableModel model; private final JMacrosInspector JMI; public JMacrosFProperties(final JMacrosInspector jmi) { super(new GridLayout(1, 0)); JMI = jmi; this.setFocusable(false); model = new DefaultTableModel() { /** * */ private static final long serialVersionUID = 1L; @Override public Class getColumnClass(final int columnIndex) { if ((columnIndex == 2) || (columnIndex == 3)) { return Integer.class; } else { return super.getColumnClass(columnIndex); } } }; table = new JTable(model) { /** * */ private static final long serialVersionUID = 1L; @Override public boolean isCellEditable(final int row, final int col) { return false; } @Override public boolean isCellSelected(final int row, final int col) { return false; } @Override public TableCellRenderer getCellRenderer(final int row, final int column) { final Object value = getValueAt(row, column); if (value != null) { return getDefaultRenderer(value.getClass()); } return getDefaultRenderer(String.class); } }; table.setCellSelectionEnabled(true); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.setShowGrid(true); table.setGridColor(Color.lightGray); table.setRowHeight(20); table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0, false), "none"); table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), "none"); model.addColumn(Global.Loc("mi.tab.type")); model.addColumn(Global.Loc("mi.tab.name")); model.addColumn("Construction index"); // Dibs : Construction index -> ExecuteMacro model.addColumn("Click index"); // Click index -> ExecuteMacroAsBuilt // model.addRow(new Object[]{new String(""),new String(""),new // String(""),new Boolean(false), new Boolean(false)}); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); table.getColumnModel().getColumn(0).setPreferredWidth(45); table.getColumnModel().getColumn(1).setPreferredWidth(45); table.getColumnModel().getColumn(2).setPreferredWidth(112); table.getColumnModel().getColumn(3).setPreferredWidth(80); final JScrollPane scrollPane = new JScrollPane(table); scrollPane .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); add(scrollPane); } public int getRowCount() { return model.getRowCount(); } public Object getValueAt(final int i, final int j) { return model.getValueAt(i, j); } public void stopCellEditing() { final TableCellEditor editor = table.getCellEditor(); if (editor != null) { editor.stopCellEditing(); } } public String getOType(final int row) { return (String) model.getValueAt(row, 0); } public String getOName(final int row) { return (String) model.getValueAt(row, 1); } public String getOFIndex(final int row) { return (String) model.getValueAt(row, 2); } public String getOFIndex2(final int row) { return (String) model.getValueAt(row, 3); } public void setOType(final String what, final int row) { model.setValueAt(new String(what), row, 0); } public void setOName(final String what, final int row) { model.setValueAt(new String(what), row, 1); } public void addRow(final String type, final String name, final int index, final int index2) { model.addRow(new Object[] { new String(type), new String(name), new String(String.valueOf(index)), new String(String.valueOf(index2)) }); } public void removeAllRows() { while (model.getRowCount() > 0) model.removeRow(0); } } carmetal-4.3/src/eric/macros/JMacrosInspector.java000066400000000000000000000545301417122252700222470ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.macros; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.util.Vector; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComponent; import javax.swing.JDialog; import javax.swing.JLabel; import javax.swing.JOptionPane; import eric.JEricPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.macro.Macro; import rene.zirkel.objects.ConstructionObject; /* This class represent the macro properties inspector */ public class JMacrosInspector extends JDialog implements MouseListener, MouseMotionListener, TopDialog { private static Macro M=null; private int PW=315; // Palette width private int PH=516; //395 private static JDefaultMutableTreeNode node; private IContent content; private MouseEvent pressed; private Point location; private static JMacrosInspector me; public JMacrosInspector(JDefaultMutableTreeNode mymacro) { setFocusableWindowState(true); setFocusable(false); this.setSize(PW, PH); setUndecorated(true); if (!pipe_tools.isApplet()) { setAlwaysOnTop(true); } else { addWindowListener(new WindowAdapter() { public void windowDeactivated(WindowEvent e) { toFront(); } }); } // content is a JPanel which represents the content of the palette content=new IContent(this); setContentPane(content); DialogTitleBar title=new DialogTitleBar(this, PW); content.add(title, 0); ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { Point p=zc.getLocationOnScreen(); setLocation(p.x+10, p.y+(zc.getSize().height-PH)/2); } setVisible(true); } public static boolean isDialogVisible() { return (me!=null); } public static void openInspector(JDefaultMutableTreeNode mymacro) { if (me==null) { me=new JMacrosInspector(mymacro); } changemacro(mymacro); } public static void changemacro(JDefaultMutableTreeNode mymacro) { if (me!=null) { me.setMacro(mymacro); } } // set location of the palette (near the right border of the macro panel) : public void setStandardLocation() { } public void clearPalette() { if (M!=null) { content.changemacro(); } node=null; M=null; content.clearfields(); } // method called each time the user ask properties or select another macro // in the tree public void setMacro(final JDefaultMutableTreeNode mynode) { node=mynode; M=node.m; content.fillfields(); } public void mouseClicked(MouseEvent e) { } public void mousePressed(MouseEvent me) { pressed=me; } public void mouseReleased(MouseEvent e) { } public void mouseEntered(MouseEvent e) { } public void mouseExited(MouseEvent e) { } public void mouseDragged(MouseEvent me) { location=getLocation(location); int x=location.x-pressed.getX()+me.getX(); int y=location.y-pressed.getY()+me.getY(); setLocation(x, y); Toolkit.getDefaultToolkit().sync(); } public void mouseMoved(MouseEvent e) { } public static void quit() { if (me!=null) { me.exit(); } } public void exit() { content.changemacro(); node=null; me=null; dispose(); } public void fixObject(int i, boolean b) { content.fixObject(i, b); } public void askObject(int i, boolean b) { content.askObject(i, b); } // this embedded class represents the content of the palette : public class IContent extends JEricPanel { /** * */ JMacrosInspector JMI; JLabel name; JTextArea comment; JMacrosProperties props; JMacrosFProperties propTs; JCheckBox hideDuplicates; private JEricPanel margin(final int w) { final JEricPanel mypan=new JEricPanel(); fixsize(mypan, w, 1); mypan.setOpaque(false); return mypan; } public IContent(final JMacrosInspector jmi) { JMI=jmi; setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); this.setFocusable(false); name=new JLabel(); comment=new JTextArea(); props=new JMacrosProperties(JMI); propTs=new JMacrosFProperties(JMI); hideDuplicates=new JCheckBox(Global.Loc("mi.hideduplicates")); newnameline(); this.add(new mySep(1)); newcommentline(); this.add(new mySep(1)); newproperties(); this.add(new mySep(1)); newTproperties(); this.add(new mySep(1)); newhideproperties(); this.add(new mySep(1)); newcontrolline(); fixsize(this, PW, PH); } // set sizes of a palette's JComponent : private void fixsize(final JComponent cp, final int w, final int h) { final Dimension d=new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } // add the "name" topic of the palette : public void newnameline() { final JEricPanel rub=new myRub(); final JEricPanel myline1=new ContentLine(25); fixsize(name, PW-10, 18); myline1.add(margin(5)); myline1.add(name); rub.add(myline1); this.add(rub); } // add the "comment" topic of the palette : public void newcommentline() { final JEricPanel rub=new myRub(); final JScrollPane jScroll=new JScrollPane(); final JEricPanel myline1=new ContentLine(22); final JLabel namelabel=new JLabel(Global.Loc("mi.comment")); fixsize(namelabel, PW-10, 14); myline1.add(margin(5)); myline1.add(namelabel); final JEricPanel myline2=new ContentLine(100); comment.setLineWrap(true); jScroll.setViewportView(comment); jScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); fixsize(jScroll, PW-10, 80); myline2.add(margin(5)); myline2.add(jScroll); rub.add(myline1); rub.add(myline2); this.add(rub); } // add the "target properties" topic of the palette : public void newhideproperties() { final JEricPanel rub=new myRub(); rub.setLayout(new javax.swing.BoxLayout(rub, javax.swing.BoxLayout.Y_AXIS)); //final JEricPanel myline1=new ContentLine(22); // Dibs : on a ajouté une parie pour les finaux //final JLabel namelabel=new JLabel(Global.Loc("mi.hideproperties")); //fixsize(namelabel, PW-10, 14); //myline1.add(margin(5)); //myline1.add(namelabel); final JEricPanel mylineC3=new ContentLine(27); hideDuplicates.setOpaque(false); mylineC3.add(margin(10)); mylineC3.add(hideDuplicates); //rub.add(myline1); rub.add(mylineC3); this.add(rub); } // add the apply button to the bottom of the palette : public void newcontrolline() { final JEricPanel rub=new myRub(); final JEricPanel myline=new ContentLine(25); final JButton applybtn=new JButton("Apply"); applybtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { changemacro(); // It's important to refresh the inspector because // parameters position may have change : fillfields(); } }); // applybtn.setBorder(BorderFactory.createRaisedBevelBorder()); // applybtn.setBorder(BorderFactory.createEmptyBorder()); fixsize(applybtn, 90, 18); applybtn.setFont(new Font("System", Font.BOLD, 11)); final JEricPanel sep=new JEricPanel(); sep.setOpaque(false); myline.add(sep); // JButton jb=new JButton("Aaaa"); // fixsize(jb,90,18); myline.add(applybtn); myline.add(margin(5)); rub.add(myline); this.add(rub); } // add the parameters properties to the palette : public void newproperties() { final JEricPanel rub=new myRub(); final JEricPanel myline1=new ContentLine(22); final JLabel namelabel=new JLabel(Global.Loc("mi.properties")); myline1.add(margin(5)); myline1.add(namelabel); fixsize(namelabel, PW-10, 14); final JEricPanel myline2=new ContentLine(130); fixsize(props, PW-10, 100); myline2.add(margin(5)); myline2.add(props); rub.add(myline1); rub.add(myline2); this.add(rub); } public void newTproperties() { final JEricPanel rub=new myRub(); final JEricPanel myline1=new ContentLine(22); final JLabel namelabel=new JLabel(Global.Loc("mi.hideproperties")); myline1.add(margin(5)); myline1.add(namelabel); fixsize(namelabel, PW-10, 14); final JEricPanel myline2=new ContentLine(120); fixsize(propTs, PW-10, 100); myline2.add(margin(5)); myline2.add(propTs); rub.add(myline1); rub.add(myline2); this.add(rub); } /************************************************* * this is the tricky method : it reads the inspector changes and then * store the new values in the macro m. A macro contains two types of * parameters : 1) normal parameters (the one you shows at the first * step of macro's creation ). They are inside the m.Params array for * ConstructionObjects and m.Prompts array for prompts 2) numerical * input parameters (it's possible to make macros with numerical inputs * ). Name of Objects are in the PromptFor array and prompts in the * PromptName array *************************************************/ public void changemacro() { ConstructionObject[] params; final Vector newparams=new Vector(); final Vector newprompts=new Vector(); final Vector newpromptFor=new Vector(); final Vector newpromptName=new Vector(); props.stopCellEditing(); if (M==null) { return; } if (isError()) { return; } M.setComment(comment.getText()); params=M.getParams(); // read "normal" parameters and store them in : // newparams and newprompts if "ask" is not checked (stays "normal") // newPromptFor and newPromptName if "ask" is not checked (becomes // "numerical input") for (int i=0; i. */ package eric.macros; import java.awt.Color; import java.awt.GridLayout; import java.awt.event.KeyEvent; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.KeyStroke; import javax.swing.ListSelectionModel; import javax.swing.ScrollPaneConstants; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableCellEditor; import javax.swing.table.TableCellRenderer; import rene.gui.Global; public class JMacrosProperties extends JEricPanel { /** * */ private final JTable table; private final DefaultTableModel model; private final JMacrosInspector JMI; public JMacrosProperties(final JMacrosInspector jmi) { super(new GridLayout(1, 0)); JMI = jmi; this.setFocusable(false); model = new DefaultTableModel() { /** * */ private static final long serialVersionUID = 1L; @Override public Class getColumnClass(final int columnIndex) { if ((columnIndex == 3) || (columnIndex == 4)) { return Boolean.class; } else { return super.getColumnClass(columnIndex); } } }; table = new JTable(model) { /** * */ private static final long serialVersionUID = 1L; @Override public boolean isCellEditable(final int row, final int col) { if (col == 0) return false; if ((col == 2) && (String.valueOf(getValueAt(row, 3)).equals("true"))) return false; return (getValueAt(row, col) != null); } @Override public boolean isCellSelected(final int row, final int col) { return false; } @Override public void setValueAt(final Object o, final int row, final int col) { getModel().setValueAt(o, row, col); if (col == 3) JMI.fixObject(row, String.valueOf( getModel().getValueAt(row, col)).equals("true")); if (col == 4) JMI.askObject(row, String.valueOf( getModel().getValueAt(row, col)).equals("true")); } @Override public TableCellRenderer getCellRenderer(final int row, final int column) { final Object value = getValueAt(row, column); if (value != null) { return getDefaultRenderer(value.getClass()); } return getDefaultRenderer(String.class); } }; table.setCellSelectionEnabled(true); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); table.setShowGrid(true); table.setGridColor(Color.lightGray); table.setRowHeight(20); table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0, false), "none"); table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put( KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), "none"); model.addColumn(Global.Loc("mi.tab.type")); model.addColumn(Global.Loc("mi.tab.name")); model.addColumn(Global.Loc("mi.tab.prompt")); model.addColumn(Global.Loc("mi.tab.fix")); model.addColumn(Global.Loc("mi.tab.ask")); // model.addRow(new Object[]{new String(""),new String(""),new // String(""),new Boolean(false), new Boolean(false)}); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); table.getColumnModel().getColumn(0).setPreferredWidth(45); table.getColumnModel().getColumn(1).setPreferredWidth(45); table.getColumnModel().getColumn(2).setPreferredWidth(125); table.getColumnModel().getColumn(3).setPreferredWidth(37); table.getColumnModel().getColumn(4).setPreferredWidth(35); final JScrollPane scrollPane = new JScrollPane(table); scrollPane .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); add(scrollPane); } public int getRowCount() { return model.getRowCount(); } public Object getValueAt(final int i, final int j) { return model.getValueAt(i, j); } public void stopCellEditing() { final TableCellEditor editor = table.getCellEditor(); if (editor != null) { editor.stopCellEditing(); } } public String getOType(final int row) { return (String) model.getValueAt(row, 0); } public String getOName(final int row) { return (String) model.getValueAt(row, 1); } public String getOPrompt(final int row) { return (String) model.getValueAt(row, 2); } public boolean getOFix(final int row) { return String.valueOf(model.getValueAt(row, 3)).equals("true"); } public boolean getOAsk(final int row) { if (model.getValueAt(row, 4) == null) return false; return String.valueOf(table.getModel().getValueAt(row, 4)).equals( "true"); } public void setOType(final String what, final int row) { model.setValueAt(new String(what), row, 0); } public void setOName(final String what, final int row) { model.setValueAt(new String(what), row, 1); } public void setOPrompt(final String what, final int row) { model.setValueAt(new String(what), row, 2); } public void setOAsk(final boolean what, final int row) { if (model.getValueAt(row, 4) != null) model.setValueAt(new Boolean(what), row, 4); } public void setOFix(final boolean what, final int row) { model.setValueAt(new Boolean(what), row, 3); } public void addRow(final String type, final String name, final String prompt, final boolean fix) { final String newprompt = (fix) ? "" : prompt; model.addRow(new Object[] { new String(type), new String(name), new String(newprompt), new Boolean(fix), null }); } public void addRow(final String type, final String name, final String prompt, final boolean fix, final boolean ask) { final String newprompt = (fix) ? "" : prompt; model.addRow(new Object[] { new String(type), new String(name), new String(newprompt), new Boolean(fix), new Boolean(ask) }); } public void removeAllRows() { while (model.getRowCount() > 0) model.removeRow(0); } } carmetal-4.3/src/eric/macros/MacroTools.java000066400000000000000000000665411417122252700211110ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; import eric.GUI.pipe_tools; import eric.GUI.themes; import eric.GUI.windowComponent; import eric.JZirkelCanvas; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Enumeration; import java.util.Vector; import rene.gui.Global; import rene.util.xml.XmlReader; import rene.util.xml.XmlTag; import rene.util.xml.XmlTagPI; import rene.util.xml.XmlTree; import rene.zirkel.ZirkelCanvas; import rene.zirkel.ZirkelFrame; import rene.zirkel.construction.ConstructionException; import rene.zirkel.construction.Count; import rene.zirkel.macro.Macro; import rene.zirkel.macro.MacroItem; import rene.zirkel.macro.MacroRunner; import rene.zirkel.objects.ConstructionObject; import rene.zirkel.objects.TextObject; /** * * @author erichake */ public class MacroTools { static public final int LIBRARY_MACRO=0; static public final int FILE_MACRO=2; static private Vector librarymacros=new Vector(); static public Vector builtinmacros=new Vector(); static public String MacrosLibraryFileName=""; static public String MacrosBackupLibraryFileName=""; public static void createLocalDirectory() { // Setting (if necessary) home directory name and home library macros // file name : final String mypath=Global.AppPath(); // Place the help files in the local directory : if ((Global.isNewVersion())||(!(new File(Global.getHomeDirectory()+"docs").exists()))) { try { Global.copyFiles(new File(mypath+"docs"), new File( Global.getHomeDirectory()+"docs")); } catch (final IOException ex) { System.out.println("bug : createLocalDirectory()"); } } // Place the javascript files in the local directory : if ((Global.isNewVersion())||(!(new File(Global.getHomeDirectory()+"scripts").exists()))) { try { Global.copyFiles(new File(mypath+"scripts"), new File( Global.getHomeDirectory()+"scripts")); } catch (final IOException ex) { System.out.println("bug : createLocalDirectory()"); } } String Filename="library.mcr"; if (new File(mypath+Global.name("language", "")+"library.mcr").exists()) { Filename=Global.name("language", "")+"library.mcr"; } else if (new File(Global.getHomeDirectory()+Global.name("language", "")+"library.mcr").exists()) { Filename=Global.name("language", "")+"library.mcr"; } MacrosLibraryFileName=Global.getHomeDirectory()+Filename; // is there a library in home folder ? if (new File(MacrosLibraryFileName).exists()) { // Is it a new version at this startup ? if (Global.isNewVersion()) { MacrosBackupLibraryFileName=Global.getHomeDirectory()+"library_backup.mcr"; Global.copyFile(MacrosLibraryFileName, MacrosBackupLibraryFileName); Global.copyFile(mypath+Filename, MacrosLibraryFileName); } } else { new File(Global.getHomeDirectory()).mkdirs(); Global.copyFile(mypath+Filename, MacrosLibraryFileName); } Global.makeWindowConfigFolderInvisible(); } public static Vector getBuiltinMacros() { return builtinmacros; } public static Vector getLibraryMacros() { return librarymacros; } public static void clearLibraryMacros() { librarymacros.removeAllElements(); } public static void addToLibraryMacros(MacroItem mi) { librarymacros.add(mi); } public static void updateLibraryMacros() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if ((!(zc==null))) { librarymacros.clear(); final Vector V=zc.getMacros(); for (int i=0; i mc; Macro m; TextObject t; ZirkelFrame ZF=JZirkelCanvas.getCurrentZF(); if (ZF==null) { return; } mc=builtinmacros; for (int i=0; i=Macros.size()) { m.setProtected(true); final MacroItem mi=new MacroItem(m, null); Macros.addElement(mi); } } catch (final ConstructionException ex) { Count.setAllAlternate(false); throw ex; } Count.setAllAlternate(false); } else { throw new ConstructionException("Construction not found"); } } } catch (final Exception e) { throw e; } } public static void LoadDefaultMacrosAtStartup() { // Loading builtin macros (for some icons in palette, like symetry) try { final InputStream o=MacroTools.class.getResourceAsStream("/builtin.mcr"); LoadMacros(o, builtinmacros); o.close(); } catch (final Exception e) { System.out.println("builtinmacros bug"); } if ((!themes.isApplet())&&(new File(MacrosLibraryFileName).exists())) { try { final InputStream o=new FileInputStream(MacrosLibraryFileName); LoadMacros(o, librarymacros); o.close(); if (!MacrosBackupLibraryFileName.equals("")) { final InputStream o2=new FileInputStream( MacrosBackupLibraryFileName); LoadMacros(o2, librarymacros); o2.close(); final File f=new File(MacrosBackupLibraryFileName); f.delete(); } return; } catch (final Exception e) { System.out.println("librarymacros bug"); } } try { final InputStream o=MacroTools.class.getResourceAsStream("/default.mcr"); LoadMacros(o, librarymacros); o.close(); return; } catch (final Exception e) { System.out.println("default macros bug"); } } public static void saveLibraryToDisk() { if (JZirkelCanvas.getCurrentZF()!=null) { ZirkelFrame ZF=new ZirkelFrame(pipe_tools.isApplet()); ZF.dosave(MacrosLibraryFileName, false, true, true, false, librarymacros); } } /* If user changes macro type in the tree (e.g. "add to library") from one figure, * library macros vector is changed, so we must transmit all changes to * others figures : */ public static void populateMacrosTypeChanges() { int max=JZirkelCanvas.getZCsSize(); for (int i=0; i. */ package eric.macros; import eric.GUI.themes; import eric.JGeneralMenuBar; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.DefaultCellEditor; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JMenu; import eric.JEricPanel; import javax.swing.JPopupMenu; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.JTree; import javax.swing.SwingUtilities; import javax.swing.event.TreeModelEvent; import javax.swing.event.TreeModelListener; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreeCellRenderer; import javax.swing.tree.TreeNode; import javax.swing.tree.TreePath; import javax.swing.tree.TreeSelectionModel; import rene.gui.Global; import rene.gui.MyMenu; import rene.zirkel.ZirkelFrame; import rene.zirkel.macro.Macro; import rene.zirkel.macro.MacroItem; // Toute ce qui touche à l'arbre de macros et à sa gestion : public class MacrosList extends JEricPanel { private final int CONTROLHEIGHT=25; private final ImageIcon JTreefoldclosed; private final ImageIcon JTreefoldopened; private final ImageIcon[] JTreeleaf; private CTree MacrosTree; private JDefaultMutableTreeNode MacroTreeTopNode=new JDefaultMutableTreeNode("Macros"); private ZirkelFrame ZF; private JScrollPane jscrolls; private JControls controls; // private Jcreatemacro createmacropanel; public MacrosList(ZirkelFrame zf) { ZF=zf; JTreefoldclosed=themes.getIcon("JTreefoldclosed.gif"); JTreefoldopened=themes.getIcon("JTreefoldopened.gif"); JTreeleaf=new ImageIcon[4]; JTreeleaf[0]=themes.getIcon("JTreeleaf_0.gif"); JTreeleaf[1]=themes.getIcon("JTreeleaf_1.gif"); JTreeleaf[2]=themes.getIcon("JTreeleaf_2.gif"); JTreeleaf[3]=themes.getIcon("JTreeleaf_3.gif"); this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS)); // uncomment this line to obtain gray conection lines between leaves : // UIManager.put("Tree.hash",new ColorUIResource(Color.lightGray)); MacroTreeTopNode=new JDefaultMutableTreeNode("Macros"); MacrosTree=new CTree(this) { /** * */ @Override public void paint(final Graphics g) { final ImageIcon backimage=themes.getIcon("macrospanelback.gif"); g.drawImage(backimage.getImage(), 0, 0, this.getSize().width, backimage.getIconHeight(), this); super.paint(g); } }; MacrosTree.setFocusable(false); MacrosTree.setModel(new MyTreeModel(MacroTreeTopNode)); MacrosTree.getSelectionModel().setSelectionMode( TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); final MyCellRenderer renderer=new MyCellRenderer(); MacrosTree.setCellRenderer(renderer); MacrosTree.setCellEditor(new MyDefaultCellEditor()); MacrosTree.setOpaque(false); MacrosTree.setFont(new Font(Global.GlobalFont, 0, 12)); MacrosTree.setForeground(new Color(70, 70, 70)); MacrosTree.setDragEnabled(false); MacrosTree.setEditable(false); jscrolls=new JScrollPane(MacrosTree); jscrolls.setAlignmentX(0F); jscrolls.setBorder(BorderFactory.createEmptyBorder()); this.add(jscrolls); controls=new JControls(this); this.add(controls); // createmacropanel=new Jcreatemacro(this); // this.add(createmacropanel); } public JDefaultMutableTreeNode getTopNode() { return MacroTreeTopNode; } public CTree getMacrosTree() { return MacrosTree; } // Utilise le Vector de macros pour initialiser l'arbre : public void initTreeFromZCMacros() { Vector mc; // JMacrosTools.setDefaultMacros(); MacroTreeTopNode.removeAllChildren(); // removeAll(); // MacroTreeTopNode=new JDefaultMutableTreeNode("Macros"); mc=ZF.ZC.getMacros(); for (int i=0; i0) { JPopupMenu.setDefaultLightWeightPopupEnabled(false); ParseMacroTree(pm, jm, MacroTreeTopNode, "root"); ZF.ZC.PM.removeAll(); JGeneralMenuBar.s_InitMacrosMenu(); final JMenu jmroot=(JMenu) jm.getItem(0); final MyMenu pmroot=(MyMenu) pm.getItem(0); while (pmroot.getItemCount()>0) { ZF.ZC.PM.add(pmroot.getItem(0)); JGeneralMenuBar.addMacrosMenu(jmroot.getItem(0)); // if (ZF.ZC.isLibraryMacrosVisible()) { // ZF.ZC.PM.add(pmroot.getItem(0)); // JGeneralMenuBar.addMacrosMenu(jmroot.getItem(0)); // } else { // pmroot.remove(0); // jmroot.remove(0); // // } } } else { ZF.ZC.PM.removeAll(); JGeneralMenuBar.s_InitMacrosMenu(); } MacroTools.updateLibraryMacros(); } // Procédure recursive appelée uniquement par ActualiseMacroPopupMenu. // Parcours de l'arbre de macros : private void ParseMacroTree(final MyMenu PMmenu, final JMenu JMmenu, final JDefaultMutableTreeNode node, final String path) { final String mypath=path; if (!(node.isLeaf())) { final MyMenu mymenu=new MyMenu((String) node.getUserObject()); final JMenu myjmenu=new JMenu((String) node.getUserObject()); myjmenu.setFont(new java.awt.Font("System", 0, 13)); for (int i=0; i1) { ((DefaultTreeModel) MacrosTree.getModel()).removeNodeFromParent(node); } } } } // Les noeuds de l'arbre sont considérés comme des JLabels // Cette classe se charge de leurs look : class MyCellRenderer extends JLabel implements TreeCellRenderer { /** * */ public MyCellRenderer() { setOpaque(false); setBackground(null); } public Component getTreeCellRendererComponent(final JTree tree, final Object value, final boolean sel, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus) { final String stringValue=tree.convertValueToText(value, sel, expanded, leaf, row, hasFocus); setText(stringValue); setEnabled(tree.isEnabled()); setFont(tree.getFont()); setForeground(Color.black); setOpaque(sel); // Couleur de sélection : setBackground(Color.lightGray); final JDefaultMutableTreeNode mynode=(JDefaultMutableTreeNode) value; if (leaf) { setIcon((stringValue.startsWith(("-- ")))?null :JTreeleaf[mynode.macrotype]); if (mynode.macrotype==0) { setForeground(new Color(68, 84, 131)); } } else { setIcon((expanded)?JTreefoldopened:JTreefoldclosed); } return this; } } // Le modèle sur lequel est basé l'arbre // Se charge de l'édition des noeuds et contient les TreeModelListeners : class MyTreeModel extends DefaultTreeModel implements TreeModelListener { /** * */ public MyTreeModel(final TreeNode node) { super(node); this.addTreeModelListener(this); } @Override public void valueForPathChanged(final TreePath path, final Object newValue) { final JDefaultMutableTreeNode tn=(JDefaultMutableTreeNode) path.getLastPathComponent(); super.valueForPathChanged(path, newValue); tn.ActualisePath(); } public void treeNodesChanged(final TreeModelEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { ActualiseMacroPopupMenu(); } }); } public void treeNodesInserted(final TreeModelEvent e) { // System.out.println("treeNodesInserted"); SwingUtilities.invokeLater(new Runnable() { public void run() { ActualiseMacroPopupMenu(); } }); } public void treeNodesRemoved(final TreeModelEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { ActualiseMacroPopupMenu(); } }); } public void treeStructureChanged(final TreeModelEvent e) { // System.out.println("treeStructureChanged"); SwingUtilities.invokeLater(new Runnable() { public void run() { ActualiseMacroPopupMenu(); } }); } } /************************************************************************************** *** N'oublions pas que JMacrosList est un JPanel qui contient d'autres * JPanels La class Jcontrols contient les boutons d'édition de l'arbre et * leurs listeners ***************************************************************************************/ class JControls extends JEricPanel { /** * */ private JButton addbtn; private JButton delbtn; private JButton renbtn; private JButton createbtn; private String message=""; private MacrosList MI; @Override public void paintComponent(final java.awt.Graphics g) { super.paintComponent(g); final java.awt.Dimension d=this.getSize(); g.drawImage(themes.getImage("tab_bottom.gif"), 0, 0, d.width, d.height, this); } public void setButtonsIcons() { addbtn.setIcon(themes.getIcon("addmacrofolder.png")); addbtn.setRolloverIcon(themes.getIcon("addmacrofoldersel.png")); delbtn.setIcon(themes.getIcon("delmacro.png")); delbtn.setToolTipText(Global.Loc("macros.deleteselected")); renbtn.setIcon(themes.getIcon("renamemacro.png")); renbtn.setRolloverIcon(themes.getIcon("renamemacrosel.png")); createbtn.setIcon(themes.getIcon("createmacro.png")); createbtn.setRolloverIcon(themes.getIcon("createmacroover.png")); } public JControls(MacrosList mi) { MI=mi; this.setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.X_AXIS)); this.setAlignmentX(0F); addbtn=new JButton(); addbtn.setToolTipText(Global.Loc("macros.addfolder")); addbtn.setOpaque(false); addbtn.setContentAreaFilled(false); addbtn.setBorder(BorderFactory.createEmptyBorder()); addbtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { MacrosTree.nodepopup.addfolder(); } }); delbtn=new JButton(); delbtn.setOpaque(false); delbtn.setContentAreaFilled(false); delbtn.setBorder(BorderFactory.createEmptyBorder()); delbtn.setRolloverIcon(themes.getIcon("delmacrosel.png")); delbtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { // MacrosTree.nodepopup.deletenodes(); System.out.println("size="+JZirkelCanvas.getCurrentZC().getMacros().size()); } }); renbtn=new JButton(); renbtn.setToolTipText(Global.Loc("macros.renamemacro")); renbtn.setOpaque(false); renbtn.setContentAreaFilled(false); renbtn.setBorder(BorderFactory.createEmptyBorder()); renbtn.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(final MouseEvent e) { MacrosTree.nodepopup.renamenode(); } }); createbtn=new JButton(); createbtn.setToolTipText(Global.Loc("macros.recordmacro")); createbtn.setSelectedIcon(themes.getIcon("createmacrosel.png")); createbtn.setBorder(BorderFactory.createEmptyBorder()); createbtn.setOpaque(false); createbtn.setContentAreaFilled(false); createbtn.setSelected(false); setButtonsIcons(); createbtn.addMouseListener(new MouseAdapter() { @Override public void mouseEntered(final MouseEvent e) { // if (createbtn.isSelected()) { // message=createmacropanel.getComment().getText(); // createmacropanel.getComment().setText(Global.Loc("macros.cancel")); // } } @Override public void mouseExited(final MouseEvent e) { // if (createbtn.isSelected()) { // if (message!="") { // createmacropanel.getComment().setText(message); // } // } } @Override public void mousePressed(final MouseEvent e) { if (createbtn.isSelected()) { createbtn.setSelected(false); // createmacropanel.disappeargently(); // PaletteManager.setSelected("point", true); } else { createbtn.setSelected(true); new CreateMacroDialog(MI); // createmacropanel.appeargently(); // PaletteManager.deselectgeomgroup(); } } }); final JEricPanel spacer=new JEricPanel(); spacer.setOpaque(false); this.add(addbtn); this.add(delbtn); this.add(renbtn); this.add(spacer); this.add(createbtn); } } } carmetal-4.3/src/eric/macros/NodePopupMenu.java000066400000000000000000000356401417122252700215610ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.macros; import eric.FileTools; import eric.GUI.palette.PaletteManager; import eric.JZirkelCanvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.Vector; import javax.swing.JComponent; import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.JPopupMenu; import javax.swing.JSeparator; import javax.swing.plaf.SeparatorUI; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreePath; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; import rene.zirkel.macro.Macro; import rene.zirkel.macro.MacroItem; /** * * @author erichake */ public class NodePopupMenu extends JPopupMenu { private final CTree macrostree; private JDefaultMutableTreeNode SelectedNode; private TreePath[] SelectedPath; private JMenuItem runitem, renitem, delitem, tolibitem, tofileitem, saveitem, updtitem, propitem, dupitem; public NodePopupMenu(CTree mytree) { macrostree=mytree; dupitem=new JMenuItem(Global.Loc("macros.popup.duplicate")); dupitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { duplicatenodes(); } }); propitem=new JMenuItem(Global.Loc("macros.popup.properties")); propitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { showproperties(); } }); runitem=new JMenuItem(Global.Loc("macros.popup.run")); runitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { // runmacro(); } }); renitem=new JMenuItem(Global.Loc("macros.popup.rename")); renitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { renamenode(); } }); delitem=new JMenuItem(Global.Loc("macros.popup.delete")); delitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { deletenodes(); } }); tolibitem=new JMenuItem(Global.Loc("macros.popup.addtolibrary")); tolibitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { changeMacroType(0); } }); tofileitem=new JMenuItem(Global.Loc("macros.popup.removefromlibrary")); tofileitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { changeMacroType(2); } }); saveitem=new JMenuItem(Global.Loc("macros.popup.saveas")); saveitem.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent event) { saveMacros(); } }); } public void handleMouseClick(final MouseEvent e) { final TreePath path=macrostree.getPathForLocation(e.getX(), e.getY()); if (path!=null) { SelectedNode=(JDefaultMutableTreeNode) path.getLastPathComponent(); SelectedPath=macrostree.getSelectionPaths(); if ((SelectedPath.length==1)&&(SelectedNode.isLeaf())) { if (JMacrosInspector.isDialogVisible()) { JMacrosInspector.changemacro(SelectedNode); } else { PaletteManager.deselectgeomgroup(); SelectedNode.runZmacro(); } } } } void actualiseproperties() { // throw new UnsupportedOperationException("Not yet implemented"); } private void showproperties() { JMacrosInspector.openInspector(SelectedNode); // new JMacrosInspector(SelectedNode); } public void handlePopup(final MouseEvent e) { if (e.isPopupTrigger()) { final TreePath path=macrostree.getPathForLocation(e.getX(), e.getY()); if (path!=null) { macrostree.addSelectionPath(path); SelectedNode=(JDefaultMutableTreeNode) path.getLastPathComponent(); SelectedPath=macrostree.getSelectionPaths(); // initSelectedPath(); this.removeAll(); if (SelectedPath.length>1) { this.add(delitem); if (!JZirkelCanvas.isRestrictedSession()) { this.add(createSeparator()); this.add(tolibitem); this.add(tofileitem); this.add(createSeparator()); this.add(saveitem); } } else { if (SelectedNode.isLeaf()) { this.add(renitem); if (!JZirkelCanvas.isRestrictedSession()) { this.add(delitem); this.add(dupitem); } this.add(createSeparator()); if (!JZirkelCanvas.isRestrictedSession()) { this.add(tolibitem); this.add(tofileitem); this.add(createSeparator()); this.add(saveitem); this.add(createSeparator()); } this.add(runitem); this.add(createSeparator()); this.add(propitem); } else { this.add(renitem); this.add(delitem); this.add(createSeparator()); if (!JZirkelCanvas.isRestrictedSession()) { this.add(tolibitem); this.add(tofileitem); this.add(createSeparator()); this.add(saveitem); } } } this.show(e.getComponent(), e.getX(), e.getY()); } } } public void addfolder() { JDefaultMutableTreeNode root; final JDefaultMutableTreeNode node=new JDefaultMutableTreeNode(Global.Loc("macros.untitledfolder")); node.add(new JDefaultMutableTreeNode(Global.Loc("macros.emptynode"))); final TreePath[] paths=macrostree.getSelectionPaths(); if ((paths)!=null) { root=(JDefaultMutableTreeNode) paths[0].getLastPathComponent(); if (root.isLeaf()) { // if the first selected node is a leaf : final DefaultMutableTreeNode father=(DefaultMutableTreeNode) root.getParent(); final int i=father.getIndex(root)+1; ((DefaultTreeModel) macrostree.getModel()).insertNodeInto(node, father, i); } else { // if the first selected node is a folder : ((DefaultTreeModel) macrostree.getModel()).insertNodeInto(node, root, root.getChildCount()); } } else { // There is no selected node : ((DefaultTreeModel) macrostree.getModel()).insertNodeInto(node, macrostree.JML.getTopNode(), macrostree.JML.getTopNode().getChildCount()); } // Transformation d'un noeud en TreePath : final TreePath tp=new TreePath(node.getPath()); macrostree.setEditable(true); macrostree.startEditingAtPath(tp); } private void updateMacrosVector(JDefaultMutableTreeNode node) { if (node.m==null) { return; } String name=node.m.Name; if (node.m.isProtected()) { int ZCsSize=JZirkelCanvas.getZCsSize(); // delete the macro from all the ZirkelCanvas (in different tabs) : for (int size=0; size mobiles=new ArrayList(); private ArrayList mobilesCoords=new ArrayList(); private boolean inprogress=false; private static Thread shakeThread=null; public monkey(ZirkelCanvas zc) { ZC=zc; initMobiles(); } public void initMobiles() { mobiles.clear(); mobilesCoords.clear(); Enumeration e=ZC.getConstruction().elements(); while (e.hasMoreElements()) { final ConstructionObject c=(ConstructionObject) e.nextElement(); if (c instanceof PointObject) { PointObject pt=(PointObject) c; if (pt.moveable()&&pt.insidewindow()) { mobiles.add(pt); double[] tab={pt.getX(), pt.getY()}; mobilesCoords.add(tab); } } } } public void reset() { for (int k=25; k>0; k--) { long t0=System.currentTimeMillis(); for (int i=0; i0) { Thread.sleep(time); } } catch (Exception ex) { } } } public void move1step() { for (int i=0; i0) { Thread.sleep(time); } } catch (Exception ex) { } } reset(); shakeThread=null; } }; shakeThread.setPriority(Thread.MIN_PRIORITY); shakeThread.start(); } public void stop() { inprogress=false; } } carmetal-4.3/src/eric/restrict/000077500000000000000000000000001417122252700165235ustar00rootroot00000000000000carmetal-4.3/src/eric/restrict/RestrictContainer.java000066400000000000000000000031641417122252700230340ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import java.awt.Color; import java.util.Vector; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import eric.JEricPanel; import javax.swing.JScrollPane; import rene.util.xml.XmlTree; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class RestrictContainer extends JEricPanel { private ZirkelCanvas ZC; private static int W=500,H=400; private JScrollPane scroll; private RestrictPanel panel; private RestrictContainerTitle title; public RestrictContainer(ZirkelCanvas zc) { ZC=zc; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorder(BorderFactory.createEtchedBorder()); setBackground(new Color(255,255,255,100)); title=new RestrictContainerTitle(); panel=new RestrictPanel(); scroll=new JScrollPane(panel); scroll.setBorder(BorderFactory.createEmptyBorder()); scroll.getVerticalScrollBar().setUnitIncrement(24); scroll.setOpaque(false); add(title); add(scroll); add(new RestrictContainerControls(panel,ZC)); } public void init() { int x=(ZC.getSize().width-W)/2; int y=(ZC.getSize().height-H)/2; setBounds(x, y, W, H); } public void selectFromZC(){ } public static int getContainerWidth(){ return W; } public void removeRestrictItem(RestrictPanelIcon si) { } public void removeRestrictItem(String nme) { } public void addRestrictItem(XmlTree tree) { } } carmetal-4.3/src/eric/restrict/RestrictContainerControls.java000066400000000000000000000066261417122252700245660ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import eric.GUI.palette.PaletteManager; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Image; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JLabel; import eric.JEricPanel; import javax.swing.SwingConstants; import rene.gui.Global; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class RestrictContainerControls extends JEricPanel { ZirkelCanvas ZC; private static Image offimage=themes.getImage("tab_bottom.gif"); private ArrayList originalItems; private RestrictPanel panel; @Override public void paintComponent(Graphics g){ Dimension d=getSize(); g.setColor(new Color(230,230,230)); g.fillRect(0, 0, d.width, d.height); g.setColor(new Color(130,130,130)); g.drawLine(0, 0, d.width, 0); } public RestrictContainerControls(RestrictPanel pan,ZirkelCanvas zc) { ZC=zc; panel=pan; // backup of restricted hidden items : originalItems=new ArrayList(); ArrayList items=ZC.getHiddenItems(); for (int i=0;i hiddenItems=new ArrayList(); public static final String DISK="z_disk"; public static final String EDIT="z_edit"; public static final String GEOM="z_geom"; public static final String ASPECT="z_aspect"; public static final String FUNC="z_func"; public static final String TEST="z_test"; public static final String CTRL="z_ctrl"; public static final String GRID="z_grid"; public static final String HIST="z_hist"; public static final String BACK="z_back"; public static final String SIZE="z_size"; public static final String PREC="z_prec"; public static final String MENU="x_menu"; // for menu bar public static final String MCRP="x_macr"; // for macro panel public static final String HISTP="x_hist"; // for history panel public static final String HLPP="x_help"; // for help panel public static final String LMCR="x_lmcr"; // for library macros public static String[] geom_icns, disk_icns, edit_icns, func_icns, test_icns, control_icns, grid_icns, history_icns, back_icns, size_icns, prec_icns; public static String standardRestrictedHiddenItems="save,copy,exportpng,exporteps,exportsvg,exportpdf,edit,animate,grid,z_disk,new,load,bi_trans,intersection,fixedsegment,vector,quadric,image3,z_func,tracker,objecttracker,locus,bi_function_u,function,equationxy,z_test,bi_t_align,bi_t_para,bi_t_perp,bi_t_equi,bi_t_app,bi_t_conf,z_ctrl,ctrl_edit,ctrl_slider,ctrl_popup,ctrl_chkbox,ctrl_txtfield,ctrl_button,z_grid,z_hist,z_back,z_size,z_prec"; public RestrictItems(ZirkelCanvas zc) { ZC=zc; } public boolean isRestricted() { return (hiddenItems.size()>0); } public boolean isHidden(String s) { for (int i=0; i get() { return hiddenItems; } public void set(String items) { hiddenItems=new ArrayList(Arrays.asList(items.split(","))); } public void set(ArrayList items) { hiddenItems.clear(); for (int i=0; i0) { hiddenItems=new ArrayList(Arrays.asList(standardRestrictedHiddenItems.split(","))); } } public void initRestrictedHiddenItems() { if (hiddenItems.size()==0) { String items=Global.getParameter("standardRestrictedHiddenItems", standardRestrictedHiddenItems); if ("".equals(items)) { hiddenItems=new ArrayList(); } else { hiddenItems=new ArrayList(Arrays.asList(items.split(","))); } } } public void setStandardRestrictedItems() { if (hiddenItems.size()>0) { Global.setParameter("standardRestrictedHiddenItems", getHiddenItems()); } } public String getHiddenItems() { // join hiddenItems ArrayList in a string with comma separator. // A shame there is no such a method in java ! String items=hiddenItems.toString(); items=items.replace(" ", ""); items=items.replace("[", ""); items=items.replace("]", ""); return items; } public void printArgs(final XmlWriter xml) { if (hiddenItems.size()>0) { xml.startTagStart("RestrictedSession"); xml.printArg("HiddenIcons", getHiddenItems()); xml.finishTagNewLine(); } } /************************************************************ * Initialisation of static parameters from PaletteManager : * **********************************************************/ public static void init_disk_icns(String icns[]) { disk_icns=icns; } public static void init_edit_icns(String icns[]) { edit_icns=icns; } public static void init_geom_icns(String icns[]) { geom_icns=icns; } public static void init_func_icns(String icns[]) { func_icns=icns; } public static void init_test_icns(String icns[]) { test_icns=icns; } public static void init_control_icns(String icns[]) { control_icns=icns; } public static void init_grid_icns(String icns[]) { grid_icns=icns; } public static void init_history_icns(String icns[]) { history_icns=icns; } public static void init_back_icns(String icns[]) { back_icns=icns; } public static void init_size_icns(String icns[]) { size_icns=icns; } public static void init_prec_icns(String icns[]) { prec_icns=icns; } /******************** * End Initialisation * ******************/ } carmetal-4.3/src/eric/restrict/RestrictNonPalettePreference.java000066400000000000000000000017371417122252700251660ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import eric.GUI.palette.PaletteManager; import eric.GUI.window.MenuBar; import eric.JZirkelCanvas; import rene.zirkel.ZirkelCanvas; /** * * @author erichake */ public class RestrictNonPalettePreference extends RestrictPanelLine { String name; public RestrictNonPalettePreference(String nme, String label) { super(label); name=nme; initState(); } public void initState() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { setSelected(!zc.isHiddenItem(name)); } } public void action() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { if (isSelected()) { zc.removeHiddenItem(name); } else { zc.addHiddenItem(name); } } PaletteManager.init(); } } carmetal-4.3/src/eric/restrict/RestrictPanel.java000066400000000000000000000156251417122252700221560ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import eric.GUI.palette.PaletteManager; import java.util.ArrayList; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import eric.JEricPanel; import javax.swing.JSeparator; import rene.gui.Global; /** * * @author erichake */ public class RestrictPanel extends JEricPanel{ private static int W=400,H=1200,MARGINH=20,SMALLMARGINH=10; private ArrayList iconslines=new ArrayList(); private RestrictNonPalettePreference menu,macr,hist,help,lib_macros; public RestrictPanel(){ setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorder(BorderFactory.createEmptyBorder()); setOpaque(false); PaletteManager.fixsize(this, W,H ); add(marginH(MARGINH)); add(new RestrictPanelActiveLine(this, Global.Loc("restrict.activate"))); add(marginH(MARGINH)); add(new RestrictSeparator(SMALLMARGINH)); add(new RestrictPanelComment()); init_Disk_zone(); init_Edit_zone(); init_Construction_zone(); init_Func_zone(); init_Test_zone(); init_Control_zone(); init_Aspect_zone(); init_Grid_zone(); init_History_zone(); init_Back_zone(); init_Size_zone(); init_Prec_zone(); add(marginH(MARGINH)); add(new RestrictSeparator(SMALLMARGINH)); add(marginH(MARGINH)); add(menu=new RestrictNonPalettePreference(RestrictItems.MENU,Global.Loc("restrict.menubar"))); add(marginH(MARGINH)); add(macr=new RestrictNonPalettePreference(RestrictItems.MCRP,Global.Loc("restrict.macropanel"))); add(marginH(MARGINH)); add(hist=new RestrictNonPalettePreference(RestrictItems.HISTP,Global.Loc("restrict.historypanel"))); add(marginH(MARGINH)); add(help=new RestrictNonPalettePreference(RestrictItems.HLPP,Global.Loc("restrict.helppanel"))); add(marginH(MARGINH)); add(lib_macros=new RestrictNonPalettePreference(RestrictItems.LMCR, Global.Loc("restrict.librarymacros"))); } public static int getPanelWidth(){ return W; } public void setSelectAll(boolean b){ for (int i=0;i

"+Global.Loc("restrict.comment")+"
"); setFont(new Font(Global.GlobalFont,0,12)); setForeground(Color.darkGray); PaletteManager.fixsize(this, RestrictContainer.getContainerWidth(), 60); setHorizontalTextPosition(SwingUtilities.CENTER); setHorizontalAlignment(SwingUtilities.CENTER); setVerticalAlignment(SwingUtilities.CENTER); } } carmetal-4.3/src/eric/restrict/RestrictPanelFlowIcons.java000066400000000000000000000031011417122252700237640ustar00rootroot00000000000000/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package eric.restrict; import eric.GUI.palette.PaletteManager; import eric.GUI.themes; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.BorderFactory; import eric.JEricPanel; /** * * @author erichake */ public class RestrictPanelFlowIcons extends JEricPanel { public RestrictPanelFlowIcons() { setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); // setBorder(BorderFactory.createEmptyBorder()); // setOpaque(false); setBackground(new Color(218,228,242)); setBorder(BorderFactory.createEtchedBorder()); setAlignmentX(0.0f); setAlignmentY(0.0f); } public void addIcons(RestrictPanelIconsLineTitle title,String[] icns) { for (int i=0; i icons=new ArrayList(); public RestrictPanelIconsLineTitle(String nme, String label) { super(label); name=nme; addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { setSelectedIcons(isSelected()); } }); initState(); } public void initState() { ZirkelCanvas zc=JZirkelCanvas.getCurrentZC(); if (zc!=null) { setSelected(!zc.isHiddenItem(name)); if (!isSelected()) { setSelectedIcons(false); } } } public void initIconsState() { for (int i=0; i. */ package eric.textfieldpopup; import javax.swing.JButton; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JPopupMenu; import javax.swing.JSeparator; import javax.swing.text.JTextComponent; /** * * @author erichake */ public class JFunctionsPanel extends JMenuPanel { /** * */ private static final long serialVersionUID = 1L; int Linemax = 3; String funcs = "&& || ! < > <= >= == ~= $ " + "x() y() d(,) if(,,) a(,,) inside(,) $ " + "sqrt() exp() log() round() ceil() floor() abs() sign() random() min(,) max(,) $ " + "sin() cos() tan() rsin() rcos() rtan() " + "arcsin() arccos() arctan() rarcsin() rarccos() rarctan() " + "deg() rad() sinhyp() coshyp() angle180() angle360() " + "Argsinh() Argcosh() Argtanh() tanhyp() atan2(,) ratan2(,) $ " + "integrate(,,) zero(,,) diff(,) min(,,) max(,,) length() $ " + "windoww windowh windowcx windowcy pixel $ " + "div(,) mod(,) gcd(,) lcm(,)"; public JFunctionsPanel(final JPopupMenu men, final JComponent jtf) { super(men); JTF = jtf; iconwidth = 75; iconheight = 20; final String[] f = funcs.split(" "); JEricPanel line = null; int j = 0; for (final String element : f) { if ((j % Linemax) == 0) { add(line = getnewline()); } if (element.equals("$")) { add(new JSeparator()); j = 0; } else { line.add(getJButton(element)); j++; } } } @Override public void doAction(final JButton mybtn) { final String s = mybtn.getText(); mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); if (JTF != null) { final JTextComponent jt = (JTextComponent) JTF; if ((s.endsWith(")")) && (jt.getSelectedText() != null)) { String mytxt = jt.getText() .substring(0, jt.getSelectionStart()); mytxt += s.substring(0, s.length() - 1); mytxt += jt.getSelectedText() + ")"; final int car = mytxt.length(); mytxt += jt.getText().substring(jt.getSelectionEnd()); jt.setText(mytxt); jt.setCaretPosition(car); } else { String mytxt = jt.getText() .substring(0, jt.getSelectionStart()); mytxt += (s.endsWith(")")) ? s.substring(0, s.length() - 1) : s; final int car = mytxt.length(); mytxt += jt.getText().substring(jt.getSelectionEnd()); jt.setText(mytxt); jt.setCaretPosition(car); } MEN.setVisible(false); } } } carmetal-4.3/src/eric/textfieldpopup/JMenuPanel.java000066400000000000000000000074601417122252700226100ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.textfieldpopup; import java.awt.Color; import java.awt.Dimension; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.BorderFactory; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JPopupMenu; import javax.swing.text.JTextComponent; import rene.gui.Global; /** * * @author erichake */ public class JMenuPanel extends JEricPanel implements MouseListener { /** * */ private static final long serialVersionUID = 1L; JPopupMenu MEN = null; int iconwidth = 20; int iconheight = 20; JComponent JTF; public JMenuPanel(final JPopupMenu men) { MEN = men; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setAlignmentY(0f); setOpaque(true); setFocusable(false); setBackground(new Color(250, 250, 250)); } static void fixsize(final JComponent cp, final int w, final int h) { final Dimension d = new Dimension(w, h); cp.setMaximumSize(d); cp.setMinimumSize(d); cp.setPreferredSize(d); cp.setSize(d); } public JButton getJButton(final String s) { final JButton mybtn = new JButton(s); mybtn.setBorder(BorderFactory.createEmptyBorder()); mybtn.setBorderPainted(false); mybtn.setFocusPainted(false); mybtn.setFocusable(false); mybtn.setBackground(new Color(228, 222, 255)); mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); mybtn.addMouseListener(this); mybtn.setFont(new java.awt.Font(Global.GlobalFont, 1, 11)); mybtn.setForeground(new Color(20, 20, 20)); fixsize(mybtn, iconwidth, iconheight); return mybtn; } JEricPanel getnewline() { final JEricPanel line = new JEricPanel(); line.setLayout(new BoxLayout(line, BoxLayout.X_AXIS)); line.setAlignmentX(0f); line.setOpaque(false); return line; } JEricPanel getnewcol() { final JEricPanel col = new JEricPanel(); col.setLayout(new BoxLayout(col, BoxLayout.Y_AXIS)); col.setAlignmentY(0f); col.setOpaque(true); col.setBackground(new Color(250, 250, 250)); return col; } public void doAction(final JButton mybtn) { final String s = mybtn.getText(); mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); if (JTF != null) { final JTextComponent jt = (JTextComponent) JTF; String mytxt = jt.getText().substring(0, jt.getSelectionStart()); mytxt += s; final int car = mytxt.length(); mytxt += jt.getText().substring(jt.getSelectionEnd()); jt.setText(mytxt); jt.setCaretPosition(car); MEN.setVisible(false); } } public void mouseClicked(final MouseEvent e) { final JButton mybtn = (JButton) e.getComponent(); doAction(mybtn); } public void mousePressed(final MouseEvent e) { } public void mouseReleased(final MouseEvent e) { } public void mouseEntered(final MouseEvent e) { if (e.getSource() != null) { final JButton btn = (JButton) e.getSource(); btn.setBackground(new Color(171, 191, 231)); btn.setOpaque(true); btn.setContentAreaFilled(true); } } public void mouseExited(final MouseEvent e) { if (e.getSource() != null) { final JButton btn = (JButton) e.getSource(); btn.setOpaque(false); btn.setContentAreaFilled(false); } } } carmetal-4.3/src/eric/textfieldpopup/JSpecialCarsPanel.java000066400000000000000000000036311417122252700240710ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.textfieldpopup; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JPopupMenu; import javax.swing.JSeparator; /** * * @author erichake */ public class JSpecialCarsPanel extends JMenuPanel { /** * */ private static final long serialVersionUID = 1L; int Linemax = 10; private final String greekmajLettersSet = "\u0391\u0392\u0393\u0394\u0395\u0396" + "\u0397\u0398\u0399\u039A\u039B\u039C\u039D\u039E\u039F\u03A0\u03A1\u03A3" + "\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9"; private final String greekminLettersSet = "\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9" + "\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C4\u03C5\u03C6" + "\u03C7\u03C8\u03C9"; public JSpecialCarsPanel(final JPopupMenu men, final JComponent jtf) { super(men); JTF = jtf; JEricPanel line = null; for (int i = 0; i < greekminLettersSet.length(); i++) { if ((i % Linemax) == 0) { add(line = getnewline()); } line.add(getJButton(greekminLettersSet.substring(i, i + 1))); } add(new JSeparator()); for (int i = 0; i < greekmajLettersSet.length(); i++) { if ((i % Linemax) == 0) { add(line = getnewline()); } line.add(getJButton(greekmajLettersSet.substring(i, i + 1))); } } } carmetal-4.3/src/eric/textfieldpopup/JTexPanel.java000066400000000000000000000075571417122252700224530ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.textfieldpopup; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JComponent; import eric.JEricPanel; import javax.swing.JPopupMenu; import javax.swing.text.JTextComponent; import atp.sHotEqn; import java.awt.Graphics2D; import rene.gui.Global; /** * * @author erichake */ public class JTexPanel extends JMenuPanel { /** * */ private static final long serialVersionUID = 1L; int Linemax = 4; String funcs = "\\frac{a}{b} \\sqrt{a} \\sqrt[n]{a} \\vec{u} \\widehat{ABC} \\hat{a} a_1 a^2 " + "\\sum_{i=0}^{n} \\prod_{i=0}^{n} \\int_{a}^{b} \\oint_{a}^{b} \\bar{z} \\fbox{box}"; // +"\\left|\\begin{array}{cc}a_{11}&a_{12}\\\\\\\\a_{21}&a_{22}\\end{array}\\right| " // + // "\\left(\\begin{array}{cc}a_{11}&a_{12}\\\\\\\\a_{21}&a_{22}\\end{array}\\right) "; public JTexPanel(final JPopupMenu men, final JComponent jtf) { super(men); JTF = jtf; iconwidth = 50; iconheight = 50; final String[] f = funcs.split(" "); JEricPanel line = null; for (int i = 0; i < f.length; i++) { if ((i % Linemax) == 0) { add(line = getnewline()); } line.add(getJButton(f[i])); } } @Override public void doAction(final JButton mybtn) { String s = ((myJButton) mybtn).EQ; final JTextComponent jt = (JTextComponent) JTF; mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); String mytxt = jt.getText().substring(0, jt.getSelectionStart()); final int nbDollars = mytxt.split("\\$").length - 1; if (nbDollars % 2 == 0) { s = "$" + s + "$"; } if (jt.getSelectedText() != null) { final Pattern p = Pattern.compile("\\{([^\\}]*)\\}", Pattern.CASE_INSENSITIVE); final Matcher m = p.matcher(s); if (m.find()) { s = m.replaceFirst("{" + jt.getSelectedText() + "}"); } } mytxt += s; final int car = mytxt.length(); mytxt += jt.getText().substring(jt.getSelectionEnd()); jt.setText(mytxt); jt.setCaretPosition(car); MEN.setVisible(false); } @Override public JButton getJButton(final String s) { final myJButton mybtn = new myJButton(s); mybtn.setBorder(BorderFactory.createEmptyBorder()); mybtn.setBorderPainted(false); mybtn.setFocusPainted(false); mybtn.setFocusable(false); mybtn.setBackground(new Color(228, 222, 255)); mybtn.setOpaque(false); mybtn.setContentAreaFilled(false); mybtn.addMouseListener(this); mybtn.setFont(new java.awt.Font(Global.GlobalFont, 1, 14)); mybtn.setForeground(new Color(20, 20, 20)); fixsize(mybtn, iconwidth, iconheight); return mybtn; } class myJButton extends JButton { /** * */ private static final long serialVersionUID = 1L; String EQ = null; sHotEqn HE = null; @Override public void paintComponent(final Graphics g) { super.paintComponent(g); Graphics2D g2d=(Graphics2D) g; final Dimension d = this.getSize(); final Dimension eq = HE.getSizeof(EQ, g2d); HE.paint((d.width - eq.width) / 2, (d.height - eq.height) / 2, g2d); } public myJButton(final String s) { super(); EQ = s; HE = new sHotEqn(this); HE.setHAlign("center"); HE.setEquation(s); } } } carmetal-4.3/src/eric/textfieldpopup/JTextFieldPopup.java000066400000000000000000000043411417122252700236330ustar00rootroot00000000000000/* Copyright 2006 Eric Hakenholz This file is part of C.a.R. software. C.a.R. is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. C.a.R. is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ package eric.textfieldpopup; import java.awt.event.MouseEvent; import javax.swing.JComponent; import javax.swing.JMenu; import javax.swing.JPopupMenu; import rene.gui.Global; /** * * @author erichake */ public class JTextFieldPopup extends JPopupMenu { /** * */ private static final long serialVersionUID = 1L; JComponent JTF; // Numéro du menu : static public int SPECIALCARMENU = 0, FUNCTIONMENU = 1, LATEXMENU = 2; myJMenuItem m1, m2, m3; public JTextFieldPopup(final JComponent jtf) { JTF = jtf; this.setFocusable(false); m1 = new myJMenuItem(Global.Loc("props.popup.special"), new JSpecialCarsPanel(this, JTF)); m2 = new myJMenuItem(Global.Loc("props.popup.functions"), new JFunctionsPanel(this, JTF)); m3 = new myJMenuItem(Global.Loc("props.popup.latex"), new JTexPanel( this, JTF)); this.add(m1); this.add(m2); this.add(m3); } public void setDisabled(final String dis) { if (dis.contains("," + SPECIALCARMENU + ",")) this.getComponent(SPECIALCARMENU).setEnabled(false); if (dis.contains("," + FUNCTIONMENU + ",")) this.getComponent(FUNCTIONMENU).setEnabled(false); if (dis.contains("," + LATEXMENU + ",")) this.getComponent(LATEXMENU).setEnabled(false); } public void openMenu(final MouseEvent e) { this.show(e.getComponent(), e.getX(), e.getY()); } class myJMenuItem extends JMenu { /** * */ private static final long serialVersionUID = 1L; JPopupMenu jp; public myJMenuItem(final String name, final JMenuPanel jmp) { super(name); this.setFocusable(false); this.add(jmp); } } } carmetal-4.3/src/java.policy.applet000066400000000000000000000002151417122252700173660ustar00rootroot00000000000000/* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/ /* DO NOT EDIT */ grant { permission java.security.AllPermission; }; carmetal-4.3/src/makejar-source.jardesc000066400000000000000000000035051417122252700202120ustar00rootroot00000000000000 carmetal-4.3/src/net/000077500000000000000000000000001417122252700145305ustar00rootroot00000000000000carmetal-4.3/src/net/java/000077500000000000000000000000001417122252700154515ustar00rootroot00000000000000carmetal-4.3/src/net/java/dev/000077500000000000000000000000001417122252700162275ustar00rootroot00000000000000carmetal-4.3/src/net/java/dev/colorchooser/000077500000000000000000000000001417122252700207305ustar00rootroot00000000000000carmetal-4.3/src/net/java/dev/colorchooser/Bundle.properties000066400000000000000000000143711417122252700242650ustar00rootroot00000000000000# Sun Public License Notice # # The contents of this file are subject to the Sun Public License # Version 1.0 (the "License"). You may not use this file except in # compliance with the License. A copy of the License is available at # http://www.sun.com/ # # The Original Code is NetBeans. The Initial Developer of the Original # Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun # Microsystems, Inc. All Rights Reserved. #Palette names basic=Primary colors svg=SVG/X11 color constants swing=Swing constants system=System colors recent=Recent colors tip=Click and hold combinations of Ctrl/Shift/Alt to switch palettes tip.mac=Click and hold combinations of Command/Shift/Alt to switch palettes #SVG/X11 Color constants # 240,248,255 aliceblue=Alice blue # 250,235,215 antiquewhite=Antique white # 0,255,255 aqua=Aqua # 127,255,212 aquamarine=Aquamarine # 240,255,255 azure=Azure # 245,245,220 beige=Beige # 255,228,196 bisque=Bisque # 0,0,0 black=Black # 255,235,205 blanchedalmond=Blanched almond # 0,0,255 blue=Blue # 138,43,226 blueviolet=Blue violet # 165,42,42 brown=Brown # 222,184,135 burlywood=Burly wood # 95,158,160 cadetblue=Cadet blue # 127,255,0 chartreuse=Chartreuse # 210,105,30 chocolate=Chocolate # 255,127,80 coral=Coral # 100,149,237 cornflowerblue=Cornflower blue # 255,248,220 cornsilk=Corn silk # 220,20,60 crimson=Crimson # 0,255,255 cyan=Cyan # 0,0,139 darkblue=Dark blue # 0,139,139 darkcyan=Dark cyan # 184,134,11 darkgoldenrod=Dark goldenrod # 169,169,169 darkgray=Dark gray # 0,100,0 darkgreen=Dark green # 169,169,169 darkgrey=Dark grey # 189,183,107 darkkhaki=Dark khaki # 139,0,139 darkmagenta=Dark magenta # 85,107,47 darkolivegreen=Dark olive green # 255,140,0 darkorange=Dark orange # 153,50,204 darkorchid=Dark orchid # 139,0,0 darkred=Dark red # 233,150,122 darksalmon=Dark salmon # 143,188,143 darkseagreen=Dark sea green # 72,61,139 darkslateblue=Dark slate blue # 47,79,79 darkslategray=Dark slate gray # 47,79,79 darkslategrey=Dark slate grey # 0,206,209 darkturquoise=Dark turquoise # 148,0,211 darkviolet=Dark violet # 255,20,147 deeppink=Deep pink # 0,191,255 deepskyblue=Deep sky blue # 105,105,105 dimgray=Dim gray # 105,105,105 dimgrey=Dim grey # 30,144,255 dodgerblue=Dodger blue # 178,34,34 firebrick=Fire brick # 255,250,240 floralwhite=Floral white # 34,139,34 forestgreen=Forest green # 255,0,255 fuchsia=Fuchsia # 220,220,220 gainsboro=Gainsboro # 248,248,255 ghostwhite=Ghost white # 255,215,0 gold=Gold # 218,165,32 goldenrod=Goldenrod # 128,128,128 gray=Gray # 128,128,128 grey=Grey # 0,128,0 green=Green # 173,255,47 greenyellow=Green yellow # 240,255,240 honeydew=Honeydew # 255,105,180 hotpink=Hot pink # 205,92,92 indianred=Indian red # 75,0,130 indigo=Indigo # 255,255,240 ivory=Ivory # 240,230,140 khaki=Khaki # 230,230,250 lavender=Lavender # 255,240,245 lavenderblush=Lavender blush # 124,252,0 lawngreen=Lawn green # 255,250,205 lemonchiffon=Lemon chiffon # 173,216,230 lightblue=Light blue # 240,128,128 lightcoral=Light coral # 224,255,255 lightcyan=Light cyan # 250,250,210 lightgoldenrodyellow=Light goldenrod yellow # 211,211,211 lightgray=Light gray # 144,238,144 lightgreen=Light green # 211,211,211 lightgrey=Light grey # 255,182,193 lightpink=Light pink # 255,160,122 lightsalmon=Light salmon # 32,178,170 lightseagreen=Light sea green # 135,206,250 lightskyblue=Light sky blue # 119,136,153 lightslategray=Light slate gray # 119,136,153 lightslategrey=Light slate grey # 176,196,222 lightsteelblue=Light steel blue # 255,255,224 lightyellow=Light yellow # 0,255,0 lime=Lime # 50,205,50 limegreen=Lime green # 250,240,230 linen=Linen # 255,0,255 magenta=Magenta # 128,0,0 maroon=Maroon # 102,205,170 mediumaquamarine=Medium aquamarine # 0,0,205 mediumblue=Medium blue # 186,85,211 mediumorchid=Medium orchid # 147,112,219 mediumpurple=Medium purple # 60,179,113 mediumseagreen=Medium sea green # 123,104,238 mediumslateblue=Medium slate blue # 0,250,154 mediumspringgreen=Medium spring green # 72,209,204 mediumturquoise=Medium turquoise # 199,21,133 mediumvioletred=Medium violet red # 25,25,112 midnightblue=Midnight blue # 245,255,250 mintcream=Mint cream # 255,228,225 mistyrose=Misty rose # 255,228,181 moccasin=Moccasin # 255,222,173 navajowhite=Navajo white # 0,0,128 navy=Navy # 253,245,230 oldlace=Old lace # 128,128,0 olive=Olive # 107,142,35 olivedrab=Olivedrab # 255,165,0 orange=Orange # 255,69,0 orangered=Orange red # 218,112,214 orchid=Orchid # 238,232,170 palegoldenrod=Pale goldenrod # 152,251,152 palegreen=Pale green # 175,238,238 paleturquoise=Pale turquoise # 219,112,147 palevioletred=Pale violet red # 255,239,213 papayawhip=Papaya whip # 255,218,185 peachpuff=Peach puff # 205,133,63 peru=Peru # 255,192,203 pink=Pink # 221,160,221 plum=Plum # 176,224,230 powderblue=Powder blue # 128,0,128 purple=Purple # 255,0,0 red=Red # 188,143,143 rosybrown=Rosy brown # 65,105,225 royalblue=Royal blue # 139,69,19 saddlebrown=Saddle brown # 250,128,114 salmon=Salmon # 244,164,96 sandybrown=Sandy brown # 46,139,87 seagreen=Sea green # 255,245,238 seashell=Seashell # 160,82,45 sienna=Sienna # 192,192,192 silver=Silver # 135,206,235 skyblue=Sky blue # 106,90,205 slateblue=Slate blue # 112,128,144 slategray=Slate gray # 112,128,144 slategrey=Slate grey # 255,250,250 snow=Snow # 0,255,127 springgreen=Spring green # 70,130,180 steelblue=Steel blue # 210,180,140 tan=Tan # 0,128,128 teal=Teal # 216,191,216 thistle=Thistle # 255,99,71 tomato=Tomato # 64,224,208 turquoise=Turquoise # 238,130,238 violet=Violet # 245,222,179 wheat=Wheat # 255,255,255 white=White # 245,245,245 whitesmoke=White smoke # 255,255,0 yellow=Yellow # 154,205,50 yellowgreen=Yellow green # Continuous palette names satSmall=Saturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, false), unsatSmall=Desaturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, false), satSmallHoriz=Saturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, true), unsatSmallHoriz=Desaturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, true), satLarge=Saturated colors #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, false), unsatLarge=Desaturated colors #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, false), satLargeHoriz=Saturated colors #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, true), unsatLargeHoriz=Desaturated colors #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, true) chooseColor="Choose a Color" carmetal-4.3/src/net/java/dev/colorchooser/Bundle_en_US.properties000066400000000000000000000141521417122252700253530ustar00rootroot00000000000000# Sun Public License Notice # # The contents of this file are subject to the Sun Public License # Version 1.0 (the "License"). You may not use this file except in # compliance with the License. A copy of the License is available at # http://www.sun.com/ # # The Original Code is NetBeans. The Initial Developer of the Original # Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun # Microsystems, Inc. All Rights Reserved. #Palette names basic=Primary colors svg=SVG/X11 color constants swing=Swing constants system=System colors recent=Recent colors #SVG/X11 Color constants # 240,248,255 aliceblue=Alice blue # 250,235,215 antiquewhite=Antique white # 0,255,255 aqua=Aqua # 127,255,212 aquamarine=Aquamarine # 240,255,255 azure=Azure # 245,245,220 beige=Beige # 255,228,196 bisque=Bisque # 0,0,0 black=Black # 255,235,205 blanchedalmond=Blanched almond # 0,0,255 blue=Blue # 138,43,226 blueviolet=Blue violet # 165,42,42 brown=Brown # 222,184,135 burlywood=Burly wood # 95,158,160 cadetblue=Cadet blue # 127,255,0 chartreuse=Chartreuse # 210,105,30 chocolate=Chocolate # 255,127,80 coral=Coral # 100,149,237 cornflowerblue=Cornflower blue # 255,248,220 cornsilk=Corn silk # 220,20,60 crimson=Crimson # 0,255,255 cyan=Cyan # 0,0,139 darkblue=Dark blue # 0,139,139 darkcyan=Dark cyan # 184,134,11 darkgoldenrod=Dark goldenrod # 169,169,169 darkgray=Dark gray # 0,100,0 darkgreen=Dark green # 169,169,169 darkgrey=Dark grey # 189,183,107 darkkhaki=Dark khaki # 139,0,139 darkmagenta=Dark magenta # 85,107,47 darkolivegreen=Dark olive green # 255,140,0 darkorange=Dark orange # 153,50,204 darkorchid=Dark orchid # 139,0,0 darkred=Dark red # 233,150,122 darksalmon=Dark salmon # 143,188,143 darkseagreen=Dark sea green # 72,61,139 darkslateblue=Dark slate blue # 47,79,79 darkslategray=Dark slate gray # 47,79,79 darkslategrey=Dark slate grey # 0,206,209 darkturquoise=Dark turquoise # 148,0,211 darkviolet=Dark violet # 255,20,147 deeppink=Deep pink # 0,191,255 deepskyblue=Deep sky blue # 105,105,105 dimgray=Dim gray # 105,105,105 dimgrey=Dim grey # 30,144,255 dodgerblue=Dodger blue # 178,34,34 firebrick=Fire brick # 255,250,240 floralwhite=Floral white # 34,139,34 forestgreen=Forest green # 255,0,255 fuchsia=Fuchsia # 220,220,220 gainsboro=Gainsboro # 248,248,255 ghostwhite=Ghost white # 255,215,0 gold=Gold # 218,165,32 goldenrod=Goldenrod # 128,128,128 gray=Gray # 128,128,128 grey=Grey # 0,128,0 green=Green # 173,255,47 greenyellow=Green yellow # 240,255,240 honeydew=Honeydew # 255,105,180 hotpink=Hot pink # 205,92,92 indianred=Indian red # 75,0,130 indigo=Indigo # 255,255,240 ivory=Ivory # 240,230,140 khaki=Khaki # 230,230,250 lavender=Lavender # 255,240,245 lavenderblush=Lavender blush # 124,252,0 lawngreen=Lawn green # 255,250,205 lemonchiffon=Lemon chiffon # 173,216,230 lightblue=Light blue # 240,128,128 lightcoral=Light coral # 224,255,255 lightcyan=Light cyan # 250,250,210 lightgoldenrodyellow=Light goldenrod yellow # 211,211,211 lightgray=Light gray # 144,238,144 lightgreen=Light green # 211,211,211 lightgrey=Light grey # 255,182,193 lightpink=Light pink # 255,160,122 lightsalmon=Light salmon # 32,178,170 lightseagreen=Light sea green # 135,206,250 lightskyblue=Light sky blue # 119,136,153 lightslategray=Light slate gray # 119,136,153 lightslategrey=Light slate grey # 176,196,222 lightsteelblue=Light steel blue # 255,255,224 lightyellow=Light yellow # 0,255,0 lime=Lime # 50,205,50 limegreen=Lime green # 250,240,230 linen=Linen # 255,0,255 magenta=Magenta # 128,0,0 maroon=Maroon # 102,205,170 mediumaquamarine=Medium aquamarine # 0,0,205 mediumblue=Medium blue # 186,85,211 mediumorchid=Medium orchid # 147,112,219 mediumpurple=Medium purple # 60,179,113 mediumseagreen=Medium sea green # 123,104,238 mediumslateblue=Medium slate blue # 0,250,154 mediumspringgreen=Medium spring green # 72,209,204 mediumturquoise=Medium turquoise # 199,21,133 mediumvioletred=Medium violet red # 25,25,112 midnightblue=Midnight blue # 245,255,250 mintcream=Mint cream # 255,228,225 mistyrose=Misty rose # 255,228,181 moccasin=Moccasin # 255,222,173 navajowhite=Navajo white # 0,0,128 navy=Navy # 253,245,230 oldlace=Old lace # 128,128,0 olive=Olive # 107,142,35 olivedrab=Olivedrab # 255,165,0 orange=Orange # 255,69,0 orangered=Orange red # 218,112,214 orchid=Orchid # 238,232,170 palegoldenrod=Pale goldenrod # 152,251,152 palegreen=Pale green # 175,238,238 paleturquoise=Pale turquoise # 219,112,147 palevioletred=Pale violet red # 255,239,213 papayawhip=Papaya whip # 255,218,185 peachpuff=Peach puff # 205,133,63 peru=Peru # 255,192,203 pink=Pink # 221,160,221 plum=Plum # 176,224,230 powderblue=Powder blue # 128,0,128 purple=Purple # 255,0,0 red=Red # 188,143,143 rosybrown=Rosy brown # 65,105,225 royalblue=Royal blue # 139,69,19 saddlebrown=Saddle brown # 250,128,114 salmon=Salmon # 244,164,96 sandybrown=Sandy brown # 46,139,87 seagreen=Sea green # 255,245,238 seashell=Seashell # 160,82,45 sienna=Sienna # 192,192,192 silver=Silver # 135,206,235 skyblue=Sky blue # 106,90,205 slateblue=Slate blue # 112,128,144 slategray=Slate gray # 112,128,144 slategrey=Slate grey # 255,250,250 snow=Snow # 0,255,127 springgreen=Spring green # 70,130,180 steelblue=Steel blue # 210,180,140 tan=Tan # 0,128,128 teal=Teal # 216,191,216 thistle=Thistle # 255,99,71 tomato=Tomato # 64,224,208 turquoise=Turquoise # 238,130,238 violet=Violet # 245,222,179 wheat=Wheat # 255,255,255 white=White # 245,245,245 whitesmoke=White smoke # 255,255,0 yellow=Yellow # 154,205,50 yellowgreen=Yellow green # Continuous palette names satSmall=Saturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, false), unsatSmall=Desaturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, false), satSmallHoriz=Saturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, true), unsatSmallHoriz=Desaturated colors #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, true), satLarge=Saturated colors - large #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, false), unsatLarge=Desaturated colors - large #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, false), satLargeHoriz=Saturated colors - large #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, true), unsatLargeHoriz=Desaturated colors - large #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, true) carmetal-4.3/src/net/java/dev/colorchooser/Bundle_fr.properties000066400000000000000000000027321417122252700247520ustar00rootroot00000000000000# Sun Public License Notice # # The contents of this file are subject to the Sun Public License # Version 1.0 (the "License"). You may not use this file except in # compliance with the License. A copy of the License is available at # http://www.sun.com/ # # The Original Code is NetBeans. The Initial Developer of the Original # Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun # Microsystems, Inc. All Rights Reserved. #Palette names basic=Primary colors svg=Constantes SVG/X11 swing=Constantes system=System colors recent=Recent colors tip=Click and hold combinations of Ctrl/Shift/Alt to switch palettes tip.mac=Click and hold combinations of Command/Shift/Alt to switch palettes # Continuous palette names satSmall=Couleurs satur\u00E9es #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, false), unsatSmall=Couleurs d\u00E9satur\u00E9es #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, false), satSmallHoriz=Couleurs satur\u00E9es #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 1f, true), unsatSmallHoriz=Couleurs d\u00E9satur\u00E9es #SMALL_SPEC_WIDTH, SMALL_SPEC_HEIGHT, 0.4f, true), satLarge=Couleurs satur\u00E9es #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, false), unsatLarge=Couleurs d\u00E9satur\u00E9es #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, false), satLargeHoriz=Couleurs satur\u00E9es #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, true), unsatLargeHoriz=Couleurs d\u00E9satur\u00E9es #LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, true) chooseColor="Choisir une couleur" carmetal-4.3/src/net/java/dev/colorchooser/CCBorder.java000066400000000000000000000070571417122252700232270ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Insets; import javax.swing.UIManager; import javax.swing.border.Border; import javax.swing.plaf.metal.MetalLookAndFeel; /** * Default border for the color chooser, which uses bevels that lighten/darken * the selected color, and includes slightly different painting logic for Metal * LAF. * * @author Tim Boudreau */ class CCBorder implements Border { public Insets getBorderInsets(final Component c) { Insets result; if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { result = new Insets(2, 2, 1, 1); } else { result = new Insets(1, 1, 1, 1); } return result; } public boolean isBorderOpaque() { return true; } public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int w, final int h) { final ColorChooser cc = (ColorChooser) c; if (!cc.isEnabled()) { g.setColor(cc.getColor()); g.fillRect(x, y, w, h); return; } Color col = cc.transientColor() == null ? cc.getColor() : cc .transientColor(); if (cc == null) { col = c.getBackground(); if (col == null) { col = Color.BLACK; } } if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { g.setColor(darken(col)); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 1); g.drawLine(x + w - 1, y + h - 1, x, y + h - 1); g.drawLine(x + w - 1, y + h - 1, x + w - 1, y); g.setColor(brighten(col)); g.drawLine(x + w - 2, y + h - 2, x + 1, y + h - 2); g.drawLine(x + w - 2, y + h - 2, x + w - 2, y + 1); } else { g.setColor(darken(col)); g.drawLine(x + w - 1, y + h - 1, x, y + h - 1); g.drawLine(x + w - 1, y + h - 1, x + w - 1, y); g.setColor(brighten(col)); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 1); } } /** Slightly more subtle than Color.darker() */ private static final Color darken(final Color c) { final int amount = 30; final int r = normalizeToByte(c.getRed() - amount); final int g = normalizeToByte(c.getGreen() - amount); final int b = normalizeToByte(c.getGreen() - amount); return new Color(r, g, b); } /** Slightly more subtle than Color.brighter() */ private static final Color brighten(final Color c) { final int amount = 30; final int r = normalizeToByte(c.getRed() + amount); final int g = normalizeToByte(c.getGreen() + amount); final int b = normalizeToByte(c.getGreen() + amount); return new Color(r, g, b); } /** Ensure an int is within the possible range for a byte */ private static final int normalizeToByte(final int i) { return Math.min(255, Math.max(0, i)); } }carmetal-4.3/src/net/java/dev/colorchooser/CDDL_GPLv2_licence.txt000066400000000000000000001064051417122252700246410ustar00rootroot00000000000000******************************************************* * Colorchooser Dual License Header and License Notice * ******************************************************* Colorchooser is dual licensed with Common Development and Distribution License (CDDL) and the GNU General Public License (GPL) with Classpath exception. ******************************************************* COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1. Definitions. 1.1. ÒContributorÓ means each individual or entity that creates or contributes to the creation of Modifications. 1.2. ÒContributor VersionÓ means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor. 1.3. ÒCovered SoftwareÓ means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. 1.4. ÒExecutableÓ means the Covered Software in any form other than Source Code. 1.5. ÒInitial DeveloperÓ means the individual or entity that first makes Original Software available under this License. 1.6. ÒLarger WorkÓ means a work which combines Covered Software or portions thereof with code not governed by the terms of this License. 1.7. ÒLicenseÓ means this document. 1.8. ÒLicensableÓ means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. 1.9 ÒModificationsÓ means the Source Code and Executable form of any of the following: A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications; B. Any new file that contains any part of the Original Software or previous Modification; or C. Any new file that is contributed or otherwise made available under the terms of this License. 1.10. ÒOriginal SoftwareÓ means the Source Code and Executable form of computer software code that is originally released under this License. 1.11. ÒPatent ClaimsÓ means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. 1.12. ÒSource CodeÓ means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code. 1.13. ÒYouÓ (or ÒYourÓ) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, ÒYouÓ includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, ÒcontrolÓ means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants. 2.1. The Initial Developer Grant. Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and (b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof). (c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License. (d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices. 2.2. Contributor Grant. Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party. (d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor. 3. Distribution Obligations. 3.1. Availability of Source Code. Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software in Source Code form in a reasonable manner on or through a medium customarily used for software exchange. 3.2. Modifications. The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License. 3.3. Required Notices. You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer. 3.4. Application of Additional Terms. You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipientsÕ rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. 3.5. Distribution of Executable Versions. You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipientÕs rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form under a different license, You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. 3.6. Larger Works. You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software. 4. Versions of the License. 4.1. New Versions. Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License. 4.2. Effect of New Versions. You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. Otherwise, You may also choose to use, distribute or otherwise make the Covered Software available under the terms of any subsequent version of the License published by the license steward. 4.3. Modified Versions. When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License. 5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN ÒAS ISÓ BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 6. TERMINATION. 6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. 6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as ÒParticipantÓ) alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights granted directly or indirectly to You by such Participant, the Initial Developer (if the Initial Developer is not the Participant) and all Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively and automatically at the expiration of such 60 day notice period, unless if within such 60 day period You withdraw Your claim with respect to the Participant Software against such Participant either unilaterally or pursuant to a written agreement with Participant. 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination. 7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTYÕS NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 8. U.S. GOVERNMENT END USERS. The Covered Software is a Òcommercial item,Ó as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of Òcommercial computer softwareÓ (as that term is defined at 48 C.F.R. ¤252.227-7014(a)(1)) and Òcommercial computer software documentationÓ as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth herein. This U.S. Government Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or provision that addresses Government rights in computer software under this License. 9. MISCELLANEOUS. This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdictionÕs conflict-of-law provisions. Any litigation relating to this License shall be subject to the jurisdiction of the courts located in the jurisdiction and venue specified in a notice contained within the Original Software, with the losing party responsible for costs, including, without limitation, court costs and reasonable attorneysÕ fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. You agree that You alone are responsible for compliance with the United States export administration regulations (and the export control laws and regulation of any other countries) when You use, distribute or otherwise make available any Covered Software. 10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) The code released under the CDDL shall be governed by the laws of the State of California (excluding conflict-of-law provisions). Any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California and the state courts of the State of California, with venue lying in Santa Clara County, California. ******************************************************* The GNU General Public License (GPL) Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. One line to give the program's name and a brief idea of what it does. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. "CLASSPATH" EXCEPTION TO THE GPL VERSION 2 Certain source files distributed by Sun Microsystems, Inc. are subject to the following clarification and special exception to the GPL Version 2, but only where Sun has expressly included in the particular source file's header the words: "Sun designates this particular file as subject to the "Classpath" exception as provided by Sun in the License file that accompanied this code." Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License Version 2 cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.carmetal-4.3/src/net/java/dev/colorchooser/ColorChooser.java000066400000000000000000000331011417122252700241720ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import java.util.MissingResourceException; import java.util.ResourceBundle; import javax.swing.JComponent; import javax.swing.UIManager; /** * A color chooser which can pop up a pluggable set of palettes. The palette * displayed is controlled by combinations of the alt and shift and ctrl * (command on macintosh) keys. Will fire an action event when a color is * selected. For accessibility, it will show a standard Swing color chooser if * focused and either space or enter are pressed. *

* By default, supports two sets of palettes - a set of 4 continuous palettes * and a set of 4 tiled, fixed palettes (the SVG/X palette, Swing/AWT palettes * and a history of recently selected colors). Whether the tiled or continuous * palettes are given precedence depends on the property * continuousPalettePreferred. *

* Palettes are pluggable, so it is possible to provide your own * implementation(s) of Palette to be displayed when the component is clicked. *

* Typical usage: Attach an ActionListener; it will be notified when the user * selects a color. *

* To catch colors as the user selects, listen for PROP_TRANSIENT_COLOR. The * component will fire changes in PROP_COLOR along with actin events, when the * user selects a color. PROP_COLOR changes are fired both in response to use * actions and programmatic changes to the color property. *

* * @author Tim Boudreau */ public class ColorChooser extends JComponent { /** * */ private static final long serialVersionUID=1L; /** * UI Class ID under which the UI delegate class is stored in UIManager (see * UIManager.getUI()). The string value is * "nbColorChooserUI" */ public static final String UI_CLASS_ID="nbColorChooserUI"; // NOI18N private transient Palette[] palettes=null; private Color color=Color.BLUE; private transient Color transientColor=null; private transient ArrayList actionListenerList; /** * Property name for property fired when the color property changes. */ public static final String PROP_COLOR="color"; // NOI18N /** * Property name for property fired when the transient color property (the * color while the user is selecting) changes. */ public static final String PROP_TRANSIENT_COLOR="transientColor"; // NOI18N /** * Fired when the value of the continuous palette changes. */ public static final String PROP_CONTINUOUS_PALETTE="continuousPalette"; // NOI18N /** * Property indicating the visibility of the popup palette. Code that tracks * PROP_TRANSIENT_COLOR can listen for this property with a value of false * to do a final update using the value from getColor() to ensure the set * color is in sync with the actual value of the color picker - in the case * that the mouse was released off the palette, the color may be restored to * its previous value. */ public static final String PROP_PICKER_VISIBLE="pickerVisible"; private boolean continuousPalette=true; /** Create a color chooser */ public ColorChooser() { this((Color) null); } /** * Create a color chooser initialized to the passed color, defaulted to show * a continuous palette on initial click. * * @param initialColor */ public ColorChooser(final Color initialColor) { this(null, initialColor); } /** * Create a color chooser with the passed array of 8 palettes and * initialized with the passed color. * * @param palettes * @param initialColor */ public ColorChooser(final Palette[] palettes, final Color initialColor) { setPalettes(palettes); if (initialColor!=null) { color=initialColor; } updateUI(); } /** * Create a color chooser with the passed array of 8 or fewer palettes. * * @param palettes */ public ColorChooser(final Palette[] palettes) { this(palettes, null); } /** * Overridden to return UI_CLASS_ID * * @return */ public String getUIClassId() { return UI_CLASS_ID; } /** * */ @Override public void updateUI() { if (UIManager.get(UI_CLASS_ID)!=null) { setUI((ColorChooserUI) UIManager.getUI(this)); } else { setUI(DefaultColorChooserUI.createUI(this)); } } /** * Get the color currently represented by this component. If the user is in * the process of selecting (the palette or color chooser is open), this * will be the last known value, until such time as the user selects a color * and an action event is fired. * * @return */ public Color getColor() { return color; } /** * Set the color this color chooser currently represents. Note this will * fire a change in PROP_COLOR but will not trigger an action * event to be fired. * * @param c */ public void setColor(Color c) { if (c.getClass()!=Color.class) { c=new Color(c.getRed(), c.getGreen(), c.getBlue()); } if ((color!=null&&!color.equals(c))||(color==null&&c!=null)) { final Color old=color; color=c; repaint(); firePropertyChange(PROP_COLOR, old, c); // NOI18N } } void setTransientColor(final Color c) { final Color old=transientColor; transientColor=c; if ((c!=null&&!color.equals(old))||(old==null&&c!=null)) { firePropertyChange(PROP_TRANSIENT_COLOR, old, getTransientColor()); repaint(); } else if (c==null) { firePropertyChange(PROP_TRANSIENT_COLOR, old, getColor()); repaint(); } } /** * Returns the currently displayed color which may not be the same as the * value of getColor() but is the color currently displayed as * the user moves the mouse to select the color. * * @see #PROP_TRANSIENT_COLOR * @see #setTransientColor * @return the color currently being displayed (not necessarily the one * returned by getColor()). */ public Color getTransientColor() { return transientColor==null?null:new Color(transientColor.getRed(), transientColor.getGreen(), transientColor.getBlue()); } /** * Get a string representation of a color, if possible returning a named, * localized constant if the passed color matches one of the SVG constants; * else returning a String representing RGB values. * * @param c * @return */ public static String colorToString(final Color c) { RecentColors.getDefault(); final NamedColor named=RecentColors.findNamedColor(c); if (named==null) { final StringBuffer sb=new StringBuffer(); sb.append(c.getRed()); sb.append(','); sb.append(c.getGreen()); sb.append(','); sb.append(c.getBlue()); return sb.toString(); } else { return named.getDisplayName(); } } Color transientColor() { return transientColor; } /** * Returns the SVG or Swing constant name for the passed color, if the color * exactly matches a color in the Swing UIManager constants or the * SVG/X-Windows constants. * * @param color * @return */ public static String getColorName(final Color color) { return PredefinedPalette.getColorName(color); } /** * Set whether the initial palette shown when clicked with no keys pressed * is one showing a continuous (rainbow) palette or a set of tiles with * different colors. * * @param val * The value, true to show a continuous palette by default */ public void setContinuousPalettePreferred(final boolean val) { if (val!=continuousPalette) { continuousPalette=val; setPalettes(null); firePropertyChange(PROP_CONTINUOUS_PALETTE, !val, val); } } /** * Determine whether the initial palette shown when clicked with no keys * pressed is one showing a continuous (rainbow) palette or a set of tiles * with different colors. The default is TRUE. * * @return whether or not to default to a continuous palette */ public boolean isContinuousPalettePreferred() { return continuousPalette; } /** * Set the Palette objects this color chooser will display. Can be null to * reset to defaults. The passed array length must less than or equal to 8. *

* Which palette is shown to the user depends on what if any control keys * are being held when the user initially clicks or presses while dragging * the mouse to select. The mapping between key combinations and palette * entries is: *

    *
  • No keys held: 0
  • *
  • Shift: 1
  • *
  • Ctrl (Command on macintosh): 2
  • *
  • Shift-Ctrl(Command): 3
  • *
  • Alt: 4
  • *
  • Alt-Shift: 5
  • *
  • Alt-Ctrl(Command): 6
  • *
  • Alt-Ctrl(Command)-Shift: 7
  • *
* * @param palettes */ public void setPalettes(Palette[] palettes) { if (palettes!=null&&palettes.length>8) { throw new IllegalArgumentException("Must be <= 8 palettes"); // NOI18N } final Palette[] old=this.palettes; if (palettes==null) { palettes=Palette.getDefaultPalettes(continuousPalette); } this.palettes=palettes; firePropertyChange("palettes", old, palettes.clone()); // NOI18N } /** * Get the array of palettes that will be displayed when the user clicks * this color chooser component and holds down various keys. * * @return */ public Palette[] getPalettes() { final Palette[] result=new Palette[palettes.length]; System.arraycopy(palettes, 0, result, 0, palettes.length); return result; } static String getString(final String key) { if (key==null) { return null; } final String BUNDLE="net.java.dev.colorchooser.Bundle"; // NOI18N try { return ResourceBundle.getBundle(BUNDLE).getString(key); } catch (final MissingResourceException mre) { // mre.printStackTrace(); return key; } } // ****************** Action listener support ************************** /** * Registers ActionListener to receive events. Action events are fired when * the user selects a color, either by click-drag-releasing the mouse over * the popup palette, or by pressing space or enter and selecting a color * from the popup JColorChooser. * * @param listener * The listener to register. */ public synchronized void addActionListener( final java.awt.event.ActionListener listener) { if (actionListenerList==null) { actionListenerList=new ArrayList(); } actionListenerList.add(listener); } /** * Removes ActionListener from the list of listeners. Action events are * fired when the user selects a color, either by click-drag-releasing the * mouse over the popup palette, or by pressing space or enter and selecting * a color from the popup JColorChooser (note they are * not fired if you call setColor()). * * @param listener * The listener to remove. */ public synchronized void removeActionListener( final java.awt.event.ActionListener listener) { if (actionListenerList!=null) { actionListenerList.remove(listener); } } /** * Notifies all registered listeners about the event. * * @param event * The event to be fired */ void fireActionPerformed(final ActionEvent event) { List list; synchronized (this) { if (actionListenerList==null) { return; } list=(List) ((ArrayList) actionListenerList).clone(); } for (int i=0; iBeanDescriptors. * * @return BeanDescriptor describing the editable properties of this bean. * May return null if the information should be obtained by * automatic analysis. */ @Override public BeanDescriptor getBeanDescriptor() { return getBdescriptor(); } /** * Gets the bean's PropertyDescriptors. * * @return An array of PropertyDescriptors describing the editable * properties supported by this bean. May return null if the * information should be obtained by automatic analysis. *

* If a property is indexed, then its entry in the result array will * belong to the IndexedPropertyDescriptor subclass of * PropertyDescriptor. A client of getPropertyDescriptors can use * "instanceof" to check if a given PropertyDescriptor is an * IndexedPropertyDescriptor. */ @Override public PropertyDescriptor[] getPropertyDescriptors() { return getPdescriptor(); } /** * Gets the bean's EventSetDescriptors. * * @return An array of EventSetDescriptors describing the kinds of events * fired by this bean. May return null if the information should be * obtained by automatic analysis. */ @Override public EventSetDescriptor[] getEventSetDescriptors() { return getEdescriptor(); } /** * Gets the bean's MethodDescriptors. * * @return An array of MethodDescriptors describing the methods implemented * by this bean. May return null if the information should be * obtained by automatic analysis. */ @Override public MethodDescriptor[] getMethodDescriptors() { return getMdescriptor(); } /** * A bean may have a "default" property that is the property that will * mostly commonly be initially chosen for update by human's who are * customizing the bean. * * @return Index of default property in the PropertyDescriptor array * returned by getPropertyDescriptors. *

* Returns -1 if there is no default property. */ @Override public int getDefaultPropertyIndex() { return defaultPropertyIndex; } /** * A bean may have a "default" event that is the event that will mostly * commonly be used by human's when using the bean. * * @return Index of default event in the EventSetDescriptor array returned * by getEventSetDescriptors. *

* Returns -1 if there is no default event. */ @Override public int getDefaultEventIndex() { return defaultEventIndex; } /** * This method returns an image object that can be used to represent the * bean in toolboxes, toolbars, etc. Icon images will typically be GIFs, but * may in future include other formats. *

* Beans aren't required to provide icons and may return null from this * method. *

* There are four possible flavors of icons (16x16 color, 32x32 color, 16x16 * mono, 32x32 mono). If a bean choses to only support a single icon we * recommend supporting 16x16 color. *

* We recommend that icons have a "transparent" background so they can be * rendered onto an existing background. * * @param iconKind * The kind of icon requested. This should be one of the constant * values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or * ICON_MONO_32x32. * @return An image object representing the requested icon. May return null * if no suitable icon is available. */ @Override public java.awt.Image getIcon(final int iconKind) { switch (iconKind) { case ICON_COLOR_16x16: if (iconNameC16 == null) return null; else { if (iconColor16 == null) iconColor16 = loadImage(iconNameC16); return iconColor16; } case ICON_COLOR_32x32: if (iconNameC32 == null) return null; else { if (iconColor32 == null) iconColor32 = loadImage(iconNameC32); return iconColor32; } case ICON_MONO_16x16: if (iconNameM16 == null) return null; else { if (iconMono16 == null) iconMono16 = loadImage(iconNameM16); return iconMono16; } case ICON_MONO_32x32: if (iconNameM32 == null) return null; else { if (iconMono32 == null) iconMono32 = loadImage(iconNameM32); return iconMono32; } default: return null; } } } carmetal-4.3/src/net/java/dev/colorchooser/ColorChooserUI.java000066400000000000000000000252021417122252700244330ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Dimension; import java.awt.Event; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JColorChooser; import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; /** * Parent class of UI delegates for color choosers. This class handles popping * up palettes and selection/setting transient color and firing events. * Generally, subclasses will simply want to override the painting logic. *

* To completely override all behavior, override installListeners() * and uninstallListeners() and do not have them call super. * * @author Tim Boudreau */ public abstract class ColorChooserUI extends ComponentUI { /** Creates a new instance of ColorChooserUI */ protected ColorChooserUI() { } @Override public final void installUI(final JComponent jc) { installListeners((ColorChooser) jc); init((ColorChooser) jc); } @Override public final void uninstallUI(final JComponent jc) { uninstallListeners((ColorChooser) jc); uninit((ColorChooser) jc); } /** Optional initialization method called from installUI() */ protected void init(final ColorChooser c) { } /** Optional initialization method called from uninstallUI() */ protected void uninit(final ColorChooser c) { } /** Begin listening for mouse events on the passed component */ protected void installListeners(final ColorChooser c) { final L l = new L(); c.addMouseListener(l); c.addFocusListener(l); c.addKeyListener(l); c.putClientProperty("uiListener", l); // NOI18N } /** Stop listening for mouse events on the passed component */ protected void uninstallListeners(final ColorChooser c) { final Object o = c.getClientProperty("uiListener"); // NOI18N if (o instanceof L) { final L l = (L) o; c.removeMouseListener(l); c.removeFocusListener(l); c.removeKeyListener(l); } } /** Running on macintosh? */ static final boolean MAC = System.getProperty("mrj.version") // NOI18N != null; /** * * Map a key event to an integer used to index into the array of available * palettes, used to change which palette is displayed on the fly. Note this * method reads the key code, not the modifiers, of the key event. *

* If you override this method, also override * paletteIndexFromModifiers. *

* The palette actually used is as follows: *

    *
  • No keys held: 0
  • *
  • Shift: 1
  • *
  • Ctrl (Command on macintosh): 2
  • *
  • Shift-Ctrl(Command): 3
  • *
  • Alt: 4
  • *
  • Alt-Shift: 5
  • *
  • Alt-Ctrl(Command): 6
  • *
  • Alt-Ctrl(Command)-Shift: 7
  • *
*/ protected int paletteIndexFromKeyCode(final KeyEvent ke) { final int keyCode = ke.getKeyCode(); int result = (keyCode == KeyEvent.VK_SHIFT) ? 1 : 0; if (MAC) { result += (keyCode == KeyEvent.VK_META) ? 2 : 0; } else { result += (keyCode == KeyEvent.VK_CONTROL) ? 2 : 0; } result += (keyCode == KeyEvent.VK_ALT) ? 4 : 0; return result; } /** * * Map the modifiers on an input event to an integer used to index into the * array of available palettes, used to change which palette is displayed on * the fly. Note this method uses the value of from the event's * getModifiersEx() method. *

* If you override this method, also override * paletteIndexFromKeyCode. *

* The palette actually used is as follows: *

    *
  • No keys held: 0
  • *
  • Shift: 1
  • *
  • Ctrl (Command on macintosh): 2
  • *
  • Shift-Ctrl(Command): 3
  • *
  • Alt: 4
  • *
  • Alt-Shift: 5
  • *
  • Alt-Ctrl(Command): 6
  • *
  • Alt-Ctrl(Command)-Shift: 7
  • *
*/ protected int paletteIndexFromModifiers(final InputEvent me) { final int mods = me.getModifiersEx(); int result = ((mods & InputEvent.SHIFT_DOWN_MASK) != 0) ? 1 : 0; result += ((mods & InputEvent.CTRL_DOWN_MASK) != 0) ? 2 : 0; result += ((mods & InputEvent.ALT_DOWN_MASK) != 0) ? 4 : 0; return result; } private JColorChooser jchooser = null; /** * Called when the color chooser is invoked from the keyboard (user pressed * space or enter). */ protected void keyboardInvoke(final ColorChooser colorChooser) { if (!colorChooser.isEnabled()) { Toolkit.getDefaultToolkit().beep(); return; } if (jchooser == null) { jchooser = new JColorChooser(); } else { return; } jchooser.setColor(colorChooser.getColor()); final Color nue = JColorChooser.showDialog(colorChooser, ColorChooser .getString("chooseColor"), // NOI18N colorChooser.getColor()); if (nue != null) { colorChooser.setColor(nue); fireColorChanged(colorChooser); } jchooser = null; } /** * Cause the passed color chooser to fire an action event to its listeners * notifying them that the color has changed. */ protected void fireColorChanged(final ColorChooser chooser) { chooser.fireActionPerformed(new ActionEvent(chooser, ActionEvent.ACTION_PERFORMED, "color")); // NOI18N } @Override public Dimension getMaximumSize(final JComponent c) { if (!c.isMaximumSizeSet()) { return getPreferredSize(c); } else { return super.getMaximumSize(c); } } @Override public Dimension getMinimumSize(final JComponent c) { if (!c.isMinimumSizeSet()) { return getPreferredSize(c); } else { return super.getMinimumSize(c); } } @Override public Dimension getPreferredSize(final JComponent c) { if (!c.isPreferredSizeSet()) { return new Dimension(24, 24); } else { return super.getPreferredSize(c); } } private class L extends MouseAdapter implements FocusListener, KeyListener { private int paletteIndex = 0; private transient Point nextFocusPopupLocation = null; int getPaletteIndex() { return paletteIndex; } void initPaletteIndex(final ColorChooser c, final MouseEvent me) { paletteIndex = paletteIndexFromModifiers(me); checkRange(c); } private void checkRange(final ColorChooser chooser) { final Palette[] p = chooser.getPalettes(); if (paletteIndex >= p.length) { paletteIndex = p.length - 1; } } private void updatePaletteIndex(final ColorChooser chooser, final int value, final boolean pressed) { final int oldIndex = paletteIndex; int result = paletteIndex; if (pressed) { result |= value; } else { result ^= value; } if (oldIndex != result && PalettePopup.getDefault().isPopupVisible(chooser)) { paletteIndex = result; checkRange(chooser); PalettePopup.getDefault().setPalette( chooser.getPalettes()[paletteIndex]); } } @Override public void mousePressed(final MouseEvent me) { // boolean rightclic=me.isPopupTrigger(); final boolean rightclic = (me.getModifiers() == Event.META_MASK); final ColorChooser chooser = (ColorChooser) me.getSource(); if (!chooser.isEnabled()) { Toolkit.getDefaultToolkit().beep(); return; } // Point p = me.getPoint(); final Point p = chooser.getLocationOnScreen(); p.translate(chooser.getWidth(), chooser.getHeight()); // SwingUtilities.convertPointToScreen(p, chooser); initPaletteIndex(chooser, me); if (rightclic) { PalettePopup.getDefault().setPalette(chooser.getPalettes()[7]); } else { PalettePopup.getDefault().setPalette( chooser.getPalettes()[getPaletteIndex()]); } if (chooser.hasFocus()) { PalettePopup.getDefault().showPopup(chooser, p); } else { nextFocusPopupLocation = p; chooser.requestFocus(); return; } me.consume(); nextFocusPopupLocation = null; } @Override public void mouseReleased(final MouseEvent me) { // if (me.isPopupTrigger()) return; final ColorChooser chooser = (ColorChooser) me.getSource(); if (!chooser.isEnabled()) { Toolkit.getDefaultToolkit().beep(); return; } nextFocusPopupLocation = null; if (PalettePopup.getDefault().isPopupVisible(chooser)) { PalettePopup.getDefault().hidePopup(chooser); final Color transientColor = chooser.transientColor(); if (transientColor != null) { RecentColors.getDefault().add(transientColor); final Color old = new Color(transientColor.getRed(), transientColor.getGreen(), transientColor.getBlue()); chooser.setTransientColor(null); chooser.setColor(old); fireColorChanged(chooser); me.consume(); } } } public void focusGained(final FocusEvent e) { final ColorChooser chooser = (ColorChooser) e.getSource(); if (nextFocusPopupLocation != null && chooser.isEnabled()) { PalettePopup.getDefault().showPopup(chooser, nextFocusPopupLocation); } nextFocusPopupLocation = null; chooser.repaint(); } public void focusLost(final FocusEvent e) { final ColorChooser chooser = (ColorChooser) e.getSource(); chooser.repaint(); } public void keyTyped(final KeyEvent e) { } public void keyPressed(final KeyEvent e) { processKeyEvent(e, true); } public void keyReleased(final KeyEvent e) { processKeyEvent(e, false); } protected void processKeyEvent(final KeyEvent ke, final boolean pressed) { final ColorChooser chooser = (ColorChooser) ke.getSource(); updatePaletteIndex(chooser, paletteIndexFromKeyCode(ke), pressed); if (ke.getKeyCode() == KeyEvent.VK_ALT || ke.getKeyCode() == KeyEvent.VK_CONTROL || ke.getKeyCode() == KeyEvent.VK_SHIFT) { ke.consume(); } else if ((ke.getKeyCode() == KeyEvent.VK_SPACE || ke.getKeyCode() == KeyEvent.VK_ENTER) && ke.getID() == KeyEvent.KEY_RELEASED) { keyboardInvoke(chooser); } } } } carmetal-4.3/src/net/java/dev/colorchooser/ContinuousPalette.java000066400000000000000000000247251417122252700252720ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Point; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; /* * SpectrumImageImage.java * * Created on January 10, 2000, 4:54 PM */ /** * This class is palette that uses an offscreen bitmap which contains a spectrum * of color and hue. The direction of gradients and saturation are settable by * arguments to the constructor. * * @author Tim Boudreau */ final class ContinuousPalette extends Palette { public static final int SMALL_SPEC_WIDTH = 128; public static final int SMALL_SPEC_HEIGHT = 64; public static final int LARGE_SPEC_WIDTH = 200; public static final int LARGE_SPEC_HEIGHT = 100; public static final int SPEC_IMAGE_COUNT = 8; private BufferedImage img = null; /** * Set true when the bitmap has been built. Bitmap is built on the first * call to paintTo(), or the first call to PaintTo() subsequent to a * property being changed that affects the contents of the bitmap. */ private boolean initialized = false; /** * Holds value of property saturation. Determines the maximum saturation * level present in the bitmap */ private float saturation = 1f; /** * Holds value of property verticalHue. When set true, hue rotation is * vertical */ private boolean verticalHue = true; /** Default value for gray strip on horizontal hue gradients */ private float grayStripSize = 0.05f; private String name; /** * Creates a ContinuousPalette object with user specifiable size and * saturation and the default horizontal hue gradient direction. */ ContinuousPalette(final String name, final int width, final int height, final float saturation) { img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); this.setSaturation(saturation); this.name = name; } /** * Creates a ContinuousPalette object with user specifiable size, saturation * and hue gradient direction. * * @param width * The width of the image to be created * @param height * The height of the image to be created * @param saturation * The saturation of the image to be created * @param vHue * Sets vertical or horizontal hue gradient */ private ContinuousPalette(final String name, final int width, final int height, final float saturation, final boolean vHue) { img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); this.setSaturation(saturation); this.verticalHue = vHue; this.name = name; } /** * Builds the spectrum bitmap in memory by iterating through all of the * pixels and calling getColorAt for each. */ protected void initImage() { int currColor; for (int x = 0; x < img.getWidth(); x++) { for (int y = 0; y < img.getHeight(); y++) { currColor = getColorAt(x, y).getRGB(); img.setRGB(x, y, currColor); } } } /** * Public implementation of InitImage() - tests whether spectrum image has * already been built and only builds it if needed. */ public final void initializeImage() { if (!initialized) initImage(); } /** * Paints the image at Coordinates 0,0 on the graphics context passed to it. * * @param g * A graphics context to be painted into */ @Override public void paintTo(final java.awt.Graphics g) { if (g != null) { initializeImage(); ((Graphics2D) g).drawRenderedImage(img, AffineTransform .getTranslateInstance(0, 0)); initialized = true; } } /** * Returns the color a pixel at a given point should be as an RGB int. Color * is calculated as follows - Saturation is constant up to the halfway point * in the brightness gradient direction, and brightness rises. At 100% * brightness, you have a fully saturated color. From this point on, * Brightness is constant at 1.0 and saturation drops linearly from the * saturation property value down to 0. * * @param x * The X coordinate for which a color value is desired * @param y * The Y coordinate for which a color value is desired */ @Override public java.awt.Color getColorAt(final int x, final int y) { float hue; float brightness; float workingSaturation; final boolean inGrayStrip = ((float) y) / img.getHeight() > (1 - grayStripSize); if (verticalHue) { hue = ((float) y) / img.getHeight(); // Hue value from 0-1 based on // y position brightness = ((float) x) / img.getWidth(); // base brightness value // 0-1 based on x // location } else { if (inGrayStrip) return grayValueFromX(x); hue = 1 - (((float) x) / img.getWidth()); // subtract from 1 so // lightest color are at // top brightness = 1 - ((float) y) / img.getHeight(); } brightness = brightness * 2; // brightness increases to the halfway // point along the brightening axis. if (brightness > 1) { // beyond that point, saturation goes down so // color moves toward white workingSaturation = saturation - ((brightness - 1) * saturation); // if // we're // past // the // halfway // point, brightness = 1; // we're decrementing saturation } else { workingSaturation = saturation; } final java.awt.Color newColor = java.awt.Color.getHSBColor(hue, workingSaturation, brightness); return newColor; } public java.awt.Color colorFromPoint(final Point p) { final int x = new Double(p.getX()).intValue(); final int y = new Double(p.getY()).intValue(); return getColorAt(x, y); } /** * Called by InitImage() to draw the grayscale strip at the bottom of * horizontal-hue spectrum images. Returns a grayscale value based on the * width of the image, when called with a horizontal coordinate. * * @param x * The x coordinate for which a grayscale value is desired * @return The grayscale value (expressed as an RGB integer value) */ protected java.awt.Color grayValueFromX(final int x) { final java.awt.Color newColor = java.awt.Color.getHSBColor(0, 0, ((float) x) / img.getWidth()); return newColor; } /** * Getter for property saturation. Saturation defines the base saturation * for all colors in the image. Setting it to less that 1 causes the colors * to be more desaturated in the resulting bufferedImage. * * @return Returns the maximum saturation value for any colors to be * generated in the bufferedImage. */ public float getSaturation() { return saturation; } /** * Sets the maximum saturation for any colors in the image. Constrained from * 0-1. Changing this property will cause the image to be regenerated the * next time it is needed, or the next time initializeImage() is called. * * @param saturation * New value of property saturation. */ public void setSaturation(final float saturation) { if (this.saturation != saturation) { this.saturation = saturation; doChange(); } } /** * Getter for property verticalHue. * * @return Value of property verticalHue. */ public boolean isVerticalHue() { return verticalHue; } /** * Setter for property verticalHue. * * @param verticalHue * New value of property verticalHue. */ public void setVerticalHue(final boolean verticalHue) { if (this.verticalHue != verticalHue) { this.verticalHue = verticalHue; doChange(); } } /** * Called when a parameter is changed that requires that the spectrum image * be rebuilt, so that the next time the image is asked for, it will be. */ protected void doChange() { initialized = false; } /** * Setter for the grayStripSize property, which determines the percentage * (expressed as a float between 0 and 1) of the image height taken up by * the grayscale strip. */ public void setGrayStripSize(final float grayStripSize) { float workingGrayStripSize = grayStripSize; if (workingGrayStripSize > 1) workingGrayStripSize = 1; // handle screwy > 1 values just in case if (workingGrayStripSize != grayStripSize) { this.grayStripSize = grayStripSize; doChange(); } } /** * Getter for the GrayStripSize property, which returns the percentage * (expressed as a float between 0 and 1) of the height of the image taken * up by the gray scale strip for selecting non-colored pixels. */ public float getGrayStripSize() { return this.grayStripSize; } /** * Returns the size of the image as a java.awt.Dimension object. */ @Override public Dimension getSize() { return new Dimension(img.getWidth(), img.getHeight()); } @Override public String getNameAt(final int x, final int y) { final Color c = getColorAt(x, y); final StringBuffer sb = new StringBuffer(); sb.append(c.getRed()); sb.append(','); // NOI18N sb.append(c.getGreen()); sb.append(','); // NOI18N sb.append(c.getBlue()); return sb.toString(); } private static Palette[] defaultPalettes = null; /** Create a default set of continuous palettes to use */ public static Palette[] createDefaultPalettes() { if (defaultPalettes == null) { defaultPalettes = new Palette[] { new ContinuousPalette("satLarge", LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, false), // NOI18N new ContinuousPalette("unsatLarge", LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, false), // NOI18N new ContinuousPalette("satLargeHoriz", LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 1f, true), // NOI18N new ContinuousPalette("unsatLargeHoriz", LARGE_SPEC_WIDTH, LARGE_SPEC_HEIGHT, 0.4f, true) // NOI18N }; } return defaultPalettes; } @Override public String getDisplayName() { return ColorChooser.getString(name); } @Override public void setSize(final int w, final int h) { } } carmetal-4.3/src/net/java/dev/colorchooser/DefaultColorChooserUI.java000066400000000000000000000063751417122252700257520ustar00rootroot00000000000000/* * The contents of this file are subject to the terms of the Common Development * and Distribution License (the License). You may not use this file except in * compliance with the License. * * You can obtain a copy of the License at http://www.netbeans.org/cddl.html * or http://www.netbeans.org/cddl.txt. * * When distributing Covered Code, include this CDDL Header Notice in each file * and include the License file at http://www.netbeans.org/cddl.txt. * If applicable, add the following below the CDDL Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyrighted [year] [name of copyright owner]" */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Graphics; import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; /** * Default UI delegate for color choosers. CCBorder handles minor per-look and * feel differences so we can use one delegate. Note this delegate is stateless * - there is one instance system-wide. State is kept by the listener - see * inner class L. * * @author Tim Boudreau */ final class DefaultColorChooserUI extends ColorChooserUI { DefaultColorChooserUI() { } private static DefaultColorChooserUI INSTANCE = null; public static ComponentUI createUI(final JComponent jc) { // assert jc instanceof ColorChooser; return getDefault(); } static DefaultColorChooserUI getDefault() { if (INSTANCE == null) { INSTANCE = new DefaultColorChooserUI(); } return INSTANCE; } @Override protected void init(final ColorChooser c) { c.setToolTipText(getDefaultTooltip()); c.setBorder(new CCBorder()); } @Override protected void uninit(final ColorChooser c) { if (c.getBorder() instanceof CCBorder) { c.setBorder(null); } if (getDefaultTooltip().equals(c.getToolTipText())) { c.setToolTipText(null); } } private static String getDefaultTooltip() { return MAC ? ColorChooser.getString("tip.mac") : // NOI18N ColorChooser.getString("tip"); // NOI18N } @Override public void paint(final Graphics g, final JComponent c) { final ColorChooser chooser = (ColorChooser) c; final Color col = chooser.transientColor() != null ? chooser .transientColor() : chooser.getColor(); g.setColor(col); g.fillRect(0, 0, chooser.getWidth() - 1, chooser.getHeight() - 1); if (chooser.hasFocus()) { g.setColor(invertColor(col)); g.drawRect(4, 4, chooser.getWidth() - 8, chooser.getHeight() - 8); } } // *****************Some utility methods for manipulating colors*********** /** Finds a color that will visually contrast with the selected color */ private static final Color invertColor(final Color c) { final int r = checkRange(255 - c.getRed()); final int g = checkRange(255 - c.getGreen()); final int b = checkRange(255 - c.getBlue()); return new Color(r, g, b); } /** * Checks to make sure the color component passed is not too close to * middle-of-the-road, and if so, returns its difference with 128. Used by * invertColor to make sure that it doesn't, for example, return 129,129,129 * as a color to contrast with 127,127,127. */ private static final int checkRange(final int i) { int result = i; if (Math.abs(128 - i) < 24) { result = Math.abs(128 - i); } return result; } } carmetal-4.3/src/net/java/dev/colorchooser/NamedColor.java000066400000000000000000000072151417122252700236230ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; /** * An abstract class representing a color which has a name and may provide * custom code for instantiation. Implements comparable in order to appear in an * ordered way in palettes. Note that this class is internal to the color * chooser. It is not acceptable for the color chooser to provide instances of * NamedColor from its getColor method, since they may be serialized and will * not be deserializable if their implementation is not on the classpath. * * @author Tim Boudreau */ abstract class NamedColor extends Color implements Comparable { /** * */ private static final long serialVersionUID = 1L; /** * Creates a new instance of NamedColor * * @param name * @param r * red * @param g * green * @param b * blue */ protected NamedColor(final String name, final int r, final int g, final int b) { super(r, g, b); } /** * Get a localized display name for this color if possible. For some colors, * such as named system colors, a localized variant is not a reasonable * option. * * @return the localized (or not) display name */ public abstract String getDisplayName(); /** * Get the programmatic name, if any, for this color, such as a Swing * UIDefaults key or an SVG constant name. */ public abstract String getName(); /** * Fetch a java code snippet for instantiating this color. For cases such as * named defaults from the Swing UIManager, this method might return * something such as UIManager.getColor("control"). * Useful when implementing a property editor. * * @return a string that could be pasted into Java code to instantiate a * color with these rgb values */ public String getInstantiationCode() { return toString(); } static NamedColor create(final Color c, final String name) { return new DefaultNamedColor(c, name); } private static final class DefaultNamedColor extends NamedColor { /** * */ private static final long serialVersionUID = 1L; private final String name; public DefaultNamedColor(final Color c, final String name) { super(name, c.getRed(), c.getGreen(), c.getBlue()); this.name = name; } @Override public String getDisplayName() { return name; } @Override public String getName() { return name; } public int compareTo(final Object o) { if (o instanceof NamedColor) { final NamedColor nc = (NamedColor) o; final String nm = nc.getDisplayName(); if (nm == null && getDisplayName() == null) { return 0; } else { return nm != null && getDisplayName() != null ? getDisplayName() .compareTo(nm) : -1; } } else { return -1; } } } } carmetal-4.3/src/net/java/dev/colorchooser/Palette.java000066400000000000000000000110331417122252700231670ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; /** * Model for a palette that can be painted, and from which colors may be * selected. An array of palettes to use may be supplied to a ColorChooser via * the setPalettes method. * * @author Tim Boudreau */ public abstract class Palette { /** * Returns the color at the specified point, or null if the point is beyond * the bounds of the palette or in an area that does not indicate a color * * @param x * - an horizontal coordinate in the coordinate space of the * palette * @param y * - a vertical coordinate in the coordinate space of the palette * @return - a color or null */ public abstract Color getColorAt(int x, int y); /** * Returns a string description of the color at the point. May be a name or * a set of RGB values, but should not be longer than 30 characters. Returns * null if the position is outside the bounds of the palette or has no * description associated with it. Generally getNameAt() should return null * from the same coordinates that getColorAt() would. * * @param x * an horizontal coordinate in the coordinate space of the * palette * @param y * a vertical coordinate in the coordinate space of the palette * @return a string describing the color at this coordinate or null * @see #getColorAt */ public abstract String getNameAt(int x, int y); /** * Paint this palette to a graphics context. * * @param g * - a graphics context to paint into */ public abstract void paintTo(Graphics g); /** * Get the on-screen size of this palette * * @return the size of this palette - corresponding to the screen space * required to display it and defining the coordinate space of this * palette. */ public abstract Dimension getSize(); /** * Get a localized name for this palette or null if a display name is not * warranted * * @return the display name */ public abstract void setSize(int w, int h); public abstract String getDisplayName(); /** * Get the default set of 8 palettes used by the color chooser. If * continuousFirst is true, the first four will be continuous palettes and * the second four swatches with named colors, system colors, etc. */ public static final Palette[] getDefaultPalettes( final boolean continuousFirst) { Palette[] result = new Palette[8]; final Palette[] first = continuousFirst ? ContinuousPalette .createDefaultPalettes() : PredefinedPalette .createDefaultPalettes(); final Palette[] second = !continuousFirst ? ContinuousPalette .createDefaultPalettes() : PredefinedPalette .createDefaultPalettes(); result = new Palette[second.length + first.length]; System.arraycopy(first, 0, result, 0, 4); System.arraycopy(second, 0, result, 4, 4); return result; } public static final Palette createContinuousPalette(final String name, final Dimension size, final float saturation) { if (size.width <= 0) throw new IllegalArgumentException("width less than or equal 0"); if (size.height <= 0) throw new IllegalArgumentException("height less than or equal 0"); return new ContinuousPalette(name, size.width, size.height, saturation); } public static final Palette createPredefinedPalette(final String name, final Color[] colors, final String[] names) { final NamedColor[] cc = new NamedColor[colors.length]; for (int i = 0; i < colors.length; i++) { cc[i] = NamedColor.create(colors[i], names[i]); } return new PredefinedPalette(name, cc); } } carmetal-4.3/src/net/java/dev/colorchooser/PalettePopup.java000066400000000000000000000244621417122252700242250ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Dimension; import java.awt.Font; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.GraphicsEnvironment; import java.awt.KeyboardFocusManager; import java.awt.Point; import java.awt.Rectangle; import java.awt.event.MouseAdapter; import java.awt.event.MouseMotionListener; import java.awt.image.BufferedImage; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.lang.ref.Reference; import java.lang.ref.SoftReference; import javax.swing.JComponent; import javax.swing.Popup; import javax.swing.PopupFactory; import javax.swing.SwingUtilities; import javax.swing.UIManager; /** * Encapsulates the logic of a popup palette which can callback a color chooser * to set its transient color or its final color if the mouse is released over * the palette. * * @author Tim Boudreau */ class PalettePopup extends MouseAdapter implements MouseMotionListener, PropertyChangeListener { private Popup pop = null; private PalettePanel panel = null; private Palette pal = null; private static Reference defaultInstance = null; /** Creates a new instance of PalettePopup */ private PalettePopup() { } public static PalettePopup getDefault() { PalettePopup result = null; if (defaultInstance != null) { result = (PalettePopup) defaultInstance.get(); } if (result == null) { result = new PalettePopup(); defaultInstance = new SoftReference(result); } return result; } private PalettePanel getPalettePanel() { if (panel == null) { panel = new PalettePanel(); } return panel; } public void setPalette(final Palette pal) { if (pal != this.pal) { if (isPopupVisible()) { final Dimension newSize = pal.getSize(); final Dimension oldSize = this.pal.getSize(); if (newSize.equals(oldSize)) { panel.setPalette(pal); panel.repaint(); } else { synchronized (lastOwner.getTreeLock()) { pop.hide(); panel.setPalette(pal); pop = PopupFactory.getSharedInstance().getPopup( lastOwner, getPalettePanel(), lastCoords.x, lastCoords.y); pop.show(); } } } this.pal = pal; } } private Palette getPalette() { return pal; } private ColorChooser lastOwner; private Point lastCoords; public void showPopup(final ColorChooser owner, final Point coords) { if (pal == null) { throw new IllegalStateException("No palette specified"); } setPopupOwner(owner); lastCoords = coords; if (pop != null) { pop.hide(); pop = null; } final PalettePanel pp = getPalettePanel(); pp.setPalette(getPalette()); final Dimension sz = pp.getPreferredSize(); final Rectangle r = owner.getGraphicsConfiguration().getDevice() .getDefaultConfiguration().getBounds(); final Rectangle test = new Rectangle(coords, sz); if (!r.contains(test)) { final int offy = Math.max(0, (test.y + test.height) - (r.y + r.height)); final int offx = Math.max(0, (test.x + test.width) - (r.x + r.width)); coords.x -= offx; coords.y -= offy; } pop = PopupFactory.getSharedInstance().getPopup(owner, pp, coords.x, coords.y); pop.show(); owner.firePickerVisible(true); KeyboardFocusManager.getCurrentKeyboardFocusManager() .addPropertyChangeListener(this); } private void setPopupOwner(final ColorChooser owner) { if (lastOwner == owner) { return; } if (lastOwner != null) { detachFromOwner(); lastOwner.firePickerVisible(false); } attachToOwner(owner); } private void detachFromOwner() { if (lastOwner != null) { lastOwner.removeMouseMotionListener(this); lastOwner.removeMouseListener(this); } lastOwner = null; } private void attachToOwner(final ColorChooser owner) { lastOwner = owner; owner.addMouseListener(this); owner.addMouseMotionListener(this); } public void hidePopup(final ColorChooser owner) { if (owner != lastOwner) { return; } hidePopup(); } private void hidePopup() { if (pop != null) { pop.hide(); pop = null; detachFromOwner(); KeyboardFocusManager.getCurrentKeyboardFocusManager() .removePropertyChangeListener(this); } } private boolean isPopupVisible() { return pop != null; } public boolean isPopupVisible(final ColorChooser chooser) { return lastOwner == chooser && isPopupVisible(); } public void mouseDragged(final java.awt.event.MouseEvent e) { final Point p = e.getPoint(); SwingUtilities.convertPointToScreen(p, lastOwner); convertPointToPalette(p); final Dimension d = panel.getOffset(); if (d != null) { p.x -= d.width; p.y -= d.height; } if (p.x >= 0 && p.y >= 0 && p.x <= pal.getSize().width && p.y < pal.getSize().height) { lastOwner.setTransientColor(pal.getColorAt(p.x, p.y)); panel.setDisplayTitle(pal.getNameAt(p.x, p.y)); } else { lastOwner.setTransientColor(null); panel.setDisplayTitle(null); } } public void mouseMoved(final java.awt.event.MouseEvent e) { } private void convertPointToPalette(final Point p) { p.x -= lastCoords.x; p.y -= lastCoords.y; } public void propertyChange(final PropertyChangeEvent evt) { if ("focusOwner".equals(evt.getPropertyName())) { final Object o = evt.getNewValue(); if (o != panel && o != lastOwner) { hidePopup(); } } } private class PalettePanel extends JComponent { /** * */ private static final long serialVersionUID = 1L; private Palette pal = null; private PalettePanel() { } private String title = null; public void setPalette(final Palette pal) { Dimension oldSize = null; if (pal != null && isShowing()) { oldSize = pal.getSize(); } this.pal = pal; if (oldSize != null && pal != null && !pal.getSize().equals(oldSize)) { firePropertyChange("preferredSize", oldSize, pal.getSize()); // NOI18N } } public Dimension getOffset() { if (pal == null || pal.getDisplayName() == null) { return null; } return new Dimension(0, ((getPreferredSize().height - pal.getSize().height) / 2)); } @Override public void paintComponent(final Graphics g) { final Dimension d = pal.getSize(); final int y = getHeight() - d.height; if (pal.getDisplayName() != null) { final GradientPaint gp = new GradientPaint(0, 0, UIManager .getColor("controlHighlight"), 0, y / 2, UIManager .getColor("controlShadow")); ((Graphics2D) g).setPaint(gp); g.fillRect(0, 0, getWidth(), y / 2); final String s = pal.getDisplayName(); g.setFont(getFont().deriveFont(Font.BOLD, getFont().getSize() - 2)); final int ht = g.getFontMetrics(g.getFont()).getHeight(); final int wid = g.getFontMetrics(g.getFont()).stringWidth(s); final int xpos = (getWidth() / 2) - (wid / 2); g.setColor(UIManager.getColor("controlShadow")); g.drawLine(0, 0, getWidth() - 1, 0); g.drawLine(0, 0, 0, (y / 2) - 1); g.drawLine(getWidth() - 1, 0, getWidth() - 1, (y / 2) - 1); g.setColor(UIManager.getColor("textText")); g.drawString(s, xpos, ht - 3); g.translate(0, y / 2); } pal.paintTo(g); final int top = pal.getDisplayName() == null ? y : y / 2; final int bottom = pal.getDisplayName() == null ? getHeight() : getHeight() - top; final GradientPaint gp = new GradientPaint(0, getHeight() - y, UIManager.getColor("controlHighlight"), 0, bottom, UIManager.getColor("controlShadow")); // NOI18N ((Graphics2D) g).setPaint(gp); g.fillRect(0, getHeight() - y, getWidth(), top); if (title != null) { g.setColor(UIManager.getColor("textText")); // NOI18N g.setFont(getFont().deriveFont(Font.PLAIN, getFont().getSize() - 2)); final int xp = (getWidth() - g.getFontMetrics(g.getFont()) .stringWidth(title)) - 3; g.drawString(title, xp, getHeight() - (pal.getDisplayName() == null ? 4 : (y / 2) + 4)); } g.setColor(UIManager.getColor("controlShadow")); // NOI18N g.drawLine(0, getHeight() - y, 0, getHeight()); g.drawLine(0, getHeight() - (top + 1), getWidth() - 1, getHeight() - (top + 1)); g.drawLine(getWidth() - 1, getHeight() - (top + 1), getWidth() - 1, getHeight() - y); } public void setDisplayTitle(final String s) { if (s != title && ((s != null) != (title != null) || ((s != null && !s .equals(title))))) { title = s; repaint(); } if (s == null && title != null) { title = null; repaint(); } } @Override public Dimension getPreferredSize() { if (pal != null) { final Dimension result = new Dimension(pal.getSize()); int spacing = 14; if (lastOwner != null) { Graphics g = lastOwner.getGraphics(); if (g == null) { try { g = GraphicsEnvironment .getLocalGraphicsEnvironment() .getDefaultScreenDevice() .getDefaultConfiguration() .createCompatibleImage(1, 1) .createGraphics(); } catch (final SecurityException e) { g = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB) .createGraphics(); } } if (g != null) { Font f = getFont() == null ? UIManager .getFont("controlFont") : getFont(); if (f == null) { f = new Font("Serif", Font.PLAIN, 12); } spacing = g.getFontMetrics( f.deriveFont(Font.PLAIN, f.getSize() - 2)) .getHeight(); } g.dispose(); } if (pal.getDisplayName() != null) { spacing *= 2; } result.height += spacing; return result; } else { return new Dimension(10, 10); } } } } carmetal-4.3/src/net/java/dev/colorchooser/PredefinedPalette.java000066400000000000000000000555241417122252700251720ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.SystemColor; import java.util.Arrays; import javax.swing.UIManager; /** * A palette of swatches with predefined colors * * @author Tim Boudreau */ class PredefinedPalette extends Palette { NamedColor[] colors; private int swatchSize = 11; private final int gap = 1; private static final Rectangle scratch = new Rectangle(); private final String name; /** Creates a new instance of PredefinedPalette */ public PredefinedPalette(final String name, final NamedColor[] colors) { this.colors = colors; this.name = name; Arrays.sort(colors); if (colors.length < 14) { swatchSize = 24; } else if (colors.length < 40) { swatchSize = 16; } } @Override public java.awt.Color getColorAt(final int x, final int y) { Color result = null; final int idx = indexForPoint(x, y); if (idx != -1 && idx < colors.length) { result = colors[idx]; } return result; } @Override public void paintTo(final java.awt.Graphics g) { g.setColor(Color.BLACK); final Dimension size = getSize(); g.fillRect(0, 0, size.width, size.height); for (int i = 0; i < colors.length; i++) { final Color c = colors[i]; rectForIndex(i, scratch); g.setColor(c); g.fillRect(scratch.x, scratch.y, scratch.width, scratch.height); if (Color.BLACK.equals(c)) { g.setColor(Color.GRAY); } else { g.setColor(c.brighter()); } g.drawLine(scratch.x, scratch.y, scratch.x + scratch.width - 1, scratch.y); g.drawLine(scratch.x, scratch.y, scratch.x, scratch.y + scratch.height - 1); if (Color.BLACK.equals(c)) { g.setColor(Color.GRAY.darker()); } else { g.setColor(c.darker()); } g.drawLine(scratch.x + scratch.width - 1, scratch.y + scratch.height - 1, scratch.width + scratch.x - 1, scratch.y + 1); g.drawLine(scratch.x + scratch.width - 1, scratch.y + scratch.height - 1, scratch.x, scratch.y + scratch.height - 1); } } @Override public String getNameAt(final int x, final int y) { final NamedColor nc = (NamedColor) getColorAt(x, y); if (nc != null) { return nc.getDisplayName(); } else { return null; } } protected int getCount() { return colors.length; } Dimension calcSize() { final int count = colors.length; final int perRow = (int) Math.round(Math.sqrt(count)); final int perCol = (perRow * perRow >= count) ? perRow : perRow + 1; final int width = perCol * (swatchSize + gap) + gap; final int height = perRow * (swatchSize + gap) + gap; final Dimension result = new Dimension(width, height); return result; } private Dimension size = null; @Override public Dimension getSize() { if (size == null) { size = calcSize(); } return size; } @Override public void setSize(final int w, final int h) { size = new Dimension(w, h); } private int indexForPoint(final int x, final int y) { final Dimension d = getSize(); if (y > d.height || x > d.width || y < 0 || x < 0) { return -1; } final int perRow = d.width / (swatchSize + gap); final int col = x / (swatchSize + gap); final int row = y / (swatchSize + gap); return (row * perRow) + col; } private void rectForIndex(final int idx, final Rectangle r) { final Dimension d = getSize(); final int rectsPerRow = d.width / (swatchSize + gap); r.x = gap + ((swatchSize + gap) * (idx % rectsPerRow)); r.y = gap + ((swatchSize + gap) * (idx / rectsPerRow)); r.width = swatchSize; r.height = swatchSize; } private static Palette[] predefined = null; public static Palette[] createDefaultPalettes() { if (predefined == null) { predefined = makePal(); } return predefined; } private static final Palette[] makePal() { final Palette[] result = new Palette[] { new PredefinedPalette("svg", SVGColors), new PredefinedPalette("system", getSystemColors()), RecentColors.getDefault(), new PredefinedPalette("swing", getSwingColors()) }; return result; } static class BasicNamedColor extends NamedColor implements Comparable { /** * */ private static final long serialVersionUID = 1L; private final String name; public BasicNamedColor(final String name, final int r, final int g, final int b) { super(name, r, g, b); this.name = name; } @Override public String getName() { return name; } @Override public String getDisplayName() { return ColorChooser.getString(getName()); } @Override public String toString() { return "new java.awt.Color(" + getRed() + "," + getGreen() + "," + getBlue() + ")"; } public int compareTo(final Object o) { final Color c = (Color) o; // maybe average rgb & compare? final int result = avgColor(c) - avgColor(this); return result; } @Override public String getInstantiationCode() { return toString(); } } private static int avgColor(final Color c) { return (c.getRed() + c.getGreen() + c.getBlue()) / 3; } @Override public String getDisplayName() { return ColorChooser.getString(name); } static String getColorName(final Color c) { for (final SwingColor swingColor : swingColors) { if (equals(swingColor, c)) { return swingColor.getDisplayName(); } } for (final NamedColor color : SVGColors) { if (equals(color, c)) { return color.getDisplayName(); } } return null; } static boolean equals(final Color a, final Color b) { return a.getRGB() == b.getRGB(); } private static final NamedColor[] SVGColors = new BasicNamedColor[] { new BasicNamedColor("aliceblue", 240, 248, 255), new BasicNamedColor("antiquewhite", 250, 235, 215), new BasicNamedColor("aqua", 0, 255, 255), new BasicNamedColor("aquamarine", 127, 255, 212), new BasicNamedColor("azure", 240, 255, 255), new BasicNamedColor("beige", 245, 245, 220), new BasicNamedColor("bisque", 255, 228, 196), new BasicNamedColor("black", 0, 0, 0), new BasicNamedColor("blanchedalmond", 255, 235, 205), new BasicNamedColor("blue", 0, 0, 255), new BasicNamedColor("blueviolet", 138, 43, 226), new BasicNamedColor("brown", 165, 42, 42), new BasicNamedColor("burlywood", 222, 184, 135), new BasicNamedColor("cadetblue", 95, 158, 160), new BasicNamedColor("chartreuse", 127, 255, 0), new BasicNamedColor("chocolate", 210, 105, 30), new BasicNamedColor("coral", 255, 127, 80), new BasicNamedColor("cornflowerblue", 100, 149, 237), new BasicNamedColor("cornsilk", 255, 248, 220), new BasicNamedColor("crimson", 220, 20, 60), new BasicNamedColor("cyan", 0, 255, 255), new BasicNamedColor("darkblue", 0, 0, 139), new BasicNamedColor("darkcyan", 0, 139, 139), new BasicNamedColor("darkgoldenrod", 184, 134, 11), new BasicNamedColor("darkgray", 169, 169, 169), new BasicNamedColor("darkgreen", 0, 100, 0), new BasicNamedColor("darkgrey", 169, 169, 169), new BasicNamedColor("darkkhaki", 189, 183, 107), new BasicNamedColor("darkmagenta", 139, 0, 139), new BasicNamedColor("darkolivegreen", 85, 107, 47), new BasicNamedColor("darkorange", 255, 140, 0), new BasicNamedColor("darkorchid", 153, 50, 204), new BasicNamedColor("darkred", 139, 0, 0), new BasicNamedColor("darksalmon", 233, 150, 122), new BasicNamedColor("darkseagreen", 143, 188, 143), new BasicNamedColor("darkslateblue", 72, 61, 139), new BasicNamedColor("darkslategray", 47, 79, 79), new BasicNamedColor("darkslategrey", 47, 79, 79), new BasicNamedColor("darkturquoise", 0, 206, 209), new BasicNamedColor("darkviolet", 148, 0, 211), new BasicNamedColor("deeppink", 255, 20, 147), new BasicNamedColor("deepskyblue", 0, 191, 255), new BasicNamedColor("dimgray", 105, 105, 105), new BasicNamedColor("dimgrey", 105, 105, 105), new BasicNamedColor("dodgerblue", 30, 144, 255), new BasicNamedColor("firebrick", 178, 34, 34), new BasicNamedColor("floralwhite", 255, 250, 240), new BasicNamedColor("forestgreen", 34, 139, 34), new BasicNamedColor("fuchsia", 255, 0, 255), new BasicNamedColor("gainsboro", 220, 220, 220), new BasicNamedColor("ghostwhite", 248, 248, 255), new BasicNamedColor("gold", 255, 215, 0), new BasicNamedColor("goldenrod", 218, 165, 32), new BasicNamedColor("gray", 128, 128, 128), new BasicNamedColor("grey", 128, 128, 128), new BasicNamedColor("green", 0, 128, 0), new BasicNamedColor("greenyellow", 173, 255, 47), new BasicNamedColor("honeydew", 240, 255, 240), new BasicNamedColor("hotpink", 255, 105, 180), new BasicNamedColor("indianred", 205, 92, 92), new BasicNamedColor("indigo", 75, 0, 130), new BasicNamedColor("ivory", 255, 255, 240), new BasicNamedColor("khaki", 240, 230, 140), new BasicNamedColor("lavender", 230, 230, 250), new BasicNamedColor("lavenderblush", 255, 240, 245), new BasicNamedColor("lawngreen", 124, 252, 0), new BasicNamedColor("lemonchiffon", 255, 250, 205), new BasicNamedColor("lightblue", 173, 216, 230), new BasicNamedColor("lightcoral", 240, 128, 128), new BasicNamedColor("lightcyan", 224, 255, 255), new BasicNamedColor("lightgoldenrodyellow", 250, 250, 210), new BasicNamedColor("lightgray", 211, 211, 211), new BasicNamedColor("lightgreen", 144, 238, 144), new BasicNamedColor("lightgrey", 211, 211, 211), new BasicNamedColor("lightpink", 255, 182, 193), new BasicNamedColor("lightsalmon", 255, 160, 122), new BasicNamedColor("lightseagreen", 32, 178, 170), new BasicNamedColor("lightskyblue", 135, 206, 250), new BasicNamedColor("lightslategray", 119, 136, 153), new BasicNamedColor("lightslategrey", 119, 136, 153), new BasicNamedColor("lightsteelblue", 176, 196, 222), new BasicNamedColor("lightyellow", 255, 255, 224), new BasicNamedColor("lime", 0, 255, 0), new BasicNamedColor("limegreen", 50, 205, 50), new BasicNamedColor("linen", 250, 240, 230), new BasicNamedColor("magenta", 255, 0, 255), new BasicNamedColor("maroon", 128, 0, 0), new BasicNamedColor("mediumaquamarine", 102, 205, 170), new BasicNamedColor("mediumblue", 0, 0, 205), new BasicNamedColor("mediumorchid", 186, 85, 211), new BasicNamedColor("mediumpurple", 147, 112, 219), new BasicNamedColor("mediumseagreen", 60, 179, 113), new BasicNamedColor("mediumslateblue", 123, 104, 238), new BasicNamedColor("mediumspringgreen", 0, 250, 154), new BasicNamedColor("mediumturquoise", 72, 209, 204), new BasicNamedColor("mediumvioletred", 199, 21, 133), new BasicNamedColor("midnightblue", 25, 25, 112), new BasicNamedColor("mintcream", 245, 255, 250), new BasicNamedColor("mistyrose", 255, 228, 225), new BasicNamedColor("moccasin", 255, 228, 181), new BasicNamedColor("navajowhite", 255, 222, 173), new BasicNamedColor("navy", 0, 0, 128), new BasicNamedColor("oldlace", 253, 245, 230), new BasicNamedColor("olive", 128, 128, 0), new BasicNamedColor("olivedrab", 107, 142, 35), new BasicNamedColor("orange", 255, 165, 0), new BasicNamedColor("orangered", 255, 69, 0), new BasicNamedColor("orchid", 218, 112, 214), new BasicNamedColor("palegoldenrod", 238, 232, 170), new BasicNamedColor("palegreen", 152, 251, 152), new BasicNamedColor("paleturquoise", 175, 238, 238), new BasicNamedColor("palevioletred", 219, 112, 147), new BasicNamedColor("papayawhip", 255, 239, 213), new BasicNamedColor("peachpuff", 255, 218, 185), new BasicNamedColor("peru", 205, 133, 63), new BasicNamedColor("pink", 255, 192, 203), new BasicNamedColor("plum", 221, 160, 221), new BasicNamedColor("powderblue", 176, 224, 230), new BasicNamedColor("purple", 128, 0, 128), new BasicNamedColor("red", 255, 0, 0), new BasicNamedColor("rosybrown", 188, 143, 143), new BasicNamedColor("royalblue", 65, 105, 225), new BasicNamedColor("saddlebrown", 139, 69, 19), new BasicNamedColor("salmon", 250, 128, 114), new BasicNamedColor("sandybrown", 244, 164, 96), new BasicNamedColor("seagreen", 46, 139, 87), new BasicNamedColor("seashell", 255, 245, 238), new BasicNamedColor("sienna", 160, 82, 45), new BasicNamedColor("silver", 192, 192, 192), new BasicNamedColor("skyblue", 135, 206, 235), new BasicNamedColor("slateblue", 106, 90, 205), new BasicNamedColor("slategray", 112, 128, 144), new BasicNamedColor("slategrey", 112, 128, 144), new BasicNamedColor("snow", 255, 250, 250), new BasicNamedColor("springgreen", 0, 255, 127), new BasicNamedColor("steelblue", 70, 130, 180), new BasicNamedColor("tan", 210, 180, 140), new BasicNamedColor("teal", 0, 128, 128), new BasicNamedColor("thistle", 216, 191, 216), new BasicNamedColor("tomato", 255, 99, 71), new BasicNamedColor("turquoise", 64, 224, 208), new BasicNamedColor("violet", 238, 130, 238), new BasicNamedColor("wheat", 245, 222, 179), new BasicNamedColor("white", 255, 255, 255), new BasicNamedColor("whitesmoke", 245, 245, 245), new BasicNamedColor("yellow", 255, 255, 0), new BasicNamedColor("yellowgreen", 154, 205, 50) }; // NOI18N static class SwingColor extends BasicNamedColor { /** * */ private static final long serialVersionUID = 1L; public SwingColor(final String name, final int r, final int g, final int b) { super(name, r, g, b); } @Override public String toString() { return "UIManager.getColor(" + getName() + ")"; } @Override public String getDisplayName() { return getName(); } @Override public String getInstantiationCode() { return toString(); } } private static SwingColor[] swingColors = null; private static SwingColor[] getSwingColors() { if (swingColors != null) { return swingColors; } final java.util.List l = new java.util.ArrayList(); Color c; c = UIManager.getColor("windowText"); if (c != null) { l.add(new SwingColor("windowText", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("activeCaptionBorder"); if (c != null) { l.add(new SwingColor("activeCaptionBorder", c.getRed(), c .getGreen(), c.getBlue())); } c = UIManager.getColor("inactiveCaptionText"); if (c != null) { l.add(new SwingColor("inactiveCaptionText", c.getRed(), c .getGreen(), c.getBlue())); } c = UIManager.getColor("controlLtHighlight"); if (c != null) { l.add(new SwingColor("controlLtHighlight", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("inactiveCaptionBorder"); if (c != null) { l.add(new SwingColor("inactiveCaptionBorder", c.getRed(), c .getGreen(), c.getBlue())); } c = UIManager.getColor("textInactiveText"); if (c != null) { l.add(new SwingColor("textInactiveText", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("control"); if (c != null) { l.add(new SwingColor("control", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("textText"); if (c != null) { l.add(new SwingColor("textText", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("menu"); if (c != null) { l .add(new SwingColor("menu", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("windowBorder"); if (c != null) { l.add(new SwingColor("windowBorder", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("infoText"); if (c != null) { l.add(new SwingColor("infoText", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("menuText"); if (c != null) { l.add(new SwingColor("menuText", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("textHighlightText"); if (c != null) { l.add(new SwingColor("textHighlightText", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("activeCaptionText"); if (c != null) { l.add(new SwingColor("activeCaptionText", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("textHighlight"); if (c != null) { l.add(new SwingColor("textHighlight", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("controlShadow"); if (c != null) { l.add(new SwingColor("controlShadow", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("controlText"); if (c != null) { l.add(new SwingColor("controlText", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("menuPressedItemF"); if (c != null) { l.add(new SwingColor("menuPressedItemF", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("menuPressedItemB"); if (c != null) { l.add(new SwingColor("menuPressedItemB", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("info"); if (c != null) { l .add(new SwingColor("info", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("controlHighlight"); if (c != null) { l.add(new SwingColor("controlHighlight", c.getRed(), c.getGreen(), c.getBlue())); } c = UIManager.getColor("scrollbar"); if (c != null) { l.add(new SwingColor("scrollbar", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("window"); if (c != null) { l.add(new SwingColor("window", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("inactiveCaption"); if (c != null) { l.add(new SwingColor("inactiveCaption", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("controlDkShadow"); if (c != null) { l.add(new SwingColor("controlDkShadow", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("activeCaption"); if (c != null) { l.add(new SwingColor("activeCaption", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("text"); if (c != null) { l .add(new SwingColor("text", c.getRed(), c.getGreen(), c .getBlue())); } c = UIManager.getColor("desktop"); if (c != null) { l.add(new SwingColor("desktop", c.getRed(), c.getGreen(), c .getBlue())); } swingColors = (SwingColor[]) l.toArray(new SwingColor[0]); return swingColors; } /** * Names of system colors. Note: not localizable, those names * corresponds to programatical names. */ private static final String systemGenerate[] = { "activeCaption", "activeCaptionBorder", // NOI18N "activeCaptionText", "control", "controlDkShadow", // NOI18N "controlHighlight", "controlLtHighlight", // NOI18N "controlShadow", "controlText", "desktop", // NOI18N "inactiveCaption", "inactiveCaptionBorder", // NOI18N "inactiveCaptionText", "info", "infoText", "menu", // NOI18N "menuText", "scrollbar", "text", "textHighlight", // NOI18N "textHighlightText", "textInactiveText", "textText", // NOI18N "window", "windowBorder", "windowText" }; // NOI18N /** System colors used in System Palette. */ private static final Color sColors[] = { SystemColor.activeCaption, SystemColor.activeCaptionBorder, SystemColor.activeCaptionText, SystemColor.control, SystemColor.controlDkShadow, SystemColor.controlHighlight, SystemColor.controlLtHighlight, SystemColor.controlShadow, SystemColor.controlText, SystemColor.desktop, SystemColor.inactiveCaption, SystemColor.inactiveCaptionBorder, SystemColor.inactiveCaptionText, SystemColor.info, SystemColor.infoText, SystemColor.menu, SystemColor.menuText, SystemColor.scrollbar, SystemColor.text, SystemColor.textHighlight, SystemColor.textHighlightText, SystemColor.textInactiveText, SystemColor.textText, SystemColor.window, SystemColor.windowBorder, SystemColor.windowText }; private static class SysColor extends BasicNamedColor { /** * */ private static final long serialVersionUID = 1L; public SysColor(final String name, final Color scolor) { super(name, scolor.getRed(), scolor.getGreen(), scolor.getBlue()); } @Override public String toString() { return "SystemColor." + getName(); } @Override public String getDisplayName() { return getName(); } } private static NamedColor[] systemColors = null; private static NamedColor[] getSystemColors() { if (systemColors == null) { systemColors = new BasicNamedColor[sColors.length]; for (int i = 0; i < sColors.length; i++) { systemColors[i] = new SysColor(systemGenerate[i], sColors[i]); } } return systemColors; } /* * //A cheap and cheesy way to quickly make an English-localized bundle for * //an array of NamedColor. public static void main(String args[]) { for * (int i=0; i < SVGColors.length; i++) { System.out.println("# " + * SVGColors[i].getRed() + "," + SVGColors[i].getGreen() + "," + * SVGColors[i].getBlue()); String name = SVGColors[i].getName(); * StringBuffer sb = new StringBuffer(name); sb.replace (0, 1, new * String(new char[]{Character.toUpperCase(name.charAt(0))})); String * dispName = sb.toString(); * * for (int k=0; k < tros.length; k++) { String lookFor = tros[k]; * StringBuffer sb2 = new StringBuffer(lookFor); sb.replace (0, 1, new * String(new char[]{Character.toUpperCase(lookFor.charAt(0))})); String * replaceWith = " " + sb2.toString(); dispName = * org.openide.util.Utilities.replaceString( dispName, tros[k], * replaceWith); } * * System.out.println(SVGColors[i].getName() + "=" + dispName); } } * * private static String[] tros = new String[] { "brown", "blue", "red", * "violet", "orchid", "green", "yellow", "orange", "black", "gray", "grey", * "white", "maroon", "goldenrod", "cream", "spring", "purple", "sea", * "magenta", "steel", "slate","pink", "cyan", "chiffon", "coral", "wheat", * "blush", "brick","olive","khaki", "silk","crimson","wood","almond", * "smoke", "puff", "whip", "peach", "lace", * "rose","turquoise","aquamarine","salmon", "sky" }; */ /** * //some boilerplate to make a list of swing colors public static void main * (String[] args) { javax.swing.LookAndFeel lf = new * javax.swing.plaf.metal.MetalLookAndFeel(); javax.swing.UIDefaults def = * javax.swing.UIManager.getLookAndFeel().getDefaults(); java.util.Iterator * i = new java.util.ArrayList(def.keySet()).iterator(); while (i.hasNext()) * { Object o = i.next(); // System.err.println(o); Object result = * def.get(o); if (result instanceof Color) { String s = o.toString(); if * (s.indexOf(".") == -1) { System.err.println("c = UIManager.getColor(\"" + * s +"\");\nif (c != null) {\n l.add(new SwingColor(\"" + s + * "\", c.getRed(), c.getGreen(), c.getBlue()));\n}"); } } } * System.err.println("Done"); } */ } carmetal-4.3/src/net/java/dev/colorchooser/RecentColors.java000066400000000000000000000246501417122252700242040ustar00rootroot00000000000000/*DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2006-2008. Tim Boudreau. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribution License("CDDL") (collectively, the * "License"). You may not use this file except in compliance with the * License. You can obtain a copy of the License at * http://www.netbeans.org/cddl-gplv2.html. See the License for the * specific language governing permissions and limitations under the * License. When distributing the software, include this License Header * Notice in each file and include the License file at * nbbuild/licenses/CDDL-GPL-2-CP. This particular file is designated * as subject to the "Classpath" exception as provided * in the GPL Version 2 section of the License file that * accompanied this code. */ package net.java.dev.colorchooser; import java.awt.Color; import java.awt.Dimension; import java.security.AccessControlException; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.MissingResourceException; import java.util.ResourceBundle; import java.util.Stack; import java.util.StringTokenizer; import java.util.prefs.Preferences; /** * Palette implementation that can have recent colors added to it. * * @author Tim Boudreau */ class RecentColors extends Palette { private Palette palette; private boolean changed=true; /** Creates a new instance of RecentColors */ private RecentColors() { } private Palette getWrapped() { if (changed||palette==null) { palette=createPalette(); changed=false; } return palette; } @Override public java.awt.Color getColorAt(final int x, final int y) { return getWrapped().getColorAt(x, y); } @Override public String getDisplayName() { try { return ResourceBundle.getBundle( "org.netbeans.swing.colorchooser.Bundle").getString( "recent"); // NOI18N } catch (final MissingResourceException mre) { // mre.printStackTrace(); return "Recent colors"; } } @Override public Dimension getSize() { final Dimension result=((PredefinedPalette) getWrapped()).calcSize(); return result; } @Override public void paintTo(final java.awt.Graphics g) { getWrapped().paintTo(g); } @Override public String getNameAt(final int x, final int y) { return getWrapped().getNameAt(x, y); } Stack stack=new Stack(); void add(final Color c) { if (c instanceof RecentColor) { return; } if (stack.indexOf(c)==-1) { final String name=c instanceof PredefinedPalette.BasicNamedColor?((PredefinedPalette.BasicNamedColor) c).getDisplayName() :null; final String toString=c instanceof PredefinedPalette.BasicNamedColor?((PredefinedPalette.BasicNamedColor) c).toString() :null; final Color col=new RecentColor(name, c.getRed(), c.getGreen(), c.getBlue(), toString); stack.push(col); changed=true; palette=null; if (c instanceof NamedColor) { addToNameCache((NamedColor) c); } saveToPrefs(); } } public static final String INNER_DELIMITER="^$"; public static final String OUTER_DELIMITER="!*"; public void saveToPrefs() { final Preferences prefs=getPreferences(); if (prefs==null) { return; } int count=0; final StringBuffer sb=new StringBuffer(); final Stack stack=new Stack(); stack.addAll(this.stack); while (!stack.isEmpty()&&count<64) { count++; final Color c=(Color) stack.pop(); if (c instanceof DummyColor) { break; } String name="null"; if (c instanceof PredefinedPalette.BasicNamedColor) { final PredefinedPalette.BasicNamedColor nc=(PredefinedPalette.BasicNamedColor) c; name=nc.getDisplayName(); } if (name=="null") { // NOI18N name=null; } sb.append(name); sb.append(INNER_DELIMITER); sb.append(c.getRed()); sb.append(INNER_DELIMITER); sb.append(c.getGreen()); sb.append(INNER_DELIMITER); sb.append(c.getBlue()); sb.append(INNER_DELIMITER); if (c instanceof PredefinedPalette.BasicNamedColor) { sb.append(c.toString()); } else { sb.append('x'); } sb.append(OUTER_DELIMITER); // NOI18N } prefs.put("recentColors", sb.toString()); // NOI18N } static Map namedMap=null; static NamedColor findNamedColor(final Color color) { if (namedMap==null) { return null; } final NamedColor result=(NamedColor) namedMap.get(new Integer(color.getRGB())); return result; } static void addToNameCache(final NamedColor color) { if (namedMap==null) { namedMap=new HashMap(40); } namedMap.put(new Integer(color.getRGB()), color); } private Preferences getPreferences() { try { final Preferences base=Preferences.userNodeForPackage(getClass()); return base.node("1.5"); // NOI18N } catch (final Exception ace) { return null; } } public void loadFromPrefs() { final Preferences prefs=getPreferences(); if (prefs==null) { return; } final String s=prefs.get("recentColors", null); // NOI18N stack=new Stack(); final Color[] col=new Color[64]; Arrays.fill(col, new DummyColor()); int count=63; try { if (s!=null) { // a weird but highly unlikely delimiter final StringTokenizer tok=new StringTokenizer(s, OUTER_DELIMITER); // NOI18N while (tok.hasMoreTokens()&&count>=0) { final String curr=tok.nextToken(); // another weird but highly unlikely delimiter final StringTokenizer tk2=new StringTokenizer(curr, INNER_DELIMITER); // NOI18N while (tk2.hasMoreTokens()) { String name=tk2.nextToken(); if ("null".equals(name)) { name=null; } final int r=Integer.parseInt(tk2.nextToken()); final int g=Integer.parseInt(tk2.nextToken()); final int b=Integer.parseInt(tk2.nextToken()); final String toString=tk2.nextToken(); if ("x".equals(toString)) { // NOI18N col[count]=new RecentColor(name, r, g, b); } else { col[count]=new RecentColor(name, r, g, b, toString); } addToNameCache((NamedColor) col[count]); } count--; } } stack.addAll(Arrays.asList(col)); } catch (final Exception e) { System.err.println("Error loading color preferences"); // NOI18N e.printStackTrace(); } } private Palette createPalette() { final PredefinedPalette.BasicNamedColor[] nc=(PredefinedPalette.BasicNamedColor[]) stack.toArray(new PredefinedPalette.BasicNamedColor[0]); return new PredefinedPalette("", nc); // NOI18N } private class RecentColor extends PredefinedPalette.BasicNamedColor { /** * */ private static final long serialVersionUID=1L; String displayName; String toString=null; public RecentColor(final String name, final int r, final int g, final int b) { super(name, r, g, b); displayName=name; } public RecentColor(final String name, final int r, final int g, final int b, final String toString) { this(name, r, g, b); displayName=name; this.toString=toString; } @Override public int compareTo(final Object o) { return stack.indexOf(o)-stack.indexOf(this); } @Override public String getDisplayName() { return displayName; } @Override public boolean equals(final Object o) { if (o instanceof Color) { final Color c=(Color) o; return c.getRGB()==getRGB(); } return false; } @Override public int hashCode() { return getRGB(); } @Override public String toString() { if (toString!=null) { return toString; } else { return "new java.awt.Color("+getRed()+","+getGreen() +","+getBlue()+")"; // NOI18N } } } private static RecentColors defaultInstance=null; public static final RecentColors getDefault() { if (defaultInstance==null) { defaultInstance=new RecentColors(); ((RecentColors) defaultInstance).loadFromPrefs(); } return defaultInstance; } /** * A stand in for colors to fill up the array of recent colors until we * really have something to put there. */ private class DummyColor extends RecentColor { /** * */ private static final long serialVersionUID=1L; public DummyColor() { super(null, 0, 0, 0); } @Override public String getDisplayName() { return null; } // Ensure that no color will match this, so black swing colors can // be put into the recent colors array @Override public boolean equals(final Object o) { return o==this; } @Override public int hashCode() { return System.identityHashCode(this); } } @Override public void setSize(final int w, final int h) { } } carmetal-4.3/src/net/java/dev/colorchooser/chooserIcon.gif000066400000000000000000000003511417122252700236710ustar00rootroot00000000000000GIF89aôI’ùR—îZœãe¢×s«Ä-?D->>޳ª¤œÂ’[qT@L3”°pQ^5³ÏuÀÖfª½U  ÏßR+- ÅË1àè?æÝ“Ÿ™fæ‹,Eþÿÿÿ!ù,@fà'Žd)jÛæuÁ@‰òT˜÷i\®ofé¹ÄÂ1ñX.6œ.Çë)=ШJZ …ƒ!¡ÙFÓpRC.kz·%­\6MOÖ5(‹T¾"ë p`4ì5UsBG`{ ZFx&%!;carmetal-4.3/src/net/java/dev/colorchooser/chooserIcon32.gif000066400000000000000000000010601417122252700240340ustar00rootroot00000000000000GIF89a Õ³¦ª®¢®ªž²¥š¶¡—¸“¼™À•ŒÄ ÑÁdüålóÞs,)63%ëÖzòeãЀ[V@ ÚȈumNâÇpC=)ºªu£‹JäÆoÔŽϾ’ʺ–ĵ›Û HÓŠ3æ›>Ñ‚*¾° æ‚ î‡"íŠ&æˆ'è‹*æ‹,ë~¸ª¦ÖÖÖ···ƒƒƒÿÿÿ!ù/, ÿÀ—pH,Ȥr ©d2•¨ôYI,hËíz0Wc”™ÏæT&ŽG¦¸ *
  • JSObject is converted to the original JavaScript object *
  • Any other Java object is converted to a JavaScript wrapper, * which can be used to access methods and fields of the java object. * Converting this wrapper to a string will call the toString method * on the original object, converting to a number will call the * doubleValue method if possible and fail otherwise. Converting * to a boolean will try to call the booleanValue method in the * same way. *
  • Java arrays are wrapped with a JavaScript object that understands * array.length and array[index] *
  • A Java boolean is converted to a JavaScript boolean *
  • Java byte, char, short, int, long, float, and double are converted * to JavaScript numbers * * Values passed from JavaScript to Java are converted as follows:
      *
    • objects which are wrappers around java objects are unwrapped *
    • other objects are wrapped with a JSObject *
    • strings, numbers and booleans are converted to String, Double, * and Boolean objects respectively *
    * This means that all JavaScript values show up as some kind * of java.lang.Object in Java. In order to make much use of them, * you will have to cast them to the appropriate subclass of Object, * e.g. (String) window.getMember("name"); or * (JSObject) window.getMember("document");. */ public final class JSObject { /* the internal object data */ private int internal; private long long_internal; /** * initialize */ private static native void initClass(); static { // On MRJ, this property won't exist, because the library is preloaded. String liveConnectLibrary = System.getProperty("netscape.jsj.dll", null); if (liveConnectLibrary != null) { System.loadLibrary(liveConnectLibrary); initClass(); } } /** * it is illegal to construct a JSObject manually */ private JSObject(int jsobj_addr) { internal = jsobj_addr; } private JSObject(long jsobj_addr) { long_internal = jsobj_addr; } /** * Retrieves a named member of a JavaScript object. * Equivalent to "this.name" in JavaScript. */ public native Object getMember(String name); /** * Retrieves an indexed member of a JavaScript object. * Equivalent to "this[index]" in JavaScript. */ // public Object getMember(int index) { return getSlot(index); } public native Object getSlot(int index); /** * Sets a named member of a JavaScript object. * Equivalent to "this.name = value" in JavaScript. */ public native void setMember(String name, Object value); /** * Sets an indexed member of a JavaScript object. * Equivalent to "this[index] = value" in JavaScript. */ // public void setMember(int index, Object value) { // setSlot(index, value); // } public native void setSlot(int index, Object value); /** * Removes a named member of a JavaScript object. */ public native void removeMember(String name); /** * Calls a JavaScript method. * Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript. */ public native Object call(String methodName, Object args[]); /** * Evaluates a JavaScript expression. The expression is a string * of JavaScript source code which will be evaluated in the context * given by "this". */ public native Object eval(String s); /** * Converts a JSObject to a String. */ public native String toString(); // should use some sort of identifier rather than String // is "property" the right word? // native String[] listProperties(); /** * get a JSObject for the window containing the given applet */ public static native JSObject getWindow(Applet applet); /** * Finalization decrements the reference count on the corresponding * JavaScript object. */ protected native void finalize(); /** * Override java.lang.Object.equals() because identity is not preserved * with instances of JSObject. */ public native boolean equals(Object obj); }carmetal-4.3/src/org/000077500000000000000000000000001417122252700145315ustar00rootroot00000000000000carmetal-4.3/src/org/mozilla/000077500000000000000000000000001417122252700162005ustar00rootroot00000000000000carmetal-4.3/src/org/mozilla/classfile/000077500000000000000000000000001417122252700201455ustar00rootroot00000000000000carmetal-4.3/src/org/mozilla/classfile/ByteCode.java000066400000000000000000000156031417122252700225130ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Roger Lawrence * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.classfile; /** * This class provides opcode values expected by the JVM in Java class files. * * It also provides tables for internal use by the ClassFileWriter. * * @author Roger Lawrence */ public class ByteCode { /** * The byte opcodes defined by the Java Virtual Machine. */ public static final int NOP = 0x00, ACONST_NULL = 0x01, ICONST_M1 = 0x02, ICONST_0 = 0x03, ICONST_1 = 0x04, ICONST_2 = 0x05, ICONST_3 = 0x06, ICONST_4 = 0x07, ICONST_5 = 0x08, LCONST_0 = 0x09, LCONST_1 = 0x0A, FCONST_0 = 0x0B, FCONST_1 = 0x0C, FCONST_2 = 0x0D, DCONST_0 = 0x0E, DCONST_1 = 0x0F, BIPUSH = 0x10, SIPUSH = 0x11, LDC = 0x12, LDC_W = 0x13, LDC2_W = 0x14, ILOAD = 0x15, LLOAD = 0x16, FLOAD = 0x17, DLOAD = 0x18, ALOAD = 0x19, ILOAD_0 = 0x1A, ILOAD_1 = 0x1B, ILOAD_2 = 0x1C, ILOAD_3 = 0x1D, LLOAD_0 = 0x1E, LLOAD_1 = 0x1F, LLOAD_2 = 0x20, LLOAD_3 = 0x21, FLOAD_0 = 0x22, FLOAD_1 = 0x23, FLOAD_2 = 0x24, FLOAD_3 = 0x25, DLOAD_0 = 0x26, DLOAD_1 = 0x27, DLOAD_2 = 0x28, DLOAD_3 = 0x29, ALOAD_0 = 0x2A, ALOAD_1 = 0x2B, ALOAD_2 = 0x2C, ALOAD_3 = 0x2D, IALOAD = 0x2E, LALOAD = 0x2F, FALOAD = 0x30, DALOAD = 0x31, AALOAD = 0x32, BALOAD = 0x33, CALOAD = 0x34, SALOAD = 0x35, ISTORE = 0x36, LSTORE = 0x37, FSTORE = 0x38, DSTORE = 0x39, ASTORE = 0x3A, ISTORE_0 = 0x3B, ISTORE_1 = 0x3C, ISTORE_2 = 0x3D, ISTORE_3 = 0x3E, LSTORE_0 = 0x3F, LSTORE_1 = 0x40, LSTORE_2 = 0x41, LSTORE_3 = 0x42, FSTORE_0 = 0x43, FSTORE_1 = 0x44, FSTORE_2 = 0x45, FSTORE_3 = 0x46, DSTORE_0 = 0x47, DSTORE_1 = 0x48, DSTORE_2 = 0x49, DSTORE_3 = 0x4A, ASTORE_0 = 0x4B, ASTORE_1 = 0x4C, ASTORE_2 = 0x4D, ASTORE_3 = 0x4E, IASTORE = 0x4F, LASTORE = 0x50, FASTORE = 0x51, DASTORE = 0x52, AASTORE = 0x53, BASTORE = 0x54, CASTORE = 0x55, SASTORE = 0x56, POP = 0x57, POP2 = 0x58, DUP = 0x59, DUP_X1 = 0x5A, DUP_X2 = 0x5B, DUP2 = 0x5C, DUP2_X1 = 0x5D, DUP2_X2 = 0x5E, SWAP = 0x5F, IADD = 0x60, LADD = 0x61, FADD = 0x62, DADD = 0x63, ISUB = 0x64, LSUB = 0x65, FSUB = 0x66, DSUB = 0x67, IMUL = 0x68, LMUL = 0x69, FMUL = 0x6A, DMUL = 0x6B, IDIV = 0x6C, LDIV = 0x6D, FDIV = 0x6E, DDIV = 0x6F, IREM = 0x70, LREM = 0x71, FREM = 0x72, DREM = 0x73, INEG = 0x74, LNEG = 0x75, FNEG = 0x76, DNEG = 0x77, ISHL = 0x78, LSHL = 0x79, ISHR = 0x7A, LSHR = 0x7B, IUSHR = 0x7C, LUSHR = 0x7D, IAND = 0x7E, LAND = 0x7F, IOR = 0x80, LOR = 0x81, IXOR = 0x82, LXOR = 0x83, IINC = 0x84, I2L = 0x85, I2F = 0x86, I2D = 0x87, L2I = 0x88, L2F = 0x89, L2D = 0x8A, F2I = 0x8B, F2L = 0x8C, F2D = 0x8D, D2I = 0x8E, D2L = 0x8F, D2F = 0x90, I2B = 0x91, I2C = 0x92, I2S = 0x93, LCMP = 0x94, FCMPL = 0x95, FCMPG = 0x96, DCMPL = 0x97, DCMPG = 0x98, IFEQ = 0x99, IFNE = 0x9A, IFLT = 0x9B, IFGE = 0x9C, IFGT = 0x9D, IFLE = 0x9E, IF_ICMPEQ = 0x9F, IF_ICMPNE = 0xA0, IF_ICMPLT = 0xA1, IF_ICMPGE = 0xA2, IF_ICMPGT = 0xA3, IF_ICMPLE = 0xA4, IF_ACMPEQ = 0xA5, IF_ACMPNE = 0xA6, GOTO = 0xA7, JSR = 0xA8, RET = 0xA9, TABLESWITCH = 0xAA, LOOKUPSWITCH = 0xAB, IRETURN = 0xAC, LRETURN = 0xAD, FRETURN = 0xAE, DRETURN = 0xAF, ARETURN = 0xB0, RETURN = 0xB1, GETSTATIC = 0xB2, PUTSTATIC = 0xB3, GETFIELD = 0xB4, PUTFIELD = 0xB5, INVOKEVIRTUAL = 0xB6, INVOKESPECIAL = 0xB7, INVOKESTATIC = 0xB8, INVOKEINTERFACE = 0xB9, NEW = 0xBB, NEWARRAY = 0xBC, ANEWARRAY = 0xBD, ARRAYLENGTH = 0xBE, ATHROW = 0xBF, CHECKCAST = 0xC0, INSTANCEOF = 0xC1, MONITORENTER = 0xC2, MONITOREXIT = 0xC3, WIDE = 0xC4, MULTIANEWARRAY = 0xC5, IFNULL = 0xC6, IFNONNULL = 0xC7, GOTO_W = 0xC8, JSR_W = 0xC9, BREAKPOINT = 0xCA, IMPDEP1 = 0xFE, IMPDEP2 = 0xFF; /** * Types for the NEWARRAY opcode. */ public static final byte T_BOOLEAN = 4, T_CHAR = 5, T_FLOAT = 6, T_DOUBLE = 7, T_BYTE = 8, T_SHORT = 9, T_INT = 10, T_LONG = 11; } carmetal-4.3/src/org/mozilla/classfile/ClassFileWriter.java000066400000000000000000003266311417122252700240650ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Roger Lawrence * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.classfile; import org.mozilla.javascript.ObjToIntMap; import org.mozilla.javascript.ObjArray; import org.mozilla.javascript.UintMap; import java.io.*; /** * ClassFileWriter * * A ClassFileWriter is used to write a Java class file. Methods are * provided to create fields and methods, and within methods to write * Java bytecodes. * * @author Roger Lawrence */ public class ClassFileWriter { /** * Thrown for cases where the error in generating the class file is * due to a program size constraints rather than a likely bug in the * compiler. */ public static class ClassFileFormatException extends RuntimeException { private static final long serialVersionUID = 1263998431033790599L; ClassFileFormatException(String message) { super(message); } } /** * Construct a ClassFileWriter for a class. * * @param className the name of the class to write, including * full package qualification. * @param superClassName the name of the superclass of the class * to write, including full package qualification. * @param sourceFileName the name of the source file to use for * producing debug information, or null if debug information * is not desired */ public ClassFileWriter(String className, String superClassName, String sourceFileName) { generatedClassName = className; itsConstantPool = new ConstantPool(this); itsThisClassIndex = itsConstantPool.addClass(className); itsSuperClassIndex = itsConstantPool.addClass(superClassName); if (sourceFileName != null) itsSourceFileNameIndex = itsConstantPool.addUtf8(sourceFileName); itsFlags = ACC_PUBLIC; } public final String getClassName() { return generatedClassName; } /** * Add an interface implemented by this class. * * This method may be called multiple times for classes that * implement multiple interfaces. * * @param interfaceName a name of an interface implemented * by the class being written, including full package * qualification. */ public void addInterface(String interfaceName) { short interfaceIndex = itsConstantPool.addClass(interfaceName); itsInterfaces.add(new Short(interfaceIndex)); } public static final short ACC_PUBLIC = 0x0001, ACC_PRIVATE = 0x0002, ACC_PROTECTED = 0x0004, ACC_STATIC = 0x0008, ACC_FINAL = 0x0010, ACC_SYNCHRONIZED = 0x0020, ACC_VOLATILE = 0x0040, ACC_TRANSIENT = 0x0080, ACC_NATIVE = 0x0100, ACC_ABSTRACT = 0x0400; /** * Set the class's flags. * * Flags must be a set of the following flags, bitwise or'd * together: * ACC_PUBLIC * ACC_PRIVATE * ACC_PROTECTED * ACC_FINAL * ACC_ABSTRACT * TODO: check that this is the appropriate set * @param flags the set of class flags to set */ public void setFlags(short flags) { itsFlags = flags; } static String getSlashedForm(String name) { return name.replace('.', '/'); } /** * Convert Java class name in dot notation into * "Lname-with-dots-replaced-by-slashes;" form suitable for use as * JVM type signatures. */ public static String classNameToSignature(String name) { int nameLength = name.length(); int colonPos = 1 + nameLength; char[] buf = new char[colonPos + 1]; buf[0] = 'L'; buf[colonPos] = ';'; name.getChars(0, nameLength, buf, 1); for (int i = 1; i != colonPos; ++i) { if (buf[i] == '.') { buf[i] = '/'; } } return new String(buf, 0, colonPos + 1); } /** * Add a field to the class. * * @param fieldName the name of the field * @param type the type of the field using ... * @param flags the attributes of the field, such as ACC_PUBLIC, etc. * bitwise or'd together */ public void addField(String fieldName, String type, short flags) { short fieldNameIndex = itsConstantPool.addUtf8(fieldName); short typeIndex = itsConstantPool.addUtf8(type); itsFields.add(new ClassFileField(fieldNameIndex, typeIndex, flags)); } /** * Add a field to the class. * * @param fieldName the name of the field * @param type the type of the field using ... * @param flags the attributes of the field, such as ACC_PUBLIC, etc. * bitwise or'd together * @param value an initial integral value */ public void addField(String fieldName, String type, short flags, int value) { short fieldNameIndex = itsConstantPool.addUtf8(fieldName); short typeIndex = itsConstantPool.addUtf8(type); ClassFileField field = new ClassFileField(fieldNameIndex, typeIndex, flags); field.setAttributes(itsConstantPool.addUtf8("ConstantValue"), (short)0, (short)0, itsConstantPool.addConstant(value)); itsFields.add(field); } /** * Add a field to the class. * * @param fieldName the name of the field * @param type the type of the field using ... * @param flags the attributes of the field, such as ACC_PUBLIC, etc. * bitwise or'd together * @param value an initial long value */ public void addField(String fieldName, String type, short flags, long value) { short fieldNameIndex = itsConstantPool.addUtf8(fieldName); short typeIndex = itsConstantPool.addUtf8(type); ClassFileField field = new ClassFileField(fieldNameIndex, typeIndex, flags); field.setAttributes(itsConstantPool.addUtf8("ConstantValue"), (short)0, (short)2, itsConstantPool.addConstant(value)); itsFields.add(field); } /** * Add a field to the class. * * @param fieldName the name of the field * @param type the type of the field using ... * @param flags the attributes of the field, such as ACC_PUBLIC, etc. * bitwise or'd together * @param value an initial double value */ public void addField(String fieldName, String type, short flags, double value) { short fieldNameIndex = itsConstantPool.addUtf8(fieldName); short typeIndex = itsConstantPool.addUtf8(type); ClassFileField field = new ClassFileField(fieldNameIndex, typeIndex, flags); field.setAttributes(itsConstantPool.addUtf8("ConstantValue"), (short)0, (short)2, itsConstantPool.addConstant(value)); itsFields.add(field); } /** * Add Information about java variable to use when generating the local * variable table. * * @param name variable name. * @param type variable type as bytecode descriptor string. * @param startPC the starting bytecode PC where this variable is live, * or -1 if it does not have a Java register. * @param register the Java register number of variable * or -1 if it does not have a Java register. */ public void addVariableDescriptor(String name, String type, int startPC, int register) { int nameIndex = itsConstantPool.addUtf8(name); int descriptorIndex = itsConstantPool.addUtf8(type); int [] chunk = { nameIndex, descriptorIndex, startPC, register }; if (itsVarDescriptors == null) { itsVarDescriptors = new ObjArray(); } itsVarDescriptors.add(chunk); } /** * Add a method and begin adding code. * * This method must be called before other methods for adding code, * exception tables, etc. can be invoked. * * @param methodName the name of the method * @param type a string representing the type * @param flags the attributes of the field, such as ACC_PUBLIC, etc. * bitwise or'd together */ public void startMethod(String methodName, String type, short flags) { short methodNameIndex = itsConstantPool.addUtf8(methodName); short typeIndex = itsConstantPool.addUtf8(type); itsCurrentMethod = new ClassFileMethod(methodNameIndex, typeIndex, flags); itsMethods.add(itsCurrentMethod); } /** * Complete generation of the method. * * After this method is called, no more code can be added to the * method begun with startMethod. * * @param maxLocals the maximum number of local variable slots * (a.k.a. Java registers) used by the method */ public void stopMethod(short maxLocals) { if (itsCurrentMethod == null) throw new IllegalStateException("No method to stop"); fixLabelGotos(); itsMaxLocals = maxLocals; int lineNumberTableLength = 0; if (itsLineNumberTable != null) { // 6 bytes for the attribute header // 2 bytes for the line number count // 4 bytes for each entry lineNumberTableLength = 6 + 2 + (itsLineNumberTableTop * 4); } int variableTableLength = 0; if (itsVarDescriptors != null) { // 6 bytes for the attribute header // 2 bytes for the variable count // 10 bytes for each entry variableTableLength = 6 + 2 + (itsVarDescriptors.size() * 10); } int attrLength = 2 + // attribute_name_index 4 + // attribute_length 2 + // max_stack 2 + // max_locals 4 + // code_length itsCodeBufferTop + 2 + // exception_table_length (itsExceptionTableTop * 8) + 2 + // attributes_count lineNumberTableLength + variableTableLength; if (attrLength > 65536) { // See http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html, // section 4.10, "The amount of code per non-native, non-abstract // method is limited to 65536 bytes... throw new ClassFileFormatException( "generated bytecode for method exceeds 64K limit."); } byte[] codeAttribute = new byte[attrLength]; int index = 0; int codeAttrIndex = itsConstantPool.addUtf8("Code"); index = putInt16(codeAttrIndex, codeAttribute, index); attrLength -= 6; // discount the attribute header index = putInt32(attrLength, codeAttribute, index); index = putInt16(itsMaxStack, codeAttribute, index); index = putInt16(itsMaxLocals, codeAttribute, index); index = putInt32(itsCodeBufferTop, codeAttribute, index); System.arraycopy(itsCodeBuffer, 0, codeAttribute, index, itsCodeBufferTop); index += itsCodeBufferTop; if (itsExceptionTableTop > 0) { index = putInt16(itsExceptionTableTop, codeAttribute, index); for (int i = 0; i < itsExceptionTableTop; i++) { ExceptionTableEntry ete = itsExceptionTable[i]; short startPC = (short)getLabelPC(ete.itsStartLabel); short endPC = (short)getLabelPC(ete.itsEndLabel); short handlerPC = (short)getLabelPC(ete.itsHandlerLabel); short catchType = ete.itsCatchType; if (startPC == -1) throw new IllegalStateException("start label not defined"); if (endPC == -1) throw new IllegalStateException("end label not defined"); if (handlerPC == -1) throw new IllegalStateException( "handler label not defined"); index = putInt16(startPC, codeAttribute, index); index = putInt16(endPC, codeAttribute, index); index = putInt16(handlerPC, codeAttribute, index); index = putInt16(catchType, codeAttribute, index); } } else { // write 0 as exception table length index = putInt16(0, codeAttribute, index); } int attributeCount = 0; if (itsLineNumberTable != null) attributeCount++; if (itsVarDescriptors != null) attributeCount++; index = putInt16(attributeCount, codeAttribute, index); if (itsLineNumberTable != null) { int lineNumberTableAttrIndex = itsConstantPool.addUtf8("LineNumberTable"); index = putInt16(lineNumberTableAttrIndex, codeAttribute, index); int tableAttrLength = 2 + (itsLineNumberTableTop * 4); index = putInt32(tableAttrLength, codeAttribute, index); index = putInt16(itsLineNumberTableTop, codeAttribute, index); for (int i = 0; i < itsLineNumberTableTop; i++) { index = putInt32(itsLineNumberTable[i], codeAttribute, index); } } if (itsVarDescriptors != null) { int variableTableAttrIndex = itsConstantPool.addUtf8("LocalVariableTable"); index = putInt16(variableTableAttrIndex, codeAttribute, index); int varCount = itsVarDescriptors.size(); int tableAttrLength = 2 + (varCount * 10); index = putInt32(tableAttrLength, codeAttribute, index); index = putInt16(varCount, codeAttribute, index); for (int i = 0; i < varCount; i++) { int[] chunk = (int[])itsVarDescriptors.get(i); int nameIndex = chunk[0]; int descriptorIndex = chunk[1]; int startPC = chunk[2]; int register = chunk[3]; int length = itsCodeBufferTop - startPC; index = putInt16(startPC, codeAttribute, index); index = putInt16(length, codeAttribute, index); index = putInt16(nameIndex, codeAttribute, index); index = putInt16(descriptorIndex, codeAttribute, index); index = putInt16(register, codeAttribute, index); } } itsCurrentMethod.setCodeAttribute(codeAttribute); itsExceptionTable = null; itsExceptionTableTop = 0; itsLineNumberTableTop = 0; itsCodeBufferTop = 0; itsCurrentMethod = null; itsMaxStack = 0; itsStackTop = 0; itsLabelTableTop = 0; itsFixupTableTop = 0; itsVarDescriptors = null; } /** * Add the single-byte opcode to the current method. * * @param theOpCode the opcode of the bytecode */ public void add(int theOpCode) { if (opcodeCount(theOpCode) != 0) throw new IllegalArgumentException("Unexpected operands"); int newStack = itsStackTop + stackChange(theOpCode); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); if (DEBUGCODE) System.out.println("Add " + bytecodeStr(theOpCode)); addToCodeBuffer(theOpCode); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } /** * Add a single-operand opcode to the current method. * * @param theOpCode the opcode of the bytecode * @param theOperand the operand of the bytecode */ public void add(int theOpCode, int theOperand) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+Integer.toHexString(theOperand)); } int newStack = itsStackTop + stackChange(theOpCode); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); switch (theOpCode) { case ByteCode.GOTO : // fallthru... case ByteCode.IFEQ : case ByteCode.IFNE : case ByteCode.IFLT : case ByteCode.IFGE : case ByteCode.IFGT : case ByteCode.IFLE : case ByteCode.IF_ICMPEQ : case ByteCode.IF_ICMPNE : case ByteCode.IF_ICMPLT : case ByteCode.IF_ICMPGE : case ByteCode.IF_ICMPGT : case ByteCode.IF_ICMPLE : case ByteCode.IF_ACMPEQ : case ByteCode.IF_ACMPNE : case ByteCode.JSR : case ByteCode.IFNULL : case ByteCode.IFNONNULL : { if ((theOperand & 0x80000000) != 0x80000000) { if ((theOperand < 0) || (theOperand > 65535)) throw new IllegalArgumentException( "Bad label for branch"); } int branchPC = itsCodeBufferTop; addToCodeBuffer(theOpCode); if ((theOperand & 0x80000000) != 0x80000000) { // hard displacement addToCodeInt16(theOperand); } else { // a label int targetPC = getLabelPC(theOperand); if (DEBUGLABELS) { int theLabel = theOperand & 0x7FFFFFFF; System.out.println("Fixing branch to " + theLabel + " at " + targetPC + " from " + branchPC); } if (targetPC != -1) { int offset = targetPC - branchPC; addToCodeInt16(offset); } else { addLabelFixup(theOperand, branchPC + 1); addToCodeInt16(0); } } } break; case ByteCode.BIPUSH : if ((byte)theOperand != theOperand) throw new IllegalArgumentException("out of range byte"); addToCodeBuffer(theOpCode); addToCodeBuffer((byte)theOperand); break; case ByteCode.SIPUSH : if ((short)theOperand != theOperand) throw new IllegalArgumentException("out of range short"); addToCodeBuffer(theOpCode); addToCodeInt16(theOperand); break; case ByteCode.NEWARRAY : if (!(0 <= theOperand && theOperand < 256)) throw new IllegalArgumentException("out of range index"); addToCodeBuffer(theOpCode); addToCodeBuffer(theOperand); break; case ByteCode.GETFIELD : case ByteCode.PUTFIELD : if (!(0 <= theOperand && theOperand < 65536)) throw new IllegalArgumentException("out of range field"); addToCodeBuffer(theOpCode); addToCodeInt16(theOperand); break; case ByteCode.LDC : case ByteCode.LDC_W : case ByteCode.LDC2_W : if (!(0 <= theOperand && theOperand < 65536)) throw new IllegalArgumentException("out of range index"); if (theOperand >= 256 || theOpCode == ByteCode.LDC_W || theOpCode == ByteCode.LDC2_W) { if (theOpCode == ByteCode.LDC) { addToCodeBuffer(ByteCode.LDC_W); } else { addToCodeBuffer(theOpCode); } addToCodeInt16(theOperand); } else { addToCodeBuffer(theOpCode); addToCodeBuffer(theOperand); } break; case ByteCode.RET : case ByteCode.ILOAD : case ByteCode.LLOAD : case ByteCode.FLOAD : case ByteCode.DLOAD : case ByteCode.ALOAD : case ByteCode.ISTORE : case ByteCode.LSTORE : case ByteCode.FSTORE : case ByteCode.DSTORE : case ByteCode.ASTORE : if (!(0 <= theOperand && theOperand < 65536)) throw new ClassFileFormatException("out of range variable"); if (theOperand >= 256) { addToCodeBuffer(ByteCode.WIDE); addToCodeBuffer(theOpCode); addToCodeInt16(theOperand); } else { addToCodeBuffer(theOpCode); addToCodeBuffer(theOperand); } break; default : throw new IllegalArgumentException( "Unexpected opcode for 1 operand"); } itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } /** * Generate the load constant bytecode for the given integer. * * @param k the constant */ public void addLoadConstant(int k) { switch (k) { case 0: add(ByteCode.ICONST_0); break; case 1: add(ByteCode.ICONST_1); break; case 2: add(ByteCode.ICONST_2); break; case 3: add(ByteCode.ICONST_3); break; case 4: add(ByteCode.ICONST_4); break; case 5: add(ByteCode.ICONST_5); break; default: add(ByteCode.LDC, itsConstantPool.addConstant(k)); break; } } /** * Generate the load constant bytecode for the given long. * * @param k the constant */ public void addLoadConstant(long k) { add(ByteCode.LDC2_W, itsConstantPool.addConstant(k)); } /** * Generate the load constant bytecode for the given float. * * @param k the constant */ public void addLoadConstant(float k) { add(ByteCode.LDC, itsConstantPool.addConstant(k)); } /** * Generate the load constant bytecode for the given double. * * @param k the constant */ public void addLoadConstant(double k) { add(ByteCode.LDC2_W, itsConstantPool.addConstant(k)); } /** * Generate the load constant bytecode for the given string. * * @param k the constant */ public void addLoadConstant(String k) { add(ByteCode.LDC, itsConstantPool.addConstant(k)); } /** * Add the given two-operand bytecode to the current method. * * @param theOpCode the opcode of the bytecode * @param theOperand1 the first operand of the bytecode * @param theOperand2 the second operand of the bytecode */ public void add(int theOpCode, int theOperand1, int theOperand2) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+Integer.toHexString(theOperand1) +", "+Integer.toHexString(theOperand2)); } int newStack = itsStackTop + stackChange(theOpCode); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); if (theOpCode == ByteCode.IINC) { if (!(0 <= theOperand1 && theOperand1 < 65536)) throw new ClassFileFormatException("out of range variable"); if (!(0 <= theOperand2 && theOperand2 < 65536)) throw new ClassFileFormatException("out of range increment"); if (theOperand1 > 255 || theOperand2 < -128 || theOperand2 > 127) { addToCodeBuffer(ByteCode.WIDE); addToCodeBuffer(ByteCode.IINC); addToCodeInt16(theOperand1); addToCodeInt16(theOperand2); } else { addToCodeBuffer(ByteCode.WIDE); addToCodeBuffer(ByteCode.IINC); addToCodeBuffer(theOperand1); addToCodeBuffer(theOperand2); } } else if (theOpCode == ByteCode.MULTIANEWARRAY) { if (!(0 <= theOperand1 && theOperand1 < 65536)) throw new IllegalArgumentException("out of range index"); if (!(0 <= theOperand2 && theOperand2 < 256)) throw new IllegalArgumentException("out of range dimensions"); addToCodeBuffer(ByteCode.MULTIANEWARRAY); addToCodeInt16(theOperand1); addToCodeBuffer(theOperand2); } else { throw new IllegalArgumentException( "Unexpected opcode for 2 operands"); } itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } public void add(int theOpCode, String className) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+className); } int newStack = itsStackTop + stackChange(theOpCode); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); switch (theOpCode) { case ByteCode.NEW : case ByteCode.ANEWARRAY : case ByteCode.CHECKCAST : case ByteCode.INSTANCEOF : { short classIndex = itsConstantPool.addClass(className); addToCodeBuffer(theOpCode); addToCodeInt16(classIndex); } break; default : throw new IllegalArgumentException( "bad opcode for class reference"); } itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } public void add(int theOpCode, String className, String fieldName, String fieldType) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+className+", "+fieldName+", "+fieldType); } int newStack = itsStackTop + stackChange(theOpCode); char fieldTypeChar = fieldType.charAt(0); int fieldSize = (fieldTypeChar == 'J' || fieldTypeChar == 'D') ? 2 : 1; switch (theOpCode) { case ByteCode.GETFIELD : case ByteCode.GETSTATIC : newStack += fieldSize; break; case ByteCode.PUTSTATIC : case ByteCode.PUTFIELD : newStack -= fieldSize; break; default : throw new IllegalArgumentException( "bad opcode for field reference"); } if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); short fieldRefIndex = itsConstantPool.addFieldRef(className, fieldName, fieldType); addToCodeBuffer(theOpCode); addToCodeInt16(fieldRefIndex); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } public void addInvoke(int theOpCode, String className, String methodName, String methodType) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(theOpCode) +", "+className+", "+methodName+", " +methodType); } int parameterInfo = sizeOfParameters(methodType); int parameterCount = parameterInfo >>> 16; int stackDiff = (short)parameterInfo; int newStack = itsStackTop + stackDiff; newStack += stackChange(theOpCode); // adjusts for 'this' if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); switch (theOpCode) { case ByteCode.INVOKEVIRTUAL : case ByteCode.INVOKESPECIAL : case ByteCode.INVOKESTATIC : case ByteCode.INVOKEINTERFACE : { addToCodeBuffer(theOpCode); if (theOpCode == ByteCode.INVOKEINTERFACE) { short ifMethodRefIndex = itsConstantPool.addInterfaceMethodRef( className, methodName, methodType); addToCodeInt16(ifMethodRefIndex); addToCodeBuffer(parameterCount + 1); addToCodeBuffer(0); } else { short methodRefIndex = itsConstantPool.addMethodRef( className, methodName, methodType); addToCodeInt16(methodRefIndex); } } break; default : throw new IllegalArgumentException( "bad opcode for method reference"); } itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(theOpCode) +" stack = "+itsStackTop); } } /** * Generate code to load the given integer on stack. * * @param k the constant */ public void addPush(int k) { if ((byte)k == k) { if (k == -1) { add(ByteCode.ICONST_M1); } else if (0 <= k && k <= 5) { add((byte)(ByteCode.ICONST_0 + k)); } else { add(ByteCode.BIPUSH, (byte)k); } } else if ((short)k == k) { add(ByteCode.SIPUSH, (short)k); } else { addLoadConstant(k); } } public void addPush(boolean k) { add(k ? ByteCode.ICONST_1 : ByteCode.ICONST_0); } /** * Generate code to load the given long on stack. * * @param k the constant */ public void addPush(long k) { int ik = (int)k; if (ik == k) { addPush(ik); add(ByteCode.I2L); } else { addLoadConstant(k); } } /** * Generate code to load the given double on stack. * * @param k the constant */ public void addPush(double k) { if (k == 0.0) { // zero add(ByteCode.DCONST_0); if (1.0 / k < 0) { // Negative zero add(ByteCode.DNEG); } } else if (k == 1.0 || k == -1.0) { add(ByteCode.DCONST_1); if (k < 0) { add(ByteCode.DNEG); } } else { addLoadConstant(k); } } /** * Generate the code to leave on stack the given string even if the * string encoding exeeds the class file limit for single string constant * * @param k the constant */ public void addPush(String k) { int length = k.length(); int limit = itsConstantPool.getUtfEncodingLimit(k, 0, length); if (limit == length) { addLoadConstant(k); return; } // Split string into picies fitting the UTF limit and generate code for // StringBuffer sb = new StringBuffer(length); // sb.append(loadConstant(piece_1)); // ... // sb.append(loadConstant(piece_N)); // sb.toString(); final String SB = "java/lang/StringBuffer"; add(ByteCode.NEW, SB); add(ByteCode.DUP); addPush(length); addInvoke(ByteCode.INVOKESPECIAL, SB, "", "(I)V"); int cursor = 0; for (;;) { add(ByteCode.DUP); String s = k.substring(cursor, limit); addLoadConstant(s); addInvoke(ByteCode.INVOKEVIRTUAL, SB, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;"); add(ByteCode.POP); if (limit == length) { break; } cursor = limit; limit = itsConstantPool.getUtfEncodingLimit(k, limit, length); } addInvoke(ByteCode.INVOKEVIRTUAL, SB, "toString", "()Ljava/lang/String;"); } /** * Check if k fits limit on string constant size imposed by class file * format. * * @param k the string constant */ public boolean isUnderStringSizeLimit(String k) { return itsConstantPool.isUnderUtfEncodingLimit(k); } /** * Store integer from stack top into the given local. * * @param local number of local register */ public void addIStore(int local) { xop(ByteCode.ISTORE_0, ByteCode.ISTORE, local); } /** * Store long from stack top into the given local. * * @param local number of local register */ public void addLStore(int local) { xop(ByteCode.LSTORE_0, ByteCode.LSTORE, local); } /** * Store float from stack top into the given local. * * @param local number of local register */ public void addFStore(int local) { xop(ByteCode.FSTORE_0, ByteCode.FSTORE, local); } /** * Store double from stack top into the given local. * * @param local number of local register */ public void addDStore(int local) { xop(ByteCode.DSTORE_0, ByteCode.DSTORE, local); } /** * Store object from stack top into the given local. * * @param local number of local register */ public void addAStore(int local) { xop(ByteCode.ASTORE_0, ByteCode.ASTORE, local); } /** * Load integer from the given local into stack. * * @param local number of local register */ public void addILoad(int local) { xop(ByteCode.ILOAD_0, ByteCode.ILOAD, local); } /** * Load long from the given local into stack. * * @param local number of local register */ public void addLLoad(int local) { xop(ByteCode.LLOAD_0, ByteCode.LLOAD, local); } /** * Load float from the given local into stack. * * @param local number of local register */ public void addFLoad(int local) { xop(ByteCode.FLOAD_0, ByteCode.FLOAD, local); } /** * Load double from the given local into stack. * * @param local number of local register */ public void addDLoad(int local) { xop(ByteCode.DLOAD_0, ByteCode.DLOAD, local); } /** * Load object from the given local into stack. * * @param local number of local register */ public void addALoad(int local) { xop(ByteCode.ALOAD_0, ByteCode.ALOAD, local); } /** * Load "this" into stack. */ public void addLoadThis() { add(ByteCode.ALOAD_0); } private void xop(int shortOp, int op, int local) { switch (local) { case 0: add(shortOp); break; case 1: add(shortOp + 1); break; case 2: add(shortOp + 2); break; case 3: add(shortOp + 3); break; default: add(op, local); } } public int addTableSwitch(int low, int high) { if (DEBUGCODE) { System.out.println("Add "+bytecodeStr(ByteCode.TABLESWITCH) +" "+low+" "+high); } if (low > high) throw new ClassFileFormatException("Bad bounds: "+low+' '+ high); int newStack = itsStackTop + stackChange(ByteCode.TABLESWITCH); if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); int entryCount = high - low + 1; int padSize = 3 & ~itsCodeBufferTop; // == 3 - itsCodeBufferTop % 4 int N = addReservedCodeSpace(1 + padSize + 4 * (1 + 2 + entryCount)); int switchStart = N; itsCodeBuffer[N++] = (byte)ByteCode.TABLESWITCH; while (padSize != 0) { itsCodeBuffer[N++] = 0; --padSize; } N += 4; // skip default offset N = putInt32(low, itsCodeBuffer, N); putInt32(high, itsCodeBuffer, N); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+bytecodeStr(ByteCode.TABLESWITCH) +" stack = "+itsStackTop); } return switchStart; } public final void markTableSwitchDefault(int switchStart) { setTableSwitchJump(switchStart, -1, itsCodeBufferTop); } public final void markTableSwitchCase(int switchStart, int caseIndex) { setTableSwitchJump(switchStart, caseIndex, itsCodeBufferTop); } public final void markTableSwitchCase(int switchStart, int caseIndex, int stackTop) { if (!(0 <= stackTop && stackTop <= itsMaxStack)) throw new IllegalArgumentException("Bad stack index: "+stackTop); itsStackTop = (short)stackTop; setTableSwitchJump(switchStart, caseIndex, itsCodeBufferTop); } public void setTableSwitchJump(int switchStart, int caseIndex, int jumpTarget) { if (!(0 <= jumpTarget && jumpTarget <= itsCodeBufferTop)) throw new IllegalArgumentException("Bad jump target: "+jumpTarget); if (!(caseIndex >= -1)) throw new IllegalArgumentException("Bad case index: "+caseIndex); int padSize = 3 & ~switchStart; // == 3 - switchStart % 4 int caseOffset; if (caseIndex < 0) { // default label caseOffset = switchStart + 1 + padSize; } else { caseOffset = switchStart + 1 + padSize + 4 * (3 + caseIndex); } if (!(0 <= switchStart && switchStart <= itsCodeBufferTop - 4 * 4 - padSize - 1)) { throw new IllegalArgumentException( switchStart+" is outside a possible range of tableswitch" +" in already generated code"); } if ((0xFF & itsCodeBuffer[switchStart]) != ByteCode.TABLESWITCH) { throw new IllegalArgumentException( switchStart+" is not offset of tableswitch statement"); } if (!(0 <= caseOffset && caseOffset + 4 <= itsCodeBufferTop)) { // caseIndex >= -1 does not guarantee that caseOffset >= 0 due // to a possible overflow. throw new ClassFileFormatException( "Too big case index: "+caseIndex); } // ALERT: perhaps check against case bounds? putInt32(jumpTarget - switchStart, itsCodeBuffer, caseOffset); } public int acquireLabel() { int top = itsLabelTableTop; if (itsLabelTable == null || top == itsLabelTable.length) { if (itsLabelTable == null) { itsLabelTable = new int[MIN_LABEL_TABLE_SIZE]; }else { int[] tmp = new int[itsLabelTable.length * 2]; System.arraycopy(itsLabelTable, 0, tmp, 0, top); itsLabelTable = tmp; } } itsLabelTableTop = top + 1; itsLabelTable[top] = -1; return top | 0x80000000; } public void markLabel(int label) { if (!(label < 0)) throw new IllegalArgumentException("Bad label, no biscuit"); label &= 0x7FFFFFFF; if (label > itsLabelTableTop) throw new IllegalArgumentException("Bad label"); if (itsLabelTable[label] != -1) { throw new IllegalStateException("Can only mark label once"); } itsLabelTable[label] = itsCodeBufferTop; } public void markLabel(int label, short stackTop) { markLabel(label); itsStackTop = stackTop; } public void markHandler(int theLabel) { itsStackTop = 1; markLabel(theLabel); } private int getLabelPC(int label) { if (!(label < 0)) throw new IllegalArgumentException("Bad label, no biscuit"); label &= 0x7FFFFFFF; if (!(label < itsLabelTableTop)) throw new IllegalArgumentException("Bad label"); return itsLabelTable[label]; } private void addLabelFixup(int label, int fixupSite) { if (!(label < 0)) throw new IllegalArgumentException("Bad label, no biscuit"); label &= 0x7FFFFFFF; if (!(label < itsLabelTableTop)) throw new IllegalArgumentException("Bad label"); int top = itsFixupTableTop; if (itsFixupTable == null || top == itsFixupTable.length) { if (itsFixupTable == null) { itsFixupTable = new long[MIN_FIXUP_TABLE_SIZE]; }else { long[] tmp = new long[itsFixupTable.length * 2]; System.arraycopy(itsFixupTable, 0, tmp, 0, top); itsFixupTable = tmp; } } itsFixupTableTop = top + 1; itsFixupTable[top] = ((long)label << 32) | fixupSite; } private void fixLabelGotos() { byte[] codeBuffer = itsCodeBuffer; for (int i = 0; i < itsFixupTableTop; i++) { long fixup = itsFixupTable[i]; int label = (int)(fixup >> 32); int fixupSite = (int)fixup; int pc = itsLabelTable[label]; if (pc == -1) { // Unlocated label throw new RuntimeException(); } // -1 to get delta from instruction start int offset = pc - (fixupSite - 1); if ((short)offset != offset) { throw new ClassFileFormatException ("Program too complex: too big jump offset"); } codeBuffer[fixupSite] = (byte)(offset >> 8); codeBuffer[fixupSite + 1] = (byte)offset; } itsFixupTableTop = 0; } /** * Get the current offset into the code of the current method. * * @return an integer representing the offset */ public int getCurrentCodeOffset() { return itsCodeBufferTop; } public short getStackTop() { return itsStackTop; } public void setStackTop(short n) { itsStackTop = n; } public void adjustStackTop(int delta) { int newStack = itsStackTop + delta; if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+"adjustStackTop("+delta+")" +" stack = "+itsStackTop); } } private void addToCodeBuffer(int b) { int N = addReservedCodeSpace(1); itsCodeBuffer[N] = (byte)b; } private void addToCodeInt16(int value) { int N = addReservedCodeSpace(2); putInt16(value, itsCodeBuffer, N); } private int addReservedCodeSpace(int size) { if (itsCurrentMethod == null) throw new IllegalArgumentException("No method to add to"); int oldTop = itsCodeBufferTop; int newTop = oldTop + size; if (newTop > itsCodeBuffer.length) { int newSize = itsCodeBuffer.length * 2; if (newTop > newSize) { newSize = newTop; } byte[] tmp = new byte[newSize]; System.arraycopy(itsCodeBuffer, 0, tmp, 0, oldTop); itsCodeBuffer = tmp; } itsCodeBufferTop = newTop; return oldTop; } public void addExceptionHandler(int startLabel, int endLabel, int handlerLabel, String catchClassName) { if ((startLabel & 0x80000000) != 0x80000000) throw new IllegalArgumentException("Bad startLabel"); if ((endLabel & 0x80000000) != 0x80000000) throw new IllegalArgumentException("Bad endLabel"); if ((handlerLabel & 0x80000000) != 0x80000000) throw new IllegalArgumentException("Bad handlerLabel"); /* * If catchClassName is null, use 0 for the catch_type_index; which * means catch everything. (Even when the verifier has let you throw * something other than a Throwable.) */ short catch_type_index = (catchClassName == null) ? 0 : itsConstantPool.addClass(catchClassName); ExceptionTableEntry newEntry = new ExceptionTableEntry( startLabel, endLabel, handlerLabel, catch_type_index); int N = itsExceptionTableTop; if (N == 0) { itsExceptionTable = new ExceptionTableEntry[ExceptionTableSize]; } else if (N == itsExceptionTable.length) { ExceptionTableEntry[] tmp = new ExceptionTableEntry[N * 2]; System.arraycopy(itsExceptionTable, 0, tmp, 0, N); itsExceptionTable = tmp; } itsExceptionTable[N] = newEntry; itsExceptionTableTop = N + 1; } public void addLineNumberEntry(short lineNumber) { if (itsCurrentMethod == null) throw new IllegalArgumentException("No method to stop"); int N = itsLineNumberTableTop; if (N == 0) { itsLineNumberTable = new int[LineNumberTableSize]; } else if (N == itsLineNumberTable.length) { int[] tmp = new int[N * 2]; System.arraycopy(itsLineNumberTable, 0, tmp, 0, N); itsLineNumberTable = tmp; } itsLineNumberTable[N] = (itsCodeBufferTop << 16) + lineNumber; itsLineNumberTableTop = N + 1; } /** * Write the class file to the OutputStream. * * @param oStream the stream to write to * @throws IOException if writing to the stream produces an exception */ public void write(OutputStream oStream) throws IOException { byte[] array = toByteArray(); oStream.write(array); } private int getWriteSize() { int size = 0; if (itsSourceFileNameIndex != 0) { itsConstantPool.addUtf8("SourceFile"); } size += 8; //writeLong(FileHeaderConstant); size += itsConstantPool.getWriteSize(); size += 2; //writeShort(itsFlags); size += 2; //writeShort(itsThisClassIndex); size += 2; //writeShort(itsSuperClassIndex); size += 2; //writeShort(itsInterfaces.size()); size += 2 * itsInterfaces.size(); size += 2; //writeShort(itsFields.size()); for (int i = 0; i < itsFields.size(); i++) { size += ((ClassFileField)(itsFields.get(i))).getWriteSize(); } size += 2; //writeShort(itsMethods.size()); for (int i = 0; i < itsMethods.size(); i++) { size += ((ClassFileMethod)(itsMethods.get(i))).getWriteSize(); } if (itsSourceFileNameIndex != 0) { size += 2; //writeShort(1); attributes count size += 2; //writeShort(sourceFileAttributeNameIndex); size += 4; //writeInt(2); size += 2; //writeShort(itsSourceFileNameIndex); }else { size += 2; //out.writeShort(0); no attributes } return size; } /** * Get the class file as array of bytesto the OutputStream. */ public byte[] toByteArray() { int dataSize = getWriteSize(); byte[] data = new byte[dataSize]; int offset = 0; short sourceFileAttributeNameIndex = 0; if (itsSourceFileNameIndex != 0) { sourceFileAttributeNameIndex = itsConstantPool.addUtf8( "SourceFile"); } offset = putInt64(FileHeaderConstant, data, offset); offset = itsConstantPool.write(data, offset); offset = putInt16(itsFlags, data, offset); offset = putInt16(itsThisClassIndex, data, offset); offset = putInt16(itsSuperClassIndex, data, offset); offset = putInt16(itsInterfaces.size(), data, offset); for (int i = 0; i < itsInterfaces.size(); i++) { int interfaceIndex = ((Short)(itsInterfaces.get(i))).shortValue(); offset = putInt16(interfaceIndex, data, offset); } offset = putInt16(itsFields.size(), data, offset); for (int i = 0; i < itsFields.size(); i++) { ClassFileField field = (ClassFileField)itsFields.get(i); offset = field.write(data, offset); } offset = putInt16(itsMethods.size(), data, offset); for (int i = 0; i < itsMethods.size(); i++) { ClassFileMethod method = (ClassFileMethod)itsMethods.get(i); offset = method.write(data, offset); } if (itsSourceFileNameIndex != 0) { offset = putInt16(1, data, offset); // attributes count offset = putInt16(sourceFileAttributeNameIndex, data, offset); offset = putInt32(2, data, offset); offset = putInt16(itsSourceFileNameIndex, data, offset); } else { offset = putInt16(0, data, offset); // no attributes } if (offset != dataSize) { // Check getWriteSize is consistent with write! throw new RuntimeException(); } return data; } static int putInt64(long value, byte[] array, int offset) { offset = putInt32((int)(value >>> 32), array, offset); return putInt32((int)value, array, offset); } private static void badStack(int value) { String s; if (value < 0) { s = "Stack underflow: "+value; } else { s = "Too big stack: "+value; } throw new IllegalStateException(s); } /* Really weird. Returns an int with # parameters in hi 16 bits, and stack difference removal of parameters from stack and pushing the result (it does not take into account removal of this in case of non-static methods). If Java really supported references we wouldn't have to be this perverted. */ private static int sizeOfParameters(String pString) { int length = pString.length(); int rightParenthesis = pString.lastIndexOf(')'); if (3 <= length /* minimal signature takes at least 3 chars: ()V */ && pString.charAt(0) == '(' && 1 <= rightParenthesis && rightParenthesis + 1 < length) { boolean ok = true; int index = 1; int stackDiff = 0; int count = 0; stringLoop: while (index != rightParenthesis) { switch (pString.charAt(index)) { default: ok = false; break stringLoop; case 'J' : case 'D' : --stackDiff; // fall thru case 'B' : case 'S' : case 'C' : case 'I' : case 'Z' : case 'F' : --stackDiff; ++count; ++index; continue; case '[' : ++index; int c = pString.charAt(index); while (c == '[') { ++index; c = pString.charAt(index); } switch (c) { default: ok = false; break stringLoop; case 'J' : case 'D' : case 'B' : case 'S' : case 'C' : case 'I' : case 'Z' : case 'F' : --stackDiff; ++count; ++index; continue; case 'L': // fall thru } // fall thru case 'L' : { --stackDiff; ++count; ++index; int semicolon = pString.indexOf(';', index); if (!(index + 1 <= semicolon && semicolon < rightParenthesis)) { ok = false; break stringLoop; } index = semicolon + 1; continue; } } } if (ok) { switch (pString.charAt(rightParenthesis + 1)) { default: ok = false; break; case 'J' : case 'D' : ++stackDiff; // fall thru case 'B' : case 'S' : case 'C' : case 'I' : case 'Z' : case 'F' : case 'L' : case '[' : ++stackDiff; // fall thru case 'V' : break; } if (ok) { return ((count << 16) | (0xFFFF & stackDiff)); } } } throw new IllegalArgumentException( "Bad parameter signature: "+pString); } static int putInt16(int value, byte[] array, int offset) { array[offset + 0] = (byte)(value >>> 8); array[offset + 1] = (byte)value; return offset + 2; } static int putInt32(int value, byte[] array, int offset) { array[offset + 0] = (byte)(value >>> 24); array[offset + 1] = (byte)(value >>> 16); array[offset + 2] = (byte)(value >>> 8); array[offset + 3] = (byte)value; return offset + 4; } /** * Number of operands accompanying the opcode. */ static int opcodeCount(int opcode) { switch (opcode) { case ByteCode.AALOAD: case ByteCode.AASTORE: case ByteCode.ACONST_NULL: case ByteCode.ALOAD_0: case ByteCode.ALOAD_1: case ByteCode.ALOAD_2: case ByteCode.ALOAD_3: case ByteCode.ARETURN: case ByteCode.ARRAYLENGTH: case ByteCode.ASTORE_0: case ByteCode.ASTORE_1: case ByteCode.ASTORE_2: case ByteCode.ASTORE_3: case ByteCode.ATHROW: case ByteCode.BALOAD: case ByteCode.BASTORE: case ByteCode.BREAKPOINT: case ByteCode.CALOAD: case ByteCode.CASTORE: case ByteCode.D2F: case ByteCode.D2I: case ByteCode.D2L: case ByteCode.DADD: case ByteCode.DALOAD: case ByteCode.DASTORE: case ByteCode.DCMPG: case ByteCode.DCMPL: case ByteCode.DCONST_0: case ByteCode.DCONST_1: case ByteCode.DDIV: case ByteCode.DLOAD_0: case ByteCode.DLOAD_1: case ByteCode.DLOAD_2: case ByteCode.DLOAD_3: case ByteCode.DMUL: case ByteCode.DNEG: case ByteCode.DREM: case ByteCode.DRETURN: case ByteCode.DSTORE_0: case ByteCode.DSTORE_1: case ByteCode.DSTORE_2: case ByteCode.DSTORE_3: case ByteCode.DSUB: case ByteCode.DUP: case ByteCode.DUP2: case ByteCode.DUP2_X1: case ByteCode.DUP2_X2: case ByteCode.DUP_X1: case ByteCode.DUP_X2: case ByteCode.F2D: case ByteCode.F2I: case ByteCode.F2L: case ByteCode.FADD: case ByteCode.FALOAD: case ByteCode.FASTORE: case ByteCode.FCMPG: case ByteCode.FCMPL: case ByteCode.FCONST_0: case ByteCode.FCONST_1: case ByteCode.FCONST_2: case ByteCode.FDIV: case ByteCode.FLOAD_0: case ByteCode.FLOAD_1: case ByteCode.FLOAD_2: case ByteCode.FLOAD_3: case ByteCode.FMUL: case ByteCode.FNEG: case ByteCode.FREM: case ByteCode.FRETURN: case ByteCode.FSTORE_0: case ByteCode.FSTORE_1: case ByteCode.FSTORE_2: case ByteCode.FSTORE_3: case ByteCode.FSUB: case ByteCode.I2B: case ByteCode.I2C: case ByteCode.I2D: case ByteCode.I2F: case ByteCode.I2L: case ByteCode.I2S: case ByteCode.IADD: case ByteCode.IALOAD: case ByteCode.IAND: case ByteCode.IASTORE: case ByteCode.ICONST_0: case ByteCode.ICONST_1: case ByteCode.ICONST_2: case ByteCode.ICONST_3: case ByteCode.ICONST_4: case ByteCode.ICONST_5: case ByteCode.ICONST_M1: case ByteCode.IDIV: case ByteCode.ILOAD_0: case ByteCode.ILOAD_1: case ByteCode.ILOAD_2: case ByteCode.ILOAD_3: case ByteCode.IMPDEP1: case ByteCode.IMPDEP2: case ByteCode.IMUL: case ByteCode.INEG: case ByteCode.IOR: case ByteCode.IREM: case ByteCode.IRETURN: case ByteCode.ISHL: case ByteCode.ISHR: case ByteCode.ISTORE_0: case ByteCode.ISTORE_1: case ByteCode.ISTORE_2: case ByteCode.ISTORE_3: case ByteCode.ISUB: case ByteCode.IUSHR: case ByteCode.IXOR: case ByteCode.L2D: case ByteCode.L2F: case ByteCode.L2I: case ByteCode.LADD: case ByteCode.LALOAD: case ByteCode.LAND: case ByteCode.LASTORE: case ByteCode.LCMP: case ByteCode.LCONST_0: case ByteCode.LCONST_1: case ByteCode.LDIV: case ByteCode.LLOAD_0: case ByteCode.LLOAD_1: case ByteCode.LLOAD_2: case ByteCode.LLOAD_3: case ByteCode.LMUL: case ByteCode.LNEG: case ByteCode.LOR: case ByteCode.LREM: case ByteCode.LRETURN: case ByteCode.LSHL: case ByteCode.LSHR: case ByteCode.LSTORE_0: case ByteCode.LSTORE_1: case ByteCode.LSTORE_2: case ByteCode.LSTORE_3: case ByteCode.LSUB: case ByteCode.LUSHR: case ByteCode.LXOR: case ByteCode.MONITORENTER: case ByteCode.MONITOREXIT: case ByteCode.NOP: case ByteCode.POP: case ByteCode.POP2: case ByteCode.RETURN: case ByteCode.SALOAD: case ByteCode.SASTORE: case ByteCode.SWAP: case ByteCode.WIDE: return 0; case ByteCode.ALOAD: case ByteCode.ANEWARRAY: case ByteCode.ASTORE: case ByteCode.BIPUSH: case ByteCode.CHECKCAST: case ByteCode.DLOAD: case ByteCode.DSTORE: case ByteCode.FLOAD: case ByteCode.FSTORE: case ByteCode.GETFIELD: case ByteCode.GETSTATIC: case ByteCode.GOTO: case ByteCode.GOTO_W: case ByteCode.IFEQ: case ByteCode.IFGE: case ByteCode.IFGT: case ByteCode.IFLE: case ByteCode.IFLT: case ByteCode.IFNE: case ByteCode.IFNONNULL: case ByteCode.IFNULL: case ByteCode.IF_ACMPEQ: case ByteCode.IF_ACMPNE: case ByteCode.IF_ICMPEQ: case ByteCode.IF_ICMPGE: case ByteCode.IF_ICMPGT: case ByteCode.IF_ICMPLE: case ByteCode.IF_ICMPLT: case ByteCode.IF_ICMPNE: case ByteCode.ILOAD: case ByteCode.INSTANCEOF: case ByteCode.INVOKEINTERFACE: case ByteCode.INVOKESPECIAL: case ByteCode.INVOKESTATIC: case ByteCode.INVOKEVIRTUAL: case ByteCode.ISTORE: case ByteCode.JSR: case ByteCode.JSR_W: case ByteCode.LDC: case ByteCode.LDC2_W: case ByteCode.LDC_W: case ByteCode.LLOAD: case ByteCode.LSTORE: case ByteCode.NEW: case ByteCode.NEWARRAY: case ByteCode.PUTFIELD: case ByteCode.PUTSTATIC: case ByteCode.RET: case ByteCode.SIPUSH: return 1; case ByteCode.IINC: case ByteCode.MULTIANEWARRAY: return 2; case ByteCode.LOOKUPSWITCH: case ByteCode.TABLESWITCH: return -1; } throw new IllegalArgumentException("Bad opcode: "+opcode); } /** * The effect on the operand stack of a given opcode. */ static int stackChange(int opcode) { // For INVOKE... accounts only for popping this (unless static), // ignoring parameters and return type switch (opcode) { case ByteCode.DASTORE: case ByteCode.LASTORE: return -4; case ByteCode.AASTORE: case ByteCode.BASTORE: case ByteCode.CASTORE: case ByteCode.DCMPG: case ByteCode.DCMPL: case ByteCode.FASTORE: case ByteCode.IASTORE: case ByteCode.LCMP: case ByteCode.SASTORE: return -3; case ByteCode.DADD: case ByteCode.DDIV: case ByteCode.DMUL: case ByteCode.DREM: case ByteCode.DRETURN: case ByteCode.DSTORE: case ByteCode.DSTORE_0: case ByteCode.DSTORE_1: case ByteCode.DSTORE_2: case ByteCode.DSTORE_3: case ByteCode.DSUB: case ByteCode.IF_ACMPEQ: case ByteCode.IF_ACMPNE: case ByteCode.IF_ICMPEQ: case ByteCode.IF_ICMPGE: case ByteCode.IF_ICMPGT: case ByteCode.IF_ICMPLE: case ByteCode.IF_ICMPLT: case ByteCode.IF_ICMPNE: case ByteCode.LADD: case ByteCode.LAND: case ByteCode.LDIV: case ByteCode.LMUL: case ByteCode.LOR: case ByteCode.LREM: case ByteCode.LRETURN: case ByteCode.LSTORE: case ByteCode.LSTORE_0: case ByteCode.LSTORE_1: case ByteCode.LSTORE_2: case ByteCode.LSTORE_3: case ByteCode.LSUB: case ByteCode.LXOR: case ByteCode.POP2: return -2; case ByteCode.AALOAD: case ByteCode.ARETURN: case ByteCode.ASTORE: case ByteCode.ASTORE_0: case ByteCode.ASTORE_1: case ByteCode.ASTORE_2: case ByteCode.ASTORE_3: case ByteCode.ATHROW: case ByteCode.BALOAD: case ByteCode.CALOAD: case ByteCode.D2F: case ByteCode.D2I: case ByteCode.FADD: case ByteCode.FALOAD: case ByteCode.FCMPG: case ByteCode.FCMPL: case ByteCode.FDIV: case ByteCode.FMUL: case ByteCode.FREM: case ByteCode.FRETURN: case ByteCode.FSTORE: case ByteCode.FSTORE_0: case ByteCode.FSTORE_1: case ByteCode.FSTORE_2: case ByteCode.FSTORE_3: case ByteCode.FSUB: case ByteCode.GETFIELD: case ByteCode.IADD: case ByteCode.IALOAD: case ByteCode.IAND: case ByteCode.IDIV: case ByteCode.IFEQ: case ByteCode.IFGE: case ByteCode.IFGT: case ByteCode.IFLE: case ByteCode.IFLT: case ByteCode.IFNE: case ByteCode.IFNONNULL: case ByteCode.IFNULL: case ByteCode.IMUL: case ByteCode.INVOKEINTERFACE: // case ByteCode.INVOKESPECIAL: // but needs to account for case ByteCode.INVOKEVIRTUAL: // pops 'this' (unless static) case ByteCode.IOR: case ByteCode.IREM: case ByteCode.IRETURN: case ByteCode.ISHL: case ByteCode.ISHR: case ByteCode.ISTORE: case ByteCode.ISTORE_0: case ByteCode.ISTORE_1: case ByteCode.ISTORE_2: case ByteCode.ISTORE_3: case ByteCode.ISUB: case ByteCode.IUSHR: case ByteCode.IXOR: case ByteCode.L2F: case ByteCode.L2I: case ByteCode.LOOKUPSWITCH: case ByteCode.LSHL: case ByteCode.LSHR: case ByteCode.LUSHR: case ByteCode.MONITORENTER: case ByteCode.MONITOREXIT: case ByteCode.POP: case ByteCode.PUTFIELD: case ByteCode.SALOAD: case ByteCode.TABLESWITCH: return -1; case ByteCode.ANEWARRAY: case ByteCode.ARRAYLENGTH: case ByteCode.BREAKPOINT: case ByteCode.CHECKCAST: case ByteCode.D2L: case ByteCode.DALOAD: case ByteCode.DNEG: case ByteCode.F2I: case ByteCode.FNEG: case ByteCode.GETSTATIC: case ByteCode.GOTO: case ByteCode.GOTO_W: case ByteCode.I2B: case ByteCode.I2C: case ByteCode.I2F: case ByteCode.I2S: case ByteCode.IINC: case ByteCode.IMPDEP1: case ByteCode.IMPDEP2: case ByteCode.INEG: case ByteCode.INSTANCEOF: case ByteCode.INVOKESTATIC: case ByteCode.L2D: case ByteCode.LALOAD: case ByteCode.LNEG: case ByteCode.NEWARRAY: case ByteCode.NOP: case ByteCode.PUTSTATIC: case ByteCode.RET: case ByteCode.RETURN: case ByteCode.SWAP: case ByteCode.WIDE: return 0; case ByteCode.ACONST_NULL: case ByteCode.ALOAD: case ByteCode.ALOAD_0: case ByteCode.ALOAD_1: case ByteCode.ALOAD_2: case ByteCode.ALOAD_3: case ByteCode.BIPUSH: case ByteCode.DUP: case ByteCode.DUP_X1: case ByteCode.DUP_X2: case ByteCode.F2D: case ByteCode.F2L: case ByteCode.FCONST_0: case ByteCode.FCONST_1: case ByteCode.FCONST_2: case ByteCode.FLOAD: case ByteCode.FLOAD_0: case ByteCode.FLOAD_1: case ByteCode.FLOAD_2: case ByteCode.FLOAD_3: case ByteCode.I2D: case ByteCode.I2L: case ByteCode.ICONST_0: case ByteCode.ICONST_1: case ByteCode.ICONST_2: case ByteCode.ICONST_3: case ByteCode.ICONST_4: case ByteCode.ICONST_5: case ByteCode.ICONST_M1: case ByteCode.ILOAD: case ByteCode.ILOAD_0: case ByteCode.ILOAD_1: case ByteCode.ILOAD_2: case ByteCode.ILOAD_3: case ByteCode.JSR: case ByteCode.JSR_W: case ByteCode.LDC: case ByteCode.LDC_W: case ByteCode.MULTIANEWARRAY: case ByteCode.NEW: case ByteCode.SIPUSH: return 1; case ByteCode.DCONST_0: case ByteCode.DCONST_1: case ByteCode.DLOAD: case ByteCode.DLOAD_0: case ByteCode.DLOAD_1: case ByteCode.DLOAD_2: case ByteCode.DLOAD_3: case ByteCode.DUP2: case ByteCode.DUP2_X1: case ByteCode.DUP2_X2: case ByteCode.LCONST_0: case ByteCode.LCONST_1: case ByteCode.LDC2_W: case ByteCode.LLOAD: case ByteCode.LLOAD_0: case ByteCode.LLOAD_1: case ByteCode.LLOAD_2: case ByteCode.LLOAD_3: return 2; } throw new IllegalArgumentException("Bad opcode: "+opcode); } /* * Number of bytes of operands generated after the opcode. * Not in use currently. */ /* int extra(int opcode) { switch (opcode) { case ByteCode.AALOAD: case ByteCode.AASTORE: case ByteCode.ACONST_NULL: case ByteCode.ALOAD_0: case ByteCode.ALOAD_1: case ByteCode.ALOAD_2: case ByteCode.ALOAD_3: case ByteCode.ARETURN: case ByteCode.ARRAYLENGTH: case ByteCode.ASTORE_0: case ByteCode.ASTORE_1: case ByteCode.ASTORE_2: case ByteCode.ASTORE_3: case ByteCode.ATHROW: case ByteCode.BALOAD: case ByteCode.BASTORE: case ByteCode.BREAKPOINT: case ByteCode.CALOAD: case ByteCode.CASTORE: case ByteCode.D2F: case ByteCode.D2I: case ByteCode.D2L: case ByteCode.DADD: case ByteCode.DALOAD: case ByteCode.DASTORE: case ByteCode.DCMPG: case ByteCode.DCMPL: case ByteCode.DCONST_0: case ByteCode.DCONST_1: case ByteCode.DDIV: case ByteCode.DLOAD_0: case ByteCode.DLOAD_1: case ByteCode.DLOAD_2: case ByteCode.DLOAD_3: case ByteCode.DMUL: case ByteCode.DNEG: case ByteCode.DREM: case ByteCode.DRETURN: case ByteCode.DSTORE_0: case ByteCode.DSTORE_1: case ByteCode.DSTORE_2: case ByteCode.DSTORE_3: case ByteCode.DSUB: case ByteCode.DUP2: case ByteCode.DUP2_X1: case ByteCode.DUP2_X2: case ByteCode.DUP: case ByteCode.DUP_X1: case ByteCode.DUP_X2: case ByteCode.F2D: case ByteCode.F2I: case ByteCode.F2L: case ByteCode.FADD: case ByteCode.FALOAD: case ByteCode.FASTORE: case ByteCode.FCMPG: case ByteCode.FCMPL: case ByteCode.FCONST_0: case ByteCode.FCONST_1: case ByteCode.FCONST_2: case ByteCode.FDIV: case ByteCode.FLOAD_0: case ByteCode.FLOAD_1: case ByteCode.FLOAD_2: case ByteCode.FLOAD_3: case ByteCode.FMUL: case ByteCode.FNEG: case ByteCode.FREM: case ByteCode.FRETURN: case ByteCode.FSTORE_0: case ByteCode.FSTORE_1: case ByteCode.FSTORE_2: case ByteCode.FSTORE_3: case ByteCode.FSUB: case ByteCode.I2B: case ByteCode.I2C: case ByteCode.I2D: case ByteCode.I2F: case ByteCode.I2L: case ByteCode.I2S: case ByteCode.IADD: case ByteCode.IALOAD: case ByteCode.IAND: case ByteCode.IASTORE: case ByteCode.ICONST_0: case ByteCode.ICONST_1: case ByteCode.ICONST_2: case ByteCode.ICONST_3: case ByteCode.ICONST_4: case ByteCode.ICONST_5: case ByteCode.ICONST_M1: case ByteCode.IDIV: case ByteCode.ILOAD_0: case ByteCode.ILOAD_1: case ByteCode.ILOAD_2: case ByteCode.ILOAD_3: case ByteCode.IMPDEP1: case ByteCode.IMPDEP2: case ByteCode.IMUL: case ByteCode.INEG: case ByteCode.IOR: case ByteCode.IREM: case ByteCode.IRETURN: case ByteCode.ISHL: case ByteCode.ISHR: case ByteCode.ISTORE_0: case ByteCode.ISTORE_1: case ByteCode.ISTORE_2: case ByteCode.ISTORE_3: case ByteCode.ISUB: case ByteCode.IUSHR: case ByteCode.IXOR: case ByteCode.L2D: case ByteCode.L2F: case ByteCode.L2I: case ByteCode.LADD: case ByteCode.LALOAD: case ByteCode.LAND: case ByteCode.LASTORE: case ByteCode.LCMP: case ByteCode.LCONST_0: case ByteCode.LCONST_1: case ByteCode.LDIV: case ByteCode.LLOAD_0: case ByteCode.LLOAD_1: case ByteCode.LLOAD_2: case ByteCode.LLOAD_3: case ByteCode.LMUL: case ByteCode.LNEG: case ByteCode.LOR: case ByteCode.LREM: case ByteCode.LRETURN: case ByteCode.LSHL: case ByteCode.LSHR: case ByteCode.LSTORE_0: case ByteCode.LSTORE_1: case ByteCode.LSTORE_2: case ByteCode.LSTORE_3: case ByteCode.LSUB: case ByteCode.LUSHR: case ByteCode.LXOR: case ByteCode.MONITORENTER: case ByteCode.MONITOREXIT: case ByteCode.NOP: case ByteCode.POP2: case ByteCode.POP: case ByteCode.RETURN: case ByteCode.SALOAD: case ByteCode.SASTORE: case ByteCode.SWAP: case ByteCode.WIDE: return 0; case ByteCode.ALOAD: case ByteCode.ASTORE: case ByteCode.BIPUSH: case ByteCode.DLOAD: case ByteCode.DSTORE: case ByteCode.FLOAD: case ByteCode.FSTORE: case ByteCode.ILOAD: case ByteCode.ISTORE: case ByteCode.LDC: case ByteCode.LLOAD: case ByteCode.LSTORE: case ByteCode.NEWARRAY: case ByteCode.RET: return 1; case ByteCode.ANEWARRAY: case ByteCode.CHECKCAST: case ByteCode.GETFIELD: case ByteCode.GETSTATIC: case ByteCode.GOTO: case ByteCode.IFEQ: case ByteCode.IFGE: case ByteCode.IFGT: case ByteCode.IFLE: case ByteCode.IFLT: case ByteCode.IFNE: case ByteCode.IFNONNULL: case ByteCode.IFNULL: case ByteCode.IF_ACMPEQ: case ByteCode.IF_ACMPNE: case ByteCode.IF_ICMPEQ: case ByteCode.IF_ICMPGE: case ByteCode.IF_ICMPGT: case ByteCode.IF_ICMPLE: case ByteCode.IF_ICMPLT: case ByteCode.IF_ICMPNE: case ByteCode.IINC: case ByteCode.INSTANCEOF: case ByteCode.INVOKEINTERFACE: case ByteCode.INVOKESPECIAL: case ByteCode.INVOKESTATIC: case ByteCode.INVOKEVIRTUAL: case ByteCode.JSR: case ByteCode.LDC2_W: case ByteCode.LDC_W: case ByteCode.NEW: case ByteCode.PUTFIELD: case ByteCode.PUTSTATIC: case ByteCode.SIPUSH: return 2; case ByteCode.MULTIANEWARRAY: return 3; case ByteCode.GOTO_W: case ByteCode.JSR_W: return 4; case ByteCode.LOOKUPSWITCH: // depends on alignment case ByteCode.TABLESWITCH: // depends on alignment return -1; } throw new IllegalArgumentException("Bad opcode: "+opcode); } */ private static String bytecodeStr(int code) { if (DEBUGSTACK || DEBUGCODE) { switch (code) { case ByteCode.NOP: return "nop"; case ByteCode.ACONST_NULL: return "aconst_null"; case ByteCode.ICONST_M1: return "iconst_m1"; case ByteCode.ICONST_0: return "iconst_0"; case ByteCode.ICONST_1: return "iconst_1"; case ByteCode.ICONST_2: return "iconst_2"; case ByteCode.ICONST_3: return "iconst_3"; case ByteCode.ICONST_4: return "iconst_4"; case ByteCode.ICONST_5: return "iconst_5"; case ByteCode.LCONST_0: return "lconst_0"; case ByteCode.LCONST_1: return "lconst_1"; case ByteCode.FCONST_0: return "fconst_0"; case ByteCode.FCONST_1: return "fconst_1"; case ByteCode.FCONST_2: return "fconst_2"; case ByteCode.DCONST_0: return "dconst_0"; case ByteCode.DCONST_1: return "dconst_1"; case ByteCode.BIPUSH: return "bipush"; case ByteCode.SIPUSH: return "sipush"; case ByteCode.LDC: return "ldc"; case ByteCode.LDC_W: return "ldc_w"; case ByteCode.LDC2_W: return "ldc2_w"; case ByteCode.ILOAD: return "iload"; case ByteCode.LLOAD: return "lload"; case ByteCode.FLOAD: return "fload"; case ByteCode.DLOAD: return "dload"; case ByteCode.ALOAD: return "aload"; case ByteCode.ILOAD_0: return "iload_0"; case ByteCode.ILOAD_1: return "iload_1"; case ByteCode.ILOAD_2: return "iload_2"; case ByteCode.ILOAD_3: return "iload_3"; case ByteCode.LLOAD_0: return "lload_0"; case ByteCode.LLOAD_1: return "lload_1"; case ByteCode.LLOAD_2: return "lload_2"; case ByteCode.LLOAD_3: return "lload_3"; case ByteCode.FLOAD_0: return "fload_0"; case ByteCode.FLOAD_1: return "fload_1"; case ByteCode.FLOAD_2: return "fload_2"; case ByteCode.FLOAD_3: return "fload_3"; case ByteCode.DLOAD_0: return "dload_0"; case ByteCode.DLOAD_1: return "dload_1"; case ByteCode.DLOAD_2: return "dload_2"; case ByteCode.DLOAD_3: return "dload_3"; case ByteCode.ALOAD_0: return "aload_0"; case ByteCode.ALOAD_1: return "aload_1"; case ByteCode.ALOAD_2: return "aload_2"; case ByteCode.ALOAD_3: return "aload_3"; case ByteCode.IALOAD: return "iaload"; case ByteCode.LALOAD: return "laload"; case ByteCode.FALOAD: return "faload"; case ByteCode.DALOAD: return "daload"; case ByteCode.AALOAD: return "aaload"; case ByteCode.BALOAD: return "baload"; case ByteCode.CALOAD: return "caload"; case ByteCode.SALOAD: return "saload"; case ByteCode.ISTORE: return "istore"; case ByteCode.LSTORE: return "lstore"; case ByteCode.FSTORE: return "fstore"; case ByteCode.DSTORE: return "dstore"; case ByteCode.ASTORE: return "astore"; case ByteCode.ISTORE_0: return "istore_0"; case ByteCode.ISTORE_1: return "istore_1"; case ByteCode.ISTORE_2: return "istore_2"; case ByteCode.ISTORE_3: return "istore_3"; case ByteCode.LSTORE_0: return "lstore_0"; case ByteCode.LSTORE_1: return "lstore_1"; case ByteCode.LSTORE_2: return "lstore_2"; case ByteCode.LSTORE_3: return "lstore_3"; case ByteCode.FSTORE_0: return "fstore_0"; case ByteCode.FSTORE_1: return "fstore_1"; case ByteCode.FSTORE_2: return "fstore_2"; case ByteCode.FSTORE_3: return "fstore_3"; case ByteCode.DSTORE_0: return "dstore_0"; case ByteCode.DSTORE_1: return "dstore_1"; case ByteCode.DSTORE_2: return "dstore_2"; case ByteCode.DSTORE_3: return "dstore_3"; case ByteCode.ASTORE_0: return "astore_0"; case ByteCode.ASTORE_1: return "astore_1"; case ByteCode.ASTORE_2: return "astore_2"; case ByteCode.ASTORE_3: return "astore_3"; case ByteCode.IASTORE: return "iastore"; case ByteCode.LASTORE: return "lastore"; case ByteCode.FASTORE: return "fastore"; case ByteCode.DASTORE: return "dastore"; case ByteCode.AASTORE: return "aastore"; case ByteCode.BASTORE: return "bastore"; case ByteCode.CASTORE: return "castore"; case ByteCode.SASTORE: return "sastore"; case ByteCode.POP: return "pop"; case ByteCode.POP2: return "pop2"; case ByteCode.DUP: return "dup"; case ByteCode.DUP_X1: return "dup_x1"; case ByteCode.DUP_X2: return "dup_x2"; case ByteCode.DUP2: return "dup2"; case ByteCode.DUP2_X1: return "dup2_x1"; case ByteCode.DUP2_X2: return "dup2_x2"; case ByteCode.SWAP: return "swap"; case ByteCode.IADD: return "iadd"; case ByteCode.LADD: return "ladd"; case ByteCode.FADD: return "fadd"; case ByteCode.DADD: return "dadd"; case ByteCode.ISUB: return "isub"; case ByteCode.LSUB: return "lsub"; case ByteCode.FSUB: return "fsub"; case ByteCode.DSUB: return "dsub"; case ByteCode.IMUL: return "imul"; case ByteCode.LMUL: return "lmul"; case ByteCode.FMUL: return "fmul"; case ByteCode.DMUL: return "dmul"; case ByteCode.IDIV: return "idiv"; case ByteCode.LDIV: return "ldiv"; case ByteCode.FDIV: return "fdiv"; case ByteCode.DDIV: return "ddiv"; case ByteCode.IREM: return "irem"; case ByteCode.LREM: return "lrem"; case ByteCode.FREM: return "frem"; case ByteCode.DREM: return "drem"; case ByteCode.INEG: return "ineg"; case ByteCode.LNEG: return "lneg"; case ByteCode.FNEG: return "fneg"; case ByteCode.DNEG: return "dneg"; case ByteCode.ISHL: return "ishl"; case ByteCode.LSHL: return "lshl"; case ByteCode.ISHR: return "ishr"; case ByteCode.LSHR: return "lshr"; case ByteCode.IUSHR: return "iushr"; case ByteCode.LUSHR: return "lushr"; case ByteCode.IAND: return "iand"; case ByteCode.LAND: return "land"; case ByteCode.IOR: return "ior"; case ByteCode.LOR: return "lor"; case ByteCode.IXOR: return "ixor"; case ByteCode.LXOR: return "lxor"; case ByteCode.IINC: return "iinc"; case ByteCode.I2L: return "i2l"; case ByteCode.I2F: return "i2f"; case ByteCode.I2D: return "i2d"; case ByteCode.L2I: return "l2i"; case ByteCode.L2F: return "l2f"; case ByteCode.L2D: return "l2d"; case ByteCode.F2I: return "f2i"; case ByteCode.F2L: return "f2l"; case ByteCode.F2D: return "f2d"; case ByteCode.D2I: return "d2i"; case ByteCode.D2L: return "d2l"; case ByteCode.D2F: return "d2f"; case ByteCode.I2B: return "i2b"; case ByteCode.I2C: return "i2c"; case ByteCode.I2S: return "i2s"; case ByteCode.LCMP: return "lcmp"; case ByteCode.FCMPL: return "fcmpl"; case ByteCode.FCMPG: return "fcmpg"; case ByteCode.DCMPL: return "dcmpl"; case ByteCode.DCMPG: return "dcmpg"; case ByteCode.IFEQ: return "ifeq"; case ByteCode.IFNE: return "ifne"; case ByteCode.IFLT: return "iflt"; case ByteCode.IFGE: return "ifge"; case ByteCode.IFGT: return "ifgt"; case ByteCode.IFLE: return "ifle"; case ByteCode.IF_ICMPEQ: return "if_icmpeq"; case ByteCode.IF_ICMPNE: return "if_icmpne"; case ByteCode.IF_ICMPLT: return "if_icmplt"; case ByteCode.IF_ICMPGE: return "if_icmpge"; case ByteCode.IF_ICMPGT: return "if_icmpgt"; case ByteCode.IF_ICMPLE: return "if_icmple"; case ByteCode.IF_ACMPEQ: return "if_acmpeq"; case ByteCode.IF_ACMPNE: return "if_acmpne"; case ByteCode.GOTO: return "goto"; case ByteCode.JSR: return "jsr"; case ByteCode.RET: return "ret"; case ByteCode.TABLESWITCH: return "tableswitch"; case ByteCode.LOOKUPSWITCH: return "lookupswitch"; case ByteCode.IRETURN: return "ireturn"; case ByteCode.LRETURN: return "lreturn"; case ByteCode.FRETURN: return "freturn"; case ByteCode.DRETURN: return "dreturn"; case ByteCode.ARETURN: return "areturn"; case ByteCode.RETURN: return "return"; case ByteCode.GETSTATIC: return "getstatic"; case ByteCode.PUTSTATIC: return "putstatic"; case ByteCode.GETFIELD: return "getfield"; case ByteCode.PUTFIELD: return "putfield"; case ByteCode.INVOKEVIRTUAL: return "invokevirtual"; case ByteCode.INVOKESPECIAL: return "invokespecial"; case ByteCode.INVOKESTATIC: return "invokestatic"; case ByteCode.INVOKEINTERFACE: return "invokeinterface"; case ByteCode.NEW: return "new"; case ByteCode.NEWARRAY: return "newarray"; case ByteCode.ANEWARRAY: return "anewarray"; case ByteCode.ARRAYLENGTH: return "arraylength"; case ByteCode.ATHROW: return "athrow"; case ByteCode.CHECKCAST: return "checkcast"; case ByteCode.INSTANCEOF: return "instanceof"; case ByteCode.MONITORENTER: return "monitorenter"; case ByteCode.MONITOREXIT: return "monitorexit"; case ByteCode.WIDE: return "wide"; case ByteCode.MULTIANEWARRAY: return "multianewarray"; case ByteCode.IFNULL: return "ifnull"; case ByteCode.IFNONNULL: return "ifnonnull"; case ByteCode.GOTO_W: return "goto_w"; case ByteCode.JSR_W: return "jsr_w"; case ByteCode.BREAKPOINT: return "breakpoint"; case ByteCode.IMPDEP1: return "impdep1"; case ByteCode.IMPDEP2: return "impdep2"; } } return ""; } final char[] getCharBuffer(int minimalSize) { if (minimalSize > tmpCharBuffer.length) { int newSize = tmpCharBuffer.length * 2; if (minimalSize > newSize) { newSize = minimalSize; } tmpCharBuffer = new char[newSize]; } return tmpCharBuffer; } private static final int LineNumberTableSize = 16; private static final int ExceptionTableSize = 4; private final static long FileHeaderConstant = 0xCAFEBABE0003002DL; // Set DEBUG flags to true to get better checking and progress info. private static final boolean DEBUGSTACK = false; private static final boolean DEBUGLABELS = false; private static final boolean DEBUGCODE = false; private String generatedClassName; private ExceptionTableEntry itsExceptionTable[]; private int itsExceptionTableTop; private int itsLineNumberTable[]; // pack start_pc & line_number together private int itsLineNumberTableTop; private byte[] itsCodeBuffer = new byte[256]; private int itsCodeBufferTop; private ConstantPool itsConstantPool; private ClassFileMethod itsCurrentMethod; private short itsStackTop; private short itsMaxStack; private short itsMaxLocals; private ObjArray itsMethods = new ObjArray(); private ObjArray itsFields = new ObjArray(); private ObjArray itsInterfaces = new ObjArray(); private short itsFlags; private short itsThisClassIndex; private short itsSuperClassIndex; private short itsSourceFileNameIndex; private static final int MIN_LABEL_TABLE_SIZE = 32; private int[] itsLabelTable; private int itsLabelTableTop; // itsFixupTable[i] = (label_index << 32) | fixup_site private static final int MIN_FIXUP_TABLE_SIZE = 40; private long[] itsFixupTable; private int itsFixupTableTop; private ObjArray itsVarDescriptors; private char[] tmpCharBuffer = new char[64]; } final class ExceptionTableEntry { ExceptionTableEntry(int startLabel, int endLabel, int handlerLabel, short catchType) { itsStartLabel = startLabel; itsEndLabel = endLabel; itsHandlerLabel = handlerLabel; itsCatchType = catchType; } int itsStartLabel; int itsEndLabel; int itsHandlerLabel; short itsCatchType; } final class ClassFileField { ClassFileField(short nameIndex, short typeIndex, short flags) { itsNameIndex = nameIndex; itsTypeIndex = typeIndex; itsFlags = flags; itsHasAttributes = false; } void setAttributes(short attr1, short attr2, short attr3, int index) { itsHasAttributes = true; itsAttr1 = attr1; itsAttr2 = attr2; itsAttr3 = attr3; itsIndex = index; } int write(byte[] data, int offset) { offset = ClassFileWriter.putInt16(itsFlags, data, offset); offset = ClassFileWriter.putInt16(itsNameIndex, data, offset); offset = ClassFileWriter.putInt16(itsTypeIndex, data, offset); if (!itsHasAttributes) { // write 0 attributes offset = ClassFileWriter.putInt16(0, data, offset); } else { offset = ClassFileWriter.putInt16(1, data, offset); offset = ClassFileWriter.putInt16(itsAttr1, data, offset); offset = ClassFileWriter.putInt16(itsAttr2, data, offset); offset = ClassFileWriter.putInt16(itsAttr3, data, offset); offset = ClassFileWriter.putInt16(itsIndex, data, offset); } return offset; } int getWriteSize() { int size = 2 * 3; if (!itsHasAttributes) { size += 2; } else { size += 2 + 2 * 4; } return size; } private short itsNameIndex; private short itsTypeIndex; private short itsFlags; private boolean itsHasAttributes; private short itsAttr1, itsAttr2, itsAttr3; private int itsIndex; } final class ClassFileMethod { ClassFileMethod(short nameIndex, short typeIndex, short flags) { itsNameIndex = nameIndex; itsTypeIndex = typeIndex; itsFlags = flags; } void setCodeAttribute(byte codeAttribute[]) { itsCodeAttribute = codeAttribute; } int write(byte[] data, int offset) { offset = ClassFileWriter.putInt16(itsFlags, data, offset); offset = ClassFileWriter.putInt16(itsNameIndex, data, offset); offset = ClassFileWriter.putInt16(itsTypeIndex, data, offset); // Code attribute only offset = ClassFileWriter.putInt16(1, data, offset); System.arraycopy(itsCodeAttribute, 0, data, offset, itsCodeAttribute.length); offset += itsCodeAttribute.length; return offset; } int getWriteSize() { return 2 * 4 + itsCodeAttribute.length; } private short itsNameIndex; private short itsTypeIndex; private short itsFlags; private byte[] itsCodeAttribute; } final class ConstantPool { ConstantPool(ClassFileWriter cfw) { this.cfw = cfw; itsTopIndex = 1; // the zero'th entry is reserved itsPool = new byte[ConstantPoolSize]; itsTop = 0; } private static final int ConstantPoolSize = 256; private static final byte CONSTANT_Class = 7, CONSTANT_Fieldref = 9, CONSTANT_Methodref = 10, CONSTANT_InterfaceMethodref = 11, CONSTANT_String = 8, CONSTANT_Integer = 3, CONSTANT_Float = 4, CONSTANT_Long = 5, CONSTANT_Double = 6, CONSTANT_NameAndType = 12, CONSTANT_Utf8 = 1; int write(byte[] data, int offset) { offset = ClassFileWriter.putInt16((short)itsTopIndex, data, offset); System.arraycopy(itsPool, 0, data, offset, itsTop); offset += itsTop; return offset; } int getWriteSize() { return 2 + itsTop; } int addConstant(int k) { ensure(5); itsPool[itsTop++] = CONSTANT_Integer; itsTop = ClassFileWriter.putInt32(k, itsPool, itsTop); return (short)(itsTopIndex++); } int addConstant(long k) { ensure(9); itsPool[itsTop++] = CONSTANT_Long; itsTop = ClassFileWriter.putInt64(k, itsPool, itsTop); int index = itsTopIndex; itsTopIndex += 2; return index; } int addConstant(float k) { ensure(5); itsPool[itsTop++] = CONSTANT_Float; int bits = Float.floatToIntBits(k); itsTop = ClassFileWriter.putInt32(bits, itsPool, itsTop); return itsTopIndex++; } int addConstant(double k) { ensure(9); itsPool[itsTop++] = CONSTANT_Double; long bits = Double.doubleToLongBits(k); itsTop = ClassFileWriter.putInt64(bits, itsPool, itsTop); int index = itsTopIndex; itsTopIndex += 2; return index; } int addConstant(String k) { int utf8Index = 0xFFFF & addUtf8(k); int theIndex = itsStringConstHash.getInt(utf8Index, -1); if (theIndex == -1) { theIndex = itsTopIndex++; ensure(3); itsPool[itsTop++] = CONSTANT_String; itsTop = ClassFileWriter.putInt16(utf8Index, itsPool, itsTop); itsStringConstHash.put(utf8Index, theIndex); } return theIndex; } boolean isUnderUtfEncodingLimit(String s) { int strLen = s.length(); if (strLen * 3 <= MAX_UTF_ENCODING_SIZE) { return true; } else if (strLen > MAX_UTF_ENCODING_SIZE) { return false; } return strLen == getUtfEncodingLimit(s, 0, strLen); } /** * Get maximum i such that start <= i <= end and * s.substring(start, i) fits JVM UTF string encoding limit. */ int getUtfEncodingLimit(String s, int start, int end) { if ((end - start) * 3 <= MAX_UTF_ENCODING_SIZE) { return end; } int limit = MAX_UTF_ENCODING_SIZE; for (int i = start; i != end; i++) { int c = s.charAt(i); if (0 != c && c <= 0x7F) { --limit; } else if (c < 0x7FF) { limit -= 2; } else { limit -= 3; } if (limit < 0) { return i; } } return end; } short addUtf8(String k) { int theIndex = itsUtf8Hash.get(k, -1); if (theIndex == -1) { int strLen = k.length(); boolean tooBigString; if (strLen > MAX_UTF_ENCODING_SIZE) { tooBigString = true; } else { tooBigString = false; // Ask for worst case scenario buffer when each char takes 3 // bytes ensure(1 + 2 + strLen * 3); int top = itsTop; itsPool[top++] = CONSTANT_Utf8; top += 2; // skip length char[] chars = cfw.getCharBuffer(strLen); k.getChars(0, strLen, chars, 0); for (int i = 0; i != strLen; i++) { int c = chars[i]; if (c != 0 && c <= 0x7F) { itsPool[top++] = (byte)c; } else if (c > 0x7FF) { itsPool[top++] = (byte)(0xE0 | (c >> 12)); itsPool[top++] = (byte)(0x80 | ((c >> 6) & 0x3F)); itsPool[top++] = (byte)(0x80 | (c & 0x3F)); } else { itsPool[top++] = (byte)(0xC0 | (c >> 6)); itsPool[top++] = (byte)(0x80 | (c & 0x3F)); } } int utfLen = top - (itsTop + 1 + 2); if (utfLen > MAX_UTF_ENCODING_SIZE) { tooBigString = true; } else { // Write back length itsPool[itsTop + 1] = (byte)(utfLen >>> 8); itsPool[itsTop + 2] = (byte)utfLen; itsTop = top; theIndex = itsTopIndex++; itsUtf8Hash.put(k, theIndex); } } if (tooBigString) { throw new IllegalArgumentException("Too big string"); } } return (short)theIndex; } private short addNameAndType(String name, String type) { short nameIndex = addUtf8(name); short typeIndex = addUtf8(type); ensure(5); itsPool[itsTop++] = CONSTANT_NameAndType; itsTop = ClassFileWriter.putInt16(nameIndex, itsPool, itsTop); itsTop = ClassFileWriter.putInt16(typeIndex, itsPool, itsTop); return (short)(itsTopIndex++); } short addClass(String className) { int theIndex = itsClassHash.get(className, -1); if (theIndex == -1) { String slashed = className; if (className.indexOf('.') > 0) { slashed = ClassFileWriter.getSlashedForm(className); theIndex = itsClassHash.get(slashed, -1); if (theIndex != -1) { itsClassHash.put(className, theIndex); } } if (theIndex == -1) { int utf8Index = addUtf8(slashed); ensure(3); itsPool[itsTop++] = CONSTANT_Class; itsTop = ClassFileWriter.putInt16(utf8Index, itsPool, itsTop); theIndex = itsTopIndex++; itsClassHash.put(slashed, theIndex); if (className != slashed) { itsClassHash.put(className, theIndex); } } } return (short)theIndex; } short addFieldRef(String className, String fieldName, String fieldType) { FieldOrMethodRef ref = new FieldOrMethodRef(className, fieldName, fieldType); int theIndex = itsFieldRefHash.get(ref, -1); if (theIndex == -1) { short ntIndex = addNameAndType(fieldName, fieldType); short classIndex = addClass(className); ensure(5); itsPool[itsTop++] = CONSTANT_Fieldref; itsTop = ClassFileWriter.putInt16(classIndex, itsPool, itsTop); itsTop = ClassFileWriter.putInt16(ntIndex, itsPool, itsTop); theIndex = itsTopIndex++; itsFieldRefHash.put(ref, theIndex); } return (short)theIndex; } short addMethodRef(String className, String methodName, String methodType) { FieldOrMethodRef ref = new FieldOrMethodRef(className, methodName, methodType); int theIndex = itsMethodRefHash.get(ref, -1); if (theIndex == -1) { short ntIndex = addNameAndType(methodName, methodType); short classIndex = addClass(className); ensure(5); itsPool[itsTop++] = CONSTANT_Methodref; itsTop = ClassFileWriter.putInt16(classIndex, itsPool, itsTop); itsTop = ClassFileWriter.putInt16(ntIndex, itsPool, itsTop); theIndex = itsTopIndex++; itsMethodRefHash.put(ref, theIndex); } return (short)theIndex; } short addInterfaceMethodRef(String className, String methodName, String methodType) { short ntIndex = addNameAndType(methodName, methodType); short classIndex = addClass(className); ensure(5); itsPool[itsTop++] = CONSTANT_InterfaceMethodref; itsTop = ClassFileWriter.putInt16(classIndex, itsPool, itsTop); itsTop = ClassFileWriter.putInt16(ntIndex, itsPool, itsTop); return (short)(itsTopIndex++); } void ensure(int howMuch) { if (itsTop + howMuch > itsPool.length) { int newCapacity = itsPool.length * 2; if (itsTop + howMuch > newCapacity) { newCapacity = itsTop + howMuch; } byte[] tmp = new byte[newCapacity]; System.arraycopy(itsPool, 0, tmp, 0, itsTop); itsPool = tmp; } } private ClassFileWriter cfw; private static final int MAX_UTF_ENCODING_SIZE = 65535; private UintMap itsStringConstHash = new UintMap(); private ObjToIntMap itsUtf8Hash = new ObjToIntMap(); private ObjToIntMap itsFieldRefHash = new ObjToIntMap(); private ObjToIntMap itsMethodRefHash = new ObjToIntMap(); private ObjToIntMap itsClassHash = new ObjToIntMap(); private int itsTop; private int itsTopIndex; private byte itsPool[]; } final class FieldOrMethodRef { FieldOrMethodRef(String className, String name, String type) { this.className = className; this.name = name; this.type = type; } @Override public boolean equals(Object obj) { if (!(obj instanceof FieldOrMethodRef)) { return false; } FieldOrMethodRef x = (FieldOrMethodRef)obj; return className.equals(x.className) && name.equals(x.name) && type.equals(x.type); } @Override public int hashCode() { if (hashCode == -1) { int h1 = className.hashCode(); int h2 = name.hashCode(); int h3 = type.hashCode(); hashCode = h1 ^ h2 ^ h3; } return hashCode; } private String className; private String name; private String type; private int hashCode = -1; } carmetal-4.3/src/org/mozilla/javascript/000077500000000000000000000000001417122252700203465ustar00rootroot00000000000000carmetal-4.3/src/org/mozilla/javascript/Arguments.java000066400000000000000000000240051417122252700231570ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the "arguments" object. * * See ECMA 10.1.8 * * @see org.mozilla.javascript.NativeCall * @author Norris Boyd */ final class Arguments extends IdScriptableObject { static final long serialVersionUID = 4275508002492040609L; public Arguments(NativeCall activation) { this.activation = activation; Scriptable parent = activation.getParentScope(); setParentScope(parent); setPrototype(ScriptableObject.getObjectPrototype(parent)); args = activation.originalArgs; lengthObj = new Integer(args.length); NativeFunction f = activation.function; calleeObj = f; int version = f.getLanguageVersion(); if (version <= Context.VERSION_1_3 && version != Context.VERSION_DEFAULT) { callerObj = null; } else { callerObj = NOT_FOUND; } } @Override public String getClassName() { return "Object"; } @Override public boolean has(int index, Scriptable start) { if (0 <= index && index < args.length) { if (args[index] != NOT_FOUND) { return true; } } return super.has(index, start); } @Override public Object get(int index, Scriptable start) { if (0 <= index && index < args.length) { Object value = args[index]; if (value != NOT_FOUND) { if (sharedWithActivation(index)) { NativeFunction f = activation.function; String argName = f.getParamOrVarName(index); value = activation.get(argName, activation); if (value == NOT_FOUND) Kit.codeBug(); } return value; } } return super.get(index, start); } private boolean sharedWithActivation(int index) { NativeFunction f = activation.function; int definedCount = f.getParamCount(); if (index < definedCount) { // Check if argument is not hidden by later argument with the same // name as hidden arguments are not shared with activation if (index < definedCount - 1) { String argName = f.getParamOrVarName(index); for (int i = index + 1; i < definedCount; i++) { if (argName.equals(f.getParamOrVarName(i))) { return false; } } } return true; } return false; } @Override public void put(int index, Scriptable start, Object value) { if (0 <= index && index < args.length) { if (args[index] != NOT_FOUND) { if (sharedWithActivation(index)) { String argName; argName = activation.function.getParamOrVarName(index); activation.put(argName, activation, value); return; } synchronized (this) { if (args[index] != NOT_FOUND) { if (args == activation.originalArgs) { args = args.clone(); } args[index] = value; return; } } } } super.put(index, start, value); } @Override public void delete(int index) { if (0 <= index && index < args.length) { synchronized (this) { if (args[index] != NOT_FOUND) { if (args == activation.originalArgs) { args = args.clone(); } args[index] = NOT_FOUND; return; } } } super.delete(index); } // #string_id_map# private static final int Id_callee = 1, Id_length = 2, Id_caller = 3, MAX_INSTANCE_ID = 3; @Override protected int getMaxInstanceId() { return MAX_INSTANCE_ID; } @Override protected int findInstanceIdInfo(String s) { int id; // #generated# Last update: 2007-05-09 08:15:04 EDT L0: { id = 0; String X = null; int c; if (s.length()==6) { c=s.charAt(5); if (c=='e') { X="callee";id=Id_callee; } else if (c=='h') { X="length";id=Id_length; } else if (c=='r') { X="caller";id=Id_caller; } } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# if (id == 0) return super.findInstanceIdInfo(s); int attr; switch (id) { case Id_callee: case Id_caller: case Id_length: attr = DONTENUM; break; default: throw new IllegalStateException(); } return instanceIdInfo(attr, id); } // #/string_id_map# @Override protected String getInstanceIdName(int id) { switch (id) { case Id_callee: return "callee"; case Id_length: return "length"; case Id_caller: return "caller"; } return null; } @Override protected Object getInstanceIdValue(int id) { switch (id) { case Id_callee: return calleeObj; case Id_length: return lengthObj; case Id_caller: { Object value = callerObj; if (value == UniqueTag.NULL_VALUE) { value = null; } else if (value == null) { NativeCall caller = activation.parentActivationCall; if (caller != null) { value = caller.get("arguments", caller); } } return value; } } return super.getInstanceIdValue(id); } @Override protected void setInstanceIdValue(int id, Object value) { switch (id) { case Id_callee: calleeObj = value; return; case Id_length: lengthObj = value; return; case Id_caller: callerObj = (value != null) ? value : UniqueTag.NULL_VALUE; return; } super.setInstanceIdValue(id, value); } @Override Object[] getIds(boolean getAll) { Object[] ids = super.getIds(getAll); if (getAll && args.length != 0) { boolean[] present = null; int extraCount = args.length; for (int i = 0; i != ids.length; ++i) { Object id = ids[i]; if (id instanceof Integer) { int index = ((Integer)id).intValue(); if (0 <= index && index < args.length) { if (present == null) { present = new boolean[args.length]; } if (!present[index]) { present[index] = true; extraCount--; } } } } if (extraCount != 0) { Object[] tmp = new Object[extraCount + ids.length]; System.arraycopy(ids, 0, tmp, extraCount, ids.length); ids = tmp; int offset = 0; for (int i = 0; i != args.length; ++i) { if (present == null || !present[i]) { ids[offset] = new Integer(i); ++offset; } } if (offset != extraCount) Kit.codeBug(); } } return ids; } // Fields to hold caller, callee and length properties, // where NOT_FOUND value tags deleted properties. // In addition if callerObj == NULL_VALUE, it tags null for scripts, as // initial callerObj == null means access to caller arguments available // only in JS <= 1.3 scripts private Object callerObj; private Object calleeObj; private Object lengthObj; private NativeCall activation; // Initially args holds activation.getOriginalArgs(), but any modification // of its elements triggers creation of a copy. If its element holds NOT_FOUND, // it indicates deleted index, in which case super class is queried. private Object[] args; } carmetal-4.3/src/org/mozilla/javascript/BaseFunction.java000066400000000000000000000443321417122252700235770ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Roger Lawrence * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * The base class for Function objects * See ECMA 15.3. * @author Norris Boyd */ public class BaseFunction extends IdScriptableObject implements Function { static final long serialVersionUID = 5311394446546053859L; private static final Object FUNCTION_TAG = "Function"; static void init(Scriptable scope, boolean sealed) { BaseFunction obj = new BaseFunction(); // Function.prototype attributes: see ECMA 15.3.3.1 obj.prototypePropertyAttributes = DONTENUM | READONLY | PERMANENT; obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } public BaseFunction() { } public BaseFunction(Scriptable scope, Scriptable prototype) { super(scope, prototype); } @Override public String getClassName() { return "Function"; } /** * Implements the instanceof operator for JavaScript Function objects. *

    * * foo = new Foo();
    * foo instanceof Foo; // true
    *
    * * @param instance The value that appeared on the LHS of the instanceof * operator * @return true if the "prototype" property of "this" appears in * value's prototype chain * */ @Override public boolean hasInstance(Scriptable instance) { Object protoProp = ScriptableObject.getProperty(this, "prototype"); if (protoProp instanceof Scriptable) { return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } throw ScriptRuntime.typeError1("msg.instanceof.bad.prototype", getFunctionName()); } // #string_id_map# private static final int Id_length = 1, Id_arity = 2, Id_name = 3, Id_prototype = 4, Id_arguments = 5, MAX_INSTANCE_ID = 5; @Override protected int getMaxInstanceId() { return MAX_INSTANCE_ID; } @Override protected int findInstanceIdInfo(String s) { int id; // #generated# Last update: 2007-05-09 08:15:15 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 4: X="name";id=Id_name; break L; case 5: X="arity";id=Id_arity; break L; case 6: X="length";id=Id_length; break L; case 9: c=s.charAt(0); if (c=='a') { X="arguments";id=Id_arguments; } else if (c=='p') { X="prototype";id=Id_prototype; } break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# // #/string_id_map# if (id == 0) return super.findInstanceIdInfo(s); int attr; switch (id) { case Id_length: case Id_arity: case Id_name: attr = DONTENUM | READONLY | PERMANENT; break; case Id_prototype: attr = prototypePropertyAttributes; break; case Id_arguments: attr = DONTENUM | PERMANENT; break; default: throw new IllegalStateException(); } return instanceIdInfo(attr, id); } @Override protected String getInstanceIdName(int id) { switch (id) { case Id_length: return "length"; case Id_arity: return "arity"; case Id_name: return "name"; case Id_prototype: return "prototype"; case Id_arguments: return "arguments"; } return super.getInstanceIdName(id); } @Override protected Object getInstanceIdValue(int id) { switch (id) { case Id_length: return ScriptRuntime.wrapInt(getLength()); case Id_arity: return ScriptRuntime.wrapInt(getArity()); case Id_name: return getFunctionName(); case Id_prototype: return getPrototypeProperty(); case Id_arguments: return getArguments(); } return super.getInstanceIdValue(id); } @Override protected void setInstanceIdValue(int id, Object value) { if (id == Id_prototype) { if ((prototypePropertyAttributes & READONLY) == 0) { prototypeProperty = (value != null) ? value : UniqueTag.NULL_VALUE; } return; } else if (id == Id_arguments) { if (value == NOT_FOUND) { // This should not be called since "arguments" is PERMANENT Kit.codeBug(); } defaultPut("arguments", value); } super.setInstanceIdValue(id, value); } @Override protected void fillConstructorProperties(IdFunctionObject ctor) { // Fix up bootstrapping problem: getPrototype of the IdFunctionObject // can not return Function.prototype because Function object is not // yet defined. ctor.setPrototype(this); super.fillConstructorProperties(ctor); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=1; s="toString"; break; case Id_toSource: arity=1; s="toSource"; break; case Id_apply: arity=2; s="apply"; break; case Id_call: arity=1; s="call"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(FUNCTION_TAG, id, s, arity); } static boolean isApply(IdFunctionObject f) { return f.hasTag(FUNCTION_TAG) && f.methodId() == Id_apply; } static boolean isApplyOrCall(IdFunctionObject f) { if(f.hasTag(FUNCTION_TAG)) { switch(f.methodId()) { case Id_apply: case Id_call: return true; } } return false; } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(FUNCTION_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case Id_constructor: return jsConstructor(cx, scope, args); case Id_toString: { BaseFunction realf = realFunction(thisObj, f); int indent = ScriptRuntime.toInt32(args, 0); return realf.decompile(indent, 0); } case Id_toSource: { BaseFunction realf = realFunction(thisObj, f); int indent = 0; int flags = Decompiler.TO_SOURCE_FLAG; if (args.length != 0) { indent = ScriptRuntime.toInt32(args[0]); if (indent >= 0) { flags = 0; } else { indent = 0; } } return realf.decompile(indent, flags); } case Id_apply: case Id_call: return ScriptRuntime.applyOrCall(id == Id_apply, cx, scope, thisObj, args); } throw new IllegalArgumentException(String.valueOf(id)); } private BaseFunction realFunction(Scriptable thisObj, IdFunctionObject f) { Object x = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); if (x instanceof BaseFunction) { return (BaseFunction)x; } throw ScriptRuntime.typeError1("msg.incompat.call", f.getFunctionName()); } /** * Make value as DontEnum, DontDelete, ReadOnly * prototype property of this Function object */ public void setImmunePrototypeProperty(Object value) { if ((prototypePropertyAttributes & READONLY) != 0) { throw new IllegalStateException(); } prototypeProperty = (value != null) ? value : UniqueTag.NULL_VALUE; prototypePropertyAttributes = DONTENUM | PERMANENT | READONLY; } protected Scriptable getClassPrototype() { Object protoVal = getPrototypeProperty(); if (protoVal instanceof Scriptable) { return (Scriptable) protoVal; } return getClassPrototype(this, "Object"); } /** * Should be overridden. */ public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return Undefined.instance; } public Scriptable construct(Context cx, Scriptable scope, Object[] args) { Scriptable result = createObject(cx, scope); if (result != null) { Object val = call(cx, scope, result, args); if (val instanceof Scriptable) { result = (Scriptable)val; } } else { Object val = call(cx, scope, null, args); if (!(val instanceof Scriptable)) { // It is program error not to return Scriptable from // the call method if createObject returns null. throw new IllegalStateException( "Bad implementaion of call as constructor, name=" +getFunctionName()+" in "+getClass().getName()); } result = (Scriptable)val; if (result.getPrototype() == null) { result.setPrototype(getClassPrototype()); } if (result.getParentScope() == null) { Scriptable parent = getParentScope(); if (result != parent) { result.setParentScope(parent); } } } return result; } /** * Creates new script object. * The default implementation of {@link #construct} uses the method to * to get the value for thisObj argument when invoking * {@link #call}. * The methos is allowed to return null to indicate that * {@link #call} will create a new object itself. In this case * {@link #construct} will set scope and prototype on the result * {@link #call} unless they are already set. */ public Scriptable createObject(Context cx, Scriptable scope) { Scriptable newInstance = new NativeObject(); newInstance.setPrototype(getClassPrototype()); newInstance.setParentScope(getParentScope()); return newInstance; } /** * Decompile the source information associated with this js * function/script back into a string. * * @param indent How much to indent the decompiled result. * * @param flags Flags specifying format of decompilation output. */ String decompile(int indent, int flags) { StringBuffer sb = new StringBuffer(); boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG)); if (!justbody) { sb.append("function "); sb.append(getFunctionName()); sb.append("() {\n\t"); } sb.append("[native code, arity="); sb.append(getArity()); sb.append("]\n"); if (!justbody) { sb.append("}\n"); } return sb.toString(); } public int getArity() { return 0; } public int getLength() { return 0; } public String getFunctionName() { return ""; } final Object getPrototypeProperty() { Object result = prototypeProperty; if (result == null) { synchronized (this) { result = prototypeProperty; if (result == null) { setupDefaultPrototype(); result = prototypeProperty; } } } else if (result == UniqueTag.NULL_VALUE) { result = null; } return result; } private void setupDefaultPrototype() { NativeObject obj = new NativeObject(); final int attr = ScriptableObject.DONTENUM; obj.defineProperty("constructor", this, attr); // put the prototype property into the object now, then in the // wacky case of a user defining a function Object(), we don't // get an infinite loop trying to find the prototype. prototypeProperty = obj; Scriptable proto = getObjectPrototype(this); if (proto != obj) { // not the one we just made, it must remain grounded obj.setPrototype(proto); } } private Object getArguments() { // .arguments is deprecated, so we use a slow // way of getting it that doesn't add to the invocation cost. // TODO: add warning, error based on version Object value = defaultGet("arguments"); if (value != NOT_FOUND) { // Should after changing .arguments its // activation still be available during Function call? // This code assumes it should not: // defaultGet("arguments") != NOT_FOUND // means assigned arguments return value; } Context cx = Context.getContext(); NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this); return (activation == null) ? null : activation.get("arguments", activation); } private static Object jsConstructor(Context cx, Scriptable scope, Object[] args) { int arglen = args.length; StringBuffer sourceBuf = new StringBuffer(); sourceBuf.append("function "); /* version != 1.2 Function constructor behavior - * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. */ if (cx.getLanguageVersion() != Context.VERSION_1_2) { sourceBuf.append("anonymous"); } sourceBuf.append('('); // Append arguments as coma separated strings for (int i = 0; i < arglen - 1; i++) { if (i > 0) { sourceBuf.append(','); } sourceBuf.append(ScriptRuntime.toString(args[i])); } sourceBuf.append(") {"); if (arglen != 0) { // append function body String funBody = ScriptRuntime.toString(args[arglen - 1]); sourceBuf.append(funBody); } sourceBuf.append('}'); String source = sourceBuf.toString(); int[] linep = new int[1]; String filename = Context.getSourcePositionFromStack(linep); if (filename == null) { filename = ""; linep[0] = 1; } String sourceURI = ScriptRuntime. makeUrlForGeneratedScript(false, filename, linep[0]); Scriptable global = ScriptableObject.getTopLevelScope(scope); ErrorReporter reporter; reporter = DefaultErrorReporter.forEval(cx.getErrorReporter()); Evaluator evaluator = Context.createInterpreter(); if (evaluator == null) { throw new JavaScriptException("Interpreter not present", filename, linep[0]); } // Compile with explicit interpreter instance to force interpreter // mode. return cx.compileFunction(global, source, evaluator, reporter, sourceURI, 1, null); } @Override protected int findPrototypeId(String s) { int id; // #string_id_map# // #generated# Last update: 2007-05-09 08:15:15 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 4: X="call";id=Id_call; break L; case 5: X="apply";id=Id_apply; break L; case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L; case 11: X="constructor";id=Id_constructor; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toSource = 3, Id_apply = 4, Id_call = 5, MAX_PROTOTYPE_ID = 5; // #/string_id_map# private Object prototypeProperty; // For function object instances, attribute is PERMANENT; see ECMA 15.3.5.2 private int prototypePropertyAttributes = PERMANENT; } carmetal-4.3/src/org/mozilla/javascript/Callable.java000066400000000000000000000043741417122252700227200ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov, igor@fastmail.fm * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * Generic notion of callable object that can execute some script-related code * upon request with specified values for script scope and this objects. */ public interface Callable { /** * Perform the call. * * @param cx the current Context for this thread * @param scope the scope to use to resolve properties. * @param thisObj the JavaScript this object * @param args the array of arguments * @return the result of the call */ public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args); } carmetal-4.3/src/org/mozilla/javascript/ClassCache.java000066400000000000000000000164561417122252700232160ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov, igor@fastmail.fm * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.Map; import java.util.HashMap; import java.io.Serializable; /** * Cache of generated classes and data structures to access Java runtime * from JavaScript. * * @author Igor Bukanov * * @since Rhino 1.5 Release 5 */ public class ClassCache implements Serializable { private static final long serialVersionUID = -8866246036237312215L; private static final Object AKEY = "ClassCache"; private volatile boolean cachingIsEnabled = true; private transient HashMap,JavaMembers> classTable; private transient HashMap> classAdapterCache; private transient HashMap,Object> interfaceAdapterCache; private int generatedClassSerial; /** * Search for ClassCache object in the given scope. * The method first calls * {@link ScriptableObject#getTopLevelScope(Scriptable scope)} * to get the top most scope and then tries to locate associated * ClassCache object in the prototype chain of the top scope. * * @param scope scope to search for ClassCache object. * @return previously associated ClassCache object or a new instance of * ClassCache if no ClassCache object was found. * * @see #associate(ScriptableObject topScope) */ public static ClassCache get(Scriptable scope) { ClassCache cache = (ClassCache) ScriptableObject.getTopScopeValue(scope, AKEY); if (cache == null) { throw new RuntimeException("Can't find top level scope for " + "ClassCache.get"); } return cache; } /** * Associate ClassCache object with the given top-level scope. * The ClassCache object can only be associated with the given scope once. * * @param topScope scope to associate this ClassCache object with. * @return true if no previous ClassCache objects were embedded into * the scope and this ClassCache were successfully associated * or false otherwise. * * @see #get(Scriptable scope) */ public boolean associate(ScriptableObject topScope) { if (topScope.getParentScope() != null) { // Can only associate cache with top level scope throw new IllegalArgumentException(); } if (this == topScope.associateValue(AKEY, this)) { return true; } return false; } /** * Empty caches of generated Java classes and Java reflection information. */ public synchronized void clearCaches() { classTable = null; classAdapterCache = null; interfaceAdapterCache = null; } /** * Check if generated Java classes and Java reflection information * is cached. */ public final boolean isCachingEnabled() { return cachingIsEnabled; } /** * Set whether to cache some values. *

    * By default, the engine will cache the results of * Class.getMethods() and similar calls. * This can speed execution dramatically, but increases the memory * footprint. Also, with caching enabled, references may be held to * objects past the lifetime of any real usage. *

    * If caching is enabled and this method is called with a * false argument, the caches will be emptied. *

    * Caching is enabled by default. * * @param enabled if true, caching is enabled * * @see #clearCaches() */ public synchronized void setCachingEnabled(boolean enabled) { if (enabled == cachingIsEnabled) return; if (!enabled) clearCaches(); cachingIsEnabled = enabled; } /** * @return a map from classes to associated JavaMembers objects */ Map,JavaMembers> getClassCacheMap() { if (classTable == null) { classTable = new HashMap,JavaMembers>(); } return classTable; } Map> getInterfaceAdapterCacheMap() { if (classAdapterCache == null) { classAdapterCache = new HashMap>(); } return classAdapterCache; } /** * @deprecated * The method always returns false. * @see #setInvokerOptimizationEnabled(boolean enabled) */ public boolean isInvokerOptimizationEnabled() { return false; } /** * @deprecated * The method does nothing. * Invoker optimization is no longer used by Rhino. * On modern JDK like 1.4 or 1.5 the disadvantages of the optimization * like increased memory usage or longer initialization time overweight * small speed increase that can be gained using generated proxy class * to replace reflection. */ public synchronized void setInvokerOptimizationEnabled(boolean enabled) { } /** * Internal engine method to return serial number for generated classes * to ensure name uniqueness. */ public final synchronized int newClassSerialNumber() { return ++generatedClassSerial; } Object getInterfaceAdapter(Class cl) { return interfaceAdapterCache == null ? null : interfaceAdapterCache.get(cl); } synchronized void cacheInterfaceAdapter(Class cl, Object iadapter) { if (cachingIsEnabled) { if (interfaceAdapterCache == null) { interfaceAdapterCache = new HashMap,Object>(); } interfaceAdapterCache.put(cl, iadapter); } } } carmetal-4.3/src/org/mozilla/javascript/ClassShutter.java000066400000000000000000000074011417122252700236370ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** Embeddings that wish to filter Java classes that are visible to scripts through the LiveConnect, should implement this interface. @see Context#setClassShutter(ClassShutter) @since 1.5 Release 4 @author Norris Boyd */ public interface ClassShutter { /** * Return true iff the Java class with the given name should be exposed * to scripts. *

    * An embedding may filter which Java classes are exposed through * LiveConnect to JavaScript scripts. *

    * Due to the fact that there is no package reflection in Java, * this method will also be called with package names. There * is no way for Rhino to tell if "Packages.a.b" is a package name * or a class that doesn't exist. What Rhino does is attempt * to load each segment of "Packages.a.b.c": It first attempts to * load class "a", then attempts to load class "a.b", then * finally attempts to load class "a.b.c". On a Rhino installation * without any ClassShutter set, and without any of the * above classes, the expression "Packages.a.b.c" will result in * a [JavaPackage a.b.c] and not an error. *

    * With ClassShutter supplied, Rhino will first call * visibleToScripts before attempting to look up the class name. If * visibleToScripts returns false, the class name lookup is not * performed and subsequent Rhino execution assumes the class is * not present. So for "java.lang.System.out.println" the lookup * of "java.lang.System" is skipped and thus Rhino assumes that * "java.lang.System" doesn't exist. So then for "java.lang.System.out", * Rhino attempts to load the class "java.lang.System.out" because * it assumes that "java.lang.System" is a package name. *

    * @param fullClassName the full name of the class (including the package * name, with '.' as a delimiter). For example the * standard string class is "java.lang.String" * @return whether or not to reveal this class to scripts */ public boolean visibleToScripts(String fullClassName); } carmetal-4.3/src/org/mozilla/javascript/CompilerEnvirons.java000066400000000000000000000161251417122252700245140ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov, igor@fastmail.fm * Bob Jervis * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.Set; public class CompilerEnvirons { public CompilerEnvirons() { errorReporter = DefaultErrorReporter.instance; languageVersion = Context.VERSION_DEFAULT; generateDebugInfo = true; useDynamicScope = false; reservedKeywordAsIdentifier = false; allowMemberExprAsFunctionName = false; xmlAvailable = true; optimizationLevel = 0; generatingSource = true; strictMode = false; warningAsError = false; generateObserverCount = false; } public void initFromContext(Context cx) { setErrorReporter(cx.getErrorReporter()); this.languageVersion = cx.getLanguageVersion(); useDynamicScope = cx.compileFunctionsWithDynamicScopeFlag; generateDebugInfo = (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()); reservedKeywordAsIdentifier = cx.hasFeature(Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER); allowMemberExprAsFunctionName = cx.hasFeature(Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME); strictMode = cx.hasFeature(Context.FEATURE_STRICT_MODE); warningAsError = cx.hasFeature(Context.FEATURE_WARNING_AS_ERROR); xmlAvailable = cx.hasFeature(Context.FEATURE_E4X); optimizationLevel = cx.getOptimizationLevel(); generatingSource = cx.isGeneratingSource(); activationNames = cx.activationNames; // Observer code generation in compiled code : generateObserverCount = cx.generateObserverCount; } public final ErrorReporter getErrorReporter() { return errorReporter; } public void setErrorReporter(ErrorReporter errorReporter) { if (errorReporter == null) throw new IllegalArgumentException(); this.errorReporter = errorReporter; } public final int getLanguageVersion() { return languageVersion; } public void setLanguageVersion(int languageVersion) { Context.checkLanguageVersion(languageVersion); this.languageVersion = languageVersion; } public final boolean isGenerateDebugInfo() { return generateDebugInfo; } public void setGenerateDebugInfo(boolean flag) { this.generateDebugInfo = flag; } public final boolean isUseDynamicScope() { return useDynamicScope; } public final boolean isReservedKeywordAsIdentifier() { return reservedKeywordAsIdentifier; } public void setReservedKeywordAsIdentifier(boolean flag) { reservedKeywordAsIdentifier = flag; } public final boolean isAllowMemberExprAsFunctionName() { return allowMemberExprAsFunctionName; } public void setAllowMemberExprAsFunctionName(boolean flag) { allowMemberExprAsFunctionName = flag; } public final boolean isXmlAvailable() { return xmlAvailable; } public void setXmlAvailable(boolean flag) { xmlAvailable = flag; } public final int getOptimizationLevel() { return optimizationLevel; } public void setOptimizationLevel(int level) { Context.checkOptimizationLevel(level); this.optimizationLevel = level; } public final boolean isGeneratingSource() { return generatingSource; } public final boolean isStrictMode() { return strictMode; } public final boolean reportWarningAsError() { return warningAsError; } /** * Specify whether or not source information should be generated. *

    * Without source information, evaluating the "toString" method * on JavaScript functions produces only "[native code]" for * the body of the function. * Note that code generated without source is not fully ECMA * conformant. */ public void setGeneratingSource(boolean generatingSource) { this.generatingSource = generatingSource; } /** * @return true iff code will be generated with callbacks to enable * instruction thresholds */ public boolean isGenerateObserverCount() { return generateObserverCount; } /** * Turn on or off generation of code with callbacks to * track the count of executed instructions. * Currently only affects JVM byte code generation: this slows down the * generated code, but code generated without the callbacks will not * be counted toward instruction thresholds. Rhino's interpretive * mode does instruction counting without inserting callbacks, so * there is no requirement to compile code differently. * @param generateObserverCount if true, generated code will contain * calls to accumulate an estimate of the instructions executed. */ public void setGenerateObserverCount(boolean generateObserverCount) { this.generateObserverCount = generateObserverCount; } private ErrorReporter errorReporter; private int languageVersion; private boolean generateDebugInfo; private boolean useDynamicScope; private boolean reservedKeywordAsIdentifier; private boolean allowMemberExprAsFunctionName; private boolean xmlAvailable; private int optimizationLevel; private boolean generatingSource; private boolean strictMode; private boolean warningAsError; private boolean generateObserverCount; Set activationNames; } carmetal-4.3/src/org/mozilla/javascript/ConstProperties.java000066400000000000000000000115261417122252700243610ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Bob Jervis * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; public interface ConstProperties { /** * Sets a named const property in this object. *

    * The property is specified by a string name * as defined for Scriptable.get. *

    * The possible values that may be passed in are as defined for * Scriptable.get. A class that implements this method may choose * to ignore calls to set certain properties, in which case those * properties are effectively read-only.

    * For properties defined in a prototype chain, * use putProperty in ScriptableObject.

    * Note that if a property a is defined in the prototype p * of an object o, then evaluating o.a = 23 will cause * set to be called on the prototype p with * o as the start parameter. * To preserve JavaScript semantics, it is the Scriptable * object's responsibility to modify o.

    * This design allows properties to be defined in prototypes and implemented * in terms of getters and setters of Java values without consuming slots * in each instance.

    *

    * The values that may be set are limited to the following: *

      *
    • java.lang.Boolean objects
    • *
    • java.lang.String objects
    • *
    • java.lang.Number objects
    • *
    • org.mozilla.javascript.Scriptable objects
    • *
    • null
    • *
    • The value returned by Context.getUndefinedValue()
    • *

    * Arbitrary Java objects may be wrapped in a Scriptable by first calling * Context.toObject. This allows the property of a JavaScript * object to contain an arbitrary Java object as a value.

    * Note that has will be called by the runtime first before * set is called to determine in which object the * property is defined. * Note that this method is not expected to traverse the prototype chain, * which is different from the ECMA [[Put]] operation. * @param name the name of the property * @param start the object whose property is being set * @param value value to set the property to * @see org.mozilla.javascript.Scriptable#has(String, Scriptable) * @see org.mozilla.javascript.Scriptable#get(String, Scriptable) * @see org.mozilla.javascript.ScriptableObject#putProperty(Scriptable, String, Object) * @see org.mozilla.javascript.Context#toObject(Object, Scriptable) */ public void putConst(String name, Scriptable start, Object value); /** * Reserves a definition spot for a const. This will set up a definition * of the const property, but set its value to undefined. The semantics of * the start parameter is the same as for putConst. * @param name The name of the property. * @param start The object whose property is being reserved. */ public void defineConst(String name, Scriptable start); /** * Returns true if the named property is defined as a const on this object. * @param name * @return true if the named property is defined as a const, false * otherwise. */ public boolean isConst(String name); } carmetal-4.3/src/org/mozilla/javascript/Context.java000066400000000000000000002760471417122252700226550ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Bob Jervis * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.io.CharArrayWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.Reader; import java.io.StringWriter; import java.io.Writer; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.HashSet; import java.util.Locale; import org.mozilla.javascript.debug.DebuggableScript; import org.mozilla.javascript.debug.Debugger; import org.mozilla.javascript.xml.XMLLib; /** * This class represents the runtime context of an executing script. * * Before executing a script, an instance of Context must be created * and associated with the thread that will be executing the script. * The Context will be used to store information about the executing * of the script such as the call stack. Contexts are associated with * the current thread using the {@link #call(ContextAction)} * or {@link #enter()} methods.

    * * Different forms of script execution are supported. Scripts may be * evaluated from the source directly, or first compiled and then later * executed. Interactive execution is also supported.

    * * Some aspects of script execution, such as type conversions and * object creation, may be accessed directly through methods of * Context. * * @see Scriptable * @author Norris Boyd * @author Brendan Eich */ public class Context { /** * Language versions. * * All integral values are reserved for future version numbers. */ /** * The unknown version. */ public static final int VERSION_UNKNOWN = -1; /** * The default version. */ public static final int VERSION_DEFAULT = 0; /** * JavaScript 1.0 */ public static final int VERSION_1_0 = 100; /** * JavaScript 1.1 */ public static final int VERSION_1_1 = 110; /** * JavaScript 1.2 */ public static final int VERSION_1_2 = 120; /** * JavaScript 1.3 */ public static final int VERSION_1_3 = 130; /** * JavaScript 1.4 */ public static final int VERSION_1_4 = 140; /** * JavaScript 1.5 */ public static final int VERSION_1_5 = 150; /** * JavaScript 1.6 */ public static final int VERSION_1_6 = 160; /** * JavaScript 1.7 */ public static final int VERSION_1_7 = 170; /** * Controls behaviour of Date.prototype.getYear(). * If hasFeature(FEATURE_NON_ECMA_GET_YEAR) returns true, * Date.prototype.getYear subtructs 1900 only if 1900 <= date < 2000. * The default behavior of {@link #hasFeature(int)} is always to subtruct * 1900 as rquired by ECMAScript B.2.4. */ public static final int FEATURE_NON_ECMA_GET_YEAR = 1; /** * Control if member expression as function name extension is available. * If hasFeature(FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME) returns * true, allow function memberExpression(args) { body } to be * syntax sugar for memberExpression = function(args) { body }, * when memberExpression is not a simple identifier. * See ECMAScript-262, section 11.2 for definition of memberExpression. * By default {@link #hasFeature(int)} returns false. */ public static final int FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME = 2; /** * Control if reserved keywords are treated as identifiers. * If hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER) returns true, * treat future reserved keyword (see Ecma-262, section 7.5.3) as ordinary * identifiers but warn about this usage. * * By default {@link #hasFeature(int)} returns false. */ public static final int FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER = 3; /** * Control if toString() should returns the same result * as toSource() when applied to objects and arrays. * If hasFeature(FEATURE_TO_STRING_AS_SOURCE) returns true, * calling toString() on JS objects gives the same result as * calling toSource(). That is it returns JS source with code * to create an object with all enumeratable fields of the original object * instead of printing [object result of * {@link Scriptable#getClassName()}]. *

    * By default {@link #hasFeature(int)} returns true only if * the current JS version is set to {@link #VERSION_1_2}. */ public static final int FEATURE_TO_STRING_AS_SOURCE = 4; /** * Control if properties __proto__ and __parent__ * are treated specially. * If hasFeature(FEATURE_PARENT_PROTO_PROPERTIES) returns true, * treat __parent__ and __proto__ as special properties. *

    * The properties allow to query and set scope and prototype chains for the * objects. The special meaning of the properties is available * only when they are used as the right hand side of the dot operator. * For example, while x.__proto__ = y changes the prototype * chain of the object x to point to y, * x["__proto__"] = y simply assigns a new value to the property * __proto__ in x even when the feature is on. * * By default {@link #hasFeature(int)} returns true. */ public static final int FEATURE_PARENT_PROTO_PROPERTIES = 5; /** * @deprecated In previous releases, this name was given to * FEATURE_PARENT_PROTO_PROPERTIES. */ public static final int FEATURE_PARENT_PROTO_PROPRTIES = 5; /** * Control if support for E4X(ECMAScript for XML) extension is available. * If hasFeature(FEATURE_E4X) returns true, the XML syntax is available. *

    * By default {@link #hasFeature(int)} returns true if * the current JS version is set to {@link #VERSION_DEFAULT} * or is at least {@link #VERSION_1_6}. * @since 1.6 Release 1 */ public static final int FEATURE_E4X = 6; /** * Control if dynamic scope should be used for name access. * If hasFeature(FEATURE_DYNAMIC_SCOPE) returns true, then the name lookup * during name resolution will use the top scope of the script or function * which is at the top of JS execution stack instead of the top scope of the * script or function from the current stack frame if the top scope of * the top stack frame contains the top scope of the current stack frame * on its prototype chain. *

    * This is useful to define shared scope containing functions that can * be called from scripts and functions using private scopes. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.6 Release 1 */ public static final int FEATURE_DYNAMIC_SCOPE = 7; /** * Control if strict variable mode is enabled. * When the feature is on Rhino reports runtime errors if assignment * to a global variable that does not exist is executed. When the feature * is off such assignments create a new variable in the global scope as * required by ECMA 262. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.6 Release 1 */ public static final int FEATURE_STRICT_VARS = 8; /** * Control if strict eval mode is enabled. * When the feature is on Rhino reports runtime errors if non-string * argument is passed to the eval function. When the feature is off * eval simply return non-string argument as is without performing any * evaluation as required by ECMA 262. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.6 Release 1 */ public static final int FEATURE_STRICT_EVAL = 9; /** * When the feature is on Rhino will add a "fileName" and "lineNumber" * properties to Error objects automatically. When the feature is off, you * have to explicitly pass them as the second and third argument to the * Error constructor. Note that neither behavior is fully ECMA 262 * compliant (as 262 doesn't specify a three-arg constructor), but keeping * the feature off results in Error objects that don't have * additional non-ECMA properties when constructed using the ECMA-defined * single-arg constructor and is thus desirable if a stricter ECMA * compliance is desired, specifically adherence to the point 15.11.5. of * the standard. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.6 Release 6 */ public static final int FEATURE_LOCATION_INFORMATION_IN_ERROR = 10; /** * Controls whether JS 1.5 'strict mode' is enabled. * When the feature is on, Rhino reports more than a dozen different * warnings. When the feature is off, these warnings are not generated. * FEATURE_STRICT_MODE implies FEATURE_STRICT_VARS and FEATURE_STRICT_EVAL. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.6 Release 6 */ public static final int FEATURE_STRICT_MODE = 11; /** * Controls whether a warning should be treated as an error. * @since 1.6 Release 6 */ public static final int FEATURE_WARNING_AS_ERROR = 12; /** * Enables enhanced access to Java. * Specifically, controls whether private and protected members can be * accessed, and whether scripts can catch all Java exceptions. *

    * Note that this feature should only be enabled for trusted scripts. *

    * By default {@link #hasFeature(int)} returns false. * @since 1.7 Release 1 */ public static final int FEATURE_ENHANCED_JAVA_ACCESS = 13; public static final String languageVersionProperty = "language version"; public static final String errorReporterProperty = "error reporter"; /** * Convenient value to use as zero-length array of objects. */ public static final Object[] emptyArgs = ScriptRuntime.emptyArgs; /** * Creates a new Context. The context will be associated with the {@link * ContextFactory#getGlobal() global context factory}. * * Note that the Context must be associated with a thread before * it can be used to execute a script. * @deprecated this constructor is deprecated because it creates a * dependency on a static singleton context factory. Use * {@link ContextFactory#enter()} or * {@link ContextFactory#call(ContextAction)} instead. If you subclass * this class, consider using {@link #Context(ContextFactory)} constructor * instead in the subclasses' constructors. */ public Context() { this(ContextFactory.getGlobal()); } /** * Creates a new context. Provided as a preferred super constructor for * subclasses in place of the deprecated default public constructor. * @param factory the context factory associated with this context (most * likely, the one that created the context). Can not be null. The context * features are inherited from the factory, and the context will also * otherwise use its factory's services. * @throws IllegalArgumentException if factory parameter is null. */ protected Context(ContextFactory factory) { if(factory == null) { throw new IllegalArgumentException("factory == null"); } this.factory = factory; setLanguageVersion(VERSION_DEFAULT); optimizationLevel = codegenClass != null ? 0 : -1; maximumInterpreterStackDepth = Integer.MAX_VALUE; } /** * Get the current Context. * * The current Context is per-thread; this method looks up * the Context associated with the current thread.

    * * @return the Context associated with the current thread, or * null if no context is associated with the current * thread. * @see ContextFactory#enterContext() * @see ContextFactory#call(ContextAction) */ public static Context getCurrentContext() { Object helper = VMBridge.instance.getThreadContextHelper(); return VMBridge.instance.getContext(helper); } /** * Same as calling {@link ContextFactory#enterContext()} on the global * ContextFactory instance. * @return a Context associated with the current thread * @see #getCurrentContext() * @see #exit() * @see #call(ContextAction) */ public static Context enter() { return enter(null); } /** * Get a Context associated with the current thread, using * the given Context if need be. *

    * The same as enter() except that cx * is associated with the current thread and returned if * the current thread has no associated context and cx * is not associated with any other thread. * @param cx a Context to associate with the thread if possible * @return a Context associated with the current thread * @deprecated use {@link ContextFactory#enterContext(Context)} instead as * this method relies on usage of a static singleton "global" ContextFactory. * @see ContextFactory#enterContext(Context) * @see ContextFactory#call(ContextAction) */ public static Context enter(Context cx) { return enter(cx, ContextFactory.getGlobal()); } static final Context enter(Context cx, ContextFactory factory) { Object helper = VMBridge.instance.getThreadContextHelper(); Context old = VMBridge.instance.getContext(helper); if (old != null) { cx = old; } else { if (cx == null) { cx = factory.makeContext(); if (cx.enterCount != 0) { throw new IllegalStateException("factory.makeContext() returned Context instance already associated with some thread"); } factory.onContextCreated(cx); if (factory.isSealed() && !cx.isSealed()) { cx.seal(null); } } else { if (cx.enterCount != 0) { throw new IllegalStateException("can not use Context instance already associated with some thread"); } } VMBridge.instance.setContext(helper, cx); } ++cx.enterCount; return cx; } /** * Exit a block of code requiring a Context. * * Calling exit() will remove the association between * the current thread and a Context if the prior call to * {@link ContextFactory#enterContext()} on this thread newly associated a * Context with this thread. Once the current thread no longer has an * associated Context, it cannot be used to execute JavaScript until it is * again associated with a Context. * @see ContextFactory#enterContext() */ public static void exit() { Object helper = VMBridge.instance.getThreadContextHelper(); Context cx = VMBridge.instance.getContext(helper); if (cx == null) { throw new IllegalStateException( "Calling Context.exit without previous Context.enter"); } if (cx.enterCount < 1) Kit.codeBug(); if (--cx.enterCount == 0) { VMBridge.instance.setContext(helper, null); cx.factory.onContextReleased(cx); } } /** * Call {@link ContextAction#run(Context cx)} * using the Context instance associated with the current thread. * If no Context is associated with the thread, then * ContextFactory.getGlobal().makeContext() will be called to * construct new Context instance. The instance will be temporary * associated with the thread during call to * {@link ContextAction#run(Context)}. * @deprecated use {@link ContextFactory#call(ContextAction)} instead as * this method relies on usage of a static singleton "global" * ContextFactory. * @return The result of {@link ContextAction#run(Context)}. */ public static Object call(ContextAction action) { return call(ContextFactory.getGlobal(), action); } /** * Call {@link * Callable#call(Context cx, Scriptable scope, Scriptable thisObj, * Object[] args)} * using the Context instance associated with the current thread. * If no Context is associated with the thread, then * {@link ContextFactory#makeContext()} will be called to construct * new Context instance. The instance will be temporary associated * with the thread during call to {@link ContextAction#run(Context)}. *

    * It is allowed but not advisable to use null for factory * argument in which case the global static singleton ContextFactory * instance will be used to create new context instances. * @see ContextFactory#call(ContextAction) */ public static Object call(ContextFactory factory, final Callable callable, final Scriptable scope, final Scriptable thisObj, final Object[] args) { if(factory == null) { factory = ContextFactory.getGlobal(); } return call(factory, new ContextAction() { public Object run(Context cx) { return callable.call(cx, scope, thisObj, args); } }); } /** * The method implements {@link ContextFactory#call(ContextAction)} logic. */ static Object call(ContextFactory factory, ContextAction action) { Context cx = enter(null, factory); try { return action.run(cx); } finally { exit(); } } /** * @deprecated * @see ContextFactory#addListener(ContextFactory.Listener) * @see ContextFactory#getGlobal() */ public static void addContextListener(ContextListener listener) { // Special workaround for the debugger String DBG = "org.mozilla.javascript.tools.debugger.Main"; if (DBG.equals(listener.getClass().getName())) { Class cl = listener.getClass(); Class factoryClass = Kit.classOrNull( "org.mozilla.javascript.ContextFactory"); Class[] sig = { factoryClass }; Object[] args = { ContextFactory.getGlobal() }; try { Method m = cl.getMethod("attachTo", sig); m.invoke(listener, args); } catch (Exception ex) { RuntimeException rex = new RuntimeException(); Kit.initCause(rex, ex); throw rex; } return; } ContextFactory.getGlobal().addListener(listener); } /** * @deprecated * @see ContextFactory#removeListener(ContextFactory.Listener) * @see ContextFactory#getGlobal() */ public static void removeContextListener(ContextListener listener) { ContextFactory.getGlobal().addListener(listener); } /** * Return {@link ContextFactory} instance used to create this Context. */ public final ContextFactory getFactory() { return factory; } /** * Checks if this is a sealed Context. A sealed Context instance does not * allow to modify any of its properties and will throw an exception * on any such attempt. * @see #seal(Object sealKey) */ public final boolean isSealed() { return sealed; } /** * Seal this Context object so any attempt to modify any of its properties * including calling {@link #enter()} and {@link #exit()} methods will * throw an exception. *

    * If sealKey is not null, calling * {@link #unseal(Object sealKey)} with the same key unseals * the object. If sealKey is null, unsealing is no longer possible. * * @see #isSealed() * @see #unseal(Object) */ public final void seal(Object sealKey) { if (sealed) onSealedMutation(); sealed = true; this.sealKey = sealKey; } /** * Unseal previously sealed Context object. * The sealKey argument should not be null and should match * sealKey suplied with the last call to * {@link #seal(Object)} or an exception will be thrown. * * @see #isSealed() * @see #seal(Object sealKey) */ public final void unseal(Object sealKey) { if (sealKey == null) throw new IllegalArgumentException(); if (this.sealKey != sealKey) throw new IllegalArgumentException(); if (!sealed) throw new IllegalStateException(); sealed = false; this.sealKey = null; } static void onSealedMutation() { throw new IllegalStateException(); } /** * Get the current language version. *

    * The language version number affects JavaScript semantics as detailed * in the overview documentation. * * @return an integer that is one of VERSION_1_0, VERSION_1_1, etc. */ public final int getLanguageVersion() { return version; } /** * Set the language version. * *

    * Setting the language version will affect functions and scripts compiled * subsequently. See the overview documentation for version-specific * behavior. * * @param version the version as specified by VERSION_1_0, VERSION_1_1, etc. */ public void setLanguageVersion(int version) { if (sealed) onSealedMutation(); checkLanguageVersion(version); Object listeners = propertyListeners; if (listeners != null && version != this.version) { firePropertyChangeImpl(listeners, languageVersionProperty, new Integer(this.version), new Integer(version)); } this.version = version; } public static boolean isValidLanguageVersion(int version) { switch (version) { case VERSION_DEFAULT: case VERSION_1_0: case VERSION_1_1: case VERSION_1_2: case VERSION_1_3: case VERSION_1_4: case VERSION_1_5: case VERSION_1_6: case VERSION_1_7: return true; } return false; } public static void checkLanguageVersion(int version) { if (isValidLanguageVersion(version)) { return; } throw new IllegalArgumentException("Bad language version: "+version); } /** * Get the implementation version. * *

    * The implementation version is of the form *

         *    "name langVer release relNum date"
         * 
    * where name is the name of the product, langVer is * the language version, relNum is the release number, and * date is the release date for that specific * release in the form "yyyy mm dd". * * @return a string that encodes the product, language version, release * number, and date. */ public final String getImplementationVersion() { // XXX Probably it would be better to embed this directly into source // with special build preprocessing but that would require some ant // tweaking and then replacing token in resource files was simpler if (implementationVersion == null) { implementationVersion = ScriptRuntime.getMessage0("implementation.version"); } return implementationVersion; } /** * Get the current error reporter. * * @see org.mozilla.javascript.ErrorReporter */ public final ErrorReporter getErrorReporter() { if (errorReporter == null) { return DefaultErrorReporter.instance; } return errorReporter; } /** * Change the current error reporter. * * @return the previous error reporter * @see org.mozilla.javascript.ErrorReporter */ public final ErrorReporter setErrorReporter(ErrorReporter reporter) { if (sealed) onSealedMutation(); if (reporter == null) throw new IllegalArgumentException(); ErrorReporter old = getErrorReporter(); if (reporter == old) { return old; } Object listeners = propertyListeners; if (listeners != null) { firePropertyChangeImpl(listeners, errorReporterProperty, old, reporter); } this.errorReporter = reporter; return old; } /** * Get the current locale. Returns the default locale if none has * been set. * * @see java.util.Locale */ public final Locale getLocale() { if (locale == null) locale = Locale.getDefault(); return locale; } /** * Set the current locale. * * @see java.util.Locale */ public final Locale setLocale(Locale loc) { if (sealed) onSealedMutation(); Locale result = locale; locale = loc; return result; } /** * Register an object to receive notifications when a bound property * has changed * @see java.beans.PropertyChangeEvent * @see #removePropertyChangeListener(java.beans.PropertyChangeListener) * @param l the listener */ public final void addPropertyChangeListener(PropertyChangeListener l) { if (sealed) onSealedMutation(); propertyListeners = Kit.addListener(propertyListeners, l); } /** * Remove an object from the list of objects registered to receive * notification of changes to a bounded property * @see java.beans.PropertyChangeEvent * @see #addPropertyChangeListener(java.beans.PropertyChangeListener) * @param l the listener */ public final void removePropertyChangeListener(PropertyChangeListener l) { if (sealed) onSealedMutation(); propertyListeners = Kit.removeListener(propertyListeners, l); } /** * Notify any registered listeners that a bounded property has changed * @see #addPropertyChangeListener(java.beans.PropertyChangeListener) * @see #removePropertyChangeListener(java.beans.PropertyChangeListener) * @see java.beans.PropertyChangeListener * @see java.beans.PropertyChangeEvent * @param property the bound property * @param oldValue the old value * @param newValue the new value */ final void firePropertyChange(String property, Object oldValue, Object newValue) { Object listeners = propertyListeners; if (listeners != null) { firePropertyChangeImpl(listeners, property, oldValue, newValue); } } private void firePropertyChangeImpl(Object listeners, String property, Object oldValue, Object newValue) { for (int i = 0; ; ++i) { Object l = Kit.getListener(listeners, i); if (l == null) break; if (l instanceof PropertyChangeListener) { PropertyChangeListener pcl = (PropertyChangeListener)l; pcl.propertyChange(new PropertyChangeEvent( this, property, oldValue, newValue)); } } } /** * Report a warning using the error reporter for the current thread. * * @param message the warning message to report * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected * @see org.mozilla.javascript.ErrorReporter */ public static void reportWarning(String message, String sourceName, int lineno, String lineSource, int lineOffset) { Context cx = Context.getContext(); if (cx.hasFeature(FEATURE_WARNING_AS_ERROR)) reportError(message, sourceName, lineno, lineSource, lineOffset); else cx.getErrorReporter().warning(message, sourceName, lineno, lineSource, lineOffset); } /** * Report a warning using the error reporter for the current thread. * * @param message the warning message to report * @see org.mozilla.javascript.ErrorReporter */ public static void reportWarning(String message) { int[] linep = { 0 }; String filename = getSourcePositionFromStack(linep); Context.reportWarning(message, filename, linep[0], null, 0); } public static void reportWarning(String message, Throwable t) { int[] linep = { 0 }; String filename = getSourcePositionFromStack(linep); Writer sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); pw.println(message); t.printStackTrace(pw); pw.flush(); Context.reportWarning(sw.toString(), filename, linep[0], null, 0); } /** * Report an error using the error reporter for the current thread. * * @param message the error message to report * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected * @see org.mozilla.javascript.ErrorReporter */ public static void reportError(String message, String sourceName, int lineno, String lineSource, int lineOffset) { Context cx = getCurrentContext(); if (cx != null) { cx.getErrorReporter().error(message, sourceName, lineno, lineSource, lineOffset); } else { throw new EvaluatorException(message, sourceName, lineno, lineSource, lineOffset); } } /** * Report an error using the error reporter for the current thread. * * @param message the error message to report * @see org.mozilla.javascript.ErrorReporter */ public static void reportError(String message) { int[] linep = { 0 }; String filename = getSourcePositionFromStack(linep); Context.reportError(message, filename, linep[0], null, 0); } /** * Report a runtime error using the error reporter for the current thread. * * @param message the error message to report * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected * @return a runtime exception that will be thrown to terminate the * execution of the script * @see org.mozilla.javascript.ErrorReporter */ public static EvaluatorException reportRuntimeError(String message, String sourceName, int lineno, String lineSource, int lineOffset) { Context cx = getCurrentContext(); if (cx != null) { return cx.getErrorReporter(). runtimeError(message, sourceName, lineno, lineSource, lineOffset); } else { throw new EvaluatorException(message, sourceName, lineno, lineSource, lineOffset); } } static EvaluatorException reportRuntimeError0(String messageId) { String msg = ScriptRuntime.getMessage0(messageId); return reportRuntimeError(msg); } static EvaluatorException reportRuntimeError1(String messageId, Object arg1) { String msg = ScriptRuntime.getMessage1(messageId, arg1); return reportRuntimeError(msg); } static EvaluatorException reportRuntimeError2(String messageId, Object arg1, Object arg2) { String msg = ScriptRuntime.getMessage2(messageId, arg1, arg2); return reportRuntimeError(msg); } static EvaluatorException reportRuntimeError3(String messageId, Object arg1, Object arg2, Object arg3) { String msg = ScriptRuntime.getMessage3(messageId, arg1, arg2, arg3); return reportRuntimeError(msg); } static EvaluatorException reportRuntimeError4(String messageId, Object arg1, Object arg2, Object arg3, Object arg4) { String msg = ScriptRuntime.getMessage4(messageId, arg1, arg2, arg3, arg4); return reportRuntimeError(msg); } /** * Report a runtime error using the error reporter for the current thread. * * @param message the error message to report * @see org.mozilla.javascript.ErrorReporter */ public static EvaluatorException reportRuntimeError(String message) { int[] linep = { 0 }; String filename = getSourcePositionFromStack(linep); return Context.reportRuntimeError(message, filename, linep[0], null, 0); } /** * Initialize the standard objects. * * Creates instances of the standard objects and their constructors * (Object, String, Number, Date, etc.), setting up 'scope' to act * as a global object as in ECMA 15.1.

    * * This method must be called to initialize a scope before scripts * can be evaluated in that scope.

    * * This method does not affect the Context it is called upon. * * @return the initialized scope */ public final ScriptableObject initStandardObjects() { return initStandardObjects(null, false); } /** * Initialize the standard objects. * * Creates instances of the standard objects and their constructors * (Object, String, Number, Date, etc.), setting up 'scope' to act * as a global object as in ECMA 15.1.

    * * This method must be called to initialize a scope before scripts * can be evaluated in that scope.

    * * This method does not affect the Context it is called upon. * * @param scope the scope to initialize, or null, in which case a new * object will be created to serve as the scope * @return the initialized scope. The method returns the value of the scope * argument if it is not null or newly allocated scope object which * is an instance {@link ScriptableObject}. */ public final Scriptable initStandardObjects(ScriptableObject scope) { return initStandardObjects(scope, false); } /** * Initialize the standard objects. * * Creates instances of the standard objects and their constructors * (Object, String, Number, Date, etc.), setting up 'scope' to act * as a global object as in ECMA 15.1.

    * * This method must be called to initialize a scope before scripts * can be evaluated in that scope.

    * * This method does not affect the Context it is called upon.

    * * This form of the method also allows for creating "sealed" standard * objects. An object that is sealed cannot have properties added, changed, * or removed. This is useful to create a "superglobal" that can be shared * among several top-level objects. Note that sealing is not allowed in * the current ECMA/ISO language specification, but is likely for * the next version. * * @param scope the scope to initialize, or null, in which case a new * object will be created to serve as the scope * @param sealed whether or not to create sealed standard objects that * cannot be modified. * @return the initialized scope. The method returns the value of the scope * argument if it is not null or newly allocated scope object. * @since 1.4R3 */ public ScriptableObject initStandardObjects(ScriptableObject scope, boolean sealed) { return ScriptRuntime.initStandardObjects(this, scope, sealed); } /** * Get the singleton object that represents the JavaScript Undefined value. */ public static Object getUndefinedValue() { return Undefined.instance; } /** * Evaluate a JavaScript source string. * * The provided source name and line number are used for error messages * and for producing debug information. * * @param scope the scope to execute in * @param source the JavaScript source * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param securityDomain an arbitrary object that specifies security * information about the origin or owner of the script. For * implementations that don't care about security, this value * may be null. * @return the result of evaluating the string * @see org.mozilla.javascript.SecurityController */ public final Object evaluateString(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) { Script script = compileString(source, sourceName, lineno, securityDomain); if (script != null) { return script.exec(this, scope); } else { return null; } } /** * Evaluate a reader as JavaScript source. * * All characters of the reader are consumed. * * @param scope the scope to execute in * @param in the Reader to get JavaScript source from * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param securityDomain an arbitrary object that specifies security * information about the origin or owner of the script. For * implementations that don't care about security, this value * may be null. * @return the result of evaluating the source * * @exception IOException if an IOException was generated by the Reader */ public final Object evaluateReader(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) throws IOException { Script script = compileReader(scope, in, sourceName, lineno, securityDomain); if (script != null) { return script.exec(this, scope); } else { return null; } } /** * Execute script that may pause execution by capturing a continuation. * Caller must be prepared to catch a ContinuationPending exception * and resume execution by calling * {@link #resumeContinuation(Object, Scriptable, Object)}. * @param script The script to execute. Script must have been compiled * with interpreted mode (optimization level -1) * @param scope The scope to execute the script against * @throws ContinuationPending if the script calls a function that results * in a call to {@link #captureContinuation()} * @since 1.7 Release 2 */ public Object executeScriptWithContinuations(Script script, Scriptable scope) throws ContinuationPending { if (!(script instanceof InterpretedFunction) || !((InterpretedFunction)script).isScript()) { // Can only be applied to scripts throw new IllegalArgumentException("Script argument was not" + " a script or was not created by interpreted mode "); } return callFunctionWithContinuations((InterpretedFunction) script, scope, ScriptRuntime.emptyArgs); } /** * Call function that may pause execution by capturing a continuation. * Caller must be prepared to catch a ContinuationPending exception * and resume execution by calling * {@link #resumeContinuation(Object, Scriptable, Object)}. * @param function The function to call. The function must have been * compiled with interpreted mode (optimization level -1) * @param scope The scope to execute the script against * @param args The arguments for the function * @throws ContinuationPending if the script calls a function that results * in a call to {@link #captureContinuation()} * @since 1.7 Release 2 */ public Object callFunctionWithContinuations(Callable function, Scriptable scope, Object[] args) throws ContinuationPending { if (!(function instanceof InterpretedFunction)) { // Can only be applied to scripts throw new IllegalArgumentException("Function argument was not" + " created by interpreted mode "); } if (ScriptRuntime.hasTopCall(this)) { throw new IllegalStateException("Cannot have any pending top " + "calls when executing a script with continuations"); } // Annotate so we can check later to ensure no java code in // intervening frames isContinuationsTopCall = true; return ScriptRuntime.doTopCall(function, this, scope, scope, args); } /** * Capture a continuation from the current execution. The execution must * have been started via a call to * {@link #executeScriptWithContinuations(Script, Scriptable)} or * {@link #callFunctionWithContinuations(Callable, Scriptable, Object[])}. * This implies that the code calling * this method must have been called as a function from the * JavaScript script. Also, there cannot be any non-JavaScript code * between the JavaScript frames (e.g., a call to eval()). The * ContinuationPending exception returned must be thrown. * @return A ContinuationPending exception that must be thrown * @since 1.7 Release 2 */ public ContinuationPending captureContinuation() { return new ContinuationPending( Interpreter.captureContinuation(this)); } /** * Restarts execution of the JavaScript suspended at the call * to {@link #captureContinuation()}. Execution of the code will resume * with the functionResult as the result of the call that captured the * continuation. * Execution of the script will either conclude normally and the * result returned, another continuation will be captured and * thrown, or the script will terminate abnormally and throw an exception. * @param continuation The value returned by * {@link ContinuationPending#getContinuation()} * @param functionResult This value will appear to the code being resumed * as the result of the function that captured the continuation * @throws ContinuationPending if another continuation is captured before * the code terminates * @since 1.7 Release 2 */ public Object resumeContinuation(Object continuation, Scriptable scope, Object functionResult) throws ContinuationPending { Object[] args = { functionResult }; return Interpreter.restartContinuation( (org.mozilla.javascript.NativeContinuation) continuation, this, scope, args); } /** * Check whether a string is ready to be compiled. *

    * stringIsCompilableUnit is intended to support interactive compilation of * JavaScript. If compiling the string would result in an error * that might be fixed by appending more source, this method * returns false. In every other case, it returns true. *

    * Interactive shells may accumulate source lines, using this * method after each new line is appended to check whether the * statement being entered is complete. * * @param source the source buffer to check * @return whether the source is ready for compilation * @since 1.4 Release 2 */ public final boolean stringIsCompilableUnit(String source) { boolean errorseen = false; CompilerEnvirons compilerEnv = new CompilerEnvirons(); compilerEnv.initFromContext(this); // no source name or source text manager, because we're just // going to throw away the result. compilerEnv.setGeneratingSource(false); Parser p = new Parser(compilerEnv, DefaultErrorReporter.instance); try { p.parse(source, null, 1); } catch (EvaluatorException ee) { errorseen = true; } // Return false only if an error occurred as a result of reading past // the end of the file, i.e. if the source could be fixed by // appending more source. if (errorseen && p.eof()) return false; else return true; } /** * @deprecated * @see #compileReader(Reader in, String sourceName, int lineno, * Object securityDomain) */ public final Script compileReader(Scriptable scope, Reader in, String sourceName, int lineno, Object securityDomain) throws IOException { return compileReader(in, sourceName, lineno, securityDomain); } /** * Compiles the source in the given reader. *

    * Returns a script that may later be executed. * Will consume all the source in the reader. * * @param in the input reader * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number for reporting errors * @param securityDomain an arbitrary object that specifies security * information about the origin or owner of the script. For * implementations that don't care about security, this value * may be null. * @return a script that may later be executed * @exception IOException if an IOException was generated by the Reader * @see org.mozilla.javascript.Script */ public final Script compileReader(Reader in, String sourceName, int lineno, Object securityDomain) throws IOException { if (lineno < 0) { // For compatibility IllegalArgumentException can not be thrown here lineno = 0; } return (Script) compileImpl(null, in, null, sourceName, lineno, securityDomain, false, null, null); } /** * Compiles the source in the given string. *

    * Returns a script that may later be executed. * * @param source the source string * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number for reporting errors * @param securityDomain an arbitrary object that specifies security * information about the origin or owner of the script. For * implementations that don't care about security, this value * may be null. * @return a script that may later be executed * @see org.mozilla.javascript.Script */ public final Script compileString(String source, String sourceName, int lineno, Object securityDomain) { if (lineno < 0) { // For compatibility IllegalArgumentException can not be thrown here lineno = 0; } return compileString(source, null, null, sourceName, lineno, securityDomain); } final Script compileString(String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) { try { return (Script) compileImpl(null, null, source, sourceName, lineno, securityDomain, false, compiler, compilationErrorReporter); } catch (IOException ex) { // Should not happen when dealing with source as string throw new RuntimeException(); } } /** * Compile a JavaScript function. *

    * The function source must be a function definition as defined by * ECMA (e.g., "function f(a) { return a; }"). * * @param scope the scope to compile relative to * @param source the function definition source * @param sourceName a string describing the source, such as a filename * @param lineno the starting line number * @param securityDomain an arbitrary object that specifies security * information about the origin or owner of the script. For * implementations that don't care about security, this value * may be null. * @return a Function that may later be called * @see org.mozilla.javascript.Function */ public final Function compileFunction(Scriptable scope, String source, String sourceName, int lineno, Object securityDomain) { return compileFunction(scope, source, null, null, sourceName, lineno, securityDomain); } final Function compileFunction(Scriptable scope, String source, Evaluator compiler, ErrorReporter compilationErrorReporter, String sourceName, int lineno, Object securityDomain) { try { return (Function) compileImpl(scope, null, source, sourceName, lineno, securityDomain, true, compiler, compilationErrorReporter); } catch (IOException ioe) { // Should never happen because we just made the reader // from a String throw new RuntimeException(); } } /** * Decompile the script. *

    * The canonical source of the script is returned. * * @param script the script to decompile * @param indent the number of spaces to indent the result * @return a string representing the script source */ public final String decompileScript(Script script, int indent) { NativeFunction scriptImpl = (NativeFunction) script; return scriptImpl.decompile(indent, 0); } /** * Decompile a JavaScript Function. *

    * Decompiles a previously compiled JavaScript function object to * canonical source. *

    * Returns function body of '[native code]' if no decompilation * information is available. * * @param fun the JavaScript function to decompile * @param indent the number of spaces to indent the result * @return a string representing the function source */ public final String decompileFunction(Function fun, int indent) { if (fun instanceof BaseFunction) return ((BaseFunction)fun).decompile(indent, 0); else return "function " + fun.getClassName() + "() {\n\t[native code]\n}\n"; } /** * Decompile the body of a JavaScript Function. *

    * Decompiles the body a previously compiled JavaScript Function * object to canonical source, omitting the function header and * trailing brace. * * Returns '[native code]' if no decompilation information is available. * * @param fun the JavaScript function to decompile * @param indent the number of spaces to indent the result * @return a string representing the function body source. */ public final String decompileFunctionBody(Function fun, int indent) { if (fun instanceof BaseFunction) { BaseFunction bf = (BaseFunction)fun; return bf.decompile(indent, Decompiler.ONLY_BODY_FLAG); } // ALERT: not sure what the right response here is. return "[native code]\n"; } /** * Create a new JavaScript object. * * Equivalent to evaluating "new Object()". * @param scope the scope to search for the constructor and to evaluate * against * @return the new object */ public final Scriptable newObject(Scriptable scope) { return newObject(scope, "Object", ScriptRuntime.emptyArgs); } /** * Create a new JavaScript object by executing the named constructor. * * The call newObject(scope, "Foo") is equivalent to * evaluating "new Foo()". * * @param scope the scope to search for the constructor and to evaluate against * @param constructorName the name of the constructor to call * @return the new object */ public final Scriptable newObject(Scriptable scope, String constructorName) { return newObject(scope, constructorName, ScriptRuntime.emptyArgs); } /** * Creates a new JavaScript object by executing the named constructor. * * Searches scope for the named constructor, calls it with * the given arguments, and returns the result.

    * * The code *

         * Object[] args = { "a", "b" };
         * newObject(scope, "Foo", args)
    * is equivalent to evaluating "new Foo('a', 'b')", assuming that the Foo * constructor has been defined in scope. * * @param scope The scope to search for the constructor and to evaluate * against * @param constructorName the name of the constructor to call * @param args the array of arguments for the constructor * @return the new object */ public final Scriptable newObject(Scriptable scope, String constructorName, Object[] args) { scope = ScriptableObject.getTopLevelScope(scope); Function ctor = ScriptRuntime.getExistingCtor(this, scope, constructorName); if (args == null) { args = ScriptRuntime.emptyArgs; } return ctor.construct(this, scope, args); } /** * Create an array with a specified initial length. *

    * @param scope the scope to create the object in * @param length the initial length (JavaScript arrays may have * additional properties added dynamically). * @return the new array object */ public final Scriptable newArray(Scriptable scope, int length) { NativeArray result = new NativeArray(length); ScriptRuntime.setObjectProtoAndParent(result, scope); return result; } /** * Create an array with a set of initial elements. * * @param scope the scope to create the object in. * @param elements the initial elements. Each object in this array * must be an acceptable JavaScript type and type * of array should be exactly Object[], not * SomeObjectSubclass[]. * @return the new array object. */ public final Scriptable newArray(Scriptable scope, Object[] elements) { if (elements.getClass().getComponentType() != ScriptRuntime.ObjectClass) throw new IllegalArgumentException(); NativeArray result = new NativeArray(elements); ScriptRuntime.setObjectProtoAndParent(result, scope); return result; } /** * Get the elements of a JavaScript array. *

    * If the object defines a length property convertible to double number, * then the number is converted Uint32 value as defined in Ecma 9.6 * and Java array of that size is allocated. * The array is initialized with the values obtained by * calling get() on object for each value of i in [0,length-1]. If * there is not a defined value for a property the Undefined value * is used to initialize the corresponding element in the array. The * Java array is then returned. * If the object doesn't define a length property or it is not a number, * empty array is returned. * @param object the JavaScript array or array-like object * @return a Java array of objects * @since 1.4 release 2 */ public final Object[] getElements(Scriptable object) { return ScriptRuntime.getArrayElements(object); } /** * Convert the value to a JavaScript boolean value. *

    * See ECMA 9.2. * * @param value a JavaScript value * @return the corresponding boolean value converted using * the ECMA rules */ public static boolean toBoolean(Object value) { return ScriptRuntime.toBoolean(value); } /** * Convert the value to a JavaScript Number value. *

    * Returns a Java double for the JavaScript Number. *

    * See ECMA 9.3. * * @param value a JavaScript value * @return the corresponding double value converted using * the ECMA rules */ public static double toNumber(Object value) { return ScriptRuntime.toNumber(value); } /** * Convert the value to a JavaScript String value. *

    * See ECMA 9.8. *

    * @param value a JavaScript value * @return the corresponding String value converted using * the ECMA rules */ public static String toString(Object value) { return ScriptRuntime.toString(value); } /** * Convert the value to an JavaScript object value. *

    * Note that a scope must be provided to look up the constructors * for Number, Boolean, and String. *

    * See ECMA 9.9. *

    * Additionally, arbitrary Java objects and classes will be * wrapped in a Scriptable object with its Java fields and methods * reflected as JavaScript properties of the object. * * @param value any Java object * @param scope global scope containing constructors for Number, * Boolean, and String * @return new JavaScript object */ public static Scriptable toObject(Object value, Scriptable scope) { return ScriptRuntime.toObject(scope, value); } /** * @deprecated * @see #toObject(Object, Scriptable) */ public static Scriptable toObject(Object value, Scriptable scope, Class staticType) { return ScriptRuntime.toObject(scope, value); } /** * Convenient method to convert java value to its closest representation * in JavaScript. *

    * If value is an instance of String, Number, Boolean, Function or * Scriptable, it is returned as it and will be treated as the corresponding * JavaScript type of string, number, boolean, function and object. *

    * Note that for Number instances during any arithmetic operation in * JavaScript the engine will always use the result of * Number.doubleValue() resulting in a precision loss if * the number can not fit into double. *

    * If value is an instance of Character, it will be converted to string of * length 1 and its JavaScript type will be string. *

    * The rest of values will be wrapped as LiveConnect objects * by calling {@link WrapFactory#wrap(Context cx, Scriptable scope, * Object obj, Class staticType)} as in: *

         *    Context cx = Context.getCurrentContext();
         *    return cx.getWrapFactory().wrap(cx, scope, value, null);
         * 
    * * @param value any Java object * @param scope top scope object * @return value suitable to pass to any API that takes JavaScript values. */ public static Object javaToJS(Object value, Scriptable scope) { if (value instanceof String || value instanceof Number || value instanceof Boolean || value instanceof Scriptable) { return value; } else if (value instanceof Character) { return String.valueOf(((Character)value).charValue()); } else { Context cx = Context.getContext(); return cx.getWrapFactory().wrap(cx, scope, value, null); } } /** * Convert a JavaScript value into the desired type. * Uses the semantics defined with LiveConnect3 and throws an * Illegal argument exception if the conversion cannot be performed. * @param value the JavaScript value to convert * @param desiredType the Java type to convert to. Primitive Java * types are represented using the TYPE fields in the corresponding * wrapper class in java.lang. * @return the converted value * @throws EvaluatorException if the conversion cannot be performed */ public static Object jsToJava(Object value, Class desiredType) throws EvaluatorException { return NativeJavaObject.coerceTypeImpl(desiredType, value); } /** * @deprecated * @see #jsToJava(Object, Class) * @throws IllegalArgumentException if the conversion cannot be performed. * Note that {@link #jsToJava(Object, Class)} throws * {@link EvaluatorException} instead. */ public static Object toType(Object value, Class desiredType) throws IllegalArgumentException { try { return jsToJava(value, desiredType); } catch (EvaluatorException ex) { IllegalArgumentException ex2 = new IllegalArgumentException(ex.getMessage()); Kit.initCause(ex2, ex); throw ex2; } } /** * Rethrow the exception wrapping it as the script runtime exception. * Unless the exception is instance of {@link EcmaError} or * {@link EvaluatorException} it will be wrapped as * {@link WrappedException}, a subclass of {@link EvaluatorException}. * The resulting exception object always contains * source name and line number of script that triggered exception. *

    * This method always throws an exception, its return value is provided * only for convenience to allow a usage like: *

         * throw Context.throwAsScriptRuntimeEx(ex);
         * 
    * to indicate that code after the method is unreachable. * @throws EvaluatorException * @throws EcmaError */ public static RuntimeException throwAsScriptRuntimeEx(Throwable e) { while ((e instanceof InvocationTargetException)) { e = ((InvocationTargetException) e).getTargetException(); } // special handling of Error so scripts would not catch them if (e instanceof Error) { Context cx = getContext(); if (cx == null || !cx.hasFeature(Context.FEATURE_ENHANCED_JAVA_ACCESS)) { throw (Error)e; } } if (e instanceof RhinoException) { throw (RhinoException)e; } throw new WrappedException(e); } /** * Tell whether debug information is being generated. * @since 1.3 */ public final boolean isGeneratingDebug() { return generatingDebug; } /** * Specify whether or not debug information should be generated. *

    * Setting the generation of debug information on will set the * optimization level to zero. * @since 1.3 */ public final void setGeneratingDebug(boolean generatingDebug) { if (sealed) onSealedMutation(); generatingDebugChanged = true; if (generatingDebug && getOptimizationLevel() > 0) setOptimizationLevel(0); this.generatingDebug = generatingDebug; } /** * Tell whether source information is being generated. * @since 1.3 */ public final boolean isGeneratingSource() { return generatingSource; } /** * Specify whether or not source information should be generated. *

    * Without source information, evaluating the "toString" method * on JavaScript functions produces only "[native code]" for * the body of the function. * Note that code generated without source is not fully ECMA * conformant. * @since 1.3 */ public final void setGeneratingSource(boolean generatingSource) { if (sealed) onSealedMutation(); this.generatingSource = generatingSource; } /** * Get the current optimization level. *

    * The optimization level is expressed as an integer between -1 and * 9. * @since 1.3 * */ public final int getOptimizationLevel() { return optimizationLevel; } /** * Set the current optimization level. *

    * The optimization level is expected to be an integer between -1 and * 9. Any negative values will be interpreted as -1, and any values * greater than 9 will be interpreted as 9. * An optimization level of -1 indicates that interpretive mode will * always be used. Levels 0 through 9 indicate that class files may * be generated. Higher optimization levels trade off compile time * performance for runtime performance. * The optimizer level can't be set greater than -1 if the optimizer * package doesn't exist at run time. * @param optimizationLevel an integer indicating the level of * optimization to perform * @since 1.3 * */ public final void setOptimizationLevel(int optimizationLevel) { if (sealed) onSealedMutation(); if (optimizationLevel == -2) { // To be compatible with Cocoon fork optimizationLevel = -1; } checkOptimizationLevel(optimizationLevel); if (codegenClass == null) optimizationLevel = -1; this.optimizationLevel = optimizationLevel; } public static boolean isValidOptimizationLevel(int optimizationLevel) { return -1 <= optimizationLevel && optimizationLevel <= 9; } public static void checkOptimizationLevel(int optimizationLevel) { if (isValidOptimizationLevel(optimizationLevel)) { return; } throw new IllegalArgumentException( "Optimization level outside [-1..9]: "+optimizationLevel); } /** * Returns the maximum stack depth (in terms of number of call frames) * allowed in a single invocation of interpreter. If the set depth would be * exceeded, the interpreter will throw an EvaluatorException in the script. * Defaults to Integer.MAX_VALUE. The setting only has effect for * interpreted functions (those compiled with optimization level set to -1). * As the interpreter doesn't use the Java stack but rather manages its own * stack in the heap memory, a runaway recursion in interpreted code would * eventually consume all available memory and cause OutOfMemoryError * instead of a StackOverflowError limited to only a single thread. This * setting helps prevent such situations. * * @return The current maximum interpreter stack depth. */ public final int getMaximumInterpreterStackDepth() { return maximumInterpreterStackDepth; } /** * Sets the maximum stack depth (in terms of number of call frames) * allowed in a single invocation of interpreter. If the set depth would be * exceeded, the interpreter will throw an EvaluatorException in the script. * Defaults to Integer.MAX_VALUE. The setting only has effect for * interpreted functions (those compiled with optimization level set to -1). * As the interpreter doesn't use the Java stack but rather manages its own * stack in the heap memory, a runaway recursion in interpreted code would * eventually consume all available memory and cause OutOfMemoryError * instead of a StackOverflowError limited to only a single thread. This * setting helps prevent such situations. * * @param max the new maximum interpreter stack depth * @throws IllegalStateException if this context's optimization level is not * -1 * @throws IllegalArgumentException if the new depth is not at least 1 */ public final void setMaximumInterpreterStackDepth(int max) { if(sealed) onSealedMutation(); if(optimizationLevel != -1) { throw new IllegalStateException("Cannot set maximumInterpreterStackDepth when optimizationLevel != -1"); } if(max < 1) { throw new IllegalArgumentException("Cannot set maximumInterpreterStackDepth to less than 1"); } maximumInterpreterStackDepth = max; } /** * Set the security controller for this context. *

    SecurityController may only be set if it is currently null * and {@link SecurityController#hasGlobal()} is false. * Otherwise a SecurityException is thrown. * @param controller a SecurityController object * @throws SecurityException if there is already a SecurityController * object for this Context or globally installed. * @see SecurityController#initGlobal(SecurityController controller) * @see SecurityController#hasGlobal() */ public final void setSecurityController(SecurityController controller) { if (sealed) onSealedMutation(); if (controller == null) throw new IllegalArgumentException(); if (securityController != null) { throw new SecurityException("Can not overwrite existing SecurityController object"); } if (SecurityController.hasGlobal()) { throw new SecurityException("Can not overwrite existing global SecurityController object"); } securityController = controller; } /** * Set the LiveConnect access filter for this context. *

    {@link ClassShutter} may only be set if it is currently null. * Otherwise a SecurityException is thrown. * @param shutter a ClassShutter object * @throws SecurityException if there is already a ClassShutter * object for this Context */ public final void setClassShutter(ClassShutter shutter) { if (sealed) onSealedMutation(); if (shutter == null) throw new IllegalArgumentException(); if (classShutter != null) { throw new SecurityException("Cannot overwrite existing " + "ClassShutter object"); } classShutter = shutter; } final ClassShutter getClassShutter() { return classShutter; } /** * Get a value corresponding to a key. *

    * Since the Context is associated with a thread it can be * used to maintain values that can be later retrieved using * the current thread. *

    * Note that the values are maintained with the Context, so * if the Context is disassociated from the thread the values * cannot be retrieved. Also, if private data is to be maintained * in this manner the key should be a java.lang.Object * whose reference is not divulged to untrusted code. * @param key the key used to lookup the value * @return a value previously stored using putThreadLocal. */ public final Object getThreadLocal(Object key) { if (threadLocalMap == null) return null; return threadLocalMap.get(key); } /** * Put a value that can later be retrieved using a given key. *

    * @param key the key used to index the value * @param value the value to save */ public synchronized final void putThreadLocal(Object key, Object value) { if (sealed) onSealedMutation(); if (threadLocalMap == null) threadLocalMap = new HashMap(); threadLocalMap.put(key, value); } /** * Remove values from thread-local storage. * @param key the key for the entry to remove. * @since 1.5 release 2 */ public final void removeThreadLocal(Object key) { if (sealed) onSealedMutation(); if (threadLocalMap == null) return; threadLocalMap.remove(key); } /** * @deprecated * @see #FEATURE_DYNAMIC_SCOPE * @see #hasFeature(int) */ public final boolean hasCompileFunctionsWithDynamicScope() { return compileFunctionsWithDynamicScopeFlag; } /** * @deprecated * @see #FEATURE_DYNAMIC_SCOPE * @see #hasFeature(int) */ public final void setCompileFunctionsWithDynamicScope(boolean flag) { if (sealed) onSealedMutation(); compileFunctionsWithDynamicScopeFlag = flag; } /** * @deprecated * @see ClassCache#get(Scriptable) * @see ClassCache#setCachingEnabled(boolean) */ public static void setCachingEnabled(boolean cachingEnabled) { } /** * Set a WrapFactory for this Context. *

    * The WrapFactory allows custom object wrapping behavior for * Java object manipulated with JavaScript. * @see WrapFactory * @since 1.5 Release 4 */ public final void setWrapFactory(WrapFactory wrapFactory) { if (sealed) onSealedMutation(); if (wrapFactory == null) throw new IllegalArgumentException(); this.wrapFactory = wrapFactory; } /** * Return the current WrapFactory, or null if none is defined. * @see WrapFactory * @since 1.5 Release 4 */ public final WrapFactory getWrapFactory() { if (wrapFactory == null) { wrapFactory = new WrapFactory(); } return wrapFactory; } /** * Return the current debugger. * @return the debugger, or null if none is attached. */ public final Debugger getDebugger() { return debugger; } /** * Return the debugger context data associated with current context. * @return the debugger data, or null if debugger is not attached */ public final Object getDebuggerContextData() { return debuggerData; } /** * Set the associated debugger. * @param debugger the debugger to be used on callbacks from * the engine. * @param contextData arbitrary object that debugger can use to store * per Context data. */ public final void setDebugger(Debugger debugger, Object contextData) { if (sealed) onSealedMutation(); this.debugger = debugger; debuggerData = contextData; } /** * Return DebuggableScript instance if any associated with the script. * If callable supports DebuggableScript implementation, the method * returns it. Otherwise null is returned. */ public static DebuggableScript getDebuggableView(Script script) { if (script instanceof NativeFunction) { return ((NativeFunction)script).getDebuggableView(); } return null; } /** * Controls certain aspects of script semantics. * Should be overwritten to alter default behavior. *

    * The default implementation calls * {@link ContextFactory#hasFeature(Context cx, int featureIndex)} * that allows to customize Context behavior without introducing * Context subclasses. {@link ContextFactory} documentation gives * an example of hasFeature implementation. * * @param featureIndex feature index to check * @return true if the featureIndex feature is turned on * @see #FEATURE_NON_ECMA_GET_YEAR * @see #FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME * @see #FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER * @see #FEATURE_TO_STRING_AS_SOURCE * @see #FEATURE_PARENT_PROTO_PROPRTIES * @see #FEATURE_E4X * @see #FEATURE_DYNAMIC_SCOPE * @see #FEATURE_STRICT_VARS * @see #FEATURE_STRICT_EVAL * @see #FEATURE_LOCATION_INFORMATION_IN_ERROR * @see #FEATURE_STRICT_MODE * @see #FEATURE_WARNING_AS_ERROR * @see #FEATURE_ENHANCED_JAVA_ACCESS */ public boolean hasFeature(int featureIndex) { ContextFactory f = getFactory(); return f.hasFeature(this, featureIndex); } /** Returns an object which specifies an E4X implementation to use within this Context. Note that the XMLLib.Factory interface should be considered experimental. The default implementation uses the implementation provided by this Context's {@link ContextFactory}. @return An XMLLib.Factory. Should not return null if {@link #FEATURE_E4X} is enabled. See {@link #hasFeature}. */ public XMLLib.Factory getE4xImplementationFactory() { return getFactory().getE4xImplementationFactory(); } /** * Get threshold of executed instructions counter that triggers call to * observeInstructionCount(). * When the threshold is zero, instruction counting is disabled, * otherwise each time the run-time executes at least the threshold value * of script instructions, observeInstructionCount() will * be called. */ public final int getInstructionObserverThreshold() { return instructionThreshold; } /** * Set threshold of executed instructions counter that triggers call to * observeInstructionCount(). * When the threshold is zero, instruction counting is disabled, * otherwise each time the run-time executes at least the threshold value * of script instructions, observeInstructionCount() will * be called.

    * Note that the meaning of "instruction" is not guaranteed to be * consistent between compiled and interpretive modes: executing a given * script or function in the different modes will result in different * instruction counts against the threshold. * {@link #setGenerateObserverCount} is called with true if * threshold is greater than zero, false otherwise. * @param threshold The instruction threshold */ public final void setInstructionObserverThreshold(int threshold) { if (sealed) onSealedMutation(); if (threshold < 0) throw new IllegalArgumentException(); instructionThreshold = threshold; setGenerateObserverCount(threshold > 0); } /** * Turn on or off generation of code with callbacks to * track the count of executed instructions. * Currently only affects JVM byte code generation: this slows down the * generated code, but code generated without the callbacks will not * be counted toward instruction thresholds. Rhino's interpretive * mode does instruction counting without inserting callbacks, so * there is no requirement to compile code differently. * @param generateObserverCount if true, generated code will contain * calls to accumulate an estimate of the instructions executed. */ public void setGenerateObserverCount(boolean generateObserverCount) { this.generateObserverCount = generateObserverCount; } /** * Allow application to monitor counter of executed script instructions * in Context subclasses. * Run-time calls this when instruction counting is enabled and the counter * reaches limit set by setInstructionObserverThreshold(). * The method is useful to observe long running scripts and if necessary * to terminate them. *

    * The default implementation calls * {@link ContextFactory#observeInstructionCount(Context cx, * int instructionCount)} * that allows to customize Context behavior without introducing * Context subclasses. * * @param instructionCount amount of script instruction executed since * last call to observeInstructionCount * @throws Error to terminate the script * @see #setOptimizationLevel(int) */ protected void observeInstructionCount(int instructionCount) { ContextFactory f = getFactory(); f.observeInstructionCount(this, instructionCount); } /** * Create class loader for generated classes. * The method calls {@link ContextFactory#createClassLoader(ClassLoader)} * using the result of {@link #getFactory()}. */ public GeneratedClassLoader createClassLoader(ClassLoader parent) { ContextFactory f = getFactory(); return f.createClassLoader(parent); } public final ClassLoader getApplicationClassLoader() { if (applicationClassLoader == null) { ContextFactory f = getFactory(); ClassLoader loader = f.getApplicationClassLoader(); if (loader == null) { ClassLoader threadLoader = VMBridge.instance.getCurrentThreadClassLoader(); if (threadLoader != null && Kit.testIfCanLoadRhinoClasses(threadLoader)) { // Thread.getContextClassLoader is not cached since // its caching prevents it from GC which may lead to // a memory leak and hides updates to // Thread.getContextClassLoader return threadLoader; } // Thread.getContextClassLoader can not load Rhino classes, // try to use the loader of ContextFactory or Context // subclasses. Class fClass = f.getClass(); if (fClass != ScriptRuntime.ContextFactoryClass) { loader = fClass.getClassLoader(); } else { loader = getClass().getClassLoader(); } } applicationClassLoader = loader; } return applicationClassLoader; } public final void setApplicationClassLoader(ClassLoader loader) { if (sealed) onSealedMutation(); if (loader == null) { // restore default behaviour applicationClassLoader = null; return; } if (!Kit.testIfCanLoadRhinoClasses(loader)) { throw new IllegalArgumentException( "Loader can not resolve Rhino classes"); } applicationClassLoader = loader; } /********** end of API **********/ /** * Internal method that reports an error for missing calls to * enter(). */ static Context getContext() { Context cx = getCurrentContext(); if (cx == null) { throw new RuntimeException( "No Context associated with current Thread"); } return cx; } private Object compileImpl(Scriptable scope, Reader sourceReader, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction, Evaluator compiler, ErrorReporter compilationErrorReporter) throws IOException { if(sourceName == null) { sourceName = "unnamed script"; } if (securityDomain != null && getSecurityController() == null) { throw new IllegalArgumentException( "securityDomain should be null if setSecurityController() was never called"); } // One of sourceReader or sourceString has to be null if (!(sourceReader == null ^ sourceString == null)) Kit.codeBug(); // scope should be given if and only if compiling function if (!(scope == null ^ returnFunction)) Kit.codeBug(); CompilerEnvirons compilerEnv = new CompilerEnvirons(); compilerEnv.initFromContext(this); if (compilationErrorReporter == null) { compilationErrorReporter = compilerEnv.getErrorReporter(); } if (debugger != null) { if (sourceReader != null) { sourceString = Kit.readReader(sourceReader); sourceReader = null; } } Parser p = new Parser(compilerEnv, compilationErrorReporter); if (returnFunction) { p.calledByCompileFunction = true; } ScriptOrFnNode tree; if (sourceString != null) { tree = p.parse(sourceString, sourceName, lineno); } else { tree = p.parse(sourceReader, sourceName, lineno); } if (returnFunction) { if (!(tree.getFunctionCount() == 1 && tree.getFirstChild() != null && tree.getFirstChild().getType() == Token.FUNCTION)) { // XXX: the check just look for the first child // and allows for more nodes after it for compatibility // with sources like function() {};;; throw new IllegalArgumentException( "compileFunction only accepts source with single JS function: "+sourceString); } } if (compiler == null) { compiler = createCompiler(); } String encodedSource = p.getEncodedSource(); Object bytecode = compiler.compile(compilerEnv, tree, encodedSource, returnFunction); if (debugger != null) { if (sourceString == null) Kit.codeBug(); if (bytecode instanceof DebuggableScript) { DebuggableScript dscript = (DebuggableScript)bytecode; notifyDebugger_r(this, dscript, sourceString); } else { throw new RuntimeException("NOT SUPPORTED"); } } Object result; if (returnFunction) { result = compiler.createFunctionObject(this, scope, bytecode, securityDomain); } else { result = compiler.createScriptObject(bytecode, securityDomain); } return result; } private static void notifyDebugger_r(Context cx, DebuggableScript dscript, String debugSource) { cx.debugger.handleCompilationDone(cx, dscript, debugSource); for (int i = 0; i != dscript.getFunctionCount(); ++i) { notifyDebugger_r(cx, dscript.getFunction(i), debugSource); } } private static Class codegenClass = Kit.classOrNull( "org.mozilla.javascript.optimizer.Codegen"); private static Class interpreterClass = Kit.classOrNull( "org.mozilla.javascript.Interpreter"); private Evaluator createCompiler() { Evaluator result = null; if (optimizationLevel >= 0 && codegenClass != null) { result = (Evaluator)Kit.newInstanceOrNull(codegenClass); } if (result == null) { result = createInterpreter(); } return result; } static Evaluator createInterpreter() { return (Evaluator)Kit.newInstanceOrNull(interpreterClass); } static String getSourcePositionFromStack(int[] linep) { Context cx = getCurrentContext(); if (cx == null) return null; if (cx.lastInterpreterFrame != null) { Evaluator evaluator = createInterpreter(); if (evaluator != null) return evaluator.getSourcePositionFromStack(cx, linep); } /** * A bit of a hack, but the only way to get filename and line * number from an enclosing frame. */ CharArrayWriter writer = new CharArrayWriter(); RuntimeException re = new RuntimeException(); re.printStackTrace(new PrintWriter(writer)); String s = writer.toString(); int open = -1; int close = -1; int colon = -1; for (int i=0; i < s.length(); i++) { char c = s.charAt(i); if (c == ':') colon = i; else if (c == '(') open = i; else if (c == ')') close = i; else if (c == '\n' && open != -1 && close != -1 && colon != -1 && open < colon && colon < close) { String fileStr = s.substring(open + 1, colon); if (!fileStr.endsWith(".java")) { String lineStr = s.substring(colon + 1, close); try { linep[0] = Integer.parseInt(lineStr); if (linep[0] < 0) { linep[0] = 0; } return fileStr; } catch (NumberFormatException e) { // fall through } } open = close = colon = -1; } } return null; } RegExpProxy getRegExpProxy() { if (regExpProxy == null) { Class cl = Kit.classOrNull( "org.mozilla.javascript.regexp.RegExpImpl"); if (cl != null) { regExpProxy = (RegExpProxy)Kit.newInstanceOrNull(cl); } } return regExpProxy; } final boolean isVersionECMA1() { return version == VERSION_DEFAULT || version >= VERSION_1_3; } // The method must NOT be public or protected SecurityController getSecurityController() { SecurityController global = SecurityController.global(); if (global != null) { return global; } return securityController; } public final boolean isGeneratingDebugChanged() { return generatingDebugChanged; } /** * Add a name to the list of names forcing the creation of real * activation objects for functions. * * @param name the name of the object to add to the list */ public void addActivationName(String name) { if (sealed) onSealedMutation(); if (activationNames == null) activationNames = new HashSet(); activationNames.add(name); } /** * Check whether the name is in the list of names of objects * forcing the creation of activation objects. * * @param name the name of the object to test * * @return true if an function activation object is needed. */ public final boolean isActivationNeeded(String name) { return activationNames != null && activationNames.contains(name); } /** * Remove a name from the list of names forcing the creation of real * activation objects for functions. * * @param name the name of the object to remove from the list */ public void removeActivationName(String name) { if (sealed) onSealedMutation(); if (activationNames != null) activationNames.remove(name); } private static String implementationVersion; private final ContextFactory factory; private boolean sealed; private Object sealKey; Scriptable topCallScope; boolean isContinuationsTopCall; NativeCall currentActivationCall; XMLLib cachedXMLLib; // for Objects, Arrays to tag themselves as being printed out, // so they don't print themselves out recursively. // Use ObjToIntMap instead of java.util.HashSet for JDK 1.1 compatibility ObjToIntMap iterating; Object interpreterSecurityDomain; int version; private SecurityController securityController; private ClassShutter classShutter; private ErrorReporter errorReporter; RegExpProxy regExpProxy; private Locale locale; private boolean generatingDebug; private boolean generatingDebugChanged; private boolean generatingSource=true; boolean compileFunctionsWithDynamicScopeFlag; boolean useDynamicScope; private int optimizationLevel; private int maximumInterpreterStackDepth; private WrapFactory wrapFactory; Debugger debugger; private Object debuggerData; private int enterCount; private Object propertyListeners; private Map threadLocalMap; private ClassLoader applicationClassLoader; /** * This is the list of names of objects forcing the creation of * function activation records. */ Set activationNames; // For the interpreter to store the last frame for error reports etc. Object lastInterpreterFrame; // For the interpreter to store information about previous invocations // interpreter invocations ObjArray previousInterpreterInvocations; // For instruction counting (interpreter only) int instructionCount; int instructionThreshold; // It can be used to return the second index-like result from function int scratchIndex; // It can be used to return the second uint32 result from function long scratchUint32; // It can be used to return the second Scriptable result from function Scriptable scratchScriptable; // Generate an observer count on compiled code public boolean generateObserverCount = false; private boolean actionScript=false; public void setActionScript(boolean actionScript) { this.actionScript=actionScript; } public boolean isActionScript() { return actionScript; } } carmetal-4.3/src/org/mozilla/javascript/ContextAction.java000066400000000000000000000042021417122252700237710ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov, igor@fastmail.fm * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * Interface to represent arbitrary action that requires to have Context * object associated with the current thread for its execution. */ public interface ContextAction { /** * Execute action using the supplied Context instance. * When Rhino runtime calls the method, cx will be associated * with the current thread as active context. * * @see ContextFactory#call(ContextAction) */ public Object run(Context cx); } carmetal-4.3/src/org/mozilla/javascript/ContextFactory.java000066400000000000000000000471721417122252700242000ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov, igor@fastmail.fm * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * Factory class that Rhino runtime uses to create new {@link Context} * instances. A ContextFactory can also notify listeners * about context creation and release. *

    * When the Rhino runtime needs to create new {@link Context} instance during * execution of {@link Context#enter()} or {@link Context}, it will call * {@link #makeContext()} of the current global ContextFactory. * See {@link #getGlobal()} and {@link #initGlobal(ContextFactory)}. *

    * It is also possible to use explicit ContextFactory instances for Context * creation. This is useful to have a set of independent Rhino runtime * instances under single JVM. See {@link #call(ContextAction)}. *

    * The following example demonstrates Context customization to terminate * scripts running more then 10 seconds and to provide better compatibility * with JavaScript code using MSIE-specific features. *

     * import org.mozilla.javascript.*;
     *
     * class MyFactory extends ContextFactory
     * {
     *
     *     // Custom {@link Context} to store execution time.
     *     private static class MyContext extends Context
     *     {
     *         long startTime;
     *     }
     *
     *     static {
     *         // Initialize GlobalFactory with custom factory
     *         ContextFactory.initGlobal(new MyFactory());
     *     }
     *
     *     // Override {@link #makeContext()}
     *     protected Context makeContext()
     *     {
     *         MyContext cx = new MyContext();
     *         // Make Rhino runtime to call observeInstructionCount
     *         // each 10000 bytecode instructions
     *         cx.setInstructionObserverThreshold(10000);
     *         return cx;
     *     }
     *
     *     // Override {@link #hasFeature(Context, int)}
     *     public boolean hasFeature(Context cx, int featureIndex)
     *     {
     *         // Turn on maximum compatibility with MSIE scripts
     *         switch (featureIndex) {
     *             case {@link Context#FEATURE_NON_ECMA_GET_YEAR}:
     *                 return true;
     *
     *             case {@link Context#FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME}:
     *                 return true;
     *
     *             case {@link Context#FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER}:
     *                 return true;
     *
     *             case {@link Context#FEATURE_PARENT_PROTO_PROPERTIES}:
     *                 return false;
     *         }
     *         return super.hasFeature(cx, featureIndex);
     *     }
     *
     *     // Override {@link #observeInstructionCount(Context, int)}
     *     protected void observeInstructionCount(Context cx, int instructionCount)
     *     {
     *         MyContext mcx = (MyContext)cx;
     *         long currentTime = System.currentTimeMillis();
     *         if (currentTime - mcx.startTime > 10*1000) {
     *             // More then 10 seconds from Context creation time:
     *             // it is time to stop the script.
     *             // Throw Error instance to ensure that script will never
     *             // get control back through catch or finally.
     *             throw new Error();
     *         }
     *     }
     *
     *     // Override {@link #doTopCall(Callable,
                                   Context, Scriptable,
                                   Scriptable, Object[])}
     *     protected Object doTopCall(Callable callable,
     *                                Context cx, Scriptable scope,
     *                                Scriptable thisObj, Object[] args)
     *     {
     *         MyContext mcx = (MyContext)cx;
     *         mcx.startTime = System.currentTimeMillis();
     *
     *         return super.doTopCall(callable, cx, scope, thisObj, args);
     *     }
     *
     * }
     *
     * 
    */ public class ContextFactory { private static volatile boolean hasCustomGlobal; private static ContextFactory global = new ContextFactory(); private volatile boolean sealed; private final Object listenersLock = new Object(); private volatile Object listeners; private boolean disabledListening; private ClassLoader applicationClassLoader; /** * Listener of {@link Context} creation and release events. */ public interface Listener { /** * Notify about newly created {@link Context} object. */ public void contextCreated(Context cx); /** * Notify that the specified {@link Context} instance is no longer * associated with the current thread. */ public void contextReleased(Context cx); } /** * Get global ContextFactory. * * @see #hasExplicitGlobal() * @see #initGlobal(ContextFactory) */ public static ContextFactory getGlobal() { return global; } /** * Check if global factory was set. * Return true to indicate that {@link #initGlobal(ContextFactory)} was * already called and false to indicate that the global factory was not * explicitly set. * * @see #getGlobal() * @see #initGlobal(ContextFactory) */ public static boolean hasExplicitGlobal() { return hasCustomGlobal; } /** * Set global ContextFactory. * The method can only be called once. * * @see #getGlobal() * @see #hasExplicitGlobal() */ public synchronized static void initGlobal(ContextFactory factory) { if (factory == null) { throw new IllegalArgumentException(); } if (hasCustomGlobal) { throw new IllegalStateException(); } hasCustomGlobal = true; global = factory; } /** * Create new {@link Context} instance to be associated with the current * thread. * This is a callback method used by Rhino to create {@link Context} * instance when it is necessary to associate one with the current * execution thread. makeContext() is allowed to call * {@link Context#seal(Object)} on the result to prevent * {@link Context} changes by hostile scripts or applets. */ protected Context makeContext() { return new Context(this); } /** * Implementation of {@link Context#hasFeature(int featureIndex)}. * This can be used to customize {@link Context} without introducing * additional subclasses. */ protected boolean hasFeature(Context cx, int featureIndex) { int version; switch (featureIndex) { case Context.FEATURE_NON_ECMA_GET_YEAR: /* * During the great date rewrite of 1.3, we tried to track the * evolving ECMA standard, which then had a definition of * getYear which always subtracted 1900. Which we * implemented, not realizing that it was incompatible with * the old behavior... now, rather than thrash the behavior * yet again, we've decided to leave it with the - 1900 * behavior and point people to the getFullYear method. But * we try to protect existing scripts that have specified a * version... */ version = cx.getLanguageVersion(); return (version == Context.VERSION_1_0 || version == Context.VERSION_1_1 || version == Context.VERSION_1_2); case Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME: return false; case Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER: return false; case Context.FEATURE_TO_STRING_AS_SOURCE: version = cx.getLanguageVersion(); return version == Context.VERSION_1_2; case Context.FEATURE_PARENT_PROTO_PROPERTIES: return true; case Context.FEATURE_E4X: version = cx.getLanguageVersion(); return (version == Context.VERSION_DEFAULT || version >= Context.VERSION_1_6); case Context.FEATURE_DYNAMIC_SCOPE: return false; case Context.FEATURE_STRICT_VARS: return false; case Context.FEATURE_STRICT_EVAL: return false; case Context.FEATURE_LOCATION_INFORMATION_IN_ERROR: return false; case Context.FEATURE_STRICT_MODE: return false; case Context.FEATURE_WARNING_AS_ERROR: return false; case Context.FEATURE_ENHANCED_JAVA_ACCESS: return false; } // It is a bug to call the method with unknown featureIndex throw new IllegalArgumentException(String.valueOf(featureIndex)); } private boolean isDom3Present() { Class nodeClass = Kit.classOrNull("org.w3c.dom.Node"); if (nodeClass == null) return false; // Check to see whether DOM3 is present; use a new method defined in // DOM3 that is vital to our implementation try { nodeClass.getMethod("getUserData", new Class[] { String.class }); return true; } catch (NoSuchMethodException e) { return false; } } /** * Provides a default * {@link org.mozilla.javascript.xml.XMLLib.Factory XMLLib.Factory} * to be used by the Context instances produced by this * factory. See {@link Context#getE4xImplementationFactory} for details. * * May return null, in which case E4X functionality is not supported in * Rhino. * * The default implementation now prefers the DOM3 E4X implementation. */ protected org.mozilla.javascript.xml.XMLLib.Factory getE4xImplementationFactory() { // Must provide default implementation, rather than abstract method, // so that past implementors of ContextFactory do not fail at runtime // upon invocation of this method. // Note that the default implementation returns null if we // neither have XMLBeans nor a DOM3 implementation present. if (isDom3Present()) { return org.mozilla.javascript.xml.XMLLib.Factory.create( "org.mozilla.javascript.xmlimpl.XMLLibImpl" ); } else if (Kit.classOrNull("org.apache.xmlbeans.XmlCursor") != null) { return org.mozilla.javascript.xml.XMLLib.Factory.create( "org.mozilla.javascript.xml.impl.xmlbeans.XMLLibImpl" ); } else { return null; } } /** * Create class loader for generated classes. * This method creates an instance of the default implementation * of {@link GeneratedClassLoader}. Rhino uses this interface to load * generated JVM classes when no {@link SecurityController} * is installed. * Application can override the method to provide custom class loading. */ protected GeneratedClassLoader createClassLoader(ClassLoader parent) { return new DefiningClassLoader(parent); } /** * Get ClassLoader to use when searching for Java classes. * Unless it was explicitly initialized with * {@link #initApplicationClassLoader(ClassLoader)} the method returns * null to indicate that Thread.getContextClassLoader() should be used. */ public final ClassLoader getApplicationClassLoader() { return applicationClassLoader; } /** * Set explicit class loader to use when searching for Java classes. * * @see #getApplicationClassLoader() */ public final void initApplicationClassLoader(ClassLoader loader) { if (loader == null) throw new IllegalArgumentException("loader is null"); if (!Kit.testIfCanLoadRhinoClasses(loader)) throw new IllegalArgumentException( "Loader can not resolve Rhino classes"); if (this.applicationClassLoader != null) throw new IllegalStateException( "applicationClassLoader can only be set once"); checkNotSealed(); this.applicationClassLoader = loader; } /** * Execute top call to script or function. * When the runtime is about to execute a script or function that will * create the first stack frame with scriptable code, it calls this method * to perform the real call. In this way execution of any script * happens inside this function. */ protected Object doTopCall(Callable callable, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return callable.call(cx, scope, thisObj, args); } /** * Implementation of * {@link Context#observeInstructionCount(int instructionCount)}. * This can be used to customize {@link Context} without introducing * additional subclasses. */ protected void observeInstructionCount(Context cx, int instructionCount) { } protected void onContextCreated(Context cx) { Object listeners = this.listeners; for (int i = 0; ; ++i) { Listener l = (Listener)Kit.getListener(listeners, i); if (l == null) break; l.contextCreated(cx); } } protected void onContextReleased(Context cx) { Object listeners = this.listeners; for (int i = 0; ; ++i) { Listener l = (Listener)Kit.getListener(listeners, i); if (l == null) break; l.contextReleased(cx); } } public final void addListener(Listener listener) { checkNotSealed(); synchronized (listenersLock) { if (disabledListening) { throw new IllegalStateException(); } listeners = Kit.addListener(listeners, listener); } } public final void removeListener(Listener listener) { checkNotSealed(); synchronized (listenersLock) { if (disabledListening) { throw new IllegalStateException(); } listeners = Kit.removeListener(listeners, listener); } } /** * The method is used only to implement * Context.disableStaticContextListening() */ final void disableContextListening() { checkNotSealed(); synchronized (listenersLock) { disabledListening = true; listeners = null; } } /** * Checks if this is a sealed ContextFactory. * @see #seal() */ public final boolean isSealed() { return sealed; } /** * Seal this ContextFactory so any attempt to modify it like to add or * remove its listeners will throw an exception. * @see #isSealed() */ public final void seal() { checkNotSealed(); sealed = true; } protected final void checkNotSealed() { if (sealed) throw new IllegalStateException(); } /** * Call {@link ContextAction#run(Context cx)} * using the {@link Context} instance associated with the current thread. * If no Context is associated with the thread, then * {@link #makeContext()} will be called to construct * new Context instance. The instance will be temporary associated * with the thread during call to {@link ContextAction#run(Context)}. * * @see ContextFactory#call(ContextAction) * @see Context#call(ContextFactory factory, Callable callable, * Scriptable scope, Scriptable thisObj, * Object[] args) */ public final Object call(ContextAction action) { return Context.call(this, action); } /** * Get a context associated with the current thread, creating one if need * be. The Context stores the execution state of the JavaScript engine, so * it is required that the context be entered before execution may begin. * Once a thread has entered a Context, then getCurrentContext() may be * called to find the context that is associated with the current thread. *

    * Calling enterContext() will return either the Context * currently associated with the thread, or will create a new context and * associate it with the current thread. Each call to * enterContext() must have a matching call to * {@link Context#exit()}. *

         *      Context cx = contextFactory.enterContext();
         *      try {
         *          ...
         *          cx.evaluateString(...);
         *      } finally {
         *          Context.exit();
         *      }
         * 
    * Instead of using enterContext(), exit() pair consider * using {@link #call(ContextAction)} which guarantees proper association * of Context instances with the current thread. * With this method the above example becomes: *
         *      ContextFactory.call(new ContextAction() {
         *          public Object run(Context cx) {
         *              ...
         *              cx.evaluateString(...);
         *              return null;
         *          }
         *      });
         * 
    * @return a Context associated with the current thread * @see Context#getCurrentContext() * @see Context#exit() * @see #call(ContextAction) */ public Context enterContext() { return enterContext(null); } /** * @deprecated use {@link #enterContext()} instead * @return a Context associated with the current thread */ public final Context enter() { return enterContext(null); } /** * @deprecated Use {@link Context#exit()} instead. */ public final void exit() { Context.exit(); } /** * Get a Context associated with the current thread, using the given * Context if need be. *

    * The same as enterContext() except that cx * is associated with the current thread and returned if the current thread * has no associated context and cx is not associated with any * other thread. * @param cx a Context to associate with the thread if possible * @return a Context associated with the current thread * @see #enterContext() * @see #call(ContextAction) * @throws IllegalStateException if cx is already associated * with a different thread */ public final Context enterContext(Context cx) { return Context.enter(cx, this); } }carmetal-4.3/src/org/mozilla/javascript/ContextListener.java000066400000000000000000000041421417122252700243440ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * @deprecated Embeddings that wish to customize newly created * {@link Context} instances should implement * {@link ContextFactory.Listener}. */ public interface ContextListener extends ContextFactory.Listener { /** * @deprecated Rhino runtime never calls the method. */ public void contextEntered(Context cx); /** * @deprecated Rhino runtime never calls the method. */ public void contextExited(Context cx); } carmetal-4.3/src/org/mozilla/javascript/ContinuationPending.java000066400000000000000000000075401417122252700251760ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * Exception thrown by * {@link org.mozilla.javascript.Context#executeScriptWithContinuations(Script, Scriptable)} * and {@link org.mozilla.javascript.Context#callFunctionWithContinuations(Callable, Scriptable, Object[])} * when execution encounters a continuation captured by * {@link org.mozilla.javascript.Context#captureContinuation()}. * Exception will contain the captured state needed to restart the continuation * with {@link org.mozilla.javascript.Context#resumeContinuation(Object, Scriptable, Object)}. * @author Norris Boyd */ public class ContinuationPending extends RuntimeException { private static final long serialVersionUID = 4956008116771118856L; private NativeContinuation continuationState; private Object applicationState; /** * Construct a ContinuationPending exception. Internal call only; * users of the API should get continuations created on their behalf by * calling {@link org.mozilla.javascript.Context#executeScriptWithContinuations(Script, Scriptable)} * and {@link org.mozilla.javascript.Context#callFunctionWithContinuations(Callable, Scriptable, Object[])} * @param continuationState Internal Continuation object */ ContinuationPending(NativeContinuation continuationState) { this.continuationState = continuationState; } /** * Get continuation object. The only * use for this object is to be passed to * {@link org.mozilla.javascript.Context#resumeContinuation(Object, Scriptable, Object)}. * @return continuation object */ public Object getContinuation() { return continuationState; } /** * @return internal continuation state */ NativeContinuation getContinuationState() { return continuationState; } /** * Store an arbitrary object that applications can use to associate * their state with the continuation. * @param applicationState arbitrary application state */ public void setApplicationState(Object applicationState) { this.applicationState = applicationState; } /** * @return arbitrary application state */ public Object getApplicationState() { return applicationState; } } carmetal-4.3/src/org/mozilla/javascript/DToA.java000066400000000000000000001335421417122252700220100ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Waldemar Horwat * Roger Lawrence * Attila Szegedi * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ /**************************************************************** * * The author of this software is David M. Gay. * * Copyright (c) 1991, 2000, 2001 by Lucent Technologies. * * Permission to use, copy, modify, and distribute this software for any * purpose without fee is hereby granted, provided that this entire notice * is included in all copies of any software which is or includes a copy * or modification of this software and in all copies of the supporting * documentation for such software. * * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED * WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. * ***************************************************************/ package org.mozilla.javascript; import java.math.BigInteger; class DToA { /* "-0.0000...(1073 zeros after decimal point)...0001\0" is the longest string that we could produce, * which occurs when printing -5e-324 in binary. We could compute a better estimate of the size of * the output string and malloc fewer bytes depending on d and base, but why bother? */ private static final int DTOBASESTR_BUFFER_SIZE = 1078; private static char BASEDIGIT(int digit) { return (char)((digit >= 10) ? 'a' - 10 + digit : '0' + digit); } static final int DTOSTR_STANDARD = 0, /* Either fixed or exponential format; round-trip */ DTOSTR_STANDARD_EXPONENTIAL = 1, /* Always exponential format; round-trip */ DTOSTR_FIXED = 2, /* Round to digits after the decimal point; exponential if number is large */ DTOSTR_EXPONENTIAL = 3, /* Always exponential format; significant digits */ DTOSTR_PRECISION = 4; /* Either fixed or exponential format; significant digits */ private static final int Frac_mask = 0xfffff; private static final int Exp_shift = 20; private static final int Exp_msk1 = 0x100000; private static final long Frac_maskL = 0xfffffffffffffL; private static final int Exp_shiftL = 52; private static final long Exp_msk1L = 0x10000000000000L; private static final int Bias = 1023; private static final int P = 53; private static final int Exp_shift1 = 20; private static final int Exp_mask = 0x7ff00000; private static final int Exp_mask_shifted = 0x7ff; private static final int Bndry_mask = 0xfffff; private static final int Log2P = 1; private static final int Sign_bit = 0x80000000; private static final int Exp_11 = 0x3ff00000; private static final int Ten_pmax = 22; private static final int Quick_max = 14; private static final int Bletch = 0x10; private static final int Frac_mask1 = 0xfffff; private static final int Int_max = 14; private static final int n_bigtens = 5; private static final double tens[] = { 1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22 }; private static final double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 }; private static int lo0bits(int y) { int k; int x = y; if ((x & 7) != 0) { if ((x & 1) != 0) return 0; if ((x & 2) != 0) { return 1; } return 2; } k = 0; if ((x & 0xffff) == 0) { k = 16; x >>>= 16; } if ((x & 0xff) == 0) { k += 8; x >>>= 8; } if ((x & 0xf) == 0) { k += 4; x >>>= 4; } if ((x & 0x3) == 0) { k += 2; x >>>= 2; } if ((x & 1) == 0) { k++; x >>>= 1; if ((x & 1) == 0) return 32; } return k; } /* Return the number (0 through 32) of most significant zero bits in x. */ private static int hi0bits(int x) { int k = 0; if ((x & 0xffff0000) == 0) { k = 16; x <<= 16; } if ((x & 0xff000000) == 0) { k += 8; x <<= 8; } if ((x & 0xf0000000) == 0) { k += 4; x <<= 4; } if ((x & 0xc0000000) == 0) { k += 2; x <<= 2; } if ((x & 0x80000000) == 0) { k++; if ((x & 0x40000000) == 0) return 32; } return k; } private static void stuffBits(byte bits[], int offset, int val) { bits[offset] = (byte)(val >> 24); bits[offset + 1] = (byte)(val >> 16); bits[offset + 2] = (byte)(val >> 8); bits[offset + 3] = (byte)(val); } /* Convert d into the form b*2^e, where b is an odd integer. b is the returned * Bigint and e is the returned binary exponent. Return the number of significant * bits in b in bits. d must be finite and nonzero. */ private static BigInteger d2b(double d, int[] e, int[] bits) { byte dbl_bits[]; int i, k, y, z, de; long dBits = Double.doubleToLongBits(d); int d0 = (int)(dBits >>> 32); int d1 = (int)(dBits); z = d0 & Frac_mask; d0 &= 0x7fffffff; /* clear sign bit, which we ignore */ if ((de = (d0 >>> Exp_shift)) != 0) z |= Exp_msk1; if ((y = d1) != 0) { dbl_bits = new byte[8]; k = lo0bits(y); y >>>= k; if (k != 0) { stuffBits(dbl_bits, 4, y | z << (32 - k)); z >>= k; } else stuffBits(dbl_bits, 4, y); stuffBits(dbl_bits, 0, z); i = (z != 0) ? 2 : 1; } else { // JS_ASSERT(z); dbl_bits = new byte[4]; k = lo0bits(z); z >>>= k; stuffBits(dbl_bits, 0, z); k += 32; i = 1; } if (de != 0) { e[0] = de - Bias - (P-1) + k; bits[0] = P - k; } else { e[0] = de - Bias - (P-1) + 1 + k; bits[0] = 32*i - hi0bits(z); } return new BigInteger(dbl_bits); } static String JS_dtobasestr(int base, double d) { if (!(2 <= base && base <= 36)) throw new IllegalArgumentException("Bad base: "+base); /* Check for Infinity and NaN */ if (Double.isNaN(d)) { return "NaN"; } else if (Double.isInfinite(d)) { return (d > 0.0) ? "Infinity" : "-Infinity"; } else if (d == 0) { // ALERT: should it distinguish -0.0 from +0.0 ? return "0"; } boolean negative; if (d >= 0.0) { negative = false; } else { negative = true; d = -d; } /* Get the integer part of d including '-' sign. */ String intDigits; double dfloor = Math.floor(d); long lfloor = (long)dfloor; if (lfloor == dfloor) { // int part fits long intDigits = Long.toString((negative) ? -lfloor : lfloor, base); } else { // BigInteger should be used long floorBits = Double.doubleToLongBits(dfloor); int exp = (int)(floorBits >> Exp_shiftL) & Exp_mask_shifted; long mantissa; if (exp == 0) { mantissa = (floorBits & Frac_maskL) << 1; } else { mantissa = (floorBits & Frac_maskL) | Exp_msk1L; } if (negative) { mantissa = -mantissa; } exp -= 1075; BigInteger x = BigInteger.valueOf(mantissa); if (exp > 0) { x = x.shiftLeft(exp); } else if (exp < 0) { x = x.shiftRight(-exp); } intDigits = x.toString(base); } if (d == dfloor) { // No fraction part return intDigits; } else { /* We have a fraction. */ char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int digit; double df; /* The fractional part of d */ BigInteger b; buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; df = d - dfloor; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int[] e = new int[1]; int[] bbits = new int[1]; b = d2b(df, e, bbits); // JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */ // JS_ASSERT(-s2 < e); BigInteger mlo = BigInteger.valueOf(1); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; mhi = BigInteger.valueOf(1< df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ BigInteger bigBase = BigInteger.valueOf(base); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; } // JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); StringBuffer sb = new StringBuffer(intDigits.length() + 1 + p); sb.append(intDigits); sb.append('.'); sb.append(buffer, 0, p); return sb.toString(); } } /* dtoa for IEEE arithmetic (dmg): convert double to ASCII string. * * Inspired by "How to Print Floating-Point Numbers Accurately" by * Guy L. Steele, Jr. and Jon L. White [Proc. ACM SIGPLAN '90, pp. 92-101]. * * Modifications: * 1. Rather than iterating, we use a simple numeric overestimate * to determine k = floor(log10(d)). We scale relevant * quantities using O(log2(k)) rather than O(k) multiplications. * 2. For some modes > 2 (corresponding to ecvt and fcvt), we don't * try to generate digits strictly left to right. Instead, we * compute with fewer bits and propagate the carry if necessary * when rounding the final digit up. This is often faster. * 3. Under the assumption that input will be rounded nearest, * mode 0 renders 1e23 as 1e23 rather than 9.999999999999999e22. * That is, we allow equality in stopping tests when the * round-nearest rule will give the same floating-point value * as would satisfaction of the stopping test with strict * inequality. * 4. We remove common factors of powers of 2 from relevant * quantities. * 5. When converting floating-point integers less than 1e16, * we use floating-point arithmetic rather than resorting * to multiple-precision integers. * 6. When asked to produce fewer than 15 digits, we first try * to get by with floating-point arithmetic; we resort to * multiple-precision integer arithmetic only if we cannot * guarantee that the floating-point calculation has given * the correctly rounded result. For k requested digits and * "uniformly" distributed input, the probability is * something like 10^(k-15) that we must resort to the Long * calculation. */ static int word0(double d) { long dBits = Double.doubleToLongBits(d); return (int)(dBits >> 32); } static double setWord0(double d, int i) { long dBits = Double.doubleToLongBits(d); dBits = ((long)i << 32) | (dBits & 0x0FFFFFFFFL); return Double.longBitsToDouble(dBits); } static int word1(double d) { long dBits = Double.doubleToLongBits(d); return (int)(dBits); } /* Return b * 5^k. k must be nonnegative. */ // XXXX the C version built a cache of these static BigInteger pow5mult(BigInteger b, int k) { return b.multiply(BigInteger.valueOf(5).pow(k)); } static boolean roundOff(StringBuffer buf) { int i = buf.length(); while (i != 0) { --i; char c = buf.charAt(i); if (c != '9') { buf.setCharAt(i, (char)(c + 1)); buf.setLength(i + 1); return false; } } buf.setLength(0); return true; } /* Always emits at least one digit. */ /* If biasUp is set, then rounding in modes 2 and 3 will round away from zero * when the number is exactly halfway between two representable values. For example, * rounding 2.5 to zero digits after the decimal point will return 3 and not 2. * 2.49 will still round to 2, and 2.51 will still round to 3. */ /* bufsize should be at least 20 for modes 0 and 1. For the other modes, * bufsize should be two greater than the maximum number of output characters expected. */ static int JS_dtoa(double d, int mode, boolean biasUp, int ndigits, boolean[] sign, StringBuffer buf) { /* Arguments ndigits, decpt, sign are similar to those of ecvt and fcvt; trailing zeros are suppressed from the returned string. If not null, *rve is set to point to the end of the return value. If d is +-Infinity or NaN, then *decpt is set to 9999. mode: 0 ==> shortest string that yields d when read in and rounded to nearest. 1 ==> like 0, but with Steele & White stopping rule; e.g. with IEEE P754 arithmetic , mode 0 gives 1e23 whereas mode 1 gives 9.999999999999999e22. 2 ==> max(1,ndigits) significant digits. This gives a return value similar to that of ecvt, except that trailing zeros are suppressed. 3 ==> through ndigits past the decimal point. This gives a return value similar to that from fcvt, except that trailing zeros are suppressed, and ndigits can be negative. 4-9 should give the same return values as 2-3, i.e., 4 <= mode <= 9 ==> same return as mode 2 + (mode & 1). These modes are mainly for debugging; often they run slower but sometimes faster than modes 2-3. 4,5,8,9 ==> left-to-right digit generation. 6-9 ==> don't try fast floating-point estimate (if applicable). Values of mode other than 0-9 are treated as mode 0. Sufficient space is allocated to the return value to hold the suppressed trailing zeros. */ int b2, b5, i, ieps, ilim, ilim0, ilim1, j, j1, k, k0, m2, m5, s2, s5; char dig; long L; long x; BigInteger b, b1, delta, mlo, mhi, S; int[] be = new int[1]; int[] bbits = new int[1]; double d2, ds, eps; boolean spec_case, denorm, k_check, try_quick, leftright; if ((word0(d) & Sign_bit) != 0) { /* set sign for everything, including 0's and NaNs */ sign[0] = true; // word0(d) &= ~Sign_bit; /* clear sign bit */ d = setWord0(d, word0(d) & ~Sign_bit); } else sign[0] = false; if ((word0(d) & Exp_mask) == Exp_mask) { /* Infinity or NaN */ buf.append(((word1(d) == 0) && ((word0(d) & Frac_mask) == 0)) ? "Infinity" : "NaN"); return 9999; } if (d == 0) { // no_digits: buf.setLength(0); buf.append('0'); /* copy "0" to buffer */ return 1; } b = d2b(d, be, bbits); if ((i = (word0(d) >>> Exp_shift1 & (Exp_mask>>Exp_shift1))) != 0) { d2 = setWord0(d, (word0(d) & Frac_mask1) | Exp_11); /* log(x) ~=~ log(1.5) + (x-1.5)/1.5 * log10(x) = log(x) / log(10) * ~=~ log(1.5)/log(10) + (x-1.5)/(1.5*log(10)) * log10(d) = (i-Bias)*log(2)/log(10) + log10(d2) * * This suggests computing an approximation k to log10(d) by * * k = (i - Bias)*0.301029995663981 * + ( (d2-1.5)*0.289529654602168 + 0.176091259055681 ); * * We want k to be too large rather than too small. * The error in the first-order Taylor series approximation * is in our favor, so we just round up the constant enough * to compensate for any error in the multiplication of * (i - Bias) by 0.301029995663981; since |i - Bias| <= 1077, * and 1077 * 0.30103 * 2^-52 ~=~ 7.2e-14, * adding 1e-13 to the constant term more than suffices. * Hence we adjust the constant term to 0.1760912590558. * (We could get a more accurate k by invoking log10, * but this is probably not worthwhile.) */ i -= Bias; denorm = false; } else { /* d is denormalized */ i = bbits[0] + be[0] + (Bias + (P-1) - 1); x = (i > 32) ? word0(d) << (64 - i) | word1(d) >>> (i - 32) : word1(d) << (32 - i); // d2 = x; // word0(d2) -= 31*Exp_msk1; /* adjust exponent */ d2 = setWord0(x, word0(x) - 31*Exp_msk1); i -= (Bias + (P-1) - 1) + 1; denorm = true; } /* At this point d = f*2^i, where 1 <= f < 2. d2 is an approximation of f. */ ds = (d2-1.5)*0.289529654602168 + 0.1760912590558 + i*0.301029995663981; k = (int)ds; if (ds < 0.0 && ds != k) k--; /* want k = floor(ds) */ k_check = true; if (k >= 0 && k <= Ten_pmax) { if (d < tens[k]) k--; k_check = false; } /* At this point floor(log10(d)) <= k <= floor(log10(d))+1. If k_check is zero, we're guaranteed that k = floor(log10(d)). */ j = bbits[0] - i - 1; /* At this point d = b/2^j, where b is an odd integer. */ if (j >= 0) { b2 = 0; s2 = j; } else { b2 = -j; s2 = 0; } if (k >= 0) { b5 = 0; s5 = k; s2 += k; } else { b2 -= k; b5 = -k; s5 = 0; } /* At this point d/10^k = (b * 2^b2 * 5^b5) / (2^s2 * 5^s5), where b is an odd integer, b2 >= 0, b5 >= 0, s2 >= 0, and s5 >= 0. */ if (mode < 0 || mode > 9) mode = 0; try_quick = true; if (mode > 5) { mode -= 4; try_quick = false; } leftright = true; ilim = ilim1 = 0; switch(mode) { case 0: case 1: ilim = ilim1 = -1; i = 18; ndigits = 0; break; case 2: leftright = false; /* no break */ case 4: if (ndigits <= 0) ndigits = 1; ilim = ilim1 = i = ndigits; break; case 3: leftright = false; /* no break */ case 5: i = ndigits + k + 1; ilim = i; ilim1 = i - 1; if (i <= 0) i = 1; } /* ilim is the maximum number of significant digits we want, based on k and ndigits. */ /* ilim1 is the maximum number of significant digits we want, based on k and ndigits, when it turns out that k was computed too high by one. */ boolean fast_failed = false; if (ilim >= 0 && ilim <= Quick_max && try_quick) { /* Try to get by with floating-point arithmetic. */ i = 0; d2 = d; k0 = k; ilim0 = ilim; ieps = 2; /* conservative */ /* Divide d by 10^k, keeping track of the roundoff error and avoiding overflows. */ if (k > 0) { ds = tens[k&0xf]; j = k >> 4; if ((j & Bletch) != 0) { /* prevent overflows */ j &= Bletch - 1; d /= bigtens[n_bigtens-1]; ieps++; } for(; (j != 0); j >>= 1, i++) if ((j & 1) != 0) { ieps++; ds *= bigtens[i]; } d /= ds; } else if ((j1 = -k) != 0) { d *= tens[j1 & 0xf]; for(j = j1 >> 4; (j != 0); j >>= 1, i++) if ((j & 1) != 0) { ieps++; d *= bigtens[i]; } } /* Check that k was computed correctly. */ if (k_check && d < 1.0 && ilim > 0) { if (ilim1 <= 0) fast_failed = true; else { ilim = ilim1; k--; d *= 10.; ieps++; } } /* eps bounds the cumulative error. */ // eps = ieps*d + 7.0; // word0(eps) -= (P-1)*Exp_msk1; eps = ieps*d + 7.0; eps = setWord0(eps, word0(eps) - (P-1)*Exp_msk1); if (ilim == 0) { S = mhi = null; d -= 5.0; if (d > eps) { buf.append('1'); k++; return k + 1; } if (d < -eps) { buf.setLength(0); buf.append('0'); /* copy "0" to buffer */ return 1; } fast_failed = true; } if (!fast_failed) { fast_failed = true; if (leftright) { /* Use Steele & White method of only * generating digits needed. */ eps = 0.5/tens[ilim-1] - eps; for(i = 0;;) { L = (long)d; d -= L; buf.append((char)('0' + L)); if (d < eps) { return k + 1; } if (1.0 - d < eps) { // goto bump_up; char lastCh; while (true) { lastCh = buf.charAt(buf.length() - 1); buf.setLength(buf.length() - 1); if (lastCh != '9') break; if (buf.length() == 0) { k++; lastCh = '0'; break; } } buf.append((char)(lastCh + 1)); return k + 1; } if (++i >= ilim) break; eps *= 10.0; d *= 10.0; } } else { /* Generate ilim digits, then fix them up. */ eps *= tens[ilim-1]; for(i = 1;; i++, d *= 10.0) { L = (long)d; d -= L; buf.append((char)('0' + L)); if (i == ilim) { if (d > 0.5 + eps) { // goto bump_up; char lastCh; while (true) { lastCh = buf.charAt(buf.length() - 1); buf.setLength(buf.length() - 1); if (lastCh != '9') break; if (buf.length() == 0) { k++; lastCh = '0'; break; } } buf.append((char)(lastCh + 1)); return k + 1; } else if (d < 0.5 - eps) { stripTrailingZeroes(buf); // while(*--s == '0') ; // s++; return k + 1; } break; } } } } if (fast_failed) { buf.setLength(0); d = d2; k = k0; ilim = ilim0; } } /* Do we have a "small" integer? */ if (be[0] >= 0 && k <= Int_max) { /* Yes. */ ds = tens[k]; if (ndigits < 0 && ilim <= 0) { S = mhi = null; if (ilim < 0 || d < 5*ds || (!biasUp && d == 5*ds)) { buf.setLength(0); buf.append('0'); /* copy "0" to buffer */ return 1; } buf.append('1'); k++; return k + 1; } for(i = 1;; i++) { L = (long) (d / ds); d -= L*ds; buf.append((char)('0' + L)); if (i == ilim) { d += d; if ((d > ds) || (d == ds && (((L & 1) != 0) || biasUp))) { // bump_up: // while(*--s == '9') // if (s == buf) { // k++; // *s = '0'; // break; // } // ++*s++; char lastCh; while (true) { lastCh = buf.charAt(buf.length() - 1); buf.setLength(buf.length() - 1); if (lastCh != '9') break; if (buf.length() == 0) { k++; lastCh = '0'; break; } } buf.append((char)(lastCh + 1)); } break; } d *= 10.0; if (d == 0) break; } return k + 1; } m2 = b2; m5 = b5; mhi = mlo = null; if (leftright) { if (mode < 2) { i = (denorm) ? be[0] + (Bias + (P-1) - 1 + 1) : 1 + P - bbits[0]; /* i is 1 plus the number of trailing zero bits in d's significand. Thus, (2^m2 * 5^m5) / (2^(s2+i) * 5^s5) = (1/2 lsb of d)/10^k. */ } else { j = ilim - 1; if (m5 >= j) m5 -= j; else { s5 += j -= m5; b5 += j; m5 = 0; } if ((i = ilim) < 0) { m2 -= i; i = 0; } /* (2^m2 * 5^m5) / (2^(s2+i) * 5^s5) = (1/2 * 10^(1-ilim))/10^k. */ } b2 += i; s2 += i; mhi = BigInteger.valueOf(1); /* (mhi * 2^m2 * 5^m5) / (2^s2 * 5^s5) = one-half of last printed (when mode >= 2) or input (when mode < 2) significant digit, divided by 10^k. */ } /* We still have d/10^k = (b * 2^b2 * 5^b5) / (2^s2 * 5^s5). Reduce common factors in b2, m2, and s2 without changing the equalities. */ if (m2 > 0 && s2 > 0) { i = (m2 < s2) ? m2 : s2; b2 -= i; m2 -= i; s2 -= i; } /* Fold b5 into b and m5 into mhi. */ if (b5 > 0) { if (leftright) { if (m5 > 0) { mhi = pow5mult(mhi, m5); b1 = mhi.multiply(b); b = b1; } if ((j = b5 - m5) != 0) b = pow5mult(b, j); } else b = pow5mult(b, b5); } /* Now we have d/10^k = (b * 2^b2) / (2^s2 * 5^s5) and (mhi * 2^m2) / (2^s2 * 5^s5) = one-half of last printed or input significant digit, divided by 10^k. */ S = BigInteger.valueOf(1); if (s5 > 0) S = pow5mult(S, s5); /* Now we have d/10^k = (b * 2^b2) / (S * 2^s2) and (mhi * 2^m2) / (S * 2^s2) = one-half of last printed or input significant digit, divided by 10^k. */ /* Check for special case that d is a normalized power of 2. */ spec_case = false; if (mode < 2) { if ( (word1(d) == 0) && ((word0(d) & Bndry_mask) == 0) && ((word0(d) & (Exp_mask & Exp_mask << 1)) != 0) ) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the decimal output string's value is less than d. */ b2 += Log2P; s2 += Log2P; spec_case = true; } } /* Arrange for convenient computation of quotients: * shift left if necessary so divisor has 4 leading 0 bits. * * Perhaps we should just compute leading 28 bits of S once * and for all and pass them and a shift to quorem, so it * can do shifts and ors to compute the numerator for q. */ byte [] S_bytes = S.toByteArray(); int S_hiWord = 0; for (int idx = 0; idx < 4; idx++) { S_hiWord = (S_hiWord << 8); if (idx < S_bytes.length) S_hiWord |= (S_bytes[idx] & 0xFF); } if ((i = (((s5 != 0) ? 32 - hi0bits(S_hiWord) : 1) + s2) & 0x1f) != 0) i = 32 - i; /* i is the number of leading zero bits in the most significant word of S*2^s2. */ if (i > 4) { i -= 4; b2 += i; m2 += i; s2 += i; } else if (i < 4) { i += 28; b2 += i; m2 += i; s2 += i; } /* Now S*2^s2 has exactly four leading zero bits in its most significant word. */ if (b2 > 0) b = b.shiftLeft(b2); if (s2 > 0) S = S.shiftLeft(s2); /* Now we have d/10^k = b/S and (mhi * 2^m2) / S = maximum acceptable error, divided by 10^k. */ if (k_check) { if (b.compareTo(S) < 0) { k--; b = b.multiply(BigInteger.valueOf(10)); /* we botched the k estimate */ if (leftright) mhi = mhi.multiply(BigInteger.valueOf(10)); ilim = ilim1; } } /* At this point 1 <= d/10^k = b/S < 10. */ if (ilim <= 0 && mode > 2) { /* We're doing fixed-mode output and d is less than the minimum nonzero output in this mode. Output either zero or the minimum nonzero output depending on which is closer to d. */ if ((ilim < 0 ) || ((i = b.compareTo(S = S.multiply(BigInteger.valueOf(5)))) < 0) || ((i == 0 && !biasUp))) { /* Always emit at least one digit. If the number appears to be zero using the current mode, then emit one '0' digit and set decpt to 1. */ /*no_digits: k = -1 - ndigits; goto ret; */ buf.setLength(0); buf.append('0'); /* copy "0" to buffer */ return 1; // goto no_digits; } // one_digit: buf.append('1'); k++; return k + 1; } if (leftright) { if (m2 > 0) mhi = mhi.shiftLeft(m2); /* Compute mlo -- check for special case * that d is a normalized power of 2. */ mlo = mhi; if (spec_case) { mhi = mlo; mhi = mhi.shiftLeft(Log2P); } /* mlo/S = maximum acceptable error, divided by 10^k, if the output is less than d. */ /* mhi/S = maximum acceptable error, divided by 10^k, if the output is greater than d. */ for(i = 1;;i++) { BigInteger[] divResult = b.divideAndRemainder(S); b = divResult[1]; dig = (char)(divResult[0].intValue() + '0'); /* Do we yet have the shortest decimal string * that will round to d? */ j = b.compareTo(mlo); /* j is b/S compared with mlo/S. */ delta = S.subtract(mhi); j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/S compared with 1 - mhi/S. */ if ((j1 == 0) && (mode == 0) && ((word1(d) & 1) == 0)) { if (dig == '9') { buf.append('9'); if (roundOff(buf)) { k++; buf.append('1'); } return k + 1; // goto round_9_up; } if (j > 0) dig++; buf.append(dig); return k + 1; } if ((j < 0) || ((j == 0) && (mode == 0) && ((word1(d) & 1) == 0) )) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant decimal digit. Use whichever would produce a decimal value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(S); if (((j1 > 0) || (j1 == 0 && (((dig & 1) == 1) || biasUp))) && (dig++ == '9')) { buf.append('9'); if (roundOff(buf)) { k++; buf.append('1'); } return k + 1; // goto round_9_up; } } buf.append(dig); return k + 1; } if (j1 > 0) { if (dig == '9') { /* possible if i == 1 */ // round_9_up: // *s++ = '9'; // goto roundoff; buf.append('9'); if (roundOff(buf)) { k++; buf.append('1'); } return k + 1; } buf.append((char)(dig + 1)); return k + 1; } buf.append(dig); if (i == ilim) break; b = b.multiply(BigInteger.valueOf(10)); if (mlo == mhi) mlo = mhi = mhi.multiply(BigInteger.valueOf(10)); else { mlo = mlo.multiply(BigInteger.valueOf(10)); mhi = mhi.multiply(BigInteger.valueOf(10)); } } } else for(i = 1;; i++) { // (char)(dig = quorem(b,S) + '0'); BigInteger[] divResult = b.divideAndRemainder(S); b = divResult[1]; dig = (char)(divResult[0].intValue() + '0'); buf.append(dig); if (i >= ilim) break; b = b.multiply(BigInteger.valueOf(10)); } /* Round off last digit */ b = b.shiftLeft(1); j = b.compareTo(S); if ((j > 0) || (j == 0 && (((dig & 1) == 1) || biasUp))) { // roundoff: // while(*--s == '9') // if (s == buf) { // k++; // *s++ = '1'; // goto ret; // } // ++*s++; if (roundOff(buf)) { k++; buf.append('1'); return k + 1; } } else { stripTrailingZeroes(buf); // while(*--s == '0') ; // s++; } // ret: // Bfree(S); // if (mhi) { // if (mlo && mlo != mhi) // Bfree(mlo); // Bfree(mhi); // } // ret1: // Bfree(b); // JS_ASSERT(s < buf + bufsize); return k + 1; } private static void stripTrailingZeroes(StringBuffer buf) { // while(*--s == '0') ; // s++; int bl = buf.length(); while(bl-->0 && buf.charAt(bl) == '0') { // empty } buf.setLength(bl + 1); } /* Mapping of JSDToStrMode -> JS_dtoa mode */ private static final int dtoaModes[] = { 0, /* DTOSTR_STANDARD */ 0, /* DTOSTR_STANDARD_EXPONENTIAL, */ 3, /* DTOSTR_FIXED, */ 2, /* DTOSTR_EXPONENTIAL, */ 2}; /* DTOSTR_PRECISION */ static void JS_dtostr(StringBuffer buffer, int mode, int precision, double d) { int decPt; /* Position of decimal point relative to first digit returned by JS_dtoa */ boolean[] sign = new boolean[1]; /* true if the sign bit was set in d */ int nDigits; /* Number of significand digits returned by JS_dtoa */ // JS_ASSERT(bufferSize >= (size_t)(mode <= DTOSTR_STANDARD_EXPONENTIAL ? DTOSTR_STANDARD_BUFFER_SIZE : // DTOSTR_VARIABLE_BUFFER_SIZE(precision))); if (mode == DTOSTR_FIXED && (d >= 1e21 || d <= -1e21)) mode = DTOSTR_STANDARD; /* Change mode here rather than below because the buffer may not be large enough to hold a large integer. */ decPt = JS_dtoa(d, dtoaModes[mode], mode >= DTOSTR_FIXED, precision, sign, buffer); nDigits = buffer.length(); /* If Infinity, -Infinity, or NaN, return the string regardless of the mode. */ if (decPt != 9999) { boolean exponentialNotation = false; int minNDigits = 0; /* Minimum number of significand digits required by mode and precision */ int p; switch (mode) { case DTOSTR_STANDARD: if (decPt < -5 || decPt > 21) exponentialNotation = true; else minNDigits = decPt; break; case DTOSTR_FIXED: if (precision >= 0) minNDigits = decPt + precision; else minNDigits = decPt; break; case DTOSTR_EXPONENTIAL: // JS_ASSERT(precision > 0); minNDigits = precision; /* Fall through */ case DTOSTR_STANDARD_EXPONENTIAL: exponentialNotation = true; break; case DTOSTR_PRECISION: // JS_ASSERT(precision > 0); minNDigits = precision; if (decPt < -5 || decPt > precision) exponentialNotation = true; break; } /* If the number has fewer than minNDigits, pad it with zeros at the end */ if (nDigits < minNDigits) { p = minNDigits; nDigits = minNDigits; do { buffer.append('0'); } while (buffer.length() != p); } if (exponentialNotation) { /* Insert a decimal point if more than one significand digit */ if (nDigits != 1) { buffer.insert(1, '.'); } buffer.append('e'); if ((decPt - 1) >= 0) buffer.append('+'); buffer.append(decPt - 1); // JS_snprintf(numEnd, bufferSize - (numEnd - buffer), "e%+d", decPt-1); } else if (decPt != nDigits) { /* Some kind of a fraction in fixed notation */ // JS_ASSERT(decPt <= nDigits); if (decPt > 0) { /* dd...dd . dd...dd */ buffer.insert(decPt, '.'); } else { /* 0 . 00...00dd...dd */ for (int i = 0; i < 1 - decPt; i++) buffer.insert(0, '0'); buffer.insert(1, '.'); } } } /* If negative and neither -0.0 nor NaN, output a leading '-'. */ if (sign[0] && !(word0(d) == Sign_bit && word1(d) == 0) && !((word0(d) & Exp_mask) == Exp_mask && ((word1(d) != 0) || ((word0(d) & Frac_mask) != 0)))) { buffer.insert(0, '-'); } } } carmetal-4.3/src/org/mozilla/javascript/Decompiler.java000066400000000000000000000675041417122252700233100ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Mike Ang * Igor Bukanov * Bob Jervis * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * The following class save decompilation information about the source. * Source information is returned from the parser as a String * associated with function nodes and with the toplevel script. When * saved in the constant pool of a class, this string will be UTF-8 * encoded, and token values will occupy a single byte. * Source is saved (mostly) as token numbers. The tokens saved pretty * much correspond to the token stream of a 'canonical' representation * of the input program, as directed by the parser. (There were a few * cases where tokens could have been left out where decompiler could * easily reconstruct them, but I left them in for clarity). (I also * looked adding source collection to TokenStream instead, where I * could have limited the changes to a few lines in getToken... but * this wouldn't have saved any space in the resulting source * representation, and would have meant that I'd have to duplicate * parser logic in the decompiler to disambiguate situations where * newlines are important.) The function decompile expands the * tokens back into their string representations, using simple * lookahead to correct spacing and indentation. * * Assignments are saved as two-token pairs (Token.ASSIGN, op). Number tokens * are stored inline, as a NUMBER token, a character representing the type, and * either 1 or 4 characters representing the bit-encoding of the number. String * types NAME, STRING and OBJECT are currently stored as a token type, * followed by a character giving the length of the string (assumed to * be less than 2^16), followed by the characters of the string * inlined into the source string. Changing this to some reference to * to the string in the compiled class' constant pool would probably * save a lot of space... but would require some method of deriving * the final constant pool entry from information available at parse * time. */ public class Decompiler { /** * Flag to indicate that the decompilation should omit the * function header and trailing brace. */ public static final int ONLY_BODY_FLAG = 1 << 0; /** * Flag to indicate that the decompilation generates toSource result. */ public static final int TO_SOURCE_FLAG = 1 << 1; /** * Decompilation property to specify initial ident value. */ public static final int INITIAL_INDENT_PROP = 1; /** * Decompilation property to specify default identation offset. */ public static final int INDENT_GAP_PROP = 2; /** * Decompilation property to specify identation offset for case labels. */ public static final int CASE_GAP_PROP = 3; // Marker to denote the last RC of function so it can be distinguished from // the last RC of object literals in case of function expressions private static final int FUNCTION_END = Token.LAST_TOKEN + 1; String getEncodedSource() { return sourceToString(0); } int getCurrentOffset() { return sourceTop; } int markFunctionStart(int functionType) { int savedOffset = getCurrentOffset(); addToken(Token.FUNCTION); append((char)functionType); return savedOffset; } int markFunctionEnd(int functionStart) { int offset = getCurrentOffset(); append((char)FUNCTION_END); return offset; } void addToken(int token) { if (!(0 <= token && token <= Token.LAST_TOKEN)) throw new IllegalArgumentException(); append((char)token); } void addEOL(int token) { if (!(0 <= token && token <= Token.LAST_TOKEN)) throw new IllegalArgumentException(); append((char)token); append((char)Token.EOL); } void addName(String str) { addToken(Token.NAME); appendString(str); } void addString(String str) { addToken(Token.STRING); appendString(str); } void addRegexp(String regexp, String flags) { addToken(Token.REGEXP); appendString('/' + regexp + '/' + flags); } void addNumber(double n) { addToken(Token.NUMBER); /* encode the number in the source stream. * Save as NUMBER type (char | char char char char) * where type is * 'D' - double, 'S' - short, 'J' - long. * We need to retain float vs. integer type info to keep the * behavior of liveconnect type-guessing the same after * decompilation. (Liveconnect tries to present 1.0 to Java * as a float/double) * OPT: This is no longer true. We could compress the format. * This may not be the most space-efficient encoding; * the chars created below may take up to 3 bytes in * constant pool UTF-8 encoding, so a Double could take * up to 12 bytes. */ long lbits = (long)n; if (lbits != n) { // if it's floating point, save as a Double bit pattern. // (12/15/97 our scanner only returns Double for f.p.) lbits = Double.doubleToLongBits(n); append('D'); append((char)(lbits >> 48)); append((char)(lbits >> 32)); append((char)(lbits >> 16)); append((char)lbits); } else { // we can ignore negative values, bc they're already prefixed // by NEG if (lbits < 0) Kit.codeBug(); // will it fit in a char? // this gives a short encoding for integer values up to 2^16. if (lbits <= Character.MAX_VALUE) { append('S'); append((char)lbits); } else { // Integral, but won't fit in a char. Store as a long. append('J'); append((char)(lbits >> 48)); append((char)(lbits >> 32)); append((char)(lbits >> 16)); append((char)lbits); } } } private void appendString(String str) { int L = str.length(); int lengthEncodingSize = 1; if (L >= 0x8000) { lengthEncodingSize = 2; } int nextTop = sourceTop + lengthEncodingSize + L; if (nextTop > sourceBuffer.length) { increaseSourceCapacity(nextTop); } if (L >= 0x8000) { // Use 2 chars to encode strings exceeding 32K, were the highest // bit in the first char indicates presence of the next byte sourceBuffer[sourceTop] = (char)(0x8000 | (L >>> 16)); ++sourceTop; } sourceBuffer[sourceTop] = (char)L; ++sourceTop; str.getChars(0, L, sourceBuffer, sourceTop); sourceTop = nextTop; } private void append(char c) { if (sourceTop == sourceBuffer.length) { increaseSourceCapacity(sourceTop + 1); } sourceBuffer[sourceTop] = c; ++sourceTop; } private void increaseSourceCapacity(int minimalCapacity) { // Call this only when capacity increase is must if (minimalCapacity <= sourceBuffer.length) Kit.codeBug(); int newCapacity = sourceBuffer.length * 2; if (newCapacity < minimalCapacity) { newCapacity = minimalCapacity; } char[] tmp = new char[newCapacity]; System.arraycopy(sourceBuffer, 0, tmp, 0, sourceTop); sourceBuffer = tmp; } private String sourceToString(int offset) { if (offset < 0 || sourceTop < offset) Kit.codeBug(); return new String(sourceBuffer, offset, sourceTop - offset); } /** * Decompile the source information associated with this js * function/script back into a string. For the most part, this * just means translating tokens back to their string * representations; there's a little bit of lookahead logic to * decide the proper spacing/indentation. Most of the work in * mapping the original source to the prettyprinted decompiled * version is done by the parser. * * @param source encoded source tree presentation * * @param flags flags to select output format * * @param properties indentation properties * */ public static String decompile(String source, int flags, UintMap properties) { int length = source.length(); if (length == 0) { return ""; } int indent = properties.getInt(INITIAL_INDENT_PROP, 0); if (indent < 0) throw new IllegalArgumentException(); int indentGap = properties.getInt(INDENT_GAP_PROP, 4); if (indentGap < 0) throw new IllegalArgumentException(); int caseGap = properties.getInt(CASE_GAP_PROP, 2); if (caseGap < 0) throw new IllegalArgumentException(); StringBuffer result = new StringBuffer(); boolean justFunctionBody = (0 != (flags & Decompiler.ONLY_BODY_FLAG)); boolean toSource = (0 != (flags & Decompiler.TO_SOURCE_FLAG)); // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = null; if (Token.printNames) { tokenname = Token.name(source.charAt(i)); } if (tokenname == null) { tokenname = "---"; } String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int braceNesting = 0; boolean afterFirstEOL = false; int i = 0; int topFunctionType; if (source.charAt(i) == Token.SCRIPT) { ++i; topFunctionType = -1; } else { topFunctionType = source.charAt(i + 1); } if (!toSource) { // add an initial newline to exactly match js. result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } else { if (topFunctionType == FunctionNode.FUNCTION_EXPRESSION) { result.append('('); } } while (i < length) { switch(source.charAt(i)) { case Token.GET: case Token.SET: result.append(source.charAt(i) == Token.GET ? "get " : "set "); ++i; i = printSourceString(source, i + 1, false, result); // Now increment one more to get past the FUNCTION token ++i; break; case Token.NAME: case Token.REGEXP: // re-wrapped in '/'s in parser... i = printSourceString(source, i + 1, false, result); continue; case Token.STRING: i = printSourceString(source, i + 1, true, result); continue; case Token.NUMBER: i = printSourceNumber(source, i + 1, result); continue; case Token.TRUE: result.append("true"); break; case Token.FALSE: result.append("false"); break; case Token.NULL: result.append("null"); break; case Token.THIS: result.append("this"); break; case Token.FUNCTION: ++i; // skip function type result.append("function "); break; case FUNCTION_END: // Do nothing break; case Token.COMMA: result.append(", "); break; case Token.LC: ++braceNesting; if (Token.EOL == getNext(source, length, i)) indent += indentGap; result.append('{'); break; case Token.RC: { --braceNesting; /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justFunctionBody && braceNesting == 0) break; result.append('}'); switch (getNext(source, length, i)) { case Token.EOL: case FUNCTION_END: indent -= indentGap; break; case Token.WHILE: case Token.ELSE: indent -= indentGap; result.append(' '); break; } break; } case Token.LP: result.append('('); break; case Token.RP: result.append(')'); if (Token.LC == getNext(source, length, i)) result.append(' '); break; case Token.LB: result.append('['); break; case Token.RB: result.append(']'); break; case Token.EOL: { if (toSource) break; boolean newLine = true; if (!afterFirstEOL) { afterFirstEOL = true; if (justFunctionBody) { /* throw away just added 'function name(...) {' * and restore the original indent */ result.setLength(0); indent -= indentGap; newLine = false; } } if (newLine) { result.append('\n'); } /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; int nextToken = source.charAt(i + 1); if (nextToken == Token.CASE || nextToken == Token.DEFAULT) { less = indentGap - caseGap; } else if (nextToken == Token.RC) { less = indentGap; } /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. */ else if (nextToken == Token.NAME) { int afterName = getSourceStringEnd(source, i + 2); if (source.charAt(afterName) == Token.COLON) less = indentGap; } for (; less < indent; less++) result.append(' '); } break; } case Token.DOT: result.append('.'); break; case Token.NEW: result.append("new "); break; case Token.DELPROP: result.append("delete "); break; case Token.IF: result.append("if "); break; case Token.ELSE: result.append("else "); break; case Token.FOR: result.append("for "); break; case Token.IN: result.append(" in "); break; case Token.WITH: result.append("with "); break; case Token.WHILE: result.append("while "); break; case Token.DO: result.append("do "); break; case Token.TRY: result.append("try "); break; case Token.CATCH: result.append("catch "); break; case Token.FINALLY: result.append("finally "); break; case Token.THROW: result.append("throw "); break; case Token.SWITCH: result.append("switch "); break; case Token.BREAK: result.append("break"); if (Token.NAME == getNext(source, length, i)) result.append(' '); break; case Token.CONTINUE: result.append("continue"); if (Token.NAME == getNext(source, length, i)) result.append(' '); break; case Token.CASE: result.append("case "); break; case Token.DEFAULT: result.append("default"); break; case Token.RETURN: result.append("return"); if (Token.SEMI != getNext(source, length, i)) result.append(' '); break; case Token.VAR: result.append("var "); break; case Token.LET: result.append("let "); break; case Token.SEMI: result.append(';'); if (Token.EOL != getNext(source, length, i)) { // separators in FOR result.append(' '); } break; case Token.ASSIGN: result.append(" = "); break; case Token.ASSIGN_ADD: result.append(" += "); break; case Token.ASSIGN_SUB: result.append(" -= "); break; case Token.ASSIGN_MUL: result.append(" *= "); break; case Token.ASSIGN_DIV: result.append(" /= "); break; case Token.ASSIGN_MOD: result.append(" %= "); break; case Token.ASSIGN_BITOR: result.append(" |= "); break; case Token.ASSIGN_BITXOR: result.append(" ^= "); break; case Token.ASSIGN_BITAND: result.append(" &= "); break; case Token.ASSIGN_LSH: result.append(" <<= "); break; case Token.ASSIGN_RSH: result.append(" >>= "); break; case Token.ASSIGN_URSH: result.append(" >>>= "); break; case Token.HOOK: result.append(" ? "); break; case Token.OBJECTLIT: // pun OBJECTLIT to mean colon in objlit property // initialization. // This needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case Token.COLON: if (Token.EOL == getNext(source, length, i)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case Token.OR: result.append(" || "); break; case Token.AND: result.append(" && "); break; case Token.BITOR: result.append(" | "); break; case Token.BITXOR: result.append(" ^ "); break; case Token.BITAND: result.append(" & "); break; case Token.SHEQ: result.append(" === "); break; case Token.SHNE: result.append(" !== "); break; case Token.EQ: result.append(" == "); break; case Token.NE: result.append(" != "); break; case Token.LE: result.append(" <= "); break; case Token.LT: result.append(" < "); break; case Token.GE: result.append(" >= "); break; case Token.GT: result.append(" > "); break; case Token.INSTANCEOF: result.append(" instanceof "); break; case Token.LSH: result.append(" << "); break; case Token.RSH: result.append(" >> "); break; case Token.URSH: result.append(" >>> "); break; case Token.TYPEOF: result.append("typeof "); break; case Token.VOID: result.append("void "); break; case Token.CONST: result.append("const "); break; case Token.YIELD: result.append("yield "); break; case Token.NOT: result.append('!'); break; case Token.BITNOT: result.append('~'); break; case Token.POS: result.append('+'); break; case Token.NEG: result.append('-'); break; case Token.INC: result.append("++"); break; case Token.DEC: result.append("--"); break; case Token.ADD: result.append(" + "); break; case Token.SUB: result.append(" - "); break; case Token.MUL: result.append(" * "); break; case Token.DIV: result.append(" / "); break; case Token.MOD: result.append(" % "); break; case Token.COLONCOLON: result.append("::"); break; case Token.DOTDOT: result.append(".."); break; case Token.DOTQUERY: result.append(".("); break; case Token.XMLATTR: result.append('@'); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException("Token: " + Token.name(source.charAt(i))); } ++i; } if (!toSource) { // add that trailing newline if it's an outermost function. if (!justFunctionBody) result.append('\n'); } else { if (topFunctionType == FunctionNode.FUNCTION_EXPRESSION) { result.append(')'); } } return result.toString(); } private static int getNext(String source, int length, int i) { return (i + 1 < length) ? source.charAt(i + 1) : Token.EOF; } private static int getSourceStringEnd(String source, int offset) { return printSourceString(source, offset, false, null); } private static int printSourceString(String source, int offset, boolean asQuotedString, StringBuffer sb) { int length = source.charAt(offset); ++offset; if ((0x8000 & length) != 0) { length = ((0x7FFF & length) << 16) | source.charAt(offset); ++offset; } if (sb != null) { String str = source.substring(offset, offset + length); if (!asQuotedString) { sb.append(str); } else { sb.append('"'); sb.append(ScriptRuntime.escapeString(str)); sb.append('"'); } } return offset + length; } private static int printSourceNumber(String source, int offset, StringBuffer sb) { double number = 0.0; char type = source.charAt(offset); ++offset; if (type == 'S') { if (sb != null) { int ival = source.charAt(offset); number = ival; } ++offset; } else if (type == 'J' || type == 'D') { if (sb != null) { long lbits; lbits = (long)source.charAt(offset) << 48; lbits |= (long)source.charAt(offset + 1) << 32; lbits |= (long)source.charAt(offset + 2) << 16; lbits |= source.charAt(offset + 3); if (type == 'J') { number = lbits; } else { number = Double.longBitsToDouble(lbits); } } offset += 4; } else { // Bad source throw new RuntimeException(); } if (sb != null) { sb.append(ScriptRuntime.numberToString(number, 10)); } return offset; } private char[] sourceBuffer = new char[128]; // Per script/function source buffer top: parent source does not include a // nested functions source and uses function index as a reference instead. private int sourceTop; // whether to do a debug print of the source information, when decompiling. private static final boolean printSource = false; } carmetal-4.3/src/org/mozilla/javascript/DefaultErrorReporter.java000066400000000000000000000101771417122252700253400ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This is the default error reporter for JavaScript. * * @author Norris Boyd */ class DefaultErrorReporter implements ErrorReporter { static final DefaultErrorReporter instance = new DefaultErrorReporter(); private boolean forEval; private ErrorReporter chainedReporter; private DefaultErrorReporter() { } static ErrorReporter forEval(ErrorReporter reporter) { DefaultErrorReporter r = new DefaultErrorReporter(); r.forEval = true; r.chainedReporter = reporter; return r; } public void warning(String message, String sourceURI, int line, String lineText, int lineOffset) { if (chainedReporter != null) { chainedReporter.warning( message, sourceURI, line, lineText, lineOffset); } else { // Do nothing } } public void error(String message, String sourceURI, int line, String lineText, int lineOffset) { if (forEval) { // Assume error message strings that start with "TypeError: " // should become TypeError exceptions. A bit of a hack, but we // don't want to change the ErrorReporter interface. String error = "SyntaxError"; final String TYPE_ERROR_NAME = "TypeError"; final String DELIMETER = ": "; final String prefix = TYPE_ERROR_NAME + DELIMETER; if (message.startsWith(prefix)) { error = TYPE_ERROR_NAME; message = message.substring(prefix.length()); } throw ScriptRuntime.constructError(error, message, sourceURI, line, lineText, lineOffset); } if (chainedReporter != null) { chainedReporter.error( message, sourceURI, line, lineText, lineOffset); } else { throw runtimeError( message, sourceURI, line, lineText, lineOffset); } } public EvaluatorException runtimeError(String message, String sourceURI, int line, String lineText, int lineOffset) { if (chainedReporter != null) { return chainedReporter.runtimeError( message, sourceURI, line, lineText, lineOffset); } else { return new EvaluatorException( message, sourceURI, line, lineText, lineOffset); } } } carmetal-4.3/src/org/mozilla/javascript/DefiningClassLoader.java000066400000000000000000000057011417122252700250540ustar00rootroot00000000000000/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Roger Lawrence * Patrick Beard * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * Load generated classes. * * @author Norris Boyd */ public class DefiningClassLoader extends ClassLoader implements GeneratedClassLoader { public DefiningClassLoader() { this.parentLoader = getClass().getClassLoader(); } public DefiningClassLoader(ClassLoader parentLoader) { this.parentLoader = parentLoader; } public Class defineClass(String name, byte[] data) { // Use our own protection domain for the generated classes. // TODO: we might want to use a separate protection domain for classes // compiled from scripts, based on where the script was loaded from. return super.defineClass(name, data, 0, data.length, SecurityUtilities.getProtectionDomain(getClass())); } public void linkClass(Class cl) { resolveClass(cl); } @Override public Class loadClass(String name, boolean resolve) throws ClassNotFoundException { Class cl = findLoadedClass(name); if (cl == null) { if (parentLoader != null) { cl = parentLoader.loadClass(name); } else { cl = findSystemClass(name); } } if (resolve) { resolveClass(cl); } return cl; } private final ClassLoader parentLoader; } carmetal-4.3/src/org/mozilla/javascript/Delegator.java000066400000000000000000000200131417122252700231130ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Delegator.java, released * Sep 27, 2000. * * The Initial Developer of the Original Code is * Matthias Radestock. . * Portions created by the Initial Developer are Copyright (C) 2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * This is a helper class for implementing wrappers around Scriptable * objects. It implements the Function interface and delegates all * invocations to a delegee Scriptable object. The normal use of this * class involves creating a sub-class and overriding one or more of * the methods. * * A useful application is the implementation of interceptors, * pre/post conditions, debugging. * * @see Function * @see Scriptable * @author Matthias Radestock */ public class Delegator implements Function { protected Scriptable obj = null; /** * Create a Delegator prototype. * * This constructor should only be used for creating prototype * objects of Delegator. * * @see org.mozilla.javascript.Delegator#construct */ public Delegator() { } /** * Create a new Delegator that forwards requests to a delegee * Scriptable object. * * @param obj the delegee * @see org.mozilla.javascript.Scriptable */ public Delegator(Scriptable obj) { this.obj = obj; } /** * Crete new Delegator instance. * The default implementation calls this.getClass().newInstance(). * * @see #construct(Context cx, Scriptable scope, Object[] args) */ protected Delegator newInstance() { try { return this.getClass().newInstance(); } catch (Exception ex) { throw Context.throwAsScriptRuntimeEx(ex); } } /** * Retrieve the delegee. * * @return the delegee */ public Scriptable getDelegee() { return obj; } /** * Set the delegee. * * @param obj the delegee * @see org.mozilla.javascript.Scriptable */ public void setDelegee(Scriptable obj) { this.obj = obj; } /** * @see org.mozilla.javascript.Scriptable#getClassName */ public String getClassName() { return obj.getClassName(); } /** * @see org.mozilla.javascript.Scriptable#get(String, Scriptable) */ public Object get(String name, Scriptable start) { return obj.get(name,start); } /** * @see org.mozilla.javascript.Scriptable#get(int, Scriptable) */ public Object get(int index, Scriptable start) { return obj.get(index,start); } /** * @see org.mozilla.javascript.Scriptable#has(String, Scriptable) */ public boolean has(String name, Scriptable start) { return obj.has(name,start); } /** * @see org.mozilla.javascript.Scriptable#has(int, Scriptable) */ public boolean has(int index, Scriptable start) { return obj.has(index,start); } /** * @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object) */ public void put(String name, Scriptable start, Object value) { obj.put(name,start,value); } /** * @see org.mozilla.javascript.Scriptable#put(int, Scriptable, Object) */ public void put(int index, Scriptable start, Object value) { obj.put(index,start,value); } /** * @see org.mozilla.javascript.Scriptable#delete(String) */ public void delete(String name) { obj.delete(name); } /** * @see org.mozilla.javascript.Scriptable#delete(int) */ public void delete(int index) { obj.delete(index); } /** * @see org.mozilla.javascript.Scriptable#getPrototype */ public Scriptable getPrototype() { return obj.getPrototype(); } /** * @see org.mozilla.javascript.Scriptable#setPrototype */ public void setPrototype(Scriptable prototype) { obj.setPrototype(prototype); } /** * @see org.mozilla.javascript.Scriptable#getParentScope */ public Scriptable getParentScope() { return obj.getParentScope(); } /** * @see org.mozilla.javascript.Scriptable#setParentScope */ public void setParentScope(Scriptable parent) { obj.setParentScope(parent); } /** * @see org.mozilla.javascript.Scriptable#getIds */ public Object[] getIds() { return obj.getIds(); } /** * Note that this method does not get forwarded to the delegee if * the hint parameter is null, * ScriptRuntime.ScriptableClass or * ScriptRuntime.FunctionClass. Instead the object * itself is returned. * * @param hint the type hint * @return the default value * * @see org.mozilla.javascript.Scriptable#getDefaultValue */ public Object getDefaultValue(Class hint) { return (hint == null || hint == ScriptRuntime.ScriptableClass || hint == ScriptRuntime.FunctionClass) ? this : obj.getDefaultValue(hint); } /** * @see org.mozilla.javascript.Scriptable#hasInstance */ public boolean hasInstance(Scriptable instance) { return obj.hasInstance(instance); } /** * @see org.mozilla.javascript.Function#call */ public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return ((Function)obj).call(cx,scope,thisObj,args); } /** * Note that if the delegee is null, * this method creates a new instance of the Delegator itself * rathert than forwarding the call to the * delegee. This permits the use of Delegator * prototypes. * * @param cx the current Context for this thread * @param scope an enclosing scope of the caller except * when the function is called from a closure. * @param args the array of arguments * @return the allocated object * * @see Function#construct(Context, Scriptable, Object[]) */ public Scriptable construct(Context cx, Scriptable scope, Object[] args) { if (obj == null) { //this little trick allows us to declare prototype objects for //Delegators Delegator n = newInstance(); Scriptable delegee; if (args.length == 0) { delegee = new NativeObject(); } else { delegee = ScriptRuntime.toObject(cx, scope, args[0]); } n.setDelegee(delegee); return n; } else { return ((Function)obj).construct(cx,scope,args); } } } carmetal-4.3/src/org/mozilla/javascript/EcmaError.java000066400000000000000000000114651417122252700230770ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Roger Lawrence * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * The class of exceptions raised by the engine as described in * ECMA edition 3. See section 15.11.6 in particular. */ public class EcmaError extends RhinoException { static final long serialVersionUID = -6261226256957286699L; private String errorName; private String errorMessage; /** * Create an exception with the specified detail message. * * Errors internal to the JavaScript engine will simply throw a * RuntimeException. * * @param sourceName the name of the source responsible for the error * @param lineNumber the line number of the source * @param columnNumber the columnNumber of the source (may be zero if * unknown) * @param lineSource the source of the line containing the error (may be * null if unknown) */ EcmaError(String errorName, String errorMessage, String sourceName, int lineNumber, String lineSource, int columnNumber) { recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber); this.errorName = errorName; this.errorMessage = errorMessage; } /** * @deprecated EcmaError error instances should not be constructed * explicitly since they are generated by the engine. */ public EcmaError(Scriptable nativeError, String sourceName, int lineNumber, int columnNumber, String lineSource) { this("InternalError", ScriptRuntime.toString(nativeError), sourceName, lineNumber, lineSource, columnNumber); } @Override public String details() { return errorName+": "+errorMessage; } /** * Gets the name of the error. * * ECMA edition 3 defines the following * errors: EvalError, RangeError, ReferenceError, * SyntaxError, TypeError, and URIError. Additional error names * may be added in the future. * * See ECMA edition 3, 15.11.7.9. * * @return the name of the error. */ public String getName() { return errorName; } /** * Gets the message corresponding to the error. * * See ECMA edition 3, 15.11.7.10. * * @return an implementation-defined string describing the error. */ public String getErrorMessage() { return errorMessage; } /** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); } /** * @deprecated Use {@link RhinoException#lineNumber()} from the super class. */ public int getLineNumber() { return lineNumber(); } /** * @deprecated * Use {@link RhinoException#columnNumber()} from the super class. */ public int getColumnNumber() { return columnNumber(); } /** * @deprecated Use {@link RhinoException#lineSource()} from the super class. */ public String getLineSource() { return lineSource(); } /** * @deprecated * Always returns null. */ public Scriptable getErrorObject() { return null; } } carmetal-4.3/src/org/mozilla/javascript/ErrorReporter.java000066400000000000000000000101011417122252700240160ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * This is interface defines a protocol for the reporting of * errors during JavaScript translation or execution. * * @author Norris Boyd */ public interface ErrorReporter { /** * Report a warning. * * The implementing class may choose to ignore the warning * if it desires. * * @param message a String describing the warning * @param sourceName a String describing the JavaScript source * where the warning occured; typically a filename or URL * @param line the line number associated with the warning * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected */ void warning(String message, String sourceName, int line, String lineSource, int lineOffset); /** * Report an error. * * The implementing class is free to throw an exception if * it desires. * * If execution has not yet begun, the JavaScript engine is * free to find additional errors rather than terminating * the translation. It will not execute a script that had * errors, however. * * @param message a String describing the error * @param sourceName a String describing the JavaScript source * where the error occured; typically a filename or URL * @param line the line number associated with the error * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected */ void error(String message, String sourceName, int line, String lineSource, int lineOffset); /** * Creates an EvaluatorException that may be thrown. * * runtimeErrors, unlike errors, will always terminate the * current script. * * @param message a String describing the error * @param sourceName a String describing the JavaScript source * where the error occured; typically a filename or URL * @param line the line number associated with the error * @param lineSource the text of the line (may be null) * @param lineOffset the offset into lineSource where problem was detected * @return an EvaluatorException that will be thrown. */ EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset); } carmetal-4.3/src/org/mozilla/javascript/Evaluator.java000066400000000000000000000104541417122252700231570ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.List; /** * Abstraction of evaluation, which can be implemented either by an * interpreter or compiler. */ public interface Evaluator { /** * Compile the script or function from intermediate representation * tree into an executable form. * * @param compilerEnv Compiler environment * @param tree intermediate representation * @param encodedSource encoding of the source code for decompilation * @param returnFunction if true, compiling a function * @return an opaque object that can be passed to either * createFunctionObject or createScriptObject, depending on the * value of returnFunction */ public Object compile(CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction); /** * Create a function object. * * @param cx Current context * @param scope scope of the function * @param bytecode opaque object returned by compile * @param staticSecurityDomain security domain * @return Function object that can be called */ public Function createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain); /** * Create a script object. * * @param bytecode opaque object returned by compile * @param staticSecurityDomain security domain * @return Script object that can be evaluated */ public Script createScriptObject(Object bytecode, Object staticSecurityDomain); /** * Capture stack information from the given exception. * @param ex an exception thrown during execution */ public void captureStackInfo(RhinoException ex); /** * Get the source position information by examining the stack. * @param cx Context * @param linep Array object of length >= 1; getSourcePositionFromStack * will assign the line number to linep[0]. * @return the name of the file or other source container */ public String getSourcePositionFromStack(Context cx, int[] linep); /** * Given a native stack trace, patch it with script-specific source * and line information * @param ex exception * @param nativeStackTrace the native stack trace * @return patched stack trace */ public String getPatchedStack(RhinoException ex, String nativeStackTrace); /** * Get the script stack for the given exception * @param ex exception from execution * @return list of strings for the stack trace */ public List getScriptStack(RhinoException ex); /** * Mark the given script to indicate it was created by a call to * eval() or to a Function constructor. * @param script script to mark as from eval */ public void setEvalScriptFlag(Script script); } carmetal-4.3/src/org/mozilla/javascript/EvaluatorException.java000066400000000000000000000076551417122252700250470ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * The class of exceptions thrown by the JavaScript engine. */ public class EvaluatorException extends RhinoException { static final long serialVersionUID = -8743165779676009808L; public EvaluatorException(String detail) { super(detail); } /** * Create an exception with the specified detail message. * * Errors internal to the JavaScript engine will simply throw a * RuntimeException. * * @param detail the error message * @param sourceName the name of the source reponsible for the error * @param lineNumber the line number of the source */ public EvaluatorException(String detail, String sourceName, int lineNumber) { this(detail, sourceName, lineNumber, null, 0); } /** * Create an exception with the specified detail message. * * Errors internal to the JavaScript engine will simply throw a * RuntimeException. * * @param detail the error message * @param sourceName the name of the source responsible for the error * @param lineNumber the line number of the source * @param columnNumber the columnNumber of the source (may be zero if * unknown) * @param lineSource the source of the line containing the error (may be * null if unknown) */ public EvaluatorException(String detail, String sourceName, int lineNumber, String lineSource, int columnNumber) { super(detail); recordErrorOrigin(sourceName, lineNumber, lineSource, columnNumber); } /** * @deprecated Use {@link RhinoException#sourceName()} from the super class. */ public String getSourceName() { return sourceName(); } /** * @deprecated Use {@link RhinoException#lineNumber()} from the super class. */ public int getLineNumber() { return lineNumber(); } /** * @deprecated Use {@link RhinoException#columnNumber()} from the super class. */ public int getColumnNumber() { return columnNumber(); } /** * @deprecated Use {@link RhinoException#lineSource()} from the super class. */ public String getLineSource() { return lineSource(); } } carmetal-4.3/src/org/mozilla/javascript/Function.java000066400000000000000000000062401417122252700230000ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * This is interface that all functions in JavaScript must implement. * The interface provides for calling functions and constructors. * * @see org.mozilla.javascript.Scriptable * @author Norris Boyd */ public interface Function extends Scriptable, Callable { /** * Call the function. * * Note that the array of arguments is not guaranteed to have * length greater than 0. * * @param cx the current Context for this thread * @param scope the scope to execute the function relative to. This is * set to the value returned by getParentScope() except * when the function is called from a closure. * @param thisObj the JavaScript this object * @param args the array of arguments * @return the result of the call */ public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args); /** * Call the function as a constructor. * * This method is invoked by the runtime in order to satisfy a use * of the JavaScript new operator. This method is * expected to create a new object and return it. * * @param cx the current Context for this thread * @param scope an enclosing scope of the caller except * when the function is called from a closure. * @param args the array of arguments * @return the allocated object */ public Scriptable construct(Context cx, Scriptable scope, Object[] args); } carmetal-4.3/src/org/mozilla/javascript/FunctionNode.java000066400000000000000000000075451417122252700236170ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Roger Lawrence * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.ArrayList; import java.util.HashMap; public class FunctionNode extends ScriptOrFnNode { public FunctionNode(String name) { super(Token.FUNCTION); functionName = name; } public String getFunctionName() { return functionName; } public boolean requiresActivation() { return itsNeedsActivation; } public boolean getIgnoreDynamicScope() { return itsIgnoreDynamicScope; } public boolean isGenerator() { return itsIsGenerator; } public void addResumptionPoint(Node target) { if (generatorResumePoints == null) generatorResumePoints = new ArrayList(); generatorResumePoints.add(target); } public ArrayList getResumptionPoints() { return generatorResumePoints; } public HashMap getLiveLocals() { return liveLocals; } public void addLiveLocals(Node node, int[] locals) { if (liveLocals == null) liveLocals = new HashMap(); liveLocals.put(node, locals); } /** * There are three types of functions that can be defined. The first * is a function statement. This is a function appearing as a top-level * statement (i.e., not nested inside some other statement) in either a * script or a function. * * The second is a function expression, which is a function appearing in * an expression except for the third type, which is... * * The third type is a function expression where the expression is the * top-level expression in an expression statement. * * The three types of functions have different treatment and must be * distinguished. */ public static final int FUNCTION_STATEMENT = 1; public static final int FUNCTION_EXPRESSION = 2; public static final int FUNCTION_EXPRESSION_STATEMENT = 3; public int getFunctionType() { return itsFunctionType; } String functionName; int itsFunctionType; boolean itsNeedsActivation; boolean itsIgnoreDynamicScope; boolean itsIsGenerator; ArrayList generatorResumePoints; HashMap liveLocals; } carmetal-4.3/src/org/mozilla/javascript/FunctionObject.java000066400000000000000000000523431417122252700241340ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * David C. Navas * Ted Neward * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; import java.lang.reflect.*; import java.io.*; public class FunctionObject extends BaseFunction { static final long serialVersionUID = -5332312783643935019L; /** * Create a JavaScript function object from a Java method. * *

    The member argument must be either a java.lang.reflect.Method * or a java.lang.reflect.Constructor and must match one of two forms.

    * * The first form is a member with zero or more parameters * of the following types: Object, String, boolean, Scriptable, * int, or double. The Long type is not supported * because the double representation of a long (which is the * EMCA-mandated storage type for Numbers) may lose precision. * If the member is a Method, the return value must be void or one * of the types allowed for parameters.

    * * The runtime will perform appropriate conversions based * upon the type of the parameter. A parameter type of * Object specifies that no conversions are to be done. A parameter * of type String will use Context.toString to convert arguments. * Similarly, parameters of type double, boolean, and Scriptable * will cause Context.toNumber, Context.toBoolean, and * Context.toObject, respectively, to be called.

    * * If the method is not static, the Java 'this' value will * correspond to the JavaScript 'this' value. Any attempt * to call the function with a 'this' value that is not * of the right Java type will result in an error.

    * * The second form is the variable arguments (or "varargs") * form. If the FunctionObject will be used as a constructor, * the member must have the following parameters *

         *      (Context cx, Object[] args, Function ctorObj,
         *       boolean inNewExpr)
    * and if it is a Method, be static and return an Object result.

    * * Otherwise, if the FunctionObject will not be used to define a * constructor, the member must be a static Method with parameters * (Context cx, Scriptable thisObj, Object[] args, * Function funObj) *

         * and an Object result.

    * * When the function varargs form is called as part of a function call, * the args parameter contains the * arguments, with thisObj * set to the JavaScript 'this' value. funObj * is the function object for the invoked function.

    * * When the constructor varargs form is called or invoked while evaluating * a new expression, args contains the * arguments, ctorObj refers to this FunctionObject, and * inNewExpr is true if and only if a new * expression caused the call. This supports defining a function that * has different behavior when called as a constructor than when * invoked as a normal function call. (For example, the Boolean * constructor, when called as a function, * will convert to boolean rather than creating a new object.)

    * * @param name the name of the function * @param methodOrConstructor a java.lang.reflect.Method or a java.lang.reflect.Constructor * that defines the object * @param scope enclosing scope of function * @see org.mozilla.javascript.Scriptable */ public FunctionObject(String name, Member methodOrConstructor, Scriptable scope) { if (methodOrConstructor instanceof Constructor) { member = new MemberBox((Constructor) methodOrConstructor); isStatic = true; // well, doesn't take a 'this' } else { member = new MemberBox((Method) methodOrConstructor); isStatic = member.isStatic(); } String methodName = member.getName(); this.functionName = name; Class[] types = member.argTypes; int arity = types.length; if (arity == 4 && (types[1].isArray() || types[2].isArray())) { // Either variable args or an error. if (types[1].isArray()) { if (!isStatic || types[0] != ScriptRuntime.ContextClass || types[1].getComponentType() != ScriptRuntime.ObjectClass || types[2] != ScriptRuntime.FunctionClass || types[3] != Boolean.TYPE) { throw Context.reportRuntimeError1( "msg.varargs.ctor", methodName); } parmsLength = VARARGS_CTOR; } else { if (!isStatic || types[0] != ScriptRuntime.ContextClass || types[1] != ScriptRuntime.ScriptableClass || types[2].getComponentType() != ScriptRuntime.ObjectClass || types[3] != ScriptRuntime.FunctionClass) { throw Context.reportRuntimeError1( "msg.varargs.fun", methodName); } parmsLength = VARARGS_METHOD; } } else { parmsLength = arity; if (arity > 0) { typeTags = new byte[arity]; for (int i = 0; i != arity; ++i) { int tag = getTypeTag(types[i]); if (tag == JAVA_UNSUPPORTED_TYPE) { throw Context.reportRuntimeError2( "msg.bad.parms", types[i].getName(), methodName); } typeTags[i] = (byte)tag; } } } if (member.isMethod()) { Method method = member.method(); Class returnType = method.getReturnType(); if (returnType == Void.TYPE) { hasVoidReturn = true; } else { returnTypeTag = getTypeTag(returnType); } } else { Class ctorType = member.getDeclaringClass(); if (!ScriptRuntime.ScriptableClass.isAssignableFrom(ctorType)) { throw Context.reportRuntimeError1( "msg.bad.ctor.return", ctorType.getName()); } } ScriptRuntime.setFunctionProtoAndParent(this, scope); } /** * @return One of JAVA_*_TYPE constants to indicate desired type * or {@link #JAVA_UNSUPPORTED_TYPE} if the convertion is not * possible */ public static int getTypeTag(Class type) { if (type == ScriptRuntime.StringClass) return JAVA_STRING_TYPE; if (type == ScriptRuntime.IntegerClass || type == Integer.TYPE) return JAVA_INT_TYPE; if (type == ScriptRuntime.BooleanClass || type == Boolean.TYPE) return JAVA_BOOLEAN_TYPE; if (type == ScriptRuntime.DoubleClass || type == Double.TYPE) return JAVA_DOUBLE_TYPE; if (ScriptRuntime.ScriptableClass.isAssignableFrom(type)) return JAVA_SCRIPTABLE_TYPE; if (type == ScriptRuntime.ObjectClass) return JAVA_OBJECT_TYPE; // Note that the long type is not supported; see the javadoc for // the constructor for this class return JAVA_UNSUPPORTED_TYPE; } public static Object convertArg(Context cx, Scriptable scope, Object arg, int typeTag) { switch (typeTag) { case JAVA_STRING_TYPE: if (arg instanceof String) return arg; return ScriptRuntime.toString(arg); case JAVA_INT_TYPE: if (arg instanceof Integer) return arg; return new Integer(ScriptRuntime.toInt32(arg)); case JAVA_BOOLEAN_TYPE: if (arg instanceof Boolean) return arg; return ScriptRuntime.toBoolean(arg) ? Boolean.TRUE : Boolean.FALSE; case JAVA_DOUBLE_TYPE: if (arg instanceof Double) return arg; return new Double(ScriptRuntime.toNumber(arg)); case JAVA_SCRIPTABLE_TYPE: return ScriptRuntime.toObjectOrNull(cx, arg, scope); case JAVA_OBJECT_TYPE: return arg; default: throw new IllegalArgumentException(); } } /** * Return the value defined by the method used to construct the object * (number of parameters of the method, or 1 if the method is a "varargs" * form). */ @Override public int getArity() { return parmsLength < 0 ? 1 : parmsLength; } /** * Return the same value as {@link #getArity()}. */ @Override public int getLength() { return getArity(); } @Override public String getFunctionName() { return (functionName == null) ? "" : functionName; } /** * Get Java method or constructor this function represent. */ public Member getMethodOrConstructor() { if (member.isMethod()) { return member.method(); } else { return member.ctor(); } } static Method findSingleMethod(Method[] methods, String name) { Method found = null; for (int i = 0, N = methods.length; i != N; ++i) { Method method = methods[i]; if (method != null && name.equals(method.getName())) { if (found != null) { throw Context.reportRuntimeError2( "msg.no.overload", name, method.getDeclaringClass().getName()); } found = method; } } return found; } /** * Returns all public methods declared by the specified class. This excludes * inherited methods. * * @param clazz the class from which to pull public declared methods * @return the public methods declared in the specified class * @see Class#getDeclaredMethods() */ static Method[] getMethodList(Class clazz) { Method[] methods = null; try { // getDeclaredMethods may be rejected by the security manager // but getMethods is more expensive if (!sawSecurityException) methods = clazz.getDeclaredMethods(); } catch (SecurityException e) { // If we get an exception once, give up on getDeclaredMethods sawSecurityException = true; } if (methods == null) { methods = clazz.getMethods(); } int count = 0; for (int i=0; i < methods.length; i++) { if (sawSecurityException ? methods[i].getDeclaringClass() != clazz : !Modifier.isPublic(methods[i].getModifiers())) { methods[i] = null; } else { count++; } } Method[] result = new Method[count]; int j=0; for (int i=0; i < methods.length; i++) { if (methods[i] != null) result[j++] = methods[i]; } return result; } /** * Define this function as a JavaScript constructor. *

    * Sets up the "prototype" and "constructor" properties. Also * calls setParent and setPrototype with appropriate values. * Then adds the function object as a property of the given scope, using * prototype.getClassName() * as the name of the property. * * @param scope the scope in which to define the constructor (typically * the global object) * @param prototype the prototype object * @see org.mozilla.javascript.Scriptable#setParentScope * @see org.mozilla.javascript.Scriptable#setPrototype * @see org.mozilla.javascript.Scriptable#getClassName */ public void addAsConstructor(Scriptable scope, Scriptable prototype) { initAsConstructor(scope, prototype); defineProperty(scope, prototype.getClassName(), this, ScriptableObject.DONTENUM); } void initAsConstructor(Scriptable scope, Scriptable prototype) { ScriptRuntime.setFunctionProtoAndParent(this, scope); setImmunePrototypeProperty(prototype); prototype.setParentScope(this); defineProperty(prototype, "constructor", this, ScriptableObject.DONTENUM | ScriptableObject.PERMANENT | ScriptableObject.READONLY); setParentScope(scope); } /** * @deprecated Use {@link #getTypeTag(Class)} * and {@link #convertArg(Context, Scriptable, Object, int)} * for type conversion. */ public static Object convertArg(Context cx, Scriptable scope, Object arg, Class desired) { int tag = getTypeTag(desired); if (tag == JAVA_UNSUPPORTED_TYPE) { throw Context.reportRuntimeError1 ("msg.cant.convert", desired.getName()); } return convertArg(cx, scope, arg, tag); } /** * Performs conversions on argument types if needed and * invokes the underlying Java method or constructor. *

    * Implements Function.call. * * @see org.mozilla.javascript.Function#call( * Context, Scriptable, Scriptable, Object[]) */ @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { Object result; boolean checkMethodResult = false; if (parmsLength < 0) { if (parmsLength == VARARGS_METHOD) { Object[] invokeArgs = { cx, thisObj, args, this }; result = member.invoke(null, invokeArgs); checkMethodResult = true; } else { boolean inNewExpr = (thisObj == null); Boolean b = inNewExpr ? Boolean.TRUE : Boolean.FALSE; Object[] invokeArgs = { cx, args, this, b }; result = (member.isCtor()) ? member.newInstance(invokeArgs) : member.invoke(null, invokeArgs); } } else { if (!isStatic) { Class clazz = member.getDeclaringClass(); if (!clazz.isInstance(thisObj)) { boolean compatible = false; if (thisObj == scope) { Scriptable parentScope = getParentScope(); if (scope != parentScope) { // Call with dynamic scope for standalone function, // use parentScope as thisObj compatible = clazz.isInstance(parentScope); if (compatible) { thisObj = parentScope; } } } if (!compatible) { // Couldn't find an object to call this on. throw ScriptRuntime.typeError1("msg.incompat.call", functionName); } } } Object[] invokeArgs; if (parmsLength == args.length) { // Do not allocate new argument array if java arguments are // the same as the original js ones. invokeArgs = args; for (int i = 0; i != parmsLength; ++i) { Object arg = args[i]; Object converted = convertArg(cx, scope, arg, typeTags[i]); if (arg != converted) { if (invokeArgs == args) { invokeArgs = args.clone(); } invokeArgs[i] = converted; } } } else if (parmsLength == 0) { invokeArgs = ScriptRuntime.emptyArgs; } else { invokeArgs = new Object[parmsLength]; for (int i = 0; i != parmsLength; ++i) { Object arg = (i < args.length) ? args[i] : Undefined.instance; invokeArgs[i] = convertArg(cx, scope, arg, typeTags[i]); } } if (member.isMethod()) { result = member.invoke(thisObj, invokeArgs); checkMethodResult = true; } else { result = member.newInstance(invokeArgs); } } if (checkMethodResult) { if (hasVoidReturn) { result = Undefined.instance; } else if (returnTypeTag == JAVA_UNSUPPORTED_TYPE) { result = cx.getWrapFactory().wrap(cx, scope, result, null); } // XXX: the code assumes that if returnTypeTag == JAVA_OBJECT_TYPE // then the Java method did a proper job of converting the // result to JS primitive or Scriptable to avoid // potentially costly Context.javaToJS call. } return result; } /** * Return new {@link Scriptable} instance using the default * constructor for the class of the underlying Java method. * Return null to indicate that the call method should be used to create * new objects. */ @Override public Scriptable createObject(Context cx, Scriptable scope) { if (member.isCtor() || parmsLength == VARARGS_CTOR) { return null; } Scriptable result; try { result = (Scriptable) member.getDeclaringClass().newInstance(); } catch (Exception ex) { throw Context.throwAsScriptRuntimeEx(ex); } result.setPrototype(getClassPrototype()); result.setParentScope(getParentScope()); return result; } boolean isVarArgsMethod() { return parmsLength == VARARGS_METHOD; } boolean isVarArgsConstructor() { return parmsLength == VARARGS_CTOR; } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (parmsLength > 0) { Class[] types = member.argTypes; typeTags = new byte[parmsLength]; for (int i = 0; i != parmsLength; ++i) { typeTags[i] = (byte)getTypeTag(types[i]); } } if (member.isMethod()) { Method method = member.method(); Class returnType = method.getReturnType(); if (returnType == Void.TYPE) { hasVoidReturn = true; } else { returnTypeTag = getTypeTag(returnType); } } } private static final short VARARGS_METHOD = -1; private static final short VARARGS_CTOR = -2; private static boolean sawSecurityException; public static final int JAVA_UNSUPPORTED_TYPE = 0; public static final int JAVA_STRING_TYPE = 1; public static final int JAVA_INT_TYPE = 2; public static final int JAVA_BOOLEAN_TYPE = 3; public static final int JAVA_DOUBLE_TYPE = 4; public static final int JAVA_SCRIPTABLE_TYPE = 5; public static final int JAVA_OBJECT_TYPE = 6; MemberBox member; private String functionName; private transient byte[] typeTags; private int parmsLength; private transient boolean hasVoidReturn; private transient int returnTypeTag; private boolean isStatic; } carmetal-4.3/src/org/mozilla/javascript/GeneratedClassLoader.java000066400000000000000000000044501417122252700252270ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * Interface to define classes from generated byte code. */ public interface GeneratedClassLoader { /** * Define a new Java class. * Classes created via this method should have the same class loader. * * @param name fully qualified class name * @param data class byte code * @return new class object */ public Class defineClass(String name, byte[] data); /** * Link the given class. * * @param cl Class instance returned from the previous call to * {@link #defineClass(String, byte[])} * @see java.lang.ClassLoader */ public void linkClass(Class cl); } carmetal-4.3/src/org/mozilla/javascript/IRFactory.java000066400000000000000000001523571417122252700230700ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Ethan Hugg * Bob Jervis * Terry Lucas * Milen Nankov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.List; import java.util.ArrayList; /** * This class allows the creation of nodes, and follows the Factory pattern. * * @see Node * @author Mike McCabe * @author Norris Boyd */ final class IRFactory { IRFactory(Parser parser) { this.parser = parser; } ScriptOrFnNode createScript() { return new ScriptOrFnNode(Token.SCRIPT); } /** * Script (for associating file/url names with toplevel scripts.) */ void initScript(ScriptOrFnNode scriptNode, Node body) { Node children = body.getFirstChild(); if (children != null) { scriptNode.addChildrenToBack(children); } } /** * Leaf */ Node createLeaf(int nodeType) { return new Node(nodeType); } /** * Statement leaf nodes. */ Node createSwitch(Node expr, int lineno) { // // The switch will be rewritten from: // // switch (expr) { // case test1: statements1; // ... // default: statementsDefault; // ... // case testN: statementsN; // } // // to: // // { // switch (expr) { // case test1: goto label1; // ... // case testN: goto labelN; // } // goto labelDefault; // label1: // statements1; // ... // labelDefault: // statementsDefault; // ... // labelN: // statementsN; // breakLabel: // } // // where inside switch each "break;" without label will be replaced // by "goto breakLabel". // // If the original switch does not have the default label, then // the transformed code would contain after the switch instead of // goto labelDefault; // the following goto: // goto breakLabel; // Node.Jump switchNode = new Node.Jump(Token.SWITCH, expr, lineno); Node block = new Node(Token.BLOCK, switchNode); return block; } /** * If caseExpression argument is null it indicate default label. */ void addSwitchCase(Node switchBlock, Node caseExpression, Node statements) { if (switchBlock.getType() != Token.BLOCK) throw Kit.codeBug(); Node.Jump switchNode = (Node.Jump)switchBlock.getFirstChild(); if (switchNode.getType() != Token.SWITCH) throw Kit.codeBug(); Node gotoTarget = Node.newTarget(); if (caseExpression != null) { Node.Jump caseNode = new Node.Jump(Token.CASE, caseExpression); caseNode.target = gotoTarget; switchNode.addChildToBack(caseNode); } else { switchNode.setDefault(gotoTarget); } switchBlock.addChildToBack(gotoTarget); switchBlock.addChildToBack(statements); } void closeSwitch(Node switchBlock) { if (switchBlock.getType() != Token.BLOCK) throw Kit.codeBug(); Node.Jump switchNode = (Node.Jump)switchBlock.getFirstChild(); if (switchNode.getType() != Token.SWITCH) throw Kit.codeBug(); Node switchBreakTarget = Node.newTarget(); // switchNode.target is only used by NodeTransformer // to detect switch end switchNode.target = switchBreakTarget; Node defaultTarget = switchNode.getDefault(); if (defaultTarget == null) { defaultTarget = switchBreakTarget; } switchBlock.addChildAfter(makeJump(Token.GOTO, defaultTarget), switchNode); switchBlock.addChildToBack(switchBreakTarget); } Node createVariables(int token, int lineno) { return new Node(token, lineno); } Node createExprStatement(Node expr, int lineno) { int type; if (parser.insideFunction()) { type = Token.EXPR_VOID; } else { type = Token.EXPR_RESULT; } return new Node(type, expr, lineno); } Node createExprStatementNoReturn(Node expr, int lineno) { return new Node(Token.EXPR_VOID, expr, lineno); } Node createDefaultNamespace(Node expr, int lineno) { // default xml namespace requires activation setRequiresActivation(); Node n = createUnary(Token.DEFAULTNAMESPACE, expr); Node result = createExprStatement(n, lineno); return result; } /** * Name */ Node createName(String name) { checkActivationName(name, Token.NAME); return Node.newString(Token.NAME, name); } private Node createName(int type, String name, Node child) { Node result = createName(name); result.setType(type); if (child != null) result.addChildToBack(child); return result; } /** * String (for literals) */ Node createString(String string) { return Node.newString(string); } /** * Number (for literals) */ Node createNumber(double number) { return Node.newNumber(number); } /** * Catch clause of try/catch/finally * @param varName the name of the variable to bind to the exception * @param catchCond the condition under which to catch the exception. * May be null if no condition is given. * @param stmts the statements in the catch clause * @param lineno the starting line number of the catch clause */ Node createCatch(String varName, Node catchCond, Node stmts, int lineno) { if (catchCond == null) { catchCond = new Node(Token.EMPTY); } return new Node(Token.CATCH, createName(varName), catchCond, stmts, lineno); } /** * Throw */ Node createThrow(Node expr, int lineno) { return new Node(Token.THROW, expr, lineno); } /** * Return */ Node createReturn(Node expr, int lineno) { return expr == null ? new Node(Token.RETURN, lineno) : new Node(Token.RETURN, expr, lineno); } /** * Debugger */ Node createDebugger(int lineno) { return new Node(Token.DEBUGGER, lineno); } /** * Label */ Node createLabel(int lineno) { return new Node.Jump(Token.LABEL, lineno); } Node getLabelLoop(Node label) { return ((Node.Jump)label).getLoop(); } /** * Label */ Node createLabeledStatement(Node labelArg, Node statement) { Node.Jump label = (Node.Jump)labelArg; // Make a target and put it _after_ the statement // node. And in the LABEL node, so breaks get the // right target. Node breakTarget = Node.newTarget(); Node block = new Node(Token.BLOCK, label, statement, breakTarget); label.target = breakTarget; return block; } /** * Break (possibly labeled) */ Node createBreak(Node breakStatement, int lineno) { Node.Jump n = new Node.Jump(Token.BREAK, lineno); Node.Jump jumpStatement; int t = breakStatement.getType(); if (t == Token.LOOP || t == Token.LABEL) { jumpStatement = (Node.Jump)breakStatement; } else if (t == Token.BLOCK && breakStatement.getFirstChild().getType() == Token.SWITCH) { jumpStatement = (Node.Jump)breakStatement.getFirstChild(); } else { throw Kit.codeBug(); } n.setJumpStatement(jumpStatement); return n; } /** * Continue (possibly labeled) */ Node createContinue(Node loop, int lineno) { if (loop.getType() != Token.LOOP) Kit.codeBug(); Node.Jump n = new Node.Jump(Token.CONTINUE, lineno); n.setJumpStatement((Node.Jump)loop); return n; } /** * Statement block * Creates the empty statement block * Must make subsequent calls to add statements to the node */ Node createBlock(int lineno) { return new Node(Token.BLOCK, lineno); } FunctionNode createFunction(String name) { return new FunctionNode(name); } Node initFunction(FunctionNode fnNode, int functionIndex, Node statements, int functionType) { fnNode.itsFunctionType = functionType; fnNode.addChildToBack(statements); int functionCount = fnNode.getFunctionCount(); if (functionCount != 0) { // Functions containing other functions require activation objects fnNode.itsNeedsActivation = true; } if (functionType == FunctionNode.FUNCTION_EXPRESSION) { String name = fnNode.getFunctionName(); if (name != null && name.length() != 0) { // A function expression needs to have its name as a // variable (if it isn't already allocated as a variable). // See ECMA Ch. 13. We add code to the beginning of the // function to initialize a local variable of the // function's name to the function value. Node setFn = new Node(Token.EXPR_VOID, new Node(Token.SETNAME, Node.newString(Token.BINDNAME, name), new Node(Token.THISFN))); statements.addChildrenToFront(setFn); } } // Add return to end if needed. Node lastStmt = statements.getLastChild(); if (lastStmt == null || lastStmt.getType() != Token.RETURN) { statements.addChildToBack(new Node(Token.RETURN)); } Node result = Node.newString(Token.FUNCTION, fnNode.getFunctionName()); result.putIntProp(Node.FUNCTION_PROP, functionIndex); return result; } /** * Add a child to the back of the given node. This function * breaks the Factory abstraction, but it removes a requirement * from implementors of Node. */ void addChildToBack(Node parent, Node child) { parent.addChildToBack(child); } /** * Create a node that can be used to hold lexically scoped variable * definitions (via let declarations). * * @param token the token of the node to create * @param lineno line number of source * @return the created node */ Node createScopeNode(int token, int lineno) { return new Node.Scope(token, lineno); } /** * Create loop node. The parser will later call * createWhile|createDoWhile|createFor|createForIn * to finish loop generation. */ Node createLoopNode(Node loopLabel, int lineno) { Node.Jump result = new Node.Scope(Token.LOOP, lineno); if (loopLabel != null) { ((Node.Jump)loopLabel).setLoop(result); } return result; } /** * While */ Node createWhile(Node loop, Node cond, Node body) { return createLoop((Node.Jump)loop, LOOP_WHILE, body, cond, null, null); } /** * DoWhile */ Node createDoWhile(Node loop, Node body, Node cond) { return createLoop((Node.Jump)loop, LOOP_DO_WHILE, body, cond, null, null); } /** * For */ Node createFor(Node loop, Node init, Node test, Node incr, Node body) { if (init.getType() == Token.LET) { // rewrite "for (let i=s; i < N; i++)..." as // "let (i=s) { for (; i < N; i++)..." so that "s" is evaluated // outside the scope of the for. Node.Scope let = Node.Scope.splitScope((Node.Scope)loop); let.setType(Token.LET); let.addChildrenToBack(init); let.addChildToBack(createLoop((Node.Jump)loop, LOOP_FOR, body, test, new Node(Token.EMPTY), incr)); return let; } return createLoop((Node.Jump)loop, LOOP_FOR, body, test, init, incr); } private Node createLoop(Node.Jump loop, int loopType, Node body, Node cond, Node init, Node incr) { Node bodyTarget = Node.newTarget(); Node condTarget = Node.newTarget(); if (loopType == LOOP_FOR && cond.getType() == Token.EMPTY) { cond = new Node(Token.TRUE); } Node.Jump IFEQ = new Node.Jump(Token.IFEQ, cond); IFEQ.target = bodyTarget; Node breakTarget = Node.newTarget(); loop.addChildToBack(bodyTarget); loop.addChildrenToBack(body); if (loopType == LOOP_WHILE || loopType == LOOP_FOR) { // propagate lineno to condition loop.addChildrenToBack(new Node(Token.EMPTY, loop.getLineno())); } loop.addChildToBack(condTarget); loop.addChildToBack(IFEQ); loop.addChildToBack(breakTarget); loop.target = breakTarget; Node continueTarget = condTarget; if (loopType == LOOP_WHILE || loopType == LOOP_FOR) { // Just add a GOTO to the condition in the do..while loop.addChildToFront(makeJump(Token.GOTO, condTarget)); if (loopType == LOOP_FOR) { int initType = init.getType(); if (initType != Token.EMPTY) { if (initType != Token.VAR && initType != Token.LET) { init = new Node(Token.EXPR_VOID, init); } loop.addChildToFront(init); } Node incrTarget = Node.newTarget(); loop.addChildAfter(incrTarget, body); if (incr.getType() != Token.EMPTY) { incr = new Node(Token.EXPR_VOID, incr); loop.addChildAfter(incr, incrTarget); } continueTarget = incrTarget; } } loop.setContinue(continueTarget); return loop; } /** * For .. In * */ Node createForIn(int declType, Node loop, Node lhs, Node obj, Node body, boolean isForEach) { int destructuring = -1; int destructuringLen = 0; Node lvalue; int type = lhs.getType(); if (type == Token.VAR || type == Token.LET) { Node lastChild = lhs.getLastChild(); if (lhs.getFirstChild() != lastChild) { /* * check that there was only one variable given. * we can't do this in the parser, because then the * parser would have to know something about the * 'init' node of the for-in loop. */ parser.reportError("msg.mult.index"); } if (lastChild.getType() == Token.ARRAYLIT || lastChild.getType() == Token.OBJECTLIT) { type = destructuring = lastChild.getType(); lvalue = lastChild; destructuringLen = lastChild.getIntProp( Node.DESTRUCTURING_ARRAY_LENGTH, 0); } else if (lastChild.getType() == Token.NAME) { lvalue = Node.newString(Token.NAME, lastChild.getString()); } else { parser.reportError("msg.bad.for.in.lhs"); return obj; } } else if (type == Token.ARRAYLIT || type == Token.OBJECTLIT) { destructuring = type; lvalue = lhs; destructuringLen = lhs.getIntProp(Node.DESTRUCTURING_ARRAY_LENGTH, 0); } else { lvalue = makeReference(lhs); if (lvalue == null) { parser.reportError("msg.bad.for.in.lhs"); return obj; } } Node localBlock = new Node(Token.LOCAL_BLOCK); int initType = (isForEach) ? Token.ENUM_INIT_VALUES : (destructuring != -1) ? Token.ENUM_INIT_ARRAY : Token.ENUM_INIT_KEYS; Node init = new Node(initType, obj); init.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node cond = new Node(Token.ENUM_NEXT); cond.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node id = new Node(Token.ENUM_ID); id.putProp(Node.LOCAL_BLOCK_PROP, localBlock); Node newBody = new Node(Token.BLOCK); Node assign; if (destructuring != -1) { assign = createDestructuringAssignment(declType, lvalue, id); if (!isForEach && (destructuring == Token.OBJECTLIT || destructuringLen != 2)) { // destructuring assignment is only allowed in for..each or // with an array type of length 2 (to hold key and value) parser.reportError("msg.bad.for.in.destruct"); } } else { assign = simpleAssignment(lvalue, id); } newBody.addChildToBack(new Node(Token.EXPR_VOID, assign)); newBody.addChildToBack(body); loop = createWhile(loop, cond, newBody); loop.addChildToFront(init); if (type == Token.VAR || type == Token.LET) loop.addChildToFront(lhs); localBlock.addChildToBack(loop); return localBlock; } /** * Try/Catch/Finally * * The IRFactory tries to express as much as possible in the tree; * the responsibilities remaining for Codegen are to add the Java * handlers: (Either (but not both) of TARGET and FINALLY might not * be defined) * - a catch handler for javascript exceptions that unwraps the * exception onto the stack and GOTOes to the catch target * - a finally handler * ... and a goto to GOTO around these handlers. */ Node createTryCatchFinally(Node tryBlock, Node catchBlocks, Node finallyBlock, int lineno) { boolean hasFinally = (finallyBlock != null) && (finallyBlock.getType() != Token.BLOCK || finallyBlock.hasChildren()); // short circuit if (tryBlock.getType() == Token.BLOCK && !tryBlock.hasChildren() && !hasFinally) { return tryBlock; } boolean hasCatch = catchBlocks.hasChildren(); // short circuit if (!hasFinally && !hasCatch) { // bc finally might be an empty block... return tryBlock; } Node handlerBlock = new Node(Token.LOCAL_BLOCK); Node.Jump pn = new Node.Jump(Token.TRY, tryBlock, lineno); pn.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); if (hasCatch) { // jump around catch code Node endCatch = Node.newTarget(); pn.addChildToBack(makeJump(Token.GOTO, endCatch)); // make a TARGET for the catch that the tcf node knows about Node catchTarget = Node.newTarget(); pn.target = catchTarget; // mark it pn.addChildToBack(catchTarget); // // Given // // try { // tryBlock; // } catch (e if condition1) { // something1; // ... // // } catch (e if conditionN) { // somethingN; // } catch (e) { // somethingDefault; // } // // rewrite as // // try { // tryBlock; // goto after_catch: // } catch (x) { // with (newCatchScope(e, x)) { // if (condition1) { // something1; // goto after_catch; // } // } // ... // with (newCatchScope(e, x)) { // if (conditionN) { // somethingN; // goto after_catch; // } // } // with (newCatchScope(e, x)) { // somethingDefault; // goto after_catch; // } // } // after_catch: // // If there is no default catch, then the last with block // arround "somethingDefault;" is replaced by "rethrow;" // It is assumed that catch handler generation will store // exeception object in handlerBlock register // Block with local for exception scope objects Node catchScopeBlock = new Node(Token.LOCAL_BLOCK); // expects catchblocks children to be (cond block) pairs. Node cb = catchBlocks.getFirstChild(); boolean hasDefault = false; int scopeIndex = 0; while (cb != null) { int catchLineNo = cb.getLineno(); Node name = cb.getFirstChild(); Node cond = name.getNext(); Node catchStatement = cond.getNext(); cb.removeChild(name); cb.removeChild(cond); cb.removeChild(catchStatement); // Add goto to the catch statement to jump out of catch // but prefix it with LEAVEWITH since try..catch produces // "with"code in order to limit the scope of the exception // object. catchStatement.addChildToBack(new Node(Token.LEAVEWITH)); catchStatement.addChildToBack(makeJump(Token.GOTO, endCatch)); // Create condition "if" when present Node condStmt; if (cond.getType() == Token.EMPTY) { condStmt = catchStatement; hasDefault = true; } else { condStmt = createIf(cond, catchStatement, null, catchLineNo); } // Generate code to create the scope object and store // it in catchScopeBlock register Node catchScope = new Node(Token.CATCH_SCOPE, name, createUseLocal(handlerBlock)); catchScope.putProp(Node.LOCAL_BLOCK_PROP, catchScopeBlock); catchScope.putIntProp(Node.CATCH_SCOPE_PROP, scopeIndex); catchScopeBlock.addChildToBack(catchScope); // Add with statement based on catch scope object catchScopeBlock.addChildToBack( createWith(createUseLocal(catchScopeBlock), condStmt, catchLineNo)); // move to next cb cb = cb.getNext(); ++scopeIndex; } pn.addChildToBack(catchScopeBlock); if (!hasDefault) { // Generate code to rethrow if no catch clause was executed Node rethrow = new Node(Token.RETHROW); rethrow.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); pn.addChildToBack(rethrow); } pn.addChildToBack(endCatch); } if (hasFinally) { Node finallyTarget = Node.newTarget(); pn.setFinally(finallyTarget); // add jsr finally to the try block pn.addChildToBack(makeJump(Token.JSR, finallyTarget)); // jump around finally code Node finallyEnd = Node.newTarget(); pn.addChildToBack(makeJump(Token.GOTO, finallyEnd)); pn.addChildToBack(finallyTarget); Node fBlock = new Node(Token.FINALLY, finallyBlock); fBlock.putProp(Node.LOCAL_BLOCK_PROP, handlerBlock); pn.addChildToBack(fBlock); pn.addChildToBack(finallyEnd); } handlerBlock.addChildToBack(pn); return handlerBlock; } /** * Throw, Return, Label, Break and Continue are defined in ASTFactory. */ /** * With */ Node createWith(Node obj, Node body, int lineno) { setRequiresActivation(); Node result = new Node(Token.BLOCK, lineno); result.addChildToBack(new Node(Token.ENTERWITH, obj)); Node bodyNode = new Node(Token.WITH, body, lineno); result.addChildrenToBack(bodyNode); result.addChildToBack(new Node(Token.LEAVEWITH)); return result; } /** * DOTQUERY */ public Node createDotQuery (Node obj, Node body, int lineno) { setRequiresActivation(); Node result = new Node(Token.DOTQUERY, obj, body, lineno); return result; } Node createArrayLiteral(ObjArray elems, int skipCount, int destructuringLen) { int length = elems.size(); int[] skipIndexes = null; if (skipCount != 0) { skipIndexes = new int[skipCount]; } Node array = new Node(Token.ARRAYLIT); for (int i = 0, j = 0; i != length; ++i) { Node elem = (Node)elems.get(i); if (elem != null) { array.addChildToBack(elem); } else { skipIndexes[j] = i; ++j; } } if (skipCount != 0) { array.putProp(Node.SKIP_INDEXES_PROP, skipIndexes); } array.putIntProp(Node.DESTRUCTURING_ARRAY_LENGTH, destructuringLen); return array; } /** * Object Literals *
    createObjectLiteral rewrites its argument as object * creation plus object property entries, so later compiler * stages don't need to know about object literals. */ Node createObjectLiteral(ObjArray elems) { int size = elems.size() / 2; Node object = new Node(Token.OBJECTLIT); Object[] properties; if (size == 0) { properties = ScriptRuntime.emptyArgs; } else { properties = new Object[size]; for (int i = 0; i != size; ++i) { properties[i] = elems.get(2 * i); Node value = (Node)elems.get(2 * i + 1); object.addChildToBack(value); } } object.putProp(Node.OBJECT_IDS_PROP, properties); return object; } /** * Regular expressions */ Node createRegExp(int regexpIndex) { Node n = new Node(Token.REGEXP); n.putIntProp(Node.REGEXP_PROP, regexpIndex); return n; } /** * If statement */ Node createIf(Node cond, Node ifTrue, Node ifFalse, int lineno) { int condStatus = isAlwaysDefinedBoolean(cond); if (condStatus == ALWAYS_TRUE_BOOLEAN) { return ifTrue; } else if (condStatus == ALWAYS_FALSE_BOOLEAN) { if (ifFalse != null) { return ifFalse; } // Replace if (false) xxx by empty block return new Node(Token.BLOCK, lineno); } Node result = new Node(Token.BLOCK, lineno); Node ifNotTarget = Node.newTarget(); Node.Jump IFNE = new Node.Jump(Token.IFNE, cond); IFNE.target = ifNotTarget; result.addChildToBack(IFNE); result.addChildrenToBack(ifTrue); if (ifFalse != null) { Node endTarget = Node.newTarget(); result.addChildToBack(makeJump(Token.GOTO, endTarget)); result.addChildToBack(ifNotTarget); result.addChildrenToBack(ifFalse); result.addChildToBack(endTarget); } else { result.addChildToBack(ifNotTarget); } return result; } Node createCondExpr(Node cond, Node ifTrue, Node ifFalse) { int condStatus = isAlwaysDefinedBoolean(cond); if (condStatus == ALWAYS_TRUE_BOOLEAN) { return ifTrue; } else if (condStatus == ALWAYS_FALSE_BOOLEAN) { return ifFalse; } return new Node(Token.HOOK, cond, ifTrue, ifFalse); } /** * Unary */ Node createUnary(int nodeType, Node child) { int childType = child.getType(); switch (nodeType) { case Token.DELPROP: { Node n; if (childType == Token.NAME) { // Transform Delete(Name "a") // to Delete(Bind("a"), String("a")) child.setType(Token.BINDNAME); Node left = child; Node right = Node.newString(child.getString()); n = new Node(nodeType, left, right); } else if (childType == Token.GETPROP || childType == Token.GETELEM) { Node left = child.getFirstChild(); Node right = child.getLastChild(); child.removeChild(left); child.removeChild(right); n = new Node(nodeType, left, right); } else if (childType == Token.GET_REF) { Node ref = child.getFirstChild(); child.removeChild(ref); n = new Node(Token.DEL_REF, ref); } else { n = new Node(Token.TRUE); } return n; } case Token.TYPEOF: if (childType == Token.NAME) { child.setType(Token.TYPEOFNAME); return child; } break; case Token.BITNOT: if (childType == Token.NUMBER) { int value = ScriptRuntime.toInt32(child.getDouble()); child.setDouble(~value); return child; } break; case Token.NEG: if (childType == Token.NUMBER) { child.setDouble(-child.getDouble()); return child; } break; case Token.NOT: { int status = isAlwaysDefinedBoolean(child); if (status != 0) { int type; if (status == ALWAYS_TRUE_BOOLEAN) { type = Token.FALSE; } else { type = Token.TRUE; } if (childType == Token.TRUE || childType == Token.FALSE) { child.setType(type); return child; } return new Node(type); } break; } } return new Node(nodeType, child); } Node createYield(Node child, int lineno) { if (!parser.insideFunction()) { parser.reportError("msg.bad.yield"); } setRequiresActivation(); setIsGenerator(); if (child != null) return new Node(Token.YIELD, child, lineno); else return new Node(Token.YIELD, lineno); } Node createCallOrNew(int nodeType, Node child) { int type = Node.NON_SPECIALCALL; if (child.getType() == Token.NAME) { String name = child.getString(); if (name.equals("eval")) { type = Node.SPECIALCALL_EVAL; } else if (name.equals("With")) { type = Node.SPECIALCALL_WITH; } } else if (child.getType() == Token.GETPROP) { String name = child.getLastChild().getString(); if (name.equals("eval")) { type = Node.SPECIALCALL_EVAL; } } Node node = new Node(nodeType, child); if (type != Node.NON_SPECIALCALL) { // Calls to these functions require activation objects. setRequiresActivation(); node.putIntProp(Node.SPECIALCALL_PROP, type); } return node; } Node createIncDec(int nodeType, boolean post, Node child) { child = makeReference(child); if (child == null) { String msg; if (nodeType == Token.DEC) { msg = "msg.bad.decr"; } else { msg = "msg.bad.incr"; } parser.reportError(msg); return null; } int childType = child.getType(); switch (childType) { case Token.NAME: case Token.GETPROP: case Token.GETELEM: case Token.GET_REF: { Node n = new Node(nodeType, child); int incrDecrMask = 0; if (nodeType == Token.DEC) { incrDecrMask |= Node.DECR_FLAG; } if (post) { incrDecrMask |= Node.POST_FLAG; } n.putIntProp(Node.INCRDECR_PROP, incrDecrMask); return n; } } throw Kit.codeBug(); } Node createPropertyGet(Node target, String namespace, String name, int memberTypeFlags) { if (namespace == null && memberTypeFlags == 0) { if (target == null) { return createName(name); } checkActivationName(name, Token.GETPROP); if (ScriptRuntime.isSpecialProperty(name)) { Node ref = new Node(Token.REF_SPECIAL, target); ref.putProp(Node.NAME_PROP, name); return new Node(Token.GET_REF, ref); } return new Node(Token.GETPROP, target, createString(name)); } Node elem = createString(name); memberTypeFlags |= Node.PROPERTY_FLAG; return createMemberRefGet(target, namespace, elem, memberTypeFlags); } Node createElementGet(Node target, String namespace, Node elem, int memberTypeFlags) { // OPT: could optimize to createPropertyGet // iff elem is string that can not be number if (namespace == null && memberTypeFlags == 0) { // stand-alone [aaa] as primary expression is array literal // declaration and should not come here! if (target == null) throw Kit.codeBug(); return new Node(Token.GETELEM, target, elem); } return createMemberRefGet(target, namespace, elem, memberTypeFlags); } private Node createMemberRefGet(Node target, String namespace, Node elem, int memberTypeFlags) { Node nsNode = null; if (namespace != null) { // See 11.1.2 in ECMA 357 if (namespace.equals("*")) { nsNode = new Node(Token.NULL); } else { nsNode = createName(namespace); } } Node ref; if (target == null) { if (namespace == null) { ref = new Node(Token.REF_NAME, elem); } else { ref = new Node(Token.REF_NS_NAME, nsNode, elem); } } else { if (namespace == null) { ref = new Node(Token.REF_MEMBER, target, elem); } else { ref = new Node(Token.REF_NS_MEMBER, target, nsNode, elem); } } if (memberTypeFlags != 0) { ref.putIntProp(Node.MEMBER_TYPE_PROP, memberTypeFlags); } return new Node(Token.GET_REF, ref); } /** * Binary */ Node createBinary(int nodeType, Node left, Node right) { switch (nodeType) { case Token.ADD: // numerical addition and string concatenation if (left.type == Token.STRING) { String s2; if (right.type == Token.STRING) { s2 = right.getString(); } else if (right.type == Token.NUMBER) { s2 = ScriptRuntime.numberToString(right.getDouble(), 10); } else { break; } String s1 = left.getString(); left.setString(s1.concat(s2)); return left; } else if (left.type == Token.NUMBER) { if (right.type == Token.NUMBER) { left.setDouble(left.getDouble() + right.getDouble()); return left; } else if (right.type == Token.STRING) { String s1, s2; s1 = ScriptRuntime.numberToString(left.getDouble(), 10); s2 = right.getString(); right.setString(s1.concat(s2)); return right; } } // can't do anything if we don't know both types - since // 0 + object is supposed to call toString on the object and do // string concantenation rather than addition break; case Token.SUB: // numerical subtraction if (left.type == Token.NUMBER) { double ld = left.getDouble(); if (right.type == Token.NUMBER) { //both numbers left.setDouble(ld - right.getDouble()); return left; } else if (ld == 0.0) { // first 0: 0-x -> -x return new Node(Token.NEG, right); } } else if (right.type == Token.NUMBER) { if (right.getDouble() == 0.0) { //second 0: x - 0 -> +x // can not make simply x because x - 0 must be number return new Node(Token.POS, left); } } break; case Token.MUL: // numerical multiplication if (left.type == Token.NUMBER) { double ld = left.getDouble(); if (right.type == Token.NUMBER) { //both numbers left.setDouble(ld * right.getDouble()); return left; } else if (ld == 1.0) { // first 1: 1 * x -> +x return new Node(Token.POS, right); } } else if (right.type == Token.NUMBER) { if (right.getDouble() == 1.0) { //second 1: x * 1 -> +x // can not make simply x because x - 0 must be number return new Node(Token.POS, left); } } // can't do x*0: Infinity * 0 gives NaN, not 0 break; case Token.DIV: // number division if (right.type == Token.NUMBER) { double rd = right.getDouble(); if (left.type == Token.NUMBER) { // both constants -- just divide, trust Java to handle x/0 left.setDouble(left.getDouble() / rd); return left; } else if (rd == 1.0) { // second 1: x/1 -> +x // not simply x to force number convertion return new Node(Token.POS, left); } } break; case Token.AND: { // Since x && y gives x, not false, when Boolean(x) is false, // and y, not Boolean(y), when Boolean(x) is true, x && y // can only be simplified if x is defined. See bug 309957. int leftStatus = isAlwaysDefinedBoolean(left); if (leftStatus == ALWAYS_FALSE_BOOLEAN) { // if the first one is false, just return it return left; } else if (leftStatus == ALWAYS_TRUE_BOOLEAN) { // if first is true, set to second return right; } break; } case Token.OR: { // Since x || y gives x, not true, when Boolean(x) is true, // and y, not Boolean(y), when Boolean(x) is false, x || y // can only be simplified if x is defined. See bug 309957. int leftStatus = isAlwaysDefinedBoolean(left); if (leftStatus == ALWAYS_TRUE_BOOLEAN) { // if the first one is true, just return it return left; } else if (leftStatus == ALWAYS_FALSE_BOOLEAN) { // if first is false, set to second return right; } break; } } return new Node(nodeType, left, right); } private Node simpleAssignment(Node left, Node right) { int nodeType = left.getType(); switch (nodeType) { case Token.NAME: left.setType(Token.BINDNAME); return new Node(Token.SETNAME, left, right); case Token.GETPROP: case Token.GETELEM: { Node obj = left.getFirstChild(); Node id = left.getLastChild(); int type; if (nodeType == Token.GETPROP) { type = Token.SETPROP; } else { type = Token.SETELEM; } return new Node(type, obj, id, right); } case Token.GET_REF: { Node ref = left.getFirstChild(); checkMutableReference(ref); return new Node(Token.SET_REF, ref, right); } } throw Kit.codeBug(); } private void checkMutableReference(Node n) { int memberTypeFlags = n.getIntProp(Node.MEMBER_TYPE_PROP, 0); if ((memberTypeFlags & Node.DESCENDANTS_FLAG) != 0) { parser.reportError("msg.bad.assign.left"); } } Node createAssignment(int assignType, Node left, Node right) { Node ref = makeReference(left); if (ref == null) { if (left.getType() == Token.ARRAYLIT || left.getType() == Token.OBJECTLIT) { if (assignType != Token.ASSIGN) { parser.reportError("msg.bad.destruct.op"); return right; } return createDestructuringAssignment(-1, left, right); } parser.reportError("msg.bad.assign.left"); return right; } left = ref; int assignOp; switch (assignType) { case Token.ASSIGN: return simpleAssignment(left, right); case Token.ASSIGN_BITOR: assignOp = Token.BITOR; break; case Token.ASSIGN_BITXOR: assignOp = Token.BITXOR; break; case Token.ASSIGN_BITAND: assignOp = Token.BITAND; break; case Token.ASSIGN_LSH: assignOp = Token.LSH; break; case Token.ASSIGN_RSH: assignOp = Token.RSH; break; case Token.ASSIGN_URSH: assignOp = Token.URSH; break; case Token.ASSIGN_ADD: assignOp = Token.ADD; break; case Token.ASSIGN_SUB: assignOp = Token.SUB; break; case Token.ASSIGN_MUL: assignOp = Token.MUL; break; case Token.ASSIGN_DIV: assignOp = Token.DIV; break; case Token.ASSIGN_MOD: assignOp = Token.MOD; break; default: throw Kit.codeBug(); } int nodeType = left.getType(); switch (nodeType) { case Token.NAME: { Node op = new Node(assignOp, left, right); Node lvalueLeft = Node.newString(Token.BINDNAME, left.getString()); return new Node(Token.SETNAME, lvalueLeft, op); } case Token.GETPROP: case Token.GETELEM: { Node obj = left.getFirstChild(); Node id = left.getLastChild(); int type = nodeType == Token.GETPROP ? Token.SETPROP_OP : Token.SETELEM_OP; Node opLeft = new Node(Token.USE_STACK); Node op = new Node(assignOp, opLeft, right); return new Node(type, obj, id, op); } case Token.GET_REF: { ref = left.getFirstChild(); checkMutableReference(ref); Node opLeft = new Node(Token.USE_STACK); Node op = new Node(assignOp, opLeft, right); return new Node(Token.SET_REF_OP, ref, op); } } throw Kit.codeBug(); } /** * Given a destructuring assignment with a left hand side parsed * as an array or object literal and a right hand side expression, * rewrite as a series of assignments to the variables defined in * left from property accesses to the expression on the right. * @param type declaration type: Token.VAR or Token.LET or -1 * @param left array or object literal containing NAME nodes for * variables to assign * @param right expression to assign from * @return expression that performs a series of assignments to * the variables defined in left */ Node createDestructuringAssignment(int type, Node left, Node right) { String tempName = parser.currentScriptOrFn.getNextTempName(); Node result = destructuringAssignmentHelper(type, left, right, tempName); Node comma = result.getLastChild(); comma.addChildToBack(createName(tempName)); return result; } private Node destructuringAssignmentHelper(int variableType, Node left, Node right, String tempName) { Node result = createScopeNode(Token.LETEXPR, parser.getCurrentLineNumber()); result.addChildToFront(new Node(Token.LET, createName(Token.NAME, tempName, right))); try { parser.pushScope(result); parser.defineSymbol(Token.LET, true, tempName); } finally { parser.popScope(); } Node comma = new Node(Token.COMMA); result.addChildToBack(comma); final int setOp = variableType == Token.CONST ? Token.SETCONST : Token.SETNAME; List destructuringNames = new ArrayList(); boolean empty = true; int type = left.getType(); if (type == Token.ARRAYLIT) { int index = 0; int[] skipIndices = (int[])left.getProp(Node.SKIP_INDEXES_PROP); int skip = 0; Node n = left.getFirstChild(); for (;;) { if (skipIndices != null) { while (skip < skipIndices.length && skipIndices[skip] == index) { skip++; index++; } } if (n == null) break; Node rightElem = new Node(Token.GETELEM, createName(tempName), createNumber(index)); if (n.getType() == Token.NAME) { String name = n.getString(); comma.addChildToBack(new Node(setOp, createName(Token.BINDNAME, name, null), rightElem)); if (variableType != -1) { parser.defineSymbol(variableType, true, name); destructuringNames.add(name); } } else { comma.addChildToBack( destructuringAssignmentHelper(variableType, n, rightElem, parser.currentScriptOrFn.getNextTempName())); } index++; empty = false; n = n.getNext(); } } else if (type == Token.OBJECTLIT) { int index = 0; Object[] propertyIds = (Object[]) left.getProp(Node.OBJECT_IDS_PROP); for (Node n = left.getFirstChild(); n != null; n = n.getNext()) { Object id = propertyIds[index]; Node rightElem = id instanceof String ? new Node(Token.GETPROP, createName(tempName), createString((String)id)) : new Node(Token.GETELEM, createName(tempName), createNumber(((Number)id).intValue())); if (n.getType() == Token.NAME) { String name = n.getString(); comma.addChildToBack(new Node(setOp, createName(Token.BINDNAME, name, null), rightElem)); if (variableType != -1) { parser.defineSymbol(variableType, true, name); destructuringNames.add(name); } } else { comma.addChildToBack( destructuringAssignmentHelper(variableType, n, rightElem, parser.currentScriptOrFn.getNextTempName())); } index++; empty = false; } } else if (type == Token.GETPROP || type == Token.GETELEM) { comma.addChildToBack(simpleAssignment(left, createName(tempName))); } else { parser.reportError("msg.bad.assign.left"); } if (empty) { // Don't want a COMMA node with no children. Just add a zero. comma.addChildToBack(createNumber(0)); } result.putProp(Node.DESTRUCTURING_NAMES, destructuringNames); return result; } Node createUseLocal(Node localBlock) { if (Token.LOCAL_BLOCK != localBlock.getType()) throw Kit.codeBug(); Node result = new Node(Token.LOCAL_LOAD); result.putProp(Node.LOCAL_BLOCK_PROP, localBlock); return result; } private Node.Jump makeJump(int type, Node target) { Node.Jump n = new Node.Jump(type); n.target = target; return n; } private Node makeReference(Node node) { int type = node.getType(); switch (type) { case Token.NAME: case Token.GETPROP: case Token.GETELEM: case Token.GET_REF: return node; case Token.CALL: node.setType(Token.REF_CALL); return new Node(Token.GET_REF, node); } // Signal caller to report error return null; } // Check if Node always mean true or false in boolean context private static int isAlwaysDefinedBoolean(Node node) { switch (node.getType()) { case Token.FALSE: case Token.NULL: return ALWAYS_FALSE_BOOLEAN; case Token.TRUE: return ALWAYS_TRUE_BOOLEAN; case Token.NUMBER: { double num = node.getDouble(); if (num == num && num != 0.0) { return ALWAYS_TRUE_BOOLEAN; } else { return ALWAYS_FALSE_BOOLEAN; } } } return 0; } private void checkActivationName(String name, int token) { if (parser.insideFunction()) { boolean activation = false; if ("arguments".equals(name) || (parser.compilerEnv.activationNames != null && parser.compilerEnv.activationNames.contains(name))) { activation = true; } else if ("length".equals(name)) { if (token == Token.GETPROP && parser.compilerEnv.getLanguageVersion() == Context.VERSION_1_2) { // Use of "length" in 1.2 requires an activation object. activation = true; } } if (activation) { setRequiresActivation(); } } } private void setRequiresActivation() { if (parser.insideFunction()) { ((FunctionNode)parser.currentScriptOrFn).itsNeedsActivation = true; } } private void setIsGenerator() { if (parser.insideFunction()) { ((FunctionNode)parser.currentScriptOrFn).itsIsGenerator = true; } } private Parser parser; private static final int LOOP_DO_WHILE = 0; private static final int LOOP_WHILE = 1; private static final int LOOP_FOR = 2; private static final int ALWAYS_TRUE_BOOLEAN = 1; private static final int ALWAYS_FALSE_BOOLEAN = -1; } carmetal-4.3/src/org/mozilla/javascript/IdFunctionCall.java000066400000000000000000000040531417122252700240510ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * Master for id-based functions that knows their properties and how to * execute them. */ public interface IdFunctionCall { /** * 'thisObj' will be null if invoked as constructor, in which case * instance of Scriptable should be returned */ public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args); } carmetal-4.3/src/org/mozilla/javascript/IdFunctionObject.java000066400000000000000000000136201417122252700244040ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; public class IdFunctionObject extends BaseFunction { static final long serialVersionUID = -5332312783643935019L; public IdFunctionObject(IdFunctionCall idcall, Object tag, int id, int arity) { if (arity < 0) throw new IllegalArgumentException(); this.idcall = idcall; this.tag = tag; this.methodId = id; this.arity = arity; if (arity < 0) throw new IllegalArgumentException(); } public IdFunctionObject(IdFunctionCall idcall, Object tag, int id, String name, int arity, Scriptable scope) { super(scope, null); if (arity < 0) throw new IllegalArgumentException(); if (name == null) throw new IllegalArgumentException(); this.idcall = idcall; this.tag = tag; this.methodId = id; this.arity = arity; this.functionName = name; } public void initFunction(String name, Scriptable scope) { if (name == null) throw new IllegalArgumentException(); if (scope == null) throw new IllegalArgumentException(); this.functionName = name; setParentScope(scope); } public final boolean hasTag(Object tag) { return this.tag == tag; } public final int methodId() { return methodId; } public final void markAsConstructor(Scriptable prototypeProperty) { useCallAsConstructor = true; setImmunePrototypeProperty(prototypeProperty); } public final void addAsProperty(Scriptable target) { ScriptableObject.defineProperty(target, functionName, this, ScriptableObject.DONTENUM); } public void exportAsScopeProperty() { addAsProperty(getParentScope()); } @Override public Scriptable getPrototype() { // Lazy initialization of prototype: for native functions this // may not be called at all Scriptable proto = super.getPrototype(); if (proto == null) { proto = getFunctionPrototype(getParentScope()); setPrototype(proto); } return proto; } @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return idcall.execIdCall(this, cx, scope, thisObj, args); } @Override public Scriptable createObject(Context cx, Scriptable scope) { if (useCallAsConstructor) { return null; } // Throw error if not explicitly coded to be used as constructor, // to satisfy ECMAScript standard (see bugzilla 202019). // To follow current (2003-05-01) SpiderMonkey behavior, change it to: // return super.createObject(cx, scope); throw ScriptRuntime.typeError1("msg.not.ctor", functionName); } @Override String decompile(int indent, int flags) { StringBuffer sb = new StringBuffer(); boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG)); if (!justbody) { sb.append("function "); sb.append(getFunctionName()); sb.append("() { "); } sb.append("[native code for "); if (idcall instanceof Scriptable) { Scriptable sobj = (Scriptable)idcall; sb.append(sobj.getClassName()); sb.append('.'); } sb.append(getFunctionName()); sb.append(", arity="); sb.append(getArity()); sb.append(justbody ? "]\n" : "] }\n"); return sb.toString(); } @Override public int getArity() { return arity; } @Override public int getLength() { return getArity(); } @Override public String getFunctionName() { return (functionName == null) ? "" : functionName; } public final RuntimeException unknown() { // It is program error to call id-like methods for unknown function return new IllegalArgumentException( "BAD FUNCTION ID="+methodId+" MASTER="+idcall); } private final IdFunctionCall idcall; private final Object tag; private final int methodId; private int arity; private boolean useCallAsConstructor; private String functionName; } carmetal-4.3/src/org/mozilla/javascript/IdScriptableObject.java000066400000000000000000000604461417122252700247170ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.io.*; /** Base class for native object implementation that uses IdFunctionObject to export its methods to script via .prototype object. Any descendant should implement at least the following methods: findInstanceIdInfo getInstanceIdName execIdCall methodArity To define non-function properties, the descendant should override getInstanceIdValue setInstanceIdValue to get/set property value and provide its default attributes. To customize initializition of constructor and protype objects, descendant may override scopeInit or fillConstructorProperties methods. */ public abstract class IdScriptableObject extends ScriptableObject implements IdFunctionCall { private transient volatile PrototypeValues prototypeValues; private static final class PrototypeValues implements Serializable { static final long serialVersionUID = 3038645279153854371L; private static final int VALUE_SLOT = 0; private static final int NAME_SLOT = 1; private static final int SLOT_SPAN = 2; private IdScriptableObject obj; private int maxId; private volatile Object[] valueArray; private volatile short[] attributeArray; private volatile int lastFoundId = 1; // The following helps to avoid creation of valueArray during runtime // initialization for common case of "constructor" property int constructorId; private IdFunctionObject constructor; private short constructorAttrs; PrototypeValues(IdScriptableObject obj, int maxId) { if (obj == null) throw new IllegalArgumentException(); if (maxId < 1) throw new IllegalArgumentException(); this.obj = obj; this.maxId = maxId; } final int getMaxId() { return maxId; } final void initValue(int id, String name, Object value, int attributes) { if (!(1 <= id && id <= maxId)) throw new IllegalArgumentException(); if (name == null) throw new IllegalArgumentException(); if (value == NOT_FOUND) throw new IllegalArgumentException(); ScriptableObject.checkValidAttributes(attributes); if (obj.findPrototypeId(name) != id) throw new IllegalArgumentException(name); if (id == constructorId) { if (!(value instanceof IdFunctionObject)) { throw new IllegalArgumentException("consructor should be initialized with IdFunctionObject"); } constructor = (IdFunctionObject)value; constructorAttrs = (short)attributes; return; } initSlot(id, name, value, attributes); } private void initSlot(int id, String name, Object value, int attributes) { Object[] array = valueArray; if (array == null) throw new IllegalStateException(); if (value == null) { value = UniqueTag.NULL_VALUE; } int index = (id - 1) * SLOT_SPAN; synchronized (this) { Object value2 = array[index + VALUE_SLOT]; if (value2 == null) { array[index + VALUE_SLOT] = value; array[index + NAME_SLOT] = name; attributeArray[id - 1] = (short)attributes; } else { if (!name.equals(array[index + NAME_SLOT])) throw new IllegalStateException(); } } } final IdFunctionObject createPrecachedConstructor() { if (constructorId != 0) throw new IllegalStateException(); constructorId = obj.findPrototypeId("constructor"); if (constructorId == 0) { throw new IllegalStateException( "No id for constructor property"); } obj.initPrototypeId(constructorId); if (constructor == null) { throw new IllegalStateException( obj.getClass().getName()+".initPrototypeId() did not " +"initialize id="+constructorId); } constructor.initFunction(obj.getClassName(), ScriptableObject.getTopLevelScope(obj)); constructor.markAsConstructor(obj); return constructor; } final int findId(String name) { Object[] array = valueArray; if (array == null) { return obj.findPrototypeId(name); } int id = lastFoundId; if (name == array[(id - 1) * SLOT_SPAN + NAME_SLOT]) { return id; } id = obj.findPrototypeId(name); if (id != 0) { int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT; // Make cache to work! array[nameSlot] = name; lastFoundId = id; } return id; } final boolean has(int id) { Object[] array = valueArray; if (array == null) { // Not yet initialized, assume all exists return true; } int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT; Object value = array[valueSlot]; if (value == null) { // The particular entry has not been yet initialized return true; } return value != NOT_FOUND; } final Object get(int id) { Object value = ensureId(id); if (value == UniqueTag.NULL_VALUE) { value = null; } return value; } final void set(int id, Scriptable start, Object value) { if (value == NOT_FOUND) throw new IllegalArgumentException(); ensureId(id); int attr = attributeArray[id - 1]; if ((attr & READONLY) == 0) { if (start == obj) { if (value == null) { value = UniqueTag.NULL_VALUE; } int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT; synchronized (this) { valueArray[valueSlot] = value; } } else { int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT; String name = (String)valueArray[nameSlot]; start.put(name, start, value); } } } final void delete(int id) { ensureId(id); int attr = attributeArray[id - 1]; if ((attr & PERMANENT) == 0) { int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT; synchronized (this) { valueArray[valueSlot] = NOT_FOUND; attributeArray[id - 1] = EMPTY; } } } final int getAttributes(int id) { ensureId(id); return attributeArray[id - 1]; } final void setAttributes(int id, int attributes) { ScriptableObject.checkValidAttributes(attributes); ensureId(id); synchronized (this) { attributeArray[id - 1] = (short)attributes; } } final Object[] getNames(boolean getAll, Object[] extraEntries) { Object[] names = null; int count = 0; for (int id = 1; id <= maxId; ++id) { Object value = ensureId(id); if (getAll || (attributeArray[id - 1] & DONTENUM) == 0) { if (value != NOT_FOUND) { int nameSlot = (id - 1) * SLOT_SPAN + NAME_SLOT; String name = (String)valueArray[nameSlot]; if (names == null) { names = new Object[maxId]; } names[count++] = name; } } } if (count == 0) { return extraEntries; } else if (extraEntries == null || extraEntries.length == 0) { if (count != names.length) { Object[] tmp = new Object[count]; System.arraycopy(names, 0, tmp, 0, count); names = tmp; } return names; } else { int extra = extraEntries.length; Object[] tmp = new Object[extra + count]; System.arraycopy(extraEntries, 0, tmp, 0, extra); System.arraycopy(names, 0, tmp, extra, count); return tmp; } } private Object ensureId(int id) { Object[] array = valueArray; if (array == null) { synchronized (this) { array = valueArray; if (array == null) { array = new Object[maxId * SLOT_SPAN]; valueArray = array; attributeArray = new short[maxId]; } } } int valueSlot = (id - 1) * SLOT_SPAN + VALUE_SLOT; Object value = array[valueSlot]; if (value == null) { if (id == constructorId) { initSlot(constructorId, "constructor", constructor, constructorAttrs); constructor = null; // no need to refer it any longer } else { obj.initPrototypeId(id); } value = array[valueSlot]; if (value == null) { throw new IllegalStateException( obj.getClass().getName()+".initPrototypeId(int id) " +"did not initialize id="+id); } } return value; } } public IdScriptableObject() { } public IdScriptableObject(Scriptable scope, Scriptable prototype) { super(scope, prototype); } protected final Object defaultGet(String name) { return super.get(name, this); } protected final void defaultPut(String name, Object value) { super.put(name, this, value); } @Override public boolean has(String name, Scriptable start) { int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); if ((attr & PERMANENT) != 0) { return true; } int id = (info & 0xFFFF); return NOT_FOUND != getInstanceIdValue(id); } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { return prototypeValues.has(id); } } return super.has(name, start); } @Override public Object get(String name, Scriptable start) { int info = findInstanceIdInfo(name); if (info != 0) { int id = (info & 0xFFFF); return getInstanceIdValue(id); } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { return prototypeValues.get(id); } } return super.get(name, start); } @Override public void put(String name, Scriptable start, Object value) { int info = findInstanceIdInfo(name); if (info != 0) { if (start == this && isSealed()) { throw Context.reportRuntimeError1("msg.modify.sealed", name); } int attr = (info >>> 16); if ((attr & READONLY) == 0) { if (start == this) { int id = (info & 0xFFFF); setInstanceIdValue(id, value); } else { start.put(name, start, value); } } return; } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { if (start == this && isSealed()) { throw Context.reportRuntimeError1("msg.modify.sealed", name); } prototypeValues.set(id, start, value); return; } } super.put(name, start, value); } @Override public void delete(String name) { int info = findInstanceIdInfo(name); if (info != 0) { // Let the super class to throw exceptions for sealed objects if (!isSealed()) { int attr = (info >>> 16); if ((attr & PERMANENT) == 0) { int id = (info & 0xFFFF); setInstanceIdValue(id, NOT_FOUND); } return; } } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { if (!isSealed()) { prototypeValues.delete(id); } return; } } super.delete(name); } @Override public int getAttributes(String name) { int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); return attr; } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { return prototypeValues.getAttributes(id); } } return super.getAttributes(name); } @Override public void setAttributes(String name, int attributes) { ScriptableObject.checkValidAttributes(attributes); int info = findInstanceIdInfo(name); if (info != 0) { int currentAttributes = (info >>> 16); if (attributes != currentAttributes) { throw new RuntimeException( "Change of attributes for this id is not supported"); } return; } if (prototypeValues != null) { int id = prototypeValues.findId(name); if (id != 0) { prototypeValues.setAttributes(id, attributes); return; } } super.setAttributes(name, attributes); } @Override Object[] getIds(boolean getAll) { Object[] result = super.getIds(getAll); if (prototypeValues != null) { result = prototypeValues.getNames(getAll, result); } int maxInstanceId = getMaxInstanceId(); if (maxInstanceId != 0) { Object[] ids = null; int count = 0; for (int id = maxInstanceId; id != 0; --id) { String name = getInstanceIdName(id); int info = findInstanceIdInfo(name); if (info != 0) { int attr = (info >>> 16); if ((attr & PERMANENT) == 0) { if (NOT_FOUND == getInstanceIdValue(id)) { continue; } } if (getAll || (attr & DONTENUM) == 0) { if (count == 0) { // Need extra room for no more then [1..id] names ids = new Object[id]; } ids[count++] = name; } } } if (count != 0) { if (result.length == 0 && ids.length == count) { result = ids; } else { Object[] tmp = new Object[result.length + count]; System.arraycopy(result, 0, tmp, 0, result.length); System.arraycopy(ids, 0, tmp, result.length, count); result = tmp; } } } return result; } /** * Get maximum id findInstanceIdInfo can generate. */ protected int getMaxInstanceId() { return 0; } protected static int instanceIdInfo(int attributes, int id) { return (attributes << 16) | id; } /** * Map name to id of instance property. * Should return 0 if not found or the result of * {@link #instanceIdInfo(int, int)}. */ protected int findInstanceIdInfo(String name) { return 0; } /** Map id back to property name it defines. */ protected String getInstanceIdName(int id) { throw new IllegalArgumentException(String.valueOf(id)); } /** Get id value. ** If id value is constant, descendant can call cacheIdValue to store ** value in the permanent cache. ** Default implementation creates IdFunctionObject instance for given id ** and cache its value */ protected Object getInstanceIdValue(int id) { throw new IllegalStateException(String.valueOf(id)); } /** * Set or delete id value. If value == NOT_FOUND , the implementation * should make sure that the following getInstanceIdValue return NOT_FOUND. */ protected void setInstanceIdValue(int id, Object value) { throw new IllegalStateException(String.valueOf(id)); } /** 'thisObj' will be null if invoked as constructor, in which case ** instance of Scriptable should be returned. */ public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { throw f.unknown(); } public final IdFunctionObject exportAsJSClass(int maxPrototypeId, Scriptable scope, boolean sealed) { // Set scope and prototype unless this is top level scope itself if (scope != this && scope != null) { setParentScope(scope); setPrototype(getObjectPrototype(scope)); } activatePrototypeMap(maxPrototypeId); IdFunctionObject ctor = prototypeValues.createPrecachedConstructor(); if (sealed) { sealObject(); } fillConstructorProperties(ctor); if (sealed) { ctor.sealObject(); } ctor.exportAsScopeProperty(); return ctor; } public final boolean hasPrototypeMap() { return prototypeValues != null; } public final void activatePrototypeMap(int maxPrototypeId) { PrototypeValues values = new PrototypeValues(this, maxPrototypeId); synchronized (this) { if (prototypeValues != null) throw new IllegalStateException(); prototypeValues = values; } } public final void initPrototypeMethod(Object tag, int id, String name, int arity) { Scriptable scope = ScriptableObject.getTopLevelScope(this); IdFunctionObject f = newIdFunction(tag, id, name, arity, scope); prototypeValues.initValue(id, name, f, DONTENUM); } public final void initPrototypeConstructor(IdFunctionObject f) { int id = prototypeValues.constructorId; if (id == 0) throw new IllegalStateException(); if (f.methodId() != id) throw new IllegalArgumentException(); if (isSealed()) { f.sealObject(); } prototypeValues.initValue(id, "constructor", f, DONTENUM); } public final void initPrototypeValue(int id, String name, Object value, int attributes) { prototypeValues.initValue(id, name, value, attributes); } protected void initPrototypeId(int id) { throw new IllegalStateException(String.valueOf(id)); } protected int findPrototypeId(String name) { throw new IllegalStateException(name); } protected void fillConstructorProperties(IdFunctionObject ctor) { } protected void addIdFunctionProperty(Scriptable obj, Object tag, int id, String name, int arity) { Scriptable scope = ScriptableObject.getTopLevelScope(obj); IdFunctionObject f = newIdFunction(tag, id, name, arity, scope); f.addAsProperty(obj); } /** * Utility method to construct type error to indicate incompatible call * when converting script thisObj to a particular type is not possible. * Possible usage would be to have a private function like realThis: *

         *  private static NativeSomething realThis(Scriptable thisObj,
         *                                          IdFunctionObject f)
         *  {
         *      if (!(thisObj instanceof NativeSomething))
         *          throw incompatibleCallError(f);
         *      return (NativeSomething)thisObj;
         * }
         * 
    * Note that although such function can be implemented universally via * java.lang.Class.isInstance(), it would be much more slower. * @param f function that is attempting to convert 'this' * object. * @return Scriptable object suitable for a check by the instanceof * operator. * @throws RuntimeException if no more instanceof target can be found */ protected static EcmaError incompatibleCallError(IdFunctionObject f) { throw ScriptRuntime.typeError1("msg.incompat.call", f.getFunctionName()); } private IdFunctionObject newIdFunction(Object tag, int id, String name, int arity, Scriptable scope) { IdFunctionObject f = new IdFunctionObject(this, tag, id, name, arity, scope); if (isSealed()) { f.sealObject(); } return f; } private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); int maxPrototypeId = stream.readInt(); if (maxPrototypeId != 0) { activatePrototypeMap(maxPrototypeId); } } private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); int maxPrototypeId = 0; if (prototypeValues != null) { maxPrototypeId = prototypeValues.getMaxId(); } stream.writeInt(maxPrototypeId); } } carmetal-4.3/src/org/mozilla/javascript/ImporterTopLevel.java000066400000000000000000000251571417122252700244770ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Matthias Radestock * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ // API class package org.mozilla.javascript; /** * Class ImporterTopLevel * * This class defines a ScriptableObject that can be instantiated * as a top-level ("global") object to provide functionality similar * to Java's "import" statement. *

    * This class can be used to create a top-level scope using the following code: *

     *  Scriptable scope = new ImporterTopLevel(cx);
     * 
    * Then JavaScript code will have access to the following methods: *
      *
    • importClass - will "import" a class by making its unqualified name * available as a property of the top-level scope *
    • importPackage - will "import" all the classes of the package by * searching for unqualified names as classes qualified * by the given package. *
    * The following code from the shell illustrates this use: *
     * js> importClass(java.io.File)
     * js> f = new File('help.txt')
     * help.txt
     * js> importPackage(java.util)
     * js> v = new Vector()
     * []
     *
     * @author Norris Boyd
     */
    public class ImporterTopLevel extends IdScriptableObject
    {
        static final long serialVersionUID = -9095380847465315412L;
    
        private static final Object IMPORTER_TAG = "Importer";
    
        public ImporterTopLevel() { }
    
        public ImporterTopLevel(Context cx) {
            this(cx, false);
        }
    
        public ImporterTopLevel(Context cx, boolean sealed)
        {
            initStandardObjects(cx, sealed);
        }
    
        @Override
        public String getClassName()
        {
            return (topScopeFlag) ? "global" : "JavaImporter";
        }
    
        public static void init(Context cx, Scriptable scope, boolean sealed)
        {
            ImporterTopLevel obj = new ImporterTopLevel();
            obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
        }
    
        public void initStandardObjects(Context cx, boolean sealed)
        {
            // Assume that Context.initStandardObjects initialize JavaImporter
            // property lazily so the above init call is not yet called
            cx.initStandardObjects(this, sealed);
            topScopeFlag = true;
            // If seal is true then exportAsJSClass(cx, seal) would seal
            // this obj. Since this is scope as well, it would not allow
            // to add variables.
            IdFunctionObject ctor = exportAsJSClass(MAX_PROTOTYPE_ID, this, false);
            if (sealed) {
                ctor.sealObject();
            }
            // delete "constructor" defined by exportAsJSClass so "constructor"
            // name would refer to Object.constructor
            // and not to JavaImporter.prototype.constructor.
            delete("constructor");
        }
    
        @Override
        public boolean has(String name, Scriptable start) {
            return super.has(name, start)
                   || getPackageProperty(name, start) != NOT_FOUND;
        }
    
        @Override
        public Object get(String name, Scriptable start) {
            Object result = super.get(name, start);
            if (result != NOT_FOUND)
                return result;
            result = getPackageProperty(name, start);
            return result;
        }
    
        private Object getPackageProperty(String name, Scriptable start) {
            Object result = NOT_FOUND;
            Object[] elements;
            synchronized (importedPackages) {
                elements = importedPackages.toArray();
            }
            for (int i=0; i < elements.length; i++) {
                NativeJavaPackage p = (NativeJavaPackage) elements[i];
                Object v = p.getPkgProperty(name, start, false);
                if (v != null && !(v instanceof NativeJavaPackage)) {
                    if (result == NOT_FOUND) {
                        result = v;
                    } else {
                        throw Context.reportRuntimeError2(
                            "msg.ambig.import", result.toString(), v.toString());
                    }
                }
            }
            return result;
        }
    
        /**
         * @deprecated Kept only for compatibility.
         */
        public void importPackage(Context cx, Scriptable thisObj, Object[] args,
                                  Function funObj)
        {
            js_importPackage(args);
        }
    
        private Object js_construct(Scriptable scope, Object[] args)
        {
            ImporterTopLevel result = new ImporterTopLevel();
            for (int i = 0; i != args.length; ++i) {
                Object arg = args[i];
                if (arg instanceof NativeJavaClass) {
                    result.importClass((NativeJavaClass)arg);
                } else if (arg instanceof NativeJavaPackage) {
                    result.importPackage((NativeJavaPackage)arg);
                } else {
                    throw Context.reportRuntimeError1(
                        "msg.not.class.not.pkg", Context.toString(arg));
                }
            }
            // set explicitly prototype and scope
            // as otherwise in top scope mode BaseFunction.construct
            // would keep them set to null. It also allow to use
            // JavaImporter without new and still get properly
            // initialized object.
            result.setParentScope(scope);
            result.setPrototype(this);
            return result;
        }
    
        private Object js_importClass(Object[] args)
        {
            for (int i = 0; i != args.length; i++) {
                Object arg = args[i];
                if (!(arg instanceof NativeJavaClass)) {
                    throw Context.reportRuntimeError1(
                        "msg.not.class", Context.toString(arg));
                }
                importClass((NativeJavaClass)arg);
            }
            return Undefined.instance;
        }
    
        private Object js_importPackage(Object[] args)
        {
            for (int i = 0; i != args.length; i++) {
                Object arg = args[i];
                if (!(arg instanceof NativeJavaPackage)) {
                    throw Context.reportRuntimeError1(
                        "msg.not.pkg", Context.toString(arg));
                }
                importPackage((NativeJavaPackage)arg);
            }
            return Undefined.instance;
        }
    
        private void importPackage(NativeJavaPackage pkg)
        {
            if(pkg == null) {
                return;
            }
            synchronized (importedPackages) {
                for (int j = 0; j != importedPackages.size(); j++) {
                    if (pkg.equals(importedPackages.get(j))) {
                        return;
                    }
                }
                importedPackages.add(pkg);
            }
        }
    
        private void importClass(NativeJavaClass cl)
        {
            String s = cl.getClassObject().getName();
            String n = s.substring(s.lastIndexOf('.')+1);
            Object val = get(n, this);
            if (val != NOT_FOUND && val != cl) {
                throw Context.reportRuntimeError1("msg.prop.defined", n);
            }
            //defineProperty(n, cl, DONTENUM);
            put(n, this, cl);
        }
    
        @Override
        protected void initPrototypeId(int id)
        {
            String s;
            int arity;
            switch (id) {
              case Id_constructor:   arity=0; s="constructor";   break;
              case Id_importClass:   arity=1; s="importClass";   break;
              case Id_importPackage: arity=1; s="importPackage"; break;
              default: throw new IllegalArgumentException(String.valueOf(id));
            }
            initPrototypeMethod(IMPORTER_TAG, id, s, arity);
        }
    
        @Override
        public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
                                 Scriptable thisObj, Object[] args)
        {
            if (!f.hasTag(IMPORTER_TAG)) {
                return super.execIdCall(f, cx, scope, thisObj, args);
            }
            int id = f.methodId();
            switch (id) {
              case Id_constructor:
                return js_construct(scope, args);
    
              case Id_importClass:
                return realThis(thisObj, f).js_importClass(args);
    
              case Id_importPackage:
                return realThis(thisObj, f).js_importPackage(args);
            }
            throw new IllegalArgumentException(String.valueOf(id));
        }
    
        private ImporterTopLevel realThis(Scriptable thisObj, IdFunctionObject f)
        {
            if (topScopeFlag) {
                // when used as top scope importPackage and importClass are global
                // function that ignore thisObj
                return this;
            }
            if (!(thisObj instanceof ImporterTopLevel))
                throw incompatibleCallError(f);
            return (ImporterTopLevel)thisObj;
        }
    
    // #string_id_map#
    
        @Override
        protected int findPrototypeId(String s)
        {
            int id;
    // #generated# Last update: 2007-05-09 08:15:24 EDT
            L0: { id = 0; String X = null; int c;
                int s_length = s.length();
                if (s_length==11) {
                    c=s.charAt(0);
                    if (c=='c') { X="constructor";id=Id_constructor; }
                    else if (c=='i') { X="importClass";id=Id_importClass; }
                }
                else if (s_length==13) { X="importPackage";id=Id_importPackage; }
                if (X!=null && X!=s && !X.equals(s)) id = 0;
                break L0;
            }
    // #/generated#
            return id;
        }
    
        private static final int
            Id_constructor          = 1,
            Id_importClass          = 2,
            Id_importPackage        = 3,
            MAX_PROTOTYPE_ID        = 3;
    
    // #/string_id_map#
    
        private ObjArray importedPackages = new ObjArray();
        private boolean topScopeFlag;
    }
    carmetal-4.3/src/org/mozilla/javascript/InterfaceAdapter.java000066400000000000000000000134441417122252700244200ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-1999
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Igor Bukanov
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import java.lang.reflect.Method;
    
    /**
     * Adapter to use JS function as implementation of Java interfaces with
     * single method or multiple methods with the same signature.
     */
    public class InterfaceAdapter
    {
        private final Object proxyHelper;
    
        /**
         * Make glue object implementing interface cl that will
         * call the supplied JS function when called.
         * Only interfaces were all methods have the same signature is supported.
         *
         * @return The glue object or null if cl is not interface or
         *         has methods with different signatures.
         */
        static Object create(Context cx, Class cl, Callable function)
        {
            if (!cl.isInterface()) throw new IllegalArgumentException();
    
            Scriptable topScope = ScriptRuntime.getTopCallScope(cx);
            ClassCache cache = ClassCache.get(topScope);
            InterfaceAdapter adapter;
            adapter = (InterfaceAdapter)cache.getInterfaceAdapter(cl);
            ContextFactory cf = cx.getFactory();
            if (adapter == null) {
                Method[] methods = cl.getMethods();
                if (methods.length == 0) {
                    throw Context.reportRuntimeError2(
                        "msg.no.empty.interface.conversion",
                        String.valueOf(function),
                        cl.getClass().getName());
                }
                boolean canCallFunction = false;
              canCallFunctionChecks: {
                    Class[] argTypes = methods[0].getParameterTypes();
                    // check that the rest of methods has the same signature
                    for (int i = 1; i != methods.length; ++i) {
                        Class[] types2 = methods[i].getParameterTypes();
                        if (types2.length != argTypes.length) {
                            break canCallFunctionChecks;
                        }
                        for (int j = 0; j != argTypes.length; ++j) {
                            if (types2[j] != argTypes[j]) {
                                break canCallFunctionChecks;
                            }
                        }
                    }
                    canCallFunction= true;
                }
                if (!canCallFunction) {
                    throw Context.reportRuntimeError2(
                        "msg.no.function.interface.conversion",
                        String.valueOf(function),
                        cl.getClass().getName());
                }
                adapter = new InterfaceAdapter(cf, cl);
                cache.cacheInterfaceAdapter(cl, adapter);
            }
            return VMBridge.instance.newInterfaceProxy(
                adapter.proxyHelper, cf, adapter, function, topScope);
        }
    
        private InterfaceAdapter(ContextFactory cf, Class cl)
        {
            this.proxyHelper
                = VMBridge.instance.getInterfaceProxyHelper(
                    cf, new Class[] { cl });
        }
    
        public Object invoke(ContextFactory cf,
                             final Object target,
                             final Scriptable topScope,
                             final Method method,
                             final Object[] args)
        {
            ContextAction action = new ContextAction() {
                    public Object run(Context cx)
                    {
                        return invokeImpl(cx, target, topScope, method, args);
                    }
                };
            return cf.call(action);
        }
    
        Object invokeImpl(Context cx,
                          Object target,
                          Scriptable topScope,
                          Method method,
                          Object[] args)
        {
            int N = (args == null) ? 0 : args.length;
    
            Callable function = (Callable)target;
            Scriptable thisObj = topScope;
            Object[] jsargs = new Object[N + 1];
            jsargs[N] = method.getName();
            if (N != 0) {
                WrapFactory wf = cx.getWrapFactory();
                for (int i = 0; i != N; ++i) {
                    jsargs[i] = wf.wrap(cx, topScope, args[i], null);
                }
            }
    
            Object result = function.call(cx, topScope, thisObj, jsargs);
            Class javaResultType = method.getReturnType();
            if (javaResultType == Void.TYPE) {
                result = null;
            } else {
                result = Context.jsToJava(result, javaResultType);
            }
            return result;
        }
    }
    carmetal-4.3/src/org/mozilla/javascript/InterpretedFunction.java000066400000000000000000000164701417122252700252140ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-2000
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Igor Bukanov
     *   Bob Jervis
     *   Roger Lawrence
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import org.mozilla.javascript.debug.DebuggableScript;
    
    final class InterpretedFunction extends NativeFunction implements Script
    {
        static final long serialVersionUID = 541475680333911468L;
    
        InterpreterData idata;
        SecurityController securityController;
        Object securityDomain;
        Scriptable[] functionRegExps;
    
        private InterpretedFunction(InterpreterData idata,
                                    Object staticSecurityDomain)
        {
            this.idata = idata;
    
            // Always get Context from the current thread to
            // avoid security breaches via passing mangled Context instances
            // with bogus SecurityController
            Context cx = Context.getContext();
            SecurityController sc = cx.getSecurityController();
            Object dynamicDomain;
            if (sc != null) {
                dynamicDomain = sc.getDynamicSecurityDomain(staticSecurityDomain);
            } else {
                if (staticSecurityDomain != null) {
                    throw new IllegalArgumentException();
                }
                dynamicDomain = null;
            }
    
            this.securityController = sc;
            this.securityDomain = dynamicDomain;
        }
    
        private InterpretedFunction(InterpretedFunction parent, int index)
        {
            this.idata = parent.idata.itsNestedFunctions[index];
            this.securityController = parent.securityController;
            this.securityDomain = parent.securityDomain;
        }
    
        /**
         * Create script from compiled bytecode.
         */
        static InterpretedFunction createScript(InterpreterData idata,
                                                Object staticSecurityDomain)
        {
            InterpretedFunction f;
            f = new InterpretedFunction(idata, staticSecurityDomain);
            return f;
        }
    
        /**
         * Create function compiled from Function(...) constructor.
         */
        static InterpretedFunction createFunction(Context cx,Scriptable scope,
                                                  InterpreterData idata,
                                                  Object staticSecurityDomain)
        {
            InterpretedFunction f;
            f = new InterpretedFunction(idata, staticSecurityDomain);
            f.initInterpretedFunction(cx, scope);
            return f;
        }
    
        /**
         * Create function embedded in script or another function.
         */
        static InterpretedFunction createFunction(Context cx, Scriptable scope,
                                                  InterpretedFunction  parent,
                                                  int index)
        {
            InterpretedFunction f = new InterpretedFunction(parent, index);
            f.initInterpretedFunction(cx, scope);
            return f;
        }
    
        Scriptable[] createRegExpWraps(Context cx, Scriptable scope)
        {
            if (idata.itsRegExpLiterals == null) Kit.codeBug();
    
            RegExpProxy rep = ScriptRuntime.checkRegExpProxy(cx);
            int N = idata.itsRegExpLiterals.length;
            Scriptable[] array = new Scriptable[N];
            for (int i = 0; i != N; ++i) {
                array[i] = rep.wrapRegExp(cx, scope, idata.itsRegExpLiterals[i]);
            }
            return array;
        }
    
        private void initInterpretedFunction(Context cx, Scriptable scope)
        {
            initScriptFunction(cx, scope);
            if (idata.itsRegExpLiterals != null) {
                functionRegExps = createRegExpWraps(cx, scope);
            }
        }
    
        @Override
        public String getFunctionName()
        {
            return (idata.itsName == null) ? "" : idata.itsName;
        }
    
        /**
         * Calls the function.
         * @param cx the current context 
         * @param scope the scope used for the call
         * @param thisObj the value of "this"
         * @param args function arguments. Must not be null. You can use 
         * {@link ScriptRuntime#emptyArgs} to pass empty arguments.
         * @return the result of the function call.
         */
        @Override
        public Object call(Context cx, Scriptable scope, Scriptable thisObj,
                           Object[] args)
        {
            if (!ScriptRuntime.hasTopCall(cx)) {
                return ScriptRuntime.doTopCall(this, cx, scope, thisObj, args);
            }
            return Interpreter.interpret(this, cx, scope, thisObj, args);
        }
    
        public Object exec(Context cx, Scriptable scope)
        {
            if (!isScript()) {
                // Can only be applied to scripts
                throw new IllegalStateException();
            }
            if (!ScriptRuntime.hasTopCall(cx)) {
                // It will go through "call" path. but they are equivalent
                return ScriptRuntime.doTopCall(
                    this, cx, scope, scope, ScriptRuntime.emptyArgs);
            }
            return Interpreter.interpret(
                this, cx, scope, scope, ScriptRuntime.emptyArgs);
        }
        
        public boolean isScript() {
            return idata.itsFunctionType == 0;
        }
    
        @Override
        public String getEncodedSource()
        {
            return Interpreter.getEncodedSource(idata);
        }
    
        @Override
        public DebuggableScript getDebuggableView()
        {
            return idata;
        }
    
        @Override
        public Object resumeGenerator(Context cx, Scriptable scope, int operation,
                                      Object state, Object value)
        {
            return Interpreter.resumeGenerator(cx, scope, operation, state, value);
        }
    
        @Override
        protected int getLanguageVersion()
        {
            return idata.languageVersion;
        }
    
        @Override
        protected int getParamCount()
        {
            return idata.argCount;
        }
    
        @Override
        protected int getParamAndVarCount()
        {
            return idata.argNames.length;
        }
    
        @Override
        protected String getParamOrVarName(int index)
        {
            return idata.argNames[index];
        }
    
        @Override
        protected boolean getParamOrVarConst(int index)
        {
            return idata.argIsConst[index];
        }
    }
    
    carmetal-4.3/src/org/mozilla/javascript/Interpreter.java000066400000000000000000005160171417122252700235260ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-2000
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Patrick Beard
     *   Norris Boyd
     *   Igor Bukanov
     *   Ethan Hugg
     *   Bob Jervis
     *   Terry Lucas
     *   Roger Lawrence
     *   Milen Nankov
     *   Hannes Wallnoefer
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import java.io.PrintStream;
    import java.io.Serializable;
    import java.util.List;
    import java.util.ArrayList;
    
    import org.mozilla.javascript.ScriptRuntime.NoSuchMethodShim;
    import org.mozilla.javascript.debug.DebugFrame;
    
    public class Interpreter implements Evaluator
    {
    
    // Additional interpreter-specific codes
    
        private static final int
    
        // Stack: ... value1 -> ... value1 value1
            Icode_DUP                       = -1,
    
        // Stack: ... value2 value1 -> ... value2 value1 value2 value1
            Icode_DUP2                      = -2,
    
        // Stack: ... value2 value1 -> ... value1 value2
            Icode_SWAP                      = -3,
    
        // Stack: ... value1 -> ...
            Icode_POP                       = -4,
    
        // Store stack top into return register and then pop it
            Icode_POP_RESULT                = -5,
    
        // To jump conditionally and pop additional stack value
            Icode_IFEQ_POP                  = -6,
    
        // various types of ++/--
            Icode_VAR_INC_DEC               = -7,
            Icode_NAME_INC_DEC              = -8,
            Icode_PROP_INC_DEC              = -9,
            Icode_ELEM_INC_DEC              = -10,
            Icode_REF_INC_DEC               = -11,
    
        // load/save scope from/to local
            Icode_SCOPE_LOAD                = -12,
            Icode_SCOPE_SAVE                = -13,
    
            Icode_TYPEOFNAME                = -14,
    
        // helper for function calls
            Icode_NAME_AND_THIS             = -15,
            Icode_PROP_AND_THIS             = -16,
            Icode_ELEM_AND_THIS             = -17,
            Icode_VALUE_AND_THIS            = -18,
    
        // Create closure object for nested functions
            Icode_CLOSURE_EXPR              = -19,
            Icode_CLOSURE_STMT              = -20,
    
        // Special calls
            Icode_CALLSPECIAL               = -21,
    
        // To return undefined value
            Icode_RETUNDEF                  = -22,
    
        // Exception handling implementation
            Icode_GOSUB                     = -23,
            Icode_STARTSUB                  = -24,
            Icode_RETSUB                    = -25,
    
        // To indicating a line number change in icodes.
            Icode_LINE                      = -26,
    
        // To store shorts and ints inline
            Icode_SHORTNUMBER               = -27,
            Icode_INTNUMBER                 = -28,
    
        // To create and populate array to hold values for [] and {} literals
            Icode_LITERAL_NEW               = -29,
            Icode_LITERAL_SET               = -30,
    
        // Array literal with skipped index like [1,,2]
            Icode_SPARE_ARRAYLIT            = -31,
    
        // Load index register to prepare for the following index operation
            Icode_REG_IND_C0                = -32,
            Icode_REG_IND_C1                = -33,
            Icode_REG_IND_C2                = -34,
            Icode_REG_IND_C3                = -35,
            Icode_REG_IND_C4                = -36,
            Icode_REG_IND_C5                = -37,
            Icode_REG_IND1                  = -38,
            Icode_REG_IND2                  = -39,
            Icode_REG_IND4                  = -40,
    
        // Load string register to prepare for the following string operation
            Icode_REG_STR_C0                = -41,
            Icode_REG_STR_C1                = -42,
            Icode_REG_STR_C2                = -43,
            Icode_REG_STR_C3                = -44,
            Icode_REG_STR1                  = -45,
            Icode_REG_STR2                  = -46,
            Icode_REG_STR4                  = -47,
    
        // Version of getvar/setvar that read var index directly from bytecode
            Icode_GETVAR1                   = -48,
            Icode_SETVAR1                   = -49,
    
        // Load unefined
            Icode_UNDEF                     = -50,
            Icode_ZERO                      = -51,
            Icode_ONE                       = -52,
    
        // entrance and exit from .()
           Icode_ENTERDQ                    = -53,
           Icode_LEAVEDQ                    = -54,
    
           Icode_TAIL_CALL                  = -55,
    
        // Clear local to allow GC its context
           Icode_LOCAL_CLEAR                = -56,
    
        // Literal get/set
           Icode_LITERAL_GETTER             = -57,
           Icode_LITERAL_SETTER             = -58,
    
        // const
           Icode_SETCONST                   = -59,
           Icode_SETCONSTVAR                = -60,
           Icode_SETCONSTVAR1               = -61,
    
        // Generator opcodes (along with Token.YIELD)
           Icode_GENERATOR                  = -62,
           Icode_GENERATOR_END              = -63,
    
           Icode_DEBUGGER                   = -64,
    
           // Last icode
            MIN_ICODE                       = -64;
    
        // data for parsing
    
        private CompilerEnvirons compilerEnv;
    
        private boolean itsInFunctionFlag;
        private boolean itsInTryFlag;
    
        private InterpreterData itsData;
        private ScriptOrFnNode scriptOrFn;
        private int itsICodeTop;
        private int itsStackDepth;
        private int itsLineNumber;
        private int itsDoubleTableTop;
        private ObjToIntMap itsStrings = new ObjToIntMap(20);
        private int itsLocalTop;
    
        private static final int MIN_LABEL_TABLE_SIZE = 32;
        private static final int MIN_FIXUP_TABLE_SIZE = 40;
        private int[] itsLabelTable;
        private int itsLabelTableTop;
    // itsFixupTable[i] = (label_index << 32) | fixup_site
        private long[] itsFixupTable;
        private int itsFixupTableTop;
        private ObjArray itsLiteralIds = new ObjArray();
    
        private int itsExceptionTableTop;
        private static final int EXCEPTION_TRY_START_SLOT  = 0;
        private static final int EXCEPTION_TRY_END_SLOT    = 1;
        private static final int EXCEPTION_HANDLER_SLOT    = 2;
        private static final int EXCEPTION_TYPE_SLOT       = 3;
        private static final int EXCEPTION_LOCAL_SLOT      = 4;
        private static final int EXCEPTION_SCOPE_SLOT      = 5;
        // SLOT_SIZE: space for try start/end, handler, start, handler type,
        //            exception local and scope local
        private static final int EXCEPTION_SLOT_SIZE       = 6;
    
    // ECF_ or Expression Context Flags constants: for now only TAIL is available
        private static final int ECF_TAIL = 1 << 0;
    
        /**
         * Class to hold data corresponding to one interpreted call stack frame.
         */
        private static class CallFrame implements Cloneable, Serializable
        {
            static final long serialVersionUID = -2843792508994958978L;
    
            CallFrame parentFrame;
            // amount of stack frames before this one on the interpretation stack
            int frameIndex;
            // If true indicates read-only frame that is a part of continuation
            boolean frozen;
    
            InterpretedFunction fnOrScript;
            InterpreterData idata;
    
    // Stack structure
    // stack[0 <= i < localShift]: arguments and local variables
    // stack[localShift <= i <= emptyStackTop]: used for local temporaries
    // stack[emptyStackTop < i < stack.length]: stack data
    // sDbl[i]: if stack[i] is UniqueTag.DOUBLE_MARK, sDbl[i] holds the number value
    
            Object[] stack;
            int[] stackAttributes;
            double[] sDbl;
            CallFrame varSource; // defaults to this unless continuation frame
            int localShift;
            int emptyStackTop;
    
            DebugFrame debuggerFrame;
            boolean useActivation;
            boolean isContinuationsTopFrame;
    
            Scriptable thisObj;
            Scriptable[] scriptRegExps;
    
    // The values that change during interpretation
    
            Object result;
            double resultDbl;
            int pc;
            int pcPrevBranch;
            int pcSourceLineStart;
            Scriptable scope;
    
            int savedStackTop;
            int savedCallOp;
            Object throwable;
    
            CallFrame cloneFrozen()
            {
                if (!frozen) Kit.codeBug();
    
                CallFrame copy;
                try {
                    copy = (CallFrame)clone();
                } catch (CloneNotSupportedException ex) {
                    throw new IllegalStateException();
                }
    
                // clone stack but keep varSource to point to values
                // from this frame to share variables.
    
                copy.stack = stack.clone();
                copy.stackAttributes = stackAttributes.clone();
                copy.sDbl = sDbl.clone();
    
                copy.frozen = false;
                return copy;
            }
        }
    
        private static final class ContinuationJump implements Serializable
        {
            static final long serialVersionUID = 7687739156004308247L;
    
            CallFrame capturedFrame;
            CallFrame branchFrame;
            Object result;
            double resultDbl;
    
            ContinuationJump(NativeContinuation c, CallFrame current)
            {
                this.capturedFrame = (CallFrame)c.getImplementation();
                if (this.capturedFrame == null || current == null) {
                    // Continuation and current execution does not share
                    // any frames if there is nothing to capture or
                    // if there is no currently executed frames
                    this.branchFrame = null;
                } else {
                    // Search for branch frame where parent frame chains starting
                    // from captured and current meet.
                    CallFrame chain1 = this.capturedFrame;
                    CallFrame chain2 = current;
    
                    // First work parents of chain1 or chain2 until the same
                    // frame depth.
                    int diff = chain1.frameIndex - chain2.frameIndex;
                    if (diff != 0) {
                        if (diff < 0) {
                            // swap to make sure that
                            // chain1.frameIndex > chain2.frameIndex and diff > 0
                            chain1 = current;
                            chain2 = this.capturedFrame;
                            diff = -diff;
                        }
                        do {
                            chain1 = chain1.parentFrame;
                        } while (--diff != 0);
                        if (chain1.frameIndex != chain2.frameIndex) Kit.codeBug();
                    }
    
                    // Now walk parents in parallel until a shared frame is found
                    // or until the root is reached.
                    while (chain1 != chain2 && chain1 != null) {
                        chain1 = chain1.parentFrame;
                        chain2 = chain2.parentFrame;
                    }
    
                    this.branchFrame = chain1;
                    if (this.branchFrame != null && !this.branchFrame.frozen)
                        Kit.codeBug();
                }
            }
        }
    
        private static CallFrame captureFrameForGenerator(CallFrame frame) {
          frame.frozen = true;
          CallFrame result = frame.cloneFrozen();
          frame.frozen = false;
    
          // now isolate this frame from its previous context
          result.parentFrame = null;
          result.frameIndex = 0;
    
          return result;
        }
    
        static {
            // Checks for byte code consistencies, good compiler can eliminate them
    
            if (Token.LAST_BYTECODE_TOKEN > 127) {
                String str = "Violation of Token.LAST_BYTECODE_TOKEN <= 127";
                System.err.println(str);
                throw new IllegalStateException(str);
            }
            if (MIN_ICODE < -128) {
                String str = "Violation of Interpreter.MIN_ICODE >= -128";
                System.err.println(str);
                throw new IllegalStateException(str);
            }
        }
    
        private static String bytecodeName(int bytecode)
        {
            if (!validBytecode(bytecode)) {
                throw new IllegalArgumentException(String.valueOf(bytecode));
            }
    
            if (!Token.printICode) {
                return String.valueOf(bytecode);
            }
    
            if (validTokenCode(bytecode)) {
                return Token.name(bytecode);
            }
    
            switch (bytecode) {
              case Icode_DUP:              return "DUP";
              case Icode_DUP2:             return "DUP2";
              case Icode_SWAP:             return "SWAP";
              case Icode_POP:              return "POP";
              case Icode_POP_RESULT:       return "POP_RESULT";
              case Icode_IFEQ_POP:         return "IFEQ_POP";
              case Icode_VAR_INC_DEC:      return "VAR_INC_DEC";
              case Icode_NAME_INC_DEC:     return "NAME_INC_DEC";
              case Icode_PROP_INC_DEC:     return "PROP_INC_DEC";
              case Icode_ELEM_INC_DEC:     return "ELEM_INC_DEC";
              case Icode_REF_INC_DEC:      return "REF_INC_DEC";
              case Icode_SCOPE_LOAD:       return "SCOPE_LOAD";
              case Icode_SCOPE_SAVE:       return "SCOPE_SAVE";
              case Icode_TYPEOFNAME:       return "TYPEOFNAME";
              case Icode_NAME_AND_THIS:    return "NAME_AND_THIS";
              case Icode_PROP_AND_THIS:    return "PROP_AND_THIS";
              case Icode_ELEM_AND_THIS:    return "ELEM_AND_THIS";
              case Icode_VALUE_AND_THIS:   return "VALUE_AND_THIS";
              case Icode_CLOSURE_EXPR:     return "CLOSURE_EXPR";
              case Icode_CLOSURE_STMT:     return "CLOSURE_STMT";
              case Icode_CALLSPECIAL:      return "CALLSPECIAL";
              case Icode_RETUNDEF:         return "RETUNDEF";
              case Icode_GOSUB:            return "GOSUB";
              case Icode_STARTSUB:         return "STARTSUB";
              case Icode_RETSUB:           return "RETSUB";
              case Icode_LINE:             return "LINE";
              case Icode_SHORTNUMBER:      return "SHORTNUMBER";
              case Icode_INTNUMBER:        return "INTNUMBER";
              case Icode_LITERAL_NEW:      return "LITERAL_NEW";
              case Icode_LITERAL_SET:      return "LITERAL_SET";
              case Icode_SPARE_ARRAYLIT:   return "SPARE_ARRAYLIT";
              case Icode_REG_IND_C0:       return "REG_IND_C0";
              case Icode_REG_IND_C1:       return "REG_IND_C1";
              case Icode_REG_IND_C2:       return "REG_IND_C2";
              case Icode_REG_IND_C3:       return "REG_IND_C3";
              case Icode_REG_IND_C4:       return "REG_IND_C4";
              case Icode_REG_IND_C5:       return "REG_IND_C5";
              case Icode_REG_IND1:         return "LOAD_IND1";
              case Icode_REG_IND2:         return "LOAD_IND2";
              case Icode_REG_IND4:         return "LOAD_IND4";
              case Icode_REG_STR_C0:       return "REG_STR_C0";
              case Icode_REG_STR_C1:       return "REG_STR_C1";
              case Icode_REG_STR_C2:       return "REG_STR_C2";
              case Icode_REG_STR_C3:       return "REG_STR_C3";
              case Icode_REG_STR1:         return "LOAD_STR1";
              case Icode_REG_STR2:         return "LOAD_STR2";
              case Icode_REG_STR4:         return "LOAD_STR4";
              case Icode_GETVAR1:          return "GETVAR1";
              case Icode_SETVAR1:          return "SETVAR1";
              case Icode_UNDEF:            return "UNDEF";
              case Icode_ZERO:             return "ZERO";
              case Icode_ONE:              return "ONE";
              case Icode_ENTERDQ:          return "ENTERDQ";
              case Icode_LEAVEDQ:          return "LEAVEDQ";
              case Icode_TAIL_CALL:        return "TAIL_CALL";
              case Icode_LOCAL_CLEAR:      return "LOCAL_CLEAR";
              case Icode_LITERAL_GETTER:   return "LITERAL_GETTER";
              case Icode_LITERAL_SETTER:   return "LITERAL_SETTER";
              case Icode_SETCONST:         return "SETCONST";
              case Icode_SETCONSTVAR:      return "SETCONSTVAR";
              case Icode_SETCONSTVAR1:     return "SETCONSTVAR1";
              case Icode_GENERATOR:        return "GENERATOR";
              case Icode_GENERATOR_END:    return "GENERATOR_END";
              case Icode_DEBUGGER:         return "DEBUGGER";
            }
    
            // icode without name
            throw new IllegalStateException(String.valueOf(bytecode));
        }
    
        private static boolean validIcode(int icode)
        {
            return MIN_ICODE <= icode && icode <= -1;
        }
    
        private static boolean validTokenCode(int token)
        {
            return Token.FIRST_BYTECODE_TOKEN <= token
                   && token <= Token.LAST_BYTECODE_TOKEN;
        }
    
        private static boolean validBytecode(int bytecode)
        {
            return validIcode(bytecode) || validTokenCode(bytecode);
        }
    
        public Object compile(CompilerEnvirons compilerEnv,
                              ScriptOrFnNode tree,
                              String encodedSource,
                              boolean returnFunction)
        {
            this.compilerEnv = compilerEnv;
            new NodeTransformer().transform(tree);
    
            if (Token.printTrees) {
                System.out.println(tree.toStringTree(tree));
            }
    
            if (returnFunction) {
                tree = tree.getFunctionNode(0);
            }
    
            scriptOrFn = tree;
            itsData = new InterpreterData(compilerEnv.getLanguageVersion(),
                                          scriptOrFn.getSourceName(),
                                          encodedSource);
            itsData.topLevel = true;
    
            if (returnFunction) {
                generateFunctionICode();
            } else {
                generateICodeFromTree(scriptOrFn);
            }
    
            return itsData;
        }
    
        public Script createScriptObject(Object bytecode, Object staticSecurityDomain)
        {
            if(bytecode != itsData)
            {
                Kit.codeBug();
            }
            return InterpretedFunction.createScript(itsData,
                                                    staticSecurityDomain);
        }
    
        public void setEvalScriptFlag(Script script) {
            ((InterpretedFunction)script).idata.evalScriptFlag = true;
        }
        
    
        public Function createFunctionObject(Context cx, Scriptable scope,
                Object bytecode, Object staticSecurityDomain)
        {
            if(bytecode != itsData)
            {
                Kit.codeBug();
            }
            return InterpretedFunction.createFunction(cx, scope, itsData,
                                                      staticSecurityDomain);
        }
    
        private void generateFunctionICode()
        {
            itsInFunctionFlag = true;
    
            FunctionNode theFunction = (FunctionNode)scriptOrFn;
    
            itsData.itsFunctionType = theFunction.getFunctionType();
            itsData.itsNeedsActivation = theFunction.requiresActivation();
            itsData.itsName = theFunction.getFunctionName();
            if (!theFunction.getIgnoreDynamicScope()) {
                if (compilerEnv.isUseDynamicScope()) {
                    itsData.useDynamicScope = true;
                }
            }
            if (theFunction.isGenerator()) {
              addIcode(Icode_GENERATOR);
              addUint16(theFunction.getBaseLineno() & 0xFFFF);
            }
    
            generateICodeFromTree(theFunction.getLastChild());
        }
    
        private void generateICodeFromTree(Node tree)
        {
            generateNestedFunctions();
    
            generateRegExpLiterals();
    
            visitStatement(tree, 0);
            fixLabelGotos();
            // add RETURN_RESULT only to scripts as function always ends with RETURN
            if (itsData.itsFunctionType == 0) {
                addToken(Token.RETURN_RESULT);
            }
    
            if (itsData.itsICode.length != itsICodeTop) {
                // Make itsData.itsICode length exactly itsICodeTop to save memory
                // and catch bugs with jumps beyond icode as early as possible
                byte[] tmp = new byte[itsICodeTop];
                System.arraycopy(itsData.itsICode, 0, tmp, 0, itsICodeTop);
                itsData.itsICode = tmp;
            }
            if (itsStrings.size() == 0) {
                itsData.itsStringTable = null;
            } else {
                itsData.itsStringTable = new String[itsStrings.size()];
                ObjToIntMap.Iterator iter = itsStrings.newIterator();
                for (iter.start(); !iter.done(); iter.next()) {
                    String str = (String)iter.getKey();
                    int index = iter.getValue();
                    if (itsData.itsStringTable[index] != null) Kit.codeBug();
                    itsData.itsStringTable[index] = str;
                }
            }
            if (itsDoubleTableTop == 0) {
                itsData.itsDoubleTable = null;
            } else if (itsData.itsDoubleTable.length != itsDoubleTableTop) {
                double[] tmp = new double[itsDoubleTableTop];
                System.arraycopy(itsData.itsDoubleTable, 0, tmp, 0,
                                 itsDoubleTableTop);
                itsData.itsDoubleTable = tmp;
            }
            if (itsExceptionTableTop != 0
                && itsData.itsExceptionTable.length != itsExceptionTableTop)
            {
                int[] tmp = new int[itsExceptionTableTop];
                System.arraycopy(itsData.itsExceptionTable, 0, tmp, 0,
                                 itsExceptionTableTop);
                itsData.itsExceptionTable = tmp;
            }
    
            itsData.itsMaxVars = scriptOrFn.getParamAndVarCount();
            // itsMaxFrameArray: interpret method needs this amount for its
            // stack and sDbl arrays
            itsData.itsMaxFrameArray = itsData.itsMaxVars
                                       + itsData.itsMaxLocals
                                       + itsData.itsMaxStack;
    
            itsData.argNames = scriptOrFn.getParamAndVarNames();
            itsData.argIsConst = scriptOrFn.getParamAndVarConst();
            itsData.argCount = scriptOrFn.getParamCount();
    
            itsData.encodedSourceStart = scriptOrFn.getEncodedSourceStart();
            itsData.encodedSourceEnd = scriptOrFn.getEncodedSourceEnd();
    
            if (itsLiteralIds.size() != 0) {
                itsData.literalIds = itsLiteralIds.toArray();
            }
    
            if (Token.printICode) dumpICode(itsData);
        }
    
        private void generateNestedFunctions()
        {
            int functionCount = scriptOrFn.getFunctionCount();
            if (functionCount == 0) return;
    
            InterpreterData[] array = new InterpreterData[functionCount];
            for (int i = 0; i != functionCount; i++) {
                FunctionNode def = scriptOrFn.getFunctionNode(i);
                Interpreter jsi = new Interpreter();
                jsi.compilerEnv = compilerEnv;
                jsi.scriptOrFn = def;
                jsi.itsData = new InterpreterData(itsData);
                jsi.generateFunctionICode();
                array[i] = jsi.itsData;
            }
            itsData.itsNestedFunctions = array;
        }
    
        private void generateRegExpLiterals()
        {
            int N = scriptOrFn.getRegexpCount();
            if (N == 0) return;
    
            Context cx = Context.getContext();
            RegExpProxy rep = ScriptRuntime.checkRegExpProxy(cx);
            Object[] array = new Object[N];
            for (int i = 0; i != N; i++) {
                String string = scriptOrFn.getRegexpString(i);
                String flags = scriptOrFn.getRegexpFlags(i);
                array[i] = rep.compileRegExp(cx, string, flags);
            }
            itsData.itsRegExpLiterals = array;
        }
    
        private void updateLineNumber(Node node)
        {
            int lineno = node.getLineno();
            if (lineno != itsLineNumber && lineno >= 0) {
                if (itsData.firstLinePC < 0) {
                    itsData.firstLinePC = lineno;
                }
                itsLineNumber = lineno;
                addIcode(Icode_LINE);
                addUint16(lineno & 0xFFFF);
            }
        }
    
        private RuntimeException badTree(Node node)
        {
            throw new RuntimeException(node.toString());
        }
    
        private void visitStatement(Node node, int initialStackDepth)
        {
            int type = node.getType();
            Node child = node.getFirstChild();
            switch (type) {
    
              case Token.FUNCTION:
                {
                    int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP);
                    int fnType = scriptOrFn.getFunctionNode(fnIndex).
                                     getFunctionType();
                    // Only function expressions or function expression
                    // statements need closure code creating new function
                    // object on stack as function statements are initialized
                    // at script/function start.
                    // In addition, function expressions can not be present here
                    // at statement level, they must only be present as expressions.
                    if (fnType == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) {
                        addIndexOp(Icode_CLOSURE_STMT, fnIndex);
                    } else {
                        if (fnType != FunctionNode.FUNCTION_STATEMENT) {
                            throw Kit.codeBug();
                        }
                    }
                    // For function statements or function expression statements
                    // in scripts, we need to ensure that the result of the script
                    // is the function if it is the last statement in the script.
                    // For example, eval("function () {}") should return a
                    // function, not undefined.
                    if (!itsInFunctionFlag) {
                        addIndexOp(Icode_CLOSURE_EXPR, fnIndex);
                        stackChange(1);
                        addIcode(Icode_POP_RESULT);
                        stackChange(-1);
                    }
                }
                break;
    
              case Token.LABEL:
              case Token.LOOP:
              case Token.BLOCK:
              case Token.EMPTY:
              case Token.WITH:
                updateLineNumber(node);
              case Token.SCRIPT:
                // fall through
                while (child != null) {
                    visitStatement(child, initialStackDepth);
                    child = child.getNext();
                }
                break;
    
              case Token.ENTERWITH:
                visitExpression(child, 0);
                addToken(Token.ENTERWITH);
                stackChange(-1);
                break;
    
              case Token.LEAVEWITH:
                addToken(Token.LEAVEWITH);
                break;
    
              case Token.LOCAL_BLOCK:
                {
                    int local = allocLocal();
                    node.putIntProp(Node.LOCAL_PROP, local);
                    updateLineNumber(node);
                    while (child != null) {
                        visitStatement(child, initialStackDepth);
                        child = child.getNext();
                    }
                    addIndexOp(Icode_LOCAL_CLEAR, local);
                    releaseLocal(local);
                }
                break;
    
              case Token.DEBUGGER:
                addIcode(Icode_DEBUGGER);
                break;
    
              case Token.SWITCH:
                updateLineNumber(node);
                // See comments in IRFactory.createSwitch() for description
                // of SWITCH node
                {
                    visitExpression(child, 0);
                    for (Node.Jump caseNode = (Node.Jump)child.getNext();
                         caseNode != null;
                         caseNode = (Node.Jump)caseNode.getNext())
                    {
                        if (caseNode.getType() != Token.CASE)
                            throw badTree(caseNode);
                        Node test = caseNode.getFirstChild();
                        addIcode(Icode_DUP);
                        stackChange(1);
                        visitExpression(test, 0);
                        addToken(Token.SHEQ);
                        stackChange(-1);
                        // If true, Icode_IFEQ_POP will jump and remove case
                        // value from stack
                        addGoto(caseNode.target, Icode_IFEQ_POP);
                        stackChange(-1);
                    }
                    addIcode(Icode_POP);
                    stackChange(-1);
                }
                break;
    
              case Token.TARGET:
                markTargetLabel(node);
                break;
    
              case Token.IFEQ :
              case Token.IFNE :
                {
                    Node target = ((Node.Jump)node).target;
                    visitExpression(child, 0);
                    addGoto(target, type);
                    stackChange(-1);
                }
                break;
    
              case Token.GOTO:
                {
                    Node target = ((Node.Jump)node).target;
                    addGoto(target, type);
                }
                break;
    
              case Token.JSR:
                {
                    Node target = ((Node.Jump)node).target;
                    addGoto(target, Icode_GOSUB);
                }
                break;
    
              case Token.FINALLY:
                {
                    // Account for incomming GOTOSUB address
                    stackChange(1);
                    int finallyRegister = getLocalBlockRef(node);
                    addIndexOp(Icode_STARTSUB, finallyRegister);
                    stackChange(-1);
                    while (child != null) {
                        visitStatement(child, initialStackDepth);
                        child = child.getNext();
                    }
                    addIndexOp(Icode_RETSUB, finallyRegister);
                }
                break;
    
              case Token.EXPR_VOID:
              case Token.EXPR_RESULT:
                updateLineNumber(node);
                visitExpression(child, 0);
                addIcode((type == Token.EXPR_VOID) ? Icode_POP : Icode_POP_RESULT);
                stackChange(-1);
                break;
    
              case Token.TRY:
                {
                    Node.Jump tryNode = (Node.Jump)node;
                    int exceptionObjectLocal = getLocalBlockRef(tryNode);
                    int scopeLocal = allocLocal();
    
                    addIndexOp(Icode_SCOPE_SAVE, scopeLocal);
    
                    int tryStart = itsICodeTop;
                    boolean savedFlag = itsInTryFlag;
                    itsInTryFlag = true;
                    while (child != null) {
                        visitStatement(child, initialStackDepth);
                        child = child.getNext();
                    }
                    itsInTryFlag = savedFlag;
    
                    Node catchTarget = tryNode.target;
                    if (catchTarget != null) {
                        int catchStartPC
                            = itsLabelTable[getTargetLabel(catchTarget)];
                        addExceptionHandler(
                            tryStart, catchStartPC, catchStartPC,
                            false, exceptionObjectLocal, scopeLocal);
                    }
                    Node finallyTarget = tryNode.getFinally();
                    if (finallyTarget != null) {
                        int finallyStartPC
                            = itsLabelTable[getTargetLabel(finallyTarget)];
                        addExceptionHandler(
                            tryStart, finallyStartPC, finallyStartPC,
                            true, exceptionObjectLocal, scopeLocal);
                    }
    
                    addIndexOp(Icode_LOCAL_CLEAR, scopeLocal);
                    releaseLocal(scopeLocal);
                }
                break;
    
              case Token.CATCH_SCOPE:
                {
                    int localIndex = getLocalBlockRef(node);
                    int scopeIndex = node.getExistingIntProp(Node.CATCH_SCOPE_PROP);
                    String name = child.getString();
                    child = child.getNext();
                    visitExpression(child, 0); // load expression object
                    addStringPrefix(name);
                    addIndexPrefix(localIndex);
                    addToken(Token.CATCH_SCOPE);
                    addUint8(scopeIndex != 0 ? 1 : 0);
                    stackChange(-1);
                }
                break;
    
              case Token.THROW:
                updateLineNumber(node);
                visitExpression(child, 0);
                addToken(Token.THROW);
                addUint16(itsLineNumber & 0xFFFF);
                stackChange(-1);
                break;
    
              case Token.RETHROW:
                updateLineNumber(node);
                addIndexOp(Token.RETHROW, getLocalBlockRef(node));
                break;
    
              case Token.RETURN:
                updateLineNumber(node);
                if (node.getIntProp(Node.GENERATOR_END_PROP, 0) != 0) {
                    // We're in a generator, so change RETURN to GENERATOR_END
                    addIcode(Icode_GENERATOR_END);
                    addUint16(itsLineNumber & 0xFFFF);
                } else if (child != null) {
                    visitExpression(child, ECF_TAIL);
                    addToken(Token.RETURN);
                    stackChange(-1);
                } else {
                    addIcode(Icode_RETUNDEF);
                }
                break;
    
              case Token.RETURN_RESULT:
                updateLineNumber(node);
                addToken(Token.RETURN_RESULT);
                break;
    
              case Token.ENUM_INIT_KEYS:
              case Token.ENUM_INIT_VALUES:
              case Token.ENUM_INIT_ARRAY:
                visitExpression(child, 0);
                addIndexOp(type, getLocalBlockRef(node));
                stackChange(-1);
                break;
    
              case Icode_GENERATOR:
                break;
    
              default:
                throw badTree(node);
            }
    
            if (itsStackDepth != initialStackDepth) {
                throw Kit.codeBug();
            }
        }
    
        private void visitExpression(Node node, int contextFlags)
        {
            int type = node.getType();
            Node child = node.getFirstChild();
            int savedStackDepth = itsStackDepth;
            switch (type) {
    
              case Token.FUNCTION:
                {
                    int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP);
                    FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex);
                    // See comments in visitStatement for Token.FUNCTION case
                    if (fn.getFunctionType() != FunctionNode.FUNCTION_EXPRESSION) {
                        throw Kit.codeBug();
                    }
                    addIndexOp(Icode_CLOSURE_EXPR, fnIndex);
                    stackChange(1);
                }
                break;
    
              case Token.LOCAL_LOAD:
                {
                    int localIndex = getLocalBlockRef(node);
                    addIndexOp(Token.LOCAL_LOAD, localIndex);
                    stackChange(1);
                }
                break;
    
              case Token.COMMA:
                {
                    Node lastChild = node.getLastChild();
                    while (child != lastChild) {
                        visitExpression(child, 0);
                        addIcode(Icode_POP);
                        stackChange(-1);
                        child = child.getNext();
                    }
                    // Preserve tail context flag if any
                    visitExpression(child, contextFlags & ECF_TAIL);
                }
                break;
    
              case Token.USE_STACK:
                // Indicates that stack was modified externally,
                // like placed catch object
                stackChange(1);
                break;
    
              case Token.REF_CALL:
              case Token.CALL:
              case Token.NEW:
                {
                    if (type == Token.NEW) {
                        visitExpression(child, 0);
                    } else {
                        generateCallFunAndThis(child);
                    }
                    int argCount = 0;
                    while ((child = child.getNext()) != null) {
                        visitExpression(child, 0);
                        ++argCount;
                    }
                    int callType = node.getIntProp(Node.SPECIALCALL_PROP,
                                                   Node.NON_SPECIALCALL);
                    if (callType != Node.NON_SPECIALCALL) {
                        // embed line number and source filename
                        addIndexOp(Icode_CALLSPECIAL, argCount);
                        addUint8(callType);
                        addUint8(type == Token.NEW ? 1 : 0);
                        addUint16(itsLineNumber & 0xFFFF);
                    } else {
                        // Only use the tail call optimization if we're not in a try
                        // or we're not generating debug info (since the
                        // optimization will confuse the debugger)
                        if (type == Token.CALL && (contextFlags & ECF_TAIL) != 0 &&
                            !compilerEnv.isGenerateDebugInfo() && !itsInTryFlag)
                        {
                            type = Icode_TAIL_CALL;
                        }
                        addIndexOp(type, argCount);
                    }
                    // adjust stack
                    if (type == Token.NEW) {
                        // new: f, args -> result
                        stackChange(-argCount);
                    } else {
                        // call: f, thisObj, args -> result
                        // ref_call: f, thisObj, args -> ref
                        stackChange(-1 - argCount);
                    }
                    if (argCount > itsData.itsMaxCalleeArgs) {
                        itsData.itsMaxCalleeArgs = argCount;
                    }
                }
                break;
    
              case Token.AND:
              case Token.OR:
                {
                    visitExpression(child, 0);
                    addIcode(Icode_DUP);
                    stackChange(1);
                    int afterSecondJumpStart = itsICodeTop;
                    int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ;
                    addGotoOp(jump);
                    stackChange(-1);
                    addIcode(Icode_POP);
                    stackChange(-1);
                    child = child.getNext();
                    // Preserve tail context flag if any
                    visitExpression(child, contextFlags & ECF_TAIL);
                    resolveForwardGoto(afterSecondJumpStart);
                }
                break;
    
              case Token.HOOK:
                {
                    Node ifThen = child.getNext();
                    Node ifElse = ifThen.getNext();
                    visitExpression(child, 0);
                    int elseJumpStart = itsICodeTop;
                    addGotoOp(Token.IFNE);
                    stackChange(-1);
                    // Preserve tail context flag if any
                    visitExpression(ifThen, contextFlags & ECF_TAIL);
                    int afterElseJumpStart = itsICodeTop;
                    addGotoOp(Token.GOTO);
                    resolveForwardGoto(elseJumpStart);
                    itsStackDepth = savedStackDepth;
                    // Preserve tail context flag if any
                    visitExpression(ifElse, contextFlags & ECF_TAIL);
                    resolveForwardGoto(afterElseJumpStart);
                }
                break;
    
              case Token.GETPROP:
              case Token.GETPROPNOWARN:
                visitExpression(child, 0);
                child = child.getNext();
                addStringOp(type, child.getString());
                break;
    
              case Token.GETELEM:
              case Token.DELPROP:
              case Token.BITAND:
              case Token.BITOR:
              case Token.BITXOR:
              case Token.LSH:
              case Token.RSH:
              case Token.URSH:
              case Token.ADD:
              case Token.SUB:
              case Token.MOD:
              case Token.DIV:
              case Token.MUL:
              case Token.EQ:
              case Token.NE:
              case Token.SHEQ:
              case Token.SHNE:
              case Token.IN:
              case Token.INSTANCEOF:
              case Token.LE:
              case Token.LT:
              case Token.GE:
              case Token.GT:
                visitExpression(child, 0);
                child = child.getNext();
                visitExpression(child, 0);
                addToken(type);
                stackChange(-1);
                break;
    
              case Token.POS:
              case Token.NEG:
              case Token.NOT:
              case Token.BITNOT:
              case Token.TYPEOF:
              case Token.VOID:
                visitExpression(child, 0);
                if (type == Token.VOID) {
                    addIcode(Icode_POP);
                    addIcode(Icode_UNDEF);
                } else {
                    addToken(type);
                }
                break;
    
              case Token.GET_REF:
              case Token.DEL_REF:
                visitExpression(child, 0);
                addToken(type);
                break;
    
              case Token.SETPROP:
              case Token.SETPROP_OP:
                {
                    visitExpression(child, 0);
                    child = child.getNext();
                    String property = child.getString();
                    child = child.getNext();
                    if (type == Token.SETPROP_OP) {
                        addIcode(Icode_DUP);
                        stackChange(1);
                        addStringOp(Token.GETPROP, property);
                        // Compensate for the following USE_STACK
                        stackChange(-1);
                    }
                    visitExpression(child, 0);
                    addStringOp(Token.SETPROP, property);
                    stackChange(-1);
                }
                break;
    
              case Token.SETELEM:
              case Token.SETELEM_OP:
                visitExpression(child, 0);
                child = child.getNext();
                visitExpression(child, 0);
                child = child.getNext();
                if (type == Token.SETELEM_OP) {
                    addIcode(Icode_DUP2);
                    stackChange(2);
                    addToken(Token.GETELEM);
                    stackChange(-1);
                    // Compensate for the following USE_STACK
                    stackChange(-1);
                }
                visitExpression(child, 0);
                addToken(Token.SETELEM);
                stackChange(-2);
                break;
    
              case Token.SET_REF:
              case Token.SET_REF_OP:
                visitExpression(child, 0);
                child = child.getNext();
                if (type == Token.SET_REF_OP) {
                    addIcode(Icode_DUP);
                    stackChange(1);
                    addToken(Token.GET_REF);
                    // Compensate for the following USE_STACK
                    stackChange(-1);
                }
                visitExpression(child, 0);
                addToken(Token.SET_REF);
                stackChange(-1);
                break;
    
              case Token.SETNAME:
                {
                    String name = child.getString();
                    visitExpression(child, 0);
                    child = child.getNext();
                    visitExpression(child, 0);
                    addStringOp(Token.SETNAME, name);
                    stackChange(-1);
                }
                break;
    
              case Token.SETCONST:
                {
                    String name = child.getString();
                    visitExpression(child, 0);
                    child = child.getNext();
                    visitExpression(child, 0);
                    addStringOp(Icode_SETCONST, name);
                    stackChange(-1);
                }
                break;
    
              case Token.TYPEOFNAME:
                {
                    int index = -1;
                    // use typeofname if an activation frame exists
                    // since the vars all exist there instead of in jregs
                    if (itsInFunctionFlag && !itsData.itsNeedsActivation)
                        index = scriptOrFn.getIndexForNameNode(node);
                    if (index == -1) {
                        addStringOp(Icode_TYPEOFNAME, node.getString());
                        stackChange(1);
                    } else {
                        addVarOp(Token.GETVAR, index);
                        stackChange(1);
                        addToken(Token.TYPEOF);
                    }
                }
                break;
    
              case Token.BINDNAME:
              case Token.NAME:
              case Token.STRING:
                addStringOp(type, node.getString());
                stackChange(1);
                break;
    
              case Token.INC:
              case Token.DEC:
                visitIncDec(node, child);
                break;
    
              case Token.NUMBER:
                {
                    double num = node.getDouble();
                    int inum = (int)num;
                    if (inum == num) {
                        if (inum == 0) {
                            addIcode(Icode_ZERO);
                            // Check for negative zero
                            if (1.0 / num < 0.0) {
                                addToken(Token.NEG);
                            }
                        } else if (inum == 1) {
                            addIcode(Icode_ONE);
                        } else if ((short)inum == inum) {
                            addIcode(Icode_SHORTNUMBER);
                            // write short as uin16 bit pattern
                            addUint16(inum & 0xFFFF);
                        } else {
                            addIcode(Icode_INTNUMBER);
                            addInt(inum);
                        }
                    } else {
                        int index = getDoubleIndex(num);
                        addIndexOp(Token.NUMBER, index);
                    }
                    stackChange(1);
                }
                break;
    
              case Token.GETVAR:
                {
                    if (itsData.itsNeedsActivation) Kit.codeBug();
                    int index = scriptOrFn.getIndexForNameNode(node);
                    addVarOp(Token.GETVAR, index);
                    stackChange(1);
                }
                break;
    
              case Token.SETVAR:
                {
                    if (itsData.itsNeedsActivation) Kit.codeBug();
                    int index = scriptOrFn.getIndexForNameNode(child);
                    child = child.getNext();
                    visitExpression(child, 0);
                    addVarOp(Token.SETVAR, index);
                }
                break;
    
              case Token.SETCONSTVAR:
                {
                    if (itsData.itsNeedsActivation) Kit.codeBug();
                    int index = scriptOrFn.getIndexForNameNode(child);
                    child = child.getNext();
                    visitExpression(child, 0);
                    addVarOp(Token.SETCONSTVAR, index);
                }
                break;
    
              case Token.NULL:
              case Token.THIS:
              case Token.THISFN:
              case Token.FALSE:
              case Token.TRUE:
                addToken(type);
                stackChange(1);
                break;
    
              case Token.ENUM_NEXT:
              case Token.ENUM_ID:
                addIndexOp(type, getLocalBlockRef(node));
                stackChange(1);
                break;
    
              case Token.REGEXP:
                {
                    int index = node.getExistingIntProp(Node.REGEXP_PROP);
                    addIndexOp(Token.REGEXP, index);
                    stackChange(1);
                }
                break;
    
              case Token.ARRAYLIT:
              case Token.OBJECTLIT:
                visitLiteral(node, child);
                break;
    
              case Token.ARRAYCOMP:
                visitArrayComprehension(node, child, child.getNext());
                break;
    
              case Token.REF_SPECIAL:
                visitExpression(child, 0);
                addStringOp(type, (String)node.getProp(Node.NAME_PROP));
                break;
    
              case Token.REF_MEMBER:
              case Token.REF_NS_MEMBER:
              case Token.REF_NAME:
              case Token.REF_NS_NAME:
                {
                    int memberTypeFlags = node.getIntProp(Node.MEMBER_TYPE_PROP, 0);
                    // generate possible target, possible namespace and member
                    int childCount = 0;
                    do {
                        visitExpression(child, 0);
                        ++childCount;
                        child = child.getNext();
                    } while (child != null);
                    addIndexOp(type, memberTypeFlags);
                    stackChange(1 - childCount);
                }
                break;
    
              case Token.DOTQUERY:
                {
                    int queryPC;
                    updateLineNumber(node);
                    visitExpression(child, 0);
                    addIcode(Icode_ENTERDQ);
                    stackChange(-1);
                    queryPC = itsICodeTop;
                    visitExpression(child.getNext(), 0);
                    addBackwardGoto(Icode_LEAVEDQ, queryPC);
                }
                break;
    
              case Token.DEFAULTNAMESPACE :
              case Token.ESCXMLATTR :
              case Token.ESCXMLTEXT :
                visitExpression(child, 0);
                addToken(type);
                break;
    
              case Token.YIELD:
                if (child != null) {
                    visitExpression(child, 0);
                } else {
                    addIcode(Icode_UNDEF);
                    stackChange(1);
                }
                addToken(Token.YIELD);
                addUint16(node.getLineno() & 0xFFFF);
                break;
    
              case Token.WITHEXPR: {
                Node enterWith = node.getFirstChild();
                Node with = enterWith.getNext();
                visitExpression(enterWith.getFirstChild(), 0);
                addToken(Token.ENTERWITH);
                stackChange(-1);
                visitExpression(with.getFirstChild(), 0);
                addToken(Token.LEAVEWITH);
                break;
              }
    
              default:
                throw badTree(node);
            }
            if (savedStackDepth + 1 != itsStackDepth) {
                Kit.codeBug();
            }
        }
    
        private void generateCallFunAndThis(Node left)
        {
            // Generate code to place on stack function and thisObj
            int type = left.getType();
            switch (type) {
              case Token.NAME: {
                String name = left.getString();
                // stack: ... -> ... function thisObj
                addStringOp(Icode_NAME_AND_THIS, name);
                stackChange(2);
                break;
              }
              case Token.GETPROP:
              case Token.GETELEM: {
                Node target = left.getFirstChild();
                visitExpression(target, 0);
                Node id = target.getNext();
                if (type == Token.GETPROP) {
                    String property = id.getString();
                    // stack: ... target -> ... function thisObj
                    addStringOp(Icode_PROP_AND_THIS, property);
                    stackChange(1);
                } else {
                    visitExpression(id, 0);
                    // stack: ... target id -> ... function thisObj
                    addIcode(Icode_ELEM_AND_THIS);
                }
                break;
              }
              default:
                // Including Token.GETVAR
                visitExpression(left, 0);
                // stack: ... value -> ... function thisObj
                addIcode(Icode_VALUE_AND_THIS);
                stackChange(1);
                break;
            }
        }
    
        private void visitIncDec(Node node, Node child)
        {
            int incrDecrMask = node.getExistingIntProp(Node.INCRDECR_PROP);
            int childType = child.getType();
            switch (childType) {
              case Token.GETVAR : {
                if (itsData.itsNeedsActivation) Kit.codeBug();
                int i = scriptOrFn.getIndexForNameNode(child);
                addVarOp(Icode_VAR_INC_DEC, i);
                addUint8(incrDecrMask);
                stackChange(1);
                break;
              }
              case Token.NAME : {
                String name = child.getString();
                addStringOp(Icode_NAME_INC_DEC, name);
                addUint8(incrDecrMask);
                stackChange(1);
                break;
              }
              case Token.GETPROP : {
                Node object = child.getFirstChild();
                visitExpression(object, 0);
                String property = object.getNext().getString();
                addStringOp(Icode_PROP_INC_DEC, property);
                addUint8(incrDecrMask);
                break;
              }
              case Token.GETELEM : {
                Node object = child.getFirstChild();
                visitExpression(object, 0);
                Node index = object.getNext();
                visitExpression(index, 0);
                addIcode(Icode_ELEM_INC_DEC);
                addUint8(incrDecrMask);
                stackChange(-1);
                break;
              }
              case Token.GET_REF : {
                Node ref = child.getFirstChild();
                visitExpression(ref, 0);
                addIcode(Icode_REF_INC_DEC);
                addUint8(incrDecrMask);
                break;
              }
              default : {
                throw badTree(node);
              }
            }
        }
    
        private void visitLiteral(Node node, Node child)
        {
            int type = node.getType();
            int count;
            Object[] propertyIds = null;
            if (type == Token.ARRAYLIT) {
                count = 0;
                for (Node n = child; n != null; n = n.getNext()) {
                    ++count;
                }
            } else if (type == Token.OBJECTLIT) {
                propertyIds = (Object[])node.getProp(Node.OBJECT_IDS_PROP);
                count = propertyIds.length;
            } else {
                throw badTree(node);
            }
            addIndexOp(Icode_LITERAL_NEW, count);
            stackChange(2);
            while (child != null) {
                int childType = child.getType();
                if (childType == Token.GET) {
                    visitExpression(child.getFirstChild(), 0);
                    addIcode(Icode_LITERAL_GETTER);
                } else if (childType == Token.SET) {
                    visitExpression(child.getFirstChild(), 0);
                    addIcode(Icode_LITERAL_SETTER);
                } else {
                    visitExpression(child, 0);
                    addIcode(Icode_LITERAL_SET);
                }
                stackChange(-1);
                child = child.getNext();
            }
            if (type == Token.ARRAYLIT) {
                int[] skipIndexes = (int[])node.getProp(Node.SKIP_INDEXES_PROP);
                if (skipIndexes == null) {
                    addToken(Token.ARRAYLIT);
                } else {
                    int index = itsLiteralIds.size();
                    itsLiteralIds.add(skipIndexes);
                    addIndexOp(Icode_SPARE_ARRAYLIT, index);
                }
            } else {
                int index = itsLiteralIds.size();
                itsLiteralIds.add(propertyIds);
                addIndexOp(Token.OBJECTLIT, index);
            }
            stackChange(-1);
        }
        
        private void visitArrayComprehension(Node node, Node initStmt, Node expr)
        {
            // A bit of a hack: array comprehensions are implemented using
            // statement nodes for the iteration, yet they appear in an
            // expression context. So we pass the current stack depth to
            // visitStatement so it can check that the depth is not altered
            // by statements.
            visitStatement(initStmt, itsStackDepth);
            visitExpression(expr, 0);
        }
    
        private int getLocalBlockRef(Node node)
        {
            Node localBlock = (Node)node.getProp(Node.LOCAL_BLOCK_PROP);
            return localBlock.getExistingIntProp(Node.LOCAL_PROP);
        }
    
        private int getTargetLabel(Node target)
        {
            int label = target.labelId();
            if (label != -1) {
                return label;
            }
            label = itsLabelTableTop;
            if (itsLabelTable == null || label == itsLabelTable.length) {
                if (itsLabelTable == null) {
                    itsLabelTable = new int[MIN_LABEL_TABLE_SIZE];
                }else {
                    int[] tmp = new int[itsLabelTable.length * 2];
                    System.arraycopy(itsLabelTable, 0, tmp, 0, label);
                    itsLabelTable = tmp;
                }
            }
            itsLabelTableTop = label + 1;
            itsLabelTable[label] = -1;
    
            target.labelId(label);
            return label;
        }
    
        private void markTargetLabel(Node target)
        {
            int label = getTargetLabel(target);
            if (itsLabelTable[label] != -1) {
                // Can mark label only once
                Kit.codeBug();
            }
            itsLabelTable[label] = itsICodeTop;
        }
    
        private void addGoto(Node target, int gotoOp)
        {
            int label = getTargetLabel(target);
            if (!(label < itsLabelTableTop)) Kit.codeBug();
            int targetPC = itsLabelTable[label];
    
            if (targetPC != -1) {
                addBackwardGoto(gotoOp, targetPC);
            } else {
                int gotoPC = itsICodeTop;
                addGotoOp(gotoOp);
                int top = itsFixupTableTop;
                if (itsFixupTable == null || top == itsFixupTable.length) {
                    if (itsFixupTable == null) {
                        itsFixupTable = new long[MIN_FIXUP_TABLE_SIZE];
                    } else {
                        long[] tmp = new long[itsFixupTable.length * 2];
                        System.arraycopy(itsFixupTable, 0, tmp, 0, top);
                        itsFixupTable = tmp;
                    }
                }
                itsFixupTableTop = top + 1;
                itsFixupTable[top] = ((long)label << 32) | gotoPC;
            }
        }
    
        private void fixLabelGotos()
        {
            for (int i = 0; i < itsFixupTableTop; i++) {
                long fixup = itsFixupTable[i];
                int label = (int)(fixup >> 32);
                int jumpSource = (int)fixup;
                int pc = itsLabelTable[label];
                if (pc == -1) {
                    // Unlocated label
                    throw Kit.codeBug();
                }
                resolveGoto(jumpSource, pc);
            }
            itsFixupTableTop = 0;
        }
    
        private void addBackwardGoto(int gotoOp, int jumpPC)
        {
            int fromPC = itsICodeTop;
            // Ensure that this is a jump backward
            if (fromPC <= jumpPC) throw Kit.codeBug();
            addGotoOp(gotoOp);
            resolveGoto(fromPC, jumpPC);
        }
    
        private void resolveForwardGoto(int fromPC)
        {
            // Ensure that forward jump skips at least self bytecode
            if (itsICodeTop < fromPC + 3) throw Kit.codeBug();
            resolveGoto(fromPC, itsICodeTop);
        }
    
        private void resolveGoto(int fromPC, int jumpPC)
        {
            int offset = jumpPC - fromPC;
            // Ensure that jumps do not overlap
            if (0 <= offset && offset <= 2) throw Kit.codeBug();
            int offsetSite = fromPC + 1;
            if (offset != (short)offset) {
                if (itsData.longJumps == null) {
                    itsData.longJumps = new UintMap();
                }
                itsData.longJumps.put(offsetSite, jumpPC);
                offset = 0;
            }
            byte[] array = itsData.itsICode;
            array[offsetSite] = (byte)(offset >> 8);
            array[offsetSite + 1] = (byte)offset;
        }
    
        private void addToken(int token)
        {
            if (!validTokenCode(token)) throw Kit.codeBug();
            addUint8(token);
        }
    
        private void addIcode(int icode)
        {
            if (!validIcode(icode)) throw Kit.codeBug();
            // Write negative icode as uint8 bits
            addUint8(icode & 0xFF);
        }
    
        private void addUint8(int value)
        {
            if ((value & ~0xFF) != 0) throw Kit.codeBug();
            byte[] array = itsData.itsICode;
            int top = itsICodeTop;
            if (top == array.length) {
                array = increaseICodeCapacity(1);
            }
            array[top] = (byte)value;
            itsICodeTop = top + 1;
        }
    
        private void addUint16(int value)
        {
            if ((value & ~0xFFFF) != 0) throw Kit.codeBug();
            byte[] array = itsData.itsICode;
            int top = itsICodeTop;
            if (top + 2 > array.length) {
                array = increaseICodeCapacity(2);
            }
            array[top] = (byte)(value >>> 8);
            array[top + 1] = (byte)value;
            itsICodeTop = top + 2;
        }
    
        private void addInt(int i)
        {
            byte[] array = itsData.itsICode;
            int top = itsICodeTop;
            if (top + 4 > array.length) {
                array = increaseICodeCapacity(4);
            }
            array[top] = (byte)(i >>> 24);
            array[top + 1] = (byte)(i >>> 16);
            array[top + 2] = (byte)(i >>> 8);
            array[top + 3] = (byte)i;
            itsICodeTop = top + 4;
        }
    
        private int getDoubleIndex(double num)
        {
            int index = itsDoubleTableTop;
            if (index == 0) {
                itsData.itsDoubleTable = new double[64];
            } else if (itsData.itsDoubleTable.length == index) {
                double[] na = new double[index * 2];
                System.arraycopy(itsData.itsDoubleTable, 0, na, 0, index);
                itsData.itsDoubleTable = na;
            }
            itsData.itsDoubleTable[index] = num;
            itsDoubleTableTop = index + 1;
            return index;
        }
    
        private void addGotoOp(int gotoOp)
        {
            byte[] array = itsData.itsICode;
            int top = itsICodeTop;
            if (top + 3 > array.length) {
                array = increaseICodeCapacity(3);
            }
            array[top] = (byte)gotoOp;
            // Offset would written later
            itsICodeTop = top + 1 + 2;
        }
    
        private void addVarOp(int op, int varIndex)
        {
            switch (op) {
              case Token.SETCONSTVAR:
                if (varIndex < 128) {
                    addIcode(Icode_SETCONSTVAR1);
                    addUint8(varIndex);
                    return;
                }
                addIndexOp(Icode_SETCONSTVAR, varIndex);
                return;
              case Token.GETVAR:
              case Token.SETVAR:
                if (varIndex < 128) {
                    addIcode(op == Token.GETVAR ? Icode_GETVAR1 : Icode_SETVAR1);
                    addUint8(varIndex);
                    return;
                }
                // fallthrough
              case Icode_VAR_INC_DEC:
                addIndexOp(op, varIndex);
                return;
            }
            throw Kit.codeBug();
        }
    
        private void addStringOp(int op, String str)
        {
            addStringPrefix(str);
            if (validIcode(op)) {
                addIcode(op);
            } else {
                addToken(op);
            }
        }
    
        private void addIndexOp(int op, int index)
        {
            addIndexPrefix(index);
            if (validIcode(op)) {
                addIcode(op);
            } else {
                addToken(op);
            }
        }
    
        private void addStringPrefix(String str)
        {
            int index = itsStrings.get(str, -1);
            if (index == -1) {
                index = itsStrings.size();
                itsStrings.put(str, index);
            }
            if (index < 4) {
                addIcode(Icode_REG_STR_C0 - index);
            } else if (index <= 0xFF) {
                addIcode(Icode_REG_STR1);
                addUint8(index);
             } else if (index <= 0xFFFF) {
                addIcode(Icode_REG_STR2);
                addUint16(index);
             } else {
                addIcode(Icode_REG_STR4);
                addInt(index);
            }
        }
    
        private void addIndexPrefix(int index)
        {
            if (index < 0) Kit.codeBug();
            if (index < 6) {
                addIcode(Icode_REG_IND_C0 - index);
            } else if (index <= 0xFF) {
                addIcode(Icode_REG_IND1);
                addUint8(index);
             } else if (index <= 0xFFFF) {
                addIcode(Icode_REG_IND2);
                addUint16(index);
             } else {
                addIcode(Icode_REG_IND4);
                addInt(index);
            }
        }
    
        private void addExceptionHandler(int icodeStart, int icodeEnd,
                                         int handlerStart, boolean isFinally,
                                         int exceptionObjectLocal, int scopeLocal)
        {
            int top = itsExceptionTableTop;
            int[] table = itsData.itsExceptionTable;
            if (table == null) {
                if (top != 0) Kit.codeBug();
                table = new int[EXCEPTION_SLOT_SIZE * 2];
                itsData.itsExceptionTable = table;
            } else if (table.length == top) {
                table = new int[table.length * 2];
                System.arraycopy(itsData.itsExceptionTable, 0, table, 0, top);
                itsData.itsExceptionTable = table;
            }
            table[top + EXCEPTION_TRY_START_SLOT]  = icodeStart;
            table[top + EXCEPTION_TRY_END_SLOT]    = icodeEnd;
            table[top + EXCEPTION_HANDLER_SLOT]    = handlerStart;
            table[top + EXCEPTION_TYPE_SLOT]       = isFinally ? 1 : 0;
            table[top + EXCEPTION_LOCAL_SLOT]      = exceptionObjectLocal;
            table[top + EXCEPTION_SCOPE_SLOT]      = scopeLocal;
    
            itsExceptionTableTop = top + EXCEPTION_SLOT_SIZE;
        }
    
        private byte[] increaseICodeCapacity(int extraSize)
        {
            int capacity = itsData.itsICode.length;
            int top = itsICodeTop;
            if (top + extraSize <= capacity) throw Kit.codeBug();
            capacity *= 2;
            if (top + extraSize > capacity) {
                capacity = top + extraSize;
            }
            byte[] array = new byte[capacity];
            System.arraycopy(itsData.itsICode, 0, array, 0, top);
            itsData.itsICode = array;
            return array;
        }
    
        private void stackChange(int change)
        {
            if (change <= 0) {
                itsStackDepth += change;
            } else {
                int newDepth = itsStackDepth + change;
                if (newDepth > itsData.itsMaxStack) {
                    itsData.itsMaxStack = newDepth;
                }
                itsStackDepth = newDepth;
            }
        }
    
        private int allocLocal()
        {
            int localSlot = itsLocalTop;
            ++itsLocalTop;
            if (itsLocalTop > itsData.itsMaxLocals) {
                itsData.itsMaxLocals = itsLocalTop;
            }
            return localSlot;
        }
    
        private void releaseLocal(int localSlot)
        {
            --itsLocalTop;
            if (localSlot != itsLocalTop) Kit.codeBug();
        }
    
        private static int getShort(byte[] iCode, int pc) {
            return (iCode[pc] << 8) | (iCode[pc + 1] & 0xFF);
        }
    
        private static int getIndex(byte[] iCode, int pc) {
            return ((iCode[pc] & 0xFF) << 8) | (iCode[pc + 1] & 0xFF);
        }
    
        private static int getInt(byte[] iCode, int pc) {
            return (iCode[pc] << 24) | ((iCode[pc + 1] & 0xFF) << 16)
                   | ((iCode[pc + 2] & 0xFF) << 8) | (iCode[pc + 3] & 0xFF);
        }
    
        private static int getExceptionHandler(CallFrame frame,
                                               boolean onlyFinally)
        {
            int[] exceptionTable = frame.idata.itsExceptionTable;
            if (exceptionTable == null) {
                // No exception handlers
                return -1;
            }
    
            // Icode switch in the interpreter increments PC immediately
            // and it is necessary to subtract 1 from the saved PC
            // to point it before the start of the next instruction.
            int pc = frame.pc - 1;
    
            // OPT: use binary search
            int best = -1, bestStart = 0, bestEnd = 0;
            for (int i = 0; i != exceptionTable.length; i += EXCEPTION_SLOT_SIZE) {
                int start = exceptionTable[i + EXCEPTION_TRY_START_SLOT];
                int end = exceptionTable[i + EXCEPTION_TRY_END_SLOT];
                if (!(start <= pc && pc < end)) {
                    continue;
                }
                if (onlyFinally && exceptionTable[i + EXCEPTION_TYPE_SLOT] != 1) {
                    continue;
                }
                if (best >= 0) {
                    // Since handlers always nest and they never have shared end
                    // although they can share start  it is sufficient to compare
                    // handlers ends
                    if (bestEnd < end) {
                        continue;
                    }
                    // Check the above assumption
                    if (bestStart > start) Kit.codeBug(); // should be nested
                    if (bestEnd == end) Kit.codeBug();  // no ens sharing
                }
                best = i;
                bestStart = start;
                bestEnd = end;
            }
            return best;
        }
    
        private static void dumpICode(InterpreterData idata)
        {
            if (!Token.printICode) {
                return;
            }
    
            byte iCode[] = idata.itsICode;
            int iCodeLength = iCode.length;
            String[] strings = idata.itsStringTable;
            PrintStream out = System.out;
            out.println("ICode dump, for " + idata.itsName
                        + ", length = " + iCodeLength);
            out.println("MaxStack = " + idata.itsMaxStack);
    
            int indexReg = 0;
            for (int pc = 0; pc < iCodeLength; ) {
                out.flush();
                out.print(" [" + pc + "] ");
                int token = iCode[pc];
                int icodeLength = bytecodeSpan(token);
                String tname = bytecodeName(token);
                int old_pc = pc;
                ++pc;
                switch (token) {
                  default:
                    if (icodeLength != 1) Kit.codeBug();
                    out.println(tname);
                    break;
    
                  case Icode_GOSUB :
                  case Token.GOTO :
                  case Token.IFEQ :
                  case Token.IFNE :
                  case Icode_IFEQ_POP :
                  case Icode_LEAVEDQ : {
                    int newPC = pc + getShort(iCode, pc) - 1;
                    out.println(tname + " " + newPC);
                    pc += 2;
                    break;
                  }
                  case Icode_VAR_INC_DEC :
                  case Icode_NAME_INC_DEC :
                  case Icode_PROP_INC_DEC :
                  case Icode_ELEM_INC_DEC :
                  case Icode_REF_INC_DEC: {
                    int incrDecrType = iCode[pc];
                    out.println(tname + " " + incrDecrType);
                    ++pc;
                    break;
                  }
    
                  case Icode_CALLSPECIAL : {
                    int callType = iCode[pc] & 0xFF;
                    boolean isNew =  (iCode[pc + 1] != 0);
                    int line = getIndex(iCode, pc+2);
                    out.println(tname+" "+callType+" "+isNew+" "+indexReg+" "+line);
                    pc += 4;
                    break;
                  }
    
                  case Token.CATCH_SCOPE:
                    {
                        boolean afterFisrtFlag =  (iCode[pc] != 0);
                        out.println(tname+" "+afterFisrtFlag);
                        ++pc;
                    }
                    break;
                  case Token.REGEXP :
                    out.println(tname+" "+idata.itsRegExpLiterals[indexReg]);
                    break;
                  case Token.OBJECTLIT :
                  case Icode_SPARE_ARRAYLIT :
                    out.println(tname+" "+idata.literalIds[indexReg]);
                    break;
                  case Icode_CLOSURE_EXPR :
                  case Icode_CLOSURE_STMT :
                    out.println(tname+" "+idata.itsNestedFunctions[indexReg]);
                    break;
                  case Token.CALL :
                  case Icode_TAIL_CALL :
                  case Token.REF_CALL :
                  case Token.NEW :
                    out.println(tname+' '+indexReg);
                    break;
                  case Token.THROW :
                  case Token.YIELD :
                  case Icode_GENERATOR :
                  case Icode_GENERATOR_END :
                  {
                    int line = getIndex(iCode, pc);
                    out.println(tname + " : " + line);
                    pc += 2;
                    break;
                  }
                  case Icode_SHORTNUMBER : {
                    int value = getShort(iCode, pc);
                    out.println(tname + " " + value);
                    pc += 2;
                    break;
                  }
                  case Icode_INTNUMBER : {
                    int value = getInt(iCode, pc);
                    out.println(tname + " " + value);
                    pc += 4;
                    break;
                  }
                  case Token.NUMBER : {
                    double value = idata.itsDoubleTable[indexReg];
                    out.println(tname + " " + value);
                    break;
                  }
                  case Icode_LINE : {
                    int line = getIndex(iCode, pc);
                    out.println(tname + " : " + line);
                    pc += 2;
                    break;
                  }
                  case Icode_REG_STR1: {
                    String str = strings[0xFF & iCode[pc]];
                    out.println(tname + " \"" + str + '"');
                    ++pc;
                    break;
                  }
                  case Icode_REG_STR2: {
                    String str = strings[getIndex(iCode, pc)];
                    out.println(tname + " \"" + str + '"');
                    pc += 2;
                    break;
                  }
                  case Icode_REG_STR4: {
                    String str = strings[getInt(iCode, pc)];
                    out.println(tname + " \"" + str + '"');
                    pc += 4;
                    break;
                  }
                  case Icode_REG_IND_C0:
                      indexReg = 0;
                      out.println(tname);
                      break;
                  case Icode_REG_IND_C1:
                      indexReg = 1;
                      out.println(tname);
                      break;
                  case Icode_REG_IND_C2:
                      indexReg = 2;
                      out.println(tname);
                      break;
                  case Icode_REG_IND_C3:
                      indexReg = 3;
                      out.println(tname);
                      break;
                  case Icode_REG_IND_C4:
                      indexReg = 4;
                      out.println(tname);
                      break;
                  case Icode_REG_IND_C5:
                      indexReg = 5;
                      out.println(tname);
                      break;
                  case Icode_REG_IND1: {
                    indexReg = 0xFF & iCode[pc];
                    out.println(tname+" "+indexReg);
                    ++pc;
                    break;
                  }
                  case Icode_REG_IND2: {
                    indexReg = getIndex(iCode, pc);
                    out.println(tname+" "+indexReg);
                    pc += 2;
                    break;
                  }
                  case Icode_REG_IND4: {
                    indexReg = getInt(iCode, pc);
                    out.println(tname+" "+indexReg);
                    pc += 4;
                    break;
                  }
                  case Icode_GETVAR1:
                  case Icode_SETVAR1:
                  case Icode_SETCONSTVAR1:
                    indexReg = iCode[pc];
                    out.println(tname+" "+indexReg);
                    ++pc;
                    break;
                }
                if (old_pc + icodeLength != pc) Kit.codeBug();
            }
    
            int[] table = idata.itsExceptionTable;
            if (table != null) {
                out.println("Exception handlers: "
                             +table.length / EXCEPTION_SLOT_SIZE);
                for (int i = 0; i != table.length;
                     i += EXCEPTION_SLOT_SIZE)
                {
                    int tryStart       = table[i + EXCEPTION_TRY_START_SLOT];
                    int tryEnd         = table[i + EXCEPTION_TRY_END_SLOT];
                    int handlerStart   = table[i + EXCEPTION_HANDLER_SLOT];
                    int type           = table[i + EXCEPTION_TYPE_SLOT];
                    int exceptionLocal = table[i + EXCEPTION_LOCAL_SLOT];
                    int scopeLocal     = table[i + EXCEPTION_SCOPE_SLOT];
    
                    out.println(" tryStart="+tryStart+" tryEnd="+tryEnd
                                +" handlerStart="+handlerStart
                                +" type="+(type == 0 ? "catch" : "finally")
                                +" exceptionLocal="+exceptionLocal);
                }
            }
            out.flush();
        }
    
        private static int bytecodeSpan(int bytecode)
        {
            switch (bytecode) {
                case Token.THROW :
                case Token.YIELD:
                case Icode_GENERATOR:
                case Icode_GENERATOR_END:
                    // source line
                    return 1 + 2;
    
                case Icode_GOSUB :
                case Token.GOTO :
                case Token.IFEQ :
                case Token.IFNE :
                case Icode_IFEQ_POP :
                case Icode_LEAVEDQ :
                    // target pc offset
                    return 1 + 2;
    
                case Icode_CALLSPECIAL :
                    // call type
                    // is new
                    // line number
                    return 1 + 1 + 1 + 2;
    
                case Token.CATCH_SCOPE:
                    // scope flag
                    return 1 + 1;
    
                case Icode_VAR_INC_DEC:
                case Icode_NAME_INC_DEC:
                case Icode_PROP_INC_DEC:
                case Icode_ELEM_INC_DEC:
                case Icode_REF_INC_DEC:
                    // type of ++/--
                    return 1 + 1;
    
                case Icode_SHORTNUMBER :
                    // short number
                    return 1 + 2;
    
                case Icode_INTNUMBER :
                    // int number
                    return 1 + 4;
    
                case Icode_REG_IND1:
                    // ubyte index
                    return 1 + 1;
    
                case Icode_REG_IND2:
                    // ushort index
                    return 1 + 2;
    
                case Icode_REG_IND4:
                    // int index
                    return 1 + 4;
    
                case Icode_REG_STR1:
                    // ubyte string index
                    return 1 + 1;
    
                case Icode_REG_STR2:
                    // ushort string index
                    return 1 + 2;
    
                case Icode_REG_STR4:
                    // int string index
                    return 1 + 4;
    
                case Icode_GETVAR1:
                case Icode_SETVAR1:
                case Icode_SETCONSTVAR1:
                    // byte var index
                    return 1 + 1;
    
                case Icode_LINE :
                    // line number
                    return 1 + 2;
            }
            if (!validBytecode(bytecode)) throw Kit.codeBug();
            return 1;
        }
    
        static int[] getLineNumbers(InterpreterData data)
        {
            UintMap presentLines = new UintMap();
    
            byte[] iCode = data.itsICode;
            int iCodeLength = iCode.length;
            for (int pc = 0; pc != iCodeLength;) {
                int bytecode = iCode[pc];
                int span = bytecodeSpan(bytecode);
                if (bytecode == Icode_LINE) {
                    if (span != 3) Kit.codeBug();
                    int line = getIndex(iCode, pc + 1);
                    presentLines.put(line, 0);
                }
                pc += span;
            }
    
            return presentLines.getKeys();
        }
    
        public void captureStackInfo(RhinoException ex)
        {
            Context cx = Context.getCurrentContext();
            if (cx == null || cx.lastInterpreterFrame == null) {
                // No interpreter invocations
                ex.interpreterStackInfo = null;
                ex.interpreterLineData = null;
                return;
            }
            // has interpreter frame on the stack
            CallFrame[] array;
            if (cx.previousInterpreterInvocations == null
                || cx.previousInterpreterInvocations.size() == 0)
            {
                array = new CallFrame[1];
            } else {
                int previousCount = cx.previousInterpreterInvocations.size();
                if (cx.previousInterpreterInvocations.peek()
                    == cx.lastInterpreterFrame)
                {
                    // It can happen if exception was generated after
                    // frame was pushed to cx.previousInterpreterInvocations
                    // but before assignment to cx.lastInterpreterFrame.
                    // In this case frames has to be ignored.
                    --previousCount;
                }
                array = new CallFrame[previousCount + 1];
                cx.previousInterpreterInvocations.toArray(array);
            }
            array[array.length - 1]  = (CallFrame)cx.lastInterpreterFrame;
    
            int interpreterFrameCount = 0;
            for (int i = 0; i != array.length; ++i) {
                interpreterFrameCount += 1 + array[i].frameIndex;
            }
    
            int[] linePC = new int[interpreterFrameCount];
            // Fill linePC with pc positions from all interpreter frames.
            // Start from the most nested frame
            int linePCIndex = interpreterFrameCount;
            for (int i = array.length; i != 0;) {
                --i;
                CallFrame frame = array[i];
                while (frame != null) {
                    --linePCIndex;
                    linePC[linePCIndex] = frame.pcSourceLineStart;
                    frame = frame.parentFrame;
                }
            }
            if (linePCIndex != 0) Kit.codeBug();
    
            ex.interpreterStackInfo = array;
            ex.interpreterLineData = linePC;
        }
    
        public String getSourcePositionFromStack(Context cx, int[] linep)
        {
            CallFrame frame = (CallFrame)cx.lastInterpreterFrame;
            InterpreterData idata = frame.idata;
            if (frame.pcSourceLineStart >= 0) {
                linep[0] = getIndex(idata.itsICode, frame.pcSourceLineStart);
            } else {
                linep[0] = 0;
            }
            return idata.itsSourceFile;
        }
    
        public String getPatchedStack(RhinoException ex,
                                      String nativeStackTrace)
        {
            String tag = "org.mozilla.javascript.Interpreter.interpretLoop";
            StringBuffer sb = new StringBuffer(nativeStackTrace.length() + 1000);
            String lineSeparator = SecurityUtilities.getSystemProperty("line.separator");
    
            CallFrame[] array = (CallFrame[])ex.interpreterStackInfo;
            int[] linePC = ex.interpreterLineData;
            int arrayIndex = array.length;
            int linePCIndex = linePC.length;
            int offset = 0;
            while (arrayIndex != 0) {
                --arrayIndex;
                int pos = nativeStackTrace.indexOf(tag, offset);
                if (pos < 0) {
                    break;
                }
    
                // Skip tag length
                pos += tag.length();
                // Skip until the end of line
                for (; pos != nativeStackTrace.length(); ++pos) {
                    char c = nativeStackTrace.charAt(pos);
                    if (c == '\n' || c == '\r') {
                        break;
                    }
                }
                sb.append(nativeStackTrace.substring(offset, pos));
                offset = pos;
    
                CallFrame frame = array[arrayIndex];
                while (frame != null) {
                    if (linePCIndex == 0) Kit.codeBug();
                    --linePCIndex;
                    InterpreterData idata = frame.idata;
                    sb.append(lineSeparator);
                    sb.append("\tat script");
                    if (idata.itsName != null && idata.itsName.length() != 0) {
                        sb.append('.');
                        sb.append(idata.itsName);
                    }
                    sb.append('(');
                    sb.append(idata.itsSourceFile);
                    int pc = linePC[linePCIndex];
                    if (pc >= 0) {
                        // Include line info only if available
                        sb.append(':');
                        sb.append(getIndex(idata.itsICode, pc));
                    }
                    sb.append(')');
                    frame = frame.parentFrame;
                }
            }
            sb.append(nativeStackTrace.substring(offset));
    
            return sb.toString();
        }
    
        public List getScriptStack(RhinoException ex)
        {
            if (ex.interpreterStackInfo == null) {
                return null;
            }
            
            List list = new ArrayList();
            String lineSeparator =
                    SecurityUtilities.getSystemProperty("line.separator");
    
            CallFrame[] array = (CallFrame[])ex.interpreterStackInfo;
            int[] linePC = ex.interpreterLineData;
            int arrayIndex = array.length;
            int linePCIndex = linePC.length;
            while (arrayIndex != 0) {
                --arrayIndex;
                StringBuilder sb = new StringBuilder();
                CallFrame frame = array[arrayIndex];
                while (frame != null) {
                    if (linePCIndex == 0) Kit.codeBug();
                    --linePCIndex;
                    InterpreterData idata = frame.idata;
                    sb.append("\tat ");
                    sb.append(idata.itsSourceFile);
                    int pc = linePC[linePCIndex];
                    if (pc >= 0) {
                        // Include line info only if available
                        sb.append(':');
                        sb.append(getIndex(idata.itsICode, pc));
                    }
                    if (idata.itsName != null && idata.itsName.length() != 0) {
                        sb.append(" (");
                        sb.append(idata.itsName);
                        sb.append(')');
                    }
                    sb.append(lineSeparator);
                    frame = frame.parentFrame;
                }
                list.add(sb.toString());
            }
            return list;
        }
            
        static String getEncodedSource(InterpreterData idata)
        {
            if (idata.encodedSource == null) {
                return null;
            }
            return idata.encodedSource.substring(idata.encodedSourceStart,
                                                 idata.encodedSourceEnd);
        }
    
        private static void initFunction(Context cx, Scriptable scope,
                                         InterpretedFunction parent, int index)
        {
            InterpretedFunction fn;
            fn = InterpretedFunction.createFunction(cx, scope, parent, index);
            ScriptRuntime.initFunction(cx, scope, fn, fn.idata.itsFunctionType,
                                       parent.idata.evalScriptFlag);
        }
    
        static Object interpret(InterpretedFunction ifun,
                                Context cx, Scriptable scope,
                                Scriptable thisObj, Object[] args)
        {
            if (!ScriptRuntime.hasTopCall(cx)) Kit.codeBug();
    
            if (cx.interpreterSecurityDomain != ifun.securityDomain) {
                Object savedDomain = cx.interpreterSecurityDomain;
                cx.interpreterSecurityDomain = ifun.securityDomain;
                try {
                    return ifun.securityController.callWithDomain(
                        ifun.securityDomain, cx, ifun, scope, thisObj, args);
                } finally {
                    cx.interpreterSecurityDomain = savedDomain;
                }
            }
    
            CallFrame frame = new CallFrame();
            initFrame(cx, scope, thisObj, args, null, 0, args.length,
                      ifun, null, frame);
            frame.isContinuationsTopFrame = cx.isContinuationsTopCall;
            cx.isContinuationsTopCall = false;
    
            return interpretLoop(cx, frame, null);
        }
    
        static class GeneratorState {
            GeneratorState(int operation, Object value) {
                this.operation = operation;
                this.value = value;
            }
            int operation;
            Object value;
            RuntimeException returnedException;
        }
    
        public static Object resumeGenerator(Context cx,
                                             Scriptable scope,
                                             int operation,
                                             Object savedState,
                                             Object value)
        {
          CallFrame frame = (CallFrame) savedState;
          GeneratorState generatorState = new GeneratorState(operation, value);
          if (operation == NativeGenerator.GENERATOR_CLOSE) {
              try {
                  return interpretLoop(cx, frame, generatorState);
              } catch (RuntimeException e) {
                  // Only propagate exceptions other than closingException
                  if (e != value)
                      throw e;
              }
              return Undefined.instance;
          }
          Object result = interpretLoop(cx, frame, generatorState);
          if (generatorState.returnedException != null)
              throw generatorState.returnedException;
          return result;
        }
    
        public static Object restartContinuation(NativeContinuation c, Context cx,
                                                 Scriptable scope, Object[] args)
        {
            if (!ScriptRuntime.hasTopCall(cx)) {
                return ScriptRuntime.doTopCall(c, cx, scope, null, args);
            }
    
            Object arg;
            if (args.length == 0) {
                arg = Undefined.instance;
            } else {
                arg = args[0];
            }
    
            CallFrame capturedFrame = (CallFrame)c.getImplementation();
            if (capturedFrame == null) {
                // No frames to restart
                return arg;
            }
    
            ContinuationJump cjump = new ContinuationJump(c, null);
    
            cjump.result = arg;
            return interpretLoop(cx, null, cjump);
        }
    
        private static Object interpretLoop(Context cx, CallFrame frame,
                                            Object throwable)
        {
            // throwable holds exception object to rethrow or catch
            // It is also used for continuation restart in which case
            // it holds ContinuationJump
    
            final Object DBL_MRK = UniqueTag.DOUBLE_MARK;
            final Object undefined = Undefined.instance;
    
            final boolean instructionCounting = (cx.instructionThreshold != 0);
            // arbitrary number to add to instructionCount when calling
            // other functions
            final int INVOCATION_COST = 100;
            // arbitrary exception cost for instruction counting
            final int EXCEPTION_COST = 100;
    
            String stringReg = null;
            int indexReg = -1;
    
            if (cx.lastInterpreterFrame != null) {
                // save the top frame from the previous interpretLoop
                // invocation on the stack
                if (cx.previousInterpreterInvocations == null) {
                    cx.previousInterpreterInvocations = new ObjArray();
                }
                cx.previousInterpreterInvocations.push(cx.lastInterpreterFrame);
            }
    
            // When restarting continuation throwable is not null and to jump
            // to the code that rewind continuation state indexReg should be set
            // to -1.
            // With the normal call throwable == null and indexReg == -1 allows to
            // catch bugs with using indeReg to access array elements before
            // initializing indexReg.
    
            GeneratorState generatorState = null;
            if (throwable != null) {
                if (throwable instanceof GeneratorState) {
                  generatorState = (GeneratorState) throwable;
    
                  // reestablish this call frame
                  enterFrame(cx, frame, ScriptRuntime.emptyArgs, true);
                  throwable = null;
                } else if (!(throwable instanceof ContinuationJump)) {
                    // It should be continuation
                    Kit.codeBug();
                }
            }
    
            Object interpreterResult = null;
            double interpreterResultDbl = 0.0;
    
            StateLoop: for (;;) {
                withoutExceptions: try {
    
                    if (throwable != null) {
                        // Need to return both 'frame' and 'throwable' from
                        // 'processThrowable', so just added a 'throwable'
                        // member in 'frame'.
                        frame = processThrowable(cx, throwable, frame, indexReg,
                                                 instructionCounting);
                        throwable = frame.throwable;
                        frame.throwable = null;
                    } else {
                        if (generatorState == null && frame.frozen) Kit.codeBug();
                    }
    
                    // Use local variables for constant values in frame
                    // for faster access
                    Object[] stack = frame.stack;
                    double[] sDbl = frame.sDbl;
                    Object[] vars = frame.varSource.stack;
                    double[] varDbls = frame.varSource.sDbl;
                    int[] varAttributes = frame.varSource.stackAttributes;
                    byte[] iCode = frame.idata.itsICode;
                    String[] strings = frame.idata.itsStringTable;
    
                    // Use local for stackTop as well. Since execption handlers
                    // can only exist at statement level where stack is empty,
                    // it is necessary to save/restore stackTop only across
                    // function calls and normal returns.
                    int stackTop = frame.savedStackTop;
    
                    // Store new frame in cx which is used for error reporting etc.
                    cx.lastInterpreterFrame = frame;
    
                    Loop: for (;;) {
    
                        // Exception handler assumes that PC is already incremented
                        // pass the instruction start when it searches the
                        // exception handler
                        int op = iCode[frame.pc++];
                        jumplessRun: {
    
        // Back indent to ease implementation reading
    switch (op) {
        case Icode_GENERATOR: {
            if (!frame.frozen) {
              // First time encountering this opcode: create new generator
              // object and return
              frame.pc--; // we want to come back here when we resume
              CallFrame generatorFrame = captureFrameForGenerator(frame);
              generatorFrame.frozen = true;
              NativeGenerator generator = new NativeGenerator(frame.scope, 
                  generatorFrame.fnOrScript, generatorFrame);
              frame.result = generator;
              break Loop;
            } else {
              // We are now resuming execution. Fall through to YIELD case.
            }
        }
        // fall through...
        case Token.YIELD: {
            if (!frame.frozen) {
                return freezeGenerator(cx, frame, stackTop, generatorState);
            } else {
                Object obj = thawGenerator(frame, stackTop, generatorState, op);
                if (obj != Scriptable.NOT_FOUND) {
                    throwable = obj;
                    break withoutExceptions;
                }
                continue Loop;
            }
        }
        case Icode_GENERATOR_END: {
          // throw StopIteration
          frame.frozen = true;
          int sourceLine = getIndex(iCode, frame.pc);
          generatorState.returnedException = new JavaScriptException(
              NativeIterator.getStopIterationObject(frame.scope),
              frame.idata.itsSourceFile, sourceLine);
          break Loop;
        }
        case Token.THROW: {
            Object value = stack[stackTop];
            if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
    
            int sourceLine = getIndex(iCode, frame.pc);
            throwable = new JavaScriptException(value,
                                                frame.idata.itsSourceFile,
                                                sourceLine);
            break withoutExceptions;
        }
        case Token.RETHROW: {
            indexReg += frame.localShift;
            throwable = stack[indexReg];
            break withoutExceptions;
        }
        case Token.GE :
        case Token.LE :
        case Token.GT :
        case Token.LT : {
            --stackTop;
            Object rhs = stack[stackTop + 1];
            Object lhs = stack[stackTop];
            boolean valBln;
          object_compare:
            {
              number_compare:
                {
                    double rDbl, lDbl;
                    if (rhs == DBL_MRK) {
                        rDbl = sDbl[stackTop + 1];
                        lDbl = stack_double(frame, stackTop);
                    } else if (lhs == DBL_MRK) {
                        rDbl = ScriptRuntime.toNumber(rhs);
                        lDbl = sDbl[stackTop];
                    } else {
                        break number_compare;
                    }
                    switch (op) {
                      case Token.GE:
                        valBln = (lDbl >= rDbl);
                        break object_compare;
                      case Token.LE:
                        valBln = (lDbl <= rDbl);
                        break object_compare;
                      case Token.GT:
                        valBln = (lDbl > rDbl);
                        break object_compare;
                      case Token.LT:
                        valBln = (lDbl < rDbl);
                        break object_compare;
                      default:
                        throw Kit.codeBug();
                    }
                }
                switch (op) {
                  case Token.GE:
                    valBln = ScriptRuntime.cmp_LE(rhs, lhs);
                    break;
                  case Token.LE:
                    valBln = ScriptRuntime.cmp_LE(lhs, rhs);
                    break;
                  case Token.GT:
                    valBln = ScriptRuntime.cmp_LT(rhs, lhs);
                    break;
                  case Token.LT:
                    valBln = ScriptRuntime.cmp_LT(lhs, rhs);
                    break;
                  default:
                    throw Kit.codeBug();
                }
            }
            stack[stackTop] = ScriptRuntime.wrapBoolean(valBln);
            continue Loop;
        }
        case Token.IN :
        case Token.INSTANCEOF : {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            boolean valBln;
            if (op == Token.IN) {
                valBln = ScriptRuntime.in(lhs, rhs, cx);
            } else {
                valBln = ScriptRuntime.instanceOf(lhs, rhs, cx);
            }
            stack[stackTop] = ScriptRuntime.wrapBoolean(valBln);
            continue Loop;
        }
        case Token.EQ :
        case Token.NE : {
            --stackTop;
            boolean valBln;
            Object rhs = stack[stackTop + 1];
            Object lhs = stack[stackTop];
            if (rhs == DBL_MRK) {
                if (lhs == DBL_MRK) {
                    valBln = (sDbl[stackTop] == sDbl[stackTop + 1]);
                } else {
                    valBln = ScriptRuntime.eqNumber(sDbl[stackTop + 1], lhs);
                }
            } else {
                if (lhs == DBL_MRK) {
                    valBln = ScriptRuntime.eqNumber(sDbl[stackTop], rhs);
                } else {
                    valBln = ScriptRuntime.eq(lhs, rhs);
                }
            }
            valBln ^= (op == Token.NE);
            stack[stackTop] = ScriptRuntime.wrapBoolean(valBln);
            continue Loop;
        }
        case Token.SHEQ :
        case Token.SHNE : {
            --stackTop;
            boolean valBln = shallowEquals(stack, sDbl, stackTop);
            valBln ^= (op == Token.SHNE);
            stack[stackTop] = ScriptRuntime.wrapBoolean(valBln);
            continue Loop;
        }
        case Token.IFNE :
            if (stack_boolean(frame, stackTop--)) {
                frame.pc += 2;
                continue Loop;
            }
            break jumplessRun;
        case Token.IFEQ :
            if (!stack_boolean(frame, stackTop--)) {
                frame.pc += 2;
                continue Loop;
            }
            break jumplessRun;
        case Icode_IFEQ_POP :
            if (!stack_boolean(frame, stackTop--)) {
                frame.pc += 2;
                continue Loop;
            }
            stack[stackTop--] = null;
            break jumplessRun;
        case Token.GOTO :
            break jumplessRun;
        case Icode_GOSUB :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = frame.pc + 2;
            break jumplessRun;
        case Icode_STARTSUB :
            if (stackTop == frame.emptyStackTop + 1) {
                // Call from Icode_GOSUB: store return PC address in the local
                indexReg += frame.localShift;
                stack[indexReg] = stack[stackTop];
                sDbl[indexReg] = sDbl[stackTop];
                --stackTop;
            } else {
                // Call from exception handler: exception object is already stored
                // in the local
                if (stackTop != frame.emptyStackTop) Kit.codeBug();
            }
            continue Loop;
        case Icode_RETSUB : {
            // indexReg: local to store return address
            if (instructionCounting) {
                addInstructionCount(cx, frame, 0);
            }
            indexReg += frame.localShift;
            Object value = stack[indexReg];
            if (value != DBL_MRK) {
                // Invocation from exception handler, restore object to rethrow
                throwable = value;
                break withoutExceptions;
            }
            // Normal return from GOSUB
            frame.pc = (int)sDbl[indexReg];
            if (instructionCounting) {
                frame.pcPrevBranch = frame.pc;
            }
            continue Loop;
        }
        case Icode_POP :
            stack[stackTop] = null;
            stackTop--;
            continue Loop;
        case Icode_POP_RESULT :
            frame.result = stack[stackTop];
            frame.resultDbl = sDbl[stackTop];
            stack[stackTop] = null;
            --stackTop;
            continue Loop;
        case Icode_DUP :
            stack[stackTop + 1] = stack[stackTop];
            sDbl[stackTop + 1] = sDbl[stackTop];
            stackTop++;
            continue Loop;
        case Icode_DUP2 :
            stack[stackTop + 1] = stack[stackTop - 1];
            sDbl[stackTop + 1] = sDbl[stackTop - 1];
            stack[stackTop + 2] = stack[stackTop];
            sDbl[stackTop + 2] = sDbl[stackTop];
            stackTop += 2;
            continue Loop;
        case Icode_SWAP : {
            Object o = stack[stackTop];
            stack[stackTop] = stack[stackTop - 1];
            stack[stackTop - 1] = o;
            double d = sDbl[stackTop];
            sDbl[stackTop] = sDbl[stackTop - 1];
            sDbl[stackTop - 1] = d;
            continue Loop;
        }
        case Token.RETURN :
            frame.result = stack[stackTop];
            frame.resultDbl = sDbl[stackTop];
            --stackTop;
            break Loop;
        case Token.RETURN_RESULT :
            break Loop;
        case Icode_RETUNDEF :
            frame.result = undefined;
            break Loop;
        case Token.BITNOT : {
            int rIntValue = stack_int32(frame, stackTop);
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = ~rIntValue;
            continue Loop;
        }
        case Token.BITAND :
        case Token.BITOR :
        case Token.BITXOR :
        case Token.LSH :
        case Token.RSH : {
            int lIntValue = stack_int32(frame, stackTop-1);
            int rIntValue = stack_int32(frame, stackTop);
            stack[--stackTop] = DBL_MRK;
            switch (op) {
              case Token.BITAND:
                lIntValue &= rIntValue;
                break;
              case Token.BITOR:
                lIntValue |= rIntValue;
                break;
              case Token.BITXOR:
                lIntValue ^= rIntValue;
                break;
              case Token.LSH:
                lIntValue <<= rIntValue;
                break;
              case Token.RSH:
                lIntValue >>= rIntValue;
                break;
            }
            sDbl[stackTop] = lIntValue;
            continue Loop;
        }
        case Token.URSH : {
            double lDbl = stack_double(frame, stackTop-1);
            int rIntValue = stack_int32(frame, stackTop) & 0x1F;
            stack[--stackTop] = DBL_MRK;
            sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue;
            continue Loop;
        }
        case Token.NEG :
        case Token.POS : {
            double rDbl = stack_double(frame, stackTop);
            stack[stackTop] = DBL_MRK;
            if (op == Token.NEG) {
                rDbl = -rDbl;
            }
            sDbl[stackTop] = rDbl;
            continue Loop;
        }
        case Token.ADD :
            --stackTop;
            do_add(stack, sDbl, stackTop, cx);
            continue Loop;
        case Token.SUB :
        case Token.MUL :
        case Token.DIV :
        case Token.MOD : {
            double rDbl = stack_double(frame, stackTop);
            --stackTop;
            double lDbl = stack_double(frame, stackTop);
            stack[stackTop] = DBL_MRK;
            switch (op) {
              case Token.SUB:
                lDbl -= rDbl;
                break;
              case Token.MUL:
                lDbl *= rDbl;
                break;
              case Token.DIV:
                lDbl /= rDbl;
                break;
              case Token.MOD:
                lDbl %= rDbl;
                break;
            }
            sDbl[stackTop] = lDbl;
            continue Loop;
        }
        case Token.NOT :
            stack[stackTop] = ScriptRuntime.wrapBoolean(
                                  !stack_boolean(frame, stackTop));
            continue Loop;
        case Token.BINDNAME :
            stack[++stackTop] = ScriptRuntime.bind(cx, frame.scope, stringReg);
            continue Loop;
        case Token.SETNAME : {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Scriptable lhs = (Scriptable)stack[stackTop];
            stack[stackTop] = ScriptRuntime.setName(lhs, rhs, cx,
                                                    frame.scope, stringReg);
            continue Loop;
        }
        case Icode_SETCONST: {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Scriptable lhs = (Scriptable)stack[stackTop];
            stack[stackTop] = ScriptRuntime.setConst(lhs, rhs, cx, stringReg);
            continue Loop;
        }
        case Token.DELPROP : {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.delete(lhs, rhs, cx);
            continue Loop;
        }
        case Token.GETPROPNOWARN : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.getObjectPropNoWarn(lhs, stringReg, cx);
            continue Loop;
        }
        case Token.GETPROP : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.getObjectProp(lhs, stringReg, cx, frame.scope);
            continue Loop;
        }
        case Token.SETPROP : {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.setObjectProp(lhs, stringReg, rhs,
                                                          cx);
            continue Loop;
        }
        case Icode_PROP_INC_DEC : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.propIncrDecr(lhs, stringReg,
                                                         cx, iCode[frame.pc]);
            ++frame.pc;
            continue Loop;
        }
        case Token.GETELEM : {
            --stackTop;
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) {
                lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            }
            Object value;
            Object id = stack[stackTop + 1];
            if (id != DBL_MRK) {
                value = ScriptRuntime.getObjectElem(lhs, id, cx, frame.scope);
            } else {
                double d = sDbl[stackTop + 1];
                value = ScriptRuntime.getObjectIndex(lhs, d, cx);
            }
            stack[stackTop] = value;
            continue Loop;
        }
        case Token.SETELEM : {
            stackTop -= 2;
            Object rhs = stack[stackTop + 2];
            if (rhs == DBL_MRK) {
                rhs = ScriptRuntime.wrapNumber(sDbl[stackTop + 2]);
            }
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) {
                lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            }
            Object value;
            Object id = stack[stackTop + 1];
            if (id != DBL_MRK) {
                value = ScriptRuntime.setObjectElem(lhs, id, rhs, cx);
            } else {
                double d = sDbl[stackTop + 1];
                value = ScriptRuntime.setObjectIndex(lhs, d, rhs, cx);
            }
            stack[stackTop] = value;
            continue Loop;
        }
        case Icode_ELEM_INC_DEC: {
            Object rhs = stack[stackTop];
            if (rhs == DBL_MRK) rhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.elemIncrDecr(lhs, rhs, cx,
                                                         iCode[frame.pc]);
            ++frame.pc;
            continue Loop;
        }
        case Token.GET_REF : {
            Ref ref = (Ref)stack[stackTop];
            stack[stackTop] = ScriptRuntime.refGet(ref, cx);
            continue Loop;
        }
        case Token.SET_REF : {
            Object value = stack[stackTop];
            if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Ref ref = (Ref)stack[stackTop];
            stack[stackTop] = ScriptRuntime.refSet(ref, value, cx);
            continue Loop;
        }
        case Token.DEL_REF : {
            Ref ref = (Ref)stack[stackTop];
            stack[stackTop] = ScriptRuntime.refDel(ref, cx);
            continue Loop;
        }
        case Icode_REF_INC_DEC : {
            Ref ref = (Ref)stack[stackTop];
            stack[stackTop] = ScriptRuntime.refIncrDecr(ref, cx, iCode[frame.pc]);
            ++frame.pc;
            continue Loop;
        }
        case Token.LOCAL_LOAD :
            ++stackTop;
            indexReg += frame.localShift;
            stack[stackTop] = stack[indexReg];
            sDbl[stackTop] = sDbl[indexReg];
            continue Loop;
        case Icode_LOCAL_CLEAR :
            indexReg += frame.localShift;
            stack[indexReg] = null;
            continue Loop;
        case Icode_NAME_AND_THIS :
            // stringReg: name
            ++stackTop;
            stack[stackTop] = ScriptRuntime.getNameFunctionAndThis(stringReg,
                                                                   cx, frame.scope);
            ++stackTop;
            stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx);
            continue Loop;
        case Icode_PROP_AND_THIS: {
            Object obj = stack[stackTop];
            if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            // stringReg: property
            stack[stackTop] = ScriptRuntime.getPropFunctionAndThis(obj, stringReg,
                                                                   cx, frame.scope);
            ++stackTop;
            stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx);
            continue Loop;
        }
        case Icode_ELEM_AND_THIS: {
            Object obj = stack[stackTop - 1];
            if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop - 1]);
            Object id = stack[stackTop];
            if (id == DBL_MRK) id = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop - 1] = ScriptRuntime.getElemFunctionAndThis(obj, id, cx);
            stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx);
            continue Loop;
        }
        case Icode_VALUE_AND_THIS : {
            Object value = stack[stackTop];
            if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.getValueFunctionAndThis(value, cx);
            ++stackTop;
            stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx);
            continue Loop;
        }
        case Icode_CALLSPECIAL : {
            if (instructionCounting) {
                cx.instructionCount += INVOCATION_COST;
            }
            int callType = iCode[frame.pc] & 0xFF;
            boolean isNew =  (iCode[frame.pc + 1] != 0);
            int sourceLine = getIndex(iCode, frame.pc + 2);
    
            // indexReg: number of arguments
            if (isNew) {
                // stack change: function arg0 .. argN -> newResult
                stackTop -= indexReg;
    
                Object function = stack[stackTop];
                if (function == DBL_MRK)
                    function = ScriptRuntime.wrapNumber(sDbl[stackTop]);
                Object[] outArgs = getArgsArray(
                                       stack, sDbl, stackTop + 1, indexReg);
                stack[stackTop] = ScriptRuntime.newSpecial(
                                      cx, function, outArgs, frame.scope, callType);
            } else {
                // stack change: function thisObj arg0 .. argN -> result
                stackTop -= 1 + indexReg;
    
                // Call code generation ensure that stack here
                // is ... Callable Scriptable
                Scriptable functionThis = (Scriptable)stack[stackTop + 1];
                Callable function = (Callable)stack[stackTop];
                Object[] outArgs = getArgsArray(
                                       stack, sDbl, stackTop + 2, indexReg);
                stack[stackTop] = ScriptRuntime.callSpecial(
                                      cx, function, functionThis, outArgs,
                                      frame.scope, frame.thisObj, callType,
                                      frame.idata.itsSourceFile, sourceLine);
            }
            frame.pc += 4;
            continue Loop;
        }
        case Token.CALL :
        case Icode_TAIL_CALL :
        case Token.REF_CALL : {
            if (instructionCounting) {
                cx.instructionCount += INVOCATION_COST;
            }
            // stack change: function thisObj arg0 .. argN -> result
            // indexReg: number of arguments
            stackTop -= 1 + indexReg;
    
            // CALL generation ensures that fun and funThisObj
            // are already Scriptable and Callable objects respectively
            Callable fun = (Callable)stack[stackTop];
            Scriptable funThisObj = (Scriptable)stack[stackTop + 1];
            if (op == Token.REF_CALL) {
                Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 2,
                                                indexReg);
                stack[stackTop] = ScriptRuntime.callRef(fun, funThisObj,
                                                        outArgs, cx);
                continue Loop;
            }
            Scriptable calleeScope = frame.scope;
            if (frame.useActivation) {
                calleeScope = ScriptableObject.getTopLevelScope(frame.scope);
            }
            if (fun instanceof InterpretedFunction) {
                InterpretedFunction ifun = (InterpretedFunction)fun;
                if (frame.fnOrScript.securityDomain == ifun.securityDomain) {
                    CallFrame callParentFrame = frame;
                    CallFrame calleeFrame = new CallFrame();
                    if (op == Icode_TAIL_CALL) {
                        // In principle tail call can re-use the current
                        // frame and its stack arrays but it is hard to
                        // do properly. Any exceptions that can legally
                        // happen during frame re-initialization including
                        // StackOverflowException during innocent looking
                        // System.arraycopy may leave the current frame
                        // data corrupted leading to undefined behaviour
                        // in the catch code bellow that unwinds JS stack
                        // on exceptions. Then there is issue about frame release
                        // end exceptions there.
                        // To avoid frame allocation a released frame
                        // can be cached for re-use which would also benefit
                        // non-tail calls but it is not clear that this caching
                        // would gain in performance due to potentially
                        // bad interaction with GC.
                        callParentFrame = frame.parentFrame;
                        // Release the current frame. See Bug #344501 to see why
                        // it is being done here.
                        exitFrame(cx, frame, null);
                    }
                    initFrame(cx, calleeScope, funThisObj, stack, sDbl,
                              stackTop + 2, indexReg, ifun, callParentFrame,
                              calleeFrame);
                    if (op != Icode_TAIL_CALL) {
                        frame.savedStackTop = stackTop;
                        frame.savedCallOp = op;
                    }
                    frame = calleeFrame;
                    continue StateLoop;
                }
            }
    
            if (fun instanceof NativeContinuation) {
                // Jump to the captured continuation
                ContinuationJump cjump;
                cjump = new ContinuationJump((NativeContinuation)fun, frame);
    
                // continuation result is the first argument if any
                // of continuation call
                if (indexReg == 0) {
                    cjump.result = undefined;
                } else {
                    cjump.result = stack[stackTop + 2];
                    cjump.resultDbl = sDbl[stackTop + 2];
                }
    
                // Start the real unwind job
                throwable = cjump;
                break withoutExceptions;
            }
    
            if (fun instanceof IdFunctionObject) {
                IdFunctionObject ifun = (IdFunctionObject)fun;
                if (NativeContinuation.isContinuationConstructor(ifun)) {
                    frame.stack[stackTop] = captureContinuation(cx,
                            frame.parentFrame, false);
                    continue Loop;
                }
                // Bug 405654 -- make best effort to keep Function.apply and 
                // Function.call within this interpreter loop invocation
                if (BaseFunction.isApplyOrCall(ifun)) {
                    Callable applyCallable = ScriptRuntime.getCallable(funThisObj);
                    if (applyCallable instanceof InterpretedFunction) {
                        InterpretedFunction iApplyCallable = (InterpretedFunction)applyCallable;
                        if (frame.fnOrScript.securityDomain == iApplyCallable.securityDomain) {
                            frame = initFrameForApplyOrCall(cx, frame, indexReg,
                                    stack, sDbl, stackTop, op, calleeScope, ifun,
                                    iApplyCallable);
                            continue StateLoop;
                        }
                    }
                }
            }
    
            // Bug 447697 -- make best effort to keep __noSuchMethod__ within this  
            // interpreter loop invocation
            if (fun instanceof NoSuchMethodShim) {
                // get the shim and the actual method
                NoSuchMethodShim noSuchMethodShim = (NoSuchMethodShim) fun;
                Callable noSuchMethodMethod = noSuchMethodShim.noSuchMethodMethod;
                // if the method is in fact an InterpretedFunction
                if (noSuchMethodMethod instanceof InterpretedFunction) {
                    InterpretedFunction ifun = (InterpretedFunction) noSuchMethodMethod;
                    if (frame.fnOrScript.securityDomain == ifun.securityDomain) {
                        frame = initFrameForNoSuchMethod(cx, frame, indexReg, stack, sDbl,
                                                 stackTop, op, funThisObj, calleeScope,
                                                 noSuchMethodShim, ifun);
                        continue StateLoop;
                    }
                }
            }
    
            cx.lastInterpreterFrame = frame;
            frame.savedCallOp = op;
            frame.savedStackTop = stackTop;
            stack[stackTop] = fun.call(cx, calleeScope, funThisObj, 
                    getArgsArray(stack, sDbl, stackTop + 2, indexReg));
            cx.lastInterpreterFrame = null;
    
            continue Loop;
        }
        case Token.NEW : {
            if (instructionCounting) {
                cx.instructionCount += INVOCATION_COST;
            }
            // stack change: function arg0 .. argN -> newResult
            // indexReg: number of arguments
            stackTop -= indexReg;
    
            Object lhs = stack[stackTop];
            if (lhs instanceof InterpretedFunction) {
                InterpretedFunction f = (InterpretedFunction)lhs;
                if (frame.fnOrScript.securityDomain == f.securityDomain) {
                    Scriptable newInstance = f.createObject(cx, frame.scope);
                    CallFrame calleeFrame = new CallFrame();
                    initFrame(cx, frame.scope, newInstance, stack, sDbl,
                              stackTop + 1, indexReg, f, frame,
                              calleeFrame);
    
                    stack[stackTop] = newInstance;
                    frame.savedStackTop = stackTop;
                    frame.savedCallOp = op;
                    frame = calleeFrame;
                    continue StateLoop;
                }
            }
            if (!(lhs instanceof Function)) {
                if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
                throw ScriptRuntime.notFunctionError(lhs);
            }
            Function fun = (Function)lhs;
    
            if (fun instanceof IdFunctionObject) {
                IdFunctionObject ifun = (IdFunctionObject)fun;
                if (NativeContinuation.isContinuationConstructor(ifun)) {
                    frame.stack[stackTop] =
                        captureContinuation(cx, frame.parentFrame, false);
                    continue Loop;
                }
            }
    
            Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg);
            stack[stackTop] = fun.construct(cx, frame.scope, outArgs);
            continue Loop;
        }
        case Token.TYPEOF : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.typeof(lhs);
            continue Loop;
        }
        case Icode_TYPEOFNAME :
            stack[++stackTop] = ScriptRuntime.typeofName(frame.scope, stringReg);
            continue Loop;
        case Token.STRING :
            stack[++stackTop] = stringReg;
            continue Loop;
        case Icode_SHORTNUMBER :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = getShort(iCode, frame.pc);
            frame.pc += 2;
            continue Loop;
        case Icode_INTNUMBER :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = getInt(iCode, frame.pc);
            frame.pc += 4;
            continue Loop;
        case Token.NUMBER :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = frame.idata.itsDoubleTable[indexReg];
            continue Loop;
        case Token.NAME :
            stack[++stackTop] = ScriptRuntime.name(cx, frame.scope, stringReg);
            continue Loop;
        case Icode_NAME_INC_DEC :
            stack[++stackTop] = ScriptRuntime.nameIncrDecr(frame.scope, stringReg,
                                                           cx, iCode[frame.pc]);
            ++frame.pc;
            continue Loop;
        case Icode_SETCONSTVAR1:
            indexReg = iCode[frame.pc++];
            // fallthrough
        case Token.SETCONSTVAR :
            if (!frame.useActivation) {
                if ((varAttributes[indexReg] & ScriptableObject.READONLY) == 0) {
                    throw Context.reportRuntimeError1("msg.var.redecl",
                                                      frame.idata.argNames[indexReg]);
                }
                if ((varAttributes[indexReg] & ScriptableObject.UNINITIALIZED_CONST)
                    != 0)
                {
                    vars[indexReg] = stack[stackTop];
                    varAttributes[indexReg] &= ~ScriptableObject.UNINITIALIZED_CONST;
                    varDbls[indexReg] = sDbl[stackTop];
                }
            } else {
                Object val = stack[stackTop];
                if (val == DBL_MRK) val = ScriptRuntime.wrapNumber(sDbl[stackTop]);
                stringReg = frame.idata.argNames[indexReg];
                if (frame.scope instanceof ConstProperties) {
                    ConstProperties cp = (ConstProperties)frame.scope;
                    cp.putConst(stringReg, frame.scope, val);
                } else
                    throw Kit.codeBug();
            }
            continue Loop;
        case Icode_SETVAR1:
            indexReg = iCode[frame.pc++];
            // fallthrough
        case Token.SETVAR :
            if (!frame.useActivation) {
                if ((varAttributes[indexReg] & ScriptableObject.READONLY) == 0) {
                    vars[indexReg] = stack[stackTop];
                    varDbls[indexReg] = sDbl[stackTop];
                }
            } else {
                Object val = stack[stackTop];
                if (val == DBL_MRK) val = ScriptRuntime.wrapNumber(sDbl[stackTop]);
                stringReg = frame.idata.argNames[indexReg];
                frame.scope.put(stringReg, frame.scope, val);
            }
            continue Loop;
        case Icode_GETVAR1:
            indexReg = iCode[frame.pc++];
            // fallthrough
        case Token.GETVAR :
            ++stackTop;
            if (!frame.useActivation) {
                stack[stackTop] = vars[indexReg];
                sDbl[stackTop] = varDbls[indexReg];
            } else {
                stringReg = frame.idata.argNames[indexReg];
                stack[stackTop] = frame.scope.get(stringReg, frame.scope);
            }
            continue Loop;
        case Icode_VAR_INC_DEC : {
            // indexReg : varindex
            ++stackTop;
            int incrDecrMask = iCode[frame.pc];
            if (!frame.useActivation) {
                stack[stackTop] = DBL_MRK;
                Object varValue = vars[indexReg];
                double d;
                if (varValue == DBL_MRK) {
                    d = varDbls[indexReg];
                } else {
                    d = ScriptRuntime.toNumber(varValue);
                    vars[indexReg] = DBL_MRK;
                }
                double d2 = ((incrDecrMask & Node.DECR_FLAG) == 0)
                            ? d + 1.0 : d - 1.0;
                varDbls[indexReg] = d2;
                sDbl[stackTop] = ((incrDecrMask & Node.POST_FLAG) == 0) ? d2 : d;
            } else {
                String varName = frame.idata.argNames[indexReg];
                stack[stackTop] = ScriptRuntime.nameIncrDecr(frame.scope, varName,
                                                             cx, incrDecrMask);
            }
            ++frame.pc;
            continue Loop;
        }
        case Icode_ZERO :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = 0;
            continue Loop;
        case Icode_ONE :
            ++stackTop;
            stack[stackTop] = DBL_MRK;
            sDbl[stackTop] = 1;
            continue Loop;
        case Token.NULL :
            stack[++stackTop] = null;
            continue Loop;
        case Token.THIS :
            stack[++stackTop] = frame.thisObj;
            continue Loop;
        case Token.THISFN :
            stack[++stackTop] = frame.fnOrScript;
            continue Loop;
        case Token.FALSE :
            stack[++stackTop] = Boolean.FALSE;
            continue Loop;
        case Token.TRUE :
            stack[++stackTop] = Boolean.TRUE;
            continue Loop;
        case Icode_UNDEF :
            stack[++stackTop] = undefined;
            continue Loop;
        case Token.ENTERWITH : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            frame.scope = ScriptRuntime.enterWith(lhs, cx, frame.scope);
            continue Loop;
        }
        case Token.LEAVEWITH :
            frame.scope = ScriptRuntime.leaveWith(frame.scope);
            continue Loop;
        case Token.CATCH_SCOPE : {
            // stack top: exception object
            // stringReg: name of exception variable
            // indexReg: local for exception scope
            --stackTop;
            indexReg += frame.localShift;
    
            boolean afterFirstScope =  (frame.idata.itsICode[frame.pc] != 0);
            Throwable caughtException = (Throwable)stack[stackTop + 1];
            Scriptable lastCatchScope;
            if (!afterFirstScope) {
                lastCatchScope = null;
            } else {
                lastCatchScope = (Scriptable)stack[indexReg];
            }
            stack[indexReg] = ScriptRuntime.newCatchScope(caughtException,
                                                          lastCatchScope, stringReg,
                                                          cx, frame.scope);
            ++frame.pc;
            continue Loop;
        }
        case Token.ENUM_INIT_KEYS :
        case Token.ENUM_INIT_VALUES :
        case Token.ENUM_INIT_ARRAY : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            indexReg += frame.localShift;
            int enumType = op == Token.ENUM_INIT_KEYS 
                             ? ScriptRuntime.ENUMERATE_KEYS :
                           op == Token.ENUM_INIT_VALUES 
                             ? ScriptRuntime.ENUMERATE_VALUES :
                           ScriptRuntime.ENUMERATE_ARRAY;
            stack[indexReg] = ScriptRuntime.enumInit(lhs, cx, enumType);
            continue Loop;
        }
        case Token.ENUM_NEXT :
        case Token.ENUM_ID : {
            indexReg += frame.localShift;
            Object val = stack[indexReg];
            ++stackTop;
            stack[stackTop] = (op == Token.ENUM_NEXT)
                              ? (Object)ScriptRuntime.enumNext(val)
                              : (Object)ScriptRuntime.enumId(val, cx);
            continue Loop;
        }
        case Token.REF_SPECIAL : {
            //stringReg: name of special property
            Object obj = stack[stackTop];
            if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.specialRef(obj, stringReg, cx);
            continue Loop;
        }
        case Token.REF_MEMBER: {
            //indexReg: flags
            Object elem = stack[stackTop];
            if (elem == DBL_MRK) elem = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object obj = stack[stackTop];
            if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.memberRef(obj, elem, cx, indexReg);
            continue Loop;
        }
        case Token.REF_NS_MEMBER: {
            //indexReg: flags
            Object elem = stack[stackTop];
            if (elem == DBL_MRK) elem = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object ns = stack[stackTop];
            if (ns == DBL_MRK) ns = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object obj = stack[stackTop];
            if (obj == DBL_MRK) obj = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.memberRef(obj, ns, elem, cx, indexReg);
            continue Loop;
        }
        case Token.REF_NAME: {
            //indexReg: flags
            Object name = stack[stackTop];
            if (name == DBL_MRK) name = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.nameRef(name, cx, frame.scope,
                                                    indexReg);
            continue Loop;
        }
        case Token.REF_NS_NAME: {
            //indexReg: flags
            Object name = stack[stackTop];
            if (name == DBL_MRK) name = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            Object ns = stack[stackTop];
            if (ns == DBL_MRK) ns = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.nameRef(ns, name, cx, frame.scope,
                                                    indexReg);
            continue Loop;
        }
        case Icode_SCOPE_LOAD :
            indexReg += frame.localShift;
            frame.scope = (Scriptable)stack[indexReg];
            continue Loop;
        case Icode_SCOPE_SAVE :
            indexReg += frame.localShift;
            stack[indexReg] = frame.scope;
            continue Loop;
        case Icode_CLOSURE_EXPR :
            stack[++stackTop] = InterpretedFunction.createFunction(cx, frame.scope,
                                                                   frame.fnOrScript,
                                                                   indexReg);
            continue Loop;
        case Icode_CLOSURE_STMT :
            initFunction(cx, frame.scope, frame.fnOrScript, indexReg);
            continue Loop;
        case Token.REGEXP :
            stack[++stackTop] = frame.scriptRegExps[indexReg];
            continue Loop;
        case Icode_LITERAL_NEW :
            // indexReg: number of values in the literal
            ++stackTop;
            stack[stackTop] = new int[indexReg];
            ++stackTop;
            stack[stackTop] = new Object[indexReg];
            sDbl[stackTop] = 0;
            continue Loop;
        case Icode_LITERAL_SET : {
            Object value = stack[stackTop];
            if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            int i = (int)sDbl[stackTop];
            ((Object[])stack[stackTop])[i] = value;
            sDbl[stackTop] = i + 1;
            continue Loop;
        }
        case Icode_LITERAL_GETTER : {
            Object value = stack[stackTop];
            --stackTop;
            int i = (int)sDbl[stackTop];
            ((Object[])stack[stackTop])[i] = value;
            ((int[])stack[stackTop - 1])[i] = -1;
            sDbl[stackTop] = i + 1;
            continue Loop;
        }
        case Icode_LITERAL_SETTER : {
            Object value = stack[stackTop];
            --stackTop;
            int i = (int)sDbl[stackTop];
            ((Object[])stack[stackTop])[i] = value;
            ((int[])stack[stackTop - 1])[i] = +1;
            sDbl[stackTop] = i + 1;
            continue Loop;
        }
        case Token.ARRAYLIT :
        case Icode_SPARE_ARRAYLIT :
        case Token.OBJECTLIT : {
            Object[] data = (Object[])stack[stackTop];
            --stackTop;
            int[] getterSetters = (int[])stack[stackTop];
            Object val;
            if (op == Token.OBJECTLIT) {
                Object[] ids = (Object[])frame.idata.literalIds[indexReg];
                val = ScriptRuntime.newObjectLiteral(ids, data, getterSetters, cx,
                        frame.scope);
            } else {
                int[] skipIndexces = null;
                if (op == Icode_SPARE_ARRAYLIT) {
                    skipIndexces = (int[])frame.idata.literalIds[indexReg];
                }
                val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx,
                                                    frame.scope);
            }
            stack[stackTop] = val;
            continue Loop;
        }
        case Icode_ENTERDQ : {
            Object lhs = stack[stackTop];
            if (lhs == DBL_MRK) lhs = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            --stackTop;
            frame.scope = ScriptRuntime.enterDotQuery(lhs, frame.scope);
            continue Loop;
        }
        case Icode_LEAVEDQ : {
            boolean valBln = stack_boolean(frame, stackTop);
            Object x = ScriptRuntime.updateDotQuery(valBln, frame.scope);
            if (x != null) {
                stack[stackTop] = x;
                frame.scope = ScriptRuntime.leaveDotQuery(frame.scope);
                frame.pc += 2;
                continue Loop;
            }
            // reset stack and PC to code after ENTERDQ
            --stackTop;
            break jumplessRun;
        }
        case Token.DEFAULTNAMESPACE : {
            Object value = stack[stackTop];
            if (value == DBL_MRK) value = ScriptRuntime.wrapNumber(sDbl[stackTop]);
            stack[stackTop] = ScriptRuntime.setDefaultNamespace(value, cx);
            continue Loop;
        }
        case Token.ESCXMLATTR : {
            Object value = stack[stackTop];
            if (value != DBL_MRK) {
                stack[stackTop] = ScriptRuntime.escapeAttributeValue(value, cx);
            }
            continue Loop;
        }
        case Token.ESCXMLTEXT : {
            Object value = stack[stackTop];
            if (value != DBL_MRK) {
                stack[stackTop] = ScriptRuntime.escapeTextValue(value, cx);
            }
            continue Loop;
        }
        case Icode_DEBUGGER:
            if (frame.debuggerFrame != null) {
                frame.debuggerFrame.onDebuggerStatement(cx);
            }
            continue Loop;
        case Icode_LINE :
            frame.pcSourceLineStart = frame.pc;
            if (frame.debuggerFrame != null) {
                int line = getIndex(iCode, frame.pc);
                frame.debuggerFrame.onLineChange(cx, line);
            }
            frame.pc += 2;
            continue Loop;
        case Icode_REG_IND_C0:
            indexReg = 0;
            continue Loop;
        case Icode_REG_IND_C1:
            indexReg = 1;
            continue Loop;
        case Icode_REG_IND_C2:
            indexReg = 2;
            continue Loop;
        case Icode_REG_IND_C3:
            indexReg = 3;
            continue Loop;
        case Icode_REG_IND_C4:
            indexReg = 4;
            continue Loop;
        case Icode_REG_IND_C5:
            indexReg = 5;
            continue Loop;
        case Icode_REG_IND1:
            indexReg = 0xFF & iCode[frame.pc];
            ++frame.pc;
            continue Loop;
        case Icode_REG_IND2:
            indexReg = getIndex(iCode, frame.pc);
            frame.pc += 2;
            continue Loop;
        case Icode_REG_IND4:
            indexReg = getInt(iCode, frame.pc);
            frame.pc += 4;
            continue Loop;
        case Icode_REG_STR_C0:
            stringReg = strings[0];
            continue Loop;
        case Icode_REG_STR_C1:
            stringReg = strings[1];
            continue Loop;
        case Icode_REG_STR_C2:
            stringReg = strings[2];
            continue Loop;
        case Icode_REG_STR_C3:
            stringReg = strings[3];
            continue Loop;
        case Icode_REG_STR1:
            stringReg = strings[0xFF & iCode[frame.pc]];
            ++frame.pc;
            continue Loop;
        case Icode_REG_STR2:
            stringReg = strings[getIndex(iCode, frame.pc)];
            frame.pc += 2;
            continue Loop;
        case Icode_REG_STR4:
            stringReg = strings[getInt(iCode, frame.pc)];
            frame.pc += 4;
            continue Loop;
        default :
            dumpICode(frame.idata);
            throw new RuntimeException(
                "Unknown icode : "+op+" @ pc : "+(frame.pc-1));
    }  // end of interpreter switch
    
                        } // end of jumplessRun label block
    
                        // This should be reachable only for jump implementation
                        // when pc points to encoded target offset
                        if (instructionCounting) {
                            addInstructionCount(cx, frame, 2);
                        }
                        int offset = getShort(iCode, frame.pc);
                        if (offset != 0) {
                            // -1 accounts for pc pointing to jump opcode + 1
                            frame.pc += offset - 1;
                        } else {
                            frame.pc = frame.idata.longJumps.
                                           getExistingInt(frame.pc);
                        }
                        if (instructionCounting) {
                            frame.pcPrevBranch = frame.pc;
                        }
                        continue Loop;
    
                    } // end of Loop: for
    
                    exitFrame(cx, frame, null);
                    interpreterResult = frame.result;
                    interpreterResultDbl = frame.resultDbl;
                    if (frame.parentFrame != null) {
                        frame = frame.parentFrame;
                        if (frame.frozen) {
                            frame = frame.cloneFrozen();
                        }
                        setCallResult(
                            frame, interpreterResult, interpreterResultDbl);
                        interpreterResult = null; // Help GC
                        continue StateLoop;
                    }
                    break StateLoop;
    
                }  // end of interpreter withoutExceptions: try
                catch (Throwable ex) {
                    if (throwable != null) {
                        // This is serious bug and it is better to track it ASAP
                        ex.printStackTrace(System.err);
                        throw new IllegalStateException();
                    }
                    throwable = ex;
                }
    
                // This should be reachable only after above catch or from
                // finally when it needs to propagate exception or from
                // explicit throw
                if (throwable == null) Kit.codeBug();
    
                // Exception type
                final int EX_CATCH_STATE = 2; // Can execute JS catch
                final int EX_FINALLY_STATE = 1; // Can execute JS finally
                final int EX_NO_JS_STATE = 0; // Terminate JS execution
    
                int exState;
                ContinuationJump cjump = null;
    
                if (generatorState != null &&
                    generatorState.operation == NativeGenerator.GENERATOR_CLOSE &&
                    throwable == generatorState.value)
                {
                    exState = EX_FINALLY_STATE;            	
                } else if (throwable instanceof JavaScriptException) {
                    exState = EX_CATCH_STATE;
                } else if (throwable instanceof EcmaError) {
                    // an offical ECMA error object,
                    exState = EX_CATCH_STATE;
                } else if (throwable instanceof EvaluatorException) {
                    exState = EX_CATCH_STATE;
                } else if (throwable instanceof RuntimeException) {
                    exState = cx.hasFeature(Context.FEATURE_ENHANCED_JAVA_ACCESS)
                              ? EX_CATCH_STATE
                              : EX_FINALLY_STATE;
                } else if (throwable instanceof Error) {
                    exState = cx.hasFeature(Context.FEATURE_ENHANCED_JAVA_ACCESS)
                              ? EX_CATCH_STATE
                              : EX_NO_JS_STATE;
                } else if (throwable instanceof ContinuationJump) {
                    // It must be ContinuationJump
                    exState = EX_FINALLY_STATE;
                    cjump = (ContinuationJump)throwable;
                } else {
                    exState = cx.hasFeature(Context.FEATURE_ENHANCED_JAVA_ACCESS)
                              ? EX_CATCH_STATE
                              : EX_FINALLY_STATE;
                }
    
                if (instructionCounting) {
                    try {
                        addInstructionCount(cx, frame, EXCEPTION_COST);
                    } catch (RuntimeException ex) {
                        throwable = ex;
                        exState = EX_FINALLY_STATE;
                    } catch (Error ex) {
                        // Error from instruction counting
                        //     => unconditionally terminate JS
                        throwable = ex;
                        cjump = null;
                        exState = EX_NO_JS_STATE;
                    }
                }
                if (frame.debuggerFrame != null
                    && throwable instanceof RuntimeException)
                {
                    // Call debugger only for RuntimeException
                    RuntimeException rex = (RuntimeException)throwable;
                    try {
                        frame.debuggerFrame.onExceptionThrown(cx, rex);
                    } catch (Throwable ex) {
                        // Any exception from debugger
                        //     => unconditionally terminate JS
                        throwable = ex;
                        cjump = null;
                        exState = EX_NO_JS_STATE;
                    }
                }
    
                for (;;) {
                    if (exState != EX_NO_JS_STATE) {
                        boolean onlyFinally = (exState != EX_CATCH_STATE);
                        indexReg = getExceptionHandler(frame, onlyFinally);
                        if (indexReg >= 0) {
                            // We caught an exception, restart the loop
                            // with exception pending the processing at the loop
                            // start
                            continue StateLoop;
                        }
                    }
                    // No allowed exception handlers in this frame, unwind
                    // to parent and try to look there
    
                    exitFrame(cx, frame, throwable);
    
                    frame = frame.parentFrame;
                    if (frame == null) { break; }
                    if (cjump != null && cjump.branchFrame == frame) {
                        // Continuation branch point was hit,
                        // restart the state loop to reenter continuation
                        indexReg = -1;
                        continue StateLoop;
                    }
                }
    
                // No more frames, rethrow the exception or deal with continuation
                if (cjump != null) {
                    if (cjump.branchFrame != null) {
                        // The above loop should locate the top frame
                        Kit.codeBug();
                    }
                    if (cjump.capturedFrame != null) {
                        // Restarting detached continuation
                        indexReg = -1;
                        continue StateLoop;
                    }
                    // Return continuation result to the caller
                    interpreterResult = cjump.result;
                    interpreterResultDbl = cjump.resultDbl;
                    throwable = null;
                }
                break StateLoop;
    
            } // end of StateLoop: for(;;)
    
            // Do cleanups/restorations before the final return or throw
    
            if (cx.previousInterpreterInvocations != null
                && cx.previousInterpreterInvocations.size() != 0)
            {
                cx.lastInterpreterFrame
                    = cx.previousInterpreterInvocations.pop();
            } else {
                // It was the last interpreter frame on the stack
                cx.lastInterpreterFrame = null;
                // Force GC of the value cx.previousInterpreterInvocations
                cx.previousInterpreterInvocations = null;
            }
    
            if (throwable != null) {
                if (throwable instanceof RuntimeException) {
                    throw (RuntimeException)throwable;
                } else {
                    // Must be instance of Error or code bug
                    throw (Error)throwable;
                }
            }
    
            return (interpreterResult != DBL_MRK)
                   ? interpreterResult
                   : ScriptRuntime.wrapNumber(interpreterResultDbl);
        }
    
        /**
         * Call __noSuchMethod__.
         */
        private static CallFrame initFrameForNoSuchMethod(Context cx,
                CallFrame frame, int indexReg, Object[] stack, double[] sDbl,
                int stackTop, int op, Scriptable funThisObj, Scriptable calleeScope,
                NoSuchMethodShim noSuchMethodShim, InterpretedFunction ifun)
        {
            // create an args array from the stack
            Object[] argsArray = null;
            // exactly like getArgsArray except that the first argument
            // is the method name from the shim
            int shift = stackTop + 2;
            Object[] elements = new Object[indexReg];
            for (int i=0; i < indexReg; ++i, ++shift) {
                Object val = stack[shift];
                if (val == UniqueTag.DOUBLE_MARK) {
                    val = ScriptRuntime.wrapNumber(sDbl[shift]);
                }
                elements[i] = val;
            }
            argsArray = new Object[2];
            argsArray[0] = noSuchMethodShim.methodName;
            argsArray[1] = cx.newArray(calleeScope, elements);
            
            // exactly the same as if it's a regular InterpretedFunction
            CallFrame callParentFrame = frame;
            CallFrame calleeFrame = new CallFrame();
            if (op == Icode_TAIL_CALL) {
                callParentFrame = frame.parentFrame;
                exitFrame(cx, frame, null);
            }
            // init the frame with the underlying method with the 
            // adjusted args array and shim's function
            initFrame(cx, calleeScope, funThisObj, argsArray, null,
              0, 2, ifun, callParentFrame, calleeFrame);
            if (op != Icode_TAIL_CALL) {
                frame.savedStackTop = stackTop;
                frame.savedCallOp = op;
            }
            return calleeFrame;
        }
        
        private static boolean shallowEquals(Object[] stack, double[] sDbl,
                int stackTop)
        {
            Object rhs = stack[stackTop + 1];
            Object lhs = stack[stackTop];
            final Object DBL_MRK = UniqueTag.DOUBLE_MARK;
            double rdbl, ldbl;
            if (rhs == DBL_MRK) {
                rdbl = sDbl[stackTop + 1];
                if (lhs == DBL_MRK) {
                    ldbl = sDbl[stackTop];
                } else if (lhs instanceof Number) {
                    ldbl = ((Number)lhs).doubleValue();
                } else {
                    return false;
                }
            } else if (lhs == DBL_MRK) {
                ldbl = sDbl[stackTop];
                if (rhs == DBL_MRK) {
                    rdbl = sDbl[stackTop + 1];
                } else if (rhs instanceof Number) {
                    rdbl = ((Number)rhs).doubleValue();
                } else {
                    return false;
                }
            } else {
                return ScriptRuntime.shallowEq(lhs, rhs);
            }
            return (ldbl == rdbl);
        }
    
        private static CallFrame processThrowable(Context cx, Object throwable,
                                                  CallFrame frame, int indexReg,
                                                  boolean instructionCounting)
        {
            // Recovering from exception, indexReg contains
            // the index of handler
    
            if (indexReg >= 0) {
                // Normal exception handler, transfer
                // control appropriately
    
                if (frame.frozen) {
                    // XXX Deal with exceptios!!!
                    frame = frame.cloneFrozen();
                }
                
                int[] table = frame.idata.itsExceptionTable;
    
                frame.pc = table[indexReg + EXCEPTION_HANDLER_SLOT];
                if (instructionCounting) {
                    frame.pcPrevBranch = frame.pc;
                }
    
                frame.savedStackTop = frame.emptyStackTop;
                int scopeLocal = frame.localShift
                                 + table[indexReg
                                         + EXCEPTION_SCOPE_SLOT];
                int exLocal = frame.localShift
                                 + table[indexReg
                                         + EXCEPTION_LOCAL_SLOT];
                frame.scope = (Scriptable)frame.stack[scopeLocal];
                frame.stack[exLocal] = throwable;
    
                throwable = null;
            } else {
                // Continuation restoration
                ContinuationJump cjump = (ContinuationJump)throwable;
    
                // Clear throwable to indicate that exceptions are OK
                throwable = null;
    
                if (cjump.branchFrame != frame) Kit.codeBug();
    
                // Check that we have at least one frozen frame
                // in the case of detached continuation restoration:
                // unwind code ensure that
                if (cjump.capturedFrame == null) Kit.codeBug();
    
                // Need to rewind branchFrame, capturedFrame
                // and all frames in between
                int rewindCount = cjump.capturedFrame.frameIndex + 1;
                if (cjump.branchFrame != null) {
                    rewindCount -= cjump.branchFrame.frameIndex;
                }
    
                int enterCount = 0;
                CallFrame[] enterFrames = null;
    
                CallFrame x = cjump.capturedFrame;
                for (int i = 0; i != rewindCount; ++i) {
                    if (!x.frozen) Kit.codeBug();
                    if (isFrameEnterExitRequired(x)) {
                        if (enterFrames == null) {
                            // Allocate enough space to store the rest
                            // of rewind frames in case all of them
                            // would require to enter
                            enterFrames = new CallFrame[rewindCount
                                                        - i];
                        }
                        enterFrames[enterCount] = x;
                        ++enterCount;
                    }
                    x = x.parentFrame;
                }
    
                while (enterCount != 0) {
                    // execute enter: walk enterFrames in the reverse
                    // order since they were stored starting from
                    // the capturedFrame, not branchFrame
                    --enterCount;
                    x = enterFrames[enterCount];
                    enterFrame(cx, x, ScriptRuntime.emptyArgs, true);
                }
    
                // Continuation jump is almost done: capturedFrame
                // points to the call to the function that captured
                // continuation, so clone capturedFrame and
                // emulate return that function with the suplied result
                frame = cjump.capturedFrame.cloneFrozen();
                setCallResult(frame, cjump.result, cjump.resultDbl);
                // restart the execution
            }
            frame.throwable = throwable;
            return frame;
        }
    
        private static Object freezeGenerator(Context cx, CallFrame frame,
                                              int stackTop,
                                              GeneratorState generatorState)
        {
              if (generatorState.operation == NativeGenerator.GENERATOR_CLOSE) {
                  // Error: no yields when generator is closing
                  throw ScriptRuntime.typeError0("msg.yield.closing");
              }
              // return to our caller (which should be a method of NativeGenerator)
              frame.frozen = true;
              frame.result = frame.stack[stackTop];
              frame.resultDbl = frame.sDbl[stackTop];
              frame.savedStackTop = stackTop;
              frame.pc--; // we want to come back here when we resume
              ScriptRuntime.exitActivationFunction(cx);
              return (frame.result != UniqueTag.DOUBLE_MARK)
                  ? frame.result
                  : ScriptRuntime.wrapNumber(frame.resultDbl);
        }
    
        private static Object thawGenerator(CallFrame frame, int stackTop,
                                            GeneratorState generatorState, int op)
        {
              // we are resuming execution
              frame.frozen = false;
              int sourceLine = getIndex(frame.idata.itsICode, frame.pc);
              frame.pc += 2; // skip line number data
              if (generatorState.operation == NativeGenerator.GENERATOR_THROW) {
                  // processing a call to .throw(exception): must
                  // act as if exception was thrown from resumption point
                  return new JavaScriptException(generatorState.value,
                                                      frame.idata.itsSourceFile,
                                                      sourceLine);
              }
              if (generatorState.operation == NativeGenerator.GENERATOR_CLOSE) {
                  return generatorState.value;
              }
              if (generatorState.operation != NativeGenerator.GENERATOR_SEND)
                  throw Kit.codeBug();
              if (op == Token.YIELD)
                  frame.stack[stackTop] = generatorState.value;
              return Scriptable.NOT_FOUND;
        }
    
        private static CallFrame initFrameForApplyOrCall(Context cx, CallFrame frame,
                int indexReg, Object[] stack, double[] sDbl, int stackTop, int op,
                Scriptable calleeScope, IdFunctionObject ifun,
                InterpretedFunction iApplyCallable)
        {
            Scriptable applyThis;
            if (indexReg != 0) {
                Object obj = stack[stackTop + 2];
                if (obj == UniqueTag.DOUBLE_MARK)
                    obj = ScriptRuntime.wrapNumber(sDbl[stackTop + 2]);
                applyThis = ScriptRuntime.toObjectOrNull(cx, obj);
            }
            else {
                applyThis = null;
            }
            if (applyThis == null) {
                // This covers the case of args[0] == (null|undefined) as well.
                applyThis = ScriptRuntime.getTopCallScope(cx);
            }
            if(op == Icode_TAIL_CALL) {
                exitFrame(cx, frame, null);
                frame = frame.parentFrame;
            }
            else {
                frame.savedStackTop = stackTop;
                frame.savedCallOp = op;
            }
            CallFrame calleeFrame = new CallFrame();
            if(BaseFunction.isApply(ifun)) {
                Object[] callArgs = indexReg < 2 ? ScriptRuntime.emptyArgs : 
                    ScriptRuntime.getApplyArguments(cx, stack[stackTop + 3]);
                initFrame(cx, calleeScope, applyThis, callArgs, null, 0, 
                        callArgs.length, iApplyCallable, frame, calleeFrame);
            }
            else {
                // Shift args left
                for(int i = 1; i < indexReg; ++i) {
                    stack[stackTop + 1 + i] = stack[stackTop + 2 + i];
                    sDbl[stackTop + 1 + i] = sDbl[stackTop + 2 + i];
                }
                int argCount = indexReg < 2 ? 0 : indexReg - 1;
                initFrame(cx, calleeScope, applyThis, stack, sDbl, stackTop + 2, 
                        argCount, iApplyCallable, frame, calleeFrame);
            }
            
            frame = calleeFrame;
            return frame;
        }
    
        private static void initFrame(Context cx, Scriptable callerScope,
                                      Scriptable thisObj,
                                      Object[] args, double[] argsDbl,
                                      int argShift, int argCount,
                                      InterpretedFunction fnOrScript,
                                      CallFrame parentFrame, CallFrame frame)
        {
            InterpreterData idata = fnOrScript.idata;
    
            boolean useActivation = idata.itsNeedsActivation;
            DebugFrame debuggerFrame = null;
            if (cx.debugger != null) {
                debuggerFrame = cx.debugger.getFrame(cx, idata);
                if (debuggerFrame != null) {
                    useActivation = true;
                }
            }
    
            if (useActivation) {
                // Copy args to new array to pass to enterActivationFunction
                // or debuggerFrame.onEnter
                if (argsDbl != null) {
                    args = getArgsArray(args, argsDbl, argShift, argCount);
                }
                argShift = 0;
                argsDbl = null;
            }
    
            Scriptable scope;
            if (idata.itsFunctionType != 0) {
                if (!idata.useDynamicScope) {
                    scope = fnOrScript.getParentScope();
                } else {
                    scope = callerScope;
                }
    
                if (useActivation) {
                    scope = ScriptRuntime.createFunctionActivation(
                                fnOrScript, scope, args);
                }
            } else {
                scope = callerScope;
                ScriptRuntime.initScript(fnOrScript, thisObj, cx, scope,
                                         fnOrScript.idata.evalScriptFlag);
            }
    
            if (idata.itsNestedFunctions != null) {
                if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation)
                    Kit.codeBug();
                for (int i = 0; i < idata.itsNestedFunctions.length; i++) {
                    InterpreterData fdata = idata.itsNestedFunctions[i];
                    if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) {
                        initFunction(cx, scope, fnOrScript, i);
                    }
                }
            }
    
            Scriptable[] scriptRegExps = null;
            if (idata.itsRegExpLiterals != null) {
                // Wrapped regexps for functions are stored in
                // InterpretedFunction
                // but for script which should not contain references to scope
                // the regexps re-wrapped during each script execution
                if (idata.itsFunctionType != 0) {
                    scriptRegExps = fnOrScript.functionRegExps;
                } else {
                    scriptRegExps = fnOrScript.createRegExpWraps(cx, scope);
                }
            }
    
            // Initialize args, vars, locals and stack
    
            int emptyStackTop = idata.itsMaxVars + idata.itsMaxLocals - 1;
            int maxFrameArray = idata.itsMaxFrameArray;
            if (maxFrameArray != emptyStackTop + idata.itsMaxStack + 1)
                Kit.codeBug();
    
            Object[] stack;
            int[] stackAttributes;
            double[] sDbl;
            boolean stackReuse;
            if (frame.stack != null && maxFrameArray <= frame.stack.length) {
                // Reuse stacks from old frame
                stackReuse = true;
                stack = frame.stack;
                stackAttributes = frame.stackAttributes;
                sDbl = frame.sDbl;
            } else {
                stackReuse = false;
                stack = new Object[maxFrameArray];
                stackAttributes = new int[maxFrameArray];
                sDbl = new double[maxFrameArray];
            }
    
            int varCount = idata.getParamAndVarCount();
            for (int i = 0; i < varCount; i++) {
                if (idata.getParamOrVarConst(i))
                    stackAttributes[i] = ScriptableObject.CONST;
            }
            int definedArgs = idata.argCount;
            if (definedArgs > argCount) { definedArgs = argCount; }
    
            // Fill the frame structure
    
            frame.parentFrame = parentFrame;
            frame.frameIndex = (parentFrame == null)
                               ? 0 : parentFrame.frameIndex + 1;
            if(frame.frameIndex > cx.getMaximumInterpreterStackDepth())
            {
                throw Context.reportRuntimeError("Exceeded maximum stack depth");
            }
            frame.frozen = false;
    
            frame.fnOrScript = fnOrScript;
            frame.idata = idata;
    
            frame.stack = stack;
            frame.stackAttributes = stackAttributes;
            frame.sDbl = sDbl;
            frame.varSource = frame;
            frame.localShift = idata.itsMaxVars;
            frame.emptyStackTop = emptyStackTop;
    
            frame.debuggerFrame = debuggerFrame;
            frame.useActivation = useActivation;
    
            frame.thisObj = thisObj;
            frame.scriptRegExps = scriptRegExps;
    
            // Initialize initial values of variables that change during
            // interpretation.
            frame.result = Undefined.instance;
            frame.pc = 0;
            frame.pcPrevBranch = 0;
            frame.pcSourceLineStart = idata.firstLinePC;
            frame.scope = scope;
    
            frame.savedStackTop = emptyStackTop;
            frame.savedCallOp = 0;
    
            System.arraycopy(args, argShift, stack, 0, definedArgs);
            if (argsDbl != null) {
                System.arraycopy(argsDbl, argShift, sDbl, 0, definedArgs);
            }
            for (int i = definedArgs; i != idata.itsMaxVars; ++i) {
                stack[i] = Undefined.instance;
            }
            if (stackReuse) {
                // Clean the stack part and space beyond stack if any
                // of the old array to allow to GC objects there
                for (int i = emptyStackTop + 1; i != stack.length; ++i) {
                    stack[i] = null;
                }
            }
    
            enterFrame(cx, frame, args, false);
        }
    
        private static boolean isFrameEnterExitRequired(CallFrame frame)
        {
            return frame.debuggerFrame != null || frame.idata.itsNeedsActivation;
        }
    
        private static void enterFrame(Context cx, CallFrame frame, Object[] args, 
                                       boolean continuationRestart)
        {
            boolean usesActivation = frame.idata.itsNeedsActivation; 
            boolean isDebugged = frame.debuggerFrame != null;
            if(usesActivation || isDebugged) {
                Scriptable scope = frame.scope;
                if(scope == null) {
                    Kit.codeBug();
                } else if (continuationRestart) {
                    // Walk the parent chain of frame.scope until a NativeCall is 
                    // found. Normally, frame.scope is a NativeCall when called 
                    // from initFrame() for a debugged or activatable function. 
                    // However, when called from interpretLoop() as part of
                    // restarting a continuation, it can also be a NativeWith if 
                    // the continuation was captured within a "with" or "catch" 
                    // block ("catch" implicitly uses NativeWith to create a scope 
                    // to expose the exception variable).
                    for(;;) {
                        if(scope instanceof NativeWith) {
                            scope = scope.getParentScope();
                            if (scope == null || (frame.parentFrame != null && 
                                                  frame.parentFrame.scope == scope))
                            {
                                // If we get here, we didn't find a NativeCall in 
                                // the call chain before reaching parent frame's 
                                // scope. This should not be possible.
                                Kit.codeBug();
                                break; // Never reached, but keeps the static analyzer happy about "scope" not being null 5 lines above.
                            }
                        }
                        else {
                            break;
                        }
                    }
                }
                if (isDebugged) {
                    frame.debuggerFrame.onEnter(cx, scope, frame.thisObj, args);
                }
                // Enter activation only when itsNeedsActivation true, 
                // since debugger should not interfere with activation 
                // chaining
                if (usesActivation) {
                    ScriptRuntime.enterActivationFunction(cx, scope);
                }
            }
        }
    
        private static void exitFrame(Context cx, CallFrame frame,
                                      Object throwable)
        {
            if (frame.idata.itsNeedsActivation) {
                ScriptRuntime.exitActivationFunction(cx);
            }
    
            if (frame.debuggerFrame != null) {
                try {
                    if (throwable instanceof Throwable) {
                        frame.debuggerFrame.onExit(cx, true, throwable);
                    } else {
                        Object result;
                        ContinuationJump cjump = (ContinuationJump)throwable;
                        if (cjump == null) {
                            result = frame.result;
                        } else {
                            result = cjump.result;
                        }
                        if (result == UniqueTag.DOUBLE_MARK) {
                            double resultDbl;
                            if (cjump == null) {
                                resultDbl = frame.resultDbl;
                            } else {
                                resultDbl = cjump.resultDbl;
                            }
                            result = ScriptRuntime.wrapNumber(resultDbl);
                        }
                        frame.debuggerFrame.onExit(cx, false, result);
                    }
                } catch (Throwable ex) {
                    System.err.println(
    "RHINO USAGE WARNING: onExit terminated with exception");
                    ex.printStackTrace(System.err);
                }
            }
        }
    
        private static void setCallResult(CallFrame frame,
                                          Object callResult,
                                          double callResultDbl)
        {
            if (frame.savedCallOp == Token.CALL) {
                frame.stack[frame.savedStackTop] = callResult;
                frame.sDbl[frame.savedStackTop] = callResultDbl;
            } else if (frame.savedCallOp == Token.NEW) {
                // If construct returns scriptable,
                // then it replaces on stack top saved original instance
                // of the object.
                if (callResult instanceof Scriptable) {
                    frame.stack[frame.savedStackTop] = callResult;
                }
            } else {
                Kit.codeBug();
            }
            frame.savedCallOp = 0;
        }
        
        public static NativeContinuation captureContinuation(Context cx) {
            if (cx.lastInterpreterFrame == null ||
                !(cx.lastInterpreterFrame instanceof CallFrame))
            {
                throw new IllegalStateException("Interpreter frames not found");
            }
            return captureContinuation(cx, (CallFrame)cx.lastInterpreterFrame, true);
        }
    
        private static NativeContinuation captureContinuation(Context cx, CallFrame frame,
            boolean requireContinuationsTopFrame)
        {
            NativeContinuation c = new NativeContinuation();
            ScriptRuntime.setObjectProtoAndParent(
                c, ScriptRuntime.getTopCallScope(cx));
    
            // Make sure that all frames are frozen
            CallFrame x = frame;
            CallFrame outermost = frame;
            while (x != null && !x.frozen) {
                x.frozen = true;
                // Allow to GC unused stack space
                for (int i = x.savedStackTop + 1; i != x.stack.length; ++i) {
                    // Allow to GC unused stack space
                    x.stack[i] = null;
                    x.stackAttributes[i] = ScriptableObject.EMPTY;
                }
                if (x.savedCallOp == Token.CALL) {
                    // the call will always overwrite the stack top with the result
                    x.stack[x.savedStackTop] = null;
                } else {
                    if (x.savedCallOp != Token.NEW) Kit.codeBug();
                    // the new operator uses stack top to store the constructed
                    // object so it shall not be cleared: see comments in
                    // setCallResult
                }
                outermost = x;
                x = x.parentFrame;
            }
            
            if (requireContinuationsTopFrame) {
                while (outermost.parentFrame != null)
                    outermost = outermost.parentFrame;
        
                if (!outermost.isContinuationsTopFrame) {
                    throw new IllegalStateException("Cannot capture continuation " +
                            "from JavaScript code not called directly by " +
                            "executeScriptWithContinuations or " +
                            "callFunctionWithContinuations");
                }
            }
            
            c.initImplementation(frame);
            return c;
        }
    
        private static int stack_int32(CallFrame frame, int i)
        {
            Object x = frame.stack[i];
            double value;
            if (x == UniqueTag.DOUBLE_MARK) {
                value = frame.sDbl[i];
            } else {
                value = ScriptRuntime.toNumber(x);
            }
            return ScriptRuntime.toInt32(value);
        }
    
        private static double stack_double(CallFrame frame, int i)
        {
            Object x = frame.stack[i];
            if (x != UniqueTag.DOUBLE_MARK) {
                return ScriptRuntime.toNumber(x);
            } else {
                return frame.sDbl[i];
            }
        }
    
        private static boolean stack_boolean(CallFrame frame, int i)
        {
            Object x = frame.stack[i];
            if (x == Boolean.TRUE) {
                return true;
            } else if (x == Boolean.FALSE) {
                return false;
            } else if (x == UniqueTag.DOUBLE_MARK) {
                double d = frame.sDbl[i];
                return d == d && d != 0.0;
            } else if (x == null || x == Undefined.instance) {
                return false;
            } else if (x instanceof Number) {
                double d = ((Number)x).doubleValue();
                return (d == d && d != 0.0);
            } else if (x instanceof Boolean) {
                return ((Boolean)x).booleanValue();
            } else {
                return ScriptRuntime.toBoolean(x);
            }
        }
    
        private static void do_add(Object[] stack, double[] sDbl, int stackTop,
                                  Context cx)
        {
            Object rhs = stack[stackTop + 1];
            Object lhs = stack[stackTop];
            double d;
            boolean leftRightOrder;
            if (rhs == UniqueTag.DOUBLE_MARK) {
                d = sDbl[stackTop + 1];
                if (lhs == UniqueTag.DOUBLE_MARK) {
                    sDbl[stackTop] += d;
                    return;
                }
                leftRightOrder = true;
                // fallthrough to object + number code
            } else if (lhs == UniqueTag.DOUBLE_MARK) {
                d = sDbl[stackTop];
                lhs = rhs;
                leftRightOrder = false;
                // fallthrough to object + number code
            } else {
                if (lhs instanceof Scriptable || rhs instanceof Scriptable) {
                    stack[stackTop] = ScriptRuntime.add(lhs, rhs, cx);
                } else if (lhs instanceof String) {
                    String lstr = (String)lhs;
                    String rstr = ScriptRuntime.toString(rhs);
                    stack[stackTop] = lstr.concat(rstr);
                } else if (rhs instanceof String) {
                    String lstr = ScriptRuntime.toString(lhs);
                    String rstr = (String)rhs;
                    stack[stackTop] = lstr.concat(rstr);
                } else {
                    double lDbl = (lhs instanceof Number)
                        ? ((Number)lhs).doubleValue() : ScriptRuntime.toNumber(lhs);
                    double rDbl = (rhs instanceof Number)
                        ? ((Number)rhs).doubleValue() : ScriptRuntime.toNumber(rhs);
                    stack[stackTop] = UniqueTag.DOUBLE_MARK;
                    sDbl[stackTop] = lDbl + rDbl;
                }
                return;
            }
    
            // handle object(lhs) + number(d) code
            if (lhs instanceof Scriptable) {
                rhs = ScriptRuntime.wrapNumber(d);
                if (!leftRightOrder) {
                    Object tmp = lhs;
                    lhs = rhs;
                    rhs = tmp;
                }
                stack[stackTop] = ScriptRuntime.add(lhs, rhs, cx);
            } else if (lhs instanceof String) {
                String lstr = (String)lhs;
                String rstr = ScriptRuntime.toString(d);
                if (leftRightOrder) {
                    stack[stackTop] = lstr.concat(rstr);
                } else {
                    stack[stackTop] = rstr.concat(lstr);
                }
            } else {
                double lDbl = (lhs instanceof Number)
                    ? ((Number)lhs).doubleValue() : ScriptRuntime.toNumber(lhs);
                stack[stackTop] = UniqueTag.DOUBLE_MARK;
                sDbl[stackTop] = lDbl + d;
            }
        }
    
        private static Object[] getArgsArray(Object[] stack, double[] sDbl,
                                             int shift, int count)
        {
            if (count == 0) {
                return ScriptRuntime.emptyArgs;
            }
            Object[] args = new Object[count];
            for (int i = 0; i != count; ++i, ++shift) {
                Object val = stack[shift];
                if (val == UniqueTag.DOUBLE_MARK) {
                    val = ScriptRuntime.wrapNumber(sDbl[shift]);
                }
                args[i] = val;
            }
            return args;
        }
    
        private static void addInstructionCount(Context cx, CallFrame frame,
                                                int extra)
        {
            cx.instructionCount += frame.pc - frame.pcPrevBranch + extra;
            if (cx.instructionCount > cx.instructionThreshold) {
                cx.observeInstructionCount(cx.instructionCount);
                cx.instructionCount = 0;
            }
        }
    }
    carmetal-4.3/src/org/mozilla/javascript/InterpreterData.java000066400000000000000000000114031417122252700243050ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-2000
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Norris Boyd
     *   Bob Jervis
     *   Roger Lawrence
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import java.io.Serializable;
    
    import org.mozilla.javascript.debug.DebuggableScript;
    
    final class InterpreterData implements Serializable, DebuggableScript
    {
        static final long serialVersionUID = 5067677351589230234L;
    
        static final int INITIAL_MAX_ICODE_LENGTH = 1024;
        static final int INITIAL_STRINGTABLE_SIZE = 64;
        static final int INITIAL_NUMBERTABLE_SIZE = 64;
    
        InterpreterData(int languageVersion,
                        String sourceFile, String encodedSource)
        {
            this.languageVersion = languageVersion;
            this.itsSourceFile = sourceFile;
            this.encodedSource = encodedSource;
    
            init();
        }
    
        InterpreterData(InterpreterData parent)
        {
            this.parentData = parent;
            this.languageVersion = parent.languageVersion;
            this.itsSourceFile = parent.itsSourceFile;
            this.encodedSource = parent.encodedSource;
    
            init();
        }
    
        private void init()
        {
            itsICode = new byte[INITIAL_MAX_ICODE_LENGTH];
            itsStringTable = new String[INITIAL_STRINGTABLE_SIZE];
        }
    
        String itsName;
        String itsSourceFile;
        boolean itsNeedsActivation;
        int itsFunctionType;
    
        String[] itsStringTable;
        double[] itsDoubleTable;
        InterpreterData[] itsNestedFunctions;
        Object[] itsRegExpLiterals;
    
        byte[] itsICode;
    
        int[] itsExceptionTable;
    
        int itsMaxVars;
        int itsMaxLocals;
        int itsMaxStack;
        int itsMaxFrameArray;
    
        // see comments in NativeFuncion for definition of argNames and argCount
        String[] argNames;
        boolean[] argIsConst;
        int argCount;
    
        int itsMaxCalleeArgs;
    
        String encodedSource;
        int encodedSourceStart;
        int encodedSourceEnd;
    
        int languageVersion;
    
        boolean useDynamicScope;
    
        boolean topLevel;
    
        Object[] literalIds;
    
        UintMap longJumps;
    
        int firstLinePC = -1; // PC for the first LINE icode
    
        InterpreterData parentData;
    
        boolean evalScriptFlag; // true if script corresponds to eval() code
    
        public boolean isTopLevel()
        {
            return topLevel;
        }
    
        public boolean isFunction()
        {
            return itsFunctionType != 0;
        }
    
        public String getFunctionName()
        {
            return itsName;
        }
    
        public int getParamCount()
        {
            return argCount;
        }
    
        public int getParamAndVarCount()
        {
            return argNames.length;
        }
    
        public String getParamOrVarName(int index)
        {
            return argNames[index];
        }
    
        public boolean getParamOrVarConst(int index)
        {
            return argIsConst[index];
        }
    
        public String getSourceName()
        {
            return itsSourceFile;
        }
    
        public boolean isGeneratedScript()
        {
            return ScriptRuntime.isGeneratedScript(itsSourceFile);
        }
    
        public int[] getLineNumbers()
        {
            return Interpreter.getLineNumbers(this);
        }
    
        public int getFunctionCount()
        {
            return (itsNestedFunctions == null) ? 0 : itsNestedFunctions.length;
        }
    
        public DebuggableScript getFunction(int index)
        {
            return itsNestedFunctions[index];
        }
    
        public DebuggableScript getParent()
        {
             return parentData;
        }
    
    }
    carmetal-4.3/src/org/mozilla/javascript/JavaAdapter.java000066400000000000000000001261061417122252700234010ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-1999
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Patrick Beard
     *   Norris Boyd
     *   Igor Bukanov
     *   Mike McCabe
     *   Matthias Radestock
     *   Andi Vajda
     *   Andrew Wason
     *   Kemal Bayram
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import org.mozilla.classfile.*;
    import java.lang.reflect.*;
    import java.io.*;
    import java.security.*;
    import java.util.*;
    
    public final class JavaAdapter implements IdFunctionCall
    {
        /**
         * Provides a key with which to distinguish previously generated
         * adapter classes stored in a hash table.
         */
        static class JavaAdapterSignature
        {
            Class superClass;
            Class[] interfaces;
            ObjToIntMap names;
    
            JavaAdapterSignature(Class superClass, Class[] interfaces,
                                 ObjToIntMap names)
            {
                this.superClass = superClass;
                this.interfaces = interfaces;
                this.names = names;
            }
    
            @Override
            public boolean equals(Object obj)
            {
                if (!(obj instanceof JavaAdapterSignature))
                    return false;
                JavaAdapterSignature sig = (JavaAdapterSignature) obj;
                if (superClass != sig.superClass)
                    return false;
                if (interfaces != sig.interfaces) {
                    if (interfaces.length != sig.interfaces.length)
                        return false;
                    for (int i=0; i < interfaces.length; i++)
                        if (interfaces[i] != sig.interfaces[i])
                            return false;
                }
                if (names.size() != sig.names.size())
                    return false;
                ObjToIntMap.Iterator iter = new ObjToIntMap.Iterator(names);
                for (iter.start(); !iter.done(); iter.next()) {
                    String name = (String)iter.getKey();
                    int arity = iter.getValue();
                    if (arity != names.get(name, arity + 1))
                        return false;
                }
                return true;
            }
    
            @Override
            public int hashCode()
            {
                return superClass.hashCode()
                    | (0x9e3779b9 * (names.size() | (interfaces.length << 16)));
            }
        }
    
        public static void init(Context cx, Scriptable scope, boolean sealed)
        {
            JavaAdapter obj = new JavaAdapter();
            IdFunctionObject ctor = new IdFunctionObject(obj, FTAG, Id_JavaAdapter,
                                                         "JavaAdapter", 1, scope);
            ctor.markAsConstructor(null);
            if (sealed) {
                ctor.sealObject();
            }
            ctor.exportAsScopeProperty();
        }
    
        public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
                                 Scriptable thisObj, Object[] args)
        {
            if (f.hasTag(FTAG)) {
                if (f.methodId() == Id_JavaAdapter) {
                    return js_createAdapter(cx, scope, args);
                }
            }
            throw f.unknown();
        }
    
        public static Object convertResult(Object result, Class c)
        {
            if (result == Undefined.instance &&
                (c != ScriptRuntime.ObjectClass &&
                 c != ScriptRuntime.StringClass))
            {
                // Avoid an error for an undefined value; return null instead.
                return null;
            }
            return Context.jsToJava(result, c);
        }
    
        public static Scriptable createAdapterWrapper(Scriptable obj,
                                                      Object adapter)
        {
            Scriptable scope = ScriptableObject.getTopLevelScope(obj);
            NativeJavaObject res = new NativeJavaObject(scope, adapter, null, true);
            res.setPrototype(obj);
            return res;
        }
    
        public static Object getAdapterSelf(Class adapterClass, Object adapter)
            throws NoSuchFieldException, IllegalAccessException
        {
            Field self = adapterClass.getDeclaredField("self");
            return self.get(adapter);
        }
    
        static Object js_createAdapter(Context cx, Scriptable scope, Object[] args)
        {
            int N = args.length;
            if (N == 0) {
                throw ScriptRuntime.typeError0("msg.adapter.zero.args");
            }
    
            Class superClass = null;
            Class[] intfs = new Class[N - 1];
            int interfaceCount = 0;
            for (int i = 0; i != N - 1; ++i) {
                Object arg = args[i];
                if (!(arg instanceof NativeJavaClass)) {
                    throw ScriptRuntime.typeError2("msg.not.java.class.arg",
                                                   String.valueOf(i),
                                                   ScriptRuntime.toString(arg));
                }
                Class c = ((NativeJavaClass) arg).getClassObject();
                if (!c.isInterface()) {
                    if (superClass != null) {
                        throw ScriptRuntime.typeError2("msg.only.one.super",
                                  superClass.getName(), c.getName());
                    }
                    superClass = c;
                } else {
                    intfs[interfaceCount++] = c;
                }
            }
    
            if (superClass == null)
                superClass = ScriptRuntime.ObjectClass;
    
            Class[] interfaces = new Class[interfaceCount];
            System.arraycopy(intfs, 0, interfaces, 0, interfaceCount);
            Scriptable obj = ScriptRuntime.toObject(cx, scope, args[N - 1]);
    
            Class adapterClass = getAdapterClass(scope, superClass, interfaces,
                                                 obj);
    
            Class[] ctorParms = {
                ScriptRuntime.ContextFactoryClass,
                ScriptRuntime.ScriptableClass
            };
            Object[] ctorArgs = { cx.getFactory(), obj };
            try {
                Object adapter = adapterClass.getConstructor(ctorParms).
                                     newInstance(ctorArgs);
                return getAdapterSelf(adapterClass, adapter);
            } catch (Exception ex) {
                throw Context.throwAsScriptRuntimeEx(ex);
            }
        }
    
        // Needed by NativeJavaObject serializer
        public static void writeAdapterObject(Object javaObject,
                                              ObjectOutputStream out)
            throws IOException
        {
            Class cl = javaObject.getClass();
            out.writeObject(cl.getSuperclass().getName());
    
            Class[] interfaces = cl.getInterfaces();
            String[] interfaceNames = new String[interfaces.length];
    
            for (int i=0; i < interfaces.length; i++)
                interfaceNames[i] = interfaces[i].getName();
    
            out.writeObject(interfaceNames);
    
            try {
                Object delegee = cl.getField("delegee").get(javaObject);
                out.writeObject(delegee);
                return;
            } catch (IllegalAccessException e) {
            } catch (NoSuchFieldException e) {
            }
            throw new IOException();
        }
    
        // Needed by NativeJavaObject de-serializer
        public static Object readAdapterObject(Scriptable self,
                                               ObjectInputStream in)
            throws IOException, ClassNotFoundException
        {
            ContextFactory factory;
            Context cx = Context.getCurrentContext();
            if (cx != null) {
                factory = cx.getFactory();
            } else {
                factory = null;
            }
    
            Class superClass = Class.forName((String)in.readObject());
    
            String[] interfaceNames = (String[])in.readObject();
            Class[] interfaces = new Class[interfaceNames.length];
    
            for (int i=0; i < interfaceNames.length; i++)
                interfaces[i] = Class.forName(interfaceNames[i]);
    
            Scriptable delegee = (Scriptable)in.readObject();
    
            Class adapterClass = getAdapterClass(self, superClass, interfaces,
                                                 delegee);
    
            Class[] ctorParms = {
                ScriptRuntime.ContextFactoryClass,
                ScriptRuntime.ScriptableClass,
                ScriptRuntime.ScriptableClass
            };
            Object[] ctorArgs = { factory, delegee, self };
            try {
                return adapterClass.getConstructor(ctorParms).newInstance(ctorArgs);
            } catch(InstantiationException e) {
            } catch(IllegalAccessException e) {
            } catch(InvocationTargetException e) {
            } catch(NoSuchMethodException e) {
            }
    
            throw new ClassNotFoundException("adapter");
        }
    
        private static ObjToIntMap getObjectFunctionNames(Scriptable obj)
        {
            Object[] ids = ScriptableObject.getPropertyIds(obj);
            ObjToIntMap map = new ObjToIntMap(ids.length);
            for (int i = 0; i != ids.length; ++i) {
                if (!(ids[i] instanceof String))
                    continue;
                String id = (String) ids[i];
                Object value = ScriptableObject.getProperty(obj, id);
                if (value instanceof Function) {
                    Function f = (Function)value;
                    int length = ScriptRuntime.toInt32(
                                     ScriptableObject.getProperty(f, "length"));
                    if (length < 0) {
                        length = 0;
                    }
                    map.put(id, length);
                }
            }
            return map;
        }
    
        private static Class getAdapterClass(Scriptable scope, Class superClass,
                                             Class[] interfaces, Scriptable obj)
        {
            ClassCache cache = ClassCache.get(scope);
            Map> generated
                = cache.getInterfaceAdapterCacheMap();
    
            ObjToIntMap names = getObjectFunctionNames(obj);
            JavaAdapterSignature sig;
            sig = new JavaAdapterSignature(superClass, interfaces, names);
            Class adapterClass = generated.get(sig);
            if (adapterClass == null) {
                String adapterName = "adapter"
                                     + cache.newClassSerialNumber();
                byte[] code = createAdapterCode(names, adapterName,
                                                superClass, interfaces, null);
    
                adapterClass = loadAdapterClass(adapterName, code);
                if (cache.isCachingEnabled()) {
                    generated.put(sig, adapterClass);
                }
            }
            return adapterClass;
        }
    
        public static byte[] createAdapterCode(ObjToIntMap functionNames,
                                               String adapterName,
                                               Class superClass,
                                               Class[] interfaces,
                                               String scriptClassName)
        {
            ClassFileWriter cfw = new ClassFileWriter(adapterName,
                                                      superClass.getName(),
                                                      "");
            cfw.addField("factory", "Lorg/mozilla/javascript/ContextFactory;",
                         (short) (ClassFileWriter.ACC_PUBLIC |
                                  ClassFileWriter.ACC_FINAL));
            cfw.addField("delegee", "Lorg/mozilla/javascript/Scriptable;",
                         (short) (ClassFileWriter.ACC_PUBLIC |
                                  ClassFileWriter.ACC_FINAL));
            cfw.addField("self", "Lorg/mozilla/javascript/Scriptable;",
                         (short) (ClassFileWriter.ACC_PUBLIC |
                                  ClassFileWriter.ACC_FINAL));
            int interfacesCount = interfaces == null ? 0 : interfaces.length;
            for (int i=0; i < interfacesCount; i++) {
                if (interfaces[i] != null)
                    cfw.addInterface(interfaces[i].getName());
            }
    
            String superName = superClass.getName().replace('.', '/');
            generateCtor(cfw, adapterName, superName);
            generateSerialCtor(cfw, adapterName, superName);
            if (scriptClassName != null)
                generateEmptyCtor(cfw, adapterName, superName, scriptClassName);
    
            ObjToIntMap generatedOverrides = new ObjToIntMap();
            ObjToIntMap generatedMethods = new ObjToIntMap();
    
            // generate methods to satisfy all specified interfaces.
            for (int i = 0; i < interfacesCount; i++) {
                Method[] methods = interfaces[i].getMethods();
                for (int j = 0; j < methods.length; j++) {
                    Method method = methods[j];
                    int mods = method.getModifiers();
                    if (Modifier.isStatic(mods) || Modifier.isFinal(mods)) {
                        continue;
                    }
                    String methodName = method.getName();
                    Class[] argTypes = method.getParameterTypes();
                    if (!functionNames.has(methodName)) {
                        try {
                            superClass.getMethod(methodName, argTypes);
                            // The class we're extending implements this method and
                            // the JavaScript object doesn't have an override. See
                            // bug 61226.
                            continue;
                        } catch (NoSuchMethodException e) {
                            // Not implemented by superclass; fall through
                        }
                    }
                    // make sure to generate only one instance of a particular
                    // method/signature.
                    String methodSignature = getMethodSignature(method, argTypes);
                    String methodKey = methodName + methodSignature;
                    if (! generatedOverrides.has(methodKey)) {
                        generateMethod(cfw, adapterName, methodName,
                                       argTypes, method.getReturnType());
                        generatedOverrides.put(methodKey, 0);
                        generatedMethods.put(methodName, 0);
                    }
                }
            }
    
            // Now, go through the superclass's methods, checking for abstract
            // methods or additional methods to override.
    
            // generate any additional overrides that the object might contain.
            Method[] methods = getOverridableMethods(superClass);
            for (int j = 0; j < methods.length; j++) {
                Method method = methods[j];
                int mods = method.getModifiers();
                // if a method is marked abstract, must implement it or the
                // resulting class won't be instantiable. otherwise, if the object
                // has a property of the same name, then an override is intended.
                boolean isAbstractMethod = Modifier.isAbstract(mods);
                String methodName = method.getName();
                if (isAbstractMethod || functionNames.has(methodName)) {
                    // make sure to generate only one instance of a particular
                    // method/signature.
                    Class[] argTypes = method.getParameterTypes();
                    String methodSignature = getMethodSignature(method, argTypes);
                    String methodKey = methodName + methodSignature;
                    if (! generatedOverrides.has(methodKey)) {
                        generateMethod(cfw, adapterName, methodName,
                                       argTypes, method.getReturnType());
                        generatedOverrides.put(methodKey, 0);
                        generatedMethods.put(methodName, 0);
                        
                        // if a method was overridden, generate a "super$method"
                        // which lets the delegate call the superclass' version.
                        if (!isAbstractMethod) {
                            generateSuper(cfw, adapterName, superName,
                                          methodName, methodSignature,
                                          argTypes, method.getReturnType());
                        }
                    }
                }
            }
    
            // Generate Java methods for remaining properties that are not
            // overrides.
            ObjToIntMap.Iterator iter = new ObjToIntMap.Iterator(functionNames);
            for (iter.start(); !iter.done(); iter.next()) {
                String functionName = (String)iter.getKey();
                if (generatedMethods.has(functionName))
                    continue;
                int length = iter.getValue();
                Class[] parms = new Class[length];
                for (int k=0; k < length; k++)
                    parms[k] = ScriptRuntime.ObjectClass;
                generateMethod(cfw, adapterName, functionName, parms,
                               ScriptRuntime.ObjectClass);
            }
            return cfw.toByteArray();
        }
    
        static Method[] getOverridableMethods(Class c)
        {
            ArrayList list = new ArrayList();
            HashSet skip = new HashSet();
            while (c != null) {
                appendOverridableMethods(c, list, skip);
                for (Class intf: c.getInterfaces())
                    appendOverridableMethods(intf, list, skip);
                c = c.getSuperclass();
            }
            return list.toArray(new Method[list.size()]);
        }
        
        private static void appendOverridableMethods(Class c, 
                ArrayList list, HashSet skip)
        {
            Method[] methods = c.getDeclaredMethods();
            for (int i = 0; i < methods.length; i++) {
                String methodKey = methods[i].getName() + 
                    getMethodSignature(methods[i],
                            methods[i].getParameterTypes());
                if (skip.contains(methodKey))
                    continue; // skip this method
                int mods = methods[i].getModifiers();
                if (Modifier.isStatic(mods))
                    continue;
                if (Modifier.isFinal(mods)) {
                    // Make sure we don't add a final method to the list
                    // of overridable methods.
                    skip.add(methodKey);
                    continue;
                }
                if (Modifier.isPublic(mods) || Modifier.isProtected(mods)) {
                    list.add(methods[i]);
                    skip.add(methodKey);
                }
            }
        }
    
        static Class loadAdapterClass(String className, byte[] classBytes)
        {
            Object staticDomain;
            Class domainClass = SecurityController.getStaticSecurityDomainClass();
            if(domainClass == CodeSource.class || domainClass == ProtectionDomain.class) {
                ProtectionDomain protectionDomain = JavaAdapter.class.getProtectionDomain();
                if(domainClass == CodeSource.class) {
                    staticDomain = protectionDomain == null ? null : protectionDomain.getCodeSource();
                }
                else {
                    staticDomain = protectionDomain;
                }
            }
            else {
                staticDomain = null;
            }
            GeneratedClassLoader loader = SecurityController.createLoader(null, 
                    staticDomain);
            Class result = loader.defineClass(className, classBytes);
            loader.linkClass(result);
            return result;
        }
    
        public static Function getFunction(Scriptable obj, String functionName)
        {
            Object x = ScriptableObject.getProperty(obj, functionName);
            if (x == Scriptable.NOT_FOUND) {
                // This method used to swallow the exception from calling
                // an undefined method. People have come to depend on this
                // somewhat dubious behavior. It allows people to avoid
                // implementing listener methods that they don't care about,
                // for instance.
                return null;
            }
            if (!(x instanceof Function))
                throw ScriptRuntime.notFunctionError(x, functionName);
    
            return (Function)x;
        }
    
        /**
         * Utility method which dynamically binds a Context to the current thread,
         * if none already exists.
         */
        public static Object callMethod(ContextFactory factory,
                                        final Scriptable thisObj,
                                        final Function f, final Object[] args,
                                        final long argsToWrap)
        {
            if (f == null) {
                // See comments in getFunction
                return Undefined.instance;
            }
            if (factory == null) {
                factory = ContextFactory.getGlobal();
            }
    
            final Scriptable scope = f.getParentScope();
            if (argsToWrap == 0) {
                return Context.call(factory, f, scope, thisObj, args);
            }
    
            Context cx = Context.getCurrentContext();
            if (cx != null) {
                return doCall(cx, scope, thisObj, f, args, argsToWrap);
            } else {
                return factory.call(new ContextAction() {
                    public Object run(Context cx)
                    {
                        return doCall(cx, scope, thisObj, f, args, argsToWrap);
                    }
                });
            }
        }
    
        private static Object doCall(Context cx, Scriptable scope,
                                     Scriptable thisObj, Function f,
                                     Object[] args, long argsToWrap)
        {
            // Wrap the rest of objects
            for (int i = 0; i != args.length; ++i) {
                if (0 != (argsToWrap & (1 << i))) {
                    Object arg = args[i];
                    if (!(arg instanceof Scriptable)) {
                        args[i] = cx.getWrapFactory().wrap(cx, scope, arg,
                                                           null);
                    }
                }
            }
            return f.call(cx, scope, thisObj, args);
        }
    
        public static Scriptable runScript(final Script script)
        {
            return (Scriptable)ContextFactory.getGlobal().call(
                new ContextAction() {
                    public Object run(Context cx)
                    {
                        ScriptableObject global = ScriptRuntime.getGlobal(cx);
                        script.exec(cx, global);
                        return global;
                    }
                });
        }
    
        private static void generateCtor(ClassFileWriter cfw, String adapterName,
                                         String superName)
        {
            cfw.startMethod("",
                            "(Lorg/mozilla/javascript/ContextFactory;"
                            +"Lorg/mozilla/javascript/Scriptable;)V",
                            ClassFileWriter.ACC_PUBLIC);
    
            // Invoke base class constructor
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.addInvoke(ByteCode.INVOKESPECIAL, superName, "", "()V");
    
            // Save parameter in instance variable "factory"
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_1);  // first arg: ContextFactory instance
            cfw.add(ByteCode.PUTFIELD, adapterName, "factory",
                    "Lorg/mozilla/javascript/ContextFactory;");
    
            // Save parameter in instance variable "delegee"
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_2);  // second arg: Scriptable delegee
            cfw.add(ByteCode.PUTFIELD, adapterName, "delegee",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            cfw.add(ByteCode.ALOAD_0);  // this for the following PUTFIELD for self
            // create a wrapper object to be used as "this" in method calls
            cfw.add(ByteCode.ALOAD_2);  // the Scriptable delegee
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.addInvoke(ByteCode.INVOKESTATIC,
                          "org/mozilla/javascript/JavaAdapter",
                          "createAdapterWrapper",
                          "(Lorg/mozilla/javascript/Scriptable;"
                          +"Ljava/lang/Object;"
                          +")Lorg/mozilla/javascript/Scriptable;");
            cfw.add(ByteCode.PUTFIELD, adapterName, "self",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            cfw.add(ByteCode.RETURN);
            cfw.stopMethod((short)3); // 3: this + factory + delegee
        }
    
        private static void generateSerialCtor(ClassFileWriter cfw,
                                               String adapterName,
                                               String superName)
        {
            cfw.startMethod("",
                            "(Lorg/mozilla/javascript/ContextFactory;"
                            +"Lorg/mozilla/javascript/Scriptable;"
                            +"Lorg/mozilla/javascript/Scriptable;"
                            +")V",
                            ClassFileWriter.ACC_PUBLIC);
    
            // Invoke base class constructor
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.addInvoke(ByteCode.INVOKESPECIAL, superName, "", "()V");
    
            // Save parameter in instance variable "factory"
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_1);  // first arg: ContextFactory instance
            cfw.add(ByteCode.PUTFIELD, adapterName, "factory",
                    "Lorg/mozilla/javascript/ContextFactory;");
    
            // Save parameter in instance variable "delegee"
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_2);  // second arg: Scriptable delegee
            cfw.add(ByteCode.PUTFIELD, adapterName, "delegee",
                    "Lorg/mozilla/javascript/Scriptable;");
            // save self
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_3);  // second arg: Scriptable self
            cfw.add(ByteCode.PUTFIELD, adapterName, "self",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            cfw.add(ByteCode.RETURN);
            cfw.stopMethod((short)4); // 4: this + factory + delegee + self
        }
    
        private static void generateEmptyCtor(ClassFileWriter cfw,
                                              String adapterName,
                                              String superName,
                                              String scriptClassName)
        {
            cfw.startMethod("", "()V", ClassFileWriter.ACC_PUBLIC);
    
            // Invoke base class constructor
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.addInvoke(ByteCode.INVOKESPECIAL, superName, "", "()V");
    
            // Set factory to null to use current global when necessary
            cfw.add(ByteCode.ALOAD_0);
            cfw.add(ByteCode.ACONST_NULL);
            cfw.add(ByteCode.PUTFIELD, adapterName, "factory",
                    "Lorg/mozilla/javascript/ContextFactory;");
    
            // Load script class
            cfw.add(ByteCode.NEW, scriptClassName);
            cfw.add(ByteCode.DUP);
            cfw.addInvoke(ByteCode.INVOKESPECIAL, scriptClassName, "", "()V");
    
            // Run script and save resulting scope
            cfw.addInvoke(ByteCode.INVOKESTATIC,
                          "org/mozilla/javascript/JavaAdapter",
                          "runScript",
                          "(Lorg/mozilla/javascript/Script;"
                          +")Lorg/mozilla/javascript/Scriptable;");
            cfw.add(ByteCode.ASTORE_1);
    
            // Save the Scriptable in instance variable "delegee"
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.add(ByteCode.ALOAD_1);  // the Scriptable
            cfw.add(ByteCode.PUTFIELD, adapterName, "delegee",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            cfw.add(ByteCode.ALOAD_0);  // this for the following PUTFIELD for self
            // create a wrapper object to be used as "this" in method calls
            cfw.add(ByteCode.ALOAD_1);  // the Scriptable
            cfw.add(ByteCode.ALOAD_0);  // this
            cfw.addInvoke(ByteCode.INVOKESTATIC,
                          "org/mozilla/javascript/JavaAdapter",
                          "createAdapterWrapper",
                          "(Lorg/mozilla/javascript/Scriptable;"
                          +"Ljava/lang/Object;"
                          +")Lorg/mozilla/javascript/Scriptable;");
            cfw.add(ByteCode.PUTFIELD, adapterName, "self",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            cfw.add(ByteCode.RETURN);
            cfw.stopMethod((short)2); // this + delegee
        }
    
        /**
         * Generates code to wrap Java arguments into Object[].
         * Non-primitive Java types are left as-is pending conversion
         * in the helper method. Leaves the array object on the top of the stack.
         */
        static void generatePushWrappedArgs(ClassFileWriter cfw,
                                            Class[] argTypes,
                                            int arrayLength)
        {
            // push arguments
            cfw.addPush(arrayLength);
            cfw.add(ByteCode.ANEWARRAY, "java/lang/Object");
            int paramOffset = 1;
            for (int i = 0; i != argTypes.length; ++i) {
                cfw.add(ByteCode.DUP); // duplicate array reference
                cfw.addPush(i);
                paramOffset += generateWrapArg(cfw, paramOffset, argTypes[i]);
                cfw.add(ByteCode.AASTORE);
            }
        }
    
        /**
         * Generates code to wrap Java argument into Object.
         * Non-primitive Java types are left unconverted pending conversion
         * in the helper method. Leaves the wrapper object on the top of the stack.
         */
        private static int generateWrapArg(ClassFileWriter cfw, int paramOffset,
                                           Class argType)
        {
            int size = 1;
            if (!argType.isPrimitive()) {
                cfw.add(ByteCode.ALOAD, paramOffset);
    
            } else if (argType == Boolean.TYPE) {
                // wrap boolean values with java.lang.Boolean.
                cfw.add(ByteCode.NEW, "java/lang/Boolean");
                cfw.add(ByteCode.DUP);
                cfw.add(ByteCode.ILOAD, paramOffset);
                cfw.addInvoke(ByteCode.INVOKESPECIAL, "java/lang/Boolean",
                              "", "(Z)V");
    
            } else if (argType == Character.TYPE) {
                // Create a string of length 1 using the character parameter.
                cfw.add(ByteCode.ILOAD, paramOffset);
                cfw.addInvoke(ByteCode.INVOKESTATIC, "java/lang/String",
                              "valueOf", "(C)Ljava/lang/String;");
    
            } else {
                // convert all numeric values to java.lang.Double.
                cfw.add(ByteCode.NEW, "java/lang/Double");
                cfw.add(ByteCode.DUP);
                String typeName = argType.getName();
                switch (typeName.charAt(0)) {
                case 'b':
                case 's':
                case 'i':
                    // load an int value, convert to double.
                    cfw.add(ByteCode.ILOAD, paramOffset);
                    cfw.add(ByteCode.I2D);
                    break;
                case 'l':
                    // load a long, convert to double.
                    cfw.add(ByteCode.LLOAD, paramOffset);
                    cfw.add(ByteCode.L2D);
                    size = 2;
                    break;
                case 'f':
                    // load a float, convert to double.
                    cfw.add(ByteCode.FLOAD, paramOffset);
                    cfw.add(ByteCode.F2D);
                    break;
                case 'd':
                    cfw.add(ByteCode.DLOAD, paramOffset);
                    size = 2;
                    break;
                }
                cfw.addInvoke(ByteCode.INVOKESPECIAL, "java/lang/Double",
                              "", "(D)V");
            }
            return size;
        }
    
        /**
         * Generates code to convert a wrapped value type to a primitive type.
         * Handles unwrapping java.lang.Boolean, and java.lang.Number types.
         * Generates the appropriate RETURN bytecode.
         */
        static void generateReturnResult(ClassFileWriter cfw, Class retType,
                                         boolean callConvertResult)
        {
            // wrap boolean values with java.lang.Boolean, convert all other
            // primitive values to java.lang.Double.
            if (retType == Void.TYPE) {
                cfw.add(ByteCode.POP);
                cfw.add(ByteCode.RETURN);
    
            } else if (retType == Boolean.TYPE) {
                cfw.addInvoke(ByteCode.INVOKESTATIC,
                              "org/mozilla/javascript/Context",
                              "toBoolean", "(Ljava/lang/Object;)Z");
                cfw.add(ByteCode.IRETURN);
    
            } else if (retType == Character.TYPE) {
                // characters are represented as strings in JavaScript.
                // return the first character.
                // first convert the value to a string if possible.
                cfw.addInvoke(ByteCode.INVOKESTATIC,
                              "org/mozilla/javascript/Context",
                              "toString",
                              "(Ljava/lang/Object;)Ljava/lang/String;");
                cfw.add(ByteCode.ICONST_0);
                cfw.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String",
                              "charAt", "(I)C");
                cfw.add(ByteCode.IRETURN);
    
            } else if (retType.isPrimitive()) {
                cfw.addInvoke(ByteCode.INVOKESTATIC,
                              "org/mozilla/javascript/Context",
                              "toNumber", "(Ljava/lang/Object;)D");
                String typeName = retType.getName();
                switch (typeName.charAt(0)) {
                case 'b':
                case 's':
                case 'i':
                    cfw.add(ByteCode.D2I);
                    cfw.add(ByteCode.IRETURN);
                    break;
                case 'l':
                    cfw.add(ByteCode.D2L);
                    cfw.add(ByteCode.LRETURN);
                    break;
                case 'f':
                    cfw.add(ByteCode.D2F);
                    cfw.add(ByteCode.FRETURN);
                    break;
                case 'd':
                    cfw.add(ByteCode.DRETURN);
                    break;
                default:
                    throw new RuntimeException("Unexpected return type " +
                                               retType.toString());
                }
    
            } else {
                String retTypeStr = retType.getName();
                if (callConvertResult) {
                    cfw.addLoadConstant(retTypeStr);
                    cfw.addInvoke(ByteCode.INVOKESTATIC,
                                  "java/lang/Class",
                                  "forName",
                                  "(Ljava/lang/String;)Ljava/lang/Class;");
    
                    cfw.addInvoke(ByteCode.INVOKESTATIC,
                                  "org/mozilla/javascript/JavaAdapter",
                                  "convertResult",
                                  "(Ljava/lang/Object;"
                                  +"Ljava/lang/Class;"
                                  +")Ljava/lang/Object;");
                }
                // Now cast to return type
                cfw.add(ByteCode.CHECKCAST, retTypeStr);
                cfw.add(ByteCode.ARETURN);
            }
        }
    
        private static void generateMethod(ClassFileWriter cfw, String genName,
                                           String methodName, Class[] parms,
                                           Class returnType)
        {
            StringBuffer sb = new StringBuffer();
            int paramsEnd = appendMethodSignature(parms, returnType, sb);
            String methodSignature = sb.toString();
            cfw.startMethod(methodName, methodSignature,
                            ClassFileWriter.ACC_PUBLIC);
    
            // Prepare stack to call method
    
            // push factory
            cfw.add(ByteCode.ALOAD_0);
            cfw.add(ByteCode.GETFIELD, genName, "factory",
                    "Lorg/mozilla/javascript/ContextFactory;");
    
            // push self
            cfw.add(ByteCode.ALOAD_0);
            cfw.add(ByteCode.GETFIELD, genName, "self",
                    "Lorg/mozilla/javascript/Scriptable;");
    
            // push function
            cfw.add(ByteCode.ALOAD_0);
            cfw.add(ByteCode.GETFIELD, genName, "delegee",
                    "Lorg/mozilla/javascript/Scriptable;");
            cfw.addPush(methodName);
            cfw.addInvoke(ByteCode.INVOKESTATIC,
                          "org/mozilla/javascript/JavaAdapter",
                          "getFunction",
                          "(Lorg/mozilla/javascript/Scriptable;"
                          +"Ljava/lang/String;"
                          +")Lorg/mozilla/javascript/Function;");
    
            // push arguments
            generatePushWrappedArgs(cfw, parms, parms.length);
    
            // push bits to indicate which parameters should be wrapped
            if (parms.length > 64) {
                // If it will be an issue, then passing a static boolean array
                // can be an option, but for now using simple bitmask
                throw Context.reportRuntimeError0(
                    "JavaAdapter can not subclass methods with more then"
                    +" 64 arguments.");
            }
            long convertionMask = 0;
            for (int i = 0; i != parms.length; ++i) {
                if (!parms[i].isPrimitive()) {
                    convertionMask |= (1 << i);
                }
            }
            cfw.addPush(convertionMask);
    
            // go through utility method, which creates a Context to run the
            // method in.
            cfw.addInvoke(ByteCode.INVOKESTATIC,
                          "org/mozilla/javascript/JavaAdapter",
                          "callMethod",
                          "(Lorg/mozilla/javascript/ContextFactory;"
                          +"Lorg/mozilla/javascript/Scriptable;"
                          +"Lorg/mozilla/javascript/Function;"
                          +"[Ljava/lang/Object;"
                          +"J"
                          +")Ljava/lang/Object;");
    
            generateReturnResult(cfw, returnType, true);
    
            cfw.stopMethod((short)paramsEnd);
        }
    
        /**
         * Generates code to push typed parameters onto the operand stack
         * prior to a direct Java method call.
         */
        private static int generatePushParam(ClassFileWriter cfw, int paramOffset,
                                             Class paramType)
        {
            if (!paramType.isPrimitive()) {
                cfw.addALoad(paramOffset);
                return 1;
            }
            String typeName = paramType.getName();
            switch (typeName.charAt(0)) {
            case 'z':
            case 'b':
            case 'c':
            case 's':
            case 'i':
                // load an int value, convert to double.
                cfw.addILoad(paramOffset);
                return 1;
            case 'l':
                // load a long, convert to double.
                cfw.addLLoad(paramOffset);
                return 2;
            case 'f':
                // load a float, convert to double.
                cfw.addFLoad(paramOffset);
                return 1;
            case 'd':
                cfw.addDLoad(paramOffset);
                return 2;
            }
            throw Kit.codeBug();
        }
    
        /**
         * Generates code to return a Java type, after calling a Java method
         * that returns the same type.
         * Generates the appropriate RETURN bytecode.
         */
        private static void generatePopResult(ClassFileWriter cfw,
                                              Class retType)
        {
            if (retType.isPrimitive()) {
                String typeName = retType.getName();
                switch (typeName.charAt(0)) {
                case 'b':
                case 'c':
                case 's':
                case 'i':
                case 'z':
                    cfw.add(ByteCode.IRETURN);
                    break;
                case 'l':
                    cfw.add(ByteCode.LRETURN);
                    break;
                case 'f':
                    cfw.add(ByteCode.FRETURN);
                    break;
                case 'd':
                    cfw.add(ByteCode.DRETURN);
                    break;
                }
            } else {
                cfw.add(ByteCode.ARETURN);
            }
        }
    
        /**
         * Generates a method called "super$methodName()" which can be called
         * from JavaScript that is equivalent to calling "super.methodName()"
         * from Java. Eventually, this may be supported directly in JavaScript.
         */
        private static void generateSuper(ClassFileWriter cfw,
                                          String genName, String superName,
                                          String methodName, String methodSignature,
                                          Class[] parms, Class returnType)
        {
            cfw.startMethod("super$" + methodName, methodSignature,
                            ClassFileWriter.ACC_PUBLIC);
    
            // push "this"
            cfw.add(ByteCode.ALOAD, 0);
    
            // push the rest of the parameters.
            int paramOffset = 1;
            for (int i = 0; i < parms.length; i++) {
                paramOffset += generatePushParam(cfw, paramOffset, parms[i]);
            }
    
            // call the superclass implementation of the method.
            cfw.addInvoke(ByteCode.INVOKESPECIAL,
                          superName,
                          methodName,
                          methodSignature);
    
            // now, handle the return type appropriately.
            Class retType = returnType;
            if (!retType.equals(Void.TYPE)) {
                generatePopResult(cfw, retType);
            } else {
                cfw.add(ByteCode.RETURN);
            }
            cfw.stopMethod((short)(paramOffset + 1));
        }
    
        /**
         * Returns a fully qualified method name concatenated with its signature.
         */
        private static String getMethodSignature(Method method, Class[] argTypes)
        {
            StringBuffer sb = new StringBuffer();
            appendMethodSignature(argTypes, method.getReturnType(), sb);
            return sb.toString();
        }
    
        static int appendMethodSignature(Class[] argTypes,
                                         Class returnType,
                                         StringBuffer sb)
        {
            sb.append('(');
            int firstLocal = 1 + argTypes.length; // includes this.
            for (int i = 0; i < argTypes.length; i++) {
                Class type = argTypes[i];
                appendTypeString(sb, type);
                if (type == Long.TYPE || type == Double.TYPE) {
                    // adjust for duble slot
                    ++firstLocal;
                }
            }
            sb.append(')');
            appendTypeString(sb, returnType);
            return firstLocal;
        }
    
        private static StringBuffer appendTypeString(StringBuffer sb, Class type)
        {
            while (type.isArray()) {
                sb.append('[');
                type = type.getComponentType();
            }
            if (type.isPrimitive()) {
                char typeLetter;
                if (type == Boolean.TYPE) {
                    typeLetter = 'Z';
                } else if (type == Long.TYPE) {
                    typeLetter = 'J';
                } else {
                    String typeName = type.getName();
                    typeLetter = Character.toUpperCase(typeName.charAt(0));
                }
                sb.append(typeLetter);
            } else {
                sb.append('L');
                sb.append(type.getName().replace('.', '/'));
                sb.append(';');
            }
            return sb;
        }
    
        static int[] getArgsToConvert(Class[] argTypes)
        {
            int count = 0;
            for (int i = 0; i != argTypes.length; ++i) {
                if (!argTypes[i].isPrimitive())
                    ++count;
            }
            if (count == 0)
                return null;
            int[] array = new int[count];
            count = 0;
            for (int i = 0; i != argTypes.length; ++i) {
                if (!argTypes[i].isPrimitive())
                    array[count++] = i;
            }
            return array;
        }
    
        private static final Object FTAG = "JavaAdapter";
        private static final int Id_JavaAdapter = 1;
    }
    carmetal-4.3/src/org/mozilla/javascript/JavaMembers.java000066400000000000000000001076071417122252700234200ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-2000
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Norris Boyd
     *   Cameron McCormack
     *   Frank Mitchell
     *   Mike Shaver
     *   Kurt Westerfeld
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import java.lang.reflect.*;
    import java.util.*;
    
    /**
     *
     * @author Mike Shaver
     * @author Norris Boyd
     * @see NativeJavaObject
     * @see NativeJavaClass
     */
    class JavaMembers
    {
        JavaMembers(Scriptable scope, Class cl)
        {
            this(scope, cl, false);
        }
    
        JavaMembers(Scriptable scope, Class cl, boolean includeProtected)
        {
            try {
                Context cx = ContextFactory.getGlobal().enterContext();
                ClassShutter shutter = cx.getClassShutter();
                if (shutter != null && !shutter.visibleToScripts(cl.getName())) {
                    throw Context.reportRuntimeError1("msg.access.prohibited",
                                                      cl.getName());
                }
                this.includePrivate = cx.hasFeature(
                    Context.FEATURE_ENHANCED_JAVA_ACCESS);
                this.members = new HashMap();
                this.staticMembers = new HashMap();
                this.cl = cl;
                reflect(scope, includeProtected);
            } finally {
                Context.exit();
            }
        }
    
        boolean has(String name, boolean isStatic)
        {
            Map ht = isStatic ? staticMembers : members;
            Object obj = ht.get(name);
            if (obj != null) {
                return true;
            }
            return findExplicitFunction(name, isStatic) != null;
        }
    
        Object get(Scriptable scope, String name, Object javaObject,
                   boolean isStatic)
        {
            Map ht = isStatic ? staticMembers : members;
            Object member = ht.get(name);
            if (!isStatic && member == null) {
                // Try to get static member from instance (LC3)
                member = staticMembers.get(name);
            }
            if (member == null) {
                member = this.getExplicitFunction(scope, name,
                                                  javaObject, isStatic);
                if (member == null)
                    return Scriptable.NOT_FOUND;
            }
            if (member instanceof Scriptable) {
                return member;
            }
            Context cx = Context.getContext();
            Object rval;
            Class type;
            try {
                if (member instanceof BeanProperty) {
                    BeanProperty bp = (BeanProperty) member;
                    if (bp.getter == null)
                        return Scriptable.NOT_FOUND;
                    rval = bp.getter.invoke(javaObject, Context.emptyArgs);
                    type = bp.getter.method().getReturnType();
                } else {
                    Field field = (Field) member;
                    rval = field.get(isStatic ? null : javaObject);
                    type = field.getType();
                }
            } catch (Exception ex) {
                throw Context.throwAsScriptRuntimeEx(ex);
            }
            // Need to wrap the object before we return it.
            scope = ScriptableObject.getTopLevelScope(scope);
            return cx.getWrapFactory().wrap(cx, scope, rval, type);
        }
    
        void put(Scriptable scope, String name, Object javaObject,
                 Object value, boolean isStatic)
        {
            Map ht = isStatic ? staticMembers : members;
            Object member = ht.get(name);
            if (!isStatic && member == null) {
                // Try to get static member from instance (LC3)
                member = staticMembers.get(name);
            }
            if (member == null)
                throw reportMemberNotFound(name);
            if (member instanceof FieldAndMethods) {
                FieldAndMethods fam = (FieldAndMethods) ht.get(name);
                member = fam.field;
            }
    
            // Is this a bean property "set"?
            if (member instanceof BeanProperty) {
                BeanProperty bp = (BeanProperty)member;
                if (bp.setter == null) {
                    throw reportMemberNotFound(name);
                }
                // If there's only one setter or if the value is null, use the
                // main setter. Otherwise, let the NativeJavaMethod decide which
                // setter to use:
                if (bp.setters == null || value == null) {
                    Class setType = bp.setter.argTypes[0];
                    Object[] args = { Context.jsToJava(value, setType) };
                    try {
                        bp.setter.invoke(javaObject, args);
                    } catch (Exception ex) {
                      throw Context.throwAsScriptRuntimeEx(ex);
                    }
                } else {
                    Object[] args = { value };
                    bp.setters.call(Context.getContext(),
                                    ScriptableObject.getTopLevelScope(scope),
                                    scope, args);
                }
            }
            else {
                if (!(member instanceof Field)) {
                    String str = (member == null) ? "msg.java.internal.private"
                                                  : "msg.java.method.assign";
                    throw Context.reportRuntimeError1(str, name);
                }
                Field field = (Field)member;
                Object javaValue = Context.jsToJava(value, field.getType());
                try {
                    field.set(javaObject, javaValue);
                } catch (IllegalAccessException accessEx) {
                    if ((field.getModifiers() & Modifier.FINAL) != 0) {
                        // treat Java final the same as JavaScript [[READONLY]]
                        return;
                    }
                    throw Context.throwAsScriptRuntimeEx(accessEx);
                } catch (IllegalArgumentException argEx) {
                    throw Context.reportRuntimeError3(
                        "msg.java.internal.field.type",
                        value.getClass().getName(), field,
                        javaObject.getClass().getName());
                }
            }
        }
    
        Object[] getIds(boolean isStatic)
        {
            Map map = isStatic ? staticMembers : members;
            return map.keySet().toArray(new Object[map.size()]);
        }
    
        static String javaSignature(Class type)
        {
            if (!type.isArray()) {
                return type.getName();
            } else {
                int arrayDimension = 0;
                do {
                    ++arrayDimension;
                    type = type.getComponentType();
                } while (type.isArray());
                String name = type.getName();
                String suffix = "[]";
                if (arrayDimension == 1) {
                    return name.concat(suffix);
                } else {
                    int length = name.length() + arrayDimension * suffix.length();
                    StringBuffer sb = new StringBuffer(length);
                    sb.append(name);
                    while (arrayDimension != 0) {
                        --arrayDimension;
                        sb.append(suffix);
                    }
                    return sb.toString();
                }
            }
        }
    
        static String liveConnectSignature(Class[] argTypes)
        {
            int N = argTypes.length;
            if (N == 0) { return "()"; }
            StringBuffer sb = new StringBuffer();
            sb.append('(');
            for (int i = 0; i != N; ++i) {
                if (i != 0) {
                    sb.append(',');
                }
                sb.append(javaSignature(argTypes[i]));
            }
            sb.append(')');
            return sb.toString();
        }
    
        private MemberBox findExplicitFunction(String name, boolean isStatic)
        {
            int sigStart = name.indexOf('(');
            if (sigStart < 0) { return null; }
    
            Map ht = isStatic ? staticMembers : members;
            MemberBox[] methodsOrCtors = null;
            boolean isCtor = (isStatic && sigStart == 0);
    
            if (isCtor) {
                // Explicit request for an overloaded constructor
                methodsOrCtors = ctors;
            } else {
                // Explicit request for an overloaded method
                String trueName = name.substring(0,sigStart);
                Object obj = ht.get(trueName);
                if (!isStatic && obj == null) {
                    // Try to get static member from instance (LC3)
                    obj = staticMembers.get(trueName);
                }
                if (obj instanceof NativeJavaMethod) {
                    NativeJavaMethod njm = (NativeJavaMethod)obj;
                    methodsOrCtors = njm.methods;
                }
            }
    
            if (methodsOrCtors != null) {
                for (int i = 0; i < methodsOrCtors.length; i++) {
                    Class[] type = methodsOrCtors[i].argTypes;
                    String sig = liveConnectSignature(type);
                    if (sigStart + sig.length() == name.length()
                        && name.regionMatches(sigStart, sig, 0, sig.length()))
                    {
                        return methodsOrCtors[i];
                    }
                }
            }
    
            return null;
        }
    
        private Object getExplicitFunction(Scriptable scope, String name,
                                           Object javaObject, boolean isStatic)
        {
            Map ht = isStatic ? staticMembers : members;
            Object member = null;
            MemberBox methodOrCtor = findExplicitFunction(name, isStatic);
    
            if (methodOrCtor != null) {
                Scriptable prototype =
                    ScriptableObject.getFunctionPrototype(scope);
    
                if (methodOrCtor.isCtor()) {
                    NativeJavaConstructor fun =
                        new NativeJavaConstructor(methodOrCtor);
                    fun.setPrototype(prototype);
                    member = fun;
                    ht.put(name, fun);
                } else {
                    String trueName = methodOrCtor.getName();
                    member = ht.get(trueName);
    
                    if (member instanceof NativeJavaMethod &&
                        ((NativeJavaMethod)member).methods.length > 1 ) {
                        NativeJavaMethod fun =
                            new NativeJavaMethod(methodOrCtor, name);
                        fun.setPrototype(prototype);
                        ht.put(name, fun);
                        member = fun;
                    }
                }
            }
    
            return member;
        }
    
        /**
         * Retrieves mapping of methods to accessible methods for a class.
         * In case the class is not public, retrieves methods with same 
         * signature as its public methods from public superclasses and 
         * interfaces (if they exist). Basically upcasts every method to the 
         * nearest accessible method.
         */
        private static Method[] discoverAccessibleMethods(Class clazz, 
                                                          boolean includeProtected,
                                                          boolean includePrivate)
        {
            Map map = new HashMap();
            discoverAccessibleMethods(clazz, map, includeProtected, includePrivate);
            return map.values().toArray(new Method[map.size()]);
        }
        
        private static void discoverAccessibleMethods(Class clazz, 
                Map map, boolean includeProtected,
                boolean includePrivate)
        {
            if (Modifier.isPublic(clazz.getModifiers()) || includePrivate) {
                try {
                    if (includeProtected || includePrivate) {
                        while (clazz != null) {
                            try {
                                Method[] methods = clazz.getDeclaredMethods();
                                for (int i = 0; i < methods.length; i++) {
                                    Method method = methods[i];
                                    int mods = method.getModifiers();
        
                                    if (Modifier.isPublic(mods) ||
                                        Modifier.isProtected(mods) ||
                                        includePrivate)
                                    {
                                        if (includePrivate)
                                            method.setAccessible(true);
                                        map.put(new MethodSignature(method), method);
                                    }
                                }
                                clazz = clazz.getSuperclass();
                            } catch (SecurityException e) {
                                // Some security settings (i.e., applets) disallow
                                // access to Class.getDeclaredMethods. Fall back to
                                // Class.getMethods.
                                Method[] methods = clazz.getMethods();
                                for (int i = 0; i < methods.length; i++) {
                                    Method method = methods[i];
                                    MethodSignature sig 
                                        = new MethodSignature(method);
                                    if (map.get(sig) == null)
                                        map.put(sig, method);
                                }
                                break; // getMethods gets superclass methods, no
                                       // need to loop any more
                            }
                        }
                    } else {
                        Method[] methods = clazz.getMethods();
                        for (int i = 0; i < methods.length; i++) {
                            Method method = methods[i];
                            MethodSignature sig = new MethodSignature(method);
                            map.put(sig, method);
                        }
                    }
                    return;
                } catch (SecurityException e) {
                    Context.reportWarning(
                            "Could not discover accessible methods of class " +
                                clazz.getName() + " due to lack of privileges, " +
                                "attemping superclasses/interfaces.");
                    // Fall through and attempt to discover superclass/interface
                    // methods
                }
            }
    
            Class[] interfaces = clazz.getInterfaces();
            for (int i = 0; i < interfaces.length; i++) {
                discoverAccessibleMethods(interfaces[i], map, includeProtected,
                        includePrivate);
            }
            Class superclass = clazz.getSuperclass();
            if (superclass != null) {
                discoverAccessibleMethods(superclass, map, includeProtected,
                        includePrivate);
            }
        }
    
        private static final class MethodSignature
        {
            private final String name;
            private final Class[] args;
            
            private MethodSignature(String name, Class[] args)
            {
                this.name = name;
                this.args = args;
            }
            
            MethodSignature(Method method)
            {
                this(method.getName(), method.getParameterTypes());
            }
            
            @Override
            public boolean equals(Object o)
            {
                if(o instanceof MethodSignature)
                {
                    MethodSignature ms = (MethodSignature)o;
                    return ms.name.equals(name) && Arrays.equals(args, ms.args);
                }
                return false;
            }
            
            @Override
            public int hashCode()
            {
                return name.hashCode() ^ args.length;
            }
        }
        
        private void reflect(Scriptable scope, boolean includeProtected)
        {
            // We reflect methods first, because we want overloaded field/method
            // names to be allocated to the NativeJavaMethod before the field
            // gets in the way.
    
            Method[] methods = discoverAccessibleMethods(cl, includeProtected,
                                                         includePrivate);
            for (int i = 0; i < methods.length; i++) {
                Method method = methods[i];
                int mods = method.getModifiers();
                boolean isStatic = Modifier.isStatic(mods);
                Map ht = isStatic ? staticMembers : members;
                String name = method.getName();
                Object value = ht.get(name);
                if (value == null) {
                    ht.put(name, method);
                } else {
                    ObjArray overloadedMethods;
                    if (value instanceof ObjArray) {
                        overloadedMethods = (ObjArray)value;
                    } else {
                        if (!(value instanceof Method)) Kit.codeBug();
                        // value should be instance of Method as at this stage
                        // staticMembers and members can only contain methods
                        overloadedMethods = new ObjArray();
                        overloadedMethods.add(value);
                        ht.put(name, overloadedMethods);
                    }
                    overloadedMethods.add(method);
                }
            }
    
            // replace Method instances by wrapped NativeJavaMethod objects
            // first in staticMembers and then in members
            for (int tableCursor = 0; tableCursor != 2; ++tableCursor) {
                boolean isStatic = (tableCursor == 0);
                Map ht = isStatic ? staticMembers : members;
                for (String name: ht.keySet()) {
                    MemberBox[] methodBoxes;
                    Object value = ht.get(name);
                    if (value instanceof Method) {
                        methodBoxes = new MemberBox[1];
                        methodBoxes[0] = new MemberBox((Method)value);
                    } else {
                        ObjArray overloadedMethods = (ObjArray)value;
                        int N = overloadedMethods.size();
                        if (N < 2) Kit.codeBug();
                        methodBoxes = new MemberBox[N];
                        for (int i = 0; i != N; ++i) {
                            Method method = (Method)overloadedMethods.get(i);
                            methodBoxes[i] = new MemberBox(method);
                        }
                    }
                    NativeJavaMethod fun = new NativeJavaMethod(methodBoxes);
                    if (scope != null) {
                        ScriptRuntime.setFunctionProtoAndParent(fun, scope);
                    }
                    ht.put(name, fun);
                }
            }
    
            // Reflect fields.
            Field[] fields = getAccessibleFields();
            for (int i = 0; i < fields.length; i++) {
                Field field = fields[i];
                String name = field.getName();
                int mods = field.getModifiers();
                if (!includePrivate && !Modifier.isPublic(mods)) {
                    continue;
                }
                try {
                    boolean isStatic = Modifier.isStatic(mods);
                    Map ht = isStatic ? staticMembers : members;
                    Object member = ht.get(name);
                    if (member == null) {
                        ht.put(name, field);
                    } else if (member instanceof NativeJavaMethod) {
                        NativeJavaMethod method = (NativeJavaMethod) member;
                        FieldAndMethods fam
                            = new FieldAndMethods(scope, method.methods, field);
                        Map fmht = isStatic ? staticFieldAndMethods
                                                  : fieldAndMethods;
                        if (fmht == null) {
                            fmht = new HashMap();
                            if (isStatic) {
                                staticFieldAndMethods = fmht;
                            } else {
                                fieldAndMethods = fmht;
                            }
                        }
                        fmht.put(name, fam);
                        ht.put(name, fam);
                    } else if (member instanceof Field) {
                        Field oldField = (Field) member;
                        // If this newly reflected field shadows an inherited field,
                        // then replace it. Otherwise, since access to the field
                        // would be ambiguous from Java, no field should be
                        // reflected.
                        // For now, the first field found wins, unless another field
                        // explicitly shadows it.
                        if (oldField.getDeclaringClass().
                                isAssignableFrom(field.getDeclaringClass()))
                        {
                            ht.put(name, field);
                        }
                    } else {
                        // "unknown member type"
                        Kit.codeBug();
                    }
                } catch (SecurityException e) {
                    // skip this field
                    Context.reportWarning("Could not access field "
                            + name + " of class " + cl.getName() +
                            " due to lack of privileges.");
                }
            }
    
            // Create bean properties from corresponding get/set methods first for
            // static members and then for instance members
            for (int tableCursor = 0; tableCursor != 2; ++tableCursor) {
                boolean isStatic = (tableCursor == 0);
                Map ht = isStatic ? staticMembers : members;
    
                Map toAdd = new HashMap();
    
                // Now, For each member, make "bean" properties.
                for (String name: ht.keySet()) {
                    // Is this a getter?
                    boolean memberIsGetMethod = name.startsWith("get");
                    boolean memberIsSetMethod = name.startsWith("set");
                    boolean memberIsIsMethod = name.startsWith("is");
                    if (memberIsGetMethod || memberIsIsMethod 
                            || memberIsSetMethod) {
                        // Double check name component.
                        String nameComponent
                            = name.substring(memberIsIsMethod ? 2 : 3);
                        if (nameComponent.length() == 0)
                            continue;
    
                        // Make the bean property name.
                        String beanPropertyName = nameComponent;
                        char ch0 = nameComponent.charAt(0);
                        if (Character.isUpperCase(ch0)) {
                            if (nameComponent.length() == 1) {
                                beanPropertyName = nameComponent.toLowerCase();
                            } else {
                                char ch1 = nameComponent.charAt(1);
                                if (!Character.isUpperCase(ch1)) {
                                    beanPropertyName = Character.toLowerCase(ch0)
                                                       +nameComponent.substring(1);
                                }
                            }
                        }
    
                        // If we already have a member by this name, don't do this
                        // property.
                        if (toAdd.containsKey(beanPropertyName))
                            continue;
                        Object v = ht.get(beanPropertyName);
                        if (v != null) {
                            // A private field shouldn't mask a public getter/setter
                            if (!includePrivate || !(v instanceof Member) ||
                                !Modifier.isPrivate(((Member)v).getModifiers()))
    
                            {
                                continue;
                            }
                        }
    
                        // Find the getter method, or if there is none, the is-
                        // method.
                        MemberBox getter = null;
                        getter = findGetter(isStatic, ht, "get", nameComponent);
                        // If there was no valid getter, check for an is- method.
                        if (getter == null) {
                            getter = findGetter(isStatic, ht, "is", nameComponent);
                        }
    
                        // setter
                        MemberBox setter = null;
                        NativeJavaMethod setters = null;
                        String setterName = "set".concat(nameComponent);
    
                        if (ht.containsKey(setterName)) {
                            // Is this value a method?
                            Object member = ht.get(setterName);
                            if (member instanceof NativeJavaMethod) {
                                NativeJavaMethod njmSet = (NativeJavaMethod)member;
                                if (getter != null) {
                                    // We have a getter. Now, do we have a matching 
                                    // setter?
                                    Class type = getter.method().getReturnType();
                                    setter = extractSetMethod(type, njmSet.methods,
                                                                isStatic);
                                } else {
                                    // No getter, find any set method
                                    setter = extractSetMethod(njmSet.methods, 
                                                                isStatic);
                                }
                                if (njmSet.methods.length > 1) {
                                    setters = njmSet;
                                }
                            }
                        }
                        // Make the property.
                        BeanProperty bp = new BeanProperty(getter, setter,
                                                           setters);
                        toAdd.put(beanPropertyName, bp);
                    }
                }
    
                // Add the new bean properties.
                for (String key: toAdd.keySet()) {
                    Object value = toAdd.get(key);
                    ht.put(key, value);
                }
            }
    
            // Reflect constructors
            Constructor[] constructors = getAccessibleConstructors();
            ctors = new MemberBox[constructors.length];
            for (int i = 0; i != constructors.length; ++i) {
                ctors[i] = new MemberBox(constructors[i]);
            }
        }
    
        private Constructor[] getAccessibleConstructors()
        {
          // The JVM currently doesn't allow changing access on java.lang.Class
          // constructors, so don't try
          if (includePrivate && cl != ScriptRuntime.ClassClass) {
              try {
                  Constructor[] cons = cl.getDeclaredConstructors();
                  Constructor.setAccessible(cons, true);
    
                  return cons;
              } catch (SecurityException e) {
                  // Fall through to !includePrivate case
                  Context.reportWarning("Could not access constructor " +
                        " of class " + cl.getName() +
                        " due to lack of privileges.");
              }
          }
          return cl.getConstructors();
        }
    
        private Field[] getAccessibleFields() {
            if (includePrivate) {
                try {
                    List fieldsList = new ArrayList();
                    Class currentClass = cl;
    
                    while (currentClass != null) {
                        // get all declared fields in this class, make them
                        // accessible, and save
                        Field[] declared = currentClass.getDeclaredFields();
                        for (int i = 0; i < declared.length; i++) {
                            declared[i].setAccessible(true);
                            fieldsList.add(declared[i]);
                        }
                        // walk up superclass chain.  no need to deal specially with
                        // interfaces, since they can't have fields
                        currentClass = currentClass.getSuperclass();
                    }
    
                    return fieldsList.toArray(new Field[fieldsList.size()]);
                } catch (SecurityException e) {
                    // fall through to !includePrivate case
                }
            }
            return cl.getFields();
        }
    
        private MemberBox findGetter(boolean isStatic, Map ht, String prefix,
                                     String propertyName)
        {
            String getterName = prefix.concat(propertyName);
            if (ht.containsKey(getterName)) {
                // Check that the getter is a method.
                Object member = ht.get(getterName);
                if (member instanceof NativeJavaMethod) {
                    NativeJavaMethod njmGet = (NativeJavaMethod) member;
                    return extractGetMethod(njmGet.methods, isStatic);
                }
            }
            return null;
        }
    
        private static MemberBox extractGetMethod(MemberBox[] methods,
                                                  boolean isStatic)
        {
            // Inspect the list of all MemberBox for the only one having no
            // parameters
            for (int methodIdx = 0; methodIdx < methods.length; methodIdx++) {
                MemberBox method = methods[methodIdx];
                // Does getter method have an empty parameter list with a return
                // value (eg. a getSomething() or isSomething())?
                if (method.argTypes.length == 0
                    && (!isStatic || method.isStatic()))
                {
                    Class type = method.method().getReturnType();
                    if (type != Void.TYPE) {
                        return method;
                    }
                    break;
                }
            }
            return null;
        }
    
        private static MemberBox extractSetMethod(Class type, MemberBox[] methods,
                                                  boolean isStatic)
        {
            //
            // Note: it may be preferable to allow NativeJavaMethod.findFunction()
            //       to find the appropriate setter; unfortunately, it requires an
            //       instance of the target arg to determine that.
            //
    
            // Make two passes: one to find a method with direct type assignment,
            // and one to find a widening conversion.
            for (int pass = 1; pass <= 2; ++pass) {
                for (int i = 0; i < methods.length; ++i) {
                    MemberBox method = methods[i];
                    if (!isStatic || method.isStatic()) {
                        Class[] params = method.argTypes;
                        if (params.length == 1) {
                            if (pass == 1) {
                                if (params[0] == type) {
                                    return method;
                                }
                            } else {
                                if (pass != 2) Kit.codeBug();
                                if (params[0].isAssignableFrom(type)) {
                                    return method;
                                }
                            }
                        }
                    }
                }
            }
            return null;
        }
    
        private static MemberBox extractSetMethod(MemberBox[] methods,
                                                  boolean isStatic)
        {
    
            for (int i = 0; i < methods.length; ++i) {
                MemberBox method = methods[i];
                if (!isStatic || method.isStatic()) {
                    if (method.method().getReturnType() == Void.TYPE) {
                        if (method.argTypes.length == 1) {
                            return method;
                        }
                    }
                }
            }
            return null;
        }
    
        Map getFieldAndMethodsObjects(Scriptable scope,
                Object javaObject, boolean isStatic)
        {
            Map ht = isStatic ? staticFieldAndMethods : fieldAndMethods;
            if (ht == null)
                return null;
            int len = ht.size();
            Map result = new HashMap(len);
            for (FieldAndMethods fam: ht.values()) {
                FieldAndMethods famNew = new FieldAndMethods(scope, fam.methods,
                                                             fam.field);
                famNew.javaObject = javaObject;
                result.put(fam.field.getName(), famNew);
            }
            return result;
        }
    
        static JavaMembers lookupClass(Scriptable scope, Class dynamicType,
                                       Class staticType, boolean includeProtected)
        {
            JavaMembers members;
            scope = ScriptableObject.getTopLevelScope(scope);
            ClassCache cache = ClassCache.get(scope);
            Map,JavaMembers> ct = cache.getClassCacheMap();
    
            Class cl = dynamicType;
            for (;;) {
                members = ct.get(cl);
                if (members != null) {
                    return members;
                }
                try {
                    members = new JavaMembers(scope, cl, includeProtected);
                    break;
                } catch (SecurityException e) {
                    // Reflection may fail for objects that are in a restricted
                    // access package (e.g. sun.*).  If we get a security
                    // exception, try again with the static type if it is interface.
                    // Otherwise, try superclass
                    if (staticType != null && staticType.isInterface()) {
                        cl = staticType;
                        staticType = null; // try staticType only once
                    } else {
                        Class parent = cl.getSuperclass();
                        if (parent == null) {
                            if (cl.isInterface()) {
                                // last resort after failed staticType interface
                                parent = ScriptRuntime.ObjectClass;
                            } else {
                                throw e;
                            }
                        }
                        cl = parent;
                    }
                }
            }
    
            if (cache.isCachingEnabled())
                ct.put(cl, members);
            return members;
        }
    
        RuntimeException reportMemberNotFound(String memberName)
        {
            return Context.reportRuntimeError2(
                "msg.java.member.not.found", cl.getName(), memberName);
        }
    
        private Class cl;
        private Map members;
        private Map fieldAndMethods;
        private Map staticMembers;
        private Map staticFieldAndMethods;
        MemberBox[] ctors;
        private boolean includePrivate;
    }
    
    class BeanProperty
    {
        BeanProperty(MemberBox getter, MemberBox setter, NativeJavaMethod setters)
        {
            this.getter = getter;
            this.setter = setter;
            this.setters = setters;
        }
    
        MemberBox getter;
        MemberBox setter;
        NativeJavaMethod setters;
    }
    
    class FieldAndMethods extends NativeJavaMethod
    {
        static final long serialVersionUID = -9222428244284796755L;
    
        FieldAndMethods(Scriptable scope, MemberBox[] methods, Field field)
        {
            super(methods);
            this.field = field;
            setParentScope(scope);
            setPrototype(ScriptableObject.getFunctionPrototype(scope));
        }
    
        @Override
        public Object getDefaultValue(Class hint)
        {
            if (hint == ScriptRuntime.FunctionClass)
                return this;
            Object rval;
            Class type;
            try {
                rval = field.get(javaObject);
                type = field.getType();
            } catch (IllegalAccessException accEx) {
                throw Context.reportRuntimeError1(
                    "msg.java.internal.private", field.getName());
            }
            Context cx  = Context.getContext();
            rval = cx.getWrapFactory().wrap(cx, this, rval, type);
            if (rval instanceof Scriptable) {
                rval = ((Scriptable) rval).getDefaultValue(hint);
            }
            return rval;
        }
    
        Field field;
        Object javaObject;
    }
    carmetal-4.3/src/org/mozilla/javascript/JavaScriptException.java000066400000000000000000000067471417122252700251540ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-1999
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Norris Boyd
     *   Bojan Cekrlic
     *   Hannes Wallnoefer
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    // API class
    
    package org.mozilla.javascript;
    
    /**
     * Java reflection of JavaScript exceptions.
     * Instances of this class are thrown by the JavaScript 'throw' keyword.
     *
     * @author Mike McCabe
     */
    public class JavaScriptException extends RhinoException
    {
        static final long serialVersionUID = -7666130513694669293L;
    
        /**
         * @deprecated
         * Use {@link WrappedException#WrappedException(Throwable)} to report
         * exceptions in Java code.
         */
        public JavaScriptException(Object value)
        {
            this(value, "", 0);
        }
    
        /**
         * Create a JavaScript exception wrapping the given JavaScript value
         *
         * @param value the JavaScript value thrown.
         */
        public JavaScriptException(Object value, String sourceName, int lineNumber)
        {
            recordErrorOrigin(sourceName, lineNumber, null, 0);
            this.value = value;
        }
    
        @Override
        public String details()
        {
           try {
               return ScriptRuntime.toString(value);
           } catch (RuntimeException rte) {
               // ScriptRuntime.toString may throw a RuntimeException
               if (value == null) {
                   return "null";
               } else if (value instanceof Scriptable) {
                   return ScriptRuntime.defaultObjectToString((Scriptable)value);
               } else {
                   return value.toString();
               }
           }
        }
    
        /**
         * @return the value wrapped by this exception
         */
        public Object getValue()
        {
            return value;
        }
    
        /**
         * @deprecated Use {@link RhinoException#sourceName()} from the super class.
         */
        public String getSourceName()
        {
            return sourceName();
        }
    
        /**
         * @deprecated Use {@link RhinoException#lineNumber()} from the super class.
         */
        public int getLineNumber()
        {
            return lineNumber();
        }
    
        private Object value;
    }
    carmetal-4.3/src/org/mozilla/javascript/Kit.java000066400000000000000000000357661417122252700217610ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     *
     * ***** BEGIN LICENSE BLOCK *****
     * Version: MPL 1.1/GPL 2.0
     *
     * The contents of this file are subject to the Mozilla Public License Version
     * 1.1 (the "License"); you may not use this file except in compliance with
     * the License. You may obtain a copy of the License at
     * http://www.mozilla.org/MPL/
     *
     * Software distributed under the License is distributed on an "AS IS" basis,
     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
     * for the specific language governing rights and limitations under the
     * License.
     *
     * The Original Code is Rhino code, released
     * May 6, 1999.
     *
     * The Initial Developer of the Original Code is
     * Netscape Communications Corporation.
     * Portions created by the Initial Developer are Copyright (C) 1997-1999
     * the Initial Developer. All Rights Reserved.
     *
     * Contributor(s):
     *   Igor Bukanov, igor@fastmail.fm
     *
     * Alternatively, the contents of this file may be used under the terms of
     * the GNU General Public License Version 2 or later (the "GPL"), in which
     * case the provisions of the GPL are applicable instead of those above. If
     * you wish to allow use of your version of this file only under the terms of
     * the GPL and not to allow others to use your version of this file under the
     * MPL, indicate your decision by deleting the provisions above and replacing
     * them with the notice and other provisions required by the GPL. If you do
     * not delete the provisions above, a recipient may use your version of this
     * file under either the MPL or the GPL.
     *
     * ***** END LICENSE BLOCK ***** */
    
    package org.mozilla.javascript;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import java.lang.reflect.Method;
    import java.util.Map;
    
    /**
     * Collection of utilities
     */
    
    public class Kit
    {
        /**
         * Reflection of Throwable.initCause(Throwable) from JDK 1.4
         * or nul if it is not available.
         */
        private static Method Throwable_initCause = null;
    
        static {
            // Are we running on a JDK 1.4 or later system?
            try {
                Class ThrowableClass = Kit.classOrNull("java.lang.Throwable");
                Class[] signature = { ThrowableClass };
                Throwable_initCause
                    = ThrowableClass.getMethod("initCause", signature);
            } catch (Exception ex) {
                // Assume any exceptions means the method does not exist.
            }
        }
    
        public static Class classOrNull(String className)
        {
            try {
                return Class.forName(className);
            } catch  (ClassNotFoundException ex) {
            } catch  (SecurityException ex) {
            } catch  (LinkageError ex) {
            } catch (IllegalArgumentException e) {
                // Can be thrown if name has characters that a class name
                // can not contain
            }
            return null;
        }
    
        /**
         * Attempt to load the class of the given name. Note that the type parameter
         * isn't checked.
         */
        public static Class classOrNull(ClassLoader loader, String className)
        {
            try {
                return loader.loadClass(className);
            } catch (ClassNotFoundException ex) {
            } catch (SecurityException ex) {
            } catch (LinkageError ex) {
            } catch (IllegalArgumentException e) {
                // Can be thrown if name has characters that a class name
                // can not contain
            }
            return null;
        }
    
        static Object newInstanceOrNull(Class cl)
        {
            try {
                return cl.newInstance();
            } catch (SecurityException x) {
            } catch  (LinkageError ex) {
            } catch (InstantiationException x) {
            } catch (IllegalAccessException x) {
            }
            return null;
        }
    
        /**
         * Check that testClass is accessible from the given loader.
         */
        static boolean testIfCanLoadRhinoClasses(ClassLoader loader)
        {
            Class testClass = ScriptRuntime.ContextFactoryClass;
            Class x = Kit.classOrNull(loader, testClass.getName());
            if (x != testClass) {
                // The check covers the case when x == null =>
                // loader does not know about testClass or the case
                // when x != null && x != testClass =>
                // loader loads a class unrelated to testClass
                return false;
            }
            return true;
        }
    
        /**
         * If initCause methods exists in Throwable, call
         * ex.initCause(cause) or otherwise do nothing.
         * @return The ex argument.
         */
        public static RuntimeException initCause(RuntimeException ex,
                                                 Throwable cause)
        {
            if (Throwable_initCause != null) {
                Object[] args = { cause };
                try {
                    Throwable_initCause.invoke(ex, args);
                } catch (Exception e) {
                    // Ignore any exceptions
                }
            }
            return ex;
        }
    
        /**
         * If character c is a hexadecimal digit, return
         * accumulator * 16 plus corresponding
         * number. Otherise return -1.
         */
        public static int xDigitToInt(int c, int accumulator)
        {
            check: {
                // Use 0..9 < A..Z < a..z
                if (c <= '9') {
                    c -= '0';
                    if (0 <= c) { break check; }
                } else if (c <= 'F') {
                    if ('A' <= c) {
                        c -= ('A' - 10);
                        break check;
                    }
                } else if (c <= 'f') {
                    if ('a' <= c) {
                        c -= ('a' - 10);
                        break check;
                    }
                }
                return -1;
            }
            return (accumulator << 4) | c;
        }
    
        /**
         * Add listener to bag of listeners.
         * The function does not modify bag and return a new collection
         * containing listener and all listeners from bag.
         * Bag without listeners always represented as the null value.
         * 

    * Usage example: *

         *     private volatile Object changeListeners;
         *
         *     public void addMyListener(PropertyChangeListener l)
         *     {
         *         synchronized (this) {
         *             changeListeners = Kit.addListener(changeListeners, l);
         *         }
         *     }
         *
         *     public void removeTextListener(PropertyChangeListener l)
         *     {
         *         synchronized (this) {
         *             changeListeners = Kit.removeListener(changeListeners, l);
         *         }
         *     }
         *
         *     public void fireChangeEvent(Object oldValue, Object newValue)
         *     {
         *     // Get immune local copy
         *         Object listeners = changeListeners;
         *         if (listeners != null) {
         *             PropertyChangeEvent e = new PropertyChangeEvent(
         *                 this, "someProperty" oldValue, newValue);
         *             for (int i = 0; ; ++i) {
         *                 Object l = Kit.getListener(listeners, i);
         *                 if (l == null)
         *                     break;
         *                 ((PropertyChangeListener)l).propertyChange(e);
         *             }
         *         }
         *     }
         * 
    * * @param listener Listener to add to bag * @param bag Current collection of listeners. * @return A new bag containing all listeners from bag and * listener. * @see #removeListener(Object bag, Object listener) * @see #getListener(Object bag, int index) */ public static Object addListener(Object bag, Object listener) { if (listener == null) throw new IllegalArgumentException(); if (listener instanceof Object[]) throw new IllegalArgumentException(); if (bag == null) { bag = listener; } else if (!(bag instanceof Object[])) { bag = new Object[] { bag, listener }; } else { Object[] array = (Object[])bag; int L = array.length; // bag has at least 2 elements if it is array if (L < 2) throw new IllegalArgumentException(); Object[] tmp = new Object[L + 1]; System.arraycopy(array, 0, tmp, 0, L); tmp[L] = listener; bag = tmp; } return bag; } /** * Remove listener from bag of listeners. * The function does not modify bag and return a new collection * containing all listeners from bag except listener. * If bag does not contain listener, the function returns * bag. *

    * For usage example, see {@link #addListener(Object bag, Object listener)}. * * @param listener Listener to remove from bag * @param bag Current collection of listeners. * @return A new bag containing all listeners from bag except * listener. * @see #addListener(Object bag, Object listener) * @see #getListener(Object bag, int index) */ public static Object removeListener(Object bag, Object listener) { if (listener == null) throw new IllegalArgumentException(); if (listener instanceof Object[]) throw new IllegalArgumentException(); if (bag == listener) { bag = null; } else if (bag instanceof Object[]) { Object[] array = (Object[])bag; int L = array.length; // bag has at least 2 elements if it is array if (L < 2) throw new IllegalArgumentException(); if (L == 2) { if (array[1] == listener) { bag = array[0]; } else if (array[0] == listener) { bag = array[1]; } } else { int i = L; do { --i; if (array[i] == listener) { Object[] tmp = new Object[L - 1]; System.arraycopy(array, 0, tmp, 0, i); System.arraycopy(array, i + 1, tmp, i, L - (i + 1)); bag = tmp; break; } } while (i != 0); } } return bag; } /** * Get listener at index position in bag or null if * index equals to number of listeners in bag. *

    * For usage example, see {@link #addListener(Object bag, Object listener)}. * * @param bag Current collection of listeners. * @param index Index of the listener to access. * @return Listener at the given index or null. * @see #addListener(Object bag, Object listener) * @see #removeListener(Object bag, Object listener) */ public static Object getListener(Object bag, int index) { if (index == 0) { if (bag == null) return null; if (!(bag instanceof Object[])) return bag; Object[] array = (Object[])bag; // bag has at least 2 elements if it is array if (array.length < 2) throw new IllegalArgumentException(); return array[0]; } else if (index == 1) { if (!(bag instanceof Object[])) { if (bag == null) throw new IllegalArgumentException(); return null; } Object[] array = (Object[])bag; // the array access will check for index on its own return array[1]; } else { // bag has to array Object[] array = (Object[])bag; int L = array.length; if (L < 2) throw new IllegalArgumentException(); if (index == L) return null; return array[index]; } } static Object initHash(Map h, Object key, Object initialValue) { synchronized (h) { Object current = h.get(key); if (current == null) { h.put(key, initialValue); } else { initialValue = current; } } return initialValue; } private final static class ComplexKey { private Object key1; private Object key2; private int hash; ComplexKey(Object key1, Object key2) { this.key1 = key1; this.key2 = key2; } @Override public boolean equals(Object anotherObj) { if (!(anotherObj instanceof ComplexKey)) return false; ComplexKey another = (ComplexKey)anotherObj; return key1.equals(another.key1) && key2.equals(another.key2); } @Override public int hashCode() { if (hash == 0) { hash = key1.hashCode() ^ key2.hashCode(); } return hash; } } public static Object makeHashKeyFromPair(Object key1, Object key2) { if (key1 == null) throw new IllegalArgumentException(); if (key2 == null) throw new IllegalArgumentException(); return new ComplexKey(key1, key2); } public static String readReader(Reader r) throws IOException { char[] buffer = new char[512]; int cursor = 0; for (;;) { int n = r.read(buffer, cursor, buffer.length - cursor); if (n < 0) { break; } cursor += n; if (cursor == buffer.length) { char[] tmp = new char[buffer.length * 2]; System.arraycopy(buffer, 0, tmp, 0, cursor); buffer = tmp; } } return new String(buffer, 0, cursor); } public static byte[] readStream(InputStream is, int initialBufferCapacity) throws IOException { if (initialBufferCapacity <= 0) { throw new IllegalArgumentException( "Bad initialBufferCapacity: "+initialBufferCapacity); } byte[] buffer = new byte[initialBufferCapacity]; int cursor = 0; for (;;) { int n = is.read(buffer, cursor, buffer.length - cursor); if (n < 0) { break; } cursor += n; if (cursor == buffer.length) { byte[] tmp = new byte[buffer.length * 2]; System.arraycopy(buffer, 0, tmp, 0, cursor); buffer = tmp; } } if (cursor != buffer.length) { byte[] tmp = new byte[cursor]; System.arraycopy(buffer, 0, tmp, 0, cursor); buffer = tmp; } return buffer; } /** * Throws RuntimeException to indicate failed assertion. * The function never returns and its return type is RuntimeException * only to be able to write throw Kit.codeBug() if plain * Kit.codeBug() triggers unreachable code error. */ public static RuntimeException codeBug() throws RuntimeException { RuntimeException ex = new IllegalStateException("FAILED ASSERTION"); // Print stack trace ASAP ex.printStackTrace(System.err); throw ex; } } carmetal-4.3/src/org/mozilla/javascript/LazilyLoadedCtor.java000066400000000000000000000116501417122252700244210ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.lang.reflect.*; /** * Avoid loading classes unless they are used. * *

    This improves startup time and average memory usage. */ public final class LazilyLoadedCtor implements java.io.Serializable { private static final long serialVersionUID = 1L; private static final int STATE_BEFORE_INIT = 0; private static final int STATE_INITIALIZING = 1; private static final int STATE_WITH_VALUE = 2; private final ScriptableObject scope; private final String propertyName; private final String className; private final boolean sealed; private Object initializedValue; private int state; public LazilyLoadedCtor(ScriptableObject scope, String propertyName, String className, boolean sealed) { this.scope = scope; this.propertyName = propertyName; this.className = className; this.sealed = sealed; this.state = STATE_BEFORE_INIT; scope.addLazilyInitializedValue(propertyName, 0, this, ScriptableObject.DONTENUM); } void init() { synchronized (this) { if (state == STATE_INITIALIZING) throw new IllegalStateException( "Recursive initialization for "+propertyName); if (state == STATE_BEFORE_INIT) { state = STATE_INITIALIZING; // Set value now to have something to set in finally block if // buildValue throws. Object value = Scriptable.NOT_FOUND; try { value = buildValue(); } finally { initializedValue = value; state = STATE_WITH_VALUE; } } } } Object getValue() { if (state != STATE_WITH_VALUE) throw new IllegalStateException(propertyName); return initializedValue; } private Object buildValue() { Class cl = cast(Kit.classOrNull(className)); if (cl != null) { try { Object value = ScriptableObject.buildClassCtor(scope, cl, sealed, false); if (value != null) { return value; } else { // cl has own static initializer which is expected // to set the property on its own. value = scope.get(propertyName, scope); if (value != Scriptable.NOT_FOUND) return value; } } catch (InvocationTargetException ex) { Throwable target = ex.getTargetException(); if (target instanceof RuntimeException) { throw (RuntimeException)target; } } catch (RhinoException ex) { } catch (InstantiationException ex) { } catch (IllegalAccessException ex) { } catch (SecurityException ex) { } } return Scriptable.NOT_FOUND; } @SuppressWarnings({"unchecked"}) private Class cast(Class cl) { return (Class)cl; } } carmetal-4.3/src/org/mozilla/javascript/MemberBox.java000066400000000000000000000270531417122252700231000ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * Felix Meschberger * Norris Boyd * Ulrike Mueller * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.lang.reflect.*; import java.io.*; /** * Wrappper class for Method and Constructor instances to cache * getParameterTypes() results, recover from IllegalAccessException * in some cases and provide serialization support. * * @author Igor Bukanov */ final class MemberBox implements Serializable { static final long serialVersionUID = 6358550398665688245L; private transient Member memberObject; transient Class[] argTypes; transient Object delegateTo; transient boolean vararg; MemberBox(Method method) { init(method); } MemberBox(Constructor constructor) { init(constructor); } private void init(Method method) { this.memberObject = method; this.argTypes = method.getParameterTypes(); this.vararg = VMBridge.instance.isVarArgs(method); } private void init(Constructor constructor) { this.memberObject = constructor; this.argTypes = constructor.getParameterTypes(); this.vararg = VMBridge.instance.isVarArgs(constructor); } Method method() { return (Method)memberObject; } Constructor ctor() { return (Constructor)memberObject; } Member member() { return memberObject; } boolean isMethod() { return memberObject instanceof Method; } boolean isCtor() { return memberObject instanceof Constructor; } boolean isStatic() { return Modifier.isStatic(memberObject.getModifiers()); } String getName() { return memberObject.getName(); } Class getDeclaringClass() { return memberObject.getDeclaringClass(); } String toJavaDeclaration() { StringBuffer sb = new StringBuffer(); if (isMethod()) { Method method = method(); sb.append(method.getReturnType()); sb.append(' '); sb.append(method.getName()); } else { Constructor ctor = ctor(); String name = ctor.getDeclaringClass().getName(); int lastDot = name.lastIndexOf('.'); if (lastDot >= 0) { name = name.substring(lastDot + 1); } sb.append(name); } sb.append(JavaMembers.liveConnectSignature(argTypes)); return sb.toString(); } @Override public String toString() { return memberObject.toString(); } Object invoke(Object target, Object[] args) { Method method = method(); try { try { return method.invoke(target, args); } catch (IllegalAccessException ex) { Method accessible = searchAccessibleMethod(method, argTypes); if (accessible != null) { memberObject = accessible; method = accessible; } else { if (!VMBridge.instance.tryToMakeAccessible(method)) { throw Context.throwAsScriptRuntimeEx(ex); } } // Retry after recovery return method.invoke(target, args); } } catch (InvocationTargetException ite) { // Must allow ContinuationPending exceptions to propagate unhindered Throwable e = ite; do { e = ((InvocationTargetException) e).getTargetException(); } while ((e instanceof InvocationTargetException)); if (e instanceof ContinuationPending) throw (ContinuationPending) e; throw Context.throwAsScriptRuntimeEx(e); } catch (Exception ex) { throw Context.throwAsScriptRuntimeEx(ex); } } Object newInstance(Object[] args) { Constructor ctor = ctor(); try { try { return ctor.newInstance(args); } catch (IllegalAccessException ex) { if (!VMBridge.instance.tryToMakeAccessible(ctor)) { throw Context.throwAsScriptRuntimeEx(ex); } } return ctor.newInstance(args); } catch (Exception ex) { throw Context.throwAsScriptRuntimeEx(ex); } } private static Method searchAccessibleMethod(Method method, Class[] params) { int modifiers = method.getModifiers(); if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) { Class c = method.getDeclaringClass(); if (!Modifier.isPublic(c.getModifiers())) { String name = method.getName(); Class[] intfs = c.getInterfaces(); for (int i = 0, N = intfs.length; i != N; ++i) { Class intf = intfs[i]; if (Modifier.isPublic(intf.getModifiers())) { try { return intf.getMethod(name, params); } catch (NoSuchMethodException ex) { } catch (SecurityException ex) { } } } for (;;) { c = c.getSuperclass(); if (c == null) { break; } if (Modifier.isPublic(c.getModifiers())) { try { Method m = c.getMethod(name, params); int mModifiers = m.getModifiers(); if (Modifier.isPublic(mModifiers) && !Modifier.isStatic(mModifiers)) { return m; } } catch (NoSuchMethodException ex) { } catch (SecurityException ex) { } } } } } return null; } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); Member member = readMember(in); if (member instanceof Method) { init((Method)member); } else { init((Constructor)member); } } private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); writeMember(out, memberObject); } /** * Writes a Constructor or Method object. * * Methods and Constructors are not serializable, so we must serialize * information about the class, the name, and the parameters and * recreate upon deserialization. */ private static void writeMember(ObjectOutputStream out, Member member) throws IOException { if (member == null) { out.writeBoolean(false); return; } out.writeBoolean(true); if (!(member instanceof Method || member instanceof Constructor)) throw new IllegalArgumentException("not Method or Constructor"); out.writeBoolean(member instanceof Method); out.writeObject(member.getName()); out.writeObject(member.getDeclaringClass()); if (member instanceof Method) { writeParameters(out, ((Method) member).getParameterTypes()); } else { writeParameters(out, ((Constructor) member).getParameterTypes()); } } /** * Reads a Method or a Constructor from the stream. */ private static Member readMember(ObjectInputStream in) throws IOException, ClassNotFoundException { if (!in.readBoolean()) return null; boolean isMethod = in.readBoolean(); String name = (String) in.readObject(); Class declaring = (Class) in.readObject(); Class[] parms = readParameters(in); try { if (isMethod) { return declaring.getMethod(name, parms); } else { return declaring.getConstructor(parms); } } catch (NoSuchMethodException e) { throw new IOException("Cannot find member: " + e); } } private static final Class[] primitives = { Boolean.TYPE, Byte.TYPE, Character.TYPE, Double.TYPE, Float.TYPE, Integer.TYPE, Long.TYPE, Short.TYPE, Void.TYPE }; /** * Writes an array of parameter types to the stream. * * Requires special handling because primitive types cannot be * found upon deserialization by the default Java implementation. */ private static void writeParameters(ObjectOutputStream out, Class[] parms) throws IOException { out.writeShort(parms.length); outer: for (int i=0; i < parms.length; i++) { Class parm = parms[i]; boolean primitive = parm.isPrimitive(); out.writeBoolean(primitive); if (!primitive) { out.writeObject(parm); continue; } for (int j=0; j < primitives.length; j++) { if (parm.equals(primitives[j])) { out.writeByte(j); continue outer; } } throw new IllegalArgumentException("Primitive " + parm + " not found"); } } /** * Reads an array of parameter types from the stream. */ private static Class[] readParameters(ObjectInputStream in) throws IOException, ClassNotFoundException { Class[] result = new Class[in.readShort()]; for (int i=0; i < result.length; i++) { if (!in.readBoolean()) { result[i] = (Class) in.readObject(); continue; } result[i] = primitives[in.readByte()]; } return result; } } carmetal-4.3/src/org/mozilla/javascript/NativeArray.java000066400000000000000000001740721417122252700234510ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Mike McCabe * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.Arrays; /** * This class implements the Array native object. * @author Norris Boyd * @author Mike McCabe */ public class NativeArray extends IdScriptableObject { static final long serialVersionUID = 7331366857676127338L; /* * Optimization possibilities and open issues: * - Long vs. double schizophrenia. I suspect it might be better * to use double throughout. * * - Functions that need a new Array call "new Array" in the * current scope rather than using a hardwired constructor; * "Array" could be redefined. It turns out that js calls the * equivalent of "new Array" in the current scope, except that it * always gets at least an object back, even when Array == null. */ private static final Object ARRAY_TAG = "Array"; private static final Integer NEGATIVE_ONE = new Integer(-1); static void init(Scriptable scope, boolean sealed) { NativeArray obj = new NativeArray(0); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } static int getMaximumInitialCapacity() { return maximumInitialCapacity; } static void setMaximumInitialCapacity(int maximumInitialCapacity) { NativeArray.maximumInitialCapacity = maximumInitialCapacity; } public NativeArray(long lengthArg) { denseOnly = lengthArg <= maximumInitialCapacity; if (denseOnly) { int intLength = (int) lengthArg; if (intLength < DEFAULT_INITIAL_CAPACITY) intLength = DEFAULT_INITIAL_CAPACITY; dense = new Object[intLength]; Arrays.fill(dense, Scriptable.NOT_FOUND); } length = lengthArg; } public NativeArray(Object[] array) { denseOnly = true; dense = array; length = array.length; } @Override public String getClassName() { return "Array"; } private static final int Id_length = 1, MAX_INSTANCE_ID = 1; @Override protected int getMaxInstanceId() { return MAX_INSTANCE_ID; } @Override protected int findInstanceIdInfo(String s) { if (s.equals("length")) { return instanceIdInfo(DONTENUM | PERMANENT, Id_length); } return super.findInstanceIdInfo(s); } @Override protected String getInstanceIdName(int id) { if (id == Id_length) { return "length"; } return super.getInstanceIdName(id); } @Override protected Object getInstanceIdValue(int id) { if (id == Id_length) { return ScriptRuntime.wrapNumber(length); } return super.getInstanceIdValue(id); } @Override protected void setInstanceIdValue(int id, Object value) { if (id == Id_length) { setLength(value); return; } super.setInstanceIdValue(id, value); } @Override protected void fillConstructorProperties(IdFunctionObject ctor) { addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_join, "join", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_reverse, "reverse", 1); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_sort, "sort", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_push, "push", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_pop, "pop", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_shift, "shift", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_unshift, "unshift", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_splice, "splice", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_concat, "concat", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_slice, "slice", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_indexOf, "indexOf", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_lastIndexOf, "lastIndexOf", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_every, "every", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_filter, "filter", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_forEach, "forEach", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_map, "map", 2); addIdFunctionProperty(ctor, ARRAY_TAG, ConstructorId_some, "some", 2); super.fillConstructorProperties(ctor); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_toLocaleString: arity=1; s="toLocaleString"; break; case Id_toSource: arity=0; s="toSource"; break; case Id_join: arity=1; s="join"; break; case Id_reverse: arity=0; s="reverse"; break; case Id_sort: arity=1; s="sort"; break; case Id_push: arity=1; s="push"; break; case Id_pop: arity=1; s="pop"; break; case Id_shift: arity=1; s="shift"; break; case Id_unshift: arity=1; s="unshift"; break; case Id_splice: arity=1; s="splice"; break; case Id_concat: arity=1; s="concat"; break; case Id_slice: arity=1; s="slice"; break; case Id_indexOf: arity=1; s="indexOf"; break; case Id_lastIndexOf: arity=1; s="lastIndexOf"; break; case Id_every: arity=1; s="every"; break; case Id_filter: arity=1; s="filter"; break; case Id_forEach: arity=1; s="forEach"; break; case Id_map: arity=1; s="map"; break; case Id_some: arity=1; s="some"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(ARRAY_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(ARRAY_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); again: for (;;) { switch (id) { case ConstructorId_join: case ConstructorId_reverse: case ConstructorId_sort: case ConstructorId_push: case ConstructorId_pop: case ConstructorId_shift: case ConstructorId_unshift: case ConstructorId_splice: case ConstructorId_concat: case ConstructorId_slice: case ConstructorId_indexOf: case ConstructorId_lastIndexOf: case ConstructorId_every: case ConstructorId_filter: case ConstructorId_forEach: case ConstructorId_map: case ConstructorId_some: { thisObj = ScriptRuntime.toObject(scope, args[0]); Object[] newArgs = new Object[args.length-1]; for (int i=0; i < newArgs.length; i++) newArgs[i] = args[i+1]; args = newArgs; id = -id; continue again; } case Id_constructor: { boolean inNewExpr = (thisObj == null); if (!inNewExpr) { // IdFunctionObject.construct will set up parent, proto return f.construct(cx, scope, args); } return jsConstructor(cx, scope, args); } case Id_toString: return toStringHelper(cx, scope, thisObj, cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE), false); case Id_toLocaleString: return toStringHelper(cx, scope, thisObj, false, true); case Id_toSource: return toStringHelper(cx, scope, thisObj, true, false); case Id_join: return js_join(cx, thisObj, args); case Id_reverse: return js_reverse(cx, thisObj, args); case Id_sort: return js_sort(cx, scope, thisObj, args); case Id_push: return js_push(cx, thisObj, args); case Id_pop: return js_pop(cx, thisObj, args); case Id_shift: return js_shift(cx, thisObj, args); case Id_unshift: return js_unshift(cx, thisObj, args); case Id_splice: return js_splice(cx, scope, thisObj, args); case Id_concat: return js_concat(cx, scope, thisObj, args); case Id_slice: return js_slice(cx, thisObj, args); case Id_indexOf: return indexOfHelper(cx, thisObj, args, false); case Id_lastIndexOf: return indexOfHelper(cx, thisObj, args, true); case Id_every: case Id_filter: case Id_forEach: case Id_map: case Id_some: return iterativeMethod(cx, id, scope, thisObj, args); } throw new IllegalArgumentException(String.valueOf(id)); } } @Override public Object get(int index, Scriptable start) { if (!denseOnly && isGetterOrSetter(null, index, false)) return super.get(index, start); if (dense != null && 0 <= index && index < dense.length) return dense[index]; return super.get(index, start); } @Override public boolean has(int index, Scriptable start) { if (!denseOnly && isGetterOrSetter(null, index, false)) return super.has(index, start); if (dense != null && 0 <= index && index < dense.length) return dense[index] != NOT_FOUND; return super.has(index, start); } // if id is an array index (ECMA 15.4.0), return the number, // otherwise return -1L private static long toArrayIndex(String id) { double d = ScriptRuntime.toNumber(id); if (d == d) { long index = ScriptRuntime.toUint32(d); if (index == d && index != 4294967295L) { // Assume that ScriptRuntime.toString(index) is the same // as java.lang.Long.toString(index) for long if (Long.toString(index).equals(id)) { return index; } } } return -1; } @Override public void put(String id, Scriptable start, Object value) { super.put(id, start, value); if (start == this) { // If the object is sealed, super will throw exception long index = toArrayIndex(id); if (index >= length) { length = index + 1; denseOnly = false; } } } private boolean ensureCapacity(int capacity) { if (capacity > dense.length) { if (capacity > MAX_PRE_GROW_SIZE) { denseOnly = false; return false; } capacity = Math.max(capacity, (int)(dense.length * GROW_FACTOR)); Object[] newDense = new Object[capacity]; System.arraycopy(dense, 0, newDense, 0, dense.length); Arrays.fill(newDense, dense.length, newDense.length, Scriptable.NOT_FOUND); dense = newDense; } return true; } @Override public void put(int index, Scriptable start, Object value) { if (start == this && !isSealed() && dense != null && 0 <= index && (denseOnly || !isGetterOrSetter(null, index, true))) { if (index < dense.length) { dense[index] = value; if (this.length <= index) this.length = (long)index + 1; return; } else if (denseOnly && index < dense.length * GROW_FACTOR && ensureCapacity(index+1)) { dense[index] = value; this.length = (long)index + 1; return; } else { denseOnly = false; } } super.put(index, start, value); if (start == this) { // only set the array length if given an array index (ECMA 15.4.0) if (this.length <= index) { // avoid overflowing index! this.length = (long)index + 1; } } } @Override public void delete(int index) { if (dense != null && 0 <= index && index < dense.length && !isSealed() && (denseOnly || !isGetterOrSetter(null, index, true))) { dense[index] = NOT_FOUND; } else { super.delete(index); } } @Override public Object[] getIds() { Object[] superIds = super.getIds(); if (dense == null) { return superIds; } int N = dense.length; long currentLength = length; if (N > currentLength) { N = (int)currentLength; } if (N == 0) { return superIds; } int superLength = superIds.length; Object[] ids = new Object[N + superLength]; int presentCount = 0; for (int i = 0; i != N; ++i) { // Replace existing elements by their indexes if (dense[i] != NOT_FOUND) { ids[presentCount] = new Integer(i); ++presentCount; } } if (presentCount != N) { // dense contains deleted elems, need to shrink the result Object[] tmp = new Object[presentCount + superLength]; System.arraycopy(ids, 0, tmp, 0, presentCount); ids = tmp; } System.arraycopy(superIds, 0, ids, presentCount, superLength); return ids; } @Override public Object getDefaultValue(Class hint) { if (hint == ScriptRuntime.NumberClass) { Context cx = Context.getContext(); if (cx.getLanguageVersion() == Context.VERSION_1_2) return new Long(length); } return super.getDefaultValue(hint); } /** * See ECMA 15.4.1,2 */ private static Object jsConstructor(Context cx, Scriptable scope, Object[] args) { if (args.length == 0) return new NativeArray(0); // Only use 1 arg as first element for version 1.2; for // any other version (including 1.3) follow ECMA and use it as // a length. if (cx.getLanguageVersion() == Context.VERSION_1_2) { return new NativeArray(args); } else { Object arg0 = args[0]; if (args.length > 1 || !(arg0 instanceof Number)) { return new NativeArray(args); } else { long len = ScriptRuntime.toUint32(arg0); if (len != ((Number)arg0).doubleValue()) throw Context.reportRuntimeError0("msg.arraylength.bad"); return new NativeArray(len); } } } public long getLength() { return length; } /** @deprecated Use {@link #getLength()} instead. */ public long jsGet_length() { return getLength(); } /** * Change the value of the internal flag that determines whether all * storage is handed by a dense backing array rather than an associative * store. * @param denseOnly new value for denseOnly flag * @throws IllegalArgumentException if an attempt is made to enable * denseOnly after it was disabled; NativeArray code is not written * to handle switching back to a dense representation */ void setDenseOnly(boolean denseOnly) { if (denseOnly && !this.denseOnly) throw new IllegalArgumentException(); this.denseOnly = denseOnly; } private void setLength(Object val) { /* XXX do we satisfy this? * 15.4.5.1 [[Put]](P, V): * 1. Call the [[CanPut]] method of A with name P. * 2. If Result(1) is false, return. * ? */ double d = ScriptRuntime.toNumber(val); long longVal = ScriptRuntime.toUint32(d); if (longVal != d) throw Context.reportRuntimeError0("msg.arraylength.bad"); if (denseOnly) { if (longVal < length) { // downcast okay because denseOnly Arrays.fill(dense, (int) longVal, dense.length, NOT_FOUND); length = longVal; return; } else if (longVal < MAX_PRE_GROW_SIZE && longVal < (length * GROW_FACTOR) && ensureCapacity((int)longVal)) { length = longVal; return; } else { denseOnly = false; } } if (longVal < length) { // remove all properties between longVal and length if (length - longVal > 0x1000) { // assume that the representation is sparse Object[] e = getIds(); // will only find in object itself for (int i=0; i < e.length; i++) { Object id = e[i]; if (id instanceof String) { // > MAXINT will appear as string String strId = (String)id; long index = toArrayIndex(strId); if (index >= longVal) delete(strId); } else { int index = ((Integer)id).intValue(); if (index >= longVal) delete(index); } } } else { // assume a dense representation for (long i = longVal; i < length; i++) { deleteElem(this, i); } } } length = longVal; } /* Support for generic Array-ish objects. Most of the Array * functions try to be generic; anything that has a length * property is assumed to be an array. * getLengthProperty returns 0 if obj does not have the length property * or its value is not convertible to a number. */ static long getLengthProperty(Context cx, Scriptable obj) { // These will both give numeric lengths within Uint32 range. if (obj instanceof NativeString) { return ((NativeString)obj).getLength(); } else if (obj instanceof NativeArray) { return ((NativeArray)obj).getLength(); } return ScriptRuntime.toUint32( ScriptRuntime.getObjectProp(obj, "length", cx)); } private static Object setLengthProperty(Context cx, Scriptable target, long length) { return ScriptRuntime.setObjectProp( target, "length", ScriptRuntime.wrapNumber(length), cx); } /* Utility functions to encapsulate index > Integer.MAX_VALUE * handling. Also avoids unnecessary object creation that would * be necessary to use the general ScriptRuntime.get/setElem * functions... though this is probably premature optimization. */ private static void deleteElem(Scriptable target, long index) { int i = (int)index; if (i == index) { target.delete(i); } else { target.delete(Long.toString(index)); } } private static Object getElem(Context cx, Scriptable target, long index) { if (index > Integer.MAX_VALUE) { String id = Long.toString(index); return ScriptRuntime.getObjectProp(target, id, cx); } else { return ScriptRuntime.getObjectIndex(target, (int)index, cx); } } private static void setElem(Context cx, Scriptable target, long index, Object value) { if (index > Integer.MAX_VALUE) { String id = Long.toString(index); ScriptRuntime.setObjectProp(target, id, value, cx); } else { ScriptRuntime.setObjectIndex(target, (int)index, value, cx); } } private static String toStringHelper(Context cx, Scriptable scope, Scriptable thisObj, boolean toSource, boolean toLocale) { /* It's probably redundant to handle long lengths in this * function; StringBuilders are limited to 2^31 in java. */ long length = getLengthProperty(cx, thisObj); StringBuilder result = new StringBuilder(256); // whether to return '4,unquoted,5' or '[4, "quoted", 5]' String separator; if (toSource) { result.append('['); separator = ", "; } else { separator = ","; } boolean haslast = false; long i = 0; boolean toplevel, iterating; if (cx.iterating == null) { toplevel = true; iterating = false; cx.iterating = new ObjToIntMap(31); } else { toplevel = false; iterating = cx.iterating.has(thisObj); } // Make sure cx.iterating is set to null when done // so we don't leak memory try { if (!iterating) { cx.iterating.put(thisObj, 0); // stop recursion. for (i = 0; i < length; i++) { if (i > 0) result.append(separator); Object elem = getElem(cx, thisObj, i); if (elem == null || elem == Undefined.instance) { haslast = false; continue; } haslast = true; if (toSource) { result.append(ScriptRuntime.uneval(cx, scope, elem)); } else if (elem instanceof String) { String s = (String)elem; if (toSource) { result.append('\"'); result.append(ScriptRuntime.escapeString(s)); result.append('\"'); } else { result.append(s); } } else { if (toLocale) { Callable fun; Scriptable funThis; fun = ScriptRuntime.getPropFunctionAndThis( elem, "toLocaleString", cx); funThis = ScriptRuntime.lastStoredScriptable(cx); elem = fun.call(cx, scope, funThis, ScriptRuntime.emptyArgs); } result.append(ScriptRuntime.toString(elem)); } } } } finally { if (toplevel) { cx.iterating = null; } } if (toSource) { //for [,,].length behavior; we want toString to be symmetric. if (!haslast && i > 0) result.append(", ]"); else result.append(']'); } return result.toString(); } /** * See ECMA 15.4.4.3 */ private static String js_join(Context cx, Scriptable thisObj, Object[] args) { long llength = getLengthProperty(cx, thisObj); int length = (int)llength; if (llength != length) { throw Context.reportRuntimeError1( "msg.arraylength.too.big", String.valueOf(llength)); } // if no args, use "," as separator String separator = (args.length < 1 || args[0] == Undefined.instance) ? "," : ScriptRuntime.toString(args[0]); if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < length; i++) { if (i != 0) { sb.append(separator); } if (i < na.dense.length) { Object temp = na.dense[i]; if (temp != null && temp != Undefined.instance && temp != Scriptable.NOT_FOUND) { sb.append(ScriptRuntime.toString(temp)); } } } return sb.toString(); } } if (length == 0) { return ""; } String[] buf = new String[length]; int total_size = 0; for (int i = 0; i != length; i++) { Object temp = getElem(cx, thisObj, i); if (temp != null && temp != Undefined.instance) { String str = ScriptRuntime.toString(temp); total_size += str.length(); buf[i] = str; } } total_size += (length - 1) * separator.length(); StringBuilder sb = new StringBuilder(total_size); for (int i = 0; i != length; i++) { if (i != 0) { sb.append(separator); } String str = buf[i]; if (str != null) { // str == null for undefined or null sb.append(str); } } return sb.toString(); } /** * See ECMA 15.4.4.4 */ private static Scriptable js_reverse(Context cx, Scriptable thisObj, Object[] args) { if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly) { for (int i=0, j=((int)na.length)-1; i < j; i++,j--) { Object temp = na.dense[i]; na.dense[i] = na.dense[j]; na.dense[j] = temp; } return thisObj; } } long len = getLengthProperty(cx, thisObj); long half = len / 2; for(long i=0; i < half; i++) { long j = len - i - 1; Object temp1 = getElem(cx, thisObj, i); Object temp2 = getElem(cx, thisObj, j); setElem(cx, thisObj, i, temp2); setElem(cx, thisObj, j, temp1); } return thisObj; } /** * See ECMA 15.4.4.5 */ private static Scriptable js_sort(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { long length = getLengthProperty(cx, thisObj); if (length <= 1) { return thisObj; } Object compare; Object[] cmpBuf; if (args.length > 0 && Undefined.instance != args[0]) { // sort with given compare function compare = args[0]; cmpBuf = new Object[2]; // Buffer for cmp arguments } else { // sort with default compare compare = null; cmpBuf = null; } if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly) { int ilength = (int) length; heapsort(cx, scope, na.dense, ilength, compare, cmpBuf); return thisObj; } } // Should we use the extended sort function, or the faster one? if (length >= Integer.MAX_VALUE) { heapsort_extended(cx, scope, thisObj, length, compare, cmpBuf); } else { int ilength = (int)length; // copy the JS array into a working array, so it can be // sorted cheaply. Object[] working = new Object[ilength]; for (int i = 0; i != ilength; ++i) { working[i] = getElem(cx, thisObj, i); } heapsort(cx, scope, working, ilength, compare, cmpBuf); // copy the working array back into thisObj for (int i = 0; i != ilength; ++i) { setElem(cx, thisObj, i, working[i]); } } return thisObj; } // Return true only if x > y private static boolean isBigger(Context cx, Scriptable scope, Object x, Object y, Object cmp, Object[] cmpBuf) { if (cmp == null) { if (cmpBuf != null) Kit.codeBug(); } else { if (cmpBuf == null || cmpBuf.length != 2) Kit.codeBug(); } Object undef = Undefined.instance; Object notfound = Scriptable.NOT_FOUND; // sort undefined to end if (y == undef || y == notfound) { return false; // x can not be bigger then undef } else if (x == undef || x == notfound) { return true; // y != undef here, so x > y } if (cmp == null) { // if no cmp function supplied, sort lexicographically String a = ScriptRuntime.toString(x); String b = ScriptRuntime.toString(y); return a.compareTo(b) > 0; } else { // assemble args and call supplied JS cmp function cmpBuf[0] = x; cmpBuf[1] = y; Callable fun = ScriptRuntime.getValueFunctionAndThis(cmp, cx); Scriptable funThis = ScriptRuntime.lastStoredScriptable(cx); Object ret = fun.call(cx, scope, funThis, cmpBuf); double d = ScriptRuntime.toNumber(ret); // XXX what to do when cmp function returns NaN? ECMA states // that it's then not a 'consistent comparison function'... but // then what do we do? Back out and start over with the generic // cmp function when we see a NaN? Throw an error? // for now, just ignore it: return d > 0; } } /** Heapsort implementation. * See "Introduction to Algorithms" by Cormen, Leiserson, Rivest for details. * Adjusted for zero based indexes. */ private static void heapsort(Context cx, Scriptable scope, Object[] array, int length, Object cmp, Object[] cmpBuf) { if (length <= 1) Kit.codeBug(); // Build heap for (int i = length / 2; i != 0;) { --i; Object pivot = array[i]; heapify(cx, scope, pivot, array, i, length, cmp, cmpBuf); } // Sort heap for (int i = length; i != 1;) { --i; Object pivot = array[i]; array[i] = array[0]; heapify(cx, scope, pivot, array, 0, i, cmp, cmpBuf); } } /** pivot and child heaps of i should be made into heap starting at i, * original array[i] is never used to have less array access during sorting. */ private static void heapify(Context cx, Scriptable scope, Object pivot, Object[] array, int i, int end, Object cmp, Object[] cmpBuf) { for (;;) { int child = i * 2 + 1; if (child >= end) { break; } Object childVal = array[child]; if (child + 1 < end) { Object nextVal = array[child + 1]; if (isBigger(cx, scope, nextVal, childVal, cmp, cmpBuf)) { ++child; childVal = nextVal; } } if (!isBigger(cx, scope, childVal, pivot, cmp, cmpBuf)) { break; } array[i] = childVal; i = child; } array[i] = pivot; } /** Version of heapsort that call getElem/setElem on target to query/assign * array elements instead of Java array access */ private static void heapsort_extended(Context cx, Scriptable scope, Scriptable target, long length, Object cmp, Object[] cmpBuf) { if (length <= 1) Kit.codeBug(); // Build heap for (long i = length / 2; i != 0;) { --i; Object pivot = getElem(cx, target, i); heapify_extended(cx, scope, pivot, target, i, length, cmp, cmpBuf); } // Sort heap for (long i = length; i != 1;) { --i; Object pivot = getElem(cx, target, i); setElem(cx, target, i, getElem(cx, target, 0)); heapify_extended(cx, scope, pivot, target, 0, i, cmp, cmpBuf); } } private static void heapify_extended(Context cx, Scriptable scope, Object pivot, Scriptable target, long i, long end, Object cmp, Object[] cmpBuf) { for (;;) { long child = i * 2 + 1; if (child >= end) { break; } Object childVal = getElem(cx, target, child); if (child + 1 < end) { Object nextVal = getElem(cx, target, child + 1); if (isBigger(cx, scope, nextVal, childVal, cmp, cmpBuf)) { ++child; childVal = nextVal; } } if (!isBigger(cx, scope, childVal, pivot, cmp, cmpBuf)) { break; } setElem(cx, target, i, childVal); i = child; } setElem(cx, target, i, pivot); } /** * Non-ECMA methods. */ private static Object js_push(Context cx, Scriptable thisObj, Object[] args) { if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly && na.ensureCapacity((int) na.length + args.length)) { for (int i = 0; i < args.length; i++) { na.dense[(int)na.length++] = args[i]; } return ScriptRuntime.wrapNumber(na.length); } } long length = getLengthProperty(cx, thisObj); for (int i = 0; i < args.length; i++) { setElem(cx, thisObj, length + i, args[i]); } length += args.length; Object lengthObj = setLengthProperty(cx, thisObj, length); /* * If JS1.2, follow Perl4 by returning the last thing pushed. * Otherwise, return the new array length. */ if (cx.getLanguageVersion() == Context.VERSION_1_2) // if JS1.2 && no arguments, return undefined. return args.length == 0 ? Undefined.instance : args[args.length - 1]; else return lengthObj; } private static Object js_pop(Context cx, Scriptable thisObj, Object[] args) { Object result; if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly && na.length > 0) { na.length--; result = na.dense[(int)na.length]; na.dense[(int)na.length] = NOT_FOUND; return result; } } long length = getLengthProperty(cx, thisObj); if (length > 0) { length--; // Get the to-be-deleted property's value. result = getElem(cx, thisObj, length); // We don't need to delete the last property, because // setLength does that for us. } else { result = Undefined.instance; } // necessary to match js even when length < 0; js pop will give a // length property to any target it is called on. setLengthProperty(cx, thisObj, length); return result; } private static Object js_shift(Context cx, Scriptable thisObj, Object[] args) { if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly && na.length > 0) { na.length--; Object result = na.dense[0]; System.arraycopy(na.dense, 1, na.dense, 0, (int)na.length); na.dense[(int)na.length] = NOT_FOUND; return result; } } Object result; long length = getLengthProperty(cx, thisObj); if (length > 0) { long i = 0; length--; // Get the to-be-deleted property's value. result = getElem(cx, thisObj, i); /* * Slide down the array above the first element. Leave i * set to point to the last element. */ if (length > 0) { for (i = 1; i <= length; i++) { Object temp = getElem(cx, thisObj, i); setElem(cx, thisObj, i - 1, temp); } } // We don't need to delete the last property, because // setLength does that for us. } else { result = Undefined.instance; } setLengthProperty(cx, thisObj, length); return result; } private static Object js_unshift(Context cx, Scriptable thisObj, Object[] args) { if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly && na.ensureCapacity((int)na.length + args.length)) { System.arraycopy(na.dense, 0, na.dense, args.length, (int) na.length); for (int i = 0; i < args.length; i++) { na.dense[i] = args[i]; } na.length += args.length; return ScriptRuntime.wrapNumber(na.length); } } long length = getLengthProperty(cx, thisObj); int argc = args.length; if (args.length > 0) { /* Slide up the array to make room for args at the bottom */ if (length > 0) { for (long last = length - 1; last >= 0; last--) { Object temp = getElem(cx, thisObj, last); setElem(cx, thisObj, last + argc, temp); } } /* Copy from argv to the bottom of the array. */ for (int i = 0; i < args.length; i++) { setElem(cx, thisObj, i, args[i]); } /* Follow Perl by returning the new array length. */ length += args.length; return setLengthProperty(cx, thisObj, length); } return ScriptRuntime.wrapNumber(length); } private static Object js_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { NativeArray na = null; boolean denseMode = false; if (thisObj instanceof NativeArray) { na = (NativeArray) thisObj; denseMode = na.denseOnly; } /* create an empty Array to return. */ scope = getTopLevelScope(scope); int argc = args.length; if (argc == 0) return ScriptRuntime.newObject(cx, scope, "Array", null); long length = getLengthProperty(cx, thisObj); /* Convert the first argument into a starting index. */ long begin = toSliceIndex(ScriptRuntime.toInteger(args[0]), length); argc--; /* Convert the second argument into count */ long count; if (args.length == 1) { count = length - begin; } else { double dcount = ScriptRuntime.toInteger(args[1]); if (dcount < 0) { count = 0; } else if (dcount > (length - begin)) { count = length - begin; } else { count = (long)dcount; } argc--; } long end = begin + count; /* If there are elements to remove, put them into the return value. */ Object result; if (count != 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(cx, thisObj, begin); } else { if (denseMode) { int intLen = (int) (end - begin); Object[] copy = new Object[intLen]; System.arraycopy(na.dense, (int) begin, copy, 0, intLen); result = cx.newArray(scope, copy); } else { Scriptable resultArray = ScriptRuntime.newObject(cx, scope, "Array", null); for (long last = begin; last != end; last++) { Object temp = getElem(cx, thisObj, last); setElem(cx, resultArray, last - begin, temp); } result = resultArray; } } } else { // (count == 0) if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Undefined.instance; } else { result = ScriptRuntime.newObject(cx, scope, "Array", null); } } /* Find the direction (up or down) to copy and make way for argv. */ long delta = argc - count; if (denseMode && length + delta < Integer.MAX_VALUE && na.ensureCapacity((int) (length + delta))) { System.arraycopy(na.dense, (int) end, na.dense, (int) (begin + argc), (int) (length - end)); if (argc > 0) { System.arraycopy(args, 2, na.dense, (int) begin, argc); } if (delta < 0) { Arrays.fill(na.dense, (int) (length + delta), (int) length, NOT_FOUND); } na.length = length + delta; return result; } if (delta > 0) { for (long last = length - 1; last >= end; last--) { Object temp = getElem(cx, thisObj, last); setElem(cx, thisObj, last + delta, temp); } } else if (delta < 0) { for (long last = end; last < length; last++) { Object temp = getElem(cx, thisObj, last); setElem(cx, thisObj, last + delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(cx, thisObj, begin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ setLengthProperty(cx, thisObj, length + delta); return result; } /* * See Ecma 262v3 15.4.4.4 */ private static Scriptable js_concat(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { // create an empty Array to return. scope = getTopLevelScope(scope); Function ctor = ScriptRuntime.getExistingCtor(cx, scope, "Array"); Scriptable result = ctor.construct(cx, scope, ScriptRuntime.emptyArgs); if (thisObj instanceof NativeArray && result instanceof NativeArray) { NativeArray denseThis = (NativeArray) thisObj; NativeArray denseResult = (NativeArray) result; if (denseThis.denseOnly && denseResult.denseOnly) { // First calculate length of resulting array boolean canUseDense = true; int length = (int) denseThis.length; for (int i = 0; i < args.length && canUseDense; i++) { if (args[i] instanceof NativeArray) { // only try to use dense approach for Array-like // objects that are actually NativeArrays final NativeArray arg = (NativeArray) args[i]; canUseDense = arg.denseOnly; length += arg.length; } else { length++; } } if (canUseDense && denseResult.ensureCapacity(length)) { System.arraycopy(denseThis.dense, 0, denseResult.dense, 0, (int) denseThis.length); int cursor = (int) denseThis.length; for (int i = 0; i < args.length && canUseDense; i++) { if (args[i] instanceof NativeArray) { NativeArray arg = (NativeArray) args[i]; System.arraycopy(arg.dense, 0, denseResult.dense, cursor, (int)arg.length); cursor += (int)arg.length; } else { denseResult.dense[cursor++] = args[i]; } } denseResult.length = length; return result; } } } long length; long slot = 0; /* Put the target in the result array; only add it as an array * if it looks like one. */ if (ScriptRuntime.instanceOf(thisObj, ctor, cx)) { length = getLengthProperty(cx, thisObj); // Copy from the target object into the result for (slot = 0; slot < length; slot++) { Object temp = getElem(cx, thisObj, slot); setElem(cx, result, slot, temp); } } else { setElem(cx, result, slot++, thisObj); } /* Copy from the arguments into the result. If any argument * has a numeric length property, treat it as an array and add * elements separately; otherwise, just copy the argument. */ for (int i = 0; i < args.length; i++) { if (ScriptRuntime.instanceOf(args[i], ctor, cx)) { // ScriptRuntime.instanceOf => instanceof Scriptable Scriptable arg = (Scriptable)args[i]; length = getLengthProperty(cx, arg); for (long j = 0; j < length; j++, slot++) { Object temp = getElem(cx, arg, j); setElem(cx, result, slot, temp); } } else { setElem(cx, result, slot++, args[i]); } } return result; } private Scriptable js_slice(Context cx, Scriptable thisObj, Object[] args) { Scriptable scope = getTopLevelScope(this); Scriptable result = ScriptRuntime.newObject(cx, scope, "Array", null); long length = getLengthProperty(cx, thisObj); long begin, end; if (args.length == 0) { begin = 0; end = length; } else { begin = toSliceIndex(ScriptRuntime.toInteger(args[0]), length); if (args.length == 1) { end = length; } else { end = toSliceIndex(ScriptRuntime.toInteger(args[1]), length); } } for (long slot = begin; slot < end; slot++) { Object temp = getElem(cx, thisObj, slot); setElem(cx, result, slot - begin, temp); } return result; } private static long toSliceIndex(double value, long length) { long result; if (value < 0.0) { if (value + length < 0.0) { result = 0; } else { result = (long)(value + length); } } else if (value > length) { result = length; } else { result = (long)value; } return result; } /** * Implements the methods "indexOf" and "lastIndexOf". */ private Object indexOfHelper(Context cx, Scriptable thisObj, Object[] args, boolean isLast) { Object compareTo = args.length > 0 ? args[0] : Undefined.instance; long length = getLengthProperty(cx, thisObj); long start; if (isLast) { // lastIndexOf /* * From http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:lastIndexOf * The index at which to start searching backwards. Defaults to the * array's length, i.e. the whole array will be searched. If the * index is greater than or equal to the length of the array, the * whole array will be searched. If negative, it is taken as the * offset from the end of the array. Note that even when the index * is negative, the array is still searched from back to front. If * the calculated index is less than 0, -1 is returned, i.e. the * array will not be searched. */ if (args.length < 2) { // default start = length-1; } else { start = ScriptRuntime.toInt32(ScriptRuntime.toNumber(args[1])); if (start >= length) start = length-1; else if (start < 0) start += length; // Note that start may be negative, but that's okay // as the result of -1 will fall out from the code below } } else { // indexOf /* * From http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:indexOf * The index at which to begin the search. Defaults to 0, i.e. the * whole array will be searched. If the index is greater than or * equal to the length of the array, -1 is returned, i.e. the array * will not be searched. If negative, it is taken as the offset from * the end of the array. Note that even when the index is negative, * the array is still searched from front to back. If the calculated * index is less than 0, the whole array will be searched. */ if (args.length < 2) { // default start = 0; } else { start = ScriptRuntime.toInt32(ScriptRuntime.toNumber(args[1])); if (start < 0) { start += length; if (start < 0) start = 0; } // Note that start may be > length-1, but that's okay // as the result of -1 will fall out from the code below } } if (thisObj instanceof NativeArray) { NativeArray na = (NativeArray) thisObj; if (na.denseOnly) { if (isLast) { for (int i=(int)start; i >= 0; i--) { if (na.dense[i] != Scriptable.NOT_FOUND && ScriptRuntime.shallowEq(na.dense[i], compareTo)) { return new Long(i); } } } else { for (int i=(int)start; i < length; i++) { if (na.dense[i] != Scriptable.NOT_FOUND && ScriptRuntime.shallowEq(na.dense[i], compareTo)) { return new Long(i); } } } return NEGATIVE_ONE; } } if (isLast) { for (long i=start; i >= 0; i--) { if (ScriptRuntime.shallowEq(getElem(cx, thisObj, i), compareTo)) { return new Long(i); } } } else { for (long i=start; i < length; i++) { if (ScriptRuntime.shallowEq(getElem(cx, thisObj, i), compareTo)) { return new Long(i); } } } return NEGATIVE_ONE; } /** * Implements the methods "every", "filter", "forEach", "map", and "some". */ private Object iterativeMethod(Context cx, int id, Scriptable scope, Scriptable thisObj, Object[] args) { Object callbackArg = args.length > 0 ? args[0] : Undefined.instance; if (callbackArg == null || !(callbackArg instanceof Function)) { throw ScriptRuntime.notFunctionError( ScriptRuntime.toString(callbackArg)); } Function f = (Function) callbackArg; Scriptable parent = ScriptableObject.getTopLevelScope(f); Scriptable thisArg; if (args.length < 2 || args[1] == null || args[1] == Undefined.instance) { thisArg = parent; } else { thisArg = ScriptRuntime.toObject(cx, scope, args[1]); } long length = getLengthProperty(cx, thisObj); Scriptable array = ScriptRuntime.newObject(cx, scope, "Array", null); long j=0; for (long i=0; i < length; i++) { Object[] innerArgs = new Object[3]; Object elem = (i > Integer.MAX_VALUE) ? ScriptableObject.getProperty(thisObj, Long.toString(i)) : ScriptableObject.getProperty(thisObj, (int)i); if (elem == Scriptable.NOT_FOUND) { continue; } innerArgs[0] = elem; innerArgs[1] = new Long(i); innerArgs[2] = thisObj; Object result = f.call(cx, parent, thisArg, innerArgs); switch (id) { case Id_every: if (!ScriptRuntime.toBoolean(result)) return Boolean.FALSE; break; case Id_filter: if (ScriptRuntime.toBoolean(result)) setElem(cx, array, j++, innerArgs[0]); break; case Id_forEach: break; case Id_map: setElem(cx, array, i, result); break; case Id_some: if (ScriptRuntime.toBoolean(result)) return Boolean.TRUE; break; } } switch (id) { case Id_every: return Boolean.TRUE; case Id_filter: case Id_map: return array; case Id_some: return Boolean.FALSE; case Id_forEach: default: return Undefined.instance; } } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2005-09-26 15:47:42 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 3: c=s.charAt(0); if (c=='m') { if (s.charAt(2)=='p' && s.charAt(1)=='a') {id=Id_map; break L0;} } else if (c=='p') { if (s.charAt(2)=='p' && s.charAt(1)=='o') {id=Id_pop; break L0;} } break L; case 4: switch (s.charAt(2)) { case 'i': X="join";id=Id_join; break L; case 'm': X="some";id=Id_some; break L; case 'r': X="sort";id=Id_sort; break L; case 's': X="push";id=Id_push; break L; } break L; case 5: c=s.charAt(1); if (c=='h') { X="shift";id=Id_shift; } else if (c=='l') { X="slice";id=Id_slice; } else if (c=='v') { X="every";id=Id_every; } break L; case 6: c=s.charAt(0); if (c=='c') { X="concat";id=Id_concat; } else if (c=='f') { X="filter";id=Id_filter; } else if (c=='s') { X="splice";id=Id_splice; } break L; case 7: switch (s.charAt(0)) { case 'f': X="forEach";id=Id_forEach; break L; case 'i': X="indexOf";id=Id_indexOf; break L; case 'r': X="reverse";id=Id_reverse; break L; case 'u': X="unshift";id=Id_unshift; break L; } break L; case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L; case 11: c=s.charAt(0); if (c=='c') { X="constructor";id=Id_constructor; } else if (c=='l') { X="lastIndexOf";id=Id_lastIndexOf; } break L; case 14: X="toLocaleString";id=Id_toLocaleString; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toLocaleString = 3, Id_toSource = 4, Id_join = 5, Id_reverse = 6, Id_sort = 7, Id_push = 8, Id_pop = 9, Id_shift = 10, Id_unshift = 11, Id_splice = 12, Id_concat = 13, Id_slice = 14, Id_indexOf = 15, Id_lastIndexOf = 16, Id_every = 17, Id_filter = 18, Id_forEach = 19, Id_map = 20, Id_some = 21, MAX_PROTOTYPE_ID = 21; // #/string_id_map# private static final int ConstructorId_join = -Id_join, ConstructorId_reverse = -Id_reverse, ConstructorId_sort = -Id_sort, ConstructorId_push = -Id_push, ConstructorId_pop = -Id_pop, ConstructorId_shift = -Id_shift, ConstructorId_unshift = -Id_unshift, ConstructorId_splice = -Id_splice, ConstructorId_concat = -Id_concat, ConstructorId_slice = -Id_slice, ConstructorId_indexOf = -Id_indexOf, ConstructorId_lastIndexOf = -Id_lastIndexOf, ConstructorId_every = -Id_every, ConstructorId_filter = -Id_filter, ConstructorId_forEach = -Id_forEach, ConstructorId_map = -Id_map, ConstructorId_some = -Id_some; /** * Internal representation of the JavaScript array's length property. */ private long length; /** * Fast storage for dense arrays. Sparse arrays will use the superclass's * hashtable storage scheme. */ private Object[] dense; /** * True if all numeric properties are stored in dense. */ private boolean denseOnly; /** * The maximum size of dense that will be allocated initially. */ private static int maximumInitialCapacity = 10000; /** * The default capacity for dense. */ private static final int DEFAULT_INITIAL_CAPACITY = 10; /** * The factor to grow dense by. */ private static final double GROW_FACTOR = 1.5; private static final int MAX_PRE_GROW_SIZE = (int)(Integer.MAX_VALUE / GROW_FACTOR); } carmetal-4.3/src/org/mozilla/javascript/NativeBoolean.java000066400000000000000000000131431417122252700237410ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the Boolean native object. * See ECMA 15.6. * @author Norris Boyd */ final class NativeBoolean extends IdScriptableObject { static final long serialVersionUID = -3716996899943880933L; private static final Object BOOLEAN_TAG = "Boolean"; static void init(Scriptable scope, boolean sealed) { NativeBoolean obj = new NativeBoolean(false); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } private NativeBoolean(boolean b) { booleanValue = b; } @Override public String getClassName() { return "Boolean"; } @Override public Object getDefaultValue(Class typeHint) { // This is actually non-ECMA, but will be proposed // as a change in round 2. if (typeHint == ScriptRuntime.BooleanClass) return ScriptRuntime.wrapBoolean(booleanValue); return super.getDefaultValue(typeHint); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_toSource: arity=0; s="toSource"; break; case Id_valueOf: arity=0; s="valueOf"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(BOOLEAN_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(BOOLEAN_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (id == Id_constructor) { boolean b; if (args.length == 0) { b = false; } else { b = args[0] instanceof ScriptableObject && ((ScriptableObject) args[0]).avoidObjectDetection() ? true : ScriptRuntime.toBoolean(args[0]); } if (thisObj == null) { // new Boolean(val) creates a new boolean object. return new NativeBoolean(b); } // Boolean(val) converts val to a boolean. return ScriptRuntime.wrapBoolean(b); } // The rest of Boolean.prototype methods require thisObj to be Boolean if (!(thisObj instanceof NativeBoolean)) throw incompatibleCallError(f); boolean value = ((NativeBoolean)thisObj).booleanValue; switch (id) { case Id_toString: return value ? "true" : "false"; case Id_toSource: return value ? "(new Boolean(true))" : "(new Boolean(false))"; case Id_valueOf: return ScriptRuntime.wrapBoolean(value); } throw new IllegalArgumentException(String.valueOf(id)); } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-05-09 08:15:31 EDT L0: { id = 0; String X = null; int c; int s_length = s.length(); if (s_length==7) { X="valueOf";id=Id_valueOf; } else if (s_length==8) { c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } } else if (s_length==11) { X="constructor";id=Id_constructor; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toSource = 3, Id_valueOf = 4, MAX_PROTOTYPE_ID = 4; // #/string_id_map# private boolean booleanValue; } carmetal-4.3/src/org/mozilla/javascript/NativeCall.java000066400000000000000000000121141417122252700232320ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Bob Jervis * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the activation object. * * See ECMA 10.1.6 * * @see org.mozilla.javascript.Arguments * @author Norris Boyd */ public final class NativeCall extends IdScriptableObject { static final long serialVersionUID = -7471457301304454454L; private static final Object CALL_TAG = "Call"; static void init(Scriptable scope, boolean sealed) { NativeCall obj = new NativeCall(); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } NativeCall() { } NativeCall(NativeFunction function, Scriptable scope, Object[] args) { this.function = function; setParentScope(scope); // leave prototype null this.originalArgs = (args == null) ? ScriptRuntime.emptyArgs : args; // initialize values of arguments int paramAndVarCount = function.getParamAndVarCount(); int paramCount = function.getParamCount(); if (paramAndVarCount != 0) { for (int i = 0; i < paramCount; ++i) { String name = function.getParamOrVarName(i); Object val = i < args.length ? args[i] : Undefined.instance; defineProperty(name, val, PERMANENT); } } // initialize "arguments" property but only if it was not overridden by // the parameter with the same name if (!super.has("arguments", this)) { defineProperty("arguments", new Arguments(this), PERMANENT); } if (paramAndVarCount != 0) { for (int i = paramCount; i < paramAndVarCount; ++i) { String name = function.getParamOrVarName(i); if (!super.has(name, this)) { if (function.getParamOrVarConst(i)) defineProperty(name, Undefined.instance, CONST); else defineProperty(name, Undefined.instance, PERMANENT); } } } } @Override public String getClassName() { return "Call"; } @Override protected int findPrototypeId(String s) { return s.equals("constructor") ? Id_constructor : 0; } @Override protected void initPrototypeId(int id) { String s; int arity; if (id == Id_constructor) { arity=1; s="constructor"; } else { throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(CALL_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(CALL_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (id == Id_constructor) { if (thisObj != null) { throw Context.reportRuntimeError1("msg.only.from.new", "Call"); } ScriptRuntime.checkDeprecated(cx, "Call"); NativeCall result = new NativeCall(); result.setPrototype(getObjectPrototype(scope)); return result; } throw new IllegalArgumentException(String.valueOf(id)); } private static final int Id_constructor = 1, MAX_PROTOTYPE_ID = 1; NativeFunction function; Object[] originalArgs; transient NativeCall parentActivationCall; } carmetal-4.3/src/org/mozilla/javascript/NativeContinuation.java000066400000000000000000000103711417122252700250340ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; public final class NativeContinuation extends IdScriptableObject implements Function { static final long serialVersionUID = 1794167133757605367L; private static final Object FTAG = "Continuation"; private Object implementation; public static void init(Context cx, Scriptable scope, boolean sealed) { NativeContinuation obj = new NativeContinuation(); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } public Object getImplementation() { return implementation; } public void initImplementation(Object implementation) { this.implementation = implementation; } @Override public String getClassName() { return "Continuation"; } public Scriptable construct(Context cx, Scriptable scope, Object[] args) { throw Context.reportRuntimeError("Direct call is not supported"); } public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return Interpreter.restartContinuation(this, cx, scope, args); } public static boolean isContinuationConstructor(IdFunctionObject f) { if (f.hasTag(FTAG) && f.methodId() == Id_constructor) { return true; } return false; } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=0; s="constructor"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(FTAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(FTAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case Id_constructor: throw Context.reportRuntimeError("Direct call is not supported"); } throw new IllegalArgumentException(String.valueOf(id)); } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-05-09 08:16:40 EDT L0: { id = 0; String X = null; if (s.length()==11) { X="constructor";id=Id_constructor; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, MAX_PROTOTYPE_ID = 1; // #/string_id_map# } carmetal-4.3/src/org/mozilla/javascript/NativeDate.java000066400000000000000000001555441417122252700232530ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Peter Annema * Norris Boyd * Mike McCabe * Ilya Frank * * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.Date; import java.text.DateFormat; /** * This class implements the Date native object. * See ECMA 15.9. * @author Mike McCabe */ final class NativeDate extends IdScriptableObject { static final long serialVersionUID = -8307438915861678966L; private static final Object DATE_TAG = "Date"; private static final String js_NaN_date_str = "Invalid Date"; static void init(Scriptable scope, boolean sealed) { NativeDate obj = new NativeDate(); // Set the value of the prototype Date to NaN ('invalid date'); obj.date = ScriptRuntime.NaN; obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } private NativeDate() { if (thisTimeZone == null) { // j.u.TimeZone is synchronized, so setting class statics from it // should be OK. thisTimeZone = java.util.TimeZone.getDefault(); LocalTZA = thisTimeZone.getRawOffset(); } } @Override public String getClassName() { return "Date"; } @Override public Object getDefaultValue(Class typeHint) { if (typeHint == null) typeHint = ScriptRuntime.StringClass; return super.getDefaultValue(typeHint); } double getJSTimeValue() { return date; } @Override protected void fillConstructorProperties(IdFunctionObject ctor) { addIdFunctionProperty(ctor, DATE_TAG, ConstructorId_now, "now", 0); addIdFunctionProperty(ctor, DATE_TAG, ConstructorId_parse, "parse", 1); addIdFunctionProperty(ctor, DATE_TAG, ConstructorId_UTC, "UTC", 1); super.fillConstructorProperties(ctor); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_toTimeString: arity=0; s="toTimeString"; break; case Id_toDateString: arity=0; s="toDateString"; break; case Id_toLocaleString: arity=0; s="toLocaleString"; break; case Id_toLocaleTimeString: arity=0; s="toLocaleTimeString"; break; case Id_toLocaleDateString: arity=0; s="toLocaleDateString"; break; case Id_toUTCString: arity=0; s="toUTCString"; break; case Id_toSource: arity=0; s="toSource"; break; case Id_valueOf: arity=0; s="valueOf"; break; case Id_getTime: arity=0; s="getTime"; break; case Id_getYear: arity=0; s="getYear"; break; case Id_getFullYear: arity=0; s="getFullYear"; break; case Id_getUTCFullYear: arity=0; s="getUTCFullYear"; break; case Id_getMonth: arity=0; s="getMonth"; break; case Id_getUTCMonth: arity=0; s="getUTCMonth"; break; case Id_getDate: arity=0; s="getDate"; break; case Id_getUTCDate: arity=0; s="getUTCDate"; break; case Id_getDay: arity=0; s="getDay"; break; case Id_getUTCDay: arity=0; s="getUTCDay"; break; case Id_getHours: arity=0; s="getHours"; break; case Id_getUTCHours: arity=0; s="getUTCHours"; break; case Id_getMinutes: arity=0; s="getMinutes"; break; case Id_getUTCMinutes: arity=0; s="getUTCMinutes"; break; case Id_getSeconds: arity=0; s="getSeconds"; break; case Id_getUTCSeconds: arity=0; s="getUTCSeconds"; break; case Id_getMilliseconds: arity=0; s="getMilliseconds"; break; case Id_getUTCMilliseconds: arity=0; s="getUTCMilliseconds"; break; case Id_getTimezoneOffset: arity=0; s="getTimezoneOffset"; break; case Id_setTime: arity=1; s="setTime"; break; case Id_setMilliseconds: arity=1; s="setMilliseconds"; break; case Id_setUTCMilliseconds: arity=1; s="setUTCMilliseconds"; break; case Id_setSeconds: arity=2; s="setSeconds"; break; case Id_setUTCSeconds: arity=2; s="setUTCSeconds"; break; case Id_setMinutes: arity=3; s="setMinutes"; break; case Id_setUTCMinutes: arity=3; s="setUTCMinutes"; break; case Id_setHours: arity=4; s="setHours"; break; case Id_setUTCHours: arity=4; s="setUTCHours"; break; case Id_setDate: arity=1; s="setDate"; break; case Id_setUTCDate: arity=1; s="setUTCDate"; break; case Id_setMonth: arity=2; s="setMonth"; break; case Id_setUTCMonth: arity=2; s="setUTCMonth"; break; case Id_setFullYear: arity=3; s="setFullYear"; break; case Id_setUTCFullYear: arity=3; s="setUTCFullYear"; break; case Id_setYear: arity=1; s="setYear"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(DATE_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(DATE_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case ConstructorId_now: return ScriptRuntime.wrapNumber(now()); case ConstructorId_parse: { String dataStr = ScriptRuntime.toString(args, 0); return ScriptRuntime.wrapNumber(date_parseString(dataStr)); } case ConstructorId_UTC: return ScriptRuntime.wrapNumber(jsStaticFunction_UTC(args)); case Id_constructor: { // if called as a function, just return a string // representing the current time. if (thisObj != null) return date_format(now(), Id_toString); return jsConstructor(args); } } // The rest of Date.prototype methods require thisObj to be Date if (!(thisObj instanceof NativeDate)) throw incompatibleCallError(f); NativeDate realThis = (NativeDate)thisObj; double t = realThis.date; switch (id) { case Id_toString: case Id_toTimeString: case Id_toDateString: if (t == t) { return date_format(t, id); } return js_NaN_date_str; case Id_toLocaleString: case Id_toLocaleTimeString: case Id_toLocaleDateString: if (t == t) { return toLocale_helper(t, id); } return js_NaN_date_str; case Id_toUTCString: if (t == t) { return js_toUTCString(t); } return js_NaN_date_str; case Id_toSource: return "(new Date("+ScriptRuntime.toString(t)+"))"; case Id_valueOf: case Id_getTime: return ScriptRuntime.wrapNumber(t); case Id_getYear: case Id_getFullYear: case Id_getUTCFullYear: if (t == t) { if (id != Id_getUTCFullYear) t = LocalTime(t); t = YearFromTime(t); if (id == Id_getYear) { if (cx.hasFeature(Context.FEATURE_NON_ECMA_GET_YEAR)) { if (1900 <= t && t < 2000) { t -= 1900; } } else { t -= 1900; } } } return ScriptRuntime.wrapNumber(t); case Id_getMonth: case Id_getUTCMonth: if (t == t) { if (id == Id_getMonth) t = LocalTime(t); t = MonthFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getDate: case Id_getUTCDate: if (t == t) { if (id == Id_getDate) t = LocalTime(t); t = DateFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getDay: case Id_getUTCDay: if (t == t) { if (id == Id_getDay) t = LocalTime(t); t = WeekDay(t); } return ScriptRuntime.wrapNumber(t); case Id_getHours: case Id_getUTCHours: if (t == t) { if (id == Id_getHours) t = LocalTime(t); t = HourFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getMinutes: case Id_getUTCMinutes: if (t == t) { if (id == Id_getMinutes) t = LocalTime(t); t = MinFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getSeconds: case Id_getUTCSeconds: if (t == t) { if (id == Id_getSeconds) t = LocalTime(t); t = SecFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getMilliseconds: case Id_getUTCMilliseconds: if (t == t) { if (id == Id_getMilliseconds) t = LocalTime(t); t = msFromTime(t); } return ScriptRuntime.wrapNumber(t); case Id_getTimezoneOffset: if (t == t) { t = (t - LocalTime(t)) / msPerMinute; } return ScriptRuntime.wrapNumber(t); case Id_setTime: t = TimeClip(ScriptRuntime.toNumber(args, 0)); realThis.date = t; return ScriptRuntime.wrapNumber(t); case Id_setMilliseconds: case Id_setUTCMilliseconds: case Id_setSeconds: case Id_setUTCSeconds: case Id_setMinutes: case Id_setUTCMinutes: case Id_setHours: case Id_setUTCHours: t = makeTime(t, args, id); realThis.date = t; return ScriptRuntime.wrapNumber(t); case Id_setDate: case Id_setUTCDate: case Id_setMonth: case Id_setUTCMonth: case Id_setFullYear: case Id_setUTCFullYear: t = makeDate(t, args, id); realThis.date = t; return ScriptRuntime.wrapNumber(t); case Id_setYear: { double year = ScriptRuntime.toNumber(args, 0); if (year != year || Double.isInfinite(year)) { t = ScriptRuntime.NaN; } else { if (t != t) { t = 0; } else { t = LocalTime(t); } if (year >= 0 && year <= 99) year += 1900; double day = MakeDay(year, MonthFromTime(t), DateFromTime(t)); t = MakeDate(day, TimeWithinDay(t)); t = internalUTC(t); t = TimeClip(t); } } realThis.date = t; return ScriptRuntime.wrapNumber(t); default: throw new IllegalArgumentException(String.valueOf(id)); } } /* ECMA helper functions */ private static final double HalfTimeDomain = 8.64e15; private static final double HoursPerDay = 24.0; private static final double MinutesPerHour = 60.0; private static final double SecondsPerMinute = 60.0; private static final double msPerSecond = 1000.0; private static final double MinutesPerDay = (HoursPerDay * MinutesPerHour); private static final double SecondsPerDay = (MinutesPerDay * SecondsPerMinute); private static final double SecondsPerHour = (MinutesPerHour * SecondsPerMinute); private static final double msPerDay = (SecondsPerDay * msPerSecond); private static final double msPerHour = (SecondsPerHour * msPerSecond); private static final double msPerMinute = (SecondsPerMinute * msPerSecond); private static double Day(double t) { return Math.floor(t / msPerDay); } private static double TimeWithinDay(double t) { double result; result = t % msPerDay; if (result < 0) result += msPerDay; return result; } private static boolean IsLeapYear(int year) { return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0); } /* math here has to be f.p, because we need * floor((1968 - 1969) / 4) == -1 */ private static double DayFromYear(double y) { return ((365 * ((y)-1970) + Math.floor(((y)-1969)/4.0) - Math.floor(((y)-1901)/100.0) + Math.floor(((y)-1601)/400.0))); } private static double TimeFromYear(double y) { return DayFromYear(y) * msPerDay; } private static int YearFromTime(double t) { int lo = (int) Math.floor((t / msPerDay) / 366) + 1970; int hi = (int) Math.floor((t / msPerDay) / 365) + 1970; int mid; /* above doesn't work for negative dates... */ if (hi < lo) { int temp = lo; lo = hi; hi = temp; } /* Use a simple binary search algorithm to find the right year. This seems like brute force... but the computation of hi and lo years above lands within one year of the correct answer for years within a thousand years of 1970; the loop below only requires six iterations for year 270000. */ while (hi > lo) { mid = (hi + lo) / 2; if (TimeFromYear(mid) > t) { hi = mid - 1; } else { lo = mid + 1; if (TimeFromYear(lo) > t) { return mid; } } } return lo; } private static double DayFromMonth(int m, int year) { int day = m * 30; if (m >= 7) { day += m / 2 - 1; } else if (m >= 2) { day += (m - 1) / 2 - 1; } else { day += m; } if (m >= 2 && IsLeapYear(year)) { ++day; } return day; } private static int MonthFromTime(double t) { int year = YearFromTime(t); int d = (int)(Day(t) - DayFromYear(year)); d -= 31 + 28; if (d < 0) { return (d < -28) ? 0 : 1; } if (IsLeapYear(year)) { if (d == 0) return 1; // 29 February --d; } // d: date count from 1 March int estimate = d / 30; // approx number of month since March int mstart; switch (estimate) { case 0: return 2; case 1: mstart = 31; break; case 2: mstart = 31+30; break; case 3: mstart = 31+30+31; break; case 4: mstart = 31+30+31+30; break; case 5: mstart = 31+30+31+30+31; break; case 6: mstart = 31+30+31+30+31+31; break; case 7: mstart = 31+30+31+30+31+31+30; break; case 8: mstart = 31+30+31+30+31+31+30+31; break; case 9: mstart = 31+30+31+30+31+31+30+31+30; break; case 10: return 11; //Late december default: throw Kit.codeBug(); } // if d < mstart then real month since March == estimate - 1 return (d >= mstart) ? estimate + 2 : estimate + 1; } private static int DateFromTime(double t) { int year = YearFromTime(t); int d = (int)(Day(t) - DayFromYear(year)); d -= 31 + 28; if (d < 0) { return (d < -28) ? d + 31 + 28 + 1 : d + 28 + 1; } if (IsLeapYear(year)) { if (d == 0) return 29; // 29 February --d; } // d: date count from 1 March int mdays, mstart; switch (d / 30) { // approx number of month since March case 0: return d + 1; case 1: mdays = 31; mstart = 31; break; case 2: mdays = 30; mstart = 31+30; break; case 3: mdays = 31; mstart = 31+30+31; break; case 4: mdays = 30; mstart = 31+30+31+30; break; case 5: mdays = 31; mstart = 31+30+31+30+31; break; case 6: mdays = 31; mstart = 31+30+31+30+31+31; break; case 7: mdays = 30; mstart = 31+30+31+30+31+31+30; break; case 8: mdays = 31; mstart = 31+30+31+30+31+31+30+31; break; case 9: mdays = 30; mstart = 31+30+31+30+31+31+30+31+30; break; case 10: return d - (31+30+31+30+31+31+30+31+30) + 1; //Late december default: throw Kit.codeBug(); } d -= mstart; if (d < 0) { // wrong estimate: sfhift to previous month d += mdays; } return d + 1; } private static int WeekDay(double t) { double result; result = Day(t) + 4; result = result % 7; if (result < 0) result += 7; return (int) result; } private static double now() { return System.currentTimeMillis(); } /* Should be possible to determine the need for this dynamically * if we go with the workaround... I'm not using it now, because I * can't think of any clean way to make toLocaleString() and the * time zone (comment) in toString match the generated string * values. Currently it's wrong-but-consistent in all but the * most recent betas of the JRE - seems to work in 1.1.7. */ private final static boolean TZO_WORKAROUND = false; private static double DaylightSavingTA(double t) { // Another workaround! The JRE doesn't seem to know about DST // before year 1 AD, so we map to equivalent dates for the // purposes of finding dst. To be safe, we do this for years // outside 1970-2038. if (t < 0.0 || t > 2145916800000.0) { int year = EquivalentYear(YearFromTime(t)); double day = MakeDay(year, MonthFromTime(t), DateFromTime(t)); t = MakeDate(day, TimeWithinDay(t)); } if (!TZO_WORKAROUND) { Date date = new Date((long) t); if (thisTimeZone.inDaylightTime(date)) return msPerHour; else return 0; } else { /* Use getOffset if inDaylightTime() is broken, because it * seems to work acceptably. We don't switch over to it * entirely, because it requires (expensive) exploded date arguments, * and the api makes it impossible to handle dst * changeovers cleanly. */ // Hardcode the assumption that the changeover always // happens at 2:00 AM: t += LocalTZA + (HourFromTime(t) <= 2 ? msPerHour : 0); int year = YearFromTime(t); double offset = thisTimeZone.getOffset(year > 0 ? 1 : 0, year, MonthFromTime(t), DateFromTime(t), WeekDay(t), (int)TimeWithinDay(t)); if ((offset - LocalTZA) != 0) return msPerHour; else return 0; // return offset - LocalTZA; } } /* * Find a year for which any given date will fall on the same weekday. * * This function should be used with caution when used other than * for determining DST; it hasn't been proven not to produce an * incorrect year for times near year boundaries. */ private static int EquivalentYear(int year) { int day = (int) DayFromYear(year) + 4; day = day % 7; if (day < 0) day += 7; // Years and leap years on which Jan 1 is a Sunday, Monday, etc. if (IsLeapYear(year)) { switch (day) { case 0: return 1984; case 1: return 1996; case 2: return 1980; case 3: return 1992; case 4: return 1976; case 5: return 1988; case 6: return 1972; } } else { switch (day) { case 0: return 1978; case 1: return 1973; case 2: return 1974; case 3: return 1975; case 4: return 1981; case 5: return 1971; case 6: return 1977; } } // Unreachable throw Kit.codeBug(); } private static double LocalTime(double t) { return t + LocalTZA + DaylightSavingTA(t); } private static double internalUTC(double t) { return t - LocalTZA - DaylightSavingTA(t - LocalTZA); } private static int HourFromTime(double t) { double result; result = Math.floor(t / msPerHour) % HoursPerDay; if (result < 0) result += HoursPerDay; return (int) result; } private static int MinFromTime(double t) { double result; result = Math.floor(t / msPerMinute) % MinutesPerHour; if (result < 0) result += MinutesPerHour; return (int) result; } private static int SecFromTime(double t) { double result; result = Math.floor(t / msPerSecond) % SecondsPerMinute; if (result < 0) result += SecondsPerMinute; return (int) result; } private static int msFromTime(double t) { double result; result = t % msPerSecond; if (result < 0) result += msPerSecond; return (int) result; } private static double MakeTime(double hour, double min, double sec, double ms) { return ((hour * MinutesPerHour + min) * SecondsPerMinute + sec) * msPerSecond + ms; } private static double MakeDay(double year, double month, double date) { year += Math.floor(month / 12); month = month % 12; if (month < 0) month += 12; double yearday = Math.floor(TimeFromYear(year) / msPerDay); double monthday = DayFromMonth((int)month, (int)year); return yearday + monthday + date - 1; } private static double MakeDate(double day, double time) { return day * msPerDay + time; } private static double TimeClip(double d) { if (d != d || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY || Math.abs(d) > HalfTimeDomain) { return ScriptRuntime.NaN; } if (d > 0.0) return Math.floor(d + 0.); else return Math.ceil(d + 0.); } /* end of ECMA helper functions */ /* find UTC time from given date... no 1900 correction! */ private static double date_msecFromDate(double year, double mon, double mday, double hour, double min, double sec, double msec) { double day; double time; double result; day = MakeDay(year, mon, mday); time = MakeTime(hour, min, sec, msec); result = MakeDate(day, time); return result; } /* compute the time in msec (unclipped) from the given args */ private static final int MAXARGS = 7; private static double date_msecFromArgs(Object[] args) { double array[] = new double[MAXARGS]; int loop; double d; for (loop = 0; loop < MAXARGS; loop++) { if (loop < args.length) { d = ScriptRuntime.toNumber(args[loop]); if (d != d || Double.isInfinite(d)) { return ScriptRuntime.NaN; } array[loop] = ScriptRuntime.toInteger(args[loop]); } else { if (loop == 2) { array[loop] = 1; /* Default the date argument to 1. */ } else { array[loop] = 0; } } } /* adjust 2-digit years into the 20th century */ if (array[0] >= 0 && array[0] <= 99) array[0] += 1900; return date_msecFromDate(array[0], array[1], array[2], array[3], array[4], array[5], array[6]); } private static double jsStaticFunction_UTC(Object[] args) { return TimeClip(date_msecFromArgs(args)); } private static double date_parseString(String s) { int year = -1; int mon = -1; int mday = -1; int hour = -1; int min = -1; int sec = -1; char c = 0; char si = 0; int i = 0; int n = -1; double tzoffset = -1; char prevc = 0; int limit = 0; boolean seenplusminus = false; limit = s.length(); while (i < limit) { c = s.charAt(i); i++; if (c <= ' ' || c == ',' || c == '-') { if (i < limit) { si = s.charAt(i); if (c == '-' && '0' <= si && si <= '9') { prevc = c; } } continue; } if (c == '(') { /* comments) */ int depth = 1; while (i < limit) { c = s.charAt(i); i++; if (c == '(') depth++; else if (c == ')') if (--depth <= 0) break; } continue; } if ('0' <= c && c <= '9') { n = c - '0'; while (i < limit && '0' <= (c = s.charAt(i)) && c <= '9') { n = n * 10 + c - '0'; i++; } /* allow TZA before the year, so * 'Wed Nov 05 21:49:11 GMT-0800 1997' * works */ /* uses of seenplusminus allow : in TZA, so Java * no-timezone style of GMT+4:30 works */ if ((prevc == '+' || prevc == '-')/* && year>=0 */) { /* make ':' case below change tzoffset */ seenplusminus = true; /* offset */ if (n < 24) n = n * 60; /* EG. "GMT-3" */ else n = n % 100 + n / 100 * 60; /* eg "GMT-0430" */ if (prevc == '+') /* plus means east of GMT */ n = -n; if (tzoffset != 0 && tzoffset != -1) return ScriptRuntime.NaN; tzoffset = n; } else if (n >= 70 || (prevc == '/' && mon >= 0 && mday >= 0 && year < 0)) { if (year >= 0) return ScriptRuntime.NaN; else if (c <= ' ' || c == ',' || c == '/' || i >= limit) year = n < 100 ? n + 1900 : n; else return ScriptRuntime.NaN; } else if (c == ':') { if (hour < 0) hour = /*byte*/ n; else if (min < 0) min = /*byte*/ n; else return ScriptRuntime.NaN; } else if (c == '/') { if (mon < 0) mon = /*byte*/ n-1; else if (mday < 0) mday = /*byte*/ n; else return ScriptRuntime.NaN; } else if (i < limit && c != ',' && c > ' ' && c != '-') { return ScriptRuntime.NaN; } else if (seenplusminus && n < 60) { /* handle GMT-3:30 */ if (tzoffset < 0) tzoffset -= n; else tzoffset += n; } else if (hour >= 0 && min < 0) { min = /*byte*/ n; } else if (min >= 0 && sec < 0) { sec = /*byte*/ n; } else if (mday < 0) { mday = /*byte*/ n; } else { return ScriptRuntime.NaN; } prevc = 0; } else if (c == '/' || c == ':' || c == '+' || c == '-') { prevc = c; } else { int st = i - 1; while (i < limit) { c = s.charAt(i); if (!(('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z'))) break; i++; } int letterCount = i - st; if (letterCount < 2) return ScriptRuntime.NaN; /* * Use ported code from jsdate.c rather than the locale-specific * date-parsing code from Java, to keep js and rhino consistent. * Is this the right strategy? */ String wtb = "am;pm;" +"monday;tuesday;wednesday;thursday;friday;" +"saturday;sunday;" +"january;february;march;april;may;june;" +"july;august;september;october;november;december;" +"gmt;ut;utc;est;edt;cst;cdt;mst;mdt;pst;pdt;"; int index = 0; for (int wtbOffset = 0; ;) { int wtbNext = wtb.indexOf(';', wtbOffset); if (wtbNext < 0) return ScriptRuntime.NaN; if (wtb.regionMatches(true, wtbOffset, s, st, letterCount)) break; wtbOffset = wtbNext + 1; ++index; } if (index < 2) { /* * AM/PM. Count 12:30 AM as 00:30, 12:30 PM as * 12:30, instead of blindly adding 12 if PM. */ if (hour > 12 || hour < 0) { return ScriptRuntime.NaN; } else if (index == 0) { // AM if (hour == 12) hour = 0; } else { // PM if (hour != 12) hour += 12; } } else if ((index -= 2) < 7) { // ignore week days } else if ((index -= 7) < 12) { // month if (mon < 0) { mon = index; } else { return ScriptRuntime.NaN; } } else { index -= 12; // timezones switch (index) { case 0 /* gmt */: tzoffset = 0; break; case 1 /* ut */: tzoffset = 0; break; case 2 /* utc */: tzoffset = 0; break; case 3 /* est */: tzoffset = 5 * 60; break; case 4 /* edt */: tzoffset = 4 * 60; break; case 5 /* cst */: tzoffset = 6 * 60; break; case 6 /* cdt */: tzoffset = 5 * 60; break; case 7 /* mst */: tzoffset = 7 * 60; break; case 8 /* mdt */: tzoffset = 6 * 60; break; case 9 /* pst */: tzoffset = 8 * 60; break; case 10 /* pdt */:tzoffset = 7 * 60; break; default: Kit.codeBug(); } } } } if (year < 0 || mon < 0 || mday < 0) return ScriptRuntime.NaN; if (sec < 0) sec = 0; if (min < 0) min = 0; if (hour < 0) hour = 0; double msec = date_msecFromDate(year, mon, mday, hour, min, sec, 0); if (tzoffset == -1) { /* no time zone specified, have to use local */ return internalUTC(msec); } else { return msec + tzoffset * msPerMinute; } } private static String date_format(double t, int methodId) { StringBuffer result = new StringBuffer(60); double local = LocalTime(t); /* Tue Oct 31 09:41:40 GMT-0800 (PST) 2000 */ /* Tue Oct 31 2000 */ /* 09:41:40 GMT-0800 (PST) */ if (methodId != Id_toTimeString) { appendWeekDayName(result, WeekDay(local)); result.append(' '); appendMonthName(result, MonthFromTime(local)); result.append(' '); append0PaddedUint(result, DateFromTime(local), 2); result.append(' '); int year = YearFromTime(local); if (year < 0) { result.append('-'); year = -year; } append0PaddedUint(result, year, 4); if (methodId != Id_toDateString) result.append(' '); } if (methodId != Id_toDateString) { append0PaddedUint(result, HourFromTime(local), 2); result.append(':'); append0PaddedUint(result, MinFromTime(local), 2); result.append(':'); append0PaddedUint(result, SecFromTime(local), 2); // offset from GMT in minutes. The offset includes daylight // savings, if it applies. int minutes = (int) Math.floor((LocalTZA + DaylightSavingTA(t)) / msPerMinute); // map 510 minutes to 0830 hours int offset = (minutes / 60) * 100 + minutes % 60; if (offset > 0) { result.append(" GMT+"); } else { result.append(" GMT-"); offset = -offset; } append0PaddedUint(result, offset, 4); if (timeZoneFormatter == null) timeZoneFormatter = new java.text.SimpleDateFormat("zzz"); // Find an equivalent year before getting the timezone // comment. See DaylightSavingTA. if (t < 0.0 || t > 2145916800000.0) { int equiv = EquivalentYear(YearFromTime(local)); double day = MakeDay(equiv, MonthFromTime(t), DateFromTime(t)); t = MakeDate(day, TimeWithinDay(t)); } result.append(" ("); java.util.Date date = new Date((long) t); synchronized (timeZoneFormatter) { result.append(timeZoneFormatter.format(date)); } result.append(')'); } return result.toString(); } /* the javascript constructor */ private static Object jsConstructor(Object[] args) { NativeDate obj = new NativeDate(); // if called as a constructor with no args, // return a new Date with the current time. if (args.length == 0) { obj.date = now(); return obj; } // if called with just one arg - if (args.length == 1) { Object arg0 = args[0]; if (arg0 instanceof Scriptable) arg0 = ((Scriptable) arg0).getDefaultValue(null); double date; if (arg0 instanceof String) { // it's a string; parse it. date = date_parseString((String)arg0); } else { // if it's not a string, use it as a millisecond date date = ScriptRuntime.toNumber(arg0); } obj.date = TimeClip(date); return obj; } double time = date_msecFromArgs(args); if (!Double.isNaN(time) && !Double.isInfinite(time)) time = TimeClip(internalUTC(time)); obj.date = time; return obj; } private static String toLocale_helper(double t, int methodId) { java.text.DateFormat formatter; switch (methodId) { case Id_toLocaleString: if (localeDateTimeFormatter == null) { localeDateTimeFormatter = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG); } formatter = localeDateTimeFormatter; break; case Id_toLocaleTimeString: if (localeTimeFormatter == null) { localeTimeFormatter = DateFormat.getTimeInstance(DateFormat.LONG); } formatter = localeTimeFormatter; break; case Id_toLocaleDateString: if (localeDateFormatter == null) { localeDateFormatter = DateFormat.getDateInstance(DateFormat.LONG); } formatter = localeDateFormatter; break; default: formatter = null; // unreachable } synchronized (formatter) { return formatter.format(new Date((long) t)); } } private static String js_toUTCString(double date) { StringBuffer result = new StringBuffer(60); appendWeekDayName(result, WeekDay(date)); result.append(", "); append0PaddedUint(result, DateFromTime(date), 2); result.append(' '); appendMonthName(result, MonthFromTime(date)); result.append(' '); int year = YearFromTime(date); if (year < 0) { result.append('-'); year = -year; } append0PaddedUint(result, year, 4); result.append(' '); append0PaddedUint(result, HourFromTime(date), 2); result.append(':'); append0PaddedUint(result, MinFromTime(date), 2); result.append(':'); append0PaddedUint(result, SecFromTime(date), 2); result.append(" GMT"); return result.toString(); } private static void append0PaddedUint(StringBuffer sb, int i, int minWidth) { if (i < 0) Kit.codeBug(); int scale = 1; --minWidth; if (i >= 10) { if (i < 1000 * 1000 * 1000) { for (;;) { int newScale = scale * 10; if (i < newScale) { break; } --minWidth; scale = newScale; } } else { // Separated case not to check against 10 * 10^9 overflow minWidth -= 9; scale = 1000 * 1000 * 1000; } } while (minWidth > 0) { sb.append('0'); --minWidth; } while (scale != 1) { sb.append((char)('0' + (i / scale))); i %= scale; scale /= 10; } sb.append((char)('0' + i)); } private static void appendMonthName(StringBuffer sb, int index) { // Take advantage of the fact that all month abbreviations // have the same length to minimize amount of strings runtime has // to keep in memory String months = "Jan"+"Feb"+"Mar"+"Apr"+"May"+"Jun" +"Jul"+"Aug"+"Sep"+"Oct"+"Nov"+"Dec"; index *= 3; for (int i = 0; i != 3; ++i) { sb.append(months.charAt(index + i)); } } private static void appendWeekDayName(StringBuffer sb, int index) { String days = "Sun"+"Mon"+"Tue"+"Wed"+"Thu"+"Fri"+"Sat"; index *= 3; for (int i = 0; i != 3; ++i) { sb.append(days.charAt(index + i)); } } private static double makeTime(double date, Object[] args, int methodId) { int maxargs; boolean local = true; switch (methodId) { case Id_setUTCMilliseconds: local = false; // fallthrough case Id_setMilliseconds: maxargs = 1; break; case Id_setUTCSeconds: local = false; // fallthrough case Id_setSeconds: maxargs = 2; break; case Id_setUTCMinutes: local = false; // fallthrough case Id_setMinutes: maxargs = 3; break; case Id_setUTCHours: local = false; // fallthrough case Id_setHours: maxargs = 4; break; default: Kit.codeBug(); maxargs = 0; } int i; double conv[] = new double[4]; double hour, min, sec, msec; double lorutime; /* Local or UTC version of date */ double time; double result; /* just return NaN if the date is already NaN */ if (date != date) return date; /* Satisfy the ECMA rule that if a function is called with * fewer arguments than the specified formal arguments, the * remaining arguments are set to undefined. Seems like all * the Date.setWhatever functions in ECMA are only varargs * beyond the first argument; this should be set to undefined * if it's not given. This means that "d = new Date(); * d.setMilliseconds()" returns NaN. Blech. */ if (args.length == 0) args = ScriptRuntime.padArguments(args, 1); for (i = 0; i < args.length && i < maxargs; i++) { conv[i] = ScriptRuntime.toNumber(args[i]); // limit checks that happen in MakeTime in ECMA. if (conv[i] != conv[i] || Double.isInfinite(conv[i])) { return ScriptRuntime.NaN; } conv[i] = ScriptRuntime.toInteger(conv[i]); } if (local) lorutime = LocalTime(date); else lorutime = date; i = 0; int stop = args.length; if (maxargs >= 4 && i < stop) hour = conv[i++]; else hour = HourFromTime(lorutime); if (maxargs >= 3 && i < stop) min = conv[i++]; else min = MinFromTime(lorutime); if (maxargs >= 2 && i < stop) sec = conv[i++]; else sec = SecFromTime(lorutime); if (maxargs >= 1 && i < stop) msec = conv[i++]; else msec = msFromTime(lorutime); time = MakeTime(hour, min, sec, msec); result = MakeDate(Day(lorutime), time); if (local) result = internalUTC(result); date = TimeClip(result); return date; } private static double makeDate(double date, Object[] args, int methodId) { int maxargs; boolean local = true; switch (methodId) { case Id_setUTCDate: local = false; // fallthrough case Id_setDate: maxargs = 1; break; case Id_setUTCMonth: local = false; // fallthrough case Id_setMonth: maxargs = 2; break; case Id_setUTCFullYear: local = false; // fallthrough case Id_setFullYear: maxargs = 3; break; default: Kit.codeBug(); maxargs = 0; } int i; double conv[] = new double[3]; double year, month, day; double lorutime; /* local or UTC version of date */ double result; /* See arg padding comment in makeTime.*/ if (args.length == 0) args = ScriptRuntime.padArguments(args, 1); for (i = 0; i < args.length && i < maxargs; i++) { conv[i] = ScriptRuntime.toNumber(args[i]); // limit checks that happen in MakeDate in ECMA. if (conv[i] != conv[i] || Double.isInfinite(conv[i])) { return ScriptRuntime.NaN; } conv[i] = ScriptRuntime.toInteger(conv[i]); } /* return NaN if date is NaN and we're not setting the year, * If we are, use 0 as the time. */ if (date != date) { if (args.length < 3) { return ScriptRuntime.NaN; } else { lorutime = 0; } } else { if (local) lorutime = LocalTime(date); else lorutime = date; } i = 0; int stop = args.length; if (maxargs >= 3 && i < stop) year = conv[i++]; else year = YearFromTime(lorutime); if (maxargs >= 2 && i < stop) month = conv[i++]; else month = MonthFromTime(lorutime); if (maxargs >= 1 && i < stop) day = conv[i++]; else day = DateFromTime(lorutime); day = MakeDay(year, month, day); /* day within year */ result = MakeDate(day, TimeWithinDay(lorutime)); if (local) result = internalUTC(result); date = TimeClip(result); return date; } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-05-09 08:15:38 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 6: X="getDay";id=Id_getDay; break L; case 7: switch (s.charAt(3)) { case 'D': c=s.charAt(0); if (c=='g') { X="getDate";id=Id_getDate; } else if (c=='s') { X="setDate";id=Id_setDate; } break L; case 'T': c=s.charAt(0); if (c=='g') { X="getTime";id=Id_getTime; } else if (c=='s') { X="setTime";id=Id_setTime; } break L; case 'Y': c=s.charAt(0); if (c=='g') { X="getYear";id=Id_getYear; } else if (c=='s') { X="setYear";id=Id_setYear; } break L; case 'u': X="valueOf";id=Id_valueOf; break L; } break L; case 8: switch (s.charAt(3)) { case 'H': c=s.charAt(0); if (c=='g') { X="getHours";id=Id_getHours; } else if (c=='s') { X="setHours";id=Id_setHours; } break L; case 'M': c=s.charAt(0); if (c=='g') { X="getMonth";id=Id_getMonth; } else if (c=='s') { X="setMonth";id=Id_setMonth; } break L; case 'o': X="toSource";id=Id_toSource; break L; case 't': X="toString";id=Id_toString; break L; } break L; case 9: X="getUTCDay";id=Id_getUTCDay; break L; case 10: c=s.charAt(3); if (c=='M') { c=s.charAt(0); if (c=='g') { X="getMinutes";id=Id_getMinutes; } else if (c=='s') { X="setMinutes";id=Id_setMinutes; } } else if (c=='S') { c=s.charAt(0); if (c=='g') { X="getSeconds";id=Id_getSeconds; } else if (c=='s') { X="setSeconds";id=Id_setSeconds; } } else if (c=='U') { c=s.charAt(0); if (c=='g') { X="getUTCDate";id=Id_getUTCDate; } else if (c=='s') { X="setUTCDate";id=Id_setUTCDate; } } break L; case 11: switch (s.charAt(3)) { case 'F': c=s.charAt(0); if (c=='g') { X="getFullYear";id=Id_getFullYear; } else if (c=='s') { X="setFullYear";id=Id_setFullYear; } break L; case 'M': X="toGMTString";id=Id_toGMTString; break L; case 'T': X="toUTCString";id=Id_toUTCString; break L; case 'U': c=s.charAt(0); if (c=='g') { c=s.charAt(9); if (c=='r') { X="getUTCHours";id=Id_getUTCHours; } else if (c=='t') { X="getUTCMonth";id=Id_getUTCMonth; } } else if (c=='s') { c=s.charAt(9); if (c=='r') { X="setUTCHours";id=Id_setUTCHours; } else if (c=='t') { X="setUTCMonth";id=Id_setUTCMonth; } } break L; case 's': X="constructor";id=Id_constructor; break L; } break L; case 12: c=s.charAt(2); if (c=='D') { X="toDateString";id=Id_toDateString; } else if (c=='T') { X="toTimeString";id=Id_toTimeString; } break L; case 13: c=s.charAt(0); if (c=='g') { c=s.charAt(6); if (c=='M') { X="getUTCMinutes";id=Id_getUTCMinutes; } else if (c=='S') { X="getUTCSeconds";id=Id_getUTCSeconds; } } else if (c=='s') { c=s.charAt(6); if (c=='M') { X="setUTCMinutes";id=Id_setUTCMinutes; } else if (c=='S') { X="setUTCSeconds";id=Id_setUTCSeconds; } } break L; case 14: c=s.charAt(0); if (c=='g') { X="getUTCFullYear";id=Id_getUTCFullYear; } else if (c=='s') { X="setUTCFullYear";id=Id_setUTCFullYear; } else if (c=='t') { X="toLocaleString";id=Id_toLocaleString; } break L; case 15: c=s.charAt(0); if (c=='g') { X="getMilliseconds";id=Id_getMilliseconds; } else if (c=='s') { X="setMilliseconds";id=Id_setMilliseconds; } break L; case 17: X="getTimezoneOffset";id=Id_getTimezoneOffset; break L; case 18: c=s.charAt(0); if (c=='g') { X="getUTCMilliseconds";id=Id_getUTCMilliseconds; } else if (c=='s') { X="setUTCMilliseconds";id=Id_setUTCMilliseconds; } else if (c=='t') { c=s.charAt(8); if (c=='D') { X="toLocaleDateString";id=Id_toLocaleDateString; } else if (c=='T') { X="toLocaleTimeString";id=Id_toLocaleTimeString; } } break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int ConstructorId_now = -3, ConstructorId_parse = -2, ConstructorId_UTC = -1, Id_constructor = 1, Id_toString = 2, Id_toTimeString = 3, Id_toDateString = 4, Id_toLocaleString = 5, Id_toLocaleTimeString = 6, Id_toLocaleDateString = 7, Id_toUTCString = 8, Id_toSource = 9, Id_valueOf = 10, Id_getTime = 11, Id_getYear = 12, Id_getFullYear = 13, Id_getUTCFullYear = 14, Id_getMonth = 15, Id_getUTCMonth = 16, Id_getDate = 17, Id_getUTCDate = 18, Id_getDay = 19, Id_getUTCDay = 20, Id_getHours = 21, Id_getUTCHours = 22, Id_getMinutes = 23, Id_getUTCMinutes = 24, Id_getSeconds = 25, Id_getUTCSeconds = 26, Id_getMilliseconds = 27, Id_getUTCMilliseconds = 28, Id_getTimezoneOffset = 29, Id_setTime = 30, Id_setMilliseconds = 31, Id_setUTCMilliseconds = 32, Id_setSeconds = 33, Id_setUTCSeconds = 34, Id_setMinutes = 35, Id_setUTCMinutes = 36, Id_setHours = 37, Id_setUTCHours = 38, Id_setDate = 39, Id_setUTCDate = 40, Id_setMonth = 41, Id_setUTCMonth = 42, Id_setFullYear = 43, Id_setUTCFullYear = 44, Id_setYear = 45, MAX_PROTOTYPE_ID = 45; private static final int Id_toGMTString = Id_toUTCString; // Alias, see Ecma B.2.6 // #/string_id_map# /* cached values */ private static java.util.TimeZone thisTimeZone; private static double LocalTZA; private static java.text.DateFormat timeZoneFormatter; private static java.text.DateFormat localeDateTimeFormatter; private static java.text.DateFormat localeDateFormatter; private static java.text.DateFormat localeTimeFormatter; private double date; } carmetal-4.3/src/org/mozilla/javascript/NativeError.java000066400000000000000000000173311417122252700234560ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Igor Bukanov * Roger Lawrence * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * * The class of error objects * * ECMA 15.11 */ final class NativeError extends IdScriptableObject { static final long serialVersionUID = -5338413581437645187L; private static final Object ERROR_TAG = "Error"; static void init(Scriptable scope, boolean sealed) { NativeError obj = new NativeError(); ScriptableObject.putProperty(obj, "name", "Error"); ScriptableObject.putProperty(obj, "message", ""); ScriptableObject.putProperty(obj, "fileName", ""); ScriptableObject.putProperty(obj, "lineNumber", new Integer(0)); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } static NativeError make(Context cx, Scriptable scope, IdFunctionObject ctorObj, Object[] args) { Scriptable proto = (Scriptable)(ctorObj.get("prototype", ctorObj)); NativeError obj = new NativeError(); obj.setPrototype(proto); obj.setParentScope(scope); int arglen = args.length; if (arglen >= 1) { ScriptableObject.putProperty(obj, "message", ScriptRuntime.toString(args[0])); if (arglen >= 2) { ScriptableObject.putProperty(obj, "fileName", args[1]); if (arglen >= 3) { int line = ScriptRuntime.toInt32(args[2]); ScriptableObject.putProperty(obj, "lineNumber", new Integer(line)); } } } if(arglen < 3 && cx.hasFeature(Context.FEATURE_LOCATION_INFORMATION_IN_ERROR)) { // Fill in fileName and lineNumber automatically when not specified // explicitly, see Bugzilla issue #342807 int[] linep = new int[1]; String fileName = Context.getSourcePositionFromStack(linep); ScriptableObject.putProperty(obj, "lineNumber", new Integer(linep[0])); if(arglen < 2) { ScriptableObject.putProperty(obj, "fileName", fileName); } } return obj; } @Override public String getClassName() { return "Error"; } @Override public String toString() { return js_toString(this); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_toSource: arity=0; s="toSource"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(ERROR_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(ERROR_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case Id_constructor: return make(cx, scope, f, args); case Id_toString: return js_toString(thisObj); case Id_toSource: return js_toSource(cx, scope, thisObj); } throw new IllegalArgumentException(String.valueOf(id)); } private static String js_toString(Scriptable thisObj) { return getString(thisObj, "name")+": "+getString(thisObj, "message"); } private static String js_toSource(Context cx, Scriptable scope, Scriptable thisObj) { // Emulation of SpiderMonkey behavior Object name = ScriptableObject.getProperty(thisObj, "name"); Object message = ScriptableObject.getProperty(thisObj, "message"); Object fileName = ScriptableObject.getProperty(thisObj, "fileName"); Object lineNumber = ScriptableObject.getProperty(thisObj, "lineNumber"); StringBuffer sb = new StringBuffer(); sb.append("(new "); if (name == NOT_FOUND) { name = Undefined.instance; } sb.append(ScriptRuntime.toString(name)); sb.append("("); if (message != NOT_FOUND || fileName != NOT_FOUND || lineNumber != NOT_FOUND) { if (message == NOT_FOUND) { message = ""; } sb.append(ScriptRuntime.uneval(cx, scope, message)); if (fileName != NOT_FOUND || lineNumber != NOT_FOUND) { sb.append(", "); if (fileName == NOT_FOUND) { fileName = ""; } sb.append(ScriptRuntime.uneval(cx, scope, fileName)); if (lineNumber != NOT_FOUND) { int line = ScriptRuntime.toInt32(lineNumber); if (line != 0) { sb.append(", "); sb.append(ScriptRuntime.toString(line)); } } } } sb.append("))"); return sb.toString(); } private static String getString(Scriptable obj, String id) { Object value = ScriptableObject.getProperty(obj, id); if (value == NOT_FOUND) return ""; return ScriptRuntime.toString(value); } @Override protected int findPrototypeId(String s) { int id; // #string_id_map# // #generated# Last update: 2007-05-09 08:15:45 EDT L0: { id = 0; String X = null; int c; int s_length = s.length(); if (s_length==8) { c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } } else if (s_length==11) { X="constructor";id=Id_constructor; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toSource = 3, MAX_PROTOTYPE_ID = 3; // #/string_id_map# } carmetal-4.3/src/org/mozilla/javascript/NativeFunction.java000066400000000000000000000125501417122252700241500ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Bob Jervis * Roger Lawrence * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import org.mozilla.javascript.debug.DebuggableScript; /** * This class implements the Function native object. * See ECMA 15.3. * @author Norris Boyd */ public abstract class NativeFunction extends BaseFunction { public final void initScriptFunction(Context cx, Scriptable scope) { ScriptRuntime.setFunctionProtoAndParent(this, scope); } /** * @param indent How much to indent the decompiled result * * @param flags Flags specifying format of decompilation output */ @Override final String decompile(int indent, int flags) { String encodedSource = getEncodedSource(); if (encodedSource == null) { return super.decompile(indent, flags); } else { UintMap properties = new UintMap(1); properties.put(Decompiler.INITIAL_INDENT_PROP, indent); return Decompiler.decompile(encodedSource, flags, properties); } } @Override public int getLength() { int paramCount = getParamCount(); if (getLanguageVersion() != Context.VERSION_1_2) { return paramCount; } Context cx = Context.getContext(); NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this); if (activation == null) { return paramCount; } return activation.originalArgs.length; } @Override public int getArity() { return getParamCount(); } /** * @deprecated Use {@link BaseFunction#getFunctionName()} instead. * For backwards compatibility keep an old method name used by * Batik and possibly others. */ public String jsGet_name() { return getFunctionName(); } /** * Get encoded source string. */ public String getEncodedSource() { return null; } public DebuggableScript getDebuggableView() { return null; } /** * Resume execution of a suspended generator. * @param cx The current context * @param scope Scope for the parent generator function * @param operation The resumption operation (next, send, etc.. ) * @param state The generator state (has locals, stack, etc.) * @param value The return value of yield (if required). * @return The next yielded value (if any) */ public Object resumeGenerator(Context cx, Scriptable scope, int operation, Object state, Object value) { throw new EvaluatorException("resumeGenerator() not implemented"); } protected abstract int getLanguageVersion(); /** * Get number of declared parameters. It should be 0 for scripts. */ protected abstract int getParamCount(); /** * Get number of declared parameters and variables defined through var * statements. */ protected abstract int getParamAndVarCount(); /** * Get parameter or variable name. * If index < {@link #getParamCount()}, then return the name of the * corresponding parameter. Otherwise return the name of variable. */ protected abstract String getParamOrVarName(int index); /** * Get parameter or variable const-ness. * If index < {@link #getParamCount()}, then return the const-ness * of the corresponding parameter. Otherwise return whether the variable is * const. */ protected boolean getParamOrVarConst(int index) { // By default return false to preserve compatibility with existing // classes subclassing this class, which are mostly generated by jsc // from earlier Rhino versions. See Bugzilla #396117. return false; } } carmetal-4.3/src/org/mozilla/javascript/NativeGenerator.java000066400000000000000000000246201417122252700243120ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements generator objects. See * http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7#Generators * * @author Norris Boyd */ public final class NativeGenerator extends IdScriptableObject { private static final long serialVersionUID = 1645892441041347273L; private static final Object GENERATOR_TAG = "Generator"; static NativeGenerator init(ScriptableObject scope, boolean sealed) { // Generator // Can't use "NativeGenerator().exportAsJSClass" since we don't want // to define "Generator" as a constructor in the top-level scope. NativeGenerator prototype = new NativeGenerator(); if (scope != null) { prototype.setParentScope(scope); prototype.setPrototype(getObjectPrototype(scope)); } prototype.activatePrototypeMap(MAX_PROTOTYPE_ID); if (sealed) { prototype.sealObject(); } // Need to access Generator prototype when constructing // Generator instances, but don't have a generator constructor // to use to find the prototype. Use the "associateValue" // approach instead. if (scope != null) { scope.associateValue(GENERATOR_TAG, prototype); } return prototype; } /** * Only for constructing the prototype object. */ private NativeGenerator() { } public NativeGenerator(Scriptable scope, NativeFunction function, Object savedState) { this.function = function; this.savedState = savedState; // Set parent and prototype properties. Since we don't have a // "Generator" constructor in the top scope, we stash the // prototype in the top scope's associated value. Scriptable top = ScriptableObject.getTopLevelScope(scope); this.setParentScope(top); NativeGenerator prototype = (NativeGenerator) ScriptableObject.getTopScopeValue(top, GENERATOR_TAG); this.setPrototype(prototype); } public static final int GENERATOR_SEND = 0, GENERATOR_THROW = 1, GENERATOR_CLOSE = 2; @Override public String getClassName() { return "Generator"; } /** * Close the generator if it is still open. */ @Override public void finalize() throws Throwable { if (savedState != null) { // This is a little tricky since we are most likely running in // a different thread. We need to get a Context to run this, and // we must call "doTopCall" since this will likely be the outermost // JavaScript frame on this thread. Context cx = Context.getCurrentContext(); ContextFactory factory = cx != null ? cx.getFactory() : ContextFactory.getGlobal(); factory.call(new CloseGeneratorAction(this)); } } private static class CloseGeneratorAction implements ContextAction { private NativeGenerator generator; CloseGeneratorAction(NativeGenerator generator) { this.generator = generator; } public Object run(Context cx) { Scriptable scope = ScriptableObject.getTopLevelScope(generator); Callable closeGenerator = new Callable() { public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return ((NativeGenerator)thisObj).resume(cx, scope, GENERATOR_CLOSE, new GeneratorClosedException()); } }; return ScriptRuntime.doTopCall(closeGenerator, cx, scope, generator, null); } } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_close: arity=1; s="close"; break; case Id_next: arity=1; s="next"; break; case Id_send: arity=0; s="send"; break; case Id_throw: arity=0; s="throw"; break; case Id___iterator__: arity=1; s="__iterator__"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(GENERATOR_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(GENERATOR_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (!(thisObj instanceof NativeGenerator)) throw incompatibleCallError(f); NativeGenerator generator = (NativeGenerator) thisObj; switch (id) { case Id_close: // need to run any pending finally clauses return generator.resume(cx, scope, GENERATOR_CLOSE, new GeneratorClosedException()); case Id_next: // arguments to next() are ignored generator.firstTime = false; return generator.resume(cx, scope, GENERATOR_SEND, Undefined.instance); case Id_send: { Object arg = args.length > 0 ? args[0] : Undefined.instance; if (generator.firstTime && !arg.equals(Undefined.instance)) { throw ScriptRuntime.typeError0("msg.send.newborn"); } return generator.resume(cx, scope, GENERATOR_SEND, arg); } case Id_throw: return generator.resume(cx, scope, GENERATOR_THROW, args.length > 0 ? args[0] : Undefined.instance); case Id___iterator__: return thisObj; default: throw new IllegalArgumentException(String.valueOf(id)); } } private Object resume(Context cx, Scriptable scope, int operation, Object value) { if (savedState == null) { if (operation == GENERATOR_CLOSE) return Undefined.instance; Object thrown; if (operation == GENERATOR_THROW) { thrown = value; } else { thrown = NativeIterator.getStopIterationObject(scope); } throw new JavaScriptException(thrown, lineSource, lineNumber); } try { synchronized (this) { // generator execution is necessarily single-threaded and // non-reentrant. // See https://bugzilla.mozilla.org/show_bug.cgi?id=349263 if (locked) throw ScriptRuntime.typeError0("msg.already.exec.gen"); locked = true; } return function.resumeGenerator(cx, scope, operation, savedState, value); } catch (GeneratorClosedException e) { // On closing a generator in the compile path, the generator // throws a special exception. This ensures execution of all pending // finalizers and will not get caught by user code. return Undefined.instance; } catch (RhinoException e) { lineNumber = e.lineNumber(); lineSource = e.lineSource(); savedState = null; throw e; } finally { synchronized (this) { locked = false; } if (operation == GENERATOR_CLOSE) savedState = null; } } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-06-14 13:13:03 EDT L0: { id = 0; String X = null; int c; int s_length = s.length(); if (s_length==4) { c=s.charAt(0); if (c=='n') { X="next";id=Id_next; } else if (c=='s') { X="send";id=Id_send; } } else if (s_length==5) { c=s.charAt(0); if (c=='c') { X="close";id=Id_close; } else if (c=='t') { X="throw";id=Id_throw; } } else if (s_length==12) { X="__iterator__";id=Id___iterator__; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_close = 1, Id_next = 2, Id_send = 3, Id_throw = 4, Id___iterator__ = 5, MAX_PROTOTYPE_ID = 5; // #/string_id_map# private NativeFunction function; private Object savedState; private String lineSource; private int lineNumber; private boolean firstTime = true; private boolean locked; public static class GeneratorClosedException extends RuntimeException { private static final long serialVersionUID = 2561315658662379681L; } } carmetal-4.3/src/org/mozilla/javascript/NativeGlobal.java000066400000000000000000000657061417122252700235760ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.io.Serializable; import org.mozilla.javascript.xml.XMLLib; /** * This class implements the global native object (function and value * properties only). * * See ECMA 15.1.[12]. * * @author Mike Shaver */ public class NativeGlobal implements Serializable, IdFunctionCall { static final long serialVersionUID = 6080442165748707530L; public static void init(Context cx, Scriptable scope, boolean sealed) { NativeGlobal obj = new NativeGlobal(); for (int id = 1; id <= LAST_SCOPE_FUNCTION_ID; ++id) { String name; int arity = 1; switch (id) { case Id_decodeURI: name = "decodeURI"; break; case Id_decodeURIComponent: name = "decodeURIComponent"; break; case Id_encodeURI: name = "encodeURI"; break; case Id_encodeURIComponent: name = "encodeURIComponent"; break; case Id_escape: name = "escape"; break; case Id_eval: name = "eval"; break; case Id_isFinite: name = "isFinite"; break; case Id_isNaN: name = "isNaN"; break; case Id_isXMLName: name = "isXMLName"; break; case Id_parseFloat: name = "parseFloat"; break; case Id_parseInt: name = "parseInt"; arity = 2; break; case Id_unescape: name = "unescape"; break; case Id_uneval: name = "uneval"; break; default: throw Kit.codeBug(); } IdFunctionObject f = new IdFunctionObject(obj, FTAG, id, name, arity, scope); if (sealed) { f.sealObject(); } f.exportAsScopeProperty(); } ScriptableObject.defineProperty( scope, "NaN", ScriptRuntime.NaNobj, ScriptableObject.DONTENUM); ScriptableObject.defineProperty( scope, "Infinity", ScriptRuntime.wrapNumber(Double.POSITIVE_INFINITY), ScriptableObject.DONTENUM); ScriptableObject.defineProperty( scope, "undefined", Undefined.instance, ScriptableObject.DONTENUM); String[] errorMethods = { "ConversionError", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "InternalError", "JavaException" }; /* Each error constructor gets its own Error object as a prototype, with the 'name' property set to the name of the error. */ for (int i = 0; i < errorMethods.length; i++) { String name = errorMethods[i]; Scriptable errorProto = ScriptRuntime. newObject(cx, scope, "Error", ScriptRuntime.emptyArgs); errorProto.put("name", errorProto, name); if (sealed) { if (errorProto instanceof ScriptableObject) { ((ScriptableObject)errorProto).sealObject(); } } IdFunctionObject ctor = new IdFunctionObject(obj, FTAG, Id_new_CommonError, name, 1, scope); ctor.markAsConstructor(errorProto); if (sealed) { ctor.sealObject(); } ctor.exportAsScopeProperty(); } } public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { int methodId = f.methodId(); switch (methodId) { case Id_decodeURI: case Id_decodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return decode(str, methodId == Id_decodeURI); } case Id_encodeURI: case Id_encodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return encode(str, methodId == Id_encodeURI); } case Id_escape: return js_escape(args); case Id_eval: return js_eval(cx, scope, thisObj, args); case Id_isFinite: { boolean result; if (args.length < 1) { result = false; } else { double d = ScriptRuntime.toNumber(args[0]); result = (d == d && d != Double.POSITIVE_INFINITY && d != Double.NEGATIVE_INFINITY); } return ScriptRuntime.wrapBoolean(result); } case Id_isNaN: { // The global method isNaN, as per ECMA-262 15.1.2.6. boolean result; if (args.length < 1) { result = true; } else { double d = ScriptRuntime.toNumber(args[0]); result = (d != d); } return ScriptRuntime.wrapBoolean(result); } case Id_isXMLName: { Object name = (args.length == 0) ? Undefined.instance : args[0]; XMLLib xmlLib = XMLLib.extractFromScope(scope); return ScriptRuntime.wrapBoolean( xmlLib.isXMLName(cx, name)); } case Id_parseFloat: return js_parseFloat(args); case Id_parseInt: return js_parseInt(args); case Id_unescape: return js_unescape(args); case Id_uneval: { Object value = (args.length != 0) ? args[0] : Undefined.instance; return ScriptRuntime.uneval(cx, scope, value); } case Id_new_CommonError: // The implementation of all the ECMA error constructors // (SyntaxError, TypeError, etc.) return NativeError.make(cx, scope, f, args); } } throw f.unknown(); } /** * The global method parseInt, as per ECMA-262 15.1.2.2. */ private Object js_parseInt(Object[] args) { String s = ScriptRuntime.toString(args, 0); int radix = ScriptRuntime.toInt32(args, 1); int len = s.length(); if (len == 0) return ScriptRuntime.NaNobj; boolean negative = false; int start = 0; char c; do { c = s.charAt(start); if (!Character.isWhitespace(c)) break; start++; } while (start < len); if (c == '+' || (negative = (c == '-'))) start++; final int NO_RADIX = -1; if (radix == 0) { radix = NO_RADIX; } else if (radix < 2 || radix > 36) { return ScriptRuntime.NaNobj; } else if (radix == 16 && len - start > 1 && s.charAt(start) == '0') { c = s.charAt(start+1); if (c == 'x' || c == 'X') start += 2; } if (radix == NO_RADIX) { radix = 10; if (len - start > 1 && s.charAt(start) == '0') { c = s.charAt(start+1); if (c == 'x' || c == 'X') { radix = 16; start += 2; } else if ('0' <= c && c <= '9') { radix = 8; start++; } } } double d = ScriptRuntime.stringToNumber(s, start, radix); return ScriptRuntime.wrapNumber(negative ? -d : d); } /** * The global method parseFloat, as per ECMA-262 15.1.2.3. * * @param args the arguments to parseFloat, ignoring args[>=1] */ private Object js_parseFloat(Object[] args) { if (args.length < 1) return ScriptRuntime.NaNobj; String s = ScriptRuntime.toString(args[0]); int len = s.length(); int start = 0; // Scan forward to skip whitespace char c; for (;;) { if (start == len) { return ScriptRuntime.NaNobj; } c = s.charAt(start); if (!TokenStream.isJSSpace(c)) { break; } ++start; } int i = start; if (c == '+' || c == '-') { ++i; if (i == len) { return ScriptRuntime.NaNobj; } c = s.charAt(i); } if (c == 'I') { // check for "Infinity" if (i+8 <= len && s.regionMatches(i, "Infinity", 0, 8)) { double d; if (s.charAt(start) == '-') { d = Double.NEGATIVE_INFINITY; } else { d = Double.POSITIVE_INFINITY; } return ScriptRuntime.wrapNumber(d); } return ScriptRuntime.NaNobj; } // Find the end of the legal bit int decimal = -1; int exponent = -1; for (; i < len; i++) { switch (s.charAt(i)) { case '.': if (decimal != -1) // Only allow a single decimal point. break; decimal = i; continue; case 'e': case 'E': if (exponent != -1) break; exponent = i; continue; case '+': case '-': // Only allow '+' or '-' after 'e' or 'E' if (exponent != i-1) break; continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': continue; default: break; } break; } s = s.substring(start, i); try { return Double.valueOf(s); } catch (NumberFormatException ex) { return ScriptRuntime.NaNobj; } } /** * The global method escape, as per ECMA-262 15.1.2.4. * Includes code for the 'mask' argument supported by the C escape * method, which used to be part of the browser imbedding. Blame * for the strange constant names should be directed there. */ private Object js_escape(Object[] args) { final int URL_XALPHAS = 1, URL_XPALPHAS = 2, URL_PATH = 4; String s = ScriptRuntime.toString(args, 0); int mask = URL_XALPHAS | URL_XPALPHAS | URL_PATH; if (args.length > 1) { // the 'mask' argument. Non-ECMA. double d = ScriptRuntime.toNumber(args[1]); if (d != d || ((mask = (int) d) != d) || 0 != (mask & ~(URL_XALPHAS | URL_XPALPHAS | URL_PATH))) { throw Context.reportRuntimeError0("msg.bad.esc.mask"); } } StringBuffer sb = null; for (int k = 0, L = s.length(); k != L; ++k) { int c = s.charAt(k); if (mask != 0 && ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '@' || c == '*' || c == '_' || c == '-' || c == '.' || (0 != (mask & URL_PATH) && (c == '/' || c == '+')))) { if (sb != null) { sb.append((char)c); } } else { if (sb == null) { sb = new StringBuffer(L + 3); sb.append(s); sb.setLength(k); } int hexSize; if (c < 256) { if (c == ' ' && mask == URL_XPALPHAS) { sb.append('+'); continue; } sb.append('%'); hexSize = 2; } else { sb.append('%'); sb.append('u'); hexSize = 4; } // append hexadecimal form of c left-padded with 0 for (int shift = (hexSize - 1) * 4; shift >= 0; shift -= 4) { int digit = 0xf & (c >> shift); int hc = (digit < 10) ? '0' + digit : 'A' - 10 + digit; sb.append((char)hc); } } } return (sb == null) ? s : sb.toString(); } /** * The global unescape method, as per ECMA-262 15.1.2.5. */ private Object js_unescape(Object[] args) { String s = ScriptRuntime.toString(args, 0); int firstEscapePos = s.indexOf('%'); if (firstEscapePos >= 0) { int L = s.length(); char[] buf = s.toCharArray(); int destination = firstEscapePos; for (int k = firstEscapePos; k != L;) { char c = buf[k]; ++k; if (c == '%' && k != L) { int end, start; if (buf[k] == 'u') { start = k + 1; end = k + 5; } else { start = k; end = k + 2; } if (end <= L) { int x = 0; for (int i = start; i != end; ++i) { x = Kit.xDigitToInt(buf[i], x); } if (x >= 0) { c = (char)x; k = end; } } } buf[destination] = c; ++destination; } s = new String(buf, 0, destination); } return s; } private Object js_eval(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (thisObj.getParentScope() == null) { // We allow indirect calls to eval as long as the script will execute in // the global scope. return ScriptRuntime.evalSpecial(cx, scope, thisObj, args, "eval code", 1); } String m = ScriptRuntime.getMessage1("msg.cant.call.indirect", "eval"); throw NativeGlobal.constructError(cx, "EvalError", m, scope); } static boolean isEvalFunction(Object functionObj) { if (functionObj instanceof IdFunctionObject) { IdFunctionObject function = (IdFunctionObject)functionObj; if (function.hasTag(FTAG) && function.methodId() == Id_eval) { return true; } } return false; } /** * @deprecated Use {@link ScriptRuntime#constructError(String,String)} * instead. */ public static EcmaError constructError(Context cx, String error, String message, Scriptable scope) { return ScriptRuntime.constructError(error, message); } /** * @deprecated Use * {@link ScriptRuntime#constructError(String,String,String,int,String,int)} * instead. */ public static EcmaError constructError(Context cx, String error, String message, Scriptable scope, String sourceName, int lineNumber, int columnNumber, String lineSource) { return ScriptRuntime.constructError(error, message, sourceName, lineNumber, lineSource, columnNumber); } /* * ECMA 3, 15.1.3 URI Handling Function Properties * * The following are implementations of the algorithms * given in the ECMA specification for the hidden functions * 'Encode' and 'Decode'. */ private static String encode(String str, boolean fullUri) { byte[] utf8buf = null; StringBuffer sb = null; for (int k = 0, length = str.length(); k != length; ++k) { char C = str.charAt(k); if (encodeUnescaped(C, fullUri)) { if (sb != null) { sb.append(C); } } else { if (sb == null) { sb = new StringBuffer(length + 3); sb.append(str); sb.setLength(k); utf8buf = new byte[6]; } if (0xDC00 <= C && C <= 0xDFFF) { throw Context.reportRuntimeError0("msg.bad.uri"); } int V; if (C < 0xD800 || 0xDBFF < C) { V = C; } else { k++; if (k == length) { throw Context.reportRuntimeError0("msg.bad.uri"); } char C2 = str.charAt(k); if (!(0xDC00 <= C2 && C2 <= 0xDFFF)) { throw Context.reportRuntimeError0("msg.bad.uri"); } V = ((C - 0xD800) << 10) + (C2 - 0xDC00) + 0x10000; } int L = oneUcs4ToUtf8Char(utf8buf, V); for (int j = 0; j < L; j++) { int d = 0xff & utf8buf[j]; sb.append('%'); sb.append(toHexChar(d >>> 4)); sb.append(toHexChar(d & 0xf)); } } } return (sb == null) ? str : sb.toString(); } private static char toHexChar(int i) { if (i >> 4 != 0) Kit.codeBug(); return (char)((i < 10) ? i + '0' : i - 10 + 'A'); } private static int unHex(char c) { if ('A' <= c && c <= 'F') { return c - 'A' + 10; } else if ('a' <= c && c <= 'f') { return c - 'a' + 10; } else if ('0' <= c && c <= '9') { return c - '0'; } else { return -1; } } private static int unHex(char c1, char c2) { int i1 = unHex(c1); int i2 = unHex(c2); if (i1 >= 0 && i2 >= 0) { return (i1 << 4) | i2; } return -1; } private static String decode(String str, boolean fullUri) { char[] buf = null; int bufTop = 0; for (int k = 0, length = str.length(); k != length;) { char C = str.charAt(k); if (C != '%') { if (buf != null) { buf[bufTop++] = C; } ++k; } else { if (buf == null) { // decode always compress so result can not be bigger then // str.length() buf = new char[length]; str.getChars(0, k, buf, 0); bufTop = k; } int start = k; if (k + 3 > length) throw Context.reportRuntimeError0("msg.bad.uri"); int B = unHex(str.charAt(k + 1), str.charAt(k + 2)); if (B < 0) throw Context.reportRuntimeError0("msg.bad.uri"); k += 3; if ((B & 0x80) == 0) { C = (char)B; } else { // Decode UTF-8 sequence into ucs4Char and encode it into // UTF-16 int utf8Tail, ucs4Char, minUcs4Char; if ((B & 0xC0) == 0x80) { // First UTF-8 should be ouside 0x80..0xBF throw Context.reportRuntimeError0("msg.bad.uri"); } else if ((B & 0x20) == 0) { utf8Tail = 1; ucs4Char = B & 0x1F; minUcs4Char = 0x80; } else if ((B & 0x10) == 0) { utf8Tail = 2; ucs4Char = B & 0x0F; minUcs4Char = 0x800; } else if ((B & 0x08) == 0) { utf8Tail = 3; ucs4Char = B & 0x07; minUcs4Char = 0x10000; } else if ((B & 0x04) == 0) { utf8Tail = 4; ucs4Char = B & 0x03; minUcs4Char = 0x200000; } else if ((B & 0x02) == 0) { utf8Tail = 5; ucs4Char = B & 0x01; minUcs4Char = 0x4000000; } else { // First UTF-8 can not be 0xFF or 0xFE throw Context.reportRuntimeError0("msg.bad.uri"); } if (k + 3 * utf8Tail > length) throw Context.reportRuntimeError0("msg.bad.uri"); for (int j = 0; j != utf8Tail; j++) { if (str.charAt(k) != '%') throw Context.reportRuntimeError0("msg.bad.uri"); B = unHex(str.charAt(k + 1), str.charAt(k + 2)); if (B < 0 || (B & 0xC0) != 0x80) throw Context.reportRuntimeError0("msg.bad.uri"); ucs4Char = (ucs4Char << 6) | (B & 0x3F); k += 3; } // Check for overlongs and other should-not-present codes if (ucs4Char < minUcs4Char || ucs4Char == 0xFFFE || ucs4Char == 0xFFFF) { ucs4Char = 0xFFFD; } if (ucs4Char >= 0x10000) { ucs4Char -= 0x10000; if (ucs4Char > 0xFFFFF) throw Context.reportRuntimeError0("msg.bad.uri"); char H = (char)((ucs4Char >>> 10) + 0xD800); C = (char)((ucs4Char & 0x3FF) + 0xDC00); buf[bufTop++] = H; } else { C = (char)ucs4Char; } } if (fullUri && URI_DECODE_RESERVED.indexOf(C) >= 0) { for (int x = start; x != k; x++) { buf[bufTop++] = str.charAt(x); } } else { buf[bufTop++] = C; } } } return (buf == null) ? str : new String(buf, 0, bufTop); } private static boolean encodeUnescaped(char c, boolean fullUri) { if (('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z') || ('0' <= c && c <= '9')) { return true; } if ("-_.!~*'()".indexOf(c) >= 0) return true; if (fullUri) { return URI_DECODE_RESERVED.indexOf(c) >= 0; } return false; } private static final String URI_DECODE_RESERVED = ";/?:@&=+$,#"; /* Convert one UCS-4 char and write it into a UTF-8 buffer, which must be * at least 6 bytes long. Return the number of UTF-8 bytes of data written. */ private static int oneUcs4ToUtf8Char(byte[] utf8Buffer, int ucs4Char) { int utf8Length = 1; //JS_ASSERT(ucs4Char <= 0x7FFFFFFF); if ((ucs4Char & ~0x7F) == 0) utf8Buffer[0] = (byte)ucs4Char; else { int i; int a = ucs4Char >>> 11; utf8Length = 2; while (a != 0) { a >>>= 5; utf8Length++; } i = utf8Length; while (--i > 0) { utf8Buffer[i] = (byte)((ucs4Char & 0x3F) | 0x80); ucs4Char >>>= 6; } utf8Buffer[0] = (byte)(0x100 - (1 << (8-utf8Length)) + ucs4Char); } return utf8Length; } private static final Object FTAG = "Global"; private static final int Id_decodeURI = 1, Id_decodeURIComponent = 2, Id_encodeURI = 3, Id_encodeURIComponent = 4, Id_escape = 5, Id_eval = 6, Id_isFinite = 7, Id_isNaN = 8, Id_isXMLName = 9, Id_parseFloat = 10, Id_parseInt = 11, Id_unescape = 12, Id_uneval = 13, LAST_SCOPE_FUNCTION_ID = 13, Id_new_CommonError = 14; } carmetal-4.3/src/org/mozilla/javascript/NativeIterator.java000066400000000000000000000227701417122252700241610ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * Contributor(s): * Norris Boyd * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.Iterator; /** * This class implements iterator objects. See * http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7#Iterators * * @author Norris Boyd */ public final class NativeIterator extends IdScriptableObject { private static final long serialVersionUID = -4136968203581667681L; private static final Object ITERATOR_TAG = "Iterator"; static void init(ScriptableObject scope, boolean sealed) { // Iterator NativeIterator iterator = new NativeIterator(); iterator.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); // Generator NativeGenerator.init(scope, sealed); // StopIteration NativeObject obj = new StopIteration(); obj.setPrototype(getObjectPrototype(scope)); obj.setParentScope(scope); if (sealed) { obj.sealObject(); } ScriptableObject.defineProperty(scope, STOP_ITERATION, obj, ScriptableObject.DONTENUM); // Use "associateValue" so that generators can continue to // throw StopIteration even if the property of the global // scope is replaced or deleted. scope.associateValue(ITERATOR_TAG, obj); } /** * Only for constructing the prototype object. */ private NativeIterator() { } private NativeIterator(Object objectIterator) { this.objectIterator = objectIterator; } /** * Get the value of the "StopIteration" object. Note that this value * is stored in the top-level scope using "associateValue" so the * value can still be found even if a script overwrites or deletes * the global "StopIteration" property. * @param scope a scope whose parent chain reaches a top-level scope * @return the StopIteration object */ public static Object getStopIterationObject(Scriptable scope) { Scriptable top = ScriptableObject.getTopLevelScope(scope); return ScriptableObject.getTopScopeValue(top, ITERATOR_TAG); } private static final String STOP_ITERATION = "StopIteration"; public static final String ITERATOR_PROPERTY_NAME = "__iterator__"; static class StopIteration extends NativeObject { private static final long serialVersionUID = 2485151085722377663L; @Override public String getClassName() { return STOP_ITERATION; } /* StopIteration has custom instanceof behavior since it * doesn't have a constructor. */ @Override public boolean hasInstance(Scriptable instance) { return instance instanceof StopIteration; } } @Override public String getClassName() { return "Iterator"; } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=2; s="constructor"; break; case Id_next: arity=0; s="next"; break; case Id___iterator__: arity=1; s=ITERATOR_PROPERTY_NAME; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(ITERATOR_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(ITERATOR_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (id == Id_constructor) { return jsConstructor(cx, scope, thisObj, args); } if (!(thisObj instanceof NativeIterator)) throw incompatibleCallError(f); NativeIterator iterator = (NativeIterator) thisObj; switch (id) { case Id_next: return iterator.next(cx, scope); case Id___iterator__: /// XXX: what about argument? SpiderMonkey apparently ignores it return thisObj; default: throw new IllegalArgumentException(String.valueOf(id)); } } /* The JavaScript constructor */ private static Object jsConstructor(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (args.length == 0 || args[0] == null || args[0] == Undefined.instance) { throw ScriptRuntime.typeError1("msg.no.properties", ScriptRuntime.toString(args[0])); } Scriptable obj = ScriptRuntime.toObject(scope, args[0]); boolean keyOnly = args.length > 1 && ScriptRuntime.toBoolean(args[1]); if (thisObj != null) { // Called as a function. Convert to iterator if possible. // For objects that implement java.lang.Iterable or // java.util.Iterator, have JavaScript Iterator call the underlying // iteration methods Iterator iterator = VMBridge.instance.getJavaIterator(cx, scope, obj); if (iterator != null) { scope = ScriptableObject.getTopLevelScope(scope); return cx.getWrapFactory().wrap(cx, scope, new WrappedJavaIterator(iterator, scope), WrappedJavaIterator.class); } // Otherwise, just call the runtime routine Scriptable jsIterator = ScriptRuntime.toIterator(cx, scope, obj, keyOnly); if (jsIterator != null) { return jsIterator; } } // Otherwise, just set up to iterate over the properties of the object. // Do not call __iterator__ method. Object objectIterator = ScriptRuntime.enumInit(obj, cx, keyOnly ? ScriptRuntime.ENUMERATE_KEYS_NO_ITERATOR : ScriptRuntime.ENUMERATE_ARRAY_NO_ITERATOR); ScriptRuntime.setEnumNumbers(objectIterator, true); NativeIterator result = new NativeIterator(objectIterator); result.setPrototype(NativeIterator.getClassPrototype(scope, result.getClassName())); result.setParentScope(scope); return result; } private Object next(Context cx, Scriptable scope) { Boolean b = ScriptRuntime.enumNext(this.objectIterator); if (!b.booleanValue()) { // Out of values. Throw StopIteration. throw new JavaScriptException( NativeIterator.getStopIterationObject(scope), null, 0); } return ScriptRuntime.enumId(this.objectIterator, cx); } static public class WrappedJavaIterator { WrappedJavaIterator(Iterator iterator, Scriptable scope) { this.iterator = iterator; this.scope = scope; } public Object next() { if (!iterator.hasNext()) { // Out of values. Throw StopIteration. throw new JavaScriptException( NativeIterator.getStopIterationObject(scope), null, 0); } return iterator.next(); } public Object __iterator__(boolean b) { return this; } private Iterator iterator; private Scriptable scope; } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-06-11 09:43:19 EDT L0: { id = 0; String X = null; int s_length = s.length(); if (s_length==4) { X="next";id=Id_next; } else if (s_length==11) { X="constructor";id=Id_constructor; } else if (s_length==12) { X="__iterator__";id=Id___iterator__; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_next = 2, Id___iterator__ = 3, MAX_PROTOTYPE_ID = 3; // #/string_id_map# private Object objectIterator; } carmetal-4.3/src/org/mozilla/javascript/NativeJavaArray.java000066400000000000000000000127511417122252700242460ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Frank Mitchell * Mike Shaver * Kemal Bayram * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.lang.reflect.Array; /** * This class reflects Java arrays into the JavaScript environment. * * @author Mike Shaver * @see NativeJavaClass * @see NativeJavaObject * @see NativeJavaPackage */ public class NativeJavaArray extends NativeJavaObject { static final long serialVersionUID = -924022554283675333L; @Override public String getClassName() { return "JavaArray"; } public static NativeJavaArray wrap(Scriptable scope, Object array) { return new NativeJavaArray(scope, array); } @Override public Object unwrap() { return array; } public NativeJavaArray(Scriptable scope, Object array) { super(scope, null, ScriptRuntime.ObjectClass); Class cl = array.getClass(); if (!cl.isArray()) { throw new RuntimeException("Array expected"); } this.array = array; this.length = Array.getLength(array); this.cls = cl.getComponentType(); } @Override public boolean has(String id, Scriptable start) { return id.equals("length") || super.has(id, start); } @Override public boolean has(int index, Scriptable start) { return 0 <= index && index < length; } @Override public Object get(String id, Scriptable start) { if (id.equals("length")) return new Integer(length); Object result = super.get(id, start); if (result == NOT_FOUND && !ScriptableObject.hasProperty(getPrototype(), id)) { throw Context.reportRuntimeError2( "msg.java.member.not.found", array.getClass().getName(), id); } return result; } @Override public Object get(int index, Scriptable start) { if (0 <= index && index < length) { Context cx = Context.getContext(); Object obj = Array.get(array, index); return cx.getWrapFactory().wrap(cx, this, obj, cls); } return Undefined.instance; } @Override public void put(String id, Scriptable start, Object value) { // Ignore assignments to "length"--it's readonly. if (!id.equals("length")) throw Context.reportRuntimeError1( "msg.java.array.member.not.found", id); } @Override public void put(int index, Scriptable start, Object value) { if (0 <= index && index < length) { Array.set(array, index, Context.jsToJava(value, cls)); } else { throw Context.reportRuntimeError2( "msg.java.array.index.out.of.bounds", String.valueOf(index), String.valueOf(length - 1)); } } @Override public Object getDefaultValue(Class hint) { if (hint == null || hint == ScriptRuntime.StringClass) return array.toString(); if (hint == ScriptRuntime.BooleanClass) return Boolean.TRUE; if (hint == ScriptRuntime.NumberClass) return ScriptRuntime.NaNobj; return this; } @Override public Object[] getIds() { Object[] result = new Object[length]; int i = length; while (--i >= 0) result[i] = new Integer(i); return result; } @Override public boolean hasInstance(Scriptable value) { if (!(value instanceof Wrapper)) return false; Object instance = ((Wrapper)value).unwrap(); return cls.isInstance(instance); } @Override public Scriptable getPrototype() { if (prototype == null) { prototype = ScriptableObject.getClassPrototype(this.getParentScope(), "Array"); } return prototype; } Object array; int length; Class cls; } carmetal-4.3/src/org/mozilla/javascript/NativeJavaClass.java000066400000000000000000000302061417122252700242300ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Frank Mitchell * Mike Shaver * Kurt Westerfeld * Kemal Bayram * Ulrike Mueller * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.lang.reflect.*; import java.util.Map; /** * This class reflects Java classes into the JavaScript environment, mainly * for constructors and static members. We lazily reflect properties, * and currently do not guarantee that a single j.l.Class is only * reflected once into the JS environment, although we should. * The only known case where multiple reflections * are possible occurs when a j.l.Class is wrapped as part of a * method return or property access, rather than by walking the * Packages/java tree. * * @author Mike Shaver * @see NativeJavaArray * @see NativeJavaObject * @see NativeJavaPackage */ public class NativeJavaClass extends NativeJavaObject implements Function { static final long serialVersionUID = -6460763940409461664L; // Special property for getting the underlying Java class object. static final String javaClassPropertyName = "__javaObject__"; public NativeJavaClass() { } public NativeJavaClass(Scriptable scope, Class cl) { this.parent = scope; this.javaObject = cl; initMembers(); } @Override protected void initMembers() { Class cl = (Class)javaObject; members = JavaMembers.lookupClass(parent, cl, cl, false); staticFieldAndMethods = members.getFieldAndMethodsObjects(this, cl, true); } @Override public String getClassName() { return "JavaClass"; } @Override public boolean has(String name, Scriptable start) { return members.has(name, true) || javaClassPropertyName.equals(name); } @Override public Object get(String name, Scriptable start) { // When used as a constructor, ScriptRuntime.newObject() asks // for our prototype to create an object of the correct type. // We don't really care what the object is, since we're returning // one constructed out of whole cloth, so we return null. if (name.equals("prototype")) return null; if (staticFieldAndMethods != null) { Object result = staticFieldAndMethods.get(name); if (result != null) return result; } if (members.has(name, true)) { return members.get(this, name, javaObject, true); } if (javaClassPropertyName.equals(name)) { Context cx = Context.getContext(); Scriptable scope = ScriptableObject.getTopLevelScope(start); return cx.getWrapFactory().wrap(cx, scope, javaObject, ScriptRuntime.ClassClass); } // experimental: look for nested classes by appending $name to // current class' name. Class nestedClass = findNestedClass(getClassObject(), name); if (nestedClass != null) { NativeJavaClass nestedValue = new NativeJavaClass (ScriptableObject.getTopLevelScope(this), nestedClass); nestedValue.setParentScope(this); return nestedValue; } throw members.reportMemberNotFound(name); } @Override public void put(String name, Scriptable start, Object value) { members.put(this, name, javaObject, value, true); } @Override public Object[] getIds() { return members.getIds(true); } public Class getClassObject() { return (Class) super.unwrap(); } @Override public Object getDefaultValue(Class hint) { if (hint == null || hint == ScriptRuntime.StringClass) return this.toString(); if (hint == ScriptRuntime.BooleanClass) return Boolean.TRUE; if (hint == ScriptRuntime.NumberClass) return ScriptRuntime.NaNobj; return this; } public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { // If it looks like a "cast" of an object to this class type, // walk the prototype chain to see if there's a wrapper of a // object that's an instanceof this class. if (args.length == 1 && args[0] instanceof Scriptable) { Class c = getClassObject(); Scriptable p = (Scriptable) args[0]; do { if (p instanceof Wrapper) { Object o = ((Wrapper) p).unwrap(); if (c.isInstance(o)) return p; } p = p.getPrototype(); } while (p != null); } return construct(cx, scope, args); } public Scriptable construct(Context cx, Scriptable scope, Object[] args) { Class classObject = getClassObject(); int modifiers = classObject.getModifiers(); if (! (Modifier.isInterface(modifiers) || Modifier.isAbstract(modifiers))) { MemberBox[] ctors = members.ctors; int index = NativeJavaMethod.findFunction(cx, ctors, args); if (index < 0) { String sig = NativeJavaMethod.scriptSignature(args); throw Context.reportRuntimeError2( "msg.no.java.ctor", classObject.getName(), sig); } // Found the constructor, so try invoking it. return constructSpecific(cx, scope, args, ctors[index]); } else { Scriptable topLevel = ScriptableObject.getTopLevelScope(this); String msg = ""; try { // trying to construct an interface; use JavaAdapter to // construct a new class on the fly that implements this // interface. Object v = topLevel.get("JavaAdapter", topLevel); if (v != NOT_FOUND) { Function f = (Function) v; Object[] adapterArgs = { this, args[0] }; return f.construct(cx, topLevel,adapterArgs); } } catch (Exception ex) { // fall through to error String m = ex.getMessage(); if (m != null) msg = m; } throw Context.reportRuntimeError2( "msg.cant.instantiate", msg, classObject.getName()); } } static Scriptable constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) { Scriptable topLevel = ScriptableObject.getTopLevelScope(scope); Class[] argTypes = ctor.argTypes; if (ctor.vararg) { // marshall the explicit parameter Object[] newArgs = new Object[argTypes.length]; for (int i = 0; i < argTypes.length-1; i++) { newArgs[i] = Context.jsToJava(args[i], argTypes[i]); } Object varArgs; // Handle special situation where a single variable parameter // is given and it is a Java or ECMA array. if (args.length == argTypes.length && (args[args.length-1] == null || args[args.length-1] instanceof NativeArray || args[args.length-1] instanceof NativeJavaArray)) { // convert the ECMA array into a native array varArgs = Context.jsToJava(args[args.length-1], argTypes[argTypes.length - 1]); } else { // marshall the variable parameter Class componentType = argTypes[argTypes.length - 1]. getComponentType(); varArgs = Array.newInstance(componentType, args.length - argTypes.length + 1); for (int i=0; i < Array.getLength(varArgs); i++) { Object value = Context.jsToJava(args[argTypes.length-1 + i], componentType); Array.set(varArgs, i, value); } } // add varargs newArgs[argTypes.length-1] = varArgs; // replace the original args with the new one args = newArgs; } else { Object[] origArgs = args; for (int i = 0; i < args.length; i++) { Object arg = args[i]; Object x = Context.jsToJava(arg, argTypes[i]); if (x != arg) { if (args == origArgs) { args = origArgs.clone(); } args[i] = x; } } } Object instance = ctor.newInstance(args); // we need to force this to be wrapped, because construct _has_ // to return a scriptable return cx.getWrapFactory().wrapNewObject(cx, topLevel, instance); } @Override public String toString() { return "[JavaClass " + getClassObject().getName() + "]"; } /** * Determines if prototype is a wrapped Java object and performs * a Java "instanceof". * Exception: if value is an instance of NativeJavaClass, it isn't * considered an instance of the Java class; this forestalls any * name conflicts between java.lang.Class's methods and the * static methods exposed by a JavaNativeClass. */ @Override public boolean hasInstance(Scriptable value) { if (value instanceof Wrapper && !(value instanceof NativeJavaClass)) { Object instance = ((Wrapper)value).unwrap(); return getClassObject().isInstance(instance); } // value wasn't something we understand return false; } private static Class findNestedClass(Class parentClass, String name) { String nestedClassName = parentClass.getName() + '$' + name; ClassLoader loader = parentClass.getClassLoader(); if (loader == null) { // ALERT: if loader is null, nested class should be loaded // via system class loader which can be different from the // loader that brought Rhino classes that Class.forName() would // use, but ClassLoader.getSystemClassLoader() is Java 2 only return Kit.classOrNull(nestedClassName); } else { return Kit.classOrNull(loader, nestedClassName); } } private Map staticFieldAndMethods; } carmetal-4.3/src/org/mozilla/javascript/NativeJavaConstructor.java000066400000000000000000000055241417122252700255150ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Frank Mitchell * Mike Shaver * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class reflects a single Java constructor into the JavaScript * environment. It satisfies a request for an overloaded constructor, * as introduced in LiveConnect 3. * All NativeJavaConstructors behave as JSRef `bound' methods, in that they * always construct the same NativeJavaClass regardless of any reparenting * that may occur. * * @author Frank Mitchell * @see NativeJavaMethod * @see NativeJavaPackage * @see NativeJavaClass */ public class NativeJavaConstructor extends BaseFunction { static final long serialVersionUID = -8149253217482668463L; MemberBox ctor; public NativeJavaConstructor(MemberBox ctor) { this.ctor = ctor; } @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return NativeJavaClass.constructSpecific(cx, scope, args, ctor); } @Override public String getFunctionName() { String sig = JavaMembers.liveConnectSignature(ctor.argTypes); return "".concat(sig); } @Override public String toString() { return "[JavaConstructor " + ctor.getName() + "]"; } } carmetal-4.3/src/org/mozilla/javascript/NativeJavaMethod.java000066400000000000000000000542341417122252700244120ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Frank Mitchell * Mike Shaver * Ulrike Mueller * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.lang.reflect.*; /** * This class reflects Java methods into the JavaScript environment and * handles overloading of methods. * * @author Mike Shaver * @see NativeJavaArray * @see NativeJavaPackage * @see NativeJavaClass */ public class NativeJavaMethod extends BaseFunction { static final long serialVersionUID = -3440381785576412928L; NativeJavaMethod(MemberBox[] methods) { this.functionName = methods[0].getName(); this.methods = methods; } NativeJavaMethod(MemberBox method, String name) { this.functionName = name; this.methods = new MemberBox[] { method }; } public NativeJavaMethod(Method method, String name) { this(new MemberBox(method), name); } @Override public String getFunctionName() { return functionName; } static String scriptSignature(Object[] values) { StringBuffer sig = new StringBuffer(); for (int i = 0; i != values.length; ++i) { Object value = values[i]; String s; if (value == null) { s = "null"; } else if (value instanceof Boolean) { s = "boolean"; } else if (value instanceof String) { s = "string"; } else if (value instanceof Number) { s = "number"; } else if (value instanceof Scriptable) { if (value instanceof Undefined) { s = "undefined"; } else if (value instanceof Wrapper) { Object wrapped = ((Wrapper)value).unwrap(); s = wrapped.getClass().getName(); } else if (value instanceof Function) { s = "function"; } else { s = "object"; } } else { s = JavaMembers.javaSignature(value.getClass()); } if (i != 0) { sig.append(','); } sig.append(s); } return sig.toString(); } @Override String decompile(int indent, int flags) { StringBuffer sb = new StringBuffer(); boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG)); if (!justbody) { sb.append("function "); sb.append(getFunctionName()); sb.append("() {"); } sb.append("/*\n"); sb.append(toString()); sb.append(justbody ? "*/\n" : "*/}\n"); return sb.toString(); } @Override public String toString() { StringBuffer sb = new StringBuffer(); for (int i = 0, N = methods.length; i != N; ++i) { Method method = methods[i].method(); sb.append(JavaMembers.javaSignature(method.getReturnType())); sb.append(' '); sb.append(method.getName()); sb.append(JavaMembers.liveConnectSignature(methods[i].argTypes)); sb.append('\n'); } return sb.toString(); } @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } int index = findFunction(cx, methods, args); if (index < 0) { Class c = methods[0].method().getDeclaringClass(); String sig = c.getName() + '.' + getFunctionName() + '(' + scriptSignature(args) + ')'; throw Context.reportRuntimeError1("msg.java.no_such_method", sig); } MemberBox meth = methods[index]; Class[] argTypes = meth.argTypes; if (meth.vararg) { // marshall the explicit parameters Object[] newArgs = new Object[argTypes.length]; for (int i = 0; i < argTypes.length-1; i++) { newArgs[i] = Context.jsToJava(args[i], argTypes[i]); } Object varArgs; // Handle special situation where a single variable parameter // is given and it is a Java or ECMA array or is null. if (args.length == argTypes.length && (args[args.length-1] == null || args[args.length-1] instanceof NativeArray || args[args.length-1] instanceof NativeJavaArray)) { // convert the ECMA array into a native array varArgs = Context.jsToJava(args[args.length-1], argTypes[argTypes.length - 1]); } else { // marshall the variable parameters Class componentType = argTypes[argTypes.length - 1]. getComponentType(); varArgs = Array.newInstance(componentType, args.length - argTypes.length + 1); for (int i = 0; i < Array.getLength(varArgs); i++) { Object value = Context.jsToJava(args[argTypes.length-1 + i], componentType); Array.set(varArgs, i, value); } } // add varargs newArgs[argTypes.length-1] = varArgs; // replace the original args with the new one args = newArgs; } else { // First, we marshall the args. Object[] origArgs = args; for (int i = 0; i < args.length; i++) { Object arg = args[i]; Object coerced = Context.jsToJava(arg, argTypes[i]); if (coerced != arg) { if (origArgs == args) { args = args.clone(); } args[i] = coerced; } } } Object javaObject; if (meth.isStatic()) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; Class c = meth.getDeclaringClass(); for (;;) { if (o == null) { throw Context.reportRuntimeError3( "msg.nonjava.method", getFunctionName(), ScriptRuntime.toString(thisObj), c.getName()); } if (o instanceof Wrapper) { javaObject = ((Wrapper)o).unwrap(); if (c.isInstance(javaObject)) { break; } } o = o.getPrototype(); } } if (debug) { printDebug("Calling ", meth, args); } Object retval = meth.invoke(javaObject, args); Class staticType = meth.method().getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = cx.getWrapFactory().wrap(cx, scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == null && staticType == Void.TYPE) { wrapped = Undefined.instance; } return wrapped; } /** * Find the index of the correct function to call given the set of methods * or constructors and the arguments. * If no function can be found to call, return -1. */ static int findFunction(Context cx, MemberBox[] methodsOrCtors, Object[] args) { if (methodsOrCtors.length == 0) { return -1; } else if (methodsOrCtors.length == 1) { MemberBox member = methodsOrCtors[0]; Class[] argTypes = member.argTypes; int alength = argTypes.length; if (member.vararg) { alength--; if ( alength > args.length) { return -1; } } else { if (alength != args.length) { return -1; } } for (int j = 0; j != alength; ++j) { if (!NativeJavaObject.canConvert(args[j], argTypes[j])) { if (debug) printDebug("Rejecting (args can't convert) ", member, args); return -1; } } if (debug) printDebug("Found ", member, args); return 0; } int firstBestFit = -1; int[] extraBestFits = null; int extraBestFitsCount = 0; search: for (int i = 0; i < methodsOrCtors.length; i++) { MemberBox member = methodsOrCtors[i]; Class[] argTypes = member.argTypes; int alength = argTypes.length; if (member.vararg) { alength--; if ( alength > args.length) { continue search; } } else { if (alength != args.length) { continue search; } } for (int j = 0; j < alength; j++) { if (!NativeJavaObject.canConvert(args[j], argTypes[j])) { if (debug) printDebug("Rejecting (args can't convert) ", member, args); continue search; } } if (firstBestFit < 0) { if (debug) printDebug("Found first applicable ", member, args); firstBestFit = i; } else { // Compare with all currently fit methods. // The loop starts from -1 denoting firstBestFit and proceed // until extraBestFitsCount to avoid extraBestFits allocation // in the most common case of no ambiguity int betterCount = 0; // number of times member was prefered over // best fits int worseCount = 0; // number of times best fits were prefered // over member for (int j = -1; j != extraBestFitsCount; ++j) { int bestFitIndex; if (j == -1) { bestFitIndex = firstBestFit; } else { bestFitIndex = extraBestFits[j]; } MemberBox bestFit = methodsOrCtors[bestFitIndex]; if (cx.hasFeature(Context.FEATURE_ENHANCED_JAVA_ACCESS) && (bestFit.member().getModifiers() & Modifier.PUBLIC) != (member.member().getModifiers() & Modifier.PUBLIC)) { // When FEATURE_ENHANCED_JAVA_ACCESS gives us access // to non-public members, continue to prefer public // methods in overloading if ((bestFit.member().getModifiers() & Modifier.PUBLIC) == 0) ++betterCount; else ++worseCount; } else { int preference = preferSignature(args, argTypes, member.vararg, bestFit.argTypes, bestFit.vararg ); if (preference == PREFERENCE_AMBIGUOUS) { break; } else if (preference == PREFERENCE_FIRST_ARG) { ++betterCount; } else if (preference == PREFERENCE_SECOND_ARG) { ++worseCount; } else { if (preference != PREFERENCE_EQUAL) Kit.codeBug(); // This should not happen in theory // but on some JVMs, Class.getMethods will return all // static methods of the class hierarchy, even if // a derived class's parameters match exactly. // We want to call the derived class's method. if (bestFit.isStatic() && bestFit.getDeclaringClass().isAssignableFrom( member.getDeclaringClass())) { // On some JVMs, Class.getMethods will return all // static methods of the class hierarchy, even if // a derived class's parameters match exactly. // We want to call the derived class's method. if (debug) printDebug( "Substituting (overridden static)", member, args); if (j == -1) { firstBestFit = i; } else { extraBestFits[j] = i; } } else { if (debug) printDebug( "Ignoring same signature member ", member, args); } continue search; } } } if (betterCount == 1 + extraBestFitsCount) { // member was prefered over all best fits if (debug) printDebug( "New first applicable ", member, args); firstBestFit = i; extraBestFitsCount = 0; } else if (worseCount == 1 + extraBestFitsCount) { // all best fits were prefered over member, ignore it if (debug) printDebug( "Rejecting (all current bests better) ", member, args); } else { // some ambiguity was present, add member to best fit set if (debug) printDebug( "Added to best fit set ", member, args); if (extraBestFits == null) { // Allocate maximum possible array extraBestFits = new int[methodsOrCtors.length - 1]; } extraBestFits[extraBestFitsCount] = i; ++extraBestFitsCount; } } } if (firstBestFit < 0) { // Nothing was found return -1; } else if (extraBestFitsCount == 0) { // single best fit return firstBestFit; } // report remaining ambiguity StringBuffer buf = new StringBuffer(); for (int j = -1; j != extraBestFitsCount; ++j) { int bestFitIndex; if (j == -1) { bestFitIndex = firstBestFit; } else { bestFitIndex = extraBestFits[j]; } buf.append("\n "); buf.append(methodsOrCtors[bestFitIndex].toJavaDeclaration()); } MemberBox firstFitMember = methodsOrCtors[firstBestFit]; String memberName = firstFitMember.getName(); String memberClass = firstFitMember.getDeclaringClass().getName(); if (methodsOrCtors[0].isMethod()) { throw Context.reportRuntimeError3( "msg.constructor.ambiguous", memberName, scriptSignature(args), buf.toString()); } else { throw Context.reportRuntimeError4( "msg.method.ambiguous", memberClass, memberName, scriptSignature(args), buf.toString()); } } /** Types are equal */ private static final int PREFERENCE_EQUAL = 0; private static final int PREFERENCE_FIRST_ARG = 1; private static final int PREFERENCE_SECOND_ARG = 2; /** No clear "easy" conversion */ private static final int PREFERENCE_AMBIGUOUS = 3; /** * Determine which of two signatures is the closer fit. * Returns one of PREFERENCE_EQUAL, PREFERENCE_FIRST_ARG, * PREFERENCE_SECOND_ARG, or PREFERENCE_AMBIGUOUS. */ private static int preferSignature(Object[] args, Class[] sig1, boolean vararg1, Class[] sig2, boolean vararg2 ) { // TODO: This test is pretty primitive. It basically prefers // a matching no vararg method over a vararg method independent // of the type conversion cost. This can lead to unexpected results. int alength = args.length; if (!vararg1 && vararg2) { // prefer the no vararg signature return PREFERENCE_FIRST_ARG; } else if (vararg1 && !vararg2) { // prefer the no vararg signature return PREFERENCE_SECOND_ARG; } else if (vararg1 && vararg2) { if (sig1.length < sig2.length) { // prefer the signature with more explicit types return PREFERENCE_SECOND_ARG; } else if (sig1.length > sig2.length) { // prefer the signature with more explicit types return PREFERENCE_FIRST_ARG; } else { // Both are varargs and have the same length, so make the // decision with the explicit args. alength = Math.min(args.length, sig1.length-1); } } int totalPreference = 0; for (int j = 0; j < alength; j++) { Class type1 = sig1[j]; Class type2 = sig2[j]; if (type1 == type2) { continue; } Object arg = args[j]; // Determine which of type1, type2 is easier to convert from arg. int rank1 = NativeJavaObject.getConversionWeight(arg, type1); int rank2 = NativeJavaObject.getConversionWeight(arg, type2); int preference; if (rank1 < rank2) { preference = PREFERENCE_FIRST_ARG; } else if (rank1 > rank2) { preference = PREFERENCE_SECOND_ARG; } else { // Equal ranks if (rank1 == NativeJavaObject.CONVERSION_NONTRIVIAL) { if (type1.isAssignableFrom(type2)) { preference = PREFERENCE_SECOND_ARG; } else if (type2.isAssignableFrom(type1)) { preference = PREFERENCE_FIRST_ARG; } else { preference = PREFERENCE_AMBIGUOUS; } } else { preference = PREFERENCE_AMBIGUOUS; } } totalPreference |= preference; if (totalPreference == PREFERENCE_AMBIGUOUS) { break; } } return totalPreference; } private static final boolean debug = false; private static void printDebug(String msg, MemberBox member, Object[] args) { if (debug) { StringBuffer sb = new StringBuffer(); sb.append(" ----- "); sb.append(msg); sb.append(member.getDeclaringClass().getName()); sb.append('.'); if (member.isMethod()) { sb.append(member.getName()); } sb.append(JavaMembers.liveConnectSignature(member.argTypes)); sb.append(" for arguments ("); sb.append(scriptSignature(args)); sb.append(')'); System.out.println(sb); } } MemberBox[] methods; private String functionName; } carmetal-4.3/src/org/mozilla/javascript/NativeJavaObject.java000066400000000000000000001023271417122252700243750ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-2000 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Frank Mitchell * Mike Shaver * Kemal Bayram * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.io.*; import java.lang.reflect.*; import java.util.Map; import java.util.Date; /** * This class reflects non-Array Java objects into the JavaScript environment. It * reflect fields directly, and uses NativeJavaMethod objects to reflect (possibly * overloaded) methods.

    * * @author Mike Shaver * @see NativeJavaArray * @see NativeJavaPackage * @see NativeJavaClass */ public class NativeJavaObject implements Scriptable, Wrapper, Serializable { static final long serialVersionUID = -6948590651130498591L; public NativeJavaObject() { } public NativeJavaObject(Scriptable scope, Object javaObject, Class staticType) { this(scope, javaObject, staticType, false); } public NativeJavaObject(Scriptable scope, Object javaObject, Class staticType, boolean isAdapter) { this.parent = scope; this.javaObject = javaObject; this.staticType = staticType; this.isAdapter = isAdapter; initMembers(); } protected void initMembers() { Class dynamicType; if (javaObject != null) { dynamicType = javaObject.getClass(); } else { dynamicType = staticType; } members = JavaMembers.lookupClass(parent, dynamicType, staticType, isAdapter); fieldAndMethods = members.getFieldAndMethodsObjects(this, javaObject, false); } public boolean has(String name, Scriptable start) { return members.has(name, false); } public boolean has(int index, Scriptable start) { return false; } public Object get(String name, Scriptable start) { if (fieldAndMethods != null) { Object result = fieldAndMethods.get(name); if (result != null) { return result; } } // TODO: passing 'this' as the scope is bogus since it has // no parent scope return members.get(this, name, javaObject, false); } public Object get(int index, Scriptable start) { throw members.reportMemberNotFound(Integer.toString(index)); } public void put(String name, Scriptable start, Object value) { // We could be asked to modify the value of a property in the // prototype. Since we can't add a property to a Java object, // we modify it in the prototype rather than copy it down. if (prototype == null || members.has(name, false)) members.put(this, name, javaObject, value, false); else prototype.put(name, prototype, value); } public void put(int index, Scriptable start, Object value) { throw members.reportMemberNotFound(Integer.toString(index)); } public boolean hasInstance(Scriptable value) { // This is an instance of a Java class, so always return false return false; } public void delete(String name) { } public void delete(int index) { } public Scriptable getPrototype() { if (prototype == null && javaObject instanceof String) { return ScriptableObject.getClassPrototype(parent, "String"); } return prototype; } /** * Sets the prototype of the object. */ public void setPrototype(Scriptable m) { prototype = m; } /** * Returns the parent (enclosing) scope of the object. */ public Scriptable getParentScope() { return parent; } /** * Sets the parent (enclosing) scope of the object. */ public void setParentScope(Scriptable m) { parent = m; } public Object[] getIds() { return members.getIds(false); } /** @deprecated Use {@link Context#getWrapFactory()} together with calling {@link WrapFactory#wrap(Context, Scriptable, Object, Class)} */ public static Object wrap(Scriptable scope, Object obj, Class staticType) { Context cx = Context.getContext(); return cx.getWrapFactory().wrap(cx, scope, obj, staticType); } public Object unwrap() { return javaObject; } public String getClassName() { return "JavaObject"; } public Object getDefaultValue(Class hint) { Object value; if (hint == null) { if (javaObject instanceof Boolean) { hint = ScriptRuntime.BooleanClass; } } if (hint == null || hint == ScriptRuntime.StringClass) { value = javaObject.toString(); } else { String converterName; if (hint == ScriptRuntime.BooleanClass) { converterName = "booleanValue"; } else if (hint == ScriptRuntime.NumberClass) { converterName = "doubleValue"; } else { throw Context.reportRuntimeError0("msg.default.value"); } Object converterObject = get(converterName, this); if (converterObject instanceof Function) { Function f = (Function)converterObject; value = f.call(Context.getContext(), f.getParentScope(), this, ScriptRuntime.emptyArgs); } else { if (hint == ScriptRuntime.NumberClass && javaObject instanceof Boolean) { boolean b = ((Boolean)javaObject).booleanValue(); value = ScriptRuntime.wrapNumber(b ? 1.0 : 0.0); } else { value = javaObject.toString(); } } } return value; } /** * Determine whether we can/should convert between the given type and the * desired one. This should be superceded by a conversion-cost calculation * function, but for now I'll hide behind precedent. */ public static boolean canConvert(Object fromObj, Class to) { int weight = getConversionWeight(fromObj, to); return (weight < CONVERSION_NONE); } private static final int JSTYPE_UNDEFINED = 0; // undefined type private static final int JSTYPE_NULL = 1; // null private static final int JSTYPE_BOOLEAN = 2; // boolean private static final int JSTYPE_NUMBER = 3; // number private static final int JSTYPE_STRING = 4; // string private static final int JSTYPE_JAVA_CLASS = 5; // JavaClass private static final int JSTYPE_JAVA_OBJECT = 6; // JavaObject private static final int JSTYPE_JAVA_ARRAY = 7; // JavaArray private static final int JSTYPE_OBJECT = 8; // Scriptable static final byte CONVERSION_TRIVIAL = 1; static final byte CONVERSION_NONTRIVIAL = 0; static final byte CONVERSION_NONE = 99; /** * Derive a ranking based on how "natural" the conversion is. * The special value CONVERSION_NONE means no conversion is possible, * and CONVERSION_NONTRIVIAL signals that more type conformance testing * is required. * Based on * * "preferred method conversions" from Live Connect 3 */ static int getConversionWeight(Object fromObj, Class to) { int fromCode = getJSTypeCode(fromObj); switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { return 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { return 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { return 1; } else if (to == ScriptRuntime.BooleanClass) { return 2; } else if (to == ScriptRuntime.ObjectClass) { return 3; } else if (to == ScriptRuntime.StringClass) { return 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { return 1; } else if (to != Boolean.TYPE) { return 1 + getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 return 9; } else if (to == ScriptRuntime.ObjectClass) { return 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 return 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { return 1; } else if (to.isInstance(fromObj)) { return 2; } else if (to.isPrimitive()) { if (to == Character.TYPE) { return 3; } else if (to != Boolean.TYPE) { return 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { return 1; } else if (to == ScriptRuntime.ObjectClass) { return 3; } else if (to == ScriptRuntime.StringClass) { return 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { return CONVERSION_NONTRIVIAL; } if (to == ScriptRuntime.StringClass) { return 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { return (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONE : 2 + getSizeRank(to); } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (Scriptable.class.isAssignableFrom(to) && to.isInstance(fromObj)) { // No conversion required return 1; } if (to.isArray()) { if (fromObj instanceof NativeArray) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. return 1; } } else if (to == ScriptRuntime.ObjectClass) { return 2; } else if (to == ScriptRuntime.StringClass) { return 3; } else if (to == ScriptRuntime.DateClass) { if (fromObj instanceof NativeDate) { // This is a native date to java date conversion return 1; } } else if (to.isInterface()) { if (fromObj instanceof Function) { // See comments in coerceType if (to.getMethods().length == 1) { return 1; } } return 11; } else if (to.isPrimitive() && to != Boolean.TYPE) { return 3 + getSizeRank(to); } break; } return CONVERSION_NONE; } static int getSizeRank(Class aType) { if (aType == Double.TYPE) { return 1; } else if (aType == Float.TYPE) { return 2; } else if (aType == Long.TYPE) { return 3; } else if (aType == Integer.TYPE) { return 4; } else if (aType == Short.TYPE) { return 5; } else if (aType == Character.TYPE) { return 6; } else if (aType == Byte.TYPE) { return 7; } else if (aType == Boolean.TYPE) { return CONVERSION_NONE; } else { return 8; } } private static int getJSTypeCode(Object value) { if (value == null) { return JSTYPE_NULL; } else if (value == Undefined.instance) { return JSTYPE_UNDEFINED; } else if (value instanceof String) { return JSTYPE_STRING; } else if (value instanceof Number) { return JSTYPE_NUMBER; } else if (value instanceof Boolean) { return JSTYPE_BOOLEAN; } else if (value instanceof Scriptable) { if (value instanceof NativeJavaClass) { return JSTYPE_JAVA_CLASS; } else if (value instanceof NativeJavaArray) { return JSTYPE_JAVA_ARRAY; } else if (value instanceof Wrapper) { return JSTYPE_JAVA_OBJECT; } else { return JSTYPE_OBJECT; } } else if (value instanceof Class) { return JSTYPE_JAVA_CLASS; } else { Class valueClass = value.getClass(); if (valueClass.isArray()) { return JSTYPE_JAVA_ARRAY; } else { return JSTYPE_JAVA_OBJECT; } } } /** * Not intended for public use. Callers should use the * public API Context.toType. * @deprecated as of 1.5 Release 4 * @see org.mozilla.javascript.Context#jsToJava(Object, Class) */ public static Object coerceType(Class type, Object value) { return coerceTypeImpl(type, value); } /** * Type-munging for field setting and method invocation. * Conforms to LC3 specification */ static Object coerceTypeImpl(Class type, Object value) { if (value != null && value.getClass() == type) { return value; } switch (getJSTypeCode(value)) { case JSTYPE_NULL: // raise error if type.isPrimitive() if (type.isPrimitive()) { reportConversionError(value, type); } return null; case JSTYPE_UNDEFINED: if (type == ScriptRuntime.StringClass || type == ScriptRuntime.ObjectClass) { return "undefined"; } else { reportConversionError("undefined", type); } break; case JSTYPE_BOOLEAN: // Under LC3, only JS Booleans can be coerced into a Boolean value if (type == Boolean.TYPE || type == ScriptRuntime.BooleanClass || type == ScriptRuntime.ObjectClass) { return value; } else if (type == ScriptRuntime.StringClass) { return value.toString(); } else { reportConversionError(value, type); } break; case JSTYPE_NUMBER: if (type == ScriptRuntime.StringClass) { return ScriptRuntime.toString(value); } else if (type == ScriptRuntime.ObjectClass) { return coerceToNumber(Double.TYPE, value); } else if ((type.isPrimitive() && type != Boolean.TYPE) || ScriptRuntime.NumberClass.isAssignableFrom(type)) { return coerceToNumber(type, value); } else { reportConversionError(value, type); } break; case JSTYPE_STRING: if (type == ScriptRuntime.StringClass || type.isInstance(value)) { return value; } else if (type == Character.TYPE || type == ScriptRuntime.CharacterClass) { // Special case for converting a single char string to a // character // Placed here because it applies *only* to JS strings, // not other JS objects converted to strings if (((String)value).length() == 1) { return new Character(((String)value).charAt(0)); } else { return coerceToNumber(type, value); } } else if ((type.isPrimitive() && type != Boolean.TYPE) || ScriptRuntime.NumberClass.isAssignableFrom(type)) { return coerceToNumber(type, value); } else { reportConversionError(value, type); } break; case JSTYPE_JAVA_CLASS: if (value instanceof Wrapper) { value = ((Wrapper)value).unwrap(); } if (type == ScriptRuntime.ClassClass || type == ScriptRuntime.ObjectClass) { return value; } else if (type == ScriptRuntime.StringClass) { return value.toString(); } else { reportConversionError(value, type); } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (value instanceof Wrapper) { value = ((Wrapper)value).unwrap(); } if (type.isPrimitive()) { if (type == Boolean.TYPE) { reportConversionError(value, type); } return coerceToNumber(type, value); } else { if (type == ScriptRuntime.StringClass) { return value.toString(); } else { if (type.isInstance(value)) { return value; } else { reportConversionError(value, type); } } } break; case JSTYPE_OBJECT: if (type == ScriptRuntime.StringClass) { return ScriptRuntime.toString(value); } else if (type.isPrimitive()) { if (type == Boolean.TYPE) { reportConversionError(value, type); } return coerceToNumber(type, value); } else if (type.isInstance(value)) { return value; } else if (type == ScriptRuntime.DateClass && value instanceof NativeDate) { double time = ((NativeDate)value).getJSTimeValue(); // XXX: This will replace NaN by 0 return new Date((long)time); } else if (type.isArray() && value instanceof NativeArray) { // Make a new java array, and coerce the JS array components // to the target (component) type. NativeArray array = (NativeArray) value; long length = array.getLength(); Class arrayType = type.getComponentType(); Object Result = Array.newInstance(arrayType, (int)length); for (int i = 0 ; i < length ; ++i) { try { Array.set(Result, i, coerceType(arrayType, array.get(i, array))); } catch (EvaluatorException ee) { reportConversionError(value, type); } } return Result; } else if (value instanceof Wrapper) { value = ((Wrapper)value).unwrap(); if (type.isInstance(value)) return value; reportConversionError(value, type); } else if (type.isInterface() && value instanceof Callable) { // Try to use function as implementation of Java interface. // // XXX: Currently only instances of ScriptableObject are // supported since the resulting interface proxies should // be reused next time conversion is made and generic // Callable has no storage for it. Weak references can // address it but for now use this restriction. if (value instanceof ScriptableObject) { ScriptableObject so = (ScriptableObject)value; Object key = Kit.makeHashKeyFromPair( COERCED_INTERFACE_KEY, type); Object old = so.getAssociatedValue(key); if (old != null) { // Function was already wrapped return old; } Context cx = Context.getContext(); Object glue = InterfaceAdapter.create(cx, type, (Callable)value); // Store for later retrival glue = so.associateValue(key, glue); return glue; } reportConversionError(value, type); } else { reportConversionError(value, type); } break; } return value; } private static Object coerceToNumber(Class type, Object value) { Class valueClass = value.getClass(); // Character if (type == Character.TYPE || type == ScriptRuntime.CharacterClass) { if (valueClass == ScriptRuntime.CharacterClass) { return value; } return new Character((char)toInteger(value, ScriptRuntime.CharacterClass, Character.MIN_VALUE, Character.MAX_VALUE)); } // Double, Float if (type == ScriptRuntime.ObjectClass || type == ScriptRuntime.DoubleClass || type == Double.TYPE) { return valueClass == ScriptRuntime.DoubleClass ? value : new Double(toDouble(value)); } if (type == ScriptRuntime.FloatClass || type == Float.TYPE) { if (valueClass == ScriptRuntime.FloatClass) { return value; } else { double number = toDouble(value); if (Double.isInfinite(number) || Double.isNaN(number) || number == 0.0) { return new Float((float)number); } else { double absNumber = Math.abs(number); if (absNumber < Float.MIN_VALUE) { return new Float((number > 0.0) ? +0.0 : -0.0); } else if (absNumber > Float.MAX_VALUE) { return new Float((number > 0.0) ? Float.POSITIVE_INFINITY : Float.NEGATIVE_INFINITY); } else { return new Float((float)number); } } } } // Integer, Long, Short, Byte if (type == ScriptRuntime.IntegerClass || type == Integer.TYPE) { if (valueClass == ScriptRuntime.IntegerClass) { return value; } else { return new Integer((int)toInteger(value, ScriptRuntime.IntegerClass, Integer.MIN_VALUE, Integer.MAX_VALUE)); } } if (type == ScriptRuntime.LongClass || type == Long.TYPE) { if (valueClass == ScriptRuntime.LongClass) { return value; } else { /* Long values cannot be expressed exactly in doubles. * We thus use the largest and smallest double value that * has a value expressible as a long value. We build these * numerical values from their hexidecimal representations * to avoid any problems caused by attempting to parse a * decimal representation. */ final double max = Double.longBitsToDouble(0x43dfffffffffffffL); final double min = Double.longBitsToDouble(0xc3e0000000000000L); return new Long(toInteger(value, ScriptRuntime.LongClass, min, max)); } } if (type == ScriptRuntime.ShortClass || type == Short.TYPE) { if (valueClass == ScriptRuntime.ShortClass) { return value; } else { return new Short((short)toInteger(value, ScriptRuntime.ShortClass, Short.MIN_VALUE, Short.MAX_VALUE)); } } if (type == ScriptRuntime.ByteClass || type == Byte.TYPE) { if (valueClass == ScriptRuntime.ByteClass) { return value; } else { return new Byte((byte)toInteger(value, ScriptRuntime.ByteClass, Byte.MIN_VALUE, Byte.MAX_VALUE)); } } return new Double(toDouble(value)); } private static double toDouble(Object value) { if (value instanceof Number) { return ((Number)value).doubleValue(); } else if (value instanceof String) { return ScriptRuntime.toNumber((String)value); } else if (value instanceof Scriptable) { if (value instanceof Wrapper) { // XXX: optimize tail-recursion? return toDouble(((Wrapper)value).unwrap()); } else { return ScriptRuntime.toNumber(value); } } else { Method meth; try { meth = value.getClass().getMethod("doubleValue", (Class [])null); } catch (NoSuchMethodException e) { meth = null; } catch (SecurityException e) { meth = null; } if (meth != null) { try { return ((Number)meth.invoke(value, (Object [])null)).doubleValue(); } catch (IllegalAccessException e) { // XXX: ignore, or error message? reportConversionError(value, Double.TYPE); } catch (InvocationTargetException e) { // XXX: ignore, or error message? reportConversionError(value, Double.TYPE); } } return ScriptRuntime.toNumber(value.toString()); } } private static long toInteger(Object value, Class type, double min, double max) { double d = toDouble(value); if (Double.isInfinite(d) || Double.isNaN(d)) { // Convert to string first, for more readable message reportConversionError(ScriptRuntime.toString(value), type); } if (d > 0.0) { d = Math.floor(d); } else { d = Math.ceil(d); } if (d < min || d > max) { // Convert to string first, for more readable message reportConversionError(ScriptRuntime.toString(value), type); } return (long)d; } static void reportConversionError(Object value, Class type) { // It uses String.valueOf(value), not value.toString() since // value can be null, bug 282447. throw Context.reportRuntimeError2( "msg.conversion.not.allowed", String.valueOf(value), JavaMembers.javaSignature(type)); } private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); out.writeBoolean(isAdapter); if (isAdapter) { if (adapter_writeAdapterObject == null) { throw new IOException(); } Object[] args = { javaObject, out }; try { adapter_writeAdapterObject.invoke(null, args); } catch (Exception ex) { throw new IOException(); } } else { out.writeObject(javaObject); } if (staticType != null) { out.writeObject(staticType.getClass().getName()); } else { out.writeObject(null); } } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); isAdapter = in.readBoolean(); if (isAdapter) { if (adapter_readAdapterObject == null) throw new ClassNotFoundException(); Object[] args = { this, in }; try { javaObject = adapter_readAdapterObject.invoke(null, args); } catch (Exception ex) { throw new IOException(); } } else { javaObject = in.readObject(); } String className = (String)in.readObject(); if (className != null) { staticType = Class.forName(className); } else { staticType = null; } initMembers(); } /** * The prototype of this object. */ protected Scriptable prototype; /** * The parent scope of this object. */ protected Scriptable parent; protected transient Object javaObject; protected transient Class staticType; protected transient JavaMembers members; private transient Map fieldAndMethods; private transient boolean isAdapter; private static final Object COERCED_INTERFACE_KEY = "Coerced Interface"; private static Method adapter_writeAdapterObject; private static Method adapter_readAdapterObject; static { // Reflection in java is verbose Class[] sig2 = new Class[2]; Class cl = Kit.classOrNull("org.mozilla.javascript.JavaAdapter"); if (cl != null) { try { sig2[0] = ScriptRuntime.ObjectClass; sig2[1] = Kit.classOrNull("java.io.ObjectOutputStream"); adapter_writeAdapterObject = cl.getMethod("writeAdapterObject", sig2); sig2[0] = ScriptRuntime.ScriptableClass; sig2[1] = Kit.classOrNull("java.io.ObjectInputStream"); adapter_readAdapterObject = cl.getMethod("readAdapterObject", sig2); } catch (Exception ex) { adapter_writeAdapterObject = null; adapter_readAdapterObject = null; } } } } carmetal-4.3/src/org/mozilla/javascript/NativeJavaPackage.java000066400000000000000000000160741417122252700245250ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Frank Mitchell * Mike Shaver * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; import java.util.HashSet; import java.util.Set; /** * This class reflects Java packages into the JavaScript environment. We * lazily reflect classes and subpackages, and use a caching/sharing * system to ensure that members reflected into one JavaPackage appear * in all other references to the same package (as with Packages.java.lang * and java.lang). * * @author Mike Shaver * @see NativeJavaArray * @see NativeJavaObject * @see NativeJavaClass */ public class NativeJavaPackage extends ScriptableObject { static final long serialVersionUID = 7445054382212031523L; NativeJavaPackage(boolean internalUsage, String packageName, ClassLoader classLoader) { this.packageName = packageName; this.classLoader = classLoader; } /** * @deprecated NativeJavaPackage is an internal class, do not use * it directly. */ public NativeJavaPackage(String packageName, ClassLoader classLoader) { this(false, packageName, classLoader); } /** * @deprecated NativeJavaPackage is an internal class, do not use * it directly. */ public NativeJavaPackage(String packageName) { this(false, packageName, Context.getCurrentContext().getApplicationClassLoader()); } @Override public String getClassName() { return "JavaPackage"; } @Override public boolean has(String id, Scriptable start) { return true; } @Override public boolean has(int index, Scriptable start) { return false; } @Override public void put(String id, Scriptable start, Object value) { // Can't add properties to Java packages. Sorry. } @Override public void put(int index, Scriptable start, Object value) { throw Context.reportRuntimeError0("msg.pkg.int"); } @Override public Object get(String id, Scriptable start) { return getPkgProperty(id, start, true); } @Override public Object get(int index, Scriptable start) { return NOT_FOUND; } // set up a name which is known to be a package so we don't // need to look for a class by that name NativeJavaPackage forcePackage(String name, Scriptable scope) { Object cached = super.get(name, this); if (cached != null && cached instanceof NativeJavaPackage) { return (NativeJavaPackage) cached; } else { String newPackage = packageName.length() == 0 ? name : packageName + "." + name; NativeJavaPackage pkg = new NativeJavaPackage(true, newPackage, classLoader); ScriptRuntime.setObjectProtoAndParent(pkg, scope); super.put(name, this, pkg); return pkg; } } synchronized Object getPkgProperty(String name, Scriptable start, boolean createPkg) { Object cached = super.get(name, start); if (cached != NOT_FOUND) return cached; if (negativeCache != null && negativeCache.contains(name)) { // Performance optimization: see bug 421071 return null; } String className = (packageName.length() == 0) ? name : packageName + '.' + name; Context cx = Context.getContext(); ClassShutter shutter = cx.getClassShutter(); Scriptable newValue = null; if (shutter == null || shutter.visibleToScripts(className)) { Class cl = null; if (classLoader != null) { cl = Kit.classOrNull(classLoader, className); } else { cl = Kit.classOrNull(className); } if (cl != null) { newValue = new NativeJavaClass(getTopLevelScope(this), cl); newValue.setPrototype(getPrototype()); } } if (newValue == null) { if (createPkg) { NativeJavaPackage pkg; pkg = new NativeJavaPackage(true, className, classLoader); ScriptRuntime.setObjectProtoAndParent(pkg, getParentScope()); newValue = pkg; } else { // add to negative cache if (negativeCache == null) negativeCache = new HashSet(); negativeCache.add(name); } } if (newValue != null) { // Make it available for fast lookup and sharing of // lazily-reflected constructors and static members. super.put(name, start, newValue); } return newValue; } @Override public Object getDefaultValue(Class ignored) { return toString(); } @Override public String toString() { return "[JavaPackage " + packageName + "]"; } @Override public boolean equals(Object obj) { if(obj instanceof NativeJavaPackage) { NativeJavaPackage njp = (NativeJavaPackage)obj; return packageName.equals(njp.packageName) && classLoader == njp.classLoader; } return false; } @Override public int hashCode() { return packageName.hashCode() ^ (classLoader == null ? 0 : classLoader.hashCode()); } private String packageName; private ClassLoader classLoader; private Set negativeCache = null; } carmetal-4.3/src/org/mozilla/javascript/NativeJavaTopPackage.java000066400000000000000000000154471417122252700252130ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Frank Mitchell * Mike Shaver * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class reflects Java packages into the JavaScript environment. We * lazily reflect classes and subpackages, and use a caching/sharing * system to ensure that members reflected into one JavaPackage appear * in all other references to the same package (as with Packages.java.lang * and java.lang). * * @author Mike Shaver * @see NativeJavaArray * @see NativeJavaObject * @see NativeJavaClass */ public class NativeJavaTopPackage extends NativeJavaPackage implements Function, IdFunctionCall { static final long serialVersionUID = -1455787259477709999L; // we know these are packages so we can skip the class check // note that this is ok even if the package isn't present. private static final String[][] commonPackages = { {"java", "lang", "reflect"}, {"java", "io"}, {"java", "math"}, {"java", "net"}, {"java", "util", "zip"}, {"java", "text", "resources"}, {"java", "applet"}, {"javax", "swing"} }; NativeJavaTopPackage(ClassLoader loader) { super(true, "", loader); } public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { return construct(cx, scope, args); } public Scriptable construct(Context cx, Scriptable scope, Object[] args) { ClassLoader loader = null; if (args.length != 0) { Object arg = args[0]; if (arg instanceof Wrapper) { arg = ((Wrapper)arg).unwrap(); } if (arg instanceof ClassLoader) { loader = (ClassLoader)arg; } } if (loader == null) { Context.reportRuntimeError0("msg.not.classloader"); return null; } return new NativeJavaPackage(true, "", loader); } public static void init(Context cx, Scriptable scope, boolean sealed) { ClassLoader loader = cx.getApplicationClassLoader(); final NativeJavaTopPackage top = new NativeJavaTopPackage(loader); top.setPrototype(getObjectPrototype(scope)); top.setParentScope(scope); for (int i = 0; i != commonPackages.length; i++) { NativeJavaPackage parent = top; for (int j = 0; j != commonPackages[i].length; j++) { parent = parent.forcePackage(commonPackages[i][j], scope); } } // getClass implementation IdFunctionObject getClass = new IdFunctionObject(top, FTAG, Id_getClass, "getClass", 1, scope); // We want to get a real alias, and not a distinct JavaPackage // with the same packageName, so that we share classes and top // that are underneath. String[] topNames = { "java", "javax", "org", "com", "edu", "net" }; NativeJavaPackage[] topPackages = new NativeJavaPackage[topNames.length]; for (int i=0; i < topNames.length; i++) { topPackages[i] = (NativeJavaPackage)top.get(topNames[i], top); } // It's safe to downcast here since initStandardObjects takes // a ScriptableObject. ScriptableObject global = (ScriptableObject) scope; if (sealed) { getClass.sealObject(); } getClass.exportAsScopeProperty(); global.defineProperty("Packages", top, ScriptableObject.DONTENUM); for (int i=0; i < topNames.length; i++) { global.defineProperty(topNames[i], topPackages[i], ScriptableObject.DONTENUM); } } public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { if (f.methodId() == Id_getClass) { return js_getClass(cx, scope, args); } } throw f.unknown(); } private Scriptable js_getClass(Context cx, Scriptable scope, Object[] args) { if (args.length > 0 && args[0] instanceof Wrapper) { Scriptable result = this; Class cl = ((Wrapper) args[0]).unwrap().getClass(); // Evaluate the class name by getting successive properties of // the string to find the appropriate NativeJavaClass object String name = cl.getName(); int offset = 0; for (;;) { int index = name.indexOf('.', offset); String propName = index == -1 ? name.substring(offset) : name.substring(offset, index); Object prop = result.get(propName, result); if (!(prop instanceof Scriptable)) break; // fall through to error result = (Scriptable) prop; if (index == -1) return result; offset = index+1; } } throw Context.reportRuntimeError0("msg.not.java.obj"); } private static final Object FTAG = "JavaTopPackage"; private static final int Id_getClass = 1; } carmetal-4.3/src/org/mozilla/javascript/NativeMath.java000066400000000000000000000366401417122252700232620ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the Math native object. * See ECMA 15.8. * @author Norris Boyd */ final class NativeMath extends IdScriptableObject { static final long serialVersionUID = -8838847185801131569L; private static final Object MATH_TAG = "Math"; static void init(Scriptable scope, boolean sealed) { NativeMath obj = new NativeMath(); obj.activatePrototypeMap(MAX_ID); obj.setPrototype(getObjectPrototype(scope)); obj.setParentScope(scope); if (sealed) { obj.sealObject(); } ScriptableObject.defineProperty(scope, "Math", obj, ScriptableObject.DONTENUM); } private NativeMath() { } @Override public String getClassName() { return "Math"; } @Override protected void initPrototypeId(int id) { if (id <= LAST_METHOD_ID) { String name; int arity; switch (id) { case Id_toSource: arity = 0; name = "toSource"; break; case Id_abs: arity = 1; name = "abs"; break; case Id_acos: arity = 1; name = "acos"; break; case Id_asin: arity = 1; name = "asin"; break; case Id_atan: arity = 1; name = "atan"; break; case Id_atan2: arity = 2; name = "atan2"; break; case Id_ceil: arity = 1; name = "ceil"; break; case Id_cos: arity = 1; name = "cos"; break; case Id_exp: arity = 1; name = "exp"; break; case Id_floor: arity = 1; name = "floor"; break; case Id_log: arity = 1; name = "log"; break; case Id_max: arity = 2; name = "max"; break; case Id_min: arity = 2; name = "min"; break; case Id_pow: arity = 2; name = "pow"; break; case Id_random: arity = 0; name = "random"; break; case Id_round: arity = 1; name = "round"; break; case Id_sin: arity = 1; name = "sin"; break; case Id_sqrt: arity = 1; name = "sqrt"; break; case Id_tan: arity = 1; name = "tan"; break; default: throw new IllegalStateException(String.valueOf(id)); } initPrototypeMethod(MATH_TAG, id, name, arity); } else { String name; double x; switch (id) { case Id_E: x = Math.E; name = "E"; break; case Id_PI: x = Math.PI; name = "PI"; break; case Id_LN10: x = 2.302585092994046; name = "LN10"; break; case Id_LN2: x = 0.6931471805599453; name = "LN2"; break; case Id_LOG2E: x = 1.4426950408889634; name = "LOG2E"; break; case Id_LOG10E: x = 0.4342944819032518; name = "LOG10E"; break; case Id_SQRT1_2: x = 0.7071067811865476; name = "SQRT1_2"; break; case Id_SQRT2: x = 1.4142135623730951; name = "SQRT2"; break; default: throw new IllegalStateException(String.valueOf(id)); } initPrototypeValue(id, name, ScriptRuntime.wrapNumber(x), DONTENUM | READONLY | PERMANENT); } } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(MATH_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } double x; int methodId = f.methodId(); switch (methodId) { case Id_toSource: return "Math"; case Id_abs: x = ScriptRuntime.toNumber(args, 0); // abs(-0.0) should be 0.0, but -0.0 < 0.0 == false x = (x == 0.0) ? 0.0 : (x < 0.0) ? -x : x; break; case Id_acos: case Id_asin: x = ScriptRuntime.toNumber(args, 0); if (x == x && -1.0 <= x && x <= 1.0) { x = (methodId == Id_acos) ? Math.acos(x) : Math.asin(x); } else { x = Double.NaN; } break; case Id_atan: x = ScriptRuntime.toNumber(args, 0); x = Math.atan(x); break; case Id_atan2: x = ScriptRuntime.toNumber(args, 0); x = Math.atan2(x, ScriptRuntime.toNumber(args, 1)); break; case Id_ceil: x = ScriptRuntime.toNumber(args, 0); x = Math.ceil(x); break; case Id_cos: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.cos(x); break; case Id_exp: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY) ? x : (x == Double.NEGATIVE_INFINITY) ? 0.0 : Math.exp(x); break; case Id_floor: x = ScriptRuntime.toNumber(args, 0); x = Math.floor(x); break; case Id_log: x = ScriptRuntime.toNumber(args, 0); // Java's log(<0) = -Infinity; we need NaN x = (x < 0) ? Double.NaN : Math.log(x); break; case Id_max: case Id_min: x = (methodId == Id_max) ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; for (int i = 0; i != args.length; ++i) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) { x = d; // NaN break; } if (methodId == Id_max) { // if (x < d) x = d; does not work due to -0.0 >= +0.0 x = Math.max(x, d); } else { x = Math.min(x, d); } } break; case Id_pow: x = ScriptRuntime.toNumber(args, 0); x = js_pow(x, ScriptRuntime.toNumber(args, 1)); break; case Id_random: x = Math.random(); break; case Id_round: x = ScriptRuntime.toNumber(args, 0); if (x == x && x != Double.POSITIVE_INFINITY && x != Double.NEGATIVE_INFINITY) { // Round only finite x long l = Math.round(x); if (l != 0) { x = l; } else { // We must propagate the sign of d into the result if (x < 0.0) { x = ScriptRuntime.negativeZero; } else if (x != 0.0) { x = 0.0; } } } break; case Id_sin: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.sin(x); break; case Id_sqrt: x = ScriptRuntime.toNumber(args, 0); x = Math.sqrt(x); break; case Id_tan: x = ScriptRuntime.toNumber(args, 0); x = Math.tan(x); break; default: throw new IllegalStateException(String.valueOf(methodId)); } return ScriptRuntime.wrapNumber(x); } // See Ecma 15.8.2.13 private double js_pow(double x, double y) { double result; if (y != y) { // y is NaN, result is always NaN result = y; } else if (y == 0) { // Java's pow(NaN, 0) = NaN; we need 1 result = 1.0; } else if (x == 0) { // Many differences from Java's Math.pow if (1 / x > 0) { result = (y > 0) ? 0 : Double.POSITIVE_INFINITY; } else { // x is -0, need to check if y is an odd integer long y_long = (long)y; if (y_long == y && (y_long & 0x1) != 0) { result = (y > 0) ? -0.0 : Double.NEGATIVE_INFINITY; } else { result = (y > 0) ? 0.0 : Double.POSITIVE_INFINITY; } } } else { result = Math.pow(x, y); if (result != result) { // Check for broken Java implementations that gives NaN // when they should return something else if (y == Double.POSITIVE_INFINITY) { if (x < -1.0 || 1.0 < x) { result = Double.POSITIVE_INFINITY; } else if (-1.0 < x && x < 1.0) { result = 0; } } else if (y == Double.NEGATIVE_INFINITY) { if (x < -1.0 || 1.0 < x) { result = 0; } else if (-1.0 < x && x < 1.0) { result = Double.POSITIVE_INFINITY; } } else if (x == Double.POSITIVE_INFINITY) { result = (y > 0) ? Double.POSITIVE_INFINITY : 0.0; } else if (x == Double.NEGATIVE_INFINITY) { long y_long = (long)y; if (y_long == y && (y_long & 0x1) != 0) { // y is odd integer result = (y > 0) ? Double.NEGATIVE_INFINITY : -0.0; } else { result = (y > 0) ? Double.POSITIVE_INFINITY : 0.0; } } } } return result; } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2004-03-17 13:51:32 CET L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 1: if (s.charAt(0)=='E') {id=Id_E; break L0;} break L; case 2: if (s.charAt(0)=='P' && s.charAt(1)=='I') {id=Id_PI; break L0;} break L; case 3: switch (s.charAt(0)) { case 'L': if (s.charAt(2)=='2' && s.charAt(1)=='N') {id=Id_LN2; break L0;} break L; case 'a': if (s.charAt(2)=='s' && s.charAt(1)=='b') {id=Id_abs; break L0;} break L; case 'c': if (s.charAt(2)=='s' && s.charAt(1)=='o') {id=Id_cos; break L0;} break L; case 'e': if (s.charAt(2)=='p' && s.charAt(1)=='x') {id=Id_exp; break L0;} break L; case 'l': if (s.charAt(2)=='g' && s.charAt(1)=='o') {id=Id_log; break L0;} break L; case 'm': c=s.charAt(2); if (c=='n') { if (s.charAt(1)=='i') {id=Id_min; break L0;} } else if (c=='x') { if (s.charAt(1)=='a') {id=Id_max; break L0;} } break L; case 'p': if (s.charAt(2)=='w' && s.charAt(1)=='o') {id=Id_pow; break L0;} break L; case 's': if (s.charAt(2)=='n' && s.charAt(1)=='i') {id=Id_sin; break L0;} break L; case 't': if (s.charAt(2)=='n' && s.charAt(1)=='a') {id=Id_tan; break L0;} break L; } break L; case 4: switch (s.charAt(1)) { case 'N': X="LN10";id=Id_LN10; break L; case 'c': X="acos";id=Id_acos; break L; case 'e': X="ceil";id=Id_ceil; break L; case 'q': X="sqrt";id=Id_sqrt; break L; case 's': X="asin";id=Id_asin; break L; case 't': X="atan";id=Id_atan; break L; } break L; case 5: switch (s.charAt(0)) { case 'L': X="LOG2E";id=Id_LOG2E; break L; case 'S': X="SQRT2";id=Id_SQRT2; break L; case 'a': X="atan2";id=Id_atan2; break L; case 'f': X="floor";id=Id_floor; break L; case 'r': X="round";id=Id_round; break L; } break L; case 6: c=s.charAt(0); if (c=='L') { X="LOG10E";id=Id_LOG10E; } else if (c=='r') { X="random";id=Id_random; } break L; case 7: X="SQRT1_2";id=Id_SQRT1_2; break L; case 8: X="toSource";id=Id_toSource; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; } // #/generated# return id; } private static final int Id_toSource = 1, Id_abs = 2, Id_acos = 3, Id_asin = 4, Id_atan = 5, Id_atan2 = 6, Id_ceil = 7, Id_cos = 8, Id_exp = 9, Id_floor = 10, Id_log = 11, Id_max = 12, Id_min = 13, Id_pow = 14, Id_random = 15, Id_round = 16, Id_sin = 17, Id_sqrt = 18, Id_tan = 19, LAST_METHOD_ID = 19; private static final int Id_E = LAST_METHOD_ID + 1, Id_PI = LAST_METHOD_ID + 2, Id_LN10 = LAST_METHOD_ID + 3, Id_LN2 = LAST_METHOD_ID + 4, Id_LOG2E = LAST_METHOD_ID + 5, Id_LOG10E = LAST_METHOD_ID + 6, Id_SQRT1_2 = LAST_METHOD_ID + 7, Id_SQRT2 = LAST_METHOD_ID + 8, MAX_ID = LAST_METHOD_ID + 8; // #/string_id_map# } carmetal-4.3/src/org/mozilla/javascript/NativeNumber.java000066400000000000000000000212571417122252700236170ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the Number native object. * * See ECMA 15.7. * * @author Norris Boyd */ final class NativeNumber extends IdScriptableObject { static final long serialVersionUID = 3504516769741512101L; private static final Object NUMBER_TAG = "Number"; private static final int MAX_PRECISION = 100; static void init(Scriptable scope, boolean sealed) { NativeNumber obj = new NativeNumber(0.0); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } private NativeNumber(double number) { doubleValue = number; } @Override public String getClassName() { return "Number"; } @Override protected void fillConstructorProperties(IdFunctionObject ctor) { final int attr = ScriptableObject.DONTENUM | ScriptableObject.PERMANENT | ScriptableObject.READONLY; ctor.defineProperty("NaN", ScriptRuntime.NaNobj, attr); ctor.defineProperty("POSITIVE_INFINITY", ScriptRuntime.wrapNumber(Double.POSITIVE_INFINITY), attr); ctor.defineProperty("NEGATIVE_INFINITY", ScriptRuntime.wrapNumber(Double.NEGATIVE_INFINITY), attr); ctor.defineProperty("MAX_VALUE", ScriptRuntime.wrapNumber(Double.MAX_VALUE), attr); ctor.defineProperty("MIN_VALUE", ScriptRuntime.wrapNumber(Double.MIN_VALUE), attr); super.fillConstructorProperties(ctor); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=1; s="toString"; break; case Id_toLocaleString: arity=1; s="toLocaleString"; break; case Id_toSource: arity=0; s="toSource"; break; case Id_valueOf: arity=0; s="valueOf"; break; case Id_toFixed: arity=1; s="toFixed"; break; case Id_toExponential: arity=1; s="toExponential"; break; case Id_toPrecision: arity=1; s="toPrecision"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(NUMBER_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(NUMBER_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); if (id == Id_constructor) { double val = (args.length >= 1) ? ScriptRuntime.toNumber(args[0]) : 0.0; if (thisObj == null) { // new Number(val) creates a new Number object. return new NativeNumber(val); } // Number(val) converts val to a number value. return ScriptRuntime.wrapNumber(val); } // The rest of Number.prototype methods require thisObj to be Number if (!(thisObj instanceof NativeNumber)) throw incompatibleCallError(f); double value = ((NativeNumber)thisObj).doubleValue; switch (id) { case Id_toString: case Id_toLocaleString: { // toLocaleString is just an alias for toString for now int base = (args.length == 0) ? 10 : ScriptRuntime.toInt32(args[0]); return ScriptRuntime.numberToString(value, base); } case Id_toSource: return "(new Number("+ScriptRuntime.toString(value)+"))"; case Id_valueOf: return ScriptRuntime.wrapNumber(value); case Id_toFixed: return num_to(value, args, DToA.DTOSTR_FIXED, DToA.DTOSTR_FIXED, -20, 0); case Id_toExponential: return num_to(value, args, DToA.DTOSTR_STANDARD_EXPONENTIAL, DToA.DTOSTR_EXPONENTIAL, 0, 1); case Id_toPrecision: return num_to(value, args, DToA.DTOSTR_STANDARD, DToA.DTOSTR_PRECISION, 1, 0); default: throw new IllegalArgumentException(String.valueOf(id)); } } @Override public String toString() { return ScriptRuntime.numberToString(doubleValue, 10); } private static String num_to(double val, Object[] args, int zeroArgMode, int oneArgMode, int precisionMin, int precisionOffset) { int precision; if (args.length == 0) { precision = 0; oneArgMode = zeroArgMode; } else { /* We allow a larger range of precision than ECMA requires; this is permitted by ECMA. */ precision = ScriptRuntime.toInt32(args[0]); if (precision < precisionMin || precision > MAX_PRECISION) { String msg = ScriptRuntime.getMessage1( "msg.bad.precision", ScriptRuntime.toString(args[0])); throw ScriptRuntime.constructError("RangeError", msg); } } StringBuffer sb = new StringBuffer(); DToA.JS_dtostr(sb, oneArgMode, precision + precisionOffset, val); return sb.toString(); } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-05-09 08:15:50 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 7: c=s.charAt(0); if (c=='t') { X="toFixed";id=Id_toFixed; } else if (c=='v') { X="valueOf";id=Id_valueOf; } break L; case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L; case 11: c=s.charAt(0); if (c=='c') { X="constructor";id=Id_constructor; } else if (c=='t') { X="toPrecision";id=Id_toPrecision; } break L; case 13: X="toExponential";id=Id_toExponential; break L; case 14: X="toLocaleString";id=Id_toLocaleString; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toLocaleString = 3, Id_toSource = 4, Id_valueOf = 5, Id_toFixed = 6, Id_toExponential = 7, Id_toPrecision = 8, MAX_PROTOTYPE_ID = 8; // #/string_id_map# private double doubleValue; } carmetal-4.3/src/org/mozilla/javascript/NativeObject.java000066400000000000000000000301751417122252700235740ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Bob Jervis * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * This class implements the Object native object. * See ECMA 15.2. * @author Norris Boyd */ public class NativeObject extends IdScriptableObject { static final long serialVersionUID = -6345305608474346996L; private static final Object OBJECT_TAG = "Object"; static void init(Scriptable scope, boolean sealed) { NativeObject obj = new NativeObject(); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } @Override public String getClassName() { return "Object"; } @Override public String toString() { return ScriptRuntime.defaultObjectToString(this); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_toLocaleString: arity=0; s="toLocaleString"; break; case Id_valueOf: arity=0; s="valueOf"; break; case Id_hasOwnProperty: arity=1; s="hasOwnProperty"; break; case Id_propertyIsEnumerable: arity=1; s="propertyIsEnumerable"; break; case Id_isPrototypeOf: arity=1; s="isPrototypeOf"; break; case Id_toSource: arity=0; s="toSource"; break; case Id___defineGetter__: arity=2; s="__defineGetter__"; break; case Id___defineSetter__: arity=2; s="__defineSetter__"; break; case Id___lookupGetter__: arity=1; s="__lookupGetter__"; break; case Id___lookupSetter__: arity=1; s="__lookupSetter__"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(OBJECT_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(OBJECT_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case Id_constructor: { if (thisObj != null) { // BaseFunction.construct will set up parent, proto return f.construct(cx, scope, args); } if (args.length == 0 || args[0] == null || args[0] == Undefined.instance) { return new NativeObject(); } return ScriptRuntime.toObject(cx, scope, args[0]); } case Id_toLocaleString: // For now just alias toString case Id_toString: { if (cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE)) { String s = ScriptRuntime.defaultObjectToSource(cx, scope, thisObj, args); int L = s.length(); if (L != 0 && s.charAt(0) == '(' && s.charAt(L - 1) == ')') { // Strip () that surrounds toSource s = s.substring(1, L - 1); } return s; } return ScriptRuntime.defaultObjectToString(thisObj); } case Id_valueOf: return thisObj; case Id_hasOwnProperty: { boolean result; if (args.length == 0) { result = false; } else { String s = ScriptRuntime.toStringIdOrIndex(cx, args[0]); if (s == null) { int index = ScriptRuntime.lastIndexResult(cx); result = thisObj.has(index, thisObj); } else { result = thisObj.has(s, thisObj); } } return ScriptRuntime.wrapBoolean(result); } case Id_propertyIsEnumerable: { boolean result; if (args.length == 0) { result = false; } else { String s = ScriptRuntime.toStringIdOrIndex(cx, args[0]); if (s == null) { int index = ScriptRuntime.lastIndexResult(cx); result = thisObj.has(index, thisObj); if (result && thisObj instanceof ScriptableObject) { ScriptableObject so = (ScriptableObject)thisObj; int attrs = so.getAttributes(index); result = ((attrs & ScriptableObject.DONTENUM) == 0); } } else { result = thisObj.has(s, thisObj); if (result && thisObj instanceof ScriptableObject) { ScriptableObject so = (ScriptableObject)thisObj; int attrs = so.getAttributes(s); result = ((attrs & ScriptableObject.DONTENUM) == 0); } } } return ScriptRuntime.wrapBoolean(result); } case Id_isPrototypeOf: { boolean result = false; if (args.length != 0 && args[0] instanceof Scriptable) { Scriptable v = (Scriptable) args[0]; do { v = v.getPrototype(); if (v == thisObj) { result = true; break; } } while (v != null); } return ScriptRuntime.wrapBoolean(result); } case Id_toSource: return ScriptRuntime.defaultObjectToSource(cx, scope, thisObj, args); case Id___defineGetter__: case Id___defineSetter__: { if (args.length < 2 || !(args[1] instanceof Callable)) { Object badArg = (args.length >= 2 ? args[1] : Undefined.instance); throw ScriptRuntime.notFunctionError(badArg); } if (!(thisObj instanceof ScriptableObject)) { throw Context.reportRuntimeError2( "msg.extend.scriptable", thisObj.getClass().getName(), String.valueOf(args[0])); } ScriptableObject so = (ScriptableObject)thisObj; String name = ScriptRuntime.toStringIdOrIndex(cx, args[0]); int index = (name != null ? 0 : ScriptRuntime.lastIndexResult(cx)); Callable getterOrSetter = (Callable)args[1]; boolean isSetter = (id == Id___defineSetter__); so.setGetterOrSetter(name, index, getterOrSetter, isSetter); if (so instanceof NativeArray) ((NativeArray)so).setDenseOnly(false); } return Undefined.instance; case Id___lookupGetter__: case Id___lookupSetter__: { if (args.length < 1 || !(thisObj instanceof ScriptableObject)) return Undefined.instance; ScriptableObject so = (ScriptableObject)thisObj; String name = ScriptRuntime.toStringIdOrIndex(cx, args[0]); int index = (name != null ? 0 : ScriptRuntime.lastIndexResult(cx)); boolean isSetter = (id == Id___lookupSetter__); Object gs; for (;;) { gs = so.getGetterOrSetter(name, index, isSetter); if (gs != null) break; // If there is no getter or setter for the object itself, // how about the prototype? Scriptable v = so.getPrototype(); if (v == null) break; if (v instanceof ScriptableObject) so = (ScriptableObject)v; else break; } if (gs != null) return gs; } return Undefined.instance; default: throw new IllegalArgumentException(String.valueOf(id)); } } // #string_id_map# @Override protected int findPrototypeId(String s) { int id; // #generated# Last update: 2007-05-09 08:15:55 EDT L0: { id = 0; String X = null; int c; L: switch (s.length()) { case 7: X="valueOf";id=Id_valueOf; break L; case 8: c=s.charAt(3); if (c=='o') { X="toSource";id=Id_toSource; } else if (c=='t') { X="toString";id=Id_toString; } break L; case 11: X="constructor";id=Id_constructor; break L; case 13: X="isPrototypeOf";id=Id_isPrototypeOf; break L; case 14: c=s.charAt(0); if (c=='h') { X="hasOwnProperty";id=Id_hasOwnProperty; } else if (c=='t') { X="toLocaleString";id=Id_toLocaleString; } break L; case 16: c=s.charAt(2); if (c=='d') { c=s.charAt(8); if (c=='G') { X="__defineGetter__";id=Id___defineGetter__; } else if (c=='S') { X="__defineSetter__";id=Id___defineSetter__; } } else if (c=='l') { c=s.charAt(8); if (c=='G') { X="__lookupGetter__";id=Id___lookupGetter__; } else if (c=='S') { X="__lookupSetter__";id=Id___lookupSetter__; } } break L; case 20: X="propertyIsEnumerable";id=Id_propertyIsEnumerable; break L; } if (X!=null && X!=s && !X.equals(s)) id = 0; break L0; } // #/generated# return id; } private static final int Id_constructor = 1, Id_toString = 2, Id_toLocaleString = 3, Id_valueOf = 4, Id_hasOwnProperty = 5, Id_propertyIsEnumerable = 6, Id_isPrototypeOf = 7, Id_toSource = 8, Id___defineGetter__ = 9, Id___defineSetter__ = 10, Id___lookupGetter__ = 11, Id___lookupSetter__ = 12, MAX_PROTOTYPE_ID = 12; // #/string_id_map# } carmetal-4.3/src/org/mozilla/javascript/NativeScript.java000066400000000000000000000156301417122252700236310ustar00rootroot00000000000000/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Rhino code, released * May 6, 1999. * * The Initial Developer of the Original Code is * Netscape Communications Corporation. * Portions created by the Initial Developer are Copyright (C) 1997-1999 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Norris Boyd * Igor Bukanov * Roger Lawrence * Mike McCabe * * Alternatively, the contents of this file may be used under the terms of * the GNU General Public License Version 2 or later (the "GPL"), in which * case the provisions of the GPL are applicable instead of those above. If * you wish to allow use of your version of this file only under the terms of * the GPL and not to allow others to use your version of this file under the * MPL, indicate your decision by deleting the provisions above and replacing * them with the notice and other provisions required by the GPL. If you do * not delete the provisions above, a recipient may use your version of this * file under either the MPL or the GPL. * * ***** END LICENSE BLOCK ***** */ package org.mozilla.javascript; /** * The JavaScript Script object. * * Note that the C version of the engine uses XDR as the format used * by freeze and thaw. Since this depends on the internal format of * structures in the C runtime, we cannot duplicate it. * * Since we cannot replace 'this' as a result of the compile method, * will forward requests to execute to the nonnull 'script' field. * * @since 1.3 * @author Norris Boyd */ class NativeScript extends BaseFunction { static final long serialVersionUID = -6795101161980121700L; private static final Object SCRIPT_TAG = "Script"; static void init(Scriptable scope, boolean sealed) { NativeScript obj = new NativeScript(null); obj.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed); } private NativeScript(Script script) { this.script = script; } /** * Returns the name of this JavaScript class, "Script". */ @Override public String getClassName() { return "Script"; } @Override public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (script != null) { return script.exec(cx, scope); } return Undefined.instance; } @Override public Scriptable construct(Context cx, Scriptable scope, Object[] args) { throw Context.reportRuntimeError0("msg.script.is.not.constructor"); } @Override public int getLength() { return 0; } @Override public int getArity() { return 0; } @Override String decompile(int indent, int flags) { if (script instanceof NativeFunction) { return ((NativeFunction)script).decompile(indent, flags); } return super.decompile(indent, flags); } @Override protected void initPrototypeId(int id) { String s; int arity; switch (id) { case Id_constructor: arity=1; s="constructor"; break; case Id_toString: arity=0; s="toString"; break; case Id_exec: arity=0; s="exec"; break; case Id_compile: arity=1; s="compile"; break; default: throw new IllegalArgumentException(String.valueOf(id)); } initPrototypeMethod(SCRIPT_TAG, id, s, arity); } @Override public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (!f.hasTag(SCRIPT_TAG)) { return super.execIdCall(f, cx, scope, thisObj, args); } int id = f.methodId(); switch (id) { case Id_constructor: { String source = (args.length == 0) ? "" : ScriptRuntime.toString(args[0]); Script script = compile(cx, source); NativeScript nscript = new NativeScript(script); ScriptRuntime.setObjectProtoAndParent(nscript, scope); return nscript; } case Id_toString: { NativeScript real = realThis(thisObj, f); Script realScript = real.script; if (realScript == null) { return ""; } return cx.decompileScript(realScript, 0); } case Id_exec: { throw Context.reportRuntimeError1( "msg.cant.call.indirect", "exec"); } case Id_compile: { NativeScript real = realThis(thisObj, f); String source = ScriptRuntime.toString(args, 0); real.script = compile(cx, source); return real; } } throw new IllegalArgumentException(String.valueOf(id)); } private static NativeScript realThis(Scriptable thisObj, IdFunctionObject f) { if (!(thisObj instanceof NativeScript)) throw incompatibleCallError(f); return (NativeScript)thisObj; } private static Script compile(Context cx, String source) { int[] linep = { 0 }; String filename = Context.getSourcePositionFromStack(linep); if (filename == null) { filename = "