Commit 765e40d3 authored by Daniel Dreibrodt's avatar Daniel Dreibrodt

History and names included into translation system

parent 541b2f06
......@@ -14,6 +14,26 @@ BUTTON_OK|OK
BUTTON_CANCEL|Cancel
BUTTON_HELP|Help
#Item names
THEME|Theme
FONT|Font
BITMAP|Bitmap
SUBBITMAP|SubBitmap
WINDOW|Window
LAYOUT|Layout
ANCHOR|Anchor
BUTTON|Button
CHECKBOX|Checkbox
GROUP|Group
IMAGE|Image
PANEL|Panel
PLAYTREE|Playtree
SLIDER|Slider
SLIDERBG|SliderBackground
TEXT|Text
VIDEO|Video
UNNAMED|Unnamed %t #%i
#Messages
ABOUT_TITLE|About VLC Skin Editor
ABOUT_MSG|<html><h3>Copyright 2007-%y The VideoLAN Team</h3>Released under terms of the GPL 2+<br><br><b>Lead programmer:</b> Daniel Dreibrodt (daniel.dreibrodt@googlemail.com)<br><b>Website:</b> %w<br><br><b>Credits:</b><br>Timothy Gerard Endres for registry access and TAR support (Public Domain)<br>The Tango! Desktop Project (http://tango.freedesktop.org) for some icons (Creative Commons BY-SA 2.5)<br>Cyril Deguet (asmax@via.ecp.fr) and Olivier Teuli&egrave;re (ipkiss@via.ecp.fr) for the Boolean Expression Evaluator and Bezier code (GPL 2+)</html>
......@@ -32,6 +52,7 @@ EXIT_CONFIRM_TITLE|Your modifications were not saved
EXIT_CONFIRM_MSG|Would you like to save your skin before exiting?
UPDATE_TITLE|Update found
UPDATE_MSG|There is an update available for the Skin Editor.\nYour version: %v\nLatest version: %c\nDo you want to update the Skin Editor now?
VLT_PROGRESS|Creating VLT archive...
DOWNLOAD_PROGRESS|Downloading...
CONNECT_PROGRESS|Connecting...
UPDATE_SUCCESS_TITLE|Finished updating
......@@ -70,8 +91,17 @@ ERROR_ALPHA_MSG|Please enter a valid opacity! (0-255)
ERROR_MALPHA_TITLE|Opacity when moving not valid
ERROR_MALPHA_MSG|Please enter a valid opacity when moving! (0-255)
ERROR_SBGGEN_MIDDLE_MSG|Could not load middle image!\nAt least the middle part of the slider is needed to generate a slider background.
ERROR_VLT_TITLE|Could not create VLT file
ERROR_VLT_MSG|VLT file could not be created!
#Other strings
THEMEINFO_NAME_DEFAULT|Unnamed Theme
THEMEINFO_AUTHOR_DEFAULT|Unknown Author
THEMEINFO_EMAIL_DEFAULT|Unknown
\ No newline at end of file
THEMEINFO_EMAIL_DEFAULT|Unknown
#History
HIST_ITEM_ADD|Add %t
HIST_ITEM_DEL|Delete %t
HIST_ITEM_EDIT|Edit %t
HIST_ITEM_MOVE|Move %t
HIST_RES_DEL|Delete %t "%i"
......@@ -865,7 +865,7 @@ public class Main extends javax.swing.JFrame implements ActionListener, TreeSele
}
else return;
ProgressWindow pwin = new ProgressWindow(this,"");
pwin.setText("Creating VLT archive...");
pwin.setText(Language.get("VLT_PROGRESS"));
pwin.setVisible(true);
try {
TarGzOutputStream tgz = new TarGzOutputStream(new FileOutputStream(f));
......@@ -882,7 +882,7 @@ public class Main extends javax.swing.JFrame implements ActionListener, TreeSele
tgz.closeEntry();
java.util.List<String> files = new LinkedList<String>();
for(int i=0;i<s.resources.size();i++) {
if(s.resources.get(i).type.equals("Bitmap")) {
if(s.resources.get(i).getClass().equals(Bitmap.class)) {
try {
Bitmap b = (Bitmap)s.resources.get(i);
String fn = s.skinfolder+b.file;
......@@ -902,11 +902,11 @@ public class Main extends javax.swing.JFrame implements ActionListener, TreeSele
catch (IOException ex) {
ex.printStackTrace();
pwin.setVisible(false);
JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(this,Language.get("ERROR_VLT_MSG"),Language.get("ERROR_VLT_TILE"),JOptionPane.ERROR_MESSAGE);
}
catch (Exception ex){}
}
else if(s.resources.get(i).type.equals("Font")) {
else if(s.resources.get(i).getClass().equals(vlcskineditor.resources.Font.class)) {
try {
vlcskineditor.resources.Font fnt = (vlcskineditor.resources.Font)s.resources.get(i);
String fn = s.skinfolder+fnt.file;
......@@ -926,19 +926,19 @@ public class Main extends javax.swing.JFrame implements ActionListener, TreeSele
catch (IOException ex) {
ex.printStackTrace();
pwin.setVisible(false);
JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(this,Language.get("ERROR_VLT_MSG"),Language.get("ERROR_VLT_TILE"),JOptionPane.ERROR_MESSAGE);
}
}
}
tgz.close();
pwin.setVisible(false);
JOptionPane.showMessageDialog(this,"VLT file created successfully!","VLT file created",JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog(this,Language.get("ERROR_VLT_MSG"),Language.get("ERROR_VLT_TILE"),JOptionPane.INFORMATION_MESSAGE);
}
catch (Exception ex) {
ex.printStackTrace();
pwin.setVisible(false);
JOptionPane.showMessageDialog(this,"VLT file could not be created!","Could not create VLT file",JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(this,Language.get("ERROR_VLT_MSG"),Language.get("ERROR_VLT_TILE"),JOptionPane.ERROR_MESSAGE);
return;
}
}
......@@ -1657,7 +1657,6 @@ public class Main extends javax.swing.JFrame implements ActionListener, TreeSele
InputStream stream = connection.getInputStream();
boolean downloading = true;
int downloaded = 0;
ProgressWindow pwin = new ProgressWindow(this,Language.get("DOWNLOAD_PROGRESS"));
pwin.setVisible(true);
......
......@@ -22,7 +22,6 @@
package vlcskineditor;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
......@@ -48,7 +47,6 @@ import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import vlcskineditor.history.ThemeEditEvent;
......@@ -674,11 +672,11 @@ public class Skin implements ActionListener{
public void expandResource(String id) {
Resource r = getResource(id);
if(r==null) return;
if(r.type.equals("Bitmap")) {
if(ImageResource.class.isAssignableFrom(r.getClass())) {
TreePath tp = findInTree(m.res_tree,"Root: "+Language.get("WIN_RES_BITMAPS"));
m.res_tree.expandPath(tp);
}
else if(r.type.equals("Font")) {
else if(r.getClass().equals(Font.class)) {
TreePath tp = findInTree(m.res_tree,"Root: "+Language.get("WIN_RES_FONTS"));
m.res_tree.expandPath(tp);
}
......
......@@ -48,7 +48,7 @@ public class XML {
i = Integer.parseInt(getValue(line,field).trim());
}
catch (Exception e) {
System.out.println("Could not parse int from getValue("+line+","+field+"): "+getValue(line,field));
System.err.println("Could not parse int from getValue("+line+","+field+"): "+getValue(line,field));
}
return i;
}
......@@ -58,7 +58,7 @@ public class XML {
b = Boolean.parseBoolean(getValue(line,field).trim());
}
catch (Exception e) {
System.out.println("Could not parse boolean from getValue("+line+","+field+"): "+getValue(line,field));
System.err.println("Could not parse boolean from getValue("+line+","+field+"): "+getValue(line,field));
}
return b;
}
......
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Anchor;
/**
......@@ -58,6 +59,6 @@ public class AnchorEditEvent extends HistoryEvent{
a.range = range_new;
}
public String getDescription() {
return "Edit Anchor";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",a.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.resources.Bitmap;
/**
......@@ -66,6 +67,6 @@ public class BitmapEditEvent extends HistoryEvent{
b.updateImage();
}
public String getDescription() {
return "Edit Bitmap";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",b.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Button;
/**
......@@ -112,6 +113,6 @@ public class ButtonEditEvent extends HistoryEvent{
b.tooltiptext = tooltiptext_new;
}
public String getDescription() {
return "Edit Button";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",b.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Checkbox;
/**
......@@ -140,6 +141,6 @@ public class CheckboxEditEvent extends HistoryEvent{
c.state = state_new;
}
public String getDescription() {
return "Edit Checkbox";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",c.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.resources.Font;
/**
......@@ -56,6 +57,6 @@ public class FontEditEvent extends HistoryEvent{
f.updateFont();
}
public String getDescription() {
return "Edit Font";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",f.type);
}
}
......@@ -23,6 +23,7 @@
package vlcskineditor.history;
import vlcskineditor.Item;
import vlcskineditor.Language;
import vlcskineditor.items.Group;
/**
......@@ -67,6 +68,6 @@ public class GroupEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Group";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",g.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Image;
/**
......@@ -110,6 +111,6 @@ public class ImageEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Image";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",i.type);
}
}
......@@ -24,6 +24,7 @@ package vlcskineditor.history;
import vlcskineditor.Item;
import java.util.List;
import vlcskineditor.Language;
/**
* Represents the action of adding an Item
......@@ -50,6 +51,6 @@ public class ItemAddEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Add "+i.type;
return Language.get("HIST_ITEM_ADD").replaceAll("%t", i.type);
}
}
......@@ -23,6 +23,7 @@
package vlcskineditor.history;
import vlcskineditor.Item;
import vlcskineditor.Language;
import vlcskineditor.Skin;
import java.util.List;
......@@ -56,6 +57,6 @@ public class ItemDeletionEvent extends HistoryEvent {
}
@Override
public String getDescription() {
return "Delete "+i.type;
return Language.get("HIST_ITEM_DEL").replaceAll("%t", i.type);
}
}
......@@ -23,6 +23,7 @@
package vlcskineditor.history;
import vlcskineditor.Item;
import vlcskineditor.Language;
/**
* Represents the action of moving an Item
......@@ -52,6 +53,6 @@ public class ItemMoveEvent extends HistoryEvent{
i.y = y_new;
}
public String getDescription() {
return "Move Item";
return Language.get("HIST_ITEM_MOVE").replaceAll("%t",i.type);
}
}
......@@ -23,6 +23,7 @@
package vlcskineditor.history;
import vlcskineditor.Window;
import vlcskineditor.Language;
import vlcskineditor.Layout;
/**
......@@ -49,6 +50,6 @@ public class LayoutAddEvent extends HistoryEvent{
w.s.expandLayout(l.id);
}
public String getDescription() {
return "Add Layout";
return Language.get("HIST_ITEM_ADD").replaceAll("%t",Language.get("LAYOUT"));
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Layout;
import vlcskineditor.Skin;
import vlcskineditor.Window;
......@@ -56,6 +57,6 @@ public class LayoutDeletionEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Delete Layout";
return Language.get("HIST_ITEM_DEL").replaceAll("%t",Language.get("LAYOUT"));
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Layout;
/**
......@@ -78,6 +79,6 @@ public class LayoutEditEvent extends HistoryEvent {
l.maxheight = maxheight_new;
}
public String getDescription() {
return "Edit Layout";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",Language.get("LAYOUT"));
}
}
......@@ -24,6 +24,7 @@ package vlcskineditor.history;
import vlcskineditor.Item;
import vlcskineditor.items.Panel;
import vlcskineditor.Language;
/**
* Represents the action of editing a Panel
......@@ -108,6 +109,6 @@ public class PanelEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Panel";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",p.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Playtree;
/**
......@@ -152,6 +153,6 @@ public class PlaytreeEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Playtree";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",p.type);
}
}
......@@ -52,6 +52,6 @@ public class ResourceDeletionEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Delete Resource \""+r.id+"\"";
return Language.get("HIST_RES_DEL").replaceAll("%t", r.type).replaceAll("%i", r.id);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.SliderBackground;
/**
......@@ -74,6 +75,6 @@ public class SliderBackgroundEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit SliderBackground";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",s.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Slider;
/**
......@@ -126,6 +127,6 @@ public class SliderEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Slider";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",s.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.resources.Bitmap;
import vlcskineditor.resources.SubBitmap;
......@@ -50,6 +51,6 @@ public class SubBitmapAddEvent extends HistoryEvent{
b.s.expandItem(sb.id);
}
public String getDescription() {
return "Add SubBitmap";
return Language.get("HIST_ITEM_ADD").replaceAll("%t",b.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.resources.SubBitmap;
/**
......@@ -68,6 +69,6 @@ public class SubBitmapEditEvent extends HistoryEvent{
sb.fps = fps_new;
}
public String getDescription() {
return "Edit SubBitmap";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",sb.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Text;
/**
......@@ -119,6 +120,6 @@ public class TextEditEvent extends HistoryEvent{
}
@Override
public String getDescription() {
return "Edit Text";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",t.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Skin;
/**
......@@ -78,6 +79,6 @@ public class ThemeEditEvent extends HistoryEvent{
s.themeinfo_webpage = web_new;
}
public String getDescription() {
return "Edit Theme attributes";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",Language.get("THEME"));
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.items.Video;
/**
......@@ -106,6 +107,6 @@ public class VideoEditEvent extends HistoryEvent {
}
@Override
public String getDescription() {
return "Edit Video";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",v.type);
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Skin;
import vlcskineditor.Window;
......@@ -48,6 +49,6 @@ public class WindowAddEvent extends HistoryEvent{
s.updateWindows();
}
public String getDescription() {
return "Add Window";
return Language.get("HIST_ITEM_ADD").replaceAll("%t",Language.get("WINDOW"));
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Window;
import vlcskineditor.Skin;
......@@ -51,6 +52,6 @@ public class WindowDeletionEvent extends HistoryEvent {
}
@Override
public String getDescription() {
return "Delete Window";
return Language.get("HIST_ITEM_DEL").replaceAll("%t",Language.get("WINDOW"));
}
}
......@@ -22,6 +22,7 @@
package vlcskineditor.history;
import vlcskineditor.Language;
import vlcskineditor.Window;
/**
......@@ -68,6 +69,6 @@ public class WindowEditEvent extends HistoryEvent{
w.playondrop = playondrop_new;
}
public String getDescription() {
return "Edit Window";
return Language.get("HIST_ITEM_EDIT").replaceAll("%t",Language.get("WINDOW"));
}
}
......@@ -52,13 +52,16 @@ public class Anchor extends Item implements ActionListener{
Bezier b;
int[] xpos,ypos;
{
type = Language.get("ANCHOR");
}
/**
* Creates a new Anchor from XML.
* @param xmlcode The XML code from which the Anchor should be created. One line per tag.
* @param s_ The skin in which the Anchor is used.
*/
public Anchor(String xmlcode, Skin s_) {
type = "Anchor";
s=s_;
if (xmlcode.indexOf(" points=\"")!=-1) points = XML.getValue(xmlcode,"points");
updateBezier();
......@@ -67,7 +70,7 @@ public class Anchor extends Item implements ActionListener{
if (xmlcode.indexOf(" x=\"")!=-1) x = XML.getIntValue(xmlcode,"x");
if (xmlcode.indexOf(" y=\"")!=-1) y = XML.getIntValue(xmlcode,"y");
if(xmlcode.indexOf(" id=\"")!=-1) id = XML.getValue(xmlcode,"id");
else id = "Anchor #"+s.getNewId();
else id = type+" #"+s.getNewId();
if(xmlcode.indexOf("lefttop=\"")!=-1) lefttop = XML.getValue(xmlcode,"lefttop");
created = true;
}
......@@ -76,10 +79,9 @@ public class Anchor extends Item implements ActionListener{
* @param s_ The Skin in which the Anchor is used.
*/
public Anchor(Skin s_) {
type = "Anchor";
s = s_;
priority = 0;
id = "Anchor #"+s.getNewId();
id = type+" #"+s.getNewId();
updateBezier();
showOptions();
}
......
......@@ -56,12 +56,15 @@ public class Button extends Item implements ActionListener{
ImageResource up_res, over_res, down_res;
{
type = Language.get("BUTTON");
}
/** Creates a new instance of Button
* @param xmlcode The XML code
* @param s_ The parent skin
*/
public Button(String xmlcode, Skin s_) {
type = "Button";
s = s_;
up = XML.getValue(xmlcode,"up");
if(xmlcode.indexOf("down=\"")!=-1) down = XML.getValue(xmlcode,"down");
......@@ -70,7 +73,7 @@ public class Button extends Item implements ActionListener{
if(xmlcode.indexOf("x=\"")!=-1) x = XML.getIntValue(xmlcode,"x");
if(xmlcode.indexOf("y=\"")!=-1) y = XML.getIntValue(xmlcode,"y");
if(xmlcode.indexOf("id=\"")!=-1) id = XML.getValue(xmlcode,"id");
else id = "Unnamed button #"+s.getNewId();
else id = Language.get("UNNAMED").replaceAll("%t",type).replaceAll("%i",String.valueOf(s.getNewId()));
if(xmlcode.indexOf("lefttop=\"")!=-1) lefttop = XML.getValue(xmlcode,"lefttop");
if(xmlcode.indexOf("rightbottom=\"")!=-1) rightbottom = XML.getValue(xmlcode,"rightbottom");
if(xmlcode.indexOf("xkeepratio=\"")!=-1) xkeepratio = XML.getBoolValue(xmlcode,"xkeepratio");
......@@ -84,10 +87,9 @@ public class Button extends Item implements ActionListener{
down_res = s.getImageResource(down);
}
public Button(Skin s_) {
type = "Button";
s=s_;
up = "";
id = "Unnamed button #"+s.getNewId();
id = Language.get("UNNAMED").replaceAll("%t",type).replaceAll("%i",String.valueOf(s.getNewId()));
showOptions();
}
public void update() {
......
......@@ -69,12 +69,15 @@ public class Checkbox extends Item implements ActionListener{
private boolean state_bool = true;
{
type = Language.get("CHECKBOX");
}
/** Creates a new instance of Checkbox
* @param xmlcode The XML code
* @param s_ The parent skin
*/
public Checkbox(String xmlcode, Skin s_) {
type = "Checkbox";
s = s_;
up1 = XML.getValue(xmlcode,"up1");
up1_res = s.getImageResource(up1);
......@@ -104,7 +107,7 @@ public class Checkbox extends Item implements ActionListener{
if(xmlcode.indexOf(" x=\"")!=-1) x = XML.getIntValue(xmlcode,"x");
if(xmlcode.indexOf(" y=\"")!=-1) y = XML.getIntValue(xmlcode,"y");
if(xmlcode.indexOf(" id=\"")!=-1) id = XML.getValue(xmlcode,"id");
else id = "Unnamed checkbox #"+s.getNewId();
else id = Language.get("UNNAMED").replaceAll("%t",type).replaceAll("%i",String.valueOf(s.getNewId()));
if(xmlcode.indexOf(" lefttop=\"")!=-1) lefttop = XML.getValue(xmlcode,"lefttop");
if(xmlcode.indexOf(" rightbottom=\"")!=-1) rightbottom = XML.getValue(xmlcode,"rightbottom");
if(xmlcode.indexOf(" xkeepratio=\"")!=-1) xkeepratio = XML.getBoolValue(xmlcode,"xkeepratio");
......@@ -113,12 +116,11 @@ public class Checkbox extends Item implements ActionListener{
created = true;
}
public Checkbox(Skin s_) {
type = "Checkbox";
s = s_;
up1="none";
up2="none";
state="false";
id = "Unnamed checkbox #"+s.getNewId();
id = Language.get("UNNAMED").replaceAll("%t",type).replaceAll("%i",String.valueOf(s.getNewId()));
showOptions();
}
public void update() {
......
......@@ -43,15 +43,18 @@ public class Group extends Item implements ActionListener{
JTextField id_tf, x_tf, y_tf;
JButton ok_btn, cancel_btn, help_btn;
{
type = Language.get("GROUP");
}
/** Creates a new instance of Group */
public Group(String xmlcode, Skin s_) {
type = "Group";
s = s_;
String[] code = xmlcode.split("\n");
if(code[0].indexOf("x=\"")!=-1) x = XML.getIntValue(code[0],"x");
if(code[0].indexOf("y=\"")!=-1) y = XML.getIntValue(code[0],"y");
if(code[0].indexOf("id=\"")!=-1) id = XML.