Revision: 3251
Author: [email protected]
Date: Thu Jan 28 07:24:21 2010
Log: Updated the welcome screen with the new product name (SQL Power Architect) and updated the links to useful places.
http://code.google.com/p/power-architect/source/detail?r=3251

Modified:
 /trunk/src/ca/sqlpower/architect/swingui/WelcomeScreen.java
 /trunk/src/ca/sqlpower/architect/swingui/messages.properties
 /trunk/src/ca/sqlpower/architect/swingui/messages_de.properties
 /trunk/src/ca/sqlpower/architect/swingui/messages_ko.properties
 /trunk/src/ca/sqlpower/architect/swingui/messages_pt.properties
 /trunk/src/ca/sqlpower/architect/swingui/messages_ru.properties
 /trunk/src/icons/architect_header_architect.png

=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/WelcomeScreen.java Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/WelcomeScreen.java Thu Jan 28 07:24:21 2010
@@ -19,7 +19,6 @@
 package ca.sqlpower.architect.swingui;

 import java.awt.BorderLayout;
-import java.awt.Color;
 import java.awt.Component;
 import java.awt.Container;
 import java.awt.Dimension;
@@ -69,15 +68,18 @@
      * The contents of the Welcome Screen text.
      */
     final static String welcomeHTMLstuff =
- "<html><head><style type=\"text/css\">body {margin-left: 100px; margin-right: 100px;}</style></head>" + //$NON-NLS-1$
-        "<body>" + //$NON-NLS-1$
+ "<html><head><style>body {margin-left: 100px; margin-right: 100px;}</style></head>" + //$NON-NLS-1$ + "<body style=\"font:" + new JLabel().getFont() + "\">" + //$NON-NLS-1$
+        "<br>" + //$NON-NLS-1$
"<h1 align=\"center\">SQL Power Architect " + ArchitectVersion.APP_FULL_VERSION + "</h1>" + //$NON-NLS-1$ //$NON-NLS-2$
         "<br><br><br>" + //$NON-NLS-1$
