Changeset 66 for trunk/IDE/Forms
- Timestamp:
- Jul 19, 2012, 8:16:57 AM (12 years ago)
- Location:
- trunk/IDE/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.lfm
r65 r66 1 1 object FormMain: TFormMain 2 Left = 1402 Left = 202 3 3 Height = 501 4 Top = 524 Top = 62 5 5 Width = 695 6 6 Caption = 'Transpascal IDE' -
trunk/IDE/Forms/UFormMain.pas
r65 r66 8 8 SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, 9 9 ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, 10 UProject, FileUtil, Menus, ActnList, 11 UFormTargetCode, UFormCodeTree, UGeneralRegistry , UApplicationInfo;10 UProject, FileUtil, Menus, ActnList, DateUtils, 11 UFormTargetCode, UFormCodeTree, UGeneralRegistry; 12 12 13 13 type … … 146 146 procedure ProducerProcessOutput(Text: string); 147 147 public 148 procedure LoadFromRegistry(Root: Integer; Key: string);149 procedure SaveToRegistry(Root: Integer; Key: string);148 procedure LoadFromRegistry(Root: Integer; const Key: string); 149 procedure SaveToRegistry(Root: Integer; const Key: string); 150 150 procedure OpenRecentClick(Sender: TObject); 151 151 function GetSource(Name: string; var SourceCode: string): Boolean; … … 165 165 UFormTargets, UTarget, UExecutor, UFormProjectNew, 166 166 UFormTargetProject, UFormExternalProducerOutput; 167 168 resourcestring 169 SBuildFinished = 'Build finished in %s seconds'; 167 170 168 171 { TFormMain } … … 192 195 Compiler.Compile; 193 196 TargetProject.Files.LoadFromList(Compiler.TargetFiles.Files); 194 TargetProject.MainSource := TProjectFile(TargetProject.Files.First); 197 if TargetProject.Files.Count > 0 then 198 TargetProject.MainSource := TProjectFile(TargetProject.Files.First); 195 199 FormTargetProject.UpdateInterface; 196 200 … … 203 207 end; 204 208 FormProject.TreeViewProjectChange(Self, FormProject.TreeViewProject.Selected); 209 Compiler.ErrorMessage(Format(SBuildFinished, [FloatToStrF(Compiler.ElapsedTime / OneSecond, ffGeneral, 3, 10)]), Point(0, 0), ''); 205 210 FormMessages.Reload; 206 211 end; … … 397 402 end; 398 403 399 procedure TFormMain.LoadFromRegistry(Root: Integer; Key: string);404 procedure TFormMain.LoadFromRegistry(Root: Integer; const Key: string); 400 405 begin 401 406 with TGeneralRegistry.Create(nil) do … … 414 419 end; 415 420 416 procedure TFormMain.SaveToRegistry(Root: Integer; Key: string);421 procedure TFormMain.SaveToRegistry(Root: Integer; const Key: string); 417 422 begin 418 423 with TGeneralRegistry.Create(nil) do -
trunk/IDE/Forms/UFormMessages.pas
r57 r66 54 54 with Core, FormMain, FormSourceCode do 55 55 with TErrorMessage(Compiler.ErrorMessages[Item.Index]) do begin 56 Item.Caption := FileName; 56 if FileName = '' then Item.Caption := ' ' 57 else Item.Caption := FileName; 57 58 Item.Data := Compiler.ErrorMessages[Item.Index]; 58 59 Item.SubItems.Add(IntToStr(Position.X) + ',' + IntToStr(Position.Y)); … … 69 70 with Core, FormSourceCode do 70 71 if Assigned(ListView1.Selected) then 71 with TErrorMessage(ListView1.Selected.Data) do begin 72 with TErrorMessage(ListView1.Selected.Data) do 73 if FileName <> '' then begin 72 74 ProjectFile := Project.Files.SearchFile(FileName); 73 75 if Assigned(ProjectFile) then
Note:
See TracChangeset
for help on using the changeset viewer.