Changeset 9 for trunk/Forms
- Timestamp:
- Feb 12, 2011, 12:33:04 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 4 4 Source 5 5 Instance 6 FreePascalManager
-
- Property svn:ignore
-
trunk/Forms/UInstanceOptions.lfm
r6 r9 37 37 Height = 14 38 38 Top = 72 39 Width = 6739 Width = 76 40 40 Caption = 'IDE selection:' 41 41 ParentColor = False … … 45 45 Height = 14 46 46 Top = 40 47 Width = 6947 Width = 77 48 48 Caption = 'FPC selection:' 49 49 ParentColor = False … … 61 61 Height = 14 62 62 Top = 8 63 Width = 3 263 Width = 37 64 64 Caption = 'Name:' 65 65 ParentColor = False -
trunk/Forms/UInstanceOptions.pas
r7 r9 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, ExtCtrls, DOM, XMLWrite, XMLRead, HTTPSend,USource, UInstance,9 ComCtrls, ExtCtrls, DOM, XMLWrite, XMLRead, USource, UInstance, 10 10 USourceSelection; 11 11 -
trunk/Forms/UMainForm.lfm
r8 r9 35 35 item 36 36 Caption = 'Compiled' 37 Width = 95 37 38 end> 38 39 OwnerData = True … … 49 50 Height = 14 50 51 Top = 8 51 Width = 9452 Width = 108 52 53 Caption = 'Installed instances:' 53 54 ParentColor = False -
trunk/Forms/UMainForm.pas
r7 r9 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 9 StdCtrls, ActnList, Menus, ExtCtrls, Contnrs, USource, UInstance, 10 UInstanceOptions, DOM, XMLWrite, XMLRead, HTTPSend,UMainOptions,11 USourceSelection ;10 UInstanceOptions, DOM, XMLWrite, XMLRead, UMainOptions, 11 USourceSelection, HTTPSend; 12 12 13 13 const … … 81 81 Sources: TSourceList; 82 82 function GetBinUtilsDir: string; 83 function GetCompilerPath: string; 83 84 function GetBaseDir: string; 85 procedure InstallDependencies; 84 86 end; 85 87 … … 254 256 AStart.Enabled := False; 255 257 ARemove.Enabled := False; 258 AUpdate.Enabled := False; 256 259 end; 257 260 end; … … 492 495 function TMainForm.GetBinUtilsDir: string; 493 496 begin 497 {$IFDEF Windows} 494 498 Result := GetBaseDir + DirectorySeparator + 495 499 BinUtilsDir + DirectorySeparator + Platform; 500 {$ENDIF} 501 {$IFDEF Linux} 502 Result := '/usr/bin'; 503 {$ENDIF} 504 end; 505 506 function TMainForm.GetCompilerPath: string; 507 begin 508 {$IFDEF Windows} 509 Result := GetBinUtilsDir + DirectorySeparator + 'fpc'; 510 {$ENDIF} 511 {$IFDEF Linux} 512 Result := '/usr/lib/fpc/2.4.0/ppc386'; 513 {$ENDIF} 496 514 end; 497 515 … … 499 517 begin 500 518 Result := ExtractFileDir(Application.ExeName); 519 end; 520 521 procedure TMainForm.InstallDependencies; 522 begin 523 {$IFDEF Windows} 524 {$ENDIF} 525 {$IFDEF Linux} 526 if FileExistsUTF8('yum') then begin 527 end else 528 if FileExistsUTF8('apt-get') then begin 529 (* sudo apt-get install -y subversion 530 sudo apt-get install -y cvs 531 sudo apt-get install -y alien 532 sudo apt-get install -y libncurses5-dev 533 sudo apt-get install -y libgtk2.0-dev 534 sudo apt-get install -y libgdk-pixbuf-dev 535 sudo apt-get install -y libXp-dev 536 sudo apt-get install -y libgtk1.2-dev 537 sudo apt-get install -y libXxf86vm-dev 538 sudo apt-get install -y glutg3-dev 539 sudo apt-get install -y libgli-mesa-dev 540 sudo apt-get install -y mesa-utils 541 *) 542 end else ShowMessage('No package manager found.'); 543 {$ENDIF} 501 544 end; 502 545 -
trunk/Forms/UMainOptions.lfm
r7 r9 1 1 object MainOptionsForm: TMainOptionsForm 2 Left = 3 202 Left = 307 3 3 Height = 350 4 Top = 814 Top = 161 5 5 Width = 489 6 6 Caption = 'Options' … … 35 35 Height = 14 36 36 Top = 8 37 Width = 7937 Width = 92 38 38 Caption = 'Bit utils location:' 39 39 ParentColor = False … … 51 51 Height = 14 52 52 Top = 50 53 Width = 4 153 Width = 46 54 54 Caption = 'Platform' 55 55 ParentColor = False … … 67 67 Height = 14 68 68 Top = 90 69 Width = 1 3569 Width = 155 70 70 Caption = 'Web source list file location:' 71 71 ParentColor = False … … 83 83 Height = 14 84 84 Top = 128 85 Width = 9885 Width = 113 86 86 Caption = 'Subversion location:' 87 87 ParentColor = False -
trunk/Forms/USourceSelection.pas
r7 r9 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 StdCtrls, USource, H TTPSend;9 StdCtrls, USource, HttpSend; 10 10 11 11 type
Note:
See TracChangeset
for help on using the changeset viewer.