Changeset 105 for oup/rewrite/Main.pas
- Timestamp:
- Feb 21, 2007, 1:29:27 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
oup/rewrite/Main.pas
r97 r105 11 11 Settings, {Helper_LevelDB, } 12 12 Template, 13 Preview; 14 // BinEdit, Extractor, RawEdit, TxmpReplace; 13 RawEdit, BinEdit, Extractor, Preview, TxmpReplace; 15 14 16 15 type … … 162 161 begin 163 162 UpdateStatBar; 163 UpdateConLists; 164 164 end; 165 165 end; … … 497 497 procedure TForm_Main.LoadFile(typedb: Boolean); 498 498 var 499 ext: String;499 i: Integer; 500 500 begin 501 501 opend.InitialDir := AppSettings.DatPath; … … 507 507 if opend.Execute then 508 508 begin 509 ext := ExtractFileExt(opend.FileName); 510 if ext = '.dat' then 511 begin 512 CreateConnection(opend.FileName); 513 end else if ext = '.oldb' then 514 begin 515 CreateConnection(opend.FileName); 516 end else 517 ShowMessage('Incompatible file'); 509 if opend.Files.Count > 0 then 510 for i := 0 to opend.Files.Count - 1 do 511 CreateConnection(opend.Files.Strings[i]); 518 512 AppSettings.DatPath := ExtractFilepath(opend.FileName); 519 513 end; … … 693 687 CheckConnectionCloseable(index); 694 688 ConManager.CloseConnectionByIndex(index, RepMsg); 689 ShowOpenMsg(RepMsg); 690 UpdateConLists; 695 691 end; 696 692 UpdateStatBar; … … 751 747 if window_context = 'binedit' then 752 748 begin 753 //toolform := TForm_BinEdit.Create(Self);749 toolform := TForm_BinEdit.Create(Self); 754 750 toolform.Caption := 'Binary .dat-Editor ' + caption_end; 755 751 iconindex := 5; … … 757 753 if window_context = 'extractor' then 758 754 begin 759 //toolform := TForm_Extractor.Create(Self);755 toolform := TForm_Extractor.Create(Self); 760 756 toolform.Caption := 'Extractor ' + caption_end; 761 757 iconindex := 8; … … 769 765 if window_context = 'rawedit' then 770 766 begin 771 //toolform := TForm_RawEdit.Create(Self);767 toolform := TForm_RawEdit.Create(Self); 772 768 toolform.Caption := 'Binary .raw-Editor ' + caption_end; 773 769 iconindex := 6; … … 775 771 if window_context = 'txmpreplace' then 776 772 begin 777 // toolform := TForm_TxmpReplace.Create(Application);773 toolform := TForm_TxmpReplace.Create(Self); 778 774 toolform.Caption := 'TXMP Replacer ' + caption_end; 779 775 iconindex := 7;
Note:
See TracChangeset
for help on using the changeset viewer.