Changeset 7 for trunk/Forms
- Timestamp:
- Feb 4, 2011, 1:16:43 PM (14 years ago)
- Location:
- trunk/Forms
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UInstanceOptions.pas
r6 r7 108 108 109 109 Edit1.Text := Instance.Name; 110 if Assigned(Instance.FPCSource) then 111 Edit2.Text := Instance.FPCSource.GetName 110 FPCSource := Instance.FPCSource; 111 IDESource := Instance.IDESource; 112 if Assigned(FPCSource) then 113 Edit2.Text := FPCSource.GetName 112 114 else Edit2.Text := ''; 113 if Assigned(I nstance.IDESource) then114 Edit3.Text := I nstance.IDESource.GetName115 if Assigned(IDESource) then 116 Edit3.Text := IDESource.GetName 115 117 else Edit3.Text := ''; 116 118 end; -
trunk/Forms/UMainForm.lfm
r6 r7 1 1 object MainForm: TMainForm 2 Left = 2 343 Height = 3804 Top = 1232 Left = 203 3 Height = 418 4 Top = 88 5 5 Width = 677 6 6 Caption = 'Free Pascal Manager' 7 ClientHeight = 3807 ClientHeight = 418 8 8 ClientWidth = 677 9 9 OnCreate = FormCreate … … 13 13 object ListView1: TListView 14 14 Left = 8 15 Height = 31 815 Height = 311 16 16 Top = 24 17 Width = 6 5817 Width = 666 18 18 Anchors = [akTop, akLeft, akRight, akBottom] 19 19 Columns = < … … 56 56 Left = 8 57 57 Height = 25 58 Top = 3 5058 Top = 343 59 59 Width = 64 60 60 Action = AAdd … … 65 65 Left = 80 66 66 Height = 25 67 Top = 3 5067 Top = 343 68 68 Width = 67 69 69 Action = ARemove … … 74 74 Left = 152 75 75 Height = 25 76 Top = 3 5076 Top = 343 77 77 Width = 56 78 78 Action = AStart … … 84 84 Left = 296 85 85 Height = 25 86 Top = 3 5086 Top = 343 87 87 Width = 64 88 88 Action = AUpdate … … 93 93 Left = 440 94 94 Height = 25 95 Top = 3 5095 Top = 343 96 96 Width = 59 97 97 Action = AEdit … … 102 102 Left = 368 103 103 Height = 25 104 Top = 3 50104 Top = 343 105 105 Width = 64 106 106 Action = ACompile … … 111 111 Left = 216 112 112 Height = 25 113 Top = 3 50113 Top = 343 114 114 Width = 72 115 115 Action = ADownload … … 118 118 end 119 119 object Options: TButton 120 Left = 591121 Height = 25 122 Top = 3 50120 Left = 8 121 Height = 25 122 Top = 387 123 123 Width = 75 124 124 Action = AOptions 125 Anchors = [akLeft, akBottom] 126 TabOrder = 8 127 end 128 object Bevel1: TBevel 129 Left = 8 130 Height = 3 131 Top = 375 132 Width = 664 133 Anchors = [akLeft, akRight, akBottom] 134 end 135 object Button7: TButton 136 Left = 93 137 Height = 25 138 Top = 387 139 Width = 75 140 Action = ASourceList 125 141 Anchors = [akRight, akBottom] 126 TabOrder = 8142 TabOrder = 9 127 143 end 128 144 object ActionList1: TActionList … … 161 177 OnExecute = AOptionsExecute 162 178 end 179 object ASourceList: TAction 180 Caption = 'Source list' 181 OnExecute = ASourceListExecute 182 end 163 183 end 164 184 object PopupMenu1: TPopupMenu -
trunk/Forms/UMainForm.pas
r6 r7 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 StdCtrls, ActnList, Menus, Contnrs, USource, UInstance, UInstanceOptions, 10 DOM, XMLWrite, XMLRead, HTTPSend, UMainOptions; 9 StdCtrls, ActnList, Menus, ExtCtrls, Contnrs, USource, UInstance, 10 UInstanceOptions, DOM, XMLWrite, XMLRead, HTTPSend, UMainOptions, 11 USourceSelection; 11 12 12 13 const … … 23 24 AAdd: TAction; 24 25 ACompile: TAction; 26 ASourceList: TAction; 25 27 AOptions: TAction; 26 28 AUpdate: TAction; … … 30 32 ADownload: TAction; 31 33 ActionList1: TActionList; 34 Bevel1: TBevel; 32 35 Button1: TButton; 33 36 Button2: TButton; … … 35 38 Button4: TButton; 36 39 Button5: TButton; 40 Button7: TButton; 37 41 Options: TButton; 38 42 ButtonEdit: TButton; … … 52 56 procedure AOptionsExecute(Sender: TObject); 53 57 procedure ARemoveExecute(Sender: TObject); 58 procedure ASourceListExecute(Sender: TObject); 54 59 procedure AStartExecute(Sender: TObject); 55 60 procedure ADownloadExecute(Sender: TObject); … … 150 155 end; 151 156 157 procedure TMainForm.ASourceListExecute(Sender: TObject); 158 begin 159 SourceSelectionForm.ProjectType := ''; 160 SourceSelectionForm.ShowModal; 161 end; 162 152 163 procedure TMainForm.AStartExecute(Sender: TObject); 153 164 begin … … 270 281 Instances.Clear; 271 282 Sources.Clear; 283 NewNode := Doc.DocumentElement.FindNode('Platform'); 284 if Assigned(NewNode) then 285 Platform := UTF8Encode(string(NewNode.TextContent)); 286 NewNode := Doc.DocumentElement.FindNode('TemplateDir'); 287 if Assigned(NewNode) then 288 TemplateDir := UTF8Encode(string(NewNode.TextContent)); 289 NewNode := Doc.DocumentElement.FindNode('SubversionDir'); 290 if Assigned(NewNode) then 291 SubversionDir := UTF8Encode(string(NewNode.TextContent)); 292 NewNode := Doc.DocumentElement.FindNode('SubversionDir'); 293 if Assigned(NewNode) then 294 SubversionDir := UTF8Encode(string(NewNode.TextContent)); 295 NewNode := Doc.DocumentElement.FindNode('InstanceDir'); 296 if Assigned(NewNode) then 297 InstanceDir := UTF8Encode(string(NewNode.TextContent)); 298 NewNode := Doc.DocumentElement.FindNode('SourceURL'); 299 if Assigned(NewNode) then 300 SourceURL := UTF8Encode(string(NewNode.TextContent)); 272 301 273 302 NewNode := Doc.DocumentElement.FindNode('Sources'); … … 361 390 AppendChild(RootNode); 362 391 with RootNode do begin 392 NewNode := OwnerDocument.CreateElement('Platform'); 393 NewNode.TextContent := UTF8Decode(Platform); 394 AppendChild(NewNode); 395 NewNode := OwnerDocument.CreateElement('TemplateDir'); 396 NewNode.TextContent := UTF8Decode(TemplateDir); 397 AppendChild(NewNode); 398 NewNode := OwnerDocument.CreateElement('SubversionDir'); 399 NewNode.TextContent := UTF8Decode(SubversionDir); 400 AppendChild(NewNode); 401 NewNode := OwnerDocument.CreateElement('SourceDir'); 402 NewNode.TextContent := UTF8Decode(SourceDir); 403 AppendChild(NewNode); 404 NewNode := OwnerDocument.CreateElement('InstanceDir'); 405 NewNode.TextContent := UTF8Decode(InstanceDir); 406 AppendChild(NewNode); 407 NewNode := OwnerDocument.CreateElement('SourceURL'); 408 NewNode.TextContent := UTF8Decode(SourceURL); 409 AppendChild(NewNode); 410 363 411 NewNode := OwnerDocument.CreateElement('Sources'); 364 412 with NewNode do -
trunk/Forms/UMainOptions.lfm
r6 r7 1 1 object MainOptionsForm: TMainOptionsForm 2 Left = 2332 Left = 320 3 3 Height = 350 4 Top = 735 Width = 6354 Top = 81 5 Width = 489 6 6 Caption = 'Options' 7 7 ClientHeight = 350 8 ClientWidth = 6358 ClientWidth = 489 9 9 OnShow = FormShow 10 10 LCLVersion = '0.9.31' 11 11 object Button1: TButton 12 Left = 46412 Left = 318 13 13 Height = 25 14 14 Top = 316 15 15 Width = 75 16 Anchors = [ak Left, akBottom]16 Anchors = [akRight, akBottom] 17 17 Caption = 'Cancel' 18 ModalResult = 2 19 OnClick = Button1Click 18 20 TabOrder = 0 19 21 end 20 22 object Button2: TButton 21 Left = 55223 Left = 406 22 24 Height = 22 23 25 Top = 319 24 26 Width = 75 25 Anchors = [ak Left, akBottom]27 Anchors = [akRight, akBottom] 26 28 Caption = 'Save' 29 ModalResult = 1 27 30 OnClick = Button2Click 28 31 TabOrder = 1 … … 40 43 Height = 21 41 44 Top = 24 42 Width = 61945 Width = 473 43 46 Anchors = [akTop, akLeft, akRight] 44 47 TabOrder = 2 … … 56 59 Height = 21 57 60 Top = 64 58 Width = 61961 Width = 473 59 62 Anchors = [akTop, akLeft, akRight] 60 63 TabOrder = 3 … … 72 75 Height = 21 73 76 Top = 104 74 Width = 62177 Width = 475 75 78 Anchors = [akTop, akLeft, akRight] 76 79 TabOrder = 4 … … 88 91 Height = 21 89 92 Top = 144 90 Width = 62193 Width = 475 91 94 Anchors = [akTop, akLeft, akRight] 92 95 TabOrder = 5 -
trunk/Forms/UMainOptions.pas
r6 r7 23 23 Label3: TLabel; 24 24 Label4: TLabel; 25 procedure Button1Click(Sender: TObject); 25 26 procedure Button2Click(Sender: TObject); 26 27 procedure FormShow(Sender: TObject); … … 59 60 end; 60 61 62 procedure TMainOptionsForm.Button1Click(Sender: TObject); 63 begin 64 65 end; 66 61 67 end. 62 68 -
trunk/Forms/UOperationProgress.lfm
r6 r7 1 1 object OperationProgressForm: TOperationProgressForm 2 Left = 2852 Left = 369 3 3 Height = 440 4 Top = 1 124 Top = 134 5 5 Width = 562 6 6 Caption = 'Operation progress' -
trunk/Forms/USourceSelection.lfm
r6 r7 20 20 item 21 21 Caption = 'Name' 22 Width = 7022 Width = 110 23 23 end 24 24 item -
trunk/Forms/USourceSelection.pas
r6 r7 49 49 Sources.Clear; 50 50 for I := 0 to MainForm.Sources.Count - 1 do 51 if TSource(MainForm.Sources[I]).ProjectType = ProjectType then 51 if (TSource(MainForm.Sources[I]).ProjectType = ProjectType) or 52 (ProjectType = '') then 52 53 Sources.Add(MainForm.Sources[I]); 53 54 if ListView1.Items.Count <> Sources.Count then
Note:
See TracChangeset
for help on using the changeset viewer.