source: oup/rewrite/Global/TypeDefs.pas@ 104

Last change on this file since 104 was 101, checked in by alloc, 18 years ago
File size: 1.9 KB
Line 
1unit TypeDefs;
2interface
3
4uses
5 Graphics, SysUtils;
6
7type
8 ENotImplemented = class(Exception);
9
10 TDataBackend = (DB_ONI, DB_ADB);
11 TDataOS = (DOS_WIN, DOS_WINDEMO, DOS_MAC, DOS_MACBETA);
12
13 TChangeRights = set of (CR_EditDat, CR_EditRaw, CR_ResizeDat, CR_ResizeRaw, CR_AppendRaw);
14
15 TStatusMessages = (
16 SM_OK,
17 SM_AlreadyOpened,
18 SM_FileNotFound,
19 SM_UnknownExtension,
20 SM_IncompatibleFile,
21 SM_IncompatibleDBVersion,
22 SM_UnknownError
23 );
24
25 TExtensionsMap = array of packed record
26 Ident: array[0..$7] of Byte;
27 Extension: array[0..$3] of Char;
28 ExtCount: LongWord;
29 end;
30
31 TFileInfo = packed record
32 ID: Integer;
33 Name: String;
34 Extension: String[4];
35 Size: Integer;
36 FileType: LongWord;
37 DatAddr: Integer;
38 end;
39 TFiles = array of TFileInfo;
40
41 TRawDataInfo = record
42 SrcID: Integer;
43 SrcOffset: Integer;
44 RawAddr: Integer;
45 RawSize: Integer;
46 LocSep: Boolean;
47 end;
48 TRawDataList = array of TRawDataInfo;
49
50 TSortType = (
51 ST_IDAsc,
52 ST_IDDesc,
53 ST_NameAsc,
54 ST_NameDesc,
55 ST_ExtAsc,
56 ST_ExtDesc
57 );
58
59 TExtensionFormat = (
60 EF_ExtOnly,
61 EF_ExtCount
62 );
63
64 TByteData = array of Byte;
65
66 TAppSettings = record
67 DatPath: String[250];
68 ExtractPath: String[250];
69 FilenumbersAsHex: Boolean;
70 CharSet: TFontCharSet;
71 HideUnusedData: Boolean;
72 end;
73
74 TToolList = array of record
75 context: String;
76 name: String;
77 exts: String;
78 end;
79
80{
81 TLevelInfo = record
82 Ident: array[0..$13] of Byte;
83 LevelNumber: Byte;
84 end;
85
86 TDatLinks = array of record
87 Src_Offset: LongWord;
88 Target: LongWord;
89 end;
90}
91
92const
93 CrLf: String[2] = #13#10;
94
95implementation
96
97end.
Note: See TracBrowser for help on using the repository browser.