X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FAboutScreen.java;h=0ec7ae6fc06ad1063531f605eff95ea2fe47054d;hb=f1b92378a792131ac8fb33a869405851d5b2d1f7;hp=0f20ba00778064254a86ddbf2a1d0681f5d1aeb2;hpb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;p=GpsPrune.git diff --git a/tim/prune/function/AboutScreen.java b/tim/prune/function/AboutScreen.java index 0f20ba0..0ec7ae6 100644 --- a/tim/prune/function/AboutScreen.java +++ b/tim/prune/function/AboutScreen.java @@ -11,7 +11,12 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; import java.io.InputStream; +import java.util.zip.GZIPInputStream; import javax.swing.BorderFactory; import javax.swing.BoxLayout; @@ -27,8 +32,9 @@ import javax.swing.JTextArea; import tim.prune.App; import tim.prune.ExternalTools; import tim.prune.GenericFunction; -import tim.prune.GpsPruner; +import tim.prune.GpsPrune; import tim.prune.I18nManager; +import tim.prune.jpeg.ExifGateway; import tim.prune.threedee.WindowFactory; /** @@ -39,6 +45,7 @@ public class AboutScreen extends GenericFunction private JDialog _dialog = null; private JTabbedPane _tabs = null; private JButton _okButton = null; + private JTextArea _aboutTextArea = null; /** Labels for whether tools installed or not */ private JLabel[] _installedLabels = null; @@ -74,14 +81,14 @@ public class AboutScreen extends GenericFunction JPanel aboutPanel = new JPanel(); aboutPanel.setLayout(new BoxLayout(aboutPanel, BoxLayout.Y_AXIS)); aboutPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); - JLabel titleLabel = new JLabel("Prune"); + JLabel titleLabel = new JLabel("GpsPrune"); titleLabel.setFont(new Font("SansSerif", Font.BOLD, 24)); titleLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT); aboutPanel.add(titleLabel); - JLabel versionLabel = new JLabel(I18nManager.getText("dialog.about.version") + ": " + GpsPruner.VERSION_NUMBER); + JLabel versionLabel = new JLabel(I18nManager.getText("dialog.about.version") + ": " + GpsPrune.VERSION_NUMBER); versionLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT); aboutPanel.add(versionLabel); - JLabel buildLabel = new JLabel(I18nManager.getText("dialog.about.build") + ": " + GpsPruner.BUILD_NUMBER); + JLabel buildLabel = new JLabel(I18nManager.getText("dialog.about.build") + ": " + GpsPrune.BUILD_NUMBER); buildLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT); aboutPanel.add(buildLabel); aboutPanel.add(new JLabel(" ")); @@ -90,8 +97,9 @@ public class AboutScreen extends GenericFunction descBuffer.append("
").append(I18nManager.getText("dialog.about.summarytext2")).append("
"); descBuffer.append("").append(I18nManager.getText("dialog.about.summarytext3")).append("
"); descBuffer.append("").append(I18nManager.getText("dialog.about.languages")).append(" : ")
- .append("deutsch, english, español, français, italiano, polski,
" +
- "schwiizerdüütsch, português, bahasa indonesia, românÄ").append("
").append(I18nManager.getText("dialog.about.translatedby")).append("
"); JEditorPane descPane = new JEditorPane("text/html", descBuffer.toString()); descPane.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3)); @@ -122,7 +130,7 @@ public class AboutScreen extends GenericFunction new JLabel(System.getProperty("java.runtime.version")), 1, 1); // Create install labels to be populated later - final int NUM_INSTALL_CHECKS = 5; + final int NUM_INSTALL_CHECKS = 4; _installedLabels = new JLabel[NUM_INSTALL_CHECKS]; for (int i=0; i