Add large icon, put in About boxes

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@73 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
lizzardo 2008-05-01 15:39:09 +00:00
parent 546790ecda
commit 3fa8edac2d
4 changed files with 9 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -23,6 +23,8 @@
package com.romraider;
import javax.swing.ImageIcon;
public final class Version {
public static final String PRODUCT_NAME = "@name.package@";
public static final String VERSION = "@version.major@.@version.minor@.@version.patch@ @version.extra@";
@ -32,6 +34,7 @@ public final class Version {
public static final String ECU_DEFS_URL = "@ecudefsurl@";
public static final String LOGGER_DEFS_URL = "@loggerdefsurl@";
public static final String RELEASE_NOTES = "@release_notes@";
public static final ImageIcon ABOUT_ICON = new ImageIcon("graphics/romraider-ico-large.gif");
private Version() {
}

View File

@ -4,10 +4,12 @@ import static com.romraider.Version.BUILDNUMBER;
import static com.romraider.Version.PRODUCT_NAME;
import static com.romraider.Version.SUPPORT_URL;
import static com.romraider.Version.VERSION;
import static com.romraider.Version.ABOUT_ICON;
import com.romraider.logger.ecu.EcuLogger;
import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
import static javax.swing.JOptionPane.showMessageDialog;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
public final class AboutAction extends AbstractAction {
@ -20,6 +22,6 @@ public final class AboutAction extends AbstractAction {
+ "Version: " + VERSION + " [build #" + BUILDNUMBER + "]\n"
+ SUPPORT_URL;
String title = "About " + PRODUCT_NAME;
showMessageDialog(logger, message, title, INFORMATION_MESSAGE);
showMessageDialog(logger, message, title, INFORMATION_MESSAGE, ABOUT_ICON);
}
}

View File

@ -28,6 +28,7 @@ import static com.romraider.Version.ECU_DEFS_URL;
import static com.romraider.Version.PRODUCT_NAME;
import static com.romraider.Version.SUPPORT_URL;
import static com.romraider.Version.VERSION;
import static com.romraider.Version.ABOUT_ICON;
import com.romraider.logger.ecu.EcuLogger;
import com.romraider.logger.utec.gui.JutecGUI;
import com.romraider.maps.Rom;
@ -304,12 +305,12 @@ public class ECUEditorMenuBar extends JMenuBar implements ActionListener {
RamTuneTestApp.startTestApp(DISPOSE_ON_CLOSE);
} else if (e.getSource() == about) {
//TODO: make a separate About class to get a better dialog box with graphic, hyperlink, etc.
//TODO: make a separate About class to get a better dialog box with hyperlink, etc.
String message = PRODUCT_NAME + " ECU Editor\n"
+ "Version: " + VERSION + " [build #" + BUILDNUMBER + "]\n"
+ SUPPORT_URL;
String title = "About " + PRODUCT_NAME;
showMessageDialog(parent, message, title, INFORMATION_MESSAGE);
showMessageDialog(parent, message, title, INFORMATION_MESSAGE, ABOUT_ICON);
}
}