Changeset 9 for trunk/Forms
- Timestamp:
- May 18, 2015, 11:49:39 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormCheckout.lfm
r8 r9 1 1 object FormCheckout: TFormCheckout 2 2 Left = 833 3 Height = 3773 Height = 417 4 4 Top = 345 5 Width = 8 265 Width = 834 6 6 Caption = 'Checkout' 7 ClientHeight = 377 8 ClientWidth = 826 7 ClientHeight = 417 8 ClientWidth = 834 9 OnShow = FormShow 9 10 LCLVersion = '1.5' 10 11 object GroupBox1: TGroupBox 11 12 Left = 8 12 Height = 18413 Height = 232 13 14 Top = 8 14 Width = 81 015 Width = 818 15 16 Align = alTop 16 17 BorderSpacing.Around = 8 17 18 Caption = 'Repository' 18 ClientHeight = 15719 ClientWidth = 8 0619 ClientHeight = 205 20 ClientWidth = 814 20 21 TabOrder = 0 21 22 object Label1: TLabel 22 23 Left = 8 23 24 Height = 25 24 Top = 1625 Top = 64 25 26 Width = 166 26 27 Caption = 'URL of repository:' … … 30 31 Left = 8 31 32 Height = 35 32 Top = 4833 Width = 7 8733 Top = 96 34 Width = 795 34 35 Anchors = [akTop, akLeft, akRight] 35 36 TabOrder = 0 … … 38 39 Left = 8 39 40 Height = 25 40 Top = 8841 Top = 136 41 42 Width = 181 42 43 Caption = 'Checkout directory:' … … 46 47 Left = 8 47 48 Height = 35 48 Top = 1 2049 Width = 73 149 Top = 168 50 Width = 739 50 51 Anchors = [akTop, akLeft, akRight] 51 52 TabOrder = 1 52 53 end 53 54 object Button1: TButton 54 Left = 7 5555 Left = 763 55 56 Height = 25 56 Top = 1 2857 Top = 176 57 58 Width = 40 58 59 Anchors = [akTop, akRight] … … 61 62 TabOrder = 2 62 63 end 64 object ComboBox1: TComboBox 65 Left = 152 66 Height = 35 67 Top = 16 68 Width = 352 69 ItemHeight = 0 70 Style = csDropDownList 71 TabOrder = 3 72 end 73 object Label3: TLabel 74 Left = 8 75 Height = 25 76 Top = 21 77 Width = 49 78 Caption = 'Type:' 79 ParentColor = False 80 end 63 81 end 64 82 object GroupBox2: TGroupBox 65 83 Left = 8 66 84 Height = 105 67 Top = 2 0068 Width = 81 085 Top = 248 86 Width = 818 69 87 Align = alTop 70 88 BorderSpacing.Around = 8 … … 72 90 TabOrder = 1 73 91 end 74 object ButtonCancel: TButton 75 Left = 728 76 Height = 25 77 Top = 328 78 Width = 75 79 Anchors = [akTop, akRight] 80 Caption = 'Cancel' 81 ModalResult = 2 92 object Panel1: TPanel 93 Left = 0 94 Height = 50 95 Top = 367 96 Width = 834 97 Align = alBottom 98 BevelOuter = bvNone 99 ClientHeight = 50 100 ClientWidth = 834 82 101 TabOrder = 2 83 end 84 object ButtonOk: TButton 85 Left = 616 86 Height = 25 87 Top = 328 88 Width = 75 89 Anchors = [akTop, akRight] 90 Caption = 'Ok' 91 ModalResult = 1 92 TabOrder = 3 102 object ButtonOk: TButton 103 Left = 624 104 Height = 25 105 Top = 16 106 Width = 75 107 Anchors = [akTop, akRight] 108 Caption = 'Ok' 109 ModalResult = 1 110 TabOrder = 0 111 end 112 object ButtonCancel: TButton 113 Left = 736 114 Height = 25 115 Top = 16 116 Width = 75 117 Anchors = [akTop, akRight] 118 Caption = 'Cancel' 119 ModalResult = 2 120 TabOrder = 1 121 end 93 122 end 94 123 end -
trunk/Forms/UFormCheckout.pas
r8 r9 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Menus, ExtCtrls; 9 10 10 11 type … … 16 17 ButtonCancel: TButton; 17 18 ButtonOk: TButton; 19 ComboBox1: TComboBox; 18 20 EditURL: TEdit; 19 21 EditDir: TEdit; … … 22 24 Label1: TLabel; 23 25 Label2: TLabel; 26 Label3: TLabel; 27 Panel1: TPanel; 24 28 procedure Button1Click(Sender: TObject); 29 procedure FormShow(Sender: TObject); 25 30 private 26 31 { private declarations } … … 36 41 {$R *.lfm} 37 42 43 uses 44 UCore, UBackend; 45 38 46 { TFormCheckout } 39 47 … … 46 54 end; 47 55 56 procedure TFormCheckout.FormShow(Sender: TObject); 57 var 58 I: Integer; 59 begin 60 ComboBox1.Clear; 61 for I := 0 to Core.Backends.Count - 1 do 62 ComboBox1.AddItem(TBackend(Core.Backends[I]).Name, Core.Backends[I]); 63 if ComboBox1.Items.Count > 0 then 64 ComboBox1.ItemIndex := 0; 65 end; 66 48 67 end. 49 68 -
trunk/Forms/UFormMain.pas
r8 r9 85 85 const 86 86 AppName = 'VCSCommander'; 87 var 88 NewCaption: string; 87 89 begin 90 NewCaption := ''; 88 91 if Assigned(Core.Project) then 89 Caption := Core.Project.Directory + ' - ' + AppName 90 else Caption := AppName; 92 NewCaption := Core.Project.Directory + ' (' + Core.Project.Backend.Name + ') - '; 93 NewCaption := NewCaption + AppName; 94 Caption := NewCaption; 91 95 end; 92 96
Note:
See TracChangeset
for help on using the changeset viewer.