Adjusted sizes to accommodate Windows, iMac and Linux GUI
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 29 Jul 2006 00:13:09 +0000 (00:13 +0000)
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 29 Jul 2006 00:13:09 +0000 (00:13 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1147 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/LibraryClassDefsDlg.java

index c4080ae..8b5dfd9 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
  \r
- The file is used to create, update Library Class Definition of MSA/MBD file\r
+ The file is used to create, update Library Class Definition section of the MSA file\r
  \r
  Copyright (c) 2006, Intel Corporation\r
  All rights reserved. This program and the accompanying materials\r
@@ -39,9 +39,10 @@ import org.tianocore.frameworkwizard.module.Identifications.LibraryClass.Library
 import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
 \r
 /**\r
- The class is used to create, update Library Class Definition of MSA/MBD file\r
- It extends IInternalFrame\r
\r
+ * The class is used to create, update Library Class Definition of MSA/MBD file\r
+ * \r
+ * It extends IDialog\r
+ * \r
  **/\r
 public class LibraryClassDefsDlg extends IDialog {\r
 \r
@@ -119,7 +120,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JComboBox getJComboBoxLibraryClassName() {\r
         if (jComboBoxLibraryClassName == null) {\r
             jComboBoxLibraryClassName = new JComboBox();\r
-            jComboBoxLibraryClassName.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
+            jComboBoxLibraryClassName.setBounds(new java.awt.Rectangle(168, 12, 320, 20));\r
             jComboBoxLibraryClassName.setPreferredSize(new Dimension(320, 20));\r
             jComboBoxLibraryClassName.setEnabled(true);\r
         }\r
@@ -135,7 +136,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JComboBox getJComboBoxUsage() {\r
         if (jComboBoxUsage == null) {\r
             jComboBoxUsage = new JComboBox();\r
-            jComboBoxUsage.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
+            jComboBoxUsage.setBounds(new java.awt.Rectangle(168, 37, 320, 20));\r
             jComboBoxUsage.setPreferredSize(new Dimension(320, 20));\r
         }\r
         return jComboBoxUsage;\r
@@ -193,7 +194,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JButton getJButtonGenerateGuid() {\r
         if (jButtonGenerateGuid == null) {\r
             jButtonGenerateGuid = new JButton();\r
-            jButtonGenerateGuid.setBounds(new java.awt.Rectangle(415, 110, 65, 20));\r
+            jButtonGenerateGuid.setBounds(new java.awt.Rectangle(415, 112, 65, 20));\r
             jButtonGenerateGuid.setPreferredSize(new java.awt.Dimension(65, 20));\r
             jButtonGenerateGuid.setText("GEN");\r
             jButtonGenerateGuid.setVisible(false);\r
@@ -210,7 +211,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JTextField getJTextFieldFeatureFlag() {\r
         if (jTextFieldFeatureFlag == null) {\r
             jTextFieldFeatureFlag = new JTextField();\r
-            jTextFieldFeatureFlag.setBounds(new java.awt.Rectangle(160, 85, 320, 20));\r
+            jTextFieldFeatureFlag.setBounds(new java.awt.Rectangle(168, 87, 320, 20));\r
             jTextFieldFeatureFlag.setPreferredSize(new java.awt.Dimension(320, 20));\r
             jTextFieldFeatureFlag.setToolTipText("Postfix expression that must evaluate to TRUE or FALSE");\r
         }\r
@@ -238,7 +239,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JScrollPane getJScrollPaneModuleList() {\r
         if (jScrollPaneModuleList == null) {\r
             jScrollPaneModuleList = new JScrollPane();\r
-            jScrollPaneModuleList.setBounds(new java.awt.Rectangle(160, 135, 320, 80));\r
+            jScrollPaneModuleList.setBounds(new java.awt.Rectangle(168, 137, 320, 80));\r
             jScrollPaneModuleList.setPreferredSize(new java.awt.Dimension(320, 80));\r
             jScrollPaneModuleList.setViewportView(getICheckBoxListSupModuleList());\r
         }\r
@@ -254,7 +255,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JTextField getJTextFieldHelpText() {\r
         if (jTextFieldHelpText == null) {\r
             jTextFieldHelpText = new JTextField();\r
-            jTextFieldHelpText.setBounds(new java.awt.Rectangle(160, 60, 320, 20));\r
+            jTextFieldHelpText.setBounds(new java.awt.Rectangle(168, 62, 320, 20));\r
             jTextFieldHelpText.setPreferredSize(new java.awt.Dimension(320, 20));\r
         }\r
         return jTextFieldHelpText;\r
@@ -269,7 +270,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JButton getJButtonOk() {\r
         if (jButtonOk == null) {\r
             jButtonOk = new JButton();\r
-            jButtonOk.setBounds(new java.awt.Rectangle(290, 225, 90, 20));\r
+            jButtonOk.setBounds(new java.awt.Rectangle(300, 232, 90, 20));\r
             jButtonOk.setText("Ok");\r
             jButtonOk.addActionListener(this);\r
         }\r
@@ -285,7 +286,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private JButton getJButtonCancel() {\r
         if (jButtonCancel == null) {\r
             jButtonCancel = new JButton();\r
-            jButtonCancel.setBounds(new java.awt.Rectangle(390, 225, 90, 20));\r
+            jButtonCancel.setBounds(new java.awt.Rectangle(400, 232, 90, 20));\r
             jButtonCancel.setText("Cancel");\r
             jButtonCancel.addActionListener(this);\r
         }\r
@@ -312,7 +313,7 @@ public class LibraryClassDefsDlg extends IDialog {
     private void init() {\r
         this.setContentPane(getJScrollPane());\r
         this.setTitle("Library Class Definitions");\r
-        this.setBounds(new java.awt.Rectangle(0, 0, 500, 295));\r
+        this.setBounds(new java.awt.Rectangle(0, 0, 505, 305));\r
         initFrame();\r
         this.setViewMode(false);\r
         this.centerWindow();\r
@@ -360,37 +361,37 @@ public class LibraryClassDefsDlg extends IDialog {
     private JPanel getJContentPane() {\r
         if (jContentPane == null) {\r
             jArchCheckBox = new ArchCheckBox();\r
-            jArchCheckBox.setBounds(new java.awt.Rectangle(160, 110, 320, 20));\r
+            jArchCheckBox.setBounds(new java.awt.Rectangle(168, 112, 320, 20));\r
             jArchCheckBox.setPreferredSize(new java.awt.Dimension(320, 20));\r
             jLabelHelpText = new JLabel();\r
-            jLabelHelpText.setBounds(new java.awt.Rectangle(15, 60, 140, 20));\r
+            jLabelHelpText.setBounds(new java.awt.Rectangle(12, 62, 168, 20));\r
             jLabelHelpText.setText("Help Text");\r
             jLabelModuleList = new JLabel();\r
-            jLabelModuleList.setBounds(new java.awt.Rectangle(15, 135, 140, 20));\r
+            jLabelModuleList.setBounds(new java.awt.Rectangle(12, 137, 168, 20));\r
             jLabelModuleList.setText("Supported Module Types");\r
             jLabelArch = new JLabel();\r
-            jLabelArch.setBounds(new java.awt.Rectangle(15, 110, 140, 20));\r
+            jLabelArch.setBounds(new java.awt.Rectangle(12, 112, 168, 20));\r
             jLabelArch.setText("Supported Architectures");\r
             jLabelFeatureFlag = new JLabel();\r
-            jLabelFeatureFlag.setBounds(new java.awt.Rectangle(15, 85, 140, 20));\r
+            jLabelFeatureFlag.setBounds(new java.awt.Rectangle(12, 87, 168, 20));\r
             jLabelFeatureFlag.setText("Feature Flag Expression");\r
             jLabelRecommendedInstanceGuid = new JLabel();\r
-            jLabelRecommendedInstanceGuid.setBounds(new java.awt.Rectangle(15, 110, 200, 20));\r
+            jLabelRecommendedInstanceGuid.setBounds(new java.awt.Rectangle(12, 112, 200, 20));\r
             jLabelRecommendedInstanceGuid.setText("Recommended Instance Guid");\r
             jLabelRecommendedInstanceGuid.setVisible(false);\r
             jLabelRecommendedInstanceVersion = new JLabel();\r
-            jLabelRecommendedInstanceVersion.setBounds(new java.awt.Rectangle(15, 85, 200, 20));\r
+            jLabelRecommendedInstanceVersion.setBounds(new java.awt.Rectangle(12, 87, 200, 20));\r
             jLabelRecommendedInstanceVersion.setText("Recommended Instance Version");\r
             jLabelRecommendedInstanceVersion.setVisible(false);\r
             jLabelLibraryClassName = new JLabel();\r
-            jLabelLibraryClassName.setBounds(new java.awt.Rectangle(15, 10, 140, 20));\r
+            jLabelLibraryClassName.setBounds(new java.awt.Rectangle(12, 12, 168, 20));\r
             jLabelLibraryClassName.setText("Library Class Name");\r
             jLabelUsage = new JLabel();\r
-            jLabelUsage.setBounds(new java.awt.Rectangle(15, 35, 140, 20));\r
+            jLabelUsage.setBounds(new java.awt.Rectangle(12, 37, 168, 20));\r
             jLabelUsage.setText("Usage");\r
             jContentPane = new JPanel();\r
             jContentPane.setLayout(null);\r
-            jContentPane.setPreferredSize(new java.awt.Dimension(490, 245));\r
+            jContentPane.setPreferredSize(new java.awt.Dimension(495, 255));\r
 \r
             jContentPane.add(getJComboBoxLibraryClassName(), null);\r
             jContentPane.add(jLabelUsage, null);\r