Changeset 14 for trunk/StudioModules


Ignore:
Timestamp:
Aug 6, 2012, 10:49:50 AM (12 years ago)
Author:
chronos
Message:
  • Modified: API revised to slave proxy model.
  • Added: Modules can control docking of forms.
Location:
trunk/StudioModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioModules/LDModuleDebug/ULDModuleDebug.pas

    r12 r14  
    9090    MenuItemViewFormCPU.Action := AViewFormCPU;
    9191    RegisterMainMenuItem(MenuItemViewFormCPU, MenuItemViewDebug, 3);
     92    DockForm(FormOutput, dtRight);
     93    DockForm(FormInput, dtRight);
     94    DockForm(FormCPU, dtRight);
     95    DockForm(FormMemory, dtRight);
    9296  end;
    9397  inherited;
  • trunk/StudioModules/LDModuleProject/ULDModuleProject.pas

    r12 r14  
    107107procedure TDataModuleProject.ACloseExecute(Sender: TObject);
    108108begin
    109   if Project.Modified then ASaveAs.Execute;
    110   FreeAndNil(Project);
    111   UpdateInterface;
     109  if Assigned(Project) then begin
     110    if Project.Modified then ASaveAs.Execute;
     111    FreeAndNil(Project);
     112    UpdateInterface;
     113  end;
    112114end;
    113115
     
    145147    FormProject := TFormProject.Create(nil);
    146148    FormProject.API := TLDStudioAPI(API);
     149    DockForm(FormProject, dtRight);
    147150    DataModuleProject.PopupMenu1.Items.Caption := SProject;
    148151    RegisterMainMenuItem(DataModuleProject.PopupMenu1.Items, nil, 1);
Note: See TracChangeset for help on using the changeset viewer.