diff options
author | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 06:11:36 +0000 |
---|---|---|
committer | hche10x <hche10x@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 06:11:36 +0000 |
commit | 7f492c4322d1ebc0b73eb61ac8a0c824bea1e2d3 (patch) | |
tree | 80f7f9326689e95c7bade1182c69164413cfe907 | |
parent | 631dc64d736280f8ca829a8951248f7266ba2852 (diff) | |
download | edk2-7f492c4322d1ebc0b73eb61ac8a0c824bea1e2d3.zip edk2-7f492c4322d1ebc0b73eb61ac8a0c824bea1e2d3.tar.gz edk2-7f492c4322d1ebc0b73eb61ac8a0c824bea1e2d3.tar.bz2 |
1. Add a splash screen when starting, fix EDKT228
2. Update FrameworkWizard.msa for files list
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1453 6f19259b-4bc3-4df7-8a09-765794883524
3 files changed, 118 insertions, 0 deletions
diff --git a/Tools/Source/FrameworkWizard/FrameworkWizard.msa b/Tools/Source/FrameworkWizard/FrameworkWizard.msa index 35b5485..262e30a 100644 --- a/Tools/Source/FrameworkWizard/FrameworkWizard.msa +++ b/Tools/Source/FrameworkWizard/FrameworkWizard.msa @@ -44,6 +44,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <Filename>src/org/tianocore/frameworkwizard/FrameworkWizardUI.java</Filename>
<Filename>src/org/tianocore/frameworkwizard/NewFileChooser.java</Filename>
<Filename>src/org/tianocore/frameworkwizard/SelectModuleBelong.java</Filename>
+ <Filename>src/org/tianocore/frameworkwizard/SplashScreen.java</Filename>
<Filename>src/org/tianocore/frameworkwizard/ToolChainConfig.java</Filename>
<Filename>src/org/tianocore/frameworkwizard/ToolChainConfigHelp.java</Filename>
<Filename>src/org/tianocore/frameworkwizard/common/DataType.java</Filename>
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java index dfc9f62..9d065b5 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/FrameworkWizardUI.java @@ -1754,6 +1754,12 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele **/
private void init() {
//
+ // Show splash screen
+ //
+ SplashScreen ss = new SplashScreen();
+ ss.setVisible(true);
+
+ //
// Set current workspace and check
// Check if exists WORKSPACE
//
@@ -1770,6 +1776,11 @@ public class FrameworkWizardUI extends IFrame implements MouseListener, TreeSele // Init Global Data
//
GlobalData.init();
+
+ //
+ // Close splash screen
+ //
+ ss.dispose();
//
// Init the frame
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SplashScreen.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SplashScreen.java new file mode 100644 index 0000000..d389d40 --- /dev/null +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/SplashScreen.java @@ -0,0 +1,106 @@ +/** @file
+
+ To show a splash screen when starting
+
+ Copyright (c) 2006, Intel Corporation
+ All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+ **/
+
+package org.tianocore.frameworkwizard;
+
+import javax.swing.ImageIcon;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JRootPane;
+
+import org.tianocore.frameworkwizard.common.DataType;
+import org.tianocore.frameworkwizard.common.ui.IFrame;
+
+public class SplashScreen extends IFrame {
+
+ ///
+ /// Serial Version UID
+ ///
+ private static final long serialVersionUID = 1077736364497801470L;
+
+ private JPanel jContentPane = null; // @jve:decl-index=0:visual-constraint="10,54"
+
+ private JLabel jLabelImage = null;
+
+ private JLabel jLabel = null;
+
+ private JLabel jLabel1 = null;
+
+ private JLabel jLabel2 = null;
+
+
+ /**
+ * This is the default constructor
+ */
+ public SplashScreen() {
+ super();
+ init();
+ }
+
+ /**
+ * This method initializes this
+ *
+ * @return void
+ */
+ private void init() {
+ this.setSize(320, 205);
+ this.setUndecorated(true);
+ this.setContentPane(getJContentPane());
+ this.getRootPane().setWindowDecorationStyle(JRootPane.NONE);
+ this.setTitle("Init");
+ this.centerWindow();
+ }
+
+ /**
+ * This method initializes jContentPane
+ *
+ * @return javax.swing.JPanel
+ */
+ private JPanel getJContentPane() {
+ if (jContentPane == null) {
+ jLabelImage = new JLabel();
+ jLabelImage.setBounds(new java.awt.Rectangle(63, 20, 193, 58));
+ jLabelImage.setIcon(new ImageIcon(getClass().getResource("/resources/images/logo.gif")));
+
+ jLabel2 = new JLabel();
+ jLabel2.setBounds(new java.awt.Rectangle(25, 120, 270, 20));
+ jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
+ jLabel2.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 14));
+ jLabel2.setText("Initializaing...");
+ jLabel1 = new JLabel();
+ jLabel1.setBounds(new java.awt.Rectangle(3,166,270,20));
+ jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
+ jLabel1.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 8));
+ jLabel1.setText("Copyright (c) 2006, Intel Corporation");
+ jLabel = new JLabel();
+ jLabel.setToolTipText("");
+ jLabel.setBounds(new java.awt.Rectangle(25, 90, 270, 20));
+ jLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
+ jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.BOLD, 18));
+ jLabel.setText(DataType.PROJECT_NAME + " " + DataType.PROJECT_VERSION);
+ jContentPane = new JPanel();
+ jContentPane.setLayout(null);
+ jContentPane.setSize(new java.awt.Dimension(320,199));
+ jContentPane.setBackground(java.awt.SystemColor.inactiveCaptionText);
+ jContentPane.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
+ jContentPane.add(jLabel, null);
+ jContentPane.add(jLabel1, null);
+ jContentPane.add(jLabel2, null);
+ jContentPane.add(jLabelImage, null);
+ }
+ return jContentPane;
+ }
+
+}
|