Changeset 62 for trunk/IDE


Ignore:
Timestamp:
Jul 17, 2012, 10:14:41 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Show tab sheets of source code forms on file click in project manager.
  • Fixed: Compilation error message line calculation on Windows.
Location:
trunk/IDE
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IDE/Forms/UFormMain.pas

    r61 r62  
    183183    with TProjectFile(Project.Files[0]) do begin
    184184      Compiler.SourceFiles.Files.Clear;
     185      Compiler.TargetFiles.Files.Clear;
    185186      Project.Files.DumpFileList(Compiler.SourceFiles.Files);
    186187      Compiler.MainSource := Project.MainSource.AbsoluteFileName;
     
    497498  Core.ProjectTemplatesInit;
    498499
    499   if Core.ReopenLastOpenedFile and (Core.LastOpenedFiles.Items.Count > 0) then begin
     500  if Core.ReopenLastOpenedFile and (Core.LastOpenedFiles.Items.Count > 0) then
     501  if FileExistsUTF8(Core.LastOpenedFiles.Items[0]) then
    500502    Core.ProjectOpen(Core.LastOpenedFiles.Items[0]);
    501   end;
    502503
    503504  WindowState := wsMaximized;
     
    513514procedure TFormMain.AProjectCloseExecute(Sender: TObject);
    514515begin
    515   //if Project.Modified then ;
     516  //if Project.Modified then ;  A
     517  FormSourceCode.ProjectFile := nil;
    516518  FreeAndNil(Core.Project);
     519  FormProject.UpdateProjectTree;
    517520  UpdateInterface;
    518521end;
  • trunk/IDE/Forms/UFormProject.pas

    r61 r62  
    125125procedure TFormProject.AShowExecute(Sender: TObject);
    126126begin
    127   if Assigned(TreeViewProject.Selected) then
    128   FormSourceCode.SynEditSource.Lines.Assign(TProjectFile(TreeViewProject.Selected.Data).Source);
     127  if Assigned(TreeViewProject.Selected) then begin
     128    FormMain.TabSheetSource.Show;
     129    FormSourceCode.ProjectFile := TProjectFile(TreeViewProject.Selected.Data);
     130  end;
    129131end;
    130132
  • trunk/IDE/Forms/UFormSourceCode.pas

    r57 r62  
    4040procedure TFormSourceCode.SynEditSourceChange(Sender: TObject);
    4141begin
     42  Save;
    4243  if Assigned(Core.Project) and Assigned(ProjectFile) then
    4344    ProjectFile.Modified := True;
  • trunk/IDE/Forms/UFormTargetProject.pas

    r54 r62  
    6666    if TProjectFile(Node.Data) is TProjectFile then begin
    6767      ProjectFile := TProjectFile(Node.Data);
     68      FormMain.TabSheetTarget.Show;
    6869      SynEdit1.Lines.Assign(TProjectFile(Node.Data).Source);
    6970    end;
  • trunk/IDE/UCore.lfm

    r57 r62  
    3737    EmailContact = 'robie@centrum.cz'
    3838    AppName = 'Transpascal IDE'
    39     ReleaseDate = 41103
     39    ReleaseDate = 41107
    4040    RegistryKey = '\Software\Chronosoft\Transpascal'
    4141    RegistryRoot = rrKeyCurrentUser
Note: See TracChangeset for help on using the changeset viewer.