Changeset 55 for trunk/IDE/Forms/UFormMain.pas
- Timestamp:
- Jul 13, 2012, 1:49:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.pas
r54 r55 7 7 uses 8 8 SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, 9 UCompiler,Registry, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas,9 Registry, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, 10 10 UProject, FileUtil, Menus, ActnList, 11 UCoolTranslator, UFormTargetCode, UFormCodeTree, URegistry, ULastOpenedList, UApplicationInfo, 12 UDebugLog; 13 14 const 15 RegistryRootKey = HKEY_CURRENT_USER; 11 UFormTargetCode, UFormCodeTree, URegistry, UApplicationInfo; 16 12 17 13 type … … 164 160 uses 165 161 UCore, UFormMessages, UFormSourceCode, UFormProject, UCommon, UFormAbout, UFormOptions, 166 UFormTargets, UTarget, UAnalyzer, UProducer, UExecutor, UFormProjectNew, 167 UProjectTemplates, UFormTargetProject; 168 169 resourcestring 170 SNewProject = 'New project'; 162 UFormTargets, UTarget, UExecutor, UFormProjectNew, 163 UFormTargetProject; 171 164 172 165 { TFormMain } … … 441 434 Title: string; 442 435 begin 443 Title := ApplicationInfo.Name;436 Title := Core.ApplicationInfo.AppName; 444 437 if Assigned(Core.Project) then begin 445 438 if Core.Project.FileName <> '' then Title := Core.Project.FileName + ' - ' + Title; … … 452 445 begin 453 446 AProjectClose.Execute; 454 Core.SaveToRegistry( RegistryRootKey,ApplicationInfo.RegistryKey);447 Core.SaveToRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); 455 448 end; 456 449 457 450 procedure TFormMain.FormCreate(Sender: TObject); 458 var459 I: Integer;460 451 begin 461 452 end; … … 472 463 473 464 procedure TFormMain.FormShow(Sender: TObject); 474 var 475 NewProjectFile: TProjectFile; 476 begin 477 Core.LoadFromRegistry(RegistryRootKey, ApplicationInfo.RegistryKey); 465 begin 466 Core.LoadFromRegistry(HKEY(Core.ApplicationInfo.RegistryRoot), Core.ApplicationInfo.RegistryKey); 478 467 DockInit; 479 468 Core.ProjectTemplatesInit; … … 517 506 procedure TFormMain.AHomepageExecute(Sender: TObject); 518 507 begin 519 OpenWebPage( ApplicationInfo.HomePage);508 OpenWebPage(Core.ApplicationInfo.HomePage); 520 509 end; 521 510 … … 526 515 527 516 procedure TFormMain.AProjectNewExecute(Sender: TObject); 528 var529 NewFile: TProjectFile;530 517 begin 531 518 if FormProjectNew.ShowModal = mrOk then begin
Note:
See TracChangeset
for help on using the changeset viewer.