debian/0000755000000000000000000000000011651070541007166 5ustar debian/changelog0000644000000000000000000000375411651071533011053 0ustar libskinlf-java (6.7-8) unstable; urgency=low * Team upload. * Switch to default-jdk. (Closes: #643536). * Bump Standards-Version to 3.9.2. No changes were required. * Fix Vcs-* fields. -- Miguel Landaeta Sun, 23 Oct 2011 12:32:42 -0430 libskinlf-java (6.7-7) unstable; urgency=low * Switch to debhelper level 7. * Update Standards-Version: 3.9.1. * Remove Java runtime from Depends. * Switch to source format 3.0. -- Torsten Werner Mon, 29 Aug 2011 23:43:34 +0200 libskinlf-java (6.7-6) unstable; urgency=low * Change of my email address since I am now DD * Standards-Version updated to 3.8.3 * DM-Upload-Allowed removed * openjdk-6-jdk => default-jdk -- Sylvestre Ledru Fri, 27 Nov 2009 10:37:44 +0100 libskinlf-java (6.7-5) unstable; urgency=low [ Sylvestre Ledru ] * Build with openjdk instead of gcj [ Torsten Werner ] * Change Maintainer: Debian Java Maintainers. * Change Section: java. * Add missing Depends: ${misc:Depends}. * Update Standards-Version: 3.8.2 (no changes). -- Torsten Werner Mon, 29 Jun 2009 20:30:52 +0200 libskinlf-java (6.7-4) unstable; urgency=low * Lintian warning removed (refers to the file /usr/share/common-licenses/Apache-2.0) * Updated to Standards-Version: 3.8.0 -- Sylvestre Ledru Wed, 25 Jun 2008 10:37:14 +0200 libskinlf-java (6.7-3) unstable; urgency=low * Add DM-Upload-Allowed: yes to enable uploads by Sylvestre. -- Torsten Werner Tue, 29 Apr 2008 20:37:18 +0200 libskinlf-java (6.7-2) unstable; urgency=low * Updated to Standards-Version: 3.7.3 (no changes needed). * Update of the descriptions to make lintian happy. -- Sylvestre Ledru Sat, 22 Dec 2007 12:56:27 +0100 libskinlf-java (6.7-1) unstable; urgency=low * Initial Release (Closes: #454652) -- Sylvestre Ledru Sun, 30 Sep 2007 00:32:33 +0100 debian/build.xml0000644000000000000000000002522011651070541011010 0ustar ]> &build-COMMON;
debian/libskinlf-java-demo.examples0000644000000000000000000000001711651070541014542 0ustar src/examples/* debian/orig-tar.sh0000755000000000000000000000061211651070541011250 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' DIR=skinlf-$2 TAR=../libskinlf-java_$2.orig.tar.gz # clean up the upstream tarball unzip $3 tar -c -z -f $TAR --exclude '*.jar' --exclude '*.dll' $DIR rm -rf $DIR $3 # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi exit 0 debian/control0000644000000000000000000000367311651070541010602 0ustar Source: libskinlf-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Sylvestre Ledru , Torsten Werner Build-Depends: debhelper (>= 7), cdbs, ant, ant-optional, default-jdk, liblaf-plugin-java, libxalan2-java, imagemagick Standards-Version: 3.9.2 Homepage: http://skinlf.l2fprod.com Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libskinlf-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libskinlf-java/ Package: libskinlf-java Architecture: all Depends: liblaf-plugin-java, libxalan2-java, ${misc:Depends} Suggests: libskinlf-java-demo Description: Skin Look and Feel - Skinning Engine for the Swing toolkit Skin Look And Feel allows Java developers to write skinnable application using the Swing toolkit. Skin Look And Feel is able to load themepacks (a bundle of GTK+ - The Gimp Toolkit - and KDE - The K Desktop Environment - skins) to enhance your application GUI controls such as Buttons, Checks, Radios, Scrollbars, Progress Bar, Lists, Tables, Internal Frames, Colors, Background Textures, Regular Windows. . Skin Look And Feel (aka SkinLF) also includes NativeSkin to create irregular windows. Package: libskinlf-java-demo Architecture: all Depends: libskinlf-java, ${misc:Depends} Description: Swing Java docking framework - demos and examples Skin Look And Feel allows Java developers to write skinnable application using the Swing toolkit. Skin Look And Feel is able to load themepacks (a bundle of GTK+ - The Gimp Toolkit - and KDE - The K Desktop Environment - skins) to enhance your application GUI controls such as Buttons, Checks, Radios, Scrollbars, Progress Bar, Lists, Tables, Internal Frames, Colors, Background Textures, Regular Windows. . Skin Look And Feel (aka SkinLF) also includes NativeSkin to create irregular windows. . This package contains the examples and demonstration files. debian/compat0000644000000000000000000000000211651070541010364 0ustar 7 debian/patches/0000755000000000000000000000000011651070537010622 5ustar debian/patches/image-utils-without-jimi.patch0000644000000000000000000000566011651070537016521 0ustar Index: libskinlf-java-6.7/src/com/l2fprod/tools/ImageUtils.java =================================================================== --- libskinlf-java-6.7.orig/src/com/l2fprod/tools/ImageUtils.java 2006-07-22 13:46:18.000000000 +0200 +++ libskinlf-java-6.7/src/com/l2fprod/tools/ImageUtils.java 2011-08-29 23:42:22.000000000 +0200 @@ -6,15 +6,12 @@ import javax.swing.ImageIcon; -import com.ibm.imageconversion.*; -import com.sun.jimi.core.*; +import javax.imageio.*; public class ImageUtils { public static Component bitmapCreator = new javax.swing.JLabel(); - static BMPDecoder decoder = new BMPDecoder(); - static BMPEncoder encoder = new BMPEncoder(); public static Image loadPng(String pathToImage) throws Exception { ImageIcon icon = new ImageIcon(new File(pathToImage).toURL()); @@ -22,29 +19,33 @@ } public static void savePng(Image image, String pathToImage) throws Exception { - Jimi.putImage(image, pathToImage); + ImageIO.write((RenderedImage)image, "png", new File(pathToImage)); } + private static String getFileFmt(String pathToImage) throws Exception { + String fmt; + if (pathToImage.toLowerCase().endsWith(".png")) { + return "png"; + } + if (pathToImage.toLowerCase().endsWith(".gif")) { + return "gif"; + } + if (pathToImage.toLowerCase().endsWith(".bmp")) { + return "bmp"; + } + return ""; + } + public static void createPicture(String pathToImage, int index, int maxParts, String filename, boolean horizontal) { try { System.out.println("working with " + pathToImage); Image image = null; - - if (pathToImage.toLowerCase().endsWith(".png") || - pathToImage.toLowerCase().endsWith(".gif")) { - image = loadPng(pathToImage); - } else if (pathToImage.toLowerCase().endsWith(".bmp")) { - decoder.setInputFilename(pathToImage); - decoder.triggerAction(); - image = decoder.getResult(); - } else { - throw new Error("do not know how to load " + pathToImage); - } + image = Toolkit.getDefaultToolkit().getImage(pathToImage); // if only one image, dump it as it - if (index == 0 && maxParts == 1) { - Jimi.putImage(image, filename); + if (index == 0 && maxParts == 1) { + ImageIO.write((RenderedImage)image, getFileFmt(pathToImage), new File(pathToImage)); } else { if (horizontal) { int partHeight = image.getHeight(bitmapCreator) / maxParts; @@ -55,7 +56,7 @@ image = grab(image, partWidth * index, 0, partWidth, image.getHeight(bitmapCreator)); } - Jimi.putImage(image, filename); + ImageIO.write((RenderedImage)image, getFileFmt(pathToImage), new File(pathToImage)); } } catch (Exception e) { System.out.println("error while working with " + pathToImage); debian/patches/series0000644000000000000000000000006211651070537012035 0ustar GtkParser.jj.patch image-utils-without-jimi.patch debian/patches/GtkParser.jj.patch0000644000000000000000000003012411651070537014147 0ustar Index: libskinlf-java-6.7/src/com/l2fprod/gui/plaf/skin/impl/gtk/parser/GtkParser.jj =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ libskinlf-java-6.7/src/com/l2fprod/gui/plaf/skin/impl/gtk/parser/GtkParser.jj 2011-08-29 23:42:10.000000000 +0200 @@ -0,0 +1,405 @@ +PARSER_BEGIN(GtkParser) + +/* ==================================================================== + * + * @PROJECT.FULLNAME@ @VERSION@ License. + * + * Copyright (c) @YEAR@ L2FProd.com. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, if + * any, must include the following acknowlegement: + * "This product includes software developed by L2FProd.com + * (http://www.L2FProd.com/)." + * Alternately, this acknowlegement may appear in the software itself, + * if and wherever such third-party acknowlegements normally appear. + * + * 4. The names "@PROJECT.FULLNAME@", "SkinLF" and "L2FProd.com" must not + * be used to endorse or promote products derived from this software + * without prior written permission. For written permission, please + * contact info@L2FProd.com. + * + * 5. Products derived from this software may not be called "SkinLF" + * nor may "SkinLF" appear in their names without prior written + * permission of L2FProd.com. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL L2FPROD.COM OR ITS CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + */ +package com.l2fprod.gui.plaf.skin.impl.gtk.parser; + +import java.io.File; +import java.io.FileInputStream; +import java.net.URL; +import java.util.Hashtable; +import java.util.Enumeration; +import com.l2fprod.gui.plaf.skin.impl.gtk.*; +import com.l2fprod.gui.plaf.skin.*; + +public class GtkParser { + + Hashtable styleTable, classTable; + URL directory; + + public static void main(String[] args) throws Exception { + GtkParser parser = new GtkParser(new FileInputStream(args[0])); + parser.buildStructure(); + } + + + public GtkParser(String filename) throws Exception { + this(new File(filename)); + } + + public GtkParser(File file) throws Exception { + this(SkinUtils.toURL(file)); + } + + public GtkParser(URL url) throws Exception { + this(url.openStream()); + directory = url; + /* String urlpath = url.toString(); + int index = urlpath.lastIndexOf("/"); + + if (index != -1) + directory = new URL(urlpath.substring(0, index) + "/"); + else + directory = new URL(urlpath + "/../"); + */ + //PENDING(fred): we could use directly the URL given because it could act as an url context... + // need testing... + } + + public URL getDirectory() { + return directory; + } + + /** + * Sets the Directory attribute of the GtkParser object + * + * @param dir The new Directory value + */ + public void setDirectory(URL dir) { + directory = dir; + } + + public Hashtable getStyles() { + return styleTable; + } + + public Hashtable getClasses() { + return classTable; + } + + public GtkStyle getStyle(String name) { + return (GtkStyle)getStyles().get(name); + } + + public GtkClass getClass(String name) { + return (GtkClass)getClasses().get(name); + } + +} + +PARSER_END(GtkParser) + +SKIP: { " " | "\t" | "\n" | "\r" | "\f" } + +MORE : +{ + "#" : IN_SINGLE_LINE_COMMENT + | + <"/**" ~["/"]> { input_stream.backup(1); } : IN_FORMAL_COMMENT + | + "/*" : IN_MULTI_LINE_COMMENT + } + + SPECIAL_TOKEN : +{ + : DEFAULT + } + + + SPECIAL_TOKEN : +{ + : DEFAULT + } + + + SPECIAL_TOKEN : +{ + : DEFAULT + } + + + MORE : +{ + < ~[] > + } + +TOKEN : +{ +< DECIMAL_LITERAL: ((["0"-"9"])+ ("."(["0"-"9"])+)? )> +| < STRING_LITERAL: + "\"" + ( (~["\"","\\","\n","\r"]) + | ("\\" + ( ["n","t","b","r","f","\\","'","\""] + | ["0"-"7"] ( ["0"-"7"] )? + | ["0"-"3"] ["0"-"7"] ["0"-"7"] + ) + ) + )* + "\"" + > +} + +TOKEN: { + + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | + | +} + +TOKEN: { + +| +| +| +| +} + +TOKEN: { + + | + | + | + | +} + +TOKEN: { + + | + | + | < PROPERTY_KEY: ( (["a"-"z"])+ )> +} + +void buildStructure(): { + styleTable = new Hashtable(); + classTable = new Hashtable(); +} { + (styleDefinition() + | classDefinition() + | whatever() + | widgetClassDefinition() + | widgetDefinition())* + { + for (Enumeration e = getClasses().keys(); e.hasMoreElements(); ) { + Object key = e.nextElement(); + GtkClass clas = (GtkClass)getClasses().get(key); + for (int i = 0, c = clas.styles.size(); i < c; i++) + clas.styles.(i,(GtkStyle)getStyles().get(clas.styles.elementAt(i))); + } + } + +} + +void whatever(): { +} { + readString() +} + +void widgetClassDefinition(): { +} { + readString()