- "<p>" + Messages.getString("WelcomeScreen.forumInfo", SPSUtils.FORUM_URL) + //$NON-NLS-1$ //$NON-NLS-2$
-        "<br><br>" + //$NON-NLS-1$
- "<p>" + Messages.getString("WelcomeScreen.jdbcDriversHelp") + //$NON-NLS-1$ //$NON-NLS-2$ + "<div align=\"center\"><p>" + Messages.getString("WelcomeScreen.forInfo") + "</div>" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         "<br>" + //$NON-NLS-1$
- "<p>" + Messages.getString("WelcomeScreen.helpFindingJdbcDrivers", ArchitectSwingSessionContext.DRIVERS_URL) + //$NON-NLS-1$ //$NON-NLS-2$ + "<div align=\"center\"><b>" + Messages.getString("WelcomeScreen.userGuide", ArchitectSwingSessionContext.USER_GUIDE_URL)+ "</b></div>" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+        "<br>" + //$NON-NLS-1$
+ "<div align=\"center\"><b>" + Messages.getString("WelcomeScreen.premiumSupport", ArchitectSwingSessionContext.PREMIUM_SUPPORT_URL)+ "</b></div>" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+        "<br>" + //$NON-NLS-1$
+ "<div align=\"center\"><b>" + Messages.getString("WelcomeScreen.communityForum", ArchitectSwingSessionContext.COMMUNITY_FORUM_URL)+ "</b></div>" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         "<br><br><br>"; //$NON-NLS-1$

     public void showWelcomeDialog(Component dialogOwner) {
@@ -146,9 +148,6 @@

     private static class LogoLayout implements LayoutManager {

-        private int textStartY = 130;
-        private int textStartX = 400;
-
         public static JPanel generateLogoPanel() {
             JPanel panel = new JPanel(new LogoLayout());

@@ -156,13 +155,10 @@
JLabel welcomeLabel = new JLabel(new ImageIcon(WelcomeScreen.class.getClassLoader().getResource("icons/architect_header_welcome.png"))); JLabel architectLabel = new JLabel(new ImageIcon(WelcomeScreen.class.getClassLoader().getResource("icons/architect_header_architect.png"))); JLabel sqlpowerLabel = new JLabel(new ImageIcon(WelcomeScreen.class.getClassLoader().getResource("icons/architect_header_sqlpower.png"))); - JLabel versionLabel = new JLabel("" + ArchitectVersion.APP_VERSION);
-            versionLabel.setForeground(new Color(0x999999));

             panel.add(welcomeLabel);
             panel.add(architectLabel);
             panel.add(sqlpowerLabel);
-            panel.add(versionLabel);
             panel.add(bgLabel);
             return panel;
         }
@@ -172,11 +168,10 @@
         }

         public void layoutContainer(Container parent) {
-            JLabel bgLabel = (JLabel) parent.getComponent(4);
+            JLabel bgLabel = (JLabel) parent.getComponent(3);
             JLabel welcomeLabel = (JLabel) parent.getComponent(0);
             JLabel architectLabel = (JLabel) parent.getComponent(1);
             JLabel sqlpowerLabel = (JLabel) parent.getComponent(2);
-            JLabel versionLabel = (JLabel) parent.getComponent(3);

             int headerStartX = (parent.getWidth() - 800) / 2;

@@ -184,7 +179,6 @@
welcomeLabel.setBounds(headerStartX, 0, welcomeLabel.getPreferredSize().width, welcomeLabel.getPreferredSize().height); architectLabel.setBounds(welcomeLabel.getX() + welcomeLabel.getPreferredSize().width, 0, architectLabel.getPreferredSize().width, architectLabel.getPreferredSize().height); sqlpowerLabel.setBounds(headerStartX + 800 - sqlpowerLabel.getPreferredSize().width, 0, sqlpowerLabel.getPreferredSize().width, sqlpowerLabel.getPreferredSize().height); - versionLabel.setBounds(architectLabel.getX() + textStartX, architectLabel.getY() + textStartY, versionLabel.getPreferredSize().width, versionLabel.getPreferredSize().height);
         }

         public Dimension minimumLayoutSize(Container parent) {
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/messages.properties Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/messages.properties Thu Jan 28 07:24:21 2010
@@ -397,9 +397,11 @@
 UserRepositoryDirectoryChooser.okOption=OK
UserRepositoryDirectoryChooser.selectRepositoryDialogTitle=Select Repository Directory
 WelcomeScreen.closeButton=Close
-WelcomeScreen.forumInfo=Please visit our <a href="{0}">support forum</a> if you have any questions, comments, suggestions, or if you just need a friend. -WelcomeScreen.helpFindingJdbcDrivers=Need help finding the JDBC drivers? Visit our <a href="{0}">forum thread</a>. -WelcomeScreen.jdbcDriversHelp=Check out the JDBC drivers section under <i>How to Use SQL Power Architect</i> in the help for configuring JDBC drivers.
 WelcomeScreen.showWelcomeInFuture=Show this Welcome Screen in future
 WelcomeScreen.unexpectedError=Unexpected error in launch
 WelcomeScreen.welcomeScreenTitle=Welcome to the SQL Power Architect
+WelcomeScreen.userGuide=<a href="{0}">SQL Power Architect User Guide</a>
+WelcomeScreen.premiumSupport=<a href="{0}">SQL Power Architect Premium Support</a>
+WelcomeScreen.communityForum=<a href="{0}">SQL Power Community Forum</a>
+WelcomeScreen.forInfo=For help with SQL Power Architect, please refer to:
+
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/messages_de.properties Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/messages_de.properties Thu Jan 28 07:24:21 2010
@@ -401,5 +401,9 @@
 WelcomeScreen.showWelcomeInFuture=Zeige diesen Willkommens-Dialog
 WelcomeScreen.unexpectedError=Unerwarteter Fehler beim Starten
 WelcomeScreen.welcomeScreenTitle=Willkommen bei SQL Power Architect
+WelcomeScreen.userGuide=<a href="{0}">SQL Power Architect User Guide</a>
+WelcomeScreen.premiumSupport=<a href="{0}">SQL Power Architect Premium Support</a>
+WelcomeScreen.communityForum=<a href="{0}">SQL Power Community Forum</a>
+WelcomeScreen.forInfo=For help with SQL Power Architect, please refer to:
DBTree.cannotAddConnectionType=Eine Datenquelle vom Type {0} kann nicht hinzugef\u00FCgt werden DBTree.cannotAddConnectionTypeTitle=Die Datenquelle konnte nicht hinzugef\u00FCgt werden
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/messages_ko.properties Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/messages_ko.properties Thu Jan 28 07:24:21 2010
@@ -359,3 +359,7 @@
WelcomeScreen.showWelcomeInFuture=\uc55e\uc73c\ub85c \ud658\uc601\ud654\uba74 \ubcf4\uae30 WelcomeScreen.unexpectedError=\uc2e4\ud589\uc911 \uc54c \uc218 \uc5c6\ub294 \uc624\ub958
 WelcomeScreen.welcomeScreenTitle=
+WelcomeScreen.userGuide=<a href="{0}">SQL Power Architect User Guide</a>
+WelcomeScreen.premiumSupport=<a href="{0}">SQL Power Architect Premium Support</a>
+WelcomeScreen.communityForum=<a href="{0}">SQL Power Community Forum</a>
+WelcomeScreen.forInfo=For help with SQL Power Architect, please refer to:
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/messages_pt.properties Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/messages_pt.properties Thu Jan 28 07:24:21 2010
@@ -403,3 +403,7 @@
WelcomeScreen.showWelcomeInFuture=Mostrar essa tela de boas vindas no futuro
 WelcomeScreen.unexpectedError=Erro inesperado ao executar
 WelcomeScreen.welcomeScreenTitle=Bem vindo ao SQL Power Architect
+WelcomeScreen.userGuide=<a href="{0}">SQL Power Architect User Guide</a>
+WelcomeScreen.premiumSupport=<a href="{0}">SQL Power Architect Premium Support</a>
+WelcomeScreen.communityForum=<a href="{0}">SQL Power Community Forum</a>
+WelcomeScreen.forInfo=For help with SQL Power Architect, please refer to:
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/messages_ru.properties Mon Jan 25 15:53:34 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/messages_ru.properties Thu Jan 28 07:24:21 2010
@@ -346,4 +346,8 @@
WelcomeScreen.showWelcomeInFuture=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u044d\u043a\u0440\u0430\u043d \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c. WelcomeScreen.unexpectedError=\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435. WelcomeScreen.welcomeScreenTitle=\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 SQL Power Architect
-
+WelcomeScreen.userGuide=<a href="{0}">SQL Power Architect User Guide</a>
+WelcomeScreen.premiumSupport=<a href="{0}">SQL Power Architect Premium Support</a>
+WelcomeScreen.communityForum=<a href="{0}">SQL Power Community Forum</a>
+WelcomeScreen.forInfo=For help with SQL Power Architect, please refer to:
+
=======================================
--- /trunk/src/icons/architect_header_architect.png     Thu Apr 23 13:42:29 2009
+++ /trunk/src/icons/architect_header_architect.png     Thu Jan 28 07:24:21 2010
Binary file, no diff available.

Reply via email to