Changeset 338
- Timestamp:
- Feb 27, 2010, 10:48:45 AM (15 years ago)
- Location:
- tools/dbc_export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dbc_export/DBCExport.lpi
r337 r338 35 35 <IsPartOfProject Value="True"/> 36 36 <UnitName Value="DBCExport"/> 37 <CursorPos X=" 16" Y="68"/>38 <TopLine Value=" 98"/>37 <CursorPos X="3" Y="107"/> 38 <TopLine Value="105"/> 39 39 <EditorIndex Value="0"/> 40 <UsageCount Value="3 0"/>40 <UsageCount Value="31"/> 41 41 <Loaded Value="True"/> 42 42 <SyntaxHighlighter Value="Delphi"/> … … 117 117 <TopLine Value="71"/> 118 118 <EditorIndex Value="4"/> 119 <UsageCount Value="2 1"/>119 <UsageCount Value="22"/> 120 120 <Loaded Value="True"/> 121 121 <SyntaxHighlighter Value="Delphi"/> … … 128 128 <TopLine Value="60"/> 129 129 <EditorIndex Value="2"/> 130 <UsageCount Value="2 1"/>130 <UsageCount Value="22"/> 131 131 <Loaded Value="True"/> 132 132 <SyntaxHighlighter Value="Delphi"/> … … 138 138 <TopLine Value="1"/> 139 139 <EditorIndex Value="3"/> 140 <UsageCount Value="2 1"/>140 <UsageCount Value="22"/> 141 141 <Loaded Value="True"/> 142 142 <SyntaxHighlighter Value="None"/> -
tools/dbc_export/DBCExport.pas
r337 r338 22 22 NewDBCFileName: string; 23 23 ColumnTypeDefinition: string; 24 DisplayData: Boolean; 24 25 constructor Create(TheOwner: TComponent); override; 25 26 destructor Destroy; override; … … 50 51 if HasOption('c', 'coltypedef') then begin 51 52 ColumnTypeDefinition := GetOptionValue('c', 'coltypedef'); 53 end; 54 if HasOption('d', 'display') then begin 55 DisplayData := True; 52 56 end; 53 57 … … 95 99 WriteLn(' -f --file Source DBC file name'); 96 100 WriteLn(' -n --newfile New created DBC file name'); 97 WriteLn(' -c --coltypedef DBC column type definition string ');98 WriteLn(' u - uint32, s - string');101 WriteLn(' -c --coltypedef DBC column type definition string (u - uint32, s - string)'); 102 WriteLn(' -d --display Display DBC data'); 99 103 end; 100 104 101 105 procedure TDBCExport.ShowDBC; 102 106 var 103 //X, Y: Integer;104 //Text: string;107 X, Y: Integer; 108 Text: string; 105 109 I: Integer; 106 110 begin … … 115 119 LoadColumnStrings(I - 1); 116 120 117 (*for Y := 0 to Length(Cells) - 1 do begin 121 // Display DBC data 122 if DisplayData then 123 for Y := 0 to Length(Cells) - 1 do begin 118 124 Text := ''; 119 125 for X := 0 to Length(Cells[Y]) - 1 do … … 122 128 WriteLn(Text); 123 129 end; 124 *) 130 125 131 WriteLn('Save'); 126 132 SaveToFile(NewDBCFileName);
Note:
See TracChangeset
for help on using the changeset viewer.