diff options
Diffstat (limited to 'src/swing/doc')
-rw-r--r-- | src/swing/doc/README | 39 | ||||
-rw-r--r-- | src/swing/doc/build.xml | 83 |
2 files changed, 0 insertions, 122 deletions
diff --git a/src/swing/doc/README b/src/swing/doc/README deleted file mode 100644 index cdfee01f82..0000000000 --- a/src/swing/doc/README +++ /dev/null @@ -1,39 +0,0 @@ -scala.swing BETA - -This is a UI library that will wrap most of Java Swing for Scala in a straightforward manner. -The widget class hierarchy loosely resembles that of Java Swing. The main differences are: - - In Java Swing all components are containers per default. This doesn't make much sense for - a number of components, like TextField, CheckBox, RadioButton, and so on. Our guess is that - this architecture was chosen because Java lacks multiple inheritance. - In scala.swing, components that can have child components extend the Container trait. - - Layout managers and panels are coupled. There is no way to exchange the layout manager - of a panel. As a result, the layout constraints for widgets can be typed. - (Note that you gain more type-safety and don't loose much flexibility here. Besides - being not a common operation, exchanging the layout manager of a panel in Java - Swing almost always leads to exchanging the layout constraints for every of the panel's - child component. In the end, it is not more work to move all children to a newly created - panel.) - - The event system. TODO - - -The library comprises three main packages: - - scala.swing - All widget classes and traits. - - scala.swing.event - The event hierarchy. - - scala.swing.test - A set of demos. - - -Notes: - -Visual appearance of combo boxes using the GTK LaF is broken on JDKs < 1.7b30. -This is a Java Swing problem. - -To download the latest version, go to http://lamp.epfl.ch/~imaier or use sbaz. diff --git a/src/swing/doc/build.xml b/src/swing/doc/build.xml deleted file mode 100644 index 20e141152b..0000000000 --- a/src/swing/doc/build.xml +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<project name="swing" default="build"> - - <property name="scala.home" value="${user.home}/apps/scala-recent"/> - - <property file="swing/swing.version.properties"/> - <property name="version" value="${version.major}.${version.minor}"/> - - <taskdef - resource="scala/tools/ant/antlib.xml"> - <classpath> - <pathelement location="${scala.home}/lib/scala-compiler.jar"/> - <pathelement location="${scala.home}/lib/scala-library.jar"/> - <pathelement location="${scala.home}/lib/junit.jar"/> - </classpath> - </taskdef> - - - <target name="build"> - <mkdir dir="build/build.main"/> - <scalac srcdir="swing" - destdir="build/build.main"> - <classpath> - <pathelement location="${scala.home}/lib/scala-library.jar"/> - <pathelement location="${scala.home}/lib/scala-compiler.jar"/> - </classpath> - <include name="**/*.scala"/> - </scalac> - - <jar destfile="build/scala-swing.jar"> - <fileset dir="build/build.main"/> - <fileset file="swing.version.properties"/> - </jar> - <jar destfile="build/scala-swing-src.jar" - basedir="swing" - includes="**/*.scala" - /> - </target> - - <!--<target name="build.tests" depends="build"> - <mkdir dir="build/build.tests"/> - <scalac srcdir="tests" destdir="build/build.tests"> - <classpath> - <pathelement location="${scala.home}/lib/scala-library.jar"/> - <pathelement location="${scala.home}/lib/scala-compiler.jar"/> - <pathelement location="${scala.home}/lib/junit.jar"/> - <pathelement location="build/swing.jar"/> - </classpath> - </scalac> - - <jar destfile="build/swing-tests.jar" basedir="build/build.tests"/> - </target>--> - - <target name="dist" depends="build"> - <mkdir dir="build"/> - <sbaz file="build/scala-swing-${version}.sbp" - adfile="build/scala-swing-${version}.advert" - name="scala-swing" - version="${version}" - depends="scala" - desc="A Scala Swing library" - link="http://scala.epfl.ch/downloads/packages/scala-swing-${version}.sbp"> - <libset dir="build" includes="scala-swing.jar"/> - <libset dir="build" includes="scala-swing-tests.jar"/> - <srcset dir="build" includes="scala-swing-src.jar"/> - <docset dir="swing/doc" includes="Manual.txt"/> - </sbaz> - </target> - - <target name="install" depends="dist"> - <exec executable="sbaz"> - <arg line="-v install -f build/scala-swing-${version}.sbp"/> - </exec> - </target> - - <target name="clean"> - <delete dir="build" - includeemptydirs="yes" - quiet="yes" - failonerror="no"/> - </target> -</project> |