// Path: src/net/i2p/itoopie/ItoopieVersion.java
// public class ItoopieVersion {
// 
// 	/** Version of itoopie */
// 	public static final String VERSION = "0.0.4";
// 
// 	/** Version of the I2PControl API implemented */
// 	public static final int I2PCONTROL_API_VERSION = 1; 
// }
// 
// Path: src/net/i2p/itoopie/gui/component/MultiLineLabel.java
// public class MultiLineLabel extends JLabel {
// 
//     /** Default serial version UID. */
//     private static final long serialVersionUID = 1L;
// 
//     /** Horizontal text alignment. */
//     private int halign = LEFT;
// 
//     /** Vertical text alignment. */
//     private int valign = CENTER;
// 
//     /** Cache to save heap allocations. */
//     private Rectangle bounds;
// 
//     /**
//      * Creates a new empty label.
//      */
//     public MultiLineLabel() {
//         super();
//         setUI(MultiLineLabelUI.labelUI);
//     }
// 
//     /**
//      * Creates a new label with <code>text</code> value.
//      * 
//      * @param text
//      *            the value of the label
//      */
//     public MultiLineLabel(String text) {
//         this();
//         setText(text);
//     }
// 
//     /** {@inheritDoc} */
//     public Rectangle getBounds() {
//         if (bounds == null) {
//             bounds = new Rectangle();
//         }
//         return super.getBounds(bounds);
//     }
// 
//     /**
//      * Set the vertical text alignment.
//      * 
//      * @param alignment
//      *            vertical alignment
//      */
//     public void setVerticalTextAlignment(int alignment) {
//         firePropertyChange("verticalTextAlignment", valign, alignment);
//         valign = alignment;
//     }
// 
//     /**
//      * Set the horizontal text alignment.
//      * 
//      * @param alignment
//      *            horizontal alignment
//      */
//     public void setHorizontalTextAlignment(int alignment) {
//         firePropertyChange("horizontalTextAlignment", halign, alignment);
//         halign = alignment;
//     }
// 
//     /**
//      * Get the vertical text alignment.
//      * 
//      * @return vertical text alignment
//      */
//     public int getVerticalTextAlignment() {
//         return valign;
//     }
// 
//     /**
//      * Get the horizontal text alignment.
//      * 
//      * @return horizontal text alignment
//      */
//     public int getHorizontalTextAlignment() {
//         return halign;
//     }
// }
// 
// Path: src/net/i2p/itoopie/gui/component/TabLogoPanel.java
// public abstract class TabLogoPanel extends LogoPanel {
// 	
// 	private static final long serialVersionUID = 4526458659908868337L;
// 
// 	public TabLogoPanel(String imageName) {
// 		super(imageName);
// 	}
// 
// 	public abstract void onTabFocus(ChangeEvent e);
// 
// 	public void destroy() {};
// }
// 
// Path: src/net/i2p/itoopie/i18n/Transl.java
// public class Transl {
//     
//     public static final String BUNDLE_NAME = "net.i2p.itoopie.messages";
//      
//     
//     public static String _t(String s) {
//         return Translate.getString(s, BUNDLE_NAME);
//     }
// 
//     
//     /**
//      *  translate a string with a parameter
//      *  This is a lot more expensive than getString(s, ctx), so use sparingly.
//      *
//      *  @param s string to be translated containing {0}
//      *    The {0} will be replaced by the parameter.
//      *    Single quotes must be doubled, i.e. ' -> '' in the string.
//      *  @param o parameter, not translated.
//      *    To tranlslate parameter also, use _t("foo {0} bar", _t("baz"))
//      *    Do not double the single quotes in the parameter.
//      *    Use autoboxing to call with ints, longs, floats, etc.
//      */
//     public static String _t(String s, Object o) {
//         return Translate.getString(s, o, BUNDLE_NAME);
//     }
//     
//     /** for {0} and {1} */
//     public static String _t(String s, Object o, Object o2){
//     	return Translate.getString(s, o, o2, BUNDLE_NAME);
//     }
//     
//     /**
//      *  Use GNU ngettext
//      *  For .po file format see http://www.gnu.org/software/gettext/manual/gettext.html.gz#Translating-plural-forms
//      *
//      *  @param n how many
//      *  @param s singluar string, optionally with {0} e.g. "one tunnel"
//      *  @param p plural string optionally with {0} e.g. "{0} tunnels"
//      */
//     public static String _t(int n, String s, String p) {
//     	return Translate.getString( n, s, p, BUNDLE_NAME);
//     }
// 	
// }


import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.event.ChangeEvent;
import net.i2p.itoopie.ItoopieVersion;
import net.i2p.itoopie.gui.component.MultiLineLabel;
import net.i2p.itoopie.gui.component.TabLogoPanel;
import net.i2p.itoopie.i18n.Transl;
package net.i2p.itoopie.gui;




public class AboutTab extends TabLogoPanel {
	
	MultiLineLabel lblThankYou;
	JLabel lblitoopie;
	JLabel lblVersion;
	JLabel lblVersionSpecified;

