Changeset 248 for oup/current/Tools
- Timestamp:
- Nov 26, 2007, 12:02:28 PM (17 years ago)
- Location:
- oup/current/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/current/Tools/BinEdit.dfm
r245 r248 107 107 Colors.EvenColumn = clNavy 108 108 Colors.CurrentOffsetBackground = clBtnShadow 109 Colors.OffsetBack Ground = clBtnFace109 Colors.OffsetBackground = clBtnFace 110 110 Colors.CurrentOffset = clBtnHighlight 111 111 Colors.Grid = clBtnFace … … 116 116 AllowInsertMode = False 117 117 DrawGridLines = False 118 Version = ' May 23, 2005; '#169' markus stephany, vcl[at]mirkes[dot]de'118 Version = 'september 30, 2007; '#169' markus stephany, vcl[at]mirkes[dot]de' 119 119 OnChange = hexChange 120 120 ShowPositionIfNotFocused = True -
oup/current/Tools/BinEdit.pas
r231 r248 141 141 // Self.SelectFileID(ConnectionID, fileid); 142 142 Self.ClearStructViewer; 143 ClearValues; 143 144 mem := nil; 144 ConManager.Connection[ConID].LoadDatFile(fileid, TStream(mem)); 145 rawlist := ConManager.Connection[ConID].GetRawList(fileid); 146 hex.LoadFromStream(mem); 147 mem.Free; 148 ClearValues; 149 WriteStructureInfos; 145 hex.DataSize := 0; 146 if fileinfo.Size > 0 then 147 begin 148 ConManager.Connection[ConID].LoadDatFile(fileid, TStream(mem)); 149 rawlist := ConManager.Connection[ConID].GetRawList(fileid); 150 hex.LoadFromStream(mem); 151 mem.Free; 152 WriteStructureInfos; 153 end; 150 154 end 151 155 else -
oup/current/Tools/MetaEditor.dfm
r244 r248 82 82 Caption = 'Meta Edit' 83 83 ImageIndex = 1 84 ExplicitLeft = 0 85 ExplicitTop = 0 86 ExplicitWidth = 0 87 ExplicitHeight = 0 84 88 end 85 89 object tab_hex: TTabSheet 86 90 Caption = 'Binary Edit' 91 ExplicitLeft = 0 92 ExplicitTop = 0 93 ExplicitWidth = 0 94 ExplicitHeight = 0 87 95 object splitter_hex_1: TSplitter 88 96 Left = 0 … … 162 170 Colors.EvenColumn = clNavy 163 171 Colors.CurrentOffsetBackground = clBtnShadow 164 Colors.OffsetBack Ground = clBtnFace172 Colors.OffsetBackground = clBtnFace 165 173 Colors.CurrentOffset = clBtnHighlight 166 174 Colors.Grid = clBtnFace … … 171 179 AllowInsertMode = False 172 180 DrawGridLines = False 173 Version = ' May 23, 2005; '#169' markus stephany, vcl[at]mirkes[dot]de'181 Version = 'september 30, 2007; '#169' markus stephany, vcl[at]mirkes[dot]de' 174 182 ShowPositionIfNotFocused = True 175 183 end -
oup/current/Tools/MetaEditor.pas
r244 r248 149 149 var 150 150 data: PNodeData; 151 ffile: T File;151 ffile: TResource; 152 152 //******************************************************************* 153 153 fs: TFileStream; … … 156 156 data := Sender.GetNodeData(Node); 157 157 ffile := nil; 158 if data.Field is T File then159 ffile := T File(data.Field);158 if data.Field is TResource then 159 ffile := TResource(data.Field); 160 160 if data.Field is _MetaTypes.TDatLink then 161 161 if Assigned(_MetaTypes.TDatLink(data.Field).TargetFile) then 162 ffile := T File(_MetaTypes.TDatLink(data.Field).TargetFile);162 ffile := TResource(_MetaTypes.TDatLink(data.Field).TargetFile); 163 163 if Assigned(ffile) then 164 164 begin … … 186 186 begin 187 187 data := Sender.GetNodeData(NewNode); 188 if data.Field is T File then189 begin 190 if Assigned(T File(data.Field).Editor) then191 Allowed := not T File(data.Field).Opened188 if data.Field is TResource then 189 begin 190 if Assigned(TResource(data.Field).Editor) then 191 Allowed := not TResource(data.Field).Opened 192 192 else 193 193 Allowed := True; … … 196 196 begin 197 197 data := Sender.GetNodeData(OldNode); 198 if data.Field is T File then199 begin 200 if T File(data.Field).Opened then198 if data.Field is TResource then 199 begin 200 if TResource(data.Field).Opened then 201 201 begin 202 202 if tab_meta.ControlCount > 0 then 203 203 for i := 0 to tab_meta.ControlCount - 1 do 204 204 tab_meta.RemoveControl(tab_meta.Controls[i]); 205 T File(data.Field).Opened := False;205 TResource(data.Field).Opened := False; 206 206 end; 207 207 end; … … 244 244 0: 245 245 begin 246 if Data.Field is T File then246 if Data.Field is TResource then 247 247 begin 248 if Length(T File(Data.Field).FileInfo.Name) = 0 then248 if Length(TResource(Data.Field).FileInfo.Name) = 0 then 249 249 TargetCanvas.Font.Color := $C06060; 250 if T File(Data.Field).FileInfo.Size = 0 then250 if TResource(Data.Field).FileInfo.Size = 0 then 251 251 TargetCanvas.Font.Color := $2020A0; 252 252 end; … … 267 267 i: Integer; 268 268 links: TStrings; 269 ifile: T File;269 ifile: TResource; 270 270 begin 271 271 inherited; … … 283 283 end; 284 284 end; 285 if data.Field is T File then285 if data.Field is TResource then 286 286 begin 287 ifile := T File(data.Field);287 ifile := TResource(data.Field); 288 288 case Column of 289 289 0: HintText := -
oup/current/Tools/_TemplateFileList.dfm
r241 r248 38 38 object tab_files: TTabSheet 39 39 Caption = 'Filelist' 40 ExplicitLeft = 0 41 ExplicitTop = 0 42 ExplicitWidth = 0 43 ExplicitHeight = 0 40 44 object panel_extension: TPanel 41 45 Left = 0 … … 220 224 Font.Name = 'Courier' 221 225 Font.Style = [] 222 ItemHeight = 13226 ItemHeight = 0 223 227 ParentFont = False 224 228 Sorted = True … … 270 274 Caption = 'Tree' 271 275 ImageIndex = 1 276 ExplicitLeft = 0 277 ExplicitTop = 0 278 ExplicitWidth = 0 279 ExplicitHeight = 0 272 280 object filelist_meta: TVirtualStringTree 273 281 Left = 0 -
oup/current/Tools/_TemplateFileList.pas
r233 r248 420 420 inherited; 421 421 data := Sender.GetNodeData(Node); 422 if data.Field is T File then422 if data.Field is TResource then 423 423 begin 424 424 if Assigned(FOnNewFileSelected) then 425 425 begin 426 FOnNewFileSelected(T File(data.Field).FileInfo);426 FOnNewFileSelected(TResource(data.Field).FileInfo); 427 427 end; 428 428 end; … … 437 437 inherited; 438 438 data := Sender.GetNodeData(NewNode); 439 if data.Field is T File then439 if data.Field is TResource then 440 440 begin 441 441 if Assigned(FOnNewFileSelecting) then 442 442 begin 443 FOnNewFileSelecting(T File(data.Field).FileInfo, Allowed);443 FOnNewFileSelecting(TResource(data.Field).FileInfo, Allowed); 444 444 end; 445 445 end; … … 519 519 begin 520 520 Data := Sender.GetNodeData(Node); 521 if Data.Field is T File then522 begin 523 if Length(T File(Data.Field).FileInfo.Name) = 0 then521 if Data.Field is TResource then 522 begin 523 if Length(TResource(Data.Field).FileInfo.Name) = 0 then 524 524 TargetCanvas.Font.Color := $C06060; 525 if T File(Data.Field).FileInfo.Size = 0 then525 if TResource(Data.Field).FileInfo.Size = 0 then 526 526 TargetCanvas.Font.Color := $2020A0; 527 527 end;
Note:
See TracChangeset
for help on using the changeset viewer.