| 1 |
|
unit RawEdit; |
| 2 |
+ |
|
| 3 |
|
interface |
| 4 |
+ |
|
| 5 |
|
uses |
| 6 |
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, |
| 7 |
< |
Dialogs, Template, StdCtrls, ExtCtrls, Menus, Grids, Wrapgrid, |
| 8 |
< |
MPHexEditor, Clipbrd, StrUtils, TypeDefs, |
| 7 |
< |
Data, Functions, DatStructureLoader, ConnectionManager, Buttons; |
| 7 |
> |
Dialogs, _TemplateFileList, Menus, StdCtrls, ExtCtrls, Buttons, ComCtrls, |
| 8 |
> |
TypeDefs, Grids, Wrapgrid, MPHexEditor; |
| 9 |
|
|
| 10 |
|
type |
| 11 |
< |
TForm_RawEdit = class(TForm_ToolTemplate) |
| 11 |
< |
Splitter4: TSplitter; |
| 11 |
> |
TForm_RawEdit = class(TForm_TemplateFileList) |
| 12 |
|
panel_imexport: TPanel; |
| 13 |
|
btn_export: TButton; |
| 14 |
|
btn_import: TButton; |
| 15 |
|
GroupBox1: TGroupBox; |
| 16 |
|
list_offset: TListBox; |
| 17 |
+ |
Splitter4: TSplitter; |
| 18 |
+ |
opend: TOpenDialog; |
| 19 |
+ |
saved: TSaveDialog; |
| 20 |
|
hex: TMPHexEditor; |
| 18 |
– |
Splitter2: TSplitter; |
| 21 |
|
value_viewer: TWrapGrid; |
| 22 |
+ |
Splitter2: TSplitter; |
| 23 |
|
value_viewer_context: TPopupMenu; |
| 24 |
|
value_viewer_context_copy: TMenuItem; |
| 25 |
|
value_viewer_context_copyasdec: TMenuItem; |
| 27 |
|
value_viewer_context_copyasbitset: TMenuItem; |
| 28 |
|
value_viewer_context_copyasstring: TMenuItem; |
| 29 |
|
value_viewer_context_copyashex: TMenuItem; |
| 27 |
– |
opend: TOpenDialog; |
| 28 |
– |
saved: TSaveDialog; |
| 30 |
|
procedure list_offsetClick(Sender: TObject); |
| 31 |
|
procedure NewFile(fileinfo: TFileInfo); |
| 32 |
|
procedure LoadRaw(raw_info: TRawDataInfo); |
| 58 |
|
public |
| 59 |
|
end; |
| 60 |
|
|
| 60 |
– |
var |
| 61 |
– |
Form_RawEdit: TForm_RawEdit; |
| 61 |
|
|
| 62 |
|
implementation |
| 63 |
|
{$R *.dfm} |
| 64 |
< |
uses Main, ValueEdit, RawList; |
| 64 |
> |
uses |
| 65 |
> |
_TemplateFile, ValueEdit, ConnectionManager, StrUtils, Functions, RawList, |
| 66 |
> |
Data, Clipbrd; |
| 67 |
|
|
| 68 |
|
procedure TForm_RawEdit.NewFile(fileinfo: TFileInfo); |
| 69 |
|
var |
| 812 |
|
|
| 813 |
|
begin |
| 814 |
|
AddToolListEntry('rawedit', 'Binary .raw-Editor', ''); |
| 815 |
< |
end. |
| 815 |
> |
end. |
| 816 |
> |
|
| 817 |
> |
|