]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/DataType.java
Use table and popup window to add/edit all elements of module instead of original...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / DataType.java
CommitLineData
a13899c5 1/** @file\r
2 \r
3 The file is used to define all used final variables\r
4 \r
5 Copyright (c) 2006, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14 **/\r
15package org.tianocore.frameworkwizard.common;\r
16\r
17/**\r
18 The class is used to define all used final variables\r
19\r
06a19cee 20 **/\r
a13899c5 21public class DataType {\r
22\r
23 /**\r
24 \r
25 @param args\r
26 \r
27 **/\r
28 public static void main(String[] args) {\r
29\r
30 }\r
06a19cee 31\r
a13899c5 32 //\r
33 // Define all return types\r
34 //\r
35 public static final int RETURN_TYPE_OK = 1;\r
06a19cee 36\r
a13899c5 37 public static final int RETURN_TYPE_CANCEL = 2;\r
06a19cee 38\r
a13899c5 39 public static final int RETURN_TYPE_NEXT = 3;\r
06a19cee 40\r
a13899c5 41 public static final int RETURN_TYPE_BACK = 4;\r
06a19cee 42\r
a13899c5 43 public static final int RETURN_TYPE_MODULE_SURFACE_AREA = 11;\r
06a19cee 44\r
a13899c5 45 public static final int RETURN_TYPE_PACKAGE_SURFACE_AREA = 12;\r
06a19cee 46\r
a13899c5 47 public static final int RETURN_TYPE_PLATFORM_SURFACE_AREA = 13;\r
06a19cee 48\r
a13899c5 49 public static final int RETURN_TYPE_BUILD_XML = 14;\r
06a19cee 50\r
a13899c5 51 public static final int RETURN_TYPE_WORKSPACE = 15;\r
06a19cee 52\r
92e29378 53 public static final int RETURN_TYPE_TEXT = 16;\r
06a19cee 54\r
a13899c5 55 //\r
56 // Define all used final variables\r
57 //\r
58 public static final String DOS_LINE_SEPARATOR = "\r\n";\r
59\r
60 public static final String UNIX_LINE_SEPARATOR = "\n";\r
06a19cee 61\r
a13899c5 62 public static final String EMPTY_SELECT_ITEM = "----";\r
06a19cee 63\r
a13899c5 64 public static final String DOS_FILE_SEPARATOR = "\\";\r
06a19cee 65\r
a13899c5 66 public static final String UNIX_FILE_SEPARATOR = "/";\r
06a19cee 67\r
a13899c5 68 //\r
69 // Define xml files ext\r
70 //\r
71 public static final String COPY_OF = "Copy of ";\r
06a19cee 72\r
a13899c5 73 public static final String FILE_EXT_SEPARATOR = ".";\r
06a19cee 74\r
a13899c5 75 public static final String WORKSPACE = "Workspace";\r
06a19cee 76\r
a13899c5 77 public static final String MODULE_SURFACE_AREA = "Module Surface Area Description";\r
06a19cee 78\r
a13899c5 79 public static final String MODULE_SURFACE_AREA_EXT = "msa";\r
06a19cee 80\r
81 public static final String MODULE_SURFACE_AREA_EXT_DESCRIPTION = MODULE_SURFACE_AREA + " (*."\r
82 + MODULE_SURFACE_AREA_EXT + ")";\r
83\r
a13899c5 84 public static final String PACKAGE_SURFACE_AREA = "Package Surface Area Description";\r
06a19cee 85\r
a13899c5 86 public static final String PACKAGE_SURFACE_AREA_EXT = "spd";\r
06a19cee 87\r
88 public static final String PACKAGE_SURFACE_AREA_EXT_DESCRIPTION = PACKAGE_SURFACE_AREA + " (*."\r
89 + PACKAGE_SURFACE_AREA_EXT + ")";\r
90\r
a13899c5 91 public static final String PLATFORM_SURFACE_AREA = "Platform Surface Area Description";\r
06a19cee 92\r
a13899c5 93 public static final String PLATFORM_SURFACE_AREA_EXT = "fpd";\r
06a19cee 94\r
95 public static final String PLATFORM_SURFACE_AREA_EXT_DESCRIPTION = PLATFORM_SURFACE_AREA + " (*."\r
96 + PLATFORM_SURFACE_AREA_EXT + ")";\r
97\r
a13899c5 98 public static final String ANT_BUILD_FILE = "ANT Build File";\r
06a19cee 99\r
a13899c5 100 public static final String ANT_BUILD_FILE_EXT = "xml";\r
06a19cee 101\r
a13899c5 102 public static final String ANT_BUILD_FILE_EXT_DESCRIPTION = ANT_BUILD_FILE + " (*." + ANT_BUILD_FILE_EXT + ")";\r
06a19cee 103\r
92e29378 104 public static final String TEXT_FILE = "Text File";\r
06a19cee 105\r
92e29378 106 public static final String TEXT_FILE_EXT = "txt";\r
06a19cee 107\r
92e29378 108 public static final String TEXT_FILE_EXT_DESCRIPTION = TEXT_FILE + " (*." + TEXT_FILE_EXT + ")";\r
06a19cee 109\r
a13899c5 110 //\r
111 // Define file separator for current OS\r
112 //\r
113 public static String FILE_SEPARATOR = System.getProperty("file.separator");\r
06a19cee 114\r
a13899c5 115 //\r
116 // Defien all used frame, container component's sizes\r
117 //\r
118 public static final int MAIN_FRAME_PREFERRED_SIZE_WIDTH = 800;\r
06a19cee 119\r
a13899c5 120 public static final int MAIN_FRAME_PREFERRED_SIZE_HEIGHT = 600;\r
06a19cee 121\r
a13899c5 122 public static final int MAIN_FRAME_MAX_SIZE_WIDTH = 1920;\r
06a19cee 123\r
a13899c5 124 public static final int MAIN_FRAME_MAX_SIZE_HEIGHT = 1200;\r
06a19cee 125\r
a13899c5 126 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH = 790;\r
06a19cee 127\r
a13899c5 128 public static final int MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 129\r
130 public static final int MAIN_FRAME_WIDTH_SPACING = MAIN_FRAME_PREFERRED_SIZE_WIDTH\r
131 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_WIDTH;\r
132\r
133 public static final int MAIN_FRAME_HEIGHT_SPACING = MAIN_FRAME_PREFERRED_SIZE_HEIGHT\r
134 - MAIN_FRAME_SPLIT_PANEL_PREFERRED_SIZE_HEIGHT;\r
135\r
a13899c5 136 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_WIDTH = 273;\r
06a19cee 137\r
a13899c5 138 public static final int MAIN_FRAME_TREE_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 139\r
a13899c5 140 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_WIDTH = 515;\r
06a19cee 141\r
a13899c5 142 public static final int MAIN_FRAME_EDITOR_PANEL_PREFERRED_SIZE_HEIGHT = 545;\r
06a19cee 143\r
a13899c5 144 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_X = 260;\r
06a19cee 145\r
a13899c5 146 public static final int MAIN_FRAME_EDITOR_PANEL_LOCATION_Y = 1;\r
06a19cee 147\r
a13899c5 148 public static final int SPACE_TO_RIGHT_FOR_GENERATE_BUTTON = 10;\r
06a19cee 149\r
a13899c5 150 public static final int SPACE_TO_RIGHT_FOR_OK_BUTTON = 10;\r
06a19cee 151\r
a13899c5 152 public static final int SPACE_TO_RIGHT_FOR_ADD_BUTTON = 180;\r
06a19cee 153\r
a13899c5 154 public static final int SPACE_TO_RIGHT_FOR_REMOVE_BUTTON = 95;\r
06a19cee 155\r
a13899c5 156 public static final int SPACE_TO_RIGHT_FOR_UPDATE_BUTTON = 10;\r
a13899c5 157 \r
06a19cee 158 public static final int SPACE_TO_BOTTOM_FOR_ADD_BUTTON = 30;\r
159\r
160 public static final int SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON = 30;\r
161\r
162 public static final int SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON = 30;\r
163\r
164 public static final int SPACE_TO_RIGHT_FOR_PROTOCOL_NOTIFY = 25;\r
165\r
a13899c5 166 public static final int LEFT_WIDTH = 160;\r
06a19cee 167\r
a13899c5 168 public static final int LEFT_HEIGHT = 20;\r
06a19cee 169\r
a13899c5 170 public static final int RIGHT_WIDTH = 320;\r
06a19cee 171\r
a13899c5 172 public static final int RIGHT_HEIGHT = 20;\r
06a19cee 173\r
a13899c5 174 public static final int RIGHT_MULTIPLE_HEIGHT = 4 * RIGHT_HEIGHT;\r
06a19cee 175\r
a13899c5 176 public static final int BUTTON_GEN_WIDTH = 65;\r
06a19cee 177\r
a13899c5 178 public static final int BUTTON_GEN_HEIGHT = 20;\r
06a19cee 179\r
a13899c5 180 public static final int BUTTON_BROWSE_WIDTH = 65;\r
06a19cee 181\r
a13899c5 182 public static final int BUTTON_BROWSE_HEIGHT = 20;\r
06a19cee 183\r
a13899c5 184 public static final int BUTTON_ADD_WIDTH = 80;\r
06a19cee 185\r
a13899c5 186 public static final int BUTTON_ADD_HEIGHT = 20;\r
06a19cee 187\r
a13899c5 188 public static final int BUTTON_UPDATE_WIDTH = 80;\r
06a19cee 189\r
a13899c5 190 public static final int BUTTON_UPDATE_HEIGHT = 20;\r
06a19cee 191\r
a13899c5 192 public static final int BUTTON_REMOVE_WIDTH = 80;\r
06a19cee 193\r
a13899c5 194 public static final int BUTTON_REMOVE_HEIGHT = 20;\r
06a19cee 195\r
a13899c5 196 public static final int SCROLLBAR_WIDTH = 18;\r
06a19cee 197\r
a13899c5 198 public static final int SCROLLBAR_HEIGHT = 18;\r
06a19cee 199\r
a13899c5 200 //\r
201 // Common Help Text\r
202 // First defined here\r
203 // Will be replaced by resource file later\r
204 //\r
205 public static final String SUP_ARCH_LIST_HELP_TEXT = "Deselecting a checkbox will restrict this module for use with the selected architectures, based on the list of items that are checked. If all boxes are checked, then the module will support all current AND FUTURE architectures";\r
06a19cee 206\r
8f9acbd7 207 //\r
208 // Project name and version\r
209 //\r
210 public static final String PROJECT_NAME = "Framework Wizard";\r
06a19cee 211\r
8f9acbd7 212 public static final String PROJECT_VERSION = "1.0";\r
06a19cee 213\r
92e29378 214 //\r
215 // Sort Type\r
216 //\r
217 public static final int SORT_TYPE_ASCENDING = 1;\r
06a19cee 218\r
92e29378 219 public static final int SORT_TYPE_DESCENDING = 2;\r
06a19cee 220\r
92e29378 221 //\r
222 // Module Type\r
223 //\r
224 public static final String MODULE_TYPE_LIBRARY = "Library";\r
06a19cee 225\r
92e29378 226 public static final String MODULE_TYPE_MODULE = "Module";\r
a13899c5 227}\r