Changeset 18
- Timestamp:
- 04/06/05 08:47:38 (7 years ago)
- Files:
-
- trunk/DManager.dsk (modified) (11 diffs)
- trunk/MyUtils.pas (modified) (1 diff)
- trunk/Projects.pas (modified) (3 diffs)
- trunk/UMain.pas (modified) (8 diffs)
- trunk/Workspaces.pas (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DManager.dsk
r15 r18 8 8 9 9 [Modules] 10 Module0=C:\proj\delphi\dproj\DManager.dpr 11 Count=1 10 Module0=E:\proj\delphi\dproj\UMain.pas 11 Module1=E:\proj\delphi\dproj\Projects.pas 12 Module2=E:\proj\delphi\dproj\DManager.dpr 13 Module3=E:\proj\delphi\dproj\MyUtils.pas 14 Module4=E:\proj\delphi\dproj\Workspaces.pas 15 Count=5 12 16 EditWindowCount=1 13 17 14 [C:\proj\delphi\dproj\DManager.dpr] 15 ModuleType=SourceModule 16 FormState=0 17 FormOnTop=0 18 19 [C:\SVN\dmanager\trunk\ProjectGroup1.bpg] 20 FormState=0 21 FormOnTop=0 22 23 [C:\SVN\dmanager\trunk\DManager.dpr] 18 [E:\proj\delphi\dproj\UMain.pas] 19 ModuleType=SourceModule 20 FormState=0 21 FormOnTop=1 22 23 [E:\proj\delphi\dproj\Projects.pas] 24 ModuleType=SourceModule 25 FormState=0 26 FormOnTop=0 27 28 [E:\proj\delphi\dproj\DManager.dpr] 29 ModuleType=SourceModule 30 FormState=0 31 FormOnTop=0 32 33 [E:\proj\delphi\dproj\MyUtils.pas] 34 ModuleType=SourceModule 35 FormState=0 36 FormOnTop=0 37 38 [E:\proj\delphi\dproj\Workspaces.pas] 39 ModuleType=SourceModule 40 FormState=0 41 FormOnTop=0 42 43 [C:\Program Files\Borland\Delphi5\Projects\ProjectGroup1.bpg] 24 44 FormState=0 25 45 FormOnTop=0 26 46 27 47 [EditWindow0] 28 ViewCount= 129 CurrentView= 048 ViewCount=5 49 CurrentView=3 30 50 View0=0 51 View1=1 52 View2=2 53 View3=3 54 View4=4 31 55 MessageView=MessageView@EditWindow0 32 56 Create=1 … … 38 62 Height=482 39 63 MaxLeft=-4 40 MaxTop=10 064 MaxTop=104 41 65 MaxWidth=1032 42 MaxHeight=6 1966 MaxHeight=608 43 67 ClientWidth=1024 44 ClientHeight=5 9268 ClientHeight=574 45 69 LeftPanelSize=0 46 70 RightPanelSize=0 … … 50 74 51 75 [View0] 52 Module= C:\proj\delphi\dproj\DManager.dpr76 Module=E:\proj\delphi\dproj\DManager.dpr 53 77 CursorX=1 54 78 CursorY=1 55 79 TopLine=1 80 LeftCol=1 81 82 [View1] 83 Module=E:\proj\delphi\dproj\Workspaces.pas 84 CursorX=60 85 CursorY=18 86 TopLine=1 87 LeftCol=1 88 89 [View2] 90 Module=E:\proj\delphi\dproj\Projects.pas 91 CursorX=7 92 CursorY=202 93 TopLine=191 94 LeftCol=1 95 96 [View3] 97 Module=E:\proj\delphi\dproj\UMain.pas 98 CursorX=1 99 CursorY=1 100 TopLine=1 101 LeftCol=1 102 103 [View4] 104 Module=E:\proj\delphi\dproj\MyUtils.pas 105 CursorX=1 106 CursorY=275 107 TopLine=258 56 108 LeftCol=1 57 109 … … 73 125 Top=0 74 126 Width=1024 75 Height=1 0576 MaxLeft=- 177 MaxTop=- 1127 Height=112 128 MaxLeft=-4 129 MaxTop=-4 78 130 MaxWidth=1032 79 MaxHeight=1 05131 MaxHeight=112 80 132 ClientWidth=1024 81 133 ClientHeight=78 … … 92 144 MaxTop=-1 93 145 ClientWidth=430 94 ClientHeight=27 9146 ClientHeight=277 95 147 TBDockHeight=303 96 148 LRDockWidth=438 … … 108 160 MaxTop=-1 109 161 ClientWidth=525 110 ClientHeight=3 26162 ClientHeight=319 111 163 DumpPane=79 112 164 DisassemblyPane=187 … … 121 173 Top=107 122 174 Width=156 123 Height=8 2175 Height=84 124 176 MaxLeft=-1 125 177 MaxTop=-1 … … 138 190 MaxTop=-1 139 191 ClientWidth=199 140 ClientHeight=59 7192 ClientHeight=595 141 193 TBDockHeight=494 142 194 LRDockWidth=190 … … 144 196 SplitPos=122 145 197 ArrangeBy=Name 146 SelectedItem= 198 SelectedItem=Name 147 199 ExpandedItems=BorderIcons,Options 148 200 HiddenCategories=Legacy … … 160 212 MaxTop=-1 161 213 ClientWidth=413 162 ClientHeight=12 5214 ClientHeight=123 163 215 TBDockHeight=149 164 216 LRDockWidth=421 … … 176 228 MaxTop=-1 177 229 ClientWidth=286 178 ClientHeight=13 7230 ClientHeight=135 179 231 TBDockHeight=161 180 232 LRDockWidth=294 trunk/MyUtils.pas
r15 r18 160 160 if ( Bytes = 0 ) then break; 161 161 Buffer := Buffer + Copy(lpBuffer, 1, Bytes); 162 lpBuffer := '';162 ZeroMemory( @lpBuffer, Sizeof(lpBuffer) ); 163 163 end; 164 164 Split( Buffer, delim , output ); trunk/Projects.pas
r15 r18 164 164 proj.name:= xml.FindText( 'Name' ); 165 165 proj.destfilename := xml.FindText( 'DestFileName' ); 166 proj.basepath := xml.FindText( 'BasePath' ); 167 proj.basepath := FullPath( dir, proj.basepath ); 166 167 tmp := xml.FindNode( 'BasePath' ); 168 if not Assigned(tmp ) then proj.basepath := dir 169 else proj.basePath:= FullPath( dir, tmp.data ); 168 170 169 171 proj.outPath := xml.FindText('OutputPath' ); … … 206 208 xml.Add( 'Name', Self.name ); 207 209 xml.Add( 'DestFileName', destfilename ); 208 xml.Add( 'BasePath', RelativePath( base, basepath ) ); 210 211 if self.basepath <> base then xml.Add( 'BasePath', RelativePath( base, basepath ) ); 209 212 xml.Add( 'OutputPath', RelativePath( base, outPath ) ); 210 213 xml.AddBool( 'FullBuild', fullbuild ); … … 292 295 if not Empty( destfilename ) then options.Add( '-of' + destfilename ) 293 296 else options.Add( '-of' + Self.name ); 297 298 with config do begin 299 if profileHooks then options.Add( '-gt' ); 300 if debugSymbols then options.Add( '-g' ); 301 if releaseVersion then options.Add( '-release' ); 302 end; 294 303 295 304 with config do trunk/UMain.pas
r15 r18 404 404 var 405 405 filename : string; 406 begin 407 if Assigned( workspace ) and ( not CloseWorkspace ) then Exit; 406 dir : string; 407 begin 408 dir := homedir; 409 if Assigned( workspace ) then 410 begin 411 dir := ExtractFilePath( workspace.filename ); 412 if not DirectoryExists( dir ) then dir := homedir; 413 if ( not CloseWorkspace ) then Exit; 414 end; 408 415 with( FileDialog) do begin 409 InitialDir := homedir;416 InitialDir := dir; 410 417 Filter := 'Workspace files(*.wsx)|*.wsx' ; 411 418 Title := 'Load Workspace'; … … 828 835 begin 829 836 if not Assigned( workspace ) then Exit; 830 with( FileDialog) do begin 831 InitialDir := homedir; 837 with( FileDialog ) do 838 begin 839 InitialDir := ExtractFilePath( workspace.filename ); 832 840 FileName:= ''; 833 841 Filter := 'Project files(*.prx)|*.prx' ; … … 946 954 destfile := CurrentProject.GetResultFile( sourcefileclicked ); 947 955 workspace.CompileFile( CurrentProject, sourceFileClicked ); 948 956 UpdateTreeview; 949 957 StatusBar.SimpleText:=''; 950 958 StatusBar.SimplePanel := true; 951 959 if FileExists( destfile ) then StatusBar.SimpleText := 'Compile successful'; 952 UpdateTreeview; 953 end; 960 end; 954 961 955 962 procedure TmainForm.PMSaveClick(Sender: TObject); … … 987 994 if not Assigned( workspace ) then Exit; 988 995 if not SelProject then Exit; 989 if not workspace.BuildProjectEXE( CurrentProject ) then UpdateTreeview;990 996 workspace.BuildProjectEXE( CurrentProject ) ; 997 UpdateTreeview; 991 998 OutputDlg.Listbox.Items.Clear; 992 999 OutputDlg.ShowOutput( CurrentProject, workspace.output, 'Build EXE Results' ); … … 998 1005 if not SelProject then Exit; 999 1006 workspace.BuildProjectEXE( CurrentProject ); 1000 1007 UpdateTreeview; 1001 1008 OutputDlg.Listbox.Items.Clear; 1002 1009 OutputDlg.ShowOutput( CurrentProject, workspace.output, 'Build EXE Results' ); … … 1007 1014 if not SelProject then Exit; 1008 1015 if FileExists( CurrentProject.LibName ) then DeleteFile( CurrentProject.LibName ); 1009 if not workspace.BuildProjectLIB( CurrentProject ) then UpdateTreeview; 1016 workspace.BuildProjectLIB( CurrentProject ); 1017 UpdateTreeview; 1010 1018 OutputDlg.Listbox.Items.Clear; 1011 1019 OutputDlg.ShowOutput( CurrentProject, workspace.output, 'Build LIB Results' ); … … 1023 1031 if not SelProject then Exit; 1024 1032 if FileExists( CurrentProject.ExeName ) then DeleteFile( CurrentProject.ExeName ); 1025 if not workspace.BuildProjectEXE( CurrentProject ) then UpdateTreeview; 1033 workspace.BuildProjectEXE( CurrentProject ) ; 1034 UpdateTreeview; 1026 1035 OutputDlg.Listbox.Clear; 1027 1036 OutputDlg.ShowOutput( CurrentProject, workspace.output, 'Build EXE Results' ); … … 1048 1057 begin 1049 1058 if not SelProject then Exit; 1050 if not workspace.BuildProjectEXE( CurrentProject ) then UpdateTreeview; 1059 workspace.BuildProjectEXE( CurrentProject ) ; 1060 UpdateTreeview; 1051 1061 1052 1062 if not FileExists( CurrentProject.ExeName ) then trunk/Workspaces.pas
r15 r18 138 138 result := false; 139 139 output.Clear; 140 proj.sources.ClearErrors( fname ); 140 141 if not DirectoryExists( proj.basepath ) then Exit; 141 142 SetCurrentDir( proj.basepath ); … … 158 159 TrimAll( output ); 159 160 160 proj.sources.ClearErrors( fname );161 161 if output.count > 0 then proj.sources.AddErrors( fname , output ); 162 162 Result:= ( output.Count = 0 ); … … 171 171 begin 172 172 outname := proj.GetResultFile( fname ); 173 proj.sources.ClearErrors( fname ); 173 174 if (not proj.fullbuild) and FileExists(outname) then 174 175 begin … … 381 382 for N:=0 to projects.Count-1 do begin 382 383 proj := projects[ N ]; 383 if proj.filename = filename then Exit384 elsebegin384 if proj.filename = filename then 385 begin 385 386 Result:= proj; 386 387 Exit;
