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