- Timestamp:
- Feb 25, 2012, 6:04:21 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE
- Property svn:ignore
-
old new 5 5 Transpascal.exe 6 6 heaptrclog.trc 7 Transpascal
-
- Property svn:ignore
-
trunk/IDE/Forms/UMainForm.lfm
r37 r38 5 5 Width = 695 6 6 Caption = 'Transpascal IDE' 7 ClientHeight = 4 827 ClientHeight = 476 8 8 ClientWidth = 695 9 9 Font.Height = -11 … … 20 20 Left = 0 21 21 Height = 5 22 Top = 47 722 Top = 471 23 23 Width = 695 24 24 Align = alBottom … … 27 27 object DockPanel: TPanel 28 28 Left = 0 29 Height = 3 4529 Height = 339 30 30 Top = 26 31 31 Width = 490 … … 87 87 object Splitter1: TSplitter 88 88 Left = 490 89 Height = 3 4589 Height = 339 90 90 Top = 26 91 91 Width = 5 … … 95 95 object PageControlRight: TPageControl 96 96 Left = 495 97 Height = 3 4597 Height = 339 98 98 Top = 26 99 99 Width = 200 … … 113 113 Left = 0 114 114 Height = 101 115 Top = 37 6115 Top = 370 116 116 Width = 695 117 117 ActivePage = TabSheet4 … … 131 131 Left = 0 132 132 Height = 5 133 Top = 3 71133 Top = 365 134 134 Width = 695 135 135 Align = alBottom -
trunk/IDE/Forms/UMainForm.pas
r37 r38 138 138 LogParsing: Boolean; 139 139 Project: TProject; 140 TargetProject: TProject; 140 141 Compiler: TCustomCompiler; 141 142 function GetSource(Name: string; var SourceCode: string): Boolean; … … 203 204 Compiler.Producer := TProducer(Compiler.Producers[SelectedProducerIndex]); 204 205 Compiler.Analyzer := TAnalyzer(Compiler.Analyzers[SelectedAnalyzerIndex]); 205 Compiler.Analyzer.OnGetSource := GetSource;206 206 Compiler.Init; 207 207 … … 212 212 if Project.Items.Count > 0 then 213 213 with TProjectFile(Project.Items[0]) do begin 214 Compiler.SourceFiles.Clear; 215 Project.DumpFileList(Compiler.SourceFiles); 214 216 Compiler.TargetFolder := Project.RootDir; 215 Compiler.Compile (Parent.GetDir + ExtractFileNameOnly(Name), Source);217 Compiler.Compile; 216 218 end; 217 219 ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected); … … 453 455 Compiler := TCustomCompiler.Create; 454 456 Project := TProject.Create; 457 TargetProject := TProject.Create; 455 458 LastOpenedFiles := TLastOpenedList.Create; 456 459 LastOpenedFiles.MenuItem := MenuItemOpenRecent; … … 461 464 begin 462 465 LastOpenedFiles.Free; 466 TargetProject.Free; 463 467 Project.Free; 464 468 Compiler.Free; -
trunk/IDE/Forms/UProjectManager.pas
r37 r38 29 29 30 30 uses 31 UMainForm, UCodeForm, UCompiledForm, UCodeTreeForm , UProducerTreeView;31 UMainForm, UCodeForm, UCompiledForm, UCodeTreeForm; 32 32 33 33 { TProjectManager } -
trunk/IDE/Transpascal.lpi
r37 r38 89 89 <Item3> 90 90 <PackageName Value="LCLBase"/> 91 <MinVersion Major="1" Valid="True" Release="1"/>91 <MinVersion Major="1" Release="1" Valid="True"/> 92 92 </Item3> 93 93 <Item4> -
trunk/IDE/Transpascal.lpr
r37 r38 9 9 Forms, Interfaces, SysUtils, 10 10 UMainForm in 'UMainForm.pas' {MainForm}, 11 UTextSource, UProject, UApplicationInfo, URegistry, ULastOpenedList, 12 UDebugLog, TranspascalCompiler, UProjectManager, UCodeForm, UMessagesForm, 11 UTextSource, UProject, UApplicationInfo, TranspascalCompiler, UProjectManager, UCodeForm, UMessagesForm, 13 12 UCompiledForm, UCodeTreeForm, TemplateGenerics, Common, CoolTranslator, 14 13 UAboutForm, UFormOptions, UCompilersForm, UCompilerSettingsForm; -
trunk/IDE/UApplicationInfo.pas
r37 r38 55 55 Name := 'Transpascal IDE'; 56 56 Identification := 1; 57 ReleaseDate := EncodeDate(2012, 2, 14);57 ReleaseDate := EncodeDate(2012, 2, 25); 58 58 MajorVersion := 0; 59 59 MinorVersion := 1; -
trunk/IDE/UProject.pas
r37 r38 53 53 TProjectGroup = class(TProjectNode) 54 54 Items: TListProjectNode; 55 procedure DumpFileList(Files: TListString); 55 56 constructor Create; 56 57 destructor Destroy; override; … … 88 89 { TProjectGroup } 89 90 91 procedure TProjectGroup.DumpFileList(Files: TListString); 92 var 93 I: Integer; 94 begin 95 for I := 0 to Items.Count - 1 do 96 if TProjectNode(Items[I]) is TProjectGroup then 97 TProjectGroup(Items[I]).DumpFileList(Files) 98 else Files.Add(GetDir(True) + TProjectFile(Items[I]).Name); 99 end; 100 90 101 constructor TProjectGroup.Create; 91 102 begin … … 230 241 function TProjectNode.GetDir(IncludeRoot: Boolean = False): string; 231 242 begin 232 if Assigned(Parent) then Result := Parent.GetDir(IncludeRoot) + Name + '/'233 else Result := Name + '/';243 if Assigned(Parent) then Result := Parent.GetDir(IncludeRoot) + Name + DirectorySeparator 244 else Result := Name + DirectorySeparator; 234 245 end; 235 246
Note:
See TracChangeset
for help on using the changeset viewer.