	public AboutTab(String imageName) {
		super(imageName);
		setLayout(null);
		
		lblThankYou = new MultiLineLabel();
		add(lblThankYou);
		lblThankYou.setBounds(10, 30, 250, 250);
		lblThankYou.setVerticalTextAlignment(JLabel.TOP);
		lblThankYou.setText(Transl._t("itoopie and I2PControl were sponsored by Relakks & Ipredator.\n" + 
				"Development began during the summer of 2011 and the first alpha was launched in July.\n\n"+
// Path: src/net/i2p/itoopie/ItoopieVersion.java
// public class ItoopieVersion {
// 
// 	/** Version of itoopie */
// 	public static final String VERSION = "0.0.4";
// 
// 	/** Version of the I2PControl API implemented */
// 	public static final int I2PCONTROL_API_VERSION = 1; 
// }
// 
// Path: src/net/i2p/itoopie/gui/component/MultiLineLabel.java
// public class MultiLineLabel extends JLabel {
// 
//     /** Default serial version UID. */
//     private static final long serialVersionUID = 1L;
// 
//     /** Horizontal text alignment. */
//     private int halign = LEFT;
// 
//     /** Vertical text alignment. */
//     private int valign = CENTER;
// 
//     /** Cache to save heap allocations. */
//     private Rectangle bounds;
// 
//     /**
//      * Creates a new empty label.
//      */
//     public MultiLineLabel() {
//         super();
//         setUI(MultiLineLabelUI.labelUI);
//     }
// 
//     /**
//      * Creates a new label with <code>text</code> value.
//      * 
//      * @param text
//      *            the value of the label
//      */
//     public MultiLineLabel(String text) {
//         this();
//         setText(text);
//     }
// 
//     /** {@inheritDoc} */
//     public Rectangle getBounds() {
//         if (bounds == null) {
//             bounds = new Rectangle();
//         }
//         return super.getBounds(bounds);
//     }
// 
//     /**
//      * Set the vertical text alignment.
//      * 
//      * @param alignment
//      *            vertical alignment
//      */
//     public void setVerticalTextAlignment(int alignment) {
//         firePropertyChange("verticalTextAlignment", valign, alignment);
//         valign = alignment;
//     }
// 
//     /**
//      * Set the horizontal text alignment.
//      * 
//      * @param alignment
//      *            horizontal alignment
//      */
//     public void setHorizontalTextAlignment(int alignment) {
//         firePropertyChange("horizontalTextAlignment", halign, alignment);
//         halign = alignment;
//     }
// 
//     /**
//      * Get the vertical text alignment.
//      * 
//      * @return vertical text alignment
//      */
//     public int getVerticalTextAlignment() {
//         return valign;
//     }
// 
//     /**
//      * Get the horizontal text alignment.
//      * 
//      * @return horizontal text alignment
//      */
//     public int getHorizontalTextAlignment() {
//         return halign;
//     }
// }
// 
// Path: src/net/i2p/itoopie/gui/component/TabLogoPanel.java
// public abstract class TabLogoPanel extends LogoPanel {
// 	
// 	private static final long serialVersionUID = 4526458659908868337L;
// 
// 	public TabLogoPanel(String imageName) {
// 		super(imageName);
// 	}
// 
// 	public abstract void onTabFocus(ChangeEvent e);
// 
// 	public void destroy() {};
// }
// 
// Path: src/net/i2p/itoopie/i18n/Transl.java
// public class Transl {
//     
//     public static final String BUNDLE_NAME = "net.i2p.itoopie.messages";
//      
//     
//     public static String _t(String s) {
//         return Translate.getString(s, BUNDLE_NAME);
//     }
// 
//     
//     /**
//      *  translate a string with a parameter
//      *  This is a lot more expensive than getString(s, ctx), so use sparingly.
//      *
//      *  @param s string to be translated containing {0}
//      *    The {0} will be replaced by the parameter.
//      *    Single quotes must be doubled, i.e. ' -> '' in the string.
//      *  @param o parameter, not translated.
//      *    To tranlslate parameter also, use _t("foo {0} bar", _t("baz"))
//      *    Do not double the single quotes in the parameter.
//      *    Use autoboxing to call with ints, longs, floats, etc.
//      */
//     public static String _t(String s, Object o) {
//         return Translate.getString(s, o, BUNDLE_NAME);
//     }
//     
//     /** for {0} and {1} */
//     public static String _t(String s, Object o, Object o2){
//     	return Translate.getString(s, o, o2, BUNDLE_NAME);
//     }
//     
//     /**
//      *  Use GNU ngettext
//      *  For .po file format see http://www.gnu.org/software/gettext/manual/gettext.html.gz#Translating-plural-forms
//      *
//      *  @param n how many
//      *  @param s singluar string, optionally with {0} e.g. "one tunnel"
//      *  @param p plural string optionally with {0} e.g. "{0} tunnels"
//      */
//     public static String _t(int n, String s, String p) {
//     	return Translate.getString( n, s, p, BUNDLE_NAME);
//     }
// 	
// }


// Path: src/net/i2p/itoopie/gui/AboutTab.java
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.event.ChangeEvent;
import net.i2p.itoopie.ItoopieVersion;
import net.i2p.itoopie.gui.component.MultiLineLabel;
import net.i2p.itoopie.gui.component.TabLogoPanel;
import net.i2p.itoopie.i18n.Transl;

package net.i2p.itoopie.gui;




public class AboutTab extends TabLogoPanel {
	
	MultiLineLabel lblThankYou;
	JLabel lblitoopie;
	JLabel lblVersion;
	JLabel lblVersionSpecified;

	public AboutTab(String imageName) {
		super(imageName);
		setLayout(null);
		
		lblThankYou = new MultiLineLabel();
		add(lblThankYou);
		lblThankYou.setBounds(10, 30, 250, 250);
		lblThankYou.setVerticalTextAlignment(JLabel.TOP);
		lblThankYou.setText(Transl._t("itoopie and I2PControl were sponsored by Relakks & Ipredator.\n" + 
				"Development began during the summer of 2011 and the first alpha was launched in July.\n\n"+
				"I'd like to thank Jan-Erik Fiske and Peter Sunde for actively helping privacy and anonymity online.") +