| 2 |  | interface | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 3 |  | uses | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 4 |  | Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, | 
 
 
 
 
 
 
 
 
 
 
 | 5 | < | Dialogs, Template, StdCtrls, ExtCtrls, VirtualTrees, Grids, Wrapgrid, | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 6 | < | MPHexEditor, VTHeaderPopup, Menus, StrUtils, Clipbrd, | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 7 | < | Data, TypeDefs, ConnectionManager, Buttons; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 5 | > | Dialogs, VirtualTrees, Grids, Wrapgrid, MPHexEditor, StdCtrls, | 
 
 
 
 
 | 6 | > | Menus, VTHeaderPopup, ExtCtrls, Buttons, StrUtils, Clipbrd, | 
 
 
 
 
 | 7 | > | Data, TypeDefs, ConnectionManager, Template, | 
 
 
 
 
 | 8 | > | _BaseTemplate, _TemplateFile, _TemplateFileList; | 
 
 
 
 
 
 
 
 
 
 
 | 9 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 10 |  | type | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 |  | TForm_BinEdit = class(TForm_ToolTemplate) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 760 |  | node: PVirtualNode; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 761 |  | nodedata: PNodeData; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 762 |  | rawinfo: TRawDataInfo; | 
 
 
 
 
 
 
 
 
 
 
 | 763 | < | form: TForm_ToolTemplate; | 
 
 
 
 
 
 
 
 
 | 763 | > | form: TForm_TemplateFileList; | 
 
 
 
 
 
 
 
 
 
 
 | 764 |  | begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 765 |  | if VST.FocusedColumn = 3 then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 766 |  | begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 781 |  | if rawinfo.RawSize > 0 then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 782 |  | begin | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 783 |  | form := nil; | 
 
 
 
 
 
 
 
 
 
 
 | 784 | < | form := Form_Main.open_child('rawedit', ConID, fileid); | 
 
 
 
 
 
 
 
 
 | 784 | > | form := TForm_TemplateFileList(Form_Main.open_child('rawedit', ConID, fileid)); | 
 
 
 
 
 
 
 
 
 
 
 | 785 |  | if Assigned(form) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 786 |  | TForm_RawEdit(form).LoadRaw(rawinfo); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 787 |  | end; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 800 |  | end; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 801 |  | if (nodedata.DataType >= 100) and (nodedata.DataType <= 300) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 802 |  | begin | 
 
 
 
 
 
 
 
 
 
 
 | 803 | < | form := Form_Main.open_child('binedit', ConID, -1); | 
 
 
 
 
 
 
 
 
 | 803 | > | form := TForm_TemplateFileList(Form_Main.open_child('binedit', ConID)); | 
 
 
 
 
 
 
 
 
 
 
 | 804 |  | if Assigned(form) then | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 805 |  | form.SetFileFilters(nodedata.Value, '', False); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 806 |  | end; |